@everymatrix/casino-header-controller-nd 1.77.18 → 1.77.20
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-B7siv7CV.cjs +18 -0
- package/components/{CasinoHamburgerMenuNd-B95UqhF0.js → CasinoHamburgerMenuNd-BiMAIa4x.js} +1096 -1139
- package/components/{CasinoHamburgerMenuNd-D2rDBXRC.js → CasinoHamburgerMenuNd-BwwDUASL.js} +1052 -1095
- package/components/{CasinoHeaderControllerNd-tZAhwHaY.cjs → CasinoHeaderControllerNd-CyFlG-Ym.cjs} +1 -1
- package/components/{CasinoHeaderControllerNd-EHkwtbSO.js → CasinoHeaderControllerNd-DJBbG1ZP.js} +110 -110
- package/components/{CasinoHeaderControllerNd-DCUqvTfH.js → CasinoHeaderControllerNd-qH3DSLcB.js} +111 -111
- package/components/{PlayerAccountBalanceModalNd-BdJmJ8sm.js → PlayerAccountBalanceModalNd-BuJN80t9.js} +60 -50
- package/components/PlayerAccountBalanceModalNd-CrJr-hqv.cjs +7 -0
- package/components/{PlayerAccountBalanceModalNd-C3jX9nUy.js → PlayerAccountBalanceModalNd-WGrFQw0p.js} +60 -50
- package/components/{PlayerDeposit-CwI-AmXb.js → PlayerDeposit-B-9t-DAW.js} +1 -1
- package/components/{PlayerDeposit-e8kgx1D-.cjs → PlayerDeposit-C-63LBmn.cjs} +1 -1
- package/components/{PlayerDeposit-DZfRt0Ri.js → PlayerDeposit-D6kr_HtJ.js} +1 -1
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/esnext/casino-header-controller-nd.js +1 -1
- package/lazy/{casino-hamburger-menu-nd-8MZlajCA.cjs → casino-hamburger-menu-nd-4sa4PCMG.cjs} +1 -1
- package/lazy/{casino-hamburger-menu-nd-CzLenRrm.js → casino-hamburger-menu-nd-CsLaohSd.js} +1 -1
- package/lazy/{casino-hamburger-menu-nd-BbP8jLtX.js → casino-hamburger-menu-nd-DAzNXkVd.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-DmEmmt5X.cjs → player-account-balance-modal-nd-BNk-eSwg.cjs} +1 -1
- package/lazy/{player-account-balance-modal-nd-DN_l4qUr.js → player-account-balance-modal-nd-DdqVejOu.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-61pL2lLw.js → player-account-balance-modal-nd-KQ3NT55n.js} +1 -1
- package/lazy/{player-deposit-BTOu0X8z.js → player-deposit-Bio2dA6d.js} +1 -1
- package/lazy/{player-deposit-ChyZJUaj.cjs → player-deposit-Ch1vaT3-.cjs} +1 -1
- package/lazy/{player-deposit-Dr_55qit.js → player-deposit-Ojz7d7L6.js} +1 -1
- package/package.json +1 -1
- package/components/CasinoHamburgerMenuNd-BSgGKd1p.cjs +0 -18
- package/components/PlayerAccountBalanceModalNd-DrFhbFNX.cjs +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function $() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function an(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,29 +8,29 @@ function hn(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function hr(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function St() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
e.forEach(
|
|
17
|
+
function de(e) {
|
|
18
|
+
e.forEach(hr);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function mt(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function cr(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
26
|
let Te;
|
|
27
27
|
function K(e, t) {
|
|
28
28
|
return e === t ? !0 : (Te || (Te = document.createElement("a")), Te.href = t, e === Te.href);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function sn(e) {
|
|
31
31
|
return Object.keys(e).length === 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function fr(e, ...t) {
|
|
34
34
|
if (e == null) {
|
|
35
35
|
for (const n of t)
|
|
36
36
|
n(void 0);
|
|
@@ -39,19 +39,19 @@ function br(e, ...t) {
|
|
|
39
39
|
const r = e.subscribe(...t);
|
|
40
40
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
e.$$.on_destroy.push(
|
|
42
|
+
function ln(e, t, r) {
|
|
43
|
+
e.$$.on_destroy.push(fr(t, r));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Zo(e, t, r, n) {
|
|
46
46
|
if (e) {
|
|
47
|
-
const i =
|
|
47
|
+
const i = dr(e, t, r, n);
|
|
48
48
|
return e[0](i);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e[1] && n ?
|
|
51
|
+
function dr(e, t, r, n) {
|
|
52
|
+
return e[1] && n ? an(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Qo(e, t, r, n) {
|
|
55
55
|
if (e[2] && n) {
|
|
56
56
|
const i = e[2](n(r));
|
|
57
57
|
if (t.dirty === void 0)
|
|
@@ -66,13 +66,13 @@ function ea(e, t, r, n) {
|
|
|
66
66
|
}
|
|
67
67
|
return t.dirty;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function qo(e, t, r, n, i, o) {
|
|
70
70
|
if (i) {
|
|
71
|
-
const a =
|
|
71
|
+
const a = dr(t, r, n, o);
|
|
72
72
|
e.p(a, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Jo(e) {
|
|
76
76
|
if (e.ctx.length > 32) {
|
|
77
77
|
const t = [], r = e.ctx.length / 32;
|
|
78
78
|
for (let n = 0; n < r; n++)
|
|
@@ -84,14 +84,14 @@ function ra(e) {
|
|
|
84
84
|
function b(e, t) {
|
|
85
85
|
e.appendChild(t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const n =
|
|
87
|
+
function un(e, t, r) {
|
|
88
|
+
const n = hn(e);
|
|
89
89
|
if (!n.getElementById(t)) {
|
|
90
90
|
const i = v("style");
|
|
91
|
-
i.id = t, i.textContent = r,
|
|
91
|
+
i.id = t, i.textContent = r, cn(n, i);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function hn(e) {
|
|
95
95
|
if (!e)
|
|
96
96
|
return document;
|
|
97
97
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -101,7 +101,7 @@ function gn(e) {
|
|
|
101
101
|
t
|
|
102
102
|
) : e.ownerDocument;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function cn(e, t) {
|
|
105
105
|
return b(
|
|
106
106
|
/** @type {Document} */
|
|
107
107
|
e.head || e,
|
|
@@ -114,14 +114,14 @@ function F(e, t, r) {
|
|
|
114
114
|
function I(e) {
|
|
115
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function we(e, t) {
|
|
118
118
|
for (let r = 0; r < e.length; r += 1)
|
|
119
119
|
e[r] && e[r].d(t);
|
|
120
120
|
}
|
|
121
121
|
function v(e) {
|
|
122
122
|
return document.createElement(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Ht(e) {
|
|
125
125
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
126
126
|
}
|
|
127
127
|
function ee(e) {
|
|
@@ -130,13 +130,13 @@ function ee(e) {
|
|
|
130
130
|
function U() {
|
|
131
131
|
return ee(" ");
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function mr() {
|
|
134
134
|
return ee("");
|
|
135
135
|
}
|
|
136
136
|
function te(e, t, r, n) {
|
|
137
137
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Yo(e) {
|
|
140
140
|
return function(t) {
|
|
141
141
|
return t.preventDefault(), e.call(this, t);
|
|
142
142
|
};
|
|
@@ -144,24 +144,24 @@ function na(e) {
|
|
|
144
144
|
function g(e, t, r) {
|
|
145
145
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Ko(e, t, r) {
|
|
148
148
|
const n = t.toLowerCase();
|
|
149
149
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : g(e, t, r);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function fn(e) {
|
|
152
152
|
return Array.from(e.childNodes);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function me(e, t) {
|
|
155
155
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
156
156
|
t);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Tt(e, t) {
|
|
159
159
|
e.value = t ?? "";
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function ea(e, t, r, n) {
|
|
162
162
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ot(e, t, r) {
|
|
165
165
|
for (let n = 0; n < e.options.length; n += 1) {
|
|
166
166
|
const i = e.options[n];
|
|
167
167
|
if (i.__value === t) {
|
|
@@ -171,11 +171,11 @@ function Bt(e, t, r) {
|
|
|
171
171
|
}
|
|
172
172
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function dn(e) {
|
|
175
175
|
const t = e.querySelector(":checked");
|
|
176
176
|
return t && t.__value;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function mn(e) {
|
|
179
179
|
const t = {};
|
|
180
180
|
return e.childNodes.forEach(
|
|
181
181
|
/** @param {Element} node */
|
|
@@ -184,142 +184,142 @@ function vn(e) {
|
|
|
184
184
|
}
|
|
185
185
|
), t;
|
|
186
186
|
}
|
|
187
|
-
let
|
|
188
|
-
function
|
|
189
|
-
|
|
187
|
+
let _e;
|
|
188
|
+
function ve(e) {
|
|
189
|
+
_e = e;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
if (!
|
|
191
|
+
function gn() {
|
|
192
|
+
if (!_e)
|
|
193
193
|
throw new Error("Function called outside component initialization");
|
|
194
|
-
return
|
|
194
|
+
return _e;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
196
|
+
function pn(e) {
|
|
197
|
+
gn().$$.on_mount.push(e);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function ta(e, t) {
|
|
200
200
|
const r = e.$$.callbacks[t.type];
|
|
201
201
|
r && r.slice().forEach((n) => n.call(this, t));
|
|
202
202
|
}
|
|
203
203
|
const ae = [], Ce = [];
|
|
204
204
|
let se = [];
|
|
205
|
-
const
|
|
206
|
-
let
|
|
207
|
-
function
|
|
208
|
-
|
|
205
|
+
const Mt = [], bn = /* @__PURE__ */ Promise.resolve();
|
|
206
|
+
let et = !1;
|
|
207
|
+
function yn() {
|
|
208
|
+
et || (et = !0, bn.then(k));
|
|
209
209
|
}
|
|
210
210
|
function Ne(e) {
|
|
211
211
|
se.push(e);
|
|
212
212
|
}
|
|
213
|
-
const
|
|
213
|
+
const ze = /* @__PURE__ */ new Set();
|
|
214
214
|
let ie = 0;
|
|
215
215
|
function k() {
|
|
216
216
|
if (ie !== 0)
|
|
217
217
|
return;
|
|
218
|
-
const e =
|
|
218
|
+
const e = _e;
|
|
219
219
|
do {
|
|
220
220
|
try {
|
|
221
221
|
for (; ie < ae.length; ) {
|
|
222
222
|
const t = ae[ie];
|
|
223
|
-
ie++,
|
|
223
|
+
ie++, ve(t), vn(t.$$);
|
|
224
224
|
}
|
|
225
225
|
} catch (t) {
|
|
226
226
|
throw ae.length = 0, ie = 0, t;
|
|
227
227
|
}
|
|
228
|
-
for (
|
|
228
|
+
for (ve(null), ae.length = 0, ie = 0; Ce.length; )
|
|
229
229
|
Ce.pop()();
|
|
230
230
|
for (let t = 0; t < se.length; t += 1) {
|
|
231
231
|
const r = se[t];
|
|
232
|
-
|
|
232
|
+
ze.has(r) || (ze.add(r), r());
|
|
233
233
|
}
|
|
234
234
|
se.length = 0;
|
|
235
235
|
} while (ae.length);
|
|
236
|
-
for (;
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
for (; Mt.length; )
|
|
237
|
+
Mt.pop()();
|
|
238
|
+
et = !1, ze.clear(), ve(e);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function vn(e) {
|
|
241
241
|
if (e.fragment !== null) {
|
|
242
|
-
e.update(),
|
|
242
|
+
e.update(), de(e.before_update);
|
|
243
243
|
const t = e.dirty;
|
|
244
244
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function _n(e) {
|
|
248
248
|
const t = [], r = [];
|
|
249
249
|
se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
|
|
250
250
|
}
|
|
251
251
|
const Ae = /* @__PURE__ */ new Set();
|
|
252
|
-
let
|
|
253
|
-
function
|
|
252
|
+
let xn;
|
|
253
|
+
function En(e, t) {
|
|
254
254
|
e && e.i && (Ae.delete(e), e.i(t));
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function ra(e, t, r, n) {
|
|
257
257
|
if (e && e.o) {
|
|
258
258
|
if (Ae.has(e))
|
|
259
259
|
return;
|
|
260
|
-
Ae.add(e),
|
|
260
|
+
Ae.add(e), xn.c.push(() => {
|
|
261
261
|
Ae.delete(e);
|
|
262
262
|
}), e.o(t);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Q(e) {
|
|
266
266
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function wn(e, t, r) {
|
|
269
269
|
const { fragment: n, after_update: i } = e.$$;
|
|
270
270
|
n && n.m(t, r), Ne(() => {
|
|
271
|
-
const o = e.$$.on_mount.map(
|
|
272
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
271
|
+
const o = e.$$.on_mount.map(hr).filter(mt);
|
|
272
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : de(o), e.$$.on_mount = [];
|
|
273
273
|
}), i.forEach(Ne);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Sn(e, t) {
|
|
276
276
|
const r = e.$$;
|
|
277
|
-
r.fragment !== null && (
|
|
277
|
+
r.fragment !== null && (_n(r.after_update), de(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
e.$$.dirty[0] === -1 && (ae.push(e),
|
|
279
|
+
function Hn(e, t) {
|
|
280
|
+
e.$$.dirty[0] === -1 && (ae.push(e), yn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
const
|
|
282
|
+
function Tn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
283
|
+
const l = _e;
|
|
284
|
+
ve(e);
|
|
285
|
+
const u = e.$$ = {
|
|
286
286
|
fragment: null,
|
|
287
287
|
ctx: [],
|
|
288
288
|
// state
|
|
289
289
|
props: o,
|
|
290
290
|
update: $,
|
|
291
291
|
not_equal: i,
|
|
292
|
-
bound:
|
|
292
|
+
bound: St(),
|
|
293
293
|
// lifecycle
|
|
294
294
|
on_mount: [],
|
|
295
295
|
on_destroy: [],
|
|
296
296
|
on_disconnect: [],
|
|
297
297
|
before_update: [],
|
|
298
298
|
after_update: [],
|
|
299
|
-
context: new Map(t.context || (
|
|
299
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
300
300
|
// everything else
|
|
301
|
-
callbacks:
|
|
301
|
+
callbacks: St(),
|
|
302
302
|
dirty: s,
|
|
303
303
|
skip_bound: !1,
|
|
304
|
-
root: t.target ||
|
|
304
|
+
root: t.target || l.$$.root
|
|
305
305
|
};
|
|
306
|
-
a && a(
|
|
307
|
-
let
|
|
308
|
-
if (
|
|
309
|
-
const
|
|
310
|
-
return
|
|
311
|
-
}) : [],
|
|
306
|
+
a && a(u.root);
|
|
307
|
+
let h = !1;
|
|
308
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
309
|
+
const p = m.length ? m[0] : f;
|
|
310
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), h && Hn(e, c)), f;
|
|
311
|
+
}) : [], u.update(), h = !0, de(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
312
312
|
if (t.hydrate) {
|
|
313
|
-
const
|
|
314
|
-
|
|
313
|
+
const c = fn(t.target);
|
|
314
|
+
u.fragment && u.fragment.l(c), c.forEach(I);
|
|
315
315
|
} else
|
|
316
|
-
|
|
317
|
-
t.intro &&
|
|
316
|
+
u.fragment && u.fragment.c();
|
|
317
|
+
t.intro && En(e.$$.fragment), wn(e, t.target, t.anchor), k();
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
ve(l);
|
|
320
320
|
}
|
|
321
|
-
let
|
|
322
|
-
typeof HTMLElement == "function" && (
|
|
321
|
+
let gr;
|
|
322
|
+
typeof HTMLElement == "function" && (gr = class extends HTMLElement {
|
|
323
323
|
/** The Svelte component constructor */
|
|
324
324
|
$$ctor;
|
|
325
325
|
/** Slots */
|
|
@@ -367,23 +367,23 @@ typeof HTMLElement == "function" && (_r = class extends HTMLElement {
|
|
|
367
367
|
* @param {HTMLElement} target
|
|
368
368
|
* @param {HTMLElement} [anchor]
|
|
369
369
|
*/
|
|
370
|
-
m: function(
|
|
371
|
-
F(
|
|
370
|
+
m: function(l, u) {
|
|
371
|
+
F(l, o, u);
|
|
372
372
|
},
|
|
373
|
-
d: function(
|
|
374
|
-
|
|
373
|
+
d: function(l) {
|
|
374
|
+
l && I(o);
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
377
|
};
|
|
378
378
|
};
|
|
379
379
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
380
380
|
return;
|
|
381
|
-
const t = {}, r =
|
|
381
|
+
const t = {}, r = mn(this);
|
|
382
382
|
for (const i of this.$$s)
|
|
383
383
|
i in r && (t[i] = [e(i)]);
|
|
384
384
|
for (const i of this.attributes) {
|
|
385
385
|
const o = this.$$g_p(i.name);
|
|
386
|
-
o in this.$$d || (this.$$d[o] =
|
|
386
|
+
o in this.$$d || (this.$$d[o] = Le(o, i.value, this.$$p_d, "toProp"));
|
|
387
387
|
}
|
|
388
388
|
for (const i in this.$$p_d)
|
|
389
389
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -401,7 +401,7 @@ typeof HTMLElement == "function" && (_r = class extends HTMLElement {
|
|
|
401
401
|
this.$$r = !0;
|
|
402
402
|
for (const i in this.$$p_d)
|
|
403
403
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
404
|
-
const o =
|
|
404
|
+
const o = Le(
|
|
405
405
|
i,
|
|
406
406
|
this.$$d[i],
|
|
407
407
|
this.$$p_d,
|
|
@@ -423,7 +423,7 @@ typeof HTMLElement == "function" && (_r = class extends HTMLElement {
|
|
|
423
423
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
424
424
|
// and setting attributes through setAttribute etc, this is helpful
|
|
425
425
|
attributeChangedCallback(e, t, r) {
|
|
426
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
426
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Le(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
427
427
|
}
|
|
428
428
|
disconnectedCallback() {
|
|
429
429
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -436,7 +436,7 @@ typeof HTMLElement == "function" && (_r = class extends HTMLElement {
|
|
|
436
436
|
) || e;
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
|
-
function
|
|
439
|
+
function Le(e, t, r, n) {
|
|
440
440
|
const i = r[e]?.type;
|
|
441
441
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
442
442
|
return t;
|
|
@@ -465,8 +465,8 @@ function Pe(e, t, r, n) {
|
|
|
465
465
|
return t;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
let a = class extends
|
|
468
|
+
function On(e, t, r, n, i, o) {
|
|
469
|
+
let a = class extends gr {
|
|
470
470
|
constructor() {
|
|
471
471
|
super(e, r, i), this.$$p_d = t;
|
|
472
472
|
}
|
|
@@ -481,8 +481,8 @@ function Bn(e, t, r, n, i, o) {
|
|
|
481
481
|
get() {
|
|
482
482
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
483
483
|
},
|
|
484
|
-
set(
|
|
485
|
-
|
|
484
|
+
set(l) {
|
|
485
|
+
l = Le(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
488
|
}), n.forEach((s) => {
|
|
@@ -494,7 +494,7 @@ function Bn(e, t, r, n, i, o) {
|
|
|
494
494
|
}), e.element = /** @type {any} */
|
|
495
495
|
a, a;
|
|
496
496
|
}
|
|
497
|
-
class
|
|
497
|
+
class Mn {
|
|
498
498
|
/**
|
|
499
499
|
* ### PRIVATE API
|
|
500
500
|
*
|
|
@@ -513,7 +513,7 @@ class In {
|
|
|
513
513
|
$$set = void 0;
|
|
514
514
|
/** @returns {void} */
|
|
515
515
|
$destroy() {
|
|
516
|
-
|
|
516
|
+
Sn(this, 1), this.$destroy = $;
|
|
517
517
|
}
|
|
518
518
|
/**
|
|
519
519
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -522,7 +522,7 @@ class In {
|
|
|
522
522
|
* @returns {() => void}
|
|
523
523
|
*/
|
|
524
524
|
$on(t, r) {
|
|
525
|
-
if (!
|
|
525
|
+
if (!mt(r))
|
|
526
526
|
return $;
|
|
527
527
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
528
528
|
return n.push(r), () => {
|
|
@@ -535,11 +535,11 @@ class In {
|
|
|
535
535
|
* @returns {void}
|
|
536
536
|
*/
|
|
537
537
|
$set(t) {
|
|
538
|
-
this.$$set && !
|
|
538
|
+
this.$$set && !sn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
const
|
|
542
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
541
|
+
const An = "4";
|
|
542
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(An);
|
|
543
543
|
/*! *****************************************************************************
|
|
544
544
|
Copyright (c) Microsoft Corporation.
|
|
545
545
|
|
|
@@ -554,24 +554,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
554
554
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
555
555
|
PERFORMANCE OF THIS SOFTWARE.
|
|
556
556
|
***************************************************************************** */
|
|
557
|
-
var
|
|
558
|
-
return
|
|
557
|
+
var tt = function(e, t) {
|
|
558
|
+
return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
559
559
|
r.__proto__ = n;
|
|
560
560
|
} || function(r, n) {
|
|
561
561
|
for (var i in n)
|
|
562
562
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
563
|
-
},
|
|
563
|
+
}, tt(e, t);
|
|
564
564
|
};
|
|
565
|
-
function
|
|
565
|
+
function q(e, t) {
|
|
566
566
|
if (typeof t != "function" && t !== null)
|
|
567
567
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
568
|
-
|
|
568
|
+
tt(e, t);
|
|
569
569
|
function r() {
|
|
570
570
|
this.constructor = e;
|
|
571
571
|
}
|
|
572
572
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
var w = function() {
|
|
575
|
+
return w = Object.assign || function(t) {
|
|
576
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
577
|
+
r = arguments[n];
|
|
578
|
+
for (var o in r)
|
|
579
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
580
|
+
}
|
|
581
|
+
return t;
|
|
582
|
+
}, w.apply(this, arguments);
|
|
583
|
+
};
|
|
584
|
+
function Ln(e, t) {
|
|
585
|
+
var r = {};
|
|
586
|
+
for (var n in e)
|
|
587
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
588
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
589
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
590
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
591
|
+
return r;
|
|
592
|
+
}
|
|
593
|
+
function rt(e) {
|
|
575
594
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
576
595
|
if (r)
|
|
577
596
|
return r.call(e);
|
|
@@ -583,7 +602,7 @@ function ot(e) {
|
|
|
583
602
|
};
|
|
584
603
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
585
604
|
}
|
|
586
|
-
function
|
|
605
|
+
function nt(e, t) {
|
|
587
606
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
588
607
|
if (!r)
|
|
589
608
|
return e;
|
|
@@ -603,22 +622,22 @@ function at(e, t) {
|
|
|
603
622
|
}
|
|
604
623
|
return o;
|
|
605
624
|
}
|
|
606
|
-
function
|
|
607
|
-
if (arguments.length === 2)
|
|
625
|
+
function le(e, t, r) {
|
|
626
|
+
if (r || arguments.length === 2)
|
|
608
627
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
609
628
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
610
629
|
return e.concat(o || t);
|
|
611
630
|
}
|
|
612
|
-
function
|
|
631
|
+
function Z(e) {
|
|
613
632
|
return typeof e == "function";
|
|
614
633
|
}
|
|
615
|
-
function
|
|
634
|
+
function pr(e) {
|
|
616
635
|
var t = function(n) {
|
|
617
636
|
Error.call(n), n.stack = new Error().stack;
|
|
618
637
|
}, r = e(t);
|
|
619
638
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
620
639
|
}
|
|
621
|
-
var
|
|
640
|
+
var Ze = pr(function(e) {
|
|
622
641
|
return function(r) {
|
|
623
642
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
624
643
|
` + r.map(function(n, i) {
|
|
@@ -627,13 +646,13 @@ var qe = xr(function(e) {
|
|
|
627
646
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
628
647
|
};
|
|
629
648
|
});
|
|
630
|
-
function
|
|
649
|
+
function it(e, t) {
|
|
631
650
|
if (e) {
|
|
632
651
|
var r = e.indexOf(t);
|
|
633
652
|
0 <= r && e.splice(r, 1);
|
|
634
653
|
}
|
|
635
654
|
}
|
|
636
|
-
var
|
|
655
|
+
var Fe = function() {
|
|
637
656
|
function e(t) {
|
|
638
657
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
639
658
|
}
|
|
@@ -645,15 +664,15 @@ var ke = function() {
|
|
|
645
664
|
if (a)
|
|
646
665
|
if (this._parentage = null, Array.isArray(a))
|
|
647
666
|
try {
|
|
648
|
-
for (var s =
|
|
649
|
-
var
|
|
650
|
-
|
|
667
|
+
for (var s = rt(a), l = s.next(); !l.done; l = s.next()) {
|
|
668
|
+
var u = l.value;
|
|
669
|
+
u.remove(this);
|
|
651
670
|
}
|
|
652
671
|
} catch (y) {
|
|
653
672
|
t = { error: y };
|
|
654
673
|
} finally {
|
|
655
674
|
try {
|
|
656
|
-
|
|
675
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
657
676
|
} finally {
|
|
658
677
|
if (t)
|
|
659
678
|
throw t.error;
|
|
@@ -661,30 +680,30 @@ var ke = function() {
|
|
|
661
680
|
}
|
|
662
681
|
else
|
|
663
682
|
a.remove(this);
|
|
664
|
-
var
|
|
665
|
-
if (
|
|
683
|
+
var h = this.initialTeardown;
|
|
684
|
+
if (Z(h))
|
|
666
685
|
try {
|
|
667
|
-
|
|
686
|
+
h();
|
|
668
687
|
} catch (y) {
|
|
669
|
-
o = y instanceof
|
|
688
|
+
o = y instanceof Ze ? y.errors : [y];
|
|
670
689
|
}
|
|
671
|
-
var
|
|
672
|
-
if (
|
|
690
|
+
var c = this._finalizers;
|
|
691
|
+
if (c) {
|
|
673
692
|
this._finalizers = null;
|
|
674
693
|
try {
|
|
675
|
-
for (var f =
|
|
676
|
-
var
|
|
694
|
+
for (var f = rt(c), m = f.next(); !m.done; m = f.next()) {
|
|
695
|
+
var p = m.value;
|
|
677
696
|
try {
|
|
678
|
-
|
|
697
|
+
At(p);
|
|
679
698
|
} catch (y) {
|
|
680
|
-
o = o ?? [], y instanceof
|
|
699
|
+
o = o ?? [], y instanceof Ze ? o = le(le([], nt(o)), nt(y.errors)) : o.push(y);
|
|
681
700
|
}
|
|
682
701
|
}
|
|
683
702
|
} catch (y) {
|
|
684
703
|
n = { error: y };
|
|
685
704
|
} finally {
|
|
686
705
|
try {
|
|
687
|
-
|
|
706
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
688
707
|
} finally {
|
|
689
708
|
if (n)
|
|
690
709
|
throw n.error;
|
|
@@ -692,13 +711,13 @@ var ke = function() {
|
|
|
692
711
|
}
|
|
693
712
|
}
|
|
694
713
|
if (o)
|
|
695
|
-
throw new
|
|
714
|
+
throw new Ze(o);
|
|
696
715
|
}
|
|
697
716
|
}, e.prototype.add = function(t) {
|
|
698
717
|
var r;
|
|
699
718
|
if (t && t !== this)
|
|
700
719
|
if (this.closed)
|
|
701
|
-
|
|
720
|
+
At(t);
|
|
702
721
|
else {
|
|
703
722
|
if (t instanceof e) {
|
|
704
723
|
if (t.closed || t._hasParent(this))
|
|
@@ -715,52 +734,52 @@ var ke = function() {
|
|
|
715
734
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
716
735
|
}, e.prototype._removeParent = function(t) {
|
|
717
736
|
var r = this._parentage;
|
|
718
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
737
|
+
r === t ? this._parentage = null : Array.isArray(r) && it(r, t);
|
|
719
738
|
}, e.prototype.remove = function(t) {
|
|
720
739
|
var r = this._finalizers;
|
|
721
|
-
r &&
|
|
740
|
+
r && it(r, t), t instanceof e && t._removeParent(this);
|
|
722
741
|
}, e.EMPTY = function() {
|
|
723
742
|
var t = new e();
|
|
724
743
|
return t.closed = !0, t;
|
|
725
744
|
}(), e;
|
|
726
|
-
}(),
|
|
727
|
-
function
|
|
728
|
-
return e instanceof
|
|
745
|
+
}(), br = Fe.EMPTY;
|
|
746
|
+
function yr(e) {
|
|
747
|
+
return e instanceof Fe || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
|
|
729
748
|
}
|
|
730
|
-
function
|
|
731
|
-
|
|
749
|
+
function At(e) {
|
|
750
|
+
Z(e) ? e() : e.unsubscribe();
|
|
732
751
|
}
|
|
733
|
-
var
|
|
752
|
+
var Pn = {
|
|
734
753
|
Promise: void 0
|
|
735
|
-
},
|
|
754
|
+
}, Bn = {
|
|
736
755
|
setTimeout: function(e, t) {
|
|
737
756
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
738
757
|
r[n - 2] = arguments[n];
|
|
739
|
-
return setTimeout.apply(void 0,
|
|
758
|
+
return setTimeout.apply(void 0, le([e, t], nt(r)));
|
|
740
759
|
},
|
|
741
760
|
clearTimeout: function(e) {
|
|
742
761
|
return clearTimeout(e);
|
|
743
762
|
},
|
|
744
763
|
delegate: void 0
|
|
745
764
|
};
|
|
746
|
-
function
|
|
747
|
-
|
|
765
|
+
function In(e) {
|
|
766
|
+
Bn.setTimeout(function() {
|
|
748
767
|
throw e;
|
|
749
768
|
});
|
|
750
769
|
}
|
|
751
|
-
function
|
|
770
|
+
function Lt() {
|
|
752
771
|
}
|
|
753
|
-
function
|
|
772
|
+
function Pe(e) {
|
|
754
773
|
e();
|
|
755
774
|
}
|
|
756
|
-
var
|
|
757
|
-
|
|
775
|
+
var vr = function(e) {
|
|
776
|
+
q(t, e);
|
|
758
777
|
function t(r) {
|
|
759
778
|
var n = e.call(this) || this;
|
|
760
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
779
|
+
return n.isStopped = !1, r ? (n.destination = r, yr(r) && r.add(n)) : n.destination = Rn, n;
|
|
761
780
|
}
|
|
762
781
|
return t.create = function(r, n, i) {
|
|
763
|
-
return new
|
|
782
|
+
return new ot(r, n, i);
|
|
764
783
|
}, t.prototype.next = function(r) {
|
|
765
784
|
this.isStopped || this._next(r);
|
|
766
785
|
}, t.prototype.error = function(r) {
|
|
@@ -784,7 +803,7 @@ var Sr = function(e) {
|
|
|
784
803
|
this.unsubscribe();
|
|
785
804
|
}
|
|
786
805
|
}, t;
|
|
787
|
-
}(
|
|
806
|
+
}(Fe), Cn = function() {
|
|
788
807
|
function e(t) {
|
|
789
808
|
this.partialObserver = t;
|
|
790
809
|
}
|
|
@@ -815,43 +834,43 @@ var Sr = function(e) {
|
|
|
815
834
|
Oe(r);
|
|
816
835
|
}
|
|
817
836
|
}, e;
|
|
818
|
-
}(),
|
|
819
|
-
|
|
837
|
+
}(), ot = function(e) {
|
|
838
|
+
q(t, e);
|
|
820
839
|
function t(r, n, i) {
|
|
821
840
|
var o = e.call(this) || this, a;
|
|
822
|
-
return
|
|
841
|
+
return Z(r) || !r ? a = {
|
|
823
842
|
next: r ?? void 0,
|
|
824
843
|
error: n ?? void 0,
|
|
825
844
|
complete: i ?? void 0
|
|
826
|
-
} : a = r, o.destination = new
|
|
845
|
+
} : a = r, o.destination = new Cn(a), o;
|
|
827
846
|
}
|
|
828
847
|
return t;
|
|
829
|
-
}(
|
|
848
|
+
}(vr);
|
|
830
849
|
function Oe(e) {
|
|
831
|
-
|
|
850
|
+
In(e);
|
|
832
851
|
}
|
|
833
|
-
function
|
|
852
|
+
function Nn(e) {
|
|
834
853
|
throw e;
|
|
835
854
|
}
|
|
836
|
-
var
|
|
855
|
+
var Rn = {
|
|
837
856
|
closed: !0,
|
|
838
|
-
next:
|
|
839
|
-
error:
|
|
840
|
-
complete:
|
|
841
|
-
},
|
|
857
|
+
next: Lt,
|
|
858
|
+
error: Nn,
|
|
859
|
+
complete: Lt
|
|
860
|
+
}, Un = function() {
|
|
842
861
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
843
862
|
}();
|
|
844
|
-
function
|
|
863
|
+
function Fn(e) {
|
|
845
864
|
return e;
|
|
846
865
|
}
|
|
847
|
-
function
|
|
848
|
-
return e.length === 0 ?
|
|
866
|
+
function kn(e) {
|
|
867
|
+
return e.length === 0 ? Fn : e.length === 1 ? e[0] : function(r) {
|
|
849
868
|
return e.reduce(function(n, i) {
|
|
850
869
|
return i(n);
|
|
851
870
|
}, r);
|
|
852
871
|
};
|
|
853
872
|
}
|
|
854
|
-
var
|
|
873
|
+
var Pt = function() {
|
|
855
874
|
function e(t) {
|
|
856
875
|
t && (this._subscribe = t);
|
|
857
876
|
}
|
|
@@ -859,10 +878,10 @@ var Rt = function() {
|
|
|
859
878
|
var r = new e();
|
|
860
879
|
return r.source = this, r.operator = t, r;
|
|
861
880
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
862
|
-
var i = this, o =
|
|
863
|
-
return
|
|
864
|
-
var a = i, s = a.operator,
|
|
865
|
-
o.add(s ? s.call(o,
|
|
881
|
+
var i = this, o = Gn(t) ? t : new ot(t, r, n);
|
|
882
|
+
return Pe(function() {
|
|
883
|
+
var a = i, s = a.operator, l = a.source;
|
|
884
|
+
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
866
885
|
}), o;
|
|
867
886
|
}, e.prototype._trySubscribe = function(t) {
|
|
868
887
|
try {
|
|
@@ -872,13 +891,13 @@ var Rt = function() {
|
|
|
872
891
|
}
|
|
873
892
|
}, e.prototype.forEach = function(t, r) {
|
|
874
893
|
var n = this;
|
|
875
|
-
return r =
|
|
876
|
-
var a = new
|
|
894
|
+
return r = Bt(r), new r(function(i, o) {
|
|
895
|
+
var a = new ot({
|
|
877
896
|
next: function(s) {
|
|
878
897
|
try {
|
|
879
898
|
t(s);
|
|
880
|
-
} catch (
|
|
881
|
-
o(
|
|
899
|
+
} catch (l) {
|
|
900
|
+
o(l), a.unsubscribe();
|
|
882
901
|
}
|
|
883
902
|
},
|
|
884
903
|
error: o,
|
|
@@ -889,15 +908,15 @@ var Rt = function() {
|
|
|
889
908
|
}, e.prototype._subscribe = function(t) {
|
|
890
909
|
var r;
|
|
891
910
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
892
|
-
}, e.prototype[
|
|
911
|
+
}, e.prototype[Un] = function() {
|
|
893
912
|
return this;
|
|
894
913
|
}, e.prototype.pipe = function() {
|
|
895
914
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
896
915
|
t[r] = arguments[r];
|
|
897
|
-
return
|
|
916
|
+
return kn(t)(this);
|
|
898
917
|
}, e.prototype.toPromise = function(t) {
|
|
899
918
|
var r = this;
|
|
900
|
-
return t =
|
|
919
|
+
return t = Bt(t), new t(function(n, i) {
|
|
901
920
|
var o;
|
|
902
921
|
r.subscribe(function(a) {
|
|
903
922
|
return o = a;
|
|
@@ -911,45 +930,45 @@ var Rt = function() {
|
|
|
911
930
|
return new e(t);
|
|
912
931
|
}, e;
|
|
913
932
|
}();
|
|
914
|
-
function
|
|
933
|
+
function Bt(e) {
|
|
915
934
|
var t;
|
|
916
|
-
return (t = e ??
|
|
935
|
+
return (t = e ?? Pn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
917
936
|
}
|
|
918
|
-
function
|
|
919
|
-
return e &&
|
|
937
|
+
function Dn(e) {
|
|
938
|
+
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
|
920
939
|
}
|
|
921
|
-
function
|
|
922
|
-
return e && e instanceof
|
|
940
|
+
function Gn(e) {
|
|
941
|
+
return e && e instanceof vr || Dn(e) && yr(e);
|
|
923
942
|
}
|
|
924
|
-
var
|
|
943
|
+
var $n = pr(function(e) {
|
|
925
944
|
return function() {
|
|
926
945
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
927
946
|
};
|
|
928
|
-
}),
|
|
929
|
-
|
|
947
|
+
}), _r = function(e) {
|
|
948
|
+
q(t, e);
|
|
930
949
|
function t() {
|
|
931
950
|
var r = e.call(this) || this;
|
|
932
951
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
933
952
|
}
|
|
934
953
|
return t.prototype.lift = function(r) {
|
|
935
|
-
var n = new
|
|
954
|
+
var n = new It(this, this);
|
|
936
955
|
return n.operator = r, n;
|
|
937
956
|
}, t.prototype._throwIfClosed = function() {
|
|
938
957
|
if (this.closed)
|
|
939
|
-
throw new
|
|
958
|
+
throw new $n();
|
|
940
959
|
}, t.prototype.next = function(r) {
|
|
941
960
|
var n = this;
|
|
942
|
-
|
|
961
|
+
Pe(function() {
|
|
943
962
|
var i, o;
|
|
944
963
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
945
964
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
946
965
|
try {
|
|
947
|
-
for (var a =
|
|
948
|
-
var
|
|
949
|
-
|
|
966
|
+
for (var a = rt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
967
|
+
var l = s.value;
|
|
968
|
+
l.next(r);
|
|
950
969
|
}
|
|
951
|
-
} catch (
|
|
952
|
-
i = { error:
|
|
970
|
+
} catch (u) {
|
|
971
|
+
i = { error: u };
|
|
953
972
|
} finally {
|
|
954
973
|
try {
|
|
955
974
|
s && !s.done && (o = a.return) && o.call(a);
|
|
@@ -962,7 +981,7 @@ var Xn = xr(function(e) {
|
|
|
962
981
|
});
|
|
963
982
|
}, t.prototype.error = function(r) {
|
|
964
983
|
var n = this;
|
|
965
|
-
|
|
984
|
+
Pe(function() {
|
|
966
985
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
967
986
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
968
987
|
for (var i = n.observers; i.length; )
|
|
@@ -971,7 +990,7 @@ var Xn = xr(function(e) {
|
|
|
971
990
|
});
|
|
972
991
|
}, t.prototype.complete = function() {
|
|
973
992
|
var r = this;
|
|
974
|
-
|
|
993
|
+
Pe(function() {
|
|
975
994
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
976
995
|
r.isStopped = !0;
|
|
977
996
|
for (var n = r.observers; n.length; )
|
|
@@ -993,20 +1012,20 @@ var Xn = xr(function(e) {
|
|
|
993
1012
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
994
1013
|
}, t.prototype._innerSubscribe = function(r) {
|
|
995
1014
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
996
|
-
return o || a ?
|
|
997
|
-
n.currentObservers = null,
|
|
1015
|
+
return o || a ? br : (this.currentObservers = null, s.push(r), new Fe(function() {
|
|
1016
|
+
n.currentObservers = null, it(s, r);
|
|
998
1017
|
}));
|
|
999
1018
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1000
1019
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1001
1020
|
i ? r.error(o) : a && r.complete();
|
|
1002
1021
|
}, t.prototype.asObservable = function() {
|
|
1003
|
-
var r = new
|
|
1022
|
+
var r = new Pt();
|
|
1004
1023
|
return r.source = this, r;
|
|
1005
1024
|
}, t.create = function(r, n) {
|
|
1006
|
-
return new
|
|
1025
|
+
return new It(r, n);
|
|
1007
1026
|
}, t;
|
|
1008
|
-
}(
|
|
1009
|
-
|
|
1027
|
+
}(Pt), It = function(e) {
|
|
1028
|
+
q(t, e);
|
|
1010
1029
|
function t(r, n) {
|
|
1011
1030
|
var i = e.call(this) || this;
|
|
1012
1031
|
return i.destination = r, i.source = n, i;
|
|
@@ -1022,60 +1041,60 @@ var Xn = xr(function(e) {
|
|
|
1022
1041
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1023
1042
|
}, t.prototype._subscribe = function(r) {
|
|
1024
1043
|
var n, i;
|
|
1025
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1044
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : br;
|
|
1026
1045
|
}, t;
|
|
1027
|
-
}(
|
|
1046
|
+
}(_r), xr = {
|
|
1028
1047
|
now: function() {
|
|
1029
|
-
return (
|
|
1048
|
+
return (xr.delegate || Date).now();
|
|
1030
1049
|
},
|
|
1031
1050
|
delegate: void 0
|
|
1032
|
-
},
|
|
1033
|
-
|
|
1051
|
+
}, jn = function(e) {
|
|
1052
|
+
q(t, e);
|
|
1034
1053
|
function t(r, n, i) {
|
|
1035
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1054
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = xr);
|
|
1036
1055
|
var o = e.call(this) || this;
|
|
1037
1056
|
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;
|
|
1038
1057
|
}
|
|
1039
1058
|
return t.prototype.next = function(r) {
|
|
1040
|
-
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider,
|
|
1041
|
-
i || (o.push(r), !a && o.push(s.now() +
|
|
1059
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1060
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1042
1061
|
}, t.prototype._subscribe = function(r) {
|
|
1043
1062
|
this._throwIfClosed(), this._trimBuffer();
|
|
1044
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(),
|
|
1045
|
-
r.next(s[
|
|
1063
|
+
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)
|
|
1064
|
+
r.next(s[l]);
|
|
1046
1065
|
return this._checkFinalizedStatuses(r), n;
|
|
1047
1066
|
}, t.prototype._trimBuffer = function() {
|
|
1048
1067
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1049
1068
|
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1050
|
-
for (var
|
|
1051
|
-
|
|
1052
|
-
|
|
1069
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1070
|
+
u = h;
|
|
1071
|
+
u && o.splice(0, u + 1);
|
|
1053
1072
|
}
|
|
1054
1073
|
}, t;
|
|
1055
|
-
}(
|
|
1056
|
-
const
|
|
1057
|
-
if (
|
|
1058
|
-
const r = new
|
|
1059
|
-
|
|
1074
|
+
}(_r);
|
|
1075
|
+
const Ct = [], Nt = {}, Wn = (e, t = 0) => {
|
|
1076
|
+
if (Ct.indexOf(e) == -1) {
|
|
1077
|
+
const r = new jn(t);
|
|
1078
|
+
Nt[e] = r, Ct.push(e);
|
|
1060
1079
|
}
|
|
1061
|
-
return
|
|
1080
|
+
return Nt[e];
|
|
1062
1081
|
}, oe = [];
|
|
1063
|
-
function
|
|
1082
|
+
function Vn(e, t) {
|
|
1064
1083
|
return {
|
|
1065
|
-
subscribe:
|
|
1084
|
+
subscribe: ke(e, t).subscribe
|
|
1066
1085
|
};
|
|
1067
1086
|
}
|
|
1068
|
-
function
|
|
1087
|
+
function ke(e, t = $) {
|
|
1069
1088
|
let r;
|
|
1070
1089
|
const n = /* @__PURE__ */ new Set();
|
|
1071
1090
|
function i(s) {
|
|
1072
|
-
if (
|
|
1073
|
-
const
|
|
1074
|
-
for (const
|
|
1075
|
-
|
|
1076
|
-
if (
|
|
1077
|
-
for (let
|
|
1078
|
-
oe[
|
|
1091
|
+
if (cr(e, s) && (e = s, r)) {
|
|
1092
|
+
const l = !oe.length;
|
|
1093
|
+
for (const u of n)
|
|
1094
|
+
u[1](), oe.push(u, e);
|
|
1095
|
+
if (l) {
|
|
1096
|
+
for (let u = 0; u < oe.length; u += 2)
|
|
1097
|
+
oe[u][0](oe[u + 1]);
|
|
1079
1098
|
oe.length = 0;
|
|
1080
1099
|
}
|
|
1081
1100
|
}
|
|
@@ -1083,110 +1102,110 @@ function De(e, t = $) {
|
|
|
1083
1102
|
function o(s) {
|
|
1084
1103
|
i(s(e));
|
|
1085
1104
|
}
|
|
1086
|
-
function a(s,
|
|
1087
|
-
const
|
|
1088
|
-
return n.add(
|
|
1089
|
-
n.delete(
|
|
1105
|
+
function a(s, l = $) {
|
|
1106
|
+
const u = [s, l];
|
|
1107
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || $), s(e), () => {
|
|
1108
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1090
1109
|
};
|
|
1091
1110
|
}
|
|
1092
1111
|
return { set: i, update: o, subscribe: a };
|
|
1093
1112
|
}
|
|
1094
|
-
function
|
|
1113
|
+
function ge(e, t, r) {
|
|
1095
1114
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1096
1115
|
if (!i.every(Boolean))
|
|
1097
1116
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1098
1117
|
const o = t.length < 2;
|
|
1099
|
-
return
|
|
1100
|
-
let
|
|
1101
|
-
const
|
|
1102
|
-
let
|
|
1118
|
+
return Vn(r, (a, s) => {
|
|
1119
|
+
let l = !1;
|
|
1120
|
+
const u = [];
|
|
1121
|
+
let h = 0, c = $;
|
|
1103
1122
|
const f = () => {
|
|
1104
|
-
if (
|
|
1123
|
+
if (h)
|
|
1105
1124
|
return;
|
|
1106
|
-
|
|
1107
|
-
const
|
|
1108
|
-
o ? a(
|
|
1109
|
-
},
|
|
1110
|
-
(
|
|
1111
|
-
|
|
1112
|
-
(
|
|
1113
|
-
|
|
1125
|
+
c();
|
|
1126
|
+
const p = t(n ? u[0] : u, a, s);
|
|
1127
|
+
o ? a(p) : c = mt(p) ? p : $;
|
|
1128
|
+
}, m = i.map(
|
|
1129
|
+
(p, y) => fr(
|
|
1130
|
+
p,
|
|
1131
|
+
(S) => {
|
|
1132
|
+
u[y] = S, h &= ~(1 << y), l && f();
|
|
1114
1133
|
},
|
|
1115
1134
|
() => {
|
|
1116
|
-
|
|
1135
|
+
h |= 1 << y;
|
|
1117
1136
|
}
|
|
1118
1137
|
)
|
|
1119
1138
|
);
|
|
1120
|
-
return
|
|
1121
|
-
|
|
1139
|
+
return l = !0, f(), function() {
|
|
1140
|
+
de(m), c(), l = !1;
|
|
1122
1141
|
};
|
|
1123
1142
|
});
|
|
1124
1143
|
}
|
|
1125
|
-
var
|
|
1126
|
-
function
|
|
1144
|
+
var na = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1145
|
+
function Xn(e) {
|
|
1127
1146
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1128
1147
|
}
|
|
1129
|
-
var
|
|
1130
|
-
return
|
|
1148
|
+
var zn = function(t) {
|
|
1149
|
+
return Zn(t) && !Qn(t);
|
|
1131
1150
|
};
|
|
1132
|
-
function
|
|
1151
|
+
function Zn(e) {
|
|
1133
1152
|
return !!e && typeof e == "object";
|
|
1134
1153
|
}
|
|
1135
|
-
function
|
|
1154
|
+
function Qn(e) {
|
|
1136
1155
|
var t = Object.prototype.toString.call(e);
|
|
1137
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1156
|
+
return t === "[object RegExp]" || t === "[object Date]" || Yn(e);
|
|
1138
1157
|
}
|
|
1139
|
-
var
|
|
1140
|
-
function
|
|
1141
|
-
return e.$$typeof ===
|
|
1158
|
+
var qn = typeof Symbol == "function" && Symbol.for, Jn = qn ? Symbol.for("react.element") : 60103;
|
|
1159
|
+
function Yn(e) {
|
|
1160
|
+
return e.$$typeof === Jn;
|
|
1142
1161
|
}
|
|
1143
|
-
function
|
|
1162
|
+
function Kn(e) {
|
|
1144
1163
|
return Array.isArray(e) ? [] : {};
|
|
1145
1164
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ue(
|
|
1165
|
+
function xe(e, t) {
|
|
1166
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ue(Kn(e), e, t) : e;
|
|
1148
1167
|
}
|
|
1149
|
-
function
|
|
1168
|
+
function ei(e, t, r) {
|
|
1150
1169
|
return e.concat(t).map(function(n) {
|
|
1151
|
-
return
|
|
1170
|
+
return xe(n, r);
|
|
1152
1171
|
});
|
|
1153
1172
|
}
|
|
1154
|
-
function
|
|
1173
|
+
function ti(e, t) {
|
|
1155
1174
|
if (!t.customMerge)
|
|
1156
1175
|
return ue;
|
|
1157
1176
|
var r = t.customMerge(e);
|
|
1158
1177
|
return typeof r == "function" ? r : ue;
|
|
1159
1178
|
}
|
|
1160
|
-
function
|
|
1179
|
+
function ri(e) {
|
|
1161
1180
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1162
1181
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1163
1182
|
}) : [];
|
|
1164
1183
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return Object.keys(e).concat(
|
|
1184
|
+
function Rt(e) {
|
|
1185
|
+
return Object.keys(e).concat(ri(e));
|
|
1167
1186
|
}
|
|
1168
|
-
function
|
|
1187
|
+
function Er(e, t) {
|
|
1169
1188
|
try {
|
|
1170
1189
|
return t in e;
|
|
1171
1190
|
} catch {
|
|
1172
1191
|
return !1;
|
|
1173
1192
|
}
|
|
1174
1193
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1194
|
+
function ni(e, t) {
|
|
1195
|
+
return Er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1177
1196
|
}
|
|
1178
|
-
function
|
|
1197
|
+
function ii(e, t, r) {
|
|
1179
1198
|
var n = {};
|
|
1180
|
-
return r.isMergeableObject(e) &&
|
|
1181
|
-
n[i] =
|
|
1182
|
-
}),
|
|
1183
|
-
|
|
1199
|
+
return r.isMergeableObject(e) && Rt(e).forEach(function(i) {
|
|
1200
|
+
n[i] = xe(e[i], r);
|
|
1201
|
+
}), Rt(t).forEach(function(i) {
|
|
1202
|
+
ni(e, i) || (Er(e, i) && r.isMergeableObject(t[i]) ? n[i] = ti(i, r)(e[i], t[i], r) : n[i] = xe(t[i], r));
|
|
1184
1203
|
}), n;
|
|
1185
1204
|
}
|
|
1186
1205
|
function ue(e, t, r) {
|
|
1187
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1206
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ei, r.isMergeableObject = r.isMergeableObject || zn, r.cloneUnlessOtherwiseSpecified = xe;
|
|
1188
1207
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1189
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1208
|
+
return o ? n ? r.arrayMerge(e, t, r) : ii(e, t, r) : xe(t, r);
|
|
1190
1209
|
}
|
|
1191
1210
|
ue.all = function(t, r) {
|
|
1192
1211
|
if (!Array.isArray(t))
|
|
@@ -1195,81 +1214,39 @@ ue.all = function(t, r) {
|
|
|
1195
1214
|
return ue(n, i, r);
|
|
1196
1215
|
}, {});
|
|
1197
1216
|
};
|
|
1198
|
-
var
|
|
1199
|
-
const
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
r.__proto__ = n;
|
|
1203
|
-
} || function(r, n) {
|
|
1204
|
-
for (var i in n)
|
|
1205
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1206
|
-
}, ct(e, t);
|
|
1207
|
-
};
|
|
1208
|
-
function Ge(e, t) {
|
|
1209
|
-
if (typeof t != "function" && t !== null)
|
|
1210
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1211
|
-
ct(e, t);
|
|
1212
|
-
function r() {
|
|
1213
|
-
this.constructor = e;
|
|
1214
|
-
}
|
|
1215
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1216
|
-
}
|
|
1217
|
-
var X = function() {
|
|
1218
|
-
return X = Object.assign || function(t) {
|
|
1219
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1220
|
-
r = arguments[n];
|
|
1221
|
-
for (var o in r)
|
|
1222
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1223
|
-
}
|
|
1224
|
-
return t;
|
|
1225
|
-
}, X.apply(this, arguments);
|
|
1226
|
-
};
|
|
1227
|
-
function fi(e, t) {
|
|
1228
|
-
var r = {};
|
|
1229
|
-
for (var n in e)
|
|
1230
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1231
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1232
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1233
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1234
|
-
return r;
|
|
1235
|
-
}
|
|
1236
|
-
function Je(e, t, r) {
|
|
1237
|
-
if (r || arguments.length === 2)
|
|
1238
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1239
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1240
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1241
|
-
}
|
|
1242
|
-
function Ye(e, t) {
|
|
1243
|
-
var r = t && t.cache ? t.cache : vi, n = t && t.serializer ? t.serializer : bi, i = t && t.strategy ? t.strategy : gi;
|
|
1217
|
+
var oi = ue, ai = oi;
|
|
1218
|
+
const si = /* @__PURE__ */ Xn(ai);
|
|
1219
|
+
function Qe(e, t) {
|
|
1220
|
+
var r = t && t.cache ? t.cache : mi, n = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : hi;
|
|
1244
1221
|
return i(e, {
|
|
1245
1222
|
cache: r,
|
|
1246
1223
|
serializer: n
|
|
1247
1224
|
});
|
|
1248
1225
|
}
|
|
1249
|
-
function
|
|
1226
|
+
function li(e) {
|
|
1250
1227
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1251
1228
|
}
|
|
1252
|
-
function
|
|
1253
|
-
var i =
|
|
1229
|
+
function ui(e, t, r, n) {
|
|
1230
|
+
var i = li(n) ? n : r(n), o = t.get(i);
|
|
1254
1231
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1255
1232
|
}
|
|
1256
|
-
function
|
|
1233
|
+
function wr(e, t, r) {
|
|
1257
1234
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1258
1235
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1259
1236
|
}
|
|
1260
|
-
function
|
|
1237
|
+
function Sr(e, t, r, n, i) {
|
|
1261
1238
|
return r.bind(t, e, n, i);
|
|
1262
1239
|
}
|
|
1263
|
-
function
|
|
1264
|
-
var r = e.length === 1 ?
|
|
1265
|
-
return
|
|
1240
|
+
function hi(e, t) {
|
|
1241
|
+
var r = e.length === 1 ? ui : wr;
|
|
1242
|
+
return Sr(e, this, r, t.cache.create(), t.serializer);
|
|
1266
1243
|
}
|
|
1267
|
-
function
|
|
1268
|
-
return
|
|
1244
|
+
function ci(e, t) {
|
|
1245
|
+
return Sr(e, this, wr, t.cache.create(), t.serializer);
|
|
1269
1246
|
}
|
|
1270
|
-
var
|
|
1247
|
+
var fi = function() {
|
|
1271
1248
|
return JSON.stringify(arguments);
|
|
1272
|
-
},
|
|
1249
|
+
}, di = (
|
|
1273
1250
|
/** @class */
|
|
1274
1251
|
function() {
|
|
1275
1252
|
function e() {
|
|
@@ -1281,71 +1258,61 @@ var bi = function() {
|
|
|
1281
1258
|
this.cache[t] = r;
|
|
1282
1259
|
}, e;
|
|
1283
1260
|
}()
|
|
1284
|
-
),
|
|
1261
|
+
), mi = {
|
|
1285
1262
|
create: function() {
|
|
1286
|
-
return new
|
|
1263
|
+
return new di();
|
|
1287
1264
|
}
|
|
1288
|
-
},
|
|
1289
|
-
variadic:
|
|
1290
|
-
},
|
|
1291
|
-
return Re = Object.assign || function(t) {
|
|
1292
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1293
|
-
r = arguments[n];
|
|
1294
|
-
for (var o in r)
|
|
1295
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1296
|
-
}
|
|
1297
|
-
return t;
|
|
1298
|
-
}, Re.apply(this, arguments);
|
|
1299
|
-
};
|
|
1300
|
-
var _;
|
|
1265
|
+
}, qe = {
|
|
1266
|
+
variadic: ci
|
|
1267
|
+
}, _;
|
|
1301
1268
|
(function(e) {
|
|
1302
1269
|
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";
|
|
1303
1270
|
})(_ || (_ = {}));
|
|
1304
|
-
var
|
|
1271
|
+
var O;
|
|
1305
1272
|
(function(e) {
|
|
1306
1273
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1307
|
-
})(
|
|
1308
|
-
var
|
|
1274
|
+
})(O || (O = {}));
|
|
1275
|
+
var he;
|
|
1309
1276
|
(function(e) {
|
|
1310
1277
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1311
|
-
})(
|
|
1312
|
-
function
|
|
1313
|
-
return e.type ===
|
|
1278
|
+
})(he || (he = {}));
|
|
1279
|
+
function Ut(e) {
|
|
1280
|
+
return e.type === O.literal;
|
|
1314
1281
|
}
|
|
1315
|
-
function
|
|
1316
|
-
return e.type ===
|
|
1282
|
+
function gi(e) {
|
|
1283
|
+
return e.type === O.argument;
|
|
1317
1284
|
}
|
|
1318
|
-
function
|
|
1319
|
-
return e.type ===
|
|
1285
|
+
function Hr(e) {
|
|
1286
|
+
return e.type === O.number;
|
|
1320
1287
|
}
|
|
1321
|
-
function
|
|
1322
|
-
return e.type ===
|
|
1288
|
+
function Tr(e) {
|
|
1289
|
+
return e.type === O.date;
|
|
1323
1290
|
}
|
|
1324
|
-
function
|
|
1325
|
-
return e.type ===
|
|
1291
|
+
function Or(e) {
|
|
1292
|
+
return e.type === O.time;
|
|
1326
1293
|
}
|
|
1327
|
-
function
|
|
1328
|
-
return e.type ===
|
|
1294
|
+
function Mr(e) {
|
|
1295
|
+
return e.type === O.select;
|
|
1329
1296
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return e.type ===
|
|
1297
|
+
function Ar(e) {
|
|
1298
|
+
return e.type === O.plural;
|
|
1332
1299
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return e.type ===
|
|
1300
|
+
function pi(e) {
|
|
1301
|
+
return e.type === O.pound;
|
|
1335
1302
|
}
|
|
1336
|
-
function
|
|
1337
|
-
return e.type ===
|
|
1303
|
+
function Lr(e) {
|
|
1304
|
+
return e.type === O.tag;
|
|
1338
1305
|
}
|
|
1339
|
-
function
|
|
1340
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1306
|
+
function Pr(e) {
|
|
1307
|
+
return !!(e && typeof e == "object" && e.type === he.number);
|
|
1341
1308
|
}
|
|
1342
|
-
function
|
|
1343
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1309
|
+
function at(e) {
|
|
1310
|
+
return !!(e && typeof e == "object" && e.type === he.dateTime);
|
|
1344
1311
|
}
|
|
1345
|
-
var
|
|
1346
|
-
function
|
|
1312
|
+
var Br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bi = /(?:[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;
|
|
1313
|
+
function yi(e) {
|
|
1347
1314
|
var t = {};
|
|
1348
|
-
return e.replace(
|
|
1315
|
+
return e.replace(bi, function(r) {
|
|
1349
1316
|
var n = r.length;
|
|
1350
1317
|
switch (r[0]) {
|
|
1351
1318
|
case "G":
|
|
@@ -1434,46 +1401,36 @@ function wi(e) {
|
|
|
1434
1401
|
return "";
|
|
1435
1402
|
}), t;
|
|
1436
1403
|
}
|
|
1437
|
-
var
|
|
1438
|
-
|
|
1439
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1440
|
-
r = arguments[n];
|
|
1441
|
-
for (var o in r)
|
|
1442
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1443
|
-
}
|
|
1444
|
-
return t;
|
|
1445
|
-
}, A.apply(this, arguments);
|
|
1446
|
-
};
|
|
1447
|
-
var Si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1448
|
-
function Hi(e) {
|
|
1404
|
+
var vi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1405
|
+
function _i(e) {
|
|
1449
1406
|
if (e.length === 0)
|
|
1450
1407
|
throw new Error("Number skeleton cannot be empty");
|
|
1451
|
-
for (var t = e.split(
|
|
1408
|
+
for (var t = e.split(vi).filter(function(f) {
|
|
1452
1409
|
return f.length > 0;
|
|
1453
1410
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1454
1411
|
var o = i[n], a = o.split("/");
|
|
1455
1412
|
if (a.length === 0)
|
|
1456
1413
|
throw new Error("Invalid number skeleton");
|
|
1457
|
-
for (var s = a[0],
|
|
1458
|
-
var
|
|
1459
|
-
if (
|
|
1414
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1415
|
+
var c = h[u];
|
|
1416
|
+
if (c.length === 0)
|
|
1460
1417
|
throw new Error("Invalid number skeleton");
|
|
1461
1418
|
}
|
|
1462
|
-
r.push({ stem: s, options:
|
|
1419
|
+
r.push({ stem: s, options: l });
|
|
1463
1420
|
}
|
|
1464
1421
|
return r;
|
|
1465
1422
|
}
|
|
1466
|
-
function
|
|
1423
|
+
function xi(e) {
|
|
1467
1424
|
return e.replace(/^(.*?)-/, "");
|
|
1468
1425
|
}
|
|
1469
|
-
var
|
|
1470
|
-
function
|
|
1426
|
+
var Ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ir = /^(@+)?(\+|#+)?[rs]?$/g, Ei = /(\*)(0+)|(#+)(0+)|(0+)/g, Cr = /^(0+)$/;
|
|
1427
|
+
function kt(e) {
|
|
1471
1428
|
var t = {};
|
|
1472
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1429
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ir, function(r, n, i) {
|
|
1473
1430
|
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)), "";
|
|
1474
1431
|
}), t;
|
|
1475
1432
|
}
|
|
1476
|
-
function
|
|
1433
|
+
function Nr(e) {
|
|
1477
1434
|
switch (e) {
|
|
1478
1435
|
case "sign-auto":
|
|
1479
1436
|
return {
|
|
@@ -1513,7 +1470,7 @@ function Dr(e) {
|
|
|
1513
1470
|
};
|
|
1514
1471
|
}
|
|
1515
1472
|
}
|
|
1516
|
-
function
|
|
1473
|
+
function wi(e) {
|
|
1517
1474
|
var t;
|
|
1518
1475
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1519
1476
|
notation: "engineering"
|
|
@@ -1521,17 +1478,17 @@ function Mi(e) {
|
|
|
1521
1478
|
notation: "scientific"
|
|
1522
1479
|
}, e = e.slice(1)), t) {
|
|
1523
1480
|
var r = e.slice(0, 2);
|
|
1524
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1481
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Cr.test(e))
|
|
1525
1482
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1526
1483
|
t.minimumIntegerDigits = e.length;
|
|
1527
1484
|
}
|
|
1528
1485
|
return t;
|
|
1529
1486
|
}
|
|
1530
|
-
function
|
|
1531
|
-
var t = {}, r =
|
|
1487
|
+
function Dt(e) {
|
|
1488
|
+
var t = {}, r = Nr(e);
|
|
1532
1489
|
return r || t;
|
|
1533
1490
|
}
|
|
1534
|
-
function
|
|
1491
|
+
function Si(e) {
|
|
1535
1492
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1536
1493
|
var i = n[r];
|
|
1537
1494
|
switch (i.stem) {
|
|
@@ -1555,7 +1512,7 @@ function Ai(e) {
|
|
|
1555
1512
|
continue;
|
|
1556
1513
|
case "measure-unit":
|
|
1557
1514
|
case "unit":
|
|
1558
|
-
t.style = "unit", t.unit =
|
|
1515
|
+
t.style = "unit", t.unit = xi(i.options[0]);
|
|
1559
1516
|
continue;
|
|
1560
1517
|
case "compact-short":
|
|
1561
1518
|
case "K":
|
|
@@ -1566,13 +1523,13 @@ function Ai(e) {
|
|
|
1566
1523
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1567
1524
|
continue;
|
|
1568
1525
|
case "scientific":
|
|
1569
|
-
t =
|
|
1570
|
-
return
|
|
1526
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1527
|
+
return w(w({}, l), Dt(u));
|
|
1571
1528
|
}, {}));
|
|
1572
1529
|
continue;
|
|
1573
1530
|
case "engineering":
|
|
1574
|
-
t =
|
|
1575
|
-
return
|
|
1531
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1532
|
+
return w(w({}, l), Dt(u));
|
|
1576
1533
|
}, {}));
|
|
1577
1534
|
continue;
|
|
1578
1535
|
case "notation-simple":
|
|
@@ -1617,41 +1574,41 @@ function Ai(e) {
|
|
|
1617
1574
|
case "integer-width":
|
|
1618
1575
|
if (i.options.length > 1)
|
|
1619
1576
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1620
|
-
i.options[0].replace(
|
|
1621
|
-
if (
|
|
1622
|
-
t.minimumIntegerDigits =
|
|
1577
|
+
i.options[0].replace(Ei, function(l, u, h, c, f, m) {
|
|
1578
|
+
if (u)
|
|
1579
|
+
t.minimumIntegerDigits = h.length;
|
|
1623
1580
|
else {
|
|
1624
|
-
if (
|
|
1581
|
+
if (c && f)
|
|
1625
1582
|
throw new Error("We currently do not support maximum integer digits");
|
|
1626
|
-
if (
|
|
1583
|
+
if (m)
|
|
1627
1584
|
throw new Error("We currently do not support exact integer digits");
|
|
1628
1585
|
}
|
|
1629
1586
|
return "";
|
|
1630
1587
|
});
|
|
1631
1588
|
continue;
|
|
1632
1589
|
}
|
|
1633
|
-
if (
|
|
1590
|
+
if (Cr.test(i.stem)) {
|
|
1634
1591
|
t.minimumIntegerDigits = i.stem.length;
|
|
1635
1592
|
continue;
|
|
1636
1593
|
}
|
|
1637
|
-
if (
|
|
1594
|
+
if (Ft.test(i.stem)) {
|
|
1638
1595
|
if (i.options.length > 1)
|
|
1639
1596
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1640
|
-
i.stem.replace(
|
|
1641
|
-
return
|
|
1597
|
+
i.stem.replace(Ft, function(l, u, h, c, f, m) {
|
|
1598
|
+
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), "";
|
|
1642
1599
|
});
|
|
1643
1600
|
var o = i.options[0];
|
|
1644
|
-
o === "w" ? t =
|
|
1601
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), kt(o)));
|
|
1645
1602
|
continue;
|
|
1646
1603
|
}
|
|
1647
|
-
if (
|
|
1648
|
-
t =
|
|
1604
|
+
if (Ir.test(i.stem)) {
|
|
1605
|
+
t = w(w({}, t), kt(i.stem));
|
|
1649
1606
|
continue;
|
|
1650
1607
|
}
|
|
1651
|
-
var a =
|
|
1652
|
-
a && (t =
|
|
1653
|
-
var s =
|
|
1654
|
-
s && (t =
|
|
1608
|
+
var a = Nr(i.stem);
|
|
1609
|
+
a && (t = w(w({}, t), a));
|
|
1610
|
+
var s = wi(i.stem);
|
|
1611
|
+
s && (t = w(w({}, t), s));
|
|
1655
1612
|
}
|
|
1656
1613
|
return t;
|
|
1657
1614
|
}
|
|
@@ -3070,23 +3027,23 @@ var Me = {
|
|
|
3070
3027
|
"h"
|
|
3071
3028
|
]
|
|
3072
3029
|
};
|
|
3073
|
-
function
|
|
3030
|
+
function Hi(e, t) {
|
|
3074
3031
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3075
3032
|
var i = e.charAt(n);
|
|
3076
3033
|
if (i === "j") {
|
|
3077
3034
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3078
3035
|
o++, n++;
|
|
3079
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
3080
|
-
for ((
|
|
3081
|
-
r +=
|
|
3036
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ti(t);
|
|
3037
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3038
|
+
r += l;
|
|
3082
3039
|
for (; a-- > 0; )
|
|
3083
|
-
r =
|
|
3040
|
+
r = u + r;
|
|
3084
3041
|
} else
|
|
3085
3042
|
i === "J" ? r += "H" : r += i;
|
|
3086
3043
|
}
|
|
3087
3044
|
return r;
|
|
3088
3045
|
}
|
|
3089
|
-
function
|
|
3046
|
+
function Ti(e) {
|
|
3090
3047
|
var t = e.hourCycle;
|
|
3091
3048
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3092
3049
|
e.hourCycles && // @ts-ignore
|
|
@@ -3108,20 +3065,20 @@ function Li(e) {
|
|
|
3108
3065
|
var i = Me[n || ""] || Me[r || ""] || Me["".concat(r, "-001")] || Me["001"];
|
|
3109
3066
|
return i[0];
|
|
3110
3067
|
}
|
|
3111
|
-
var
|
|
3068
|
+
var Je, Oi = new RegExp("^".concat(Br.source, "*")), Mi = new RegExp("".concat(Br.source, "*$"));
|
|
3112
3069
|
function E(e, t) {
|
|
3113
3070
|
return { start: e, end: t };
|
|
3114
3071
|
}
|
|
3115
|
-
var
|
|
3072
|
+
var Ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), Li = !!String.fromCodePoint, Pi = !!Object.fromEntries, Bi = !!String.prototype.codePointAt, Ii = !!String.prototype.trimStart, Ci = !!String.prototype.trimEnd, Ni = !!Number.isSafeInteger, Ri = Ni ? Number.isSafeInteger : function(e) {
|
|
3116
3073
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3117
|
-
},
|
|
3074
|
+
}, st = !0;
|
|
3118
3075
|
try {
|
|
3119
|
-
var
|
|
3120
|
-
|
|
3076
|
+
var Ui = Ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3077
|
+
st = ((Je = Ui.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
|
|
3121
3078
|
} catch {
|
|
3122
|
-
|
|
3079
|
+
st = !1;
|
|
3123
3080
|
}
|
|
3124
|
-
var
|
|
3081
|
+
var Gt = Ai ? (
|
|
3125
3082
|
// Native
|
|
3126
3083
|
function(t, r, n) {
|
|
3127
3084
|
return t.startsWith(r, n);
|
|
@@ -3131,7 +3088,7 @@ var Xt = Ci ? (
|
|
|
3131
3088
|
function(t, r, n) {
|
|
3132
3089
|
return t.slice(n, n + r.length) === r;
|
|
3133
3090
|
}
|
|
3134
|
-
),
|
|
3091
|
+
), lt = Li ? String.fromCodePoint : (
|
|
3135
3092
|
// IE11
|
|
3136
3093
|
function() {
|
|
3137
3094
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3143,9 +3100,9 @@ var Xt = Ci ? (
|
|
|
3143
3100
|
}
|
|
3144
3101
|
return n;
|
|
3145
3102
|
}
|
|
3146
|
-
),
|
|
3103
|
+
), $t = (
|
|
3147
3104
|
// native
|
|
3148
|
-
|
|
3105
|
+
Pi ? Object.fromEntries : (
|
|
3149
3106
|
// Ponyfill
|
|
3150
3107
|
function(t) {
|
|
3151
3108
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3155,7 +3112,7 @@ var Xt = Ci ? (
|
|
|
3155
3112
|
return r;
|
|
3156
3113
|
}
|
|
3157
3114
|
)
|
|
3158
|
-
),
|
|
3115
|
+
), Rr = Bi ? (
|
|
3159
3116
|
// Native
|
|
3160
3117
|
function(t, r) {
|
|
3161
3118
|
return t.codePointAt(r);
|
|
@@ -3169,7 +3126,7 @@ var Xt = Ci ? (
|
|
|
3169
3126
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3170
3127
|
}
|
|
3171
3128
|
}
|
|
3172
|
-
),
|
|
3129
|
+
), Fi = Ii ? (
|
|
3173
3130
|
// Native
|
|
3174
3131
|
function(t) {
|
|
3175
3132
|
return t.trimStart();
|
|
@@ -3177,9 +3134,9 @@ var Xt = Ci ? (
|
|
|
3177
3134
|
) : (
|
|
3178
3135
|
// Ponyfill
|
|
3179
3136
|
function(t) {
|
|
3180
|
-
return t.replace(
|
|
3137
|
+
return t.replace(Oi, "");
|
|
3181
3138
|
}
|
|
3182
|
-
),
|
|
3139
|
+
), ki = Ci ? (
|
|
3183
3140
|
// Native
|
|
3184
3141
|
function(t) {
|
|
3185
3142
|
return t.trimEnd();
|
|
@@ -3187,32 +3144,32 @@ var Xt = Ci ? (
|
|
|
3187
3144
|
) : (
|
|
3188
3145
|
// Ponyfill
|
|
3189
3146
|
function(t) {
|
|
3190
|
-
return t.replace(
|
|
3147
|
+
return t.replace(Mi, "");
|
|
3191
3148
|
}
|
|
3192
3149
|
);
|
|
3193
|
-
function
|
|
3150
|
+
function Ur(e, t) {
|
|
3194
3151
|
return new RegExp(e, t);
|
|
3195
3152
|
}
|
|
3196
|
-
var
|
|
3197
|
-
if (
|
|
3198
|
-
var
|
|
3199
|
-
|
|
3153
|
+
var ut;
|
|
3154
|
+
if (st) {
|
|
3155
|
+
var jt = Ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3156
|
+
ut = function(t, r) {
|
|
3200
3157
|
var n;
|
|
3201
|
-
|
|
3202
|
-
var i =
|
|
3158
|
+
jt.lastIndex = r;
|
|
3159
|
+
var i = jt.exec(t);
|
|
3203
3160
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3204
3161
|
};
|
|
3205
3162
|
} else
|
|
3206
|
-
|
|
3163
|
+
ut = function(t, r) {
|
|
3207
3164
|
for (var n = []; ; ) {
|
|
3208
|
-
var i =
|
|
3209
|
-
if (i === void 0 ||
|
|
3165
|
+
var i = Rr(t, r);
|
|
3166
|
+
if (i === void 0 || Fr(i) || ji(i))
|
|
3210
3167
|
break;
|
|
3211
3168
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3212
3169
|
}
|
|
3213
|
-
return
|
|
3170
|
+
return lt.apply(void 0, n);
|
|
3214
3171
|
};
|
|
3215
|
-
var
|
|
3172
|
+
var Di = (
|
|
3216
3173
|
/** @class */
|
|
3217
3174
|
function() {
|
|
3218
3175
|
function e(t, r) {
|
|
@@ -3236,14 +3193,14 @@ var Vi = (
|
|
|
3236
3193
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3237
3194
|
var s = this.clonePosition();
|
|
3238
3195
|
this.bump(), i.push({
|
|
3239
|
-
type:
|
|
3196
|
+
type: O.pound,
|
|
3240
3197
|
location: E(s, this.clonePosition())
|
|
3241
3198
|
});
|
|
3242
3199
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3243
3200
|
if (n)
|
|
3244
3201
|
break;
|
|
3245
3202
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3246
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3203
|
+
} else if (o === 60 && !this.ignoreTag && ht(this.peek() || 0)) {
|
|
3247
3204
|
var a = this.parseTag(t, r);
|
|
3248
3205
|
if (a.err)
|
|
3249
3206
|
return a;
|
|
@@ -3264,7 +3221,7 @@ var Vi = (
|
|
|
3264
3221
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3265
3222
|
return {
|
|
3266
3223
|
val: {
|
|
3267
|
-
type:
|
|
3224
|
+
type: O.literal,
|
|
3268
3225
|
value: "<".concat(i, "/>"),
|
|
3269
3226
|
location: E(n, this.clonePosition())
|
|
3270
3227
|
},
|
|
@@ -3276,12 +3233,12 @@ var Vi = (
|
|
|
3276
3233
|
return o;
|
|
3277
3234
|
var a = o.val, s = this.clonePosition();
|
|
3278
3235
|
if (this.bumpIf("</")) {
|
|
3279
|
-
if (this.isEOF() || !
|
|
3236
|
+
if (this.isEOF() || !ht(this.char()))
|
|
3280
3237
|
return this.error(_.INVALID_TAG, E(s, this.clonePosition()));
|
|
3281
|
-
var
|
|
3282
|
-
return i !==
|
|
3238
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
3239
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3283
3240
|
val: {
|
|
3284
|
-
type:
|
|
3241
|
+
type: O.tag,
|
|
3285
3242
|
value: i,
|
|
3286
3243
|
children: a,
|
|
3287
3244
|
location: E(n, this.clonePosition())
|
|
@@ -3294,7 +3251,7 @@ var Vi = (
|
|
|
3294
3251
|
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
3295
3252
|
}, e.prototype.parseTagName = function() {
|
|
3296
3253
|
var t = this.offset();
|
|
3297
|
-
for (this.bump(); !this.isEOF() &&
|
|
3254
|
+
for (this.bump(); !this.isEOF() && $i(this.char()); )
|
|
3298
3255
|
this.bump();
|
|
3299
3256
|
return this.message.slice(t, this.offset());
|
|
3300
3257
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3316,14 +3273,14 @@ var Vi = (
|
|
|
3316
3273
|
}
|
|
3317
3274
|
break;
|
|
3318
3275
|
}
|
|
3319
|
-
var
|
|
3276
|
+
var l = E(n, this.clonePosition());
|
|
3320
3277
|
return {
|
|
3321
|
-
val: { type:
|
|
3278
|
+
val: { type: O.literal, value: i, location: l },
|
|
3322
3279
|
err: null
|
|
3323
3280
|
};
|
|
3324
3281
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3325
3282
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3326
|
-
!
|
|
3283
|
+
!Gi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3327
3284
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3328
3285
|
if (this.isEOF() || this.char() !== 39)
|
|
3329
3286
|
return null;
|
|
@@ -3357,12 +3314,12 @@ var Vi = (
|
|
|
3357
3314
|
r.push(n);
|
|
3358
3315
|
this.bump();
|
|
3359
3316
|
}
|
|
3360
|
-
return
|
|
3317
|
+
return lt.apply(void 0, r);
|
|
3361
3318
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3362
3319
|
if (this.isEOF())
|
|
3363
3320
|
return null;
|
|
3364
3321
|
var n = this.char();
|
|
3365
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3322
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), lt(n));
|
|
3366
3323
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3367
3324
|
var n = this.clonePosition();
|
|
3368
3325
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3378,7 +3335,7 @@ var Vi = (
|
|
|
3378
3335
|
case 125:
|
|
3379
3336
|
return this.bump(), {
|
|
3380
3337
|
val: {
|
|
3381
|
-
type:
|
|
3338
|
+
type: O.argument,
|
|
3382
3339
|
// value does not include the opening and closing braces.
|
|
3383
3340
|
value: i,
|
|
3384
3341
|
location: E(n, this.clonePosition())
|
|
@@ -3391,54 +3348,54 @@ var Vi = (
|
|
|
3391
3348
|
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3392
3349
|
}
|
|
3393
3350
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3394
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3351
|
+
var t = this.clonePosition(), r = this.offset(), n = ut(this.message, r), i = r + n.length;
|
|
3395
3352
|
this.bumpTo(i);
|
|
3396
3353
|
var o = this.clonePosition(), a = E(t, o);
|
|
3397
3354
|
return { value: n, location: a };
|
|
3398
3355
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3399
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
3356
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3400
3357
|
switch (s) {
|
|
3401
3358
|
case "":
|
|
3402
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a,
|
|
3359
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(a, l));
|
|
3403
3360
|
case "number":
|
|
3404
3361
|
case "date":
|
|
3405
3362
|
case "time": {
|
|
3406
3363
|
this.bumpSpace();
|
|
3407
|
-
var
|
|
3364
|
+
var u = null;
|
|
3408
3365
|
if (this.bumpIf(",")) {
|
|
3409
3366
|
this.bumpSpace();
|
|
3410
|
-
var
|
|
3411
|
-
if (
|
|
3412
|
-
return
|
|
3413
|
-
var f =
|
|
3367
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3368
|
+
if (c.err)
|
|
3369
|
+
return c;
|
|
3370
|
+
var f = ki(c.val);
|
|
3414
3371
|
if (f.length === 0)
|
|
3415
3372
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3416
|
-
var
|
|
3417
|
-
|
|
3373
|
+
var m = E(h, this.clonePosition());
|
|
3374
|
+
u = { style: f, styleLocation: m };
|
|
3418
3375
|
}
|
|
3419
|
-
var
|
|
3420
|
-
if (
|
|
3421
|
-
return
|
|
3376
|
+
var p = this.tryParseArgumentClose(i);
|
|
3377
|
+
if (p.err)
|
|
3378
|
+
return p;
|
|
3422
3379
|
var y = E(i, this.clonePosition());
|
|
3423
|
-
if (
|
|
3424
|
-
var
|
|
3380
|
+
if (u && Gt(u?.style, "::", 0)) {
|
|
3381
|
+
var S = Fi(u.style.slice(2));
|
|
3425
3382
|
if (s === "number") {
|
|
3426
|
-
var
|
|
3427
|
-
return
|
|
3428
|
-
val: { type:
|
|
3383
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3384
|
+
return c.err ? c : {
|
|
3385
|
+
val: { type: O.number, value: n, location: y, style: c.val },
|
|
3429
3386
|
err: null
|
|
3430
3387
|
};
|
|
3431
3388
|
} else {
|
|
3432
|
-
if (
|
|
3389
|
+
if (S.length === 0)
|
|
3433
3390
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, y);
|
|
3434
|
-
var
|
|
3435
|
-
this.locale && (
|
|
3391
|
+
var T = S;
|
|
3392
|
+
this.locale && (T = Hi(S, this.locale));
|
|
3436
3393
|
var f = {
|
|
3437
|
-
type:
|
|
3438
|
-
pattern:
|
|
3439
|
-
location:
|
|
3440
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3441
|
-
}, B = s === "date" ?
|
|
3394
|
+
type: he.dateTime,
|
|
3395
|
+
pattern: T,
|
|
3396
|
+
location: u.styleLocation,
|
|
3397
|
+
parsedOptions: this.shouldParseSkeletons ? yi(T) : {}
|
|
3398
|
+
}, B = s === "date" ? O.date : O.time;
|
|
3442
3399
|
return {
|
|
3443
3400
|
val: { type: B, value: n, location: y, style: f },
|
|
3444
3401
|
err: null
|
|
@@ -3447,10 +3404,10 @@ var Vi = (
|
|
|
3447
3404
|
}
|
|
3448
3405
|
return {
|
|
3449
3406
|
val: {
|
|
3450
|
-
type: s === "number" ?
|
|
3407
|
+
type: s === "number" ? O.number : s === "date" ? O.date : O.time,
|
|
3451
3408
|
value: n,
|
|
3452
3409
|
location: y,
|
|
3453
|
-
style: (o =
|
|
3410
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3454
3411
|
},
|
|
3455
3412
|
err: null
|
|
3456
3413
|
};
|
|
@@ -3458,49 +3415,49 @@ var Vi = (
|
|
|
3458
3415
|
case "plural":
|
|
3459
3416
|
case "selectordinal":
|
|
3460
3417
|
case "select": {
|
|
3461
|
-
var
|
|
3418
|
+
var L = this.clonePosition();
|
|
3462
3419
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3463
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(
|
|
3420
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(L, w({}, L)));
|
|
3464
3421
|
this.bumpSpace();
|
|
3465
3422
|
var G = this.parseIdentifierIfPossible(), C = 0;
|
|
3466
3423
|
if (s !== "select" && G.value === "offset") {
|
|
3467
3424
|
if (!this.bumpIf(":"))
|
|
3468
3425
|
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3469
3426
|
this.bumpSpace();
|
|
3470
|
-
var
|
|
3471
|
-
if (
|
|
3472
|
-
return
|
|
3473
|
-
this.bumpSpace(), G = this.parseIdentifierIfPossible(), C =
|
|
3427
|
+
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3428
|
+
if (c.err)
|
|
3429
|
+
return c;
|
|
3430
|
+
this.bumpSpace(), G = this.parseIdentifierIfPossible(), C = c.val;
|
|
3474
3431
|
}
|
|
3475
3432
|
var V = this.tryParsePluralOrSelectOptions(t, s, r, G);
|
|
3476
3433
|
if (V.err)
|
|
3477
3434
|
return V;
|
|
3478
|
-
var
|
|
3479
|
-
if (
|
|
3480
|
-
return
|
|
3481
|
-
var
|
|
3435
|
+
var p = this.tryParseArgumentClose(i);
|
|
3436
|
+
if (p.err)
|
|
3437
|
+
return p;
|
|
3438
|
+
var X = E(i, this.clonePosition());
|
|
3482
3439
|
return s === "select" ? {
|
|
3483
3440
|
val: {
|
|
3484
|
-
type:
|
|
3441
|
+
type: O.select,
|
|
3485
3442
|
value: n,
|
|
3486
|
-
options:
|
|
3487
|
-
location:
|
|
3443
|
+
options: $t(V.val),
|
|
3444
|
+
location: X
|
|
3488
3445
|
},
|
|
3489
3446
|
err: null
|
|
3490
3447
|
} : {
|
|
3491
3448
|
val: {
|
|
3492
|
-
type:
|
|
3449
|
+
type: O.plural,
|
|
3493
3450
|
value: n,
|
|
3494
|
-
options:
|
|
3451
|
+
options: $t(V.val),
|
|
3495
3452
|
offset: C,
|
|
3496
3453
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3497
|
-
location:
|
|
3454
|
+
location: X
|
|
3498
3455
|
},
|
|
3499
3456
|
err: null
|
|
3500
3457
|
};
|
|
3501
3458
|
}
|
|
3502
3459
|
default:
|
|
3503
|
-
return this.error(_.INVALID_ARGUMENT_TYPE, E(a,
|
|
3460
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(a, l));
|
|
3504
3461
|
}
|
|
3505
3462
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3506
3463
|
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3542,50 +3499,50 @@ var Vi = (
|
|
|
3542
3499
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3543
3500
|
var n = [];
|
|
3544
3501
|
try {
|
|
3545
|
-
n =
|
|
3502
|
+
n = _i(t);
|
|
3546
3503
|
} catch {
|
|
3547
3504
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3548
3505
|
}
|
|
3549
3506
|
return {
|
|
3550
3507
|
val: {
|
|
3551
|
-
type:
|
|
3508
|
+
type: he.number,
|
|
3552
3509
|
tokens: n,
|
|
3553
3510
|
location: r,
|
|
3554
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3511
|
+
parsedOptions: this.shouldParseSkeletons ? Si(n) : {}
|
|
3555
3512
|
},
|
|
3556
3513
|
err: null
|
|
3557
3514
|
};
|
|
3558
3515
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3559
|
-
for (var o, a = !1, s = [],
|
|
3560
|
-
if (
|
|
3561
|
-
var
|
|
3516
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3517
|
+
if (u.length === 0) {
|
|
3518
|
+
var c = this.clonePosition();
|
|
3562
3519
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3563
3520
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3564
3521
|
if (f.err)
|
|
3565
3522
|
return f;
|
|
3566
|
-
|
|
3523
|
+
h = E(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3567
3524
|
} else
|
|
3568
3525
|
break;
|
|
3569
3526
|
}
|
|
3570
|
-
if (
|
|
3571
|
-
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3572
|
-
|
|
3573
|
-
var
|
|
3527
|
+
if (l.has(u))
|
|
3528
|
+
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3529
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3530
|
+
var m = this.clonePosition();
|
|
3574
3531
|
if (!this.bumpIf("{"))
|
|
3575
3532
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3576
|
-
var
|
|
3577
|
-
if (
|
|
3578
|
-
return
|
|
3579
|
-
var y = this.tryParseArgumentClose(
|
|
3533
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3534
|
+
if (p.err)
|
|
3535
|
+
return p;
|
|
3536
|
+
var y = this.tryParseArgumentClose(m);
|
|
3580
3537
|
if (y.err)
|
|
3581
3538
|
return y;
|
|
3582
3539
|
s.push([
|
|
3583
|
-
|
|
3540
|
+
u,
|
|
3584
3541
|
{
|
|
3585
|
-
value:
|
|
3586
|
-
location: E(
|
|
3542
|
+
value: p.val,
|
|
3543
|
+
location: E(m, this.clonePosition())
|
|
3587
3544
|
}
|
|
3588
|
-
]),
|
|
3545
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3589
3546
|
}
|
|
3590
3547
|
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 };
|
|
3591
3548
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3598,8 +3555,8 @@ var Vi = (
|
|
|
3598
3555
|
else
|
|
3599
3556
|
break;
|
|
3600
3557
|
}
|
|
3601
|
-
var
|
|
3602
|
-
return o ? (a *= n,
|
|
3558
|
+
var l = E(i, this.clonePosition());
|
|
3559
|
+
return o ? (a *= n, Ri(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3603
3560
|
}, e.prototype.offset = function() {
|
|
3604
3561
|
return this.position.offset;
|
|
3605
3562
|
}, e.prototype.isEOF = function() {
|
|
@@ -3614,7 +3571,7 @@ var Vi = (
|
|
|
3614
3571
|
var t = this.position.offset;
|
|
3615
3572
|
if (t >= this.message.length)
|
|
3616
3573
|
throw Error("out of bound");
|
|
3617
|
-
var r =
|
|
3574
|
+
var r = Rr(this.message, t);
|
|
3618
3575
|
if (r === void 0)
|
|
3619
3576
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3620
3577
|
return r;
|
|
@@ -3633,7 +3590,7 @@ var Vi = (
|
|
|
3633
3590
|
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);
|
|
3634
3591
|
}
|
|
3635
3592
|
}, e.prototype.bumpIf = function(t) {
|
|
3636
|
-
if (
|
|
3593
|
+
if (Gt(this.message, t, this.offset())) {
|
|
3637
3594
|
for (var r = 0; r < t.length; r++)
|
|
3638
3595
|
this.bump();
|
|
3639
3596
|
return !0;
|
|
@@ -3655,7 +3612,7 @@ var Vi = (
|
|
|
3655
3612
|
break;
|
|
3656
3613
|
}
|
|
3657
3614
|
}, e.prototype.bumpSpace = function() {
|
|
3658
|
-
for (; !this.isEOF() &&
|
|
3615
|
+
for (; !this.isEOF() && Fr(this.char()); )
|
|
3659
3616
|
this.bump();
|
|
3660
3617
|
}, e.prototype.peek = function() {
|
|
3661
3618
|
if (this.isEOF())
|
|
@@ -3665,47 +3622,47 @@ var Vi = (
|
|
|
3665
3622
|
}, e;
|
|
3666
3623
|
}()
|
|
3667
3624
|
);
|
|
3668
|
-
function
|
|
3625
|
+
function ht(e) {
|
|
3669
3626
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3670
3627
|
}
|
|
3671
|
-
function
|
|
3672
|
-
return
|
|
3628
|
+
function Gi(e) {
|
|
3629
|
+
return ht(e) || e === 47;
|
|
3673
3630
|
}
|
|
3674
|
-
function
|
|
3631
|
+
function $i(e) {
|
|
3675
3632
|
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;
|
|
3676
3633
|
}
|
|
3677
|
-
function
|
|
3634
|
+
function Fr(e) {
|
|
3678
3635
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3679
3636
|
}
|
|
3680
|
-
function
|
|
3637
|
+
function ji(e) {
|
|
3681
3638
|
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;
|
|
3682
3639
|
}
|
|
3683
|
-
function
|
|
3640
|
+
function ct(e) {
|
|
3684
3641
|
e.forEach(function(t) {
|
|
3685
|
-
if (delete t.location,
|
|
3642
|
+
if (delete t.location, Mr(t) || Ar(t))
|
|
3686
3643
|
for (var r in t.options)
|
|
3687
|
-
delete t.options[r].location,
|
|
3644
|
+
delete t.options[r].location, ct(t.options[r].value);
|
|
3688
3645
|
else
|
|
3689
|
-
|
|
3646
|
+
Hr(t) && Pr(t.style) || (Tr(t) || Or(t)) && at(t.style) ? delete t.style.location : Lr(t) && ct(t.children);
|
|
3690
3647
|
});
|
|
3691
3648
|
}
|
|
3692
|
-
function
|
|
3693
|
-
t === void 0 && (t = {}), t =
|
|
3694
|
-
var r = new
|
|
3649
|
+
function Wi(e, t) {
|
|
3650
|
+
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3651
|
+
var r = new Di(e, t).parse();
|
|
3695
3652
|
if (r.err) {
|
|
3696
3653
|
var n = SyntaxError(_[r.err.kind]);
|
|
3697
3654
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3698
3655
|
}
|
|
3699
|
-
return t?.captureLocation ||
|
|
3656
|
+
return t?.captureLocation || ct(r.val), r.val;
|
|
3700
3657
|
}
|
|
3701
3658
|
var ce;
|
|
3702
3659
|
(function(e) {
|
|
3703
3660
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3704
3661
|
})(ce || (ce = {}));
|
|
3705
|
-
var
|
|
3662
|
+
var De = (
|
|
3706
3663
|
/** @class */
|
|
3707
3664
|
function(e) {
|
|
3708
|
-
|
|
3665
|
+
q(t, e);
|
|
3709
3666
|
function t(r, n, i) {
|
|
3710
3667
|
var o = e.call(this, r) || this;
|
|
3711
3668
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3714,110 +3671,110 @@ var $e = (
|
|
|
3714
3671
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3715
3672
|
}, t;
|
|
3716
3673
|
}(Error)
|
|
3717
|
-
),
|
|
3674
|
+
), Wt = (
|
|
3718
3675
|
/** @class */
|
|
3719
3676
|
function(e) {
|
|
3720
|
-
|
|
3677
|
+
q(t, e);
|
|
3721
3678
|
function t(r, n, i, o) {
|
|
3722
3679
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ce.INVALID_VALUE, o) || this;
|
|
3723
3680
|
}
|
|
3724
3681
|
return t;
|
|
3725
|
-
}(
|
|
3726
|
-
),
|
|
3682
|
+
}(De)
|
|
3683
|
+
), Vi = (
|
|
3727
3684
|
/** @class */
|
|
3728
3685
|
function(e) {
|
|
3729
|
-
|
|
3686
|
+
q(t, e);
|
|
3730
3687
|
function t(r, n, i) {
|
|
3731
3688
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ce.INVALID_VALUE, i) || this;
|
|
3732
3689
|
}
|
|
3733
3690
|
return t;
|
|
3734
|
-
}(
|
|
3735
|
-
),
|
|
3691
|
+
}(De)
|
|
3692
|
+
), Xi = (
|
|
3736
3693
|
/** @class */
|
|
3737
3694
|
function(e) {
|
|
3738
|
-
|
|
3695
|
+
q(t, e);
|
|
3739
3696
|
function t(r, n) {
|
|
3740
3697
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ce.MISSING_VALUE, n) || this;
|
|
3741
3698
|
}
|
|
3742
3699
|
return t;
|
|
3743
|
-
}(
|
|
3700
|
+
}(De)
|
|
3744
3701
|
), D;
|
|
3745
3702
|
(function(e) {
|
|
3746
3703
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3747
3704
|
})(D || (D = {}));
|
|
3748
|
-
function
|
|
3705
|
+
function zi(e) {
|
|
3749
3706
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3750
3707
|
var n = t[t.length - 1];
|
|
3751
3708
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
3752
3709
|
}, []);
|
|
3753
3710
|
}
|
|
3754
|
-
function
|
|
3711
|
+
function Zi(e) {
|
|
3755
3712
|
return typeof e == "function";
|
|
3756
3713
|
}
|
|
3757
3714
|
function Be(e, t, r, n, i, o, a) {
|
|
3758
|
-
if (e.length === 1 &&
|
|
3715
|
+
if (e.length === 1 && Ut(e[0]))
|
|
3759
3716
|
return [
|
|
3760
3717
|
{
|
|
3761
3718
|
type: D.literal,
|
|
3762
3719
|
value: e[0].value
|
|
3763
3720
|
}
|
|
3764
3721
|
];
|
|
3765
|
-
for (var s = [],
|
|
3766
|
-
var
|
|
3767
|
-
if (
|
|
3722
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3723
|
+
var h = u[l];
|
|
3724
|
+
if (Ut(h)) {
|
|
3768
3725
|
s.push({
|
|
3769
3726
|
type: D.literal,
|
|
3770
|
-
value:
|
|
3727
|
+
value: h.value
|
|
3771
3728
|
});
|
|
3772
3729
|
continue;
|
|
3773
3730
|
}
|
|
3774
|
-
if (
|
|
3731
|
+
if (pi(h)) {
|
|
3775
3732
|
typeof o == "number" && s.push({
|
|
3776
3733
|
type: D.literal,
|
|
3777
3734
|
value: r.getNumberFormat(t).format(o)
|
|
3778
3735
|
});
|
|
3779
3736
|
continue;
|
|
3780
3737
|
}
|
|
3781
|
-
var
|
|
3782
|
-
if (!(i &&
|
|
3783
|
-
throw new
|
|
3784
|
-
var f = i[
|
|
3785
|
-
if (
|
|
3738
|
+
var c = h.value;
|
|
3739
|
+
if (!(i && c in i))
|
|
3740
|
+
throw new Xi(c, a);
|
|
3741
|
+
var f = i[c];
|
|
3742
|
+
if (gi(h)) {
|
|
3786
3743
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3787
3744
|
type: typeof f == "string" ? D.literal : D.object,
|
|
3788
3745
|
value: f
|
|
3789
3746
|
});
|
|
3790
3747
|
continue;
|
|
3791
3748
|
}
|
|
3792
|
-
if (
|
|
3793
|
-
var
|
|
3749
|
+
if (Tr(h)) {
|
|
3750
|
+
var m = typeof h.style == "string" ? n.date[h.style] : at(h.style) ? h.style.parsedOptions : void 0;
|
|
3794
3751
|
s.push({
|
|
3795
3752
|
type: D.literal,
|
|
3796
|
-
value: r.getDateTimeFormat(t,
|
|
3753
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3797
3754
|
});
|
|
3798
3755
|
continue;
|
|
3799
3756
|
}
|
|
3800
|
-
if (
|
|
3801
|
-
var
|
|
3757
|
+
if (Or(h)) {
|
|
3758
|
+
var m = typeof h.style == "string" ? n.time[h.style] : at(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3802
3759
|
s.push({
|
|
3803
3760
|
type: D.literal,
|
|
3804
|
-
value: r.getDateTimeFormat(t,
|
|
3761
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3805
3762
|
});
|
|
3806
3763
|
continue;
|
|
3807
3764
|
}
|
|
3808
|
-
if (
|
|
3809
|
-
var
|
|
3810
|
-
|
|
3765
|
+
if (Hr(h)) {
|
|
3766
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Pr(h.style) ? h.style.parsedOptions : void 0;
|
|
3767
|
+
m && m.scale && (f = f * (m.scale || 1)), s.push({
|
|
3811
3768
|
type: D.literal,
|
|
3812
|
-
value: r.getNumberFormat(t,
|
|
3769
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3813
3770
|
});
|
|
3814
3771
|
continue;
|
|
3815
3772
|
}
|
|
3816
|
-
if (
|
|
3817
|
-
var
|
|
3818
|
-
if (!
|
|
3819
|
-
throw new
|
|
3820
|
-
var
|
|
3773
|
+
if (Lr(h)) {
|
|
3774
|
+
var p = h.children, y = h.value, S = i[y];
|
|
3775
|
+
if (!Zi(S))
|
|
3776
|
+
throw new Vi(y, "function", a);
|
|
3777
|
+
var T = Be(p, t, r, n, i, o), B = S(T.map(function(C) {
|
|
3821
3778
|
return C.value;
|
|
3822
3779
|
}));
|
|
3823
3780
|
Array.isArray(B) || (B = [B]), s.push.apply(s, B.map(function(C) {
|
|
@@ -3827,42 +3784,42 @@ function Be(e, t, r, n, i, o, a) {
|
|
|
3827
3784
|
};
|
|
3828
3785
|
}));
|
|
3829
3786
|
}
|
|
3830
|
-
if (
|
|
3831
|
-
var
|
|
3832
|
-
if (!
|
|
3833
|
-
throw new
|
|
3834
|
-
s.push.apply(s, Be(
|
|
3787
|
+
if (Mr(h)) {
|
|
3788
|
+
var L = h.options[f] || h.options.other;
|
|
3789
|
+
if (!L)
|
|
3790
|
+
throw new Wt(h.value, f, Object.keys(h.options), a);
|
|
3791
|
+
s.push.apply(s, Be(L.value, t, r, n, i));
|
|
3835
3792
|
continue;
|
|
3836
3793
|
}
|
|
3837
|
-
if (
|
|
3838
|
-
var
|
|
3839
|
-
if (!
|
|
3794
|
+
if (Ar(h)) {
|
|
3795
|
+
var L = h.options["=".concat(f)];
|
|
3796
|
+
if (!L) {
|
|
3840
3797
|
if (!Intl.PluralRules)
|
|
3841
|
-
throw new
|
|
3798
|
+
throw new De(`Intl.PluralRules is not available in this environment.
|
|
3842
3799
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3843
3800
|
`, ce.MISSING_INTL_API, a);
|
|
3844
|
-
var G = r.getPluralRules(t, { type:
|
|
3845
|
-
|
|
3801
|
+
var G = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3802
|
+
L = h.options[G] || h.options.other;
|
|
3846
3803
|
}
|
|
3847
|
-
if (!
|
|
3848
|
-
throw new
|
|
3849
|
-
s.push.apply(s, Be(
|
|
3804
|
+
if (!L)
|
|
3805
|
+
throw new Wt(h.value, f, Object.keys(h.options), a);
|
|
3806
|
+
s.push.apply(s, Be(L.value, t, r, n, i, f - (h.offset || 0)));
|
|
3850
3807
|
continue;
|
|
3851
3808
|
}
|
|
3852
3809
|
}
|
|
3853
|
-
return
|
|
3810
|
+
return zi(s);
|
|
3854
3811
|
}
|
|
3855
|
-
function
|
|
3856
|
-
return t ?
|
|
3857
|
-
return r[n] =
|
|
3812
|
+
function Qi(e, t) {
|
|
3813
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3814
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3858
3815
|
}, {})) : e;
|
|
3859
3816
|
}
|
|
3860
|
-
function
|
|
3817
|
+
function qi(e, t) {
|
|
3861
3818
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3862
|
-
return r[n] =
|
|
3863
|
-
},
|
|
3819
|
+
return r[n] = Qi(e[n], t[n]), r;
|
|
3820
|
+
}, w({}, e)) : e;
|
|
3864
3821
|
}
|
|
3865
|
-
function
|
|
3822
|
+
function Ye(e) {
|
|
3866
3823
|
return {
|
|
3867
3824
|
create: function() {
|
|
3868
3825
|
return {
|
|
@@ -3876,39 +3833,39 @@ function tt(e) {
|
|
|
3876
3833
|
}
|
|
3877
3834
|
};
|
|
3878
3835
|
}
|
|
3879
|
-
function
|
|
3836
|
+
function Ji(e) {
|
|
3880
3837
|
return e === void 0 && (e = {
|
|
3881
3838
|
number: {},
|
|
3882
3839
|
dateTime: {},
|
|
3883
3840
|
pluralRules: {}
|
|
3884
3841
|
}), {
|
|
3885
|
-
getNumberFormat:
|
|
3842
|
+
getNumberFormat: Qe(function() {
|
|
3886
3843
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3887
3844
|
r[n] = arguments[n];
|
|
3888
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3845
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, le([void 0], r, !1)))();
|
|
3889
3846
|
}, {
|
|
3890
|
-
cache:
|
|
3891
|
-
strategy:
|
|
3847
|
+
cache: Ye(e.number),
|
|
3848
|
+
strategy: qe.variadic
|
|
3892
3849
|
}),
|
|
3893
|
-
getDateTimeFormat:
|
|
3850
|
+
getDateTimeFormat: Qe(function() {
|
|
3894
3851
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3895
3852
|
r[n] = arguments[n];
|
|
3896
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3853
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, le([void 0], r, !1)))();
|
|
3897
3854
|
}, {
|
|
3898
|
-
cache:
|
|
3899
|
-
strategy:
|
|
3855
|
+
cache: Ye(e.dateTime),
|
|
3856
|
+
strategy: qe.variadic
|
|
3900
3857
|
}),
|
|
3901
|
-
getPluralRules:
|
|
3858
|
+
getPluralRules: Qe(function() {
|
|
3902
3859
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3903
3860
|
r[n] = arguments[n];
|
|
3904
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3861
|
+
return new ((t = Intl.PluralRules).bind.apply(t, le([void 0], r, !1)))();
|
|
3905
3862
|
}, {
|
|
3906
|
-
cache:
|
|
3907
|
-
strategy:
|
|
3863
|
+
cache: Ye(e.pluralRules),
|
|
3864
|
+
strategy: qe.variadic
|
|
3908
3865
|
})
|
|
3909
3866
|
};
|
|
3910
3867
|
}
|
|
3911
|
-
var
|
|
3868
|
+
var Yi = (
|
|
3912
3869
|
/** @class */
|
|
3913
3870
|
function() {
|
|
3914
3871
|
function e(t, r, n, i) {
|
|
@@ -3918,20 +3875,20 @@ var no = (
|
|
|
3918
3875
|
number: {},
|
|
3919
3876
|
dateTime: {},
|
|
3920
3877
|
pluralRules: {}
|
|
3921
|
-
}, this.format = function(
|
|
3922
|
-
var
|
|
3923
|
-
if (
|
|
3924
|
-
return
|
|
3925
|
-
var
|
|
3926
|
-
return !
|
|
3878
|
+
}, this.format = function(l) {
|
|
3879
|
+
var u = o.formatToParts(l);
|
|
3880
|
+
if (u.length === 1)
|
|
3881
|
+
return u[0].value;
|
|
3882
|
+
var h = u.reduce(function(c, f) {
|
|
3883
|
+
return !c.length || f.type !== D.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3927
3884
|
}, []);
|
|
3928
|
-
return
|
|
3929
|
-
}, this.formatToParts = function(
|
|
3930
|
-
return Be(o.ast, o.locales, o.formatters, o.formats,
|
|
3885
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3886
|
+
}, this.formatToParts = function(l) {
|
|
3887
|
+
return Be(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3931
3888
|
}, this.resolvedOptions = function() {
|
|
3932
|
-
var
|
|
3889
|
+
var l;
|
|
3933
3890
|
return {
|
|
3934
|
-
locale: ((
|
|
3891
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3935
3892
|
};
|
|
3936
3893
|
}, this.getAst = function() {
|
|
3937
3894
|
return o.ast;
|
|
@@ -3940,13 +3897,13 @@ var no = (
|
|
|
3940
3897
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3941
3898
|
var a = i || {};
|
|
3942
3899
|
a.formatters;
|
|
3943
|
-
var s =
|
|
3944
|
-
this.ast = e.__parse(t,
|
|
3900
|
+
var s = Ln(a, ["formatters"]);
|
|
3901
|
+
this.ast = e.__parse(t, w(w({}, s), { locale: this.resolvedLocale }));
|
|
3945
3902
|
} else
|
|
3946
3903
|
this.ast = t;
|
|
3947
3904
|
if (!Array.isArray(this.ast))
|
|
3948
3905
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3949
|
-
this.formats =
|
|
3906
|
+
this.formats = qi(e.formats, n), this.formatters = i && i.formatters || Ji(this.formatterCache);
|
|
3950
3907
|
}
|
|
3951
3908
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3952
3909
|
get: function() {
|
|
@@ -3959,7 +3916,7 @@ var no = (
|
|
|
3959
3916
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3960
3917
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3961
3918
|
}
|
|
3962
|
-
}, e.__parse =
|
|
3919
|
+
}, e.__parse = Wi, e.formats = {
|
|
3963
3920
|
number: {
|
|
3964
3921
|
integer: {
|
|
3965
3922
|
maximumFractionDigits: 0
|
|
@@ -4020,7 +3977,7 @@ var no = (
|
|
|
4020
3977
|
}, e;
|
|
4021
3978
|
}()
|
|
4022
3979
|
);
|
|
4023
|
-
function
|
|
3980
|
+
function Ki(e, t) {
|
|
4024
3981
|
if (t == null)
|
|
4025
3982
|
return;
|
|
4026
3983
|
if (t in e)
|
|
@@ -4041,92 +3998,92 @@ function io(e, t) {
|
|
|
4041
3998
|
n = void 0;
|
|
4042
3999
|
return n;
|
|
4043
4000
|
}
|
|
4044
|
-
const Y = {},
|
|
4001
|
+
const Y = {}, eo = (e, t, r) => r && (t in Y || (Y[t] = {}), e in Y[t] || (Y[t][e] = r), r), kr = (e, t) => {
|
|
4045
4002
|
if (t == null)
|
|
4046
4003
|
return;
|
|
4047
4004
|
if (t in Y && e in Y[t])
|
|
4048
4005
|
return Y[t][e];
|
|
4049
|
-
const r =
|
|
4006
|
+
const r = Ge(t);
|
|
4050
4007
|
for (let n = 0; n < r.length; n++) {
|
|
4051
|
-
const i = r[n], o =
|
|
4008
|
+
const i = r[n], o = ro(i, e);
|
|
4052
4009
|
if (o)
|
|
4053
|
-
return
|
|
4010
|
+
return eo(e, t, o);
|
|
4054
4011
|
}
|
|
4055
4012
|
};
|
|
4056
|
-
let
|
|
4057
|
-
const Se =
|
|
4058
|
-
function
|
|
4059
|
-
return
|
|
4013
|
+
let gt;
|
|
4014
|
+
const Se = ke({});
|
|
4015
|
+
function to(e) {
|
|
4016
|
+
return gt[e] || null;
|
|
4060
4017
|
}
|
|
4061
|
-
function
|
|
4062
|
-
return e in
|
|
4018
|
+
function Dr(e) {
|
|
4019
|
+
return e in gt;
|
|
4063
4020
|
}
|
|
4064
|
-
function
|
|
4065
|
-
if (!
|
|
4021
|
+
function ro(e, t) {
|
|
4022
|
+
if (!Dr(e))
|
|
4066
4023
|
return null;
|
|
4067
|
-
const r =
|
|
4068
|
-
return
|
|
4024
|
+
const r = to(e);
|
|
4025
|
+
return Ki(r, t);
|
|
4069
4026
|
}
|
|
4070
|
-
function
|
|
4027
|
+
function no(e) {
|
|
4071
4028
|
if (e == null)
|
|
4072
4029
|
return;
|
|
4073
|
-
const t =
|
|
4030
|
+
const t = Ge(e);
|
|
4074
4031
|
for (let r = 0; r < t.length; r++) {
|
|
4075
4032
|
const n = t[r];
|
|
4076
|
-
if (
|
|
4033
|
+
if (Dr(n))
|
|
4077
4034
|
return n;
|
|
4078
4035
|
}
|
|
4079
4036
|
}
|
|
4080
|
-
function
|
|
4081
|
-
delete Y[e], Se.update((r) => (r[e] =
|
|
4037
|
+
function Gr(e, ...t) {
|
|
4038
|
+
delete Y[e], Se.update((r) => (r[e] = si.all([r[e] || {}, ...t]), r));
|
|
4082
4039
|
}
|
|
4083
|
-
|
|
4040
|
+
ge(
|
|
4084
4041
|
[Se],
|
|
4085
4042
|
([e]) => Object.keys(e)
|
|
4086
4043
|
);
|
|
4087
|
-
Se.subscribe((e) =>
|
|
4044
|
+
Se.subscribe((e) => gt = e);
|
|
4088
4045
|
const Ie = {};
|
|
4089
|
-
function
|
|
4046
|
+
function io(e, t) {
|
|
4090
4047
|
Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
|
|
4091
4048
|
}
|
|
4092
|
-
function
|
|
4049
|
+
function $r(e) {
|
|
4093
4050
|
return Ie[e];
|
|
4094
4051
|
}
|
|
4095
|
-
function
|
|
4096
|
-
return
|
|
4097
|
-
const r =
|
|
4052
|
+
function oo(e) {
|
|
4053
|
+
return Ge(e).map((t) => {
|
|
4054
|
+
const r = $r(t);
|
|
4098
4055
|
return [t, r ? [...r] : []];
|
|
4099
4056
|
}).filter(([, t]) => t.length > 0);
|
|
4100
4057
|
}
|
|
4101
|
-
function
|
|
4102
|
-
return e == null ? !1 :
|
|
4058
|
+
function ft(e) {
|
|
4059
|
+
return e == null ? !1 : Ge(e).some(
|
|
4103
4060
|
(t) => {
|
|
4104
4061
|
var r;
|
|
4105
|
-
return (r =
|
|
4062
|
+
return (r = $r(t)) == null ? void 0 : r.size;
|
|
4106
4063
|
}
|
|
4107
4064
|
);
|
|
4108
4065
|
}
|
|
4109
|
-
function
|
|
4066
|
+
function ao(e, t) {
|
|
4110
4067
|
return Promise.all(
|
|
4111
|
-
t.map((n) => (
|
|
4112
|
-
).then((n) =>
|
|
4113
|
-
}
|
|
4114
|
-
const
|
|
4115
|
-
function
|
|
4116
|
-
if (!
|
|
4117
|
-
return e in
|
|
4118
|
-
const t =
|
|
4119
|
-
return
|
|
4068
|
+
t.map((n) => (io(e, n), n().then((i) => i.default || i)))
|
|
4069
|
+
).then((n) => Gr(e, ...n));
|
|
4070
|
+
}
|
|
4071
|
+
const ye = {};
|
|
4072
|
+
function jr(e) {
|
|
4073
|
+
if (!ft(e))
|
|
4074
|
+
return e in ye ? ye[e] : Promise.resolve();
|
|
4075
|
+
const t = oo(e);
|
|
4076
|
+
return ye[e] = Promise.all(
|
|
4120
4077
|
t.map(
|
|
4121
|
-
([r, n]) =>
|
|
4078
|
+
([r, n]) => ao(r, n)
|
|
4122
4079
|
)
|
|
4123
4080
|
).then(() => {
|
|
4124
|
-
if (
|
|
4125
|
-
return
|
|
4126
|
-
delete
|
|
4127
|
-
}),
|
|
4081
|
+
if (ft(e))
|
|
4082
|
+
return jr(e);
|
|
4083
|
+
delete ye[e];
|
|
4084
|
+
}), ye[e];
|
|
4128
4085
|
}
|
|
4129
|
-
const
|
|
4086
|
+
const so = {
|
|
4130
4087
|
number: {
|
|
4131
4088
|
scientific: { notation: "scientific" },
|
|
4132
4089
|
engineering: { notation: "engineering" },
|
|
@@ -4155,180 +4112,180 @@ const fo = {
|
|
|
4155
4112
|
timeZoneName: "short"
|
|
4156
4113
|
}
|
|
4157
4114
|
}
|
|
4158
|
-
},
|
|
4115
|
+
}, lo = {
|
|
4159
4116
|
fallbackLocale: null,
|
|
4160
4117
|
loadingDelay: 200,
|
|
4161
|
-
formats:
|
|
4118
|
+
formats: so,
|
|
4162
4119
|
warnOnMissingMessages: !0,
|
|
4163
4120
|
handleMissingMessage: void 0,
|
|
4164
4121
|
ignoreTag: !0
|
|
4165
|
-
},
|
|
4166
|
-
function
|
|
4167
|
-
return
|
|
4122
|
+
}, uo = lo;
|
|
4123
|
+
function fe() {
|
|
4124
|
+
return uo;
|
|
4168
4125
|
}
|
|
4169
|
-
const
|
|
4170
|
-
var
|
|
4126
|
+
const Ke = ke(!1);
|
|
4127
|
+
var ho = Object.defineProperty, co = Object.defineProperties, fo = Object.getOwnPropertyDescriptors, Vt = Object.getOwnPropertySymbols, mo = Object.prototype.hasOwnProperty, go = Object.prototype.propertyIsEnumerable, Xt = (e, t, r) => t in e ? ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, po = (e, t) => {
|
|
4171
4128
|
for (var r in t || (t = {}))
|
|
4172
|
-
|
|
4173
|
-
if (
|
|
4174
|
-
for (var r of
|
|
4175
|
-
|
|
4129
|
+
mo.call(t, r) && Xt(e, r, t[r]);
|
|
4130
|
+
if (Vt)
|
|
4131
|
+
for (var r of Vt(t))
|
|
4132
|
+
go.call(t, r) && Xt(e, r, t[r]);
|
|
4176
4133
|
return e;
|
|
4177
|
-
},
|
|
4178
|
-
let
|
|
4179
|
-
const
|
|
4180
|
-
function
|
|
4134
|
+
}, bo = (e, t) => co(e, fo(t));
|
|
4135
|
+
let dt;
|
|
4136
|
+
const Re = ke(null);
|
|
4137
|
+
function zt(e) {
|
|
4181
4138
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4182
4139
|
}
|
|
4183
|
-
function
|
|
4184
|
-
const r =
|
|
4185
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4140
|
+
function Ge(e, t = fe().fallbackLocale) {
|
|
4141
|
+
const r = zt(e);
|
|
4142
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...zt(t)])] : r;
|
|
4186
4143
|
}
|
|
4187
4144
|
function re() {
|
|
4188
|
-
return
|
|
4145
|
+
return dt ?? void 0;
|
|
4189
4146
|
}
|
|
4190
|
-
|
|
4191
|
-
|
|
4147
|
+
Re.subscribe((e) => {
|
|
4148
|
+
dt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4192
4149
|
});
|
|
4193
|
-
const
|
|
4194
|
-
if (e &&
|
|
4195
|
-
const { loadingDelay: t } =
|
|
4150
|
+
const yo = (e) => {
|
|
4151
|
+
if (e && no(e) && ft(e)) {
|
|
4152
|
+
const { loadingDelay: t } = fe();
|
|
4196
4153
|
let r;
|
|
4197
4154
|
return typeof window < "u" && re() != null && t ? r = window.setTimeout(
|
|
4198
|
-
() =>
|
|
4155
|
+
() => Ke.set(!0),
|
|
4199
4156
|
t
|
|
4200
|
-
) :
|
|
4201
|
-
|
|
4157
|
+
) : Ke.set(!0), jr(e).then(() => {
|
|
4158
|
+
Re.set(e);
|
|
4202
4159
|
}).finally(() => {
|
|
4203
|
-
clearTimeout(r),
|
|
4160
|
+
clearTimeout(r), Ke.set(!1);
|
|
4204
4161
|
});
|
|
4205
4162
|
}
|
|
4206
|
-
return
|
|
4207
|
-
},
|
|
4208
|
-
set:
|
|
4209
|
-
}),
|
|
4163
|
+
return Re.set(e);
|
|
4164
|
+
}, pe = bo(po({}, Re), {
|
|
4165
|
+
set: yo
|
|
4166
|
+
}), $e = (e) => {
|
|
4210
4167
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4211
4168
|
return (n) => {
|
|
4212
4169
|
const i = JSON.stringify(n);
|
|
4213
4170
|
return i in t ? t[i] : t[i] = e(n);
|
|
4214
4171
|
};
|
|
4215
4172
|
};
|
|
4216
|
-
var
|
|
4173
|
+
var vo = Object.defineProperty, Ue = Object.getOwnPropertySymbols, Wr = Object.prototype.hasOwnProperty, Vr = Object.prototype.propertyIsEnumerable, Zt = (e, t, r) => t in e ? vo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pt = (e, t) => {
|
|
4217
4174
|
for (var r in t || (t = {}))
|
|
4218
|
-
|
|
4219
|
-
if (
|
|
4220
|
-
for (var r of
|
|
4221
|
-
|
|
4175
|
+
Wr.call(t, r) && Zt(e, r, t[r]);
|
|
4176
|
+
if (Ue)
|
|
4177
|
+
for (var r of Ue(t))
|
|
4178
|
+
Vr.call(t, r) && Zt(e, r, t[r]);
|
|
4222
4179
|
return e;
|
|
4223
|
-
},
|
|
4180
|
+
}, be = (e, t) => {
|
|
4224
4181
|
var r = {};
|
|
4225
4182
|
for (var n in e)
|
|
4226
|
-
|
|
4227
|
-
if (e != null &&
|
|
4228
|
-
for (var n of
|
|
4229
|
-
t.indexOf(n) < 0 &&
|
|
4183
|
+
Wr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4184
|
+
if (e != null && Ue)
|
|
4185
|
+
for (var n of Ue(e))
|
|
4186
|
+
t.indexOf(n) < 0 && Vr.call(e, n) && (r[n] = e[n]);
|
|
4230
4187
|
return r;
|
|
4231
4188
|
};
|
|
4232
|
-
const
|
|
4233
|
-
const { formats: r } =
|
|
4189
|
+
const Ee = (e, t) => {
|
|
4190
|
+
const { formats: r } = fe();
|
|
4234
4191
|
if (e in r && t in r[e])
|
|
4235
4192
|
return r[e][t];
|
|
4236
4193
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4237
|
-
},
|
|
4194
|
+
}, _o = $e(
|
|
4238
4195
|
(e) => {
|
|
4239
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4196
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4240
4197
|
if (r == null)
|
|
4241
4198
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4242
|
-
return n && (i =
|
|
4199
|
+
return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4243
4200
|
}
|
|
4244
|
-
),
|
|
4201
|
+
), xo = $e(
|
|
4245
4202
|
(e) => {
|
|
4246
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4203
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4247
4204
|
if (r == null)
|
|
4248
4205
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4249
|
-
return n ? i =
|
|
4206
|
+
return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4250
4207
|
}
|
|
4251
|
-
),
|
|
4208
|
+
), Eo = $e(
|
|
4252
4209
|
(e) => {
|
|
4253
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4210
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4254
4211
|
if (r == null)
|
|
4255
4212
|
throw new Error(
|
|
4256
4213
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4257
4214
|
);
|
|
4258
|
-
return n ? i =
|
|
4215
|
+
return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4259
4216
|
}
|
|
4260
|
-
),
|
|
4217
|
+
), wo = (e = {}) => {
|
|
4261
4218
|
var t = e, {
|
|
4262
4219
|
locale: r = re()
|
|
4263
|
-
} = t, n =
|
|
4220
|
+
} = t, n = be(t, [
|
|
4264
4221
|
"locale"
|
|
4265
4222
|
]);
|
|
4266
|
-
return
|
|
4267
|
-
},
|
|
4223
|
+
return _o(pt({ locale: r }, n));
|
|
4224
|
+
}, So = (e = {}) => {
|
|
4268
4225
|
var t = e, {
|
|
4269
4226
|
locale: r = re()
|
|
4270
|
-
} = t, n =
|
|
4227
|
+
} = t, n = be(t, [
|
|
4271
4228
|
"locale"
|
|
4272
4229
|
]);
|
|
4273
|
-
return
|
|
4274
|
-
},
|
|
4230
|
+
return xo(pt({ locale: r }, n));
|
|
4231
|
+
}, Ho = (e = {}) => {
|
|
4275
4232
|
var t = e, {
|
|
4276
4233
|
locale: r = re()
|
|
4277
|
-
} = t, n =
|
|
4234
|
+
} = t, n = be(t, [
|
|
4278
4235
|
"locale"
|
|
4279
4236
|
]);
|
|
4280
|
-
return
|
|
4281
|
-
},
|
|
4237
|
+
return Eo(pt({ locale: r }, n));
|
|
4238
|
+
}, To = $e(
|
|
4282
4239
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4283
|
-
(e, t = re()) => new
|
|
4284
|
-
ignoreTag:
|
|
4240
|
+
(e, t = re()) => new Yi(e, t, fe().formats, {
|
|
4241
|
+
ignoreTag: fe().ignoreTag
|
|
4285
4242
|
})
|
|
4286
|
-
),
|
|
4243
|
+
), Oo = (e, t = {}) => {
|
|
4287
4244
|
var r, n, i, o;
|
|
4288
4245
|
let a = t;
|
|
4289
4246
|
typeof e == "object" && (a = e, e = a.id);
|
|
4290
4247
|
const {
|
|
4291
4248
|
values: s,
|
|
4292
|
-
locale:
|
|
4293
|
-
default:
|
|
4249
|
+
locale: l = re(),
|
|
4250
|
+
default: u
|
|
4294
4251
|
} = a;
|
|
4295
|
-
if (
|
|
4252
|
+
if (l == null)
|
|
4296
4253
|
throw new Error(
|
|
4297
4254
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4298
4255
|
);
|
|
4299
|
-
let
|
|
4300
|
-
if (!
|
|
4301
|
-
|
|
4302
|
-
else if (typeof
|
|
4256
|
+
let h = kr(e, l);
|
|
4257
|
+
if (!h)
|
|
4258
|
+
h = (o = (i = (n = (r = fe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4259
|
+
else if (typeof h != "string")
|
|
4303
4260
|
return console.warn(
|
|
4304
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4305
|
-
),
|
|
4261
|
+
`[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.`
|
|
4262
|
+
), h;
|
|
4306
4263
|
if (!s)
|
|
4307
|
-
return
|
|
4308
|
-
let
|
|
4264
|
+
return h;
|
|
4265
|
+
let c = h;
|
|
4309
4266
|
try {
|
|
4310
|
-
|
|
4267
|
+
c = To(h, l).format(s);
|
|
4311
4268
|
} catch (f) {
|
|
4312
4269
|
f instanceof Error && console.warn(
|
|
4313
4270
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4314
4271
|
f.message
|
|
4315
4272
|
);
|
|
4316
4273
|
}
|
|
4317
|
-
return
|
|
4318
|
-
},
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
window.emWidgets = { topic:
|
|
4324
|
-
const
|
|
4325
|
-
function
|
|
4274
|
+
return c;
|
|
4275
|
+
}, Mo = (e, t) => Ho(t).format(e), Ao = (e, t) => So(t).format(e), Lo = (e, t) => wo(t).format(e), Po = (e, t = re()) => kr(e, t), Bo = ge([pe, Se], () => Oo);
|
|
4276
|
+
ge([pe], () => Mo);
|
|
4277
|
+
ge([pe], () => Ao);
|
|
4278
|
+
ge([pe], () => Lo);
|
|
4279
|
+
ge([pe, Se], () => Po);
|
|
4280
|
+
window.emWidgets = { topic: Wn };
|
|
4281
|
+
const Io = (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)), Co = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4282
|
+
function No(e, t) {
|
|
4326
4283
|
if (e) {
|
|
4327
4284
|
const r = document.createElement("style");
|
|
4328
4285
|
r.innerHTML = t, e.appendChild(r);
|
|
4329
4286
|
}
|
|
4330
4287
|
}
|
|
4331
|
-
function
|
|
4288
|
+
function Ro(e, t) {
|
|
4332
4289
|
const r = new URL(t);
|
|
4333
4290
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4334
4291
|
const i = document.createElement("style");
|
|
@@ -4337,7 +4294,7 @@ function Go(e, t) {
|
|
|
4337
4294
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4338
4295
|
});
|
|
4339
4296
|
}
|
|
4340
|
-
function
|
|
4297
|
+
function Uo(e, t, r) {
|
|
4341
4298
|
if (window.emMessageBus) {
|
|
4342
4299
|
const n = document.createElement("style");
|
|
4343
4300
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4345,13 +4302,13 @@ function $o(e, t, r) {
|
|
|
4345
4302
|
});
|
|
4346
4303
|
}
|
|
4347
4304
|
}
|
|
4348
|
-
function
|
|
4349
|
-
|
|
4305
|
+
function Qt(e, t) {
|
|
4306
|
+
Gr(e, t);
|
|
4350
4307
|
}
|
|
4351
|
-
function
|
|
4352
|
-
|
|
4308
|
+
function Fo(e) {
|
|
4309
|
+
pe.set(e);
|
|
4353
4310
|
}
|
|
4354
|
-
const
|
|
4311
|
+
const qt = {
|
|
4355
4312
|
en: {
|
|
4356
4313
|
language: "Select Language"
|
|
4357
4314
|
},
|
|
@@ -4386,65 +4343,65 @@ const tr = {
|
|
|
4386
4343
|
language: "Select Language"
|
|
4387
4344
|
}
|
|
4388
4345
|
};
|
|
4389
|
-
function
|
|
4390
|
-
|
|
4346
|
+
function ko(e) {
|
|
4347
|
+
un(e, "svelte-1kfw037", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.Skeleton{animation:skeleton-loading 0.6s linear infinite alternate}@keyframes skeleton-loading{0%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.2) 0%, rgba(0, 61, 93, 0.2) 100%)}12%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.225) 0%, rgba(0, 61, 93, 0.225) 100%)}25%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.25) 0%, rgba(0, 61, 93, 0.25) 100%)}33%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.275) 0%, rgba(0, 61, 93, 0.275) 100%)}50%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.3) 0%, rgba(0, 61, 93, 0.3) 100%)}63%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.325) 0%, rgba(0, 61, 93, 0.325) 100%)}75%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.35) 0%, rgba(0, 61, 93, 0.35) 100%)}88%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.375) 0%, rgba(0, 61, 93, 0.375) 100%)}100%{background:linear-gradient(0deg, rgba(35, 178, 78, 0.4) 0%, rgba(0, 61, 93, 0.4) 100%)}}@keyframes increaseTransparency{0%{opacity:0}25%{opacity:0.25}75%{opacity:0.75}100%{opacity:1}}@keyframes decreaseTransparency{100%{opacity:1}75%{opacity:0.75}25%{opacity:0.25}0%{opacity:0}}@keyframes growWidthPercent{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes growWidth{from{transform:translateY(0)}to{transform:translateY(0)}}@keyframes decreaseWidth{from{transform:translateX(1)}to{transform:translateX(0)}}.NavIcon{width:30px;height:28px;position:relative;margin:3px auto;transform:rotate(0deg);transition:transform 0.2s ease-in-out;cursor:pointer}.NavIcon span{display:block;position:absolute;height:3px;width:100%;background:#ffffff;border-radius:9px;opacity:1;left:0;transform:rotate(0deg);transition:transform 0.2s ease-in-out, opacity 0.2s ease-in-out}.NavIcon span:nth-child(1){top:0px;width:80%}.NavIcon span:nth-child(2){top:9px}.NavIcon span:nth-child(3){top:18px}.NavIcon.Open span:nth-child(1){top:9px;width:100%;transform:rotate(135deg);transition:transform 0.3s ease-in-out}.NavIcon.Open span:nth-child(2){opacity:0;left:-60px}.NavIcon.Open span:nth-child(3){top:9px;transform:rotate(-135deg);transition:transform 0.3s ease-in-out}.SelectedOption{display:flex;align-items:center;justify-content:center}.SelectedOption .TriangleActive,.SelectedOption .TriangleInactive{display:block;margin:0 0 0 10px;transform:rotateX(0deg);transition:transform 0.2s ease-in-out}.SelectedOption .TriangleActive svg,.SelectedOption .TriangleInactive svg{margin:-2px 0px;fill:white}.SelectedOption .TriangleActive{transform:rotateX(180deg);transition:transform 0.2s ease-in-out}.SelectedOption .TriangleActive:hover{transform:rotateX(180deg);transition:transform 0.2s ease-in-out}.FlagIcon>img{width:20px;height:14px;margin-right:8px;border-radius:2px}.LanguageSelector{padding:5px 0;margin-bottom:0;display:flex;justify-content:space-between;background:linear-gradient(90deg, rgba(35, 178, 78, 0.9) 0%, rgba(0, 61, 93, 0.9) 100%);transition:transform 0.2s linear;height:44px}.LanguageSelector span{display:inline;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));opacity:0.8;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:14px}.LanguageSelector:active{transition:all 0.2s ease}.LanguageSelector:active span{transition:all 0.1s linear;opacity:1}.LanguageSelector.Open{box-shadow:inset 0 -3.25em 0 0 var(--emw--color-primary)}.LanguageSelector .LanguageSelectorTitle{margin:0 20px}.LanguageSelector .LanguageDropdown{margin-right:16px;display:inline-block}.LanguageSelector .OptionList{position:absolute;background:linear-gradient(90deg, rgba(35, 178, 78, 0.1) 0%, rgba(0, 61, 93, 0.1) 100%);min-width:180px;z-index:1;overflow-y:auto;display:flex;flex-direction:column-reverse;bottom:44px;left:0;gap:5px;padding-bottom:5px;width:100%;height:0px;transition:transform 0.2s linear}.LanguageSelector .OptionList.Open{transition:transform 0.2s linear;height:auto;background-color:var(--emw--color-background-secondary, #000000);overflow:auto}.LanguageSelector .OptionList .LanguageOption{display:flex;border:2px solid #22B04E;border-radius:13px;align-items:center;opacity:0.2;height:0px;background:linear-gradient(90deg, rgba(35, 178, 78, 0.2) 0%, rgba(0, 61, 93, 0.2) 100%);margin:0 5px;transition:transform 0.3s linear}.LanguageSelector .OptionList .LanguageOption.Open{height:50px;opacity:1;padding:10px 5px}.LanguageSelector .OptionList .LanguageOption:active,.LanguageSelector .OptionList .LanguageOption:hover{background:linear-gradient(90deg, rgb(35, 178, 78) 0%, rgb(0, 61, 93) 100%);transform:scale(1.03);transition:transform 0.2s ease-in-out}.LanguageSelector .OptionList .LanguageOption:active span,.LanguageSelector .OptionList .LanguageOption:hover span{color:black}.ItemLanguage{height:34px;width:100%;text-align:left;line-height:34px;background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:none}.ItemLanguage option{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.HamburgerModalWindow{display:flex;align-items:flex-start;position:fixed;width:100%;height:100%;z-index:100;z-index:999999;top:0;left:0;background-color:rgba(0, 0, 0, 0.85);animation:increaseTransparency 0.2s ease-in forwards}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emw--color-primary);display:flex;flex-direction:column;justify-content:space-between;height:100%;padding:0;border-top:0;border-radius:0;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{animation:growWidth 0.2s forwards;transform-origin:left;will-change:transform}.HamburgerModalWindow .HamburgerModalContainer.Closing{animation:decreaseWidth 0.2s backwards;transform-origin:right;animation-fill-mode:backwards;will-change:transform}.HamburgerModalWindow .HamburgerModalContainer .Separator{width:100%;height:5px;background:rgb(0, 0, 0);background:linear-gradient(90deg, rgb(13, 78, 2) 0%, rgb(35, 172, 77) 50%, rgb(13, 78, 2) 100%);z-index:3}.HamburgerModalWindow .ModalCloseBtn{position:relative;top:25px;width:30px;height:30px;opacity:1;margin-left:7px;margin-right:9px;cursor:pointer}.HamburgerModalWindow .ModalCloseBtn .NavIcon .Open{width:90vw}.HamburgerModalWindow .ModalCloseBtn svg{width:20px;height:20px;padding:2px}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));transform-origin:left;transform:scaleX(0);animation:growWidthPercent 0.2s both;animation-delay:0.1s}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:transform 150ms ease-in-out, opacity 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #000000));white-space:nowrap;overflow-x:scroll;list-style:none;width:90vw;text-transform:uppercase;font-size:11px;transition:all 0.2s;height:80px}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:125px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li:active{transform:scale(1.1)}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04F));color:black}.HamburgerModalWindow .HamburgerPrimaryMenu .Loading{width:150px;height:86px;margin:0 2px}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;height:calc(100% - 124px);overflow:auto;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.Overlay{opacity:0.5;transition:opacity 0.2s ease-in-out}.HamburgerModalWindow .HamburgerSecondaryMenu li{padding:10px;display:flex;align-items:center;gap:15px;transition:transform 0.2s linear}.HamburgerModalWindow .HamburgerSecondaryMenu li:active{background-color:var(--emw--color-primary);transform:scale(1.1)}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emw--color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emw--color-primary, #22B04F)}.FlagIcon{margin-left:12px}.NoFlag{width:88%;margin:0 20px}");
|
|
4391
4348
|
}
|
|
4392
|
-
function
|
|
4349
|
+
function Jt(e, t, r) {
|
|
4393
4350
|
const n = e.slice();
|
|
4394
4351
|
return n[58] = t[r], n;
|
|
4395
4352
|
}
|
|
4396
|
-
function
|
|
4353
|
+
function Yt(e, t, r) {
|
|
4397
4354
|
const n = e.slice();
|
|
4398
4355
|
return n[1] = t[r], n;
|
|
4399
4356
|
}
|
|
4400
|
-
function
|
|
4357
|
+
function Kt(e, t, r) {
|
|
4401
4358
|
const n = e.slice();
|
|
4402
4359
|
return n[61] = t[r], n;
|
|
4403
4360
|
}
|
|
4404
|
-
function
|
|
4361
|
+
function Do(e, t, r) {
|
|
4405
4362
|
const n = e.slice();
|
|
4406
4363
|
return n[67] = t[r], n;
|
|
4407
4364
|
}
|
|
4408
|
-
function
|
|
4365
|
+
function er(e, t, r) {
|
|
4409
4366
|
const n = e.slice();
|
|
4410
4367
|
return n[64] = t[r], n;
|
|
4411
4368
|
}
|
|
4412
|
-
function
|
|
4413
|
-
let t, r, n, i, o, a, s, u,
|
|
4369
|
+
function tr(e) {
|
|
4370
|
+
let t, r, n, i, o, a, s, l, u, h, c, f, m, p, y, S, T, B, L, G, C, V, X;
|
|
4414
4371
|
function ne(x, R) {
|
|
4415
4372
|
return (
|
|
4416
4373
|
/*HamburgerMenuItems*/
|
|
4417
|
-
x[4].length > 0 ?
|
|
4374
|
+
x[4].length > 0 ? $o : Go
|
|
4418
4375
|
);
|
|
4419
4376
|
}
|
|
4420
|
-
let J = ne(e), N = J(e), j =
|
|
4377
|
+
let J = ne(e), N = J(e), j = Q(
|
|
4421
4378
|
/*activeMenuItemChildren*/
|
|
4422
4379
|
e[6]
|
|
4423
|
-
),
|
|
4380
|
+
), M = [];
|
|
4424
4381
|
for (let x = 0; x < j.length; x += 1)
|
|
4425
|
-
|
|
4426
|
-
let
|
|
4382
|
+
M[x] = or(Kt(e, j, x));
|
|
4383
|
+
let P = (
|
|
4427
4384
|
/*languagesArray*/
|
|
4428
|
-
e[9].length > 1 &&
|
|
4385
|
+
e[9].length > 1 && ar(e)
|
|
4429
4386
|
);
|
|
4430
4387
|
return {
|
|
4431
4388
|
c() {
|
|
4432
4389
|
t = v("div"), r = v("div"), n = v("ul"), N.c(), i = U(), o = v("div"), a = U(), s = v("ul");
|
|
4433
|
-
for (let x = 0; x <
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
(e[10] ? "Overlay" : "")), g(r, "class",
|
|
4390
|
+
for (let x = 0; x < M.length; x += 1)
|
|
4391
|
+
M[x].c();
|
|
4392
|
+
u = U(), P && P.c(), c = U(), f = v("span"), m = v("div"), p = v("span"), y = U(), S = v("span"), T = U(), B = v("span"), g(n, "class", "HamburgerPrimaryMenu"), g(o, "class", "Separator"), g(s, "class", l = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4393
|
+
(e[10] ? "Overlay" : "")), g(r, "class", h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4437
4394
|
(e[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4438
|
-
(e[12] ? "Closing" : "")), g(
|
|
4395
|
+
(e[12] ? "Closing" : "")), g(m, "class", L = "NavIcon " + (/*navIconClosing*/
|
|
4439
4396
|
e[13] ? "" : "Open")), g(f, "class", G = /*modalIsOpen*/
|
|
4440
4397
|
e[7] ? "ModalCloseBtn" : ""), g(f, "role", "button"), g(t, "class", C = "HamburgerModalWindow " + /*isClosing*/
|
|
4441
4398
|
(e[12] ? " Closing" : ""));
|
|
4442
4399
|
},
|
|
4443
4400
|
m(x, R) {
|
|
4444
4401
|
F(x, t, R), b(t, r), b(r, n), N.m(n, null), b(r, i), b(r, o), b(r, a), b(r, s);
|
|
4445
|
-
for (let
|
|
4446
|
-
|
|
4447
|
-
b(r,
|
|
4402
|
+
for (let H = 0; H < M.length; H += 1)
|
|
4403
|
+
M[H] && M[H].m(s, null);
|
|
4404
|
+
b(r, u), P && P.m(r, null), b(t, c), b(t, f), b(f, m), b(m, p), b(m, y), b(m, S), b(m, T), b(m, B), e[40](t), V || (X = te(
|
|
4448
4405
|
f,
|
|
4449
4406
|
"click",
|
|
4450
4407
|
/*close*/
|
|
@@ -4454,47 +4411,47 @@ function ar(e) {
|
|
|
4454
4411
|
p(x, R) {
|
|
4455
4412
|
if (J === (J = ne(x)) && N ? N.p(x, R) : (N.d(1), N = J(x), N && (N.c(), N.m(n, null))), R[0] & /*handleClick, activeMenuItemChildren*/
|
|
4456
4413
|
262208) {
|
|
4457
|
-
j =
|
|
4414
|
+
j = Q(
|
|
4458
4415
|
/*activeMenuItemChildren*/
|
|
4459
4416
|
x[6]
|
|
4460
4417
|
);
|
|
4461
|
-
let
|
|
4462
|
-
for (
|
|
4463
|
-
const W =
|
|
4464
|
-
|
|
4418
|
+
let H;
|
|
4419
|
+
for (H = 0; H < j.length; H += 1) {
|
|
4420
|
+
const W = Kt(x, j, H);
|
|
4421
|
+
M[H] ? M[H].p(W, R) : (M[H] = or(W), M[H].c(), M[H].m(s, null));
|
|
4465
4422
|
}
|
|
4466
|
-
for (;
|
|
4467
|
-
|
|
4468
|
-
|
|
4423
|
+
for (; H < M.length; H += 1)
|
|
4424
|
+
M[H].d(1);
|
|
4425
|
+
M.length = j.length;
|
|
4469
4426
|
}
|
|
4470
4427
|
R[0] & /*isOptionsListVisible*/
|
|
4471
|
-
1024 &&
|
|
4472
|
-
(x[10] ? "Overlay" : "")) && g(s, "class",
|
|
4473
|
-
x[9].length > 1 ?
|
|
4474
|
-
4224 &&
|
|
4428
|
+
1024 && l !== (l = "HamburgerSecondaryMenu " + /*isOptionsListVisible*/
|
|
4429
|
+
(x[10] ? "Overlay" : "")) && g(s, "class", l), /*languagesArray*/
|
|
4430
|
+
x[9].length > 1 ? P ? P.p(x, R) : (P = ar(x), P.c(), P.m(r, null)) : P && (P.d(1), P = null), R[0] & /*modalIsOpen, isClosing*/
|
|
4431
|
+
4224 && h !== (h = "HamburgerModalContainer " + /*modalIsOpen*/
|
|
4475
4432
|
(x[7] ? "ActiveHamburgerMenu" : "") + " " + /*isClosing*/
|
|
4476
|
-
(x[12] ? "Closing" : "")) && g(r, "class",
|
|
4477
|
-
8192 &&
|
|
4478
|
-
x[13] ? "" : "Open")) && g(
|
|
4433
|
+
(x[12] ? "Closing" : "")) && g(r, "class", h), R[0] & /*navIconClosing*/
|
|
4434
|
+
8192 && L !== (L = "NavIcon " + (/*navIconClosing*/
|
|
4435
|
+
x[13] ? "" : "Open")) && g(m, "class", L), R[0] & /*modalIsOpen*/
|
|
4479
4436
|
128 && G !== (G = /*modalIsOpen*/
|
|
4480
4437
|
x[7] ? "ModalCloseBtn" : "") && g(f, "class", G), R[0] & /*isClosing*/
|
|
4481
4438
|
4096 && C !== (C = "HamburgerModalWindow " + /*isClosing*/
|
|
4482
4439
|
(x[12] ? " Closing" : "")) && g(t, "class", C);
|
|
4483
4440
|
},
|
|
4484
4441
|
d(x) {
|
|
4485
|
-
x && I(t), N.d(),
|
|
4442
|
+
x && I(t), N.d(), we(M, x), P && P.d(), e[40](null), V = !1, X();
|
|
4486
4443
|
}
|
|
4487
4444
|
};
|
|
4488
4445
|
}
|
|
4489
|
-
function
|
|
4490
|
-
let t, r =
|
|
4446
|
+
function Go(e) {
|
|
4447
|
+
let t, r = Q(new Array(5)), n = [];
|
|
4491
4448
|
for (let i = 0; i < r.length; i += 1)
|
|
4492
|
-
n[i] =
|
|
4449
|
+
n[i] = jo(Do(e, r, i));
|
|
4493
4450
|
return {
|
|
4494
4451
|
c() {
|
|
4495
4452
|
for (let i = 0; i < n.length; i += 1)
|
|
4496
4453
|
n[i].c();
|
|
4497
|
-
t =
|
|
4454
|
+
t = mr();
|
|
4498
4455
|
},
|
|
4499
4456
|
m(i, o) {
|
|
4500
4457
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4503,22 +4460,22 @@ function Xo(e) {
|
|
|
4503
4460
|
},
|
|
4504
4461
|
p: $,
|
|
4505
4462
|
d(i) {
|
|
4506
|
-
i && I(t),
|
|
4463
|
+
i && I(t), we(n, i);
|
|
4507
4464
|
}
|
|
4508
4465
|
};
|
|
4509
4466
|
}
|
|
4510
|
-
function
|
|
4511
|
-
let t, r =
|
|
4467
|
+
function $o(e) {
|
|
4468
|
+
let t, r = Q(
|
|
4512
4469
|
/*HamburgerMenuItems*/
|
|
4513
4470
|
e[4]
|
|
4514
4471
|
), n = [];
|
|
4515
4472
|
for (let i = 0; i < r.length; i += 1)
|
|
4516
|
-
n[i] =
|
|
4473
|
+
n[i] = nr(er(e, r, i));
|
|
4517
4474
|
return {
|
|
4518
4475
|
c() {
|
|
4519
4476
|
for (let i = 0; i < n.length; i += 1)
|
|
4520
4477
|
n[i].c();
|
|
4521
|
-
t =
|
|
4478
|
+
t = mr();
|
|
4522
4479
|
},
|
|
4523
4480
|
m(i, o) {
|
|
4524
4481
|
for (let a = 0; a < n.length; a += 1)
|
|
@@ -4528,14 +4485,14 @@ function zo(e) {
|
|
|
4528
4485
|
p(i, o) {
|
|
4529
4486
|
if (o[0] & /*activeMenuItemId, HamburgerMenuItems, handlePrimaryMenuClick*/
|
|
4530
4487
|
131120) {
|
|
4531
|
-
r =
|
|
4488
|
+
r = Q(
|
|
4532
4489
|
/*HamburgerMenuItems*/
|
|
4533
4490
|
i[4]
|
|
4534
4491
|
);
|
|
4535
4492
|
let a;
|
|
4536
4493
|
for (a = 0; a < r.length; a += 1) {
|
|
4537
|
-
const s =
|
|
4538
|
-
n[a] ? n[a].p(s, o) : (n[a] =
|
|
4494
|
+
const s = er(i, r, a);
|
|
4495
|
+
n[a] ? n[a].p(s, o) : (n[a] = nr(s), n[a].c(), n[a].m(t.parentNode, t));
|
|
4539
4496
|
}
|
|
4540
4497
|
for (; a < n.length; a += 1)
|
|
4541
4498
|
n[a].d(1);
|
|
@@ -4543,11 +4500,11 @@ function zo(e) {
|
|
|
4543
4500
|
}
|
|
4544
4501
|
},
|
|
4545
4502
|
d(i) {
|
|
4546
|
-
i && I(t),
|
|
4503
|
+
i && I(t), we(n, i);
|
|
4547
4504
|
}
|
|
4548
4505
|
};
|
|
4549
4506
|
}
|
|
4550
|
-
function
|
|
4507
|
+
function jo(e) {
|
|
4551
4508
|
let t;
|
|
4552
4509
|
return {
|
|
4553
4510
|
c() {
|
|
@@ -4562,7 +4519,7 @@ function Zo(e) {
|
|
|
4562
4519
|
}
|
|
4563
4520
|
};
|
|
4564
4521
|
}
|
|
4565
|
-
function
|
|
4522
|
+
function rr(e) {
|
|
4566
4523
|
let t, r;
|
|
4567
4524
|
return {
|
|
4568
4525
|
c() {
|
|
@@ -4582,13 +4539,13 @@ function sr(e) {
|
|
|
4582
4539
|
}
|
|
4583
4540
|
};
|
|
4584
4541
|
}
|
|
4585
|
-
function
|
|
4542
|
+
function nr(e) {
|
|
4586
4543
|
let t, r, n, i, o = (
|
|
4587
4544
|
/*mainItem*/
|
|
4588
4545
|
e[64].label + ""
|
|
4589
|
-
), a, s, u,
|
|
4546
|
+
), a, s, l, u, h, c = (
|
|
4590
4547
|
/*mainItem*/
|
|
4591
|
-
e[64]?.img &&
|
|
4548
|
+
e[64]?.img && rr(e)
|
|
4592
4549
|
);
|
|
4593
4550
|
function f() {
|
|
4594
4551
|
return (
|
|
@@ -4601,28 +4558,28 @@ function ur(e) {
|
|
|
4601
4558
|
}
|
|
4602
4559
|
return {
|
|
4603
4560
|
c() {
|
|
4604
|
-
t = v("li"), r = v("div"),
|
|
4561
|
+
t = v("li"), r = v("div"), c && c.c(), n = U(), i = v("p"), a = ee(o), s = U(), g(r, "class", "HamburgerItemContainer"), g(t, "class", l = /*activeMenuItemId*/
|
|
4605
4562
|
e[5] === /*mainItem*/
|
|
4606
4563
|
e[64].id ? "ActiveItem" : "");
|
|
4607
4564
|
},
|
|
4608
|
-
m(
|
|
4609
|
-
F(
|
|
4565
|
+
m(m, p) {
|
|
4566
|
+
F(m, t, p), b(t, r), c && c.m(r, null), b(r, n), b(r, i), b(i, a), b(t, s), u || (h = te(t, "click", f), u = !0);
|
|
4610
4567
|
},
|
|
4611
|
-
p(
|
|
4612
|
-
e =
|
|
4613
|
-
e[64]?.img ?
|
|
4568
|
+
p(m, p) {
|
|
4569
|
+
e = m, /*mainItem*/
|
|
4570
|
+
e[64]?.img ? c ? c.p(e, p) : (c = rr(e), c.c(), c.m(r, n)) : c && (c.d(1), c = null), p[0] & /*HamburgerMenuItems*/
|
|
4614
4571
|
16 && o !== (o = /*mainItem*/
|
|
4615
|
-
e[64].label + "") &&
|
|
4616
|
-
48 &&
|
|
4572
|
+
e[64].label + "") && me(a, o), p[0] & /*activeMenuItemId, HamburgerMenuItems*/
|
|
4573
|
+
48 && l !== (l = /*activeMenuItemId*/
|
|
4617
4574
|
e[5] === /*mainItem*/
|
|
4618
|
-
e[64].id ? "ActiveItem" : "") && g(t, "class",
|
|
4575
|
+
e[64].id ? "ActiveItem" : "") && g(t, "class", l);
|
|
4619
4576
|
},
|
|
4620
|
-
d(
|
|
4621
|
-
|
|
4577
|
+
d(m) {
|
|
4578
|
+
m && I(t), c && c.d(), u = !1, h();
|
|
4622
4579
|
}
|
|
4623
4580
|
};
|
|
4624
4581
|
}
|
|
4625
|
-
function
|
|
4582
|
+
function ir(e) {
|
|
4626
4583
|
let t, r;
|
|
4627
4584
|
return {
|
|
4628
4585
|
c() {
|
|
@@ -4642,124 +4599,124 @@ function lr(e) {
|
|
|
4642
4599
|
}
|
|
4643
4600
|
};
|
|
4644
4601
|
}
|
|
4645
|
-
function
|
|
4602
|
+
function or(e) {
|
|
4646
4603
|
let t, r, n, i = (
|
|
4647
4604
|
/*secondaryItem*/
|
|
4648
4605
|
e[61].label + ""
|
|
4649
|
-
), o, a, s,
|
|
4606
|
+
), o, a, s, l, u = (
|
|
4650
4607
|
/*secondaryItem*/
|
|
4651
|
-
e[61]?.img &&
|
|
4608
|
+
e[61]?.img && ir(e)
|
|
4652
4609
|
);
|
|
4653
|
-
function
|
|
4610
|
+
function h(...c) {
|
|
4654
4611
|
return (
|
|
4655
4612
|
/*click_handler_1*/
|
|
4656
4613
|
e[36](
|
|
4657
4614
|
/*secondaryItem*/
|
|
4658
4615
|
e[61],
|
|
4659
|
-
...
|
|
4616
|
+
...c
|
|
4660
4617
|
)
|
|
4661
4618
|
);
|
|
4662
4619
|
}
|
|
4663
4620
|
return {
|
|
4664
4621
|
c() {
|
|
4665
|
-
t = v("li"),
|
|
4622
|
+
t = v("li"), u && u.c(), r = U(), n = v("p"), o = ee(i), a = U();
|
|
4666
4623
|
},
|
|
4667
|
-
m(
|
|
4668
|
-
F(
|
|
4624
|
+
m(c, f) {
|
|
4625
|
+
F(c, t, f), u && u.m(t, null), b(t, r), b(t, n), b(n, o), b(t, a), s || (l = te(t, "click", h), s = !0);
|
|
4669
4626
|
},
|
|
4670
|
-
p(
|
|
4671
|
-
e =
|
|
4672
|
-
e[61]?.img ?
|
|
4627
|
+
p(c, f) {
|
|
4628
|
+
e = c, /*secondaryItem*/
|
|
4629
|
+
e[61]?.img ? u ? u.p(e, f) : (u = ir(e), u.c(), u.m(t, r)) : u && (u.d(1), u = null), f[0] & /*activeMenuItemChildren*/
|
|
4673
4630
|
64 && i !== (i = /*secondaryItem*/
|
|
4674
|
-
e[61].label + "") &&
|
|
4631
|
+
e[61].label + "") && me(o, i);
|
|
4675
4632
|
},
|
|
4676
|
-
d(
|
|
4677
|
-
|
|
4633
|
+
d(c) {
|
|
4634
|
+
c && I(t), u && u.d(), s = !1, l();
|
|
4678
4635
|
}
|
|
4679
4636
|
};
|
|
4680
4637
|
}
|
|
4681
|
-
function
|
|
4638
|
+
function ar(e) {
|
|
4682
4639
|
let t, r, n = (
|
|
4683
4640
|
/*$_*/
|
|
4684
4641
|
e[15]("language") + ""
|
|
4685
|
-
), i, o, a, s,
|
|
4686
|
-
function
|
|
4642
|
+
), i, o, a, s, l;
|
|
4643
|
+
function u(f, m) {
|
|
4687
4644
|
return (
|
|
4688
4645
|
/*countryflaghamburger*/
|
|
4689
|
-
f[0] !== "true" ?
|
|
4646
|
+
f[0] !== "true" ? Vo : Wo
|
|
4690
4647
|
);
|
|
4691
4648
|
}
|
|
4692
|
-
let
|
|
4649
|
+
let h = u(e), c = h(e);
|
|
4693
4650
|
return {
|
|
4694
4651
|
c() {
|
|
4695
|
-
t = v("div"), r = v("span"), i = ee(n), o = U(),
|
|
4652
|
+
t = v("div"), r = v("span"), i = ee(n), o = U(), c.c(), g(r, "class", "LanguageSelectorTitle"), g(t, "class", a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4696
4653
|
(e[10] ? "Open" : ""));
|
|
4697
4654
|
},
|
|
4698
|
-
m(f,
|
|
4699
|
-
F(f, t,
|
|
4655
|
+
m(f, m) {
|
|
4656
|
+
F(f, t, m), b(t, r), b(r, i), b(t, o), c.m(t, null), s || (l = te(
|
|
4700
4657
|
t,
|
|
4701
4658
|
"click",
|
|
4702
4659
|
/*toggleLanguageDropdown*/
|
|
4703
4660
|
e[21]
|
|
4704
4661
|
), s = !0);
|
|
4705
4662
|
},
|
|
4706
|
-
p(f,
|
|
4707
|
-
|
|
4663
|
+
p(f, m) {
|
|
4664
|
+
m[0] & /*$_*/
|
|
4708
4665
|
32768 && n !== (n = /*$_*/
|
|
4709
|
-
f[15]("language") + "") &&
|
|
4666
|
+
f[15]("language") + "") && me(i, n), h === (h = u(f)) && c ? c.p(f, m) : (c.d(1), c = h(f), c && (c.c(), c.m(t, null))), m[0] & /*isOptionsListVisible*/
|
|
4710
4667
|
1024 && a !== (a = "LanguageSelector " + /*isOptionsListVisible*/
|
|
4711
4668
|
(f[10] ? "Open" : "")) && g(t, "class", a);
|
|
4712
4669
|
},
|
|
4713
4670
|
d(f) {
|
|
4714
|
-
f && I(t),
|
|
4671
|
+
f && I(t), c.d(), s = !1, l();
|
|
4715
4672
|
}
|
|
4716
4673
|
};
|
|
4717
4674
|
}
|
|
4718
|
-
function
|
|
4719
|
-
let t, r, n, i, o, a, s,
|
|
4675
|
+
function Wo(e) {
|
|
4676
|
+
let t, r, n, i, o, a, s, l = (
|
|
4720
4677
|
/*selectedLanguage*/
|
|
4721
4678
|
e[14].slice(-2) + ""
|
|
4722
|
-
),
|
|
4679
|
+
), u, h, c, f, m, p, y, S = (
|
|
4723
4680
|
/*isOptionsListVisible*/
|
|
4724
|
-
e[10] &&
|
|
4681
|
+
e[10] && sr(e)
|
|
4725
4682
|
);
|
|
4726
4683
|
return {
|
|
4727
4684
|
c() {
|
|
4728
|
-
t = v("div"), r = v("div"), n = v("span"), i = v("img"), a = U(), s = v("span"),
|
|
4685
|
+
t = v("div"), r = v("div"), n = v("span"), i = v("img"), a = U(), s = v("span"), u = ee(l), h = U(), c = v("span"), f = Ht("svg"), m = Ht("path"), y = U(), S && S.c(), K(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4729
4686
|
e[22](
|
|
4730
4687
|
/*selectedLanguage*/
|
|
4731
4688
|
e[14]
|
|
4732
|
-
)}.svg`) || g(i, "src", o), g(n, "class", "FlagIcon"), g(s, "class", "LanguageName"), g(
|
|
4689
|
+
)}.svg`) || g(i, "src", o), g(n, "class", "FlagIcon"), g(s, "class", "LanguageName"), g(m, "id", "arrow"), g(m, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), g(m, "transform", "translate(-274.511 -441.088)"), g(m, "fill", "#d1d1d1"), g(f, "xmlns", "http://www.w3.org/2000/svg"), g(f, "width", "14"), g(f, "height", "6.835"), g(f, "viewBox", "0 0 14 6.835"), g(c, "class", p = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4733
4690
|
(e[10] ? "TriangleActive" : "")), g(r, "class", "SelectedOption Item ItemLanguage"), g(t, "class", "LanguageDropdown");
|
|
4734
4691
|
},
|
|
4735
|
-
m(
|
|
4736
|
-
F(
|
|
4692
|
+
m(T, B) {
|
|
4693
|
+
F(T, t, B), b(t, r), b(r, n), b(n, i), b(r, a), b(r, s), b(s, u), b(r, h), b(r, c), b(c, f), b(f, m), b(t, y), S && S.m(t, null);
|
|
4737
4694
|
},
|
|
4738
|
-
p(
|
|
4695
|
+
p(T, B) {
|
|
4739
4696
|
B[0] & /*selectedLanguage, languagesArray*/
|
|
4740
4697
|
16896 && !K(i.src, o = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4741
|
-
|
|
4698
|
+
T[22](
|
|
4742
4699
|
/*selectedLanguage*/
|
|
4743
|
-
|
|
4700
|
+
T[14]
|
|
4744
4701
|
)}.svg`) && g(i, "src", o), B[0] & /*selectedLanguage*/
|
|
4745
|
-
16384 &&
|
|
4746
|
-
|
|
4747
|
-
1024 &&
|
|
4748
|
-
(
|
|
4749
|
-
|
|
4702
|
+
16384 && l !== (l = /*selectedLanguage*/
|
|
4703
|
+
T[14].slice(-2) + "") && me(u, l), B[0] & /*isOptionsListVisible*/
|
|
4704
|
+
1024 && p !== (p = "TriangleInactive " + /*isOptionsListVisible*/
|
|
4705
|
+
(T[10] ? "TriangleActive" : "")) && g(c, "class", p), /*isOptionsListVisible*/
|
|
4706
|
+
T[10] ? S ? S.p(T, B) : (S = sr(T), S.c(), S.m(t, null)) : S && (S.d(1), S = null);
|
|
4750
4707
|
},
|
|
4751
|
-
d(
|
|
4752
|
-
|
|
4708
|
+
d(T) {
|
|
4709
|
+
T && I(t), S && S.d();
|
|
4753
4710
|
}
|
|
4754
4711
|
};
|
|
4755
4712
|
}
|
|
4756
|
-
function
|
|
4757
|
-
let t, r, n, i =
|
|
4713
|
+
function Vo(e) {
|
|
4714
|
+
let t, r, n, i = Q(
|
|
4758
4715
|
/*languagesArray*/
|
|
4759
4716
|
e[9]
|
|
4760
4717
|
), o = [];
|
|
4761
4718
|
for (let a = 0; a < i.length; a += 1)
|
|
4762
|
-
o[a] =
|
|
4719
|
+
o[a] = ur(Yt(e, i, a));
|
|
4763
4720
|
return {
|
|
4764
4721
|
c() {
|
|
4765
4722
|
t = v("select");
|
|
@@ -4773,9 +4730,9 @@ function qo(e) {
|
|
|
4773
4730
|
},
|
|
4774
4731
|
m(a, s) {
|
|
4775
4732
|
F(a, t, s);
|
|
4776
|
-
for (let
|
|
4777
|
-
o[
|
|
4778
|
-
|
|
4733
|
+
for (let l = 0; l < o.length; l += 1)
|
|
4734
|
+
o[l] && o[l].m(t, null);
|
|
4735
|
+
Ot(
|
|
4779
4736
|
t,
|
|
4780
4737
|
/*selectedLanguage*/
|
|
4781
4738
|
e[14],
|
|
@@ -4798,38 +4755,38 @@ function qo(e) {
|
|
|
4798
4755
|
p(a, s) {
|
|
4799
4756
|
if (s[0] & /*languagesArray*/
|
|
4800
4757
|
512) {
|
|
4801
|
-
i =
|
|
4758
|
+
i = Q(
|
|
4802
4759
|
/*languagesArray*/
|
|
4803
4760
|
a[9]
|
|
4804
4761
|
);
|
|
4805
|
-
let
|
|
4806
|
-
for (
|
|
4807
|
-
const
|
|
4808
|
-
o[
|
|
4762
|
+
let l;
|
|
4763
|
+
for (l = 0; l < i.length; l += 1) {
|
|
4764
|
+
const u = Yt(a, i, l);
|
|
4765
|
+
o[l] ? o[l].p(u, s) : (o[l] = ur(u), o[l].c(), o[l].m(t, null));
|
|
4809
4766
|
}
|
|
4810
|
-
for (;
|
|
4811
|
-
o[
|
|
4767
|
+
for (; l < o.length; l += 1)
|
|
4768
|
+
o[l].d(1);
|
|
4812
4769
|
o.length = i.length;
|
|
4813
4770
|
}
|
|
4814
4771
|
s[0] & /*selectedLanguage, languagesArray*/
|
|
4815
|
-
16896 &&
|
|
4772
|
+
16896 && Ot(
|
|
4816
4773
|
t,
|
|
4817
4774
|
/*selectedLanguage*/
|
|
4818
4775
|
a[14]
|
|
4819
4776
|
);
|
|
4820
4777
|
},
|
|
4821
4778
|
d(a) {
|
|
4822
|
-
a && I(t),
|
|
4779
|
+
a && I(t), we(o, a), r = !1, de(n);
|
|
4823
4780
|
}
|
|
4824
4781
|
};
|
|
4825
4782
|
}
|
|
4826
|
-
function
|
|
4827
|
-
let t, r, n =
|
|
4783
|
+
function sr(e) {
|
|
4784
|
+
let t, r, n = Q(
|
|
4828
4785
|
/*languagesArray*/
|
|
4829
4786
|
e[9]
|
|
4830
4787
|
), i = [];
|
|
4831
4788
|
for (let o = 0; o < n.length; o += 1)
|
|
4832
|
-
i[o] =
|
|
4789
|
+
i[o] = lr(Jt(e, n, o));
|
|
4833
4790
|
return {
|
|
4834
4791
|
c() {
|
|
4835
4792
|
t = v("div");
|
|
@@ -4846,14 +4803,14 @@ function fr(e) {
|
|
|
4846
4803
|
p(o, a) {
|
|
4847
4804
|
if (a[0] & /*languageListOpen, selectLanguage, languagesArray, determineFlag*/
|
|
4848
4805
|
5245440) {
|
|
4849
|
-
n =
|
|
4806
|
+
n = Q(
|
|
4850
4807
|
/*languagesArray*/
|
|
4851
4808
|
o[9]
|
|
4852
4809
|
);
|
|
4853
4810
|
let s;
|
|
4854
4811
|
for (s = 0; s < n.length; s += 1) {
|
|
4855
|
-
const
|
|
4856
|
-
i[s] ? i[s].p(
|
|
4812
|
+
const l = Jt(o, n, s);
|
|
4813
|
+
i[s] ? i[s].p(l, a) : (i[s] = lr(l), i[s].c(), i[s].m(t, null));
|
|
4857
4814
|
}
|
|
4858
4815
|
for (; s < i.length; s += 1)
|
|
4859
4816
|
i[s].d(1);
|
|
@@ -4864,16 +4821,16 @@ function fr(e) {
|
|
|
4864
4821
|
(o[11] ? "Open" : "")) && g(t, "class", r);
|
|
4865
4822
|
},
|
|
4866
4823
|
d(o) {
|
|
4867
|
-
o && I(t),
|
|
4824
|
+
o && I(t), we(i, o);
|
|
4868
4825
|
}
|
|
4869
4826
|
};
|
|
4870
4827
|
}
|
|
4871
|
-
function
|
|
4828
|
+
function lr(e) {
|
|
4872
4829
|
let t, r, n, i, o, a, s = (
|
|
4873
4830
|
/*operatorLanguage*/
|
|
4874
4831
|
e[58] + ""
|
|
4875
|
-
), u,
|
|
4876
|
-
function
|
|
4832
|
+
), l, u, h, c, f;
|
|
4833
|
+
function m() {
|
|
4877
4834
|
return (
|
|
4878
4835
|
/*click_handler_2*/
|
|
4879
4836
|
e[39](
|
|
@@ -4884,34 +4841,34 @@ function dr(e) {
|
|
|
4884
4841
|
}
|
|
4885
4842
|
return {
|
|
4886
4843
|
c() {
|
|
4887
|
-
t = v("div"), r = v("span"), n = v("img"), o = U(), a = v("span"),
|
|
4844
|
+
t = v("div"), r = v("span"), n = v("img"), o = U(), a = v("span"), l = ee(s), u = U(), K(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4888
4845
|
e[22](
|
|
4889
4846
|
/*operatorLanguage*/
|
|
4890
4847
|
e[58]
|
|
4891
|
-
)}.svg`) || g(n, "src", i), g(r, "class", "FlagIcon"), g(a, "class", "LanguageName"), g(t, "class",
|
|
4848
|
+
)}.svg`) || g(n, "src", i), g(r, "class", "FlagIcon"), g(a, "class", "LanguageName"), g(t, "class", h = "LanguageOption " + /*languageListOpen*/
|
|
4892
4849
|
(e[11] ? "Open" : ""));
|
|
4893
4850
|
},
|
|
4894
|
-
m(
|
|
4895
|
-
F(
|
|
4851
|
+
m(p, y) {
|
|
4852
|
+
F(p, t, y), b(t, r), b(r, n), b(t, o), b(t, a), b(a, l), b(t, u), c || (f = te(t, "click", m), c = !0);
|
|
4896
4853
|
},
|
|
4897
|
-
p(
|
|
4898
|
-
e =
|
|
4854
|
+
p(p, y) {
|
|
4855
|
+
e = p, y[0] & /*languagesArray*/
|
|
4899
4856
|
512 && !K(n.src, i = `http://purecatamphetamine.github.io/country-flag-icons/3x2/${/*determineFlag*/
|
|
4900
4857
|
e[22](
|
|
4901
4858
|
/*operatorLanguage*/
|
|
4902
4859
|
e[58]
|
|
4903
4860
|
)}.svg`) && g(n, "src", i), y[0] & /*languagesArray*/
|
|
4904
4861
|
512 && s !== (s = /*operatorLanguage*/
|
|
4905
|
-
e[58] + "") &&
|
|
4906
|
-
2048 &&
|
|
4907
|
-
(e[11] ? "Open" : "")) && g(t, "class",
|
|
4862
|
+
e[58] + "") && me(l, s), y[0] & /*languageListOpen*/
|
|
4863
|
+
2048 && h !== (h = "LanguageOption " + /*languageListOpen*/
|
|
4864
|
+
(e[11] ? "Open" : "")) && g(t, "class", h);
|
|
4908
4865
|
},
|
|
4909
|
-
d(
|
|
4910
|
-
|
|
4866
|
+
d(p) {
|
|
4867
|
+
p && I(t), c = !1, f();
|
|
4911
4868
|
}
|
|
4912
4869
|
};
|
|
4913
4870
|
}
|
|
4914
|
-
function
|
|
4871
|
+
function ur(e) {
|
|
4915
4872
|
let t, r = (
|
|
4916
4873
|
/*lang*/
|
|
4917
4874
|
e[1].slice(-2) + ""
|
|
@@ -4919,7 +4876,7 @@ function pr(e) {
|
|
|
4919
4876
|
return {
|
|
4920
4877
|
c() {
|
|
4921
4878
|
t = v("option"), n = ee(r), t.__value = i = /*lang*/
|
|
4922
|
-
e[1],
|
|
4879
|
+
e[1], Tt(t, t.__value), t.selected = !0;
|
|
4923
4880
|
},
|
|
4924
4881
|
m(o, a) {
|
|
4925
4882
|
F(o, t, a), b(t, n);
|
|
@@ -4927,19 +4884,19 @@ function pr(e) {
|
|
|
4927
4884
|
p(o, a) {
|
|
4928
4885
|
a[0] & /*languagesArray*/
|
|
4929
4886
|
512 && r !== (r = /*lang*/
|
|
4930
|
-
o[1].slice(-2) + "") &&
|
|
4887
|
+
o[1].slice(-2) + "") && me(n, r), a[0] & /*languagesArray*/
|
|
4931
4888
|
512 && i !== (i = /*lang*/
|
|
4932
|
-
o[1]) && (t.__value = i,
|
|
4889
|
+
o[1]) && (t.__value = i, Tt(t, t.__value));
|
|
4933
4890
|
},
|
|
4934
4891
|
d(o) {
|
|
4935
4892
|
o && I(t);
|
|
4936
4893
|
}
|
|
4937
4894
|
};
|
|
4938
4895
|
}
|
|
4939
|
-
function
|
|
4896
|
+
function Xo(e) {
|
|
4940
4897
|
let t, r = (
|
|
4941
4898
|
/*show*/
|
|
4942
|
-
e[8] === !0 &&
|
|
4899
|
+
e[8] === !0 && tr(e)
|
|
4943
4900
|
);
|
|
4944
4901
|
return {
|
|
4945
4902
|
c() {
|
|
@@ -4950,7 +4907,7 @@ function Jo(e) {
|
|
|
4950
4907
|
},
|
|
4951
4908
|
p(n, i) {
|
|
4952
4909
|
/*show*/
|
|
4953
|
-
n[8] === !0 ? r ? r.p(n, i) : (r =
|
|
4910
|
+
n[8] === !0 ? r ? r.p(n, i) : (r = tr(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4954
4911
|
},
|
|
4955
4912
|
i: $,
|
|
4956
4913
|
o: $,
|
|
@@ -4959,30 +4916,30 @@ function Jo(e) {
|
|
|
4959
4916
|
}
|
|
4960
4917
|
};
|
|
4961
4918
|
}
|
|
4962
|
-
function
|
|
4919
|
+
function zo(e, t, r) {
|
|
4963
4920
|
let n;
|
|
4964
|
-
|
|
4965
|
-
let { menuitemsurl: i = "" } = t, { cmsendpoint: o } = t, { cmsenv: a = "stage" } = t, { userroles: s } = t, { lang:
|
|
4966
|
-
const
|
|
4967
|
-
fetch(
|
|
4968
|
-
Object.keys(d).forEach((
|
|
4969
|
-
|
|
4921
|
+
ln(e, Bo, (d) => r(15, n = d));
|
|
4922
|
+
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: p = "" } = t, { customlocaleidentifier: y = "" } = t, { countryflaghamburger: S = "" } = t, T, B = window.navigator.userAgent, L = [], G, C = "", V = [], X = !1, ne = !1, J = !0, N = [], j = !1, M = !1, P = !1, x = !1, R = !0, H, W = "", z;
|
|
4923
|
+
const zr = () => {
|
|
4924
|
+
fetch(c).then((d) => d.json()).then((d) => {
|
|
4925
|
+
Object.keys(d).forEach((A) => {
|
|
4926
|
+
Qt(A, d[A]);
|
|
4970
4927
|
});
|
|
4971
4928
|
}).catch((d) => {
|
|
4972
4929
|
console.log(d);
|
|
4973
4930
|
});
|
|
4974
4931
|
};
|
|
4975
|
-
Object.keys(
|
|
4976
|
-
|
|
4932
|
+
Object.keys(qt).forEach((d) => {
|
|
4933
|
+
Qt(d, qt[d]);
|
|
4977
4934
|
});
|
|
4978
|
-
const
|
|
4979
|
-
|
|
4980
|
-
let d =
|
|
4981
|
-
d && (d === "PC" ?
|
|
4982
|
-
},
|
|
4983
|
-
r(12, x = !0), r(13, R = !0), r(10,
|
|
4935
|
+
const je = () => {
|
|
4936
|
+
H = new URL(`${o}/${W.toLowerCase()}/hamburger-menu`);
|
|
4937
|
+
let d = Co(B);
|
|
4938
|
+
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);
|
|
4939
|
+
}, bt = () => {
|
|
4940
|
+
r(12, x = !0), r(13, R = !0), r(10, M = !1), r(11, P = !1), setTimeout(
|
|
4984
4941
|
() => {
|
|
4985
|
-
r(8, ne = !1), r(7,
|
|
4942
|
+
r(8, ne = !1), r(7, X = !1);
|
|
4986
4943
|
},
|
|
4987
4944
|
200
|
|
4988
4945
|
), window.postMessage(
|
|
@@ -4992,41 +4949,41 @@ function Yo(e, t, r) {
|
|
|
4992
4949
|
},
|
|
4993
4950
|
window.location.href
|
|
4994
4951
|
);
|
|
4995
|
-
},
|
|
4952
|
+
}, yt = (d) => {
|
|
4996
4953
|
d.data.type === "OpenHamburgerMenuModal" && (window.postMessage({ type: "DisableScroll" }, window.location.href), r(12, x = !1), setTimeout(
|
|
4997
4954
|
() => {
|
|
4998
4955
|
r(13, R = !1);
|
|
4999
4956
|
},
|
|
5000
4957
|
125
|
|
5001
|
-
), r(8, ne = !0), r(7,
|
|
5002
|
-
},
|
|
5003
|
-
r(5, C = d), r(6, V =
|
|
4958
|
+
), r(8, ne = !0), r(7, X = !0), je(), xt(H)), d.data.type === "LanguageChanged" && (j = !0, je(), xt(H));
|
|
4959
|
+
}, We = (d, A) => {
|
|
4960
|
+
r(5, C = d), r(6, V = A || []), typeof gtag == "function" && gtag("event", "ChangeMenu", {
|
|
5004
4961
|
context: "HamburgerMenu",
|
|
5005
4962
|
menuItem: `${C}`
|
|
5006
4963
|
});
|
|
5007
|
-
},
|
|
5008
|
-
!d?.children && d?.path && d?.keyword?.includes("InternalLink") &&
|
|
5009
|
-
},
|
|
5010
|
-
let d =
|
|
4964
|
+
}, vt = (d) => {
|
|
4965
|
+
!d?.children && d?.path && d?.keyword?.includes("InternalLink") && Ve(d), We(d.id, d.children);
|
|
4966
|
+
}, _t = () => {
|
|
4967
|
+
let d = L.filter((A) => {
|
|
5011
4968
|
let He = !1;
|
|
5012
|
-
return
|
|
5013
|
-
|
|
4969
|
+
return A.children?.forEach((on) => {
|
|
4970
|
+
on.path.includes(u) && (He = !0);
|
|
5014
4971
|
}), He;
|
|
5015
4972
|
});
|
|
5016
|
-
d.length > 0 ?
|
|
5017
|
-
},
|
|
5018
|
-
G && !j ||
|
|
5019
|
-
},
|
|
5020
|
-
fetch(d).then((
|
|
5021
|
-
(
|
|
5022
|
-
r(4,
|
|
4973
|
+
d.length > 0 ? We(d[0].id, d[0].children) : We(L[0].id, L[0].children);
|
|
4974
|
+
}, xt = (d) => {
|
|
4975
|
+
G && !j || Et(d);
|
|
4976
|
+
}, Et = (d) => {
|
|
4977
|
+
fetch(d).then((A) => A.json()).then(
|
|
4978
|
+
(A) => {
|
|
4979
|
+
r(4, L = A.filter((He) => He?.type !== "banner")), _t(), r(34, J = !1), G = A, j = !1;
|
|
5023
4980
|
},
|
|
5024
|
-
(
|
|
5025
|
-
console.error(
|
|
4981
|
+
(A) => {
|
|
4982
|
+
console.error(A);
|
|
5026
4983
|
}
|
|
5027
4984
|
);
|
|
5028
4985
|
};
|
|
5029
|
-
let
|
|
4986
|
+
let Ve = (d) => {
|
|
5030
4987
|
window.postMessage(
|
|
5031
4988
|
{
|
|
5032
4989
|
type: "NavigateTo",
|
|
@@ -5035,9 +4992,9 @@ function Yo(e, t, r) {
|
|
|
5035
4992
|
target: d.attrs.target || null
|
|
5036
4993
|
},
|
|
5037
4994
|
window.location.href
|
|
5038
|
-
),
|
|
4995
|
+
), bt();
|
|
5039
4996
|
};
|
|
5040
|
-
const
|
|
4997
|
+
const Xe = () => {
|
|
5041
4998
|
j = !0, window.postMessage(
|
|
5042
4999
|
{
|
|
5043
5000
|
type: "LanguageChanged",
|
|
@@ -5045,122 +5002,122 @@ function Yo(e, t, r) {
|
|
|
5045
5002
|
},
|
|
5046
5003
|
window.location.href
|
|
5047
5004
|
);
|
|
5048
|
-
},
|
|
5049
|
-
|
|
5050
|
-
},
|
|
5005
|
+
}, Zr = () => {
|
|
5006
|
+
Fo(l), je(), j && Et(H), r(9, N = h.replace(/ /g, "").split(",")), r(9, N = N.map((d) => d.toUpperCase())), r(14, W = l.toUpperCase());
|
|
5007
|
+
}, wt = (d) => {
|
|
5051
5008
|
r(14, W = d), setTimeout(
|
|
5052
5009
|
() => {
|
|
5053
|
-
r(11,
|
|
5010
|
+
r(11, P = !1);
|
|
5054
5011
|
},
|
|
5055
5012
|
250
|
|
5056
5013
|
), setTimeout(
|
|
5057
5014
|
() => {
|
|
5058
|
-
r(10,
|
|
5015
|
+
r(10, M = !1);
|
|
5059
5016
|
},
|
|
5060
5017
|
500
|
|
5061
|
-
),
|
|
5062
|
-
},
|
|
5063
|
-
|
|
5018
|
+
), Xe();
|
|
5019
|
+
}, Qr = () => {
|
|
5020
|
+
M ? (setTimeout(
|
|
5064
5021
|
() => {
|
|
5065
|
-
r(10,
|
|
5022
|
+
r(10, M = !1);
|
|
5066
5023
|
},
|
|
5067
5024
|
250
|
|
5068
|
-
), r(11,
|
|
5025
|
+
), r(11, P = !1)) : (r(10, M = !0), setTimeout(
|
|
5069
5026
|
() => {
|
|
5070
|
-
r(11,
|
|
5027
|
+
r(11, P = !0);
|
|
5071
5028
|
},
|
|
5072
5029
|
300
|
|
5073
5030
|
));
|
|
5074
|
-
},
|
|
5075
|
-
let
|
|
5076
|
-
return y && (
|
|
5031
|
+
}, qr = (d) => {
|
|
5032
|
+
let A = d ? d.slice(-2) : W.slice(-2);
|
|
5033
|
+
return y && (A = y.includes(A.toLowerCase()) ? y.slice(-2) : A), A == "EN" ? "GB" : A.toUpperCase();
|
|
5077
5034
|
};
|
|
5078
|
-
|
|
5079
|
-
window.removeEventListener("message",
|
|
5035
|
+
pn(() => (window.addEventListener("message", yt, !1), Io(B), () => {
|
|
5036
|
+
window.removeEventListener("message", yt);
|
|
5080
5037
|
}));
|
|
5081
|
-
const
|
|
5082
|
-
|
|
5038
|
+
const Jr = (d) => vt(d), Yr = (d, A) => {
|
|
5039
|
+
Ve(d), A.preventDefault();
|
|
5083
5040
|
};
|
|
5084
|
-
function
|
|
5085
|
-
W =
|
|
5041
|
+
function Kr() {
|
|
5042
|
+
W = dn(this), r(14, W), r(9, N);
|
|
5086
5043
|
}
|
|
5087
|
-
const
|
|
5088
|
-
function
|
|
5044
|
+
const en = () => Xe(), tn = (d) => wt(d);
|
|
5045
|
+
function rn(d) {
|
|
5089
5046
|
Ce[d ? "unshift" : "push"](() => {
|
|
5090
|
-
|
|
5047
|
+
T = d, r(3, T);
|
|
5091
5048
|
});
|
|
5092
5049
|
}
|
|
5093
|
-
function
|
|
5050
|
+
function nn(d) {
|
|
5094
5051
|
Ce[d ? "unshift" : "push"](() => {
|
|
5095
|
-
|
|
5052
|
+
z = d, r(2, z);
|
|
5096
5053
|
});
|
|
5097
5054
|
}
|
|
5098
5055
|
return e.$$set = (d) => {
|
|
5099
|
-
"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,
|
|
5056
|
+
"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, p = d.clientstylingurl), "customlocaleidentifier" in d && r(33, y = d.customlocaleidentifier), "countryflaghamburger" in d && r(0, S = d.countryflaghamburger);
|
|
5100
5057
|
}, e.$$.update = () => {
|
|
5101
5058
|
e.$$.dirty[0] & /*cmsendpoint, cmsenv, lang, languageslist*/
|
|
5102
|
-
318767106 && o && a &&
|
|
5059
|
+
318767106 && o && a && l && h && Zr(), e.$$.dirty[0] & /*activecategory*/
|
|
5103
5060
|
134217728 | e.$$.dirty[1] & /*isLoading*/
|
|
5104
|
-
8 &&
|
|
5105
|
-
536870912 &&
|
|
5061
|
+
8 && u && !J && _t(), e.$$.dirty[0] & /*translationurl*/
|
|
5062
|
+
536870912 && c && zr(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5106
5063
|
4 | e.$$.dirty[1] & /*clientstyling*/
|
|
5107
|
-
1 &&
|
|
5064
|
+
1 && m && z && No(z, m), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5108
5065
|
4 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5109
|
-
2 &&
|
|
5110
|
-
1073741828 && f &&
|
|
5066
|
+
2 && p && z && Ro(z, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5067
|
+
1073741828 && f && z && Uo(z, `${f}.Style`);
|
|
5111
5068
|
}, [
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5069
|
+
S,
|
|
5070
|
+
l,
|
|
5071
|
+
z,
|
|
5072
|
+
T,
|
|
5073
|
+
L,
|
|
5117
5074
|
C,
|
|
5118
5075
|
V,
|
|
5119
|
-
|
|
5076
|
+
X,
|
|
5120
5077
|
ne,
|
|
5121
5078
|
N,
|
|
5122
|
-
|
|
5123
|
-
|
|
5079
|
+
M,
|
|
5080
|
+
P,
|
|
5124
5081
|
x,
|
|
5125
5082
|
R,
|
|
5126
5083
|
W,
|
|
5127
5084
|
n,
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5085
|
+
bt,
|
|
5086
|
+
vt,
|
|
5087
|
+
Ve,
|
|
5088
|
+
Xe,
|
|
5089
|
+
wt,
|
|
5090
|
+
Qr,
|
|
5091
|
+
qr,
|
|
5135
5092
|
i,
|
|
5136
5093
|
o,
|
|
5137
5094
|
a,
|
|
5138
5095
|
s,
|
|
5139
|
-
|
|
5140
|
-
c,
|
|
5096
|
+
u,
|
|
5141
5097
|
h,
|
|
5098
|
+
c,
|
|
5142
5099
|
f,
|
|
5143
|
-
p,
|
|
5144
5100
|
m,
|
|
5101
|
+
p,
|
|
5145
5102
|
y,
|
|
5146
5103
|
J,
|
|
5104
|
+
Jr,
|
|
5105
|
+
Yr,
|
|
5106
|
+
Kr,
|
|
5107
|
+
en,
|
|
5108
|
+
tn,
|
|
5147
5109
|
rn,
|
|
5148
|
-
nn
|
|
5149
|
-
on,
|
|
5150
|
-
an,
|
|
5151
|
-
sn,
|
|
5152
|
-
un,
|
|
5153
|
-
ln
|
|
5110
|
+
nn
|
|
5154
5111
|
];
|
|
5155
5112
|
}
|
|
5156
|
-
class
|
|
5113
|
+
class Xr extends Mn {
|
|
5157
5114
|
constructor(t) {
|
|
5158
|
-
super(),
|
|
5115
|
+
super(), Tn(
|
|
5159
5116
|
this,
|
|
5160
5117
|
t,
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5118
|
+
zo,
|
|
5119
|
+
Xo,
|
|
5120
|
+
cr,
|
|
5164
5121
|
{
|
|
5165
5122
|
menuitemsurl: 23,
|
|
5166
5123
|
cmsendpoint: 24,
|
|
@@ -5176,7 +5133,7 @@ class Jr extends In {
|
|
|
5176
5133
|
customlocaleidentifier: 33,
|
|
5177
5134
|
countryflaghamburger: 0
|
|
5178
5135
|
},
|
|
5179
|
-
|
|
5136
|
+
ko,
|
|
5180
5137
|
[-1, -1, -1]
|
|
5181
5138
|
);
|
|
5182
5139
|
}
|
|
@@ -5259,56 +5216,56 @@ class Jr extends In {
|
|
|
5259
5216
|
this.$$set({ countryflaghamburger: t }), k();
|
|
5260
5217
|
}
|
|
5261
5218
|
}
|
|
5262
|
-
|
|
5263
|
-
const
|
|
5219
|
+
On(Xr, { menuitemsurl: {}, cmsendpoint: {}, cmsenv: {}, userroles: {}, lang: {}, activecategory: {}, languageslist: {}, translationurl: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, customlocaleidentifier: {}, countryflaghamburger: {} }, [], [], !0);
|
|
5220
|
+
const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5264
5221
|
__proto__: null,
|
|
5265
|
-
default:
|
|
5222
|
+
default: Xr
|
|
5266
5223
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5267
5224
|
export {
|
|
5268
|
-
|
|
5225
|
+
pe as $,
|
|
5269
5226
|
$ as A,
|
|
5270
5227
|
K as B,
|
|
5271
|
-
|
|
5272
|
-
|
|
5228
|
+
Io as C,
|
|
5229
|
+
ta as D,
|
|
5273
5230
|
Ce as E,
|
|
5274
|
-
|
|
5231
|
+
me as F,
|
|
5275
5232
|
ee as G,
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5233
|
+
Ht as H,
|
|
5234
|
+
Q as I,
|
|
5235
|
+
we as J,
|
|
5236
|
+
Co as K,
|
|
5237
|
+
Bo as L,
|
|
5238
|
+
No as M,
|
|
5239
|
+
Ro as N,
|
|
5240
|
+
Uo as O,
|
|
5241
|
+
na as P,
|
|
5242
|
+
ea as Q,
|
|
5243
|
+
ia as R,
|
|
5244
|
+
Mn as S,
|
|
5288
5245
|
Se as a,
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5246
|
+
Gr as b,
|
|
5247
|
+
On as c,
|
|
5248
|
+
un as d,
|
|
5249
|
+
Zo as e,
|
|
5293
5250
|
k as f,
|
|
5294
5251
|
I as g,
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5252
|
+
En as h,
|
|
5253
|
+
Tn as i,
|
|
5254
|
+
Jo as j,
|
|
5255
|
+
Qo as k,
|
|
5299
5256
|
g as l,
|
|
5300
|
-
|
|
5257
|
+
Ko as m,
|
|
5301
5258
|
F as n,
|
|
5302
5259
|
b as o,
|
|
5303
5260
|
te as p,
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5261
|
+
Yo as q,
|
|
5262
|
+
de as r,
|
|
5263
|
+
cr as s,
|
|
5264
|
+
ra as t,
|
|
5265
|
+
qo as u,
|
|
5309
5266
|
v,
|
|
5310
5267
|
U as w,
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5268
|
+
ln as x,
|
|
5269
|
+
pn as y,
|
|
5270
|
+
mr as z
|
|
5314
5271
|
};
|