@everymatrix/casino-categories 1.55.0 → 1.56.0
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-Bs9DbHFk.js → CasinoCategories-BbyoIeMS.js} +841 -818
- package/components/CasinoCategories-DHswuew3.cjs +3 -0
- package/components/{CasinoCategories-C-hyUkDQ.js → CasinoCategories-DnYec2h6.js} +822 -799
- 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/components/CasinoCategories-CAqrvJdQ.cjs +0 -3
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function L() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function mt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ze() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function se(e) {
|
|
10
|
+
e.forEach(mt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function je(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function pt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let he;
|
|
19
|
+
function pe(e, t) {
|
|
20
|
+
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Xt(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function dt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function yt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function zt(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(dt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function v(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function Wt(e, t, r) {
|
|
41
|
+
const n = Zt(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = O("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Qt(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Zt(e) {
|
|
48
48
|
if (!e) return document;
|
|
49
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
50
50
|
return t && /** @type {ShadowRoot} */
|
|
@@ -53,20 +53,20 @@ function qt(e) {
|
|
|
53
53
|
t
|
|
54
54
|
) : e.ownerDocument;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Qt(e, t) {
|
|
57
57
|
return v(
|
|
58
58
|
/** @type {Document} */
|
|
59
59
|
e.head || e,
|
|
60
60
|
t
|
|
61
61
|
), t.sheet;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function q(e, t, r) {
|
|
64
64
|
e.insertBefore(t, r || null);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function F(e) {
|
|
67
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function We(e, t) {
|
|
70
70
|
for (let r = 0; r < e.length; r += 1)
|
|
71
71
|
e[r] && e[r].d(t);
|
|
72
72
|
}
|
|
@@ -79,20 +79,20 @@ function R(e) {
|
|
|
79
79
|
function $() {
|
|
80
80
|
return R(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function bt(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function A(e, t, r) {
|
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Jt(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function G(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function qt(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -101,119 +101,126 @@ function er(e) {
|
|
|
101
101
|
}
|
|
102
102
|
), t;
|
|
103
103
|
}
|
|
104
|
-
let
|
|
105
|
-
function
|
|
106
|
-
|
|
104
|
+
let ne;
|
|
105
|
+
function re(e) {
|
|
106
|
+
ne = e;
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
function Yt() {
|
|
109
|
+
if (!ne) throw new Error("Function called outside component initialization");
|
|
110
|
+
return ne;
|
|
111
|
+
}
|
|
112
|
+
function Kt(e) {
|
|
113
|
+
Yt().$$.on_mount.push(e);
|
|
114
|
+
}
|
|
115
|
+
const X = [], we = [];
|
|
116
|
+
let z = [];
|
|
117
|
+
const Ze = [], er = /* @__PURE__ */ Promise.resolve();
|
|
111
118
|
let Pe = !1;
|
|
112
|
-
function
|
|
113
|
-
Pe || (Pe = !0,
|
|
119
|
+
function tr() {
|
|
120
|
+
Pe || (Pe = !0, er.then(I));
|
|
114
121
|
}
|
|
115
|
-
function
|
|
116
|
-
|
|
122
|
+
function Ne(e) {
|
|
123
|
+
z.push(e);
|
|
117
124
|
}
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
if (
|
|
125
|
+
const Te = /* @__PURE__ */ new Set();
|
|
126
|
+
let k = 0;
|
|
127
|
+
function I() {
|
|
128
|
+
if (k !== 0)
|
|
122
129
|
return;
|
|
123
|
-
const e =
|
|
130
|
+
const e = ne;
|
|
124
131
|
do {
|
|
125
132
|
try {
|
|
126
|
-
for (;
|
|
127
|
-
const t =
|
|
128
|
-
|
|
133
|
+
for (; k < X.length; ) {
|
|
134
|
+
const t = X[k];
|
|
135
|
+
k++, re(t), rr(t.$$);
|
|
129
136
|
}
|
|
130
137
|
} catch (t) {
|
|
131
|
-
throw
|
|
138
|
+
throw X.length = 0, k = 0, t;
|
|
132
139
|
}
|
|
133
|
-
for (
|
|
134
|
-
for (let t = 0; t <
|
|
135
|
-
const r =
|
|
136
|
-
|
|
140
|
+
for (re(null), X.length = 0, k = 0; we.length; ) we.pop()();
|
|
141
|
+
for (let t = 0; t < z.length; t += 1) {
|
|
142
|
+
const r = z[t];
|
|
143
|
+
Te.has(r) || (Te.add(r), r());
|
|
137
144
|
}
|
|
138
|
-
|
|
139
|
-
} while (
|
|
140
|
-
for (;
|
|
141
|
-
|
|
142
|
-
Pe = !1,
|
|
145
|
+
z.length = 0;
|
|
146
|
+
} while (X.length);
|
|
147
|
+
for (; Ze.length; )
|
|
148
|
+
Ze.pop()();
|
|
149
|
+
Pe = !1, Te.clear(), re(e);
|
|
143
150
|
}
|
|
144
|
-
function
|
|
151
|
+
function rr(e) {
|
|
145
152
|
if (e.fragment !== null) {
|
|
146
|
-
e.update(),
|
|
153
|
+
e.update(), se(e.before_update);
|
|
147
154
|
const t = e.dirty;
|
|
148
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
155
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
149
156
|
}
|
|
150
157
|
}
|
|
151
|
-
function
|
|
158
|
+
function nr(e) {
|
|
152
159
|
const t = [], r = [];
|
|
153
|
-
|
|
160
|
+
z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
|
|
154
161
|
}
|
|
155
|
-
const
|
|
162
|
+
const ir = /* @__PURE__ */ new Set();
|
|
156
163
|
function or(e, t) {
|
|
157
|
-
e && e.i && (
|
|
164
|
+
e && e.i && (ir.delete(e), e.i(t));
|
|
158
165
|
}
|
|
159
|
-
function
|
|
166
|
+
function le(e) {
|
|
160
167
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
161
168
|
}
|
|
162
|
-
function
|
|
169
|
+
function sr(e, t, r) {
|
|
163
170
|
const { fragment: n, after_update: i } = e.$$;
|
|
164
|
-
n && n.m(t, r),
|
|
165
|
-
const
|
|
166
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
167
|
-
}), i.forEach(
|
|
171
|
+
n && n.m(t, r), Ne(() => {
|
|
172
|
+
const o = e.$$.on_mount.map(mt).filter(je);
|
|
173
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
174
|
+
}), i.forEach(Ne);
|
|
168
175
|
}
|
|
169
|
-
function
|
|
176
|
+
function ar(e, t) {
|
|
170
177
|
const r = e.$$;
|
|
171
|
-
r.fragment !== null && (
|
|
178
|
+
r.fragment !== null && (nr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
172
179
|
}
|
|
173
|
-
function
|
|
174
|
-
e.$$.dirty[0] === -1 && (
|
|
180
|
+
function ur(e, t) {
|
|
181
|
+
e.$$.dirty[0] === -1 && (X.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
175
182
|
}
|
|
176
|
-
function
|
|
177
|
-
const
|
|
178
|
-
|
|
183
|
+
function hr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
184
|
+
const l = ne;
|
|
185
|
+
re(e);
|
|
179
186
|
const a = e.$$ = {
|
|
180
187
|
fragment: null,
|
|
181
188
|
ctx: [],
|
|
182
189
|
// state
|
|
183
|
-
props:
|
|
190
|
+
props: o,
|
|
184
191
|
update: L,
|
|
185
192
|
not_equal: i,
|
|
186
|
-
bound:
|
|
193
|
+
bound: ze(),
|
|
187
194
|
// lifecycle
|
|
188
195
|
on_mount: [],
|
|
189
196
|
on_destroy: [],
|
|
190
197
|
on_disconnect: [],
|
|
191
198
|
before_update: [],
|
|
192
199
|
after_update: [],
|
|
193
|
-
context: new Map(t.context || (
|
|
200
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
194
201
|
// everything else
|
|
195
|
-
callbacks:
|
|
202
|
+
callbacks: ze(),
|
|
196
203
|
dirty: u,
|
|
197
204
|
skip_bound: !1,
|
|
198
|
-
root: t.target ||
|
|
205
|
+
root: t.target || l.$$.root
|
|
199
206
|
};
|
|
200
|
-
|
|
207
|
+
s && s(a.root);
|
|
201
208
|
let h = !1;
|
|
202
|
-
if (a.ctx = r ? r(e, t.props || {}, (c,
|
|
203
|
-
const
|
|
204
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] =
|
|
205
|
-
}) : [], a.update(), h = !0,
|
|
209
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
210
|
+
const d = p.length ? p[0] : f;
|
|
211
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), h && ur(e, c)), f;
|
|
212
|
+
}) : [], a.update(), h = !0, se(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
206
213
|
if (t.hydrate) {
|
|
207
|
-
const c =
|
|
208
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
214
|
+
const c = Jt(t.target);
|
|
215
|
+
a.fragment && a.fragment.l(c), c.forEach(F);
|
|
209
216
|
} else
|
|
210
217
|
a.fragment && a.fragment.c();
|
|
211
|
-
t.intro && or(e.$$.fragment),
|
|
218
|
+
t.intro && or(e.$$.fragment), sr(e, t.target, t.anchor), I();
|
|
212
219
|
}
|
|
213
|
-
|
|
220
|
+
re(l);
|
|
214
221
|
}
|
|
215
|
-
let
|
|
216
|
-
typeof HTMLElement == "function" && (
|
|
222
|
+
let yt;
|
|
223
|
+
typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
217
224
|
/** The Svelte component constructor */
|
|
218
225
|
$$ctor;
|
|
219
226
|
/** Slots */
|
|
@@ -252,32 +259,32 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
252
259
|
if (this.$$cn = !0, !this.$$c) {
|
|
253
260
|
let e = function(i) {
|
|
254
261
|
return () => {
|
|
255
|
-
let
|
|
262
|
+
let o;
|
|
256
263
|
return {
|
|
257
264
|
c: function() {
|
|
258
|
-
|
|
265
|
+
o = O("slot"), i !== "default" && A(o, "name", i);
|
|
259
266
|
},
|
|
260
267
|
/**
|
|
261
268
|
* @param {HTMLElement} target
|
|
262
269
|
* @param {HTMLElement} [anchor]
|
|
263
270
|
*/
|
|
264
|
-
m: function(
|
|
265
|
-
|
|
271
|
+
m: function(l, a) {
|
|
272
|
+
q(l, o, a);
|
|
266
273
|
},
|
|
267
|
-
d: function(
|
|
268
|
-
|
|
274
|
+
d: function(l) {
|
|
275
|
+
l && F(o);
|
|
269
276
|
}
|
|
270
277
|
};
|
|
271
278
|
};
|
|
272
279
|
};
|
|
273
280
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
274
281
|
return;
|
|
275
|
-
const t = {}, r =
|
|
282
|
+
const t = {}, r = qt(this);
|
|
276
283
|
for (const i of this.$$s)
|
|
277
284
|
i in r && (t[i] = [e(i)]);
|
|
278
285
|
for (const i of this.attributes) {
|
|
279
|
-
const
|
|
280
|
-
|
|
286
|
+
const o = this.$$g_p(i.name);
|
|
287
|
+
o in this.$$d || (this.$$d[o] = ce(o, i.value, this.$$p_d, "toProp"));
|
|
281
288
|
}
|
|
282
289
|
for (const i in this.$$p_d)
|
|
283
290
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -295,21 +302,21 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
295
302
|
this.$$r = !0;
|
|
296
303
|
for (const i in this.$$p_d)
|
|
297
304
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
298
|
-
const
|
|
305
|
+
const o = ce(
|
|
299
306
|
i,
|
|
300
307
|
this.$$d[i],
|
|
301
308
|
this.$$p_d,
|
|
302
309
|
"toAttribute"
|
|
303
310
|
);
|
|
304
|
-
|
|
311
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
305
312
|
}
|
|
306
313
|
this.$$r = !1;
|
|
307
314
|
};
|
|
308
315
|
this.$$c.$$.after_update.push(n), n();
|
|
309
316
|
for (const i in this.$$l)
|
|
310
|
-
for (const
|
|
311
|
-
const
|
|
312
|
-
this.$$l_u.set(
|
|
317
|
+
for (const o of this.$$l[i]) {
|
|
318
|
+
const s = this.$$c.$on(i, o);
|
|
319
|
+
this.$$l_u.set(o, s);
|
|
313
320
|
}
|
|
314
321
|
this.$$l = {};
|
|
315
322
|
}
|
|
@@ -317,7 +324,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
317
324
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
318
325
|
// and setting attributes through setAttribute etc, this is helpful
|
|
319
326
|
attributeChangedCallback(e, t, r) {
|
|
320
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
327
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
321
328
|
}
|
|
322
329
|
disconnectedCallback() {
|
|
323
330
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -330,7 +337,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
330
337
|
) || e;
|
|
331
338
|
}
|
|
332
339
|
});
|
|
333
|
-
function
|
|
340
|
+
function ce(e, t, r, n) {
|
|
334
341
|
const i = r[e]?.type;
|
|
335
342
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
336
343
|
return t;
|
|
@@ -359,8 +366,8 @@ function fe(e, t, r, n) {
|
|
|
359
366
|
return t;
|
|
360
367
|
}
|
|
361
368
|
}
|
|
362
|
-
function
|
|
363
|
-
let
|
|
369
|
+
function lr(e, t, r, n, i, o) {
|
|
370
|
+
let s = class extends yt {
|
|
364
371
|
constructor() {
|
|
365
372
|
super(e, r, i), this.$$p_d = t;
|
|
366
373
|
}
|
|
@@ -371,24 +378,24 @@ function fr(e, t, r, n, i, s) {
|
|
|
371
378
|
}
|
|
372
379
|
};
|
|
373
380
|
return Object.keys(t).forEach((u) => {
|
|
374
|
-
Object.defineProperty(
|
|
381
|
+
Object.defineProperty(s.prototype, u, {
|
|
375
382
|
get() {
|
|
376
383
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
377
384
|
},
|
|
378
|
-
set(
|
|
379
|
-
|
|
385
|
+
set(l) {
|
|
386
|
+
l = ce(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
|
|
380
387
|
}
|
|
381
388
|
});
|
|
382
389
|
}), n.forEach((u) => {
|
|
383
|
-
Object.defineProperty(
|
|
390
|
+
Object.defineProperty(s.prototype, u, {
|
|
384
391
|
get() {
|
|
385
392
|
return this.$$c?.[u];
|
|
386
393
|
}
|
|
387
394
|
});
|
|
388
395
|
}), e.element = /** @type {any} */
|
|
389
|
-
|
|
396
|
+
s, s;
|
|
390
397
|
}
|
|
391
|
-
class
|
|
398
|
+
class fr {
|
|
392
399
|
/**
|
|
393
400
|
* ### PRIVATE API
|
|
394
401
|
*
|
|
@@ -407,7 +414,7 @@ class cr {
|
|
|
407
414
|
$$set = void 0;
|
|
408
415
|
/** @returns {void} */
|
|
409
416
|
$destroy() {
|
|
410
|
-
|
|
417
|
+
ar(this, 1), this.$destroy = L;
|
|
411
418
|
}
|
|
412
419
|
/**
|
|
413
420
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -416,7 +423,7 @@ class cr {
|
|
|
416
423
|
* @returns {() => void}
|
|
417
424
|
*/
|
|
418
425
|
$on(t, r) {
|
|
419
|
-
if (!
|
|
426
|
+
if (!je(r))
|
|
420
427
|
return L;
|
|
421
428
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
422
429
|
return n.push(r), () => {
|
|
@@ -429,159 +436,159 @@ class cr {
|
|
|
429
436
|
* @returns {void}
|
|
430
437
|
*/
|
|
431
438
|
$set(t) {
|
|
432
|
-
this.$$set && !
|
|
439
|
+
this.$$set && !Xt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
433
440
|
}
|
|
434
441
|
}
|
|
435
|
-
const
|
|
436
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
437
|
-
const
|
|
438
|
-
function
|
|
442
|
+
const cr = "4";
|
|
443
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
|
|
444
|
+
const V = [];
|
|
445
|
+
function gr(e, t) {
|
|
439
446
|
return {
|
|
440
|
-
subscribe:
|
|
447
|
+
subscribe: ye(e, t).subscribe
|
|
441
448
|
};
|
|
442
449
|
}
|
|
443
|
-
function
|
|
450
|
+
function ye(e, t = L) {
|
|
444
451
|
let r;
|
|
445
452
|
const n = /* @__PURE__ */ new Set();
|
|
446
453
|
function i(u) {
|
|
447
|
-
if (
|
|
448
|
-
const
|
|
454
|
+
if (pt(e, u) && (e = u, r)) {
|
|
455
|
+
const l = !V.length;
|
|
449
456
|
for (const a of n)
|
|
450
|
-
a[1](),
|
|
451
|
-
if (
|
|
452
|
-
for (let a = 0; a <
|
|
453
|
-
|
|
454
|
-
|
|
457
|
+
a[1](), V.push(a, e);
|
|
458
|
+
if (l) {
|
|
459
|
+
for (let a = 0; a < V.length; a += 2)
|
|
460
|
+
V[a][0](V[a + 1]);
|
|
461
|
+
V.length = 0;
|
|
455
462
|
}
|
|
456
463
|
}
|
|
457
464
|
}
|
|
458
|
-
function
|
|
465
|
+
function o(u) {
|
|
459
466
|
i(u(e));
|
|
460
467
|
}
|
|
461
|
-
function
|
|
462
|
-
const a = [u,
|
|
463
|
-
return n.add(a), n.size === 1 && (r = t(i,
|
|
468
|
+
function s(u, l = L) {
|
|
469
|
+
const a = [u, l];
|
|
470
|
+
return n.add(a), n.size === 1 && (r = t(i, o) || L), u(e), () => {
|
|
464
471
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
465
472
|
};
|
|
466
473
|
}
|
|
467
|
-
return { set: i, update:
|
|
474
|
+
return { set: i, update: o, subscribe: s };
|
|
468
475
|
}
|
|
469
|
-
function
|
|
476
|
+
function Y(e, t, r) {
|
|
470
477
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
471
478
|
if (!i.every(Boolean))
|
|
472
479
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
473
|
-
const
|
|
474
|
-
return
|
|
475
|
-
let
|
|
480
|
+
const o = t.length < 2;
|
|
481
|
+
return gr(r, (s, u) => {
|
|
482
|
+
let l = !1;
|
|
476
483
|
const a = [];
|
|
477
484
|
let h = 0, c = L;
|
|
478
|
-
const
|
|
485
|
+
const f = () => {
|
|
479
486
|
if (h)
|
|
480
487
|
return;
|
|
481
488
|
c();
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
},
|
|
485
|
-
(
|
|
486
|
-
|
|
489
|
+
const d = t(n ? a[0] : a, s, u);
|
|
490
|
+
o ? s(d) : c = je(d) ? d : L;
|
|
491
|
+
}, p = i.map(
|
|
492
|
+
(d, g) => dt(
|
|
493
|
+
d,
|
|
487
494
|
(x) => {
|
|
488
|
-
a[g] = x, h &= ~(1 << g),
|
|
495
|
+
a[g] = x, h &= ~(1 << g), l && f();
|
|
489
496
|
},
|
|
490
497
|
() => {
|
|
491
498
|
h |= 1 << g;
|
|
492
499
|
}
|
|
493
500
|
)
|
|
494
501
|
);
|
|
495
|
-
return
|
|
496
|
-
|
|
502
|
+
return l = !0, f(), function() {
|
|
503
|
+
se(p), c(), l = !1;
|
|
497
504
|
};
|
|
498
505
|
});
|
|
499
506
|
}
|
|
500
|
-
function
|
|
507
|
+
function mr(e) {
|
|
501
508
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
502
509
|
}
|
|
503
|
-
var
|
|
504
|
-
return
|
|
510
|
+
var pr = function(t) {
|
|
511
|
+
return dr(t) && !br(t);
|
|
505
512
|
};
|
|
506
|
-
function
|
|
513
|
+
function dr(e) {
|
|
507
514
|
return !!e && typeof e == "object";
|
|
508
515
|
}
|
|
509
|
-
function
|
|
516
|
+
function br(e) {
|
|
510
517
|
var t = Object.prototype.toString.call(e);
|
|
511
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
518
|
+
return t === "[object RegExp]" || t === "[object Date]" || Er(e);
|
|
512
519
|
}
|
|
513
|
-
var
|
|
514
|
-
function
|
|
515
|
-
return e.$$typeof ===
|
|
520
|
+
var yr = typeof Symbol == "function" && Symbol.for, _r = yr ? Symbol.for("react.element") : 60103;
|
|
521
|
+
function Er(e) {
|
|
522
|
+
return e.$$typeof === _r;
|
|
516
523
|
}
|
|
517
|
-
function
|
|
524
|
+
function xr(e) {
|
|
518
525
|
return Array.isArray(e) ? [] : {};
|
|
519
526
|
}
|
|
520
527
|
function ie(e, t) {
|
|
521
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
528
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(xr(e), e, t) : e;
|
|
522
529
|
}
|
|
523
|
-
function
|
|
530
|
+
function vr(e, t, r) {
|
|
524
531
|
return e.concat(t).map(function(n) {
|
|
525
532
|
return ie(n, r);
|
|
526
533
|
});
|
|
527
534
|
}
|
|
528
|
-
function
|
|
535
|
+
function Tr(e, t) {
|
|
529
536
|
if (!t.customMerge)
|
|
530
|
-
return
|
|
537
|
+
return W;
|
|
531
538
|
var r = t.customMerge(e);
|
|
532
|
-
return typeof r == "function" ? r :
|
|
539
|
+
return typeof r == "function" ? r : W;
|
|
533
540
|
}
|
|
534
|
-
function
|
|
541
|
+
function Cr(e) {
|
|
535
542
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
536
543
|
return Object.propertyIsEnumerable.call(e, t);
|
|
537
544
|
}) : [];
|
|
538
545
|
}
|
|
539
|
-
function
|
|
540
|
-
return Object.keys(e).concat(
|
|
546
|
+
function Qe(e) {
|
|
547
|
+
return Object.keys(e).concat(Cr(e));
|
|
541
548
|
}
|
|
542
|
-
function
|
|
549
|
+
function _t(e, t) {
|
|
543
550
|
try {
|
|
544
551
|
return t in e;
|
|
545
552
|
} catch {
|
|
546
553
|
return !1;
|
|
547
554
|
}
|
|
548
555
|
}
|
|
549
|
-
function
|
|
550
|
-
return
|
|
556
|
+
function Hr(e, t) {
|
|
557
|
+
return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
551
558
|
}
|
|
552
|
-
function
|
|
559
|
+
function Ar(e, t, r) {
|
|
553
560
|
var n = {};
|
|
554
|
-
return r.isMergeableObject(e) &&
|
|
561
|
+
return r.isMergeableObject(e) && Qe(e).forEach(function(i) {
|
|
555
562
|
n[i] = ie(e[i], r);
|
|
556
|
-
}),
|
|
557
|
-
|
|
563
|
+
}), Qe(t).forEach(function(i) {
|
|
564
|
+
Hr(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
558
565
|
}), n;
|
|
559
566
|
}
|
|
560
|
-
function
|
|
561
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
562
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
563
|
-
return
|
|
567
|
+
function W(e, t, r) {
|
|
568
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || vr, r.isMergeableObject = r.isMergeableObject || pr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
569
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
570
|
+
return o ? n ? r.arrayMerge(e, t, r) : Ar(e, t, r) : ie(t, r);
|
|
564
571
|
}
|
|
565
|
-
|
|
572
|
+
W.all = function(t, r) {
|
|
566
573
|
if (!Array.isArray(t))
|
|
567
574
|
throw new Error("first argument should be an array");
|
|
568
575
|
return t.reduce(function(n, i) {
|
|
569
|
-
return
|
|
576
|
+
return W(n, i, r);
|
|
570
577
|
}, {});
|
|
571
578
|
};
|
|
572
|
-
var Sr =
|
|
573
|
-
const
|
|
574
|
-
var
|
|
575
|
-
return
|
|
579
|
+
var Sr = W, Br = Sr;
|
|
580
|
+
const Or = /* @__PURE__ */ mr(Br);
|
|
581
|
+
var Le = function(e, t) {
|
|
582
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
576
583
|
r.__proto__ = n;
|
|
577
584
|
} || function(r, n) {
|
|
578
585
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
579
|
-
},
|
|
586
|
+
}, Le(e, t);
|
|
580
587
|
};
|
|
581
|
-
function
|
|
588
|
+
function _e(e, t) {
|
|
582
589
|
if (typeof t != "function" && t !== null)
|
|
583
590
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
584
|
-
|
|
591
|
+
Le(e, t);
|
|
585
592
|
function r() {
|
|
586
593
|
this.constructor = e;
|
|
587
594
|
}
|
|
@@ -591,7 +598,7 @@ var E = function() {
|
|
|
591
598
|
return E = Object.assign || function(t) {
|
|
592
599
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
593
600
|
r = arguments[n];
|
|
594
|
-
for (var
|
|
601
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
595
602
|
}
|
|
596
603
|
return t;
|
|
597
604
|
}, E.apply(this, arguments);
|
|
@@ -604,61 +611,59 @@ function wr(e, t) {
|
|
|
604
611
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
605
612
|
return r;
|
|
606
613
|
}
|
|
607
|
-
function
|
|
608
|
-
if (r || arguments.length === 2) for (var n = 0, i = t.length,
|
|
609
|
-
(
|
|
610
|
-
return e.concat(
|
|
614
|
+
function Ce(e, t, r) {
|
|
615
|
+
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
616
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
617
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
611
618
|
}
|
|
612
|
-
function
|
|
613
|
-
var r = t && t.cache ? t.cache : Rr, n = t && t.serializer ? t.serializer :
|
|
619
|
+
function He(e, t) {
|
|
620
|
+
var r = t && t.cache ? t.cache : Rr, n = t && t.serializer ? t.serializer : Mr, i = t && t.strategy ? t.strategy : Lr;
|
|
614
621
|
return i(e, {
|
|
615
622
|
cache: r,
|
|
616
623
|
serializer: n
|
|
617
624
|
});
|
|
618
625
|
}
|
|
619
|
-
function
|
|
626
|
+
function Pr(e) {
|
|
620
627
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
621
628
|
}
|
|
622
|
-
function
|
|
623
|
-
var i =
|
|
624
|
-
return typeof
|
|
629
|
+
function Nr(e, t, r, n) {
|
|
630
|
+
var i = Pr(n) ? n : r(n), o = t.get(i);
|
|
631
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
625
632
|
}
|
|
626
|
-
function
|
|
627
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
628
|
-
return typeof
|
|
633
|
+
function Et(e, t, r) {
|
|
634
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
635
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
629
636
|
}
|
|
630
|
-
function
|
|
637
|
+
function xt(e, t, r, n, i) {
|
|
631
638
|
return r.bind(t, e, n, i);
|
|
632
639
|
}
|
|
633
|
-
function Ir(e, t) {
|
|
634
|
-
var r = e.length === 1 ? vt : Tt;
|
|
635
|
-
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
636
|
-
}
|
|
637
640
|
function Lr(e, t) {
|
|
638
|
-
|
|
641
|
+
var r = e.length === 1 ? Nr : Et;
|
|
642
|
+
return xt(e, this, r, t.cache.create(), t.serializer);
|
|
639
643
|
}
|
|
640
|
-
function
|
|
641
|
-
return
|
|
644
|
+
function Ir(e, t) {
|
|
645
|
+
return xt(e, this, Et, t.cache.create(), t.serializer);
|
|
642
646
|
}
|
|
643
|
-
var
|
|
647
|
+
var Mr = function() {
|
|
644
648
|
return JSON.stringify(arguments);
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
649
|
+
}, $r = (
|
|
650
|
+
/** @class */
|
|
651
|
+
function() {
|
|
652
|
+
function e() {
|
|
653
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
654
|
+
}
|
|
655
|
+
return e.prototype.get = function(t) {
|
|
656
|
+
return this.cache[t];
|
|
657
|
+
}, e.prototype.set = function(t, r) {
|
|
658
|
+
this.cache[t] = r;
|
|
659
|
+
}, e;
|
|
660
|
+
}()
|
|
661
|
+
), Rr = {
|
|
656
662
|
create: function() {
|
|
657
|
-
return new
|
|
663
|
+
return new $r();
|
|
658
664
|
}
|
|
659
|
-
},
|
|
660
|
-
variadic:
|
|
661
|
-
monadic: Mr
|
|
665
|
+
}, Ae = {
|
|
666
|
+
variadic: Ir
|
|
662
667
|
}, y;
|
|
663
668
|
(function(e) {
|
|
664
669
|
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";
|
|
@@ -667,44 +672,44 @@ var T;
|
|
|
667
672
|
(function(e) {
|
|
668
673
|
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";
|
|
669
674
|
})(T || (T = {}));
|
|
670
|
-
var
|
|
675
|
+
var Z;
|
|
671
676
|
(function(e) {
|
|
672
677
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
673
|
-
})(
|
|
674
|
-
function
|
|
678
|
+
})(Z || (Z = {}));
|
|
679
|
+
function Je(e) {
|
|
675
680
|
return e.type === T.literal;
|
|
676
681
|
}
|
|
677
682
|
function Ur(e) {
|
|
678
683
|
return e.type === T.argument;
|
|
679
684
|
}
|
|
680
|
-
function
|
|
685
|
+
function vt(e) {
|
|
681
686
|
return e.type === T.number;
|
|
682
687
|
}
|
|
683
|
-
function
|
|
688
|
+
function Tt(e) {
|
|
684
689
|
return e.type === T.date;
|
|
685
690
|
}
|
|
686
|
-
function
|
|
691
|
+
function Ct(e) {
|
|
687
692
|
return e.type === T.time;
|
|
688
693
|
}
|
|
689
|
-
function
|
|
694
|
+
function Ht(e) {
|
|
690
695
|
return e.type === T.select;
|
|
691
696
|
}
|
|
692
|
-
function
|
|
697
|
+
function At(e) {
|
|
693
698
|
return e.type === T.plural;
|
|
694
699
|
}
|
|
695
700
|
function Gr(e) {
|
|
696
701
|
return e.type === T.pound;
|
|
697
702
|
}
|
|
698
|
-
function
|
|
703
|
+
function St(e) {
|
|
699
704
|
return e.type === T.tag;
|
|
700
705
|
}
|
|
701
|
-
function
|
|
702
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
706
|
+
function Bt(e) {
|
|
707
|
+
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
703
708
|
}
|
|
704
709
|
function Ie(e) {
|
|
705
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
710
|
+
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
706
711
|
}
|
|
707
|
-
var
|
|
712
|
+
var Ot = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
|
|
708
713
|
function Fr(e) {
|
|
709
714
|
var t = {};
|
|
710
715
|
return e.replace(Dr, function(r) {
|
|
@@ -800,32 +805,32 @@ var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
800
805
|
function kr(e) {
|
|
801
806
|
if (e.length === 0)
|
|
802
807
|
throw new Error("Number skeleton cannot be empty");
|
|
803
|
-
for (var t = e.split(jr).filter(function(
|
|
804
|
-
return
|
|
808
|
+
for (var t = e.split(jr).filter(function(f) {
|
|
809
|
+
return f.length > 0;
|
|
805
810
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
806
|
-
var
|
|
807
|
-
if (
|
|
811
|
+
var o = i[n], s = o.split("/");
|
|
812
|
+
if (s.length === 0)
|
|
808
813
|
throw new Error("Invalid number skeleton");
|
|
809
|
-
for (var u =
|
|
814
|
+
for (var u = s[0], l = s.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
810
815
|
var c = h[a];
|
|
811
816
|
if (c.length === 0)
|
|
812
817
|
throw new Error("Invalid number skeleton");
|
|
813
818
|
}
|
|
814
|
-
r.push({ stem: u, options:
|
|
819
|
+
r.push({ stem: u, options: l });
|
|
815
820
|
}
|
|
816
821
|
return r;
|
|
817
822
|
}
|
|
818
823
|
function Vr(e) {
|
|
819
824
|
return e.replace(/^(.*?)-/, "");
|
|
820
825
|
}
|
|
821
|
-
var
|
|
822
|
-
function
|
|
826
|
+
var qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, wt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Pt = /^(0+)$/;
|
|
827
|
+
function Ye(e) {
|
|
823
828
|
var t = {};
|
|
824
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
829
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(wt, function(r, n, i) {
|
|
825
830
|
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)), "";
|
|
826
831
|
}), t;
|
|
827
832
|
}
|
|
828
|
-
function
|
|
833
|
+
function Nt(e) {
|
|
829
834
|
switch (e) {
|
|
830
835
|
case "sign-auto":
|
|
831
836
|
return {
|
|
@@ -873,14 +878,14 @@ function zr(e) {
|
|
|
873
878
|
notation: "scientific"
|
|
874
879
|
}, e = e.slice(1)), t) {
|
|
875
880
|
var r = e.slice(0, 2);
|
|
876
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
881
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Pt.test(e))
|
|
877
882
|
throw new Error("Malformed concise eng/scientific notation");
|
|
878
883
|
t.minimumIntegerDigits = e.length;
|
|
879
884
|
}
|
|
880
885
|
return t;
|
|
881
886
|
}
|
|
882
|
-
function
|
|
883
|
-
var t = {}, r =
|
|
887
|
+
function Ke(e) {
|
|
888
|
+
var t = {}, r = Nt(e);
|
|
884
889
|
return r || t;
|
|
885
890
|
}
|
|
886
891
|
function Wr(e) {
|
|
@@ -918,13 +923,13 @@ function Wr(e) {
|
|
|
918
923
|
t.notation = "compact", t.compactDisplay = "long";
|
|
919
924
|
continue;
|
|
920
925
|
case "scientific":
|
|
921
|
-
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
922
|
-
return E(E({},
|
|
926
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
927
|
+
return E(E({}, l), Ke(a));
|
|
923
928
|
}, {}));
|
|
924
929
|
continue;
|
|
925
930
|
case "engineering":
|
|
926
|
-
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
927
|
-
return E(E({},
|
|
931
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
932
|
+
return E(E({}, l), Ke(a));
|
|
928
933
|
}, {}));
|
|
929
934
|
continue;
|
|
930
935
|
case "notation-simple":
|
|
@@ -969,45 +974,45 @@ function Wr(e) {
|
|
|
969
974
|
case "integer-width":
|
|
970
975
|
if (i.options.length > 1)
|
|
971
976
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
972
|
-
i.options[0].replace(Xr, function(
|
|
977
|
+
i.options[0].replace(Xr, function(l, a, h, c, f, p) {
|
|
973
978
|
if (a)
|
|
974
979
|
t.minimumIntegerDigits = h.length;
|
|
975
980
|
else {
|
|
976
|
-
if (c &&
|
|
981
|
+
if (c && f)
|
|
977
982
|
throw new Error("We currently do not support maximum integer digits");
|
|
978
|
-
if (
|
|
983
|
+
if (p)
|
|
979
984
|
throw new Error("We currently do not support exact integer digits");
|
|
980
985
|
}
|
|
981
986
|
return "";
|
|
982
987
|
});
|
|
983
988
|
continue;
|
|
984
989
|
}
|
|
985
|
-
if (
|
|
990
|
+
if (Pt.test(i.stem)) {
|
|
986
991
|
t.minimumIntegerDigits = i.stem.length;
|
|
987
992
|
continue;
|
|
988
993
|
}
|
|
989
|
-
if (
|
|
994
|
+
if (qe.test(i.stem)) {
|
|
990
995
|
if (i.options.length > 1)
|
|
991
996
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
992
|
-
i.stem.replace(
|
|
993
|
-
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length :
|
|
997
|
+
i.stem.replace(qe, function(l, a, h, c, f, p) {
|
|
998
|
+
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), "";
|
|
994
999
|
});
|
|
995
|
-
var
|
|
996
|
-
|
|
1000
|
+
var o = i.options[0];
|
|
1001
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), Ye(o)));
|
|
997
1002
|
continue;
|
|
998
1003
|
}
|
|
999
|
-
if (
|
|
1000
|
-
t = E(E({}, t),
|
|
1004
|
+
if (wt.test(i.stem)) {
|
|
1005
|
+
t = E(E({}, t), Ye(i.stem));
|
|
1001
1006
|
continue;
|
|
1002
1007
|
}
|
|
1003
|
-
var
|
|
1004
|
-
|
|
1008
|
+
var s = Nt(i.stem);
|
|
1009
|
+
s && (t = E(E({}, t), s));
|
|
1005
1010
|
var u = zr(i.stem);
|
|
1006
1011
|
u && (t = E(E({}, t), u));
|
|
1007
1012
|
}
|
|
1008
1013
|
return t;
|
|
1009
1014
|
}
|
|
1010
|
-
var
|
|
1015
|
+
var fe = {
|
|
1011
1016
|
"001": [
|
|
1012
1017
|
"H",
|
|
1013
1018
|
"h"
|
|
@@ -2426,12 +2431,12 @@ function Zr(e, t) {
|
|
|
2426
2431
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2427
2432
|
var i = e.charAt(n);
|
|
2428
2433
|
if (i === "j") {
|
|
2429
|
-
for (var
|
|
2430
|
-
|
|
2431
|
-
var
|
|
2434
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2435
|
+
o++, n++;
|
|
2436
|
+
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = Qr(t);
|
|
2432
2437
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2433
|
-
r +=
|
|
2434
|
-
for (;
|
|
2438
|
+
r += l;
|
|
2439
|
+
for (; s-- > 0; )
|
|
2435
2440
|
r = a + r;
|
|
2436
2441
|
} else i === "J" ? r += "H" : r += i;
|
|
2437
2442
|
}
|
|
@@ -2456,23 +2461,23 @@ function Qr(e) {
|
|
|
2456
2461
|
}
|
|
2457
2462
|
var r = e.language, n;
|
|
2458
2463
|
r !== "root" && (n = e.maximize().region);
|
|
2459
|
-
var i =
|
|
2464
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2460
2465
|
return i[0];
|
|
2461
2466
|
}
|
|
2462
|
-
var
|
|
2467
|
+
var Se, Jr = new RegExp("^".concat(Ot.source, "*")), qr = new RegExp("".concat(Ot.source, "*$"));
|
|
2463
2468
|
function _(e, t) {
|
|
2464
2469
|
return { start: e, end: t };
|
|
2465
2470
|
}
|
|
2466
|
-
var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd,
|
|
2471
|
+
var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, on = !!Number.isSafeInteger, sn = on ? Number.isSafeInteger : function(e) {
|
|
2467
2472
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2468
|
-
},
|
|
2473
|
+
}, Me = !0;
|
|
2469
2474
|
try {
|
|
2470
|
-
var an =
|
|
2471
|
-
|
|
2475
|
+
var an = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2476
|
+
Me = ((Se = an.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
2472
2477
|
} catch {
|
|
2473
|
-
|
|
2478
|
+
Me = !1;
|
|
2474
2479
|
}
|
|
2475
|
-
var
|
|
2480
|
+
var et = Yr ? (
|
|
2476
2481
|
// Native
|
|
2477
2482
|
function(t, r, n) {
|
|
2478
2483
|
return t.startsWith(r, n);
|
|
@@ -2482,31 +2487,31 @@ var rt = Yr ? (
|
|
|
2482
2487
|
function(t, r, n) {
|
|
2483
2488
|
return t.slice(n, n + r.length) === r;
|
|
2484
2489
|
}
|
|
2485
|
-
),
|
|
2490
|
+
), $e = Kr ? String.fromCodePoint : (
|
|
2486
2491
|
// IE11
|
|
2487
2492
|
function() {
|
|
2488
2493
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2489
2494
|
t[r] = arguments[r];
|
|
2490
|
-
for (var n = "", i = t.length,
|
|
2491
|
-
if (
|
|
2492
|
-
throw RangeError(
|
|
2493
|
-
n +=
|
|
2495
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
2496
|
+
if (s = t[o++], s > 1114111)
|
|
2497
|
+
throw RangeError(s + " is not a valid code point");
|
|
2498
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2494
2499
|
}
|
|
2495
2500
|
return n;
|
|
2496
2501
|
}
|
|
2497
|
-
),
|
|
2502
|
+
), tt = (
|
|
2498
2503
|
// native
|
|
2499
2504
|
en ? Object.fromEntries : (
|
|
2500
2505
|
// Ponyfill
|
|
2501
2506
|
function(t) {
|
|
2502
2507
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2503
|
-
var
|
|
2504
|
-
r[
|
|
2508
|
+
var o = i[n], s = o[0], u = o[1];
|
|
2509
|
+
r[s] = u;
|
|
2505
2510
|
}
|
|
2506
2511
|
return r;
|
|
2507
2512
|
}
|
|
2508
2513
|
)
|
|
2509
|
-
),
|
|
2514
|
+
), Lt = tn ? (
|
|
2510
2515
|
// Native
|
|
2511
2516
|
function(t, r) {
|
|
2512
2517
|
return t.codePointAt(r);
|
|
@@ -2516,8 +2521,8 @@ var rt = Yr ? (
|
|
|
2516
2521
|
function(t, r) {
|
|
2517
2522
|
var n = t.length;
|
|
2518
2523
|
if (!(r < 0 || r >= n)) {
|
|
2519
|
-
var i = t.charCodeAt(r),
|
|
2520
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
2524
|
+
var i = t.charCodeAt(r), o;
|
|
2525
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2521
2526
|
}
|
|
2522
2527
|
}
|
|
2523
2528
|
), un = rn ? (
|
|
@@ -2541,27 +2546,27 @@ var rt = Yr ? (
|
|
|
2541
2546
|
return t.replace(qr, "");
|
|
2542
2547
|
}
|
|
2543
2548
|
);
|
|
2544
|
-
function
|
|
2549
|
+
function It(e, t) {
|
|
2545
2550
|
return new RegExp(e, t);
|
|
2546
2551
|
}
|
|
2547
|
-
var
|
|
2548
|
-
if (
|
|
2549
|
-
var
|
|
2550
|
-
|
|
2552
|
+
var Re;
|
|
2553
|
+
if (Me) {
|
|
2554
|
+
var rt = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2555
|
+
Re = function(t, r) {
|
|
2551
2556
|
var n;
|
|
2552
|
-
|
|
2553
|
-
var i =
|
|
2557
|
+
rt.lastIndex = r;
|
|
2558
|
+
var i = rt.exec(t);
|
|
2554
2559
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2555
2560
|
};
|
|
2556
2561
|
} else
|
|
2557
|
-
|
|
2562
|
+
Re = function(t, r) {
|
|
2558
2563
|
for (var n = []; ; ) {
|
|
2559
|
-
var i =
|
|
2560
|
-
if (i === void 0 ||
|
|
2564
|
+
var i = Lt(t, r);
|
|
2565
|
+
if (i === void 0 || Mt(i) || gn(i))
|
|
2561
2566
|
break;
|
|
2562
2567
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2563
2568
|
}
|
|
2564
|
-
return
|
|
2569
|
+
return $e.apply(void 0, n);
|
|
2565
2570
|
};
|
|
2566
2571
|
var ln = (
|
|
2567
2572
|
/** @class */
|
|
@@ -2575,35 +2580,35 @@ var ln = (
|
|
|
2575
2580
|
return this.parseMessage(0, "", !1);
|
|
2576
2581
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2577
2582
|
for (var i = []; !this.isEOF(); ) {
|
|
2578
|
-
var
|
|
2579
|
-
if (
|
|
2580
|
-
var
|
|
2581
|
-
if (
|
|
2582
|
-
return
|
|
2583
|
-
i.push(
|
|
2583
|
+
var o = this.char();
|
|
2584
|
+
if (o === 123) {
|
|
2585
|
+
var s = this.parseArgument(t, n);
|
|
2586
|
+
if (s.err)
|
|
2587
|
+
return s;
|
|
2588
|
+
i.push(s.val);
|
|
2584
2589
|
} else {
|
|
2585
|
-
if (
|
|
2590
|
+
if (o === 125 && t > 0)
|
|
2586
2591
|
break;
|
|
2587
|
-
if (
|
|
2592
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2588
2593
|
var u = this.clonePosition();
|
|
2589
2594
|
this.bump(), i.push({
|
|
2590
2595
|
type: T.pound,
|
|
2591
2596
|
location: _(u, this.clonePosition())
|
|
2592
2597
|
});
|
|
2593
|
-
} else if (
|
|
2598
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2594
2599
|
if (n)
|
|
2595
2600
|
break;
|
|
2596
2601
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2597
|
-
} else if (
|
|
2598
|
-
var
|
|
2599
|
-
if (
|
|
2600
|
-
return
|
|
2601
|
-
i.push(
|
|
2602
|
+
} else if (o === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
2603
|
+
var s = this.parseTag(t, r);
|
|
2604
|
+
if (s.err)
|
|
2605
|
+
return s;
|
|
2606
|
+
i.push(s.val);
|
|
2602
2607
|
} else {
|
|
2603
|
-
var
|
|
2604
|
-
if (
|
|
2605
|
-
return
|
|
2606
|
-
i.push(
|
|
2608
|
+
var s = this.parseLiteral(t, r);
|
|
2609
|
+
if (s.err)
|
|
2610
|
+
return s;
|
|
2611
|
+
i.push(s.val);
|
|
2607
2612
|
}
|
|
2608
2613
|
}
|
|
2609
2614
|
}
|
|
@@ -2622,19 +2627,19 @@ var ln = (
|
|
|
2622
2627
|
err: null
|
|
2623
2628
|
};
|
|
2624
2629
|
if (this.bumpIf(">")) {
|
|
2625
|
-
var
|
|
2626
|
-
if (
|
|
2627
|
-
return
|
|
2628
|
-
var
|
|
2630
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
2631
|
+
if (o.err)
|
|
2632
|
+
return o;
|
|
2633
|
+
var s = o.val, u = this.clonePosition();
|
|
2629
2634
|
if (this.bumpIf("</")) {
|
|
2630
|
-
if (this.isEOF() || !
|
|
2635
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
2631
2636
|
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2632
|
-
var
|
|
2633
|
-
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(
|
|
2637
|
+
var l = this.clonePosition(), a = this.parseTagName();
|
|
2638
|
+
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2634
2639
|
val: {
|
|
2635
2640
|
type: T.tag,
|
|
2636
2641
|
value: i,
|
|
2637
|
-
children:
|
|
2642
|
+
children: s,
|
|
2638
2643
|
location: _(n, this.clonePosition())
|
|
2639
2644
|
},
|
|
2640
2645
|
err: null
|
|
@@ -2650,16 +2655,16 @@ var ln = (
|
|
|
2650
2655
|
return this.message.slice(t, this.offset());
|
|
2651
2656
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
2652
2657
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2653
|
-
var
|
|
2654
|
-
if (s) {
|
|
2655
|
-
i += s;
|
|
2656
|
-
continue;
|
|
2657
|
-
}
|
|
2658
|
-
var o = this.tryParseUnquoted(t, r);
|
|
2658
|
+
var o = this.tryParseQuote(r);
|
|
2659
2659
|
if (o) {
|
|
2660
2660
|
i += o;
|
|
2661
2661
|
continue;
|
|
2662
2662
|
}
|
|
2663
|
+
var s = this.tryParseUnquoted(t, r);
|
|
2664
|
+
if (s) {
|
|
2665
|
+
i += s;
|
|
2666
|
+
continue;
|
|
2667
|
+
}
|
|
2663
2668
|
var u = this.tryParseLeftAngleBracket();
|
|
2664
2669
|
if (u) {
|
|
2665
2670
|
i += u;
|
|
@@ -2667,9 +2672,9 @@ var ln = (
|
|
|
2667
2672
|
}
|
|
2668
2673
|
break;
|
|
2669
2674
|
}
|
|
2670
|
-
var
|
|
2675
|
+
var l = _(n, this.clonePosition());
|
|
2671
2676
|
return {
|
|
2672
|
-
val: { type: T.literal, value: i, location:
|
|
2677
|
+
val: { type: T.literal, value: i, location: l },
|
|
2673
2678
|
err: null
|
|
2674
2679
|
};
|
|
2675
2680
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2708,12 +2713,12 @@ var ln = (
|
|
|
2708
2713
|
r.push(n);
|
|
2709
2714
|
this.bump();
|
|
2710
2715
|
}
|
|
2711
|
-
return
|
|
2716
|
+
return $e.apply(void 0, r);
|
|
2712
2717
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2713
2718
|
if (this.isEOF())
|
|
2714
2719
|
return null;
|
|
2715
2720
|
var n = this.char();
|
|
2716
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2721
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), $e(n));
|
|
2717
2722
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2718
2723
|
var n = this.clonePosition();
|
|
2719
2724
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2742,15 +2747,15 @@ var ln = (
|
|
|
2742
2747
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2743
2748
|
}
|
|
2744
2749
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2745
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2750
|
+
var t = this.clonePosition(), r = this.offset(), n = Re(this.message, r), i = r + n.length;
|
|
2746
2751
|
this.bumpTo(i);
|
|
2747
|
-
var
|
|
2748
|
-
return { value: n, location:
|
|
2752
|
+
var o = this.clonePosition(), s = _(t, o);
|
|
2753
|
+
return { value: n, location: s };
|
|
2749
2754
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2750
|
-
var
|
|
2755
|
+
var o, s = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2751
2756
|
switch (u) {
|
|
2752
2757
|
case "":
|
|
2753
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, _(
|
|
2758
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(s, l));
|
|
2754
2759
|
case "number":
|
|
2755
2760
|
case "date":
|
|
2756
2761
|
case "time": {
|
|
@@ -2761,17 +2766,17 @@ var ln = (
|
|
|
2761
2766
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2762
2767
|
if (c.err)
|
|
2763
2768
|
return c;
|
|
2764
|
-
var
|
|
2765
|
-
if (
|
|
2769
|
+
var f = hn(c.val);
|
|
2770
|
+
if (f.length === 0)
|
|
2766
2771
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2767
|
-
var
|
|
2768
|
-
a = { style:
|
|
2772
|
+
var p = _(h, this.clonePosition());
|
|
2773
|
+
a = { style: f, styleLocation: p };
|
|
2769
2774
|
}
|
|
2770
|
-
var
|
|
2771
|
-
if (
|
|
2772
|
-
return
|
|
2775
|
+
var d = this.tryParseArgumentClose(i);
|
|
2776
|
+
if (d.err)
|
|
2777
|
+
return d;
|
|
2773
2778
|
var g = _(i, this.clonePosition());
|
|
2774
|
-
if (a &&
|
|
2779
|
+
if (a && et(a?.style, "::", 0)) {
|
|
2775
2780
|
var x = un(a.style.slice(2));
|
|
2776
2781
|
if (u === "number") {
|
|
2777
2782
|
var c = this.parseNumberSkeletonFromString(x, a.styleLocation);
|
|
@@ -2784,14 +2789,14 @@ var ln = (
|
|
|
2784
2789
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2785
2790
|
var m = x;
|
|
2786
2791
|
this.locale && (m = Zr(x, this.locale));
|
|
2787
|
-
var
|
|
2788
|
-
type:
|
|
2792
|
+
var f = {
|
|
2793
|
+
type: Z.dateTime,
|
|
2789
2794
|
pattern: m,
|
|
2790
2795
|
location: a.styleLocation,
|
|
2791
2796
|
parsedOptions: this.shouldParseSkeletons ? Fr(m) : {}
|
|
2792
2797
|
}, C = u === "date" ? T.date : T.time;
|
|
2793
2798
|
return {
|
|
2794
|
-
val: { type: C, value: n, location: g, style:
|
|
2799
|
+
val: { type: C, value: n, location: g, style: f },
|
|
2795
2800
|
err: null
|
|
2796
2801
|
};
|
|
2797
2802
|
}
|
|
@@ -2801,7 +2806,7 @@ var ln = (
|
|
|
2801
2806
|
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2802
2807
|
value: n,
|
|
2803
2808
|
location: g,
|
|
2804
|
-
style: (
|
|
2809
|
+
style: (o = a?.style) !== null && o !== void 0 ? o : null
|
|
2805
2810
|
},
|
|
2806
2811
|
err: null
|
|
2807
2812
|
};
|
|
@@ -2809,49 +2814,49 @@ var ln = (
|
|
|
2809
2814
|
case "plural":
|
|
2810
2815
|
case "selectordinal":
|
|
2811
2816
|
case "select": {
|
|
2812
|
-
var
|
|
2817
|
+
var S = this.clonePosition();
|
|
2813
2818
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2814
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2819
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, E({}, S)));
|
|
2815
2820
|
this.bumpSpace();
|
|
2816
|
-
var
|
|
2817
|
-
if (u !== "select" &&
|
|
2821
|
+
var P = this.parseIdentifierIfPossible(), B = 0;
|
|
2822
|
+
if (u !== "select" && P.value === "offset") {
|
|
2818
2823
|
if (!this.bumpIf(":"))
|
|
2819
2824
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2820
2825
|
this.bumpSpace();
|
|
2821
2826
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2822
2827
|
if (c.err)
|
|
2823
2828
|
return c;
|
|
2824
|
-
this.bumpSpace(),
|
|
2829
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), B = c.val;
|
|
2825
2830
|
}
|
|
2826
|
-
var
|
|
2827
|
-
if (
|
|
2828
|
-
return
|
|
2829
|
-
var
|
|
2830
|
-
if (
|
|
2831
|
-
return
|
|
2832
|
-
var
|
|
2831
|
+
var H = this.tryParsePluralOrSelectOptions(t, u, r, P);
|
|
2832
|
+
if (H.err)
|
|
2833
|
+
return H;
|
|
2834
|
+
var d = this.tryParseArgumentClose(i);
|
|
2835
|
+
if (d.err)
|
|
2836
|
+
return d;
|
|
2837
|
+
var N = _(i, this.clonePosition());
|
|
2833
2838
|
return u === "select" ? {
|
|
2834
2839
|
val: {
|
|
2835
2840
|
type: T.select,
|
|
2836
2841
|
value: n,
|
|
2837
|
-
options:
|
|
2838
|
-
location:
|
|
2842
|
+
options: tt(H.val),
|
|
2843
|
+
location: N
|
|
2839
2844
|
},
|
|
2840
2845
|
err: null
|
|
2841
2846
|
} : {
|
|
2842
2847
|
val: {
|
|
2843
2848
|
type: T.plural,
|
|
2844
2849
|
value: n,
|
|
2845
|
-
options:
|
|
2846
|
-
offset:
|
|
2850
|
+
options: tt(H.val),
|
|
2851
|
+
offset: B,
|
|
2847
2852
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2848
|
-
location:
|
|
2853
|
+
location: N
|
|
2849
2854
|
},
|
|
2850
2855
|
err: null
|
|
2851
2856
|
};
|
|
2852
2857
|
}
|
|
2853
2858
|
default:
|
|
2854
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, _(
|
|
2859
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(s, l));
|
|
2855
2860
|
}
|
|
2856
2861
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2857
2862
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2899,7 +2904,7 @@ var ln = (
|
|
|
2899
2904
|
}
|
|
2900
2905
|
return {
|
|
2901
2906
|
val: {
|
|
2902
|
-
type:
|
|
2907
|
+
type: Z.number,
|
|
2903
2908
|
tokens: n,
|
|
2904
2909
|
location: r,
|
|
2905
2910
|
parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
|
|
@@ -2907,50 +2912,50 @@ var ln = (
|
|
|
2907
2912
|
err: null
|
|
2908
2913
|
};
|
|
2909
2914
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2910
|
-
for (var
|
|
2915
|
+
for (var o, s = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
2911
2916
|
if (a.length === 0) {
|
|
2912
2917
|
var c = this.clonePosition();
|
|
2913
2918
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2914
|
-
var
|
|
2915
|
-
if (
|
|
2916
|
-
return
|
|
2919
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2920
|
+
if (f.err)
|
|
2921
|
+
return f;
|
|
2917
2922
|
h = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
2918
2923
|
} else
|
|
2919
2924
|
break;
|
|
2920
2925
|
}
|
|
2921
|
-
if (
|
|
2926
|
+
if (l.has(a))
|
|
2922
2927
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2923
|
-
a === "other" && (
|
|
2924
|
-
var
|
|
2928
|
+
a === "other" && (s = !0), this.bumpSpace();
|
|
2929
|
+
var p = this.clonePosition();
|
|
2925
2930
|
if (!this.bumpIf("{"))
|
|
2926
2931
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
2927
|
-
var
|
|
2928
|
-
if (
|
|
2929
|
-
return
|
|
2930
|
-
var g = this.tryParseArgumentClose(
|
|
2932
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
2933
|
+
if (d.err)
|
|
2934
|
+
return d;
|
|
2935
|
+
var g = this.tryParseArgumentClose(p);
|
|
2931
2936
|
if (g.err)
|
|
2932
2937
|
return g;
|
|
2933
2938
|
u.push([
|
|
2934
2939
|
a,
|
|
2935
2940
|
{
|
|
2936
|
-
value:
|
|
2937
|
-
location: _(
|
|
2941
|
+
value: d.val,
|
|
2942
|
+
location: _(p, this.clonePosition())
|
|
2938
2943
|
}
|
|
2939
|
-
]),
|
|
2944
|
+
]), l.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, h = o.location;
|
|
2940
2945
|
}
|
|
2941
|
-
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
2946
|
+
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
2942
2947
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2943
2948
|
var n = 1, i = this.clonePosition();
|
|
2944
2949
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2945
|
-
for (var
|
|
2950
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
2946
2951
|
var u = this.char();
|
|
2947
2952
|
if (u >= 48 && u <= 57)
|
|
2948
|
-
|
|
2953
|
+
o = !0, s = s * 10 + (u - 48), this.bump();
|
|
2949
2954
|
else
|
|
2950
2955
|
break;
|
|
2951
2956
|
}
|
|
2952
|
-
var
|
|
2953
|
-
return
|
|
2957
|
+
var l = _(i, this.clonePosition());
|
|
2958
|
+
return o ? (s *= n, sn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2954
2959
|
}, e.prototype.offset = function() {
|
|
2955
2960
|
return this.position.offset;
|
|
2956
2961
|
}, e.prototype.isEOF = function() {
|
|
@@ -2965,7 +2970,7 @@ var ln = (
|
|
|
2965
2970
|
var t = this.position.offset;
|
|
2966
2971
|
if (t >= this.message.length)
|
|
2967
2972
|
throw Error("out of bound");
|
|
2968
|
-
var r =
|
|
2973
|
+
var r = Lt(this.message, t);
|
|
2969
2974
|
if (r === void 0)
|
|
2970
2975
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2971
2976
|
return r;
|
|
@@ -2984,7 +2989,7 @@ var ln = (
|
|
|
2984
2989
|
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);
|
|
2985
2990
|
}
|
|
2986
2991
|
}, e.prototype.bumpIf = function(t) {
|
|
2987
|
-
if (
|
|
2992
|
+
if (et(this.message, t, this.offset())) {
|
|
2988
2993
|
for (var r = 0; r < t.length; r++)
|
|
2989
2994
|
this.bump();
|
|
2990
2995
|
return !0;
|
|
@@ -3006,7 +3011,7 @@ var ln = (
|
|
|
3006
3011
|
break;
|
|
3007
3012
|
}
|
|
3008
3013
|
}, e.prototype.bumpSpace = function() {
|
|
3009
|
-
for (; !this.isEOF() &&
|
|
3014
|
+
for (; !this.isEOF() && Mt(this.char()); )
|
|
3010
3015
|
this.bump();
|
|
3011
3016
|
}, e.prototype.peek = function() {
|
|
3012
3017
|
if (this.isEOF())
|
|
@@ -3016,27 +3021,27 @@ var ln = (
|
|
|
3016
3021
|
}, e;
|
|
3017
3022
|
}()
|
|
3018
3023
|
);
|
|
3019
|
-
function
|
|
3024
|
+
function Ue(e) {
|
|
3020
3025
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3021
3026
|
}
|
|
3022
3027
|
function fn(e) {
|
|
3023
|
-
return
|
|
3028
|
+
return Ue(e) || e === 47;
|
|
3024
3029
|
}
|
|
3025
3030
|
function cn(e) {
|
|
3026
3031
|
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;
|
|
3027
3032
|
}
|
|
3028
|
-
function
|
|
3033
|
+
function Mt(e) {
|
|
3029
3034
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3030
3035
|
}
|
|
3031
3036
|
function gn(e) {
|
|
3032
3037
|
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;
|
|
3033
3038
|
}
|
|
3034
|
-
function
|
|
3039
|
+
function Ge(e) {
|
|
3035
3040
|
e.forEach(function(t) {
|
|
3036
|
-
if (delete t.location,
|
|
3041
|
+
if (delete t.location, Ht(t) || At(t))
|
|
3037
3042
|
for (var r in t.options)
|
|
3038
|
-
delete t.options[r].location,
|
|
3039
|
-
else
|
|
3043
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3044
|
+
else vt(t) && Bt(t.style) || (Tt(t) || Ct(t)) && Ie(t.style) ? delete t.style.location : St(t) && Ge(t.children);
|
|
3040
3045
|
});
|
|
3041
3046
|
}
|
|
3042
3047
|
function mn(e, t) {
|
|
@@ -3046,157 +3051,157 @@ function mn(e, t) {
|
|
|
3046
3051
|
var n = SyntaxError(y[r.err.kind]);
|
|
3047
3052
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3048
3053
|
}
|
|
3049
|
-
return t?.captureLocation ||
|
|
3054
|
+
return t?.captureLocation || Ge(r.val), r.val;
|
|
3050
3055
|
}
|
|
3051
|
-
var
|
|
3056
|
+
var Q;
|
|
3052
3057
|
(function(e) {
|
|
3053
3058
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3054
|
-
})(
|
|
3055
|
-
var
|
|
3059
|
+
})(Q || (Q = {}));
|
|
3060
|
+
var Ee = (
|
|
3056
3061
|
/** @class */
|
|
3057
3062
|
function(e) {
|
|
3058
|
-
|
|
3063
|
+
_e(t, e);
|
|
3059
3064
|
function t(r, n, i) {
|
|
3060
|
-
var
|
|
3061
|
-
return
|
|
3065
|
+
var o = e.call(this, r) || this;
|
|
3066
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3062
3067
|
}
|
|
3063
3068
|
return t.prototype.toString = function() {
|
|
3064
3069
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3065
3070
|
}, t;
|
|
3066
3071
|
}(Error)
|
|
3067
|
-
),
|
|
3072
|
+
), nt = (
|
|
3068
3073
|
/** @class */
|
|
3069
3074
|
function(e) {
|
|
3070
|
-
|
|
3071
|
-
function t(r, n, i,
|
|
3072
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3075
|
+
_e(t, e);
|
|
3076
|
+
function t(r, n, i, o) {
|
|
3077
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
|
|
3073
3078
|
}
|
|
3074
3079
|
return t;
|
|
3075
|
-
}(
|
|
3080
|
+
}(Ee)
|
|
3076
3081
|
), pn = (
|
|
3077
3082
|
/** @class */
|
|
3078
3083
|
function(e) {
|
|
3079
|
-
|
|
3084
|
+
_e(t, e);
|
|
3080
3085
|
function t(r, n, i) {
|
|
3081
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3086
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3082
3087
|
}
|
|
3083
3088
|
return t;
|
|
3084
|
-
}(
|
|
3089
|
+
}(Ee)
|
|
3085
3090
|
), dn = (
|
|
3086
3091
|
/** @class */
|
|
3087
3092
|
function(e) {
|
|
3088
|
-
|
|
3093
|
+
_e(t, e);
|
|
3089
3094
|
function t(r, n) {
|
|
3090
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3095
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3091
3096
|
}
|
|
3092
3097
|
return t;
|
|
3093
|
-
}(
|
|
3094
|
-
),
|
|
3098
|
+
}(Ee)
|
|
3099
|
+
), w;
|
|
3095
3100
|
(function(e) {
|
|
3096
3101
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3097
|
-
})(
|
|
3102
|
+
})(w || (w = {}));
|
|
3098
3103
|
function bn(e) {
|
|
3099
3104
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3100
3105
|
var n = t[t.length - 1];
|
|
3101
|
-
return !n || n.type !==
|
|
3106
|
+
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3102
3107
|
}, []);
|
|
3103
3108
|
}
|
|
3104
3109
|
function yn(e) {
|
|
3105
3110
|
return typeof e == "function";
|
|
3106
3111
|
}
|
|
3107
|
-
function
|
|
3108
|
-
if (e.length === 1 &&
|
|
3112
|
+
function ge(e, t, r, n, i, o, s) {
|
|
3113
|
+
if (e.length === 1 && Je(e[0]))
|
|
3109
3114
|
return [
|
|
3110
3115
|
{
|
|
3111
|
-
type:
|
|
3116
|
+
type: w.literal,
|
|
3112
3117
|
value: e[0].value
|
|
3113
3118
|
}
|
|
3114
3119
|
];
|
|
3115
|
-
for (var u = [],
|
|
3116
|
-
var h = a[
|
|
3117
|
-
if (
|
|
3120
|
+
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
3121
|
+
var h = a[l];
|
|
3122
|
+
if (Je(h)) {
|
|
3118
3123
|
u.push({
|
|
3119
|
-
type:
|
|
3124
|
+
type: w.literal,
|
|
3120
3125
|
value: h.value
|
|
3121
3126
|
});
|
|
3122
3127
|
continue;
|
|
3123
3128
|
}
|
|
3124
3129
|
if (Gr(h)) {
|
|
3125
|
-
typeof
|
|
3126
|
-
type:
|
|
3127
|
-
value: r.getNumberFormat(t).format(
|
|
3130
|
+
typeof o == "number" && u.push({
|
|
3131
|
+
type: w.literal,
|
|
3132
|
+
value: r.getNumberFormat(t).format(o)
|
|
3128
3133
|
});
|
|
3129
3134
|
continue;
|
|
3130
3135
|
}
|
|
3131
3136
|
var c = h.value;
|
|
3132
3137
|
if (!(i && c in i))
|
|
3133
|
-
throw new dn(c,
|
|
3134
|
-
var
|
|
3138
|
+
throw new dn(c, s);
|
|
3139
|
+
var f = i[c];
|
|
3135
3140
|
if (Ur(h)) {
|
|
3136
|
-
(!
|
|
3137
|
-
type: typeof
|
|
3138
|
-
value:
|
|
3141
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3142
|
+
type: typeof f == "string" ? w.literal : w.object,
|
|
3143
|
+
value: f
|
|
3139
3144
|
});
|
|
3140
3145
|
continue;
|
|
3141
3146
|
}
|
|
3142
|
-
if (
|
|
3143
|
-
var
|
|
3147
|
+
if (Tt(h)) {
|
|
3148
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ie(h.style) ? h.style.parsedOptions : void 0;
|
|
3144
3149
|
u.push({
|
|
3145
|
-
type:
|
|
3146
|
-
value: r.getDateTimeFormat(t,
|
|
3150
|
+
type: w.literal,
|
|
3151
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3147
3152
|
});
|
|
3148
3153
|
continue;
|
|
3149
3154
|
}
|
|
3150
|
-
if (
|
|
3151
|
-
var
|
|
3155
|
+
if (Ct(h)) {
|
|
3156
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ie(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3152
3157
|
u.push({
|
|
3153
|
-
type:
|
|
3154
|
-
value: r.getDateTimeFormat(t,
|
|
3158
|
+
type: w.literal,
|
|
3159
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3155
3160
|
});
|
|
3156
3161
|
continue;
|
|
3157
3162
|
}
|
|
3158
|
-
if (
|
|
3159
|
-
var
|
|
3160
|
-
|
|
3161
|
-
type:
|
|
3162
|
-
value: r.getNumberFormat(t,
|
|
3163
|
+
if (vt(h)) {
|
|
3164
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Bt(h.style) ? h.style.parsedOptions : void 0;
|
|
3165
|
+
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3166
|
+
type: w.literal,
|
|
3167
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3163
3168
|
});
|
|
3164
3169
|
continue;
|
|
3165
3170
|
}
|
|
3166
|
-
if (
|
|
3167
|
-
var
|
|
3171
|
+
if (St(h)) {
|
|
3172
|
+
var d = h.children, g = h.value, x = i[g];
|
|
3168
3173
|
if (!yn(x))
|
|
3169
|
-
throw new pn(g, "function",
|
|
3170
|
-
var m =
|
|
3171
|
-
return
|
|
3174
|
+
throw new pn(g, "function", s);
|
|
3175
|
+
var m = ge(d, t, r, n, i, o), C = x(m.map(function(B) {
|
|
3176
|
+
return B.value;
|
|
3172
3177
|
}));
|
|
3173
|
-
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(
|
|
3178
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
|
|
3174
3179
|
return {
|
|
3175
|
-
type: typeof
|
|
3176
|
-
value:
|
|
3180
|
+
type: typeof B == "string" ? w.literal : w.object,
|
|
3181
|
+
value: B
|
|
3177
3182
|
};
|
|
3178
3183
|
}));
|
|
3179
3184
|
}
|
|
3180
|
-
if (
|
|
3181
|
-
var
|
|
3182
|
-
if (!
|
|
3183
|
-
throw new
|
|
3184
|
-
u.push.apply(u,
|
|
3185
|
+
if (Ht(h)) {
|
|
3186
|
+
var S = h.options[f] || h.options.other;
|
|
3187
|
+
if (!S)
|
|
3188
|
+
throw new nt(h.value, f, Object.keys(h.options), s);
|
|
3189
|
+
u.push.apply(u, ge(S.value, t, r, n, i));
|
|
3185
3190
|
continue;
|
|
3186
3191
|
}
|
|
3187
|
-
if (
|
|
3188
|
-
var
|
|
3189
|
-
if (!
|
|
3192
|
+
if (At(h)) {
|
|
3193
|
+
var S = h.options["=".concat(f)];
|
|
3194
|
+
if (!S) {
|
|
3190
3195
|
if (!Intl.PluralRules)
|
|
3191
|
-
throw new
|
|
3196
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3192
3197
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3193
|
-
`,
|
|
3194
|
-
var
|
|
3195
|
-
|
|
3198
|
+
`, Q.MISSING_INTL_API, s);
|
|
3199
|
+
var P = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3200
|
+
S = h.options[P] || h.options.other;
|
|
3196
3201
|
}
|
|
3197
|
-
if (!
|
|
3198
|
-
throw new
|
|
3199
|
-
u.push.apply(u,
|
|
3202
|
+
if (!S)
|
|
3203
|
+
throw new nt(h.value, f, Object.keys(h.options), s);
|
|
3204
|
+
u.push.apply(u, ge(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3200
3205
|
continue;
|
|
3201
3206
|
}
|
|
3202
3207
|
}
|
|
@@ -3232,29 +3237,29 @@ function xn(e) {
|
|
|
3232
3237
|
dateTime: {},
|
|
3233
3238
|
pluralRules: {}
|
|
3234
3239
|
}), {
|
|
3235
|
-
getNumberFormat:
|
|
3240
|
+
getNumberFormat: He(function() {
|
|
3236
3241
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3237
3242
|
r[n] = arguments[n];
|
|
3238
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3243
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3239
3244
|
}, {
|
|
3240
3245
|
cache: Be(e.number),
|
|
3241
|
-
strategy:
|
|
3246
|
+
strategy: Ae.variadic
|
|
3242
3247
|
}),
|
|
3243
|
-
getDateTimeFormat:
|
|
3248
|
+
getDateTimeFormat: He(function() {
|
|
3244
3249
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3245
3250
|
r[n] = arguments[n];
|
|
3246
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3251
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3247
3252
|
}, {
|
|
3248
3253
|
cache: Be(e.dateTime),
|
|
3249
|
-
strategy:
|
|
3254
|
+
strategy: Ae.variadic
|
|
3250
3255
|
}),
|
|
3251
|
-
getPluralRules:
|
|
3256
|
+
getPluralRules: He(function() {
|
|
3252
3257
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3253
3258
|
r[n] = arguments[n];
|
|
3254
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3259
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3255
3260
|
}, {
|
|
3256
3261
|
cache: Be(e.pluralRules),
|
|
3257
|
-
strategy:
|
|
3262
|
+
strategy: Ae.variadic
|
|
3258
3263
|
})
|
|
3259
3264
|
};
|
|
3260
3265
|
}
|
|
@@ -3263,34 +3268,34 @@ var vn = (
|
|
|
3263
3268
|
function() {
|
|
3264
3269
|
function e(t, r, n, i) {
|
|
3265
3270
|
r === void 0 && (r = e.defaultLocale);
|
|
3266
|
-
var
|
|
3271
|
+
var o = this;
|
|
3267
3272
|
if (this.formatterCache = {
|
|
3268
3273
|
number: {},
|
|
3269
3274
|
dateTime: {},
|
|
3270
3275
|
pluralRules: {}
|
|
3271
|
-
}, this.format = function(
|
|
3272
|
-
var a =
|
|
3276
|
+
}, this.format = function(l) {
|
|
3277
|
+
var a = o.formatToParts(l);
|
|
3273
3278
|
if (a.length === 1)
|
|
3274
3279
|
return a[0].value;
|
|
3275
|
-
var h = a.reduce(function(c,
|
|
3276
|
-
return !c.length ||
|
|
3280
|
+
var h = a.reduce(function(c, f) {
|
|
3281
|
+
return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3277
3282
|
}, []);
|
|
3278
3283
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3279
|
-
}, this.formatToParts = function(
|
|
3280
|
-
return
|
|
3284
|
+
}, this.formatToParts = function(l) {
|
|
3285
|
+
return ge(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3281
3286
|
}, this.resolvedOptions = function() {
|
|
3282
|
-
var
|
|
3287
|
+
var l;
|
|
3283
3288
|
return {
|
|
3284
|
-
locale: ((
|
|
3289
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3285
3290
|
};
|
|
3286
3291
|
}, this.getAst = function() {
|
|
3287
|
-
return
|
|
3292
|
+
return o.ast;
|
|
3288
3293
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3289
3294
|
if (this.message = t, !e.__parse)
|
|
3290
3295
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3291
|
-
var
|
|
3292
|
-
|
|
3293
|
-
var u = wr(
|
|
3296
|
+
var s = i || {};
|
|
3297
|
+
s.formatters;
|
|
3298
|
+
var u = wr(s, ["formatters"]);
|
|
3294
3299
|
this.ast = e.__parse(t, E(E({}, u), { locale: this.resolvedLocale }));
|
|
3295
3300
|
} else
|
|
3296
3301
|
this.ast = t;
|
|
@@ -3380,9 +3385,9 @@ function Tn(e, t) {
|
|
|
3380
3385
|
for (let i = 0; i < r.length; i++)
|
|
3381
3386
|
if (typeof n == "object") {
|
|
3382
3387
|
if (i > 0) {
|
|
3383
|
-
const
|
|
3384
|
-
if (
|
|
3385
|
-
n = n[
|
|
3388
|
+
const o = r.slice(i, r.length).join(".");
|
|
3389
|
+
if (o in n) {
|
|
3390
|
+
n = n[o];
|
|
3386
3391
|
break;
|
|
3387
3392
|
}
|
|
3388
3393
|
}
|
|
@@ -3391,92 +3396,92 @@ function Tn(e, t) {
|
|
|
3391
3396
|
n = void 0;
|
|
3392
3397
|
return n;
|
|
3393
3398
|
}
|
|
3394
|
-
const
|
|
3399
|
+
const U = {}, Cn = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), $t = (e, t) => {
|
|
3395
3400
|
if (t == null)
|
|
3396
3401
|
return;
|
|
3397
|
-
if (t in
|
|
3398
|
-
return
|
|
3399
|
-
const r =
|
|
3402
|
+
if (t in U && e in U[t])
|
|
3403
|
+
return U[t][e];
|
|
3404
|
+
const r = xe(t);
|
|
3400
3405
|
for (let n = 0; n < r.length; n++) {
|
|
3401
|
-
const i = r[n],
|
|
3402
|
-
if (
|
|
3403
|
-
return Cn(e, t,
|
|
3406
|
+
const i = r[n], o = An(i, e);
|
|
3407
|
+
if (o)
|
|
3408
|
+
return Cn(e, t, o);
|
|
3404
3409
|
}
|
|
3405
3410
|
};
|
|
3406
|
-
let
|
|
3407
|
-
const ae =
|
|
3411
|
+
let ke;
|
|
3412
|
+
const ae = ye({});
|
|
3408
3413
|
function Hn(e) {
|
|
3409
|
-
return
|
|
3414
|
+
return ke[e] || null;
|
|
3410
3415
|
}
|
|
3411
|
-
function
|
|
3412
|
-
return e in
|
|
3416
|
+
function Rt(e) {
|
|
3417
|
+
return e in ke;
|
|
3413
3418
|
}
|
|
3414
3419
|
function An(e, t) {
|
|
3415
|
-
if (!
|
|
3420
|
+
if (!Rt(e))
|
|
3416
3421
|
return null;
|
|
3417
3422
|
const r = Hn(e);
|
|
3418
3423
|
return Tn(r, t);
|
|
3419
3424
|
}
|
|
3420
|
-
function
|
|
3425
|
+
function Sn(e) {
|
|
3421
3426
|
if (e == null)
|
|
3422
3427
|
return;
|
|
3423
|
-
const t =
|
|
3428
|
+
const t = xe(e);
|
|
3424
3429
|
for (let r = 0; r < t.length; r++) {
|
|
3425
3430
|
const n = t[r];
|
|
3426
|
-
if (
|
|
3431
|
+
if (Rt(n))
|
|
3427
3432
|
return n;
|
|
3428
3433
|
}
|
|
3429
3434
|
}
|
|
3430
|
-
function
|
|
3431
|
-
delete
|
|
3435
|
+
function Ut(e, ...t) {
|
|
3436
|
+
delete U[e], ae.update((r) => (r[e] = Or.all([r[e] || {}, ...t]), r));
|
|
3432
3437
|
}
|
|
3433
|
-
|
|
3438
|
+
Y(
|
|
3434
3439
|
[ae],
|
|
3435
3440
|
([e]) => Object.keys(e)
|
|
3436
3441
|
);
|
|
3437
|
-
ae.subscribe((e) =>
|
|
3438
|
-
const
|
|
3439
|
-
function
|
|
3440
|
-
|
|
3442
|
+
ae.subscribe((e) => ke = e);
|
|
3443
|
+
const me = {};
|
|
3444
|
+
function Bn(e, t) {
|
|
3445
|
+
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3441
3446
|
}
|
|
3442
|
-
function
|
|
3443
|
-
return
|
|
3447
|
+
function Gt(e) {
|
|
3448
|
+
return me[e];
|
|
3444
3449
|
}
|
|
3445
3450
|
function On(e) {
|
|
3446
|
-
return
|
|
3447
|
-
const r =
|
|
3451
|
+
return xe(e).map((t) => {
|
|
3452
|
+
const r = Gt(t);
|
|
3448
3453
|
return [t, r ? [...r] : []];
|
|
3449
3454
|
}).filter(([, t]) => t.length > 0);
|
|
3450
3455
|
}
|
|
3451
|
-
function
|
|
3452
|
-
return e == null ? !1 :
|
|
3456
|
+
function De(e) {
|
|
3457
|
+
return e == null ? !1 : xe(e).some(
|
|
3453
3458
|
(t) => {
|
|
3454
3459
|
var r;
|
|
3455
|
-
return (r =
|
|
3460
|
+
return (r = Gt(t)) == null ? void 0 : r.size;
|
|
3456
3461
|
}
|
|
3457
3462
|
);
|
|
3458
3463
|
}
|
|
3459
|
-
function
|
|
3464
|
+
function wn(e, t) {
|
|
3460
3465
|
return Promise.all(
|
|
3461
|
-
t.map((n) => (
|
|
3462
|
-
).then((n) =>
|
|
3466
|
+
t.map((n) => (Bn(e, n), n().then((i) => i.default || i)))
|
|
3467
|
+
).then((n) => Ut(e, ...n));
|
|
3463
3468
|
}
|
|
3464
|
-
const
|
|
3465
|
-
function
|
|
3466
|
-
if (!
|
|
3467
|
-
return e in
|
|
3469
|
+
const te = {};
|
|
3470
|
+
function Dt(e) {
|
|
3471
|
+
if (!De(e))
|
|
3472
|
+
return e in te ? te[e] : Promise.resolve();
|
|
3468
3473
|
const t = On(e);
|
|
3469
|
-
return
|
|
3474
|
+
return te[e] = Promise.all(
|
|
3470
3475
|
t.map(
|
|
3471
|
-
([r, n]) =>
|
|
3476
|
+
([r, n]) => wn(r, n)
|
|
3472
3477
|
)
|
|
3473
3478
|
).then(() => {
|
|
3474
|
-
if (
|
|
3475
|
-
return
|
|
3476
|
-
delete
|
|
3477
|
-
}),
|
|
3479
|
+
if (De(e))
|
|
3480
|
+
return Dt(e);
|
|
3481
|
+
delete te[e];
|
|
3482
|
+
}), te[e];
|
|
3478
3483
|
}
|
|
3479
|
-
const
|
|
3484
|
+
const Pn = {
|
|
3480
3485
|
number: {
|
|
3481
3486
|
scientific: { notation: "scientific" },
|
|
3482
3487
|
engineering: { notation: "engineering" },
|
|
@@ -3508,147 +3513,147 @@ const wn = {
|
|
|
3508
3513
|
}, Nn = {
|
|
3509
3514
|
fallbackLocale: null,
|
|
3510
3515
|
loadingDelay: 200,
|
|
3511
|
-
formats:
|
|
3516
|
+
formats: Pn,
|
|
3512
3517
|
warnOnMissingMessages: !0,
|
|
3513
3518
|
handleMissingMessage: void 0,
|
|
3514
3519
|
ignoreTag: !0
|
|
3515
|
-
},
|
|
3516
|
-
function
|
|
3517
|
-
return
|
|
3520
|
+
}, Ln = Nn;
|
|
3521
|
+
function J() {
|
|
3522
|
+
return Ln;
|
|
3518
3523
|
}
|
|
3519
|
-
const
|
|
3520
|
-
var
|
|
3524
|
+
const Oe = ye(!1);
|
|
3525
|
+
var In = Object.defineProperty, Mn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
|
|
3521
3526
|
for (var r in t || (t = {}))
|
|
3522
|
-
Rn.call(t, r) &&
|
|
3523
|
-
if (
|
|
3524
|
-
for (var r of
|
|
3525
|
-
Un.call(t, r) &&
|
|
3527
|
+
Rn.call(t, r) && ot(e, r, t[r]);
|
|
3528
|
+
if (it)
|
|
3529
|
+
for (var r of it(t))
|
|
3530
|
+
Un.call(t, r) && ot(e, r, t[r]);
|
|
3526
3531
|
return e;
|
|
3527
3532
|
}, Dn = (e, t) => Mn(e, $n(t));
|
|
3528
|
-
let
|
|
3529
|
-
const
|
|
3530
|
-
function
|
|
3533
|
+
let Fe;
|
|
3534
|
+
const de = ye(null);
|
|
3535
|
+
function st(e) {
|
|
3531
3536
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3532
3537
|
}
|
|
3533
|
-
function
|
|
3534
|
-
const r =
|
|
3535
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3538
|
+
function xe(e, t = J().fallbackLocale) {
|
|
3539
|
+
const r = st(e);
|
|
3540
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...st(t)])] : r;
|
|
3536
3541
|
}
|
|
3537
|
-
function
|
|
3538
|
-
return
|
|
3542
|
+
function j() {
|
|
3543
|
+
return Fe ?? void 0;
|
|
3539
3544
|
}
|
|
3540
|
-
|
|
3541
|
-
|
|
3545
|
+
de.subscribe((e) => {
|
|
3546
|
+
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3542
3547
|
});
|
|
3543
3548
|
const Fn = (e) => {
|
|
3544
|
-
if (e &&
|
|
3545
|
-
const { loadingDelay: t } =
|
|
3549
|
+
if (e && Sn(e) && De(e)) {
|
|
3550
|
+
const { loadingDelay: t } = J();
|
|
3546
3551
|
let r;
|
|
3547
|
-
return typeof window < "u" &&
|
|
3548
|
-
() =>
|
|
3552
|
+
return typeof window < "u" && j() != null && t ? r = window.setTimeout(
|
|
3553
|
+
() => Oe.set(!0),
|
|
3549
3554
|
t
|
|
3550
|
-
) :
|
|
3551
|
-
|
|
3555
|
+
) : Oe.set(!0), Dt(e).then(() => {
|
|
3556
|
+
de.set(e);
|
|
3552
3557
|
}).finally(() => {
|
|
3553
|
-
clearTimeout(r),
|
|
3558
|
+
clearTimeout(r), Oe.set(!1);
|
|
3554
3559
|
});
|
|
3555
3560
|
}
|
|
3556
|
-
return
|
|
3557
|
-
},
|
|
3561
|
+
return de.set(e);
|
|
3562
|
+
}, K = Dn(Gn({}, de), {
|
|
3558
3563
|
set: Fn
|
|
3559
|
-
}),
|
|
3564
|
+
}), ve = (e) => {
|
|
3560
3565
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3561
3566
|
return (n) => {
|
|
3562
3567
|
const i = JSON.stringify(n);
|
|
3563
3568
|
return i in t ? t[i] : t[i] = e(n);
|
|
3564
3569
|
};
|
|
3565
3570
|
};
|
|
3566
|
-
var jn = Object.defineProperty,
|
|
3571
|
+
var jn = Object.defineProperty, be = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
|
|
3567
3572
|
for (var r in t || (t = {}))
|
|
3568
|
-
|
|
3569
|
-
if (
|
|
3570
|
-
for (var r of
|
|
3571
|
-
|
|
3573
|
+
Ft.call(t, r) && at(e, r, t[r]);
|
|
3574
|
+
if (be)
|
|
3575
|
+
for (var r of be(t))
|
|
3576
|
+
jt.call(t, r) && at(e, r, t[r]);
|
|
3572
3577
|
return e;
|
|
3573
|
-
},
|
|
3578
|
+
}, ee = (e, t) => {
|
|
3574
3579
|
var r = {};
|
|
3575
3580
|
for (var n in e)
|
|
3576
|
-
|
|
3577
|
-
if (e != null &&
|
|
3578
|
-
for (var n of
|
|
3579
|
-
t.indexOf(n) < 0 &&
|
|
3581
|
+
Ft.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3582
|
+
if (e != null && be)
|
|
3583
|
+
for (var n of be(e))
|
|
3584
|
+
t.indexOf(n) < 0 && jt.call(e, n) && (r[n] = e[n]);
|
|
3580
3585
|
return r;
|
|
3581
3586
|
};
|
|
3582
|
-
const
|
|
3583
|
-
const { formats: r } =
|
|
3587
|
+
const oe = (e, t) => {
|
|
3588
|
+
const { formats: r } = J();
|
|
3584
3589
|
if (e in r && t in r[e])
|
|
3585
3590
|
return r[e][t];
|
|
3586
3591
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3587
|
-
}, kn =
|
|
3592
|
+
}, kn = ve(
|
|
3588
3593
|
(e) => {
|
|
3589
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3594
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3590
3595
|
if (r == null)
|
|
3591
3596
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3592
|
-
return n && (i =
|
|
3597
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3593
3598
|
}
|
|
3594
|
-
), Vn =
|
|
3599
|
+
), Vn = ve(
|
|
3595
3600
|
(e) => {
|
|
3596
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3601
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3597
3602
|
if (r == null)
|
|
3598
3603
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3599
|
-
return n ? i =
|
|
3604
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3600
3605
|
}
|
|
3601
|
-
), Xn =
|
|
3606
|
+
), Xn = ve(
|
|
3602
3607
|
(e) => {
|
|
3603
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3608
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3604
3609
|
if (r == null)
|
|
3605
3610
|
throw new Error(
|
|
3606
3611
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3607
3612
|
);
|
|
3608
|
-
return n ? i =
|
|
3613
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3609
3614
|
}
|
|
3610
3615
|
), zn = (e = {}) => {
|
|
3611
3616
|
var t = e, {
|
|
3612
|
-
locale: r =
|
|
3613
|
-
} = t, n =
|
|
3617
|
+
locale: r = j()
|
|
3618
|
+
} = t, n = ee(t, [
|
|
3614
3619
|
"locale"
|
|
3615
3620
|
]);
|
|
3616
|
-
return kn(
|
|
3621
|
+
return kn(Ve({ locale: r }, n));
|
|
3617
3622
|
}, Wn = (e = {}) => {
|
|
3618
3623
|
var t = e, {
|
|
3619
|
-
locale: r =
|
|
3620
|
-
} = t, n =
|
|
3624
|
+
locale: r = j()
|
|
3625
|
+
} = t, n = ee(t, [
|
|
3621
3626
|
"locale"
|
|
3622
3627
|
]);
|
|
3623
|
-
return Vn(
|
|
3628
|
+
return Vn(Ve({ locale: r }, n));
|
|
3624
3629
|
}, Zn = (e = {}) => {
|
|
3625
3630
|
var t = e, {
|
|
3626
|
-
locale: r =
|
|
3627
|
-
} = t, n =
|
|
3631
|
+
locale: r = j()
|
|
3632
|
+
} = t, n = ee(t, [
|
|
3628
3633
|
"locale"
|
|
3629
3634
|
]);
|
|
3630
|
-
return Xn(
|
|
3631
|
-
}, Qn =
|
|
3635
|
+
return Xn(Ve({ locale: r }, n));
|
|
3636
|
+
}, Qn = ve(
|
|
3632
3637
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3633
|
-
(e, t =
|
|
3634
|
-
ignoreTag:
|
|
3638
|
+
(e, t = j()) => new vn(e, t, J().formats, {
|
|
3639
|
+
ignoreTag: J().ignoreTag
|
|
3635
3640
|
})
|
|
3636
3641
|
), Jn = (e, t = {}) => {
|
|
3637
|
-
var r, n, i,
|
|
3638
|
-
let
|
|
3639
|
-
typeof e == "object" && (
|
|
3642
|
+
var r, n, i, o;
|
|
3643
|
+
let s = t;
|
|
3644
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3640
3645
|
const {
|
|
3641
3646
|
values: u,
|
|
3642
|
-
locale:
|
|
3647
|
+
locale: l = j(),
|
|
3643
3648
|
default: a
|
|
3644
|
-
} =
|
|
3645
|
-
if (
|
|
3649
|
+
} = s;
|
|
3650
|
+
if (l == null)
|
|
3646
3651
|
throw new Error(
|
|
3647
3652
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3648
3653
|
);
|
|
3649
|
-
let h =
|
|
3654
|
+
let h = $t(e, l);
|
|
3650
3655
|
if (!h)
|
|
3651
|
-
h = (
|
|
3656
|
+
h = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
|
3652
3657
|
else if (typeof h != "string")
|
|
3653
3658
|
return console.warn(
|
|
3654
3659
|
`[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.`
|
|
@@ -3657,26 +3662,26 @@ const se = (e, t) => {
|
|
|
3657
3662
|
return h;
|
|
3658
3663
|
let c = h;
|
|
3659
3664
|
try {
|
|
3660
|
-
c = Qn(h,
|
|
3661
|
-
} catch (
|
|
3662
|
-
|
|
3665
|
+
c = Qn(h, l).format(u);
|
|
3666
|
+
} catch (f) {
|
|
3667
|
+
f instanceof Error && console.warn(
|
|
3663
3668
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3664
|
-
|
|
3669
|
+
f.message
|
|
3665
3670
|
);
|
|
3666
3671
|
}
|
|
3667
3672
|
return c;
|
|
3668
|
-
}, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t =
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
function
|
|
3674
|
-
|
|
3673
|
+
}, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = j()) => $t(e, t), ti = Y([K, ae], () => Jn);
|
|
3674
|
+
Y([K], () => qn);
|
|
3675
|
+
Y([K], () => Yn);
|
|
3676
|
+
Y([K], () => Kn);
|
|
3677
|
+
Y([K, ae], () => ei);
|
|
3678
|
+
function ut(e, t) {
|
|
3679
|
+
Ut(e, t);
|
|
3675
3680
|
}
|
|
3676
3681
|
function ri(e) {
|
|
3677
|
-
|
|
3682
|
+
K.set(e);
|
|
3678
3683
|
}
|
|
3679
|
-
const
|
|
3684
|
+
const ht = {
|
|
3680
3685
|
en: {
|
|
3681
3686
|
topCategories: "Top Categories",
|
|
3682
3687
|
otherCategories: "Other Categories",
|
|
@@ -3786,220 +3791,243 @@ const ft = {
|
|
|
3786
3791
|
games: "games"
|
|
3787
3792
|
}
|
|
3788
3793
|
};
|
|
3789
|
-
function ni(e) {
|
|
3790
|
-
|
|
3794
|
+
function ni(e, t) {
|
|
3795
|
+
if (e) {
|
|
3796
|
+
const r = document.createElement("style");
|
|
3797
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3798
|
+
}
|
|
3799
|
+
}
|
|
3800
|
+
function ii(e, t) {
|
|
3801
|
+
const r = new URL(t);
|
|
3802
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3803
|
+
const i = document.createElement("style");
|
|
3804
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3805
|
+
}).catch((n) => {
|
|
3806
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3807
|
+
});
|
|
3791
3808
|
}
|
|
3792
|
-
function
|
|
3809
|
+
function oi(e, t, r) {
|
|
3810
|
+
if (window.emMessageBus) {
|
|
3811
|
+
const n = document.createElement("style");
|
|
3812
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
3813
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3814
|
+
});
|
|
3815
|
+
}
|
|
3816
|
+
}
|
|
3817
|
+
function si(e) {
|
|
3818
|
+
Wt(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}");
|
|
3819
|
+
}
|
|
3820
|
+
function lt(e, t, r) {
|
|
3793
3821
|
const n = e.slice();
|
|
3794
|
-
return n[
|
|
3822
|
+
return n[23] = t[r], n;
|
|
3795
3823
|
}
|
|
3796
|
-
function
|
|
3824
|
+
function ft(e, t, r) {
|
|
3797
3825
|
const n = e.slice();
|
|
3798
|
-
return n[
|
|
3826
|
+
return n[23] = t[r], n;
|
|
3799
3827
|
}
|
|
3800
|
-
function
|
|
3828
|
+
function ai(e) {
|
|
3801
3829
|
let t, r, n = (
|
|
3802
3830
|
/*$_*/
|
|
3803
3831
|
e[5]("topCategories") + ""
|
|
3804
|
-
), i,
|
|
3832
|
+
), i, o, s, u, l = (
|
|
3805
3833
|
/*$_*/
|
|
3806
3834
|
e[5]("otherCategories") + ""
|
|
3807
|
-
), a, h, c =
|
|
3835
|
+
), a, h, c = le(
|
|
3808
3836
|
/*topCategories*/
|
|
3809
3837
|
e[3]
|
|
3810
|
-
),
|
|
3838
|
+
), f = [];
|
|
3811
3839
|
for (let g = 0; g < c.length; g += 1)
|
|
3812
|
-
|
|
3813
|
-
let
|
|
3840
|
+
f[g] = ct(ft(e, c, g));
|
|
3841
|
+
let p = le(
|
|
3814
3842
|
/*otherCategories*/
|
|
3815
3843
|
e[4]
|
|
3816
|
-
),
|
|
3817
|
-
for (let g = 0; g <
|
|
3818
|
-
|
|
3844
|
+
), d = [];
|
|
3845
|
+
for (let g = 0; g < p.length; g += 1)
|
|
3846
|
+
d[g] = gt(lt(e, p, g));
|
|
3819
3847
|
return {
|
|
3820
3848
|
c() {
|
|
3821
|
-
t = O("div"), r = O("h4"), i = R(n),
|
|
3822
|
-
for (let g = 0; g <
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
for (let g = 0; g <
|
|
3826
|
-
|
|
3827
|
-
|
|
3849
|
+
t = O("div"), r = O("h4"), i = R(n), o = $();
|
|
3850
|
+
for (let g = 0; g < f.length; g += 1)
|
|
3851
|
+
f[g].c();
|
|
3852
|
+
s = $(), u = O("h4"), a = R(l), h = $();
|
|
3853
|
+
for (let g = 0; g < d.length; g += 1)
|
|
3854
|
+
d[g].c();
|
|
3855
|
+
A(r, "class", "CategoryTitle"), A(u, "class", "CategoryTitle"), A(t, "class", "CasinoCategories");
|
|
3828
3856
|
},
|
|
3829
3857
|
m(g, x) {
|
|
3830
|
-
|
|
3831
|
-
for (let m = 0; m <
|
|
3832
|
-
|
|
3833
|
-
v(t,
|
|
3834
|
-
for (let m = 0; m <
|
|
3835
|
-
|
|
3858
|
+
q(g, t, x), v(t, r), v(r, i), v(t, o);
|
|
3859
|
+
for (let m = 0; m < f.length; m += 1)
|
|
3860
|
+
f[m] && f[m].m(t, null);
|
|
3861
|
+
v(t, s), v(t, u), v(u, a), v(t, h);
|
|
3862
|
+
for (let m = 0; m < d.length; m += 1)
|
|
3863
|
+
d[m] && d[m].m(t, null);
|
|
3836
3864
|
},
|
|
3837
3865
|
p(g, x) {
|
|
3838
3866
|
if (x & /*$_*/
|
|
3839
3867
|
32 && n !== (n = /*$_*/
|
|
3840
|
-
g[5]("topCategories") + "") &&
|
|
3868
|
+
g[5]("topCategories") + "") && G(i, n), x & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3841
3869
|
105) {
|
|
3842
|
-
c =
|
|
3870
|
+
c = le(
|
|
3843
3871
|
/*topCategories*/
|
|
3844
3872
|
g[3]
|
|
3845
3873
|
);
|
|
3846
3874
|
let m;
|
|
3847
3875
|
for (m = 0; m < c.length; m += 1) {
|
|
3848
|
-
const C =
|
|
3849
|
-
|
|
3876
|
+
const C = ft(g, c, m);
|
|
3877
|
+
f[m] ? f[m].p(C, x) : (f[m] = ct(C), f[m].c(), f[m].m(t, s));
|
|
3850
3878
|
}
|
|
3851
|
-
for (; m <
|
|
3852
|
-
|
|
3853
|
-
|
|
3879
|
+
for (; m < f.length; m += 1)
|
|
3880
|
+
f[m].d(1);
|
|
3881
|
+
f.length = c.length;
|
|
3854
3882
|
}
|
|
3855
3883
|
if (x & /*$_*/
|
|
3856
|
-
32 &&
|
|
3857
|
-
g[5]("otherCategories") + "") &&
|
|
3884
|
+
32 && l !== (l = /*$_*/
|
|
3885
|
+
g[5]("otherCategories") + "") && G(a, l), x & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3858
3886
|
113) {
|
|
3859
|
-
|
|
3887
|
+
p = le(
|
|
3860
3888
|
/*otherCategories*/
|
|
3861
3889
|
g[4]
|
|
3862
3890
|
);
|
|
3863
3891
|
let m;
|
|
3864
|
-
for (m = 0; m <
|
|
3865
|
-
const C =
|
|
3866
|
-
|
|
3892
|
+
for (m = 0; m < p.length; m += 1) {
|
|
3893
|
+
const C = lt(g, p, m);
|
|
3894
|
+
d[m] ? d[m].p(C, x) : (d[m] = gt(C), d[m].c(), d[m].m(t, null));
|
|
3867
3895
|
}
|
|
3868
|
-
for (; m <
|
|
3869
|
-
|
|
3870
|
-
|
|
3896
|
+
for (; m < d.length; m += 1)
|
|
3897
|
+
d[m].d(1);
|
|
3898
|
+
d.length = p.length;
|
|
3871
3899
|
}
|
|
3872
3900
|
},
|
|
3873
3901
|
d(g) {
|
|
3874
|
-
g &&
|
|
3902
|
+
g && F(t), We(f, g), We(d, g);
|
|
3875
3903
|
}
|
|
3876
3904
|
};
|
|
3877
3905
|
}
|
|
3878
|
-
function
|
|
3906
|
+
function ui(e) {
|
|
3879
3907
|
let t;
|
|
3880
3908
|
return {
|
|
3881
3909
|
c() {
|
|
3882
|
-
t = O("p"), t.textContent = "Loading, please wait...",
|
|
3910
|
+
t = O("p"), t.textContent = "Loading, please wait...", A(t, "class", "Message");
|
|
3883
3911
|
},
|
|
3884
3912
|
m(r, n) {
|
|
3885
|
-
|
|
3913
|
+
q(r, t, n);
|
|
3886
3914
|
},
|
|
3887
3915
|
p: L,
|
|
3888
3916
|
d(r) {
|
|
3889
|
-
r &&
|
|
3917
|
+
r && F(t);
|
|
3890
3918
|
}
|
|
3891
3919
|
};
|
|
3892
3920
|
}
|
|
3893
|
-
function
|
|
3894
|
-
let t, r, n, i,
|
|
3921
|
+
function ct(e) {
|
|
3922
|
+
let t, r, n, i, o, s, u, l = (
|
|
3895
3923
|
/*category*/
|
|
3896
|
-
e[
|
|
3897
|
-
), a, h, c,
|
|
3924
|
+
e[23].name + ""
|
|
3925
|
+
), a, h, c, f = (
|
|
3898
3926
|
/*category*/
|
|
3899
|
-
e[
|
|
3900
|
-
),
|
|
3927
|
+
e[23].games.count + ""
|
|
3928
|
+
), p, d, g = (
|
|
3901
3929
|
/*$_*/
|
|
3902
3930
|
e[5]("games") + ""
|
|
3903
|
-
), x, m, C,
|
|
3904
|
-
function
|
|
3931
|
+
), x, m, C, S;
|
|
3932
|
+
function P() {
|
|
3905
3933
|
return (
|
|
3906
3934
|
/*click_handler*/
|
|
3907
|
-
e[
|
|
3935
|
+
e[15](
|
|
3908
3936
|
/*category*/
|
|
3909
|
-
e[
|
|
3937
|
+
e[23]
|
|
3910
3938
|
)
|
|
3911
3939
|
);
|
|
3912
3940
|
}
|
|
3913
3941
|
return {
|
|
3914
3942
|
c() {
|
|
3915
|
-
t = O("div"), r = O("img"),
|
|
3916
|
-
e[
|
|
3917
|
-
e[
|
|
3943
|
+
t = O("div"), r = O("img"), o = $(), s = O("div"), u = O("p"), a = R(l), h = $(), c = O("p"), p = R(f), d = $(), x = R(g), pe(r.src, n = /*category*/
|
|
3944
|
+
e[23].icon) || A(r, "src", n), A(r, "alt", i = /*category*/
|
|
3945
|
+
e[23].name), A(r, "class", "CategoryImage"), A(s, "class", "CategoryTextContainer"), A(t, "class", m = "Category " + /*activecategory*/
|
|
3918
3946
|
(e[0] === /*category*/
|
|
3919
|
-
e[
|
|
3947
|
+
e[23].id ? "Active" : ""));
|
|
3920
3948
|
},
|
|
3921
|
-
m(
|
|
3922
|
-
|
|
3949
|
+
m(B, H) {
|
|
3950
|
+
q(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, x), C || (S = bt(t, "click", P), C = !0);
|
|
3923
3951
|
},
|
|
3924
|
-
p(
|
|
3925
|
-
e =
|
|
3926
|
-
8 && !
|
|
3927
|
-
e[
|
|
3952
|
+
p(B, H) {
|
|
3953
|
+
e = B, H & /*topCategories*/
|
|
3954
|
+
8 && !pe(r.src, n = /*category*/
|
|
3955
|
+
e[23].icon) && A(r, "src", n), H & /*topCategories*/
|
|
3928
3956
|
8 && i !== (i = /*category*/
|
|
3929
|
-
e[
|
|
3930
|
-
8 && f !== (f = /*category*/
|
|
3931
|
-
e[24].name + "") && D(a, f), A & /*topCategories*/
|
|
3957
|
+
e[23].name) && A(r, "alt", i), H & /*topCategories*/
|
|
3932
3958
|
8 && l !== (l = /*category*/
|
|
3933
|
-
e[
|
|
3959
|
+
e[23].name + "") && G(a, l), H & /*topCategories*/
|
|
3960
|
+
8 && f !== (f = /*category*/
|
|
3961
|
+
e[23].games.count + "") && G(p, f), H & /*$_*/
|
|
3934
3962
|
32 && g !== (g = /*$_*/
|
|
3935
|
-
e[5]("games") + "") &&
|
|
3963
|
+
e[5]("games") + "") && G(x, g), H & /*activecategory, topCategories*/
|
|
3936
3964
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
3937
3965
|
(e[0] === /*category*/
|
|
3938
|
-
e[
|
|
3966
|
+
e[23].id ? "Active" : "")) && A(t, "class", m);
|
|
3939
3967
|
},
|
|
3940
|
-
d(
|
|
3941
|
-
|
|
3968
|
+
d(B) {
|
|
3969
|
+
B && F(t), C = !1, S();
|
|
3942
3970
|
}
|
|
3943
3971
|
};
|
|
3944
3972
|
}
|
|
3945
|
-
function
|
|
3946
|
-
let t, r, n, i,
|
|
3973
|
+
function gt(e) {
|
|
3974
|
+
let t, r, n, i, o, s, u, l = (
|
|
3947
3975
|
/*category*/
|
|
3948
|
-
e[
|
|
3949
|
-
), a, h, c,
|
|
3976
|
+
e[23].name + ""
|
|
3977
|
+
), a, h, c, f = (
|
|
3950
3978
|
/*category*/
|
|
3951
|
-
e[
|
|
3952
|
-
),
|
|
3979
|
+
e[23].games.count + ""
|
|
3980
|
+
), p, d, g = (
|
|
3953
3981
|
/*$_*/
|
|
3954
3982
|
e[5]("games") + ""
|
|
3955
|
-
), x, m, C,
|
|
3956
|
-
function
|
|
3983
|
+
), x, m, C, S, P;
|
|
3984
|
+
function B() {
|
|
3957
3985
|
return (
|
|
3958
3986
|
/*click_handler_1*/
|
|
3959
|
-
e[
|
|
3987
|
+
e[16](
|
|
3960
3988
|
/*category*/
|
|
3961
|
-
e[
|
|
3989
|
+
e[23]
|
|
3962
3990
|
)
|
|
3963
3991
|
);
|
|
3964
3992
|
}
|
|
3965
3993
|
return {
|
|
3966
3994
|
c() {
|
|
3967
|
-
t = O("div"), r = O("img"),
|
|
3968
|
-
e[
|
|
3969
|
-
e[
|
|
3995
|
+
t = O("div"), r = O("img"), o = $(), s = O("div"), u = O("p"), a = R(l), h = $(), c = O("p"), p = R(f), d = $(), x = R(g), m = $(), pe(r.src, n = /*category*/
|
|
3996
|
+
e[23].icon) || A(r, "src", n), A(r, "alt", i = /*category*/
|
|
3997
|
+
e[23].name), A(r, "class", "CategoryImage"), A(s, "class", "CategoryTextContainer"), A(t, "class", C = "Category " + /*activecategory*/
|
|
3970
3998
|
(e[0] === /*category*/
|
|
3971
|
-
e[
|
|
3999
|
+
e[23].id ? "Active" : ""));
|
|
3972
4000
|
},
|
|
3973
|
-
m(
|
|
3974
|
-
|
|
4001
|
+
m(H, N) {
|
|
4002
|
+
q(H, t, N), 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, x), v(t, m), S || (P = bt(t, "click", B), S = !0);
|
|
3975
4003
|
},
|
|
3976
|
-
p(
|
|
3977
|
-
e =
|
|
3978
|
-
16 && !
|
|
3979
|
-
e[
|
|
4004
|
+
p(H, N) {
|
|
4005
|
+
e = H, N & /*otherCategories*/
|
|
4006
|
+
16 && !pe(r.src, n = /*category*/
|
|
4007
|
+
e[23].icon) && A(r, "src", n), N & /*otherCategories*/
|
|
3980
4008
|
16 && i !== (i = /*category*/
|
|
3981
|
-
e[
|
|
3982
|
-
16 && f !== (f = /*category*/
|
|
3983
|
-
e[24].name + "") && D(a, f), w & /*otherCategories*/
|
|
4009
|
+
e[23].name) && A(r, "alt", i), N & /*otherCategories*/
|
|
3984
4010
|
16 && l !== (l = /*category*/
|
|
3985
|
-
e[
|
|
4011
|
+
e[23].name + "") && G(a, l), N & /*otherCategories*/
|
|
4012
|
+
16 && f !== (f = /*category*/
|
|
4013
|
+
e[23].games.count + "") && G(p, f), N & /*$_*/
|
|
3986
4014
|
32 && g !== (g = /*$_*/
|
|
3987
|
-
e[5]("games") + "") &&
|
|
4015
|
+
e[5]("games") + "") && G(x, g), N & /*activecategory, otherCategories*/
|
|
3988
4016
|
17 && C !== (C = "Category " + /*activecategory*/
|
|
3989
4017
|
(e[0] === /*category*/
|
|
3990
|
-
e[
|
|
4018
|
+
e[23].id ? "Active" : "")) && A(t, "class", C);
|
|
3991
4019
|
},
|
|
3992
|
-
d(
|
|
3993
|
-
|
|
4020
|
+
d(H) {
|
|
4021
|
+
H && F(t), S = !1, P();
|
|
3994
4022
|
}
|
|
3995
4023
|
};
|
|
3996
4024
|
}
|
|
3997
|
-
function
|
|
4025
|
+
function hi(e) {
|
|
3998
4026
|
let t;
|
|
3999
|
-
function r(
|
|
4027
|
+
function r(o, s) {
|
|
4000
4028
|
return (
|
|
4001
4029
|
/*isLoading*/
|
|
4002
|
-
|
|
4030
|
+
o[2] ? ui : ai
|
|
4003
4031
|
);
|
|
4004
4032
|
}
|
|
4005
4033
|
let n = r(e), i = n(e);
|
|
@@ -4007,110 +4035,98 @@ function oi(e) {
|
|
|
4007
4035
|
c() {
|
|
4008
4036
|
t = O("div"), i.c();
|
|
4009
4037
|
},
|
|
4010
|
-
m(
|
|
4011
|
-
|
|
4038
|
+
m(o, s) {
|
|
4039
|
+
q(o, t, s), i.m(t, null), e[17](t);
|
|
4012
4040
|
},
|
|
4013
|
-
p(
|
|
4014
|
-
n === (n = r(
|
|
4041
|
+
p(o, [s]) {
|
|
4042
|
+
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4015
4043
|
},
|
|
4016
4044
|
i: L,
|
|
4017
4045
|
o: L,
|
|
4018
|
-
d(
|
|
4019
|
-
|
|
4046
|
+
d(o) {
|
|
4047
|
+
o && F(t), i.d(), e[17](null);
|
|
4020
4048
|
}
|
|
4021
4049
|
};
|
|
4022
4050
|
}
|
|
4023
|
-
function
|
|
4051
|
+
function li(e, t, r) {
|
|
4024
4052
|
let n;
|
|
4025
|
-
|
|
4026
|
-
let { endpoint: i = "" } = t, { datasource:
|
|
4027
|
-
const
|
|
4028
|
-
let
|
|
4029
|
-
Object.keys(
|
|
4030
|
-
|
|
4053
|
+
zt(e, ti, (b) => r(5, n = b));
|
|
4054
|
+
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;
|
|
4055
|
+
const g = [];
|
|
4056
|
+
let x = [], m = [];
|
|
4057
|
+
Object.keys(ht).forEach((b) => {
|
|
4058
|
+
ut(b, ht[b]);
|
|
4031
4059
|
});
|
|
4032
|
-
const
|
|
4033
|
-
fetch(c).then((
|
|
4034
|
-
Object.keys(
|
|
4035
|
-
|
|
4060
|
+
const C = () => {
|
|
4061
|
+
fetch(c).then((M) => M.json()).then((M) => {
|
|
4062
|
+
Object.keys(M).forEach((ue) => {
|
|
4063
|
+
ut(ue, M[ue]);
|
|
4036
4064
|
});
|
|
4037
|
-
}).catch((
|
|
4038
|
-
console.log(
|
|
4065
|
+
}).catch((M) => {
|
|
4066
|
+
console.log(M);
|
|
4039
4067
|
});
|
|
4040
|
-
},
|
|
4068
|
+
}, S = () => {
|
|
4041
4069
|
r(2, d = !0);
|
|
4042
|
-
const b = new URL(`${i}/v1/casino/groups/${
|
|
4043
|
-
b.searchParams.append("language",
|
|
4070
|
+
const b = new URL(`${i}/v1/casino/groups/${o}`);
|
|
4071
|
+
b.searchParams.append("language", s), fetch(b).then((M) => M.json()).then((M) => {
|
|
4044
4072
|
r(2, d = !1);
|
|
4045
|
-
const
|
|
4046
|
-
|
|
4047
|
-
const
|
|
4048
|
-
r(3,
|
|
4073
|
+
const ue = l.split(",").map((D) => D.trim());
|
|
4074
|
+
g.push(...M.items);
|
|
4075
|
+
const Xe = g.filter((D) => !ue.some((Vt) => D.flags?.indexOf(Vt) >= 0));
|
|
4076
|
+
r(3, x = Xe.filter((D) => D.isTopCategory === !0)), r(4, m = Xe.filter((D) => D.isTopCategory === !1));
|
|
4049
4077
|
});
|
|
4050
|
-
},
|
|
4078
|
+
}, P = (b) => {
|
|
4051
4079
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4052
|
-
},
|
|
4053
|
-
ri(
|
|
4054
|
-
}
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
() => {
|
|
4062
|
-
l.appendChild(N);
|
|
4063
|
-
},
|
|
4064
|
-
1
|
|
4065
|
-
), setTimeout(
|
|
4066
|
-
() => {
|
|
4067
|
-
},
|
|
4068
|
-
500
|
|
4069
|
-
);
|
|
4070
|
-
});
|
|
4071
|
-
}, w = (b) => H(b.id), Xt = (b) => H(b.id);
|
|
4072
|
-
function zt(b) {
|
|
4073
|
-
Oe[b ? "unshift" : "push"](() => {
|
|
4074
|
-
l = b, r(1, l);
|
|
4080
|
+
}, B = () => {
|
|
4081
|
+
ri(s);
|
|
4082
|
+
};
|
|
4083
|
+
Kt(() => () => {
|
|
4084
|
+
});
|
|
4085
|
+
const H = (b) => P(b.id), N = (b) => P(b.id);
|
|
4086
|
+
function kt(b) {
|
|
4087
|
+
we[b ? "unshift" : "push"](() => {
|
|
4088
|
+
p = b, r(1, p);
|
|
4075
4089
|
});
|
|
4076
4090
|
}
|
|
4077
4091
|
return e.$$set = (b) => {
|
|
4078
|
-
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8,
|
|
4092
|
+
"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);
|
|
4079
4093
|
}, e.$$.update = () => {
|
|
4080
4094
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4081
|
-
384 && i &&
|
|
4082
|
-
8192 && c &&
|
|
4083
|
-
512 &&
|
|
4084
|
-
2050 && a &&
|
|
4085
|
-
4098 && h &&
|
|
4095
|
+
384 && i && o && S(), e.$$.dirty & /*translationurl*/
|
|
4096
|
+
8192 && c && C(), e.$$.dirty & /*lang*/
|
|
4097
|
+
512 && s && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4098
|
+
2050 && a && p && ni(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4099
|
+
4098 && h && p && ii(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4100
|
+
16386 && f && p && oi(p, `${f}.Style`);
|
|
4086
4101
|
}, [
|
|
4087
4102
|
u,
|
|
4088
|
-
|
|
4103
|
+
p,
|
|
4089
4104
|
d,
|
|
4090
|
-
g,
|
|
4091
4105
|
x,
|
|
4106
|
+
m,
|
|
4092
4107
|
n,
|
|
4093
|
-
|
|
4108
|
+
P,
|
|
4094
4109
|
i,
|
|
4095
|
-
s,
|
|
4096
4110
|
o,
|
|
4097
|
-
|
|
4111
|
+
s,
|
|
4112
|
+
l,
|
|
4098
4113
|
a,
|
|
4099
4114
|
h,
|
|
4100
4115
|
c,
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4116
|
+
f,
|
|
4117
|
+
H,
|
|
4118
|
+
N,
|
|
4119
|
+
kt
|
|
4104
4120
|
];
|
|
4105
4121
|
}
|
|
4106
|
-
class
|
|
4122
|
+
class fi extends fr {
|
|
4107
4123
|
constructor(t) {
|
|
4108
|
-
super(),
|
|
4124
|
+
super(), hr(
|
|
4109
4125
|
this,
|
|
4110
4126
|
t,
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4127
|
+
li,
|
|
4128
|
+
hi,
|
|
4129
|
+
pt,
|
|
4114
4130
|
{
|
|
4115
4131
|
endpoint: 7,
|
|
4116
4132
|
datasource: 8,
|
|
@@ -4119,61 +4135,68 @@ class ui extends cr {
|
|
|
4119
4135
|
excludedflags: 10,
|
|
4120
4136
|
clientstyling: 11,
|
|
4121
4137
|
clientstylingurl: 12,
|
|
4122
|
-
translationurl: 13
|
|
4138
|
+
translationurl: 13,
|
|
4139
|
+
mbsource: 14
|
|
4123
4140
|
},
|
|
4124
|
-
|
|
4141
|
+
si
|
|
4125
4142
|
);
|
|
4126
4143
|
}
|
|
4127
4144
|
get endpoint() {
|
|
4128
4145
|
return this.$$.ctx[7];
|
|
4129
4146
|
}
|
|
4130
4147
|
set endpoint(t) {
|
|
4131
|
-
this.$$set({ endpoint: t }),
|
|
4148
|
+
this.$$set({ endpoint: t }), I();
|
|
4132
4149
|
}
|
|
4133
4150
|
get datasource() {
|
|
4134
4151
|
return this.$$.ctx[8];
|
|
4135
4152
|
}
|
|
4136
4153
|
set datasource(t) {
|
|
4137
|
-
this.$$set({ datasource: t }),
|
|
4154
|
+
this.$$set({ datasource: t }), I();
|
|
4138
4155
|
}
|
|
4139
4156
|
get lang() {
|
|
4140
4157
|
return this.$$.ctx[9];
|
|
4141
4158
|
}
|
|
4142
4159
|
set lang(t) {
|
|
4143
|
-
this.$$set({ lang: t }),
|
|
4160
|
+
this.$$set({ lang: t }), I();
|
|
4144
4161
|
}
|
|
4145
4162
|
get activecategory() {
|
|
4146
4163
|
return this.$$.ctx[0];
|
|
4147
4164
|
}
|
|
4148
4165
|
set activecategory(t) {
|
|
4149
|
-
this.$$set({ activecategory: t }),
|
|
4166
|
+
this.$$set({ activecategory: t }), I();
|
|
4150
4167
|
}
|
|
4151
4168
|
get excludedflags() {
|
|
4152
4169
|
return this.$$.ctx[10];
|
|
4153
4170
|
}
|
|
4154
4171
|
set excludedflags(t) {
|
|
4155
|
-
this.$$set({ excludedflags: t }),
|
|
4172
|
+
this.$$set({ excludedflags: t }), I();
|
|
4156
4173
|
}
|
|
4157
4174
|
get clientstyling() {
|
|
4158
4175
|
return this.$$.ctx[11];
|
|
4159
4176
|
}
|
|
4160
4177
|
set clientstyling(t) {
|
|
4161
|
-
this.$$set({ clientstyling: t }),
|
|
4178
|
+
this.$$set({ clientstyling: t }), I();
|
|
4162
4179
|
}
|
|
4163
4180
|
get clientstylingurl() {
|
|
4164
4181
|
return this.$$.ctx[12];
|
|
4165
4182
|
}
|
|
4166
4183
|
set clientstylingurl(t) {
|
|
4167
|
-
this.$$set({ clientstylingurl: t }),
|
|
4184
|
+
this.$$set({ clientstylingurl: t }), I();
|
|
4168
4185
|
}
|
|
4169
4186
|
get translationurl() {
|
|
4170
4187
|
return this.$$.ctx[13];
|
|
4171
4188
|
}
|
|
4172
4189
|
set translationurl(t) {
|
|
4173
|
-
this.$$set({ translationurl: t }),
|
|
4190
|
+
this.$$set({ translationurl: t }), I();
|
|
4191
|
+
}
|
|
4192
|
+
get mbsource() {
|
|
4193
|
+
return this.$$.ctx[14];
|
|
4194
|
+
}
|
|
4195
|
+
set mbsource(t) {
|
|
4196
|
+
this.$$set({ mbsource: t }), I();
|
|
4174
4197
|
}
|
|
4175
4198
|
}
|
|
4176
|
-
|
|
4199
|
+
lr(fi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4177
4200
|
export {
|
|
4178
|
-
|
|
4201
|
+
fi as C
|
|
4179
4202
|
};
|