@everymatrix/casino-tournaments-thumbnail-controller 1.62.0 → 1.62.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsThumbnail-BCrHaXfo.js → CasinoTournamentsThumbnail-AfVWsgC5.js} +672 -704
- package/components/{CasinoTournamentsThumbnail-fOREP6KA.js → CasinoTournamentsThumbnail-BlgiWoCG.js} +669 -701
- package/components/CasinoTournamentsThumbnail-PjnKaMOL.cjs +6 -0
- package/components/CasinoTournamentsThumbnailController-Bh6G4B3l.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-Cv4ljsah.js → CasinoTournamentsThumbnailController-DNMVyAkC.js} +335 -286
- package/components/{CasinoTournamentsThumbnailController-KzW3zoOl.js → CasinoTournamentsThumbnailController-a_8vth08.js} +469 -420
- package/components/{CasinoTournamentsThumbnailDuration-BWdDfc4k.js → CasinoTournamentsThumbnailDuration-CWR9_xrM.js} +49 -49
- package/components/{CasinoTournamentsThumbnailDuration-BsL576C5.js → CasinoTournamentsThumbnailDuration-D7gF20LK.js} +49 -49
- package/components/{CasinoTournamentsThumbnailDuration-BPznOENB.cjs → CasinoTournamentsThumbnailDuration-lurr7pKH.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-hEnXNV-z.js → CasinoTournamentsThumbnailGamesSlider-Bpad1_dF.js} +57 -57
- package/components/{CasinoTournamentsThumbnailGamesSlider-D0qJIv_U.js → CasinoTournamentsThumbnailGamesSlider-Cfa-2Emm.js} +57 -57
- package/components/{CasinoTournamentsThumbnailGamesSlider-B9LIc43u.cjs → CasinoTournamentsThumbnailGamesSlider-c9efMupA.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-2H-7sa9F.js → CasinoTournamentsThumbnailPrizes-C_cjtHr7.js} +50 -50
- package/components/{CasinoTournamentsThumbnailPrizes-CH-e3kKC.js → CasinoTournamentsThumbnailPrizes-NL5BpBv-.js} +50 -50
- package/components/{CasinoTournamentsThumbnailPrizes-Bv1TKLqU.cjs → CasinoTournamentsThumbnailPrizes-nDKLZI8p.cjs} +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnail-CDIgYEqC.cjs +0 -19
- package/components/CasinoTournamentsThumbnailController-B6brBs2l.cjs +0 -3
package/components/{CasinoTournamentsThumbnail-BCrHaXfo.js → CasinoTournamentsThumbnail-AfVWsgC5.js}
RENAMED
|
@@ -29,26 +29,26 @@ var lt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function U() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Nt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function ht() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ie(e) {
|
|
39
|
+
e.forEach(Nt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function me(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function It(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let ge;
|
|
48
|
+
function Fi(e, t) {
|
|
49
|
+
return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Er(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
54
|
function Mt(e, ...t) {
|
|
@@ -60,19 +60,19 @@ function Mt(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function vr(e, t, r) {
|
|
64
64
|
e.$$.on_destroy.push(Mt(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return e &&
|
|
66
|
+
function de(e) {
|
|
67
|
+
return e && me(e.destroy) ? e.destroy : U;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function x(e, t) {
|
|
70
70
|
e.appendChild(t);
|
|
71
71
|
}
|
|
72
72
|
function xr(e, t, r) {
|
|
73
73
|
const n = Sr(e);
|
|
74
74
|
if (!n.getElementById(t)) {
|
|
75
|
-
const i =
|
|
75
|
+
const i = P("style");
|
|
76
76
|
i.id = t, i.textContent = r, Tr(n, i);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -87,7 +87,7 @@ function Sr(e) {
|
|
|
87
87
|
) : e.ownerDocument;
|
|
88
88
|
}
|
|
89
89
|
function Tr(e, t) {
|
|
90
|
-
return
|
|
90
|
+
return x(
|
|
91
91
|
/** @type {Document} */
|
|
92
92
|
e.head || e,
|
|
93
93
|
t
|
|
@@ -99,32 +99,32 @@ function G(e, t, r) {
|
|
|
99
99
|
function L(e) {
|
|
100
100
|
e.parentNode && e.parentNode.removeChild(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Gi(e, t) {
|
|
103
103
|
for (let r = 0; r < e.length; r += 1)
|
|
104
104
|
e[r] && e[r].d(t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function P(e) {
|
|
107
107
|
return document.createElement(e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function $i(e) {
|
|
110
110
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
111
111
|
}
|
|
112
112
|
function M(e) {
|
|
113
113
|
return document.createTextNode(e);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function W() {
|
|
116
116
|
return M(" ");
|
|
117
117
|
}
|
|
118
118
|
function Ar() {
|
|
119
119
|
return M("");
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Ge(e, t, r, n) {
|
|
122
122
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
123
123
|
}
|
|
124
124
|
function y(e, t, r) {
|
|
125
125
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ji(e, t, r) {
|
|
128
128
|
const n = t.toLowerCase();
|
|
129
129
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : y(e, t, r);
|
|
130
130
|
}
|
|
@@ -135,31 +135,31 @@ function $(e, t) {
|
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function $e(e, t, r, n) {
|
|
139
139
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
140
140
|
}
|
|
141
|
-
let
|
|
141
|
+
let pe;
|
|
142
142
|
function Cr() {
|
|
143
|
-
if (
|
|
144
|
-
|
|
143
|
+
if (pe === void 0) {
|
|
144
|
+
pe = !1;
|
|
145
145
|
try {
|
|
146
146
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
147
147
|
} catch (e) {
|
|
148
|
-
|
|
148
|
+
pe = !0;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
return
|
|
151
|
+
return pe;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Vi(e, t) {
|
|
154
154
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
155
|
-
const n =
|
|
155
|
+
const n = P("iframe");
|
|
156
156
|
n.setAttribute(
|
|
157
157
|
"style",
|
|
158
158
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
159
159
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
160
160
|
const i = Cr();
|
|
161
161
|
let s;
|
|
162
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s =
|
|
162
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = Ge(
|
|
163
163
|
window,
|
|
164
164
|
"message",
|
|
165
165
|
/** @param {MessageEvent} event */
|
|
@@ -167,12 +167,12 @@ function ji(e, t) {
|
|
|
167
167
|
a.source === n.contentWindow && t();
|
|
168
168
|
}
|
|
169
169
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
170
|
-
s =
|
|
171
|
-
}),
|
|
170
|
+
s = Ge(n.contentWindow, "resize", t), t();
|
|
171
|
+
}), x(e, n), () => {
|
|
172
172
|
(i || s && n.contentWindow) && s(), L(n);
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function zi(e, t, r) {
|
|
176
176
|
e.classList.toggle(t, !!r);
|
|
177
177
|
}
|
|
178
178
|
function Br(e) {
|
|
@@ -184,90 +184,90 @@ function Br(e) {
|
|
|
184
184
|
}
|
|
185
185
|
), t;
|
|
186
186
|
}
|
|
187
|
-
let
|
|
188
|
-
function
|
|
189
|
-
|
|
187
|
+
let he;
|
|
188
|
+
function le(e) {
|
|
189
|
+
he = e;
|
|
190
190
|
}
|
|
191
191
|
function wr() {
|
|
192
|
-
if (!
|
|
192
|
+
if (!he)
|
|
193
193
|
throw new Error("Function called outside component initialization");
|
|
194
|
-
return
|
|
194
|
+
return he;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Or(e) {
|
|
197
197
|
wr().$$.on_mount.push(e);
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
let
|
|
201
|
-
const ct = [],
|
|
202
|
-
let
|
|
203
|
-
function
|
|
204
|
-
|
|
199
|
+
const Y = [], je = [];
|
|
200
|
+
let K = [];
|
|
201
|
+
const ct = [], Pr = /* @__PURE__ */ Promise.resolve();
|
|
202
|
+
let Ve = !1;
|
|
203
|
+
function Nr() {
|
|
204
|
+
Ve || (Ve = !0, Pr.then(w));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
|
|
206
|
+
function ze(e) {
|
|
207
|
+
K.push(e);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
210
|
-
let
|
|
209
|
+
const Me = /* @__PURE__ */ new Set();
|
|
210
|
+
let q = 0;
|
|
211
211
|
function w() {
|
|
212
|
-
if (
|
|
212
|
+
if (q !== 0)
|
|
213
213
|
return;
|
|
214
|
-
const e =
|
|
214
|
+
const e = he;
|
|
215
215
|
do {
|
|
216
216
|
try {
|
|
217
|
-
for (;
|
|
218
|
-
const t =
|
|
219
|
-
|
|
217
|
+
for (; q < Y.length; ) {
|
|
218
|
+
const t = Y[q];
|
|
219
|
+
q++, le(t), Ir(t.$$);
|
|
220
220
|
}
|
|
221
221
|
} catch (t) {
|
|
222
|
-
throw
|
|
222
|
+
throw Y.length = 0, q = 0, t;
|
|
223
223
|
}
|
|
224
|
-
for (
|
|
225
|
-
|
|
226
|
-
for (let t = 0; t <
|
|
227
|
-
const r =
|
|
228
|
-
|
|
224
|
+
for (le(null), Y.length = 0, q = 0; je.length; )
|
|
225
|
+
je.pop()();
|
|
226
|
+
for (let t = 0; t < K.length; t += 1) {
|
|
227
|
+
const r = K[t];
|
|
228
|
+
Me.has(r) || (Me.add(r), r());
|
|
229
229
|
}
|
|
230
|
-
|
|
231
|
-
} while (
|
|
230
|
+
K.length = 0;
|
|
231
|
+
} while (Y.length);
|
|
232
232
|
for (; ct.length; )
|
|
233
233
|
ct.pop()();
|
|
234
|
-
|
|
234
|
+
Ve = !1, Me.clear(), le(e);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Ir(e) {
|
|
237
237
|
if (e.fragment !== null) {
|
|
238
|
-
e.update(),
|
|
238
|
+
e.update(), ie(e.before_update);
|
|
239
239
|
const t = e.dirty;
|
|
240
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
240
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ze);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
function Mr(e) {
|
|
244
244
|
const t = [], r = [];
|
|
245
|
-
|
|
245
|
+
K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
|
|
246
246
|
}
|
|
247
247
|
const Rr = /* @__PURE__ */ new Set();
|
|
248
248
|
function Lr(e, t) {
|
|
249
249
|
e && e.i && (Rr.delete(e), e.i(t));
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Ji(e) {
|
|
252
252
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
253
253
|
}
|
|
254
254
|
function Dr(e, t, r) {
|
|
255
255
|
const { fragment: n, after_update: i } = e.$$;
|
|
256
|
-
n && n.m(t, r),
|
|
257
|
-
const s = e.$$.on_mount.map(
|
|
258
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
259
|
-
}), i.forEach(
|
|
256
|
+
n && n.m(t, r), ze(() => {
|
|
257
|
+
const s = e.$$.on_mount.map(Nt).filter(me);
|
|
258
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ie(s), e.$$.on_mount = [];
|
|
259
|
+
}), i.forEach(ze);
|
|
260
260
|
}
|
|
261
261
|
function kr(e, t) {
|
|
262
262
|
const r = e.$$;
|
|
263
|
-
r.fragment !== null && (Mr(r.after_update),
|
|
263
|
+
r.fragment !== null && (Mr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
264
264
|
}
|
|
265
265
|
function Ur(e, t) {
|
|
266
|
-
e.$$.dirty[0] === -1 && (
|
|
266
|
+
e.$$.dirty[0] === -1 && (Y.push(e), Nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
267
267
|
}
|
|
268
268
|
function Fr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
269
|
-
const l =
|
|
270
|
-
|
|
269
|
+
const l = he;
|
|
270
|
+
le(e);
|
|
271
271
|
const u = e.$$ = {
|
|
272
272
|
fragment: null,
|
|
273
273
|
ctx: [],
|
|
@@ -291,10 +291,10 @@ function Fr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
291
291
|
};
|
|
292
292
|
a && a(u.root);
|
|
293
293
|
let h = !1;
|
|
294
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
295
|
-
const d =
|
|
294
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...E) => {
|
|
295
|
+
const d = E.length ? E[0] : f;
|
|
296
296
|
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Ur(e, c)), f;
|
|
297
|
-
}) : [], u.update(), h = !0,
|
|
297
|
+
}) : [], u.update(), h = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
298
298
|
if (t.hydrate) {
|
|
299
299
|
const c = Hr(t.target);
|
|
300
300
|
u.fragment && u.fragment.l(c), c.forEach(L);
|
|
@@ -302,7 +302,7 @@ function Fr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
302
302
|
u.fragment && u.fragment.c();
|
|
303
303
|
t.intro && Lr(e.$$.fragment), Dr(e, t.target, t.anchor), w();
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
le(l);
|
|
306
306
|
}
|
|
307
307
|
let Rt;
|
|
308
308
|
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
@@ -349,7 +349,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
349
349
|
let a;
|
|
350
350
|
return {
|
|
351
351
|
c: function() {
|
|
352
|
-
a =
|
|
352
|
+
a = P("slot"), s !== "default" && y(a, "name", s);
|
|
353
353
|
},
|
|
354
354
|
/**
|
|
355
355
|
* @param {HTMLElement} target
|
|
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
371
371
|
s in n && (r[s] = [t(s)]);
|
|
372
372
|
for (const s of this.attributes) {
|
|
373
373
|
const a = this.$$g_p(s.name);
|
|
374
|
-
a in this.$$d || (this.$$d[a] =
|
|
374
|
+
a in this.$$d || (this.$$d[a] = _e(a, s.value, this.$$p_d, "toProp"));
|
|
375
375
|
}
|
|
376
376
|
for (const s in this.$$p_d)
|
|
377
377
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -388,7 +388,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
388
388
|
this.$$r = !0;
|
|
389
389
|
for (const s in this.$$p_d)
|
|
390
390
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
391
|
-
const a =
|
|
391
|
+
const a = _e(
|
|
392
392
|
s,
|
|
393
393
|
this.$$d[s],
|
|
394
394
|
this.$$p_d,
|
|
@@ -412,7 +412,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
412
412
|
// and setting attributes through setAttribute etc, this is helpful
|
|
413
413
|
attributeChangedCallback(t, r, n) {
|
|
414
414
|
var i;
|
|
415
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
415
|
+
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] }));
|
|
416
416
|
}
|
|
417
417
|
disconnectedCallback() {
|
|
418
418
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -425,7 +425,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
425
425
|
) || t;
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
|
-
function
|
|
428
|
+
function _e(e, t, r, n) {
|
|
429
429
|
var s;
|
|
430
430
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
431
431
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -473,7 +473,7 @@ function Gr(e, t, r, n, i, s) {
|
|
|
473
473
|
},
|
|
474
474
|
set(l) {
|
|
475
475
|
var u;
|
|
476
|
-
l =
|
|
476
|
+
l = _e(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
477
477
|
}
|
|
478
478
|
});
|
|
479
479
|
}), n.forEach((o) => {
|
|
@@ -516,7 +516,7 @@ class $r {
|
|
|
516
516
|
* @returns {() => void}
|
|
517
517
|
*/
|
|
518
518
|
$on(t, r) {
|
|
519
|
-
if (!
|
|
519
|
+
if (!me(r))
|
|
520
520
|
return U;
|
|
521
521
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
522
522
|
return n.push(r), () => {
|
|
@@ -529,117 +529,29 @@ class $r {
|
|
|
529
529
|
* @returns {void}
|
|
530
530
|
*/
|
|
531
531
|
$set(t) {
|
|
532
|
-
this.$$set && !
|
|
532
|
+
this.$$set && !Er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
const jr = "4";
|
|
536
536
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jr);
|
|
537
|
-
|
|
538
|
-
Copyright (c) Microsoft Corporation.
|
|
539
|
-
|
|
540
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
541
|
-
purpose with or without fee is hereby granted.
|
|
542
|
-
|
|
543
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
544
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
545
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
546
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
547
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
548
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
549
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
550
|
-
***************************************************************************** */
|
|
551
|
-
var Ve = function(e, t) {
|
|
552
|
-
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
553
|
-
r.__proto__ = n;
|
|
554
|
-
} || function(r, n) {
|
|
555
|
-
for (var i in n)
|
|
556
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
557
|
-
}, Ve(e, t);
|
|
558
|
-
};
|
|
559
|
-
function Se(e, t) {
|
|
560
|
-
if (typeof t != "function" && t !== null)
|
|
561
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
562
|
-
Ve(e, t);
|
|
563
|
-
function r() {
|
|
564
|
-
this.constructor = e;
|
|
565
|
-
}
|
|
566
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
567
|
-
}
|
|
568
|
-
var x = function() {
|
|
569
|
-
return x = Object.assign || function(t) {
|
|
570
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
571
|
-
r = arguments[n];
|
|
572
|
-
for (var s in r)
|
|
573
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
574
|
-
}
|
|
575
|
-
return t;
|
|
576
|
-
}, x.apply(this, arguments);
|
|
577
|
-
};
|
|
537
|
+
const Q = [];
|
|
578
538
|
function Vr(e, t) {
|
|
579
|
-
var r = {};
|
|
580
|
-
for (var n in e)
|
|
581
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
582
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
583
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
584
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
585
|
-
return r;
|
|
586
|
-
}
|
|
587
|
-
function Ji(e) {
|
|
588
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
589
|
-
if (r)
|
|
590
|
-
return r.call(e);
|
|
591
|
-
if (e && typeof e.length == "number")
|
|
592
|
-
return {
|
|
593
|
-
next: function() {
|
|
594
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
595
|
-
}
|
|
596
|
-
};
|
|
597
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
598
|
-
}
|
|
599
|
-
function Wi(e, t) {
|
|
600
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
601
|
-
if (!r)
|
|
602
|
-
return e;
|
|
603
|
-
var n = r.call(e), i, s = [], a;
|
|
604
|
-
try {
|
|
605
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
606
|
-
s.push(i.value);
|
|
607
|
-
} catch (o) {
|
|
608
|
-
a = { error: o };
|
|
609
|
-
} finally {
|
|
610
|
-
try {
|
|
611
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
612
|
-
} finally {
|
|
613
|
-
if (a)
|
|
614
|
-
throw a.error;
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
return s;
|
|
618
|
-
}
|
|
619
|
-
function Pe(e, t, r) {
|
|
620
|
-
if (r || arguments.length === 2)
|
|
621
|
-
for (var n = 0, i = t.length, s; n < i; n++)
|
|
622
|
-
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
623
|
-
return e.concat(s || t);
|
|
624
|
-
}
|
|
625
|
-
const q = [];
|
|
626
|
-
function zr(e, t) {
|
|
627
539
|
return {
|
|
628
|
-
subscribe:
|
|
540
|
+
subscribe: Ae(e, t).subscribe
|
|
629
541
|
};
|
|
630
542
|
}
|
|
631
|
-
function
|
|
543
|
+
function Ae(e, t = U) {
|
|
632
544
|
let r;
|
|
633
545
|
const n = /* @__PURE__ */ new Set();
|
|
634
546
|
function i(o) {
|
|
635
|
-
if (
|
|
636
|
-
const l = !
|
|
547
|
+
if (It(e, o) && (e = o, r)) {
|
|
548
|
+
const l = !Q.length;
|
|
637
549
|
for (const u of n)
|
|
638
|
-
u[1](),
|
|
550
|
+
u[1](), Q.push(u, e);
|
|
639
551
|
if (l) {
|
|
640
|
-
for (let u = 0; u <
|
|
641
|
-
|
|
642
|
-
|
|
552
|
+
for (let u = 0; u < Q.length; u += 2)
|
|
553
|
+
Q[u][0](Q[u + 1]);
|
|
554
|
+
Q.length = 0;
|
|
643
555
|
}
|
|
644
556
|
}
|
|
645
557
|
}
|
|
@@ -654,12 +566,12 @@ function Te(e, t = U) {
|
|
|
654
566
|
}
|
|
655
567
|
return { set: i, update: s, subscribe: a };
|
|
656
568
|
}
|
|
657
|
-
function
|
|
569
|
+
function se(e, t, r) {
|
|
658
570
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
659
571
|
if (!i.every(Boolean))
|
|
660
572
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
661
573
|
const s = t.length < 2;
|
|
662
|
-
return
|
|
574
|
+
return Vr(r, (a, o) => {
|
|
663
575
|
let l = !1;
|
|
664
576
|
const u = [];
|
|
665
577
|
let h = 0, c = U;
|
|
@@ -668,8 +580,8 @@ function ie(e, t, r) {
|
|
|
668
580
|
return;
|
|
669
581
|
c();
|
|
670
582
|
const d = t(n ? u[0] : u, a, o);
|
|
671
|
-
s ? a(d) : c =
|
|
672
|
-
},
|
|
583
|
+
s ? a(d) : c = me(d) ? d : U;
|
|
584
|
+
}, E = i.map(
|
|
673
585
|
(d, b) => Mt(
|
|
674
586
|
d,
|
|
675
587
|
(g) => {
|
|
@@ -681,51 +593,51 @@ function ie(e, t, r) {
|
|
|
681
593
|
)
|
|
682
594
|
);
|
|
683
595
|
return l = !0, f(), function() {
|
|
684
|
-
|
|
596
|
+
ie(E), c(), l = !1;
|
|
685
597
|
};
|
|
686
598
|
});
|
|
687
599
|
}
|
|
688
|
-
function
|
|
600
|
+
function zr(e) {
|
|
689
601
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
690
602
|
}
|
|
691
|
-
var
|
|
692
|
-
return
|
|
603
|
+
var Jr = function(t) {
|
|
604
|
+
return Wr(t) && !Xr(t);
|
|
693
605
|
};
|
|
694
|
-
function
|
|
606
|
+
function Wr(e) {
|
|
695
607
|
return !!e && typeof e == "object";
|
|
696
608
|
}
|
|
697
|
-
function
|
|
609
|
+
function Xr(e) {
|
|
698
610
|
var t = Object.prototype.toString.call(e);
|
|
699
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
611
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
|
|
700
612
|
}
|
|
701
|
-
var
|
|
702
|
-
function
|
|
703
|
-
return e.$$typeof ===
|
|
613
|
+
var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
|
|
614
|
+
function Qr(e) {
|
|
615
|
+
return e.$$typeof === qr;
|
|
704
616
|
}
|
|
705
|
-
function
|
|
617
|
+
function Yr(e) {
|
|
706
618
|
return Array.isArray(e) ? [] : {};
|
|
707
619
|
}
|
|
708
|
-
function
|
|
709
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
620
|
+
function ce(e, t) {
|
|
621
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee(Yr(e), e, t) : e;
|
|
710
622
|
}
|
|
711
|
-
function
|
|
623
|
+
function Kr(e, t, r) {
|
|
712
624
|
return e.concat(t).map(function(n) {
|
|
713
|
-
return
|
|
625
|
+
return ce(n, r);
|
|
714
626
|
});
|
|
715
627
|
}
|
|
716
|
-
function
|
|
628
|
+
function en(e, t) {
|
|
717
629
|
if (!t.customMerge)
|
|
718
|
-
return
|
|
630
|
+
return ee;
|
|
719
631
|
var r = t.customMerge(e);
|
|
720
|
-
return typeof r == "function" ? r :
|
|
632
|
+
return typeof r == "function" ? r : ee;
|
|
721
633
|
}
|
|
722
|
-
function
|
|
634
|
+
function tn(e) {
|
|
723
635
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
724
636
|
return Object.propertyIsEnumerable.call(e, t);
|
|
725
637
|
}) : [];
|
|
726
638
|
}
|
|
727
639
|
function ft(e) {
|
|
728
|
-
return Object.keys(e).concat(
|
|
640
|
+
return Object.keys(e).concat(tn(e));
|
|
729
641
|
}
|
|
730
642
|
function Lt(e, t) {
|
|
731
643
|
try {
|
|
@@ -734,33 +646,75 @@ function Lt(e, t) {
|
|
|
734
646
|
return !1;
|
|
735
647
|
}
|
|
736
648
|
}
|
|
737
|
-
function
|
|
649
|
+
function rn(e, t) {
|
|
738
650
|
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
739
651
|
}
|
|
740
|
-
function
|
|
652
|
+
function nn(e, t, r) {
|
|
741
653
|
var n = {};
|
|
742
654
|
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
743
|
-
n[i] =
|
|
655
|
+
n[i] = ce(e[i], r);
|
|
744
656
|
}), ft(t).forEach(function(i) {
|
|
745
|
-
|
|
657
|
+
rn(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
746
658
|
}), n;
|
|
747
659
|
}
|
|
748
|
-
function
|
|
749
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
660
|
+
function ee(e, t, r) {
|
|
661
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = ce;
|
|
750
662
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
751
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
663
|
+
return s ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ce(t, r);
|
|
752
664
|
}
|
|
753
|
-
|
|
665
|
+
ee.all = function(t, r) {
|
|
754
666
|
if (!Array.isArray(t))
|
|
755
667
|
throw new Error("first argument should be an array");
|
|
756
668
|
return t.reduce(function(n, i) {
|
|
757
|
-
return
|
|
669
|
+
return ee(n, i, r);
|
|
758
670
|
}, {});
|
|
759
671
|
};
|
|
760
|
-
var
|
|
761
|
-
const
|
|
762
|
-
function
|
|
763
|
-
|
|
672
|
+
var sn = ee, an = sn;
|
|
673
|
+
const on = /* @__PURE__ */ zr(an);
|
|
674
|
+
var Je = function(e, t) {
|
|
675
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
676
|
+
r.__proto__ = n;
|
|
677
|
+
} || function(r, n) {
|
|
678
|
+
for (var i in n)
|
|
679
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
680
|
+
}, Je(e, t);
|
|
681
|
+
};
|
|
682
|
+
function He(e, t) {
|
|
683
|
+
if (typeof t != "function" && t !== null)
|
|
684
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
685
|
+
Je(e, t);
|
|
686
|
+
function r() {
|
|
687
|
+
this.constructor = e;
|
|
688
|
+
}
|
|
689
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
690
|
+
}
|
|
691
|
+
var j = function() {
|
|
692
|
+
return j = Object.assign || function(t) {
|
|
693
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
694
|
+
r = arguments[n];
|
|
695
|
+
for (var s in r)
|
|
696
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
697
|
+
}
|
|
698
|
+
return t;
|
|
699
|
+
}, j.apply(this, arguments);
|
|
700
|
+
};
|
|
701
|
+
function un(e, t) {
|
|
702
|
+
var r = {};
|
|
703
|
+
for (var n in e)
|
|
704
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
705
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
706
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
707
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
708
|
+
return r;
|
|
709
|
+
}
|
|
710
|
+
function Re(e, t, r) {
|
|
711
|
+
if (r || arguments.length === 2)
|
|
712
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
713
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
714
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
715
|
+
}
|
|
716
|
+
function Le(e, t) {
|
|
717
|
+
var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : cn;
|
|
764
718
|
return i(e, {
|
|
765
719
|
cache: r,
|
|
766
720
|
serializer: n
|
|
@@ -769,95 +723,103 @@ function Me(e, t) {
|
|
|
769
723
|
function ln(e) {
|
|
770
724
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
771
725
|
}
|
|
772
|
-
function
|
|
726
|
+
function hn(e, t, r, n) {
|
|
773
727
|
var i = ln(n) ? n : r(n), s = t.get(i);
|
|
774
728
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
775
729
|
}
|
|
776
|
-
function
|
|
730
|
+
function Dt(e, t, r) {
|
|
777
731
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
778
732
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
779
733
|
}
|
|
780
|
-
function
|
|
734
|
+
function kt(e, t, r, n, i) {
|
|
781
735
|
return r.bind(t, e, n, i);
|
|
782
736
|
}
|
|
783
|
-
function hn(e, t) {
|
|
784
|
-
var r = e.length === 1 ? Dt : kt;
|
|
785
|
-
return Ke(e, this, r, t.cache.create(), t.serializer);
|
|
786
|
-
}
|
|
787
737
|
function cn(e, t) {
|
|
788
|
-
|
|
738
|
+
var r = e.length === 1 ? hn : Dt;
|
|
739
|
+
return kt(e, this, r, t.cache.create(), t.serializer);
|
|
789
740
|
}
|
|
790
741
|
function fn(e, t) {
|
|
791
|
-
return
|
|
742
|
+
return kt(e, this, Dt, t.cache.create(), t.serializer);
|
|
792
743
|
}
|
|
793
744
|
var mn = function() {
|
|
794
745
|
return JSON.stringify(arguments);
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
746
|
+
}, dn = (
|
|
747
|
+
/** @class */
|
|
748
|
+
function() {
|
|
749
|
+
function e() {
|
|
750
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
751
|
+
}
|
|
752
|
+
return e.prototype.get = function(t) {
|
|
753
|
+
return this.cache[t];
|
|
754
|
+
}, e.prototype.set = function(t, r) {
|
|
755
|
+
this.cache[t] = r;
|
|
756
|
+
}, e;
|
|
757
|
+
}()
|
|
758
|
+
), bn = {
|
|
806
759
|
create: function() {
|
|
807
|
-
return new
|
|
760
|
+
return new dn();
|
|
808
761
|
}
|
|
809
|
-
},
|
|
810
|
-
variadic:
|
|
811
|
-
|
|
812
|
-
|
|
762
|
+
}, De = {
|
|
763
|
+
variadic: fn
|
|
764
|
+
}, xe = function() {
|
|
765
|
+
return xe = Object.assign || function(t) {
|
|
766
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
767
|
+
r = arguments[n];
|
|
768
|
+
for (var s in r)
|
|
769
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
770
|
+
}
|
|
771
|
+
return t;
|
|
772
|
+
}, xe.apply(this, arguments);
|
|
773
|
+
};
|
|
774
|
+
var _;
|
|
813
775
|
(function(e) {
|
|
814
776
|
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";
|
|
815
777
|
})(_ || (_ = {}));
|
|
816
|
-
var
|
|
778
|
+
var T;
|
|
817
779
|
(function(e) {
|
|
818
780
|
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";
|
|
819
|
-
})(
|
|
820
|
-
var
|
|
781
|
+
})(T || (T = {}));
|
|
782
|
+
var te;
|
|
821
783
|
(function(e) {
|
|
822
784
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
823
|
-
})(
|
|
785
|
+
})(te || (te = {}));
|
|
824
786
|
function mt(e) {
|
|
825
|
-
return e.type ===
|
|
787
|
+
return e.type === T.literal;
|
|
826
788
|
}
|
|
827
|
-
function
|
|
828
|
-
return e.type ===
|
|
789
|
+
function gn(e) {
|
|
790
|
+
return e.type === T.argument;
|
|
829
791
|
}
|
|
830
792
|
function Ut(e) {
|
|
831
|
-
return e.type ===
|
|
793
|
+
return e.type === T.number;
|
|
832
794
|
}
|
|
833
795
|
function Ft(e) {
|
|
834
|
-
return e.type ===
|
|
796
|
+
return e.type === T.date;
|
|
835
797
|
}
|
|
836
798
|
function Gt(e) {
|
|
837
|
-
return e.type ===
|
|
799
|
+
return e.type === T.time;
|
|
838
800
|
}
|
|
839
801
|
function $t(e) {
|
|
840
|
-
return e.type ===
|
|
802
|
+
return e.type === T.select;
|
|
841
803
|
}
|
|
842
804
|
function jt(e) {
|
|
843
|
-
return e.type ===
|
|
805
|
+
return e.type === T.plural;
|
|
844
806
|
}
|
|
845
|
-
function
|
|
846
|
-
return e.type ===
|
|
807
|
+
function pn(e) {
|
|
808
|
+
return e.type === T.pound;
|
|
847
809
|
}
|
|
848
810
|
function Vt(e) {
|
|
849
|
-
return e.type ===
|
|
811
|
+
return e.type === T.tag;
|
|
850
812
|
}
|
|
851
813
|
function zt(e) {
|
|
852
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
814
|
+
return !!(e && typeof e == "object" && e.type === te.number);
|
|
853
815
|
}
|
|
854
|
-
function
|
|
855
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
816
|
+
function We(e) {
|
|
817
|
+
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
856
818
|
}
|
|
857
|
-
var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
858
|
-
function
|
|
819
|
+
var Jt = /[ \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;
|
|
820
|
+
function _n(e) {
|
|
859
821
|
var t = {};
|
|
860
|
-
return e.replace(
|
|
822
|
+
return e.replace(yn, function(r) {
|
|
861
823
|
var n = r.length;
|
|
862
824
|
switch (r[0]) {
|
|
863
825
|
case "G":
|
|
@@ -946,11 +908,21 @@ function yn(e) {
|
|
|
946
908
|
return "";
|
|
947
909
|
}), t;
|
|
948
910
|
}
|
|
949
|
-
var
|
|
911
|
+
var A = function() {
|
|
912
|
+
return A = Object.assign || function(t) {
|
|
913
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
914
|
+
r = arguments[n];
|
|
915
|
+
for (var s in r)
|
|
916
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
917
|
+
}
|
|
918
|
+
return t;
|
|
919
|
+
}, A.apply(this, arguments);
|
|
920
|
+
};
|
|
921
|
+
var En = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
950
922
|
function vn(e) {
|
|
951
923
|
if (e.length === 0)
|
|
952
924
|
throw new Error("Number skeleton cannot be empty");
|
|
953
|
-
for (var t = e.split(
|
|
925
|
+
for (var t = e.split(En).filter(function(f) {
|
|
954
926
|
return f.length > 0;
|
|
955
927
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
956
928
|
var s = i[n], a = s.split("/");
|
|
@@ -965,10 +937,10 @@ function vn(e) {
|
|
|
965
937
|
}
|
|
966
938
|
return r;
|
|
967
939
|
}
|
|
968
|
-
function
|
|
940
|
+
function xn(e) {
|
|
969
941
|
return e.replace(/^(.*?)-/, "");
|
|
970
942
|
}
|
|
971
|
-
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
943
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
|
|
972
944
|
function bt(e) {
|
|
973
945
|
var t = {};
|
|
974
946
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wt, function(r, n, i) {
|
|
@@ -1015,7 +987,7 @@ function Zt(e) {
|
|
|
1015
987
|
};
|
|
1016
988
|
}
|
|
1017
989
|
}
|
|
1018
|
-
function
|
|
990
|
+
function Tn(e) {
|
|
1019
991
|
var t;
|
|
1020
992
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1021
993
|
notation: "engineering"
|
|
@@ -1033,7 +1005,7 @@ function gt(e) {
|
|
|
1033
1005
|
var t = {}, r = Zt(e);
|
|
1034
1006
|
return r || t;
|
|
1035
1007
|
}
|
|
1036
|
-
function
|
|
1008
|
+
function An(e) {
|
|
1037
1009
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1038
1010
|
var i = n[r];
|
|
1039
1011
|
switch (i.stem) {
|
|
@@ -1057,7 +1029,7 @@ function Tn(e) {
|
|
|
1057
1029
|
continue;
|
|
1058
1030
|
case "measure-unit":
|
|
1059
1031
|
case "unit":
|
|
1060
|
-
t.style = "unit", t.unit =
|
|
1032
|
+
t.style = "unit", t.unit = xn(i.options[0]);
|
|
1061
1033
|
continue;
|
|
1062
1034
|
case "compact-short":
|
|
1063
1035
|
case "K":
|
|
@@ -1068,13 +1040,13 @@ function Tn(e) {
|
|
|
1068
1040
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1069
1041
|
continue;
|
|
1070
1042
|
case "scientific":
|
|
1071
|
-
t =
|
|
1072
|
-
return
|
|
1043
|
+
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1044
|
+
return A(A({}, l), gt(u));
|
|
1073
1045
|
}, {}));
|
|
1074
1046
|
continue;
|
|
1075
1047
|
case "engineering":
|
|
1076
|
-
t =
|
|
1077
|
-
return
|
|
1048
|
+
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1049
|
+
return A(A({}, l), gt(u));
|
|
1078
1050
|
}, {}));
|
|
1079
1051
|
continue;
|
|
1080
1052
|
case "notation-simple":
|
|
@@ -1119,13 +1091,13 @@ function Tn(e) {
|
|
|
1119
1091
|
case "integer-width":
|
|
1120
1092
|
if (i.options.length > 1)
|
|
1121
1093
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1122
|
-
i.options[0].replace(
|
|
1094
|
+
i.options[0].replace(Sn, function(l, u, h, c, f, E) {
|
|
1123
1095
|
if (u)
|
|
1124
1096
|
t.minimumIntegerDigits = h.length;
|
|
1125
1097
|
else {
|
|
1126
1098
|
if (c && f)
|
|
1127
1099
|
throw new Error("We currently do not support maximum integer digits");
|
|
1128
|
-
if (
|
|
1100
|
+
if (E)
|
|
1129
1101
|
throw new Error("We currently do not support exact integer digits");
|
|
1130
1102
|
}
|
|
1131
1103
|
return "";
|
|
@@ -1139,25 +1111,25 @@ function Tn(e) {
|
|
|
1139
1111
|
if (dt.test(i.stem)) {
|
|
1140
1112
|
if (i.options.length > 1)
|
|
1141
1113
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1142
|
-
i.stem.replace(dt, function(l, u, h, c, f,
|
|
1143
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1114
|
+
i.stem.replace(dt, function(l, u, h, c, f, E) {
|
|
1115
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && E ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1144
1116
|
});
|
|
1145
1117
|
var s = i.options[0];
|
|
1146
|
-
s === "w" ? t =
|
|
1118
|
+
s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t), bt(s)));
|
|
1147
1119
|
continue;
|
|
1148
1120
|
}
|
|
1149
1121
|
if (Wt.test(i.stem)) {
|
|
1150
|
-
t =
|
|
1122
|
+
t = A(A({}, t), bt(i.stem));
|
|
1151
1123
|
continue;
|
|
1152
1124
|
}
|
|
1153
1125
|
var a = Zt(i.stem);
|
|
1154
|
-
a && (t =
|
|
1155
|
-
var o =
|
|
1156
|
-
o && (t =
|
|
1126
|
+
a && (t = A(A({}, t), a));
|
|
1127
|
+
var o = Tn(i.stem);
|
|
1128
|
+
o && (t = A(A({}, t), o));
|
|
1157
1129
|
}
|
|
1158
1130
|
return t;
|
|
1159
1131
|
}
|
|
1160
|
-
var
|
|
1132
|
+
var ye = {
|
|
1161
1133
|
"001": [
|
|
1162
1134
|
"H",
|
|
1163
1135
|
"h"
|
|
@@ -2572,13 +2544,13 @@ var pe = {
|
|
|
2572
2544
|
"h"
|
|
2573
2545
|
]
|
|
2574
2546
|
};
|
|
2575
|
-
function
|
|
2547
|
+
function Hn(e, t) {
|
|
2576
2548
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2577
2549
|
var i = e.charAt(n);
|
|
2578
2550
|
if (i === "j") {
|
|
2579
2551
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2580
2552
|
s++, n++;
|
|
2581
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2553
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Cn(t);
|
|
2582
2554
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2583
2555
|
r += l;
|
|
2584
2556
|
for (; a-- > 0; )
|
|
@@ -2588,7 +2560,7 @@ function An(e, t) {
|
|
|
2588
2560
|
}
|
|
2589
2561
|
return r;
|
|
2590
2562
|
}
|
|
2591
|
-
function
|
|
2563
|
+
function Cn(e) {
|
|
2592
2564
|
var t = e.hourCycle;
|
|
2593
2565
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2594
2566
|
e.hourCycles && // @ts-ignore
|
|
@@ -2607,23 +2579,23 @@ function Hn(e) {
|
|
|
2607
2579
|
}
|
|
2608
2580
|
var r = e.language, n;
|
|
2609
2581
|
r !== "root" && (n = e.maximize().region);
|
|
2610
|
-
var i =
|
|
2582
|
+
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
2611
2583
|
return i[0];
|
|
2612
2584
|
}
|
|
2613
|
-
var
|
|
2614
|
-
function
|
|
2585
|
+
var ke, Bn = new RegExp("^".concat(Jt.source, "*")), wn = new RegExp("".concat(Jt.source, "*$"));
|
|
2586
|
+
function v(e, t) {
|
|
2615
2587
|
return { start: e, end: t };
|
|
2616
2588
|
}
|
|
2617
|
-
var
|
|
2589
|
+
var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, Nn = !!Object.fromEntries, In = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Ln = !!Number.isSafeInteger, Dn = Ln ? Number.isSafeInteger : function(e) {
|
|
2618
2590
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2619
|
-
},
|
|
2591
|
+
}, Xe = !0;
|
|
2620
2592
|
try {
|
|
2621
|
-
var
|
|
2622
|
-
|
|
2593
|
+
var kn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2594
|
+
Xe = ((ke = kn.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
|
|
2623
2595
|
} catch (e) {
|
|
2624
|
-
|
|
2596
|
+
Xe = !1;
|
|
2625
2597
|
}
|
|
2626
|
-
var pt =
|
|
2598
|
+
var pt = On ? (
|
|
2627
2599
|
// Native
|
|
2628
2600
|
function(t, r, n) {
|
|
2629
2601
|
return t.startsWith(r, n);
|
|
@@ -2633,7 +2605,7 @@ var pt = wn ? (
|
|
|
2633
2605
|
function(t, r, n) {
|
|
2634
2606
|
return t.slice(n, n + r.length) === r;
|
|
2635
2607
|
}
|
|
2636
|
-
),
|
|
2608
|
+
), Ze = Pn ? String.fromCodePoint : (
|
|
2637
2609
|
// IE11
|
|
2638
2610
|
function() {
|
|
2639
2611
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2647,7 +2619,7 @@ var pt = wn ? (
|
|
|
2647
2619
|
}
|
|
2648
2620
|
), yt = (
|
|
2649
2621
|
// native
|
|
2650
|
-
|
|
2622
|
+
Nn ? Object.fromEntries : (
|
|
2651
2623
|
// Ponyfill
|
|
2652
2624
|
function(t) {
|
|
2653
2625
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2657,7 +2629,7 @@ var pt = wn ? (
|
|
|
2657
2629
|
return r;
|
|
2658
2630
|
}
|
|
2659
2631
|
)
|
|
2660
|
-
), qt =
|
|
2632
|
+
), qt = In ? (
|
|
2661
2633
|
// Native
|
|
2662
2634
|
function(t, r) {
|
|
2663
2635
|
return t.codePointAt(r);
|
|
@@ -2671,7 +2643,7 @@ var pt = wn ? (
|
|
|
2671
2643
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2672
2644
|
}
|
|
2673
2645
|
}
|
|
2674
|
-
),
|
|
2646
|
+
), Un = Mn ? (
|
|
2675
2647
|
// Native
|
|
2676
2648
|
function(t) {
|
|
2677
2649
|
return t.trimStart();
|
|
@@ -2679,9 +2651,9 @@ var pt = wn ? (
|
|
|
2679
2651
|
) : (
|
|
2680
2652
|
// Ponyfill
|
|
2681
2653
|
function(t) {
|
|
2682
|
-
return t.replace(
|
|
2654
|
+
return t.replace(Bn, "");
|
|
2683
2655
|
}
|
|
2684
|
-
),
|
|
2656
|
+
), Fn = Rn ? (
|
|
2685
2657
|
// Native
|
|
2686
2658
|
function(t) {
|
|
2687
2659
|
return t.trimEnd();
|
|
@@ -2689,32 +2661,32 @@ var pt = wn ? (
|
|
|
2689
2661
|
) : (
|
|
2690
2662
|
// Ponyfill
|
|
2691
2663
|
function(t) {
|
|
2692
|
-
return t.replace(
|
|
2664
|
+
return t.replace(wn, "");
|
|
2693
2665
|
}
|
|
2694
2666
|
);
|
|
2695
2667
|
function Qt(e, t) {
|
|
2696
2668
|
return new RegExp(e, t);
|
|
2697
2669
|
}
|
|
2698
|
-
var
|
|
2699
|
-
if (
|
|
2670
|
+
var qe;
|
|
2671
|
+
if (Xe) {
|
|
2700
2672
|
var _t = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2701
|
-
|
|
2673
|
+
qe = function(t, r) {
|
|
2702
2674
|
var n;
|
|
2703
2675
|
_t.lastIndex = r;
|
|
2704
2676
|
var i = _t.exec(t);
|
|
2705
2677
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2706
2678
|
};
|
|
2707
2679
|
} else
|
|
2708
|
-
|
|
2680
|
+
qe = function(t, r) {
|
|
2709
2681
|
for (var n = []; ; ) {
|
|
2710
2682
|
var i = qt(t, r);
|
|
2711
|
-
if (i === void 0 || Yt(i) ||
|
|
2683
|
+
if (i === void 0 || Yt(i) || Vn(i))
|
|
2712
2684
|
break;
|
|
2713
2685
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2714
2686
|
}
|
|
2715
|
-
return
|
|
2687
|
+
return Ze.apply(void 0, n);
|
|
2716
2688
|
};
|
|
2717
|
-
var
|
|
2689
|
+
var Gn = (
|
|
2718
2690
|
/** @class */
|
|
2719
2691
|
function() {
|
|
2720
2692
|
function e(t, r) {
|
|
@@ -2738,14 +2710,14 @@ var Fn = (
|
|
|
2738
2710
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2739
2711
|
var o = this.clonePosition();
|
|
2740
2712
|
this.bump(), i.push({
|
|
2741
|
-
type:
|
|
2742
|
-
location:
|
|
2713
|
+
type: T.pound,
|
|
2714
|
+
location: v(o, this.clonePosition())
|
|
2743
2715
|
});
|
|
2744
2716
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2745
2717
|
if (n)
|
|
2746
2718
|
break;
|
|
2747
|
-
return this.error(_.UNMATCHED_CLOSING_TAG,
|
|
2748
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2719
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
2720
|
+
} else if (s === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
|
|
2749
2721
|
var a = this.parseTag(t, r);
|
|
2750
2722
|
if (a.err)
|
|
2751
2723
|
return a;
|
|
@@ -2766,9 +2738,9 @@ var Fn = (
|
|
|
2766
2738
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2767
2739
|
return {
|
|
2768
2740
|
val: {
|
|
2769
|
-
type:
|
|
2741
|
+
type: T.literal,
|
|
2770
2742
|
value: "<".concat(i, "/>"),
|
|
2771
|
-
location:
|
|
2743
|
+
location: v(n, this.clonePosition())
|
|
2772
2744
|
},
|
|
2773
2745
|
err: null
|
|
2774
2746
|
};
|
|
@@ -2778,25 +2750,25 @@ var Fn = (
|
|
|
2778
2750
|
return s;
|
|
2779
2751
|
var a = s.val, o = this.clonePosition();
|
|
2780
2752
|
if (this.bumpIf("</")) {
|
|
2781
|
-
if (this.isEOF() || !
|
|
2782
|
-
return this.error(_.INVALID_TAG,
|
|
2753
|
+
if (this.isEOF() || !Qe(this.char()))
|
|
2754
|
+
return this.error(_.INVALID_TAG, v(o, this.clonePosition()));
|
|
2783
2755
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2784
|
-
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG,
|
|
2756
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2785
2757
|
val: {
|
|
2786
|
-
type:
|
|
2758
|
+
type: T.tag,
|
|
2787
2759
|
value: i,
|
|
2788
2760
|
children: a,
|
|
2789
|
-
location:
|
|
2761
|
+
location: v(n, this.clonePosition())
|
|
2790
2762
|
},
|
|
2791
2763
|
err: null
|
|
2792
|
-
} : this.error(_.INVALID_TAG,
|
|
2764
|
+
} : this.error(_.INVALID_TAG, v(o, this.clonePosition())));
|
|
2793
2765
|
} else
|
|
2794
|
-
return this.error(_.UNCLOSED_TAG,
|
|
2766
|
+
return this.error(_.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
2795
2767
|
} else
|
|
2796
|
-
return this.error(_.INVALID_TAG,
|
|
2768
|
+
return this.error(_.INVALID_TAG, v(n, this.clonePosition()));
|
|
2797
2769
|
}, e.prototype.parseTagName = function() {
|
|
2798
2770
|
var t = this.offset();
|
|
2799
|
-
for (this.bump(); !this.isEOF() &&
|
|
2771
|
+
for (this.bump(); !this.isEOF() && jn(this.char()); )
|
|
2800
2772
|
this.bump();
|
|
2801
2773
|
return this.message.slice(t, this.offset());
|
|
2802
2774
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2818,14 +2790,14 @@ var Fn = (
|
|
|
2818
2790
|
}
|
|
2819
2791
|
break;
|
|
2820
2792
|
}
|
|
2821
|
-
var l =
|
|
2793
|
+
var l = v(n, this.clonePosition());
|
|
2822
2794
|
return {
|
|
2823
|
-
val: { type:
|
|
2795
|
+
val: { type: T.literal, value: i, location: l },
|
|
2824
2796
|
err: null
|
|
2825
2797
|
};
|
|
2826
2798
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2827
2799
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2828
|
-
|
|
2800
|
+
!$n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2829
2801
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2830
2802
|
if (this.isEOF() || this.char() !== 39)
|
|
2831
2803
|
return null;
|
|
@@ -2859,49 +2831,49 @@ var Fn = (
|
|
|
2859
2831
|
r.push(n);
|
|
2860
2832
|
this.bump();
|
|
2861
2833
|
}
|
|
2862
|
-
return
|
|
2834
|
+
return Ze.apply(void 0, r);
|
|
2863
2835
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2864
2836
|
if (this.isEOF())
|
|
2865
2837
|
return null;
|
|
2866
2838
|
var n = this.char();
|
|
2867
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2839
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
|
|
2868
2840
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2869
2841
|
var n = this.clonePosition();
|
|
2870
2842
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2871
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2843
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2872
2844
|
if (this.char() === 125)
|
|
2873
|
-
return this.bump(), this.error(_.EMPTY_ARGUMENT,
|
|
2845
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
2874
2846
|
var i = this.parseIdentifierIfPossible().value;
|
|
2875
2847
|
if (!i)
|
|
2876
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
2848
|
+
return this.error(_.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2877
2849
|
if (this.bumpSpace(), this.isEOF())
|
|
2878
|
-
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2850
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
2879
2851
|
switch (this.char()) {
|
|
2880
2852
|
case 125:
|
|
2881
2853
|
return this.bump(), {
|
|
2882
2854
|
val: {
|
|
2883
|
-
type:
|
|
2855
|
+
type: T.argument,
|
|
2884
2856
|
// value does not include the opening and closing braces.
|
|
2885
2857
|
value: i,
|
|
2886
|
-
location:
|
|
2858
|
+
location: v(n, this.clonePosition())
|
|
2887
2859
|
},
|
|
2888
2860
|
err: null
|
|
2889
2861
|
};
|
|
2890
2862
|
case 44:
|
|
2891
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2863
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2892
2864
|
default:
|
|
2893
|
-
return this.error(_.MALFORMED_ARGUMENT,
|
|
2865
|
+
return this.error(_.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
2894
2866
|
}
|
|
2895
2867
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2896
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2868
|
+
var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
|
|
2897
2869
|
this.bumpTo(i);
|
|
2898
|
-
var s = this.clonePosition(), a =
|
|
2870
|
+
var s = this.clonePosition(), a = v(t, s);
|
|
2899
2871
|
return { value: n, location: a };
|
|
2900
2872
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2901
2873
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2902
2874
|
switch (o) {
|
|
2903
2875
|
case "":
|
|
2904
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE,
|
|
2876
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, v(a, l));
|
|
2905
2877
|
case "number":
|
|
2906
2878
|
case "date":
|
|
2907
2879
|
case "time": {
|
|
@@ -2912,44 +2884,44 @@ var Fn = (
|
|
|
2912
2884
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2913
2885
|
if (c.err)
|
|
2914
2886
|
return c;
|
|
2915
|
-
var f =
|
|
2887
|
+
var f = Fn(c.val);
|
|
2916
2888
|
if (f.length === 0)
|
|
2917
|
-
return this.error(_.EXPECT_ARGUMENT_STYLE,
|
|
2918
|
-
var
|
|
2919
|
-
u = { style: f, styleLocation:
|
|
2889
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
2890
|
+
var E = v(h, this.clonePosition());
|
|
2891
|
+
u = { style: f, styleLocation: E };
|
|
2920
2892
|
}
|
|
2921
2893
|
var d = this.tryParseArgumentClose(i);
|
|
2922
2894
|
if (d.err)
|
|
2923
2895
|
return d;
|
|
2924
|
-
var b =
|
|
2896
|
+
var b = v(i, this.clonePosition());
|
|
2925
2897
|
if (u && pt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2926
|
-
var g =
|
|
2898
|
+
var g = Un(u.style.slice(2));
|
|
2927
2899
|
if (o === "number") {
|
|
2928
2900
|
var c = this.parseNumberSkeletonFromString(g, u.styleLocation);
|
|
2929
2901
|
return c.err ? c : {
|
|
2930
|
-
val: { type:
|
|
2902
|
+
val: { type: T.number, value: n, location: b, style: c.val },
|
|
2931
2903
|
err: null
|
|
2932
2904
|
};
|
|
2933
2905
|
} else {
|
|
2934
2906
|
if (g.length === 0)
|
|
2935
2907
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, b);
|
|
2936
2908
|
var p = g;
|
|
2937
|
-
this.locale && (p =
|
|
2909
|
+
this.locale && (p = Hn(g, this.locale));
|
|
2938
2910
|
var f = {
|
|
2939
|
-
type:
|
|
2911
|
+
type: te.dateTime,
|
|
2940
2912
|
pattern: p,
|
|
2941
2913
|
location: u.styleLocation,
|
|
2942
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2943
|
-
},
|
|
2914
|
+
parsedOptions: this.shouldParseSkeletons ? _n(p) : {}
|
|
2915
|
+
}, S = o === "date" ? T.date : T.time;
|
|
2944
2916
|
return {
|
|
2945
|
-
val: { type:
|
|
2917
|
+
val: { type: S, value: n, location: b, style: f },
|
|
2946
2918
|
err: null
|
|
2947
2919
|
};
|
|
2948
2920
|
}
|
|
2949
2921
|
}
|
|
2950
2922
|
return {
|
|
2951
2923
|
val: {
|
|
2952
|
-
type: o === "number" ?
|
|
2924
|
+
type: o === "number" ? T.number : o === "date" ? T.date : T.time,
|
|
2953
2925
|
value: n,
|
|
2954
2926
|
location: b,
|
|
2955
2927
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2960,14 +2932,14 @@ var Fn = (
|
|
|
2960
2932
|
case "plural":
|
|
2961
2933
|
case "selectordinal":
|
|
2962
2934
|
case "select": {
|
|
2963
|
-
var
|
|
2935
|
+
var O = this.clonePosition();
|
|
2964
2936
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2965
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2937
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, v(O, xe({}, O)));
|
|
2966
2938
|
this.bumpSpace();
|
|
2967
2939
|
var H = this.parseIdentifierIfPossible(), C = 0;
|
|
2968
2940
|
if (o !== "select" && H.value === "offset") {
|
|
2969
2941
|
if (!this.bumpIf(":"))
|
|
2970
|
-
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2942
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
2971
2943
|
this.bumpSpace();
|
|
2972
2944
|
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2973
2945
|
if (c.err)
|
|
@@ -2980,10 +2952,10 @@ var Fn = (
|
|
|
2980
2952
|
var d = this.tryParseArgumentClose(i);
|
|
2981
2953
|
if (d.err)
|
|
2982
2954
|
return d;
|
|
2983
|
-
var D =
|
|
2955
|
+
var D = v(i, this.clonePosition());
|
|
2984
2956
|
return o === "select" ? {
|
|
2985
2957
|
val: {
|
|
2986
|
-
type:
|
|
2958
|
+
type: T.select,
|
|
2987
2959
|
value: n,
|
|
2988
2960
|
options: yt(F.val),
|
|
2989
2961
|
location: D
|
|
@@ -2991,7 +2963,7 @@ var Fn = (
|
|
|
2991
2963
|
err: null
|
|
2992
2964
|
} : {
|
|
2993
2965
|
val: {
|
|
2994
|
-
type:
|
|
2966
|
+
type: T.plural,
|
|
2995
2967
|
value: n,
|
|
2996
2968
|
options: yt(F.val),
|
|
2997
2969
|
offset: C,
|
|
@@ -3002,10 +2974,10 @@ var Fn = (
|
|
|
3002
2974
|
};
|
|
3003
2975
|
}
|
|
3004
2976
|
default:
|
|
3005
|
-
return this.error(_.INVALID_ARGUMENT_TYPE,
|
|
2977
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, v(a, l));
|
|
3006
2978
|
}
|
|
3007
2979
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3008
|
-
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2980
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3009
2981
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3010
2982
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3011
2983
|
var n = this.char();
|
|
@@ -3014,7 +2986,7 @@ var Fn = (
|
|
|
3014
2986
|
this.bump();
|
|
3015
2987
|
var i = this.clonePosition();
|
|
3016
2988
|
if (!this.bumpUntil("'"))
|
|
3017
|
-
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2989
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3018
2990
|
this.bump();
|
|
3019
2991
|
break;
|
|
3020
2992
|
}
|
|
@@ -3050,10 +3022,10 @@ var Fn = (
|
|
|
3050
3022
|
}
|
|
3051
3023
|
return {
|
|
3052
3024
|
val: {
|
|
3053
|
-
type:
|
|
3025
|
+
type: te.number,
|
|
3054
3026
|
tokens: n,
|
|
3055
3027
|
location: r,
|
|
3056
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3028
|
+
parsedOptions: this.shouldParseSkeletons ? An(n) : {}
|
|
3057
3029
|
},
|
|
3058
3030
|
err: null
|
|
3059
3031
|
};
|
|
@@ -3065,31 +3037,31 @@ var Fn = (
|
|
|
3065
3037
|
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3066
3038
|
if (f.err)
|
|
3067
3039
|
return f;
|
|
3068
|
-
h =
|
|
3040
|
+
h = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3069
3041
|
} else
|
|
3070
3042
|
break;
|
|
3071
3043
|
}
|
|
3072
3044
|
if (l.has(u))
|
|
3073
3045
|
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3074
3046
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3075
|
-
var
|
|
3047
|
+
var E = this.clonePosition();
|
|
3076
3048
|
if (!this.bumpIf("{"))
|
|
3077
|
-
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3049
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3078
3050
|
var d = this.parseMessage(t + 1, r, n);
|
|
3079
3051
|
if (d.err)
|
|
3080
3052
|
return d;
|
|
3081
|
-
var b = this.tryParseArgumentClose(
|
|
3053
|
+
var b = this.tryParseArgumentClose(E);
|
|
3082
3054
|
if (b.err)
|
|
3083
3055
|
return b;
|
|
3084
3056
|
o.push([
|
|
3085
3057
|
u,
|
|
3086
3058
|
{
|
|
3087
3059
|
value: d.val,
|
|
3088
|
-
location: E
|
|
3060
|
+
location: v(E, this.clonePosition())
|
|
3089
3061
|
}
|
|
3090
3062
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3091
3063
|
}
|
|
3092
|
-
return o.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3064
|
+
return o.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3093
3065
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3094
3066
|
var n = 1, i = this.clonePosition();
|
|
3095
3067
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3100,8 +3072,8 @@ var Fn = (
|
|
|
3100
3072
|
else
|
|
3101
3073
|
break;
|
|
3102
3074
|
}
|
|
3103
|
-
var l =
|
|
3104
|
-
return s ? (a *= n,
|
|
3075
|
+
var l = v(i, this.clonePosition());
|
|
3076
|
+
return s ? (a *= n, Dn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3105
3077
|
}, e.prototype.offset = function() {
|
|
3106
3078
|
return this.position.offset;
|
|
3107
3079
|
}, e.prototype.isEOF = function() {
|
|
@@ -3167,47 +3139,47 @@ var Fn = (
|
|
|
3167
3139
|
}, e;
|
|
3168
3140
|
}()
|
|
3169
3141
|
);
|
|
3170
|
-
function
|
|
3142
|
+
function Qe(e) {
|
|
3171
3143
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3172
3144
|
}
|
|
3173
|
-
function Gn(e) {
|
|
3174
|
-
return Ze(e) || e === 47;
|
|
3175
|
-
}
|
|
3176
3145
|
function $n(e) {
|
|
3146
|
+
return Qe(e) || e === 47;
|
|
3147
|
+
}
|
|
3148
|
+
function jn(e) {
|
|
3177
3149
|
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;
|
|
3178
3150
|
}
|
|
3179
3151
|
function Yt(e) {
|
|
3180
3152
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3181
3153
|
}
|
|
3182
|
-
function
|
|
3154
|
+
function Vn(e) {
|
|
3183
3155
|
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;
|
|
3184
3156
|
}
|
|
3185
|
-
function
|
|
3157
|
+
function Ye(e) {
|
|
3186
3158
|
e.forEach(function(t) {
|
|
3187
3159
|
if (delete t.location, $t(t) || jt(t))
|
|
3188
3160
|
for (var r in t.options)
|
|
3189
|
-
delete t.options[r].location,
|
|
3161
|
+
delete t.options[r].location, Ye(t.options[r].value);
|
|
3190
3162
|
else
|
|
3191
|
-
Ut(t) && zt(t.style) || (Ft(t) || Gt(t)) &&
|
|
3163
|
+
Ut(t) && zt(t.style) || (Ft(t) || Gt(t)) && We(t.style) ? delete t.style.location : Vt(t) && Ye(t.children);
|
|
3192
3164
|
});
|
|
3193
3165
|
}
|
|
3194
|
-
function
|
|
3195
|
-
t === void 0 && (t = {}), t =
|
|
3196
|
-
var r = new
|
|
3166
|
+
function zn(e, t) {
|
|
3167
|
+
t === void 0 && (t = {}), t = xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3168
|
+
var r = new Gn(e, t).parse();
|
|
3197
3169
|
if (r.err) {
|
|
3198
3170
|
var n = SyntaxError(_[r.err.kind]);
|
|
3199
3171
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3200
3172
|
}
|
|
3201
|
-
return t != null && t.captureLocation ||
|
|
3173
|
+
return t != null && t.captureLocation || Ye(r.val), r.val;
|
|
3202
3174
|
}
|
|
3203
|
-
var
|
|
3175
|
+
var re;
|
|
3204
3176
|
(function(e) {
|
|
3205
3177
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3206
|
-
})(
|
|
3207
|
-
var
|
|
3178
|
+
})(re || (re = {}));
|
|
3179
|
+
var Ce = (
|
|
3208
3180
|
/** @class */
|
|
3209
3181
|
function(e) {
|
|
3210
|
-
|
|
3182
|
+
He(t, e);
|
|
3211
3183
|
function t(r, n, i) {
|
|
3212
3184
|
var s = e.call(this, r) || this;
|
|
3213
3185
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3216,51 +3188,51 @@ var Ae = (
|
|
|
3216
3188
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3217
3189
|
}, t;
|
|
3218
3190
|
}(Error)
|
|
3219
|
-
),
|
|
3191
|
+
), Et = (
|
|
3220
3192
|
/** @class */
|
|
3221
3193
|
function(e) {
|
|
3222
|
-
|
|
3194
|
+
He(t, e);
|
|
3223
3195
|
function t(r, n, i, s) {
|
|
3224
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3196
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, s) || this;
|
|
3225
3197
|
}
|
|
3226
3198
|
return t;
|
|
3227
|
-
}(
|
|
3228
|
-
),
|
|
3199
|
+
}(Ce)
|
|
3200
|
+
), Jn = (
|
|
3229
3201
|
/** @class */
|
|
3230
3202
|
function(e) {
|
|
3231
|
-
|
|
3203
|
+
He(t, e);
|
|
3232
3204
|
function t(r, n, i) {
|
|
3233
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3205
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
|
|
3234
3206
|
}
|
|
3235
3207
|
return t;
|
|
3236
|
-
}(
|
|
3237
|
-
),
|
|
3208
|
+
}(Ce)
|
|
3209
|
+
), Wn = (
|
|
3238
3210
|
/** @class */
|
|
3239
3211
|
function(e) {
|
|
3240
|
-
|
|
3212
|
+
He(t, e);
|
|
3241
3213
|
function t(r, n) {
|
|
3242
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3214
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
|
|
3243
3215
|
}
|
|
3244
3216
|
return t;
|
|
3245
|
-
}(
|
|
3246
|
-
),
|
|
3217
|
+
}(Ce)
|
|
3218
|
+
), I;
|
|
3247
3219
|
(function(e) {
|
|
3248
3220
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3249
|
-
})(
|
|
3250
|
-
function
|
|
3221
|
+
})(I || (I = {}));
|
|
3222
|
+
function Xn(e) {
|
|
3251
3223
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3252
3224
|
var n = t[t.length - 1];
|
|
3253
|
-
return !n || n.type !==
|
|
3225
|
+
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3254
3226
|
}, []);
|
|
3255
3227
|
}
|
|
3256
|
-
function
|
|
3228
|
+
function Zn(e) {
|
|
3257
3229
|
return typeof e == "function";
|
|
3258
3230
|
}
|
|
3259
|
-
function
|
|
3231
|
+
function Ee(e, t, r, n, i, s, a) {
|
|
3260
3232
|
if (e.length === 1 && mt(e[0]))
|
|
3261
3233
|
return [
|
|
3262
3234
|
{
|
|
3263
|
-
type:
|
|
3235
|
+
type: I.literal,
|
|
3264
3236
|
value: e[0].value
|
|
3265
3237
|
}
|
|
3266
3238
|
];
|
|
@@ -3268,103 +3240,103 @@ function _e(e, t, r, n, i, s, a) {
|
|
|
3268
3240
|
var h = u[l];
|
|
3269
3241
|
if (mt(h)) {
|
|
3270
3242
|
o.push({
|
|
3271
|
-
type:
|
|
3243
|
+
type: I.literal,
|
|
3272
3244
|
value: h.value
|
|
3273
3245
|
});
|
|
3274
3246
|
continue;
|
|
3275
3247
|
}
|
|
3276
|
-
if (
|
|
3248
|
+
if (pn(h)) {
|
|
3277
3249
|
typeof s == "number" && o.push({
|
|
3278
|
-
type:
|
|
3250
|
+
type: I.literal,
|
|
3279
3251
|
value: r.getNumberFormat(t).format(s)
|
|
3280
3252
|
});
|
|
3281
3253
|
continue;
|
|
3282
3254
|
}
|
|
3283
3255
|
var c = h.value;
|
|
3284
3256
|
if (!(i && c in i))
|
|
3285
|
-
throw new
|
|
3257
|
+
throw new Wn(c, a);
|
|
3286
3258
|
var f = i[c];
|
|
3287
|
-
if (
|
|
3259
|
+
if (gn(h)) {
|
|
3288
3260
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
|
3289
|
-
type: typeof f == "string" ?
|
|
3261
|
+
type: typeof f == "string" ? I.literal : I.object,
|
|
3290
3262
|
value: f
|
|
3291
3263
|
});
|
|
3292
3264
|
continue;
|
|
3293
3265
|
}
|
|
3294
3266
|
if (Ft(h)) {
|
|
3295
|
-
var
|
|
3267
|
+
var E = typeof h.style == "string" ? n.date[h.style] : We(h.style) ? h.style.parsedOptions : void 0;
|
|
3296
3268
|
o.push({
|
|
3297
|
-
type:
|
|
3298
|
-
value: r.getDateTimeFormat(t,
|
|
3269
|
+
type: I.literal,
|
|
3270
|
+
value: r.getDateTimeFormat(t, E).format(f)
|
|
3299
3271
|
});
|
|
3300
3272
|
continue;
|
|
3301
3273
|
}
|
|
3302
3274
|
if (Gt(h)) {
|
|
3303
|
-
var
|
|
3275
|
+
var E = typeof h.style == "string" ? n.time[h.style] : We(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3304
3276
|
o.push({
|
|
3305
|
-
type:
|
|
3306
|
-
value: r.getDateTimeFormat(t,
|
|
3277
|
+
type: I.literal,
|
|
3278
|
+
value: r.getDateTimeFormat(t, E).format(f)
|
|
3307
3279
|
});
|
|
3308
3280
|
continue;
|
|
3309
3281
|
}
|
|
3310
3282
|
if (Ut(h)) {
|
|
3311
|
-
var
|
|
3312
|
-
|
|
3313
|
-
type:
|
|
3314
|
-
value: r.getNumberFormat(t,
|
|
3283
|
+
var E = typeof h.style == "string" ? n.number[h.style] : zt(h.style) ? h.style.parsedOptions : void 0;
|
|
3284
|
+
E && E.scale && (f = f * (E.scale || 1)), o.push({
|
|
3285
|
+
type: I.literal,
|
|
3286
|
+
value: r.getNumberFormat(t, E).format(f)
|
|
3315
3287
|
});
|
|
3316
3288
|
continue;
|
|
3317
3289
|
}
|
|
3318
3290
|
if (Vt(h)) {
|
|
3319
3291
|
var d = h.children, b = h.value, g = i[b];
|
|
3320
|
-
if (!
|
|
3321
|
-
throw new
|
|
3322
|
-
var p =
|
|
3292
|
+
if (!Zn(g))
|
|
3293
|
+
throw new Jn(b, "function", a);
|
|
3294
|
+
var p = Ee(d, t, r, n, i, s), S = g(p.map(function(C) {
|
|
3323
3295
|
return C.value;
|
|
3324
3296
|
}));
|
|
3325
|
-
Array.isArray(
|
|
3297
|
+
Array.isArray(S) || (S = [S]), o.push.apply(o, S.map(function(C) {
|
|
3326
3298
|
return {
|
|
3327
|
-
type: typeof C == "string" ?
|
|
3299
|
+
type: typeof C == "string" ? I.literal : I.object,
|
|
3328
3300
|
value: C
|
|
3329
3301
|
};
|
|
3330
3302
|
}));
|
|
3331
3303
|
}
|
|
3332
3304
|
if ($t(h)) {
|
|
3333
|
-
var
|
|
3334
|
-
if (!
|
|
3335
|
-
throw new
|
|
3336
|
-
o.push.apply(o,
|
|
3305
|
+
var O = h.options[f] || h.options.other;
|
|
3306
|
+
if (!O)
|
|
3307
|
+
throw new Et(h.value, f, Object.keys(h.options), a);
|
|
3308
|
+
o.push.apply(o, Ee(O.value, t, r, n, i));
|
|
3337
3309
|
continue;
|
|
3338
3310
|
}
|
|
3339
3311
|
if (jt(h)) {
|
|
3340
|
-
var
|
|
3341
|
-
if (!
|
|
3312
|
+
var O = h.options["=".concat(f)];
|
|
3313
|
+
if (!O) {
|
|
3342
3314
|
if (!Intl.PluralRules)
|
|
3343
|
-
throw new
|
|
3315
|
+
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
3344
3316
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3345
|
-
`,
|
|
3317
|
+
`, re.MISSING_INTL_API, a);
|
|
3346
3318
|
var H = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3347
|
-
|
|
3319
|
+
O = h.options[H] || h.options.other;
|
|
3348
3320
|
}
|
|
3349
|
-
if (!
|
|
3350
|
-
throw new
|
|
3351
|
-
o.push.apply(o,
|
|
3321
|
+
if (!O)
|
|
3322
|
+
throw new Et(h.value, f, Object.keys(h.options), a);
|
|
3323
|
+
o.push.apply(o, Ee(O.value, t, r, n, i, f - (h.offset || 0)));
|
|
3352
3324
|
continue;
|
|
3353
3325
|
}
|
|
3354
3326
|
}
|
|
3355
|
-
return
|
|
3327
|
+
return Xn(o);
|
|
3356
3328
|
}
|
|
3357
|
-
function
|
|
3358
|
-
return t ?
|
|
3359
|
-
return r[n] =
|
|
3329
|
+
function qn(e, t) {
|
|
3330
|
+
return t ? j(j(j({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3331
|
+
return r[n] = j(j({}, e[n]), t[n] || {}), r;
|
|
3360
3332
|
}, {})) : e;
|
|
3361
3333
|
}
|
|
3362
|
-
function
|
|
3334
|
+
function Qn(e, t) {
|
|
3363
3335
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3364
|
-
return r[n] =
|
|
3365
|
-
},
|
|
3336
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3337
|
+
}, j({}, e)) : e;
|
|
3366
3338
|
}
|
|
3367
|
-
function
|
|
3339
|
+
function Ue(e) {
|
|
3368
3340
|
return {
|
|
3369
3341
|
create: function() {
|
|
3370
3342
|
return {
|
|
@@ -3378,39 +3350,39 @@ function De(e) {
|
|
|
3378
3350
|
}
|
|
3379
3351
|
};
|
|
3380
3352
|
}
|
|
3381
|
-
function
|
|
3353
|
+
function Yn(e) {
|
|
3382
3354
|
return e === void 0 && (e = {
|
|
3383
3355
|
number: {},
|
|
3384
3356
|
dateTime: {},
|
|
3385
3357
|
pluralRules: {}
|
|
3386
3358
|
}), {
|
|
3387
|
-
getNumberFormat:
|
|
3359
|
+
getNumberFormat: Le(function() {
|
|
3388
3360
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3389
3361
|
r[n] = arguments[n];
|
|
3390
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3362
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
3391
3363
|
}, {
|
|
3392
|
-
cache:
|
|
3393
|
-
strategy:
|
|
3364
|
+
cache: Ue(e.number),
|
|
3365
|
+
strategy: De.variadic
|
|
3394
3366
|
}),
|
|
3395
|
-
getDateTimeFormat:
|
|
3367
|
+
getDateTimeFormat: Le(function() {
|
|
3396
3368
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3397
3369
|
r[n] = arguments[n];
|
|
3398
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3370
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
|
|
3399
3371
|
}, {
|
|
3400
|
-
cache:
|
|
3401
|
-
strategy:
|
|
3372
|
+
cache: Ue(e.dateTime),
|
|
3373
|
+
strategy: De.variadic
|
|
3402
3374
|
}),
|
|
3403
|
-
getPluralRules:
|
|
3375
|
+
getPluralRules: Le(function() {
|
|
3404
3376
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3405
3377
|
r[n] = arguments[n];
|
|
3406
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3378
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
|
|
3407
3379
|
}, {
|
|
3408
|
-
cache:
|
|
3409
|
-
strategy:
|
|
3380
|
+
cache: Ue(e.pluralRules),
|
|
3381
|
+
strategy: De.variadic
|
|
3410
3382
|
})
|
|
3411
3383
|
};
|
|
3412
3384
|
}
|
|
3413
|
-
var
|
|
3385
|
+
var Kn = (
|
|
3414
3386
|
/** @class */
|
|
3415
3387
|
function() {
|
|
3416
3388
|
function e(t, r, n, i) {
|
|
@@ -3425,11 +3397,11 @@ var Yn = (
|
|
|
3425
3397
|
if (u.length === 1)
|
|
3426
3398
|
return u[0].value;
|
|
3427
3399
|
var h = u.reduce(function(c, f) {
|
|
3428
|
-
return !c.length || f.type !==
|
|
3400
|
+
return !c.length || f.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3429
3401
|
}, []);
|
|
3430
3402
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3431
3403
|
}, this.formatToParts = function(l) {
|
|
3432
|
-
return
|
|
3404
|
+
return Ee(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3433
3405
|
}, this.resolvedOptions = function() {
|
|
3434
3406
|
var l;
|
|
3435
3407
|
return {
|
|
@@ -3442,13 +3414,13 @@ var Yn = (
|
|
|
3442
3414
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3443
3415
|
var a = i || {};
|
|
3444
3416
|
a.formatters;
|
|
3445
|
-
var o =
|
|
3446
|
-
this.ast = e.__parse(t,
|
|
3417
|
+
var o = un(a, ["formatters"]);
|
|
3418
|
+
this.ast = e.__parse(t, j(j({}, o), { locale: this.resolvedLocale }));
|
|
3447
3419
|
} else
|
|
3448
3420
|
this.ast = t;
|
|
3449
3421
|
if (!Array.isArray(this.ast))
|
|
3450
3422
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3451
|
-
this.formats =
|
|
3423
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3452
3424
|
}
|
|
3453
3425
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3454
3426
|
get: function() {
|
|
@@ -3461,7 +3433,7 @@ var Yn = (
|
|
|
3461
3433
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3462
3434
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3463
3435
|
}
|
|
3464
|
-
}, e.__parse =
|
|
3436
|
+
}, e.__parse = zn, e.formats = {
|
|
3465
3437
|
number: {
|
|
3466
3438
|
integer: {
|
|
3467
3439
|
maximumFractionDigits: 0
|
|
@@ -3522,7 +3494,7 @@ var Yn = (
|
|
|
3522
3494
|
}, e;
|
|
3523
3495
|
}()
|
|
3524
3496
|
);
|
|
3525
|
-
function
|
|
3497
|
+
function ei(e, t) {
|
|
3526
3498
|
if (t == null)
|
|
3527
3499
|
return;
|
|
3528
3500
|
if (t in e)
|
|
@@ -3543,36 +3515,36 @@ function Kn(e, t) {
|
|
|
3543
3515
|
n = void 0;
|
|
3544
3516
|
return n;
|
|
3545
3517
|
}
|
|
3546
|
-
const
|
|
3518
|
+
const X = {}, ti = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), Kt = (e, t) => {
|
|
3547
3519
|
if (t == null)
|
|
3548
3520
|
return;
|
|
3549
|
-
if (t in
|
|
3550
|
-
return
|
|
3551
|
-
const r =
|
|
3521
|
+
if (t in X && e in X[t])
|
|
3522
|
+
return X[t][e];
|
|
3523
|
+
const r = Be(t);
|
|
3552
3524
|
for (let n = 0; n < r.length; n++) {
|
|
3553
|
-
const i = r[n], s =
|
|
3525
|
+
const i = r[n], s = ni(i, e);
|
|
3554
3526
|
if (s)
|
|
3555
|
-
return
|
|
3527
|
+
return ti(e, t, s);
|
|
3556
3528
|
}
|
|
3557
3529
|
};
|
|
3558
3530
|
let tt;
|
|
3559
|
-
const
|
|
3560
|
-
function
|
|
3531
|
+
const be = Ae({});
|
|
3532
|
+
function ri(e) {
|
|
3561
3533
|
return tt[e] || null;
|
|
3562
3534
|
}
|
|
3563
3535
|
function er(e) {
|
|
3564
3536
|
return e in tt;
|
|
3565
3537
|
}
|
|
3566
|
-
function
|
|
3538
|
+
function ni(e, t) {
|
|
3567
3539
|
if (!er(e))
|
|
3568
3540
|
return null;
|
|
3569
|
-
const r =
|
|
3570
|
-
return
|
|
3541
|
+
const r = ri(e);
|
|
3542
|
+
return ei(r, t);
|
|
3571
3543
|
}
|
|
3572
|
-
function
|
|
3544
|
+
function ii(e) {
|
|
3573
3545
|
if (e == null)
|
|
3574
3546
|
return;
|
|
3575
|
-
const t =
|
|
3547
|
+
const t = Be(e);
|
|
3576
3548
|
for (let r = 0; r < t.length; r++) {
|
|
3577
3549
|
const n = t[r];
|
|
3578
3550
|
if (er(n))
|
|
@@ -3580,55 +3552,55 @@ function ni(e) {
|
|
|
3580
3552
|
}
|
|
3581
3553
|
}
|
|
3582
3554
|
function tr(e, ...t) {
|
|
3583
|
-
delete
|
|
3555
|
+
delete X[e], be.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
3584
3556
|
}
|
|
3585
|
-
|
|
3586
|
-
[
|
|
3557
|
+
se(
|
|
3558
|
+
[be],
|
|
3587
3559
|
([e]) => Object.keys(e)
|
|
3588
3560
|
);
|
|
3589
|
-
|
|
3561
|
+
be.subscribe((e) => tt = e);
|
|
3590
3562
|
const ve = {};
|
|
3591
|
-
function
|
|
3563
|
+
function si(e, t) {
|
|
3592
3564
|
ve[e].delete(t), ve[e].size === 0 && delete ve[e];
|
|
3593
3565
|
}
|
|
3594
3566
|
function rr(e) {
|
|
3595
3567
|
return ve[e];
|
|
3596
3568
|
}
|
|
3597
|
-
function
|
|
3598
|
-
return
|
|
3569
|
+
function ai(e) {
|
|
3570
|
+
return Be(e).map((t) => {
|
|
3599
3571
|
const r = rr(t);
|
|
3600
3572
|
return [t, r ? [...r] : []];
|
|
3601
3573
|
}).filter(([, t]) => t.length > 0);
|
|
3602
3574
|
}
|
|
3603
|
-
function
|
|
3604
|
-
return e == null ? !1 :
|
|
3575
|
+
function Ke(e) {
|
|
3576
|
+
return e == null ? !1 : Be(e).some(
|
|
3605
3577
|
(t) => {
|
|
3606
3578
|
var r;
|
|
3607
3579
|
return (r = rr(t)) == null ? void 0 : r.size;
|
|
3608
3580
|
}
|
|
3609
3581
|
);
|
|
3610
3582
|
}
|
|
3611
|
-
function
|
|
3583
|
+
function oi(e, t) {
|
|
3612
3584
|
return Promise.all(
|
|
3613
|
-
t.map((n) => (
|
|
3585
|
+
t.map((n) => (si(e, n), n().then((i) => i.default || i)))
|
|
3614
3586
|
).then((n) => tr(e, ...n));
|
|
3615
3587
|
}
|
|
3616
|
-
const
|
|
3588
|
+
const ue = {};
|
|
3617
3589
|
function nr(e) {
|
|
3618
|
-
if (!
|
|
3619
|
-
return e in
|
|
3620
|
-
const t =
|
|
3621
|
-
return
|
|
3590
|
+
if (!Ke(e))
|
|
3591
|
+
return e in ue ? ue[e] : Promise.resolve();
|
|
3592
|
+
const t = ai(e);
|
|
3593
|
+
return ue[e] = Promise.all(
|
|
3622
3594
|
t.map(
|
|
3623
|
-
([r, n]) =>
|
|
3595
|
+
([r, n]) => oi(r, n)
|
|
3624
3596
|
)
|
|
3625
3597
|
).then(() => {
|
|
3626
|
-
if (
|
|
3598
|
+
if (Ke(e))
|
|
3627
3599
|
return nr(e);
|
|
3628
|
-
delete
|
|
3629
|
-
}),
|
|
3600
|
+
delete ue[e];
|
|
3601
|
+
}), ue[e];
|
|
3630
3602
|
}
|
|
3631
|
-
const
|
|
3603
|
+
const ui = {
|
|
3632
3604
|
number: {
|
|
3633
3605
|
scientific: { notation: "scientific" },
|
|
3634
3606
|
engineering: { notation: "engineering" },
|
|
@@ -3657,141 +3629,141 @@ const oi = {
|
|
|
3657
3629
|
timeZoneName: "short"
|
|
3658
3630
|
}
|
|
3659
3631
|
}
|
|
3660
|
-
},
|
|
3632
|
+
}, li = {
|
|
3661
3633
|
fallbackLocale: null,
|
|
3662
3634
|
loadingDelay: 200,
|
|
3663
|
-
formats:
|
|
3635
|
+
formats: ui,
|
|
3664
3636
|
warnOnMissingMessages: !0,
|
|
3665
3637
|
handleMissingMessage: void 0,
|
|
3666
3638
|
ignoreTag: !0
|
|
3667
|
-
},
|
|
3668
|
-
function
|
|
3669
|
-
return
|
|
3639
|
+
}, hi = li;
|
|
3640
|
+
function ne() {
|
|
3641
|
+
return hi;
|
|
3670
3642
|
}
|
|
3671
|
-
const
|
|
3672
|
-
var
|
|
3643
|
+
const Fe = Ae(!1);
|
|
3644
|
+
var ci = Object.defineProperty, fi = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gi = (e, t) => {
|
|
3673
3645
|
for (var r in t || (t = {}))
|
|
3674
|
-
|
|
3675
|
-
if (
|
|
3676
|
-
for (var r of
|
|
3677
|
-
|
|
3646
|
+
di.call(t, r) && xt(e, r, t[r]);
|
|
3647
|
+
if (vt)
|
|
3648
|
+
for (var r of vt(t))
|
|
3649
|
+
bi.call(t, r) && xt(e, r, t[r]);
|
|
3678
3650
|
return e;
|
|
3679
|
-
},
|
|
3680
|
-
let
|
|
3681
|
-
const
|
|
3651
|
+
}, pi = (e, t) => fi(e, mi(t));
|
|
3652
|
+
let et;
|
|
3653
|
+
const Se = Ae(null);
|
|
3682
3654
|
function St(e) {
|
|
3683
3655
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3684
3656
|
}
|
|
3685
|
-
function
|
|
3657
|
+
function Be(e, t = ne().fallbackLocale) {
|
|
3686
3658
|
const r = St(e);
|
|
3687
3659
|
return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
|
|
3688
3660
|
}
|
|
3689
|
-
function
|
|
3690
|
-
return
|
|
3661
|
+
function Z() {
|
|
3662
|
+
return et != null ? et : void 0;
|
|
3691
3663
|
}
|
|
3692
|
-
|
|
3693
|
-
|
|
3664
|
+
Se.subscribe((e) => {
|
|
3665
|
+
et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3694
3666
|
});
|
|
3695
|
-
const
|
|
3696
|
-
if (e &&
|
|
3697
|
-
const { loadingDelay: t } =
|
|
3667
|
+
const yi = (e) => {
|
|
3668
|
+
if (e && ii(e) && Ke(e)) {
|
|
3669
|
+
const { loadingDelay: t } = ne();
|
|
3698
3670
|
let r;
|
|
3699
|
-
return typeof window != "undefined" &&
|
|
3700
|
-
() =>
|
|
3671
|
+
return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
|
|
3672
|
+
() => Fe.set(!0),
|
|
3701
3673
|
t
|
|
3702
|
-
) :
|
|
3703
|
-
|
|
3674
|
+
) : Fe.set(!0), nr(e).then(() => {
|
|
3675
|
+
Se.set(e);
|
|
3704
3676
|
}).finally(() => {
|
|
3705
|
-
clearTimeout(r),
|
|
3677
|
+
clearTimeout(r), Fe.set(!1);
|
|
3706
3678
|
});
|
|
3707
3679
|
}
|
|
3708
|
-
return
|
|
3709
|
-
},
|
|
3710
|
-
set:
|
|
3711
|
-
}),
|
|
3680
|
+
return Se.set(e);
|
|
3681
|
+
}, ae = pi(gi({}, Se), {
|
|
3682
|
+
set: yi
|
|
3683
|
+
}), we = (e) => {
|
|
3712
3684
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3713
3685
|
return (n) => {
|
|
3714
3686
|
const i = JSON.stringify(n);
|
|
3715
3687
|
return i in t ? t[i] : t[i] = e(n);
|
|
3716
3688
|
};
|
|
3717
3689
|
};
|
|
3718
|
-
var
|
|
3690
|
+
var _i = Object.defineProperty, Te = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
3719
3691
|
for (var r in t || (t = {}))
|
|
3720
3692
|
ir.call(t, r) && Tt(e, r, t[r]);
|
|
3721
|
-
if (
|
|
3722
|
-
for (var r of
|
|
3693
|
+
if (Te)
|
|
3694
|
+
for (var r of Te(t))
|
|
3723
3695
|
sr.call(t, r) && Tt(e, r, t[r]);
|
|
3724
3696
|
return e;
|
|
3725
|
-
},
|
|
3697
|
+
}, oe = (e, t) => {
|
|
3726
3698
|
var r = {};
|
|
3727
3699
|
for (var n in e)
|
|
3728
3700
|
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3729
|
-
if (e != null &&
|
|
3730
|
-
for (var n of
|
|
3701
|
+
if (e != null && Te)
|
|
3702
|
+
for (var n of Te(e))
|
|
3731
3703
|
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
3732
3704
|
return r;
|
|
3733
3705
|
};
|
|
3734
|
-
const
|
|
3735
|
-
const { formats: r } =
|
|
3706
|
+
const fe = (e, t) => {
|
|
3707
|
+
const { formats: r } = ne();
|
|
3736
3708
|
if (e in r && t in r[e])
|
|
3737
3709
|
return r[e][t];
|
|
3738
3710
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3739
|
-
},
|
|
3711
|
+
}, Ei = we(
|
|
3740
3712
|
(e) => {
|
|
3741
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3713
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3742
3714
|
if (r == null)
|
|
3743
3715
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3744
|
-
return n && (i =
|
|
3716
|
+
return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
|
|
3745
3717
|
}
|
|
3746
|
-
), vi =
|
|
3718
|
+
), vi = we(
|
|
3747
3719
|
(e) => {
|
|
3748
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3720
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3749
3721
|
if (r == null)
|
|
3750
3722
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3751
|
-
return n ? i =
|
|
3723
|
+
return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3752
3724
|
}
|
|
3753
|
-
),
|
|
3725
|
+
), xi = we(
|
|
3754
3726
|
(e) => {
|
|
3755
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3727
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3756
3728
|
if (r == null)
|
|
3757
3729
|
throw new Error(
|
|
3758
3730
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3759
3731
|
);
|
|
3760
|
-
return n ? i =
|
|
3732
|
+
return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3761
3733
|
}
|
|
3762
|
-
),
|
|
3734
|
+
), Si = (e = {}) => {
|
|
3763
3735
|
var t = e, {
|
|
3764
|
-
locale: r =
|
|
3765
|
-
} = t, n =
|
|
3736
|
+
locale: r = Z()
|
|
3737
|
+
} = t, n = oe(t, [
|
|
3766
3738
|
"locale"
|
|
3767
3739
|
]);
|
|
3768
|
-
return
|
|
3769
|
-
},
|
|
3740
|
+
return Ei(rt({ locale: r }, n));
|
|
3741
|
+
}, Ti = (e = {}) => {
|
|
3770
3742
|
var t = e, {
|
|
3771
|
-
locale: r =
|
|
3772
|
-
} = t, n =
|
|
3743
|
+
locale: r = Z()
|
|
3744
|
+
} = t, n = oe(t, [
|
|
3773
3745
|
"locale"
|
|
3774
3746
|
]);
|
|
3775
3747
|
return vi(rt({ locale: r }, n));
|
|
3776
|
-
},
|
|
3748
|
+
}, Ai = (e = {}) => {
|
|
3777
3749
|
var t = e, {
|
|
3778
|
-
locale: r =
|
|
3779
|
-
} = t, n =
|
|
3750
|
+
locale: r = Z()
|
|
3751
|
+
} = t, n = oe(t, [
|
|
3780
3752
|
"locale"
|
|
3781
3753
|
]);
|
|
3782
|
-
return
|
|
3783
|
-
},
|
|
3754
|
+
return xi(rt({ locale: r }, n));
|
|
3755
|
+
}, Hi = we(
|
|
3784
3756
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3785
|
-
(e, t =
|
|
3786
|
-
ignoreTag:
|
|
3757
|
+
(e, t = Z()) => new Kn(e, t, ne().formats, {
|
|
3758
|
+
ignoreTag: ne().ignoreTag
|
|
3787
3759
|
})
|
|
3788
|
-
),
|
|
3760
|
+
), Ci = (e, t = {}) => {
|
|
3789
3761
|
var r, n, i, s;
|
|
3790
3762
|
let a = t;
|
|
3791
3763
|
typeof e == "object" && (a = e, e = a.id);
|
|
3792
3764
|
const {
|
|
3793
3765
|
values: o,
|
|
3794
|
-
locale: l =
|
|
3766
|
+
locale: l = Z(),
|
|
3795
3767
|
default: u
|
|
3796
3768
|
} = a;
|
|
3797
3769
|
if (l == null)
|
|
@@ -3800,7 +3772,7 @@ const ce = (e, t) => {
|
|
|
3800
3772
|
);
|
|
3801
3773
|
let h = Kt(e, l);
|
|
3802
3774
|
if (!h)
|
|
3803
|
-
h = (s = (i = (n = (r =
|
|
3775
|
+
h = (s = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3804
3776
|
else if (typeof h != "string")
|
|
3805
3777
|
return console.warn(
|
|
3806
3778
|
`[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.`
|
|
@@ -3809,7 +3781,7 @@ const ce = (e, t) => {
|
|
|
3809
3781
|
return h;
|
|
3810
3782
|
let c = h;
|
|
3811
3783
|
try {
|
|
3812
|
-
c =
|
|
3784
|
+
c = Hi(h, l).format(o);
|
|
3813
3785
|
} catch (f) {
|
|
3814
3786
|
f instanceof Error && console.warn(
|
|
3815
3787
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3817,16 +3789,16 @@ const ce = (e, t) => {
|
|
|
3817
3789
|
);
|
|
3818
3790
|
}
|
|
3819
3791
|
return c;
|
|
3820
|
-
},
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3792
|
+
}, Bi = (e, t) => Ai(t).format(e), wi = (e, t) => Ti(t).format(e), Oi = (e, t) => Si(t).format(e), Pi = (e, t = Z()) => Kt(e, t), Ni = se([ae, be], () => Ci);
|
|
3793
|
+
se([ae], () => Bi);
|
|
3794
|
+
se([ae], () => wi);
|
|
3795
|
+
se([ae], () => Oi);
|
|
3796
|
+
se([ae, be], () => Pi);
|
|
3825
3797
|
function At(e, t) {
|
|
3826
3798
|
tr(e, t);
|
|
3827
3799
|
}
|
|
3828
|
-
function
|
|
3829
|
-
|
|
3800
|
+
function Ii(e) {
|
|
3801
|
+
ae.set(e);
|
|
3830
3802
|
}
|
|
3831
3803
|
const Ht = {
|
|
3832
3804
|
en: {
|
|
@@ -4160,14 +4132,14 @@ const Ht = {
|
|
|
4160
4132
|
December: "December"
|
|
4161
4133
|
}
|
|
4162
4134
|
};
|
|
4163
|
-
function
|
|
4135
|
+
function Mi(e) {
|
|
4164
4136
|
xr(e, "svelte-1gxooas", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
|
|
4165
4137
|
}
|
|
4166
4138
|
function Ct(e) {
|
|
4167
4139
|
let t, r, n, i, s, a;
|
|
4168
4140
|
return {
|
|
4169
4141
|
c() {
|
|
4170
|
-
t =
|
|
4142
|
+
t = P("div"), r = M(
|
|
4171
4143
|
/*shownStatus*/
|
|
4172
4144
|
e[13]
|
|
4173
4145
|
), y(t, "class", n = "Status " + /*statusClass*/
|
|
@@ -4175,7 +4147,7 @@ function Ct(e) {
|
|
|
4175
4147
|
e[15]);
|
|
4176
4148
|
},
|
|
4177
4149
|
m(o, l) {
|
|
4178
|
-
G(o, t, l),
|
|
4150
|
+
G(o, t, l), x(t, r), s || (a = de(
|
|
4179
4151
|
/*matchStatus*/
|
|
4180
4152
|
e[18].call(null, t)
|
|
4181
4153
|
), s = !0);
|
|
@@ -4225,10 +4197,10 @@ function wt(e) {
|
|
|
4225
4197
|
), n;
|
|
4226
4198
|
return {
|
|
4227
4199
|
c() {
|
|
4228
|
-
t =
|
|
4200
|
+
t = P("div"), n = M(r), y(t, "class", "Enrolled"), y(t, "part", "Enrolled");
|
|
4229
4201
|
},
|
|
4230
4202
|
m(i, s) {
|
|
4231
|
-
G(i, t, s),
|
|
4203
|
+
G(i, t, s), x(t, n);
|
|
4232
4204
|
},
|
|
4233
4205
|
p(i, s) {
|
|
4234
4206
|
s[0] & /*$_*/
|
|
@@ -4240,18 +4212,18 @@ function wt(e) {
|
|
|
4240
4212
|
}
|
|
4241
4213
|
};
|
|
4242
4214
|
}
|
|
4243
|
-
function
|
|
4215
|
+
function Ri(e) {
|
|
4244
4216
|
let t, r, n, i, s;
|
|
4245
4217
|
return {
|
|
4246
4218
|
c() {
|
|
4247
|
-
t =
|
|
4219
|
+
t = P("div"), y(t, "class", r = "CardImg " + /*status*/
|
|
4248
4220
|
(e[0] == "Closing" || /*status*/
|
|
4249
4221
|
e[0] == "Closed" ? "CardImgFinished" : "")), y(t, "part", n = "CardImg " + /*status*/
|
|
4250
4222
|
(e[0] == "Closing" || /*status*/
|
|
4251
|
-
e[0] == "Closed" ? "CardImgFinished" : "")),
|
|
4223
|
+
e[0] == "Closed" ? "CardImgFinished" : "")), $e(t, "background-image", "url('https://i.stack.imgur.com/y9DpT.jpg')");
|
|
4252
4224
|
},
|
|
4253
4225
|
m(a, o) {
|
|
4254
|
-
G(a, t, o), i || (s =
|
|
4226
|
+
G(a, t, o), i || (s = de(
|
|
4255
4227
|
/*matchStatus*/
|
|
4256
4228
|
e[18].call(null, t)
|
|
4257
4229
|
), i = !0);
|
|
@@ -4270,19 +4242,19 @@ function Mi(e) {
|
|
|
4270
4242
|
}
|
|
4271
4243
|
};
|
|
4272
4244
|
}
|
|
4273
|
-
function
|
|
4245
|
+
function Li(e) {
|
|
4274
4246
|
let t, r, n, i, s;
|
|
4275
4247
|
return {
|
|
4276
4248
|
c() {
|
|
4277
|
-
t =
|
|
4249
|
+
t = P("div"), y(t, "class", r = "CardImg " + /*status*/
|
|
4278
4250
|
(e[0] == "Closing" || /*status*/
|
|
4279
4251
|
e[0] == "Closed" ? "CardImgFinished" : "")), y(t, "part", n = "CardImg " + /*status*/
|
|
4280
4252
|
(e[0] == "Closing" || /*status*/
|
|
4281
|
-
e[0] == "Closed" ? "CardImgFinished" : "")),
|
|
4253
|
+
e[0] == "Closed" ? "CardImgFinished" : "")), $e(t, "background-image", "url('" + /*thumbnail*/
|
|
4282
4254
|
e[4] + "')");
|
|
4283
4255
|
},
|
|
4284
4256
|
m(a, o) {
|
|
4285
|
-
G(a, t, o), i || (s =
|
|
4257
|
+
G(a, t, o), i || (s = de(
|
|
4286
4258
|
/*matchStatus*/
|
|
4287
4259
|
e[18].call(null, t)
|
|
4288
4260
|
), i = !0);
|
|
@@ -4295,7 +4267,7 @@ function Ri(e) {
|
|
|
4295
4267
|
1 && n !== (n = "CardImg " + /*status*/
|
|
4296
4268
|
(a[0] == "Closing" || /*status*/
|
|
4297
4269
|
a[0] == "Closed" ? "CardImgFinished" : "")) && y(t, "part", n), o[0] & /*thumbnail*/
|
|
4298
|
-
16 &&
|
|
4270
|
+
16 && $e(t, "background-image", "url('" + /*thumbnail*/
|
|
4299
4271
|
a[4] + "')");
|
|
4300
4272
|
},
|
|
4301
4273
|
d(a) {
|
|
@@ -4303,17 +4275,17 @@ function Ri(e) {
|
|
|
4303
4275
|
}
|
|
4304
4276
|
};
|
|
4305
4277
|
}
|
|
4306
|
-
function
|
|
4278
|
+
function Ot(e) {
|
|
4307
4279
|
let t, r, n, i, s;
|
|
4308
4280
|
return {
|
|
4309
4281
|
c() {
|
|
4310
|
-
t =
|
|
4282
|
+
t = P("div"), r = M(
|
|
4311
4283
|
/*shownDate*/
|
|
4312
4284
|
e[11]
|
|
4313
4285
|
), y(t, "class", "Date"), y(t, "part", "Date");
|
|
4314
4286
|
},
|
|
4315
4287
|
m(a, o) {
|
|
4316
|
-
G(a, t, o),
|
|
4288
|
+
G(a, t, o), x(t, r), i || (s = de(n = /*formatDate*/
|
|
4317
4289
|
e[17].call(
|
|
4318
4290
|
null,
|
|
4319
4291
|
t,
|
|
@@ -4327,7 +4299,7 @@ function Nt(e) {
|
|
|
4327
4299
|
r,
|
|
4328
4300
|
/*shownDate*/
|
|
4329
4301
|
a[11]
|
|
4330
|
-
), n &&
|
|
4302
|
+
), n && me(n.update) && o[0] & /*startdate*/
|
|
4331
4303
|
4 && n.update.call(
|
|
4332
4304
|
null,
|
|
4333
4305
|
/*startdate*/
|
|
@@ -4339,32 +4311,32 @@ function Nt(e) {
|
|
|
4339
4311
|
}
|
|
4340
4312
|
};
|
|
4341
4313
|
}
|
|
4342
|
-
function
|
|
4314
|
+
function Pt(e) {
|
|
4343
4315
|
let t, r, n = (
|
|
4344
4316
|
/*$_*/
|
|
4345
4317
|
e[16]("scoreCriteria") + ""
|
|
4346
4318
|
), i, s, a, o, l, u = (
|
|
4347
4319
|
/*$_*/
|
|
4348
4320
|
e[16]("minbet") + ""
|
|
4349
|
-
), h, c, f,
|
|
4321
|
+
), h, c, f, E, d, b, g, p = (
|
|
4350
4322
|
/*$_*/
|
|
4351
4323
|
e[16]("seegames") + ""
|
|
4352
|
-
),
|
|
4324
|
+
), S, O, H, C = (
|
|
4353
4325
|
/*$_*/
|
|
4354
4326
|
e[16]("here") + ""
|
|
4355
|
-
), F, D,
|
|
4327
|
+
), F, D, V, z;
|
|
4356
4328
|
return {
|
|
4357
4329
|
c() {
|
|
4358
|
-
t =
|
|
4330
|
+
t = P("div"), r = P("p"), i = M(n), s = M(`:
|
|
4359
4331
|
|
|
4360
|
-
`), a =
|
|
4332
|
+
`), a = P("span"), o = M(
|
|
4361
4333
|
/*showScoreCriteria*/
|
|
4362
4334
|
e[14]
|
|
4363
4335
|
), l = M(`
|
|
4364
|
-
(`), h = M(u), c =
|
|
4336
|
+
(`), h = M(u), c = W(), f = M(
|
|
4365
4337
|
/*minbetcount*/
|
|
4366
4338
|
e[6]
|
|
4367
|
-
),
|
|
4339
|
+
), E = M(")"), d = W(), b = P("div"), g = P("p"), S = M(p), O = W(), H = P("a"), F = M(C), y(a, "part", "ScoreCriteriaSpan"), y(r, "part", "ScoreCriteriaP"), y(t, "class", "ScoreCriteria"), y(t, "part", "ScoreCriteria"), y(H, "part", "GamesAnchor"), y(
|
|
4368
4340
|
H,
|
|
4369
4341
|
"href",
|
|
4370
4342
|
/*gameurl*/
|
|
@@ -4373,18 +4345,18 @@ function It(e) {
|
|
|
4373
4345
|
e[9] === "true" ? "_self" : "_blank"), y(g, "part", "GamesP"), y(b, "class", "Games"), y(b, "part", "Games");
|
|
4374
4346
|
},
|
|
4375
4347
|
m(B, R) {
|
|
4376
|
-
G(B, t, R),
|
|
4377
|
-
|
|
4348
|
+
G(B, t, R), x(t, r), x(r, i), x(r, s), x(r, a), x(a, o), x(r, l), x(r, h), x(r, c), x(r, f), x(r, E), G(B, d, R), G(B, b, R), x(b, g), x(g, S), x(g, O), x(g, H), x(H, F), V || (z = [
|
|
4349
|
+
de(
|
|
4378
4350
|
/*matchScoreCriteria*/
|
|
4379
4351
|
e[19].call(null, a)
|
|
4380
4352
|
),
|
|
4381
|
-
|
|
4353
|
+
Ge(
|
|
4382
4354
|
H,
|
|
4383
4355
|
"click",
|
|
4384
4356
|
/*click_handler*/
|
|
4385
4357
|
e[28]
|
|
4386
4358
|
)
|
|
4387
|
-
],
|
|
4359
|
+
], V = !0);
|
|
4388
4360
|
},
|
|
4389
4361
|
p(B, R) {
|
|
4390
4362
|
R[0] & /*$_*/
|
|
@@ -4403,7 +4375,7 @@ function It(e) {
|
|
|
4403
4375
|
B[6]
|
|
4404
4376
|
), R[0] & /*$_*/
|
|
4405
4377
|
65536 && p !== (p = /*$_*/
|
|
4406
|
-
B[16]("seegames") + "") && $(
|
|
4378
|
+
B[16]("seegames") + "") && $(S, p), R[0] & /*$_*/
|
|
4407
4379
|
65536 && C !== (C = /*$_*/
|
|
4408
4380
|
B[16]("here") + "") && $(F, C), R[0] & /*gameurl*/
|
|
4409
4381
|
256 && y(
|
|
@@ -4416,11 +4388,11 @@ function It(e) {
|
|
|
4416
4388
|
B[9] === "true" ? "_self" : "_blank") && y(H, "target", D);
|
|
4417
4389
|
},
|
|
4418
4390
|
d(B) {
|
|
4419
|
-
B && (L(t), L(d), L(b)),
|
|
4391
|
+
B && (L(t), L(d), L(b)), V = !1, ie(z);
|
|
4420
4392
|
}
|
|
4421
4393
|
};
|
|
4422
4394
|
}
|
|
4423
|
-
function
|
|
4395
|
+
function Di(e) {
|
|
4424
4396
|
let t, r, n, i, s, a, o, l, u, h = (
|
|
4425
4397
|
/*status*/
|
|
4426
4398
|
e[0] && Ct(e)
|
|
@@ -4428,40 +4400,40 @@ function Li(e) {
|
|
|
4428
4400
|
/*showenrolled*/
|
|
4429
4401
|
e[7] == "true" && Bt(e)
|
|
4430
4402
|
);
|
|
4431
|
-
function f(p,
|
|
4403
|
+
function f(p, S) {
|
|
4432
4404
|
return (
|
|
4433
4405
|
/*thumbnail*/
|
|
4434
|
-
p[4] ?
|
|
4406
|
+
p[4] ? Li : Ri
|
|
4435
4407
|
);
|
|
4436
4408
|
}
|
|
4437
|
-
let
|
|
4409
|
+
let E = f(e), d = E(e), b = (
|
|
4438
4410
|
/*startdate*/
|
|
4439
|
-
e[2] &&
|
|
4411
|
+
e[2] && Ot(e)
|
|
4440
4412
|
), g = (
|
|
4441
4413
|
/*isLoggedIn*/
|
|
4442
|
-
e[12] &&
|
|
4414
|
+
e[12] && Pt(e)
|
|
4443
4415
|
);
|
|
4444
4416
|
return {
|
|
4445
4417
|
c() {
|
|
4446
|
-
t =
|
|
4418
|
+
t = P("div"), h && h.c(), r = W(), c && c.c(), n = W(), d.c(), i = W(), s = P("div"), a = P("div"), o = M(
|
|
4447
4419
|
/*title*/
|
|
4448
4420
|
e[1]
|
|
4449
|
-
), l =
|
|
4421
|
+
), l = W(), b && b.c(), u = W(), g && g.c(), y(a, "class", "Title"), y(a, "part", "Title"), y(s, "class", "Details"), y(s, "part", "Details"), y(t, "class", "Thumbnail"), y(t, "part", "Thumbnail");
|
|
4450
4422
|
},
|
|
4451
|
-
m(p,
|
|
4452
|
-
G(p, t,
|
|
4423
|
+
m(p, S) {
|
|
4424
|
+
G(p, t, S), h && h.m(t, null), x(t, r), c && c.m(t, null), x(t, n), d.m(t, null), x(t, i), x(t, s), x(s, a), x(a, o), x(s, l), b && b.m(s, null), x(s, u), g && g.m(s, null), e[29](t);
|
|
4453
4425
|
},
|
|
4454
|
-
p(p,
|
|
4426
|
+
p(p, S) {
|
|
4455
4427
|
/*status*/
|
|
4456
|
-
p[0] ? h ? h.p(p,
|
|
4457
|
-
p[7] == "true" ? c ? c.p(p,
|
|
4428
|
+
p[0] ? h ? h.p(p, S) : (h = Ct(p), h.c(), h.m(t, r)) : h && (h.d(1), h = null), /*showenrolled*/
|
|
4429
|
+
p[7] == "true" ? c ? c.p(p, S) : (c = Bt(p), c.c(), c.m(t, n)) : c && (c.d(1), c = null), E === (E = f(p)) && d ? d.p(p, S) : (d.d(1), d = E(p), d && (d.c(), d.m(t, i))), S[0] & /*title*/
|
|
4458
4430
|
2 && $(
|
|
4459
4431
|
o,
|
|
4460
4432
|
/*title*/
|
|
4461
4433
|
p[1]
|
|
4462
4434
|
), /*startdate*/
|
|
4463
|
-
p[2] ? b ? b.p(p,
|
|
4464
|
-
p[12] ? g ? g.p(p,
|
|
4435
|
+
p[2] ? b ? b.p(p, S) : (b = Ot(p), b.c(), b.m(s, u)) : b && (b.d(1), b = null), /*isLoggedIn*/
|
|
4436
|
+
p[12] ? g ? g.p(p, S) : (g = Pt(p), g.c(), g.m(s, null)) : g && (g.d(1), g = null);
|
|
4465
4437
|
},
|
|
4466
4438
|
i: U,
|
|
4467
4439
|
o: U,
|
|
@@ -4470,17 +4442,17 @@ function Li(e) {
|
|
|
4470
4442
|
}
|
|
4471
4443
|
};
|
|
4472
4444
|
}
|
|
4473
|
-
function
|
|
4445
|
+
function ki(e, t, r) {
|
|
4474
4446
|
let n;
|
|
4475
|
-
|
|
4476
|
-
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: l = "" } = t, { tourid: u = "" } = t, { thumbnail: h = "" } = t, { userenrolled: c = "" } = t, { scorecriteria: f = "" } = t, { minbetcount:
|
|
4447
|
+
vr(e, Ni, (m) => r(16, n = m));
|
|
4448
|
+
let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: l = "" } = t, { tourid: u = "" } = t, { thumbnail: h = "" } = t, { userenrolled: c = "" } = t, { scorecriteria: f = "" } = t, { minbetcount: E = "" } = t, { showenrolled: d = "false" } = t, { gameurl: b = "" } = t, { lang: g = "en" } = t, { keepbrowsercontext: p = "false" } = t, { clientstyling: S = "" } = t, { clientstylingurl: O = "" } = t, { translationurl: H = "" } = t, C, F = "", D = !1, V = "", z = "", B = "";
|
|
4477
4449
|
const R = () => {
|
|
4478
|
-
fetch(H).then((
|
|
4479
|
-
Object.keys(
|
|
4480
|
-
At(
|
|
4450
|
+
fetch(H).then((N) => N.json()).then((N) => {
|
|
4451
|
+
Object.keys(N).forEach((J) => {
|
|
4452
|
+
At(J, N[J]);
|
|
4481
4453
|
});
|
|
4482
|
-
}).catch((
|
|
4483
|
-
console.log(
|
|
4454
|
+
}).catch((N) => {
|
|
4455
|
+
console.log(N);
|
|
4484
4456
|
});
|
|
4485
4457
|
};
|
|
4486
4458
|
Object.keys(Ht).forEach((m) => {
|
|
@@ -4488,32 +4460,32 @@ function Di(e, t, r) {
|
|
|
4488
4460
|
});
|
|
4489
4461
|
const nt = (m) => {
|
|
4490
4462
|
m.data && (m.data && m.data.type == "SessionID" && r(12, D = !0), m.data.type == `TournamentStatus_${u}` && r(0, l = m.data.status));
|
|
4491
|
-
},
|
|
4463
|
+
}, Oe = () => {
|
|
4492
4464
|
const m = { month: "long" };
|
|
4493
|
-
let
|
|
4465
|
+
let N = new Date(o), J = new Intl.DateTimeFormat("en", m).format(N), fr = N.getDate(), mr = N.toLocaleString("en-GB", {
|
|
4494
4466
|
hour: "numeric",
|
|
4495
4467
|
minute: "numeric",
|
|
4496
4468
|
hour12: !1
|
|
4497
4469
|
});
|
|
4498
4470
|
const dr = () => n(l === "Running" ? "startedAt" : "startingAt");
|
|
4499
|
-
r(11, F = `${fr} ` + n(`${
|
|
4500
|
-
},
|
|
4501
|
-
l == "Unstarted" && (r(13,
|
|
4471
|
+
r(11, F = `${fr} ` + n(`${J}`) + ", " + dr() + ` ${mr}`);
|
|
4472
|
+
}, Pe = () => {
|
|
4473
|
+
l == "Unstarted" && (r(13, V = n("scheduled")), r(15, B = "StatusUnstarted")), l == "Running" && (r(13, V = n("ongoing")), r(15, B = "StatusRunning")), (l == "Closed" || l == "Closing") && r(13, V = n("finished")), l == "Closed" && r(15, B = "StatusClosed"), l == "Closing" && r(15, B = "StatusClosing");
|
|
4502
4474
|
}, Ne = () => {
|
|
4503
|
-
f == "BetCount" && r(14,
|
|
4504
|
-
}, it = (m,
|
|
4505
|
-
window.postMessage({ type: "tournamentGamesClicked", tourId:
|
|
4475
|
+
f == "BetCount" && r(14, z = n("betCount")), f == "MaxWinStakeRatio" && r(14, z = n("maxWinStakeRatio")), f == "WinStakeRatio" && r(14, z = n("winStakeRatio")), f == "Stake" && r(14, z = n("stake"));
|
|
4476
|
+
}, it = (m, N) => {
|
|
4477
|
+
window.postMessage({ type: "tournamentGamesClicked", tourId: N }, window.location.href);
|
|
4506
4478
|
}, or = () => {
|
|
4507
4479
|
i.length > 0 && i != "false" ? r(12, D = !0) : r(12, D = !1);
|
|
4508
4480
|
}, ur = () => {
|
|
4509
4481
|
let m = document.createElement("style");
|
|
4510
|
-
m.innerHTML =
|
|
4482
|
+
m.innerHTML = S, C.appendChild(m);
|
|
4511
4483
|
}, lr = () => {
|
|
4512
|
-
let m = new URL(
|
|
4513
|
-
fetch(m.href).then((
|
|
4514
|
-
|
|
4484
|
+
let m = new URL(O), N = document.createElement("style");
|
|
4485
|
+
fetch(m.href).then((J) => J.text()).then((J) => {
|
|
4486
|
+
N.innerHTML = J, setTimeout(
|
|
4515
4487
|
() => {
|
|
4516
|
-
C.appendChild(
|
|
4488
|
+
C.appendChild(N);
|
|
4517
4489
|
},
|
|
4518
4490
|
1
|
|
4519
4491
|
), setTimeout(
|
|
@@ -4523,28 +4495,28 @@ function Di(e, t, r) {
|
|
|
4523
4495
|
);
|
|
4524
4496
|
});
|
|
4525
4497
|
};
|
|
4526
|
-
|
|
4498
|
+
Or(() => (setTimeout(() => st(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", nt, !1), () => {
|
|
4527
4499
|
window.removeEventListener("message", nt);
|
|
4528
4500
|
}));
|
|
4529
4501
|
const st = () => {
|
|
4530
|
-
|
|
4502
|
+
Ii(g), Ne(), Pe(), o && Oe();
|
|
4531
4503
|
}, hr = () => it();
|
|
4532
4504
|
function cr(m) {
|
|
4533
|
-
|
|
4505
|
+
je[m ? "unshift" : "push"](() => {
|
|
4534
4506
|
C = m, r(10, C);
|
|
4535
4507
|
});
|
|
4536
4508
|
}
|
|
4537
4509
|
return e.$$set = (m) => {
|
|
4538
|
-
"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(3, u = m.tourid), "thumbnail" in m && r(4, h = m.thumbnail), "userenrolled" in m && r(5, c = m.userenrolled), "scorecriteria" in m && r(23, f = m.scorecriteria), "minbetcount" in m && r(6,
|
|
4510
|
+
"session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0, l = m.status), "tourid" in m && r(3, u = m.tourid), "thumbnail" in m && r(4, h = m.thumbnail), "userenrolled" in m && r(5, c = m.userenrolled), "scorecriteria" in m && r(23, f = m.scorecriteria), "minbetcount" in m && r(6, E = m.minbetcount), "showenrolled" in m && r(7, d = m.showenrolled), "gameurl" in m && r(8, b = m.gameurl), "lang" in m && r(24, g = m.lang), "keepbrowsercontext" in m && r(9, p = m.keepbrowsercontext), "clientstyling" in m && r(25, S = m.clientstyling), "clientstylingurl" in m && r(26, O = m.clientstylingurl), "translationurl" in m && r(27, H = m.translationurl);
|
|
4539
4511
|
}, e.$$.update = () => {
|
|
4540
4512
|
e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
|
|
4541
|
-
33555456 && C &&
|
|
4542
|
-
67109888 && C &&
|
|
4513
|
+
33555456 && C && S && ur(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
|
|
4514
|
+
67109888 && C && O && lr(), e.$$.dirty[0] & /*translationurl*/
|
|
4543
4515
|
134217728 && H && R(), e.$$.dirty[0] & /*session*/
|
|
4544
4516
|
2097152 && i && or(), e.$$.dirty[0] & /*status*/
|
|
4545
|
-
1 && l &&
|
|
4517
|
+
1 && l && Pe(), e.$$.dirty[0] & /*title, lang*/
|
|
4546
4518
|
16777218 && a && g && st(), e.$$.dirty[0] & /*startdate*/
|
|
4547
|
-
4 && o &&
|
|
4519
|
+
4 && o && Oe(), e.$$.dirty[0] & /*scorecriteria*/
|
|
4548
4520
|
8388608 && f && Ne();
|
|
4549
4521
|
}, [
|
|
4550
4522
|
l,
|
|
@@ -4553,27 +4525,27 @@ function Di(e, t, r) {
|
|
|
4553
4525
|
u,
|
|
4554
4526
|
h,
|
|
4555
4527
|
c,
|
|
4556
|
-
|
|
4528
|
+
E,
|
|
4557
4529
|
d,
|
|
4558
4530
|
b,
|
|
4559
4531
|
p,
|
|
4560
4532
|
C,
|
|
4561
4533
|
F,
|
|
4562
4534
|
D,
|
|
4563
|
-
j,
|
|
4564
4535
|
V,
|
|
4536
|
+
z,
|
|
4565
4537
|
B,
|
|
4566
4538
|
n,
|
|
4567
|
-
|
|
4568
|
-
|
|
4539
|
+
Oe,
|
|
4540
|
+
Pe,
|
|
4569
4541
|
Ne,
|
|
4570
4542
|
it,
|
|
4571
4543
|
i,
|
|
4572
4544
|
s,
|
|
4573
4545
|
f,
|
|
4574
4546
|
g,
|
|
4575
|
-
|
|
4576
|
-
|
|
4547
|
+
S,
|
|
4548
|
+
O,
|
|
4577
4549
|
H,
|
|
4578
4550
|
hr,
|
|
4579
4551
|
cr
|
|
@@ -4584,9 +4556,9 @@ class ar extends $r {
|
|
|
4584
4556
|
super(), Fr(
|
|
4585
4557
|
this,
|
|
4586
4558
|
t,
|
|
4559
|
+
ki,
|
|
4587
4560
|
Di,
|
|
4588
|
-
|
|
4589
|
-
Pt,
|
|
4561
|
+
It,
|
|
4590
4562
|
{
|
|
4591
4563
|
session: 21,
|
|
4592
4564
|
userid: 22,
|
|
@@ -4606,7 +4578,7 @@ class ar extends $r {
|
|
|
4606
4578
|
clientstylingurl: 26,
|
|
4607
4579
|
translationurl: 27
|
|
4608
4580
|
},
|
|
4609
|
-
|
|
4581
|
+
Mi,
|
|
4610
4582
|
[-1, -1]
|
|
4611
4583
|
);
|
|
4612
4584
|
}
|
|
@@ -4714,50 +4686,46 @@ class ar extends $r {
|
|
|
4714
4686
|
}
|
|
4715
4687
|
}
|
|
4716
4688
|
Gr(ar, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4717
|
-
const
|
|
4689
|
+
const Wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4718
4690
|
__proto__: null,
|
|
4719
4691
|
default: ar
|
|
4720
4692
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4721
4693
|
export {
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4694
|
+
ae as $,
|
|
4695
|
+
Ni as A,
|
|
4696
|
+
$e as B,
|
|
4697
|
+
Ji as C,
|
|
4726
4698
|
Gi as D,
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
Fi as J,
|
|
4733
|
-
Ui as K,
|
|
4734
|
-
Xi as L,
|
|
4699
|
+
zi as E,
|
|
4700
|
+
Vi as F,
|
|
4701
|
+
ze as G,
|
|
4702
|
+
Fi as H,
|
|
4703
|
+
Wi as I,
|
|
4735
4704
|
$r as S,
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
tr as e,
|
|
4705
|
+
be as a,
|
|
4706
|
+
tr as b,
|
|
4707
|
+
Gr as c,
|
|
4708
|
+
xr as d,
|
|
4709
|
+
L as e,
|
|
4742
4710
|
w as f,
|
|
4743
|
-
|
|
4744
|
-
|
|
4711
|
+
G as g,
|
|
4712
|
+
P as h,
|
|
4745
4713
|
Fr as i,
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4714
|
+
vr as j,
|
|
4715
|
+
je as k,
|
|
4716
|
+
y as l,
|
|
4717
|
+
x as m,
|
|
4750
4718
|
U as n,
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
$
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
$ as y,
|
|
4762
|
-
|
|
4719
|
+
Or as o,
|
|
4720
|
+
ji as p,
|
|
4721
|
+
W as q,
|
|
4722
|
+
$ as r,
|
|
4723
|
+
It as s,
|
|
4724
|
+
M as t,
|
|
4725
|
+
de as u,
|
|
4726
|
+
ie as v,
|
|
4727
|
+
Ge as w,
|
|
4728
|
+
Ar as x,
|
|
4729
|
+
$i as y,
|
|
4730
|
+
me as z
|
|
4763
4731
|
};
|