@everymatrix/casino-categories-slider-nd 1.91.0 → 1.91.2
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/CasinoCategoriesSliderNd-2Quuc3ck.cjs +18 -0
- package/components/{CasinoCategoriesSliderNd-BWqoXf-5.js → CasinoCategoriesSliderNd-C4sag_KI.js} +1053 -1003
- package/components/{CasinoCategoriesSliderNd-ZO9F4w2s.js → CasinoCategoriesSliderNd-D5tnSinn.js} +908 -875
- package/components/CasinoSliderNd-BacEGmij.js +1285 -0
- package/components/CasinoSliderNd-CNjA72Qt.cjs +1 -0
- package/components/CasinoSliderNd-CP4w8BCT.js +1251 -0
- package/es2015/casino-categories-slider-nd.cjs +1 -1
- package/es2015/casino-categories-slider-nd.js +1 -1
- package/esnext/casino-categories-slider-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSliderNd-DwFl3Dle.cjs +0 -18
- package/components/CasinoSliderNd-C0ZKaUHE.js +0 -1082
- package/components/CasinoSliderNd-C5TGWqFn.cjs +0 -1
- package/components/CasinoSliderNd-cWm8Dova.js +0 -1101
package/components/{CasinoCategoriesSliderNd-BWqoXf-5.js → CasinoCategoriesSliderNd-C4sag_KI.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var nn = Object.defineProperty, sn = Object.defineProperties;
|
|
2
|
+
var on = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ct = Object.getOwnPropertySymbols;
|
|
4
|
+
var an = Object.prototype.hasOwnProperty, un = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ze = (e, t, r) => t in e ? nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, q = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
an.call(t, r) && ze(e, r, t[r]);
|
|
8
|
+
if (Ct)
|
|
9
|
+
for (var r of Ct(t))
|
|
10
|
+
un.call(t, r) && ze(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Q = (e, t) => sn(e, on(t));
|
|
13
|
+
var G = (e, t, r) => (ze(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var It = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -27,53 +27,53 @@ var St = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function M() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function nr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Mt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ce(e) {
|
|
39
|
+
e.forEach(nr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Et(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ir(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let Be;
|
|
48
|
+
function qs(e, t) {
|
|
49
|
+
return e === t ? !0 : (Be || (Be = document.createElement("a")), Be.href = t, e === Be.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function hn(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function sr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
58
|
-
return
|
|
58
|
+
return M;
|
|
59
59
|
}
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function ln(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(sr(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function or(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function cn(e, t, r) {
|
|
70
|
+
const n = fn(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = Y("style");
|
|
73
|
+
i.id = t, i.textContent = r, mn(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function fn(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,56 +83,62 @@ function Jr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function mn(e, t) {
|
|
87
|
+
return or(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function xe(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function fe(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Qs(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Y(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Ys(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ar(e) {
|
|
110
110
|
return document.createTextNode(e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function Js() {
|
|
113
|
+
return ar(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function Ks() {
|
|
116
|
+
return ar("");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function eo(e, t, r, n) {
|
|
119
119
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function me(e, t, r) {
|
|
122
122
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
123
123
|
}
|
|
124
124
|
function v(e, t, r) {
|
|
125
125
|
const n = t.toLowerCase();
|
|
126
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
126
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : me(e, t, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function dn(e) {
|
|
129
129
|
return Array.from(e.childNodes);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function to(e, t) {
|
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
133
133
|
t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ro(e, t, r, n) {
|
|
136
|
+
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
137
|
+
}
|
|
138
|
+
function no(e, t, r) {
|
|
139
|
+
e.classList.toggle(t, !!r);
|
|
140
|
+
}
|
|
141
|
+
function bn(e) {
|
|
136
142
|
const t = {};
|
|
137
143
|
return e.childNodes.forEach(
|
|
138
144
|
/** @param {Element} node */
|
|
@@ -141,131 +147,131 @@ function tn(e) {
|
|
|
141
147
|
}
|
|
142
148
|
), t;
|
|
143
149
|
}
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
|
|
150
|
+
let ve;
|
|
151
|
+
function ge(e) {
|
|
152
|
+
ve = e;
|
|
147
153
|
}
|
|
148
|
-
function
|
|
149
|
-
if (!
|
|
154
|
+
function pn() {
|
|
155
|
+
if (!ve)
|
|
150
156
|
throw new Error("Function called outside component initialization");
|
|
151
|
-
return
|
|
157
|
+
return ve;
|
|
152
158
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
159
|
+
function yn(e) {
|
|
160
|
+
pn().$$.on_mount.push(e);
|
|
155
161
|
}
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
const
|
|
159
|
-
let
|
|
160
|
-
function
|
|
161
|
-
|
|
162
|
+
const ie = [], rt = [];
|
|
163
|
+
let oe = [];
|
|
164
|
+
const Rt = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
165
|
+
let nt = !1;
|
|
166
|
+
function hr() {
|
|
167
|
+
nt || (nt = !0, ur.then(x));
|
|
162
168
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
169
|
+
function gn() {
|
|
170
|
+
return hr(), ur;
|
|
165
171
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
172
|
+
function it(e) {
|
|
173
|
+
oe.push(e);
|
|
168
174
|
}
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
function
|
|
172
|
-
if (
|
|
175
|
+
const Ze = /* @__PURE__ */ new Set();
|
|
176
|
+
let re = 0;
|
|
177
|
+
function x() {
|
|
178
|
+
if (re !== 0)
|
|
173
179
|
return;
|
|
174
|
-
const e =
|
|
180
|
+
const e = ve;
|
|
175
181
|
do {
|
|
176
182
|
try {
|
|
177
|
-
for (;
|
|
178
|
-
const t =
|
|
179
|
-
|
|
183
|
+
for (; re < ie.length; ) {
|
|
184
|
+
const t = ie[re];
|
|
185
|
+
re++, ge(t), vn(t.$$);
|
|
180
186
|
}
|
|
181
187
|
} catch (t) {
|
|
182
|
-
throw
|
|
188
|
+
throw ie.length = 0, re = 0, t;
|
|
183
189
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
186
|
-
for (let t = 0; t <
|
|
187
|
-
const r =
|
|
188
|
-
|
|
190
|
+
for (ge(null), ie.length = 0, re = 0; rt.length; )
|
|
191
|
+
rt.pop()();
|
|
192
|
+
for (let t = 0; t < oe.length; t += 1) {
|
|
193
|
+
const r = oe[t];
|
|
194
|
+
Ze.has(r) || (Ze.add(r), r());
|
|
189
195
|
}
|
|
190
|
-
|
|
191
|
-
} while (
|
|
192
|
-
for (;
|
|
193
|
-
|
|
194
|
-
|
|
196
|
+
oe.length = 0;
|
|
197
|
+
} while (ie.length);
|
|
198
|
+
for (; Rt.length; )
|
|
199
|
+
Rt.pop()();
|
|
200
|
+
nt = !1, Ze.clear(), ge(e);
|
|
195
201
|
}
|
|
196
|
-
function
|
|
202
|
+
function vn(e) {
|
|
197
203
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
204
|
+
e.update(), ce(e.before_update);
|
|
199
205
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
206
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(it);
|
|
201
207
|
}
|
|
202
208
|
}
|
|
203
|
-
function
|
|
209
|
+
function _n(e) {
|
|
204
210
|
const t = [], r = [];
|
|
205
|
-
|
|
211
|
+
oe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), oe = t;
|
|
206
212
|
}
|
|
207
|
-
const
|
|
208
|
-
function
|
|
209
|
-
e && e.i && (
|
|
213
|
+
const En = /* @__PURE__ */ new Set();
|
|
214
|
+
function lr(e, t) {
|
|
215
|
+
e && e.i && (En.delete(e), e.i(t));
|
|
210
216
|
}
|
|
211
|
-
function
|
|
217
|
+
function io(e) {
|
|
212
218
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
213
219
|
}
|
|
214
|
-
function
|
|
220
|
+
function so(e, t) {
|
|
215
221
|
e.d(1), t.delete(e.key);
|
|
216
222
|
}
|
|
217
|
-
function
|
|
218
|
-
let
|
|
223
|
+
function oo(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
224
|
+
let f = e.length, d = s.length, p = f;
|
|
219
225
|
const b = {};
|
|
220
226
|
for (; p--; )
|
|
221
227
|
b[e[p].key] = p;
|
|
222
|
-
const
|
|
228
|
+
const H = [], R = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), A = [];
|
|
223
229
|
for (p = d; p--; ) {
|
|
224
|
-
const
|
|
225
|
-
let
|
|
226
|
-
|
|
230
|
+
const E = m(i, s, p), I = r(E);
|
|
231
|
+
let N = o.get(I);
|
|
232
|
+
N ? A.push(() => N.p(E, t)) : (N = u(I, E), N.c()), R.set(I, H[p] = N), I in b && L.set(I, Math.abs(p - b[I]));
|
|
227
233
|
}
|
|
228
|
-
const
|
|
229
|
-
function
|
|
230
|
-
|
|
234
|
+
const C = /* @__PURE__ */ new Set(), B = /* @__PURE__ */ new Set();
|
|
235
|
+
function U(E) {
|
|
236
|
+
lr(E, 1), E.m(a, l), o.set(E.key, E), l = E.first, d--;
|
|
231
237
|
}
|
|
232
|
-
for (;
|
|
233
|
-
const
|
|
234
|
-
|
|
238
|
+
for (; f && d; ) {
|
|
239
|
+
const E = H[d - 1], I = e[f - 1], N = E.key, V = I.key;
|
|
240
|
+
E === I ? (l = E.first, f--, d--) : R.has(V) ? !o.has(N) || C.has(N) ? U(E) : B.has(V) ? f-- : L.get(N) > L.get(V) ? (B.add(N), U(E)) : (C.add(V), f--) : (h(I, o), f--);
|
|
235
241
|
}
|
|
236
|
-
for (;
|
|
237
|
-
const
|
|
238
|
-
|
|
242
|
+
for (; f--; ) {
|
|
243
|
+
const E = e[f];
|
|
244
|
+
R.has(E.key) || h(E, o);
|
|
239
245
|
}
|
|
240
246
|
for (; d; )
|
|
241
|
-
|
|
242
|
-
return
|
|
247
|
+
U(H[d - 1]);
|
|
248
|
+
return ce(A), H;
|
|
243
249
|
}
|
|
244
|
-
function
|
|
250
|
+
function xn(e, t, r) {
|
|
245
251
|
const { fragment: n, after_update: i } = e.$$;
|
|
246
|
-
n && n.m(t, r),
|
|
247
|
-
const s = e.$$.on_mount.map(
|
|
248
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
249
|
-
}), i.forEach(
|
|
252
|
+
n && n.m(t, r), it(() => {
|
|
253
|
+
const s = e.$$.on_mount.map(nr).filter(Et);
|
|
254
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ce(s), e.$$.on_mount = [];
|
|
255
|
+
}), i.forEach(it);
|
|
250
256
|
}
|
|
251
|
-
function
|
|
257
|
+
function Sn(e, t) {
|
|
252
258
|
const r = e.$$;
|
|
253
|
-
r.fragment !== null && (
|
|
259
|
+
r.fragment !== null && (_n(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
254
260
|
}
|
|
255
|
-
function
|
|
256
|
-
e.$$.dirty[0] === -1 && (
|
|
261
|
+
function wn(e, t) {
|
|
262
|
+
e.$$.dirty[0] === -1 && (ie.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
257
263
|
}
|
|
258
|
-
function
|
|
259
|
-
const h =
|
|
260
|
-
|
|
264
|
+
function Tn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
265
|
+
const h = ve;
|
|
266
|
+
ge(e);
|
|
261
267
|
const u = e.$$ = {
|
|
262
268
|
fragment: null,
|
|
263
269
|
ctx: [],
|
|
264
270
|
// state
|
|
265
271
|
props: s,
|
|
266
|
-
update:
|
|
272
|
+
update: M,
|
|
267
273
|
not_equal: i,
|
|
268
|
-
bound:
|
|
274
|
+
bound: Mt(),
|
|
269
275
|
// lifecycle
|
|
270
276
|
on_mount: [],
|
|
271
277
|
on_destroy: [],
|
|
@@ -274,48 +280,48 @@ function fn(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
274
280
|
after_update: [],
|
|
275
281
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
276
282
|
// everything else
|
|
277
|
-
callbacks:
|
|
283
|
+
callbacks: Mt(),
|
|
278
284
|
dirty: a,
|
|
279
285
|
skip_bound: !1,
|
|
280
286
|
root: t.target || h.$$.root
|
|
281
287
|
};
|
|
282
288
|
o && o(u.root);
|
|
283
289
|
let l = !1;
|
|
284
|
-
if (u.ctx = r ? r(e, t.props || {}, (m,
|
|
285
|
-
const p = d.length ? d[0] :
|
|
286
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = p) && (!u.skip_bound && u.bound[m] && u.bound[m](p), l &&
|
|
287
|
-
}) : [], u.update(), l = !0,
|
|
290
|
+
if (u.ctx = r ? r(e, t.props || {}, (m, f, ...d) => {
|
|
291
|
+
const p = d.length ? d[0] : f;
|
|
292
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = p) && (!u.skip_bound && u.bound[m] && u.bound[m](p), l && wn(e, m)), f;
|
|
293
|
+
}) : [], u.update(), l = !0, ce(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
288
294
|
if (t.hydrate) {
|
|
289
|
-
const m =
|
|
290
|
-
u.fragment && u.fragment.l(m), m.forEach(
|
|
295
|
+
const m = dn(t.target);
|
|
296
|
+
u.fragment && u.fragment.l(m), m.forEach(fe);
|
|
291
297
|
} else
|
|
292
298
|
u.fragment && u.fragment.c();
|
|
293
|
-
t.intro &&
|
|
299
|
+
t.intro && lr(e.$$.fragment), xn(e, t.target, t.anchor), x();
|
|
294
300
|
}
|
|
295
|
-
|
|
301
|
+
ge(h);
|
|
296
302
|
}
|
|
297
|
-
let
|
|
298
|
-
typeof HTMLElement == "function" && (
|
|
303
|
+
let cr;
|
|
304
|
+
typeof HTMLElement == "function" && (cr = class extends HTMLElement {
|
|
299
305
|
constructor(t, r, n) {
|
|
300
306
|
super();
|
|
301
307
|
/** The Svelte component constructor */
|
|
302
|
-
|
|
308
|
+
G(this, "$$ctor");
|
|
303
309
|
/** Slots */
|
|
304
|
-
|
|
310
|
+
G(this, "$$s");
|
|
305
311
|
/** The Svelte component instance */
|
|
306
|
-
|
|
312
|
+
G(this, "$$c");
|
|
307
313
|
/** Whether or not the custom element is connected */
|
|
308
|
-
|
|
314
|
+
G(this, "$$cn", !1);
|
|
309
315
|
/** Component props data */
|
|
310
|
-
|
|
316
|
+
G(this, "$$d", {});
|
|
311
317
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
312
|
-
|
|
318
|
+
G(this, "$$r", !1);
|
|
313
319
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
314
|
-
|
|
320
|
+
G(this, "$$p_d", {});
|
|
315
321
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
316
|
-
|
|
322
|
+
G(this, "$$l", {});
|
|
317
323
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
318
|
-
|
|
324
|
+
G(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
319
325
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
320
326
|
}
|
|
321
327
|
addEventListener(t, r, n) {
|
|
@@ -332,42 +338,42 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
332
338
|
}
|
|
333
339
|
}
|
|
334
340
|
connectedCallback() {
|
|
335
|
-
return
|
|
341
|
+
return It(this, null, function* () {
|
|
336
342
|
if (this.$$cn = !0, !this.$$c) {
|
|
337
343
|
let t = function(s) {
|
|
338
344
|
return () => {
|
|
339
345
|
let o;
|
|
340
346
|
return {
|
|
341
347
|
c: function() {
|
|
342
|
-
o =
|
|
348
|
+
o = Y("slot"), s !== "default" && me(o, "name", s);
|
|
343
349
|
},
|
|
344
350
|
/**
|
|
345
351
|
* @param {HTMLElement} target
|
|
346
352
|
* @param {HTMLElement} [anchor]
|
|
347
353
|
*/
|
|
348
354
|
m: function(u, l) {
|
|
349
|
-
|
|
355
|
+
xe(u, o, l);
|
|
350
356
|
},
|
|
351
357
|
d: function(u) {
|
|
352
|
-
u &&
|
|
358
|
+
u && fe(o);
|
|
353
359
|
}
|
|
354
360
|
};
|
|
355
361
|
};
|
|
356
362
|
};
|
|
357
363
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
358
364
|
return;
|
|
359
|
-
const r = {}, n =
|
|
365
|
+
const r = {}, n = bn(this);
|
|
360
366
|
for (const s of this.$$s)
|
|
361
367
|
s in n && (r[s] = [t(s)]);
|
|
362
368
|
for (const s of this.attributes) {
|
|
363
369
|
const o = this.$$g_p(s.name);
|
|
364
|
-
o in this.$$d || (this.$$d[o] =
|
|
370
|
+
o in this.$$d || (this.$$d[o] = Ne(o, s.value, this.$$p_d, "toProp"));
|
|
365
371
|
}
|
|
366
372
|
for (const s in this.$$p_d)
|
|
367
373
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
368
374
|
this.$$c = new this.$$ctor({
|
|
369
375
|
target: this.shadowRoot || this,
|
|
370
|
-
props:
|
|
376
|
+
props: Q(q({}, this.$$d), {
|
|
371
377
|
$$slots: r,
|
|
372
378
|
$$scope: {
|
|
373
379
|
ctx: []
|
|
@@ -378,7 +384,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
378
384
|
this.$$r = !0;
|
|
379
385
|
for (const s in this.$$p_d)
|
|
380
386
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
381
|
-
const o =
|
|
387
|
+
const o = Ne(
|
|
382
388
|
s,
|
|
383
389
|
this.$$d[s],
|
|
384
390
|
this.$$p_d,
|
|
@@ -402,7 +408,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
402
408
|
// and setting attributes through setAttribute etc, this is helpful
|
|
403
409
|
attributeChangedCallback(t, r, n) {
|
|
404
410
|
var i;
|
|
405
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
411
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ne(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
406
412
|
}
|
|
407
413
|
disconnectedCallback() {
|
|
408
414
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -415,7 +421,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
|
415
421
|
) || t;
|
|
416
422
|
}
|
|
417
423
|
});
|
|
418
|
-
function
|
|
424
|
+
function Ne(e, t, r, n) {
|
|
419
425
|
var s;
|
|
420
426
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
421
427
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -445,8 +451,8 @@ function Ee(e, t, r, n) {
|
|
|
445
451
|
return t;
|
|
446
452
|
}
|
|
447
453
|
}
|
|
448
|
-
function
|
|
449
|
-
let o = class extends
|
|
454
|
+
function Hn(e, t, r, n, i, s) {
|
|
455
|
+
let o = class extends cr {
|
|
450
456
|
constructor() {
|
|
451
457
|
super(e, r, i), this.$$p_d = t;
|
|
452
458
|
}
|
|
@@ -463,7 +469,7 @@ function mn(e, t, r, n, i, s) {
|
|
|
463
469
|
},
|
|
464
470
|
set(h) {
|
|
465
471
|
var u;
|
|
466
|
-
h =
|
|
472
|
+
h = Ne(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
467
473
|
}
|
|
468
474
|
});
|
|
469
475
|
}), n.forEach((a) => {
|
|
@@ -476,7 +482,7 @@ function mn(e, t, r, n, i, s) {
|
|
|
476
482
|
}), e.element = /** @type {any} */
|
|
477
483
|
o, o;
|
|
478
484
|
}
|
|
479
|
-
class
|
|
485
|
+
class An {
|
|
480
486
|
constructor() {
|
|
481
487
|
/**
|
|
482
488
|
* ### PRIVATE API
|
|
@@ -485,7 +491,7 @@ class dn {
|
|
|
485
491
|
*
|
|
486
492
|
* @type {any}
|
|
487
493
|
*/
|
|
488
|
-
|
|
494
|
+
G(this, "$$");
|
|
489
495
|
/**
|
|
490
496
|
* ### PRIVATE API
|
|
491
497
|
*
|
|
@@ -493,11 +499,11 @@ class dn {
|
|
|
493
499
|
*
|
|
494
500
|
* @type {any}
|
|
495
501
|
*/
|
|
496
|
-
|
|
502
|
+
G(this, "$$set");
|
|
497
503
|
}
|
|
498
504
|
/** @returns {void} */
|
|
499
505
|
$destroy() {
|
|
500
|
-
|
|
506
|
+
Sn(this, 1), this.$destroy = M;
|
|
501
507
|
}
|
|
502
508
|
/**
|
|
503
509
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -506,8 +512,8 @@ class dn {
|
|
|
506
512
|
* @returns {() => void}
|
|
507
513
|
*/
|
|
508
514
|
$on(t, r) {
|
|
509
|
-
if (!
|
|
510
|
-
return
|
|
515
|
+
if (!Et(r))
|
|
516
|
+
return M;
|
|
511
517
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
512
518
|
return n.push(r), () => {
|
|
513
519
|
const i = n.indexOf(r);
|
|
@@ -519,11 +525,11 @@ class dn {
|
|
|
519
525
|
* @returns {void}
|
|
520
526
|
*/
|
|
521
527
|
$set(t) {
|
|
522
|
-
this.$$set && !
|
|
528
|
+
this.$$set && !hn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
523
529
|
}
|
|
524
530
|
}
|
|
525
|
-
const
|
|
526
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
531
|
+
const Bn = "4";
|
|
532
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Bn);
|
|
527
533
|
/*! *****************************************************************************
|
|
528
534
|
Copyright (c) Microsoft Corporation.
|
|
529
535
|
|
|
@@ -538,24 +544,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
538
544
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
539
545
|
PERFORMANCE OF THIS SOFTWARE.
|
|
540
546
|
***************************************************************************** */
|
|
541
|
-
var
|
|
542
|
-
return
|
|
547
|
+
var st = function(e, t) {
|
|
548
|
+
return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
543
549
|
r.__proto__ = n;
|
|
544
550
|
} || function(r, n) {
|
|
545
551
|
for (var i in n)
|
|
546
552
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
547
|
-
},
|
|
553
|
+
}, st(e, t);
|
|
548
554
|
};
|
|
549
|
-
function
|
|
555
|
+
function Se(e, t) {
|
|
550
556
|
if (typeof t != "function" && t !== null)
|
|
551
557
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
552
|
-
|
|
558
|
+
st(e, t);
|
|
553
559
|
function r() {
|
|
554
560
|
this.constructor = e;
|
|
555
561
|
}
|
|
556
562
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
557
563
|
}
|
|
558
|
-
function
|
|
564
|
+
function ot(e) {
|
|
559
565
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
560
566
|
if (r)
|
|
561
567
|
return r.call(e);
|
|
@@ -567,7 +573,7 @@ function Qe(e) {
|
|
|
567
573
|
};
|
|
568
574
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
569
575
|
}
|
|
570
|
-
function
|
|
576
|
+
function at(e, t) {
|
|
571
577
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
572
578
|
if (!r)
|
|
573
579
|
return e;
|
|
@@ -587,22 +593,22 @@ function Ye(e, t) {
|
|
|
587
593
|
}
|
|
588
594
|
return s;
|
|
589
595
|
}
|
|
590
|
-
function
|
|
596
|
+
function ut(e, t, r) {
|
|
591
597
|
if (arguments.length === 2)
|
|
592
598
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
593
599
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
594
600
|
return e.concat(s || t);
|
|
595
601
|
}
|
|
596
|
-
function
|
|
602
|
+
function $(e) {
|
|
597
603
|
return typeof e == "function";
|
|
598
604
|
}
|
|
599
|
-
function
|
|
605
|
+
function fr(e) {
|
|
600
606
|
var t = function(n) {
|
|
601
607
|
Error.call(n), n.stack = new Error().stack;
|
|
602
608
|
}, r = e(t);
|
|
603
609
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
604
610
|
}
|
|
605
|
-
var
|
|
611
|
+
var qe = fr(function(e) {
|
|
606
612
|
return function(r) {
|
|
607
613
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
608
614
|
` + r.map(function(n, i) {
|
|
@@ -611,13 +617,13 @@ var De = tr(function(e) {
|
|
|
611
617
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
612
618
|
};
|
|
613
619
|
});
|
|
614
|
-
function
|
|
620
|
+
function ht(e, t) {
|
|
615
621
|
if (e) {
|
|
616
622
|
var r = e.indexOf(t);
|
|
617
623
|
0 <= r && e.splice(r, 1);
|
|
618
624
|
}
|
|
619
625
|
}
|
|
620
|
-
var
|
|
626
|
+
var Ue = function() {
|
|
621
627
|
function e(t) {
|
|
622
628
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
623
629
|
}
|
|
@@ -629,7 +635,7 @@ var Be = function() {
|
|
|
629
635
|
if (o)
|
|
630
636
|
if (this._parentage = null, Array.isArray(o))
|
|
631
637
|
try {
|
|
632
|
-
for (var a =
|
|
638
|
+
for (var a = ot(o), h = a.next(); !h.done; h = a.next()) {
|
|
633
639
|
var u = h.value;
|
|
634
640
|
u.remove(this);
|
|
635
641
|
}
|
|
@@ -646,29 +652,29 @@ var Be = function() {
|
|
|
646
652
|
else
|
|
647
653
|
o.remove(this);
|
|
648
654
|
var l = this.initialTeardown;
|
|
649
|
-
if (
|
|
655
|
+
if ($(l))
|
|
650
656
|
try {
|
|
651
657
|
l();
|
|
652
658
|
} catch (b) {
|
|
653
|
-
s = b instanceof
|
|
659
|
+
s = b instanceof qe ? b.errors : [b];
|
|
654
660
|
}
|
|
655
661
|
var m = this._finalizers;
|
|
656
662
|
if (m) {
|
|
657
663
|
this._finalizers = null;
|
|
658
664
|
try {
|
|
659
|
-
for (var
|
|
665
|
+
for (var f = ot(m), d = f.next(); !d.done; d = f.next()) {
|
|
660
666
|
var p = d.value;
|
|
661
667
|
try {
|
|
662
|
-
|
|
668
|
+
Gt(p);
|
|
663
669
|
} catch (b) {
|
|
664
|
-
s = s != null ? s : [], b instanceof
|
|
670
|
+
s = s != null ? s : [], b instanceof qe ? s = ut(ut([], at(s)), at(b.errors)) : s.push(b);
|
|
665
671
|
}
|
|
666
672
|
}
|
|
667
673
|
} catch (b) {
|
|
668
674
|
n = { error: b };
|
|
669
675
|
} finally {
|
|
670
676
|
try {
|
|
671
|
-
d && !d.done && (i =
|
|
677
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
672
678
|
} finally {
|
|
673
679
|
if (n)
|
|
674
680
|
throw n.error;
|
|
@@ -676,13 +682,13 @@ var Be = function() {
|
|
|
676
682
|
}
|
|
677
683
|
}
|
|
678
684
|
if (s)
|
|
679
|
-
throw new
|
|
685
|
+
throw new qe(s);
|
|
680
686
|
}
|
|
681
687
|
}, e.prototype.add = function(t) {
|
|
682
688
|
var r;
|
|
683
689
|
if (t && t !== this)
|
|
684
690
|
if (this.closed)
|
|
685
|
-
|
|
691
|
+
Gt(t);
|
|
686
692
|
else {
|
|
687
693
|
if (t instanceof e) {
|
|
688
694
|
if (t.closed || t._hasParent(this))
|
|
@@ -699,52 +705,52 @@ var Be = function() {
|
|
|
699
705
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
700
706
|
}, e.prototype._removeParent = function(t) {
|
|
701
707
|
var r = this._parentage;
|
|
702
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
708
|
+
r === t ? this._parentage = null : Array.isArray(r) && ht(r, t);
|
|
703
709
|
}, e.prototype.remove = function(t) {
|
|
704
710
|
var r = this._finalizers;
|
|
705
|
-
r &&
|
|
711
|
+
r && ht(r, t), t instanceof e && t._removeParent(this);
|
|
706
712
|
}, e.EMPTY = function() {
|
|
707
713
|
var t = new e();
|
|
708
714
|
return t.closed = !0, t;
|
|
709
715
|
}(), e;
|
|
710
|
-
}(),
|
|
711
|
-
function
|
|
712
|
-
return e instanceof
|
|
716
|
+
}(), mr = Ue.EMPTY;
|
|
717
|
+
function dr(e) {
|
|
718
|
+
return e instanceof Ue || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
713
719
|
}
|
|
714
|
-
function
|
|
715
|
-
|
|
720
|
+
function Gt(e) {
|
|
721
|
+
$(e) ? e() : e.unsubscribe();
|
|
716
722
|
}
|
|
717
|
-
var
|
|
723
|
+
var Pn = {
|
|
718
724
|
Promise: void 0
|
|
719
|
-
},
|
|
725
|
+
}, On = {
|
|
720
726
|
setTimeout: function(e, t) {
|
|
721
727
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
722
728
|
r[n - 2] = arguments[n];
|
|
723
|
-
return setTimeout.apply(void 0,
|
|
729
|
+
return setTimeout.apply(void 0, ut([e, t], at(r)));
|
|
724
730
|
},
|
|
725
731
|
clearTimeout: function(e) {
|
|
726
732
|
return clearTimeout(e);
|
|
727
733
|
},
|
|
728
734
|
delegate: void 0
|
|
729
735
|
};
|
|
730
|
-
function
|
|
731
|
-
|
|
736
|
+
function Nn(e) {
|
|
737
|
+
On.setTimeout(function() {
|
|
732
738
|
throw e;
|
|
733
739
|
});
|
|
734
740
|
}
|
|
735
|
-
function
|
|
741
|
+
function Ut() {
|
|
736
742
|
}
|
|
737
|
-
function
|
|
743
|
+
function Le(e) {
|
|
738
744
|
e();
|
|
739
745
|
}
|
|
740
|
-
var
|
|
741
|
-
|
|
746
|
+
var br = function(e) {
|
|
747
|
+
Se(t, e);
|
|
742
748
|
function t(r) {
|
|
743
749
|
var n = e.call(this) || this;
|
|
744
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
750
|
+
return n.isStopped = !1, r ? (n.destination = r, dr(r) && r.add(n)) : n.destination = In, n;
|
|
745
751
|
}
|
|
746
752
|
return t.create = function(r, n, i) {
|
|
747
|
-
return new
|
|
753
|
+
return new lt(r, n, i);
|
|
748
754
|
}, t.prototype.next = function(r) {
|
|
749
755
|
this.isStopped || this._next(r);
|
|
750
756
|
}, t.prototype.error = function(r) {
|
|
@@ -768,7 +774,7 @@ var ir = function(e) {
|
|
|
768
774
|
this.unsubscribe();
|
|
769
775
|
}
|
|
770
776
|
}, t;
|
|
771
|
-
}(
|
|
777
|
+
}(Ue), Ln = function() {
|
|
772
778
|
function e(t) {
|
|
773
779
|
this.partialObserver = t;
|
|
774
780
|
}
|
|
@@ -778,7 +784,7 @@ var ir = function(e) {
|
|
|
778
784
|
try {
|
|
779
785
|
r.next(t);
|
|
780
786
|
} catch (n) {
|
|
781
|
-
|
|
787
|
+
Pe(n);
|
|
782
788
|
}
|
|
783
789
|
}, e.prototype.error = function(t) {
|
|
784
790
|
var r = this.partialObserver;
|
|
@@ -786,56 +792,56 @@ var ir = function(e) {
|
|
|
786
792
|
try {
|
|
787
793
|
r.error(t);
|
|
788
794
|
} catch (n) {
|
|
789
|
-
|
|
795
|
+
Pe(n);
|
|
790
796
|
}
|
|
791
797
|
else
|
|
792
|
-
|
|
798
|
+
Pe(t);
|
|
793
799
|
}, e.prototype.complete = function() {
|
|
794
800
|
var t = this.partialObserver;
|
|
795
801
|
if (t.complete)
|
|
796
802
|
try {
|
|
797
803
|
t.complete();
|
|
798
804
|
} catch (r) {
|
|
799
|
-
|
|
805
|
+
Pe(r);
|
|
800
806
|
}
|
|
801
807
|
}, e;
|
|
802
|
-
}(),
|
|
803
|
-
|
|
808
|
+
}(), lt = function(e) {
|
|
809
|
+
Se(t, e);
|
|
804
810
|
function t(r, n, i) {
|
|
805
811
|
var s = e.call(this) || this, o;
|
|
806
|
-
return
|
|
812
|
+
return $(r) || !r ? o = {
|
|
807
813
|
next: r != null ? r : void 0,
|
|
808
814
|
error: n != null ? n : void 0,
|
|
809
815
|
complete: i != null ? i : void 0
|
|
810
|
-
} : o = r, s.destination = new
|
|
816
|
+
} : o = r, s.destination = new Ln(o), s;
|
|
811
817
|
}
|
|
812
818
|
return t;
|
|
813
|
-
}(
|
|
814
|
-
function
|
|
815
|
-
|
|
819
|
+
}(br);
|
|
820
|
+
function Pe(e) {
|
|
821
|
+
Nn(e);
|
|
816
822
|
}
|
|
817
|
-
function
|
|
823
|
+
function Cn(e) {
|
|
818
824
|
throw e;
|
|
819
825
|
}
|
|
820
|
-
var
|
|
826
|
+
var In = {
|
|
821
827
|
closed: !0,
|
|
822
|
-
next:
|
|
823
|
-
error:
|
|
824
|
-
complete:
|
|
825
|
-
},
|
|
828
|
+
next: Ut,
|
|
829
|
+
error: Cn,
|
|
830
|
+
complete: Ut
|
|
831
|
+
}, Mn = function() {
|
|
826
832
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
827
833
|
}();
|
|
828
|
-
function
|
|
834
|
+
function Rn(e) {
|
|
829
835
|
return e;
|
|
830
836
|
}
|
|
831
|
-
function
|
|
832
|
-
return e.length === 0 ?
|
|
837
|
+
function Gn(e) {
|
|
838
|
+
return e.length === 0 ? Rn : e.length === 1 ? e[0] : function(r) {
|
|
833
839
|
return e.reduce(function(n, i) {
|
|
834
840
|
return i(n);
|
|
835
841
|
}, r);
|
|
836
842
|
};
|
|
837
843
|
}
|
|
838
|
-
var
|
|
844
|
+
var Dt = function() {
|
|
839
845
|
function e(t) {
|
|
840
846
|
t && (this._subscribe = t);
|
|
841
847
|
}
|
|
@@ -843,8 +849,8 @@ var Bt = function() {
|
|
|
843
849
|
var r = new e();
|
|
844
850
|
return r.source = this, r.operator = t, r;
|
|
845
851
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
846
|
-
var i = this, s =
|
|
847
|
-
return
|
|
852
|
+
var i = this, s = Dn(t) ? t : new lt(t, r, n);
|
|
853
|
+
return Le(function() {
|
|
848
854
|
var o = i, a = o.operator, h = o.source;
|
|
849
855
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
|
850
856
|
}), s;
|
|
@@ -856,8 +862,8 @@ var Bt = function() {
|
|
|
856
862
|
}
|
|
857
863
|
}, e.prototype.forEach = function(t, r) {
|
|
858
864
|
var n = this;
|
|
859
|
-
return r =
|
|
860
|
-
var o = new
|
|
865
|
+
return r = Ft(r), new r(function(i, s) {
|
|
866
|
+
var o = new lt({
|
|
861
867
|
next: function(a) {
|
|
862
868
|
try {
|
|
863
869
|
t(a);
|
|
@@ -873,15 +879,15 @@ var Bt = function() {
|
|
|
873
879
|
}, e.prototype._subscribe = function(t) {
|
|
874
880
|
var r;
|
|
875
881
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
876
|
-
}, e.prototype[
|
|
882
|
+
}, e.prototype[Mn] = function() {
|
|
877
883
|
return this;
|
|
878
884
|
}, e.prototype.pipe = function() {
|
|
879
885
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
880
886
|
t[r] = arguments[r];
|
|
881
|
-
return
|
|
887
|
+
return Gn(t)(this);
|
|
882
888
|
}, e.prototype.toPromise = function(t) {
|
|
883
889
|
var r = this;
|
|
884
|
-
return t =
|
|
890
|
+
return t = Ft(t), new t(function(n, i) {
|
|
885
891
|
var s;
|
|
886
892
|
r.subscribe(function(o) {
|
|
887
893
|
return s = o;
|
|
@@ -895,40 +901,40 @@ var Bt = function() {
|
|
|
895
901
|
return new e(t);
|
|
896
902
|
}, e;
|
|
897
903
|
}();
|
|
898
|
-
function
|
|
904
|
+
function Ft(e) {
|
|
899
905
|
var t;
|
|
900
|
-
return (t = e != null ? e :
|
|
906
|
+
return (t = e != null ? e : Pn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
901
907
|
}
|
|
902
|
-
function
|
|
903
|
-
return e &&
|
|
908
|
+
function Un(e) {
|
|
909
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
904
910
|
}
|
|
905
|
-
function
|
|
906
|
-
return e && e instanceof
|
|
911
|
+
function Dn(e) {
|
|
912
|
+
return e && e instanceof br || Un(e) && dr(e);
|
|
907
913
|
}
|
|
908
|
-
var
|
|
914
|
+
var Fn = fr(function(e) {
|
|
909
915
|
return function() {
|
|
910
916
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
911
917
|
};
|
|
912
|
-
}),
|
|
913
|
-
|
|
918
|
+
}), pr = function(e) {
|
|
919
|
+
Se(t, e);
|
|
914
920
|
function t() {
|
|
915
921
|
var r = e.call(this) || this;
|
|
916
922
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
917
923
|
}
|
|
918
924
|
return t.prototype.lift = function(r) {
|
|
919
|
-
var n = new
|
|
925
|
+
var n = new $t(this, this);
|
|
920
926
|
return n.operator = r, n;
|
|
921
927
|
}, t.prototype._throwIfClosed = function() {
|
|
922
928
|
if (this.closed)
|
|
923
|
-
throw new
|
|
929
|
+
throw new Fn();
|
|
924
930
|
}, t.prototype.next = function(r) {
|
|
925
931
|
var n = this;
|
|
926
|
-
|
|
932
|
+
Le(function() {
|
|
927
933
|
var i, s;
|
|
928
934
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
929
935
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
930
936
|
try {
|
|
931
|
-
for (var o =
|
|
937
|
+
for (var o = ot(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
932
938
|
var h = a.value;
|
|
933
939
|
h.next(r);
|
|
934
940
|
}
|
|
@@ -946,7 +952,7 @@ var An = tr(function(e) {
|
|
|
946
952
|
});
|
|
947
953
|
}, t.prototype.error = function(r) {
|
|
948
954
|
var n = this;
|
|
949
|
-
|
|
955
|
+
Le(function() {
|
|
950
956
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
951
957
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
952
958
|
for (var i = n.observers; i.length; )
|
|
@@ -955,7 +961,7 @@ var An = tr(function(e) {
|
|
|
955
961
|
});
|
|
956
962
|
}, t.prototype.complete = function() {
|
|
957
963
|
var r = this;
|
|
958
|
-
|
|
964
|
+
Le(function() {
|
|
959
965
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
960
966
|
r.isStopped = !0;
|
|
961
967
|
for (var n = r.observers; n.length; )
|
|
@@ -977,20 +983,20 @@ var An = tr(function(e) {
|
|
|
977
983
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
978
984
|
}, t.prototype._innerSubscribe = function(r) {
|
|
979
985
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
980
|
-
return s || o ?
|
|
981
|
-
n.currentObservers = null,
|
|
986
|
+
return s || o ? mr : (this.currentObservers = null, a.push(r), new Ue(function() {
|
|
987
|
+
n.currentObservers = null, ht(a, r);
|
|
982
988
|
}));
|
|
983
989
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
984
990
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
985
991
|
i ? r.error(s) : o && r.complete();
|
|
986
992
|
}, t.prototype.asObservable = function() {
|
|
987
|
-
var r = new
|
|
993
|
+
var r = new Dt();
|
|
988
994
|
return r.source = this, r;
|
|
989
995
|
}, t.create = function(r, n) {
|
|
990
|
-
return new
|
|
996
|
+
return new $t(r, n);
|
|
991
997
|
}, t;
|
|
992
|
-
}(
|
|
993
|
-
|
|
998
|
+
}(Dt), $t = function(e) {
|
|
999
|
+
Se(t, e);
|
|
994
1000
|
function t(r, n) {
|
|
995
1001
|
var i = e.call(this) || this;
|
|
996
1002
|
return i.destination = r, i.source = n, i;
|
|
@@ -1006,17 +1012,17 @@ var An = tr(function(e) {
|
|
|
1006
1012
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1007
1013
|
}, t.prototype._subscribe = function(r) {
|
|
1008
1014
|
var n, i;
|
|
1009
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1015
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : mr;
|
|
1010
1016
|
}, t;
|
|
1011
|
-
}(
|
|
1017
|
+
}(pr), yr = {
|
|
1012
1018
|
now: function() {
|
|
1013
|
-
return (
|
|
1019
|
+
return (yr.delegate || Date).now();
|
|
1014
1020
|
},
|
|
1015
1021
|
delegate: void 0
|
|
1016
|
-
},
|
|
1017
|
-
|
|
1022
|
+
}, $n = function(e) {
|
|
1023
|
+
Se(t, e);
|
|
1018
1024
|
function t(r, n, i) {
|
|
1019
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1025
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = yr);
|
|
1020
1026
|
var s = e.call(this) || this;
|
|
1021
1027
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
1022
1028
|
}
|
|
@@ -1036,178 +1042,178 @@ var An = tr(function(e) {
|
|
|
1036
1042
|
u && s.splice(0, u + 1);
|
|
1037
1043
|
}
|
|
1038
1044
|
}, t;
|
|
1039
|
-
}(
|
|
1040
|
-
const
|
|
1041
|
-
if (
|
|
1042
|
-
const r = new
|
|
1043
|
-
|
|
1045
|
+
}(pr);
|
|
1046
|
+
const jt = [], kt = {}, jn = (e, t = 0) => {
|
|
1047
|
+
if (jt.indexOf(e) == -1) {
|
|
1048
|
+
const r = new $n(t);
|
|
1049
|
+
kt[e] = r, jt.push(e);
|
|
1044
1050
|
}
|
|
1045
|
-
return
|
|
1046
|
-
},
|
|
1047
|
-
function
|
|
1051
|
+
return kt[e];
|
|
1052
|
+
}, ne = [];
|
|
1053
|
+
function kn(e, t) {
|
|
1048
1054
|
return {
|
|
1049
|
-
subscribe:
|
|
1055
|
+
subscribe: De(e, t).subscribe
|
|
1050
1056
|
};
|
|
1051
1057
|
}
|
|
1052
|
-
function
|
|
1058
|
+
function De(e, t = M) {
|
|
1053
1059
|
let r;
|
|
1054
1060
|
const n = /* @__PURE__ */ new Set();
|
|
1055
1061
|
function i(a) {
|
|
1056
|
-
if (
|
|
1057
|
-
const h = !
|
|
1062
|
+
if (ir(e, a) && (e = a, r)) {
|
|
1063
|
+
const h = !ne.length;
|
|
1058
1064
|
for (const u of n)
|
|
1059
|
-
u[1](),
|
|
1065
|
+
u[1](), ne.push(u, e);
|
|
1060
1066
|
if (h) {
|
|
1061
|
-
for (let u = 0; u <
|
|
1062
|
-
|
|
1063
|
-
|
|
1067
|
+
for (let u = 0; u < ne.length; u += 2)
|
|
1068
|
+
ne[u][0](ne[u + 1]);
|
|
1069
|
+
ne.length = 0;
|
|
1064
1070
|
}
|
|
1065
1071
|
}
|
|
1066
1072
|
}
|
|
1067
1073
|
function s(a) {
|
|
1068
1074
|
i(a(e));
|
|
1069
1075
|
}
|
|
1070
|
-
function o(a, h =
|
|
1076
|
+
function o(a, h = M) {
|
|
1071
1077
|
const u = [a, h];
|
|
1072
|
-
return n.add(u), n.size === 1 && (r = t(i, s) ||
|
|
1078
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || M), a(e), () => {
|
|
1073
1079
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1074
1080
|
};
|
|
1075
1081
|
}
|
|
1076
1082
|
return { set: i, update: s, subscribe: o };
|
|
1077
1083
|
}
|
|
1078
|
-
function
|
|
1084
|
+
function de(e, t, r) {
|
|
1079
1085
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1080
1086
|
if (!i.every(Boolean))
|
|
1081
1087
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1082
1088
|
const s = t.length < 2;
|
|
1083
|
-
return
|
|
1089
|
+
return kn(r, (o, a) => {
|
|
1084
1090
|
let h = !1;
|
|
1085
1091
|
const u = [];
|
|
1086
|
-
let l = 0, m =
|
|
1087
|
-
const
|
|
1092
|
+
let l = 0, m = M;
|
|
1093
|
+
const f = () => {
|
|
1088
1094
|
if (l)
|
|
1089
1095
|
return;
|
|
1090
1096
|
m();
|
|
1091
1097
|
const p = t(n ? u[0] : u, o, a);
|
|
1092
|
-
s ? o(p) : m =
|
|
1098
|
+
s ? o(p) : m = Et(p) ? p : M;
|
|
1093
1099
|
}, d = i.map(
|
|
1094
|
-
(p, b) =>
|
|
1100
|
+
(p, b) => sr(
|
|
1095
1101
|
p,
|
|
1096
|
-
(
|
|
1097
|
-
u[b] =
|
|
1102
|
+
(H) => {
|
|
1103
|
+
u[b] = H, l &= ~(1 << b), h && f();
|
|
1098
1104
|
},
|
|
1099
1105
|
() => {
|
|
1100
1106
|
l |= 1 << b;
|
|
1101
1107
|
}
|
|
1102
1108
|
)
|
|
1103
1109
|
);
|
|
1104
|
-
return h = !0,
|
|
1105
|
-
|
|
1110
|
+
return h = !0, f(), function() {
|
|
1111
|
+
ce(d), m(), h = !1;
|
|
1106
1112
|
};
|
|
1107
1113
|
});
|
|
1108
1114
|
}
|
|
1109
|
-
function
|
|
1115
|
+
function Vn(e) {
|
|
1110
1116
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1111
1117
|
}
|
|
1112
|
-
var
|
|
1113
|
-
return
|
|
1118
|
+
var Xn = function(t) {
|
|
1119
|
+
return Wn(t) && !zn(t);
|
|
1114
1120
|
};
|
|
1115
|
-
function
|
|
1121
|
+
function Wn(e) {
|
|
1116
1122
|
return !!e && typeof e == "object";
|
|
1117
1123
|
}
|
|
1118
|
-
function
|
|
1124
|
+
function zn(e) {
|
|
1119
1125
|
var t = Object.prototype.toString.call(e);
|
|
1120
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1126
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qn(e);
|
|
1121
1127
|
}
|
|
1122
|
-
var
|
|
1123
|
-
function
|
|
1124
|
-
return e.$$typeof ===
|
|
1128
|
+
var Zn = typeof Symbol == "function" && Symbol.for, qn = Zn ? Symbol.for("react.element") : 60103;
|
|
1129
|
+
function Qn(e) {
|
|
1130
|
+
return e.$$typeof === qn;
|
|
1125
1131
|
}
|
|
1126
|
-
function
|
|
1132
|
+
function Yn(e) {
|
|
1127
1133
|
return Array.isArray(e) ? [] : {};
|
|
1128
1134
|
}
|
|
1129
|
-
function
|
|
1130
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1135
|
+
function _e(e, t) {
|
|
1136
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ae(Yn(e), e, t) : e;
|
|
1131
1137
|
}
|
|
1132
|
-
function
|
|
1138
|
+
function Jn(e, t, r) {
|
|
1133
1139
|
return e.concat(t).map(function(n) {
|
|
1134
|
-
return
|
|
1140
|
+
return _e(n, r);
|
|
1135
1141
|
});
|
|
1136
1142
|
}
|
|
1137
|
-
function
|
|
1143
|
+
function Kn(e, t) {
|
|
1138
1144
|
if (!t.customMerge)
|
|
1139
|
-
return
|
|
1145
|
+
return ae;
|
|
1140
1146
|
var r = t.customMerge(e);
|
|
1141
|
-
return typeof r == "function" ? r :
|
|
1147
|
+
return typeof r == "function" ? r : ae;
|
|
1142
1148
|
}
|
|
1143
|
-
function
|
|
1149
|
+
function ei(e) {
|
|
1144
1150
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1145
1151
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1146
1152
|
}) : [];
|
|
1147
1153
|
}
|
|
1148
|
-
function
|
|
1149
|
-
return Object.keys(e).concat(
|
|
1154
|
+
function Vt(e) {
|
|
1155
|
+
return Object.keys(e).concat(ei(e));
|
|
1150
1156
|
}
|
|
1151
|
-
function
|
|
1157
|
+
function gr(e, t) {
|
|
1152
1158
|
try {
|
|
1153
1159
|
return t in e;
|
|
1154
1160
|
} catch (r) {
|
|
1155
1161
|
return !1;
|
|
1156
1162
|
}
|
|
1157
1163
|
}
|
|
1158
|
-
function
|
|
1159
|
-
return
|
|
1164
|
+
function ti(e, t) {
|
|
1165
|
+
return gr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1160
1166
|
}
|
|
1161
|
-
function
|
|
1167
|
+
function ri(e, t, r) {
|
|
1162
1168
|
var n = {};
|
|
1163
|
-
return r.isMergeableObject(e) &&
|
|
1164
|
-
n[i] =
|
|
1165
|
-
}),
|
|
1166
|
-
|
|
1169
|
+
return r.isMergeableObject(e) && Vt(e).forEach(function(i) {
|
|
1170
|
+
n[i] = _e(e[i], r);
|
|
1171
|
+
}), Vt(t).forEach(function(i) {
|
|
1172
|
+
ti(e, i) || (gr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kn(i, r)(e[i], t[i], r) : n[i] = _e(t[i], r));
|
|
1167
1173
|
}), n;
|
|
1168
1174
|
}
|
|
1169
|
-
function
|
|
1170
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1175
|
+
function ae(e, t, r) {
|
|
1176
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Jn, r.isMergeableObject = r.isMergeableObject || Xn, r.cloneUnlessOtherwiseSpecified = _e;
|
|
1171
1177
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1172
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
1178
|
+
return s ? n ? r.arrayMerge(e, t, r) : ri(e, t, r) : _e(t, r);
|
|
1173
1179
|
}
|
|
1174
|
-
|
|
1180
|
+
ae.all = function(t, r) {
|
|
1175
1181
|
if (!Array.isArray(t))
|
|
1176
1182
|
throw new Error("first argument should be an array");
|
|
1177
1183
|
return t.reduce(function(n, i) {
|
|
1178
|
-
return
|
|
1184
|
+
return ae(n, i, r);
|
|
1179
1185
|
}, {});
|
|
1180
1186
|
};
|
|
1181
|
-
var
|
|
1182
|
-
const
|
|
1183
|
-
var
|
|
1184
|
-
return
|
|
1187
|
+
var ni = ae, ii = ni;
|
|
1188
|
+
const si = /* @__PURE__ */ Vn(ii);
|
|
1189
|
+
var ct = function(e, t) {
|
|
1190
|
+
return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1185
1191
|
r.__proto__ = n;
|
|
1186
1192
|
} || function(r, n) {
|
|
1187
1193
|
for (var i in n)
|
|
1188
1194
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1189
|
-
},
|
|
1195
|
+
}, ct(e, t);
|
|
1190
1196
|
};
|
|
1191
|
-
function
|
|
1197
|
+
function Fe(e, t) {
|
|
1192
1198
|
if (typeof t != "function" && t !== null)
|
|
1193
1199
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1194
|
-
|
|
1200
|
+
ct(e, t);
|
|
1195
1201
|
function r() {
|
|
1196
1202
|
this.constructor = e;
|
|
1197
1203
|
}
|
|
1198
1204
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1199
1205
|
}
|
|
1200
|
-
var
|
|
1201
|
-
return
|
|
1206
|
+
var D = function() {
|
|
1207
|
+
return D = Object.assign || function(t) {
|
|
1202
1208
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1203
1209
|
r = arguments[n];
|
|
1204
1210
|
for (var s in r)
|
|
1205
1211
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1206
1212
|
}
|
|
1207
1213
|
return t;
|
|
1208
|
-
},
|
|
1214
|
+
}, D.apply(this, arguments);
|
|
1209
1215
|
};
|
|
1210
|
-
function
|
|
1216
|
+
function oi(e, t) {
|
|
1211
1217
|
var r = {};
|
|
1212
1218
|
for (var n in e)
|
|
1213
1219
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1216,43 +1222,43 @@ function zn(e, t) {
|
|
|
1216
1222
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1217
1223
|
return r;
|
|
1218
1224
|
}
|
|
1219
|
-
function
|
|
1225
|
+
function Qe(e, t, r) {
|
|
1220
1226
|
if (r || arguments.length === 2)
|
|
1221
1227
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1222
1228
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1223
1229
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
1224
1230
|
}
|
|
1225
|
-
function
|
|
1226
|
-
var r = t && t.cache ? t.cache :
|
|
1231
|
+
function Ye(e, t) {
|
|
1232
|
+
var r = t && t.cache ? t.cache : mi, n = t && t.serializer ? t.serializer : ci, i = t && t.strategy ? t.strategy : hi;
|
|
1227
1233
|
return i(e, {
|
|
1228
1234
|
cache: r,
|
|
1229
1235
|
serializer: n
|
|
1230
1236
|
});
|
|
1231
1237
|
}
|
|
1232
|
-
function
|
|
1238
|
+
function ai(e) {
|
|
1233
1239
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1234
1240
|
}
|
|
1235
|
-
function
|
|
1236
|
-
var i =
|
|
1241
|
+
function ui(e, t, r, n) {
|
|
1242
|
+
var i = ai(n) ? n : r(n), s = t.get(i);
|
|
1237
1243
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1238
1244
|
}
|
|
1239
|
-
function
|
|
1245
|
+
function vr(e, t, r) {
|
|
1240
1246
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1241
1247
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1242
1248
|
}
|
|
1243
|
-
function
|
|
1249
|
+
function _r(e, t, r, n, i) {
|
|
1244
1250
|
return r.bind(t, e, n, i);
|
|
1245
1251
|
}
|
|
1246
|
-
function
|
|
1247
|
-
var r = e.length === 1 ?
|
|
1248
|
-
return
|
|
1252
|
+
function hi(e, t) {
|
|
1253
|
+
var r = e.length === 1 ? ui : vr;
|
|
1254
|
+
return _r(e, this, r, t.cache.create(), t.serializer);
|
|
1249
1255
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return
|
|
1256
|
+
function li(e, t) {
|
|
1257
|
+
return _r(e, this, vr, t.cache.create(), t.serializer);
|
|
1252
1258
|
}
|
|
1253
|
-
var
|
|
1259
|
+
var ci = function() {
|
|
1254
1260
|
return JSON.stringify(arguments);
|
|
1255
|
-
},
|
|
1261
|
+
}, fi = (
|
|
1256
1262
|
/** @class */
|
|
1257
1263
|
function() {
|
|
1258
1264
|
function e() {
|
|
@@ -1264,71 +1270,71 @@ var Jn = function() {
|
|
|
1264
1270
|
this.cache[t] = r;
|
|
1265
1271
|
}, e;
|
|
1266
1272
|
}()
|
|
1267
|
-
),
|
|
1273
|
+
), mi = {
|
|
1268
1274
|
create: function() {
|
|
1269
|
-
return new
|
|
1275
|
+
return new fi();
|
|
1270
1276
|
}
|
|
1271
|
-
},
|
|
1272
|
-
variadic:
|
|
1273
|
-
},
|
|
1274
|
-
return
|
|
1277
|
+
}, Je = {
|
|
1278
|
+
variadic: li
|
|
1279
|
+
}, Me = function() {
|
|
1280
|
+
return Me = Object.assign || function(t) {
|
|
1275
1281
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1276
1282
|
r = arguments[n];
|
|
1277
1283
|
for (var s in r)
|
|
1278
1284
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1279
1285
|
}
|
|
1280
1286
|
return t;
|
|
1281
|
-
},
|
|
1287
|
+
}, Me.apply(this, arguments);
|
|
1282
1288
|
};
|
|
1283
|
-
var
|
|
1289
|
+
var y;
|
|
1284
1290
|
(function(e) {
|
|
1285
1291
|
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";
|
|
1286
|
-
})(
|
|
1287
|
-
var
|
|
1292
|
+
})(y || (y = {}));
|
|
1293
|
+
var S;
|
|
1288
1294
|
(function(e) {
|
|
1289
1295
|
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";
|
|
1290
|
-
})(
|
|
1291
|
-
var
|
|
1296
|
+
})(S || (S = {}));
|
|
1297
|
+
var ue;
|
|
1292
1298
|
(function(e) {
|
|
1293
1299
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1294
|
-
})(
|
|
1295
|
-
function
|
|
1296
|
-
return e.type ===
|
|
1300
|
+
})(ue || (ue = {}));
|
|
1301
|
+
function Xt(e) {
|
|
1302
|
+
return e.type === S.literal;
|
|
1297
1303
|
}
|
|
1298
|
-
function
|
|
1299
|
-
return e.type ===
|
|
1304
|
+
function di(e) {
|
|
1305
|
+
return e.type === S.argument;
|
|
1300
1306
|
}
|
|
1301
|
-
function
|
|
1302
|
-
return e.type ===
|
|
1307
|
+
function Er(e) {
|
|
1308
|
+
return e.type === S.number;
|
|
1303
1309
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return e.type ===
|
|
1310
|
+
function xr(e) {
|
|
1311
|
+
return e.type === S.date;
|
|
1306
1312
|
}
|
|
1307
|
-
function
|
|
1308
|
-
return e.type ===
|
|
1313
|
+
function Sr(e) {
|
|
1314
|
+
return e.type === S.time;
|
|
1309
1315
|
}
|
|
1310
|
-
function
|
|
1311
|
-
return e.type ===
|
|
1316
|
+
function wr(e) {
|
|
1317
|
+
return e.type === S.select;
|
|
1312
1318
|
}
|
|
1313
|
-
function
|
|
1314
|
-
return e.type ===
|
|
1319
|
+
function Tr(e) {
|
|
1320
|
+
return e.type === S.plural;
|
|
1315
1321
|
}
|
|
1316
|
-
function
|
|
1317
|
-
return e.type ===
|
|
1322
|
+
function bi(e) {
|
|
1323
|
+
return e.type === S.pound;
|
|
1318
1324
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return e.type ===
|
|
1325
|
+
function Hr(e) {
|
|
1326
|
+
return e.type === S.tag;
|
|
1321
1327
|
}
|
|
1322
|
-
function
|
|
1323
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1328
|
+
function Ar(e) {
|
|
1329
|
+
return !!(e && typeof e == "object" && e.type === ue.number);
|
|
1324
1330
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1331
|
+
function ft(e) {
|
|
1332
|
+
return !!(e && typeof e == "object" && e.type === ue.dateTime);
|
|
1327
1333
|
}
|
|
1328
|
-
var
|
|
1329
|
-
function
|
|
1334
|
+
var Br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1335
|
+
function yi(e) {
|
|
1330
1336
|
var t = {};
|
|
1331
|
-
return e.replace(
|
|
1337
|
+
return e.replace(pi, function(r) {
|
|
1332
1338
|
var n = r.length;
|
|
1333
1339
|
switch (r[0]) {
|
|
1334
1340
|
case "G":
|
|
@@ -1417,22 +1423,22 @@ function ii(e) {
|
|
|
1417
1423
|
return "";
|
|
1418
1424
|
}), t;
|
|
1419
1425
|
}
|
|
1420
|
-
var
|
|
1421
|
-
return
|
|
1426
|
+
var w = function() {
|
|
1427
|
+
return w = Object.assign || function(t) {
|
|
1422
1428
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1423
1429
|
r = arguments[n];
|
|
1424
1430
|
for (var s in r)
|
|
1425
1431
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1426
1432
|
}
|
|
1427
1433
|
return t;
|
|
1428
|
-
},
|
|
1434
|
+
}, w.apply(this, arguments);
|
|
1429
1435
|
};
|
|
1430
|
-
var
|
|
1431
|
-
function
|
|
1436
|
+
var gi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1437
|
+
function vi(e) {
|
|
1432
1438
|
if (e.length === 0)
|
|
1433
1439
|
throw new Error("Number skeleton cannot be empty");
|
|
1434
|
-
for (var t = e.split(
|
|
1435
|
-
return
|
|
1440
|
+
for (var t = e.split(gi).filter(function(f) {
|
|
1441
|
+
return f.length > 0;
|
|
1436
1442
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1437
1443
|
var s = i[n], o = s.split("/");
|
|
1438
1444
|
if (o.length === 0)
|
|
@@ -1446,17 +1452,17 @@ function oi(e) {
|
|
|
1446
1452
|
}
|
|
1447
1453
|
return r;
|
|
1448
1454
|
}
|
|
1449
|
-
function
|
|
1455
|
+
function _i(e) {
|
|
1450
1456
|
return e.replace(/^(.*?)-/, "");
|
|
1451
1457
|
}
|
|
1452
|
-
var
|
|
1453
|
-
function
|
|
1458
|
+
var Wt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Pr = /^(@+)?(\+|#+)?[rs]?$/g, Ei = /(\*)(0+)|(#+)(0+)|(0+)/g, Or = /^(0+)$/;
|
|
1459
|
+
function zt(e) {
|
|
1454
1460
|
var t = {};
|
|
1455
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1461
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Pr, function(r, n, i) {
|
|
1456
1462
|
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)), "";
|
|
1457
1463
|
}), t;
|
|
1458
1464
|
}
|
|
1459
|
-
function
|
|
1465
|
+
function Nr(e) {
|
|
1460
1466
|
switch (e) {
|
|
1461
1467
|
case "sign-auto":
|
|
1462
1468
|
return {
|
|
@@ -1496,7 +1502,7 @@ function _r(e) {
|
|
|
1496
1502
|
};
|
|
1497
1503
|
}
|
|
1498
1504
|
}
|
|
1499
|
-
function
|
|
1505
|
+
function xi(e) {
|
|
1500
1506
|
var t;
|
|
1501
1507
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1502
1508
|
notation: "engineering"
|
|
@@ -1504,17 +1510,17 @@ function hi(e) {
|
|
|
1504
1510
|
notation: "scientific"
|
|
1505
1511
|
}, e = e.slice(1)), t) {
|
|
1506
1512
|
var r = e.slice(0, 2);
|
|
1507
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1513
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Or.test(e))
|
|
1508
1514
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1509
1515
|
t.minimumIntegerDigits = e.length;
|
|
1510
1516
|
}
|
|
1511
1517
|
return t;
|
|
1512
1518
|
}
|
|
1513
|
-
function
|
|
1514
|
-
var t = {}, r =
|
|
1519
|
+
function Zt(e) {
|
|
1520
|
+
var t = {}, r = Nr(e);
|
|
1515
1521
|
return r || t;
|
|
1516
1522
|
}
|
|
1517
|
-
function
|
|
1523
|
+
function Si(e) {
|
|
1518
1524
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1519
1525
|
var i = n[r];
|
|
1520
1526
|
switch (i.stem) {
|
|
@@ -1538,7 +1544,7 @@ function li(e) {
|
|
|
1538
1544
|
continue;
|
|
1539
1545
|
case "measure-unit":
|
|
1540
1546
|
case "unit":
|
|
1541
|
-
t.style = "unit", t.unit =
|
|
1547
|
+
t.style = "unit", t.unit = _i(i.options[0]);
|
|
1542
1548
|
continue;
|
|
1543
1549
|
case "compact-short":
|
|
1544
1550
|
case "K":
|
|
@@ -1549,13 +1555,13 @@ function li(e) {
|
|
|
1549
1555
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1550
1556
|
continue;
|
|
1551
1557
|
case "scientific":
|
|
1552
|
-
t =
|
|
1553
|
-
return
|
|
1558
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1559
|
+
return w(w({}, h), Zt(u));
|
|
1554
1560
|
}, {}));
|
|
1555
1561
|
continue;
|
|
1556
1562
|
case "engineering":
|
|
1557
|
-
t =
|
|
1558
|
-
return
|
|
1563
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1564
|
+
return w(w({}, h), Zt(u));
|
|
1559
1565
|
}, {}));
|
|
1560
1566
|
continue;
|
|
1561
1567
|
case "notation-simple":
|
|
@@ -1600,11 +1606,11 @@ function li(e) {
|
|
|
1600
1606
|
case "integer-width":
|
|
1601
1607
|
if (i.options.length > 1)
|
|
1602
1608
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1603
|
-
i.options[0].replace(
|
|
1609
|
+
i.options[0].replace(Ei, function(h, u, l, m, f, d) {
|
|
1604
1610
|
if (u)
|
|
1605
1611
|
t.minimumIntegerDigits = l.length;
|
|
1606
1612
|
else {
|
|
1607
|
-
if (m &&
|
|
1613
|
+
if (m && f)
|
|
1608
1614
|
throw new Error("We currently do not support maximum integer digits");
|
|
1609
1615
|
if (d)
|
|
1610
1616
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1613,32 +1619,32 @@ function li(e) {
|
|
|
1613
1619
|
});
|
|
1614
1620
|
continue;
|
|
1615
1621
|
}
|
|
1616
|
-
if (
|
|
1622
|
+
if (Or.test(i.stem)) {
|
|
1617
1623
|
t.minimumIntegerDigits = i.stem.length;
|
|
1618
1624
|
continue;
|
|
1619
1625
|
}
|
|
1620
|
-
if (
|
|
1626
|
+
if (Wt.test(i.stem)) {
|
|
1621
1627
|
if (i.options.length > 1)
|
|
1622
1628
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1623
|
-
i.stem.replace(
|
|
1624
|
-
return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length :
|
|
1629
|
+
i.stem.replace(Wt, function(h, u, l, m, f, d) {
|
|
1630
|
+
return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1625
1631
|
});
|
|
1626
1632
|
var s = i.options[0];
|
|
1627
|
-
s === "w" ? t =
|
|
1633
|
+
s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), zt(s)));
|
|
1628
1634
|
continue;
|
|
1629
1635
|
}
|
|
1630
|
-
if (
|
|
1631
|
-
t =
|
|
1636
|
+
if (Pr.test(i.stem)) {
|
|
1637
|
+
t = w(w({}, t), zt(i.stem));
|
|
1632
1638
|
continue;
|
|
1633
1639
|
}
|
|
1634
|
-
var o =
|
|
1635
|
-
o && (t =
|
|
1636
|
-
var a =
|
|
1637
|
-
a && (t =
|
|
1640
|
+
var o = Nr(i.stem);
|
|
1641
|
+
o && (t = w(w({}, t), o));
|
|
1642
|
+
var a = xi(i.stem);
|
|
1643
|
+
a && (t = w(w({}, t), a));
|
|
1638
1644
|
}
|
|
1639
1645
|
return t;
|
|
1640
1646
|
}
|
|
1641
|
-
var
|
|
1647
|
+
var Oe = {
|
|
1642
1648
|
"001": [
|
|
1643
1649
|
"H",
|
|
1644
1650
|
"h"
|
|
@@ -3053,13 +3059,13 @@ var _e = {
|
|
|
3053
3059
|
"h"
|
|
3054
3060
|
]
|
|
3055
3061
|
};
|
|
3056
|
-
function
|
|
3062
|
+
function wi(e, t) {
|
|
3057
3063
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3058
3064
|
var i = e.charAt(n);
|
|
3059
3065
|
if (i === "j") {
|
|
3060
3066
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3061
3067
|
s++, n++;
|
|
3062
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
3068
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Ti(t);
|
|
3063
3069
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3064
3070
|
r += h;
|
|
3065
3071
|
for (; o-- > 0; )
|
|
@@ -3069,7 +3075,7 @@ function ci(e, t) {
|
|
|
3069
3075
|
}
|
|
3070
3076
|
return r;
|
|
3071
3077
|
}
|
|
3072
|
-
function
|
|
3078
|
+
function Ti(e) {
|
|
3073
3079
|
var t = e.hourCycle;
|
|
3074
3080
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3075
3081
|
e.hourCycles && // @ts-ignore
|
|
@@ -3088,23 +3094,23 @@ function fi(e) {
|
|
|
3088
3094
|
}
|
|
3089
3095
|
var r = e.language, n;
|
|
3090
3096
|
r !== "root" && (n = e.maximize().region);
|
|
3091
|
-
var i =
|
|
3097
|
+
var i = Oe[n || ""] || Oe[r || ""] || Oe["".concat(r, "-001")] || Oe["001"];
|
|
3092
3098
|
return i[0];
|
|
3093
3099
|
}
|
|
3094
|
-
var
|
|
3095
|
-
function
|
|
3100
|
+
var Ke, Hi = new RegExp("^".concat(Br.source, "*")), Ai = new RegExp("".concat(Br.source, "*$"));
|
|
3101
|
+
function g(e, t) {
|
|
3096
3102
|
return { start: e, end: t };
|
|
3097
3103
|
}
|
|
3098
|
-
var
|
|
3104
|
+
var Bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pi = !!String.fromCodePoint, Oi = !!Object.fromEntries, Ni = !!String.prototype.codePointAt, Li = !!String.prototype.trimStart, Ci = !!String.prototype.trimEnd, Ii = !!Number.isSafeInteger, Mi = Ii ? Number.isSafeInteger : function(e) {
|
|
3099
3105
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3100
|
-
},
|
|
3106
|
+
}, mt = !0;
|
|
3101
3107
|
try {
|
|
3102
|
-
var
|
|
3103
|
-
|
|
3108
|
+
var Ri = Cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3109
|
+
mt = ((Ke = Ri.exec("a")) === null || Ke === void 0 ? void 0 : Ke[0]) === "a";
|
|
3104
3110
|
} catch (e) {
|
|
3105
|
-
|
|
3111
|
+
mt = !1;
|
|
3106
3112
|
}
|
|
3107
|
-
var
|
|
3113
|
+
var qt = Bi ? (
|
|
3108
3114
|
// Native
|
|
3109
3115
|
function(t, r, n) {
|
|
3110
3116
|
return t.startsWith(r, n);
|
|
@@ -3114,7 +3120,7 @@ var Ut = bi ? (
|
|
|
3114
3120
|
function(t, r, n) {
|
|
3115
3121
|
return t.slice(n, n + r.length) === r;
|
|
3116
3122
|
}
|
|
3117
|
-
),
|
|
3123
|
+
), dt = Pi ? String.fromCodePoint : (
|
|
3118
3124
|
// IE11
|
|
3119
3125
|
function() {
|
|
3120
3126
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3126,9 +3132,9 @@ var Ut = bi ? (
|
|
|
3126
3132
|
}
|
|
3127
3133
|
return n;
|
|
3128
3134
|
}
|
|
3129
|
-
),
|
|
3135
|
+
), Qt = (
|
|
3130
3136
|
// native
|
|
3131
|
-
|
|
3137
|
+
Oi ? Object.fromEntries : (
|
|
3132
3138
|
// Ponyfill
|
|
3133
3139
|
function(t) {
|
|
3134
3140
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3138,7 +3144,7 @@ var Ut = bi ? (
|
|
|
3138
3144
|
return r;
|
|
3139
3145
|
}
|
|
3140
3146
|
)
|
|
3141
|
-
),
|
|
3147
|
+
), Lr = Ni ? (
|
|
3142
3148
|
// Native
|
|
3143
3149
|
function(t, r) {
|
|
3144
3150
|
return t.codePointAt(r);
|
|
@@ -3152,7 +3158,7 @@ var Ut = bi ? (
|
|
|
3152
3158
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3153
3159
|
}
|
|
3154
3160
|
}
|
|
3155
|
-
),
|
|
3161
|
+
), Gi = Li ? (
|
|
3156
3162
|
// Native
|
|
3157
3163
|
function(t) {
|
|
3158
3164
|
return t.trimStart();
|
|
@@ -3160,9 +3166,9 @@ var Ut = bi ? (
|
|
|
3160
3166
|
) : (
|
|
3161
3167
|
// Ponyfill
|
|
3162
3168
|
function(t) {
|
|
3163
|
-
return t.replace(
|
|
3169
|
+
return t.replace(Hi, "");
|
|
3164
3170
|
}
|
|
3165
|
-
),
|
|
3171
|
+
), Ui = Ci ? (
|
|
3166
3172
|
// Native
|
|
3167
3173
|
function(t) {
|
|
3168
3174
|
return t.trimEnd();
|
|
@@ -3170,32 +3176,32 @@ var Ut = bi ? (
|
|
|
3170
3176
|
) : (
|
|
3171
3177
|
// Ponyfill
|
|
3172
3178
|
function(t) {
|
|
3173
|
-
return t.replace(
|
|
3179
|
+
return t.replace(Ai, "");
|
|
3174
3180
|
}
|
|
3175
3181
|
);
|
|
3176
|
-
function
|
|
3182
|
+
function Cr(e, t) {
|
|
3177
3183
|
return new RegExp(e, t);
|
|
3178
3184
|
}
|
|
3179
|
-
var
|
|
3180
|
-
if (
|
|
3181
|
-
var
|
|
3182
|
-
|
|
3185
|
+
var bt;
|
|
3186
|
+
if (mt) {
|
|
3187
|
+
var Yt = Cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3188
|
+
bt = function(t, r) {
|
|
3183
3189
|
var n;
|
|
3184
|
-
|
|
3185
|
-
var i =
|
|
3190
|
+
Yt.lastIndex = r;
|
|
3191
|
+
var i = Yt.exec(t);
|
|
3186
3192
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3187
3193
|
};
|
|
3188
3194
|
} else
|
|
3189
|
-
|
|
3195
|
+
bt = function(t, r) {
|
|
3190
3196
|
for (var n = []; ; ) {
|
|
3191
|
-
var i =
|
|
3192
|
-
if (i === void 0 ||
|
|
3197
|
+
var i = Lr(t, r);
|
|
3198
|
+
if (i === void 0 || Ir(i) || ji(i))
|
|
3193
3199
|
break;
|
|
3194
3200
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3195
3201
|
}
|
|
3196
|
-
return
|
|
3202
|
+
return dt.apply(void 0, n);
|
|
3197
3203
|
};
|
|
3198
|
-
var
|
|
3204
|
+
var Di = (
|
|
3199
3205
|
/** @class */
|
|
3200
3206
|
function() {
|
|
3201
3207
|
function e(t, r) {
|
|
@@ -3219,14 +3225,14 @@ var Hi = (
|
|
|
3219
3225
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3220
3226
|
var a = this.clonePosition();
|
|
3221
3227
|
this.bump(), i.push({
|
|
3222
|
-
type:
|
|
3223
|
-
location:
|
|
3228
|
+
type: S.pound,
|
|
3229
|
+
location: g(a, this.clonePosition())
|
|
3224
3230
|
});
|
|
3225
3231
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3226
3232
|
if (n)
|
|
3227
3233
|
break;
|
|
3228
|
-
return this.error(
|
|
3229
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3234
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3235
|
+
} else if (s === 60 && !this.ignoreTag && pt(this.peek() || 0)) {
|
|
3230
3236
|
var o = this.parseTag(t, r);
|
|
3231
3237
|
if (o.err)
|
|
3232
3238
|
return o;
|
|
@@ -3247,9 +3253,9 @@ var Hi = (
|
|
|
3247
3253
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3248
3254
|
return {
|
|
3249
3255
|
val: {
|
|
3250
|
-
type:
|
|
3256
|
+
type: S.literal,
|
|
3251
3257
|
value: "<".concat(i, "/>"),
|
|
3252
|
-
location:
|
|
3258
|
+
location: g(n, this.clonePosition())
|
|
3253
3259
|
},
|
|
3254
3260
|
err: null
|
|
3255
3261
|
};
|
|
@@ -3259,25 +3265,25 @@ var Hi = (
|
|
|
3259
3265
|
return s;
|
|
3260
3266
|
var o = s.val, a = this.clonePosition();
|
|
3261
3267
|
if (this.bumpIf("</")) {
|
|
3262
|
-
if (this.isEOF() || !
|
|
3263
|
-
return this.error(
|
|
3268
|
+
if (this.isEOF() || !pt(this.char()))
|
|
3269
|
+
return this.error(y.INVALID_TAG, g(a, this.clonePosition()));
|
|
3264
3270
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3265
|
-
return i !== u ? this.error(
|
|
3271
|
+
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3266
3272
|
val: {
|
|
3267
|
-
type:
|
|
3273
|
+
type: S.tag,
|
|
3268
3274
|
value: i,
|
|
3269
3275
|
children: o,
|
|
3270
|
-
location:
|
|
3276
|
+
location: g(n, this.clonePosition())
|
|
3271
3277
|
},
|
|
3272
3278
|
err: null
|
|
3273
|
-
} : this.error(
|
|
3279
|
+
} : this.error(y.INVALID_TAG, g(a, this.clonePosition())));
|
|
3274
3280
|
} else
|
|
3275
|
-
return this.error(
|
|
3281
|
+
return this.error(y.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3276
3282
|
} else
|
|
3277
|
-
return this.error(
|
|
3283
|
+
return this.error(y.INVALID_TAG, g(n, this.clonePosition()));
|
|
3278
3284
|
}, e.prototype.parseTagName = function() {
|
|
3279
3285
|
var t = this.offset();
|
|
3280
|
-
for (this.bump(); !this.isEOF() &&
|
|
3286
|
+
for (this.bump(); !this.isEOF() && $i(this.char()); )
|
|
3281
3287
|
this.bump();
|
|
3282
3288
|
return this.message.slice(t, this.offset());
|
|
3283
3289
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3299,14 +3305,14 @@ var Hi = (
|
|
|
3299
3305
|
}
|
|
3300
3306
|
break;
|
|
3301
3307
|
}
|
|
3302
|
-
var h =
|
|
3308
|
+
var h = g(n, this.clonePosition());
|
|
3303
3309
|
return {
|
|
3304
|
-
val: { type:
|
|
3310
|
+
val: { type: S.literal, value: i, location: h },
|
|
3305
3311
|
err: null
|
|
3306
3312
|
};
|
|
3307
3313
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3308
3314
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3309
|
-
!
|
|
3315
|
+
!Fi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3310
3316
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3311
3317
|
if (this.isEOF() || this.char() !== 39)
|
|
3312
3318
|
return null;
|
|
@@ -3340,49 +3346,49 @@ var Hi = (
|
|
|
3340
3346
|
r.push(n);
|
|
3341
3347
|
this.bump();
|
|
3342
3348
|
}
|
|
3343
|
-
return
|
|
3349
|
+
return dt.apply(void 0, r);
|
|
3344
3350
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3345
3351
|
if (this.isEOF())
|
|
3346
3352
|
return null;
|
|
3347
3353
|
var n = this.char();
|
|
3348
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3354
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), dt(n));
|
|
3349
3355
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3350
3356
|
var n = this.clonePosition();
|
|
3351
3357
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3352
|
-
return this.error(
|
|
3358
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3353
3359
|
if (this.char() === 125)
|
|
3354
|
-
return this.bump(), this.error(
|
|
3360
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3355
3361
|
var i = this.parseIdentifierIfPossible().value;
|
|
3356
3362
|
if (!i)
|
|
3357
|
-
return this.error(
|
|
3363
|
+
return this.error(y.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3358
3364
|
if (this.bumpSpace(), this.isEOF())
|
|
3359
|
-
return this.error(
|
|
3365
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3360
3366
|
switch (this.char()) {
|
|
3361
3367
|
case 125:
|
|
3362
3368
|
return this.bump(), {
|
|
3363
3369
|
val: {
|
|
3364
|
-
type:
|
|
3370
|
+
type: S.argument,
|
|
3365
3371
|
// value does not include the opening and closing braces.
|
|
3366
3372
|
value: i,
|
|
3367
|
-
location:
|
|
3373
|
+
location: g(n, this.clonePosition())
|
|
3368
3374
|
},
|
|
3369
3375
|
err: null
|
|
3370
3376
|
};
|
|
3371
3377
|
case 44:
|
|
3372
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3378
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3373
3379
|
default:
|
|
3374
|
-
return this.error(
|
|
3380
|
+
return this.error(y.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3375
3381
|
}
|
|
3376
3382
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3377
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3383
|
+
var t = this.clonePosition(), r = this.offset(), n = bt(this.message, r), i = r + n.length;
|
|
3378
3384
|
this.bumpTo(i);
|
|
3379
|
-
var s = this.clonePosition(), o =
|
|
3385
|
+
var s = this.clonePosition(), o = g(t, s);
|
|
3380
3386
|
return { value: n, location: o };
|
|
3381
3387
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3382
3388
|
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3383
3389
|
switch (a) {
|
|
3384
3390
|
case "":
|
|
3385
|
-
return this.error(
|
|
3391
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, g(o, h));
|
|
3386
3392
|
case "number":
|
|
3387
3393
|
case "date":
|
|
3388
3394
|
case "time": {
|
|
@@ -3393,44 +3399,44 @@ var Hi = (
|
|
|
3393
3399
|
var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
3394
3400
|
if (m.err)
|
|
3395
3401
|
return m;
|
|
3396
|
-
var
|
|
3397
|
-
if (
|
|
3398
|
-
return this.error(
|
|
3399
|
-
var d =
|
|
3400
|
-
u = { style:
|
|
3402
|
+
var f = Ui(m.val);
|
|
3403
|
+
if (f.length === 0)
|
|
3404
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3405
|
+
var d = g(l, this.clonePosition());
|
|
3406
|
+
u = { style: f, styleLocation: d };
|
|
3401
3407
|
}
|
|
3402
3408
|
var p = this.tryParseArgumentClose(i);
|
|
3403
3409
|
if (p.err)
|
|
3404
3410
|
return p;
|
|
3405
|
-
var b =
|
|
3406
|
-
if (u &&
|
|
3407
|
-
var
|
|
3411
|
+
var b = g(i, this.clonePosition());
|
|
3412
|
+
if (u && qt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3413
|
+
var H = Gi(u.style.slice(2));
|
|
3408
3414
|
if (a === "number") {
|
|
3409
|
-
var m = this.parseNumberSkeletonFromString(
|
|
3415
|
+
var m = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3410
3416
|
return m.err ? m : {
|
|
3411
|
-
val: { type:
|
|
3417
|
+
val: { type: S.number, value: n, location: b, style: m.val },
|
|
3412
3418
|
err: null
|
|
3413
3419
|
};
|
|
3414
3420
|
} else {
|
|
3415
|
-
if (
|
|
3416
|
-
return this.error(
|
|
3417
|
-
var
|
|
3418
|
-
this.locale && (
|
|
3419
|
-
var
|
|
3420
|
-
type:
|
|
3421
|
-
pattern:
|
|
3421
|
+
if (H.length === 0)
|
|
3422
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
|
3423
|
+
var R = H;
|
|
3424
|
+
this.locale && (R = wi(H, this.locale));
|
|
3425
|
+
var f = {
|
|
3426
|
+
type: ue.dateTime,
|
|
3427
|
+
pattern: R,
|
|
3422
3428
|
location: u.styleLocation,
|
|
3423
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3424
|
-
},
|
|
3429
|
+
parsedOptions: this.shouldParseSkeletons ? yi(R) : {}
|
|
3430
|
+
}, L = a === "date" ? S.date : S.time;
|
|
3425
3431
|
return {
|
|
3426
|
-
val: { type:
|
|
3432
|
+
val: { type: L, value: n, location: b, style: f },
|
|
3427
3433
|
err: null
|
|
3428
3434
|
};
|
|
3429
3435
|
}
|
|
3430
3436
|
}
|
|
3431
3437
|
return {
|
|
3432
3438
|
val: {
|
|
3433
|
-
type: a === "number" ?
|
|
3439
|
+
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
|
3434
3440
|
value: n,
|
|
3435
3441
|
location: b,
|
|
3436
3442
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -3441,52 +3447,52 @@ var Hi = (
|
|
|
3441
3447
|
case "plural":
|
|
3442
3448
|
case "selectordinal":
|
|
3443
3449
|
case "select": {
|
|
3444
|
-
var
|
|
3450
|
+
var A = this.clonePosition();
|
|
3445
3451
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3446
|
-
return this.error(
|
|
3452
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, g(A, Me({}, A)));
|
|
3447
3453
|
this.bumpSpace();
|
|
3448
|
-
var
|
|
3449
|
-
if (a !== "select" &&
|
|
3454
|
+
var C = this.parseIdentifierIfPossible(), B = 0;
|
|
3455
|
+
if (a !== "select" && C.value === "offset") {
|
|
3450
3456
|
if (!this.bumpIf(":"))
|
|
3451
|
-
return this.error(
|
|
3457
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3452
3458
|
this.bumpSpace();
|
|
3453
|
-
var m = this.tryParseDecimalInteger(
|
|
3459
|
+
var m = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3454
3460
|
if (m.err)
|
|
3455
3461
|
return m;
|
|
3456
|
-
this.bumpSpace(),
|
|
3462
|
+
this.bumpSpace(), C = this.parseIdentifierIfPossible(), B = m.val;
|
|
3457
3463
|
}
|
|
3458
|
-
var
|
|
3459
|
-
if (
|
|
3460
|
-
return
|
|
3464
|
+
var U = this.tryParsePluralOrSelectOptions(t, a, r, C);
|
|
3465
|
+
if (U.err)
|
|
3466
|
+
return U;
|
|
3461
3467
|
var p = this.tryParseArgumentClose(i);
|
|
3462
3468
|
if (p.err)
|
|
3463
3469
|
return p;
|
|
3464
|
-
var
|
|
3470
|
+
var E = g(i, this.clonePosition());
|
|
3465
3471
|
return a === "select" ? {
|
|
3466
3472
|
val: {
|
|
3467
|
-
type:
|
|
3473
|
+
type: S.select,
|
|
3468
3474
|
value: n,
|
|
3469
|
-
options:
|
|
3470
|
-
location:
|
|
3475
|
+
options: Qt(U.val),
|
|
3476
|
+
location: E
|
|
3471
3477
|
},
|
|
3472
3478
|
err: null
|
|
3473
3479
|
} : {
|
|
3474
3480
|
val: {
|
|
3475
|
-
type:
|
|
3481
|
+
type: S.plural,
|
|
3476
3482
|
value: n,
|
|
3477
|
-
options:
|
|
3478
|
-
offset:
|
|
3483
|
+
options: Qt(U.val),
|
|
3484
|
+
offset: B,
|
|
3479
3485
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3480
|
-
location:
|
|
3486
|
+
location: E
|
|
3481
3487
|
},
|
|
3482
3488
|
err: null
|
|
3483
3489
|
};
|
|
3484
3490
|
}
|
|
3485
3491
|
default:
|
|
3486
|
-
return this.error(
|
|
3492
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, g(o, h));
|
|
3487
3493
|
}
|
|
3488
3494
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3489
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3495
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3490
3496
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3491
3497
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3492
3498
|
var n = this.char();
|
|
@@ -3495,7 +3501,7 @@ var Hi = (
|
|
|
3495
3501
|
this.bump();
|
|
3496
3502
|
var i = this.clonePosition();
|
|
3497
3503
|
if (!this.bumpUntil("'"))
|
|
3498
|
-
return this.error(
|
|
3504
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3499
3505
|
this.bump();
|
|
3500
3506
|
break;
|
|
3501
3507
|
}
|
|
@@ -3525,16 +3531,16 @@ var Hi = (
|
|
|
3525
3531
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3526
3532
|
var n = [];
|
|
3527
3533
|
try {
|
|
3528
|
-
n =
|
|
3534
|
+
n = vi(t);
|
|
3529
3535
|
} catch (i) {
|
|
3530
|
-
return this.error(
|
|
3536
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3531
3537
|
}
|
|
3532
3538
|
return {
|
|
3533
3539
|
val: {
|
|
3534
|
-
type:
|
|
3540
|
+
type: ue.number,
|
|
3535
3541
|
tokens: n,
|
|
3536
3542
|
location: r,
|
|
3537
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3543
|
+
parsedOptions: this.shouldParseSkeletons ? Si(n) : {}
|
|
3538
3544
|
},
|
|
3539
3545
|
err: null
|
|
3540
3546
|
};
|
|
@@ -3543,19 +3549,19 @@ var Hi = (
|
|
|
3543
3549
|
if (u.length === 0) {
|
|
3544
3550
|
var m = this.clonePosition();
|
|
3545
3551
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3546
|
-
var
|
|
3547
|
-
if (
|
|
3548
|
-
return
|
|
3549
|
-
l =
|
|
3552
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3553
|
+
if (f.err)
|
|
3554
|
+
return f;
|
|
3555
|
+
l = g(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
|
|
3550
3556
|
} else
|
|
3551
3557
|
break;
|
|
3552
3558
|
}
|
|
3553
3559
|
if (h.has(u))
|
|
3554
|
-
return this.error(r === "select" ?
|
|
3560
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3555
3561
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3556
3562
|
var d = this.clonePosition();
|
|
3557
3563
|
if (!this.bumpIf("{"))
|
|
3558
|
-
return this.error(r === "select" ?
|
|
3564
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3559
3565
|
var p = this.parseMessage(t + 1, r, n);
|
|
3560
3566
|
if (p.err)
|
|
3561
3567
|
return p;
|
|
@@ -3566,11 +3572,11 @@ var Hi = (
|
|
|
3566
3572
|
u,
|
|
3567
3573
|
{
|
|
3568
3574
|
value: p.val,
|
|
3569
|
-
location:
|
|
3575
|
+
location: g(d, this.clonePosition())
|
|
3570
3576
|
}
|
|
3571
3577
|
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3572
3578
|
}
|
|
3573
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3579
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3574
3580
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3575
3581
|
var n = 1, i = this.clonePosition();
|
|
3576
3582
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3581,8 +3587,8 @@ var Hi = (
|
|
|
3581
3587
|
else
|
|
3582
3588
|
break;
|
|
3583
3589
|
}
|
|
3584
|
-
var h =
|
|
3585
|
-
return s ? (o *= n,
|
|
3590
|
+
var h = g(i, this.clonePosition());
|
|
3591
|
+
return s ? (o *= n, Mi(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3586
3592
|
}, e.prototype.offset = function() {
|
|
3587
3593
|
return this.position.offset;
|
|
3588
3594
|
}, e.prototype.isEOF = function() {
|
|
@@ -3597,7 +3603,7 @@ var Hi = (
|
|
|
3597
3603
|
var t = this.position.offset;
|
|
3598
3604
|
if (t >= this.message.length)
|
|
3599
3605
|
throw Error("out of bound");
|
|
3600
|
-
var r =
|
|
3606
|
+
var r = Lr(this.message, t);
|
|
3601
3607
|
if (r === void 0)
|
|
3602
3608
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3603
3609
|
return r;
|
|
@@ -3616,7 +3622,7 @@ var Hi = (
|
|
|
3616
3622
|
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);
|
|
3617
3623
|
}
|
|
3618
3624
|
}, e.prototype.bumpIf = function(t) {
|
|
3619
|
-
if (
|
|
3625
|
+
if (qt(this.message, t, this.offset())) {
|
|
3620
3626
|
for (var r = 0; r < t.length; r++)
|
|
3621
3627
|
this.bump();
|
|
3622
3628
|
return !0;
|
|
@@ -3638,7 +3644,7 @@ var Hi = (
|
|
|
3638
3644
|
break;
|
|
3639
3645
|
}
|
|
3640
3646
|
}, e.prototype.bumpSpace = function() {
|
|
3641
|
-
for (; !this.isEOF() &&
|
|
3647
|
+
for (; !this.isEOF() && Ir(this.char()); )
|
|
3642
3648
|
this.bump();
|
|
3643
3649
|
}, e.prototype.peek = function() {
|
|
3644
3650
|
if (this.isEOF())
|
|
@@ -3648,47 +3654,47 @@ var Hi = (
|
|
|
3648
3654
|
}, e;
|
|
3649
3655
|
}()
|
|
3650
3656
|
);
|
|
3651
|
-
function
|
|
3657
|
+
function pt(e) {
|
|
3652
3658
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3653
3659
|
}
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3660
|
+
function Fi(e) {
|
|
3661
|
+
return pt(e) || e === 47;
|
|
3656
3662
|
}
|
|
3657
|
-
function
|
|
3663
|
+
function $i(e) {
|
|
3658
3664
|
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;
|
|
3659
3665
|
}
|
|
3660
|
-
function
|
|
3666
|
+
function Ir(e) {
|
|
3661
3667
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3662
3668
|
}
|
|
3663
|
-
function
|
|
3669
|
+
function ji(e) {
|
|
3664
3670
|
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;
|
|
3665
3671
|
}
|
|
3666
|
-
function
|
|
3672
|
+
function yt(e) {
|
|
3667
3673
|
e.forEach(function(t) {
|
|
3668
|
-
if (delete t.location,
|
|
3674
|
+
if (delete t.location, wr(t) || Tr(t))
|
|
3669
3675
|
for (var r in t.options)
|
|
3670
|
-
delete t.options[r].location,
|
|
3676
|
+
delete t.options[r].location, yt(t.options[r].value);
|
|
3671
3677
|
else
|
|
3672
|
-
|
|
3678
|
+
Er(t) && Ar(t.style) || (xr(t) || Sr(t)) && ft(t.style) ? delete t.style.location : Hr(t) && yt(t.children);
|
|
3673
3679
|
});
|
|
3674
3680
|
}
|
|
3675
|
-
function
|
|
3676
|
-
t === void 0 && (t = {}), t =
|
|
3677
|
-
var r = new
|
|
3681
|
+
function ki(e, t) {
|
|
3682
|
+
t === void 0 && (t = {}), t = Me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3683
|
+
var r = new Di(e, t).parse();
|
|
3678
3684
|
if (r.err) {
|
|
3679
|
-
var n = SyntaxError(
|
|
3685
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3680
3686
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3681
3687
|
}
|
|
3682
|
-
return t != null && t.captureLocation ||
|
|
3688
|
+
return t != null && t.captureLocation || yt(r.val), r.val;
|
|
3683
3689
|
}
|
|
3684
|
-
var
|
|
3690
|
+
var he;
|
|
3685
3691
|
(function(e) {
|
|
3686
3692
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3687
|
-
})(
|
|
3688
|
-
var
|
|
3693
|
+
})(he || (he = {}));
|
|
3694
|
+
var $e = (
|
|
3689
3695
|
/** @class */
|
|
3690
3696
|
function(e) {
|
|
3691
|
-
|
|
3697
|
+
Fe(t, e);
|
|
3692
3698
|
function t(r, n, i) {
|
|
3693
3699
|
var s = e.call(this, r) || this;
|
|
3694
3700
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3697,155 +3703,155 @@ var Ne = (
|
|
|
3697
3703
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3698
3704
|
}, t;
|
|
3699
3705
|
}(Error)
|
|
3700
|
-
),
|
|
3706
|
+
), Jt = (
|
|
3701
3707
|
/** @class */
|
|
3702
3708
|
function(e) {
|
|
3703
|
-
|
|
3709
|
+
Fe(t, e);
|
|
3704
3710
|
function t(r, n, i, s) {
|
|
3705
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3711
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), he.INVALID_VALUE, s) || this;
|
|
3706
3712
|
}
|
|
3707
3713
|
return t;
|
|
3708
|
-
}(
|
|
3709
|
-
),
|
|
3714
|
+
}($e)
|
|
3715
|
+
), Vi = (
|
|
3710
3716
|
/** @class */
|
|
3711
3717
|
function(e) {
|
|
3712
|
-
|
|
3718
|
+
Fe(t, e);
|
|
3713
3719
|
function t(r, n, i) {
|
|
3714
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3720
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), he.INVALID_VALUE, i) || this;
|
|
3715
3721
|
}
|
|
3716
3722
|
return t;
|
|
3717
|
-
}(
|
|
3718
|
-
),
|
|
3723
|
+
}($e)
|
|
3724
|
+
), Xi = (
|
|
3719
3725
|
/** @class */
|
|
3720
3726
|
function(e) {
|
|
3721
|
-
|
|
3727
|
+
Fe(t, e);
|
|
3722
3728
|
function t(r, n) {
|
|
3723
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3729
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), he.MISSING_VALUE, n) || this;
|
|
3724
3730
|
}
|
|
3725
3731
|
return t;
|
|
3726
|
-
}(
|
|
3727
|
-
),
|
|
3732
|
+
}($e)
|
|
3733
|
+
), O;
|
|
3728
3734
|
(function(e) {
|
|
3729
3735
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3730
|
-
})(
|
|
3731
|
-
function
|
|
3736
|
+
})(O || (O = {}));
|
|
3737
|
+
function Wi(e) {
|
|
3732
3738
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3733
3739
|
var n = t[t.length - 1];
|
|
3734
|
-
return !n || n.type !==
|
|
3740
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3735
3741
|
}, []);
|
|
3736
3742
|
}
|
|
3737
|
-
function
|
|
3743
|
+
function zi(e) {
|
|
3738
3744
|
return typeof e == "function";
|
|
3739
3745
|
}
|
|
3740
|
-
function
|
|
3741
|
-
if (e.length === 1 &&
|
|
3746
|
+
function Ce(e, t, r, n, i, s, o) {
|
|
3747
|
+
if (e.length === 1 && Xt(e[0]))
|
|
3742
3748
|
return [
|
|
3743
3749
|
{
|
|
3744
|
-
type:
|
|
3750
|
+
type: O.literal,
|
|
3745
3751
|
value: e[0].value
|
|
3746
3752
|
}
|
|
3747
3753
|
];
|
|
3748
3754
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3749
3755
|
var l = u[h];
|
|
3750
|
-
if (
|
|
3756
|
+
if (Xt(l)) {
|
|
3751
3757
|
a.push({
|
|
3752
|
-
type:
|
|
3758
|
+
type: O.literal,
|
|
3753
3759
|
value: l.value
|
|
3754
3760
|
});
|
|
3755
3761
|
continue;
|
|
3756
3762
|
}
|
|
3757
|
-
if (
|
|
3763
|
+
if (bi(l)) {
|
|
3758
3764
|
typeof s == "number" && a.push({
|
|
3759
|
-
type:
|
|
3765
|
+
type: O.literal,
|
|
3760
3766
|
value: r.getNumberFormat(t).format(s)
|
|
3761
3767
|
});
|
|
3762
3768
|
continue;
|
|
3763
3769
|
}
|
|
3764
3770
|
var m = l.value;
|
|
3765
3771
|
if (!(i && m in i))
|
|
3766
|
-
throw new
|
|
3767
|
-
var
|
|
3768
|
-
if (
|
|
3769
|
-
(!
|
|
3770
|
-
type: typeof
|
|
3771
|
-
value:
|
|
3772
|
+
throw new Xi(m, o);
|
|
3773
|
+
var f = i[m];
|
|
3774
|
+
if (di(l)) {
|
|
3775
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3776
|
+
type: typeof f == "string" ? O.literal : O.object,
|
|
3777
|
+
value: f
|
|
3772
3778
|
});
|
|
3773
3779
|
continue;
|
|
3774
3780
|
}
|
|
3775
|
-
if (
|
|
3776
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3781
|
+
if (xr(l)) {
|
|
3782
|
+
var d = typeof l.style == "string" ? n.date[l.style] : ft(l.style) ? l.style.parsedOptions : void 0;
|
|
3777
3783
|
a.push({
|
|
3778
|
-
type:
|
|
3779
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3784
|
+
type: O.literal,
|
|
3785
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3780
3786
|
});
|
|
3781
3787
|
continue;
|
|
3782
3788
|
}
|
|
3783
|
-
if (
|
|
3784
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3789
|
+
if (Sr(l)) {
|
|
3790
|
+
var d = typeof l.style == "string" ? n.time[l.style] : ft(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3785
3791
|
a.push({
|
|
3786
|
-
type:
|
|
3787
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3792
|
+
type: O.literal,
|
|
3793
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3788
3794
|
});
|
|
3789
3795
|
continue;
|
|
3790
3796
|
}
|
|
3791
|
-
if (
|
|
3792
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3793
|
-
d && d.scale && (
|
|
3794
|
-
type:
|
|
3795
|
-
value: r.getNumberFormat(t, d).format(
|
|
3797
|
+
if (Er(l)) {
|
|
3798
|
+
var d = typeof l.style == "string" ? n.number[l.style] : Ar(l.style) ? l.style.parsedOptions : void 0;
|
|
3799
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3800
|
+
type: O.literal,
|
|
3801
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3796
3802
|
});
|
|
3797
3803
|
continue;
|
|
3798
3804
|
}
|
|
3799
|
-
if (
|
|
3800
|
-
var p = l.children, b = l.value,
|
|
3801
|
-
if (!
|
|
3802
|
-
throw new
|
|
3803
|
-
var
|
|
3804
|
-
return
|
|
3805
|
+
if (Hr(l)) {
|
|
3806
|
+
var p = l.children, b = l.value, H = i[b];
|
|
3807
|
+
if (!zi(H))
|
|
3808
|
+
throw new Vi(b, "function", o);
|
|
3809
|
+
var R = Ce(p, t, r, n, i, s), L = H(R.map(function(B) {
|
|
3810
|
+
return B.value;
|
|
3805
3811
|
}));
|
|
3806
|
-
Array.isArray(
|
|
3812
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(B) {
|
|
3807
3813
|
return {
|
|
3808
|
-
type: typeof
|
|
3809
|
-
value:
|
|
3814
|
+
type: typeof B == "string" ? O.literal : O.object,
|
|
3815
|
+
value: B
|
|
3810
3816
|
};
|
|
3811
3817
|
}));
|
|
3812
3818
|
}
|
|
3813
|
-
if (
|
|
3814
|
-
var
|
|
3815
|
-
if (!
|
|
3816
|
-
throw new
|
|
3817
|
-
a.push.apply(a,
|
|
3819
|
+
if (wr(l)) {
|
|
3820
|
+
var A = l.options[f] || l.options.other;
|
|
3821
|
+
if (!A)
|
|
3822
|
+
throw new Jt(l.value, f, Object.keys(l.options), o);
|
|
3823
|
+
a.push.apply(a, Ce(A.value, t, r, n, i));
|
|
3818
3824
|
continue;
|
|
3819
3825
|
}
|
|
3820
|
-
if (
|
|
3821
|
-
var
|
|
3822
|
-
if (!
|
|
3826
|
+
if (Tr(l)) {
|
|
3827
|
+
var A = l.options["=".concat(f)];
|
|
3828
|
+
if (!A) {
|
|
3823
3829
|
if (!Intl.PluralRules)
|
|
3824
|
-
throw new
|
|
3830
|
+
throw new $e(`Intl.PluralRules is not available in this environment.
|
|
3825
3831
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3826
|
-
`,
|
|
3827
|
-
var
|
|
3828
|
-
|
|
3832
|
+
`, he.MISSING_INTL_API, o);
|
|
3833
|
+
var C = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3834
|
+
A = l.options[C] || l.options.other;
|
|
3829
3835
|
}
|
|
3830
|
-
if (!
|
|
3831
|
-
throw new
|
|
3832
|
-
a.push.apply(a,
|
|
3836
|
+
if (!A)
|
|
3837
|
+
throw new Jt(l.value, f, Object.keys(l.options), o);
|
|
3838
|
+
a.push.apply(a, Ce(A.value, t, r, n, i, f - (l.offset || 0)));
|
|
3833
3839
|
continue;
|
|
3834
3840
|
}
|
|
3835
3841
|
}
|
|
3836
|
-
return
|
|
3842
|
+
return Wi(a);
|
|
3837
3843
|
}
|
|
3838
|
-
function
|
|
3839
|
-
return t ?
|
|
3840
|
-
return r[n] =
|
|
3844
|
+
function Zi(e, t) {
|
|
3845
|
+
return t ? D(D(D({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3846
|
+
return r[n] = D(D({}, e[n]), t[n] || {}), r;
|
|
3841
3847
|
}, {})) : e;
|
|
3842
3848
|
}
|
|
3843
|
-
function
|
|
3849
|
+
function qi(e, t) {
|
|
3844
3850
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3845
|
-
return r[n] =
|
|
3846
|
-
},
|
|
3851
|
+
return r[n] = Zi(e[n], t[n]), r;
|
|
3852
|
+
}, D({}, e)) : e;
|
|
3847
3853
|
}
|
|
3848
|
-
function
|
|
3854
|
+
function et(e) {
|
|
3849
3855
|
return {
|
|
3850
3856
|
create: function() {
|
|
3851
3857
|
return {
|
|
@@ -3859,39 +3865,39 @@ function Ve(e) {
|
|
|
3859
3865
|
}
|
|
3860
3866
|
};
|
|
3861
3867
|
}
|
|
3862
|
-
function
|
|
3868
|
+
function Qi(e) {
|
|
3863
3869
|
return e === void 0 && (e = {
|
|
3864
3870
|
number: {},
|
|
3865
3871
|
dateTime: {},
|
|
3866
3872
|
pluralRules: {}
|
|
3867
3873
|
}), {
|
|
3868
|
-
getNumberFormat:
|
|
3874
|
+
getNumberFormat: Ye(function() {
|
|
3869
3875
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3870
3876
|
r[n] = arguments[n];
|
|
3871
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3877
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Qe([void 0], r, !1)))();
|
|
3872
3878
|
}, {
|
|
3873
|
-
cache:
|
|
3874
|
-
strategy:
|
|
3879
|
+
cache: et(e.number),
|
|
3880
|
+
strategy: Je.variadic
|
|
3875
3881
|
}),
|
|
3876
|
-
getDateTimeFormat:
|
|
3882
|
+
getDateTimeFormat: Ye(function() {
|
|
3877
3883
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3878
3884
|
r[n] = arguments[n];
|
|
3879
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3885
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Qe([void 0], r, !1)))();
|
|
3880
3886
|
}, {
|
|
3881
|
-
cache:
|
|
3882
|
-
strategy:
|
|
3887
|
+
cache: et(e.dateTime),
|
|
3888
|
+
strategy: Je.variadic
|
|
3883
3889
|
}),
|
|
3884
|
-
getPluralRules:
|
|
3890
|
+
getPluralRules: Ye(function() {
|
|
3885
3891
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3886
3892
|
r[n] = arguments[n];
|
|
3887
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3893
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Qe([void 0], r, !1)))();
|
|
3888
3894
|
}, {
|
|
3889
|
-
cache:
|
|
3890
|
-
strategy:
|
|
3895
|
+
cache: et(e.pluralRules),
|
|
3896
|
+
strategy: Je.variadic
|
|
3891
3897
|
})
|
|
3892
3898
|
};
|
|
3893
3899
|
}
|
|
3894
|
-
var
|
|
3900
|
+
var Yi = (
|
|
3895
3901
|
/** @class */
|
|
3896
3902
|
function() {
|
|
3897
3903
|
function e(t, r, n, i) {
|
|
@@ -3905,12 +3911,12 @@ var Ui = (
|
|
|
3905
3911
|
var u = s.formatToParts(h);
|
|
3906
3912
|
if (u.length === 1)
|
|
3907
3913
|
return u[0].value;
|
|
3908
|
-
var l = u.reduce(function(m,
|
|
3909
|
-
return !m.length ||
|
|
3914
|
+
var l = u.reduce(function(m, f) {
|
|
3915
|
+
return !m.length || f.type !== O.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
|
|
3910
3916
|
}, []);
|
|
3911
3917
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3912
3918
|
}, this.formatToParts = function(h) {
|
|
3913
|
-
return
|
|
3919
|
+
return Ce(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3914
3920
|
}, this.resolvedOptions = function() {
|
|
3915
3921
|
var h;
|
|
3916
3922
|
return {
|
|
@@ -3923,13 +3929,13 @@ var Ui = (
|
|
|
3923
3929
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3924
3930
|
var o = i || {};
|
|
3925
3931
|
o.formatters;
|
|
3926
|
-
var a =
|
|
3927
|
-
this.ast = e.__parse(t,
|
|
3932
|
+
var a = oi(o, ["formatters"]);
|
|
3933
|
+
this.ast = e.__parse(t, D(D({}, a), { locale: this.resolvedLocale }));
|
|
3928
3934
|
} else
|
|
3929
3935
|
this.ast = t;
|
|
3930
3936
|
if (!Array.isArray(this.ast))
|
|
3931
3937
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3932
|
-
this.formats =
|
|
3938
|
+
this.formats = qi(e.formats, n), this.formatters = i && i.formatters || Qi(this.formatterCache);
|
|
3933
3939
|
}
|
|
3934
3940
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3935
3941
|
get: function() {
|
|
@@ -3942,7 +3948,7 @@ var Ui = (
|
|
|
3942
3948
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3943
3949
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3944
3950
|
}
|
|
3945
|
-
}, e.__parse =
|
|
3951
|
+
}, e.__parse = ki, e.formats = {
|
|
3946
3952
|
number: {
|
|
3947
3953
|
integer: {
|
|
3948
3954
|
maximumFractionDigits: 0
|
|
@@ -4003,7 +4009,7 @@ var Ui = (
|
|
|
4003
4009
|
}, e;
|
|
4004
4010
|
}()
|
|
4005
4011
|
);
|
|
4006
|
-
function
|
|
4012
|
+
function Ji(e, t) {
|
|
4007
4013
|
if (t == null)
|
|
4008
4014
|
return;
|
|
4009
4015
|
if (t in e)
|
|
@@ -4024,92 +4030,92 @@ function Di(e, t) {
|
|
|
4024
4030
|
n = void 0;
|
|
4025
4031
|
return n;
|
|
4026
4032
|
}
|
|
4027
|
-
const
|
|
4033
|
+
const k = {}, Ki = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Mr = (e, t) => {
|
|
4028
4034
|
if (t == null)
|
|
4029
4035
|
return;
|
|
4030
|
-
if (t in
|
|
4031
|
-
return
|
|
4032
|
-
const r =
|
|
4036
|
+
if (t in k && e in k[t])
|
|
4037
|
+
return k[t][e];
|
|
4038
|
+
const r = je(t);
|
|
4033
4039
|
for (let n = 0; n < r.length; n++) {
|
|
4034
|
-
const i = r[n], s =
|
|
4040
|
+
const i = r[n], s = ts(i, e);
|
|
4035
4041
|
if (s)
|
|
4036
|
-
return
|
|
4042
|
+
return Ki(e, t, s);
|
|
4037
4043
|
}
|
|
4038
4044
|
};
|
|
4039
|
-
let
|
|
4040
|
-
const
|
|
4041
|
-
function
|
|
4042
|
-
return
|
|
4045
|
+
let xt;
|
|
4046
|
+
const we = De({});
|
|
4047
|
+
function es(e) {
|
|
4048
|
+
return xt[e] || null;
|
|
4043
4049
|
}
|
|
4044
|
-
function
|
|
4045
|
-
return e in
|
|
4050
|
+
function Rr(e) {
|
|
4051
|
+
return e in xt;
|
|
4046
4052
|
}
|
|
4047
|
-
function
|
|
4048
|
-
if (!
|
|
4053
|
+
function ts(e, t) {
|
|
4054
|
+
if (!Rr(e))
|
|
4049
4055
|
return null;
|
|
4050
|
-
const r =
|
|
4051
|
-
return
|
|
4056
|
+
const r = es(e);
|
|
4057
|
+
return Ji(r, t);
|
|
4052
4058
|
}
|
|
4053
|
-
function
|
|
4059
|
+
function rs(e) {
|
|
4054
4060
|
if (e == null)
|
|
4055
4061
|
return;
|
|
4056
|
-
const t =
|
|
4062
|
+
const t = je(e);
|
|
4057
4063
|
for (let r = 0; r < t.length; r++) {
|
|
4058
4064
|
const n = t[r];
|
|
4059
|
-
if (
|
|
4065
|
+
if (Rr(n))
|
|
4060
4066
|
return n;
|
|
4061
4067
|
}
|
|
4062
4068
|
}
|
|
4063
|
-
function
|
|
4064
|
-
delete
|
|
4069
|
+
function Gr(e, ...t) {
|
|
4070
|
+
delete k[e], we.update((r) => (r[e] = si.all([r[e] || {}, ...t]), r));
|
|
4065
4071
|
}
|
|
4066
|
-
|
|
4067
|
-
[
|
|
4072
|
+
de(
|
|
4073
|
+
[we],
|
|
4068
4074
|
([e]) => Object.keys(e)
|
|
4069
4075
|
);
|
|
4070
|
-
|
|
4071
|
-
const
|
|
4072
|
-
function
|
|
4073
|
-
|
|
4076
|
+
we.subscribe((e) => xt = e);
|
|
4077
|
+
const Ie = {};
|
|
4078
|
+
function ns(e, t) {
|
|
4079
|
+
Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
|
|
4074
4080
|
}
|
|
4075
|
-
function
|
|
4076
|
-
return
|
|
4081
|
+
function Ur(e) {
|
|
4082
|
+
return Ie[e];
|
|
4077
4083
|
}
|
|
4078
|
-
function
|
|
4079
|
-
return
|
|
4080
|
-
const r =
|
|
4084
|
+
function is(e) {
|
|
4085
|
+
return je(e).map((t) => {
|
|
4086
|
+
const r = Ur(t);
|
|
4081
4087
|
return [t, r ? [...r] : []];
|
|
4082
4088
|
}).filter(([, t]) => t.length > 0);
|
|
4083
4089
|
}
|
|
4084
|
-
function
|
|
4085
|
-
return e == null ? !1 :
|
|
4090
|
+
function gt(e) {
|
|
4091
|
+
return e == null ? !1 : je(e).some(
|
|
4086
4092
|
(t) => {
|
|
4087
4093
|
var r;
|
|
4088
|
-
return (r =
|
|
4094
|
+
return (r = Ur(t)) == null ? void 0 : r.size;
|
|
4089
4095
|
}
|
|
4090
4096
|
);
|
|
4091
4097
|
}
|
|
4092
|
-
function
|
|
4098
|
+
function ss(e, t) {
|
|
4093
4099
|
return Promise.all(
|
|
4094
|
-
t.map((n) => (
|
|
4095
|
-
).then((n) =>
|
|
4096
|
-
}
|
|
4097
|
-
const
|
|
4098
|
-
function
|
|
4099
|
-
if (!
|
|
4100
|
-
return e in
|
|
4101
|
-
const t =
|
|
4102
|
-
return
|
|
4100
|
+
t.map((n) => (ns(e, n), n().then((i) => i.default || i)))
|
|
4101
|
+
).then((n) => Gr(e, ...n));
|
|
4102
|
+
}
|
|
4103
|
+
const ye = {};
|
|
4104
|
+
function Dr(e) {
|
|
4105
|
+
if (!gt(e))
|
|
4106
|
+
return e in ye ? ye[e] : Promise.resolve();
|
|
4107
|
+
const t = is(e);
|
|
4108
|
+
return ye[e] = Promise.all(
|
|
4103
4109
|
t.map(
|
|
4104
|
-
([r, n]) =>
|
|
4110
|
+
([r, n]) => ss(r, n)
|
|
4105
4111
|
)
|
|
4106
4112
|
).then(() => {
|
|
4107
|
-
if (
|
|
4108
|
-
return
|
|
4109
|
-
delete
|
|
4110
|
-
}),
|
|
4113
|
+
if (gt(e))
|
|
4114
|
+
return Dr(e);
|
|
4115
|
+
delete ye[e];
|
|
4116
|
+
}), ye[e];
|
|
4111
4117
|
}
|
|
4112
|
-
const
|
|
4118
|
+
const os = {
|
|
4113
4119
|
number: {
|
|
4114
4120
|
scientific: { notation: "scientific" },
|
|
4115
4121
|
engineering: { notation: "engineering" },
|
|
@@ -4138,150 +4144,150 @@ const zi = {
|
|
|
4138
4144
|
timeZoneName: "short"
|
|
4139
4145
|
}
|
|
4140
4146
|
}
|
|
4141
|
-
},
|
|
4147
|
+
}, as = {
|
|
4142
4148
|
fallbackLocale: null,
|
|
4143
4149
|
loadingDelay: 200,
|
|
4144
|
-
formats:
|
|
4150
|
+
formats: os,
|
|
4145
4151
|
warnOnMissingMessages: !0,
|
|
4146
4152
|
handleMissingMessage: void 0,
|
|
4147
4153
|
ignoreTag: !0
|
|
4148
|
-
},
|
|
4149
|
-
function
|
|
4150
|
-
return
|
|
4154
|
+
}, us = as;
|
|
4155
|
+
function le() {
|
|
4156
|
+
return us;
|
|
4151
4157
|
}
|
|
4152
|
-
const
|
|
4153
|
-
var
|
|
4158
|
+
const tt = De(!1);
|
|
4159
|
+
var hs = Object.defineProperty, ls = Object.defineProperties, cs = Object.getOwnPropertyDescriptors, Kt = Object.getOwnPropertySymbols, fs = Object.prototype.hasOwnProperty, ms = Object.prototype.propertyIsEnumerable, er = (e, t, r) => t in e ? hs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ds = (e, t) => {
|
|
4154
4160
|
for (var r in t || (t = {}))
|
|
4155
|
-
|
|
4156
|
-
if (
|
|
4157
|
-
for (var r of
|
|
4158
|
-
|
|
4161
|
+
fs.call(t, r) && er(e, r, t[r]);
|
|
4162
|
+
if (Kt)
|
|
4163
|
+
for (var r of Kt(t))
|
|
4164
|
+
ms.call(t, r) && er(e, r, t[r]);
|
|
4159
4165
|
return e;
|
|
4160
|
-
},
|
|
4161
|
-
let
|
|
4162
|
-
const
|
|
4163
|
-
function
|
|
4166
|
+
}, bs = (e, t) => ls(e, cs(t));
|
|
4167
|
+
let vt;
|
|
4168
|
+
const Re = De(null);
|
|
4169
|
+
function tr(e) {
|
|
4164
4170
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4165
4171
|
}
|
|
4166
|
-
function
|
|
4167
|
-
const r =
|
|
4168
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4172
|
+
function je(e, t = le().fallbackLocale) {
|
|
4173
|
+
const r = tr(e);
|
|
4174
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...tr(t)])] : r;
|
|
4169
4175
|
}
|
|
4170
|
-
function
|
|
4171
|
-
return
|
|
4176
|
+
function J() {
|
|
4177
|
+
return vt != null ? vt : void 0;
|
|
4172
4178
|
}
|
|
4173
|
-
|
|
4174
|
-
|
|
4179
|
+
Re.subscribe((e) => {
|
|
4180
|
+
vt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4175
4181
|
});
|
|
4176
|
-
const
|
|
4177
|
-
if (e &&
|
|
4178
|
-
const { loadingDelay: t } =
|
|
4182
|
+
const ps = (e) => {
|
|
4183
|
+
if (e && rs(e) && gt(e)) {
|
|
4184
|
+
const { loadingDelay: t } = le();
|
|
4179
4185
|
let r;
|
|
4180
|
-
return typeof window != "undefined" &&
|
|
4181
|
-
() =>
|
|
4186
|
+
return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
|
|
4187
|
+
() => tt.set(!0),
|
|
4182
4188
|
t
|
|
4183
|
-
) :
|
|
4184
|
-
|
|
4189
|
+
) : tt.set(!0), Dr(e).then(() => {
|
|
4190
|
+
Re.set(e);
|
|
4185
4191
|
}).finally(() => {
|
|
4186
|
-
clearTimeout(r),
|
|
4192
|
+
clearTimeout(r), tt.set(!1);
|
|
4187
4193
|
});
|
|
4188
4194
|
}
|
|
4189
|
-
return
|
|
4190
|
-
},
|
|
4191
|
-
set:
|
|
4192
|
-
}),
|
|
4195
|
+
return Re.set(e);
|
|
4196
|
+
}, Te = bs(ds({}, Re), {
|
|
4197
|
+
set: ps
|
|
4198
|
+
}), ke = (e) => {
|
|
4193
4199
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4194
4200
|
return (n) => {
|
|
4195
4201
|
const i = JSON.stringify(n);
|
|
4196
4202
|
return i in t ? t[i] : t[i] = e(n);
|
|
4197
4203
|
};
|
|
4198
4204
|
};
|
|
4199
|
-
var
|
|
4205
|
+
var ys = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Fr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable, rr = (e, t, r) => t in e ? ys(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, St = (e, t) => {
|
|
4200
4206
|
for (var r in t || (t = {}))
|
|
4201
|
-
|
|
4202
|
-
if (
|
|
4203
|
-
for (var r of
|
|
4204
|
-
|
|
4207
|
+
Fr.call(t, r) && rr(e, r, t[r]);
|
|
4208
|
+
if (Ge)
|
|
4209
|
+
for (var r of Ge(t))
|
|
4210
|
+
$r.call(t, r) && rr(e, r, t[r]);
|
|
4205
4211
|
return e;
|
|
4206
|
-
},
|
|
4212
|
+
}, be = (e, t) => {
|
|
4207
4213
|
var r = {};
|
|
4208
4214
|
for (var n in e)
|
|
4209
|
-
|
|
4210
|
-
if (e != null &&
|
|
4211
|
-
for (var n of
|
|
4212
|
-
t.indexOf(n) < 0 &&
|
|
4215
|
+
Fr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4216
|
+
if (e != null && Ge)
|
|
4217
|
+
for (var n of Ge(e))
|
|
4218
|
+
t.indexOf(n) < 0 && $r.call(e, n) && (r[n] = e[n]);
|
|
4213
4219
|
return r;
|
|
4214
4220
|
};
|
|
4215
|
-
const
|
|
4216
|
-
const { formats: r } =
|
|
4221
|
+
const Ee = (e, t) => {
|
|
4222
|
+
const { formats: r } = le();
|
|
4217
4223
|
if (e in r && t in r[e])
|
|
4218
4224
|
return r[e][t];
|
|
4219
4225
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4220
|
-
},
|
|
4226
|
+
}, gs = ke(
|
|
4221
4227
|
(e) => {
|
|
4222
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4228
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4223
4229
|
if (r == null)
|
|
4224
4230
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4225
|
-
return n && (i =
|
|
4231
|
+
return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4226
4232
|
}
|
|
4227
|
-
),
|
|
4233
|
+
), vs = ke(
|
|
4228
4234
|
(e) => {
|
|
4229
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4235
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4230
4236
|
if (r == null)
|
|
4231
4237
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4232
|
-
return n ? i =
|
|
4238
|
+
return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4233
4239
|
}
|
|
4234
|
-
),
|
|
4240
|
+
), _s = ke(
|
|
4235
4241
|
(e) => {
|
|
4236
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4242
|
+
var t = e, { locale: r, format: n } = t, i = be(t, ["locale", "format"]);
|
|
4237
4243
|
if (r == null)
|
|
4238
4244
|
throw new Error(
|
|
4239
4245
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4240
4246
|
);
|
|
4241
|
-
return n ? i =
|
|
4247
|
+
return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4242
4248
|
}
|
|
4243
|
-
),
|
|
4249
|
+
), Es = (e = {}) => {
|
|
4244
4250
|
var t = e, {
|
|
4245
|
-
locale: r =
|
|
4246
|
-
} = t, n =
|
|
4251
|
+
locale: r = J()
|
|
4252
|
+
} = t, n = be(t, [
|
|
4247
4253
|
"locale"
|
|
4248
4254
|
]);
|
|
4249
|
-
return
|
|
4250
|
-
},
|
|
4255
|
+
return gs(St({ locale: r }, n));
|
|
4256
|
+
}, xs = (e = {}) => {
|
|
4251
4257
|
var t = e, {
|
|
4252
|
-
locale: r =
|
|
4253
|
-
} = t, n =
|
|
4258
|
+
locale: r = J()
|
|
4259
|
+
} = t, n = be(t, [
|
|
4254
4260
|
"locale"
|
|
4255
4261
|
]);
|
|
4256
|
-
return
|
|
4257
|
-
},
|
|
4262
|
+
return vs(St({ locale: r }, n));
|
|
4263
|
+
}, Ss = (e = {}) => {
|
|
4258
4264
|
var t = e, {
|
|
4259
|
-
locale: r =
|
|
4260
|
-
} = t, n =
|
|
4265
|
+
locale: r = J()
|
|
4266
|
+
} = t, n = be(t, [
|
|
4261
4267
|
"locale"
|
|
4262
4268
|
]);
|
|
4263
|
-
return
|
|
4264
|
-
},
|
|
4269
|
+
return _s(St({ locale: r }, n));
|
|
4270
|
+
}, ws = ke(
|
|
4265
4271
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4266
|
-
(e, t =
|
|
4267
|
-
ignoreTag:
|
|
4272
|
+
(e, t = J()) => new Yi(e, t, le().formats, {
|
|
4273
|
+
ignoreTag: le().ignoreTag
|
|
4268
4274
|
})
|
|
4269
|
-
),
|
|
4275
|
+
), Ts = (e, t = {}) => {
|
|
4270
4276
|
var r, n, i, s;
|
|
4271
4277
|
let o = t;
|
|
4272
4278
|
typeof e == "object" && (o = e, e = o.id);
|
|
4273
4279
|
const {
|
|
4274
4280
|
values: a,
|
|
4275
|
-
locale: h =
|
|
4281
|
+
locale: h = J(),
|
|
4276
4282
|
default: u
|
|
4277
4283
|
} = o;
|
|
4278
4284
|
if (h == null)
|
|
4279
4285
|
throw new Error(
|
|
4280
4286
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4281
4287
|
);
|
|
4282
|
-
let l =
|
|
4288
|
+
let l = Mr(e, h);
|
|
4283
4289
|
if (!l)
|
|
4284
|
-
l = (s = (i = (n = (r =
|
|
4290
|
+
l = (s = (i = (n = (r = le()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4285
4291
|
else if (typeof l != "string")
|
|
4286
4292
|
return console.warn(
|
|
4287
4293
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4290,26 +4296,26 @@ const me = (e, t) => {
|
|
|
4290
4296
|
return l;
|
|
4291
4297
|
let m = l;
|
|
4292
4298
|
try {
|
|
4293
|
-
m =
|
|
4294
|
-
} catch (
|
|
4295
|
-
|
|
4299
|
+
m = ws(l, h).format(a);
|
|
4300
|
+
} catch (f) {
|
|
4301
|
+
f instanceof Error && console.warn(
|
|
4296
4302
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4297
|
-
|
|
4303
|
+
f.message
|
|
4298
4304
|
);
|
|
4299
4305
|
}
|
|
4300
4306
|
return m;
|
|
4301
|
-
},
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
window.emWidgets = { topic:
|
|
4307
|
-
const
|
|
4307
|
+
}, Hs = (e, t) => Ss(t).format(e), As = (e, t) => xs(t).format(e), Bs = (e, t) => Es(t).format(e), Ps = (e, t = J()) => Mr(e, t), Os = de([Te, we], () => Ts);
|
|
4308
|
+
de([Te], () => Hs);
|
|
4309
|
+
de([Te], () => As);
|
|
4310
|
+
de([Te], () => Bs);
|
|
4311
|
+
de([Te, we], () => Ps);
|
|
4312
|
+
window.emWidgets = { topic: jn };
|
|
4313
|
+
const Ns = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4308
4314
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4309
|
-
function
|
|
4310
|
-
|
|
4315
|
+
function Ls(e, t) {
|
|
4316
|
+
Gr(e, t);
|
|
4311
4317
|
}
|
|
4312
|
-
const
|
|
4318
|
+
const Cs = {
|
|
4313
4319
|
en: {
|
|
4314
4320
|
lobbyName: "Lobby",
|
|
4315
4321
|
myGamesName: "My games"
|
|
@@ -4382,14 +4388,14 @@ const _s = {
|
|
|
4382
4388
|
lobbyName: "Lobby",
|
|
4383
4389
|
myGamesName: "My games"
|
|
4384
4390
|
}
|
|
4385
|
-
},
|
|
4386
|
-
function
|
|
4391
|
+
}, se = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4392
|
+
function Is(e, t) {
|
|
4387
4393
|
if (e) {
|
|
4388
4394
|
const r = document.createElement("style");
|
|
4389
4395
|
r.innerHTML = t, e.appendChild(r);
|
|
4390
4396
|
}
|
|
4391
4397
|
}
|
|
4392
|
-
function
|
|
4398
|
+
function Ms(e, t) {
|
|
4393
4399
|
if (!e || !t)
|
|
4394
4400
|
return;
|
|
4395
4401
|
const r = new URL(t);
|
|
@@ -4400,32 +4406,32 @@ function xs(e, t) {
|
|
|
4400
4406
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4401
4407
|
});
|
|
4402
4408
|
}
|
|
4403
|
-
function
|
|
4409
|
+
function Rs(e, t, r, n = !1) {
|
|
4404
4410
|
if (!window.emMessageBus)
|
|
4405
4411
|
return;
|
|
4406
4412
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
4407
|
-
return r =
|
|
4408
|
-
window[
|
|
4413
|
+
return r = Gs(e, t), r;
|
|
4414
|
+
window[se] || (window[se] = {}), r = Us(e, t);
|
|
4409
4415
|
const s = r.unsubscribe.bind(r), o = () => {
|
|
4410
|
-
if (window[
|
|
4411
|
-
const a = window[
|
|
4412
|
-
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[
|
|
4416
|
+
if (window[se][t]) {
|
|
4417
|
+
const a = window[se][t];
|
|
4418
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[se][t];
|
|
4413
4419
|
}
|
|
4414
4420
|
s();
|
|
4415
4421
|
};
|
|
4416
4422
|
return r.unsubscribe = o, r;
|
|
4417
4423
|
}
|
|
4418
|
-
function
|
|
4424
|
+
function Gs(e, t) {
|
|
4419
4425
|
const r = document.createElement("style");
|
|
4420
4426
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
4421
4427
|
e && (r.innerHTML = n, e.appendChild(r));
|
|
4422
4428
|
});
|
|
4423
4429
|
}
|
|
4424
|
-
function
|
|
4430
|
+
function Us(e, t) {
|
|
4425
4431
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
4426
4432
|
if (!e)
|
|
4427
4433
|
return;
|
|
4428
|
-
const n = e.getRootNode(), i = window[
|
|
4434
|
+
const n = e.getRootNode(), i = window[se];
|
|
4429
4435
|
let s = i[t] && i[t].sheet;
|
|
4430
4436
|
s ? i[t].refCount = i[t].refCount + 1 : (s = new CSSStyleSheet(), s.replaceSync(r), i[t] = {
|
|
4431
4437
|
sheet: s,
|
|
@@ -4447,21 +4453,21 @@ if (typeof window != "undefined") {
|
|
|
4447
4453
|
}
|
|
4448
4454
|
};
|
|
4449
4455
|
};
|
|
4450
|
-
customElements.define = e(customElements.define), import("./CasinoSliderNd-
|
|
4456
|
+
customElements.define = e(customElements.define), import("./CasinoSliderNd-BacEGmij.js").then(({ default: t }) => {
|
|
4451
4457
|
!customElements.get("casino-slider-nd") && customElements.define("casino-slider-nd", t.element);
|
|
4452
4458
|
});
|
|
4453
4459
|
}
|
|
4454
|
-
function
|
|
4460
|
+
function Ds(e, t, r) {
|
|
4455
4461
|
return window.emMessageBus && (t = window.emMessageBus.subscribe(e, r)), t;
|
|
4456
4462
|
}
|
|
4457
|
-
function
|
|
4458
|
-
|
|
4463
|
+
function Fs(e) {
|
|
4464
|
+
cn(e, "svelte-ciaihq", ".svelte-ciaihq{font-family:inherit}.CasinoCategoriesLoading.svelte-ciaihq{height:52px}p.svelte-ciaihq{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-ciaihq{background:transparent;border-radius:var(--emw--border-radius-medium, 10px);padding-top:20px}");
|
|
4459
4465
|
}
|
|
4460
|
-
function
|
|
4466
|
+
function $s(e) {
|
|
4461
4467
|
let t, r;
|
|
4462
4468
|
return {
|
|
4463
4469
|
c() {
|
|
4464
|
-
t =
|
|
4470
|
+
t = Y("div"), r = Y("casino-slider-nd"), v(
|
|
4465
4471
|
r,
|
|
4466
4472
|
"lang",
|
|
4467
4473
|
/*lang*/
|
|
@@ -4476,7 +4482,7 @@ function Bs(e) {
|
|
|
4476
4482
|
"endpoint",
|
|
4477
4483
|
/*endpoint*/
|
|
4478
4484
|
e[1]
|
|
4479
|
-
), v(r, "identity",
|
|
4485
|
+
), v(r, "identity", _t), v(
|
|
4480
4486
|
r,
|
|
4481
4487
|
"favoritesnumber",
|
|
4482
4488
|
/*numberOfFavoredGames*/
|
|
@@ -4496,6 +4502,11 @@ function Bs(e) {
|
|
|
4496
4502
|
"clientstylingurl",
|
|
4497
4503
|
/*clientstylingurl*/
|
|
4498
4504
|
e[6]
|
|
4505
|
+
), v(
|
|
4506
|
+
r,
|
|
4507
|
+
"initialactivecategory",
|
|
4508
|
+
/*initialactivecategory*/
|
|
4509
|
+
e[17]
|
|
4499
4510
|
), v(
|
|
4500
4511
|
r,
|
|
4501
4512
|
"activeindex",
|
|
@@ -4531,10 +4542,10 @@ function Bs(e) {
|
|
|
4531
4542
|
"mbsource",
|
|
4532
4543
|
/*mbsource*/
|
|
4533
4544
|
e[4]
|
|
4534
|
-
), v(r, "class", "svelte-ciaihq"),
|
|
4545
|
+
), v(r, "class", "svelte-ciaihq"), me(t, "class", "CasinoCategoriesContainer svelte-ciaihq");
|
|
4535
4546
|
},
|
|
4536
4547
|
m(n, i) {
|
|
4537
|
-
|
|
4548
|
+
xe(n, t, i), or(t, r);
|
|
4538
4549
|
},
|
|
4539
4550
|
p(n, i) {
|
|
4540
4551
|
i[0] & /*lang*/
|
|
@@ -4624,222 +4635,259 @@ function Bs(e) {
|
|
|
4624
4635
|
);
|
|
4625
4636
|
},
|
|
4626
4637
|
d(n) {
|
|
4627
|
-
n &&
|
|
4638
|
+
n && fe(t);
|
|
4628
4639
|
}
|
|
4629
4640
|
};
|
|
4630
4641
|
}
|
|
4631
|
-
function
|
|
4642
|
+
function js(e) {
|
|
4632
4643
|
let t;
|
|
4633
4644
|
return {
|
|
4634
4645
|
c() {
|
|
4635
|
-
t =
|
|
4646
|
+
t = Y("p"), t.textContent = "500 Error - Internal Server Error.", me(t, "class", "SearchLoading svelte-ciaihq");
|
|
4636
4647
|
},
|
|
4637
4648
|
m(r, n) {
|
|
4638
|
-
|
|
4649
|
+
xe(r, t, n);
|
|
4639
4650
|
},
|
|
4640
|
-
p:
|
|
4651
|
+
p: M,
|
|
4641
4652
|
d(r) {
|
|
4642
|
-
r &&
|
|
4653
|
+
r && fe(t);
|
|
4643
4654
|
}
|
|
4644
4655
|
};
|
|
4645
4656
|
}
|
|
4646
|
-
function
|
|
4657
|
+
function ks(e) {
|
|
4647
4658
|
let t;
|
|
4648
4659
|
return {
|
|
4649
4660
|
c() {
|
|
4650
|
-
t =
|
|
4661
|
+
t = Y("div"), me(t, "class", "CasinoCategoriesLoading svelte-ciaihq");
|
|
4651
4662
|
},
|
|
4652
4663
|
m(r, n) {
|
|
4653
|
-
|
|
4664
|
+
xe(r, t, n);
|
|
4654
4665
|
},
|
|
4655
|
-
p:
|
|
4666
|
+
p: M,
|
|
4656
4667
|
d(r) {
|
|
4657
|
-
r &&
|
|
4668
|
+
r && fe(t);
|
|
4658
4669
|
}
|
|
4659
4670
|
};
|
|
4660
4671
|
}
|
|
4661
|
-
function
|
|
4672
|
+
function Vs(e) {
|
|
4662
4673
|
let t;
|
|
4663
4674
|
function r(s, o) {
|
|
4664
4675
|
return (
|
|
4665
4676
|
/*isLoading*/
|
|
4666
|
-
s[13] ||
|
|
4677
|
+
s[13] || Xs || Ws ? ks : (
|
|
4667
4678
|
/*hasErrors*/
|
|
4668
|
-
s[15] ?
|
|
4679
|
+
s[15] ? js : $s
|
|
4669
4680
|
)
|
|
4670
4681
|
);
|
|
4671
4682
|
}
|
|
4672
4683
|
let n = r(e), i = n(e);
|
|
4673
4684
|
return {
|
|
4674
4685
|
c() {
|
|
4675
|
-
t =
|
|
4686
|
+
t = Y("div"), i.c(), me(t, "class", "svelte-ciaihq");
|
|
4676
4687
|
},
|
|
4677
4688
|
m(s, o) {
|
|
4678
|
-
|
|
4689
|
+
xe(s, t, o), i.m(t, null), e[28](t);
|
|
4679
4690
|
},
|
|
4680
4691
|
p(s, o) {
|
|
4681
4692
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4682
4693
|
},
|
|
4683
|
-
i:
|
|
4684
|
-
o:
|
|
4694
|
+
i: M,
|
|
4695
|
+
o: M,
|
|
4685
4696
|
d(s) {
|
|
4686
|
-
s &&
|
|
4697
|
+
s && fe(t), i.d(), e[28](null);
|
|
4687
4698
|
}
|
|
4688
4699
|
};
|
|
4689
4700
|
}
|
|
4690
|
-
let
|
|
4691
|
-
function
|
|
4701
|
+
let _t = "CasinoSliderData", Xs = !1, Ws = !1;
|
|
4702
|
+
function zs(e, t, r) {
|
|
4692
4703
|
let n;
|
|
4693
|
-
|
|
4694
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { mbsource:
|
|
4695
|
-
const
|
|
4696
|
-
Object.keys(
|
|
4697
|
-
|
|
4704
|
+
ln(e, Os, (c) => r(34, n = c));
|
|
4705
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { mbsource: f } = t, { clientstyling: d = "" } = t, { clientstylingurl: p = "" } = t, { activecategory: b = "" } = t, { actionevent: H = "" } = t, { sessioncheck: R = "" } = t, { location: L = "secondaryMenu" } = t, { showsubgroups: A = "false" } = t, { filteredcategories: C = "" } = t, { translationurl: B = "" } = t, { categoriesicon: U = "" } = t, { lobbyiconimage: E = "" } = t, { mygamesiconimage: I = "" } = t, { customizecategoryicon: N = "false" } = t, V, wt, X = !0, K, ee = [], W = !1, kr = window.navigator.userAgent, F, Vr, Xr, Tt, Ht = !1, Ve = !1, Wr = b;
|
|
4706
|
+
const Xe = (c) => {
|
|
4707
|
+
Object.keys(c).forEach((T) => {
|
|
4708
|
+
Ls(T, c[T]);
|
|
4698
4709
|
});
|
|
4699
|
-
},
|
|
4700
|
-
fetch(
|
|
4701
|
-
|
|
4702
|
-
}).catch((
|
|
4703
|
-
console.log(
|
|
4710
|
+
}, zr = () => {
|
|
4711
|
+
fetch(B).then((T) => T.json()).then((T) => {
|
|
4712
|
+
Xe(T);
|
|
4713
|
+
}).catch((T) => {
|
|
4714
|
+
console.log(T);
|
|
4704
4715
|
});
|
|
4705
4716
|
};
|
|
4706
|
-
|
|
4707
|
-
const
|
|
4708
|
-
|
|
4717
|
+
Xe(Cs);
|
|
4718
|
+
const Zr = () => {
|
|
4719
|
+
Ht == !1 && (m == "true" || u == "true" || l == "true") && ee.splice(1, 0, {
|
|
4709
4720
|
// @ts-ignore
|
|
4710
4721
|
id: "MYGAMES",
|
|
4711
|
-
name:
|
|
4722
|
+
name: V,
|
|
4712
4723
|
href: "",
|
|
4713
4724
|
games: []
|
|
4714
|
-
}),
|
|
4715
|
-
},
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4725
|
+
}), gn(), Ht = !0, r(27, Ve = !0), We();
|
|
4726
|
+
}, qr = () => (i || (K = "Endpoint is missing! Please provide a valid endpointURL.", r(15, W = !0), r(13, X = !1), console.error(K)), s || (K = "Datasource is missing! Please provide a valid datasource.", r(15, W = !0), r(13, X = !1), console.error(K)), (!o || o.length < 2) && (K = "Language is missing! Please provide a valid language (alpha2code)", r(15, W = !0), r(13, X = !1), console.error(K)), W), Qr = (c) => {
|
|
4727
|
+
var T;
|
|
4728
|
+
return ((T = c == null ? void 0 : c.gamesTotal) != null ? T : 0) > 0;
|
|
4729
|
+
}, Yr = (c) => {
|
|
4730
|
+
var T;
|
|
4731
|
+
return Array.isArray((T = c == null ? void 0 : c.subGroups) == null ? void 0 : T.items) && c.subGroups.items.some((P) => {
|
|
4732
|
+
var z;
|
|
4733
|
+
return ((z = P == null ? void 0 : P.gamesTotal) != null ? z : 0) > 0;
|
|
4734
|
+
});
|
|
4735
|
+
}, Jr = (c) => Qr(c) || Yr(c), Kr = (c) => {
|
|
4736
|
+
var z, He;
|
|
4737
|
+
const T = (He = (z = c == null ? void 0 : c.subGroups) == null ? void 0 : z.items) != null ? He : null;
|
|
4738
|
+
if (!Array.isArray(T))
|
|
4739
|
+
return c;
|
|
4740
|
+
const P = T.filter((pe) => {
|
|
4741
|
+
var j;
|
|
4742
|
+
return ((j = pe == null ? void 0 : pe.gamesTotal) != null ? j : 0) > 0;
|
|
4743
|
+
});
|
|
4744
|
+
return P.length === T.length ? c : Q(q({}, c), {
|
|
4745
|
+
subGroups: Q(q({}, c.subGroups), {
|
|
4746
|
+
items: P,
|
|
4747
|
+
count: P.length,
|
|
4748
|
+
total: P.length
|
|
4749
|
+
})
|
|
4750
|
+
});
|
|
4751
|
+
}, en = () => {
|
|
4752
|
+
if (V = n("myGamesName"), wt = n("lobbyName"), !qr()) {
|
|
4753
|
+
let c = new URL(`${i}/v2/casino/groups/${s}`);
|
|
4754
|
+
c.searchParams.append("language", o), c.searchParams.append("platform", Ns(kr));
|
|
4755
|
+
let T = "id,name,games(href),flags";
|
|
4756
|
+
N === "true" && (T += ",icon"), c.searchParams.append("fields", T), fetch(c).then((P) => P.json()).then(
|
|
4757
|
+
(P) => {
|
|
4758
|
+
const z = new Set(C ? C.split(",").map((_) => _.trim()).filter(Boolean) : []), He = (_) => _ ? Array.isArray(_) ? _ : [_] : [], pe = (_) => !He(_.flags).some((Ae) => z.has(Ae));
|
|
4759
|
+
let j = P.items.filter(pe).map((_) => {
|
|
4760
|
+
var te, Ae, Bt, Pt;
|
|
4761
|
+
return Q(q({}, _), {
|
|
4762
|
+
gamesTotal: (Bt = (Ae = (te = _ == null ? void 0 : _.games) == null ? void 0 : te.total) != null ? Ae : _ == null ? void 0 : _.gamesTotal) != null ? Bt : 0,
|
|
4763
|
+
subGroups: _ != null && _.subGroups ? Q(q({}, _.subGroups), {
|
|
4764
|
+
items: ((Pt = _.subGroups.items) != null ? Pt : []).map((Z) => {
|
|
4765
|
+
var Ot, Nt, Lt;
|
|
4766
|
+
return Q(q({}, Z), {
|
|
4767
|
+
gamesTotal: (Lt = (Nt = (Ot = Z == null ? void 0 : Z.games) == null ? void 0 : Ot.total) != null ? Nt : Z == null ? void 0 : Z.gamesTotal) != null ? Lt : 0
|
|
4768
|
+
});
|
|
4769
|
+
})
|
|
4770
|
+
}) : void 0
|
|
4771
|
+
});
|
|
4728
4772
|
});
|
|
4729
|
-
|
|
4773
|
+
A === "true" ? j = j.map(Kr).filter(Jr) : j = j.filter((_) => {
|
|
4774
|
+
var te;
|
|
4775
|
+
return ((te = _ == null ? void 0 : _.gamesTotal) != null ? te : 0) > 0;
|
|
4776
|
+
}), ee = [], ee = ee.concat(j), ee.unshift({
|
|
4730
4777
|
// @ts-ignore
|
|
4731
4778
|
id: "LOBBY",
|
|
4732
|
-
name:
|
|
4779
|
+
name: wt,
|
|
4733
4780
|
href: "",
|
|
4734
4781
|
games: []
|
|
4735
|
-
}), r(13,
|
|
4782
|
+
}), We(), r(13, X = !1);
|
|
4736
4783
|
},
|
|
4737
|
-
(
|
|
4738
|
-
r(15,
|
|
4784
|
+
(P) => {
|
|
4785
|
+
r(15, W = !0), console.error("There was an error while fetching the categories", P);
|
|
4739
4786
|
}
|
|
4740
|
-
).catch((
|
|
4741
|
-
r(15,
|
|
4787
|
+
).catch((P) => {
|
|
4788
|
+
r(15, W = !0), console.error("There was an error while fetching the categories", P);
|
|
4742
4789
|
});
|
|
4743
4790
|
}
|
|
4744
|
-
},
|
|
4745
|
-
let
|
|
4746
|
-
r(0, b =
|
|
4747
|
-
},
|
|
4791
|
+
}, tn = () => {
|
|
4792
|
+
let c = b.split("$");
|
|
4793
|
+
r(0, b = c.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
|
4794
|
+
}, We = () => {
|
|
4748
4795
|
window.postMessage(
|
|
4749
4796
|
{
|
|
4750
4797
|
type: "SliderData",
|
|
4751
|
-
identity:
|
|
4752
|
-
data:
|
|
4798
|
+
identity: _t,
|
|
4799
|
+
data: ee
|
|
4753
4800
|
},
|
|
4754
4801
|
window.location.href
|
|
4755
4802
|
);
|
|
4756
|
-
},
|
|
4757
|
-
|
|
4803
|
+
}, At = (c) => {
|
|
4804
|
+
c.data && c.data.type == "SliderMounted" && c.data.identity == _t && We();
|
|
4758
4805
|
};
|
|
4759
|
-
|
|
4760
|
-
window.removeEventListener("message",
|
|
4806
|
+
yn(() => (window.addEventListener("message", At), () => {
|
|
4807
|
+
window.removeEventListener("message", At);
|
|
4761
4808
|
}));
|
|
4762
|
-
function
|
|
4763
|
-
|
|
4764
|
-
|
|
4809
|
+
function rn(c) {
|
|
4810
|
+
rt[c ? "unshift" : "push"](() => {
|
|
4811
|
+
F = c, r(14, F);
|
|
4765
4812
|
});
|
|
4766
4813
|
}
|
|
4767
|
-
return e.$$set = (
|
|
4768
|
-
"endpoint" in
|
|
4814
|
+
return e.$$set = (c) => {
|
|
4815
|
+
"endpoint" in c && r(1, i = c.endpoint), "datasource" in c && r(2, s = c.datasource), "lang" in c && r(3, o = c.lang), "userid" in c && r(18, a = c.userid), "session" in c && r(19, h = c.session), "mostplayed" in c && r(20, u = c.mostplayed), "lastplayed" in c && r(21, l = c.lastplayed), "favorites" in c && r(22, m = c.favorites), "mbsource" in c && r(4, f = c.mbsource), "clientstyling" in c && r(5, d = c.clientstyling), "clientstylingurl" in c && r(6, p = c.clientstylingurl), "activecategory" in c && r(0, b = c.activecategory), "actionevent" in c && r(7, H = c.actionevent), "sessioncheck" in c && r(23, R = c.sessioncheck), "location" in c && r(8, L = c.location), "showsubgroups" in c && r(9, A = c.showsubgroups), "filteredcategories" in c && r(24, C = c.filteredcategories), "translationurl" in c && r(25, B = c.translationurl), "categoriesicon" in c && r(10, U = c.categoriesicon), "lobbyiconimage" in c && r(11, E = c.lobbyiconimage), "mygamesiconimage" in c && r(12, I = c.mygamesiconimage), "customizecategoryicon" in c && r(26, N = c.customizecategoryicon);
|
|
4769
4816
|
}, e.$$.update = () => {
|
|
4770
4817
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
4771
|
-
14 && i && s && o &&
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
16416 && d &&
|
|
4776
|
-
16448 && p &&
|
|
4777
|
-
16400 &&
|
|
4778
|
-
|
|
4779
|
-
}, r(16,
|
|
4818
|
+
14 && i && s && o && en(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
4819
|
+
7872514 && i && h && (u || l || m) && !X && Zr(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
4820
|
+
134750209 && !X && b && (!h || Ve) && tn(), e.$$.dirty[0] & /*translationurl*/
|
|
4821
|
+
33554432 && B && zr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4822
|
+
16416 && d && F && Is(F, d), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4823
|
+
16448 && p && F && Ms(F, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4824
|
+
16400 && f && F && Rs(F, `${f}.Style`, Vr), e.$$.dirty[0] & /*mbsource, translationurl*/
|
|
4825
|
+
33554448 && f && !B && Ds(`${f}.Translation`, Xr, Xe);
|
|
4826
|
+
}, r(16, Tt = 0), [
|
|
4780
4827
|
b,
|
|
4781
4828
|
i,
|
|
4782
4829
|
s,
|
|
4783
4830
|
o,
|
|
4784
|
-
|
|
4831
|
+
f,
|
|
4785
4832
|
d,
|
|
4786
4833
|
p,
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
M,
|
|
4791
|
-
_,
|
|
4792
|
-
N,
|
|
4793
|
-
j,
|
|
4834
|
+
H,
|
|
4835
|
+
L,
|
|
4836
|
+
A,
|
|
4794
4837
|
U,
|
|
4795
|
-
|
|
4796
|
-
|
|
4838
|
+
E,
|
|
4839
|
+
I,
|
|
4840
|
+
X,
|
|
4841
|
+
F,
|
|
4842
|
+
W,
|
|
4843
|
+
Tt,
|
|
4844
|
+
Wr,
|
|
4797
4845
|
a,
|
|
4798
4846
|
h,
|
|
4799
4847
|
u,
|
|
4800
4848
|
l,
|
|
4801
4849
|
m,
|
|
4850
|
+
R,
|
|
4802
4851
|
C,
|
|
4803
|
-
O,
|
|
4804
|
-
H,
|
|
4805
4852
|
B,
|
|
4806
|
-
|
|
4807
|
-
|
|
4853
|
+
N,
|
|
4854
|
+
Ve,
|
|
4855
|
+
rn
|
|
4808
4856
|
];
|
|
4809
4857
|
}
|
|
4810
|
-
class
|
|
4858
|
+
class jr extends An {
|
|
4811
4859
|
constructor(t) {
|
|
4812
|
-
super(),
|
|
4860
|
+
super(), Tn(
|
|
4813
4861
|
this,
|
|
4814
4862
|
t,
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4863
|
+
zs,
|
|
4864
|
+
Vs,
|
|
4865
|
+
ir,
|
|
4818
4866
|
{
|
|
4819
4867
|
endpoint: 1,
|
|
4820
4868
|
datasource: 2,
|
|
4821
4869
|
lang: 3,
|
|
4822
|
-
userid:
|
|
4823
|
-
session:
|
|
4824
|
-
mostplayed:
|
|
4825
|
-
lastplayed:
|
|
4826
|
-
favorites:
|
|
4870
|
+
userid: 18,
|
|
4871
|
+
session: 19,
|
|
4872
|
+
mostplayed: 20,
|
|
4873
|
+
lastplayed: 21,
|
|
4874
|
+
favorites: 22,
|
|
4827
4875
|
mbsource: 4,
|
|
4828
4876
|
clientstyling: 5,
|
|
4829
4877
|
clientstylingurl: 6,
|
|
4830
4878
|
activecategory: 0,
|
|
4831
4879
|
actionevent: 7,
|
|
4832
|
-
sessioncheck:
|
|
4880
|
+
sessioncheck: 23,
|
|
4833
4881
|
location: 8,
|
|
4834
4882
|
showsubgroups: 9,
|
|
4835
|
-
filteredcategories:
|
|
4836
|
-
translationurl:
|
|
4883
|
+
filteredcategories: 24,
|
|
4884
|
+
translationurl: 25,
|
|
4837
4885
|
categoriesicon: 10,
|
|
4838
4886
|
lobbyiconimage: 11,
|
|
4839
4887
|
mygamesiconimage: 12,
|
|
4840
|
-
customizecategoryicon:
|
|
4888
|
+
customizecategoryicon: 26
|
|
4841
4889
|
},
|
|
4842
|
-
|
|
4890
|
+
Fs,
|
|
4843
4891
|
[-1, -1]
|
|
4844
4892
|
);
|
|
4845
4893
|
}
|
|
@@ -4847,173 +4895,175 @@ class Nr extends dn {
|
|
|
4847
4895
|
return this.$$.ctx[1];
|
|
4848
4896
|
}
|
|
4849
4897
|
set endpoint(t) {
|
|
4850
|
-
this.$$set({ endpoint: t }),
|
|
4898
|
+
this.$$set({ endpoint: t }), x();
|
|
4851
4899
|
}
|
|
4852
4900
|
get datasource() {
|
|
4853
4901
|
return this.$$.ctx[2];
|
|
4854
4902
|
}
|
|
4855
4903
|
set datasource(t) {
|
|
4856
|
-
this.$$set({ datasource: t }),
|
|
4904
|
+
this.$$set({ datasource: t }), x();
|
|
4857
4905
|
}
|
|
4858
4906
|
get lang() {
|
|
4859
4907
|
return this.$$.ctx[3];
|
|
4860
4908
|
}
|
|
4861
4909
|
set lang(t) {
|
|
4862
|
-
this.$$set({ lang: t }),
|
|
4910
|
+
this.$$set({ lang: t }), x();
|
|
4863
4911
|
}
|
|
4864
4912
|
get userid() {
|
|
4865
|
-
return this.$$.ctx[
|
|
4913
|
+
return this.$$.ctx[18];
|
|
4866
4914
|
}
|
|
4867
4915
|
set userid(t) {
|
|
4868
|
-
this.$$set({ userid: t }),
|
|
4916
|
+
this.$$set({ userid: t }), x();
|
|
4869
4917
|
}
|
|
4870
4918
|
get session() {
|
|
4871
|
-
return this.$$.ctx[
|
|
4919
|
+
return this.$$.ctx[19];
|
|
4872
4920
|
}
|
|
4873
4921
|
set session(t) {
|
|
4874
|
-
this.$$set({ session: t }),
|
|
4922
|
+
this.$$set({ session: t }), x();
|
|
4875
4923
|
}
|
|
4876
4924
|
get mostplayed() {
|
|
4877
|
-
return this.$$.ctx[
|
|
4925
|
+
return this.$$.ctx[20];
|
|
4878
4926
|
}
|
|
4879
4927
|
set mostplayed(t) {
|
|
4880
|
-
this.$$set({ mostplayed: t }),
|
|
4928
|
+
this.$$set({ mostplayed: t }), x();
|
|
4881
4929
|
}
|
|
4882
4930
|
get lastplayed() {
|
|
4883
|
-
return this.$$.ctx[
|
|
4931
|
+
return this.$$.ctx[21];
|
|
4884
4932
|
}
|
|
4885
4933
|
set lastplayed(t) {
|
|
4886
|
-
this.$$set({ lastplayed: t }),
|
|
4934
|
+
this.$$set({ lastplayed: t }), x();
|
|
4887
4935
|
}
|
|
4888
4936
|
get favorites() {
|
|
4889
|
-
return this.$$.ctx[
|
|
4937
|
+
return this.$$.ctx[22];
|
|
4890
4938
|
}
|
|
4891
4939
|
set favorites(t) {
|
|
4892
|
-
this.$$set({ favorites: t }),
|
|
4940
|
+
this.$$set({ favorites: t }), x();
|
|
4893
4941
|
}
|
|
4894
4942
|
get mbsource() {
|
|
4895
4943
|
return this.$$.ctx[4];
|
|
4896
4944
|
}
|
|
4897
4945
|
set mbsource(t) {
|
|
4898
|
-
this.$$set({ mbsource: t }),
|
|
4946
|
+
this.$$set({ mbsource: t }), x();
|
|
4899
4947
|
}
|
|
4900
4948
|
get clientstyling() {
|
|
4901
4949
|
return this.$$.ctx[5];
|
|
4902
4950
|
}
|
|
4903
4951
|
set clientstyling(t) {
|
|
4904
|
-
this.$$set({ clientstyling: t }),
|
|
4952
|
+
this.$$set({ clientstyling: t }), x();
|
|
4905
4953
|
}
|
|
4906
4954
|
get clientstylingurl() {
|
|
4907
4955
|
return this.$$.ctx[6];
|
|
4908
4956
|
}
|
|
4909
4957
|
set clientstylingurl(t) {
|
|
4910
|
-
this.$$set({ clientstylingurl: t }),
|
|
4958
|
+
this.$$set({ clientstylingurl: t }), x();
|
|
4911
4959
|
}
|
|
4912
4960
|
get activecategory() {
|
|
4913
4961
|
return this.$$.ctx[0];
|
|
4914
4962
|
}
|
|
4915
4963
|
set activecategory(t) {
|
|
4916
|
-
this.$$set({ activecategory: t }),
|
|
4964
|
+
this.$$set({ activecategory: t }), x();
|
|
4917
4965
|
}
|
|
4918
4966
|
get actionevent() {
|
|
4919
4967
|
return this.$$.ctx[7];
|
|
4920
4968
|
}
|
|
4921
4969
|
set actionevent(t) {
|
|
4922
|
-
this.$$set({ actionevent: t }),
|
|
4970
|
+
this.$$set({ actionevent: t }), x();
|
|
4923
4971
|
}
|
|
4924
4972
|
get sessioncheck() {
|
|
4925
|
-
return this.$$.ctx[
|
|
4973
|
+
return this.$$.ctx[23];
|
|
4926
4974
|
}
|
|
4927
4975
|
set sessioncheck(t) {
|
|
4928
|
-
this.$$set({ sessioncheck: t }),
|
|
4976
|
+
this.$$set({ sessioncheck: t }), x();
|
|
4929
4977
|
}
|
|
4930
4978
|
get location() {
|
|
4931
4979
|
return this.$$.ctx[8];
|
|
4932
4980
|
}
|
|
4933
4981
|
set location(t) {
|
|
4934
|
-
this.$$set({ location: t }),
|
|
4982
|
+
this.$$set({ location: t }), x();
|
|
4935
4983
|
}
|
|
4936
4984
|
get showsubgroups() {
|
|
4937
4985
|
return this.$$.ctx[9];
|
|
4938
4986
|
}
|
|
4939
4987
|
set showsubgroups(t) {
|
|
4940
|
-
this.$$set({ showsubgroups: t }),
|
|
4988
|
+
this.$$set({ showsubgroups: t }), x();
|
|
4941
4989
|
}
|
|
4942
4990
|
get filteredcategories() {
|
|
4943
|
-
return this.$$.ctx[
|
|
4991
|
+
return this.$$.ctx[24];
|
|
4944
4992
|
}
|
|
4945
4993
|
set filteredcategories(t) {
|
|
4946
|
-
this.$$set({ filteredcategories: t }),
|
|
4994
|
+
this.$$set({ filteredcategories: t }), x();
|
|
4947
4995
|
}
|
|
4948
4996
|
get translationurl() {
|
|
4949
|
-
return this.$$.ctx[
|
|
4997
|
+
return this.$$.ctx[25];
|
|
4950
4998
|
}
|
|
4951
4999
|
set translationurl(t) {
|
|
4952
|
-
this.$$set({ translationurl: t }),
|
|
5000
|
+
this.$$set({ translationurl: t }), x();
|
|
4953
5001
|
}
|
|
4954
5002
|
get categoriesicon() {
|
|
4955
5003
|
return this.$$.ctx[10];
|
|
4956
5004
|
}
|
|
4957
5005
|
set categoriesicon(t) {
|
|
4958
|
-
this.$$set({ categoriesicon: t }),
|
|
5006
|
+
this.$$set({ categoriesicon: t }), x();
|
|
4959
5007
|
}
|
|
4960
5008
|
get lobbyiconimage() {
|
|
4961
5009
|
return this.$$.ctx[11];
|
|
4962
5010
|
}
|
|
4963
5011
|
set lobbyiconimage(t) {
|
|
4964
|
-
this.$$set({ lobbyiconimage: t }),
|
|
5012
|
+
this.$$set({ lobbyiconimage: t }), x();
|
|
4965
5013
|
}
|
|
4966
5014
|
get mygamesiconimage() {
|
|
4967
5015
|
return this.$$.ctx[12];
|
|
4968
5016
|
}
|
|
4969
5017
|
set mygamesiconimage(t) {
|
|
4970
|
-
this.$$set({ mygamesiconimage: t }),
|
|
5018
|
+
this.$$set({ mygamesiconimage: t }), x();
|
|
4971
5019
|
}
|
|
4972
5020
|
get customizecategoryicon() {
|
|
4973
|
-
return this.$$.ctx[
|
|
5021
|
+
return this.$$.ctx[26];
|
|
4974
5022
|
}
|
|
4975
5023
|
set customizecategoryicon(t) {
|
|
4976
|
-
this.$$set({ customizecategoryicon: t }),
|
|
5024
|
+
this.$$set({ customizecategoryicon: t }), x();
|
|
4977
5025
|
}
|
|
4978
5026
|
}
|
|
4979
|
-
|
|
4980
|
-
const
|
|
5027
|
+
Hn(jr, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, customizecategoryicon: {} }, [], [], !0);
|
|
5028
|
+
const ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4981
5029
|
__proto__: null,
|
|
4982
|
-
default:
|
|
5030
|
+
default: jr
|
|
4983
5031
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4984
5032
|
export {
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5033
|
+
Te as $,
|
|
5034
|
+
so as A,
|
|
5035
|
+
Ys as B,
|
|
5036
|
+
qs as C,
|
|
5037
|
+
Is as D,
|
|
5038
|
+
Ms as E,
|
|
5039
|
+
Rs as F,
|
|
5040
|
+
Hn as G,
|
|
5041
|
+
ao as H,
|
|
5042
|
+
An as S,
|
|
5043
|
+
we as a,
|
|
5044
|
+
Gr as b,
|
|
5045
|
+
cn as c,
|
|
5046
|
+
fe as d,
|
|
5047
|
+
ro as e,
|
|
5048
|
+
x as f,
|
|
5049
|
+
xe as g,
|
|
5050
|
+
or as h,
|
|
5051
|
+
Tn as i,
|
|
5052
|
+
Y as j,
|
|
5053
|
+
Js as k,
|
|
5054
|
+
eo as l,
|
|
5055
|
+
me as m,
|
|
5056
|
+
M as n,
|
|
5057
|
+
Ns as o,
|
|
5058
|
+
yn as p,
|
|
5059
|
+
io as q,
|
|
5060
|
+
ce as r,
|
|
5061
|
+
ir as s,
|
|
5062
|
+
no as t,
|
|
5063
|
+
oo as u,
|
|
5064
|
+
Ks as v,
|
|
5065
|
+
rt as w,
|
|
5066
|
+
to as x,
|
|
5067
|
+
ar as y,
|
|
5068
|
+
Qs as z
|
|
5019
5069
|
};
|