@everymatrix/casino-tournaments-thumbnail-controller 1.53.0 → 1.53.11
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/{CasinoTournamentsThumbnail-bQ00dUne.js → CasinoTournamentsThumbnail-BLU8uK9b.js} +974 -1009
- package/components/{CasinoTournamentsThumbnailController-CAkoz9d2.js → CasinoTournamentsThumbnailController-Cm4zT5gG.js} +586 -623
- package/components/{CasinoTournamentsThumbnailDuration-CtYwgBwu.js → CasinoTournamentsThumbnailDuration-D1IVkCfX.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-CdvMyTxC.js → CasinoTournamentsThumbnailGamesSlider-t7y8BR_1.js} +2 -2
- package/components/{CasinoTournamentsThumbnailPrizes-vcbRuwic.js → CasinoTournamentsThumbnailPrizes-K2LF0Itt.js} +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +14 -0
- package/package.json +12 -14
- package/components/CasinoTournamentsThumbnail-DCqILEoX.cjs +0 -6
- package/components/CasinoTournamentsThumbnailController-CDD815u9.cjs +0 -3
- package/components/CasinoTournamentsThumbnailDuration-coOlBPge.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGamesSlider-D_yfgcmI.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-Sf4n_46a.cjs +0 -1
- package/es2015/casino-tournaments-thumbnail-controller.cjs +0 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +0 -21
package/components/{CasinoTournamentsThumbnail-bQ00dUne.js → CasinoTournamentsThumbnail-BLU8uK9b.js}
RENAMED
|
@@ -1,82 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
var pr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var at = Object.getOwnPropertySymbols;
|
|
4
|
-
var yr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Ie = (e, t, r) => t in e ? br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
yr.call(t, r) && Ie(e, r, t[r]);
|
|
8
|
-
if (at)
|
|
9
|
-
for (var r of at(t))
|
|
10
|
-
_r.call(t, r) && Ie(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, ut = (e, t) => gr(e, pr(t));
|
|
13
|
-
var k = (e, t, r) => Ie(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var lt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (l) => {
|
|
16
|
-
try {
|
|
17
|
-
o(r.next(l));
|
|
18
|
-
} catch (u) {
|
|
19
|
-
i(u);
|
|
20
|
-
}
|
|
21
|
-
}, a = (l) => {
|
|
22
|
-
try {
|
|
23
|
-
o(r.throw(l));
|
|
24
|
-
} catch (u) {
|
|
25
|
-
i(u);
|
|
26
|
-
}
|
|
27
|
-
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
|
-
o((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function U() {
|
|
1
|
+
function k() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function At(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function nt() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function re(e) {
|
|
10
|
+
e.forEach(At);
|
|
40
11
|
}
|
|
41
12
|
function fe(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function Ht(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
18
|
+
let de;
|
|
19
|
+
function Ci(e, t) {
|
|
20
|
+
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function ur(e) {
|
|
52
23
|
return Object.keys(e).length === 0;
|
|
53
24
|
}
|
|
54
|
-
function
|
|
25
|
+
function Ct(e, ...t) {
|
|
55
26
|
if (e == null) {
|
|
56
27
|
for (const n of t)
|
|
57
28
|
n(void 0);
|
|
58
|
-
return
|
|
29
|
+
return k;
|
|
59
30
|
}
|
|
60
31
|
const r = e.subscribe(...t);
|
|
61
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
33
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function lr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Ct(t, r));
|
|
65
36
|
}
|
|
66
|
-
function
|
|
67
|
-
return e && fe(e.destroy) ? e.destroy :
|
|
37
|
+
function ce(e) {
|
|
38
|
+
return e && fe(e.destroy) ? e.destroy : k;
|
|
68
39
|
}
|
|
69
40
|
function S(e, t) {
|
|
70
41
|
e.appendChild(t);
|
|
71
42
|
}
|
|
72
|
-
function
|
|
73
|
-
const n =
|
|
43
|
+
function hr(e, t, r) {
|
|
44
|
+
const n = fr(e);
|
|
74
45
|
if (!n.getElementById(t)) {
|
|
75
|
-
const i =
|
|
76
|
-
i.id = t, i.textContent = r,
|
|
46
|
+
const i = O("style");
|
|
47
|
+
i.id = t, i.textContent = r, cr(n, i);
|
|
77
48
|
}
|
|
78
49
|
}
|
|
79
|
-
function
|
|
50
|
+
function fr(e) {
|
|
80
51
|
if (!e) return document;
|
|
81
52
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
82
53
|
return t && /** @type {ShadowRoot} */
|
|
@@ -85,80 +56,80 @@ function Sr(e) {
|
|
|
85
56
|
t
|
|
86
57
|
) : e.ownerDocument;
|
|
87
58
|
}
|
|
88
|
-
function
|
|
59
|
+
function cr(e, t) {
|
|
89
60
|
return S(
|
|
90
61
|
/** @type {Document} */
|
|
91
62
|
e.head || e,
|
|
92
63
|
t
|
|
93
64
|
), t.sheet;
|
|
94
65
|
}
|
|
95
|
-
function
|
|
66
|
+
function F(e, t, r) {
|
|
96
67
|
e.insertBefore(t, r || null);
|
|
97
68
|
}
|
|
98
69
|
function L(e) {
|
|
99
70
|
e.parentNode && e.parentNode.removeChild(e);
|
|
100
71
|
}
|
|
101
|
-
function
|
|
72
|
+
function Bi(e, t) {
|
|
102
73
|
for (let r = 0; r < e.length; r += 1)
|
|
103
74
|
e[r] && e[r].d(t);
|
|
104
75
|
}
|
|
105
|
-
function
|
|
76
|
+
function O(e) {
|
|
106
77
|
return document.createElement(e);
|
|
107
78
|
}
|
|
108
|
-
function
|
|
79
|
+
function wi(e) {
|
|
109
80
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
110
81
|
}
|
|
111
82
|
function M(e) {
|
|
112
83
|
return document.createTextNode(e);
|
|
113
84
|
}
|
|
114
|
-
function
|
|
85
|
+
function z() {
|
|
115
86
|
return M(" ");
|
|
116
87
|
}
|
|
117
|
-
function
|
|
88
|
+
function mr() {
|
|
118
89
|
return M("");
|
|
119
90
|
}
|
|
120
|
-
function
|
|
91
|
+
function De(e, t, r, n) {
|
|
121
92
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
122
93
|
}
|
|
123
94
|
function y(e, t, r) {
|
|
124
95
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
125
96
|
}
|
|
126
|
-
function
|
|
97
|
+
function Ni(e, t, r) {
|
|
127
98
|
const n = t.toLowerCase();
|
|
128
99
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : y(e, t, r);
|
|
129
100
|
}
|
|
130
|
-
function
|
|
101
|
+
function dr(e) {
|
|
131
102
|
return Array.from(e.childNodes);
|
|
132
103
|
}
|
|
133
|
-
function
|
|
104
|
+
function G(e, t) {
|
|
134
105
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
135
106
|
t);
|
|
136
107
|
}
|
|
137
|
-
function
|
|
108
|
+
function ke(e, t, r, n) {
|
|
138
109
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
139
110
|
}
|
|
140
|
-
let
|
|
141
|
-
function
|
|
142
|
-
if (
|
|
143
|
-
|
|
111
|
+
let be;
|
|
112
|
+
function br() {
|
|
113
|
+
if (be === void 0) {
|
|
114
|
+
be = !1;
|
|
144
115
|
try {
|
|
145
|
-
typeof window
|
|
146
|
-
} catch
|
|
147
|
-
|
|
116
|
+
typeof window < "u" && window.parent && window.parent.document;
|
|
117
|
+
} catch {
|
|
118
|
+
be = !0;
|
|
148
119
|
}
|
|
149
120
|
}
|
|
150
|
-
return
|
|
121
|
+
return be;
|
|
151
122
|
}
|
|
152
|
-
function
|
|
123
|
+
function Oi(e, t) {
|
|
153
124
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
154
|
-
const n =
|
|
125
|
+
const n = O("iframe");
|
|
155
126
|
n.setAttribute(
|
|
156
127
|
"style",
|
|
157
128
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
158
129
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
159
|
-
const i =
|
|
130
|
+
const i = br();
|
|
160
131
|
let s;
|
|
161
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s =
|
|
132
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = De(
|
|
162
133
|
window,
|
|
163
134
|
"message",
|
|
164
135
|
/** @param {MessageEvent} event */
|
|
@@ -166,15 +137,15 @@ function ji(e, t) {
|
|
|
166
137
|
a.source === n.contentWindow && t();
|
|
167
138
|
}
|
|
168
139
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
169
|
-
s =
|
|
140
|
+
s = De(n.contentWindow, "resize", t), t();
|
|
170
141
|
}), S(e, n), () => {
|
|
171
142
|
(i || s && n.contentWindow) && s(), L(n);
|
|
172
143
|
};
|
|
173
144
|
}
|
|
174
|
-
function
|
|
145
|
+
function Pi(e, t, r) {
|
|
175
146
|
e.classList.toggle(t, !!r);
|
|
176
147
|
}
|
|
177
|
-
function
|
|
148
|
+
function gr(e) {
|
|
178
149
|
const t = {};
|
|
179
150
|
return e.childNodes.forEach(
|
|
180
151
|
/** @param {Element} node */
|
|
@@ -183,248 +154,244 @@ function Br(e) {
|
|
|
183
154
|
}
|
|
184
155
|
), t;
|
|
185
156
|
}
|
|
186
|
-
let
|
|
187
|
-
function
|
|
188
|
-
|
|
157
|
+
let ue;
|
|
158
|
+
function oe(e) {
|
|
159
|
+
ue = e;
|
|
189
160
|
}
|
|
190
|
-
function
|
|
191
|
-
if (!
|
|
192
|
-
return
|
|
161
|
+
function pr() {
|
|
162
|
+
if (!ue) throw new Error("Function called outside component initialization");
|
|
163
|
+
return ue;
|
|
193
164
|
}
|
|
194
|
-
function
|
|
195
|
-
|
|
165
|
+
function yr(e) {
|
|
166
|
+
pr().$$.on_mount.push(e);
|
|
196
167
|
}
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
const
|
|
200
|
-
let
|
|
201
|
-
function
|
|
202
|
-
|
|
168
|
+
const q = [], Ue = [];
|
|
169
|
+
let Q = [];
|
|
170
|
+
const it = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
171
|
+
let Fe = !1;
|
|
172
|
+
function Er() {
|
|
173
|
+
Fe || (Fe = !0, _r.then(w));
|
|
203
174
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
175
|
+
function Ge(e) {
|
|
176
|
+
Q.push(e);
|
|
206
177
|
}
|
|
207
|
-
const
|
|
208
|
-
let
|
|
178
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
179
|
+
let X = 0;
|
|
209
180
|
function w() {
|
|
210
|
-
if (
|
|
181
|
+
if (X !== 0)
|
|
211
182
|
return;
|
|
212
|
-
const e =
|
|
183
|
+
const e = ue;
|
|
213
184
|
do {
|
|
214
185
|
try {
|
|
215
|
-
for (;
|
|
216
|
-
const t =
|
|
217
|
-
|
|
186
|
+
for (; X < q.length; ) {
|
|
187
|
+
const t = q[X];
|
|
188
|
+
X++, oe(t), xr(t.$$);
|
|
218
189
|
}
|
|
219
190
|
} catch (t) {
|
|
220
|
-
throw
|
|
191
|
+
throw q.length = 0, X = 0, t;
|
|
221
192
|
}
|
|
222
|
-
for (
|
|
223
|
-
for (let t = 0; t <
|
|
224
|
-
const r =
|
|
225
|
-
|
|
193
|
+
for (oe(null), q.length = 0, X = 0; Ue.length; ) Ue.pop()();
|
|
194
|
+
for (let t = 0; t < Q.length; t += 1) {
|
|
195
|
+
const r = Q[t];
|
|
196
|
+
Ne.has(r) || (Ne.add(r), r());
|
|
226
197
|
}
|
|
227
|
-
|
|
228
|
-
} while (
|
|
229
|
-
for (;
|
|
230
|
-
|
|
231
|
-
|
|
198
|
+
Q.length = 0;
|
|
199
|
+
} while (q.length);
|
|
200
|
+
for (; it.length; )
|
|
201
|
+
it.pop()();
|
|
202
|
+
Fe = !1, Ne.clear(), oe(e);
|
|
232
203
|
}
|
|
233
|
-
function
|
|
204
|
+
function xr(e) {
|
|
234
205
|
if (e.fragment !== null) {
|
|
235
|
-
e.update(),
|
|
206
|
+
e.update(), re(e.before_update);
|
|
236
207
|
const t = e.dirty;
|
|
237
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
208
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ge);
|
|
238
209
|
}
|
|
239
210
|
}
|
|
240
|
-
function
|
|
211
|
+
function vr(e) {
|
|
241
212
|
const t = [], r = [];
|
|
242
|
-
|
|
213
|
+
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
243
214
|
}
|
|
244
|
-
const
|
|
245
|
-
function
|
|
246
|
-
e && e.i && (
|
|
215
|
+
const Sr = /* @__PURE__ */ new Set();
|
|
216
|
+
function Tr(e, t) {
|
|
217
|
+
e && e.i && (Sr.delete(e), e.i(t));
|
|
247
218
|
}
|
|
248
|
-
function
|
|
249
|
-
return
|
|
219
|
+
function Ii(e) {
|
|
220
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
250
221
|
}
|
|
251
|
-
function
|
|
222
|
+
function Ar(e, t, r) {
|
|
252
223
|
const { fragment: n, after_update: i } = e.$$;
|
|
253
|
-
n && n.m(t, r),
|
|
254
|
-
const s = e.$$.on_mount.map(
|
|
255
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
256
|
-
}), i.forEach(
|
|
224
|
+
n && n.m(t, r), Ge(() => {
|
|
225
|
+
const s = e.$$.on_mount.map(At).filter(fe);
|
|
226
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
227
|
+
}), i.forEach(Ge);
|
|
257
228
|
}
|
|
258
|
-
function
|
|
229
|
+
function Hr(e, t) {
|
|
259
230
|
const r = e.$$;
|
|
260
|
-
r.fragment !== null && (
|
|
231
|
+
r.fragment !== null && (vr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
261
232
|
}
|
|
262
|
-
function
|
|
263
|
-
e.$$.dirty[0] === -1 && (
|
|
233
|
+
function Cr(e, t) {
|
|
234
|
+
e.$$.dirty[0] === -1 && (q.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
264
235
|
}
|
|
265
|
-
function
|
|
266
|
-
const
|
|
267
|
-
|
|
236
|
+
function Br(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
237
|
+
const h = ue;
|
|
238
|
+
oe(e);
|
|
268
239
|
const u = e.$$ = {
|
|
269
240
|
fragment: null,
|
|
270
241
|
ctx: [],
|
|
271
242
|
// state
|
|
272
243
|
props: s,
|
|
273
|
-
update:
|
|
244
|
+
update: k,
|
|
274
245
|
not_equal: i,
|
|
275
|
-
bound:
|
|
246
|
+
bound: nt(),
|
|
276
247
|
// lifecycle
|
|
277
248
|
on_mount: [],
|
|
278
249
|
on_destroy: [],
|
|
279
250
|
on_disconnect: [],
|
|
280
251
|
before_update: [],
|
|
281
252
|
after_update: [],
|
|
282
|
-
context: new Map(t.context || (
|
|
253
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
283
254
|
// everything else
|
|
284
|
-
callbacks:
|
|
255
|
+
callbacks: nt(),
|
|
285
256
|
dirty: o,
|
|
286
257
|
skip_bound: !1,
|
|
287
|
-
root: t.target ||
|
|
258
|
+
root: t.target || h.$$.root
|
|
288
259
|
};
|
|
289
260
|
a && a(u.root);
|
|
290
|
-
let
|
|
291
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
292
|
-
const d =
|
|
293
|
-
return u.ctx && i(u.ctx[
|
|
294
|
-
}) : [], u.update(),
|
|
261
|
+
let l = !1;
|
|
262
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...E) => {
|
|
263
|
+
const d = E.length ? E[0] : c;
|
|
264
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Cr(e, f)), c;
|
|
265
|
+
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
295
266
|
if (t.hydrate) {
|
|
296
|
-
const
|
|
297
|
-
u.fragment && u.fragment.l(
|
|
267
|
+
const f = dr(t.target);
|
|
268
|
+
u.fragment && u.fragment.l(f), f.forEach(L);
|
|
298
269
|
} else
|
|
299
270
|
u.fragment && u.fragment.c();
|
|
300
|
-
t.intro &&
|
|
271
|
+
t.intro && Tr(e.$$.fragment), Ar(e, t.target, t.anchor), w();
|
|
301
272
|
}
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
let
|
|
305
|
-
typeof HTMLElement == "function" && (
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
273
|
+
oe(h);
|
|
274
|
+
}
|
|
275
|
+
let Bt;
|
|
276
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
277
|
+
/** The Svelte component constructor */
|
|
278
|
+
$$ctor;
|
|
279
|
+
/** Slots */
|
|
280
|
+
$$s;
|
|
281
|
+
/** The Svelte component instance */
|
|
282
|
+
$$c;
|
|
283
|
+
/** Whether or not the custom element is connected */
|
|
284
|
+
$$cn = !1;
|
|
285
|
+
/** Component props data */
|
|
286
|
+
$$d = {};
|
|
287
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
288
|
+
$$r = !1;
|
|
289
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
290
|
+
$$p_d = {};
|
|
291
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
292
|
+
$$l = {};
|
|
293
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
294
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
295
|
+
constructor(e, t, r) {
|
|
296
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
327
297
|
}
|
|
328
|
-
addEventListener(t, r
|
|
329
|
-
if (this.$$l[
|
|
330
|
-
const
|
|
331
|
-
this.$$l_u.set(
|
|
298
|
+
addEventListener(e, t, r) {
|
|
299
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
300
|
+
const n = this.$$c.$on(e, t);
|
|
301
|
+
this.$$l_u.set(t, n);
|
|
332
302
|
}
|
|
333
|
-
super.addEventListener(t, r
|
|
303
|
+
super.addEventListener(e, t, r);
|
|
334
304
|
}
|
|
335
|
-
removeEventListener(t, r
|
|
336
|
-
if (super.removeEventListener(t, r
|
|
337
|
-
const
|
|
338
|
-
|
|
305
|
+
removeEventListener(e, t, r) {
|
|
306
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
307
|
+
const n = this.$$l_u.get(t);
|
|
308
|
+
n && (n(), this.$$l_u.delete(t));
|
|
339
309
|
}
|
|
340
310
|
}
|
|
341
|
-
connectedCallback() {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
};
|
|
311
|
+
async connectedCallback() {
|
|
312
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
313
|
+
let e = function(i) {
|
|
314
|
+
return () => {
|
|
315
|
+
let s;
|
|
316
|
+
return {
|
|
317
|
+
c: function() {
|
|
318
|
+
s = O("slot"), i !== "default" && y(s, "name", i);
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
* @param {HTMLElement} target
|
|
322
|
+
* @param {HTMLElement} [anchor]
|
|
323
|
+
*/
|
|
324
|
+
m: function(h, u) {
|
|
325
|
+
F(h, s, u);
|
|
326
|
+
},
|
|
327
|
+
d: function(h) {
|
|
328
|
+
h && L(s);
|
|
329
|
+
}
|
|
362
330
|
};
|
|
363
331
|
};
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
332
|
+
};
|
|
333
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
334
|
+
return;
|
|
335
|
+
const t = {}, r = gr(this);
|
|
336
|
+
for (const i of this.$$s)
|
|
337
|
+
i in r && (t[i] = [e(i)]);
|
|
338
|
+
for (const i of this.attributes) {
|
|
339
|
+
const s = this.$$g_p(i.name);
|
|
340
|
+
s in this.$$d || (this.$$d[s] = pe(s, i.value, this.$$p_d, "toProp"));
|
|
341
|
+
}
|
|
342
|
+
for (const i in this.$$p_d)
|
|
343
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
344
|
+
this.$$c = new this.$$ctor({
|
|
345
|
+
target: this.shadowRoot || this,
|
|
346
|
+
props: {
|
|
347
|
+
...this.$$d,
|
|
348
|
+
$$slots: t,
|
|
349
|
+
$$scope: {
|
|
350
|
+
ctx: []
|
|
351
|
+
}
|
|
372
352
|
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
this.$$
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
this.$$r = !0;
|
|
386
|
-
for (const s in this.$$p_d)
|
|
387
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
388
|
-
const a = ye(
|
|
389
|
-
s,
|
|
390
|
-
this.$$d[s],
|
|
391
|
-
this.$$p_d,
|
|
392
|
-
"toAttribute"
|
|
393
|
-
);
|
|
394
|
-
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
395
|
-
}
|
|
396
|
-
this.$$r = !1;
|
|
397
|
-
};
|
|
398
|
-
this.$$c.$$.after_update.push(i), i();
|
|
399
|
-
for (const s in this.$$l)
|
|
400
|
-
for (const a of this.$$l[s]) {
|
|
401
|
-
const o = this.$$c.$on(s, a);
|
|
402
|
-
this.$$l_u.set(a, o);
|
|
353
|
+
});
|
|
354
|
+
const n = () => {
|
|
355
|
+
this.$$r = !0;
|
|
356
|
+
for (const i in this.$$p_d)
|
|
357
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
358
|
+
const s = pe(
|
|
359
|
+
i,
|
|
360
|
+
this.$$d[i],
|
|
361
|
+
this.$$p_d,
|
|
362
|
+
"toAttribute"
|
|
363
|
+
);
|
|
364
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
403
365
|
}
|
|
404
|
-
this.$$
|
|
405
|
-
}
|
|
406
|
-
|
|
366
|
+
this.$$r = !1;
|
|
367
|
+
};
|
|
368
|
+
this.$$c.$$.after_update.push(n), n();
|
|
369
|
+
for (const i in this.$$l)
|
|
370
|
+
for (const s of this.$$l[i]) {
|
|
371
|
+
const a = this.$$c.$on(i, s);
|
|
372
|
+
this.$$l_u.set(s, a);
|
|
373
|
+
}
|
|
374
|
+
this.$$l = {};
|
|
375
|
+
}
|
|
407
376
|
}
|
|
408
377
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
409
378
|
// and setting attributes through setAttribute etc, this is helpful
|
|
410
|
-
attributeChangedCallback(t, r
|
|
411
|
-
|
|
412
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
379
|
+
attributeChangedCallback(e, t, r) {
|
|
380
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
413
381
|
}
|
|
414
382
|
disconnectedCallback() {
|
|
415
383
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
416
384
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
417
385
|
});
|
|
418
386
|
}
|
|
419
|
-
$$g_p(
|
|
387
|
+
$$g_p(e) {
|
|
420
388
|
return Object.keys(this.$$p_d).find(
|
|
421
|
-
(
|
|
422
|
-
) ||
|
|
389
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
390
|
+
) || e;
|
|
423
391
|
}
|
|
424
392
|
});
|
|
425
|
-
function
|
|
426
|
-
|
|
427
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
393
|
+
function pe(e, t, r, n) {
|
|
394
|
+
const i = r[e]?.type;
|
|
428
395
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
429
396
|
return t;
|
|
430
397
|
if (n === "toAttribute")
|
|
@@ -435,7 +402,7 @@ function ye(e, t, r, n) {
|
|
|
435
402
|
case "Boolean":
|
|
436
403
|
return t ? "" : null;
|
|
437
404
|
case "Number":
|
|
438
|
-
return t
|
|
405
|
+
return t ?? null;
|
|
439
406
|
default:
|
|
440
407
|
return t;
|
|
441
408
|
}
|
|
@@ -452,8 +419,8 @@ function ye(e, t, r, n) {
|
|
|
452
419
|
return t;
|
|
453
420
|
}
|
|
454
421
|
}
|
|
455
|
-
function
|
|
456
|
-
let a = class extends
|
|
422
|
+
function wr(e, t, r, n, i, s) {
|
|
423
|
+
let a = class extends Bt {
|
|
457
424
|
constructor() {
|
|
458
425
|
super(e, r, i), this.$$p_d = t;
|
|
459
426
|
}
|
|
@@ -468,43 +435,39 @@ function Gr(e, t, r, n, i, s) {
|
|
|
468
435
|
get() {
|
|
469
436
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
470
437
|
},
|
|
471
|
-
set(
|
|
472
|
-
|
|
473
|
-
l = ye(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
438
|
+
set(h) {
|
|
439
|
+
h = pe(o, h, t), this.$$d[o] = h, this.$$c?.$set({ [o]: h });
|
|
474
440
|
}
|
|
475
441
|
});
|
|
476
442
|
}), n.forEach((o) => {
|
|
477
443
|
Object.defineProperty(a.prototype, o, {
|
|
478
444
|
get() {
|
|
479
|
-
|
|
480
|
-
return (l = this.$$c) == null ? void 0 : l[o];
|
|
445
|
+
return this.$$c?.[o];
|
|
481
446
|
}
|
|
482
447
|
});
|
|
483
448
|
}), e.element = /** @type {any} */
|
|
484
449
|
a, a;
|
|
485
450
|
}
|
|
486
|
-
class
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
k(this, "$$set");
|
|
504
|
-
}
|
|
451
|
+
class Nr {
|
|
452
|
+
/**
|
|
453
|
+
* ### PRIVATE API
|
|
454
|
+
*
|
|
455
|
+
* Do not use, may change at any time
|
|
456
|
+
*
|
|
457
|
+
* @type {any}
|
|
458
|
+
*/
|
|
459
|
+
$$ = void 0;
|
|
460
|
+
/**
|
|
461
|
+
* ### PRIVATE API
|
|
462
|
+
*
|
|
463
|
+
* Do not use, may change at any time
|
|
464
|
+
*
|
|
465
|
+
* @type {any}
|
|
466
|
+
*/
|
|
467
|
+
$$set = void 0;
|
|
505
468
|
/** @returns {void} */
|
|
506
469
|
$destroy() {
|
|
507
|
-
|
|
470
|
+
Hr(this, 1), this.$destroy = k;
|
|
508
471
|
}
|
|
509
472
|
/**
|
|
510
473
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -514,7 +477,7 @@ class $r {
|
|
|
514
477
|
*/
|
|
515
478
|
$on(t, r) {
|
|
516
479
|
if (!fe(r))
|
|
517
|
-
return
|
|
480
|
+
return k;
|
|
518
481
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
519
482
|
return n.push(r), () => {
|
|
520
483
|
const i = n.indexOf(r);
|
|
@@ -526,37 +489,37 @@ class $r {
|
|
|
526
489
|
* @returns {void}
|
|
527
490
|
*/
|
|
528
491
|
$set(t) {
|
|
529
|
-
this.$$set && !
|
|
492
|
+
this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
530
493
|
}
|
|
531
494
|
}
|
|
532
|
-
const
|
|
533
|
-
typeof window
|
|
534
|
-
var
|
|
535
|
-
return
|
|
495
|
+
const Or = "4";
|
|
496
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Or);
|
|
497
|
+
var $e = function(e, t) {
|
|
498
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
536
499
|
r.__proto__ = n;
|
|
537
500
|
} || function(r, n) {
|
|
538
501
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
539
|
-
},
|
|
502
|
+
}, $e(e, t);
|
|
540
503
|
};
|
|
541
|
-
function
|
|
504
|
+
function ve(e, t) {
|
|
542
505
|
if (typeof t != "function" && t !== null)
|
|
543
506
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
544
|
-
|
|
507
|
+
$e(e, t);
|
|
545
508
|
function r() {
|
|
546
509
|
this.constructor = e;
|
|
547
510
|
}
|
|
548
511
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
549
512
|
}
|
|
550
|
-
var
|
|
551
|
-
return
|
|
513
|
+
var v = function() {
|
|
514
|
+
return v = Object.assign || function(t) {
|
|
552
515
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
553
516
|
r = arguments[n];
|
|
554
517
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
555
518
|
}
|
|
556
519
|
return t;
|
|
557
|
-
},
|
|
520
|
+
}, v.apply(this, arguments);
|
|
558
521
|
};
|
|
559
|
-
function
|
|
522
|
+
function Pr(e, t) {
|
|
560
523
|
var r = {};
|
|
561
524
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
562
525
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -564,7 +527,7 @@ function Vr(e, t) {
|
|
|
564
527
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
565
528
|
return r;
|
|
566
529
|
}
|
|
567
|
-
function
|
|
530
|
+
function Mi(e) {
|
|
568
531
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
569
532
|
if (r) return r.call(e);
|
|
570
533
|
if (e && typeof e.length == "number") return {
|
|
@@ -574,7 +537,7 @@ function Ji(e) {
|
|
|
574
537
|
};
|
|
575
538
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
576
539
|
}
|
|
577
|
-
function
|
|
540
|
+
function Ri(e, t) {
|
|
578
541
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
579
542
|
if (!r) return e;
|
|
580
543
|
var n = r.call(e), i, s = [], a;
|
|
@@ -591,198 +554,200 @@ function Wi(e, t) {
|
|
|
591
554
|
}
|
|
592
555
|
return s;
|
|
593
556
|
}
|
|
594
|
-
function
|
|
557
|
+
function Oe(e, t, r) {
|
|
595
558
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
596
559
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
597
560
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
598
561
|
}
|
|
599
|
-
const
|
|
600
|
-
function
|
|
562
|
+
const Z = [];
|
|
563
|
+
function Ir(e, t) {
|
|
601
564
|
return {
|
|
602
|
-
subscribe:
|
|
565
|
+
subscribe: Se(e, t).subscribe
|
|
603
566
|
};
|
|
604
567
|
}
|
|
605
|
-
function
|
|
568
|
+
function Se(e, t = k) {
|
|
606
569
|
let r;
|
|
607
570
|
const n = /* @__PURE__ */ new Set();
|
|
608
571
|
function i(o) {
|
|
609
|
-
if (
|
|
610
|
-
const
|
|
572
|
+
if (Ht(e, o) && (e = o, r)) {
|
|
573
|
+
const h = !Z.length;
|
|
611
574
|
for (const u of n)
|
|
612
|
-
u[1](),
|
|
613
|
-
if (
|
|
614
|
-
for (let u = 0; u <
|
|
615
|
-
|
|
616
|
-
|
|
575
|
+
u[1](), Z.push(u, e);
|
|
576
|
+
if (h) {
|
|
577
|
+
for (let u = 0; u < Z.length; u += 2)
|
|
578
|
+
Z[u][0](Z[u + 1]);
|
|
579
|
+
Z.length = 0;
|
|
617
580
|
}
|
|
618
581
|
}
|
|
619
582
|
}
|
|
620
583
|
function s(o) {
|
|
621
584
|
i(o(e));
|
|
622
585
|
}
|
|
623
|
-
function a(o,
|
|
624
|
-
const u = [o,
|
|
625
|
-
return n.add(u), n.size === 1 && (r = t(i, s) ||
|
|
586
|
+
function a(o, h = k) {
|
|
587
|
+
const u = [o, h];
|
|
588
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || k), o(e), () => {
|
|
626
589
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
627
590
|
};
|
|
628
591
|
}
|
|
629
592
|
return { set: i, update: s, subscribe: a };
|
|
630
593
|
}
|
|
631
|
-
function
|
|
594
|
+
function ne(e, t, r) {
|
|
632
595
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
633
596
|
if (!i.every(Boolean))
|
|
634
597
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
635
598
|
const s = t.length < 2;
|
|
636
|
-
return
|
|
637
|
-
let
|
|
599
|
+
return Ir(r, (a, o) => {
|
|
600
|
+
let h = !1;
|
|
638
601
|
const u = [];
|
|
639
|
-
let
|
|
640
|
-
const
|
|
641
|
-
if (
|
|
602
|
+
let l = 0, f = k;
|
|
603
|
+
const c = () => {
|
|
604
|
+
if (l)
|
|
642
605
|
return;
|
|
643
|
-
|
|
606
|
+
f();
|
|
644
607
|
const d = t(n ? u[0] : u, a, o);
|
|
645
|
-
s ? a(d) :
|
|
646
|
-
},
|
|
647
|
-
(d, b) =>
|
|
608
|
+
s ? a(d) : f = fe(d) ? d : k;
|
|
609
|
+
}, E = i.map(
|
|
610
|
+
(d, b) => Ct(
|
|
648
611
|
d,
|
|
649
612
|
(g) => {
|
|
650
|
-
u[b] = g,
|
|
613
|
+
u[b] = g, l &= ~(1 << b), h && c();
|
|
651
614
|
},
|
|
652
615
|
() => {
|
|
653
|
-
|
|
616
|
+
l |= 1 << b;
|
|
654
617
|
}
|
|
655
618
|
)
|
|
656
619
|
);
|
|
657
|
-
return
|
|
658
|
-
|
|
620
|
+
return h = !0, c(), function() {
|
|
621
|
+
re(E), f(), h = !1;
|
|
659
622
|
};
|
|
660
623
|
});
|
|
661
624
|
}
|
|
662
|
-
function
|
|
663
|
-
return e
|
|
625
|
+
function Mr(e) {
|
|
626
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
664
627
|
}
|
|
665
|
-
var
|
|
666
|
-
return
|
|
628
|
+
var Rr = function(t) {
|
|
629
|
+
return Lr(t) && !Dr(t);
|
|
667
630
|
};
|
|
668
|
-
function
|
|
631
|
+
function Lr(e) {
|
|
669
632
|
return !!e && typeof e == "object";
|
|
670
633
|
}
|
|
671
|
-
function
|
|
634
|
+
function Dr(e) {
|
|
672
635
|
var t = Object.prototype.toString.call(e);
|
|
673
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
636
|
+
return t === "[object RegExp]" || t === "[object Date]" || Fr(e);
|
|
674
637
|
}
|
|
675
|
-
var
|
|
676
|
-
function
|
|
677
|
-
return e.$$typeof ===
|
|
638
|
+
var kr = typeof Symbol == "function" && Symbol.for, Ur = kr ? Symbol.for("react.element") : 60103;
|
|
639
|
+
function Fr(e) {
|
|
640
|
+
return e.$$typeof === Ur;
|
|
678
641
|
}
|
|
679
|
-
function
|
|
642
|
+
function Gr(e) {
|
|
680
643
|
return Array.isArray(e) ? [] : {};
|
|
681
644
|
}
|
|
682
|
-
function
|
|
683
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
645
|
+
function le(e, t) {
|
|
646
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(Gr(e), e, t) : e;
|
|
684
647
|
}
|
|
685
|
-
function
|
|
648
|
+
function $r(e, t, r) {
|
|
686
649
|
return e.concat(t).map(function(n) {
|
|
687
|
-
return
|
|
650
|
+
return le(n, r);
|
|
688
651
|
});
|
|
689
652
|
}
|
|
690
|
-
function
|
|
653
|
+
function jr(e, t) {
|
|
691
654
|
if (!t.customMerge)
|
|
692
|
-
return
|
|
655
|
+
return Y;
|
|
693
656
|
var r = t.customMerge(e);
|
|
694
|
-
return typeof r == "function" ? r :
|
|
657
|
+
return typeof r == "function" ? r : Y;
|
|
695
658
|
}
|
|
696
|
-
function
|
|
659
|
+
function Vr(e) {
|
|
697
660
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
698
661
|
return Object.propertyIsEnumerable.call(e, t);
|
|
699
662
|
}) : [];
|
|
700
663
|
}
|
|
701
|
-
function
|
|
702
|
-
return Object.keys(e).concat(
|
|
664
|
+
function st(e) {
|
|
665
|
+
return Object.keys(e).concat(Vr(e));
|
|
703
666
|
}
|
|
704
|
-
function
|
|
667
|
+
function wt(e, t) {
|
|
705
668
|
try {
|
|
706
669
|
return t in e;
|
|
707
|
-
} catch
|
|
670
|
+
} catch {
|
|
708
671
|
return !1;
|
|
709
672
|
}
|
|
710
673
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
674
|
+
function zr(e, t) {
|
|
675
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
713
676
|
}
|
|
714
|
-
function
|
|
677
|
+
function Jr(e, t, r) {
|
|
715
678
|
var n = {};
|
|
716
|
-
return r.isMergeableObject(e) &&
|
|
717
|
-
n[i] =
|
|
718
|
-
}),
|
|
719
|
-
|
|
679
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
680
|
+
n[i] = le(e[i], r);
|
|
681
|
+
}), st(t).forEach(function(i) {
|
|
682
|
+
zr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
|
|
720
683
|
}), n;
|
|
721
684
|
}
|
|
722
|
-
function
|
|
723
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
685
|
+
function Y(e, t, r) {
|
|
686
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || $r, r.isMergeableObject = r.isMergeableObject || Rr, r.cloneUnlessOtherwiseSpecified = le;
|
|
724
687
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
725
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
688
|
+
return s ? n ? r.arrayMerge(e, t, r) : Jr(e, t, r) : le(t, r);
|
|
726
689
|
}
|
|
727
|
-
|
|
690
|
+
Y.all = function(t, r) {
|
|
728
691
|
if (!Array.isArray(t))
|
|
729
692
|
throw new Error("first argument should be an array");
|
|
730
693
|
return t.reduce(function(n, i) {
|
|
731
|
-
return
|
|
694
|
+
return Y(n, i, r);
|
|
732
695
|
}, {});
|
|
733
696
|
};
|
|
734
|
-
var
|
|
735
|
-
const
|
|
736
|
-
function
|
|
737
|
-
var r = t && t.cache ? t.cache :
|
|
697
|
+
var Wr = Y, Xr = Wr;
|
|
698
|
+
const Zr = /* @__PURE__ */ Mr(Xr);
|
|
699
|
+
function Pe(e, t) {
|
|
700
|
+
var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Qr;
|
|
738
701
|
return i(e, {
|
|
739
702
|
cache: r,
|
|
740
703
|
serializer: n
|
|
741
704
|
});
|
|
742
705
|
}
|
|
743
|
-
function
|
|
706
|
+
function qr(e) {
|
|
744
707
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
745
708
|
}
|
|
746
|
-
function
|
|
747
|
-
var i =
|
|
748
|
-
return typeof s
|
|
709
|
+
function Nt(e, t, r, n) {
|
|
710
|
+
var i = qr(n) ? n : r(n), s = t.get(i);
|
|
711
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
749
712
|
}
|
|
750
|
-
function
|
|
713
|
+
function Ot(e, t, r) {
|
|
751
714
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
752
|
-
return typeof s
|
|
715
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
753
716
|
}
|
|
754
|
-
function
|
|
717
|
+
function Qe(e, t, r, n, i) {
|
|
755
718
|
return r.bind(t, e, n, i);
|
|
756
719
|
}
|
|
757
|
-
function
|
|
758
|
-
var r = e.length === 1 ?
|
|
759
|
-
return
|
|
720
|
+
function Qr(e, t) {
|
|
721
|
+
var r = e.length === 1 ? Nt : Ot;
|
|
722
|
+
return Qe(e, this, r, t.cache.create(), t.serializer);
|
|
760
723
|
}
|
|
761
|
-
function
|
|
762
|
-
return
|
|
724
|
+
function Yr(e, t) {
|
|
725
|
+
return Qe(e, this, Ot, t.cache.create(), t.serializer);
|
|
763
726
|
}
|
|
764
|
-
function
|
|
765
|
-
return
|
|
727
|
+
function Kr(e, t) {
|
|
728
|
+
return Qe(e, this, Nt, t.cache.create(), t.serializer);
|
|
766
729
|
}
|
|
767
|
-
var
|
|
730
|
+
var en = function() {
|
|
768
731
|
return JSON.stringify(arguments);
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
732
|
+
}, tn = (
|
|
733
|
+
/** @class */
|
|
734
|
+
function() {
|
|
735
|
+
function e() {
|
|
736
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
737
|
+
}
|
|
738
|
+
return e.prototype.get = function(t) {
|
|
739
|
+
return this.cache[t];
|
|
740
|
+
}, e.prototype.set = function(t, r) {
|
|
741
|
+
this.cache[t] = r;
|
|
742
|
+
}, e;
|
|
743
|
+
}()
|
|
744
|
+
), rn = {
|
|
780
745
|
create: function() {
|
|
781
|
-
return new
|
|
746
|
+
return new tn();
|
|
782
747
|
}
|
|
783
|
-
},
|
|
784
|
-
variadic:
|
|
785
|
-
monadic:
|
|
748
|
+
}, Ie = {
|
|
749
|
+
variadic: Yr,
|
|
750
|
+
monadic: Kr
|
|
786
751
|
}, _;
|
|
787
752
|
(function(e) {
|
|
788
753
|
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";
|
|
@@ -791,47 +756,47 @@ var A;
|
|
|
791
756
|
(function(e) {
|
|
792
757
|
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";
|
|
793
758
|
})(A || (A = {}));
|
|
794
|
-
var
|
|
759
|
+
var K;
|
|
795
760
|
(function(e) {
|
|
796
761
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
797
|
-
})(
|
|
798
|
-
function
|
|
762
|
+
})(K || (K = {}));
|
|
763
|
+
function at(e) {
|
|
799
764
|
return e.type === A.literal;
|
|
800
765
|
}
|
|
801
|
-
function
|
|
766
|
+
function nn(e) {
|
|
802
767
|
return e.type === A.argument;
|
|
803
768
|
}
|
|
804
|
-
function
|
|
769
|
+
function Pt(e) {
|
|
805
770
|
return e.type === A.number;
|
|
806
771
|
}
|
|
807
|
-
function
|
|
772
|
+
function It(e) {
|
|
808
773
|
return e.type === A.date;
|
|
809
774
|
}
|
|
810
|
-
function
|
|
775
|
+
function Mt(e) {
|
|
811
776
|
return e.type === A.time;
|
|
812
777
|
}
|
|
813
|
-
function
|
|
778
|
+
function Rt(e) {
|
|
814
779
|
return e.type === A.select;
|
|
815
780
|
}
|
|
816
|
-
function
|
|
781
|
+
function Lt(e) {
|
|
817
782
|
return e.type === A.plural;
|
|
818
783
|
}
|
|
819
|
-
function
|
|
784
|
+
function sn(e) {
|
|
820
785
|
return e.type === A.pound;
|
|
821
786
|
}
|
|
822
|
-
function
|
|
787
|
+
function Dt(e) {
|
|
823
788
|
return e.type === A.tag;
|
|
824
789
|
}
|
|
825
|
-
function
|
|
826
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
790
|
+
function kt(e) {
|
|
791
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
827
792
|
}
|
|
828
|
-
function
|
|
829
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
793
|
+
function je(e) {
|
|
794
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
830
795
|
}
|
|
831
|
-
var
|
|
832
|
-
function
|
|
796
|
+
var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, an = /(?:[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;
|
|
797
|
+
function on(e) {
|
|
833
798
|
var t = {};
|
|
834
|
-
return e.replace(
|
|
799
|
+
return e.replace(an, function(r) {
|
|
835
800
|
var n = r.length;
|
|
836
801
|
switch (r[0]) {
|
|
837
802
|
case "G":
|
|
@@ -920,36 +885,36 @@ function yn(e) {
|
|
|
920
885
|
return "";
|
|
921
886
|
}), t;
|
|
922
887
|
}
|
|
923
|
-
var
|
|
924
|
-
function
|
|
888
|
+
var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
889
|
+
function ln(e) {
|
|
925
890
|
if (e.length === 0)
|
|
926
891
|
throw new Error("Number skeleton cannot be empty");
|
|
927
|
-
for (var t = e.split(
|
|
928
|
-
return
|
|
892
|
+
for (var t = e.split(un).filter(function(c) {
|
|
893
|
+
return c.length > 0;
|
|
929
894
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
930
895
|
var s = i[n], a = s.split("/");
|
|
931
896
|
if (a.length === 0)
|
|
932
897
|
throw new Error("Invalid number skeleton");
|
|
933
|
-
for (var o = a[0],
|
|
934
|
-
var
|
|
935
|
-
if (
|
|
898
|
+
for (var o = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
899
|
+
var f = l[u];
|
|
900
|
+
if (f.length === 0)
|
|
936
901
|
throw new Error("Invalid number skeleton");
|
|
937
902
|
}
|
|
938
|
-
r.push({ stem: o, options:
|
|
903
|
+
r.push({ stem: o, options: h });
|
|
939
904
|
}
|
|
940
905
|
return r;
|
|
941
906
|
}
|
|
942
|
-
function
|
|
907
|
+
function hn(e) {
|
|
943
908
|
return e.replace(/^(.*?)-/, "");
|
|
944
909
|
}
|
|
945
|
-
var
|
|
946
|
-
function
|
|
910
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
|
|
911
|
+
function ut(e) {
|
|
947
912
|
var t = {};
|
|
948
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
913
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
|
|
949
914
|
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)), "";
|
|
950
915
|
}), t;
|
|
951
916
|
}
|
|
952
|
-
function
|
|
917
|
+
function $t(e) {
|
|
953
918
|
switch (e) {
|
|
954
919
|
case "sign-auto":
|
|
955
920
|
return {
|
|
@@ -989,7 +954,7 @@ function Zt(e) {
|
|
|
989
954
|
};
|
|
990
955
|
}
|
|
991
956
|
}
|
|
992
|
-
function
|
|
957
|
+
function cn(e) {
|
|
993
958
|
var t;
|
|
994
959
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
995
960
|
notation: "engineering"
|
|
@@ -997,17 +962,17 @@ function Sn(e) {
|
|
|
997
962
|
notation: "scientific"
|
|
998
963
|
}, e = e.slice(1)), t) {
|
|
999
964
|
var r = e.slice(0, 2);
|
|
1000
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
965
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
|
|
1001
966
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1002
967
|
t.minimumIntegerDigits = e.length;
|
|
1003
968
|
}
|
|
1004
969
|
return t;
|
|
1005
970
|
}
|
|
1006
|
-
function
|
|
1007
|
-
var t = {}, r =
|
|
971
|
+
function lt(e) {
|
|
972
|
+
var t = {}, r = $t(e);
|
|
1008
973
|
return r || t;
|
|
1009
974
|
}
|
|
1010
|
-
function
|
|
975
|
+
function mn(e) {
|
|
1011
976
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1012
977
|
var i = n[r];
|
|
1013
978
|
switch (i.stem) {
|
|
@@ -1031,7 +996,7 @@ function Tn(e) {
|
|
|
1031
996
|
continue;
|
|
1032
997
|
case "measure-unit":
|
|
1033
998
|
case "unit":
|
|
1034
|
-
t.style = "unit", t.unit =
|
|
999
|
+
t.style = "unit", t.unit = hn(i.options[0]);
|
|
1035
1000
|
continue;
|
|
1036
1001
|
case "compact-short":
|
|
1037
1002
|
case "K":
|
|
@@ -1042,13 +1007,13 @@ function Tn(e) {
|
|
|
1042
1007
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1043
1008
|
continue;
|
|
1044
1009
|
case "scientific":
|
|
1045
|
-
t =
|
|
1046
|
-
return
|
|
1010
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1011
|
+
return v(v({}, h), lt(u));
|
|
1047
1012
|
}, {}));
|
|
1048
1013
|
continue;
|
|
1049
1014
|
case "engineering":
|
|
1050
|
-
t =
|
|
1051
|
-
return
|
|
1015
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1016
|
+
return v(v({}, h), lt(u));
|
|
1052
1017
|
}, {}));
|
|
1053
1018
|
continue;
|
|
1054
1019
|
case "notation-simple":
|
|
@@ -1093,45 +1058,45 @@ function Tn(e) {
|
|
|
1093
1058
|
case "integer-width":
|
|
1094
1059
|
if (i.options.length > 1)
|
|
1095
1060
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1096
|
-
i.options[0].replace(
|
|
1061
|
+
i.options[0].replace(fn, function(h, u, l, f, c, E) {
|
|
1097
1062
|
if (u)
|
|
1098
|
-
t.minimumIntegerDigits =
|
|
1063
|
+
t.minimumIntegerDigits = l.length;
|
|
1099
1064
|
else {
|
|
1100
|
-
if (
|
|
1065
|
+
if (f && c)
|
|
1101
1066
|
throw new Error("We currently do not support maximum integer digits");
|
|
1102
|
-
if (
|
|
1067
|
+
if (E)
|
|
1103
1068
|
throw new Error("We currently do not support exact integer digits");
|
|
1104
1069
|
}
|
|
1105
1070
|
return "";
|
|
1106
1071
|
});
|
|
1107
1072
|
continue;
|
|
1108
1073
|
}
|
|
1109
|
-
if (
|
|
1074
|
+
if (Gt.test(i.stem)) {
|
|
1110
1075
|
t.minimumIntegerDigits = i.stem.length;
|
|
1111
1076
|
continue;
|
|
1112
1077
|
}
|
|
1113
|
-
if (
|
|
1078
|
+
if (ot.test(i.stem)) {
|
|
1114
1079
|
if (i.options.length > 1)
|
|
1115
1080
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1116
|
-
i.stem.replace(
|
|
1117
|
-
return
|
|
1081
|
+
i.stem.replace(ot, function(h, u, l, f, c, E) {
|
|
1082
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && E ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1118
1083
|
});
|
|
1119
1084
|
var s = i.options[0];
|
|
1120
|
-
s === "w" ? t =
|
|
1085
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), ut(s)));
|
|
1121
1086
|
continue;
|
|
1122
1087
|
}
|
|
1123
|
-
if (
|
|
1124
|
-
t =
|
|
1088
|
+
if (Ft.test(i.stem)) {
|
|
1089
|
+
t = v(v({}, t), ut(i.stem));
|
|
1125
1090
|
continue;
|
|
1126
1091
|
}
|
|
1127
|
-
var a =
|
|
1128
|
-
a && (t =
|
|
1129
|
-
var o =
|
|
1130
|
-
o && (t =
|
|
1092
|
+
var a = $t(i.stem);
|
|
1093
|
+
a && (t = v(v({}, t), a));
|
|
1094
|
+
var o = cn(i.stem);
|
|
1095
|
+
o && (t = v(v({}, t), o));
|
|
1131
1096
|
}
|
|
1132
1097
|
return t;
|
|
1133
1098
|
}
|
|
1134
|
-
var
|
|
1099
|
+
var ge = {
|
|
1135
1100
|
"001": [
|
|
1136
1101
|
"H",
|
|
1137
1102
|
"h"
|
|
@@ -2546,22 +2511,22 @@ var pe = {
|
|
|
2546
2511
|
"h"
|
|
2547
2512
|
]
|
|
2548
2513
|
};
|
|
2549
|
-
function
|
|
2514
|
+
function dn(e, t) {
|
|
2550
2515
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2551
2516
|
var i = e.charAt(n);
|
|
2552
2517
|
if (i === "j") {
|
|
2553
2518
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2554
2519
|
s++, n++;
|
|
2555
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1),
|
|
2520
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = bn(t);
|
|
2556
2521
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2557
|
-
r +=
|
|
2522
|
+
r += h;
|
|
2558
2523
|
for (; a-- > 0; )
|
|
2559
2524
|
r = u + r;
|
|
2560
2525
|
} else i === "J" ? r += "H" : r += i;
|
|
2561
2526
|
}
|
|
2562
2527
|
return r;
|
|
2563
2528
|
}
|
|
2564
|
-
function
|
|
2529
|
+
function bn(e) {
|
|
2565
2530
|
var t = e.hourCycle;
|
|
2566
2531
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2567
2532
|
e.hourCycles && // @ts-ignore
|
|
@@ -2580,23 +2545,23 @@ function Hn(e) {
|
|
|
2580
2545
|
}
|
|
2581
2546
|
var r = e.language, n;
|
|
2582
2547
|
r !== "root" && (n = e.maximize().region);
|
|
2583
|
-
var i =
|
|
2548
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2584
2549
|
return i[0];
|
|
2585
2550
|
}
|
|
2586
|
-
var
|
|
2587
|
-
function
|
|
2551
|
+
var Me, gn = new RegExp("^".concat(Ut.source, "*")), pn = new RegExp("".concat(Ut.source, "*$"));
|
|
2552
|
+
function x(e, t) {
|
|
2588
2553
|
return { start: e, end: t };
|
|
2589
2554
|
}
|
|
2590
|
-
var
|
|
2555
|
+
var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), _n = !!String.fromCodePoint, En = !!Object.fromEntries, xn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, Sn = !!String.prototype.trimEnd, Tn = !!Number.isSafeInteger, An = Tn ? Number.isSafeInteger : function(e) {
|
|
2591
2556
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2592
|
-
},
|
|
2557
|
+
}, Ve = !0;
|
|
2593
2558
|
try {
|
|
2594
|
-
var
|
|
2595
|
-
|
|
2596
|
-
} catch
|
|
2597
|
-
|
|
2559
|
+
var Hn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2560
|
+
Ve = ((Me = Hn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
|
|
2561
|
+
} catch {
|
|
2562
|
+
Ve = !1;
|
|
2598
2563
|
}
|
|
2599
|
-
var
|
|
2564
|
+
var ht = yn ? (
|
|
2600
2565
|
// Native
|
|
2601
2566
|
function(t, r, n) {
|
|
2602
2567
|
return t.startsWith(r, n);
|
|
@@ -2606,7 +2571,7 @@ var pt = wn ? (
|
|
|
2606
2571
|
function(t, r, n) {
|
|
2607
2572
|
return t.slice(n, n + r.length) === r;
|
|
2608
2573
|
}
|
|
2609
|
-
),
|
|
2574
|
+
), ze = _n ? String.fromCodePoint : (
|
|
2610
2575
|
// IE11
|
|
2611
2576
|
function() {
|
|
2612
2577
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2618,9 +2583,9 @@ var pt = wn ? (
|
|
|
2618
2583
|
}
|
|
2619
2584
|
return n;
|
|
2620
2585
|
}
|
|
2621
|
-
),
|
|
2586
|
+
), ft = (
|
|
2622
2587
|
// native
|
|
2623
|
-
|
|
2588
|
+
En ? Object.fromEntries : (
|
|
2624
2589
|
// Ponyfill
|
|
2625
2590
|
function(t) {
|
|
2626
2591
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2630,7 +2595,7 @@ var pt = wn ? (
|
|
|
2630
2595
|
return r;
|
|
2631
2596
|
}
|
|
2632
2597
|
)
|
|
2633
|
-
),
|
|
2598
|
+
), jt = xn ? (
|
|
2634
2599
|
// Native
|
|
2635
2600
|
function(t, r) {
|
|
2636
2601
|
return t.codePointAt(r);
|
|
@@ -2644,7 +2609,7 @@ var pt = wn ? (
|
|
|
2644
2609
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2645
2610
|
}
|
|
2646
2611
|
}
|
|
2647
|
-
),
|
|
2612
|
+
), Cn = vn ? (
|
|
2648
2613
|
// Native
|
|
2649
2614
|
function(t) {
|
|
2650
2615
|
return t.trimStart();
|
|
@@ -2652,9 +2617,9 @@ var pt = wn ? (
|
|
|
2652
2617
|
) : (
|
|
2653
2618
|
// Ponyfill
|
|
2654
2619
|
function(t) {
|
|
2655
|
-
return t.replace(
|
|
2620
|
+
return t.replace(gn, "");
|
|
2656
2621
|
}
|
|
2657
|
-
),
|
|
2622
|
+
), Bn = Sn ? (
|
|
2658
2623
|
// Native
|
|
2659
2624
|
function(t) {
|
|
2660
2625
|
return t.trimEnd();
|
|
@@ -2662,32 +2627,32 @@ var pt = wn ? (
|
|
|
2662
2627
|
) : (
|
|
2663
2628
|
// Ponyfill
|
|
2664
2629
|
function(t) {
|
|
2665
|
-
return t.replace(
|
|
2630
|
+
return t.replace(pn, "");
|
|
2666
2631
|
}
|
|
2667
2632
|
);
|
|
2668
|
-
function
|
|
2633
|
+
function Vt(e, t) {
|
|
2669
2634
|
return new RegExp(e, t);
|
|
2670
2635
|
}
|
|
2671
|
-
var
|
|
2672
|
-
if (
|
|
2673
|
-
var
|
|
2674
|
-
|
|
2636
|
+
var Je;
|
|
2637
|
+
if (Ve) {
|
|
2638
|
+
var ct = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2639
|
+
Je = function(t, r) {
|
|
2675
2640
|
var n;
|
|
2676
|
-
|
|
2677
|
-
var i =
|
|
2641
|
+
ct.lastIndex = r;
|
|
2642
|
+
var i = ct.exec(t);
|
|
2678
2643
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2679
2644
|
};
|
|
2680
2645
|
} else
|
|
2681
|
-
|
|
2646
|
+
Je = function(t, r) {
|
|
2682
2647
|
for (var n = []; ; ) {
|
|
2683
|
-
var i =
|
|
2684
|
-
if (i === void 0 ||
|
|
2648
|
+
var i = jt(t, r);
|
|
2649
|
+
if (i === void 0 || zt(i) || Pn(i))
|
|
2685
2650
|
break;
|
|
2686
2651
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2687
2652
|
}
|
|
2688
|
-
return
|
|
2653
|
+
return ze.apply(void 0, n);
|
|
2689
2654
|
};
|
|
2690
|
-
var
|
|
2655
|
+
var wn = (
|
|
2691
2656
|
/** @class */
|
|
2692
2657
|
function() {
|
|
2693
2658
|
function e(t, r) {
|
|
@@ -2712,13 +2677,13 @@ var Fn = (
|
|
|
2712
2677
|
var o = this.clonePosition();
|
|
2713
2678
|
this.bump(), i.push({
|
|
2714
2679
|
type: A.pound,
|
|
2715
|
-
location:
|
|
2680
|
+
location: x(o, this.clonePosition())
|
|
2716
2681
|
});
|
|
2717
2682
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2718
2683
|
if (n)
|
|
2719
2684
|
break;
|
|
2720
|
-
return this.error(_.UNMATCHED_CLOSING_TAG,
|
|
2721
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2685
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
|
|
2686
|
+
} else if (s === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
2722
2687
|
var a = this.parseTag(t, r);
|
|
2723
2688
|
if (a.err)
|
|
2724
2689
|
return a;
|
|
@@ -2741,7 +2706,7 @@ var Fn = (
|
|
|
2741
2706
|
val: {
|
|
2742
2707
|
type: A.literal,
|
|
2743
2708
|
value: "<".concat(i, "/>"),
|
|
2744
|
-
location:
|
|
2709
|
+
location: x(n, this.clonePosition())
|
|
2745
2710
|
},
|
|
2746
2711
|
err: null
|
|
2747
2712
|
};
|
|
@@ -2751,25 +2716,25 @@ var Fn = (
|
|
|
2751
2716
|
return s;
|
|
2752
2717
|
var a = s.val, o = this.clonePosition();
|
|
2753
2718
|
if (this.bumpIf("</")) {
|
|
2754
|
-
if (this.isEOF() || !
|
|
2755
|
-
return this.error(_.INVALID_TAG,
|
|
2756
|
-
var
|
|
2757
|
-
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG,
|
|
2719
|
+
if (this.isEOF() || !We(this.char()))
|
|
2720
|
+
return this.error(_.INVALID_TAG, x(o, this.clonePosition()));
|
|
2721
|
+
var h = this.clonePosition(), u = this.parseTagName();
|
|
2722
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, x(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2758
2723
|
val: {
|
|
2759
2724
|
type: A.tag,
|
|
2760
2725
|
value: i,
|
|
2761
2726
|
children: a,
|
|
2762
|
-
location:
|
|
2727
|
+
location: x(n, this.clonePosition())
|
|
2763
2728
|
},
|
|
2764
2729
|
err: null
|
|
2765
|
-
} : this.error(_.INVALID_TAG,
|
|
2730
|
+
} : this.error(_.INVALID_TAG, x(o, this.clonePosition())));
|
|
2766
2731
|
} else
|
|
2767
|
-
return this.error(_.UNCLOSED_TAG,
|
|
2732
|
+
return this.error(_.UNCLOSED_TAG, x(n, this.clonePosition()));
|
|
2768
2733
|
} else
|
|
2769
|
-
return this.error(_.INVALID_TAG,
|
|
2734
|
+
return this.error(_.INVALID_TAG, x(n, this.clonePosition()));
|
|
2770
2735
|
}, e.prototype.parseTagName = function() {
|
|
2771
2736
|
var t = this.offset();
|
|
2772
|
-
for (this.bump(); !this.isEOF() &&
|
|
2737
|
+
for (this.bump(); !this.isEOF() && On(this.char()); )
|
|
2773
2738
|
this.bump();
|
|
2774
2739
|
return this.message.slice(t, this.offset());
|
|
2775
2740
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2791,14 +2756,14 @@ var Fn = (
|
|
|
2791
2756
|
}
|
|
2792
2757
|
break;
|
|
2793
2758
|
}
|
|
2794
|
-
var
|
|
2759
|
+
var h = x(n, this.clonePosition());
|
|
2795
2760
|
return {
|
|
2796
|
-
val: { type: A.literal, value: i, location:
|
|
2761
|
+
val: { type: A.literal, value: i, location: h },
|
|
2797
2762
|
err: null
|
|
2798
2763
|
};
|
|
2799
2764
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2800
2765
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2801
|
-
!
|
|
2766
|
+
!Nn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2802
2767
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2803
2768
|
if (this.isEOF() || this.char() !== 39)
|
|
2804
2769
|
return null;
|
|
@@ -2832,23 +2797,23 @@ var Fn = (
|
|
|
2832
2797
|
r.push(n);
|
|
2833
2798
|
this.bump();
|
|
2834
2799
|
}
|
|
2835
|
-
return
|
|
2800
|
+
return ze.apply(void 0, r);
|
|
2836
2801
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2837
2802
|
if (this.isEOF())
|
|
2838
2803
|
return null;
|
|
2839
2804
|
var n = this.char();
|
|
2840
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2805
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
|
|
2841
2806
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2842
2807
|
var n = this.clonePosition();
|
|
2843
2808
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2844
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2809
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
|
|
2845
2810
|
if (this.char() === 125)
|
|
2846
|
-
return this.bump(), this.error(_.EMPTY_ARGUMENT,
|
|
2811
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, x(n, this.clonePosition()));
|
|
2847
2812
|
var i = this.parseIdentifierIfPossible().value;
|
|
2848
2813
|
if (!i)
|
|
2849
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
2814
|
+
return this.error(_.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
2850
2815
|
if (this.bumpSpace(), this.isEOF())
|
|
2851
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2816
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
|
|
2852
2817
|
switch (this.char()) {
|
|
2853
2818
|
case 125:
|
|
2854
2819
|
return this.bump(), {
|
|
@@ -2856,25 +2821,25 @@ var Fn = (
|
|
|
2856
2821
|
type: A.argument,
|
|
2857
2822
|
// value does not include the opening and closing braces.
|
|
2858
2823
|
value: i,
|
|
2859
|
-
location:
|
|
2824
|
+
location: x(n, this.clonePosition())
|
|
2860
2825
|
},
|
|
2861
2826
|
err: null
|
|
2862
2827
|
};
|
|
2863
2828
|
case 44:
|
|
2864
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2829
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2865
2830
|
default:
|
|
2866
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
2831
|
+
return this.error(_.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
2867
2832
|
}
|
|
2868
2833
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2869
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2834
|
+
var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
|
|
2870
2835
|
this.bumpTo(i);
|
|
2871
|
-
var s = this.clonePosition(), a =
|
|
2836
|
+
var s = this.clonePosition(), a = x(t, s);
|
|
2872
2837
|
return { value: n, location: a };
|
|
2873
2838
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2874
|
-
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value,
|
|
2839
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2875
2840
|
switch (o) {
|
|
2876
2841
|
case "":
|
|
2877
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE,
|
|
2842
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, x(a, h));
|
|
2878
2843
|
case "number":
|
|
2879
2844
|
case "date":
|
|
2880
2845
|
case "time": {
|
|
@@ -2882,40 +2847,40 @@ var Fn = (
|
|
|
2882
2847
|
var u = null;
|
|
2883
2848
|
if (this.bumpIf(",")) {
|
|
2884
2849
|
this.bumpSpace();
|
|
2885
|
-
var
|
|
2886
|
-
if (
|
|
2887
|
-
return
|
|
2888
|
-
var
|
|
2889
|
-
if (
|
|
2890
|
-
return this.error(_.EXPECT_ARGUMENT_STYLE,
|
|
2891
|
-
var
|
|
2892
|
-
u = { style:
|
|
2850
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2851
|
+
if (f.err)
|
|
2852
|
+
return f;
|
|
2853
|
+
var c = Bn(f.val);
|
|
2854
|
+
if (c.length === 0)
|
|
2855
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
|
|
2856
|
+
var E = x(l, this.clonePosition());
|
|
2857
|
+
u = { style: c, styleLocation: E };
|
|
2893
2858
|
}
|
|
2894
2859
|
var d = this.tryParseArgumentClose(i);
|
|
2895
2860
|
if (d.err)
|
|
2896
2861
|
return d;
|
|
2897
|
-
var b =
|
|
2898
|
-
if (u &&
|
|
2899
|
-
var g =
|
|
2862
|
+
var b = x(i, this.clonePosition());
|
|
2863
|
+
if (u && ht(u?.style, "::", 0)) {
|
|
2864
|
+
var g = Cn(u.style.slice(2));
|
|
2900
2865
|
if (o === "number") {
|
|
2901
|
-
var
|
|
2902
|
-
return
|
|
2903
|
-
val: { type: A.number, value: n, location: b, style:
|
|
2866
|
+
var f = this.parseNumberSkeletonFromString(g, u.styleLocation);
|
|
2867
|
+
return f.err ? f : {
|
|
2868
|
+
val: { type: A.number, value: n, location: b, style: f.val },
|
|
2904
2869
|
err: null
|
|
2905
2870
|
};
|
|
2906
2871
|
} else {
|
|
2907
2872
|
if (g.length === 0)
|
|
2908
2873
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, b);
|
|
2909
2874
|
var p = g;
|
|
2910
|
-
this.locale && (p =
|
|
2911
|
-
var
|
|
2912
|
-
type:
|
|
2875
|
+
this.locale && (p = dn(g, this.locale));
|
|
2876
|
+
var c = {
|
|
2877
|
+
type: K.dateTime,
|
|
2913
2878
|
pattern: p,
|
|
2914
2879
|
location: u.styleLocation,
|
|
2915
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2880
|
+
parsedOptions: this.shouldParseSkeletons ? on(p) : {}
|
|
2916
2881
|
}, T = o === "date" ? A.date : A.time;
|
|
2917
2882
|
return {
|
|
2918
|
-
val: { type: T, value: n, location: b, style:
|
|
2883
|
+
val: { type: T, value: n, location: b, style: c },
|
|
2919
2884
|
err: null
|
|
2920
2885
|
};
|
|
2921
2886
|
}
|
|
@@ -2925,7 +2890,7 @@ var Fn = (
|
|
|
2925
2890
|
type: o === "number" ? A.number : o === "date" ? A.date : A.time,
|
|
2926
2891
|
value: n,
|
|
2927
2892
|
location: b,
|
|
2928
|
-
style: (s = u
|
|
2893
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2929
2894
|
},
|
|
2930
2895
|
err: null
|
|
2931
2896
|
};
|
|
@@ -2935,30 +2900,30 @@ var Fn = (
|
|
|
2935
2900
|
case "select": {
|
|
2936
2901
|
var N = this.clonePosition();
|
|
2937
2902
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2938
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2903
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, x(N, v({}, N)));
|
|
2939
2904
|
this.bumpSpace();
|
|
2940
2905
|
var H = this.parseIdentifierIfPossible(), C = 0;
|
|
2941
2906
|
if (o !== "select" && H.value === "offset") {
|
|
2942
2907
|
if (!this.bumpIf(":"))
|
|
2943
|
-
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2908
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x(this.clonePosition(), this.clonePosition()));
|
|
2944
2909
|
this.bumpSpace();
|
|
2945
|
-
var
|
|
2946
|
-
if (
|
|
2947
|
-
return
|
|
2948
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(), C =
|
|
2910
|
+
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2911
|
+
if (f.err)
|
|
2912
|
+
return f;
|
|
2913
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), C = f.val;
|
|
2949
2914
|
}
|
|
2950
|
-
var
|
|
2951
|
-
if (
|
|
2952
|
-
return
|
|
2915
|
+
var U = this.tryParsePluralOrSelectOptions(t, o, r, H);
|
|
2916
|
+
if (U.err)
|
|
2917
|
+
return U;
|
|
2953
2918
|
var d = this.tryParseArgumentClose(i);
|
|
2954
2919
|
if (d.err)
|
|
2955
2920
|
return d;
|
|
2956
|
-
var D =
|
|
2921
|
+
var D = x(i, this.clonePosition());
|
|
2957
2922
|
return o === "select" ? {
|
|
2958
2923
|
val: {
|
|
2959
2924
|
type: A.select,
|
|
2960
2925
|
value: n,
|
|
2961
|
-
options:
|
|
2926
|
+
options: ft(U.val),
|
|
2962
2927
|
location: D
|
|
2963
2928
|
},
|
|
2964
2929
|
err: null
|
|
@@ -2966,7 +2931,7 @@ var Fn = (
|
|
|
2966
2931
|
val: {
|
|
2967
2932
|
type: A.plural,
|
|
2968
2933
|
value: n,
|
|
2969
|
-
options:
|
|
2934
|
+
options: ft(U.val),
|
|
2970
2935
|
offset: C,
|
|
2971
2936
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2972
2937
|
location: D
|
|
@@ -2975,10 +2940,10 @@ var Fn = (
|
|
|
2975
2940
|
};
|
|
2976
2941
|
}
|
|
2977
2942
|
default:
|
|
2978
|
-
return this.error(_.INVALID_ARGUMENT_TYPE,
|
|
2943
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, x(a, h));
|
|
2979
2944
|
}
|
|
2980
2945
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2981
|
-
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2946
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, x(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2982
2947
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2983
2948
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2984
2949
|
var n = this.char();
|
|
@@ -2987,7 +2952,7 @@ var Fn = (
|
|
|
2987
2952
|
this.bump();
|
|
2988
2953
|
var i = this.clonePosition();
|
|
2989
2954
|
if (!this.bumpUntil("'"))
|
|
2990
|
-
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2955
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, x(i, this.clonePosition()));
|
|
2991
2956
|
this.bump();
|
|
2992
2957
|
break;
|
|
2993
2958
|
}
|
|
@@ -3017,52 +2982,52 @@ var Fn = (
|
|
|
3017
2982
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3018
2983
|
var n = [];
|
|
3019
2984
|
try {
|
|
3020
|
-
n =
|
|
3021
|
-
} catch
|
|
2985
|
+
n = ln(t);
|
|
2986
|
+
} catch {
|
|
3022
2987
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3023
2988
|
}
|
|
3024
2989
|
return {
|
|
3025
2990
|
val: {
|
|
3026
|
-
type:
|
|
2991
|
+
type: K.number,
|
|
3027
2992
|
tokens: n,
|
|
3028
2993
|
location: r,
|
|
3029
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2994
|
+
parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
|
|
3030
2995
|
},
|
|
3031
2996
|
err: null
|
|
3032
2997
|
};
|
|
3033
2998
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3034
|
-
for (var s, a = !1, o = [],
|
|
2999
|
+
for (var s, a = !1, o = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3035
3000
|
if (u.length === 0) {
|
|
3036
|
-
var
|
|
3001
|
+
var f = this.clonePosition();
|
|
3037
3002
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3038
|
-
var
|
|
3039
|
-
if (
|
|
3040
|
-
return
|
|
3041
|
-
|
|
3003
|
+
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3004
|
+
if (c.err)
|
|
3005
|
+
return c;
|
|
3006
|
+
l = x(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3042
3007
|
} else
|
|
3043
3008
|
break;
|
|
3044
3009
|
}
|
|
3045
|
-
if (
|
|
3046
|
-
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3010
|
+
if (h.has(u))
|
|
3011
|
+
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3047
3012
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3048
|
-
var
|
|
3013
|
+
var E = this.clonePosition();
|
|
3049
3014
|
if (!this.bumpIf("{"))
|
|
3050
|
-
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3015
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, x(this.clonePosition(), this.clonePosition()));
|
|
3051
3016
|
var d = this.parseMessage(t + 1, r, n);
|
|
3052
3017
|
if (d.err)
|
|
3053
3018
|
return d;
|
|
3054
|
-
var b = this.tryParseArgumentClose(
|
|
3019
|
+
var b = this.tryParseArgumentClose(E);
|
|
3055
3020
|
if (b.err)
|
|
3056
3021
|
return b;
|
|
3057
3022
|
o.push([
|
|
3058
3023
|
u,
|
|
3059
3024
|
{
|
|
3060
3025
|
value: d.val,
|
|
3061
|
-
location: E
|
|
3026
|
+
location: x(E, this.clonePosition())
|
|
3062
3027
|
}
|
|
3063
|
-
]),
|
|
3028
|
+
]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
|
|
3064
3029
|
}
|
|
3065
|
-
return o.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3030
|
+
return o.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, x(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, x(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3066
3031
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3067
3032
|
var n = 1, i = this.clonePosition();
|
|
3068
3033
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3073,8 +3038,8 @@ var Fn = (
|
|
|
3073
3038
|
else
|
|
3074
3039
|
break;
|
|
3075
3040
|
}
|
|
3076
|
-
var
|
|
3077
|
-
return s ? (a *= n,
|
|
3041
|
+
var h = x(i, this.clonePosition());
|
|
3042
|
+
return s ? (a *= n, An(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3078
3043
|
}, e.prototype.offset = function() {
|
|
3079
3044
|
return this.position.offset;
|
|
3080
3045
|
}, e.prototype.isEOF = function() {
|
|
@@ -3089,7 +3054,7 @@ var Fn = (
|
|
|
3089
3054
|
var t = this.position.offset;
|
|
3090
3055
|
if (t >= this.message.length)
|
|
3091
3056
|
throw Error("out of bound");
|
|
3092
|
-
var r =
|
|
3057
|
+
var r = jt(this.message, t);
|
|
3093
3058
|
if (r === void 0)
|
|
3094
3059
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3095
3060
|
return r;
|
|
@@ -3108,7 +3073,7 @@ var Fn = (
|
|
|
3108
3073
|
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);
|
|
3109
3074
|
}
|
|
3110
3075
|
}, e.prototype.bumpIf = function(t) {
|
|
3111
|
-
if (
|
|
3076
|
+
if (ht(this.message, t, this.offset())) {
|
|
3112
3077
|
for (var r = 0; r < t.length; r++)
|
|
3113
3078
|
this.bump();
|
|
3114
3079
|
return !0;
|
|
@@ -3130,56 +3095,56 @@ var Fn = (
|
|
|
3130
3095
|
break;
|
|
3131
3096
|
}
|
|
3132
3097
|
}, e.prototype.bumpSpace = function() {
|
|
3133
|
-
for (; !this.isEOF() &&
|
|
3098
|
+
for (; !this.isEOF() && zt(this.char()); )
|
|
3134
3099
|
this.bump();
|
|
3135
3100
|
}, e.prototype.peek = function() {
|
|
3136
3101
|
if (this.isEOF())
|
|
3137
3102
|
return null;
|
|
3138
3103
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3139
|
-
return n
|
|
3104
|
+
return n ?? null;
|
|
3140
3105
|
}, e;
|
|
3141
3106
|
}()
|
|
3142
3107
|
);
|
|
3143
|
-
function
|
|
3108
|
+
function We(e) {
|
|
3144
3109
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3145
3110
|
}
|
|
3146
|
-
function
|
|
3147
|
-
return
|
|
3111
|
+
function Nn(e) {
|
|
3112
|
+
return We(e) || e === 47;
|
|
3148
3113
|
}
|
|
3149
|
-
function
|
|
3114
|
+
function On(e) {
|
|
3150
3115
|
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;
|
|
3151
3116
|
}
|
|
3152
|
-
function
|
|
3117
|
+
function zt(e) {
|
|
3153
3118
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3154
3119
|
}
|
|
3155
|
-
function
|
|
3120
|
+
function Pn(e) {
|
|
3156
3121
|
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;
|
|
3157
3122
|
}
|
|
3158
|
-
function
|
|
3123
|
+
function Xe(e) {
|
|
3159
3124
|
e.forEach(function(t) {
|
|
3160
|
-
if (delete t.location,
|
|
3125
|
+
if (delete t.location, Rt(t) || Lt(t))
|
|
3161
3126
|
for (var r in t.options)
|
|
3162
|
-
delete t.options[r].location,
|
|
3163
|
-
else
|
|
3127
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3128
|
+
else Pt(t) && kt(t.style) || (It(t) || Mt(t)) && je(t.style) ? delete t.style.location : Dt(t) && Xe(t.children);
|
|
3164
3129
|
});
|
|
3165
3130
|
}
|
|
3166
|
-
function
|
|
3167
|
-
t === void 0 && (t = {}), t =
|
|
3168
|
-
var r = new
|
|
3131
|
+
function In(e, t) {
|
|
3132
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3133
|
+
var r = new wn(e, t).parse();
|
|
3169
3134
|
if (r.err) {
|
|
3170
3135
|
var n = SyntaxError(_[r.err.kind]);
|
|
3171
3136
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3172
3137
|
}
|
|
3173
|
-
return t
|
|
3138
|
+
return t?.captureLocation || Xe(r.val), r.val;
|
|
3174
3139
|
}
|
|
3175
|
-
var
|
|
3140
|
+
var ee;
|
|
3176
3141
|
(function(e) {
|
|
3177
3142
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3178
|
-
})(
|
|
3179
|
-
var
|
|
3143
|
+
})(ee || (ee = {}));
|
|
3144
|
+
var Te = (
|
|
3180
3145
|
/** @class */
|
|
3181
3146
|
function(e) {
|
|
3182
|
-
|
|
3147
|
+
ve(t, e);
|
|
3183
3148
|
function t(r, n, i) {
|
|
3184
3149
|
var s = e.call(this, r) || this;
|
|
3185
3150
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3188,155 +3153,155 @@ var Ae = (
|
|
|
3188
3153
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3189
3154
|
}, t;
|
|
3190
3155
|
}(Error)
|
|
3191
|
-
),
|
|
3156
|
+
), mt = (
|
|
3192
3157
|
/** @class */
|
|
3193
3158
|
function(e) {
|
|
3194
|
-
|
|
3159
|
+
ve(t, e);
|
|
3195
3160
|
function t(r, n, i, s) {
|
|
3196
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3161
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
|
|
3197
3162
|
}
|
|
3198
3163
|
return t;
|
|
3199
|
-
}(
|
|
3200
|
-
),
|
|
3164
|
+
}(Te)
|
|
3165
|
+
), Mn = (
|
|
3201
3166
|
/** @class */
|
|
3202
3167
|
function(e) {
|
|
3203
|
-
|
|
3168
|
+
ve(t, e);
|
|
3204
3169
|
function t(r, n, i) {
|
|
3205
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3170
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3206
3171
|
}
|
|
3207
3172
|
return t;
|
|
3208
|
-
}(
|
|
3209
|
-
),
|
|
3173
|
+
}(Te)
|
|
3174
|
+
), Rn = (
|
|
3210
3175
|
/** @class */
|
|
3211
3176
|
function(e) {
|
|
3212
|
-
|
|
3177
|
+
ve(t, e);
|
|
3213
3178
|
function t(r, n) {
|
|
3214
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3179
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3215
3180
|
}
|
|
3216
3181
|
return t;
|
|
3217
|
-
}(
|
|
3218
|
-
),
|
|
3182
|
+
}(Te)
|
|
3183
|
+
), I;
|
|
3219
3184
|
(function(e) {
|
|
3220
3185
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3221
|
-
})(
|
|
3222
|
-
function
|
|
3186
|
+
})(I || (I = {}));
|
|
3187
|
+
function Ln(e) {
|
|
3223
3188
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3224
3189
|
var n = t[t.length - 1];
|
|
3225
|
-
return !n || n.type !==
|
|
3190
|
+
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3226
3191
|
}, []);
|
|
3227
3192
|
}
|
|
3228
|
-
function
|
|
3193
|
+
function Dn(e) {
|
|
3229
3194
|
return typeof e == "function";
|
|
3230
3195
|
}
|
|
3231
|
-
function
|
|
3232
|
-
if (e.length === 1 &&
|
|
3196
|
+
function ye(e, t, r, n, i, s, a) {
|
|
3197
|
+
if (e.length === 1 && at(e[0]))
|
|
3233
3198
|
return [
|
|
3234
3199
|
{
|
|
3235
|
-
type:
|
|
3200
|
+
type: I.literal,
|
|
3236
3201
|
value: e[0].value
|
|
3237
3202
|
}
|
|
3238
3203
|
];
|
|
3239
|
-
for (var o = [],
|
|
3240
|
-
var
|
|
3241
|
-
if (
|
|
3204
|
+
for (var o = [], h = 0, u = e; h < u.length; h++) {
|
|
3205
|
+
var l = u[h];
|
|
3206
|
+
if (at(l)) {
|
|
3242
3207
|
o.push({
|
|
3243
|
-
type:
|
|
3244
|
-
value:
|
|
3208
|
+
type: I.literal,
|
|
3209
|
+
value: l.value
|
|
3245
3210
|
});
|
|
3246
3211
|
continue;
|
|
3247
3212
|
}
|
|
3248
|
-
if (
|
|
3213
|
+
if (sn(l)) {
|
|
3249
3214
|
typeof s == "number" && o.push({
|
|
3250
|
-
type:
|
|
3215
|
+
type: I.literal,
|
|
3251
3216
|
value: r.getNumberFormat(t).format(s)
|
|
3252
3217
|
});
|
|
3253
3218
|
continue;
|
|
3254
3219
|
}
|
|
3255
|
-
var
|
|
3256
|
-
if (!(i &&
|
|
3257
|
-
throw new
|
|
3258
|
-
var
|
|
3259
|
-
if (
|
|
3260
|
-
(!
|
|
3261
|
-
type: typeof
|
|
3262
|
-
value:
|
|
3220
|
+
var f = l.value;
|
|
3221
|
+
if (!(i && f in i))
|
|
3222
|
+
throw new Rn(f, a);
|
|
3223
|
+
var c = i[f];
|
|
3224
|
+
if (nn(l)) {
|
|
3225
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3226
|
+
type: typeof c == "string" ? I.literal : I.object,
|
|
3227
|
+
value: c
|
|
3263
3228
|
});
|
|
3264
3229
|
continue;
|
|
3265
3230
|
}
|
|
3266
|
-
if (
|
|
3267
|
-
var
|
|
3231
|
+
if (It(l)) {
|
|
3232
|
+
var E = typeof l.style == "string" ? n.date[l.style] : je(l.style) ? l.style.parsedOptions : void 0;
|
|
3268
3233
|
o.push({
|
|
3269
|
-
type:
|
|
3270
|
-
value: r.getDateTimeFormat(t,
|
|
3234
|
+
type: I.literal,
|
|
3235
|
+
value: r.getDateTimeFormat(t, E).format(c)
|
|
3271
3236
|
});
|
|
3272
3237
|
continue;
|
|
3273
3238
|
}
|
|
3274
|
-
if (
|
|
3275
|
-
var
|
|
3239
|
+
if (Mt(l)) {
|
|
3240
|
+
var E = typeof l.style == "string" ? n.time[l.style] : je(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3276
3241
|
o.push({
|
|
3277
|
-
type:
|
|
3278
|
-
value: r.getDateTimeFormat(t,
|
|
3242
|
+
type: I.literal,
|
|
3243
|
+
value: r.getDateTimeFormat(t, E).format(c)
|
|
3279
3244
|
});
|
|
3280
3245
|
continue;
|
|
3281
3246
|
}
|
|
3282
|
-
if (
|
|
3283
|
-
var
|
|
3284
|
-
|
|
3285
|
-
type:
|
|
3286
|
-
value: r.getNumberFormat(t,
|
|
3247
|
+
if (Pt(l)) {
|
|
3248
|
+
var E = typeof l.style == "string" ? n.number[l.style] : kt(l.style) ? l.style.parsedOptions : void 0;
|
|
3249
|
+
E && E.scale && (c = c * (E.scale || 1)), o.push({
|
|
3250
|
+
type: I.literal,
|
|
3251
|
+
value: r.getNumberFormat(t, E).format(c)
|
|
3287
3252
|
});
|
|
3288
3253
|
continue;
|
|
3289
3254
|
}
|
|
3290
|
-
if (
|
|
3291
|
-
var d =
|
|
3292
|
-
if (!
|
|
3293
|
-
throw new
|
|
3294
|
-
var p =
|
|
3255
|
+
if (Dt(l)) {
|
|
3256
|
+
var d = l.children, b = l.value, g = i[b];
|
|
3257
|
+
if (!Dn(g))
|
|
3258
|
+
throw new Mn(b, "function", a);
|
|
3259
|
+
var p = ye(d, t, r, n, i, s), T = g(p.map(function(C) {
|
|
3295
3260
|
return C.value;
|
|
3296
3261
|
}));
|
|
3297
3262
|
Array.isArray(T) || (T = [T]), o.push.apply(o, T.map(function(C) {
|
|
3298
3263
|
return {
|
|
3299
|
-
type: typeof C == "string" ?
|
|
3264
|
+
type: typeof C == "string" ? I.literal : I.object,
|
|
3300
3265
|
value: C
|
|
3301
3266
|
};
|
|
3302
3267
|
}));
|
|
3303
3268
|
}
|
|
3304
|
-
if (
|
|
3305
|
-
var N =
|
|
3269
|
+
if (Rt(l)) {
|
|
3270
|
+
var N = l.options[c] || l.options.other;
|
|
3306
3271
|
if (!N)
|
|
3307
|
-
throw new
|
|
3308
|
-
o.push.apply(o,
|
|
3272
|
+
throw new mt(l.value, c, Object.keys(l.options), a);
|
|
3273
|
+
o.push.apply(o, ye(N.value, t, r, n, i));
|
|
3309
3274
|
continue;
|
|
3310
3275
|
}
|
|
3311
|
-
if (
|
|
3312
|
-
var N =
|
|
3276
|
+
if (Lt(l)) {
|
|
3277
|
+
var N = l.options["=".concat(c)];
|
|
3313
3278
|
if (!N) {
|
|
3314
3279
|
if (!Intl.PluralRules)
|
|
3315
|
-
throw new
|
|
3280
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3316
3281
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3317
|
-
`,
|
|
3318
|
-
var H = r.getPluralRules(t, { type:
|
|
3319
|
-
N =
|
|
3282
|
+
`, ee.MISSING_INTL_API, a);
|
|
3283
|
+
var H = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3284
|
+
N = l.options[H] || l.options.other;
|
|
3320
3285
|
}
|
|
3321
3286
|
if (!N)
|
|
3322
|
-
throw new
|
|
3323
|
-
o.push.apply(o,
|
|
3287
|
+
throw new mt(l.value, c, Object.keys(l.options), a);
|
|
3288
|
+
o.push.apply(o, ye(N.value, t, r, n, i, c - (l.offset || 0)));
|
|
3324
3289
|
continue;
|
|
3325
3290
|
}
|
|
3326
3291
|
}
|
|
3327
|
-
return
|
|
3292
|
+
return Ln(o);
|
|
3328
3293
|
}
|
|
3329
|
-
function
|
|
3330
|
-
return t ?
|
|
3331
|
-
return r[n] =
|
|
3294
|
+
function kn(e, t) {
|
|
3295
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3296
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3332
3297
|
}, {})) : e;
|
|
3333
3298
|
}
|
|
3334
|
-
function
|
|
3299
|
+
function Un(e, t) {
|
|
3335
3300
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3336
|
-
return r[n] =
|
|
3337
|
-
},
|
|
3301
|
+
return r[n] = kn(e[n], t[n]), r;
|
|
3302
|
+
}, v({}, e)) : e;
|
|
3338
3303
|
}
|
|
3339
|
-
function
|
|
3304
|
+
function Re(e) {
|
|
3340
3305
|
return {
|
|
3341
3306
|
create: function() {
|
|
3342
3307
|
return {
|
|
@@ -3350,39 +3315,39 @@ function De(e) {
|
|
|
3350
3315
|
}
|
|
3351
3316
|
};
|
|
3352
3317
|
}
|
|
3353
|
-
function
|
|
3318
|
+
function Fn(e) {
|
|
3354
3319
|
return e === void 0 && (e = {
|
|
3355
3320
|
number: {},
|
|
3356
3321
|
dateTime: {},
|
|
3357
3322
|
pluralRules: {}
|
|
3358
3323
|
}), {
|
|
3359
|
-
getNumberFormat:
|
|
3324
|
+
getNumberFormat: Pe(function() {
|
|
3360
3325
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3361
3326
|
r[n] = arguments[n];
|
|
3362
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3327
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3363
3328
|
}, {
|
|
3364
|
-
cache:
|
|
3365
|
-
strategy:
|
|
3329
|
+
cache: Re(e.number),
|
|
3330
|
+
strategy: Ie.variadic
|
|
3366
3331
|
}),
|
|
3367
|
-
getDateTimeFormat:
|
|
3332
|
+
getDateTimeFormat: Pe(function() {
|
|
3368
3333
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3369
3334
|
r[n] = arguments[n];
|
|
3370
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3335
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3371
3336
|
}, {
|
|
3372
|
-
cache:
|
|
3373
|
-
strategy:
|
|
3337
|
+
cache: Re(e.dateTime),
|
|
3338
|
+
strategy: Ie.variadic
|
|
3374
3339
|
}),
|
|
3375
|
-
getPluralRules:
|
|
3340
|
+
getPluralRules: Pe(function() {
|
|
3376
3341
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3377
3342
|
r[n] = arguments[n];
|
|
3378
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3343
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3379
3344
|
}, {
|
|
3380
|
-
cache:
|
|
3381
|
-
strategy:
|
|
3345
|
+
cache: Re(e.pluralRules),
|
|
3346
|
+
strategy: Ie.variadic
|
|
3382
3347
|
})
|
|
3383
3348
|
};
|
|
3384
3349
|
}
|
|
3385
|
-
var
|
|
3350
|
+
var Gn = (
|
|
3386
3351
|
/** @class */
|
|
3387
3352
|
function() {
|
|
3388
3353
|
function e(t, r, n, i) {
|
|
@@ -3392,20 +3357,20 @@ var Yn = (
|
|
|
3392
3357
|
number: {},
|
|
3393
3358
|
dateTime: {},
|
|
3394
3359
|
pluralRules: {}
|
|
3395
|
-
}, this.format = function(
|
|
3396
|
-
var u = s.formatToParts(
|
|
3360
|
+
}, this.format = function(h) {
|
|
3361
|
+
var u = s.formatToParts(h);
|
|
3397
3362
|
if (u.length === 1)
|
|
3398
3363
|
return u[0].value;
|
|
3399
|
-
var
|
|
3400
|
-
return !
|
|
3364
|
+
var l = u.reduce(function(f, c) {
|
|
3365
|
+
return !f.length || c.type !== I.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3401
3366
|
}, []);
|
|
3402
|
-
return
|
|
3403
|
-
}, this.formatToParts = function(
|
|
3404
|
-
return
|
|
3367
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
3368
|
+
}, this.formatToParts = function(h) {
|
|
3369
|
+
return ye(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3405
3370
|
}, this.resolvedOptions = function() {
|
|
3406
|
-
var
|
|
3371
|
+
var h;
|
|
3407
3372
|
return {
|
|
3408
|
-
locale: ((
|
|
3373
|
+
locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3409
3374
|
};
|
|
3410
3375
|
}, this.getAst = function() {
|
|
3411
3376
|
return s.ast;
|
|
@@ -3414,13 +3379,13 @@ var Yn = (
|
|
|
3414
3379
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3415
3380
|
var a = i || {};
|
|
3416
3381
|
a.formatters;
|
|
3417
|
-
var o =
|
|
3418
|
-
this.ast = e.__parse(t,
|
|
3382
|
+
var o = Pr(a, ["formatters"]);
|
|
3383
|
+
this.ast = e.__parse(t, v(v({}, o), { locale: this.resolvedLocale }));
|
|
3419
3384
|
} else
|
|
3420
3385
|
this.ast = t;
|
|
3421
3386
|
if (!Array.isArray(this.ast))
|
|
3422
3387
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3423
|
-
this.formats =
|
|
3388
|
+
this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
|
|
3424
3389
|
}
|
|
3425
3390
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3426
3391
|
get: function() {
|
|
@@ -3429,11 +3394,11 @@ var Yn = (
|
|
|
3429
3394
|
enumerable: !1,
|
|
3430
3395
|
configurable: !0
|
|
3431
3396
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3432
|
-
if (typeof Intl.Locale
|
|
3397
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3433
3398
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3434
3399
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3435
3400
|
}
|
|
3436
|
-
}, e.__parse =
|
|
3401
|
+
}, e.__parse = In, e.formats = {
|
|
3437
3402
|
number: {
|
|
3438
3403
|
integer: {
|
|
3439
3404
|
maximumFractionDigits: 0
|
|
@@ -3494,7 +3459,7 @@ var Yn = (
|
|
|
3494
3459
|
}, e;
|
|
3495
3460
|
}()
|
|
3496
3461
|
);
|
|
3497
|
-
function
|
|
3462
|
+
function $n(e, t) {
|
|
3498
3463
|
if (t == null)
|
|
3499
3464
|
return;
|
|
3500
3465
|
if (t in e)
|
|
@@ -3515,92 +3480,92 @@ function Kn(e, t) {
|
|
|
3515
3480
|
n = void 0;
|
|
3516
3481
|
return n;
|
|
3517
3482
|
}
|
|
3518
|
-
const
|
|
3483
|
+
const J = {}, jn = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), Jt = (e, t) => {
|
|
3519
3484
|
if (t == null)
|
|
3520
3485
|
return;
|
|
3521
|
-
if (t in
|
|
3522
|
-
return
|
|
3523
|
-
const r =
|
|
3486
|
+
if (t in J && e in J[t])
|
|
3487
|
+
return J[t][e];
|
|
3488
|
+
const r = Ae(t);
|
|
3524
3489
|
for (let n = 0; n < r.length; n++) {
|
|
3525
|
-
const i = r[n], s =
|
|
3490
|
+
const i = r[n], s = zn(i, e);
|
|
3526
3491
|
if (s)
|
|
3527
|
-
return
|
|
3492
|
+
return jn(e, t, s);
|
|
3528
3493
|
}
|
|
3529
3494
|
};
|
|
3530
|
-
let
|
|
3531
|
-
const
|
|
3532
|
-
function
|
|
3533
|
-
return
|
|
3495
|
+
let Ye;
|
|
3496
|
+
const me = Se({});
|
|
3497
|
+
function Vn(e) {
|
|
3498
|
+
return Ye[e] || null;
|
|
3534
3499
|
}
|
|
3535
|
-
function
|
|
3536
|
-
return e in
|
|
3500
|
+
function Wt(e) {
|
|
3501
|
+
return e in Ye;
|
|
3537
3502
|
}
|
|
3538
|
-
function
|
|
3539
|
-
if (!
|
|
3503
|
+
function zn(e, t) {
|
|
3504
|
+
if (!Wt(e))
|
|
3540
3505
|
return null;
|
|
3541
|
-
const r =
|
|
3542
|
-
return
|
|
3506
|
+
const r = Vn(e);
|
|
3507
|
+
return $n(r, t);
|
|
3543
3508
|
}
|
|
3544
|
-
function
|
|
3509
|
+
function Jn(e) {
|
|
3545
3510
|
if (e == null)
|
|
3546
3511
|
return;
|
|
3547
|
-
const t =
|
|
3512
|
+
const t = Ae(e);
|
|
3548
3513
|
for (let r = 0; r < t.length; r++) {
|
|
3549
3514
|
const n = t[r];
|
|
3550
|
-
if (
|
|
3515
|
+
if (Wt(n))
|
|
3551
3516
|
return n;
|
|
3552
3517
|
}
|
|
3553
3518
|
}
|
|
3554
|
-
function
|
|
3555
|
-
delete
|
|
3519
|
+
function Xt(e, ...t) {
|
|
3520
|
+
delete J[e], me.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
|
|
3556
3521
|
}
|
|
3557
|
-
|
|
3558
|
-
[
|
|
3522
|
+
ne(
|
|
3523
|
+
[me],
|
|
3559
3524
|
([e]) => Object.keys(e)
|
|
3560
3525
|
);
|
|
3561
|
-
|
|
3562
|
-
const
|
|
3563
|
-
function
|
|
3564
|
-
|
|
3526
|
+
me.subscribe((e) => Ye = e);
|
|
3527
|
+
const _e = {};
|
|
3528
|
+
function Wn(e, t) {
|
|
3529
|
+
_e[e].delete(t), _e[e].size === 0 && delete _e[e];
|
|
3565
3530
|
}
|
|
3566
|
-
function
|
|
3567
|
-
return
|
|
3531
|
+
function Zt(e) {
|
|
3532
|
+
return _e[e];
|
|
3568
3533
|
}
|
|
3569
|
-
function
|
|
3570
|
-
return
|
|
3571
|
-
const r =
|
|
3534
|
+
function Xn(e) {
|
|
3535
|
+
return Ae(e).map((t) => {
|
|
3536
|
+
const r = Zt(t);
|
|
3572
3537
|
return [t, r ? [...r] : []];
|
|
3573
3538
|
}).filter(([, t]) => t.length > 0);
|
|
3574
3539
|
}
|
|
3575
|
-
function
|
|
3576
|
-
return e == null ? !1 :
|
|
3540
|
+
function Ze(e) {
|
|
3541
|
+
return e == null ? !1 : Ae(e).some(
|
|
3577
3542
|
(t) => {
|
|
3578
3543
|
var r;
|
|
3579
|
-
return (r =
|
|
3544
|
+
return (r = Zt(t)) == null ? void 0 : r.size;
|
|
3580
3545
|
}
|
|
3581
3546
|
);
|
|
3582
3547
|
}
|
|
3583
|
-
function
|
|
3548
|
+
function Zn(e, t) {
|
|
3584
3549
|
return Promise.all(
|
|
3585
|
-
t.map((n) => (
|
|
3586
|
-
).then((n) =>
|
|
3587
|
-
}
|
|
3588
|
-
const
|
|
3589
|
-
function
|
|
3590
|
-
if (!
|
|
3591
|
-
return e in
|
|
3592
|
-
const t =
|
|
3593
|
-
return
|
|
3550
|
+
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3551
|
+
).then((n) => Xt(e, ...n));
|
|
3552
|
+
}
|
|
3553
|
+
const ae = {};
|
|
3554
|
+
function qt(e) {
|
|
3555
|
+
if (!Ze(e))
|
|
3556
|
+
return e in ae ? ae[e] : Promise.resolve();
|
|
3557
|
+
const t = Xn(e);
|
|
3558
|
+
return ae[e] = Promise.all(
|
|
3594
3559
|
t.map(
|
|
3595
|
-
([r, n]) =>
|
|
3560
|
+
([r, n]) => Zn(r, n)
|
|
3596
3561
|
)
|
|
3597
3562
|
).then(() => {
|
|
3598
|
-
if (
|
|
3599
|
-
return
|
|
3600
|
-
delete
|
|
3601
|
-
}),
|
|
3563
|
+
if (Ze(e))
|
|
3564
|
+
return qt(e);
|
|
3565
|
+
delete ae[e];
|
|
3566
|
+
}), ae[e];
|
|
3602
3567
|
}
|
|
3603
|
-
const
|
|
3568
|
+
const qn = {
|
|
3604
3569
|
number: {
|
|
3605
3570
|
scientific: { notation: "scientific" },
|
|
3606
3571
|
engineering: { notation: "engineering" },
|
|
@@ -3629,178 +3594,178 @@ const oi = {
|
|
|
3629
3594
|
timeZoneName: "short"
|
|
3630
3595
|
}
|
|
3631
3596
|
}
|
|
3632
|
-
},
|
|
3597
|
+
}, Qn = {
|
|
3633
3598
|
fallbackLocale: null,
|
|
3634
3599
|
loadingDelay: 200,
|
|
3635
|
-
formats:
|
|
3600
|
+
formats: qn,
|
|
3636
3601
|
warnOnMissingMessages: !0,
|
|
3637
3602
|
handleMissingMessage: void 0,
|
|
3638
3603
|
ignoreTag: !0
|
|
3639
|
-
},
|
|
3640
|
-
function
|
|
3641
|
-
return
|
|
3642
|
-
}
|
|
3643
|
-
const
|
|
3644
|
-
var
|
|
3645
|
-
for (var r in t
|
|
3646
|
-
|
|
3647
|
-
if (
|
|
3648
|
-
for (var r of
|
|
3649
|
-
|
|
3604
|
+
}, Yn = Qn;
|
|
3605
|
+
function te() {
|
|
3606
|
+
return Yn;
|
|
3607
|
+
}
|
|
3608
|
+
const Le = Se(!1);
|
|
3609
|
+
var Kn = Object.defineProperty, ei = Object.defineProperties, ti = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, ri = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ii = (e, t) => {
|
|
3610
|
+
for (var r in t)
|
|
3611
|
+
ri.call(t, r) && bt(e, r, t[r]);
|
|
3612
|
+
if (dt)
|
|
3613
|
+
for (var r of dt(t))
|
|
3614
|
+
ni.call(t, r) && bt(e, r, t[r]);
|
|
3650
3615
|
return e;
|
|
3651
|
-
},
|
|
3652
|
-
let
|
|
3653
|
-
const Ee =
|
|
3654
|
-
function
|
|
3616
|
+
}, si = (e, t) => ei(e, ti(t));
|
|
3617
|
+
let qe;
|
|
3618
|
+
const Ee = Se(null);
|
|
3619
|
+
function gt(e) {
|
|
3655
3620
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3656
3621
|
}
|
|
3657
|
-
function
|
|
3658
|
-
const r =
|
|
3659
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3622
|
+
function Ae(e, t = te().fallbackLocale) {
|
|
3623
|
+
const r = gt(e);
|
|
3624
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
3660
3625
|
}
|
|
3661
|
-
function
|
|
3662
|
-
return
|
|
3626
|
+
function W() {
|
|
3627
|
+
return qe ?? void 0;
|
|
3663
3628
|
}
|
|
3664
3629
|
Ee.subscribe((e) => {
|
|
3665
|
-
|
|
3630
|
+
qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3666
3631
|
});
|
|
3667
|
-
const
|
|
3668
|
-
if (e &&
|
|
3669
|
-
const { loadingDelay: t } =
|
|
3632
|
+
const ai = (e) => {
|
|
3633
|
+
if (e && Jn(e) && Ze(e)) {
|
|
3634
|
+
const { loadingDelay: t } = te();
|
|
3670
3635
|
let r;
|
|
3671
|
-
return typeof window
|
|
3672
|
-
() =>
|
|
3636
|
+
return typeof window < "u" && W() != null && t ? r = window.setTimeout(
|
|
3637
|
+
() => Le.set(!0),
|
|
3673
3638
|
t
|
|
3674
|
-
) :
|
|
3639
|
+
) : Le.set(!0), qt(e).then(() => {
|
|
3675
3640
|
Ee.set(e);
|
|
3676
3641
|
}).finally(() => {
|
|
3677
|
-
clearTimeout(r),
|
|
3642
|
+
clearTimeout(r), Le.set(!1);
|
|
3678
3643
|
});
|
|
3679
3644
|
}
|
|
3680
3645
|
return Ee.set(e);
|
|
3681
|
-
},
|
|
3682
|
-
set:
|
|
3683
|
-
}),
|
|
3646
|
+
}, ie = si(ii({}, Ee), {
|
|
3647
|
+
set: ai
|
|
3648
|
+
}), He = (e) => {
|
|
3684
3649
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3685
3650
|
return (n) => {
|
|
3686
3651
|
const i = JSON.stringify(n);
|
|
3687
3652
|
return i in t ? t[i] : t[i] = e(n);
|
|
3688
3653
|
};
|
|
3689
3654
|
};
|
|
3690
|
-
var
|
|
3655
|
+
var oi = Object.defineProperty, xe = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
3691
3656
|
for (var r in t || (t = {}))
|
|
3692
|
-
|
|
3657
|
+
Qt.call(t, r) && pt(e, r, t[r]);
|
|
3693
3658
|
if (xe)
|
|
3694
3659
|
for (var r of xe(t))
|
|
3695
|
-
|
|
3660
|
+
Yt.call(t, r) && pt(e, r, t[r]);
|
|
3696
3661
|
return e;
|
|
3697
|
-
},
|
|
3662
|
+
}, se = (e, t) => {
|
|
3698
3663
|
var r = {};
|
|
3699
3664
|
for (var n in e)
|
|
3700
|
-
|
|
3665
|
+
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3701
3666
|
if (e != null && xe)
|
|
3702
3667
|
for (var n of xe(e))
|
|
3703
|
-
t.indexOf(n) < 0 &&
|
|
3668
|
+
t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
|
|
3704
3669
|
return r;
|
|
3705
3670
|
};
|
|
3706
|
-
const
|
|
3707
|
-
const { formats: r } =
|
|
3671
|
+
const he = (e, t) => {
|
|
3672
|
+
const { formats: r } = te();
|
|
3708
3673
|
if (e in r && t in r[e])
|
|
3709
3674
|
return r[e][t];
|
|
3710
3675
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3711
|
-
},
|
|
3676
|
+
}, ui = He(
|
|
3712
3677
|
(e) => {
|
|
3713
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3678
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3714
3679
|
if (r == null)
|
|
3715
3680
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3716
|
-
return n && (i =
|
|
3681
|
+
return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
|
|
3717
3682
|
}
|
|
3718
|
-
),
|
|
3683
|
+
), li = He(
|
|
3719
3684
|
(e) => {
|
|
3720
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3685
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3721
3686
|
if (r == null)
|
|
3722
3687
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3723
|
-
return n ? i =
|
|
3688
|
+
return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3724
3689
|
}
|
|
3725
|
-
),
|
|
3690
|
+
), hi = He(
|
|
3726
3691
|
(e) => {
|
|
3727
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3692
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
3728
3693
|
if (r == null)
|
|
3729
3694
|
throw new Error(
|
|
3730
3695
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3731
3696
|
);
|
|
3732
|
-
return n ? i =
|
|
3697
|
+
return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3733
3698
|
}
|
|
3734
|
-
),
|
|
3699
|
+
), fi = (e = {}) => {
|
|
3735
3700
|
var t = e, {
|
|
3736
|
-
locale: r =
|
|
3737
|
-
} = t, n =
|
|
3701
|
+
locale: r = W()
|
|
3702
|
+
} = t, n = se(t, [
|
|
3738
3703
|
"locale"
|
|
3739
3704
|
]);
|
|
3740
|
-
return
|
|
3741
|
-
},
|
|
3705
|
+
return ui(Ke({ locale: r }, n));
|
|
3706
|
+
}, ci = (e = {}) => {
|
|
3742
3707
|
var t = e, {
|
|
3743
|
-
locale: r =
|
|
3744
|
-
} = t, n =
|
|
3708
|
+
locale: r = W()
|
|
3709
|
+
} = t, n = se(t, [
|
|
3745
3710
|
"locale"
|
|
3746
3711
|
]);
|
|
3747
|
-
return
|
|
3748
|
-
},
|
|
3712
|
+
return li(Ke({ locale: r }, n));
|
|
3713
|
+
}, mi = (e = {}) => {
|
|
3749
3714
|
var t = e, {
|
|
3750
|
-
locale: r =
|
|
3751
|
-
} = t, n =
|
|
3715
|
+
locale: r = W()
|
|
3716
|
+
} = t, n = se(t, [
|
|
3752
3717
|
"locale"
|
|
3753
3718
|
]);
|
|
3754
|
-
return
|
|
3755
|
-
},
|
|
3719
|
+
return hi(Ke({ locale: r }, n));
|
|
3720
|
+
}, di = He(
|
|
3756
3721
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3757
|
-
(e, t =
|
|
3758
|
-
ignoreTag:
|
|
3722
|
+
(e, t = W()) => new Gn(e, t, te().formats, {
|
|
3723
|
+
ignoreTag: te().ignoreTag
|
|
3759
3724
|
})
|
|
3760
|
-
),
|
|
3725
|
+
), bi = (e, t = {}) => {
|
|
3761
3726
|
var r, n, i, s;
|
|
3762
3727
|
let a = t;
|
|
3763
3728
|
typeof e == "object" && (a = e, e = a.id);
|
|
3764
3729
|
const {
|
|
3765
3730
|
values: o,
|
|
3766
|
-
locale:
|
|
3731
|
+
locale: h = W(),
|
|
3767
3732
|
default: u
|
|
3768
3733
|
} = a;
|
|
3769
|
-
if (
|
|
3734
|
+
if (h == null)
|
|
3770
3735
|
throw new Error(
|
|
3771
3736
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3772
3737
|
);
|
|
3773
|
-
let
|
|
3774
|
-
if (!
|
|
3775
|
-
|
|
3776
|
-
else if (typeof
|
|
3738
|
+
let l = Jt(e, h);
|
|
3739
|
+
if (!l)
|
|
3740
|
+
l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3741
|
+
else if (typeof l != "string")
|
|
3777
3742
|
return console.warn(
|
|
3778
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3779
|
-
),
|
|
3743
|
+
`[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.`
|
|
3744
|
+
), l;
|
|
3780
3745
|
if (!o)
|
|
3781
|
-
return
|
|
3782
|
-
let
|
|
3746
|
+
return l;
|
|
3747
|
+
let f = l;
|
|
3783
3748
|
try {
|
|
3784
|
-
|
|
3785
|
-
} catch (
|
|
3786
|
-
|
|
3749
|
+
f = di(l, h).format(o);
|
|
3750
|
+
} catch (c) {
|
|
3751
|
+
c instanceof Error && console.warn(
|
|
3787
3752
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3788
|
-
|
|
3753
|
+
c.message
|
|
3789
3754
|
);
|
|
3790
3755
|
}
|
|
3791
|
-
return
|
|
3792
|
-
},
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
function
|
|
3798
|
-
|
|
3799
|
-
}
|
|
3800
|
-
function
|
|
3801
|
-
|
|
3802
|
-
}
|
|
3803
|
-
const
|
|
3756
|
+
return f;
|
|
3757
|
+
}, gi = (e, t) => mi(t).format(e), pi = (e, t) => ci(t).format(e), yi = (e, t) => fi(t).format(e), _i = (e, t = W()) => Jt(e, t), Ei = ne([ie, me], () => bi);
|
|
3758
|
+
ne([ie], () => gi);
|
|
3759
|
+
ne([ie], () => pi);
|
|
3760
|
+
ne([ie], () => yi);
|
|
3761
|
+
ne([ie, me], () => _i);
|
|
3762
|
+
function yt(e, t) {
|
|
3763
|
+
Xt(e, t);
|
|
3764
|
+
}
|
|
3765
|
+
function xi(e) {
|
|
3766
|
+
ie.set(e);
|
|
3767
|
+
}
|
|
3768
|
+
const _t = {
|
|
3804
3769
|
en: {
|
|
3805
3770
|
enrolled: "Enrolled",
|
|
3806
3771
|
scoreCriteria: "Score Criteria",
|
|
@@ -4132,35 +4097,35 @@ const Ht = {
|
|
|
4132
4097
|
December: "December"
|
|
4133
4098
|
}
|
|
4134
4099
|
};
|
|
4135
|
-
function
|
|
4136
|
-
|
|
4100
|
+
function vi(e) {
|
|
4101
|
+
hr(e, "svelte-1gxooas", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
|
|
4137
4102
|
}
|
|
4138
|
-
function
|
|
4103
|
+
function Et(e) {
|
|
4139
4104
|
let t, r, n, i, s, a;
|
|
4140
4105
|
return {
|
|
4141
4106
|
c() {
|
|
4142
|
-
t =
|
|
4107
|
+
t = O("div"), r = M(
|
|
4143
4108
|
/*shownStatus*/
|
|
4144
4109
|
e[13]
|
|
4145
4110
|
), y(t, "class", n = "Status " + /*statusClass*/
|
|
4146
4111
|
e[15]), y(t, "part", i = "Status " + /*statusClass*/
|
|
4147
4112
|
e[15]);
|
|
4148
4113
|
},
|
|
4149
|
-
m(o,
|
|
4150
|
-
|
|
4114
|
+
m(o, h) {
|
|
4115
|
+
F(o, t, h), S(t, r), s || (a = ce(
|
|
4151
4116
|
/*matchStatus*/
|
|
4152
4117
|
e[18].call(null, t)
|
|
4153
4118
|
), s = !0);
|
|
4154
4119
|
},
|
|
4155
|
-
p(o,
|
|
4156
|
-
|
|
4157
|
-
8192 &&
|
|
4120
|
+
p(o, h) {
|
|
4121
|
+
h[0] & /*shownStatus*/
|
|
4122
|
+
8192 && G(
|
|
4158
4123
|
r,
|
|
4159
4124
|
/*shownStatus*/
|
|
4160
4125
|
o[13]
|
|
4161
|
-
),
|
|
4126
|
+
), h[0] & /*statusClass*/
|
|
4162
4127
|
32768 && n !== (n = "Status " + /*statusClass*/
|
|
4163
|
-
o[15]) && y(t, "class", n),
|
|
4128
|
+
o[15]) && y(t, "class", n), h[0] & /*statusClass*/
|
|
4164
4129
|
32768 && i !== (i = "Status " + /*statusClass*/
|
|
4165
4130
|
o[15]) && y(t, "part", i);
|
|
4166
4131
|
},
|
|
@@ -4169,61 +4134,61 @@ function Ct(e) {
|
|
|
4169
4134
|
}
|
|
4170
4135
|
};
|
|
4171
4136
|
}
|
|
4172
|
-
function
|
|
4137
|
+
function xt(e) {
|
|
4173
4138
|
let t, r = (
|
|
4174
4139
|
/*userenrolled*/
|
|
4175
|
-
e[5] &&
|
|
4140
|
+
e[5] && vt(e)
|
|
4176
4141
|
);
|
|
4177
4142
|
return {
|
|
4178
4143
|
c() {
|
|
4179
|
-
r && r.c(), t =
|
|
4144
|
+
r && r.c(), t = mr();
|
|
4180
4145
|
},
|
|
4181
4146
|
m(n, i) {
|
|
4182
|
-
r && r.m(n, i),
|
|
4147
|
+
r && r.m(n, i), F(n, t, i);
|
|
4183
4148
|
},
|
|
4184
4149
|
p(n, i) {
|
|
4185
4150
|
/*userenrolled*/
|
|
4186
|
-
n[5] ? r ? r.p(n, i) : (r =
|
|
4151
|
+
n[5] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4187
4152
|
},
|
|
4188
4153
|
d(n) {
|
|
4189
4154
|
n && L(t), r && r.d(n);
|
|
4190
4155
|
}
|
|
4191
4156
|
};
|
|
4192
4157
|
}
|
|
4193
|
-
function
|
|
4158
|
+
function vt(e) {
|
|
4194
4159
|
let t, r = (
|
|
4195
4160
|
/*$_*/
|
|
4196
4161
|
e[16]("enrolled") + ""
|
|
4197
4162
|
), n;
|
|
4198
4163
|
return {
|
|
4199
4164
|
c() {
|
|
4200
|
-
t =
|
|
4165
|
+
t = O("div"), n = M(r), y(t, "class", "Enrolled"), y(t, "part", "Enrolled");
|
|
4201
4166
|
},
|
|
4202
4167
|
m(i, s) {
|
|
4203
|
-
|
|
4168
|
+
F(i, t, s), S(t, n);
|
|
4204
4169
|
},
|
|
4205
4170
|
p(i, s) {
|
|
4206
4171
|
s[0] & /*$_*/
|
|
4207
4172
|
65536 && r !== (r = /*$_*/
|
|
4208
|
-
i[16]("enrolled") + "") &&
|
|
4173
|
+
i[16]("enrolled") + "") && G(n, r);
|
|
4209
4174
|
},
|
|
4210
4175
|
d(i) {
|
|
4211
4176
|
i && L(t);
|
|
4212
4177
|
}
|
|
4213
4178
|
};
|
|
4214
4179
|
}
|
|
4215
|
-
function
|
|
4180
|
+
function Si(e) {
|
|
4216
4181
|
let t, r, n, i, s;
|
|
4217
4182
|
return {
|
|
4218
4183
|
c() {
|
|
4219
|
-
t =
|
|
4184
|
+
t = O("div"), y(t, "class", r = "CardImg " + /*status*/
|
|
4220
4185
|
(e[0] == "Closing" || /*status*/
|
|
4221
4186
|
e[0] == "Closed" ? "CardImgFinished" : "")), y(t, "part", n = "CardImg " + /*status*/
|
|
4222
4187
|
(e[0] == "Closing" || /*status*/
|
|
4223
|
-
e[0] == "Closed" ? "CardImgFinished" : "")),
|
|
4188
|
+
e[0] == "Closed" ? "CardImgFinished" : "")), ke(t, "background-image", "url('https://i.stack.imgur.com/y9DpT.jpg')");
|
|
4224
4189
|
},
|
|
4225
4190
|
m(a, o) {
|
|
4226
|
-
|
|
4191
|
+
F(a, t, o), i || (s = ce(
|
|
4227
4192
|
/*matchStatus*/
|
|
4228
4193
|
e[18].call(null, t)
|
|
4229
4194
|
), i = !0);
|
|
@@ -4242,19 +4207,19 @@ function Mi(e) {
|
|
|
4242
4207
|
}
|
|
4243
4208
|
};
|
|
4244
4209
|
}
|
|
4245
|
-
function
|
|
4210
|
+
function Ti(e) {
|
|
4246
4211
|
let t, r, n, i, s;
|
|
4247
4212
|
return {
|
|
4248
4213
|
c() {
|
|
4249
|
-
t =
|
|
4214
|
+
t = O("div"), y(t, "class", r = "CardImg " + /*status*/
|
|
4250
4215
|
(e[0] == "Closing" || /*status*/
|
|
4251
4216
|
e[0] == "Closed" ? "CardImgFinished" : "")), y(t, "part", n = "CardImg " + /*status*/
|
|
4252
4217
|
(e[0] == "Closing" || /*status*/
|
|
4253
|
-
e[0] == "Closed" ? "CardImgFinished" : "")),
|
|
4218
|
+
e[0] == "Closed" ? "CardImgFinished" : "")), ke(t, "background-image", "url('" + /*thumbnail*/
|
|
4254
4219
|
e[4] + "')");
|
|
4255
4220
|
},
|
|
4256
4221
|
m(a, o) {
|
|
4257
|
-
|
|
4222
|
+
F(a, t, o), i || (s = ce(
|
|
4258
4223
|
/*matchStatus*/
|
|
4259
4224
|
e[18].call(null, t)
|
|
4260
4225
|
), i = !0);
|
|
@@ -4267,7 +4232,7 @@ function Ri(e) {
|
|
|
4267
4232
|
1 && n !== (n = "CardImg " + /*status*/
|
|
4268
4233
|
(a[0] == "Closing" || /*status*/
|
|
4269
4234
|
a[0] == "Closed" ? "CardImgFinished" : "")) && y(t, "part", n), o[0] & /*thumbnail*/
|
|
4270
|
-
16 &&
|
|
4235
|
+
16 && ke(t, "background-image", "url('" + /*thumbnail*/
|
|
4271
4236
|
a[4] + "')");
|
|
4272
4237
|
},
|
|
4273
4238
|
d(a) {
|
|
@@ -4275,17 +4240,17 @@ function Ri(e) {
|
|
|
4275
4240
|
}
|
|
4276
4241
|
};
|
|
4277
4242
|
}
|
|
4278
|
-
function
|
|
4243
|
+
function St(e) {
|
|
4279
4244
|
let t, r, n, i, s;
|
|
4280
4245
|
return {
|
|
4281
4246
|
c() {
|
|
4282
|
-
t =
|
|
4247
|
+
t = O("div"), r = M(
|
|
4283
4248
|
/*shownDate*/
|
|
4284
4249
|
e[11]
|
|
4285
4250
|
), y(t, "class", "Date"), y(t, "part", "Date");
|
|
4286
4251
|
},
|
|
4287
4252
|
m(a, o) {
|
|
4288
|
-
|
|
4253
|
+
F(a, t, o), S(t, r), i || (s = ce(n = /*formatDate*/
|
|
4289
4254
|
e[17].call(
|
|
4290
4255
|
null,
|
|
4291
4256
|
t,
|
|
@@ -4295,7 +4260,7 @@ function Nt(e) {
|
|
|
4295
4260
|
},
|
|
4296
4261
|
p(a, o) {
|
|
4297
4262
|
o[0] & /*shownDate*/
|
|
4298
|
-
2048 &&
|
|
4263
|
+
2048 && G(
|
|
4299
4264
|
r,
|
|
4300
4265
|
/*shownDate*/
|
|
4301
4266
|
a[11]
|
|
@@ -4311,32 +4276,32 @@ function Nt(e) {
|
|
|
4311
4276
|
}
|
|
4312
4277
|
};
|
|
4313
4278
|
}
|
|
4314
|
-
function
|
|
4279
|
+
function Tt(e) {
|
|
4315
4280
|
let t, r, n = (
|
|
4316
4281
|
/*$_*/
|
|
4317
4282
|
e[16]("scoreCriteria") + ""
|
|
4318
|
-
), i, s, a, o,
|
|
4283
|
+
), i, s, a, o, h, u = (
|
|
4319
4284
|
/*$_*/
|
|
4320
4285
|
e[16]("minbet") + ""
|
|
4321
|
-
),
|
|
4286
|
+
), l, f, c, E, d, b, g, p = (
|
|
4322
4287
|
/*$_*/
|
|
4323
4288
|
e[16]("seegames") + ""
|
|
4324
4289
|
), T, N, H, C = (
|
|
4325
4290
|
/*$_*/
|
|
4326
4291
|
e[16]("here") + ""
|
|
4327
|
-
),
|
|
4292
|
+
), U, D, $, j;
|
|
4328
4293
|
return {
|
|
4329
4294
|
c() {
|
|
4330
|
-
t =
|
|
4295
|
+
t = O("div"), r = O("p"), i = M(n), s = M(`:
|
|
4331
4296
|
|
|
4332
|
-
`), a =
|
|
4297
|
+
`), a = O("span"), o = M(
|
|
4333
4298
|
/*showScoreCriteria*/
|
|
4334
4299
|
e[14]
|
|
4335
|
-
),
|
|
4336
|
-
(`),
|
|
4300
|
+
), h = M(`
|
|
4301
|
+
(`), l = M(u), f = z(), c = M(
|
|
4337
4302
|
/*minbetcount*/
|
|
4338
4303
|
e[6]
|
|
4339
|
-
),
|
|
4304
|
+
), E = M(")"), d = z(), b = O("div"), g = O("p"), T = M(p), N = z(), H = O("a"), U = M(C), y(a, "part", "ScoreCriteriaSpan"), y(r, "part", "ScoreCriteriaP"), y(t, "class", "ScoreCriteria"), y(t, "part", "ScoreCriteria"), y(H, "part", "GamesAnchor"), y(
|
|
4340
4305
|
H,
|
|
4341
4306
|
"href",
|
|
4342
4307
|
/*gameurl*/
|
|
@@ -4345,39 +4310,39 @@ function It(e) {
|
|
|
4345
4310
|
e[9] === "true" ? "_self" : "_blank"), y(g, "part", "GamesP"), y(b, "class", "Games"), y(b, "part", "Games");
|
|
4346
4311
|
},
|
|
4347
4312
|
m(B, R) {
|
|
4348
|
-
|
|
4349
|
-
|
|
4313
|
+
F(B, t, R), S(t, r), S(r, i), S(r, s), S(r, a), S(a, o), S(r, h), S(r, l), S(r, f), S(r, c), S(r, E), F(B, d, R), F(B, b, R), S(b, g), S(g, T), S(g, N), S(g, H), S(H, U), $ || (j = [
|
|
4314
|
+
ce(
|
|
4350
4315
|
/*matchScoreCriteria*/
|
|
4351
4316
|
e[19].call(null, a)
|
|
4352
4317
|
),
|
|
4353
|
-
|
|
4318
|
+
De(
|
|
4354
4319
|
H,
|
|
4355
4320
|
"click",
|
|
4356
4321
|
/*click_handler*/
|
|
4357
4322
|
e[28]
|
|
4358
4323
|
)
|
|
4359
|
-
],
|
|
4324
|
+
], $ = !0);
|
|
4360
4325
|
},
|
|
4361
4326
|
p(B, R) {
|
|
4362
4327
|
R[0] & /*$_*/
|
|
4363
4328
|
65536 && n !== (n = /*$_*/
|
|
4364
|
-
B[16]("scoreCriteria") + "") &&
|
|
4365
|
-
16384 &&
|
|
4329
|
+
B[16]("scoreCriteria") + "") && G(i, n), R[0] & /*showScoreCriteria*/
|
|
4330
|
+
16384 && G(
|
|
4366
4331
|
o,
|
|
4367
4332
|
/*showScoreCriteria*/
|
|
4368
4333
|
B[14]
|
|
4369
4334
|
), R[0] & /*$_*/
|
|
4370
4335
|
65536 && u !== (u = /*$_*/
|
|
4371
|
-
B[16]("minbet") + "") &&
|
|
4372
|
-
64 &&
|
|
4373
|
-
|
|
4336
|
+
B[16]("minbet") + "") && G(l, u), R[0] & /*minbetcount*/
|
|
4337
|
+
64 && G(
|
|
4338
|
+
c,
|
|
4374
4339
|
/*minbetcount*/
|
|
4375
4340
|
B[6]
|
|
4376
4341
|
), R[0] & /*$_*/
|
|
4377
4342
|
65536 && p !== (p = /*$_*/
|
|
4378
|
-
B[16]("seegames") + "") &&
|
|
4343
|
+
B[16]("seegames") + "") && G(T, p), R[0] & /*$_*/
|
|
4379
4344
|
65536 && C !== (C = /*$_*/
|
|
4380
|
-
B[16]("here") + "") &&
|
|
4345
|
+
B[16]("here") + "") && G(U, C), R[0] & /*gameurl*/
|
|
4381
4346
|
256 && y(
|
|
4382
4347
|
H,
|
|
4383
4348
|
"href",
|
|
@@ -4388,104 +4353,104 @@ function It(e) {
|
|
|
4388
4353
|
B[9] === "true" ? "_self" : "_blank") && y(H, "target", D);
|
|
4389
4354
|
},
|
|
4390
4355
|
d(B) {
|
|
4391
|
-
B && (L(t), L(d), L(b)),
|
|
4356
|
+
B && (L(t), L(d), L(b)), $ = !1, re(j);
|
|
4392
4357
|
}
|
|
4393
4358
|
};
|
|
4394
4359
|
}
|
|
4395
|
-
function
|
|
4396
|
-
let t, r, n, i, s, a, o,
|
|
4360
|
+
function Ai(e) {
|
|
4361
|
+
let t, r, n, i, s, a, o, h, u, l = (
|
|
4397
4362
|
/*status*/
|
|
4398
|
-
e[0] &&
|
|
4399
|
-
),
|
|
4363
|
+
e[0] && Et(e)
|
|
4364
|
+
), f = (
|
|
4400
4365
|
/*showenrolled*/
|
|
4401
|
-
e[7] == "true" &&
|
|
4366
|
+
e[7] == "true" && xt(e)
|
|
4402
4367
|
);
|
|
4403
|
-
function
|
|
4368
|
+
function c(p, T) {
|
|
4404
4369
|
return (
|
|
4405
4370
|
/*thumbnail*/
|
|
4406
|
-
p[4] ?
|
|
4371
|
+
p[4] ? Ti : Si
|
|
4407
4372
|
);
|
|
4408
4373
|
}
|
|
4409
|
-
let
|
|
4374
|
+
let E = c(e), d = E(e), b = (
|
|
4410
4375
|
/*startdate*/
|
|
4411
|
-
e[2] &&
|
|
4376
|
+
e[2] && St(e)
|
|
4412
4377
|
), g = (
|
|
4413
4378
|
/*isLoggedIn*/
|
|
4414
|
-
e[12] &&
|
|
4379
|
+
e[12] && Tt(e)
|
|
4415
4380
|
);
|
|
4416
4381
|
return {
|
|
4417
4382
|
c() {
|
|
4418
|
-
t =
|
|
4383
|
+
t = O("div"), l && l.c(), r = z(), f && f.c(), n = z(), d.c(), i = z(), s = O("div"), a = O("div"), o = M(
|
|
4419
4384
|
/*title*/
|
|
4420
4385
|
e[1]
|
|
4421
|
-
),
|
|
4386
|
+
), h = z(), b && b.c(), u = z(), g && g.c(), y(a, "class", "Title"), y(a, "part", "Title"), y(s, "class", "Details"), y(s, "part", "Details"), y(t, "class", "Thumbnail"), y(t, "part", "Thumbnail");
|
|
4422
4387
|
},
|
|
4423
4388
|
m(p, T) {
|
|
4424
|
-
|
|
4389
|
+
F(p, t, T), l && l.m(t, null), S(t, r), f && f.m(t, null), S(t, n), d.m(t, null), S(t, i), S(t, s), S(s, a), S(a, o), S(s, h), b && b.m(s, null), S(s, u), g && g.m(s, null), e[29](t);
|
|
4425
4390
|
},
|
|
4426
4391
|
p(p, T) {
|
|
4427
4392
|
/*status*/
|
|
4428
|
-
p[0] ?
|
|
4429
|
-
p[7] == "true" ?
|
|
4430
|
-
2 &&
|
|
4393
|
+
p[0] ? l ? l.p(p, T) : (l = Et(p), l.c(), l.m(t, r)) : l && (l.d(1), l = null), /*showenrolled*/
|
|
4394
|
+
p[7] == "true" ? f ? f.p(p, T) : (f = xt(p), f.c(), f.m(t, n)) : f && (f.d(1), f = null), E === (E = c(p)) && d ? d.p(p, T) : (d.d(1), d = E(p), d && (d.c(), d.m(t, i))), T[0] & /*title*/
|
|
4395
|
+
2 && G(
|
|
4431
4396
|
o,
|
|
4432
4397
|
/*title*/
|
|
4433
4398
|
p[1]
|
|
4434
4399
|
), /*startdate*/
|
|
4435
|
-
p[2] ? b ? b.p(p, T) : (b =
|
|
4436
|
-
p[12] ? g ? g.p(p, T) : (g =
|
|
4400
|
+
p[2] ? b ? b.p(p, T) : (b = St(p), b.c(), b.m(s, u)) : b && (b.d(1), b = null), /*isLoggedIn*/
|
|
4401
|
+
p[12] ? g ? g.p(p, T) : (g = Tt(p), g.c(), g.m(s, null)) : g && (g.d(1), g = null);
|
|
4437
4402
|
},
|
|
4438
|
-
i:
|
|
4439
|
-
o:
|
|
4403
|
+
i: k,
|
|
4404
|
+
o: k,
|
|
4440
4405
|
d(p) {
|
|
4441
|
-
p && L(t),
|
|
4406
|
+
p && L(t), l && l.d(), f && f.d(), d.d(), b && b.d(), g && g.d(), e[29](null);
|
|
4442
4407
|
}
|
|
4443
4408
|
};
|
|
4444
4409
|
}
|
|
4445
|
-
function
|
|
4410
|
+
function Hi(e, t, r) {
|
|
4446
4411
|
let n;
|
|
4447
|
-
|
|
4448
|
-
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status:
|
|
4412
|
+
lr(e, Ei, (m) => r(16, n = m));
|
|
4413
|
+
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: h = "" } = t, { tourid: u = "" } = t, { thumbnail: l = "" } = t, { userenrolled: f = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: E = "" } = t, { showenrolled: d = "false" } = t, { gameurl: b = "" } = t, { lang: g = "en" } = t, { keepbrowsercontext: p = "false" } = t, { clientstyling: T = "" } = t, { clientstylingurl: N = "" } = t, { translationurl: H = "" } = t, C, U = "", D = !1, $ = "", j = "", B = "";
|
|
4449
4414
|
const R = () => {
|
|
4450
|
-
fetch(H).then((
|
|
4451
|
-
Object.keys(
|
|
4452
|
-
|
|
4415
|
+
fetch(H).then((P) => P.json()).then((P) => {
|
|
4416
|
+
Object.keys(P).forEach((V) => {
|
|
4417
|
+
yt(V, P[V]);
|
|
4453
4418
|
});
|
|
4454
|
-
}).catch((
|
|
4455
|
-
console.log(
|
|
4419
|
+
}).catch((P) => {
|
|
4420
|
+
console.log(P);
|
|
4456
4421
|
});
|
|
4457
4422
|
};
|
|
4458
|
-
Object.keys(
|
|
4459
|
-
|
|
4423
|
+
Object.keys(_t).forEach((m) => {
|
|
4424
|
+
yt(m, _t[m]);
|
|
4460
4425
|
});
|
|
4461
|
-
const
|
|
4462
|
-
m.data && (m.data && m.data.type == "SessionID" && r(12, D = !0), m.data.type == `TournamentStatus_${u}` && r(0,
|
|
4463
|
-
},
|
|
4426
|
+
const et = (m) => {
|
|
4427
|
+
m.data && (m.data && m.data.type == "SessionID" && r(12, D = !0), m.data.type == `TournamentStatus_${u}` && r(0, h = m.data.status));
|
|
4428
|
+
}, Ce = () => {
|
|
4464
4429
|
const m = { month: "long" };
|
|
4465
|
-
let
|
|
4430
|
+
let P = new Date(o), V = new Intl.DateTimeFormat("en", m).format(P), sr = P.getDate(), ar = P.toLocaleString("en-GB", {
|
|
4466
4431
|
hour: "numeric",
|
|
4467
4432
|
minute: "numeric",
|
|
4468
4433
|
hour12: !1
|
|
4469
4434
|
});
|
|
4470
|
-
const
|
|
4471
|
-
r(11,
|
|
4435
|
+
const or = () => n(h === "Running" ? "startedAt" : "startingAt");
|
|
4436
|
+
r(11, U = `${sr} ` + n(`${V}`) + ", " + or() + ` ${ar}`);
|
|
4437
|
+
}, Be = () => {
|
|
4438
|
+
h == "Unstarted" && (r(13, $ = n("scheduled")), r(15, B = "StatusUnstarted")), h == "Running" && (r(13, $ = n("ongoing")), r(15, B = "StatusRunning")), (h == "Closed" || h == "Closing") && r(13, $ = n("finished")), h == "Closed" && r(15, B = "StatusClosed"), h == "Closing" && r(15, B = "StatusClosing");
|
|
4472
4439
|
}, we = () => {
|
|
4473
|
-
|
|
4474
|
-
},
|
|
4475
|
-
|
|
4476
|
-
},
|
|
4477
|
-
window.postMessage({ type: "tournamentGamesClicked", tourId: O }, window.location.href);
|
|
4478
|
-
}, or = () => {
|
|
4440
|
+
c == "BetCount" && r(14, j = n("betCount")), c == "MaxWinStakeRatio" && r(14, j = n("maxWinStakeRatio")), c == "WinStakeRatio" && r(14, j = n("winStakeRatio")), c == "Stake" && r(14, j = n("stake"));
|
|
4441
|
+
}, tt = (m, P) => {
|
|
4442
|
+
window.postMessage({ type: "tournamentGamesClicked", tourId: P }, window.location.href);
|
|
4443
|
+
}, er = () => {
|
|
4479
4444
|
i.length > 0 && i != "false" ? r(12, D = !0) : r(12, D = !1);
|
|
4480
|
-
},
|
|
4445
|
+
}, tr = () => {
|
|
4481
4446
|
let m = document.createElement("style");
|
|
4482
4447
|
m.innerHTML = T, C.appendChild(m);
|
|
4483
|
-
},
|
|
4484
|
-
let m = new URL(N),
|
|
4485
|
-
fetch(m.href).then((
|
|
4486
|
-
|
|
4448
|
+
}, rr = () => {
|
|
4449
|
+
let m = new URL(N), P = document.createElement("style");
|
|
4450
|
+
fetch(m.href).then((V) => V.text()).then((V) => {
|
|
4451
|
+
P.innerHTML = V, setTimeout(
|
|
4487
4452
|
() => {
|
|
4488
|
-
C.appendChild(
|
|
4453
|
+
C.appendChild(P);
|
|
4489
4454
|
},
|
|
4490
4455
|
1
|
|
4491
4456
|
), setTimeout(
|
|
@@ -4495,70 +4460,70 @@ function Di(e, t, r) {
|
|
|
4495
4460
|
);
|
|
4496
4461
|
});
|
|
4497
4462
|
};
|
|
4498
|
-
|
|
4499
|
-
window.removeEventListener("message",
|
|
4463
|
+
yr(() => (setTimeout(() => rt(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", et, !1), () => {
|
|
4464
|
+
window.removeEventListener("message", et);
|
|
4500
4465
|
}));
|
|
4501
|
-
const
|
|
4502
|
-
|
|
4503
|
-
},
|
|
4504
|
-
function
|
|
4505
|
-
|
|
4466
|
+
const rt = () => {
|
|
4467
|
+
xi(g), we(), Be(), o && Ce();
|
|
4468
|
+
}, nr = () => tt();
|
|
4469
|
+
function ir(m) {
|
|
4470
|
+
Ue[m ? "unshift" : "push"](() => {
|
|
4506
4471
|
C = m, r(10, C);
|
|
4507
4472
|
});
|
|
4508
4473
|
}
|
|
4509
4474
|
return e.$$set = (m) => {
|
|
4510
|
-
"session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0,
|
|
4475
|
+
"session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0, h = m.status), "tourid" in m && r(3, u = m.tourid), "thumbnail" in m && r(4, l = m.thumbnail), "userenrolled" in m && r(5, f = m.userenrolled), "scorecriteria" in m && r(23, c = m.scorecriteria), "minbetcount" in m && r(6, E = m.minbetcount), "showenrolled" in m && r(7, d = m.showenrolled), "gameurl" in m && r(8, b = m.gameurl), "lang" in m && r(24, g = m.lang), "keepbrowsercontext" in m && r(9, p = m.keepbrowsercontext), "clientstyling" in m && r(25, T = m.clientstyling), "clientstylingurl" in m && r(26, N = m.clientstylingurl), "translationurl" in m && r(27, H = m.translationurl);
|
|
4511
4476
|
}, e.$$.update = () => {
|
|
4512
4477
|
e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
|
|
4513
|
-
33555456 && C && T &&
|
|
4514
|
-
67109888 && C && N &&
|
|
4478
|
+
33555456 && C && T && tr(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
|
|
4479
|
+
67109888 && C && N && rr(), e.$$.dirty[0] & /*translationurl*/
|
|
4515
4480
|
134217728 && H && R(), e.$$.dirty[0] & /*session*/
|
|
4516
|
-
2097152 && i &&
|
|
4517
|
-
1 &&
|
|
4518
|
-
16777218 && a && g &&
|
|
4519
|
-
4 && o &&
|
|
4520
|
-
8388608 &&
|
|
4481
|
+
2097152 && i && er(), e.$$.dirty[0] & /*status*/
|
|
4482
|
+
1 && h && Be(), e.$$.dirty[0] & /*title, lang*/
|
|
4483
|
+
16777218 && a && g && rt(), e.$$.dirty[0] & /*startdate*/
|
|
4484
|
+
4 && o && Ce(), e.$$.dirty[0] & /*scorecriteria*/
|
|
4485
|
+
8388608 && c && we();
|
|
4521
4486
|
}, [
|
|
4522
|
-
|
|
4487
|
+
h,
|
|
4523
4488
|
a,
|
|
4524
4489
|
o,
|
|
4525
4490
|
u,
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4491
|
+
l,
|
|
4492
|
+
f,
|
|
4493
|
+
E,
|
|
4529
4494
|
d,
|
|
4530
4495
|
b,
|
|
4531
4496
|
p,
|
|
4532
4497
|
C,
|
|
4533
|
-
|
|
4498
|
+
U,
|
|
4534
4499
|
D,
|
|
4500
|
+
$,
|
|
4535
4501
|
j,
|
|
4536
|
-
V,
|
|
4537
4502
|
B,
|
|
4538
4503
|
n,
|
|
4504
|
+
Ce,
|
|
4539
4505
|
Be,
|
|
4540
4506
|
we,
|
|
4541
|
-
|
|
4542
|
-
it,
|
|
4507
|
+
tt,
|
|
4543
4508
|
i,
|
|
4544
4509
|
s,
|
|
4545
|
-
|
|
4510
|
+
c,
|
|
4546
4511
|
g,
|
|
4547
4512
|
T,
|
|
4548
4513
|
N,
|
|
4549
4514
|
H,
|
|
4550
|
-
|
|
4551
|
-
|
|
4515
|
+
nr,
|
|
4516
|
+
ir
|
|
4552
4517
|
];
|
|
4553
4518
|
}
|
|
4554
|
-
class
|
|
4519
|
+
class Kt extends Nr {
|
|
4555
4520
|
constructor(t) {
|
|
4556
|
-
super(),
|
|
4521
|
+
super(), Br(
|
|
4557
4522
|
this,
|
|
4558
4523
|
t,
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4524
|
+
Hi,
|
|
4525
|
+
Ai,
|
|
4526
|
+
Ht,
|
|
4562
4527
|
{
|
|
4563
4528
|
session: 21,
|
|
4564
4529
|
userid: 22,
|
|
@@ -4578,7 +4543,7 @@ class ar extends $r {
|
|
|
4578
4543
|
clientstylingurl: 26,
|
|
4579
4544
|
translationurl: 27
|
|
4580
4545
|
},
|
|
4581
|
-
|
|
4546
|
+
vi,
|
|
4582
4547
|
[-1, -1]
|
|
4583
4548
|
);
|
|
4584
4549
|
}
|
|
@@ -4685,51 +4650,51 @@ class ar extends $r {
|
|
|
4685
4650
|
this.$$set({ translationurl: t }), w();
|
|
4686
4651
|
}
|
|
4687
4652
|
}
|
|
4688
|
-
|
|
4689
|
-
const
|
|
4653
|
+
wr(Kt, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4654
|
+
const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4690
4655
|
__proto__: null,
|
|
4691
|
-
default:
|
|
4656
|
+
default: Kt
|
|
4692
4657
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4693
4658
|
export {
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4659
|
+
ie as $,
|
|
4660
|
+
De as A,
|
|
4661
|
+
mr as B,
|
|
4662
|
+
re as C,
|
|
4663
|
+
wi as D,
|
|
4664
|
+
ke as E,
|
|
4665
|
+
Ii as F,
|
|
4666
|
+
Pi as G,
|
|
4667
|
+
Ge as H,
|
|
4668
|
+
Oi as I,
|
|
4669
|
+
Bi as J,
|
|
4670
|
+
Ci as K,
|
|
4671
|
+
Li as L,
|
|
4672
|
+
Nr as S,
|
|
4673
|
+
Mi as _,
|
|
4674
|
+
Oe as a,
|
|
4675
|
+
Ri as b,
|
|
4676
|
+
ve as c,
|
|
4677
|
+
me as d,
|
|
4678
|
+
Xt as e,
|
|
4679
|
+
wr as f,
|
|
4680
|
+
w as g,
|
|
4681
|
+
hr as h,
|
|
4682
|
+
Br as i,
|
|
4683
|
+
O as j,
|
|
4684
|
+
F as k,
|
|
4720
4685
|
L as l,
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4686
|
+
lr as m,
|
|
4687
|
+
k as n,
|
|
4688
|
+
yr as o,
|
|
4689
|
+
Ue as p,
|
|
4690
|
+
z as q,
|
|
4691
|
+
Ni as r,
|
|
4692
|
+
Ht as s,
|
|
4728
4693
|
y as t,
|
|
4729
4694
|
S as u,
|
|
4730
|
-
|
|
4695
|
+
ce as v,
|
|
4731
4696
|
fe as w,
|
|
4732
4697
|
M as x,
|
|
4733
|
-
|
|
4734
|
-
|
|
4698
|
+
G as y,
|
|
4699
|
+
Ei as z
|
|
4735
4700
|
};
|