@everymatrix/casino-tournaments-thumbnail 1.76.3 → 1.76.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsThumbnail-CLUqZEVg.js → CasinoTournamentsThumbnail-Dlfi6HSf.js} +794 -792
- package/components/{CasinoTournamentsThumbnail-Bh7oVm6s.js → CasinoTournamentsThumbnail-Dmbdoi5K.js} +781 -779
- package/components/CasinoTournamentsThumbnail-EfA_Y5Ma.cjs +6 -0
- package/es2015/casino-tournaments-thumbnail.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail.js +1 -1
- package/esnext/casino-tournaments-thumbnail.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652--F7PvMq9.js} +176 -176
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-CCFHkzJw.js} +187 -187
- package/stencil/index-b2193545-BS7xFIk4.js +503 -0
- package/stencil/index-b2193545-BTdVi7--.cjs +1 -0
- package/stencil/index-b2193545-rfNAj6ri.js +519 -0
- package/stencil/{ui-image-DBXtq7Sy.cjs → ui-image-Bk8cIvcH.cjs} +1 -1
- package/stencil/{ui-image-BNRjOSaN.js → ui-image-CXqPvnQ2.js} +1 -1
- package/stencil/{ui-image-D9tkwepr.js → ui-image-DgbODkuX.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-qO3reSlr.js} +2 -2
- package/stencil/{ui-skeleton-CKaouoPt.cjs → ui-skeleton-B0BB970e.cjs} +1 -1
- package/stencil/{ui-skeleton-BecGfbnY.js → ui-skeleton-D8L-WY77.js} +2 -2
- package/stencil/{ui-skeleton-DXmvn9dE.js → ui-skeleton-DSebcnN1.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-BVAHFeog.js → ui-skeleton-ae35c6f2-BH4D8vHD.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-8tswdmF8.js → ui-skeleton-ae35c6f2-CcPx4a2P.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-kPD5RoB3.cjs → ui-skeleton-ae35c6f2-DDiK5zGt.cjs} +1 -1
- package/components/CasinoTournamentsThumbnail-S-uL5Qef.cjs +0 -19
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
- package/stencil/index-b2193545-CD_KQ0BB.js +0 -519
- package/stencil/index-b2193545-CrHhiaNt.js +0 -503
- package/stencil/index-b2193545-ngvz84TK.cjs +0 -1
package/components/{CasinoTournamentsThumbnail-CLUqZEVg.js → CasinoTournamentsThumbnail-Dlfi6HSf.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var gr = Object.defineProperty, pr = Object.defineProperties;
|
|
2
|
+
var yr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var st = Object.getOwnPropertySymbols;
|
|
4
|
+
var _r = Object.prototype.hasOwnProperty, vr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Le = (e, t, r) => t in e ? gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
_r.call(t, r) && Le(e, r, t[r]);
|
|
8
|
+
if (st)
|
|
9
|
+
for (var r of st(t))
|
|
10
|
+
vr.call(t, r) && Le(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var U = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, ot = (e, t) => pr(e, yr(t));
|
|
13
|
+
var U = (e, t, r) => (Le(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ut = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
o(r.next(l));
|
|
@@ -27,33 +27,33 @@ var ot = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
28
|
o((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-skeleton-
|
|
31
|
-
import "../stencil/ui-image-
|
|
30
|
+
import "../stencil/ui-skeleton-D8L-WY77.js";
|
|
31
|
+
import "../stencil/ui-image-DgbODkuX.js";
|
|
32
32
|
function F() {
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Pt(e) {
|
|
35
35
|
return e();
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function lt() {
|
|
38
38
|
return /* @__PURE__ */ Object.create(null);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
e.forEach(
|
|
40
|
+
function z(e) {
|
|
41
|
+
e.forEach(Pt);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function be(e) {
|
|
44
44
|
return typeof e == "function";
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Mt(e, t) {
|
|
47
47
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
48
48
|
}
|
|
49
|
-
let
|
|
50
|
-
function
|
|
51
|
-
return e === t ? !0 : (
|
|
49
|
+
let pe;
|
|
50
|
+
function je(e, t) {
|
|
51
|
+
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Er(e) {
|
|
54
54
|
return Object.keys(e).length === 0;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Lt(e, ...t) {
|
|
57
57
|
if (e == null) {
|
|
58
58
|
for (const n of t)
|
|
59
59
|
n(void 0);
|
|
@@ -62,23 +62,23 @@ function Pt(e, ...t) {
|
|
|
62
62
|
const r = e.subscribe(...t);
|
|
63
63
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
e.$$.on_destroy.push(
|
|
65
|
+
function xr(e, t, r) {
|
|
66
|
+
e.$$.on_destroy.push(Lt(t, r));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return e &&
|
|
68
|
+
function ge(e) {
|
|
69
|
+
return e && be(e.destroy) ? e.destroy : F;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function T(e, t) {
|
|
72
72
|
e.appendChild(t);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
const n =
|
|
74
|
+
function Sr(e, t, r) {
|
|
75
|
+
const n = Tr(e);
|
|
76
76
|
if (!n.getElementById(t)) {
|
|
77
77
|
const i = w("style");
|
|
78
|
-
i.id = t, i.textContent = r,
|
|
78
|
+
i.id = t, i.textContent = r, Ar(n, i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Tr(e) {
|
|
82
82
|
if (!e)
|
|
83
83
|
return document;
|
|
84
84
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -88,14 +88,14 @@ function Sr(e) {
|
|
|
88
88
|
t
|
|
89
89
|
) : e.ownerDocument;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function Ar(e, t) {
|
|
92
|
+
return T(
|
|
93
93
|
/** @type {Document} */
|
|
94
94
|
e.head || e,
|
|
95
95
|
t
|
|
96
96
|
), t.sheet;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function P(e, t, r) {
|
|
99
99
|
e.insertBefore(t, r || null);
|
|
100
100
|
}
|
|
101
101
|
function N(e) {
|
|
@@ -110,27 +110,27 @@ function D(e) {
|
|
|
110
110
|
function $() {
|
|
111
111
|
return D(" ");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Hr() {
|
|
114
114
|
return D("");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Ae(e, t, r, n) {
|
|
117
117
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
118
118
|
}
|
|
119
119
|
function b(e, t, r) {
|
|
120
120
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function ee(e, t, r) {
|
|
123
123
|
const n = t.toLowerCase();
|
|
124
124
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : b(e, t, r);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Cr(e) {
|
|
127
127
|
return Array.from(e.childNodes);
|
|
128
128
|
}
|
|
129
129
|
function G(e, t) {
|
|
130
130
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
131
131
|
t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Br(e) {
|
|
134
134
|
const t = {};
|
|
135
135
|
return e.childNodes.forEach(
|
|
136
136
|
/** @param {Element} node */
|
|
@@ -140,86 +140,86 @@ function Cr(e) {
|
|
|
140
140
|
), t;
|
|
141
141
|
}
|
|
142
142
|
let fe;
|
|
143
|
-
function
|
|
143
|
+
function ce(e) {
|
|
144
144
|
fe = e;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function wr() {
|
|
147
147
|
if (!fe)
|
|
148
148
|
throw new Error("Function called outside component initialization");
|
|
149
149
|
return fe;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
151
|
+
function Ir(e) {
|
|
152
|
+
wr().$$.on_mount.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
const
|
|
157
|
-
let
|
|
158
|
-
function
|
|
159
|
-
|
|
154
|
+
const K = [], Ve = [];
|
|
155
|
+
let te = [];
|
|
156
|
+
const ht = [], Nr = /* @__PURE__ */ Promise.resolve();
|
|
157
|
+
let Je = !1;
|
|
158
|
+
function Or() {
|
|
159
|
+
Je || (Je = !0, Nr.then(C));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
161
|
+
function ze(e) {
|
|
162
|
+
te.push(e);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
let
|
|
164
|
+
const Re = /* @__PURE__ */ new Set();
|
|
165
|
+
let Q = 0;
|
|
166
166
|
function C() {
|
|
167
|
-
if (
|
|
167
|
+
if (Q !== 0)
|
|
168
168
|
return;
|
|
169
169
|
const e = fe;
|
|
170
170
|
do {
|
|
171
171
|
try {
|
|
172
|
-
for (;
|
|
173
|
-
const t =
|
|
174
|
-
|
|
172
|
+
for (; Q < K.length; ) {
|
|
173
|
+
const t = K[Q];
|
|
174
|
+
Q++, ce(t), Pr(t.$$);
|
|
175
175
|
}
|
|
176
176
|
} catch (t) {
|
|
177
|
-
throw
|
|
177
|
+
throw K.length = 0, Q = 0, t;
|
|
178
178
|
}
|
|
179
|
-
for (
|
|
180
|
-
|
|
181
|
-
for (let t = 0; t <
|
|
182
|
-
const r =
|
|
183
|
-
|
|
179
|
+
for (ce(null), K.length = 0, Q = 0; Ve.length; )
|
|
180
|
+
Ve.pop()();
|
|
181
|
+
for (let t = 0; t < te.length; t += 1) {
|
|
182
|
+
const r = te[t];
|
|
183
|
+
Re.has(r) || (Re.add(r), r());
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
} while (
|
|
187
|
-
for (;
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
te.length = 0;
|
|
186
|
+
} while (K.length);
|
|
187
|
+
for (; ht.length; )
|
|
188
|
+
ht.pop()();
|
|
189
|
+
Je = !1, Re.clear(), ce(e);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Pr(e) {
|
|
192
192
|
if (e.fragment !== null) {
|
|
193
|
-
e.update(),
|
|
193
|
+
e.update(), z(e.before_update);
|
|
194
194
|
const t = e.dirty;
|
|
195
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
195
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ze);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Mr(e) {
|
|
199
199
|
const t = [], r = [];
|
|
200
|
-
|
|
200
|
+
te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
|
|
201
201
|
}
|
|
202
|
-
const
|
|
203
|
-
function
|
|
204
|
-
e && e.i && (
|
|
202
|
+
const Lr = /* @__PURE__ */ new Set();
|
|
203
|
+
function Rr(e, t) {
|
|
204
|
+
e && e.i && (Lr.delete(e), e.i(t));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Dr(e, t, r) {
|
|
207
207
|
const { fragment: n, after_update: i } = e.$$;
|
|
208
|
-
n && n.m(t, r),
|
|
209
|
-
const s = e.$$.on_mount.map(
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
211
|
-
}), i.forEach(
|
|
208
|
+
n && n.m(t, r), ze(() => {
|
|
209
|
+
const s = e.$$.on_mount.map(Pt).filter(be);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
|
|
211
|
+
}), i.forEach(ze);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function kr(e, t) {
|
|
214
214
|
const r = e.$$;
|
|
215
|
-
r.fragment !== null && (
|
|
215
|
+
r.fragment !== null && (Mr(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
e.$$.dirty[0] === -1 && (
|
|
217
|
+
function Ur(e, t) {
|
|
218
|
+
e.$$.dirty[0] === -1 && (K.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Fr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
221
221
|
const l = fe;
|
|
222
|
-
|
|
222
|
+
ce(e);
|
|
223
223
|
const u = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
@@ -227,7 +227,7 @@ function Ur(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
227
227
|
props: s,
|
|
228
228
|
update: F,
|
|
229
229
|
not_equal: i,
|
|
230
|
-
bound:
|
|
230
|
+
bound: lt(),
|
|
231
231
|
// lifecycle
|
|
232
232
|
on_mount: [],
|
|
233
233
|
on_destroy: [],
|
|
@@ -236,28 +236,28 @@ function Ur(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
236
236
|
after_update: [],
|
|
237
237
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
238
238
|
// everything else
|
|
239
|
-
callbacks:
|
|
239
|
+
callbacks: lt(),
|
|
240
240
|
dirty: o,
|
|
241
241
|
skip_bound: !1,
|
|
242
242
|
root: t.target || l.$$.root
|
|
243
243
|
};
|
|
244
244
|
a && a(u.root);
|
|
245
245
|
let h = !1;
|
|
246
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
247
|
-
const E =
|
|
248
|
-
return u.ctx && i(u.ctx[
|
|
249
|
-
}), u.update(), h = !0,
|
|
246
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...x) => {
|
|
247
|
+
const E = x.length ? x[0] : c;
|
|
248
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = E) && (!u.skip_bound && u.bound[f] && u.bound[f](E), h && Ur(e, f)), c;
|
|
249
|
+
}) : [], u.update(), h = !0, z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
|
-
const
|
|
252
|
-
u.fragment && u.fragment.l(
|
|
251
|
+
const f = Cr(t.target);
|
|
252
|
+
u.fragment && u.fragment.l(f), f.forEach(N);
|
|
253
253
|
} else
|
|
254
254
|
u.fragment && u.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && Rr(e.$$.fragment), Dr(e, t.target, t.anchor), C();
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
ce(l);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
260
|
-
typeof HTMLElement == "function" && (
|
|
259
|
+
let Rt;
|
|
260
|
+
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
261
261
|
constructor(t, r, n) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
@@ -294,7 +294,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
connectedCallback() {
|
|
297
|
-
return
|
|
297
|
+
return ut(this, null, function* () {
|
|
298
298
|
if (this.$$cn = !0, !this.$$c) {
|
|
299
299
|
let t = function(s) {
|
|
300
300
|
return () => {
|
|
@@ -308,7 +308,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
308
308
|
* @param {HTMLElement} [anchor]
|
|
309
309
|
*/
|
|
310
310
|
m: function(u, h) {
|
|
311
|
-
|
|
311
|
+
P(u, a, h);
|
|
312
312
|
},
|
|
313
313
|
d: function(u) {
|
|
314
314
|
u && N(a);
|
|
@@ -318,18 +318,18 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
318
318
|
};
|
|
319
319
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
320
|
return;
|
|
321
|
-
const r = {}, n =
|
|
321
|
+
const r = {}, n = Br(this);
|
|
322
322
|
for (const s of this.$$s)
|
|
323
323
|
s in n && (r[s] = [t(s)]);
|
|
324
324
|
for (const s of this.attributes) {
|
|
325
325
|
const a = this.$$g_p(s.name);
|
|
326
|
-
a in this.$$d || (this.$$d[a] =
|
|
326
|
+
a in this.$$d || (this.$$d[a] = _e(a, s.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
328
|
for (const s in this.$$p_d)
|
|
329
329
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
330
330
|
this.$$c = new this.$$ctor({
|
|
331
331
|
target: this.shadowRoot || this,
|
|
332
|
-
props: at(
|
|
332
|
+
props: ot(at({}, this.$$d), {
|
|
333
333
|
$$slots: r,
|
|
334
334
|
$$scope: {
|
|
335
335
|
ctx: []
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
340
340
|
this.$$r = !0;
|
|
341
341
|
for (const s in this.$$p_d)
|
|
342
342
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
343
|
-
const a =
|
|
343
|
+
const a = _e(
|
|
344
344
|
s,
|
|
345
345
|
this.$$d[s],
|
|
346
346
|
this.$$p_d,
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
364
364
|
// and setting attributes through setAttribute etc, this is helpful
|
|
365
365
|
attributeChangedCallback(t, r, n) {
|
|
366
366
|
var i;
|
|
367
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
367
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = _e(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
368
368
|
}
|
|
369
369
|
disconnectedCallback() {
|
|
370
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
|
|
|
377
377
|
) || t;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function _e(e, t, r, n) {
|
|
381
381
|
var s;
|
|
382
382
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
383
383
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -407,8 +407,8 @@ function ye(e, t, r, n) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
let a = class extends
|
|
410
|
+
function Gr(e, t, r, n, i, s) {
|
|
411
|
+
let a = class extends Rt {
|
|
412
412
|
constructor() {
|
|
413
413
|
super(e, r, i), this.$$p_d = t;
|
|
414
414
|
}
|
|
@@ -425,7 +425,7 @@ function Fr(e, t, r, n, i, s) {
|
|
|
425
425
|
},
|
|
426
426
|
set(l) {
|
|
427
427
|
var u;
|
|
428
|
-
l =
|
|
428
|
+
l = _e(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
}), n.forEach((o) => {
|
|
@@ -438,7 +438,7 @@ function Fr(e, t, r, n, i, s) {
|
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
439
|
a, a;
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class $r {
|
|
442
442
|
constructor() {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
@@ -459,7 +459,7 @@ class Gr {
|
|
|
459
459
|
}
|
|
460
460
|
/** @returns {void} */
|
|
461
461
|
$destroy() {
|
|
462
|
-
|
|
462
|
+
kr(this, 1), this.$destroy = F;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
465
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -468,7 +468,7 @@ class Gr {
|
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
470
|
$on(t, r) {
|
|
471
|
-
if (!
|
|
471
|
+
if (!be(r))
|
|
472
472
|
return F;
|
|
473
473
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
474
|
return n.push(r), () => {
|
|
@@ -481,29 +481,29 @@ class Gr {
|
|
|
481
481
|
* @returns {void}
|
|
482
482
|
*/
|
|
483
483
|
$set(t) {
|
|
484
|
-
this.$$set && !
|
|
484
|
+
this.$$set && !Er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const
|
|
488
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
489
|
-
const
|
|
490
|
-
function
|
|
487
|
+
const jr = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jr);
|
|
489
|
+
const Y = [];
|
|
490
|
+
function Vr(e, t) {
|
|
491
491
|
return {
|
|
492
|
-
subscribe:
|
|
492
|
+
subscribe: He(e, t).subscribe
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function He(e, t = F) {
|
|
496
496
|
let r;
|
|
497
497
|
const n = /* @__PURE__ */ new Set();
|
|
498
498
|
function i(o) {
|
|
499
|
-
if (
|
|
500
|
-
const l = !
|
|
499
|
+
if (Mt(e, o) && (e = o, r)) {
|
|
500
|
+
const l = !Y.length;
|
|
501
501
|
for (const u of n)
|
|
502
|
-
u[1](),
|
|
502
|
+
u[1](), Y.push(u, e);
|
|
503
503
|
if (l) {
|
|
504
|
-
for (let u = 0; u <
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
for (let u = 0; u < Y.length; u += 2)
|
|
505
|
+
Y[u][0](Y[u + 1]);
|
|
506
|
+
Y.length = 0;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
}
|
|
@@ -518,153 +518,139 @@ function Te(e, t = F) {
|
|
|
518
518
|
}
|
|
519
519
|
return { set: i, update: s, subscribe: a };
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function ae(e, t, r) {
|
|
522
522
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
523
523
|
if (!i.every(Boolean))
|
|
524
524
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
525
525
|
const s = t.length < 2;
|
|
526
|
-
return
|
|
526
|
+
return Vr(r, (a, o) => {
|
|
527
527
|
let l = !1;
|
|
528
528
|
const u = [];
|
|
529
|
-
let h = 0,
|
|
530
|
-
const
|
|
529
|
+
let h = 0, f = F;
|
|
530
|
+
const c = () => {
|
|
531
531
|
if (h)
|
|
532
532
|
return;
|
|
533
|
-
|
|
533
|
+
f();
|
|
534
534
|
const E = t(n ? u[0] : u, a, o);
|
|
535
|
-
s ? a(E) :
|
|
536
|
-
},
|
|
537
|
-
(E, g) =>
|
|
535
|
+
s ? a(E) : f = be(E) ? E : F;
|
|
536
|
+
}, x = i.map(
|
|
537
|
+
(E, g) => Lt(
|
|
538
538
|
E,
|
|
539
539
|
(y) => {
|
|
540
|
-
u[g] = y, h &= ~(1 << g), l &&
|
|
540
|
+
u[g] = y, h &= ~(1 << g), l && c();
|
|
541
541
|
},
|
|
542
542
|
() => {
|
|
543
543
|
h |= 1 << g;
|
|
544
544
|
}
|
|
545
545
|
)
|
|
546
546
|
);
|
|
547
|
-
return l = !0,
|
|
548
|
-
|
|
547
|
+
return l = !0, c(), function() {
|
|
548
|
+
z(x), f(), l = !1;
|
|
549
549
|
};
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
552
|
+
function Jr(e) {
|
|
553
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
554
554
|
}
|
|
555
|
-
var
|
|
556
|
-
return
|
|
555
|
+
var zr = function(t) {
|
|
556
|
+
return Wr(t) && !Xr(t);
|
|
557
557
|
};
|
|
558
|
-
function
|
|
558
|
+
function Wr(e) {
|
|
559
559
|
return !!e && typeof e == "object";
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Xr(e) {
|
|
562
562
|
var t = Object.prototype.toString.call(e);
|
|
563
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
564
|
-
}
|
|
565
|
-
var Xr = typeof Symbol == "function" && Symbol.for, Zr = Xr ? Symbol.for("react.element") : 60103;
|
|
566
|
-
function qr(e) {
|
|
567
|
-
return e.$$typeof === Zr;
|
|
563
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
|
|
568
564
|
}
|
|
565
|
+
var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
|
|
569
566
|
function Qr(e) {
|
|
567
|
+
return e.$$typeof === qr;
|
|
568
|
+
}
|
|
569
|
+
function Yr(e) {
|
|
570
570
|
return Array.isArray(e) ? [] : {};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
572
|
+
function me(e, t) {
|
|
573
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? re(Yr(e), e, t) : e;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Kr(e, t, r) {
|
|
576
576
|
return e.concat(t).map(function(n) {
|
|
577
|
-
return
|
|
577
|
+
return me(n, r);
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function en(e, t) {
|
|
581
581
|
if (!t.customMerge)
|
|
582
|
-
return
|
|
582
|
+
return re;
|
|
583
583
|
var r = t.customMerge(e);
|
|
584
|
-
return typeof r == "function" ? r :
|
|
584
|
+
return typeof r == "function" ? r : re;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function tn(e) {
|
|
587
587
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
588
588
|
return Object.propertyIsEnumerable.call(e, t);
|
|
589
589
|
}) : [];
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
return Object.keys(e).concat(
|
|
591
|
+
function ct(e) {
|
|
592
|
+
return Object.keys(e).concat(tn(e));
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Dt(e, t) {
|
|
595
595
|
try {
|
|
596
596
|
return t in e;
|
|
597
597
|
} catch (r) {
|
|
598
598
|
return !1;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function rn(e, t) {
|
|
602
|
+
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function nn(e, t, r) {
|
|
605
605
|
var n = {};
|
|
606
|
-
return r.isMergeableObject(e) &&
|
|
607
|
-
n[i] =
|
|
608
|
-
}),
|
|
609
|
-
|
|
606
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
607
|
+
n[i] = me(e[i], r);
|
|
608
|
+
}), ct(t).forEach(function(i) {
|
|
609
|
+
rn(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
610
610
|
}), n;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
612
|
+
function re(e, t, r) {
|
|
613
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || zr, r.cloneUnlessOtherwiseSpecified = me;
|
|
614
614
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
615
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
615
|
+
return s ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : me(t, r);
|
|
616
616
|
}
|
|
617
|
-
|
|
617
|
+
re.all = function(t, r) {
|
|
618
618
|
if (!Array.isArray(t))
|
|
619
619
|
throw new Error("first argument should be an array");
|
|
620
620
|
return t.reduce(function(n, i) {
|
|
621
|
-
return
|
|
621
|
+
return re(n, i, r);
|
|
622
622
|
}, {});
|
|
623
623
|
};
|
|
624
|
-
var
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
630
|
-
purpose with or without fee is hereby granted.
|
|
631
|
-
|
|
632
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
633
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
634
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
635
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
636
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
637
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
638
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
639
|
-
***************************************************************************** */
|
|
640
|
-
var Je = function(e, t) {
|
|
641
|
-
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
624
|
+
var sn = re, an = sn;
|
|
625
|
+
const on = /* @__PURE__ */ Jr(an);
|
|
626
|
+
var We = function(e, t) {
|
|
627
|
+
return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
642
628
|
r.__proto__ = n;
|
|
643
629
|
} || function(r, n) {
|
|
644
630
|
for (var i in n)
|
|
645
631
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
646
|
-
},
|
|
632
|
+
}, We(e, t);
|
|
647
633
|
};
|
|
648
|
-
function
|
|
634
|
+
function Ce(e, t) {
|
|
649
635
|
if (typeof t != "function" && t !== null)
|
|
650
636
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
651
|
-
|
|
637
|
+
We(e, t);
|
|
652
638
|
function r() {
|
|
653
639
|
this.constructor = e;
|
|
654
640
|
}
|
|
655
641
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
656
642
|
}
|
|
657
|
-
var
|
|
658
|
-
return
|
|
643
|
+
var j = function() {
|
|
644
|
+
return j = Object.assign || function(t) {
|
|
659
645
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
660
646
|
r = arguments[n];
|
|
661
647
|
for (var s in r)
|
|
662
648
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
663
649
|
}
|
|
664
650
|
return t;
|
|
665
|
-
},
|
|
651
|
+
}, j.apply(this, arguments);
|
|
666
652
|
};
|
|
667
|
-
function
|
|
653
|
+
function un(e, t) {
|
|
668
654
|
var r = {};
|
|
669
655
|
for (var n in e)
|
|
670
656
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -673,46 +659,43 @@ function on(e, t) {
|
|
|
673
659
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
674
660
|
return r;
|
|
675
661
|
}
|
|
676
|
-
function
|
|
677
|
-
if (arguments.length === 2)
|
|
662
|
+
function De(e, t, r) {
|
|
663
|
+
if (r || arguments.length === 2)
|
|
678
664
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
679
665
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
680
|
-
return e.concat(s || t);
|
|
666
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
681
667
|
}
|
|
682
|
-
function
|
|
683
|
-
var r = t && t.cache ? t.cache :
|
|
668
|
+
function ke(e, t) {
|
|
669
|
+
var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : cn;
|
|
684
670
|
return i(e, {
|
|
685
671
|
cache: r,
|
|
686
672
|
serializer: n
|
|
687
673
|
});
|
|
688
674
|
}
|
|
689
|
-
function
|
|
675
|
+
function ln(e) {
|
|
690
676
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
691
677
|
}
|
|
692
|
-
function
|
|
693
|
-
var i =
|
|
678
|
+
function hn(e, t, r, n) {
|
|
679
|
+
var i = ln(n) ? n : r(n), s = t.get(i);
|
|
694
680
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
695
681
|
}
|
|
696
682
|
function kt(e, t, r) {
|
|
697
683
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
698
684
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
699
685
|
}
|
|
700
|
-
function
|
|
686
|
+
function Ut(e, t, r, n, i) {
|
|
701
687
|
return r.bind(t, e, n, i);
|
|
702
688
|
}
|
|
703
|
-
function
|
|
704
|
-
var r = e.length === 1 ?
|
|
705
|
-
return
|
|
706
|
-
}
|
|
707
|
-
function hn(e, t) {
|
|
708
|
-
return et(e, this, kt, t.cache.create(), t.serializer);
|
|
689
|
+
function cn(e, t) {
|
|
690
|
+
var r = e.length === 1 ? hn : kt;
|
|
691
|
+
return Ut(e, this, r, t.cache.create(), t.serializer);
|
|
709
692
|
}
|
|
710
693
|
function fn(e, t) {
|
|
711
|
-
return
|
|
694
|
+
return Ut(e, this, kt, t.cache.create(), t.serializer);
|
|
712
695
|
}
|
|
713
|
-
var
|
|
696
|
+
var mn = function() {
|
|
714
697
|
return JSON.stringify(arguments);
|
|
715
|
-
},
|
|
698
|
+
}, dn = (
|
|
716
699
|
/** @class */
|
|
717
700
|
function() {
|
|
718
701
|
function e() {
|
|
@@ -724,62 +707,71 @@ var cn = function() {
|
|
|
724
707
|
this.cache[t] = r;
|
|
725
708
|
}, e;
|
|
726
709
|
}()
|
|
727
|
-
),
|
|
710
|
+
), bn = {
|
|
728
711
|
create: function() {
|
|
729
|
-
return new
|
|
712
|
+
return new dn();
|
|
730
713
|
}
|
|
731
|
-
},
|
|
732
|
-
variadic:
|
|
733
|
-
|
|
734
|
-
|
|
714
|
+
}, Ue = {
|
|
715
|
+
variadic: fn
|
|
716
|
+
}, xe = function() {
|
|
717
|
+
return xe = Object.assign || function(t) {
|
|
718
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
719
|
+
r = arguments[n];
|
|
720
|
+
for (var s in r)
|
|
721
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
722
|
+
}
|
|
723
|
+
return t;
|
|
724
|
+
}, xe.apply(this, arguments);
|
|
725
|
+
};
|
|
726
|
+
var p;
|
|
735
727
|
(function(e) {
|
|
736
728
|
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";
|
|
737
729
|
})(p || (p = {}));
|
|
738
|
-
var
|
|
730
|
+
var A;
|
|
739
731
|
(function(e) {
|
|
740
732
|
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";
|
|
741
|
-
})(
|
|
742
|
-
var
|
|
733
|
+
})(A || (A = {}));
|
|
734
|
+
var ne;
|
|
743
735
|
(function(e) {
|
|
744
736
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
745
|
-
})(
|
|
737
|
+
})(ne || (ne = {}));
|
|
746
738
|
function ft(e) {
|
|
747
|
-
return e.type ===
|
|
739
|
+
return e.type === A.literal;
|
|
748
740
|
}
|
|
749
|
-
function
|
|
750
|
-
return e.type ===
|
|
751
|
-
}
|
|
752
|
-
function Ut(e) {
|
|
753
|
-
return e.type === H.number;
|
|
741
|
+
function gn(e) {
|
|
742
|
+
return e.type === A.argument;
|
|
754
743
|
}
|
|
755
744
|
function Ft(e) {
|
|
756
|
-
return e.type ===
|
|
745
|
+
return e.type === A.number;
|
|
757
746
|
}
|
|
758
747
|
function Gt(e) {
|
|
759
|
-
return e.type ===
|
|
748
|
+
return e.type === A.date;
|
|
760
749
|
}
|
|
761
750
|
function $t(e) {
|
|
762
|
-
return e.type ===
|
|
751
|
+
return e.type === A.time;
|
|
763
752
|
}
|
|
764
753
|
function jt(e) {
|
|
765
|
-
return e.type ===
|
|
766
|
-
}
|
|
767
|
-
function gn(e) {
|
|
768
|
-
return e.type === H.pound;
|
|
754
|
+
return e.type === A.select;
|
|
769
755
|
}
|
|
770
756
|
function Vt(e) {
|
|
771
|
-
return e.type ===
|
|
757
|
+
return e.type === A.plural;
|
|
758
|
+
}
|
|
759
|
+
function pn(e) {
|
|
760
|
+
return e.type === A.pound;
|
|
772
761
|
}
|
|
773
762
|
function Jt(e) {
|
|
774
|
-
return
|
|
763
|
+
return e.type === A.tag;
|
|
775
764
|
}
|
|
776
|
-
function
|
|
777
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
765
|
+
function zt(e) {
|
|
766
|
+
return !!(e && typeof e == "object" && e.type === ne.number);
|
|
778
767
|
}
|
|
779
|
-
|
|
780
|
-
|
|
768
|
+
function Xe(e) {
|
|
769
|
+
return !!(e && typeof e == "object" && e.type === ne.dateTime);
|
|
770
|
+
}
|
|
771
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, yn = /(?:[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;
|
|
772
|
+
function _n(e) {
|
|
781
773
|
var t = {};
|
|
782
|
-
return e.replace(
|
|
774
|
+
return e.replace(yn, function(r) {
|
|
783
775
|
var n = r.length;
|
|
784
776
|
switch (r[0]) {
|
|
785
777
|
case "G":
|
|
@@ -868,36 +860,46 @@ function yn(e) {
|
|
|
868
860
|
return "";
|
|
869
861
|
}), t;
|
|
870
862
|
}
|
|
871
|
-
var
|
|
872
|
-
function
|
|
863
|
+
var H = function() {
|
|
864
|
+
return H = Object.assign || function(t) {
|
|
865
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
866
|
+
r = arguments[n];
|
|
867
|
+
for (var s in r)
|
|
868
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
869
|
+
}
|
|
870
|
+
return t;
|
|
871
|
+
}, H.apply(this, arguments);
|
|
872
|
+
};
|
|
873
|
+
var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
874
|
+
function En(e) {
|
|
873
875
|
if (e.length === 0)
|
|
874
876
|
throw new Error("Number skeleton cannot be empty");
|
|
875
|
-
for (var t = e.split(
|
|
876
|
-
return
|
|
877
|
+
for (var t = e.split(vn).filter(function(c) {
|
|
878
|
+
return c.length > 0;
|
|
877
879
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
878
880
|
var s = i[n], a = s.split("/");
|
|
879
881
|
if (a.length === 0)
|
|
880
882
|
throw new Error("Invalid number skeleton");
|
|
881
883
|
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
882
|
-
var
|
|
883
|
-
if (
|
|
884
|
+
var f = h[u];
|
|
885
|
+
if (f.length === 0)
|
|
884
886
|
throw new Error("Invalid number skeleton");
|
|
885
887
|
}
|
|
886
888
|
r.push({ stem: o, options: l });
|
|
887
889
|
}
|
|
888
890
|
return r;
|
|
889
891
|
}
|
|
890
|
-
function
|
|
892
|
+
function xn(e) {
|
|
891
893
|
return e.replace(/^(.*?)-/, "");
|
|
892
894
|
}
|
|
893
|
-
var
|
|
894
|
-
function
|
|
895
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
|
|
896
|
+
function dt(e) {
|
|
895
897
|
var t = {};
|
|
896
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
898
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
|
|
897
899
|
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)), "";
|
|
898
900
|
}), t;
|
|
899
901
|
}
|
|
900
|
-
function
|
|
902
|
+
function qt(e) {
|
|
901
903
|
switch (e) {
|
|
902
904
|
case "sign-auto":
|
|
903
905
|
return {
|
|
@@ -937,7 +939,7 @@ function Zt(e) {
|
|
|
937
939
|
};
|
|
938
940
|
}
|
|
939
941
|
}
|
|
940
|
-
function
|
|
942
|
+
function Tn(e) {
|
|
941
943
|
var t;
|
|
942
944
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
943
945
|
notation: "engineering"
|
|
@@ -945,17 +947,17 @@ function Sn(e) {
|
|
|
945
947
|
notation: "scientific"
|
|
946
948
|
}, e = e.slice(1)), t) {
|
|
947
949
|
var r = e.slice(0, 2);
|
|
948
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
950
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
|
|
949
951
|
throw new Error("Malformed concise eng/scientific notation");
|
|
950
952
|
t.minimumIntegerDigits = e.length;
|
|
951
953
|
}
|
|
952
954
|
return t;
|
|
953
955
|
}
|
|
954
|
-
function
|
|
955
|
-
var t = {}, r =
|
|
956
|
+
function bt(e) {
|
|
957
|
+
var t = {}, r = qt(e);
|
|
956
958
|
return r || t;
|
|
957
959
|
}
|
|
958
|
-
function
|
|
960
|
+
function An(e) {
|
|
959
961
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
960
962
|
var i = n[r];
|
|
961
963
|
switch (i.stem) {
|
|
@@ -979,7 +981,7 @@ function Tn(e) {
|
|
|
979
981
|
continue;
|
|
980
982
|
case "measure-unit":
|
|
981
983
|
case "unit":
|
|
982
|
-
t.style = "unit", t.unit =
|
|
984
|
+
t.style = "unit", t.unit = xn(i.options[0]);
|
|
983
985
|
continue;
|
|
984
986
|
case "compact-short":
|
|
985
987
|
case "K":
|
|
@@ -990,13 +992,13 @@ function Tn(e) {
|
|
|
990
992
|
t.notation = "compact", t.compactDisplay = "long";
|
|
991
993
|
continue;
|
|
992
994
|
case "scientific":
|
|
993
|
-
t =
|
|
994
|
-
return
|
|
995
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
996
|
+
return H(H({}, l), bt(u));
|
|
995
997
|
}, {}));
|
|
996
998
|
continue;
|
|
997
999
|
case "engineering":
|
|
998
|
-
t =
|
|
999
|
-
return
|
|
1000
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1001
|
+
return H(H({}, l), bt(u));
|
|
1000
1002
|
}, {}));
|
|
1001
1003
|
continue;
|
|
1002
1004
|
case "notation-simple":
|
|
@@ -1041,45 +1043,45 @@ function Tn(e) {
|
|
|
1041
1043
|
case "integer-width":
|
|
1042
1044
|
if (i.options.length > 1)
|
|
1043
1045
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1044
|
-
i.options[0].replace(
|
|
1046
|
+
i.options[0].replace(Sn, function(l, u, h, f, c, x) {
|
|
1045
1047
|
if (u)
|
|
1046
1048
|
t.minimumIntegerDigits = h.length;
|
|
1047
1049
|
else {
|
|
1048
|
-
if (
|
|
1050
|
+
if (f && c)
|
|
1049
1051
|
throw new Error("We currently do not support maximum integer digits");
|
|
1050
|
-
if (
|
|
1052
|
+
if (x)
|
|
1051
1053
|
throw new Error("We currently do not support exact integer digits");
|
|
1052
1054
|
}
|
|
1053
1055
|
return "";
|
|
1054
1056
|
});
|
|
1055
1057
|
continue;
|
|
1056
1058
|
}
|
|
1057
|
-
if (
|
|
1059
|
+
if (Zt.test(i.stem)) {
|
|
1058
1060
|
t.minimumIntegerDigits = i.stem.length;
|
|
1059
1061
|
continue;
|
|
1060
1062
|
}
|
|
1061
|
-
if (
|
|
1063
|
+
if (mt.test(i.stem)) {
|
|
1062
1064
|
if (i.options.length > 1)
|
|
1063
1065
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1064
|
-
i.stem.replace(
|
|
1065
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1066
|
+
i.stem.replace(mt, function(l, u, h, f, c, x) {
|
|
1067
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && x ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1066
1068
|
});
|
|
1067
1069
|
var s = i.options[0];
|
|
1068
|
-
s === "w" ? t =
|
|
1070
|
+
s === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = H(H({}, t), dt(s)));
|
|
1069
1071
|
continue;
|
|
1070
1072
|
}
|
|
1071
|
-
if (
|
|
1072
|
-
t =
|
|
1073
|
+
if (Xt.test(i.stem)) {
|
|
1074
|
+
t = H(H({}, t), dt(i.stem));
|
|
1073
1075
|
continue;
|
|
1074
1076
|
}
|
|
1075
|
-
var a =
|
|
1076
|
-
a && (t =
|
|
1077
|
-
var o =
|
|
1078
|
-
o && (t =
|
|
1077
|
+
var a = qt(i.stem);
|
|
1078
|
+
a && (t = H(H({}, t), a));
|
|
1079
|
+
var o = Tn(i.stem);
|
|
1080
|
+
o && (t = H(H({}, t), o));
|
|
1079
1081
|
}
|
|
1080
1082
|
return t;
|
|
1081
1083
|
}
|
|
1082
|
-
var
|
|
1084
|
+
var ye = {
|
|
1083
1085
|
"001": [
|
|
1084
1086
|
"H",
|
|
1085
1087
|
"h"
|
|
@@ -2494,13 +2496,13 @@ var pe = {
|
|
|
2494
2496
|
"h"
|
|
2495
2497
|
]
|
|
2496
2498
|
};
|
|
2497
|
-
function
|
|
2499
|
+
function Hn(e, t) {
|
|
2498
2500
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2499
2501
|
var i = e.charAt(n);
|
|
2500
2502
|
if (i === "j") {
|
|
2501
2503
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2502
2504
|
s++, n++;
|
|
2503
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2505
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Cn(t);
|
|
2504
2506
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2505
2507
|
r += l;
|
|
2506
2508
|
for (; a-- > 0; )
|
|
@@ -2510,7 +2512,7 @@ function An(e, t) {
|
|
|
2510
2512
|
}
|
|
2511
2513
|
return r;
|
|
2512
2514
|
}
|
|
2513
|
-
function
|
|
2515
|
+
function Cn(e) {
|
|
2514
2516
|
var t = e.hourCycle;
|
|
2515
2517
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2516
2518
|
e.hourCycles && // @ts-ignore
|
|
@@ -2529,23 +2531,23 @@ function Hn(e) {
|
|
|
2529
2531
|
}
|
|
2530
2532
|
var r = e.language, n;
|
|
2531
2533
|
r !== "root" && (n = e.maximize().region);
|
|
2532
|
-
var i =
|
|
2534
|
+
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
2533
2535
|
return i[0];
|
|
2534
2536
|
}
|
|
2535
|
-
var
|
|
2536
|
-
function
|
|
2537
|
+
var Fe, Bn = new RegExp("^".concat(Wt.source, "*")), wn = new RegExp("".concat(Wt.source, "*$"));
|
|
2538
|
+
function v(e, t) {
|
|
2537
2539
|
return { start: e, end: t };
|
|
2538
2540
|
}
|
|
2539
|
-
var
|
|
2541
|
+
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, On = !!Object.fromEntries, Pn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Rn = !!Number.isSafeInteger, Dn = Rn ? Number.isSafeInteger : function(e) {
|
|
2540
2542
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2541
|
-
},
|
|
2543
|
+
}, Ze = !0;
|
|
2542
2544
|
try {
|
|
2543
|
-
var
|
|
2544
|
-
|
|
2545
|
+
var kn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2546
|
+
Ze = ((Fe = kn.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
|
|
2545
2547
|
} catch (e) {
|
|
2546
|
-
|
|
2548
|
+
Ze = !1;
|
|
2547
2549
|
}
|
|
2548
|
-
var
|
|
2550
|
+
var gt = In ? (
|
|
2549
2551
|
// Native
|
|
2550
2552
|
function(t, r, n) {
|
|
2551
2553
|
return t.startsWith(r, n);
|
|
@@ -2555,7 +2557,7 @@ var bt = wn ? (
|
|
|
2555
2557
|
function(t, r, n) {
|
|
2556
2558
|
return t.slice(n, n + r.length) === r;
|
|
2557
2559
|
}
|
|
2558
|
-
),
|
|
2560
|
+
), qe = Nn ? String.fromCodePoint : (
|
|
2559
2561
|
// IE11
|
|
2560
2562
|
function() {
|
|
2561
2563
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2567,9 +2569,9 @@ var bt = wn ? (
|
|
|
2567
2569
|
}
|
|
2568
2570
|
return n;
|
|
2569
2571
|
}
|
|
2570
|
-
),
|
|
2572
|
+
), pt = (
|
|
2571
2573
|
// native
|
|
2572
|
-
|
|
2574
|
+
On ? Object.fromEntries : (
|
|
2573
2575
|
// Ponyfill
|
|
2574
2576
|
function(t) {
|
|
2575
2577
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2579,7 +2581,7 @@ var bt = wn ? (
|
|
|
2579
2581
|
return r;
|
|
2580
2582
|
}
|
|
2581
2583
|
)
|
|
2582
|
-
),
|
|
2584
|
+
), Qt = Pn ? (
|
|
2583
2585
|
// Native
|
|
2584
2586
|
function(t, r) {
|
|
2585
2587
|
return t.codePointAt(r);
|
|
@@ -2593,7 +2595,7 @@ var bt = wn ? (
|
|
|
2593
2595
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2594
2596
|
}
|
|
2595
2597
|
}
|
|
2596
|
-
),
|
|
2598
|
+
), Un = Mn ? (
|
|
2597
2599
|
// Native
|
|
2598
2600
|
function(t) {
|
|
2599
2601
|
return t.trimStart();
|
|
@@ -2601,9 +2603,9 @@ var bt = wn ? (
|
|
|
2601
2603
|
) : (
|
|
2602
2604
|
// Ponyfill
|
|
2603
2605
|
function(t) {
|
|
2604
|
-
return t.replace(
|
|
2606
|
+
return t.replace(Bn, "");
|
|
2605
2607
|
}
|
|
2606
|
-
),
|
|
2608
|
+
), Fn = Ln ? (
|
|
2607
2609
|
// Native
|
|
2608
2610
|
function(t) {
|
|
2609
2611
|
return t.trimEnd();
|
|
@@ -2611,32 +2613,32 @@ var bt = wn ? (
|
|
|
2611
2613
|
) : (
|
|
2612
2614
|
// Ponyfill
|
|
2613
2615
|
function(t) {
|
|
2614
|
-
return t.replace(
|
|
2616
|
+
return t.replace(wn, "");
|
|
2615
2617
|
}
|
|
2616
2618
|
);
|
|
2617
|
-
function
|
|
2619
|
+
function Yt(e, t) {
|
|
2618
2620
|
return new RegExp(e, t);
|
|
2619
2621
|
}
|
|
2620
|
-
var
|
|
2621
|
-
if (
|
|
2622
|
-
var
|
|
2623
|
-
|
|
2622
|
+
var Qe;
|
|
2623
|
+
if (Ze) {
|
|
2624
|
+
var yt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2625
|
+
Qe = function(t, r) {
|
|
2624
2626
|
var n;
|
|
2625
|
-
|
|
2626
|
-
var i =
|
|
2627
|
+
yt.lastIndex = r;
|
|
2628
|
+
var i = yt.exec(t);
|
|
2627
2629
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2628
2630
|
};
|
|
2629
2631
|
} else
|
|
2630
|
-
|
|
2632
|
+
Qe = function(t, r) {
|
|
2631
2633
|
for (var n = []; ; ) {
|
|
2632
|
-
var i =
|
|
2633
|
-
if (i === void 0 ||
|
|
2634
|
+
var i = Qt(t, r);
|
|
2635
|
+
if (i === void 0 || Kt(i) || Vn(i))
|
|
2634
2636
|
break;
|
|
2635
2637
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2636
2638
|
}
|
|
2637
|
-
return
|
|
2639
|
+
return qe.apply(void 0, n);
|
|
2638
2640
|
};
|
|
2639
|
-
var
|
|
2641
|
+
var Gn = (
|
|
2640
2642
|
/** @class */
|
|
2641
2643
|
function() {
|
|
2642
2644
|
function e(t, r) {
|
|
@@ -2660,14 +2662,14 @@ var Fn = (
|
|
|
2660
2662
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2661
2663
|
var o = this.clonePosition();
|
|
2662
2664
|
this.bump(), i.push({
|
|
2663
|
-
type:
|
|
2664
|
-
location:
|
|
2665
|
+
type: A.pound,
|
|
2666
|
+
location: v(o, this.clonePosition())
|
|
2665
2667
|
});
|
|
2666
2668
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2667
2669
|
if (n)
|
|
2668
2670
|
break;
|
|
2669
|
-
return this.error(p.UNMATCHED_CLOSING_TAG,
|
|
2670
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2671
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
2672
|
+
} else if (s === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
|
2671
2673
|
var a = this.parseTag(t, r);
|
|
2672
2674
|
if (a.err)
|
|
2673
2675
|
return a;
|
|
@@ -2688,9 +2690,9 @@ var Fn = (
|
|
|
2688
2690
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2689
2691
|
return {
|
|
2690
2692
|
val: {
|
|
2691
|
-
type:
|
|
2693
|
+
type: A.literal,
|
|
2692
2694
|
value: "<".concat(i, "/>"),
|
|
2693
|
-
location:
|
|
2695
|
+
location: v(n, this.clonePosition())
|
|
2694
2696
|
},
|
|
2695
2697
|
err: null
|
|
2696
2698
|
};
|
|
@@ -2700,25 +2702,25 @@ var Fn = (
|
|
|
2700
2702
|
return s;
|
|
2701
2703
|
var a = s.val, o = this.clonePosition();
|
|
2702
2704
|
if (this.bumpIf("</")) {
|
|
2703
|
-
if (this.isEOF() || !
|
|
2704
|
-
return this.error(p.INVALID_TAG,
|
|
2705
|
+
if (this.isEOF() || !Ye(this.char()))
|
|
2706
|
+
return this.error(p.INVALID_TAG, v(o, this.clonePosition()));
|
|
2705
2707
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2706
|
-
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG,
|
|
2708
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2707
2709
|
val: {
|
|
2708
|
-
type:
|
|
2710
|
+
type: A.tag,
|
|
2709
2711
|
value: i,
|
|
2710
2712
|
children: a,
|
|
2711
|
-
location:
|
|
2713
|
+
location: v(n, this.clonePosition())
|
|
2712
2714
|
},
|
|
2713
2715
|
err: null
|
|
2714
|
-
} : this.error(p.INVALID_TAG,
|
|
2716
|
+
} : this.error(p.INVALID_TAG, v(o, this.clonePosition())));
|
|
2715
2717
|
} else
|
|
2716
|
-
return this.error(p.UNCLOSED_TAG,
|
|
2718
|
+
return this.error(p.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
2717
2719
|
} else
|
|
2718
|
-
return this.error(p.INVALID_TAG,
|
|
2720
|
+
return this.error(p.INVALID_TAG, v(n, this.clonePosition()));
|
|
2719
2721
|
}, e.prototype.parseTagName = function() {
|
|
2720
2722
|
var t = this.offset();
|
|
2721
|
-
for (this.bump(); !this.isEOF() &&
|
|
2723
|
+
for (this.bump(); !this.isEOF() && jn(this.char()); )
|
|
2722
2724
|
this.bump();
|
|
2723
2725
|
return this.message.slice(t, this.offset());
|
|
2724
2726
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2740,14 +2742,14 @@ var Fn = (
|
|
|
2740
2742
|
}
|
|
2741
2743
|
break;
|
|
2742
2744
|
}
|
|
2743
|
-
var l =
|
|
2745
|
+
var l = v(n, this.clonePosition());
|
|
2744
2746
|
return {
|
|
2745
|
-
val: { type:
|
|
2747
|
+
val: { type: A.literal, value: i, location: l },
|
|
2746
2748
|
err: null
|
|
2747
2749
|
};
|
|
2748
2750
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2749
2751
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2750
|
-
|
|
2752
|
+
!$n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2751
2753
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2752
2754
|
if (this.isEOF() || this.char() !== 39)
|
|
2753
2755
|
return null;
|
|
@@ -2781,49 +2783,49 @@ var Fn = (
|
|
|
2781
2783
|
r.push(n);
|
|
2782
2784
|
this.bump();
|
|
2783
2785
|
}
|
|
2784
|
-
return
|
|
2786
|
+
return qe.apply(void 0, r);
|
|
2785
2787
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2786
2788
|
if (this.isEOF())
|
|
2787
2789
|
return null;
|
|
2788
2790
|
var n = this.char();
|
|
2789
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2791
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
|
2790
2792
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2791
2793
|
var n = this.clonePosition();
|
|
2792
2794
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2793
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2795
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2794
2796
|
if (this.char() === 125)
|
|
2795
|
-
return this.bump(), this.error(p.EMPTY_ARGUMENT,
|
|
2797
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
2796
2798
|
var i = this.parseIdentifierIfPossible().value;
|
|
2797
2799
|
if (!i)
|
|
2798
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
2800
|
+
return this.error(p.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2799
2801
|
if (this.bumpSpace(), this.isEOF())
|
|
2800
|
-
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2802
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2801
2803
|
switch (this.char()) {
|
|
2802
2804
|
case 125:
|
|
2803
2805
|
return this.bump(), {
|
|
2804
2806
|
val: {
|
|
2805
|
-
type:
|
|
2807
|
+
type: A.argument,
|
|
2806
2808
|
// value does not include the opening and closing braces.
|
|
2807
2809
|
value: i,
|
|
2808
|
-
location:
|
|
2810
|
+
location: v(n, this.clonePosition())
|
|
2809
2811
|
},
|
|
2810
2812
|
err: null
|
|
2811
2813
|
};
|
|
2812
2814
|
case 44:
|
|
2813
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2815
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2814
2816
|
default:
|
|
2815
|
-
return this.error(p.MALFORMED_ARGUMENT,
|
|
2817
|
+
return this.error(p.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2816
2818
|
}
|
|
2817
2819
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2818
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2820
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
|
2819
2821
|
this.bumpTo(i);
|
|
2820
|
-
var s = this.clonePosition(), a =
|
|
2822
|
+
var s = this.clonePosition(), a = v(t, s);
|
|
2821
2823
|
return { value: n, location: a };
|
|
2822
2824
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2823
2825
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2824
2826
|
switch (o) {
|
|
2825
2827
|
case "":
|
|
2826
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE,
|
|
2828
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, v(a, l));
|
|
2827
2829
|
case "number":
|
|
2828
2830
|
case "date":
|
|
2829
2831
|
case "time": {
|
|
@@ -2831,47 +2833,47 @@ var Fn = (
|
|
|
2831
2833
|
var u = null;
|
|
2832
2834
|
if (this.bumpIf(",")) {
|
|
2833
2835
|
this.bumpSpace();
|
|
2834
|
-
var h = this.clonePosition(),
|
|
2835
|
-
if (
|
|
2836
|
-
return
|
|
2837
|
-
var
|
|
2838
|
-
if (
|
|
2839
|
-
return this.error(p.EXPECT_ARGUMENT_STYLE,
|
|
2840
|
-
var
|
|
2841
|
-
u = { style:
|
|
2836
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2837
|
+
if (f.err)
|
|
2838
|
+
return f;
|
|
2839
|
+
var c = Fn(f.val);
|
|
2840
|
+
if (c.length === 0)
|
|
2841
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
2842
|
+
var x = v(h, this.clonePosition());
|
|
2843
|
+
u = { style: c, styleLocation: x };
|
|
2842
2844
|
}
|
|
2843
2845
|
var E = this.tryParseArgumentClose(i);
|
|
2844
2846
|
if (E.err)
|
|
2845
2847
|
return E;
|
|
2846
|
-
var g =
|
|
2847
|
-
if (u &&
|
|
2848
|
-
var y =
|
|
2848
|
+
var g = v(i, this.clonePosition());
|
|
2849
|
+
if (u && gt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2850
|
+
var y = Un(u.style.slice(2));
|
|
2849
2851
|
if (o === "number") {
|
|
2850
|
-
var
|
|
2851
|
-
return
|
|
2852
|
-
val: { type:
|
|
2852
|
+
var f = this.parseNumberSkeletonFromString(y, u.styleLocation);
|
|
2853
|
+
return f.err ? f : {
|
|
2854
|
+
val: { type: A.number, value: n, location: g, style: f.val },
|
|
2853
2855
|
err: null
|
|
2854
2856
|
};
|
|
2855
2857
|
} else {
|
|
2856
2858
|
if (y.length === 0)
|
|
2857
2859
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
2858
|
-
var
|
|
2859
|
-
this.locale && (
|
|
2860
|
-
var
|
|
2861
|
-
type:
|
|
2862
|
-
pattern:
|
|
2860
|
+
var S = y;
|
|
2861
|
+
this.locale && (S = Hn(y, this.locale));
|
|
2862
|
+
var c = {
|
|
2863
|
+
type: ne.dateTime,
|
|
2864
|
+
pattern: S,
|
|
2863
2865
|
location: u.styleLocation,
|
|
2864
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2865
|
-
}, d = o === "date" ?
|
|
2866
|
+
parsedOptions: this.shouldParseSkeletons ? _n(S) : {}
|
|
2867
|
+
}, d = o === "date" ? A.date : A.time;
|
|
2866
2868
|
return {
|
|
2867
|
-
val: { type: d, value: n, location: g, style:
|
|
2869
|
+
val: { type: d, value: n, location: g, style: c },
|
|
2868
2870
|
err: null
|
|
2869
2871
|
};
|
|
2870
2872
|
}
|
|
2871
2873
|
}
|
|
2872
2874
|
return {
|
|
2873
2875
|
val: {
|
|
2874
|
-
type: o === "number" ?
|
|
2876
|
+
type: o === "number" ? A.number : o === "date" ? A.date : A.time,
|
|
2875
2877
|
value: n,
|
|
2876
2878
|
location: g,
|
|
2877
2879
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2884,17 +2886,17 @@ var Fn = (
|
|
|
2884
2886
|
case "select": {
|
|
2885
2887
|
var _ = this.clonePosition();
|
|
2886
2888
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2887
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2889
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, v(_, xe({}, _)));
|
|
2888
2890
|
this.bumpSpace();
|
|
2889
|
-
var B = this.parseIdentifierIfPossible(),
|
|
2891
|
+
var B = this.parseIdentifierIfPossible(), M = 0;
|
|
2890
2892
|
if (o !== "select" && B.value === "offset") {
|
|
2891
2893
|
if (!this.bumpIf(":"))
|
|
2892
|
-
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2894
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
2893
2895
|
this.bumpSpace();
|
|
2894
|
-
var
|
|
2895
|
-
if (
|
|
2896
|
-
return
|
|
2897
|
-
this.bumpSpace(), B = this.parseIdentifierIfPossible(),
|
|
2896
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2897
|
+
if (f.err)
|
|
2898
|
+
return f;
|
|
2899
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), M = f.val;
|
|
2898
2900
|
}
|
|
2899
2901
|
var k = this.tryParsePluralOrSelectOptions(t, o, r, B);
|
|
2900
2902
|
if (k.err)
|
|
@@ -2902,21 +2904,21 @@ var Fn = (
|
|
|
2902
2904
|
var E = this.tryParseArgumentClose(i);
|
|
2903
2905
|
if (E.err)
|
|
2904
2906
|
return E;
|
|
2905
|
-
var L =
|
|
2907
|
+
var L = v(i, this.clonePosition());
|
|
2906
2908
|
return o === "select" ? {
|
|
2907
2909
|
val: {
|
|
2908
|
-
type:
|
|
2910
|
+
type: A.select,
|
|
2909
2911
|
value: n,
|
|
2910
|
-
options:
|
|
2912
|
+
options: pt(k.val),
|
|
2911
2913
|
location: L
|
|
2912
2914
|
},
|
|
2913
2915
|
err: null
|
|
2914
2916
|
} : {
|
|
2915
2917
|
val: {
|
|
2916
|
-
type:
|
|
2918
|
+
type: A.plural,
|
|
2917
2919
|
value: n,
|
|
2918
|
-
options:
|
|
2919
|
-
offset:
|
|
2920
|
+
options: pt(k.val),
|
|
2921
|
+
offset: M,
|
|
2920
2922
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2921
2923
|
location: L
|
|
2922
2924
|
},
|
|
@@ -2924,10 +2926,10 @@ var Fn = (
|
|
|
2924
2926
|
};
|
|
2925
2927
|
}
|
|
2926
2928
|
default:
|
|
2927
|
-
return this.error(p.INVALID_ARGUMENT_TYPE,
|
|
2929
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, v(a, l));
|
|
2928
2930
|
}
|
|
2929
2931
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2930
|
-
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2932
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2931
2933
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2932
2934
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2933
2935
|
var n = this.char();
|
|
@@ -2936,7 +2938,7 @@ var Fn = (
|
|
|
2936
2938
|
this.bump();
|
|
2937
2939
|
var i = this.clonePosition();
|
|
2938
2940
|
if (!this.bumpUntil("'"))
|
|
2939
|
-
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2941
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
2940
2942
|
this.bump();
|
|
2941
2943
|
break;
|
|
2942
2944
|
}
|
|
@@ -2966,52 +2968,52 @@ var Fn = (
|
|
|
2966
2968
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2967
2969
|
var n = [];
|
|
2968
2970
|
try {
|
|
2969
|
-
n =
|
|
2971
|
+
n = En(t);
|
|
2970
2972
|
} catch (i) {
|
|
2971
2973
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
2972
2974
|
}
|
|
2973
2975
|
return {
|
|
2974
2976
|
val: {
|
|
2975
|
-
type:
|
|
2977
|
+
type: ne.number,
|
|
2976
2978
|
tokens: n,
|
|
2977
2979
|
location: r,
|
|
2978
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2980
|
+
parsedOptions: this.shouldParseSkeletons ? An(n) : {}
|
|
2979
2981
|
},
|
|
2980
2982
|
err: null
|
|
2981
2983
|
};
|
|
2982
2984
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2983
2985
|
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
2984
2986
|
if (u.length === 0) {
|
|
2985
|
-
var
|
|
2987
|
+
var f = this.clonePosition();
|
|
2986
2988
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2987
|
-
var
|
|
2988
|
-
if (
|
|
2989
|
-
return
|
|
2990
|
-
h =
|
|
2989
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2990
|
+
if (c.err)
|
|
2991
|
+
return c;
|
|
2992
|
+
h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
2991
2993
|
} else
|
|
2992
2994
|
break;
|
|
2993
2995
|
}
|
|
2994
2996
|
if (l.has(u))
|
|
2995
2997
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2996
2998
|
u === "other" && (a = !0), this.bumpSpace();
|
|
2997
|
-
var
|
|
2999
|
+
var x = this.clonePosition();
|
|
2998
3000
|
if (!this.bumpIf("{"))
|
|
2999
|
-
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3001
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3000
3002
|
var E = this.parseMessage(t + 1, r, n);
|
|
3001
3003
|
if (E.err)
|
|
3002
3004
|
return E;
|
|
3003
|
-
var g = this.tryParseArgumentClose(
|
|
3005
|
+
var g = this.tryParseArgumentClose(x);
|
|
3004
3006
|
if (g.err)
|
|
3005
3007
|
return g;
|
|
3006
3008
|
o.push([
|
|
3007
3009
|
u,
|
|
3008
3010
|
{
|
|
3009
3011
|
value: E.val,
|
|
3010
|
-
location: x
|
|
3012
|
+
location: v(x, this.clonePosition())
|
|
3011
3013
|
}
|
|
3012
3014
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3013
3015
|
}
|
|
3014
|
-
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3016
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3015
3017
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3016
3018
|
var n = 1, i = this.clonePosition();
|
|
3017
3019
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3022,8 +3024,8 @@ var Fn = (
|
|
|
3022
3024
|
else
|
|
3023
3025
|
break;
|
|
3024
3026
|
}
|
|
3025
|
-
var l =
|
|
3026
|
-
return s ? (a *= n,
|
|
3027
|
+
var l = v(i, this.clonePosition());
|
|
3028
|
+
return s ? (a *= n, Dn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3027
3029
|
}, e.prototype.offset = function() {
|
|
3028
3030
|
return this.position.offset;
|
|
3029
3031
|
}, e.prototype.isEOF = function() {
|
|
@@ -3038,7 +3040,7 @@ var Fn = (
|
|
|
3038
3040
|
var t = this.position.offset;
|
|
3039
3041
|
if (t >= this.message.length)
|
|
3040
3042
|
throw Error("out of bound");
|
|
3041
|
-
var r =
|
|
3043
|
+
var r = Qt(this.message, t);
|
|
3042
3044
|
if (r === void 0)
|
|
3043
3045
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3044
3046
|
return r;
|
|
@@ -3057,7 +3059,7 @@ var Fn = (
|
|
|
3057
3059
|
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);
|
|
3058
3060
|
}
|
|
3059
3061
|
}, e.prototype.bumpIf = function(t) {
|
|
3060
|
-
if (
|
|
3062
|
+
if (gt(this.message, t, this.offset())) {
|
|
3061
3063
|
for (var r = 0; r < t.length; r++)
|
|
3062
3064
|
this.bump();
|
|
3063
3065
|
return !0;
|
|
@@ -3079,7 +3081,7 @@ var Fn = (
|
|
|
3079
3081
|
break;
|
|
3080
3082
|
}
|
|
3081
3083
|
}, e.prototype.bumpSpace = function() {
|
|
3082
|
-
for (; !this.isEOF() &&
|
|
3084
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3083
3085
|
this.bump();
|
|
3084
3086
|
}, e.prototype.peek = function() {
|
|
3085
3087
|
if (this.isEOF())
|
|
@@ -3089,47 +3091,47 @@ var Fn = (
|
|
|
3089
3091
|
}, e;
|
|
3090
3092
|
}()
|
|
3091
3093
|
);
|
|
3092
|
-
function
|
|
3094
|
+
function Ye(e) {
|
|
3093
3095
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3094
3096
|
}
|
|
3095
|
-
function Gn(e) {
|
|
3096
|
-
return qe(e) || e === 47;
|
|
3097
|
-
}
|
|
3098
3097
|
function $n(e) {
|
|
3098
|
+
return Ye(e) || e === 47;
|
|
3099
|
+
}
|
|
3100
|
+
function jn(e) {
|
|
3099
3101
|
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;
|
|
3100
3102
|
}
|
|
3101
|
-
function
|
|
3103
|
+
function Kt(e) {
|
|
3102
3104
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3103
3105
|
}
|
|
3104
|
-
function
|
|
3106
|
+
function Vn(e) {
|
|
3105
3107
|
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;
|
|
3106
3108
|
}
|
|
3107
|
-
function
|
|
3109
|
+
function Ke(e) {
|
|
3108
3110
|
e.forEach(function(t) {
|
|
3109
|
-
if (delete t.location,
|
|
3111
|
+
if (delete t.location, jt(t) || Vt(t))
|
|
3110
3112
|
for (var r in t.options)
|
|
3111
|
-
delete t.options[r].location,
|
|
3113
|
+
delete t.options[r].location, Ke(t.options[r].value);
|
|
3112
3114
|
else
|
|
3113
|
-
|
|
3115
|
+
Ft(t) && zt(t.style) || (Gt(t) || $t(t)) && Xe(t.style) ? delete t.style.location : Jt(t) && Ke(t.children);
|
|
3114
3116
|
});
|
|
3115
3117
|
}
|
|
3116
|
-
function
|
|
3117
|
-
t === void 0 && (t = {}), t =
|
|
3118
|
-
var r = new
|
|
3118
|
+
function Jn(e, t) {
|
|
3119
|
+
t === void 0 && (t = {}), t = xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3120
|
+
var r = new Gn(e, t).parse();
|
|
3119
3121
|
if (r.err) {
|
|
3120
3122
|
var n = SyntaxError(p[r.err.kind]);
|
|
3121
3123
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3122
3124
|
}
|
|
3123
|
-
return t != null && t.captureLocation ||
|
|
3125
|
+
return t != null && t.captureLocation || Ke(r.val), r.val;
|
|
3124
3126
|
}
|
|
3125
|
-
var
|
|
3127
|
+
var ie;
|
|
3126
3128
|
(function(e) {
|
|
3127
3129
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3128
|
-
})(
|
|
3129
|
-
var
|
|
3130
|
+
})(ie || (ie = {}));
|
|
3131
|
+
var Be = (
|
|
3130
3132
|
/** @class */
|
|
3131
3133
|
function(e) {
|
|
3132
|
-
|
|
3134
|
+
Ce(t, e);
|
|
3133
3135
|
function t(r, n, i) {
|
|
3134
3136
|
var s = e.call(this, r) || this;
|
|
3135
3137
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3138,47 +3140,47 @@ var He = (
|
|
|
3138
3140
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3139
3141
|
}, t;
|
|
3140
3142
|
}(Error)
|
|
3141
|
-
),
|
|
3143
|
+
), _t = (
|
|
3142
3144
|
/** @class */
|
|
3143
3145
|
function(e) {
|
|
3144
|
-
|
|
3146
|
+
Ce(t, e);
|
|
3145
3147
|
function t(r, n, i, s) {
|
|
3146
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3148
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, s) || this;
|
|
3147
3149
|
}
|
|
3148
3150
|
return t;
|
|
3149
|
-
}(
|
|
3150
|
-
),
|
|
3151
|
+
}(Be)
|
|
3152
|
+
), zn = (
|
|
3151
3153
|
/** @class */
|
|
3152
3154
|
function(e) {
|
|
3153
|
-
|
|
3155
|
+
Ce(t, e);
|
|
3154
3156
|
function t(r, n, i) {
|
|
3155
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3157
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
|
|
3156
3158
|
}
|
|
3157
3159
|
return t;
|
|
3158
|
-
}(
|
|
3159
|
-
),
|
|
3160
|
+
}(Be)
|
|
3161
|
+
), Wn = (
|
|
3160
3162
|
/** @class */
|
|
3161
3163
|
function(e) {
|
|
3162
|
-
|
|
3164
|
+
Ce(t, e);
|
|
3163
3165
|
function t(r, n) {
|
|
3164
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3166
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
|
|
3165
3167
|
}
|
|
3166
3168
|
return t;
|
|
3167
|
-
}(
|
|
3169
|
+
}(Be)
|
|
3168
3170
|
), R;
|
|
3169
3171
|
(function(e) {
|
|
3170
3172
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3171
3173
|
})(R || (R = {}));
|
|
3172
|
-
function
|
|
3174
|
+
function Xn(e) {
|
|
3173
3175
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3174
3176
|
var n = t[t.length - 1];
|
|
3175
3177
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
3176
3178
|
}, []);
|
|
3177
3179
|
}
|
|
3178
|
-
function
|
|
3180
|
+
function Zn(e) {
|
|
3179
3181
|
return typeof e == "function";
|
|
3180
3182
|
}
|
|
3181
|
-
function
|
|
3183
|
+
function ve(e, t, r, n, i, s, a) {
|
|
3182
3184
|
if (e.length === 1 && ft(e[0]))
|
|
3183
3185
|
return [
|
|
3184
3186
|
{
|
|
@@ -3195,98 +3197,98 @@ function _e(e, t, r, n, i, s, a) {
|
|
|
3195
3197
|
});
|
|
3196
3198
|
continue;
|
|
3197
3199
|
}
|
|
3198
|
-
if (
|
|
3200
|
+
if (pn(h)) {
|
|
3199
3201
|
typeof s == "number" && o.push({
|
|
3200
3202
|
type: R.literal,
|
|
3201
3203
|
value: r.getNumberFormat(t).format(s)
|
|
3202
3204
|
});
|
|
3203
3205
|
continue;
|
|
3204
3206
|
}
|
|
3205
|
-
var
|
|
3206
|
-
if (!(i &&
|
|
3207
|
-
throw new
|
|
3208
|
-
var
|
|
3209
|
-
if (
|
|
3210
|
-
(!
|
|
3211
|
-
type: typeof
|
|
3212
|
-
value:
|
|
3207
|
+
var f = h.value;
|
|
3208
|
+
if (!(i && f in i))
|
|
3209
|
+
throw new Wn(f, a);
|
|
3210
|
+
var c = i[f];
|
|
3211
|
+
if (gn(h)) {
|
|
3212
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3213
|
+
type: typeof c == "string" ? R.literal : R.object,
|
|
3214
|
+
value: c
|
|
3213
3215
|
});
|
|
3214
3216
|
continue;
|
|
3215
3217
|
}
|
|
3216
|
-
if (
|
|
3217
|
-
var
|
|
3218
|
+
if (Gt(h)) {
|
|
3219
|
+
var x = typeof h.style == "string" ? n.date[h.style] : Xe(h.style) ? h.style.parsedOptions : void 0;
|
|
3218
3220
|
o.push({
|
|
3219
3221
|
type: R.literal,
|
|
3220
|
-
value: r.getDateTimeFormat(t,
|
|
3222
|
+
value: r.getDateTimeFormat(t, x).format(c)
|
|
3221
3223
|
});
|
|
3222
3224
|
continue;
|
|
3223
3225
|
}
|
|
3224
|
-
if (
|
|
3225
|
-
var
|
|
3226
|
+
if ($t(h)) {
|
|
3227
|
+
var x = typeof h.style == "string" ? n.time[h.style] : Xe(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3226
3228
|
o.push({
|
|
3227
3229
|
type: R.literal,
|
|
3228
|
-
value: r.getDateTimeFormat(t,
|
|
3230
|
+
value: r.getDateTimeFormat(t, x).format(c)
|
|
3229
3231
|
});
|
|
3230
3232
|
continue;
|
|
3231
3233
|
}
|
|
3232
|
-
if (
|
|
3233
|
-
var
|
|
3234
|
-
|
|
3234
|
+
if (Ft(h)) {
|
|
3235
|
+
var x = typeof h.style == "string" ? n.number[h.style] : zt(h.style) ? h.style.parsedOptions : void 0;
|
|
3236
|
+
x && x.scale && (c = c * (x.scale || 1)), o.push({
|
|
3235
3237
|
type: R.literal,
|
|
3236
|
-
value: r.getNumberFormat(t,
|
|
3238
|
+
value: r.getNumberFormat(t, x).format(c)
|
|
3237
3239
|
});
|
|
3238
3240
|
continue;
|
|
3239
3241
|
}
|
|
3240
|
-
if (
|
|
3242
|
+
if (Jt(h)) {
|
|
3241
3243
|
var E = h.children, g = h.value, y = i[g];
|
|
3242
|
-
if (!
|
|
3243
|
-
throw new
|
|
3244
|
-
var
|
|
3245
|
-
return
|
|
3244
|
+
if (!Zn(y))
|
|
3245
|
+
throw new zn(g, "function", a);
|
|
3246
|
+
var S = ve(E, t, r, n, i, s), d = y(S.map(function(M) {
|
|
3247
|
+
return M.value;
|
|
3246
3248
|
}));
|
|
3247
|
-
Array.isArray(d) || (d = [d]), o.push.apply(o, d.map(function(
|
|
3249
|
+
Array.isArray(d) || (d = [d]), o.push.apply(o, d.map(function(M) {
|
|
3248
3250
|
return {
|
|
3249
|
-
type: typeof
|
|
3250
|
-
value:
|
|
3251
|
+
type: typeof M == "string" ? R.literal : R.object,
|
|
3252
|
+
value: M
|
|
3251
3253
|
};
|
|
3252
3254
|
}));
|
|
3253
3255
|
}
|
|
3254
|
-
if (
|
|
3255
|
-
var _ = h.options[
|
|
3256
|
+
if (jt(h)) {
|
|
3257
|
+
var _ = h.options[c] || h.options.other;
|
|
3256
3258
|
if (!_)
|
|
3257
|
-
throw new
|
|
3258
|
-
o.push.apply(o,
|
|
3259
|
+
throw new _t(h.value, c, Object.keys(h.options), a);
|
|
3260
|
+
o.push.apply(o, ve(_.value, t, r, n, i));
|
|
3259
3261
|
continue;
|
|
3260
3262
|
}
|
|
3261
|
-
if (
|
|
3262
|
-
var _ = h.options["=".concat(
|
|
3263
|
+
if (Vt(h)) {
|
|
3264
|
+
var _ = h.options["=".concat(c)];
|
|
3263
3265
|
if (!_) {
|
|
3264
3266
|
if (!Intl.PluralRules)
|
|
3265
|
-
throw new
|
|
3267
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3266
3268
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3267
|
-
`,
|
|
3268
|
-
var B = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3269
|
+
`, ie.MISSING_INTL_API, a);
|
|
3270
|
+
var B = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3269
3271
|
_ = h.options[B] || h.options.other;
|
|
3270
3272
|
}
|
|
3271
3273
|
if (!_)
|
|
3272
|
-
throw new
|
|
3273
|
-
o.push.apply(o,
|
|
3274
|
+
throw new _t(h.value, c, Object.keys(h.options), a);
|
|
3275
|
+
o.push.apply(o, ve(_.value, t, r, n, i, c - (h.offset || 0)));
|
|
3274
3276
|
continue;
|
|
3275
3277
|
}
|
|
3276
3278
|
}
|
|
3277
|
-
return
|
|
3279
|
+
return Xn(o);
|
|
3278
3280
|
}
|
|
3279
|
-
function
|
|
3280
|
-
return t ?
|
|
3281
|
-
return r[n] =
|
|
3281
|
+
function qn(e, t) {
|
|
3282
|
+
return t ? j(j(j({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3283
|
+
return r[n] = j(j({}, e[n]), t[n] || {}), r;
|
|
3282
3284
|
}, {})) : e;
|
|
3283
3285
|
}
|
|
3284
|
-
function
|
|
3286
|
+
function Qn(e, t) {
|
|
3285
3287
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3286
|
-
return r[n] =
|
|
3287
|
-
},
|
|
3288
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3289
|
+
}, j({}, e)) : e;
|
|
3288
3290
|
}
|
|
3289
|
-
function
|
|
3291
|
+
function Ge(e) {
|
|
3290
3292
|
return {
|
|
3291
3293
|
create: function() {
|
|
3292
3294
|
return {
|
|
@@ -3300,39 +3302,39 @@ function Ue(e) {
|
|
|
3300
3302
|
}
|
|
3301
3303
|
};
|
|
3302
3304
|
}
|
|
3303
|
-
function
|
|
3305
|
+
function Yn(e) {
|
|
3304
3306
|
return e === void 0 && (e = {
|
|
3305
3307
|
number: {},
|
|
3306
3308
|
dateTime: {},
|
|
3307
3309
|
pluralRules: {}
|
|
3308
3310
|
}), {
|
|
3309
|
-
getNumberFormat:
|
|
3311
|
+
getNumberFormat: ke(function() {
|
|
3310
3312
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3311
3313
|
r[n] = arguments[n];
|
|
3312
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3314
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
3313
3315
|
}, {
|
|
3314
|
-
cache:
|
|
3315
|
-
strategy:
|
|
3316
|
+
cache: Ge(e.number),
|
|
3317
|
+
strategy: Ue.variadic
|
|
3316
3318
|
}),
|
|
3317
|
-
getDateTimeFormat:
|
|
3319
|
+
getDateTimeFormat: ke(function() {
|
|
3318
3320
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3319
3321
|
r[n] = arguments[n];
|
|
3320
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3322
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], r, !1)))();
|
|
3321
3323
|
}, {
|
|
3322
|
-
cache:
|
|
3323
|
-
strategy:
|
|
3324
|
+
cache: Ge(e.dateTime),
|
|
3325
|
+
strategy: Ue.variadic
|
|
3324
3326
|
}),
|
|
3325
|
-
getPluralRules:
|
|
3327
|
+
getPluralRules: ke(function() {
|
|
3326
3328
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3327
3329
|
r[n] = arguments[n];
|
|
3328
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3330
|
+
return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], r, !1)))();
|
|
3329
3331
|
}, {
|
|
3330
|
-
cache:
|
|
3331
|
-
strategy:
|
|
3332
|
+
cache: Ge(e.pluralRules),
|
|
3333
|
+
strategy: Ue.variadic
|
|
3332
3334
|
})
|
|
3333
3335
|
};
|
|
3334
3336
|
}
|
|
3335
|
-
var
|
|
3337
|
+
var Kn = (
|
|
3336
3338
|
/** @class */
|
|
3337
3339
|
function() {
|
|
3338
3340
|
function e(t, r, n, i) {
|
|
@@ -3346,12 +3348,12 @@ var Yn = (
|
|
|
3346
3348
|
var u = s.formatToParts(l);
|
|
3347
3349
|
if (u.length === 1)
|
|
3348
3350
|
return u[0].value;
|
|
3349
|
-
var h = u.reduce(function(
|
|
3350
|
-
return !
|
|
3351
|
+
var h = u.reduce(function(f, c) {
|
|
3352
|
+
return !f.length || c.type !== R.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3351
3353
|
}, []);
|
|
3352
3354
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3353
3355
|
}, this.formatToParts = function(l) {
|
|
3354
|
-
return
|
|
3356
|
+
return ve(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3355
3357
|
}, this.resolvedOptions = function() {
|
|
3356
3358
|
var l;
|
|
3357
3359
|
return {
|
|
@@ -3364,13 +3366,13 @@ var Yn = (
|
|
|
3364
3366
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3365
3367
|
var a = i || {};
|
|
3366
3368
|
a.formatters;
|
|
3367
|
-
var o =
|
|
3368
|
-
this.ast = e.__parse(t,
|
|
3369
|
+
var o = un(a, ["formatters"]);
|
|
3370
|
+
this.ast = e.__parse(t, j(j({}, o), { locale: this.resolvedLocale }));
|
|
3369
3371
|
} else
|
|
3370
3372
|
this.ast = t;
|
|
3371
3373
|
if (!Array.isArray(this.ast))
|
|
3372
3374
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3373
|
-
this.formats =
|
|
3375
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3374
3376
|
}
|
|
3375
3377
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3376
3378
|
get: function() {
|
|
@@ -3383,7 +3385,7 @@ var Yn = (
|
|
|
3383
3385
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3384
3386
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3385
3387
|
}
|
|
3386
|
-
}, e.__parse =
|
|
3388
|
+
}, e.__parse = Jn, e.formats = {
|
|
3387
3389
|
number: {
|
|
3388
3390
|
integer: {
|
|
3389
3391
|
maximumFractionDigits: 0
|
|
@@ -3444,7 +3446,7 @@ var Yn = (
|
|
|
3444
3446
|
}, e;
|
|
3445
3447
|
}()
|
|
3446
3448
|
);
|
|
3447
|
-
function
|
|
3449
|
+
function ei(e, t) {
|
|
3448
3450
|
if (t == null)
|
|
3449
3451
|
return;
|
|
3450
3452
|
if (t in e)
|
|
@@ -3465,92 +3467,92 @@ function Kn(e, t) {
|
|
|
3465
3467
|
n = void 0;
|
|
3466
3468
|
return n;
|
|
3467
3469
|
}
|
|
3468
|
-
const
|
|
3470
|
+
const V = {}, ti = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), er = (e, t) => {
|
|
3469
3471
|
if (t == null)
|
|
3470
3472
|
return;
|
|
3471
|
-
if (t in
|
|
3472
|
-
return
|
|
3473
|
-
const r =
|
|
3473
|
+
if (t in V && e in V[t])
|
|
3474
|
+
return V[t][e];
|
|
3475
|
+
const r = we(t);
|
|
3474
3476
|
for (let n = 0; n < r.length; n++) {
|
|
3475
|
-
const i = r[n], s =
|
|
3477
|
+
const i = r[n], s = ni(i, e);
|
|
3476
3478
|
if (s)
|
|
3477
|
-
return
|
|
3479
|
+
return ti(e, t, s);
|
|
3478
3480
|
}
|
|
3479
3481
|
};
|
|
3480
|
-
let
|
|
3481
|
-
const
|
|
3482
|
-
function
|
|
3483
|
-
return
|
|
3482
|
+
let rt;
|
|
3483
|
+
const oe = He({});
|
|
3484
|
+
function ri(e) {
|
|
3485
|
+
return rt[e] || null;
|
|
3484
3486
|
}
|
|
3485
|
-
function
|
|
3486
|
-
return e in
|
|
3487
|
+
function tr(e) {
|
|
3488
|
+
return e in rt;
|
|
3487
3489
|
}
|
|
3488
|
-
function
|
|
3489
|
-
if (!
|
|
3490
|
+
function ni(e, t) {
|
|
3491
|
+
if (!tr(e))
|
|
3490
3492
|
return null;
|
|
3491
|
-
const r =
|
|
3492
|
-
return
|
|
3493
|
+
const r = ri(e);
|
|
3494
|
+
return ei(r, t);
|
|
3493
3495
|
}
|
|
3494
|
-
function
|
|
3496
|
+
function ii(e) {
|
|
3495
3497
|
if (e == null)
|
|
3496
3498
|
return;
|
|
3497
|
-
const t =
|
|
3499
|
+
const t = we(e);
|
|
3498
3500
|
for (let r = 0; r < t.length; r++) {
|
|
3499
3501
|
const n = t[r];
|
|
3500
|
-
if (
|
|
3502
|
+
if (tr(n))
|
|
3501
3503
|
return n;
|
|
3502
3504
|
}
|
|
3503
3505
|
}
|
|
3504
|
-
function
|
|
3505
|
-
delete
|
|
3506
|
+
function rr(e, ...t) {
|
|
3507
|
+
delete V[e], oe.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
3506
3508
|
}
|
|
3507
|
-
|
|
3508
|
-
[
|
|
3509
|
+
ae(
|
|
3510
|
+
[oe],
|
|
3509
3511
|
([e]) => Object.keys(e)
|
|
3510
3512
|
);
|
|
3511
|
-
|
|
3512
|
-
const
|
|
3513
|
-
function
|
|
3514
|
-
|
|
3513
|
+
oe.subscribe((e) => rt = e);
|
|
3514
|
+
const Ee = {};
|
|
3515
|
+
function si(e, t) {
|
|
3516
|
+
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
3515
3517
|
}
|
|
3516
|
-
function
|
|
3517
|
-
return
|
|
3518
|
+
function nr(e) {
|
|
3519
|
+
return Ee[e];
|
|
3518
3520
|
}
|
|
3519
|
-
function
|
|
3520
|
-
return
|
|
3521
|
-
const r =
|
|
3521
|
+
function ai(e) {
|
|
3522
|
+
return we(e).map((t) => {
|
|
3523
|
+
const r = nr(t);
|
|
3522
3524
|
return [t, r ? [...r] : []];
|
|
3523
3525
|
}).filter(([, t]) => t.length > 0);
|
|
3524
3526
|
}
|
|
3525
|
-
function
|
|
3526
|
-
return e == null ? !1 :
|
|
3527
|
+
function et(e) {
|
|
3528
|
+
return e == null ? !1 : we(e).some(
|
|
3527
3529
|
(t) => {
|
|
3528
3530
|
var r;
|
|
3529
|
-
return (r =
|
|
3531
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3530
3532
|
}
|
|
3531
3533
|
);
|
|
3532
3534
|
}
|
|
3533
|
-
function
|
|
3535
|
+
function oi(e, t) {
|
|
3534
3536
|
return Promise.all(
|
|
3535
|
-
t.map((n) => (
|
|
3536
|
-
).then((n) =>
|
|
3537
|
-
}
|
|
3538
|
-
const
|
|
3539
|
-
function
|
|
3540
|
-
if (!
|
|
3541
|
-
return e in
|
|
3542
|
-
const t =
|
|
3543
|
-
return
|
|
3537
|
+
t.map((n) => (si(e, n), n().then((i) => i.default || i)))
|
|
3538
|
+
).then((n) => rr(e, ...n));
|
|
3539
|
+
}
|
|
3540
|
+
const he = {};
|
|
3541
|
+
function ir(e) {
|
|
3542
|
+
if (!et(e))
|
|
3543
|
+
return e in he ? he[e] : Promise.resolve();
|
|
3544
|
+
const t = ai(e);
|
|
3545
|
+
return he[e] = Promise.all(
|
|
3544
3546
|
t.map(
|
|
3545
|
-
([r, n]) =>
|
|
3547
|
+
([r, n]) => oi(r, n)
|
|
3546
3548
|
)
|
|
3547
3549
|
).then(() => {
|
|
3548
|
-
if (
|
|
3549
|
-
return
|
|
3550
|
-
delete
|
|
3551
|
-
}),
|
|
3550
|
+
if (et(e))
|
|
3551
|
+
return ir(e);
|
|
3552
|
+
delete he[e];
|
|
3553
|
+
}), he[e];
|
|
3552
3554
|
}
|
|
3553
|
-
const
|
|
3555
|
+
const ui = {
|
|
3554
3556
|
number: {
|
|
3555
3557
|
scientific: { notation: "scientific" },
|
|
3556
3558
|
engineering: { notation: "engineering" },
|
|
@@ -3579,183 +3581,183 @@ const oi = {
|
|
|
3579
3581
|
timeZoneName: "short"
|
|
3580
3582
|
}
|
|
3581
3583
|
}
|
|
3582
|
-
},
|
|
3584
|
+
}, li = {
|
|
3583
3585
|
fallbackLocale: null,
|
|
3584
3586
|
loadingDelay: 200,
|
|
3585
|
-
formats:
|
|
3587
|
+
formats: ui,
|
|
3586
3588
|
warnOnMissingMessages: !0,
|
|
3587
3589
|
handleMissingMessage: void 0,
|
|
3588
3590
|
ignoreTag: !0
|
|
3589
|
-
},
|
|
3590
|
-
function
|
|
3591
|
-
return
|
|
3592
|
-
}
|
|
3593
|
-
const
|
|
3594
|
-
var
|
|
3595
|
-
for (var r in t)
|
|
3596
|
-
|
|
3597
|
-
if (
|
|
3598
|
-
for (var r of
|
|
3599
|
-
|
|
3591
|
+
}, hi = li;
|
|
3592
|
+
function se() {
|
|
3593
|
+
return hi;
|
|
3594
|
+
}
|
|
3595
|
+
const $e = He(!1);
|
|
3596
|
+
var ci = Object.defineProperty, fi = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gi = (e, t) => {
|
|
3597
|
+
for (var r in t || (t = {}))
|
|
3598
|
+
di.call(t, r) && Et(e, r, t[r]);
|
|
3599
|
+
if (vt)
|
|
3600
|
+
for (var r of vt(t))
|
|
3601
|
+
bi.call(t, r) && Et(e, r, t[r]);
|
|
3600
3602
|
return e;
|
|
3601
|
-
},
|
|
3602
|
-
let
|
|
3603
|
-
const
|
|
3604
|
-
function
|
|
3603
|
+
}, pi = (e, t) => fi(e, mi(t));
|
|
3604
|
+
let tt;
|
|
3605
|
+
const Se = He(null);
|
|
3606
|
+
function xt(e) {
|
|
3605
3607
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3606
3608
|
}
|
|
3607
|
-
function
|
|
3608
|
-
const r =
|
|
3609
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3609
|
+
function we(e, t = se().fallbackLocale) {
|
|
3610
|
+
const r = xt(e);
|
|
3611
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
|
|
3610
3612
|
}
|
|
3611
|
-
function
|
|
3612
|
-
return
|
|
3613
|
+
function X() {
|
|
3614
|
+
return tt != null ? tt : void 0;
|
|
3613
3615
|
}
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
+
Se.subscribe((e) => {
|
|
3617
|
+
tt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3616
3618
|
});
|
|
3617
|
-
const
|
|
3618
|
-
if (e &&
|
|
3619
|
-
const { loadingDelay: t } =
|
|
3619
|
+
const yi = (e) => {
|
|
3620
|
+
if (e && ii(e) && et(e)) {
|
|
3621
|
+
const { loadingDelay: t } = se();
|
|
3620
3622
|
let r;
|
|
3621
|
-
return typeof window != "undefined" &&
|
|
3622
|
-
() =>
|
|
3623
|
+
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
|
3624
|
+
() => $e.set(!0),
|
|
3623
3625
|
t
|
|
3624
|
-
) :
|
|
3625
|
-
|
|
3626
|
+
) : $e.set(!0), ir(e).then(() => {
|
|
3627
|
+
Se.set(e);
|
|
3626
3628
|
}).finally(() => {
|
|
3627
|
-
clearTimeout(r),
|
|
3629
|
+
clearTimeout(r), $e.set(!1);
|
|
3628
3630
|
});
|
|
3629
3631
|
}
|
|
3630
|
-
return
|
|
3631
|
-
},
|
|
3632
|
-
set:
|
|
3633
|
-
}),
|
|
3632
|
+
return Se.set(e);
|
|
3633
|
+
}, J = pi(gi({}, Se), {
|
|
3634
|
+
set: yi
|
|
3635
|
+
}), Ie = (e) => {
|
|
3634
3636
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3635
3637
|
return (n) => {
|
|
3636
3638
|
const i = JSON.stringify(n);
|
|
3637
3639
|
return i in t ? t[i] : t[i] = e(n);
|
|
3638
3640
|
};
|
|
3639
3641
|
};
|
|
3640
|
-
var
|
|
3642
|
+
var _i = Object.defineProperty, Te = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
|
3641
3643
|
for (var r in t || (t = {}))
|
|
3642
|
-
|
|
3643
|
-
if (
|
|
3644
|
-
for (var r of
|
|
3645
|
-
|
|
3644
|
+
sr.call(t, r) && St(e, r, t[r]);
|
|
3645
|
+
if (Te)
|
|
3646
|
+
for (var r of Te(t))
|
|
3647
|
+
ar.call(t, r) && St(e, r, t[r]);
|
|
3646
3648
|
return e;
|
|
3647
|
-
},
|
|
3649
|
+
}, ue = (e, t) => {
|
|
3648
3650
|
var r = {};
|
|
3649
3651
|
for (var n in e)
|
|
3650
|
-
|
|
3651
|
-
if (e != null &&
|
|
3652
|
-
for (var n of
|
|
3653
|
-
t.indexOf(n) < 0 &&
|
|
3652
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3653
|
+
if (e != null && Te)
|
|
3654
|
+
for (var n of Te(e))
|
|
3655
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
3654
3656
|
return r;
|
|
3655
3657
|
};
|
|
3656
|
-
const
|
|
3657
|
-
const { formats: r } =
|
|
3658
|
+
const de = (e, t) => {
|
|
3659
|
+
const { formats: r } = se();
|
|
3658
3660
|
if (e in r && t in r[e])
|
|
3659
3661
|
return r[e][t];
|
|
3660
3662
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3661
|
-
},
|
|
3663
|
+
}, vi = Ie(
|
|
3662
3664
|
(e) => {
|
|
3663
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3665
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3664
3666
|
if (r == null)
|
|
3665
3667
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3666
|
-
return n && (i =
|
|
3668
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
3667
3669
|
}
|
|
3668
|
-
),
|
|
3670
|
+
), Ei = Ie(
|
|
3669
3671
|
(e) => {
|
|
3670
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3672
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3671
3673
|
if (r == null)
|
|
3672
3674
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3673
|
-
return n ? i =
|
|
3675
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3674
3676
|
}
|
|
3675
|
-
),
|
|
3677
|
+
), xi = Ie(
|
|
3676
3678
|
(e) => {
|
|
3677
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3679
|
+
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3678
3680
|
if (r == null)
|
|
3679
3681
|
throw new Error(
|
|
3680
3682
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3681
3683
|
);
|
|
3682
|
-
return n ? i =
|
|
3684
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3683
3685
|
}
|
|
3684
|
-
),
|
|
3686
|
+
), Si = (e = {}) => {
|
|
3685
3687
|
var t = e, {
|
|
3686
|
-
locale: r =
|
|
3687
|
-
} = t, n =
|
|
3688
|
+
locale: r = X()
|
|
3689
|
+
} = t, n = ue(t, [
|
|
3688
3690
|
"locale"
|
|
3689
3691
|
]);
|
|
3690
|
-
return
|
|
3691
|
-
},
|
|
3692
|
+
return vi(nt({ locale: r }, n));
|
|
3693
|
+
}, Ti = (e = {}) => {
|
|
3692
3694
|
var t = e, {
|
|
3693
|
-
locale: r =
|
|
3694
|
-
} = t, n =
|
|
3695
|
+
locale: r = X()
|
|
3696
|
+
} = t, n = ue(t, [
|
|
3695
3697
|
"locale"
|
|
3696
3698
|
]);
|
|
3697
|
-
return
|
|
3698
|
-
},
|
|
3699
|
+
return Ei(nt({ locale: r }, n));
|
|
3700
|
+
}, Ai = (e = {}) => {
|
|
3699
3701
|
var t = e, {
|
|
3700
|
-
locale: r =
|
|
3701
|
-
} = t, n =
|
|
3702
|
+
locale: r = X()
|
|
3703
|
+
} = t, n = ue(t, [
|
|
3702
3704
|
"locale"
|
|
3703
3705
|
]);
|
|
3704
|
-
return
|
|
3705
|
-
},
|
|
3706
|
+
return xi(nt({ locale: r }, n));
|
|
3707
|
+
}, Hi = Ie(
|
|
3706
3708
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3707
|
-
(e, t =
|
|
3708
|
-
ignoreTag:
|
|
3709
|
+
(e, t = X()) => new Kn(e, t, se().formats, {
|
|
3710
|
+
ignoreTag: se().ignoreTag
|
|
3709
3711
|
})
|
|
3710
|
-
),
|
|
3712
|
+
), Ci = (e, t = {}) => {
|
|
3711
3713
|
var r, n, i, s;
|
|
3712
3714
|
let a = t;
|
|
3713
3715
|
typeof e == "object" && (a = e, e = a.id);
|
|
3714
3716
|
const {
|
|
3715
3717
|
values: o,
|
|
3716
|
-
locale: l =
|
|
3718
|
+
locale: l = X(),
|
|
3717
3719
|
default: u
|
|
3718
3720
|
} = a;
|
|
3719
3721
|
if (l == null)
|
|
3720
3722
|
throw new Error(
|
|
3721
3723
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3722
3724
|
);
|
|
3723
|
-
let h =
|
|
3725
|
+
let h = er(e, l);
|
|
3724
3726
|
if (!h)
|
|
3725
|
-
h = (s = (i = (n = (r =
|
|
3727
|
+
h = (s = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3726
3728
|
else if (typeof h != "string")
|
|
3727
3729
|
return console.warn(
|
|
3728
3730
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3729
3731
|
), h;
|
|
3730
3732
|
if (!o)
|
|
3731
3733
|
return h;
|
|
3732
|
-
let
|
|
3734
|
+
let f = h;
|
|
3733
3735
|
try {
|
|
3734
|
-
|
|
3735
|
-
} catch (
|
|
3736
|
-
|
|
3736
|
+
f = Hi(h, l).format(o);
|
|
3737
|
+
} catch (c) {
|
|
3738
|
+
c instanceof Error && console.warn(
|
|
3737
3739
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3738
|
-
|
|
3740
|
+
c.message
|
|
3739
3741
|
);
|
|
3740
3742
|
}
|
|
3741
|
-
return
|
|
3742
|
-
},
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
function
|
|
3748
|
-
|
|
3749
|
-
r == null && (
|
|
3743
|
+
return f;
|
|
3744
|
+
}, Bi = (e, t) => Ai(t).format(e), wi = (e, t) => Ti(t).format(e), Ii = (e, t) => Si(t).format(e), Ni = (e, t = X()) => er(e, t), Oi = ae([J, oe], () => Ci);
|
|
3745
|
+
ae([J], () => Bi);
|
|
3746
|
+
ae([J], () => wi);
|
|
3747
|
+
ae([J], () => Ii);
|
|
3748
|
+
ae([J, oe], () => Ni);
|
|
3749
|
+
function Pi({ withLocale: e, translations: t }) {
|
|
3750
|
+
J.subscribe((r) => {
|
|
3751
|
+
r == null && (oe.set(t), J.set(e));
|
|
3750
3752
|
});
|
|
3751
3753
|
}
|
|
3752
|
-
function
|
|
3753
|
-
|
|
3754
|
+
function Tt(e, t) {
|
|
3755
|
+
rr(e, t);
|
|
3754
3756
|
}
|
|
3755
|
-
function
|
|
3756
|
-
|
|
3757
|
+
function Mi(e) {
|
|
3758
|
+
J.set(e);
|
|
3757
3759
|
}
|
|
3758
|
-
const
|
|
3760
|
+
const At = {
|
|
3759
3761
|
en: {
|
|
3760
3762
|
enrolled: "Enrolled",
|
|
3761
3763
|
scoreCriteria: "Score Criteria",
|
|
@@ -4087,13 +4089,13 @@ const Tt = {
|
|
|
4087
4089
|
December: "December"
|
|
4088
4090
|
}
|
|
4089
4091
|
};
|
|
4090
|
-
function
|
|
4092
|
+
function Li(e, t) {
|
|
4091
4093
|
if (e) {
|
|
4092
4094
|
const r = document.createElement("style");
|
|
4093
4095
|
r.innerHTML = t, e.appendChild(r);
|
|
4094
4096
|
}
|
|
4095
4097
|
}
|
|
4096
|
-
function
|
|
4098
|
+
function Ri(e, t) {
|
|
4097
4099
|
const r = new URL(t);
|
|
4098
4100
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4099
4101
|
const i = document.createElement("style");
|
|
@@ -4102,7 +4104,7 @@ function Li(e, t) {
|
|
|
4102
4104
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4103
4105
|
});
|
|
4104
4106
|
}
|
|
4105
|
-
function
|
|
4107
|
+
function Di(e, t, r) {
|
|
4106
4108
|
if (window.emMessageBus) {
|
|
4107
4109
|
const n = document.createElement("style");
|
|
4108
4110
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4110,53 +4112,53 @@ function Ri(e, t, r) {
|
|
|
4110
4112
|
});
|
|
4111
4113
|
}
|
|
4112
4114
|
}
|
|
4113
|
-
function
|
|
4114
|
-
|
|
4115
|
+
function ki(e) {
|
|
4116
|
+
Sr(e, "svelte-52u9sp", ':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"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.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{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.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}');
|
|
4115
4117
|
}
|
|
4116
|
-
function
|
|
4118
|
+
function Ht(e) {
|
|
4117
4119
|
let t, r, n;
|
|
4118
4120
|
return {
|
|
4119
4121
|
c() {
|
|
4120
4122
|
t = w("div"), t.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>', r = $(), n = w("div"), n.innerHTML = '<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>', b(t, "class", "Skeleton CardImg"), b(n, "class", "Details"), b(n, "part", "Details");
|
|
4121
4123
|
},
|
|
4122
4124
|
m(i, s) {
|
|
4123
|
-
|
|
4125
|
+
P(i, t, s), P(i, r, s), P(i, n, s);
|
|
4124
4126
|
},
|
|
4125
4127
|
d(i) {
|
|
4126
4128
|
i && (N(t), N(r), N(n));
|
|
4127
4129
|
}
|
|
4128
4130
|
};
|
|
4129
4131
|
}
|
|
4130
|
-
function
|
|
4131
|
-
let t, r, n, i, s, a, o, l, u, h,
|
|
4132
|
+
function Ct(e) {
|
|
4133
|
+
let t, r, n, i, s, a, o, l, u, h, f = (
|
|
4132
4134
|
/*status*/
|
|
4133
|
-
e[0] &&
|
|
4134
|
-
),
|
|
4135
|
+
e[0] && Bt(e)
|
|
4136
|
+
), c = (
|
|
4135
4137
|
/*showenrolled*/
|
|
4136
|
-
e[6] == "true" &&
|
|
4138
|
+
e[6] == "true" && wt(e)
|
|
4137
4139
|
);
|
|
4138
|
-
function
|
|
4140
|
+
function x(d, _) {
|
|
4139
4141
|
return (
|
|
4140
4142
|
/*thumbnail*/
|
|
4141
|
-
d[3] ?
|
|
4143
|
+
d[3] ? Fi : Ui
|
|
4142
4144
|
);
|
|
4143
4145
|
}
|
|
4144
|
-
let E =
|
|
4146
|
+
let E = x(e), g = E(e), y = (
|
|
4145
4147
|
/*startdate*/
|
|
4146
|
-
e[2] &&
|
|
4147
|
-
),
|
|
4148
|
+
e[2] && Nt(e)
|
|
4149
|
+
), S = (
|
|
4148
4150
|
/*isLoggedIn*/
|
|
4149
|
-
e[11] &&
|
|
4151
|
+
e[11] && Ot(e)
|
|
4150
4152
|
);
|
|
4151
4153
|
return {
|
|
4152
4154
|
c() {
|
|
4153
|
-
|
|
4155
|
+
f && f.c(), t = $(), c && c.c(), r = $(), g.c(), n = $(), i = w("div"), s = w("div"), a = D(
|
|
4154
4156
|
/*title*/
|
|
4155
4157
|
e[1]
|
|
4156
|
-
), o = $(), y && y.c(), l = $(),
|
|
4158
|
+
), o = $(), y && y.c(), l = $(), S && S.c(), b(s, "class", "Title"), b(s, "part", "Title"), b(i, "class", "Details"), b(i, "part", "Details");
|
|
4157
4159
|
},
|
|
4158
4160
|
m(d, _) {
|
|
4159
|
-
|
|
4161
|
+
f && f.m(d, _), P(d, t, _), c && c.m(d, _), P(d, r, _), g.m(d, _), P(d, n, _), P(d, i, _), T(i, s), T(s, a), T(i, o), y && y.m(i, null), T(i, l), S && S.m(i, null), u || (h = Ae(
|
|
4160
4162
|
s,
|
|
4161
4163
|
"click",
|
|
4162
4164
|
/*detailsAction*/
|
|
@@ -4165,22 +4167,22 @@ function Ht(e) {
|
|
|
4165
4167
|
},
|
|
4166
4168
|
p(d, _) {
|
|
4167
4169
|
/*status*/
|
|
4168
|
-
d[0] ?
|
|
4169
|
-
d[6] == "true" ?
|
|
4170
|
+
d[0] ? f ? f.p(d, _) : (f = Bt(d), f.c(), f.m(t.parentNode, t)) : f && (f.d(1), f = null), /*showenrolled*/
|
|
4171
|
+
d[6] == "true" ? c ? c.p(d, _) : (c = wt(d), c.c(), c.m(r.parentNode, r)) : c && (c.d(1), c = null), E === (E = x(d)) && g ? g.p(d, _) : (g.d(1), g = E(d), g && (g.c(), g.m(n.parentNode, n))), _[0] & /*title*/
|
|
4170
4172
|
2 && G(
|
|
4171
4173
|
a,
|
|
4172
4174
|
/*title*/
|
|
4173
4175
|
d[1]
|
|
4174
4176
|
), /*startdate*/
|
|
4175
|
-
d[2] ? y ? y.p(d, _) : (y =
|
|
4176
|
-
d[11] ?
|
|
4177
|
+
d[2] ? y ? y.p(d, _) : (y = Nt(d), y.c(), y.m(i, l)) : y && (y.d(1), y = null), /*isLoggedIn*/
|
|
4178
|
+
d[11] ? S ? S.p(d, _) : (S = Ot(d), S.c(), S.m(i, null)) : S && (S.d(1), S = null);
|
|
4177
4179
|
},
|
|
4178
4180
|
d(d) {
|
|
4179
|
-
d && (N(t), N(r), N(n), N(i)),
|
|
4181
|
+
d && (N(t), N(r), N(n), N(i)), f && f.d(d), c && c.d(d), g.d(d), y && y.d(), S && S.d(), u = !1, h();
|
|
4180
4182
|
}
|
|
4181
4183
|
};
|
|
4182
4184
|
}
|
|
4183
|
-
function
|
|
4185
|
+
function Bt(e) {
|
|
4184
4186
|
let t, r, n, i, s, a;
|
|
4185
4187
|
return {
|
|
4186
4188
|
c() {
|
|
@@ -4192,7 +4194,7 @@ function Ct(e) {
|
|
|
4192
4194
|
e[14]);
|
|
4193
4195
|
},
|
|
4194
4196
|
m(o, l) {
|
|
4195
|
-
|
|
4197
|
+
P(o, t, l), T(t, r), s || (a = ge(
|
|
4196
4198
|
/*matchStatus*/
|
|
4197
4199
|
e[17].call(null, t)
|
|
4198
4200
|
), s = !0);
|
|
@@ -4214,28 +4216,28 @@ function Ct(e) {
|
|
|
4214
4216
|
}
|
|
4215
4217
|
};
|
|
4216
4218
|
}
|
|
4217
|
-
function
|
|
4219
|
+
function wt(e) {
|
|
4218
4220
|
let t, r = (
|
|
4219
4221
|
/*userenrolled*/
|
|
4220
|
-
e[4] &&
|
|
4222
|
+
e[4] && It(e)
|
|
4221
4223
|
);
|
|
4222
4224
|
return {
|
|
4223
4225
|
c() {
|
|
4224
|
-
r && r.c(), t =
|
|
4226
|
+
r && r.c(), t = Hr();
|
|
4225
4227
|
},
|
|
4226
4228
|
m(n, i) {
|
|
4227
|
-
r && r.m(n, i),
|
|
4229
|
+
r && r.m(n, i), P(n, t, i);
|
|
4228
4230
|
},
|
|
4229
4231
|
p(n, i) {
|
|
4230
4232
|
/*userenrolled*/
|
|
4231
|
-
n[4] ? r ? r.p(n, i) : (r =
|
|
4233
|
+
n[4] ? r ? r.p(n, i) : (r = It(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4232
4234
|
},
|
|
4233
4235
|
d(n) {
|
|
4234
4236
|
n && N(t), r && r.d(n);
|
|
4235
4237
|
}
|
|
4236
4238
|
};
|
|
4237
4239
|
}
|
|
4238
|
-
function
|
|
4240
|
+
function It(e) {
|
|
4239
4241
|
let t, r = (
|
|
4240
4242
|
/*$_*/
|
|
4241
4243
|
e[15]("enrolled") + ""
|
|
@@ -4245,7 +4247,7 @@ function wt(e) {
|
|
|
4245
4247
|
t = w("div"), n = D(r), b(t, "class", "Enrolled"), b(t, "part", "Enrolled");
|
|
4246
4248
|
},
|
|
4247
4249
|
m(i, s) {
|
|
4248
|
-
|
|
4250
|
+
P(i, t, s), T(t, n);
|
|
4249
4251
|
},
|
|
4250
4252
|
p(i, s) {
|
|
4251
4253
|
s[0] & /*$_*/
|
|
@@ -4257,23 +4259,23 @@ function wt(e) {
|
|
|
4257
4259
|
}
|
|
4258
4260
|
};
|
|
4259
4261
|
}
|
|
4260
|
-
function
|
|
4262
|
+
function Ui(e) {
|
|
4261
4263
|
let t, r, n, i, s, a, o;
|
|
4262
4264
|
return {
|
|
4263
4265
|
c() {
|
|
4264
|
-
t = w("div"), r = w("ui-image"),
|
|
4266
|
+
t = w("div"), r = w("ui-image"), je(r.src, n = "https://i.stack.imgur.com/y9DpT.jpg") || ee(r, "src", n), ee(r, "alt", "icon"), b(t, "class", i = "CardImg " + /*status*/
|
|
4265
4267
|
(e[0] == "Closing" || /*status*/
|
|
4266
4268
|
e[0] == "Closed" ? "CardImgFinished" : "")), b(t, "part", s = "CardImg " + /*status*/
|
|
4267
4269
|
(e[0] == "Closing" || /*status*/
|
|
4268
4270
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4269
4271
|
},
|
|
4270
4272
|
m(l, u) {
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
+
P(l, t, u), T(t, r), a || (o = [
|
|
4274
|
+
ge(
|
|
4273
4275
|
/*matchStatus*/
|
|
4274
4276
|
e[17].call(null, t)
|
|
4275
4277
|
),
|
|
4276
|
-
|
|
4278
|
+
Ae(
|
|
4277
4279
|
t,
|
|
4278
4280
|
"click",
|
|
4279
4281
|
/*detailsAction*/
|
|
@@ -4291,28 +4293,28 @@ function ki(e) {
|
|
|
4291
4293
|
l[0] == "Closed" ? "CardImgFinished" : "")) && b(t, "part", s);
|
|
4292
4294
|
},
|
|
4293
4295
|
d(l) {
|
|
4294
|
-
l && N(t), a = !1,
|
|
4296
|
+
l && N(t), a = !1, z(o);
|
|
4295
4297
|
}
|
|
4296
4298
|
};
|
|
4297
4299
|
}
|
|
4298
|
-
function
|
|
4300
|
+
function Fi(e) {
|
|
4299
4301
|
let t, r, n, i, s, a, o;
|
|
4300
4302
|
return {
|
|
4301
4303
|
c() {
|
|
4302
|
-
t = w("div"), r = w("ui-image"),
|
|
4303
|
-
e[3]) ||
|
|
4304
|
+
t = w("div"), r = w("ui-image"), ee(r, "class", "UIImage"), je(r.src, n = /*thumbnail*/
|
|
4305
|
+
e[3]) || ee(r, "src", n), ee(r, "alt", "icon"), b(t, "class", i = "CardImg " + /*status*/
|
|
4304
4306
|
(e[0] == "Closing" || /*status*/
|
|
4305
4307
|
e[0] == "Closed" ? "CardImgFinished" : "")), b(t, "part", s = "CardImg " + /*status*/
|
|
4306
4308
|
(e[0] == "Closing" || /*status*/
|
|
4307
4309
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4308
4310
|
},
|
|
4309
4311
|
m(l, u) {
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
+
P(l, t, u), T(t, r), a || (o = [
|
|
4313
|
+
ge(
|
|
4312
4314
|
/*matchStatus*/
|
|
4313
4315
|
e[17].call(null, t)
|
|
4314
4316
|
),
|
|
4315
|
-
|
|
4317
|
+
Ae(
|
|
4316
4318
|
t,
|
|
4317
4319
|
"click",
|
|
4318
4320
|
/*detailsAction*/
|
|
@@ -4322,8 +4324,8 @@ function Ui(e) {
|
|
|
4322
4324
|
},
|
|
4323
4325
|
p(l, u) {
|
|
4324
4326
|
u[0] & /*thumbnail*/
|
|
4325
|
-
8 && !
|
|
4326
|
-
l[3]) &&
|
|
4327
|
+
8 && !je(r.src, n = /*thumbnail*/
|
|
4328
|
+
l[3]) && ee(r, "src", n), u[0] & /*status*/
|
|
4327
4329
|
1 && i !== (i = "CardImg " + /*status*/
|
|
4328
4330
|
(l[0] == "Closing" || /*status*/
|
|
4329
4331
|
l[0] == "Closed" ? "CardImgFinished" : "")) && b(t, "class", i), u[0] & /*status*/
|
|
@@ -4332,11 +4334,11 @@ function Ui(e) {
|
|
|
4332
4334
|
l[0] == "Closed" ? "CardImgFinished" : "")) && b(t, "part", s);
|
|
4333
4335
|
},
|
|
4334
4336
|
d(l) {
|
|
4335
|
-
l && N(t), a = !1,
|
|
4337
|
+
l && N(t), a = !1, z(o);
|
|
4336
4338
|
}
|
|
4337
4339
|
};
|
|
4338
4340
|
}
|
|
4339
|
-
function
|
|
4341
|
+
function Nt(e) {
|
|
4340
4342
|
let t, r, n, i, s;
|
|
4341
4343
|
return {
|
|
4342
4344
|
c() {
|
|
@@ -4346,7 +4348,7 @@ function It(e) {
|
|
|
4346
4348
|
), b(t, "class", "Date"), b(t, "part", "Date");
|
|
4347
4349
|
},
|
|
4348
4350
|
m(a, o) {
|
|
4349
|
-
|
|
4351
|
+
P(a, t, o), T(t, r), i || (s = ge(n = /*formatDate*/
|
|
4350
4352
|
e[16].call(
|
|
4351
4353
|
null,
|
|
4352
4354
|
t,
|
|
@@ -4360,7 +4362,7 @@ function It(e) {
|
|
|
4360
4362
|
r,
|
|
4361
4363
|
/*shownDate*/
|
|
4362
4364
|
a[10]
|
|
4363
|
-
), n &&
|
|
4365
|
+
), n && be(n.update) && o[0] & /*startdate*/
|
|
4364
4366
|
4 && n.update.call(
|
|
4365
4367
|
null,
|
|
4366
4368
|
/*startdate*/
|
|
@@ -4372,20 +4374,20 @@ function It(e) {
|
|
|
4372
4374
|
}
|
|
4373
4375
|
};
|
|
4374
4376
|
}
|
|
4375
|
-
function
|
|
4377
|
+
function Ot(e) {
|
|
4376
4378
|
let t, r, n = (
|
|
4377
4379
|
/*$_*/
|
|
4378
4380
|
e[15]("scoreCriteria") + ""
|
|
4379
4381
|
), i, s, a, o, l, u = (
|
|
4380
4382
|
/*$_*/
|
|
4381
4383
|
e[15]("minbet") + ""
|
|
4382
|
-
), h,
|
|
4384
|
+
), h, f, c, x, E, g, y, S = (
|
|
4383
4385
|
/*$_*/
|
|
4384
4386
|
e[15]("seegames") + ""
|
|
4385
|
-
), d, _, B,
|
|
4387
|
+
), d, _, B, M = (
|
|
4386
4388
|
/*$_*/
|
|
4387
4389
|
e[15]("here") + ""
|
|
4388
|
-
), k, L,
|
|
4390
|
+
), k, L, Z, W;
|
|
4389
4391
|
return {
|
|
4390
4392
|
c() {
|
|
4391
4393
|
t = w("div"), r = w("p"), i = D(n), s = D(`:
|
|
@@ -4394,10 +4396,10 @@ function Nt(e) {
|
|
|
4394
4396
|
/*showScoreCriteria*/
|
|
4395
4397
|
e[13]
|
|
4396
4398
|
), l = D(`
|
|
4397
|
-
(`), h = D(u),
|
|
4399
|
+
(`), h = D(u), f = $(), c = D(
|
|
4398
4400
|
/*minbetcount*/
|
|
4399
4401
|
e[5]
|
|
4400
|
-
),
|
|
4402
|
+
), x = D(")"), E = $(), g = w("div"), y = w("p"), d = D(S), _ = $(), B = w("a"), k = D(M), b(a, "part", "ScoreCriteriaSpan"), b(r, "part", "ScoreCriteriaP"), b(t, "class", "ScoreCriteria"), b(t, "part", "ScoreCriteria"), b(B, "part", "GamesAnchor"), b(
|
|
4401
4403
|
B,
|
|
4402
4404
|
"href",
|
|
4403
4405
|
/*gameurl*/
|
|
@@ -4405,61 +4407,61 @@ function Nt(e) {
|
|
|
4405
4407
|
), b(B, "target", L = /*keepbrowsercontext*/
|
|
4406
4408
|
e[8] === "true" ? "_self" : "_blank"), b(y, "part", "GamesP"), b(g, "class", "Games"), b(g, "part", "Games");
|
|
4407
4409
|
},
|
|
4408
|
-
m(I,
|
|
4409
|
-
|
|
4410
|
-
|
|
4410
|
+
m(I, O) {
|
|
4411
|
+
P(I, t, O), T(t, r), T(r, i), T(r, s), T(r, a), T(a, o), T(r, l), T(r, h), T(r, f), T(r, c), T(r, x), P(I, E, O), P(I, g, O), T(g, y), T(y, d), T(y, _), T(y, B), T(B, k), Z || (W = [
|
|
4412
|
+
ge(
|
|
4411
4413
|
/*matchScoreCriteria*/
|
|
4412
4414
|
e[18].call(null, a)
|
|
4413
4415
|
),
|
|
4414
|
-
|
|
4416
|
+
Ae(
|
|
4415
4417
|
B,
|
|
4416
4418
|
"click",
|
|
4417
4419
|
/*tournamentGamesClicked*/
|
|
4418
4420
|
e[19]
|
|
4419
4421
|
)
|
|
4420
|
-
],
|
|
4422
|
+
], Z = !0);
|
|
4421
4423
|
},
|
|
4422
|
-
p(I,
|
|
4423
|
-
|
|
4424
|
+
p(I, O) {
|
|
4425
|
+
O[0] & /*$_*/
|
|
4424
4426
|
32768 && n !== (n = /*$_*/
|
|
4425
|
-
I[15]("scoreCriteria") + "") && G(i, n),
|
|
4427
|
+
I[15]("scoreCriteria") + "") && G(i, n), O[0] & /*showScoreCriteria*/
|
|
4426
4428
|
8192 && G(
|
|
4427
4429
|
o,
|
|
4428
4430
|
/*showScoreCriteria*/
|
|
4429
4431
|
I[13]
|
|
4430
|
-
),
|
|
4432
|
+
), O[0] & /*$_*/
|
|
4431
4433
|
32768 && u !== (u = /*$_*/
|
|
4432
|
-
I[15]("minbet") + "") && G(h, u),
|
|
4434
|
+
I[15]("minbet") + "") && G(h, u), O[0] & /*minbetcount*/
|
|
4433
4435
|
32 && G(
|
|
4434
|
-
|
|
4436
|
+
c,
|
|
4435
4437
|
/*minbetcount*/
|
|
4436
4438
|
I[5]
|
|
4437
|
-
),
|
|
4438
|
-
32768 &&
|
|
4439
|
-
I[15]("seegames") + "") && G(d,
|
|
4440
|
-
32768 &&
|
|
4441
|
-
I[15]("here") + "") && G(k,
|
|
4439
|
+
), O[0] & /*$_*/
|
|
4440
|
+
32768 && S !== (S = /*$_*/
|
|
4441
|
+
I[15]("seegames") + "") && G(d, S), O[0] & /*$_*/
|
|
4442
|
+
32768 && M !== (M = /*$_*/
|
|
4443
|
+
I[15]("here") + "") && G(k, M), O[0] & /*gameurl*/
|
|
4442
4444
|
128 && b(
|
|
4443
4445
|
B,
|
|
4444
4446
|
"href",
|
|
4445
4447
|
/*gameurl*/
|
|
4446
4448
|
I[7]
|
|
4447
|
-
),
|
|
4449
|
+
), O[0] & /*keepbrowsercontext*/
|
|
4448
4450
|
256 && L !== (L = /*keepbrowsercontext*/
|
|
4449
4451
|
I[8] === "true" ? "_self" : "_blank") && b(B, "target", L);
|
|
4450
4452
|
},
|
|
4451
4453
|
d(I) {
|
|
4452
|
-
I && (N(t), N(E), N(g)),
|
|
4454
|
+
I && (N(t), N(E), N(g)), Z = !1, z(W);
|
|
4453
4455
|
}
|
|
4454
4456
|
};
|
|
4455
4457
|
}
|
|
4456
|
-
function
|
|
4458
|
+
function Gi(e) {
|
|
4457
4459
|
let t, r, n, i = (
|
|
4458
4460
|
/*title*/
|
|
4459
|
-
e[1] === "undefined" &&
|
|
4461
|
+
e[1] === "undefined" && Ht()
|
|
4460
4462
|
), s = (
|
|
4461
4463
|
/*title*/
|
|
4462
|
-
e[1] !== "undefined" &&
|
|
4464
|
+
e[1] !== "undefined" && Ct(e)
|
|
4463
4465
|
);
|
|
4464
4466
|
return {
|
|
4465
4467
|
c() {
|
|
@@ -4467,12 +4469,12 @@ function Fi(e) {
|
|
|
4467
4469
|
e[1] === "undefined" ? "Loading" : ""}`), b(t, "part", "Thumbnail");
|
|
4468
4470
|
},
|
|
4469
4471
|
m(a, o) {
|
|
4470
|
-
|
|
4472
|
+
P(a, t, o), i && i.m(t, null), T(t, r), s && s.m(t, null), e[31](t);
|
|
4471
4473
|
},
|
|
4472
4474
|
p(a, o) {
|
|
4473
4475
|
/*title*/
|
|
4474
|
-
a[1] === "undefined" ? i || (i =
|
|
4475
|
-
a[1] !== "undefined" ? s ? s.p(a, o) : (s =
|
|
4476
|
+
a[1] === "undefined" ? i || (i = Ht(), i.c(), i.m(t, r)) : i && (i.d(1), i = null), /*title*/
|
|
4477
|
+
a[1] !== "undefined" ? s ? s.p(a, o) : (s = Ct(a), s.c(), s.m(t, null)) : s && (s.d(1), s = null), o[0] & /*title*/
|
|
4476
4478
|
2 && n !== (n = `Thumbnail ${/*title*/
|
|
4477
4479
|
a[1] === "undefined" ? "Loading" : ""}`) && b(t, "class", n);
|
|
4478
4480
|
},
|
|
@@ -4483,41 +4485,41 @@ function Fi(e) {
|
|
|
4483
4485
|
}
|
|
4484
4486
|
};
|
|
4485
4487
|
}
|
|
4486
|
-
function
|
|
4488
|
+
function $i(e, t, r) {
|
|
4487
4489
|
let n;
|
|
4488
|
-
|
|
4489
|
-
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: l = "" } = t, { tourid: u = "" } = t, { thumbnail: h = "" } = t, { userenrolled:
|
|
4490
|
-
|
|
4491
|
-
const
|
|
4492
|
-
fetch(
|
|
4493
|
-
Object.keys(m).forEach((
|
|
4494
|
-
|
|
4490
|
+
xr(e, Oi, (m) => r(15, n = m));
|
|
4491
|
+
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: l = "" } = t, { tourid: u = "" } = t, { thumbnail: h = "" } = t, { userenrolled: f = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: x = "" } = t, { showenrolled: E = "false" } = t, { detailsevent: g = "" } = t, { gameurl: y = "" } = t, { lang: S = "en" } = t, { keepbrowsercontext: d = "false" } = t, { clientstyling: _ = "" } = t, { clientstylingurl: B = "" } = t, { translationurl: M = "" } = t, { mbsource: k } = t, L, Z = "", W = !1, I = "", O = "", le = "";
|
|
4492
|
+
Pi({ withLocale: "en", translations: {} });
|
|
4493
|
+
const or = () => {
|
|
4494
|
+
fetch(M).then((m) => m.json()).then((m) => {
|
|
4495
|
+
Object.keys(m).forEach((q) => {
|
|
4496
|
+
Tt(q, m[q]);
|
|
4495
4497
|
}), o && Me();
|
|
4496
4498
|
}).catch((m) => {
|
|
4497
4499
|
console.log(m);
|
|
4498
4500
|
});
|
|
4499
4501
|
};
|
|
4500
|
-
Object.keys(
|
|
4501
|
-
|
|
4502
|
+
Object.keys(At).forEach((m) => {
|
|
4503
|
+
Tt(m, At[m]);
|
|
4502
4504
|
});
|
|
4503
|
-
const
|
|
4504
|
-
m.data && (m.data && m.data.type == "SessionID" && r(11,
|
|
4505
|
-
},
|
|
4505
|
+
const it = (m) => {
|
|
4506
|
+
m.data && (m.data && m.data.type == "SessionID" && r(11, W = !0), m.data.type == `TournamentStatus_${u}` && r(0, l = m.data.status));
|
|
4507
|
+
}, Ne = () => {
|
|
4506
4508
|
const m = { month: "long" };
|
|
4507
|
-
let
|
|
4509
|
+
let q = new Date(o), fr = new Intl.DateTimeFormat("en", m).format(q), mr = q.getDate(), dr = q.toLocaleString("en-GB", {
|
|
4508
4510
|
hour: "numeric",
|
|
4509
4511
|
minute: "numeric",
|
|
4510
4512
|
hour12: !1
|
|
4511
4513
|
});
|
|
4512
|
-
const
|
|
4513
|
-
r(10,
|
|
4514
|
-
},
|
|
4515
|
-
l == "Unstarted" && (r(12, I = n("scheduled")), r(14,
|
|
4516
|
-
},
|
|
4517
|
-
|
|
4518
|
-
}, or = () => {
|
|
4519
|
-
window.postMessage({ type: "tournamentGamesClicked", tourid: u }, window.location.href);
|
|
4514
|
+
const br = () => n(l === "Running" ? "startedAt" : "startingAt");
|
|
4515
|
+
r(10, Z = `${mr} ` + n(`${fr}`) + ", " + br() + ` ${dr}`);
|
|
4516
|
+
}, Oe = () => {
|
|
4517
|
+
l == "Unstarted" && (r(12, I = n("scheduled")), r(14, le = "StatusUnstarted")), l == "Running" && (r(12, I = n("ongoing")), r(14, le = "StatusRunning")), (l == "Closed" || l == "Closing") && r(12, I = n("finished")), l == "Closed" && r(14, le = "StatusClosed"), l == "Closing" && r(14, le = "StatusClosing");
|
|
4518
|
+
}, Pe = () => {
|
|
4519
|
+
c == "BetCount" && r(13, O = n("betCount")), c == "MaxWinStakeRatio" && r(13, O = n("maxWinStakeRatio")), c == "WinStakeRatio" && r(13, O = n("winStakeRatio")), c == "Stake" && r(13, O = n("stake"));
|
|
4520
4520
|
}, ur = () => {
|
|
4521
|
+
window.postMessage({ type: "tournamentGamesClicked", tourid: u }, window.location.href);
|
|
4522
|
+
}, lr = () => {
|
|
4521
4523
|
g && window.postMessage(
|
|
4522
4524
|
{
|
|
4523
4525
|
type: g,
|
|
@@ -4526,76 +4528,76 @@ function Gi(e, t, r) {
|
|
|
4526
4528
|
},
|
|
4527
4529
|
window.location.href
|
|
4528
4530
|
);
|
|
4529
|
-
},
|
|
4530
|
-
i.length > 0 && i != "false" ? r(11,
|
|
4531
|
+
}, hr = () => {
|
|
4532
|
+
i.length > 0 && i != "false" ? r(11, W = !0) : r(11, W = !1);
|
|
4531
4533
|
};
|
|
4532
|
-
|
|
4533
|
-
window.removeEventListener("message",
|
|
4534
|
+
Ir(() => (setTimeout(() => Me(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", it, !1), () => {
|
|
4535
|
+
window.removeEventListener("message", it);
|
|
4534
4536
|
}));
|
|
4535
4537
|
const Me = () => {
|
|
4536
|
-
|
|
4538
|
+
Mi(S), Pe(), Oe(), o && Ne();
|
|
4537
4539
|
};
|
|
4538
|
-
function
|
|
4539
|
-
|
|
4540
|
+
function cr(m) {
|
|
4541
|
+
Ve[m ? "unshift" : "push"](() => {
|
|
4540
4542
|
L = m, r(9, L);
|
|
4541
4543
|
});
|
|
4542
4544
|
}
|
|
4543
4545
|
return e.$$set = (m) => {
|
|
4544
|
-
"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, l = m.status), "tourid" in m && r(23, u = m.tourid), "thumbnail" in m && r(3, h = m.thumbnail), "userenrolled" in m && r(4,
|
|
4546
|
+
"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, l = m.status), "tourid" in m && r(23, u = m.tourid), "thumbnail" in m && r(3, h = m.thumbnail), "userenrolled" in m && r(4, f = m.userenrolled), "scorecriteria" in m && r(24, c = m.scorecriteria), "minbetcount" in m && r(5, x = m.minbetcount), "showenrolled" in m && r(6, E = m.showenrolled), "detailsevent" in m && r(25, g = m.detailsevent), "gameurl" in m && r(7, y = m.gameurl), "lang" in m && r(26, S = m.lang), "keepbrowsercontext" in m && r(8, d = m.keepbrowsercontext), "clientstyling" in m && r(27, _ = m.clientstyling), "clientstylingurl" in m && r(28, B = m.clientstylingurl), "translationurl" in m && r(29, M = m.translationurl), "mbsource" in m && r(30, k = m.mbsource);
|
|
4545
4547
|
}, e.$$.update = () => {
|
|
4546
4548
|
e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4547
|
-
134218240 && _ && L &&
|
|
4548
|
-
268435968 && B && L &&
|
|
4549
|
-
1073742336 && k && L &&
|
|
4550
|
-
536870912 &&
|
|
4551
|
-
2097152 && i &&
|
|
4552
|
-
1 && l &&
|
|
4553
|
-
67108866 && a &&
|
|
4554
|
-
4 && o &&
|
|
4555
|
-
16777216 &&
|
|
4549
|
+
134218240 && _ && L && Li(L, _), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4550
|
+
268435968 && B && L && Ri(L, B), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4551
|
+
1073742336 && k && L && Di(L, `${k}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4552
|
+
536870912 && M && or(), e.$$.dirty[0] & /*session*/
|
|
4553
|
+
2097152 && i && hr(), e.$$.dirty[0] & /*status*/
|
|
4554
|
+
1 && l && Oe(), e.$$.dirty[0] & /*title, lang*/
|
|
4555
|
+
67108866 && a && S && Me(), e.$$.dirty[0] & /*startdate*/
|
|
4556
|
+
4 && o && Ne(), e.$$.dirty[0] & /*scorecriteria*/
|
|
4557
|
+
16777216 && c && Pe();
|
|
4556
4558
|
}, [
|
|
4557
4559
|
l,
|
|
4558
4560
|
a,
|
|
4559
4561
|
o,
|
|
4560
4562
|
h,
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
+
f,
|
|
4564
|
+
x,
|
|
4563
4565
|
E,
|
|
4564
4566
|
y,
|
|
4565
4567
|
d,
|
|
4566
4568
|
L,
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
+
Z,
|
|
4570
|
+
W,
|
|
4569
4571
|
I,
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
+
O,
|
|
4573
|
+
le,
|
|
4572
4574
|
n,
|
|
4573
|
-
we,
|
|
4574
|
-
Ie,
|
|
4575
4575
|
Ne,
|
|
4576
|
-
|
|
4576
|
+
Oe,
|
|
4577
|
+
Pe,
|
|
4577
4578
|
ur,
|
|
4579
|
+
lr,
|
|
4578
4580
|
i,
|
|
4579
4581
|
s,
|
|
4580
4582
|
u,
|
|
4581
|
-
|
|
4583
|
+
c,
|
|
4582
4584
|
g,
|
|
4583
|
-
|
|
4585
|
+
S,
|
|
4584
4586
|
_,
|
|
4585
4587
|
B,
|
|
4586
|
-
|
|
4588
|
+
M,
|
|
4587
4589
|
k,
|
|
4588
|
-
|
|
4590
|
+
cr
|
|
4589
4591
|
];
|
|
4590
4592
|
}
|
|
4591
|
-
class
|
|
4593
|
+
class ji extends $r {
|
|
4592
4594
|
constructor(t) {
|
|
4593
|
-
super(),
|
|
4595
|
+
super(), Fr(
|
|
4594
4596
|
this,
|
|
4595
4597
|
t,
|
|
4598
|
+
$i,
|
|
4596
4599
|
Gi,
|
|
4597
|
-
|
|
4598
|
-
Ot,
|
|
4600
|
+
Mt,
|
|
4599
4601
|
{
|
|
4600
4602
|
session: 21,
|
|
4601
4603
|
userid: 22,
|
|
@@ -4617,7 +4619,7 @@ class $i extends Gr {
|
|
|
4617
4619
|
translationurl: 29,
|
|
4618
4620
|
mbsource: 30
|
|
4619
4621
|
},
|
|
4620
|
-
|
|
4622
|
+
ki,
|
|
4621
4623
|
[-1, -1]
|
|
4622
4624
|
);
|
|
4623
4625
|
}
|
|
@@ -4736,7 +4738,7 @@ class $i extends Gr {
|
|
|
4736
4738
|
this.$$set({ mbsource: t }), C();
|
|
4737
4739
|
}
|
|
4738
4740
|
}
|
|
4739
|
-
|
|
4741
|
+
Gr(ji, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, detailsevent: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4740
4742
|
export {
|
|
4741
|
-
|
|
4743
|
+
ji as default
|
|
4742
4744
|
};
|