@everymatrix/casino-categories 1.77.19 → 1.77.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCategories-BfaD4414.cjs +16 -0
- package/components/{CasinoCategories-BS8poEZ5.js → CasinoCategories-CsAog_gu.js} +816 -822
- package/components/{CasinoCategories-BkDi82EW.js → CasinoCategories-Dghu6LF6.js} +717 -723
- package/es2015/casino-categories.cjs +1 -1
- package/es2015/casino-categories.js +1 -1
- package/esnext/casino-categories.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-B0NIExnR.js} +2 -2
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-D6HPqRtr.js} +2 -2
- package/stencil/index-97d17652-DNpK20ur.cjs +1 -0
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-BY8ZO6br.js} +1 -1
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-DJSOH8ZL.cjs} +1 -1
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-DfVgiF6v.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Cdo33umq.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-DbQ7SENq.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-L-CYescb.js} +2 -2
- package/components/CasinoCategories-ByVJhZBA.cjs +0 -3
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-BY8ZO6br.js";
|
|
2
2
|
function N() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function pt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function We() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
e.forEach(
|
|
10
|
+
function ae(e) {
|
|
11
|
+
e.forEach(pt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function ke(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function dt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
|
-
let
|
|
20
|
-
function
|
|
21
|
-
return e === t ? !0 : (
|
|
19
|
+
let le;
|
|
20
|
+
function de(e, t) {
|
|
21
|
+
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function zt(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function bt(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -32,20 +32,20 @@ function _t(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
e.$$.on_destroy.push(
|
|
35
|
+
function Wt(e, t, r) {
|
|
36
|
+
e.$$.on_destroy.push(bt(t, r));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function v(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const n =
|
|
41
|
+
function Zt(e, t, r) {
|
|
42
|
+
const n = Qt(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
|
-
const i =
|
|
45
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
const i = S("style");
|
|
45
|
+
i.id = t, i.textContent = r, Jt(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Qt(e) {
|
|
49
49
|
if (!e)
|
|
50
50
|
return document;
|
|
51
51
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -55,33 +55,33 @@ function qt(e) {
|
|
|
55
55
|
t
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
58
|
+
function Jt(e, t) {
|
|
59
|
+
return v(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Y(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function j(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Ze(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function S(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function U(e) {
|
|
79
79
|
return document.createTextNode(e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function R() {
|
|
82
|
+
return U(" ");
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function _t(e, t, r, n) {
|
|
85
85
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
86
86
|
}
|
|
87
87
|
function L(e, t, r) {
|
|
@@ -91,14 +91,14 @@ function $(e, t, r) {
|
|
|
91
91
|
const n = t.toLowerCase();
|
|
92
92
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : L(e, t, r);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function qt(e) {
|
|
95
95
|
return Array.from(e.childNodes);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function D(e, t) {
|
|
98
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
99
99
|
t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Yt(e) {
|
|
102
102
|
const t = {};
|
|
103
103
|
return e.childNodes.forEach(
|
|
104
104
|
/** @param {Element} node */
|
|
@@ -107,90 +107,90 @@ function er(e) {
|
|
|
107
107
|
}
|
|
108
108
|
), t;
|
|
109
109
|
}
|
|
110
|
-
let
|
|
111
|
-
function
|
|
112
|
-
|
|
110
|
+
let ie;
|
|
111
|
+
function ne(e) {
|
|
112
|
+
ie = e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
if (!
|
|
114
|
+
function Kt() {
|
|
115
|
+
if (!ie)
|
|
116
116
|
throw new Error("Function called outside component initialization");
|
|
117
|
-
return
|
|
117
|
+
return ie;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function er(e) {
|
|
120
|
+
Kt().$$.on_mount.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
let
|
|
124
|
-
const
|
|
125
|
-
let
|
|
126
|
-
function
|
|
127
|
-
|
|
122
|
+
const z = [], Pe = [];
|
|
123
|
+
let W = [];
|
|
124
|
+
const Qe = [], tr = /* @__PURE__ */ Promise.resolve();
|
|
125
|
+
let Ne = !1;
|
|
126
|
+
function rr() {
|
|
127
|
+
Ne || (Ne = !0, tr.then(I));
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function Le(e) {
|
|
130
|
+
W.push(e);
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
let
|
|
132
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
133
|
+
let V = 0;
|
|
134
134
|
function I() {
|
|
135
|
-
if (
|
|
135
|
+
if (V !== 0)
|
|
136
136
|
return;
|
|
137
|
-
const e =
|
|
137
|
+
const e = ie;
|
|
138
138
|
do {
|
|
139
139
|
try {
|
|
140
|
-
for (;
|
|
141
|
-
const t =
|
|
142
|
-
|
|
140
|
+
for (; V < z.length; ) {
|
|
141
|
+
const t = z[V];
|
|
142
|
+
V++, ne(t), nr(t.$$);
|
|
143
143
|
}
|
|
144
144
|
} catch (t) {
|
|
145
|
-
throw
|
|
145
|
+
throw z.length = 0, V = 0, t;
|
|
146
146
|
}
|
|
147
|
-
for (
|
|
148
|
-
|
|
149
|
-
for (let t = 0; t <
|
|
150
|
-
const r =
|
|
151
|
-
|
|
147
|
+
for (ne(null), z.length = 0, V = 0; Pe.length; )
|
|
148
|
+
Pe.pop()();
|
|
149
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
150
|
+
const r = W[t];
|
|
151
|
+
Ce.has(r) || (Ce.add(r), r());
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
} while (
|
|
155
|
-
for (;
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
W.length = 0;
|
|
154
|
+
} while (z.length);
|
|
155
|
+
for (; Qe.length; )
|
|
156
|
+
Qe.pop()();
|
|
157
|
+
Ne = !1, Ce.clear(), ne(e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function nr(e) {
|
|
160
160
|
if (e.fragment !== null) {
|
|
161
|
-
e.update(),
|
|
161
|
+
e.update(), ae(e.before_update);
|
|
162
162
|
const t = e.dirty;
|
|
163
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
163
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ir(e) {
|
|
167
167
|
const t = [], r = [];
|
|
168
|
-
|
|
168
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
172
|
-
e && e.i && (
|
|
170
|
+
const or = /* @__PURE__ */ new Set();
|
|
171
|
+
function sr(e, t) {
|
|
172
|
+
e && e.i && (or.delete(e), e.i(t));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function fe(e) {
|
|
175
175
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function ar(e, t, r) {
|
|
178
178
|
const { fragment: n, after_update: i } = e.$$;
|
|
179
|
-
n && n.m(t, r),
|
|
180
|
-
const o = e.$$.on_mount.map(
|
|
181
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
182
|
-
}), i.forEach(
|
|
179
|
+
n && n.m(t, r), Le(() => {
|
|
180
|
+
const o = e.$$.on_mount.map(pt).filter(ke);
|
|
181
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
|
|
182
|
+
}), i.forEach(Le);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function ur(e, t) {
|
|
185
185
|
const r = e.$$;
|
|
186
|
-
r.fragment !== null && (
|
|
186
|
+
r.fragment !== null && (ir(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
e.$$.dirty[0] === -1 && (
|
|
188
|
+
function hr(e, t) {
|
|
189
|
+
e.$$.dirty[0] === -1 && (z.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const l =
|
|
193
|
-
|
|
191
|
+
function lr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
192
|
+
const l = ie;
|
|
193
|
+
ne(e);
|
|
194
194
|
const a = e.$$ = {
|
|
195
195
|
fragment: null,
|
|
196
196
|
ctx: [],
|
|
@@ -198,7 +198,7 @@ function cr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
198
198
|
props: o,
|
|
199
199
|
update: N,
|
|
200
200
|
not_equal: i,
|
|
201
|
-
bound:
|
|
201
|
+
bound: We(),
|
|
202
202
|
// lifecycle
|
|
203
203
|
on_mount: [],
|
|
204
204
|
on_destroy: [],
|
|
@@ -207,7 +207,7 @@ function cr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
207
207
|
after_update: [],
|
|
208
208
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
209
209
|
// everything else
|
|
210
|
-
callbacks:
|
|
210
|
+
callbacks: We(),
|
|
211
211
|
dirty: u,
|
|
212
212
|
skip_bound: !1,
|
|
213
213
|
root: t.target || l.$$.root
|
|
@@ -216,19 +216,19 @@ function cr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
216
216
|
let h = !1;
|
|
217
217
|
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
218
218
|
const d = p.length ? p[0] : f;
|
|
219
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), h &&
|
|
220
|
-
}) : [], a.update(), h = !0,
|
|
219
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), h && hr(e, c)), f;
|
|
220
|
+
}) : [], a.update(), h = !0, ae(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
221
221
|
if (t.hydrate) {
|
|
222
|
-
const c =
|
|
223
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
222
|
+
const c = qt(t.target);
|
|
223
|
+
a.fragment && a.fragment.l(c), c.forEach(j);
|
|
224
224
|
} else
|
|
225
225
|
a.fragment && a.fragment.c();
|
|
226
|
-
t.intro &&
|
|
226
|
+
t.intro && sr(e.$$.fragment), ar(e, t.target, t.anchor), I();
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
ne(l);
|
|
229
229
|
}
|
|
230
|
-
let
|
|
231
|
-
typeof HTMLElement == "function" && (
|
|
230
|
+
let yt;
|
|
231
|
+
typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
232
232
|
/** The Svelte component constructor */
|
|
233
233
|
$$ctor;
|
|
234
234
|
/** Slots */
|
|
@@ -270,29 +270,29 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
270
270
|
let o;
|
|
271
271
|
return {
|
|
272
272
|
c: function() {
|
|
273
|
-
o =
|
|
273
|
+
o = S("slot"), i !== "default" && L(o, "name", i);
|
|
274
274
|
},
|
|
275
275
|
/**
|
|
276
276
|
* @param {HTMLElement} target
|
|
277
277
|
* @param {HTMLElement} [anchor]
|
|
278
278
|
*/
|
|
279
279
|
m: function(l, a) {
|
|
280
|
-
|
|
280
|
+
Y(l, o, a);
|
|
281
281
|
},
|
|
282
282
|
d: function(l) {
|
|
283
|
-
l &&
|
|
283
|
+
l && j(o);
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
};
|
|
287
287
|
};
|
|
288
288
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
289
289
|
return;
|
|
290
|
-
const t = {}, r =
|
|
290
|
+
const t = {}, r = Yt(this);
|
|
291
291
|
for (const i of this.$$s)
|
|
292
292
|
i in r && (t[i] = [e(i)]);
|
|
293
293
|
for (const i of this.attributes) {
|
|
294
294
|
const o = this.$$g_p(i.name);
|
|
295
|
-
o in this.$$d || (this.$$d[o] =
|
|
295
|
+
o in this.$$d || (this.$$d[o] = ge(o, i.value, this.$$p_d, "toProp"));
|
|
296
296
|
}
|
|
297
297
|
for (const i in this.$$p_d)
|
|
298
298
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
310
310
|
this.$$r = !0;
|
|
311
311
|
for (const i in this.$$p_d)
|
|
312
312
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
313
|
-
const o =
|
|
313
|
+
const o = ge(
|
|
314
314
|
i,
|
|
315
315
|
this.$$d[i],
|
|
316
316
|
this.$$p_d,
|
|
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
332
332
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
333
333
|
// and setting attributes through setAttribute etc, this is helpful
|
|
334
334
|
attributeChangedCallback(e, t, r) {
|
|
335
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
335
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
336
336
|
}
|
|
337
337
|
disconnectedCallback() {
|
|
338
338
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
345
345
|
) || e;
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
function
|
|
348
|
+
function ge(e, t, r, n) {
|
|
349
349
|
const i = r[e]?.type;
|
|
350
350
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
351
351
|
return t;
|
|
@@ -374,8 +374,8 @@ function me(e, t, r, n) {
|
|
|
374
374
|
return t;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
let s = class extends
|
|
377
|
+
function fr(e, t, r, n, i, o) {
|
|
378
|
+
let s = class extends yt {
|
|
379
379
|
constructor() {
|
|
380
380
|
super(e, r, i), this.$$p_d = t;
|
|
381
381
|
}
|
|
@@ -391,7 +391,7 @@ function gr(e, t, r, n, i, o) {
|
|
|
391
391
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
392
392
|
},
|
|
393
393
|
set(l) {
|
|
394
|
-
l =
|
|
394
|
+
l = ge(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), n.forEach((u) => {
|
|
@@ -403,7 +403,7 @@ function gr(e, t, r, n, i, o) {
|
|
|
403
403
|
}), e.element = /** @type {any} */
|
|
404
404
|
s, s;
|
|
405
405
|
}
|
|
406
|
-
class
|
|
406
|
+
class cr {
|
|
407
407
|
/**
|
|
408
408
|
* ### PRIVATE API
|
|
409
409
|
*
|
|
@@ -422,7 +422,7 @@ class mr {
|
|
|
422
422
|
$$set = void 0;
|
|
423
423
|
/** @returns {void} */
|
|
424
424
|
$destroy() {
|
|
425
|
-
|
|
425
|
+
ur(this, 1), this.$destroy = N;
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
428
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -431,7 +431,7 @@ class mr {
|
|
|
431
431
|
* @returns {() => void}
|
|
432
432
|
*/
|
|
433
433
|
$on(t, r) {
|
|
434
|
-
if (!
|
|
434
|
+
if (!ke(r))
|
|
435
435
|
return N;
|
|
436
436
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
437
437
|
return n.push(r), () => {
|
|
@@ -444,29 +444,29 @@ class mr {
|
|
|
444
444
|
* @returns {void}
|
|
445
445
|
*/
|
|
446
446
|
$set(t) {
|
|
447
|
-
this.$$set && !
|
|
447
|
+
this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
const
|
|
451
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
452
|
-
const
|
|
453
|
-
function
|
|
450
|
+
const gr = "4";
|
|
451
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gr);
|
|
452
|
+
const X = [];
|
|
453
|
+
function mr(e, t) {
|
|
454
454
|
return {
|
|
455
|
-
subscribe:
|
|
455
|
+
subscribe: ye(e, t).subscribe
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function ye(e, t = N) {
|
|
459
459
|
let r;
|
|
460
460
|
const n = /* @__PURE__ */ new Set();
|
|
461
461
|
function i(u) {
|
|
462
|
-
if (
|
|
463
|
-
const l = !
|
|
462
|
+
if (dt(e, u) && (e = u, r)) {
|
|
463
|
+
const l = !X.length;
|
|
464
464
|
for (const a of n)
|
|
465
|
-
a[1](),
|
|
465
|
+
a[1](), X.push(a, e);
|
|
466
466
|
if (l) {
|
|
467
|
-
for (let a = 0; a <
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
for (let a = 0; a < X.length; a += 2)
|
|
468
|
+
X[a][0](X[a + 1]);
|
|
469
|
+
X.length = 0;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
}
|
|
@@ -481,12 +481,12 @@ function xe(e, t = N) {
|
|
|
481
481
|
}
|
|
482
482
|
return { set: i, update: o, subscribe: s };
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function K(e, t, r) {
|
|
485
485
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
486
486
|
if (!i.every(Boolean))
|
|
487
487
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
488
488
|
const o = t.length < 2;
|
|
489
|
-
return
|
|
489
|
+
return mr(r, (s, u) => {
|
|
490
490
|
let l = !1;
|
|
491
491
|
const a = [];
|
|
492
492
|
let h = 0, c = N;
|
|
@@ -495,9 +495,9 @@ function ee(e, t, r) {
|
|
|
495
495
|
return;
|
|
496
496
|
c();
|
|
497
497
|
const d = t(n ? a[0] : a, s, u);
|
|
498
|
-
o ? s(d) : c =
|
|
498
|
+
o ? s(d) : c = ke(d) ? d : N;
|
|
499
499
|
}, p = i.map(
|
|
500
|
-
(d, g) =>
|
|
500
|
+
(d, g) => bt(
|
|
501
501
|
d,
|
|
502
502
|
(E) => {
|
|
503
503
|
a[g] = E, h &= ~(1 << g), l && f();
|
|
@@ -508,112 +508,126 @@ function ee(e, t, r) {
|
|
|
508
508
|
)
|
|
509
509
|
);
|
|
510
510
|
return l = !0, f(), function() {
|
|
511
|
-
|
|
511
|
+
ae(p), c(), l = !1;
|
|
512
512
|
};
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function pr(e) {
|
|
516
516
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
517
517
|
}
|
|
518
|
-
var
|
|
519
|
-
return
|
|
518
|
+
var dr = function(t) {
|
|
519
|
+
return br(t) && !_r(t);
|
|
520
520
|
};
|
|
521
|
-
function
|
|
521
|
+
function br(e) {
|
|
522
522
|
return !!e && typeof e == "object";
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function _r(e) {
|
|
525
525
|
var t = Object.prototype.toString.call(e);
|
|
526
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
526
|
+
return t === "[object RegExp]" || t === "[object Date]" || Er(e);
|
|
527
527
|
}
|
|
528
|
-
var
|
|
529
|
-
function
|
|
530
|
-
return e.$$typeof ===
|
|
528
|
+
var yr = typeof Symbol == "function" && Symbol.for, xr = yr ? Symbol.for("react.element") : 60103;
|
|
529
|
+
function Er(e) {
|
|
530
|
+
return e.$$typeof === xr;
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function vr(e) {
|
|
533
533
|
return Array.isArray(e) ? [] : {};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
535
|
+
function oe(e, t) {
|
|
536
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(vr(e), e, t) : e;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Tr(e, t, r) {
|
|
539
539
|
return e.concat(t).map(function(n) {
|
|
540
|
-
return
|
|
540
|
+
return oe(n, r);
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Cr(e, t) {
|
|
544
544
|
if (!t.customMerge)
|
|
545
|
-
return
|
|
545
|
+
return Z;
|
|
546
546
|
var r = t.customMerge(e);
|
|
547
|
-
return typeof r == "function" ? r :
|
|
547
|
+
return typeof r == "function" ? r : Z;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Hr(e) {
|
|
550
550
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
551
551
|
return Object.propertyIsEnumerable.call(e, t);
|
|
552
552
|
}) : [];
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
return Object.keys(e).concat(
|
|
554
|
+
function Je(e) {
|
|
555
|
+
return Object.keys(e).concat(Hr(e));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function xt(e, t) {
|
|
558
558
|
try {
|
|
559
559
|
return t in e;
|
|
560
560
|
} catch {
|
|
561
561
|
return !1;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
return
|
|
564
|
+
function Ar(e, t) {
|
|
565
|
+
return xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Br(e, t, r) {
|
|
568
568
|
var n = {};
|
|
569
|
-
return r.isMergeableObject(e) &&
|
|
570
|
-
n[i] =
|
|
571
|
-
}),
|
|
572
|
-
|
|
569
|
+
return r.isMergeableObject(e) && Je(e).forEach(function(i) {
|
|
570
|
+
n[i] = oe(e[i], r);
|
|
571
|
+
}), Je(t).forEach(function(i) {
|
|
572
|
+
Ar(e, i) || (xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Cr(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
573
573
|
}), n;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
575
|
+
function Z(e, t, r) {
|
|
576
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Tr, r.isMergeableObject = r.isMergeableObject || dr, r.cloneUnlessOtherwiseSpecified = oe;
|
|
577
577
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
578
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
578
|
+
return o ? n ? r.arrayMerge(e, t, r) : Br(e, t, r) : oe(t, r);
|
|
579
579
|
}
|
|
580
|
-
|
|
580
|
+
Z.all = function(t, r) {
|
|
581
581
|
if (!Array.isArray(t))
|
|
582
582
|
throw new Error("first argument should be an array");
|
|
583
583
|
return t.reduce(function(n, i) {
|
|
584
|
-
return
|
|
584
|
+
return Z(n, i, r);
|
|
585
585
|
}, {});
|
|
586
586
|
};
|
|
587
|
-
var
|
|
588
|
-
const
|
|
589
|
-
|
|
590
|
-
|
|
587
|
+
var Sr = Z, wr = Sr;
|
|
588
|
+
const Or = /* @__PURE__ */ pr(wr);
|
|
589
|
+
/*! *****************************************************************************
|
|
590
|
+
Copyright (c) Microsoft Corporation.
|
|
591
|
+
|
|
592
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
593
|
+
purpose with or without fee is hereby granted.
|
|
594
|
+
|
|
595
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
596
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
597
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
598
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
599
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
600
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
601
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
602
|
+
***************************************************************************** */
|
|
603
|
+
var Ie = function(e, t) {
|
|
604
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
591
605
|
r.__proto__ = n;
|
|
592
606
|
} || function(r, n) {
|
|
593
607
|
for (var i in n)
|
|
594
608
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
595
|
-
},
|
|
609
|
+
}, Ie(e, t);
|
|
596
610
|
};
|
|
597
|
-
function
|
|
611
|
+
function xe(e, t) {
|
|
598
612
|
if (typeof t != "function" && t !== null)
|
|
599
613
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
600
|
-
|
|
614
|
+
Ie(e, t);
|
|
601
615
|
function r() {
|
|
602
616
|
this.constructor = e;
|
|
603
617
|
}
|
|
604
618
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
605
619
|
}
|
|
606
|
-
var
|
|
607
|
-
return
|
|
620
|
+
var x = function() {
|
|
621
|
+
return x = Object.assign || function(t) {
|
|
608
622
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
609
623
|
r = arguments[n];
|
|
610
624
|
for (var o in r)
|
|
611
625
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
612
626
|
}
|
|
613
627
|
return t;
|
|
614
|
-
},
|
|
628
|
+
}, x.apply(this, arguments);
|
|
615
629
|
};
|
|
616
|
-
function
|
|
630
|
+
function Pr(e, t) {
|
|
617
631
|
var r = {};
|
|
618
632
|
for (var n in e)
|
|
619
633
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -622,43 +636,43 @@ function Lr(e, t) {
|
|
|
622
636
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
623
637
|
return r;
|
|
624
638
|
}
|
|
625
|
-
function
|
|
626
|
-
if (
|
|
639
|
+
function He(e, t, r) {
|
|
640
|
+
if (arguments.length === 2)
|
|
627
641
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
628
642
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
629
|
-
return e.concat(o ||
|
|
643
|
+
return e.concat(o || t);
|
|
630
644
|
}
|
|
631
|
-
function
|
|
632
|
-
var r = t && t.cache ? t.cache :
|
|
645
|
+
function Ae(e, t) {
|
|
646
|
+
var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : $r, i = t && t.strategy ? t.strategy : Ir;
|
|
633
647
|
return i(e, {
|
|
634
648
|
cache: r,
|
|
635
649
|
serializer: n
|
|
636
650
|
});
|
|
637
651
|
}
|
|
638
|
-
function
|
|
652
|
+
function Nr(e) {
|
|
639
653
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
640
654
|
}
|
|
641
|
-
function
|
|
642
|
-
var i =
|
|
655
|
+
function Lr(e, t, r, n) {
|
|
656
|
+
var i = Nr(n) ? n : r(n), o = t.get(i);
|
|
643
657
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
644
658
|
}
|
|
645
|
-
function
|
|
659
|
+
function Et(e, t, r) {
|
|
646
660
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
647
661
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
648
662
|
}
|
|
649
|
-
function
|
|
663
|
+
function vt(e, t, r, n, i) {
|
|
650
664
|
return r.bind(t, e, n, i);
|
|
651
665
|
}
|
|
652
|
-
function
|
|
653
|
-
var r = e.length === 1 ?
|
|
654
|
-
return
|
|
666
|
+
function Ir(e, t) {
|
|
667
|
+
var r = e.length === 1 ? Lr : Et;
|
|
668
|
+
return vt(e, this, r, t.cache.create(), t.serializer);
|
|
655
669
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
670
|
+
function Mr(e, t) {
|
|
671
|
+
return vt(e, this, Et, t.cache.create(), t.serializer);
|
|
658
672
|
}
|
|
659
|
-
var
|
|
673
|
+
var $r = function() {
|
|
660
674
|
return JSON.stringify(arguments);
|
|
661
|
-
},
|
|
675
|
+
}, Rr = (
|
|
662
676
|
/** @class */
|
|
663
677
|
function() {
|
|
664
678
|
function e() {
|
|
@@ -670,71 +684,61 @@ var Ur = function() {
|
|
|
670
684
|
this.cache[t] = r;
|
|
671
685
|
}, e;
|
|
672
686
|
}()
|
|
673
|
-
),
|
|
687
|
+
), Ur = {
|
|
674
688
|
create: function() {
|
|
675
|
-
return new
|
|
689
|
+
return new Rr();
|
|
676
690
|
}
|
|
677
|
-
},
|
|
678
|
-
variadic:
|
|
679
|
-
},
|
|
680
|
-
return ye = Object.assign || function(t) {
|
|
681
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
682
|
-
r = arguments[n];
|
|
683
|
-
for (var o in r)
|
|
684
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
685
|
-
}
|
|
686
|
-
return t;
|
|
687
|
-
}, ye.apply(this, arguments);
|
|
688
|
-
};
|
|
689
|
-
var y;
|
|
691
|
+
}, Be = {
|
|
692
|
+
variadic: Mr
|
|
693
|
+
}, _;
|
|
690
694
|
(function(e) {
|
|
691
695
|
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";
|
|
692
|
-
})(
|
|
693
|
-
var
|
|
696
|
+
})(_ || (_ = {}));
|
|
697
|
+
var T;
|
|
694
698
|
(function(e) {
|
|
695
699
|
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";
|
|
696
|
-
})(
|
|
697
|
-
var
|
|
700
|
+
})(T || (T = {}));
|
|
701
|
+
var Q;
|
|
698
702
|
(function(e) {
|
|
699
703
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
700
|
-
})(
|
|
701
|
-
function
|
|
702
|
-
return e.type ===
|
|
704
|
+
})(Q || (Q = {}));
|
|
705
|
+
function qe(e) {
|
|
706
|
+
return e.type === T.literal;
|
|
703
707
|
}
|
|
704
|
-
function
|
|
705
|
-
return e.type ===
|
|
708
|
+
function Gr(e) {
|
|
709
|
+
return e.type === T.argument;
|
|
706
710
|
}
|
|
707
|
-
function
|
|
708
|
-
return e.type ===
|
|
711
|
+
function Tt(e) {
|
|
712
|
+
return e.type === T.number;
|
|
709
713
|
}
|
|
710
|
-
function
|
|
711
|
-
return e.type ===
|
|
714
|
+
function Ct(e) {
|
|
715
|
+
return e.type === T.date;
|
|
716
|
+
}
|
|
717
|
+
function Ht(e) {
|
|
718
|
+
return e.type === T.time;
|
|
712
719
|
}
|
|
713
720
|
function At(e) {
|
|
714
|
-
return e.type ===
|
|
721
|
+
return e.type === T.select;
|
|
715
722
|
}
|
|
716
723
|
function Bt(e) {
|
|
717
|
-
return e.type ===
|
|
724
|
+
return e.type === T.plural;
|
|
718
725
|
}
|
|
719
|
-
function
|
|
720
|
-
return e.type ===
|
|
726
|
+
function Dr(e) {
|
|
727
|
+
return e.type === T.pound;
|
|
721
728
|
}
|
|
722
|
-
function
|
|
723
|
-
return e.type ===
|
|
729
|
+
function St(e) {
|
|
730
|
+
return e.type === T.tag;
|
|
724
731
|
}
|
|
725
732
|
function wt(e) {
|
|
726
|
-
return e.type ===
|
|
727
|
-
}
|
|
728
|
-
function Pt(e) {
|
|
729
|
-
return !!(e && typeof e == "object" && e.type === J.number);
|
|
733
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
730
734
|
}
|
|
731
|
-
function
|
|
732
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
735
|
+
function Me(e) {
|
|
736
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
733
737
|
}
|
|
734
|
-
var
|
|
735
|
-
function
|
|
738
|
+
var Ot = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fr = /(?:[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;
|
|
739
|
+
function jr(e) {
|
|
736
740
|
var t = {};
|
|
737
|
-
return e.replace(
|
|
741
|
+
return e.replace(Fr, function(r) {
|
|
738
742
|
var n = r.length;
|
|
739
743
|
switch (r[0]) {
|
|
740
744
|
case "G":
|
|
@@ -823,21 +827,11 @@ function Vr(e) {
|
|
|
823
827
|
return "";
|
|
824
828
|
}), t;
|
|
825
829
|
}
|
|
826
|
-
var
|
|
827
|
-
|
|
828
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
829
|
-
r = arguments[n];
|
|
830
|
-
for (var o in r)
|
|
831
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
832
|
-
}
|
|
833
|
-
return t;
|
|
834
|
-
}, C.apply(this, arguments);
|
|
835
|
-
};
|
|
836
|
-
var Xr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
837
|
-
function zr(e) {
|
|
830
|
+
var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
831
|
+
function Vr(e) {
|
|
838
832
|
if (e.length === 0)
|
|
839
833
|
throw new Error("Number skeleton cannot be empty");
|
|
840
|
-
for (var t = e.split(
|
|
834
|
+
for (var t = e.split(kr).filter(function(f) {
|
|
841
835
|
return f.length > 0;
|
|
842
836
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
843
837
|
var o = i[n], s = o.split("/");
|
|
@@ -852,17 +846,17 @@ function zr(e) {
|
|
|
852
846
|
}
|
|
853
847
|
return r;
|
|
854
848
|
}
|
|
855
|
-
function
|
|
849
|
+
function Xr(e) {
|
|
856
850
|
return e.replace(/^(.*?)-/, "");
|
|
857
851
|
}
|
|
858
|
-
var
|
|
859
|
-
function
|
|
852
|
+
var Ye = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Pt = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Nt = /^(0+)$/;
|
|
853
|
+
function Ke(e) {
|
|
860
854
|
var t = {};
|
|
861
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
855
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Pt, function(r, n, i) {
|
|
862
856
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
863
857
|
}), t;
|
|
864
858
|
}
|
|
865
|
-
function
|
|
859
|
+
function Lt(e) {
|
|
866
860
|
switch (e) {
|
|
867
861
|
case "sign-auto":
|
|
868
862
|
return {
|
|
@@ -902,7 +896,7 @@ function Mt(e) {
|
|
|
902
896
|
};
|
|
903
897
|
}
|
|
904
898
|
}
|
|
905
|
-
function
|
|
899
|
+
function Wr(e) {
|
|
906
900
|
var t;
|
|
907
901
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
908
902
|
notation: "engineering"
|
|
@@ -910,17 +904,17 @@ function Qr(e) {
|
|
|
910
904
|
notation: "scientific"
|
|
911
905
|
}, e = e.slice(1)), t) {
|
|
912
906
|
var r = e.slice(0, 2);
|
|
913
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
907
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nt.test(e))
|
|
914
908
|
throw new Error("Malformed concise eng/scientific notation");
|
|
915
909
|
t.minimumIntegerDigits = e.length;
|
|
916
910
|
}
|
|
917
911
|
return t;
|
|
918
912
|
}
|
|
919
|
-
function
|
|
920
|
-
var t = {}, r =
|
|
913
|
+
function et(e) {
|
|
914
|
+
var t = {}, r = Lt(e);
|
|
921
915
|
return r || t;
|
|
922
916
|
}
|
|
923
|
-
function
|
|
917
|
+
function Zr(e) {
|
|
924
918
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
925
919
|
var i = n[r];
|
|
926
920
|
switch (i.stem) {
|
|
@@ -944,7 +938,7 @@ function Jr(e) {
|
|
|
944
938
|
continue;
|
|
945
939
|
case "measure-unit":
|
|
946
940
|
case "unit":
|
|
947
|
-
t.style = "unit", t.unit =
|
|
941
|
+
t.style = "unit", t.unit = Xr(i.options[0]);
|
|
948
942
|
continue;
|
|
949
943
|
case "compact-short":
|
|
950
944
|
case "K":
|
|
@@ -955,13 +949,13 @@ function Jr(e) {
|
|
|
955
949
|
t.notation = "compact", t.compactDisplay = "long";
|
|
956
950
|
continue;
|
|
957
951
|
case "scientific":
|
|
958
|
-
t =
|
|
959
|
-
return
|
|
952
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
953
|
+
return x(x({}, l), et(a));
|
|
960
954
|
}, {}));
|
|
961
955
|
continue;
|
|
962
956
|
case "engineering":
|
|
963
|
-
t =
|
|
964
|
-
return
|
|
957
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
958
|
+
return x(x({}, l), et(a));
|
|
965
959
|
}, {}));
|
|
966
960
|
continue;
|
|
967
961
|
case "notation-simple":
|
|
@@ -1006,7 +1000,7 @@ function Jr(e) {
|
|
|
1006
1000
|
case "integer-width":
|
|
1007
1001
|
if (i.options.length > 1)
|
|
1008
1002
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1009
|
-
i.options[0].replace(
|
|
1003
|
+
i.options[0].replace(zr, function(l, a, h, c, f, p) {
|
|
1010
1004
|
if (a)
|
|
1011
1005
|
t.minimumIntegerDigits = h.length;
|
|
1012
1006
|
else {
|
|
@@ -1019,32 +1013,32 @@ function Jr(e) {
|
|
|
1019
1013
|
});
|
|
1020
1014
|
continue;
|
|
1021
1015
|
}
|
|
1022
|
-
if (
|
|
1016
|
+
if (Nt.test(i.stem)) {
|
|
1023
1017
|
t.minimumIntegerDigits = i.stem.length;
|
|
1024
1018
|
continue;
|
|
1025
1019
|
}
|
|
1026
|
-
if (
|
|
1020
|
+
if (Ye.test(i.stem)) {
|
|
1027
1021
|
if (i.options.length > 1)
|
|
1028
1022
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1029
|
-
i.stem.replace(
|
|
1023
|
+
i.stem.replace(Ye, function(l, a, h, c, f, p) {
|
|
1030
1024
|
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1031
1025
|
});
|
|
1032
1026
|
var o = i.options[0];
|
|
1033
|
-
o === "w" ? t =
|
|
1027
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), Ke(o)));
|
|
1034
1028
|
continue;
|
|
1035
1029
|
}
|
|
1036
|
-
if (
|
|
1037
|
-
t =
|
|
1030
|
+
if (Pt.test(i.stem)) {
|
|
1031
|
+
t = x(x({}, t), Ke(i.stem));
|
|
1038
1032
|
continue;
|
|
1039
1033
|
}
|
|
1040
|
-
var s =
|
|
1041
|
-
s && (t =
|
|
1042
|
-
var u =
|
|
1043
|
-
u && (t =
|
|
1034
|
+
var s = Lt(i.stem);
|
|
1035
|
+
s && (t = x(x({}, t), s));
|
|
1036
|
+
var u = Wr(i.stem);
|
|
1037
|
+
u && (t = x(x({}, t), u));
|
|
1044
1038
|
}
|
|
1045
1039
|
return t;
|
|
1046
1040
|
}
|
|
1047
|
-
var
|
|
1041
|
+
var ce = {
|
|
1048
1042
|
"001": [
|
|
1049
1043
|
"H",
|
|
1050
1044
|
"h"
|
|
@@ -2459,13 +2453,13 @@ var ge = {
|
|
|
2459
2453
|
"h"
|
|
2460
2454
|
]
|
|
2461
2455
|
};
|
|
2462
|
-
function
|
|
2456
|
+
function Qr(e, t) {
|
|
2463
2457
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2464
2458
|
var i = e.charAt(n);
|
|
2465
2459
|
if (i === "j") {
|
|
2466
2460
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2467
2461
|
o++, n++;
|
|
2468
|
-
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a =
|
|
2462
|
+
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = Jr(t);
|
|
2469
2463
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2470
2464
|
r += l;
|
|
2471
2465
|
for (; s-- > 0; )
|
|
@@ -2475,7 +2469,7 @@ function qr(e, t) {
|
|
|
2475
2469
|
}
|
|
2476
2470
|
return r;
|
|
2477
2471
|
}
|
|
2478
|
-
function
|
|
2472
|
+
function Jr(e) {
|
|
2479
2473
|
var t = e.hourCycle;
|
|
2480
2474
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2481
2475
|
e.hourCycles && // @ts-ignore
|
|
@@ -2494,23 +2488,23 @@ function Yr(e) {
|
|
|
2494
2488
|
}
|
|
2495
2489
|
var r = e.language, n;
|
|
2496
2490
|
r !== "root" && (n = e.maximize().region);
|
|
2497
|
-
var i =
|
|
2491
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2498
2492
|
return i[0];
|
|
2499
2493
|
}
|
|
2500
|
-
var
|
|
2501
|
-
function
|
|
2494
|
+
var Se, qr = new RegExp("^".concat(Ot.source, "*")), Yr = new RegExp("".concat(Ot.source, "*$"));
|
|
2495
|
+
function y(e, t) {
|
|
2502
2496
|
return { start: e, end: t };
|
|
2503
2497
|
}
|
|
2504
|
-
var
|
|
2498
|
+
var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), en = !!String.fromCodePoint, tn = !!Object.fromEntries, rn = !!String.prototype.codePointAt, nn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, an = sn ? Number.isSafeInteger : function(e) {
|
|
2505
2499
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2506
|
-
},
|
|
2500
|
+
}, $e = !0;
|
|
2507
2501
|
try {
|
|
2508
|
-
var
|
|
2509
|
-
|
|
2502
|
+
var un = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2503
|
+
$e = ((Se = un.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
2510
2504
|
} catch {
|
|
2511
|
-
|
|
2505
|
+
$e = !1;
|
|
2512
2506
|
}
|
|
2513
|
-
var
|
|
2507
|
+
var tt = Kr ? (
|
|
2514
2508
|
// Native
|
|
2515
2509
|
function(t, r, n) {
|
|
2516
2510
|
return t.startsWith(r, n);
|
|
@@ -2520,7 +2514,7 @@ var nt = tn ? (
|
|
|
2520
2514
|
function(t, r, n) {
|
|
2521
2515
|
return t.slice(n, n + r.length) === r;
|
|
2522
2516
|
}
|
|
2523
|
-
),
|
|
2517
|
+
), Re = en ? String.fromCodePoint : (
|
|
2524
2518
|
// IE11
|
|
2525
2519
|
function() {
|
|
2526
2520
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2532,9 +2526,9 @@ var nt = tn ? (
|
|
|
2532
2526
|
}
|
|
2533
2527
|
return n;
|
|
2534
2528
|
}
|
|
2535
|
-
),
|
|
2529
|
+
), rt = (
|
|
2536
2530
|
// native
|
|
2537
|
-
|
|
2531
|
+
tn ? Object.fromEntries : (
|
|
2538
2532
|
// Ponyfill
|
|
2539
2533
|
function(t) {
|
|
2540
2534
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2544,7 +2538,7 @@ var nt = tn ? (
|
|
|
2544
2538
|
return r;
|
|
2545
2539
|
}
|
|
2546
2540
|
)
|
|
2547
|
-
),
|
|
2541
|
+
), It = rn ? (
|
|
2548
2542
|
// Native
|
|
2549
2543
|
function(t, r) {
|
|
2550
2544
|
return t.codePointAt(r);
|
|
@@ -2558,7 +2552,7 @@ var nt = tn ? (
|
|
|
2558
2552
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2559
2553
|
}
|
|
2560
2554
|
}
|
|
2561
|
-
),
|
|
2555
|
+
), hn = nn ? (
|
|
2562
2556
|
// Native
|
|
2563
2557
|
function(t) {
|
|
2564
2558
|
return t.trimStart();
|
|
@@ -2566,9 +2560,9 @@ var nt = tn ? (
|
|
|
2566
2560
|
) : (
|
|
2567
2561
|
// Ponyfill
|
|
2568
2562
|
function(t) {
|
|
2569
|
-
return t.replace(
|
|
2563
|
+
return t.replace(qr, "");
|
|
2570
2564
|
}
|
|
2571
|
-
),
|
|
2565
|
+
), ln = on ? (
|
|
2572
2566
|
// Native
|
|
2573
2567
|
function(t) {
|
|
2574
2568
|
return t.trimEnd();
|
|
@@ -2576,32 +2570,32 @@ var nt = tn ? (
|
|
|
2576
2570
|
) : (
|
|
2577
2571
|
// Ponyfill
|
|
2578
2572
|
function(t) {
|
|
2579
|
-
return t.replace(
|
|
2573
|
+
return t.replace(Yr, "");
|
|
2580
2574
|
}
|
|
2581
2575
|
);
|
|
2582
|
-
function
|
|
2576
|
+
function Mt(e, t) {
|
|
2583
2577
|
return new RegExp(e, t);
|
|
2584
2578
|
}
|
|
2585
|
-
var
|
|
2586
|
-
if (
|
|
2587
|
-
var
|
|
2588
|
-
|
|
2579
|
+
var Ue;
|
|
2580
|
+
if ($e) {
|
|
2581
|
+
var nt = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2582
|
+
Ue = function(t, r) {
|
|
2589
2583
|
var n;
|
|
2590
|
-
|
|
2591
|
-
var i =
|
|
2584
|
+
nt.lastIndex = r;
|
|
2585
|
+
var i = nt.exec(t);
|
|
2592
2586
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2593
2587
|
};
|
|
2594
2588
|
} else
|
|
2595
|
-
|
|
2589
|
+
Ue = function(t, r) {
|
|
2596
2590
|
for (var n = []; ; ) {
|
|
2597
|
-
var i =
|
|
2598
|
-
if (i === void 0 ||
|
|
2591
|
+
var i = It(t, r);
|
|
2592
|
+
if (i === void 0 || $t(i) || mn(i))
|
|
2599
2593
|
break;
|
|
2600
2594
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2601
2595
|
}
|
|
2602
|
-
return
|
|
2596
|
+
return Re.apply(void 0, n);
|
|
2603
2597
|
};
|
|
2604
|
-
var
|
|
2598
|
+
var fn = (
|
|
2605
2599
|
/** @class */
|
|
2606
2600
|
function() {
|
|
2607
2601
|
function e(t, r) {
|
|
@@ -2625,14 +2619,14 @@ var gn = (
|
|
|
2625
2619
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2626
2620
|
var u = this.clonePosition();
|
|
2627
2621
|
this.bump(), i.push({
|
|
2628
|
-
type:
|
|
2629
|
-
location:
|
|
2622
|
+
type: T.pound,
|
|
2623
|
+
location: y(u, this.clonePosition())
|
|
2630
2624
|
});
|
|
2631
2625
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2632
2626
|
if (n)
|
|
2633
2627
|
break;
|
|
2634
|
-
return this.error(
|
|
2635
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2628
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2629
|
+
} else if (o === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
2636
2630
|
var s = this.parseTag(t, r);
|
|
2637
2631
|
if (s.err)
|
|
2638
2632
|
return s;
|
|
@@ -2653,9 +2647,9 @@ var gn = (
|
|
|
2653
2647
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2654
2648
|
return {
|
|
2655
2649
|
val: {
|
|
2656
|
-
type:
|
|
2650
|
+
type: T.literal,
|
|
2657
2651
|
value: "<".concat(i, "/>"),
|
|
2658
|
-
location:
|
|
2652
|
+
location: y(n, this.clonePosition())
|
|
2659
2653
|
},
|
|
2660
2654
|
err: null
|
|
2661
2655
|
};
|
|
@@ -2665,25 +2659,25 @@ var gn = (
|
|
|
2665
2659
|
return o;
|
|
2666
2660
|
var s = o.val, u = this.clonePosition();
|
|
2667
2661
|
if (this.bumpIf("</")) {
|
|
2668
|
-
if (this.isEOF() || !
|
|
2669
|
-
return this.error(
|
|
2662
|
+
if (this.isEOF() || !Ge(this.char()))
|
|
2663
|
+
return this.error(_.INVALID_TAG, y(u, this.clonePosition()));
|
|
2670
2664
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2671
|
-
return i !== a ? this.error(
|
|
2665
|
+
return i !== a ? this.error(_.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2672
2666
|
val: {
|
|
2673
|
-
type:
|
|
2667
|
+
type: T.tag,
|
|
2674
2668
|
value: i,
|
|
2675
2669
|
children: s,
|
|
2676
|
-
location:
|
|
2670
|
+
location: y(n, this.clonePosition())
|
|
2677
2671
|
},
|
|
2678
2672
|
err: null
|
|
2679
|
-
} : this.error(
|
|
2673
|
+
} : this.error(_.INVALID_TAG, y(u, this.clonePosition())));
|
|
2680
2674
|
} else
|
|
2681
|
-
return this.error(
|
|
2675
|
+
return this.error(_.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2682
2676
|
} else
|
|
2683
|
-
return this.error(
|
|
2677
|
+
return this.error(_.INVALID_TAG, y(n, this.clonePosition()));
|
|
2684
2678
|
}, e.prototype.parseTagName = function() {
|
|
2685
2679
|
var t = this.offset();
|
|
2686
|
-
for (this.bump(); !this.isEOF() &&
|
|
2680
|
+
for (this.bump(); !this.isEOF() && gn(this.char()); )
|
|
2687
2681
|
this.bump();
|
|
2688
2682
|
return this.message.slice(t, this.offset());
|
|
2689
2683
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2705,14 +2699,14 @@ var gn = (
|
|
|
2705
2699
|
}
|
|
2706
2700
|
break;
|
|
2707
2701
|
}
|
|
2708
|
-
var l =
|
|
2702
|
+
var l = y(n, this.clonePosition());
|
|
2709
2703
|
return {
|
|
2710
|
-
val: { type:
|
|
2704
|
+
val: { type: T.literal, value: i, location: l },
|
|
2711
2705
|
err: null
|
|
2712
2706
|
};
|
|
2713
2707
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2714
2708
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2715
|
-
!
|
|
2709
|
+
!cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2716
2710
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2717
2711
|
if (this.isEOF() || this.char() !== 39)
|
|
2718
2712
|
return null;
|
|
@@ -2746,49 +2740,49 @@ var gn = (
|
|
|
2746
2740
|
r.push(n);
|
|
2747
2741
|
this.bump();
|
|
2748
2742
|
}
|
|
2749
|
-
return
|
|
2743
|
+
return Re.apply(void 0, r);
|
|
2750
2744
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2751
2745
|
if (this.isEOF())
|
|
2752
2746
|
return null;
|
|
2753
2747
|
var n = this.char();
|
|
2754
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2748
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
2755
2749
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2756
2750
|
var n = this.clonePosition();
|
|
2757
2751
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2758
|
-
return this.error(
|
|
2752
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2759
2753
|
if (this.char() === 125)
|
|
2760
|
-
return this.bump(), this.error(
|
|
2754
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
2761
2755
|
var i = this.parseIdentifierIfPossible().value;
|
|
2762
2756
|
if (!i)
|
|
2763
|
-
return this.error(
|
|
2757
|
+
return this.error(_.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2764
2758
|
if (this.bumpSpace(), this.isEOF())
|
|
2765
|
-
return this.error(
|
|
2759
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2766
2760
|
switch (this.char()) {
|
|
2767
2761
|
case 125:
|
|
2768
2762
|
return this.bump(), {
|
|
2769
2763
|
val: {
|
|
2770
|
-
type:
|
|
2764
|
+
type: T.argument,
|
|
2771
2765
|
// value does not include the opening and closing braces.
|
|
2772
2766
|
value: i,
|
|
2773
|
-
location:
|
|
2767
|
+
location: y(n, this.clonePosition())
|
|
2774
2768
|
},
|
|
2775
2769
|
err: null
|
|
2776
2770
|
};
|
|
2777
2771
|
case 44:
|
|
2778
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2772
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2779
2773
|
default:
|
|
2780
|
-
return this.error(
|
|
2774
|
+
return this.error(_.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2781
2775
|
}
|
|
2782
2776
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2783
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2777
|
+
var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
|
|
2784
2778
|
this.bumpTo(i);
|
|
2785
|
-
var o = this.clonePosition(), s =
|
|
2779
|
+
var o = this.clonePosition(), s = y(t, o);
|
|
2786
2780
|
return { value: n, location: s };
|
|
2787
2781
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2788
2782
|
var o, s = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2789
2783
|
switch (u) {
|
|
2790
2784
|
case "":
|
|
2791
|
-
return this.error(
|
|
2785
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, y(s, l));
|
|
2792
2786
|
case "number":
|
|
2793
2787
|
case "date":
|
|
2794
2788
|
case "time": {
|
|
@@ -2799,44 +2793,44 @@ var gn = (
|
|
|
2799
2793
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2800
2794
|
if (c.err)
|
|
2801
2795
|
return c;
|
|
2802
|
-
var f =
|
|
2796
|
+
var f = ln(c.val);
|
|
2803
2797
|
if (f.length === 0)
|
|
2804
|
-
return this.error(
|
|
2805
|
-
var p =
|
|
2798
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2799
|
+
var p = y(h, this.clonePosition());
|
|
2806
2800
|
a = { style: f, styleLocation: p };
|
|
2807
2801
|
}
|
|
2808
2802
|
var d = this.tryParseArgumentClose(i);
|
|
2809
2803
|
if (d.err)
|
|
2810
2804
|
return d;
|
|
2811
|
-
var g =
|
|
2812
|
-
if (a &&
|
|
2813
|
-
var E =
|
|
2805
|
+
var g = y(i, this.clonePosition());
|
|
2806
|
+
if (a && tt(a?.style, "::", 0)) {
|
|
2807
|
+
var E = hn(a.style.slice(2));
|
|
2814
2808
|
if (u === "number") {
|
|
2815
2809
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2816
2810
|
return c.err ? c : {
|
|
2817
|
-
val: { type:
|
|
2811
|
+
val: { type: T.number, value: n, location: g, style: c.val },
|
|
2818
2812
|
err: null
|
|
2819
2813
|
};
|
|
2820
2814
|
} else {
|
|
2821
2815
|
if (E.length === 0)
|
|
2822
|
-
return this.error(
|
|
2816
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
2823
2817
|
var m = E;
|
|
2824
|
-
this.locale && (m =
|
|
2818
|
+
this.locale && (m = Qr(E, this.locale));
|
|
2825
2819
|
var f = {
|
|
2826
|
-
type:
|
|
2820
|
+
type: Q.dateTime,
|
|
2827
2821
|
pattern: m,
|
|
2828
2822
|
location: a.styleLocation,
|
|
2829
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2830
|
-
},
|
|
2823
|
+
parsedOptions: this.shouldParseSkeletons ? jr(m) : {}
|
|
2824
|
+
}, C = u === "date" ? T.date : T.time;
|
|
2831
2825
|
return {
|
|
2832
|
-
val: { type:
|
|
2826
|
+
val: { type: C, value: n, location: g, style: f },
|
|
2833
2827
|
err: null
|
|
2834
2828
|
};
|
|
2835
2829
|
}
|
|
2836
2830
|
}
|
|
2837
2831
|
return {
|
|
2838
2832
|
val: {
|
|
2839
|
-
type: u === "number" ?
|
|
2833
|
+
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2840
2834
|
value: n,
|
|
2841
2835
|
location: g,
|
|
2842
2836
|
style: (o = a?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2847,41 +2841,41 @@ var gn = (
|
|
|
2847
2841
|
case "plural":
|
|
2848
2842
|
case "selectordinal":
|
|
2849
2843
|
case "select": {
|
|
2850
|
-
var
|
|
2844
|
+
var A = this.clonePosition();
|
|
2851
2845
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2852
|
-
return this.error(
|
|
2846
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, y(A, x({}, A)));
|
|
2853
2847
|
this.bumpSpace();
|
|
2854
|
-
var
|
|
2855
|
-
if (u !== "select" &&
|
|
2848
|
+
var O = this.parseIdentifierIfPossible(), B = 0;
|
|
2849
|
+
if (u !== "select" && O.value === "offset") {
|
|
2856
2850
|
if (!this.bumpIf(":"))
|
|
2857
|
-
return this.error(
|
|
2851
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2858
2852
|
this.bumpSpace();
|
|
2859
|
-
var c = this.tryParseDecimalInteger(
|
|
2853
|
+
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2860
2854
|
if (c.err)
|
|
2861
2855
|
return c;
|
|
2862
|
-
this.bumpSpace(),
|
|
2856
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), B = c.val;
|
|
2863
2857
|
}
|
|
2864
|
-
var H = this.tryParsePluralOrSelectOptions(t, u, r,
|
|
2858
|
+
var H = this.tryParsePluralOrSelectOptions(t, u, r, O);
|
|
2865
2859
|
if (H.err)
|
|
2866
2860
|
return H;
|
|
2867
2861
|
var d = this.tryParseArgumentClose(i);
|
|
2868
2862
|
if (d.err)
|
|
2869
2863
|
return d;
|
|
2870
|
-
var P =
|
|
2864
|
+
var P = y(i, this.clonePosition());
|
|
2871
2865
|
return u === "select" ? {
|
|
2872
2866
|
val: {
|
|
2873
|
-
type:
|
|
2867
|
+
type: T.select,
|
|
2874
2868
|
value: n,
|
|
2875
|
-
options:
|
|
2869
|
+
options: rt(H.val),
|
|
2876
2870
|
location: P
|
|
2877
2871
|
},
|
|
2878
2872
|
err: null
|
|
2879
2873
|
} : {
|
|
2880
2874
|
val: {
|
|
2881
|
-
type:
|
|
2875
|
+
type: T.plural,
|
|
2882
2876
|
value: n,
|
|
2883
|
-
options:
|
|
2884
|
-
offset:
|
|
2877
|
+
options: rt(H.val),
|
|
2878
|
+
offset: B,
|
|
2885
2879
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2886
2880
|
location: P
|
|
2887
2881
|
},
|
|
@@ -2889,10 +2883,10 @@ var gn = (
|
|
|
2889
2883
|
};
|
|
2890
2884
|
}
|
|
2891
2885
|
default:
|
|
2892
|
-
return this.error(
|
|
2886
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, y(s, l));
|
|
2893
2887
|
}
|
|
2894
2888
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2895
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2889
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2896
2890
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2897
2891
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2898
2892
|
var n = this.char();
|
|
@@ -2901,7 +2895,7 @@ var gn = (
|
|
|
2901
2895
|
this.bump();
|
|
2902
2896
|
var i = this.clonePosition();
|
|
2903
2897
|
if (!this.bumpUntil("'"))
|
|
2904
|
-
return this.error(
|
|
2898
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
2905
2899
|
this.bump();
|
|
2906
2900
|
break;
|
|
2907
2901
|
}
|
|
@@ -2931,16 +2925,16 @@ var gn = (
|
|
|
2931
2925
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2932
2926
|
var n = [];
|
|
2933
2927
|
try {
|
|
2934
|
-
n =
|
|
2928
|
+
n = Vr(t);
|
|
2935
2929
|
} catch {
|
|
2936
|
-
return this.error(
|
|
2930
|
+
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
2937
2931
|
}
|
|
2938
2932
|
return {
|
|
2939
2933
|
val: {
|
|
2940
|
-
type:
|
|
2934
|
+
type: Q.number,
|
|
2941
2935
|
tokens: n,
|
|
2942
2936
|
location: r,
|
|
2943
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2937
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
|
|
2944
2938
|
},
|
|
2945
2939
|
err: null
|
|
2946
2940
|
};
|
|
@@ -2949,19 +2943,19 @@ var gn = (
|
|
|
2949
2943
|
if (a.length === 0) {
|
|
2950
2944
|
var c = this.clonePosition();
|
|
2951
2945
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2952
|
-
var f = this.tryParseDecimalInteger(
|
|
2946
|
+
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2953
2947
|
if (f.err)
|
|
2954
2948
|
return f;
|
|
2955
|
-
h =
|
|
2949
|
+
h = y(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
2956
2950
|
} else
|
|
2957
2951
|
break;
|
|
2958
2952
|
}
|
|
2959
2953
|
if (l.has(a))
|
|
2960
|
-
return this.error(r === "select" ?
|
|
2954
|
+
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2961
2955
|
a === "other" && (s = !0), this.bumpSpace();
|
|
2962
2956
|
var p = this.clonePosition();
|
|
2963
2957
|
if (!this.bumpIf("{"))
|
|
2964
|
-
return this.error(r === "select" ?
|
|
2958
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
2965
2959
|
var d = this.parseMessage(t + 1, r, n);
|
|
2966
2960
|
if (d.err)
|
|
2967
2961
|
return d;
|
|
@@ -2972,11 +2966,11 @@ var gn = (
|
|
|
2972
2966
|
a,
|
|
2973
2967
|
{
|
|
2974
2968
|
value: d.val,
|
|
2975
|
-
location:
|
|
2969
|
+
location: y(p, this.clonePosition())
|
|
2976
2970
|
}
|
|
2977
2971
|
]), l.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, h = o.location;
|
|
2978
2972
|
}
|
|
2979
|
-
return u.length === 0 ? this.error(r === "select" ?
|
|
2973
|
+
return u.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(_.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
2980
2974
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2981
2975
|
var n = 1, i = this.clonePosition();
|
|
2982
2976
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2987,8 +2981,8 @@ var gn = (
|
|
|
2987
2981
|
else
|
|
2988
2982
|
break;
|
|
2989
2983
|
}
|
|
2990
|
-
var l =
|
|
2991
|
-
return o ? (s *= n,
|
|
2984
|
+
var l = y(i, this.clonePosition());
|
|
2985
|
+
return o ? (s *= n, an(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2992
2986
|
}, e.prototype.offset = function() {
|
|
2993
2987
|
return this.position.offset;
|
|
2994
2988
|
}, e.prototype.isEOF = function() {
|
|
@@ -3003,7 +2997,7 @@ var gn = (
|
|
|
3003
2997
|
var t = this.position.offset;
|
|
3004
2998
|
if (t >= this.message.length)
|
|
3005
2999
|
throw Error("out of bound");
|
|
3006
|
-
var r =
|
|
3000
|
+
var r = It(this.message, t);
|
|
3007
3001
|
if (r === void 0)
|
|
3008
3002
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3009
3003
|
return r;
|
|
@@ -3022,7 +3016,7 @@ var gn = (
|
|
|
3022
3016
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3023
3017
|
}
|
|
3024
3018
|
}, e.prototype.bumpIf = function(t) {
|
|
3025
|
-
if (
|
|
3019
|
+
if (tt(this.message, t, this.offset())) {
|
|
3026
3020
|
for (var r = 0; r < t.length; r++)
|
|
3027
3021
|
this.bump();
|
|
3028
3022
|
return !0;
|
|
@@ -3044,7 +3038,7 @@ var gn = (
|
|
|
3044
3038
|
break;
|
|
3045
3039
|
}
|
|
3046
3040
|
}, e.prototype.bumpSpace = function() {
|
|
3047
|
-
for (; !this.isEOF() &&
|
|
3041
|
+
for (; !this.isEOF() && $t(this.char()); )
|
|
3048
3042
|
this.bump();
|
|
3049
3043
|
}, e.prototype.peek = function() {
|
|
3050
3044
|
if (this.isEOF())
|
|
@@ -3054,47 +3048,47 @@ var gn = (
|
|
|
3054
3048
|
}, e;
|
|
3055
3049
|
}()
|
|
3056
3050
|
);
|
|
3057
|
-
function
|
|
3051
|
+
function Ge(e) {
|
|
3058
3052
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3059
3053
|
}
|
|
3060
|
-
function
|
|
3061
|
-
return
|
|
3054
|
+
function cn(e) {
|
|
3055
|
+
return Ge(e) || e === 47;
|
|
3062
3056
|
}
|
|
3063
|
-
function
|
|
3057
|
+
function gn(e) {
|
|
3064
3058
|
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;
|
|
3065
3059
|
}
|
|
3066
|
-
function
|
|
3060
|
+
function $t(e) {
|
|
3067
3061
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3068
3062
|
}
|
|
3069
|
-
function
|
|
3063
|
+
function mn(e) {
|
|
3070
3064
|
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;
|
|
3071
3065
|
}
|
|
3072
|
-
function
|
|
3066
|
+
function De(e) {
|
|
3073
3067
|
e.forEach(function(t) {
|
|
3074
|
-
if (delete t.location,
|
|
3068
|
+
if (delete t.location, At(t) || Bt(t))
|
|
3075
3069
|
for (var r in t.options)
|
|
3076
|
-
delete t.options[r].location,
|
|
3070
|
+
delete t.options[r].location, De(t.options[r].value);
|
|
3077
3071
|
else
|
|
3078
|
-
|
|
3072
|
+
Tt(t) && wt(t.style) || (Ct(t) || Ht(t)) && Me(t.style) ? delete t.style.location : St(t) && De(t.children);
|
|
3079
3073
|
});
|
|
3080
3074
|
}
|
|
3081
|
-
function
|
|
3082
|
-
t === void 0 && (t = {}), t =
|
|
3083
|
-
var r = new
|
|
3075
|
+
function pn(e, t) {
|
|
3076
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3077
|
+
var r = new fn(e, t).parse();
|
|
3084
3078
|
if (r.err) {
|
|
3085
|
-
var n = SyntaxError(
|
|
3079
|
+
var n = SyntaxError(_[r.err.kind]);
|
|
3086
3080
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3087
3081
|
}
|
|
3088
|
-
return t?.captureLocation ||
|
|
3082
|
+
return t?.captureLocation || De(r.val), r.val;
|
|
3089
3083
|
}
|
|
3090
|
-
var
|
|
3084
|
+
var J;
|
|
3091
3085
|
(function(e) {
|
|
3092
3086
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3093
|
-
})(
|
|
3094
|
-
var
|
|
3087
|
+
})(J || (J = {}));
|
|
3088
|
+
var Ee = (
|
|
3095
3089
|
/** @class */
|
|
3096
3090
|
function(e) {
|
|
3097
|
-
|
|
3091
|
+
xe(t, e);
|
|
3098
3092
|
function t(r, n, i) {
|
|
3099
3093
|
var o = e.call(this, r) || this;
|
|
3100
3094
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3103,155 +3097,155 @@ var Te = (
|
|
|
3103
3097
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3104
3098
|
}, t;
|
|
3105
3099
|
}(Error)
|
|
3106
|
-
),
|
|
3100
|
+
), it = (
|
|
3107
3101
|
/** @class */
|
|
3108
3102
|
function(e) {
|
|
3109
|
-
|
|
3103
|
+
xe(t, e);
|
|
3110
3104
|
function t(r, n, i, o) {
|
|
3111
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3105
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, o) || this;
|
|
3112
3106
|
}
|
|
3113
3107
|
return t;
|
|
3114
|
-
}(
|
|
3115
|
-
),
|
|
3108
|
+
}(Ee)
|
|
3109
|
+
), dn = (
|
|
3116
3110
|
/** @class */
|
|
3117
3111
|
function(e) {
|
|
3118
|
-
|
|
3112
|
+
xe(t, e);
|
|
3119
3113
|
function t(r, n, i) {
|
|
3120
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3114
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3121
3115
|
}
|
|
3122
3116
|
return t;
|
|
3123
|
-
}(
|
|
3124
|
-
),
|
|
3117
|
+
}(Ee)
|
|
3118
|
+
), bn = (
|
|
3125
3119
|
/** @class */
|
|
3126
3120
|
function(e) {
|
|
3127
|
-
|
|
3121
|
+
xe(t, e);
|
|
3128
3122
|
function t(r, n) {
|
|
3129
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3123
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3130
3124
|
}
|
|
3131
3125
|
return t;
|
|
3132
|
-
}(
|
|
3133
|
-
),
|
|
3126
|
+
}(Ee)
|
|
3127
|
+
), w;
|
|
3134
3128
|
(function(e) {
|
|
3135
3129
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3136
|
-
})(
|
|
3137
|
-
function
|
|
3130
|
+
})(w || (w = {}));
|
|
3131
|
+
function _n(e) {
|
|
3138
3132
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3139
3133
|
var n = t[t.length - 1];
|
|
3140
|
-
return !n || n.type !==
|
|
3134
|
+
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3141
3135
|
}, []);
|
|
3142
3136
|
}
|
|
3143
|
-
function
|
|
3137
|
+
function yn(e) {
|
|
3144
3138
|
return typeof e == "function";
|
|
3145
3139
|
}
|
|
3146
|
-
function
|
|
3147
|
-
if (e.length === 1 &&
|
|
3140
|
+
function me(e, t, r, n, i, o, s) {
|
|
3141
|
+
if (e.length === 1 && qe(e[0]))
|
|
3148
3142
|
return [
|
|
3149
3143
|
{
|
|
3150
|
-
type:
|
|
3144
|
+
type: w.literal,
|
|
3151
3145
|
value: e[0].value
|
|
3152
3146
|
}
|
|
3153
3147
|
];
|
|
3154
3148
|
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
3155
3149
|
var h = a[l];
|
|
3156
|
-
if (
|
|
3150
|
+
if (qe(h)) {
|
|
3157
3151
|
u.push({
|
|
3158
|
-
type:
|
|
3152
|
+
type: w.literal,
|
|
3159
3153
|
value: h.value
|
|
3160
3154
|
});
|
|
3161
3155
|
continue;
|
|
3162
3156
|
}
|
|
3163
|
-
if (
|
|
3157
|
+
if (Dr(h)) {
|
|
3164
3158
|
typeof o == "number" && u.push({
|
|
3165
|
-
type:
|
|
3159
|
+
type: w.literal,
|
|
3166
3160
|
value: r.getNumberFormat(t).format(o)
|
|
3167
3161
|
});
|
|
3168
3162
|
continue;
|
|
3169
3163
|
}
|
|
3170
3164
|
var c = h.value;
|
|
3171
3165
|
if (!(i && c in i))
|
|
3172
|
-
throw new
|
|
3166
|
+
throw new bn(c, s);
|
|
3173
3167
|
var f = i[c];
|
|
3174
|
-
if (
|
|
3168
|
+
if (Gr(h)) {
|
|
3175
3169
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3176
|
-
type: typeof f == "string" ?
|
|
3170
|
+
type: typeof f == "string" ? w.literal : w.object,
|
|
3177
3171
|
value: f
|
|
3178
3172
|
});
|
|
3179
3173
|
continue;
|
|
3180
3174
|
}
|
|
3181
|
-
if (
|
|
3182
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3175
|
+
if (Ct(h)) {
|
|
3176
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Me(h.style) ? h.style.parsedOptions : void 0;
|
|
3183
3177
|
u.push({
|
|
3184
|
-
type:
|
|
3178
|
+
type: w.literal,
|
|
3185
3179
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3186
3180
|
});
|
|
3187
3181
|
continue;
|
|
3188
3182
|
}
|
|
3189
|
-
if (
|
|
3190
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3183
|
+
if (Ht(h)) {
|
|
3184
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Me(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3191
3185
|
u.push({
|
|
3192
|
-
type:
|
|
3186
|
+
type: w.literal,
|
|
3193
3187
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3194
3188
|
});
|
|
3195
3189
|
continue;
|
|
3196
3190
|
}
|
|
3197
|
-
if (
|
|
3198
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3191
|
+
if (Tt(h)) {
|
|
3192
|
+
var p = typeof h.style == "string" ? n.number[h.style] : wt(h.style) ? h.style.parsedOptions : void 0;
|
|
3199
3193
|
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3200
|
-
type:
|
|
3194
|
+
type: w.literal,
|
|
3201
3195
|
value: r.getNumberFormat(t, p).format(f)
|
|
3202
3196
|
});
|
|
3203
3197
|
continue;
|
|
3204
3198
|
}
|
|
3205
|
-
if (
|
|
3199
|
+
if (St(h)) {
|
|
3206
3200
|
var d = h.children, g = h.value, E = i[g];
|
|
3207
|
-
if (!
|
|
3208
|
-
throw new
|
|
3209
|
-
var m =
|
|
3210
|
-
return
|
|
3201
|
+
if (!yn(E))
|
|
3202
|
+
throw new dn(g, "function", s);
|
|
3203
|
+
var m = me(d, t, r, n, i, o), C = E(m.map(function(B) {
|
|
3204
|
+
return B.value;
|
|
3211
3205
|
}));
|
|
3212
|
-
Array.isArray(
|
|
3206
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
|
|
3213
3207
|
return {
|
|
3214
|
-
type: typeof
|
|
3215
|
-
value:
|
|
3208
|
+
type: typeof B == "string" ? w.literal : w.object,
|
|
3209
|
+
value: B
|
|
3216
3210
|
};
|
|
3217
3211
|
}));
|
|
3218
3212
|
}
|
|
3219
|
-
if (
|
|
3220
|
-
var
|
|
3221
|
-
if (!
|
|
3222
|
-
throw new
|
|
3223
|
-
u.push.apply(u,
|
|
3213
|
+
if (At(h)) {
|
|
3214
|
+
var A = h.options[f] || h.options.other;
|
|
3215
|
+
if (!A)
|
|
3216
|
+
throw new it(h.value, f, Object.keys(h.options), s);
|
|
3217
|
+
u.push.apply(u, me(A.value, t, r, n, i));
|
|
3224
3218
|
continue;
|
|
3225
3219
|
}
|
|
3226
|
-
if (
|
|
3227
|
-
var
|
|
3228
|
-
if (!
|
|
3220
|
+
if (Bt(h)) {
|
|
3221
|
+
var A = h.options["=".concat(f)];
|
|
3222
|
+
if (!A) {
|
|
3229
3223
|
if (!Intl.PluralRules)
|
|
3230
|
-
throw new
|
|
3224
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3231
3225
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3232
|
-
`,
|
|
3233
|
-
var
|
|
3234
|
-
|
|
3226
|
+
`, J.MISSING_INTL_API, s);
|
|
3227
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3228
|
+
A = h.options[O] || h.options.other;
|
|
3235
3229
|
}
|
|
3236
|
-
if (!
|
|
3237
|
-
throw new
|
|
3238
|
-
u.push.apply(u,
|
|
3230
|
+
if (!A)
|
|
3231
|
+
throw new it(h.value, f, Object.keys(h.options), s);
|
|
3232
|
+
u.push.apply(u, me(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3239
3233
|
continue;
|
|
3240
3234
|
}
|
|
3241
3235
|
}
|
|
3242
|
-
return
|
|
3236
|
+
return _n(u);
|
|
3243
3237
|
}
|
|
3244
|
-
function
|
|
3245
|
-
return t ?
|
|
3246
|
-
return r[n] =
|
|
3238
|
+
function xn(e, t) {
|
|
3239
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3240
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3247
3241
|
}, {})) : e;
|
|
3248
3242
|
}
|
|
3249
|
-
function
|
|
3243
|
+
function En(e, t) {
|
|
3250
3244
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3251
|
-
return r[n] =
|
|
3252
|
-
},
|
|
3245
|
+
return r[n] = xn(e[n], t[n]), r;
|
|
3246
|
+
}, x({}, e)) : e;
|
|
3253
3247
|
}
|
|
3254
|
-
function
|
|
3248
|
+
function we(e) {
|
|
3255
3249
|
return {
|
|
3256
3250
|
create: function() {
|
|
3257
3251
|
return {
|
|
@@ -3265,39 +3259,39 @@ function Pe(e) {
|
|
|
3265
3259
|
}
|
|
3266
3260
|
};
|
|
3267
3261
|
}
|
|
3268
|
-
function
|
|
3262
|
+
function vn(e) {
|
|
3269
3263
|
return e === void 0 && (e = {
|
|
3270
3264
|
number: {},
|
|
3271
3265
|
dateTime: {},
|
|
3272
3266
|
pluralRules: {}
|
|
3273
3267
|
}), {
|
|
3274
|
-
getNumberFormat:
|
|
3268
|
+
getNumberFormat: Ae(function() {
|
|
3275
3269
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3276
3270
|
r[n] = arguments[n];
|
|
3277
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3271
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3278
3272
|
}, {
|
|
3279
|
-
cache:
|
|
3280
|
-
strategy:
|
|
3273
|
+
cache: we(e.number),
|
|
3274
|
+
strategy: Be.variadic
|
|
3281
3275
|
}),
|
|
3282
|
-
getDateTimeFormat:
|
|
3276
|
+
getDateTimeFormat: Ae(function() {
|
|
3283
3277
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3284
3278
|
r[n] = arguments[n];
|
|
3285
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3279
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3286
3280
|
}, {
|
|
3287
|
-
cache:
|
|
3288
|
-
strategy:
|
|
3281
|
+
cache: we(e.dateTime),
|
|
3282
|
+
strategy: Be.variadic
|
|
3289
3283
|
}),
|
|
3290
|
-
getPluralRules:
|
|
3284
|
+
getPluralRules: Ae(function() {
|
|
3291
3285
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3292
3286
|
r[n] = arguments[n];
|
|
3293
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3287
|
+
return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
|
|
3294
3288
|
}, {
|
|
3295
|
-
cache:
|
|
3296
|
-
strategy:
|
|
3289
|
+
cache: we(e.pluralRules),
|
|
3290
|
+
strategy: Be.variadic
|
|
3297
3291
|
})
|
|
3298
3292
|
};
|
|
3299
3293
|
}
|
|
3300
|
-
var
|
|
3294
|
+
var Tn = (
|
|
3301
3295
|
/** @class */
|
|
3302
3296
|
function() {
|
|
3303
3297
|
function e(t, r, n, i) {
|
|
@@ -3312,11 +3306,11 @@ var Hn = (
|
|
|
3312
3306
|
if (a.length === 1)
|
|
3313
3307
|
return a[0].value;
|
|
3314
3308
|
var h = a.reduce(function(c, f) {
|
|
3315
|
-
return !c.length || f.type !==
|
|
3309
|
+
return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3316
3310
|
}, []);
|
|
3317
3311
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3318
3312
|
}, this.formatToParts = function(l) {
|
|
3319
|
-
return
|
|
3313
|
+
return me(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3320
3314
|
}, this.resolvedOptions = function() {
|
|
3321
3315
|
var l;
|
|
3322
3316
|
return {
|
|
@@ -3329,13 +3323,13 @@ var Hn = (
|
|
|
3329
3323
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3330
3324
|
var s = i || {};
|
|
3331
3325
|
s.formatters;
|
|
3332
|
-
var u =
|
|
3333
|
-
this.ast = e.__parse(t,
|
|
3326
|
+
var u = Pr(s, ["formatters"]);
|
|
3327
|
+
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3334
3328
|
} else
|
|
3335
3329
|
this.ast = t;
|
|
3336
3330
|
if (!Array.isArray(this.ast))
|
|
3337
3331
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3338
|
-
this.formats =
|
|
3332
|
+
this.formats = En(e.formats, n), this.formatters = i && i.formatters || vn(this.formatterCache);
|
|
3339
3333
|
}
|
|
3340
3334
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3341
3335
|
get: function() {
|
|
@@ -3348,7 +3342,7 @@ var Hn = (
|
|
|
3348
3342
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3349
3343
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3350
3344
|
}
|
|
3351
|
-
}, e.__parse =
|
|
3345
|
+
}, e.__parse = pn, e.formats = {
|
|
3352
3346
|
number: {
|
|
3353
3347
|
integer: {
|
|
3354
3348
|
maximumFractionDigits: 0
|
|
@@ -3409,7 +3403,7 @@ var Hn = (
|
|
|
3409
3403
|
}, e;
|
|
3410
3404
|
}()
|
|
3411
3405
|
);
|
|
3412
|
-
function
|
|
3406
|
+
function Cn(e, t) {
|
|
3413
3407
|
if (t == null)
|
|
3414
3408
|
return;
|
|
3415
3409
|
if (t in e)
|
|
@@ -3430,92 +3424,92 @@ function Sn(e, t) {
|
|
|
3430
3424
|
n = void 0;
|
|
3431
3425
|
return n;
|
|
3432
3426
|
}
|
|
3433
|
-
const
|
|
3427
|
+
const G = {}, Hn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Rt = (e, t) => {
|
|
3434
3428
|
if (t == null)
|
|
3435
3429
|
return;
|
|
3436
|
-
if (t in
|
|
3437
|
-
return
|
|
3438
|
-
const r =
|
|
3430
|
+
if (t in G && e in G[t])
|
|
3431
|
+
return G[t][e];
|
|
3432
|
+
const r = ve(t);
|
|
3439
3433
|
for (let n = 0; n < r.length; n++) {
|
|
3440
|
-
const i = r[n], o =
|
|
3434
|
+
const i = r[n], o = Bn(i, e);
|
|
3441
3435
|
if (o)
|
|
3442
|
-
return
|
|
3436
|
+
return Hn(e, t, o);
|
|
3443
3437
|
}
|
|
3444
3438
|
};
|
|
3445
|
-
let
|
|
3446
|
-
const
|
|
3447
|
-
function
|
|
3448
|
-
return
|
|
3439
|
+
let Ve;
|
|
3440
|
+
const ue = ye({});
|
|
3441
|
+
function An(e) {
|
|
3442
|
+
return Ve[e] || null;
|
|
3449
3443
|
}
|
|
3450
|
-
function
|
|
3451
|
-
return e in
|
|
3444
|
+
function Ut(e) {
|
|
3445
|
+
return e in Ve;
|
|
3452
3446
|
}
|
|
3453
|
-
function
|
|
3454
|
-
if (!
|
|
3447
|
+
function Bn(e, t) {
|
|
3448
|
+
if (!Ut(e))
|
|
3455
3449
|
return null;
|
|
3456
|
-
const r =
|
|
3457
|
-
return
|
|
3450
|
+
const r = An(e);
|
|
3451
|
+
return Cn(r, t);
|
|
3458
3452
|
}
|
|
3459
|
-
function
|
|
3453
|
+
function Sn(e) {
|
|
3460
3454
|
if (e == null)
|
|
3461
3455
|
return;
|
|
3462
|
-
const t =
|
|
3456
|
+
const t = ve(e);
|
|
3463
3457
|
for (let r = 0; r < t.length; r++) {
|
|
3464
3458
|
const n = t[r];
|
|
3465
|
-
if (
|
|
3459
|
+
if (Ut(n))
|
|
3466
3460
|
return n;
|
|
3467
3461
|
}
|
|
3468
3462
|
}
|
|
3469
|
-
function
|
|
3470
|
-
delete
|
|
3463
|
+
function Gt(e, ...t) {
|
|
3464
|
+
delete G[e], ue.update((r) => (r[e] = Or.all([r[e] || {}, ...t]), r));
|
|
3471
3465
|
}
|
|
3472
|
-
|
|
3473
|
-
[
|
|
3466
|
+
K(
|
|
3467
|
+
[ue],
|
|
3474
3468
|
([e]) => Object.keys(e)
|
|
3475
3469
|
);
|
|
3476
|
-
|
|
3477
|
-
const
|
|
3478
|
-
function
|
|
3479
|
-
|
|
3470
|
+
ue.subscribe((e) => Ve = e);
|
|
3471
|
+
const pe = {};
|
|
3472
|
+
function wn(e, t) {
|
|
3473
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3480
3474
|
}
|
|
3481
|
-
function
|
|
3482
|
-
return
|
|
3475
|
+
function Dt(e) {
|
|
3476
|
+
return pe[e];
|
|
3483
3477
|
}
|
|
3484
|
-
function
|
|
3485
|
-
return
|
|
3486
|
-
const r =
|
|
3478
|
+
function On(e) {
|
|
3479
|
+
return ve(e).map((t) => {
|
|
3480
|
+
const r = Dt(t);
|
|
3487
3481
|
return [t, r ? [...r] : []];
|
|
3488
3482
|
}).filter(([, t]) => t.length > 0);
|
|
3489
3483
|
}
|
|
3490
|
-
function
|
|
3491
|
-
return e == null ? !1 :
|
|
3484
|
+
function Fe(e) {
|
|
3485
|
+
return e == null ? !1 : ve(e).some(
|
|
3492
3486
|
(t) => {
|
|
3493
3487
|
var r;
|
|
3494
|
-
return (r =
|
|
3488
|
+
return (r = Dt(t)) == null ? void 0 : r.size;
|
|
3495
3489
|
}
|
|
3496
3490
|
);
|
|
3497
3491
|
}
|
|
3498
|
-
function
|
|
3492
|
+
function Pn(e, t) {
|
|
3499
3493
|
return Promise.all(
|
|
3500
|
-
t.map((n) => (
|
|
3501
|
-
).then((n) =>
|
|
3502
|
-
}
|
|
3503
|
-
const
|
|
3504
|
-
function
|
|
3505
|
-
if (!
|
|
3506
|
-
return e in
|
|
3507
|
-
const t =
|
|
3508
|
-
return
|
|
3494
|
+
t.map((n) => (wn(e, n), n().then((i) => i.default || i)))
|
|
3495
|
+
).then((n) => Gt(e, ...n));
|
|
3496
|
+
}
|
|
3497
|
+
const re = {};
|
|
3498
|
+
function Ft(e) {
|
|
3499
|
+
if (!Fe(e))
|
|
3500
|
+
return e in re ? re[e] : Promise.resolve();
|
|
3501
|
+
const t = On(e);
|
|
3502
|
+
return re[e] = Promise.all(
|
|
3509
3503
|
t.map(
|
|
3510
|
-
([r, n]) =>
|
|
3504
|
+
([r, n]) => Pn(r, n)
|
|
3511
3505
|
)
|
|
3512
3506
|
).then(() => {
|
|
3513
|
-
if (
|
|
3514
|
-
return
|
|
3515
|
-
delete
|
|
3516
|
-
}),
|
|
3507
|
+
if (Fe(e))
|
|
3508
|
+
return Ft(e);
|
|
3509
|
+
delete re[e];
|
|
3510
|
+
}), re[e];
|
|
3517
3511
|
}
|
|
3518
|
-
const
|
|
3512
|
+
const Nn = {
|
|
3519
3513
|
number: {
|
|
3520
3514
|
scientific: { notation: "scientific" },
|
|
3521
3515
|
engineering: { notation: "engineering" },
|
|
@@ -3544,150 +3538,150 @@ const In = {
|
|
|
3544
3538
|
timeZoneName: "short"
|
|
3545
3539
|
}
|
|
3546
3540
|
}
|
|
3547
|
-
},
|
|
3541
|
+
}, Ln = {
|
|
3548
3542
|
fallbackLocale: null,
|
|
3549
3543
|
loadingDelay: 200,
|
|
3550
|
-
formats:
|
|
3544
|
+
formats: Nn,
|
|
3551
3545
|
warnOnMissingMessages: !0,
|
|
3552
3546
|
handleMissingMessage: void 0,
|
|
3553
3547
|
ignoreTag: !0
|
|
3554
|
-
},
|
|
3555
|
-
function
|
|
3556
|
-
return
|
|
3548
|
+
}, In = Ln;
|
|
3549
|
+
function q() {
|
|
3550
|
+
return In;
|
|
3557
3551
|
}
|
|
3558
|
-
const
|
|
3559
|
-
var
|
|
3552
|
+
const Oe = ye(!1);
|
|
3553
|
+
var Mn = Object.defineProperty, $n = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, ot = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Dn = (e, t) => {
|
|
3560
3554
|
for (var r in t || (t = {}))
|
|
3561
|
-
|
|
3562
|
-
if (
|
|
3563
|
-
for (var r of
|
|
3564
|
-
|
|
3555
|
+
Un.call(t, r) && st(e, r, t[r]);
|
|
3556
|
+
if (ot)
|
|
3557
|
+
for (var r of ot(t))
|
|
3558
|
+
Gn.call(t, r) && st(e, r, t[r]);
|
|
3565
3559
|
return e;
|
|
3566
|
-
},
|
|
3567
|
-
let
|
|
3568
|
-
const
|
|
3569
|
-
function
|
|
3560
|
+
}, Fn = (e, t) => $n(e, Rn(t));
|
|
3561
|
+
let je;
|
|
3562
|
+
const be = ye(null);
|
|
3563
|
+
function at(e) {
|
|
3570
3564
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3571
3565
|
}
|
|
3572
|
-
function
|
|
3573
|
-
const r =
|
|
3574
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3566
|
+
function ve(e, t = q().fallbackLocale) {
|
|
3567
|
+
const r = at(e);
|
|
3568
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...at(t)])] : r;
|
|
3575
3569
|
}
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3570
|
+
function k() {
|
|
3571
|
+
return je ?? void 0;
|
|
3578
3572
|
}
|
|
3579
|
-
|
|
3580
|
-
|
|
3573
|
+
be.subscribe((e) => {
|
|
3574
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3581
3575
|
});
|
|
3582
|
-
const
|
|
3583
|
-
if (e &&
|
|
3584
|
-
const { loadingDelay: t } =
|
|
3576
|
+
const jn = (e) => {
|
|
3577
|
+
if (e && Sn(e) && Fe(e)) {
|
|
3578
|
+
const { loadingDelay: t } = q();
|
|
3585
3579
|
let r;
|
|
3586
|
-
return typeof window < "u" &&
|
|
3587
|
-
() =>
|
|
3580
|
+
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3581
|
+
() => Oe.set(!0),
|
|
3588
3582
|
t
|
|
3589
|
-
) :
|
|
3590
|
-
|
|
3583
|
+
) : Oe.set(!0), Ft(e).then(() => {
|
|
3584
|
+
be.set(e);
|
|
3591
3585
|
}).finally(() => {
|
|
3592
|
-
clearTimeout(r),
|
|
3586
|
+
clearTimeout(r), Oe.set(!1);
|
|
3593
3587
|
});
|
|
3594
3588
|
}
|
|
3595
|
-
return
|
|
3596
|
-
},
|
|
3597
|
-
set:
|
|
3598
|
-
}),
|
|
3589
|
+
return be.set(e);
|
|
3590
|
+
}, ee = Fn(Dn({}, be), {
|
|
3591
|
+
set: jn
|
|
3592
|
+
}), Te = (e) => {
|
|
3599
3593
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3600
3594
|
return (n) => {
|
|
3601
3595
|
const i = JSON.stringify(n);
|
|
3602
3596
|
return i in t ? t[i] : t[i] = e(n);
|
|
3603
3597
|
};
|
|
3604
3598
|
};
|
|
3605
|
-
var
|
|
3599
|
+
var kn = Object.defineProperty, _e = Object.getOwnPropertySymbols, jt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
|
|
3606
3600
|
for (var r in t || (t = {}))
|
|
3607
|
-
|
|
3608
|
-
if (
|
|
3609
|
-
for (var r of
|
|
3610
|
-
|
|
3601
|
+
jt.call(t, r) && ut(e, r, t[r]);
|
|
3602
|
+
if (_e)
|
|
3603
|
+
for (var r of _e(t))
|
|
3604
|
+
kt.call(t, r) && ut(e, r, t[r]);
|
|
3611
3605
|
return e;
|
|
3612
|
-
},
|
|
3606
|
+
}, te = (e, t) => {
|
|
3613
3607
|
var r = {};
|
|
3614
3608
|
for (var n in e)
|
|
3615
|
-
|
|
3616
|
-
if (e != null &&
|
|
3617
|
-
for (var n of
|
|
3618
|
-
t.indexOf(n) < 0 &&
|
|
3609
|
+
jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3610
|
+
if (e != null && _e)
|
|
3611
|
+
for (var n of _e(e))
|
|
3612
|
+
t.indexOf(n) < 0 && kt.call(e, n) && (r[n] = e[n]);
|
|
3619
3613
|
return r;
|
|
3620
3614
|
};
|
|
3621
|
-
const
|
|
3622
|
-
const { formats: r } =
|
|
3615
|
+
const se = (e, t) => {
|
|
3616
|
+
const { formats: r } = q();
|
|
3623
3617
|
if (e in r && t in r[e])
|
|
3624
3618
|
return r[e][t];
|
|
3625
3619
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3626
|
-
},
|
|
3620
|
+
}, Vn = Te(
|
|
3627
3621
|
(e) => {
|
|
3628
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3622
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3629
3623
|
if (r == null)
|
|
3630
3624
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3631
|
-
return n && (i =
|
|
3625
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
3632
3626
|
}
|
|
3633
|
-
),
|
|
3627
|
+
), Xn = Te(
|
|
3634
3628
|
(e) => {
|
|
3635
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3629
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3636
3630
|
if (r == null)
|
|
3637
3631
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3638
|
-
return n ? i =
|
|
3632
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3639
3633
|
}
|
|
3640
|
-
),
|
|
3634
|
+
), zn = Te(
|
|
3641
3635
|
(e) => {
|
|
3642
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3636
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3643
3637
|
if (r == null)
|
|
3644
3638
|
throw new Error(
|
|
3645
3639
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3646
3640
|
);
|
|
3647
|
-
return n ? i =
|
|
3641
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3648
3642
|
}
|
|
3649
|
-
),
|
|
3643
|
+
), Wn = (e = {}) => {
|
|
3650
3644
|
var t = e, {
|
|
3651
|
-
locale: r =
|
|
3652
|
-
} = t, n =
|
|
3645
|
+
locale: r = k()
|
|
3646
|
+
} = t, n = te(t, [
|
|
3653
3647
|
"locale"
|
|
3654
3648
|
]);
|
|
3655
|
-
return
|
|
3656
|
-
},
|
|
3649
|
+
return Vn(Xe({ locale: r }, n));
|
|
3650
|
+
}, Zn = (e = {}) => {
|
|
3657
3651
|
var t = e, {
|
|
3658
|
-
locale: r =
|
|
3659
|
-
} = t, n =
|
|
3652
|
+
locale: r = k()
|
|
3653
|
+
} = t, n = te(t, [
|
|
3660
3654
|
"locale"
|
|
3661
3655
|
]);
|
|
3662
|
-
return
|
|
3663
|
-
},
|
|
3656
|
+
return Xn(Xe({ locale: r }, n));
|
|
3657
|
+
}, Qn = (e = {}) => {
|
|
3664
3658
|
var t = e, {
|
|
3665
|
-
locale: r =
|
|
3666
|
-
} = t, n =
|
|
3659
|
+
locale: r = k()
|
|
3660
|
+
} = t, n = te(t, [
|
|
3667
3661
|
"locale"
|
|
3668
3662
|
]);
|
|
3669
|
-
return
|
|
3670
|
-
},
|
|
3663
|
+
return zn(Xe({ locale: r }, n));
|
|
3664
|
+
}, Jn = Te(
|
|
3671
3665
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3672
|
-
(e, t =
|
|
3673
|
-
ignoreTag:
|
|
3666
|
+
(e, t = k()) => new Tn(e, t, q().formats, {
|
|
3667
|
+
ignoreTag: q().ignoreTag
|
|
3674
3668
|
})
|
|
3675
|
-
),
|
|
3669
|
+
), qn = (e, t = {}) => {
|
|
3676
3670
|
var r, n, i, o;
|
|
3677
3671
|
let s = t;
|
|
3678
3672
|
typeof e == "object" && (s = e, e = s.id);
|
|
3679
3673
|
const {
|
|
3680
3674
|
values: u,
|
|
3681
|
-
locale: l =
|
|
3675
|
+
locale: l = k(),
|
|
3682
3676
|
default: a
|
|
3683
3677
|
} = s;
|
|
3684
3678
|
if (l == null)
|
|
3685
3679
|
throw new Error(
|
|
3686
3680
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3687
3681
|
);
|
|
3688
|
-
let h =
|
|
3682
|
+
let h = Rt(e, l);
|
|
3689
3683
|
if (!h)
|
|
3690
|
-
h = (o = (i = (n = (r =
|
|
3684
|
+
h = (o = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
|
3691
3685
|
else if (typeof h != "string")
|
|
3692
3686
|
return console.warn(
|
|
3693
3687
|
`[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.`
|
|
@@ -3696,7 +3690,7 @@ const ae = (e, t) => {
|
|
|
3696
3690
|
return h;
|
|
3697
3691
|
let c = h;
|
|
3698
3692
|
try {
|
|
3699
|
-
c =
|
|
3693
|
+
c = Jn(h, l).format(u);
|
|
3700
3694
|
} catch (f) {
|
|
3701
3695
|
f instanceof Error && console.warn(
|
|
3702
3696
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3704,18 +3698,18 @@ const ae = (e, t) => {
|
|
|
3704
3698
|
);
|
|
3705
3699
|
}
|
|
3706
3700
|
return c;
|
|
3707
|
-
},
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
function
|
|
3713
|
-
|
|
3714
|
-
}
|
|
3715
|
-
function
|
|
3716
|
-
|
|
3717
|
-
}
|
|
3718
|
-
const
|
|
3701
|
+
}, Yn = (e, t) => Qn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = k()) => Rt(e, t), ri = K([ee, ue], () => qn);
|
|
3702
|
+
K([ee], () => Yn);
|
|
3703
|
+
K([ee], () => Kn);
|
|
3704
|
+
K([ee], () => ei);
|
|
3705
|
+
K([ee, ue], () => ti);
|
|
3706
|
+
function ht(e, t) {
|
|
3707
|
+
Gt(e, t);
|
|
3708
|
+
}
|
|
3709
|
+
function ni(e) {
|
|
3710
|
+
ee.set(e);
|
|
3711
|
+
}
|
|
3712
|
+
const lt = {
|
|
3719
3713
|
en: {
|
|
3720
3714
|
topCategories: "Top Categories",
|
|
3721
3715
|
otherCategories: "Other Categories",
|
|
@@ -3825,13 +3819,13 @@ const ct = {
|
|
|
3825
3819
|
games: "games"
|
|
3826
3820
|
}
|
|
3827
3821
|
};
|
|
3828
|
-
function
|
|
3822
|
+
function ii(e, t) {
|
|
3829
3823
|
if (e) {
|
|
3830
3824
|
const r = document.createElement("style");
|
|
3831
3825
|
r.innerHTML = t, e.appendChild(r);
|
|
3832
3826
|
}
|
|
3833
3827
|
}
|
|
3834
|
-
function
|
|
3828
|
+
function oi(e, t) {
|
|
3835
3829
|
const r = new URL(t);
|
|
3836
3830
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3837
3831
|
const i = document.createElement("style");
|
|
@@ -3840,7 +3834,7 @@ function ai(e, t) {
|
|
|
3840
3834
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3841
3835
|
});
|
|
3842
3836
|
}
|
|
3843
|
-
function
|
|
3837
|
+
function si(e, t, r) {
|
|
3844
3838
|
if (window.emMessageBus) {
|
|
3845
3839
|
const n = document.createElement("style");
|
|
3846
3840
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3848,67 +3842,67 @@ function ui(e, t, r) {
|
|
|
3848
3842
|
});
|
|
3849
3843
|
}
|
|
3850
3844
|
}
|
|
3851
|
-
function
|
|
3852
|
-
|
|
3845
|
+
function ai(e) {
|
|
3846
|
+
Zt(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3853
3847
|
}
|
|
3854
|
-
function
|
|
3848
|
+
function ft(e, t, r) {
|
|
3855
3849
|
const n = e.slice();
|
|
3856
3850
|
return n[23] = t[r], n;
|
|
3857
3851
|
}
|
|
3858
|
-
function
|
|
3852
|
+
function ct(e, t, r) {
|
|
3859
3853
|
const n = e.slice();
|
|
3860
3854
|
return n[23] = t[r], n;
|
|
3861
3855
|
}
|
|
3862
|
-
function
|
|
3856
|
+
function ui(e) {
|
|
3863
3857
|
let t, r, n = (
|
|
3864
3858
|
/*$_*/
|
|
3865
3859
|
e[5]("topCategories") + ""
|
|
3866
3860
|
), i, o, s, u, l = (
|
|
3867
3861
|
/*$_*/
|
|
3868
3862
|
e[5]("otherCategories") + ""
|
|
3869
|
-
), a, h, c =
|
|
3863
|
+
), a, h, c = fe(
|
|
3870
3864
|
/*topCategories*/
|
|
3871
3865
|
e[3]
|
|
3872
3866
|
), f = [];
|
|
3873
3867
|
for (let g = 0; g < c.length; g += 1)
|
|
3874
|
-
f[g] =
|
|
3875
|
-
let p =
|
|
3868
|
+
f[g] = gt(ct(e, c, g));
|
|
3869
|
+
let p = fe(
|
|
3876
3870
|
/*otherCategories*/
|
|
3877
3871
|
e[4]
|
|
3878
3872
|
), d = [];
|
|
3879
3873
|
for (let g = 0; g < p.length; g += 1)
|
|
3880
|
-
d[g] =
|
|
3874
|
+
d[g] = mt(ft(e, p, g));
|
|
3881
3875
|
return {
|
|
3882
3876
|
c() {
|
|
3883
|
-
t =
|
|
3877
|
+
t = S("div"), r = S("h4"), i = U(n), o = R();
|
|
3884
3878
|
for (let g = 0; g < f.length; g += 1)
|
|
3885
3879
|
f[g].c();
|
|
3886
|
-
s =
|
|
3880
|
+
s = R(), u = S("h4"), a = U(l), h = R();
|
|
3887
3881
|
for (let g = 0; g < d.length; g += 1)
|
|
3888
3882
|
d[g].c();
|
|
3889
3883
|
L(r, "class", "CategoryTitle"), L(u, "class", "CategoryTitle"), L(t, "class", "CasinoCategories");
|
|
3890
3884
|
},
|
|
3891
3885
|
m(g, E) {
|
|
3892
|
-
|
|
3886
|
+
Y(g, t, E), v(t, r), v(r, i), v(t, o);
|
|
3893
3887
|
for (let m = 0; m < f.length; m += 1)
|
|
3894
3888
|
f[m] && f[m].m(t, null);
|
|
3895
|
-
|
|
3889
|
+
v(t, s), v(t, u), v(u, a), v(t, h);
|
|
3896
3890
|
for (let m = 0; m < d.length; m += 1)
|
|
3897
3891
|
d[m] && d[m].m(t, null);
|
|
3898
3892
|
},
|
|
3899
3893
|
p(g, E) {
|
|
3900
3894
|
if (E & /*$_*/
|
|
3901
3895
|
32 && n !== (n = /*$_*/
|
|
3902
|
-
g[5]("topCategories") + "") &&
|
|
3896
|
+
g[5]("topCategories") + "") && D(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3903
3897
|
105) {
|
|
3904
|
-
c =
|
|
3898
|
+
c = fe(
|
|
3905
3899
|
/*topCategories*/
|
|
3906
3900
|
g[3]
|
|
3907
3901
|
);
|
|
3908
3902
|
let m;
|
|
3909
3903
|
for (m = 0; m < c.length; m += 1) {
|
|
3910
|
-
const
|
|
3911
|
-
f[m] ? f[m].p(
|
|
3904
|
+
const C = ct(g, c, m);
|
|
3905
|
+
f[m] ? f[m].p(C, E) : (f[m] = gt(C), f[m].c(), f[m].m(t, s));
|
|
3912
3906
|
}
|
|
3913
3907
|
for (; m < f.length; m += 1)
|
|
3914
3908
|
f[m].d(1);
|
|
@@ -3916,16 +3910,16 @@ function li(e) {
|
|
|
3916
3910
|
}
|
|
3917
3911
|
if (E & /*$_*/
|
|
3918
3912
|
32 && l !== (l = /*$_*/
|
|
3919
|
-
g[5]("otherCategories") + "") &&
|
|
3913
|
+
g[5]("otherCategories") + "") && D(a, l), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3920
3914
|
113) {
|
|
3921
|
-
p =
|
|
3915
|
+
p = fe(
|
|
3922
3916
|
/*otherCategories*/
|
|
3923
3917
|
g[4]
|
|
3924
3918
|
);
|
|
3925
3919
|
let m;
|
|
3926
3920
|
for (m = 0; m < p.length; m += 1) {
|
|
3927
|
-
const
|
|
3928
|
-
d[m] ? d[m].p(
|
|
3921
|
+
const C = ft(g, p, m);
|
|
3922
|
+
d[m] ? d[m].p(C, E) : (d[m] = mt(C), d[m].c(), d[m].m(t, null));
|
|
3929
3923
|
}
|
|
3930
3924
|
for (; m < d.length; m += 1)
|
|
3931
3925
|
d[m].d(1);
|
|
@@ -3933,26 +3927,26 @@ function li(e) {
|
|
|
3933
3927
|
}
|
|
3934
3928
|
},
|
|
3935
3929
|
d(g) {
|
|
3936
|
-
g &&
|
|
3930
|
+
g && j(t), Ze(f, g), Ze(d, g);
|
|
3937
3931
|
}
|
|
3938
3932
|
};
|
|
3939
3933
|
}
|
|
3940
|
-
function
|
|
3934
|
+
function hi(e) {
|
|
3941
3935
|
let t;
|
|
3942
3936
|
return {
|
|
3943
3937
|
c() {
|
|
3944
|
-
t =
|
|
3938
|
+
t = S("p"), t.textContent = "Loading, please wait...", L(t, "class", "Message");
|
|
3945
3939
|
},
|
|
3946
3940
|
m(r, n) {
|
|
3947
|
-
|
|
3941
|
+
Y(r, t, n);
|
|
3948
3942
|
},
|
|
3949
3943
|
p: N,
|
|
3950
3944
|
d(r) {
|
|
3951
|
-
r &&
|
|
3945
|
+
r && j(t);
|
|
3952
3946
|
}
|
|
3953
3947
|
};
|
|
3954
3948
|
}
|
|
3955
|
-
function
|
|
3949
|
+
function gt(e) {
|
|
3956
3950
|
let t, r, n, i, o, s, u, l = (
|
|
3957
3951
|
/*category*/
|
|
3958
3952
|
e[23].name + ""
|
|
@@ -3962,8 +3956,8 @@ function pt(e) {
|
|
|
3962
3956
|
), p, d, g = (
|
|
3963
3957
|
/*$_*/
|
|
3964
3958
|
e[5]("games") + ""
|
|
3965
|
-
), E, m,
|
|
3966
|
-
function
|
|
3959
|
+
), E, m, C, A;
|
|
3960
|
+
function O() {
|
|
3967
3961
|
return (
|
|
3968
3962
|
/*click_handler*/
|
|
3969
3963
|
e[15](
|
|
@@ -3974,37 +3968,37 @@ function pt(e) {
|
|
|
3974
3968
|
}
|
|
3975
3969
|
return {
|
|
3976
3970
|
c() {
|
|
3977
|
-
t =
|
|
3971
|
+
t = S("div"), r = S("ui-image"), o = R(), s = S("div"), u = S("p"), a = U(l), h = R(), c = S("p"), p = U(f), d = R(), E = U(g), de(r.src, n = /*category*/
|
|
3978
3972
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
3979
3973
|
e[23].name), $(r, "class", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class", m = "Category " + /*activecategory*/
|
|
3980
3974
|
(e[0] === /*category*/
|
|
3981
3975
|
e[23].id ? "Active" : ""));
|
|
3982
3976
|
},
|
|
3983
|
-
m(
|
|
3984
|
-
|
|
3977
|
+
m(B, H) {
|
|
3978
|
+
Y(B, t, H), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, h), v(s, c), v(c, p), v(c, d), v(c, E), C || (A = _t(t, "click", O), C = !0);
|
|
3985
3979
|
},
|
|
3986
|
-
p(
|
|
3987
|
-
e =
|
|
3988
|
-
8 && !
|
|
3980
|
+
p(B, H) {
|
|
3981
|
+
e = B, H & /*topCategories*/
|
|
3982
|
+
8 && !de(r.src, n = /*category*/
|
|
3989
3983
|
e[23].icon) && $(r, "src", n), H & /*topCategories*/
|
|
3990
3984
|
8 && i !== (i = /*category*/
|
|
3991
3985
|
e[23].name) && $(r, "alt", i), H & /*topCategories*/
|
|
3992
3986
|
8 && l !== (l = /*category*/
|
|
3993
|
-
e[23].name + "") &&
|
|
3987
|
+
e[23].name + "") && D(a, l), H & /*topCategories*/
|
|
3994
3988
|
8 && f !== (f = /*category*/
|
|
3995
|
-
e[23].games.count + "") &&
|
|
3989
|
+
e[23].games.count + "") && D(p, f), H & /*$_*/
|
|
3996
3990
|
32 && g !== (g = /*$_*/
|
|
3997
|
-
e[5]("games") + "") &&
|
|
3991
|
+
e[5]("games") + "") && D(E, g), H & /*activecategory, topCategories*/
|
|
3998
3992
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
3999
3993
|
(e[0] === /*category*/
|
|
4000
3994
|
e[23].id ? "Active" : "")) && L(t, "class", m);
|
|
4001
3995
|
},
|
|
4002
|
-
d(
|
|
4003
|
-
|
|
3996
|
+
d(B) {
|
|
3997
|
+
B && j(t), C = !1, A();
|
|
4004
3998
|
}
|
|
4005
3999
|
};
|
|
4006
4000
|
}
|
|
4007
|
-
function
|
|
4001
|
+
function mt(e) {
|
|
4008
4002
|
let t, r, n, i, o, s, u, l = (
|
|
4009
4003
|
/*category*/
|
|
4010
4004
|
e[23].name + ""
|
|
@@ -4014,8 +4008,8 @@ function dt(e) {
|
|
|
4014
4008
|
), p, d, g = (
|
|
4015
4009
|
/*$_*/
|
|
4016
4010
|
e[5]("games") + ""
|
|
4017
|
-
), E, m,
|
|
4018
|
-
function
|
|
4011
|
+
), E, m, C, A, O;
|
|
4012
|
+
function B() {
|
|
4019
4013
|
return (
|
|
4020
4014
|
/*click_handler_1*/
|
|
4021
4015
|
e[16](
|
|
@@ -4026,51 +4020,51 @@ function dt(e) {
|
|
|
4026
4020
|
}
|
|
4027
4021
|
return {
|
|
4028
4022
|
c() {
|
|
4029
|
-
t =
|
|
4023
|
+
t = S("div"), r = S("ui-image"), o = R(), s = S("div"), u = S("p"), a = U(l), h = R(), c = S("p"), p = U(f), d = R(), E = U(g), m = R(), de(r.src, n = /*category*/
|
|
4030
4024
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
4031
|
-
e[23].name), $(r, "class", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class",
|
|
4025
|
+
e[23].name), $(r, "class", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class", C = "Category " + /*activecategory*/
|
|
4032
4026
|
(e[0] === /*category*/
|
|
4033
4027
|
e[23].id ? "Active" : ""));
|
|
4034
4028
|
},
|
|
4035
4029
|
m(H, P) {
|
|
4036
|
-
|
|
4030
|
+
Y(H, t, P), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, h), v(s, c), v(c, p), v(c, d), v(c, E), v(t, m), A || (O = _t(t, "click", B), A = !0);
|
|
4037
4031
|
},
|
|
4038
4032
|
p(H, P) {
|
|
4039
4033
|
e = H, P & /*otherCategories*/
|
|
4040
|
-
16 && !
|
|
4034
|
+
16 && !de(r.src, n = /*category*/
|
|
4041
4035
|
e[23].icon) && $(r, "src", n), P & /*otherCategories*/
|
|
4042
4036
|
16 && i !== (i = /*category*/
|
|
4043
4037
|
e[23].name) && $(r, "alt", i), P & /*otherCategories*/
|
|
4044
4038
|
16 && l !== (l = /*category*/
|
|
4045
|
-
e[23].name + "") &&
|
|
4039
|
+
e[23].name + "") && D(a, l), P & /*otherCategories*/
|
|
4046
4040
|
16 && f !== (f = /*category*/
|
|
4047
|
-
e[23].games.count + "") &&
|
|
4041
|
+
e[23].games.count + "") && D(p, f), P & /*$_*/
|
|
4048
4042
|
32 && g !== (g = /*$_*/
|
|
4049
|
-
e[5]("games") + "") &&
|
|
4050
|
-
17 &&
|
|
4043
|
+
e[5]("games") + "") && D(E, g), P & /*activecategory, otherCategories*/
|
|
4044
|
+
17 && C !== (C = "Category " + /*activecategory*/
|
|
4051
4045
|
(e[0] === /*category*/
|
|
4052
|
-
e[23].id ? "Active" : "")) && L(t, "class",
|
|
4046
|
+
e[23].id ? "Active" : "")) && L(t, "class", C);
|
|
4053
4047
|
},
|
|
4054
4048
|
d(H) {
|
|
4055
|
-
H &&
|
|
4049
|
+
H && j(t), A = !1, O();
|
|
4056
4050
|
}
|
|
4057
4051
|
};
|
|
4058
4052
|
}
|
|
4059
|
-
function
|
|
4053
|
+
function li(e) {
|
|
4060
4054
|
let t;
|
|
4061
4055
|
function r(o, s) {
|
|
4062
4056
|
return (
|
|
4063
4057
|
/*isLoading*/
|
|
4064
|
-
o[2] ?
|
|
4058
|
+
o[2] ? hi : ui
|
|
4065
4059
|
);
|
|
4066
4060
|
}
|
|
4067
4061
|
let n = r(e), i = n(e);
|
|
4068
4062
|
return {
|
|
4069
4063
|
c() {
|
|
4070
|
-
t =
|
|
4064
|
+
t = S("div"), i.c();
|
|
4071
4065
|
},
|
|
4072
4066
|
m(o, s) {
|
|
4073
|
-
|
|
4067
|
+
Y(o, t, s), i.m(t, null), e[17](t);
|
|
4074
4068
|
},
|
|
4075
4069
|
p(o, [s]) {
|
|
4076
4070
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4078,47 +4072,47 @@ function ci(e) {
|
|
|
4078
4072
|
i: N,
|
|
4079
4073
|
o: N,
|
|
4080
4074
|
d(o) {
|
|
4081
|
-
o &&
|
|
4075
|
+
o && j(t), i.d(), e[17](null);
|
|
4082
4076
|
}
|
|
4083
4077
|
};
|
|
4084
4078
|
}
|
|
4085
|
-
function
|
|
4079
|
+
function fi(e, t, r) {
|
|
4086
4080
|
let n;
|
|
4087
|
-
|
|
4081
|
+
Wt(e, ri, (b) => r(5, n = b));
|
|
4088
4082
|
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4089
4083
|
const g = [];
|
|
4090
4084
|
let E = [], m = [];
|
|
4091
|
-
Object.keys(
|
|
4092
|
-
|
|
4085
|
+
Object.keys(lt).forEach((b) => {
|
|
4086
|
+
ht(b, lt[b]);
|
|
4093
4087
|
});
|
|
4094
|
-
const
|
|
4088
|
+
const C = () => {
|
|
4095
4089
|
fetch(c).then((M) => M.json()).then((M) => {
|
|
4096
|
-
Object.keys(M).forEach((
|
|
4097
|
-
|
|
4090
|
+
Object.keys(M).forEach((he) => {
|
|
4091
|
+
ht(he, M[he]);
|
|
4098
4092
|
});
|
|
4099
4093
|
}).catch((M) => {
|
|
4100
4094
|
console.log(M);
|
|
4101
4095
|
});
|
|
4102
|
-
},
|
|
4096
|
+
}, A = () => {
|
|
4103
4097
|
r(2, d = !0);
|
|
4104
4098
|
const b = new URL(`${i}/v1/casino/groups/${o}`);
|
|
4105
4099
|
b.searchParams.append("language", s), fetch(b).then((M) => M.json()).then((M) => {
|
|
4106
4100
|
r(2, d = !1);
|
|
4107
|
-
const
|
|
4101
|
+
const he = l.split(",").map((F) => F.trim());
|
|
4108
4102
|
g.push(...M.items);
|
|
4109
|
-
const
|
|
4110
|
-
r(3, E =
|
|
4103
|
+
const ze = g.filter((F) => !he.some((Xt) => F.flags?.indexOf(Xt) >= 0));
|
|
4104
|
+
r(3, E = ze.filter((F) => F.isTopCategory === !0)), r(4, m = ze.filter((F) => F.isTopCategory === !1));
|
|
4111
4105
|
});
|
|
4112
|
-
},
|
|
4106
|
+
}, O = (b) => {
|
|
4113
4107
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4114
|
-
},
|
|
4115
|
-
|
|
4108
|
+
}, B = () => {
|
|
4109
|
+
ni(s);
|
|
4116
4110
|
};
|
|
4117
|
-
|
|
4111
|
+
er(() => () => {
|
|
4118
4112
|
});
|
|
4119
|
-
const H = (b) =>
|
|
4120
|
-
function
|
|
4121
|
-
|
|
4113
|
+
const H = (b) => O(b.id), P = (b) => O(b.id);
|
|
4114
|
+
function Vt(b) {
|
|
4115
|
+
Pe[b ? "unshift" : "push"](() => {
|
|
4122
4116
|
p = b, r(1, p);
|
|
4123
4117
|
});
|
|
4124
4118
|
}
|
|
@@ -4126,12 +4120,12 @@ function gi(e, t, r) {
|
|
|
4126
4120
|
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, o = b.datasource), "lang" in b && r(9, s = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, l = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4127
4121
|
}, e.$$.update = () => {
|
|
4128
4122
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4129
|
-
384 && i && o &&
|
|
4130
|
-
8192 && c &&
|
|
4131
|
-
512 && s &&
|
|
4132
|
-
2050 && a && p &&
|
|
4133
|
-
4098 && h && p &&
|
|
4134
|
-
16386 && f && p &&
|
|
4123
|
+
384 && i && o && A(), e.$$.dirty & /*translationurl*/
|
|
4124
|
+
8192 && c && C(), e.$$.dirty & /*lang*/
|
|
4125
|
+
512 && s && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4126
|
+
2050 && a && p && ii(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4127
|
+
4098 && h && p && oi(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4128
|
+
16386 && f && p && si(p, `${f}.Style`);
|
|
4135
4129
|
}, [
|
|
4136
4130
|
u,
|
|
4137
4131
|
p,
|
|
@@ -4139,7 +4133,7 @@ function gi(e, t, r) {
|
|
|
4139
4133
|
E,
|
|
4140
4134
|
m,
|
|
4141
4135
|
n,
|
|
4142
|
-
|
|
4136
|
+
O,
|
|
4143
4137
|
i,
|
|
4144
4138
|
o,
|
|
4145
4139
|
s,
|
|
@@ -4150,17 +4144,17 @@ function gi(e, t, r) {
|
|
|
4150
4144
|
f,
|
|
4151
4145
|
H,
|
|
4152
4146
|
P,
|
|
4153
|
-
|
|
4147
|
+
Vt
|
|
4154
4148
|
];
|
|
4155
4149
|
}
|
|
4156
|
-
class
|
|
4150
|
+
class ci extends cr {
|
|
4157
4151
|
constructor(t) {
|
|
4158
|
-
super(),
|
|
4152
|
+
super(), lr(
|
|
4159
4153
|
this,
|
|
4160
4154
|
t,
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4155
|
+
fi,
|
|
4156
|
+
li,
|
|
4157
|
+
dt,
|
|
4164
4158
|
{
|
|
4165
4159
|
endpoint: 7,
|
|
4166
4160
|
datasource: 8,
|
|
@@ -4172,7 +4166,7 @@ class mi extends mr {
|
|
|
4172
4166
|
translationurl: 13,
|
|
4173
4167
|
mbsource: 14
|
|
4174
4168
|
},
|
|
4175
|
-
|
|
4169
|
+
ai
|
|
4176
4170
|
);
|
|
4177
4171
|
}
|
|
4178
4172
|
get endpoint() {
|
|
@@ -4230,7 +4224,7 @@ class mi extends mr {
|
|
|
4230
4224
|
this.$$set({ mbsource: t }), I();
|
|
4231
4225
|
}
|
|
4232
4226
|
}
|
|
4233
|
-
|
|
4227
|
+
fr(ci, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4234
4228
|
export {
|
|
4235
|
-
|
|
4229
|
+
ci as C
|
|
4236
4230
|
};
|