@everymatrix/casino-categories-providers 1.55.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategories-mHy-_ndW.js → CasinoCategories-CkBZnT1R.js} +768 -716
- package/components/{CasinoCategories-QHkTalOb.js → CasinoCategories-CpYuQZ7U.js} +786 -734
- package/components/CasinoCategories-DqO2b02B.cjs +16 -0
- package/components/CasinoCategoriesProviders-BDw-rk5g.js +478 -0
- package/components/CasinoCategoriesProviders-BG-FGTs-.cjs +1 -0
- package/components/CasinoCategoriesProviders-De_6ATE1.js +478 -0
- package/components/CasinoProviders-Cm7soutR.js +487 -0
- package/components/CasinoProviders-DJlmVQlk.cjs +1 -0
- package/components/CasinoProviders-DsL3JzjC.js +487 -0
- package/es2015/casino-categories-providers.cjs +1 -1
- package/es2015/casino-categories-providers.js +1 -1
- package/esnext/casino-categories-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategories-DalcM56E.cjs +0 -3
- package/components/CasinoCategoriesProviders-CNwaZT2H.js +0 -461
- package/components/CasinoCategoriesProviders-Dlpem2a8.js +0 -461
- package/components/CasinoCategoriesProviders-Dqu1gKJL.cjs +0 -1
- package/components/CasinoProviders-BU83w195.cjs +0 -1
- package/components/CasinoProviders-D-rq8Khj.js +0 -491
- package/components/CasinoProviders-zpWn9Qcs.js +0 -491
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var tr = Object.defineProperty, rr = Object.defineProperties;
|
|
2
|
+
var nr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Je = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var Ce = (e, t, r) => t in e ?
|
|
4
|
+
var ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ce = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
ir.call(t, r) && Ce(e, r, t[r]);
|
|
8
8
|
if (Je)
|
|
9
9
|
for (var r of Je(t))
|
|
10
|
-
|
|
10
|
+
sr.call(t, r) && Ce(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Ke = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, Ke = (e, t) => rr(e, nr(t));
|
|
13
|
+
var L = (e, t, r) => (Ce(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
@@ -27,54 +27,55 @@ var et = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function I() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Tt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function tt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ae(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Tt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ve(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ct(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let le;
|
|
48
|
+
function de(e, t) {
|
|
49
|
+
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function or(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
54
|
function Ht(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
58
|
-
return
|
|
58
|
+
return I;
|
|
59
59
|
}
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ar(e, t, r) {
|
|
64
64
|
e.$$.on_destroy.push(Ht(t, r));
|
|
65
65
|
}
|
|
66
66
|
function v(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function ur(e, t, r) {
|
|
70
|
+
const n = hr(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = w("style");
|
|
73
|
+
i.id = t, i.textContent = r, lr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
if (!e)
|
|
76
|
+
function hr(e) {
|
|
77
|
+
if (!e)
|
|
78
|
+
return document;
|
|
78
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
80
|
return t && /** @type {ShadowRoot} */
|
|
80
81
|
t.host ? (
|
|
@@ -82,24 +83,24 @@ function lr(e) {
|
|
|
82
83
|
t
|
|
83
84
|
) : e.ownerDocument;
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function lr(e, t) {
|
|
86
87
|
return v(
|
|
87
88
|
/** @type {Document} */
|
|
88
89
|
e.head || e,
|
|
89
90
|
t
|
|
90
91
|
), t.sheet;
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
+
function Y(e, t, r) {
|
|
93
94
|
e.insertBefore(t, r || null);
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function j(e) {
|
|
96
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
98
|
}
|
|
98
99
|
function rt(e, t) {
|
|
99
100
|
for (let r = 0; r < e.length; r += 1)
|
|
100
101
|
e[r] && e[r].d(t);
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
+
function w(e) {
|
|
103
104
|
return document.createElement(e);
|
|
104
105
|
}
|
|
105
106
|
function U(e) {
|
|
@@ -108,7 +109,7 @@ function U(e) {
|
|
|
108
109
|
function R() {
|
|
109
110
|
return U(" ");
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
+
function Ai() {
|
|
112
113
|
return U("");
|
|
113
114
|
}
|
|
114
115
|
function At(e, t, r, n) {
|
|
@@ -117,18 +118,18 @@ function At(e, t, r, n) {
|
|
|
117
118
|
function H(e, t, r) {
|
|
118
119
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
+
function Bi(e, t, r) {
|
|
121
122
|
const n = t.toLowerCase();
|
|
122
123
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
123
124
|
}
|
|
124
125
|
function cr(e) {
|
|
125
126
|
return Array.from(e.childNodes);
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
+
function G(e, t) {
|
|
128
129
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
129
130
|
t);
|
|
130
131
|
}
|
|
131
|
-
function
|
|
132
|
+
function fr(e) {
|
|
132
133
|
const t = {};
|
|
133
134
|
return e.childNodes.forEach(
|
|
134
135
|
/** @param {Element} node */
|
|
@@ -137,87 +138,96 @@ function gr(e) {
|
|
|
137
138
|
}
|
|
138
139
|
), t;
|
|
139
140
|
}
|
|
140
|
-
let
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
let ie;
|
|
142
|
+
function ne(e) {
|
|
143
|
+
ie = e;
|
|
144
|
+
}
|
|
145
|
+
function gr() {
|
|
146
|
+
if (!ie)
|
|
147
|
+
throw new Error("Function called outside component initialization");
|
|
148
|
+
return ie;
|
|
149
|
+
}
|
|
150
|
+
function mr(e) {
|
|
151
|
+
gr().$$.on_mount.push(e);
|
|
143
152
|
}
|
|
144
|
-
const
|
|
145
|
-
let
|
|
146
|
-
const nt = [],
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
153
|
+
const z = [], Ne = [];
|
|
154
|
+
let W = [];
|
|
155
|
+
const nt = [], pr = /* @__PURE__ */ Promise.resolve();
|
|
156
|
+
let Le = !1;
|
|
157
|
+
function dr() {
|
|
158
|
+
Le || (Le = !0, pr.then(M));
|
|
150
159
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
160
|
+
function Ie(e) {
|
|
161
|
+
W.push(e);
|
|
153
162
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
if (
|
|
163
|
+
const He = /* @__PURE__ */ new Set();
|
|
164
|
+
let V = 0;
|
|
165
|
+
function M() {
|
|
166
|
+
if (V !== 0)
|
|
158
167
|
return;
|
|
159
|
-
const e =
|
|
168
|
+
const e = ie;
|
|
160
169
|
do {
|
|
161
170
|
try {
|
|
162
|
-
for (;
|
|
163
|
-
const t =
|
|
164
|
-
|
|
171
|
+
for (; V < z.length; ) {
|
|
172
|
+
const t = z[V];
|
|
173
|
+
V++, ne(t), br(t.$$);
|
|
165
174
|
}
|
|
166
175
|
} catch (t) {
|
|
167
|
-
throw
|
|
176
|
+
throw z.length = 0, V = 0, t;
|
|
168
177
|
}
|
|
169
|
-
for (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
178
|
+
for (ne(null), z.length = 0, V = 0; Ne.length; )
|
|
179
|
+
Ne.pop()();
|
|
180
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
181
|
+
const r = W[t];
|
|
182
|
+
He.has(r) || (He.add(r), r());
|
|
173
183
|
}
|
|
174
|
-
|
|
175
|
-
} while (
|
|
184
|
+
W.length = 0;
|
|
185
|
+
} while (z.length);
|
|
176
186
|
for (; nt.length; )
|
|
177
187
|
nt.pop()();
|
|
178
|
-
|
|
188
|
+
Le = !1, He.clear(), ne(e);
|
|
179
189
|
}
|
|
180
|
-
function
|
|
190
|
+
function br(e) {
|
|
181
191
|
if (e.fragment !== null) {
|
|
182
192
|
e.update(), ae(e.before_update);
|
|
183
193
|
const t = e.dirty;
|
|
184
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
194
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
185
195
|
}
|
|
186
196
|
}
|
|
187
|
-
function
|
|
197
|
+
function yr(e) {
|
|
188
198
|
const t = [], r = [];
|
|
189
|
-
|
|
199
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
190
200
|
}
|
|
191
|
-
const
|
|
192
|
-
function
|
|
193
|
-
e && e.i && (
|
|
201
|
+
const _r = /* @__PURE__ */ new Set();
|
|
202
|
+
function xr(e, t) {
|
|
203
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
194
204
|
}
|
|
195
|
-
function
|
|
205
|
+
function ce(e) {
|
|
196
206
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
197
207
|
}
|
|
198
|
-
function
|
|
208
|
+
function Er(e, t, r) {
|
|
199
209
|
const { fragment: n, after_update: i } = e.$$;
|
|
200
|
-
n && n.m(t, r),
|
|
201
|
-
const s = e.$$.on_mount.map(
|
|
210
|
+
n && n.m(t, r), Ie(() => {
|
|
211
|
+
const s = e.$$.on_mount.map(Tt).filter(Ve);
|
|
202
212
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
203
|
-
}), i.forEach(
|
|
213
|
+
}), i.forEach(Ie);
|
|
204
214
|
}
|
|
205
|
-
function
|
|
215
|
+
function vr(e, t) {
|
|
206
216
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
217
|
+
r.fragment !== null && (yr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
208
218
|
}
|
|
209
|
-
function
|
|
210
|
-
e.$$.dirty[0] === -1 && (
|
|
219
|
+
function Tr(e, t) {
|
|
220
|
+
e.$$.dirty[0] === -1 && (z.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
221
|
}
|
|
212
222
|
function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
213
|
-
const h =
|
|
214
|
-
|
|
223
|
+
const h = ie;
|
|
224
|
+
ne(e);
|
|
215
225
|
const a = e.$$ = {
|
|
216
226
|
fragment: null,
|
|
217
227
|
ctx: [],
|
|
218
228
|
// state
|
|
219
229
|
props: s,
|
|
220
|
-
update:
|
|
230
|
+
update: I,
|
|
221
231
|
not_equal: i,
|
|
222
232
|
bound: tt(),
|
|
223
233
|
// lifecycle
|
|
@@ -235,41 +245,41 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
235
245
|
};
|
|
236
246
|
o && o(a.root);
|
|
237
247
|
let l = !1;
|
|
238
|
-
if (a.ctx = r ? r(e, t.props || {}, (
|
|
239
|
-
const
|
|
240
|
-
return a.ctx && i(a.ctx[
|
|
248
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
249
|
+
const d = p.length ? p[0] : c;
|
|
250
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = d) && (!a.skip_bound && a.bound[f] && a.bound[f](d), l && Tr(e, f)), c;
|
|
241
251
|
}) : [], a.update(), l = !0, ae(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
242
252
|
if (t.hydrate) {
|
|
243
|
-
const
|
|
244
|
-
a.fragment && a.fragment.l(
|
|
253
|
+
const f = cr(t.target);
|
|
254
|
+
a.fragment && a.fragment.l(f), f.forEach(j);
|
|
245
255
|
} else
|
|
246
256
|
a.fragment && a.fragment.c();
|
|
247
|
-
t.intro &&
|
|
257
|
+
t.intro && xr(e.$$.fragment), Er(e, t.target, t.anchor), M();
|
|
248
258
|
}
|
|
249
|
-
|
|
259
|
+
ne(h);
|
|
250
260
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
261
|
+
let Bt;
|
|
262
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
253
263
|
constructor(t, r, n) {
|
|
254
264
|
super();
|
|
255
265
|
/** The Svelte component constructor */
|
|
256
|
-
|
|
266
|
+
L(this, "$$ctor");
|
|
257
267
|
/** Slots */
|
|
258
|
-
|
|
268
|
+
L(this, "$$s");
|
|
259
269
|
/** The Svelte component instance */
|
|
260
|
-
|
|
270
|
+
L(this, "$$c");
|
|
261
271
|
/** Whether or not the custom element is connected */
|
|
262
|
-
|
|
272
|
+
L(this, "$$cn", !1);
|
|
263
273
|
/** Component props data */
|
|
264
|
-
|
|
274
|
+
L(this, "$$d", {});
|
|
265
275
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
266
|
-
|
|
276
|
+
L(this, "$$r", !1);
|
|
267
277
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
268
|
-
|
|
278
|
+
L(this, "$$p_d", {});
|
|
269
279
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
270
|
-
|
|
280
|
+
L(this, "$$l", {});
|
|
271
281
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
272
|
-
|
|
282
|
+
L(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
273
283
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
274
284
|
}
|
|
275
285
|
addEventListener(t, r, n) {
|
|
@@ -293,29 +303,29 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
293
303
|
let o;
|
|
294
304
|
return {
|
|
295
305
|
c: function() {
|
|
296
|
-
o =
|
|
306
|
+
o = w("slot"), s !== "default" && H(o, "name", s);
|
|
297
307
|
},
|
|
298
308
|
/**
|
|
299
309
|
* @param {HTMLElement} target
|
|
300
310
|
* @param {HTMLElement} [anchor]
|
|
301
311
|
*/
|
|
302
312
|
m: function(a, l) {
|
|
303
|
-
|
|
313
|
+
Y(a, o, l);
|
|
304
314
|
},
|
|
305
315
|
d: function(a) {
|
|
306
|
-
a &&
|
|
316
|
+
a && j(o);
|
|
307
317
|
}
|
|
308
318
|
};
|
|
309
319
|
};
|
|
310
320
|
};
|
|
311
321
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
312
322
|
return;
|
|
313
|
-
const r = {}, n =
|
|
323
|
+
const r = {}, n = fr(this);
|
|
314
324
|
for (const s of this.$$s)
|
|
315
325
|
s in n && (r[s] = [t(s)]);
|
|
316
326
|
for (const s of this.attributes) {
|
|
317
327
|
const o = this.$$g_p(s.name);
|
|
318
|
-
o in this.$$d || (this.$$d[o] =
|
|
328
|
+
o in this.$$d || (this.$$d[o] = ge(o, s.value, this.$$p_d, "toProp"));
|
|
319
329
|
}
|
|
320
330
|
for (const s in this.$$p_d)
|
|
321
331
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -332,7 +342,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
332
342
|
this.$$r = !0;
|
|
333
343
|
for (const s in this.$$p_d)
|
|
334
344
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
335
|
-
const o =
|
|
345
|
+
const o = ge(
|
|
336
346
|
s,
|
|
337
347
|
this.$$d[s],
|
|
338
348
|
this.$$p_d,
|
|
@@ -356,7 +366,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
356
366
|
// and setting attributes through setAttribute etc, this is helpful
|
|
357
367
|
attributeChangedCallback(t, r, n) {
|
|
358
368
|
var i;
|
|
359
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
369
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ge(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
360
370
|
}
|
|
361
371
|
disconnectedCallback() {
|
|
362
372
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -369,7 +379,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
369
379
|
) || t;
|
|
370
380
|
}
|
|
371
381
|
});
|
|
372
|
-
function
|
|
382
|
+
function ge(e, t, r, n) {
|
|
373
383
|
var s;
|
|
374
384
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
375
385
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -399,8 +409,8 @@ function ce(e, t, r, n) {
|
|
|
399
409
|
return t;
|
|
400
410
|
}
|
|
401
411
|
}
|
|
402
|
-
function
|
|
403
|
-
let o = class extends
|
|
412
|
+
function Hr(e, t, r, n, i, s) {
|
|
413
|
+
let o = class extends Bt {
|
|
404
414
|
constructor() {
|
|
405
415
|
super(e, r, i), this.$$p_d = t;
|
|
406
416
|
}
|
|
@@ -417,7 +427,7 @@ function Tr(e, t, r, n, i, s) {
|
|
|
417
427
|
},
|
|
418
428
|
set(h) {
|
|
419
429
|
var a;
|
|
420
|
-
h =
|
|
430
|
+
h = ge(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
421
431
|
}
|
|
422
432
|
});
|
|
423
433
|
}), n.forEach((u) => {
|
|
@@ -430,7 +440,7 @@ function Tr(e, t, r, n, i, s) {
|
|
|
430
440
|
}), e.element = /** @type {any} */
|
|
431
441
|
o, o;
|
|
432
442
|
}
|
|
433
|
-
class
|
|
443
|
+
class Ar {
|
|
434
444
|
constructor() {
|
|
435
445
|
/**
|
|
436
446
|
* ### PRIVATE API
|
|
@@ -439,7 +449,7 @@ class Hr {
|
|
|
439
449
|
*
|
|
440
450
|
* @type {any}
|
|
441
451
|
*/
|
|
442
|
-
|
|
452
|
+
L(this, "$$");
|
|
443
453
|
/**
|
|
444
454
|
* ### PRIVATE API
|
|
445
455
|
*
|
|
@@ -447,11 +457,11 @@ class Hr {
|
|
|
447
457
|
*
|
|
448
458
|
* @type {any}
|
|
449
459
|
*/
|
|
450
|
-
|
|
460
|
+
L(this, "$$set");
|
|
451
461
|
}
|
|
452
462
|
/** @returns {void} */
|
|
453
463
|
$destroy() {
|
|
454
|
-
|
|
464
|
+
vr(this, 1), this.$destroy = I;
|
|
455
465
|
}
|
|
456
466
|
/**
|
|
457
467
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -460,8 +470,8 @@ class Hr {
|
|
|
460
470
|
* @returns {() => void}
|
|
461
471
|
*/
|
|
462
472
|
$on(t, r) {
|
|
463
|
-
if (!
|
|
464
|
-
return
|
|
473
|
+
if (!Ve(r))
|
|
474
|
+
return I;
|
|
465
475
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
466
476
|
return n.push(r), () => {
|
|
467
477
|
const i = n.indexOf(r);
|
|
@@ -473,44 +483,44 @@ class Hr {
|
|
|
473
483
|
* @returns {void}
|
|
474
484
|
*/
|
|
475
485
|
$set(t) {
|
|
476
|
-
this.$$set && !
|
|
486
|
+
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
477
487
|
}
|
|
478
488
|
}
|
|
479
|
-
const
|
|
480
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
481
|
-
const
|
|
489
|
+
const Br = "4";
|
|
490
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
491
|
+
const X = [];
|
|
482
492
|
function Sr(e, t) {
|
|
483
493
|
return {
|
|
484
|
-
subscribe:
|
|
494
|
+
subscribe: _e(e, t).subscribe
|
|
485
495
|
};
|
|
486
496
|
}
|
|
487
|
-
function
|
|
497
|
+
function _e(e, t = I) {
|
|
488
498
|
let r;
|
|
489
499
|
const n = /* @__PURE__ */ new Set();
|
|
490
500
|
function i(u) {
|
|
491
|
-
if (
|
|
492
|
-
const h = !
|
|
501
|
+
if (Ct(e, u) && (e = u, r)) {
|
|
502
|
+
const h = !X.length;
|
|
493
503
|
for (const a of n)
|
|
494
|
-
a[1](),
|
|
504
|
+
a[1](), X.push(a, e);
|
|
495
505
|
if (h) {
|
|
496
|
-
for (let a = 0; a <
|
|
497
|
-
|
|
498
|
-
|
|
506
|
+
for (let a = 0; a < X.length; a += 2)
|
|
507
|
+
X[a][0](X[a + 1]);
|
|
508
|
+
X.length = 0;
|
|
499
509
|
}
|
|
500
510
|
}
|
|
501
511
|
}
|
|
502
512
|
function s(u) {
|
|
503
513
|
i(u(e));
|
|
504
514
|
}
|
|
505
|
-
function o(u, h =
|
|
515
|
+
function o(u, h = I) {
|
|
506
516
|
const a = [u, h];
|
|
507
|
-
return n.add(a), n.size === 1 && (r = t(i, s) ||
|
|
517
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || I), u(e), () => {
|
|
508
518
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
509
519
|
};
|
|
510
520
|
}
|
|
511
521
|
return { set: i, update: s, subscribe: o };
|
|
512
522
|
}
|
|
513
|
-
function
|
|
523
|
+
function K(e, t, r) {
|
|
514
524
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
515
525
|
if (!i.every(Boolean))
|
|
516
526
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -518,72 +528,72 @@ function ee(e, t, r) {
|
|
|
518
528
|
return Sr(r, (o, u) => {
|
|
519
529
|
let h = !1;
|
|
520
530
|
const a = [];
|
|
521
|
-
let l = 0,
|
|
522
|
-
const
|
|
531
|
+
let l = 0, f = I;
|
|
532
|
+
const c = () => {
|
|
523
533
|
if (l)
|
|
524
534
|
return;
|
|
525
|
-
|
|
526
|
-
const
|
|
527
|
-
s ? o(
|
|
528
|
-
},
|
|
529
|
-
(
|
|
530
|
-
|
|
535
|
+
f();
|
|
536
|
+
const d = t(n ? a[0] : a, o, u);
|
|
537
|
+
s ? o(d) : f = Ve(d) ? d : I;
|
|
538
|
+
}, p = i.map(
|
|
539
|
+
(d, g) => Ht(
|
|
540
|
+
d,
|
|
531
541
|
(E) => {
|
|
532
|
-
a[g] = E, l &= ~(1 << g), h &&
|
|
542
|
+
a[g] = E, l &= ~(1 << g), h && c();
|
|
533
543
|
},
|
|
534
544
|
() => {
|
|
535
545
|
l |= 1 << g;
|
|
536
546
|
}
|
|
537
547
|
)
|
|
538
548
|
);
|
|
539
|
-
return h = !0,
|
|
540
|
-
ae(
|
|
549
|
+
return h = !0, c(), function() {
|
|
550
|
+
ae(p), f(), h = !1;
|
|
541
551
|
};
|
|
542
552
|
});
|
|
543
553
|
}
|
|
544
|
-
function
|
|
554
|
+
function wr(e) {
|
|
545
555
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
546
556
|
}
|
|
547
557
|
var Or = function(t) {
|
|
548
|
-
return Pr(t) && !
|
|
558
|
+
return Pr(t) && !Nr(t);
|
|
549
559
|
};
|
|
550
560
|
function Pr(e) {
|
|
551
561
|
return !!e && typeof e == "object";
|
|
552
562
|
}
|
|
553
|
-
function
|
|
563
|
+
function Nr(e) {
|
|
554
564
|
var t = Object.prototype.toString.call(e);
|
|
555
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
556
|
-
}
|
|
557
|
-
var Nr = typeof Symbol == "function" && Symbol.for, Lr = Nr ? Symbol.for("react.element") : 60103;
|
|
558
|
-
function Ir(e) {
|
|
559
|
-
return e.$$typeof === Lr;
|
|
565
|
+
return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
|
|
560
566
|
}
|
|
567
|
+
var Lr = typeof Symbol == "function" && Symbol.for, Ir = Lr ? Symbol.for("react.element") : 60103;
|
|
561
568
|
function Mr(e) {
|
|
569
|
+
return e.$$typeof === Ir;
|
|
570
|
+
}
|
|
571
|
+
function $r(e) {
|
|
562
572
|
return Array.isArray(e) ? [] : {};
|
|
563
573
|
}
|
|
564
574
|
function se(e, t) {
|
|
565
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
575
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z($r(e), e, t) : e;
|
|
566
576
|
}
|
|
567
|
-
function
|
|
577
|
+
function Rr(e, t, r) {
|
|
568
578
|
return e.concat(t).map(function(n) {
|
|
569
579
|
return se(n, r);
|
|
570
580
|
});
|
|
571
581
|
}
|
|
572
|
-
function
|
|
582
|
+
function Ur(e, t) {
|
|
573
583
|
if (!t.customMerge)
|
|
574
|
-
return
|
|
584
|
+
return Z;
|
|
575
585
|
var r = t.customMerge(e);
|
|
576
|
-
return typeof r == "function" ? r :
|
|
586
|
+
return typeof r == "function" ? r : Z;
|
|
577
587
|
}
|
|
578
|
-
function
|
|
588
|
+
function Dr(e) {
|
|
579
589
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
580
590
|
return Object.propertyIsEnumerable.call(e, t);
|
|
581
591
|
}) : [];
|
|
582
592
|
}
|
|
583
593
|
function it(e) {
|
|
584
|
-
return Object.keys(e).concat(
|
|
594
|
+
return Object.keys(e).concat(Dr(e));
|
|
585
595
|
}
|
|
586
|
-
function
|
|
596
|
+
function St(e, t) {
|
|
587
597
|
try {
|
|
588
598
|
return t in e;
|
|
589
599
|
} catch (r) {
|
|
@@ -591,41 +601,56 @@ function Bt(e, t) {
|
|
|
591
601
|
}
|
|
592
602
|
}
|
|
593
603
|
function Gr(e, t) {
|
|
594
|
-
return
|
|
604
|
+
return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
595
605
|
}
|
|
596
|
-
function
|
|
606
|
+
function Fr(e, t, r) {
|
|
597
607
|
var n = {};
|
|
598
608
|
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
599
609
|
n[i] = se(e[i], r);
|
|
600
610
|
}), it(t).forEach(function(i) {
|
|
601
|
-
Gr(e, i) || (
|
|
611
|
+
Gr(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
602
612
|
}), n;
|
|
603
613
|
}
|
|
604
|
-
function
|
|
605
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
614
|
+
function Z(e, t, r) {
|
|
615
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = se;
|
|
606
616
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
607
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
617
|
+
return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : se(t, r);
|
|
608
618
|
}
|
|
609
|
-
|
|
619
|
+
Z.all = function(t, r) {
|
|
610
620
|
if (!Array.isArray(t))
|
|
611
621
|
throw new Error("first argument should be an array");
|
|
612
622
|
return t.reduce(function(n, i) {
|
|
613
|
-
return
|
|
623
|
+
return Z(n, i, r);
|
|
614
624
|
}, {});
|
|
615
625
|
};
|
|
616
|
-
var
|
|
617
|
-
const
|
|
618
|
-
|
|
619
|
-
|
|
626
|
+
var jr = Z, kr = jr;
|
|
627
|
+
const Vr = /* @__PURE__ */ wr(kr);
|
|
628
|
+
/*! *****************************************************************************
|
|
629
|
+
Copyright (c) Microsoft Corporation.
|
|
630
|
+
|
|
631
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
632
|
+
purpose with or without fee is hereby granted.
|
|
633
|
+
|
|
634
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
635
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
636
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
637
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
638
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
639
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
640
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
641
|
+
***************************************************************************** */
|
|
642
|
+
var Me = function(e, t) {
|
|
643
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
620
644
|
r.__proto__ = n;
|
|
621
645
|
} || function(r, n) {
|
|
622
|
-
for (var i in n)
|
|
623
|
-
|
|
646
|
+
for (var i in n)
|
|
647
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
648
|
+
}, Me(e, t);
|
|
624
649
|
};
|
|
625
|
-
function
|
|
650
|
+
function xe(e, t) {
|
|
626
651
|
if (typeof t != "function" && t !== null)
|
|
627
652
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
628
|
-
|
|
653
|
+
Me(e, t);
|
|
629
654
|
function r() {
|
|
630
655
|
this.constructor = e;
|
|
631
656
|
}
|
|
@@ -635,56 +660,59 @@ var x = function() {
|
|
|
635
660
|
return x = Object.assign || function(t) {
|
|
636
661
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
637
662
|
r = arguments[n];
|
|
638
|
-
for (var s in r)
|
|
663
|
+
for (var s in r)
|
|
664
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
639
665
|
}
|
|
640
666
|
return t;
|
|
641
667
|
}, x.apply(this, arguments);
|
|
642
668
|
};
|
|
643
|
-
function
|
|
669
|
+
function Xr(e, t) {
|
|
644
670
|
var r = {};
|
|
645
|
-
for (var n in e)
|
|
671
|
+
for (var n in e)
|
|
672
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
646
673
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
647
674
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
648
675
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
649
676
|
return r;
|
|
650
677
|
}
|
|
651
|
-
function
|
|
652
|
-
if (
|
|
653
|
-
(
|
|
654
|
-
|
|
678
|
+
function Ae(e, t, r) {
|
|
679
|
+
if (arguments.length === 2)
|
|
680
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
681
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
682
|
+
return e.concat(s || t);
|
|
655
683
|
}
|
|
656
|
-
function
|
|
657
|
-
var r = t && t.cache ? t.cache :
|
|
684
|
+
function Be(e, t) {
|
|
685
|
+
var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Wr;
|
|
658
686
|
return i(e, {
|
|
659
687
|
cache: r,
|
|
660
688
|
serializer: n
|
|
661
689
|
});
|
|
662
690
|
}
|
|
663
|
-
function
|
|
691
|
+
function zr(e) {
|
|
664
692
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
665
693
|
}
|
|
666
|
-
function
|
|
667
|
-
var i =
|
|
694
|
+
function wt(e, t, r, n) {
|
|
695
|
+
var i = zr(n) ? n : r(n), s = t.get(i);
|
|
668
696
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
669
697
|
}
|
|
670
|
-
function
|
|
698
|
+
function Ot(e, t, r) {
|
|
671
699
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
672
700
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
673
701
|
}
|
|
674
702
|
function Xe(e, t, r, n, i) {
|
|
675
703
|
return r.bind(t, e, n, i);
|
|
676
704
|
}
|
|
677
|
-
function zr(e, t) {
|
|
678
|
-
var r = e.length === 1 ? Ot : Pt;
|
|
679
|
-
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
680
|
-
}
|
|
681
705
|
function Wr(e, t) {
|
|
682
|
-
|
|
706
|
+
var r = e.length === 1 ? wt : Ot;
|
|
707
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
683
708
|
}
|
|
684
709
|
function Zr(e, t) {
|
|
685
710
|
return Xe(e, this, Ot, t.cache.create(), t.serializer);
|
|
686
711
|
}
|
|
687
|
-
|
|
712
|
+
function Qr(e, t) {
|
|
713
|
+
return Xe(e, this, wt, t.cache.create(), t.serializer);
|
|
714
|
+
}
|
|
715
|
+
var qr = function() {
|
|
688
716
|
return JSON.stringify(arguments);
|
|
689
717
|
};
|
|
690
718
|
function ze() {
|
|
@@ -696,62 +724,62 @@ ze.prototype.get = function(e) {
|
|
|
696
724
|
ze.prototype.set = function(e, t) {
|
|
697
725
|
this.cache[e] = t;
|
|
698
726
|
};
|
|
699
|
-
var
|
|
727
|
+
var Jr = {
|
|
700
728
|
create: function() {
|
|
701
729
|
return new ze();
|
|
702
730
|
}
|
|
703
731
|
}, Se = {
|
|
704
|
-
variadic:
|
|
705
|
-
monadic:
|
|
732
|
+
variadic: Zr,
|
|
733
|
+
monadic: Qr
|
|
706
734
|
}, y;
|
|
707
735
|
(function(e) {
|
|
708
736
|
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";
|
|
709
737
|
})(y || (y = {}));
|
|
710
|
-
var
|
|
738
|
+
var T;
|
|
711
739
|
(function(e) {
|
|
712
740
|
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";
|
|
713
|
-
})(
|
|
714
|
-
var
|
|
741
|
+
})(T || (T = {}));
|
|
742
|
+
var Q;
|
|
715
743
|
(function(e) {
|
|
716
744
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
717
|
-
})(
|
|
745
|
+
})(Q || (Q = {}));
|
|
718
746
|
function st(e) {
|
|
719
|
-
return e.type ===
|
|
747
|
+
return e.type === T.literal;
|
|
720
748
|
}
|
|
721
|
-
function
|
|
722
|
-
return e.type ===
|
|
749
|
+
function Yr(e) {
|
|
750
|
+
return e.type === T.argument;
|
|
723
751
|
}
|
|
724
|
-
function
|
|
725
|
-
return e.type ===
|
|
752
|
+
function Pt(e) {
|
|
753
|
+
return e.type === T.number;
|
|
726
754
|
}
|
|
727
755
|
function Nt(e) {
|
|
728
|
-
return e.type ===
|
|
756
|
+
return e.type === T.date;
|
|
729
757
|
}
|
|
730
758
|
function Lt(e) {
|
|
731
|
-
return e.type ===
|
|
759
|
+
return e.type === T.time;
|
|
732
760
|
}
|
|
733
761
|
function It(e) {
|
|
734
|
-
return e.type ===
|
|
762
|
+
return e.type === T.select;
|
|
735
763
|
}
|
|
736
764
|
function Mt(e) {
|
|
737
|
-
return e.type ===
|
|
765
|
+
return e.type === T.plural;
|
|
738
766
|
}
|
|
739
|
-
function
|
|
740
|
-
return e.type ===
|
|
767
|
+
function Kr(e) {
|
|
768
|
+
return e.type === T.pound;
|
|
741
769
|
}
|
|
742
770
|
function $t(e) {
|
|
743
|
-
return e.type ===
|
|
771
|
+
return e.type === T.tag;
|
|
744
772
|
}
|
|
745
773
|
function Rt(e) {
|
|
746
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
774
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
747
775
|
}
|
|
748
|
-
function
|
|
749
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
776
|
+
function $e(e) {
|
|
777
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
750
778
|
}
|
|
751
|
-
var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
752
|
-
function
|
|
779
|
+
var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, en = /(?:[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;
|
|
780
|
+
function tn(e) {
|
|
753
781
|
var t = {};
|
|
754
|
-
return e.replace(
|
|
782
|
+
return e.replace(en, function(r) {
|
|
755
783
|
var n = r.length;
|
|
756
784
|
switch (r[0]) {
|
|
757
785
|
case "G":
|
|
@@ -840,32 +868,32 @@ function en(e) {
|
|
|
840
868
|
return "";
|
|
841
869
|
}), t;
|
|
842
870
|
}
|
|
843
|
-
var
|
|
844
|
-
function
|
|
871
|
+
var rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
872
|
+
function nn(e) {
|
|
845
873
|
if (e.length === 0)
|
|
846
874
|
throw new Error("Number skeleton cannot be empty");
|
|
847
|
-
for (var t = e.split(
|
|
848
|
-
return
|
|
875
|
+
for (var t = e.split(rn).filter(function(c) {
|
|
876
|
+
return c.length > 0;
|
|
849
877
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
850
878
|
var s = i[n], o = s.split("/");
|
|
851
879
|
if (o.length === 0)
|
|
852
880
|
throw new Error("Invalid number skeleton");
|
|
853
881
|
for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
|
|
854
|
-
var
|
|
855
|
-
if (
|
|
882
|
+
var f = l[a];
|
|
883
|
+
if (f.length === 0)
|
|
856
884
|
throw new Error("Invalid number skeleton");
|
|
857
885
|
}
|
|
858
886
|
r.push({ stem: u, options: h });
|
|
859
887
|
}
|
|
860
888
|
return r;
|
|
861
889
|
}
|
|
862
|
-
function
|
|
890
|
+
function sn(e) {
|
|
863
891
|
return e.replace(/^(.*?)-/, "");
|
|
864
892
|
}
|
|
865
|
-
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
893
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
|
|
866
894
|
function at(e) {
|
|
867
895
|
var t = {};
|
|
868
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
896
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
|
|
869
897
|
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)), "";
|
|
870
898
|
}), t;
|
|
871
899
|
}
|
|
@@ -909,7 +937,7 @@ function Ft(e) {
|
|
|
909
937
|
};
|
|
910
938
|
}
|
|
911
939
|
}
|
|
912
|
-
function
|
|
940
|
+
function an(e) {
|
|
913
941
|
var t;
|
|
914
942
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
915
943
|
notation: "engineering"
|
|
@@ -917,7 +945,7 @@ function on(e) {
|
|
|
917
945
|
notation: "scientific"
|
|
918
946
|
}, e = e.slice(1)), t) {
|
|
919
947
|
var r = e.slice(0, 2);
|
|
920
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
948
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
|
|
921
949
|
throw new Error("Malformed concise eng/scientific notation");
|
|
922
950
|
t.minimumIntegerDigits = e.length;
|
|
923
951
|
}
|
|
@@ -927,7 +955,7 @@ function ut(e) {
|
|
|
927
955
|
var t = {}, r = Ft(e);
|
|
928
956
|
return r || t;
|
|
929
957
|
}
|
|
930
|
-
function
|
|
958
|
+
function un(e) {
|
|
931
959
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
932
960
|
var i = n[r];
|
|
933
961
|
switch (i.stem) {
|
|
@@ -951,7 +979,7 @@ function an(e) {
|
|
|
951
979
|
continue;
|
|
952
980
|
case "measure-unit":
|
|
953
981
|
case "unit":
|
|
954
|
-
t.style = "unit", t.unit =
|
|
982
|
+
t.style = "unit", t.unit = sn(i.options[0]);
|
|
955
983
|
continue;
|
|
956
984
|
case "compact-short":
|
|
957
985
|
case "K":
|
|
@@ -1013,40 +1041,40 @@ function an(e) {
|
|
|
1013
1041
|
case "integer-width":
|
|
1014
1042
|
if (i.options.length > 1)
|
|
1015
1043
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1016
|
-
i.options[0].replace(
|
|
1044
|
+
i.options[0].replace(on, function(h, a, l, f, c, p) {
|
|
1017
1045
|
if (a)
|
|
1018
1046
|
t.minimumIntegerDigits = l.length;
|
|
1019
1047
|
else {
|
|
1020
|
-
if (
|
|
1048
|
+
if (f && c)
|
|
1021
1049
|
throw new Error("We currently do not support maximum integer digits");
|
|
1022
|
-
if (
|
|
1050
|
+
if (p)
|
|
1023
1051
|
throw new Error("We currently do not support exact integer digits");
|
|
1024
1052
|
}
|
|
1025
1053
|
return "";
|
|
1026
1054
|
});
|
|
1027
1055
|
continue;
|
|
1028
1056
|
}
|
|
1029
|
-
if (
|
|
1057
|
+
if (Gt.test(i.stem)) {
|
|
1030
1058
|
t.minimumIntegerDigits = i.stem.length;
|
|
1031
1059
|
continue;
|
|
1032
1060
|
}
|
|
1033
1061
|
if (ot.test(i.stem)) {
|
|
1034
1062
|
if (i.options.length > 1)
|
|
1035
1063
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1036
|
-
i.stem.replace(ot, function(h, a, l,
|
|
1037
|
-
return l === "*" ? t.minimumFractionDigits = a.length :
|
|
1064
|
+
i.stem.replace(ot, function(h, a, l, f, c, p) {
|
|
1065
|
+
return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1038
1066
|
});
|
|
1039
1067
|
var s = i.options[0];
|
|
1040
1068
|
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), at(s)));
|
|
1041
1069
|
continue;
|
|
1042
1070
|
}
|
|
1043
|
-
if (
|
|
1071
|
+
if (Dt.test(i.stem)) {
|
|
1044
1072
|
t = x(x({}, t), at(i.stem));
|
|
1045
1073
|
continue;
|
|
1046
1074
|
}
|
|
1047
1075
|
var o = Ft(i.stem);
|
|
1048
1076
|
o && (t = x(x({}, t), o));
|
|
1049
|
-
var u =
|
|
1077
|
+
var u = an(i.stem);
|
|
1050
1078
|
u && (t = x(x({}, t), u));
|
|
1051
1079
|
}
|
|
1052
1080
|
return t;
|
|
@@ -2466,22 +2494,23 @@ var fe = {
|
|
|
2466
2494
|
"h"
|
|
2467
2495
|
]
|
|
2468
2496
|
};
|
|
2469
|
-
function
|
|
2497
|
+
function hn(e, t) {
|
|
2470
2498
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2471
2499
|
var i = e.charAt(n);
|
|
2472
2500
|
if (i === "j") {
|
|
2473
2501
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2474
2502
|
s++, n++;
|
|
2475
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a =
|
|
2503
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = ln(t);
|
|
2476
2504
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2477
2505
|
r += h;
|
|
2478
2506
|
for (; o-- > 0; )
|
|
2479
2507
|
r = a + r;
|
|
2480
|
-
} else
|
|
2508
|
+
} else
|
|
2509
|
+
i === "J" ? r += "H" : r += i;
|
|
2481
2510
|
}
|
|
2482
2511
|
return r;
|
|
2483
2512
|
}
|
|
2484
|
-
function
|
|
2513
|
+
function ln(e) {
|
|
2485
2514
|
var t = e.hourCycle;
|
|
2486
2515
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2487
2516
|
e.hourCycles && // @ts-ignore
|
|
@@ -2503,20 +2532,20 @@ function hn(e) {
|
|
|
2503
2532
|
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2504
2533
|
return i[0];
|
|
2505
2534
|
}
|
|
2506
|
-
var
|
|
2535
|
+
var we, cn = new RegExp("^".concat(Ut.source, "*")), fn = new RegExp("".concat(Ut.source, "*$"));
|
|
2507
2536
|
function _(e, t) {
|
|
2508
2537
|
return { start: e, end: t };
|
|
2509
2538
|
}
|
|
2510
|
-
var
|
|
2539
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, pn = !!Object.fromEntries, dn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, yn = !!String.prototype.trimEnd, _n = !!Number.isSafeInteger, xn = _n ? Number.isSafeInteger : function(e) {
|
|
2511
2540
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2512
|
-
},
|
|
2541
|
+
}, Re = !0;
|
|
2513
2542
|
try {
|
|
2514
|
-
var
|
|
2515
|
-
|
|
2543
|
+
var En = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2544
|
+
Re = ((we = En.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2516
2545
|
} catch (e) {
|
|
2517
|
-
|
|
2546
|
+
Re = !1;
|
|
2518
2547
|
}
|
|
2519
|
-
var ht =
|
|
2548
|
+
var ht = gn ? (
|
|
2520
2549
|
// Native
|
|
2521
2550
|
function(t, r, n) {
|
|
2522
2551
|
return t.startsWith(r, n);
|
|
@@ -2526,7 +2555,7 @@ var ht = cn ? (
|
|
|
2526
2555
|
function(t, r, n) {
|
|
2527
2556
|
return t.slice(n, n + r.length) === r;
|
|
2528
2557
|
}
|
|
2529
|
-
),
|
|
2558
|
+
), Ue = mn ? String.fromCodePoint : (
|
|
2530
2559
|
// IE11
|
|
2531
2560
|
function() {
|
|
2532
2561
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2540,7 +2569,7 @@ var ht = cn ? (
|
|
|
2540
2569
|
}
|
|
2541
2570
|
), lt = (
|
|
2542
2571
|
// native
|
|
2543
|
-
|
|
2572
|
+
pn ? Object.fromEntries : (
|
|
2544
2573
|
// Ponyfill
|
|
2545
2574
|
function(t) {
|
|
2546
2575
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2550,7 +2579,7 @@ var ht = cn ? (
|
|
|
2550
2579
|
return r;
|
|
2551
2580
|
}
|
|
2552
2581
|
)
|
|
2553
|
-
), jt =
|
|
2582
|
+
), jt = dn ? (
|
|
2554
2583
|
// Native
|
|
2555
2584
|
function(t, r) {
|
|
2556
2585
|
return t.codePointAt(r);
|
|
@@ -2564,7 +2593,7 @@ var ht = cn ? (
|
|
|
2564
2593
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2565
2594
|
}
|
|
2566
2595
|
}
|
|
2567
|
-
),
|
|
2596
|
+
), vn = bn ? (
|
|
2568
2597
|
// Native
|
|
2569
2598
|
function(t) {
|
|
2570
2599
|
return t.trimStart();
|
|
@@ -2572,9 +2601,9 @@ var ht = cn ? (
|
|
|
2572
2601
|
) : (
|
|
2573
2602
|
// Ponyfill
|
|
2574
2603
|
function(t) {
|
|
2575
|
-
return t.replace(
|
|
2604
|
+
return t.replace(cn, "");
|
|
2576
2605
|
}
|
|
2577
|
-
),
|
|
2606
|
+
), Tn = yn ? (
|
|
2578
2607
|
// Native
|
|
2579
2608
|
function(t) {
|
|
2580
2609
|
return t.trimEnd();
|
|
@@ -2588,24 +2617,24 @@ var ht = cn ? (
|
|
|
2588
2617
|
function kt(e, t) {
|
|
2589
2618
|
return new RegExp(e, t);
|
|
2590
2619
|
}
|
|
2591
|
-
var
|
|
2592
|
-
if (
|
|
2593
|
-
var
|
|
2594
|
-
|
|
2620
|
+
var De;
|
|
2621
|
+
if (Re) {
|
|
2622
|
+
var ct = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2623
|
+
De = function(t, r) {
|
|
2595
2624
|
var n;
|
|
2596
|
-
|
|
2597
|
-
var i =
|
|
2625
|
+
ct.lastIndex = r;
|
|
2626
|
+
var i = ct.exec(t);
|
|
2598
2627
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2599
2628
|
};
|
|
2600
2629
|
} else
|
|
2601
|
-
|
|
2630
|
+
De = function(t, r) {
|
|
2602
2631
|
for (var n = []; ; ) {
|
|
2603
2632
|
var i = jt(t, r);
|
|
2604
|
-
if (i === void 0 || Vt(i) ||
|
|
2633
|
+
if (i === void 0 || Vt(i) || Bn(i))
|
|
2605
2634
|
break;
|
|
2606
2635
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2607
2636
|
}
|
|
2608
|
-
return
|
|
2637
|
+
return Ue.apply(void 0, n);
|
|
2609
2638
|
};
|
|
2610
2639
|
var Cn = (
|
|
2611
2640
|
/** @class */
|
|
@@ -2631,7 +2660,7 @@ var Cn = (
|
|
|
2631
2660
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2632
2661
|
var u = this.clonePosition();
|
|
2633
2662
|
this.bump(), i.push({
|
|
2634
|
-
type:
|
|
2663
|
+
type: T.pound,
|
|
2635
2664
|
location: _(u, this.clonePosition())
|
|
2636
2665
|
});
|
|
2637
2666
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -2659,7 +2688,7 @@ var Cn = (
|
|
|
2659
2688
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2660
2689
|
return {
|
|
2661
2690
|
val: {
|
|
2662
|
-
type:
|
|
2691
|
+
type: T.literal,
|
|
2663
2692
|
value: "<".concat(i, "/>"),
|
|
2664
2693
|
location: _(n, this.clonePosition())
|
|
2665
2694
|
},
|
|
@@ -2676,7 +2705,7 @@ var Cn = (
|
|
|
2676
2705
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2677
2706
|
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2678
2707
|
val: {
|
|
2679
|
-
type:
|
|
2708
|
+
type: T.tag,
|
|
2680
2709
|
value: i,
|
|
2681
2710
|
children: o,
|
|
2682
2711
|
location: _(n, this.clonePosition())
|
|
@@ -2689,7 +2718,7 @@ var Cn = (
|
|
|
2689
2718
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2690
2719
|
}, e.prototype.parseTagName = function() {
|
|
2691
2720
|
var t = this.offset();
|
|
2692
|
-
for (this.bump(); !this.isEOF() &&
|
|
2721
|
+
for (this.bump(); !this.isEOF() && An(this.char()); )
|
|
2693
2722
|
this.bump();
|
|
2694
2723
|
return this.message.slice(t, this.offset());
|
|
2695
2724
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2713,12 +2742,12 @@ var Cn = (
|
|
|
2713
2742
|
}
|
|
2714
2743
|
var h = _(n, this.clonePosition());
|
|
2715
2744
|
return {
|
|
2716
|
-
val: { type:
|
|
2745
|
+
val: { type: T.literal, value: i, location: h },
|
|
2717
2746
|
err: null
|
|
2718
2747
|
};
|
|
2719
2748
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2720
2749
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2721
|
-
!
|
|
2750
|
+
!Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2722
2751
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2723
2752
|
if (this.isEOF() || this.char() !== 39)
|
|
2724
2753
|
return null;
|
|
@@ -2752,12 +2781,12 @@ var Cn = (
|
|
|
2752
2781
|
r.push(n);
|
|
2753
2782
|
this.bump();
|
|
2754
2783
|
}
|
|
2755
|
-
return
|
|
2784
|
+
return Ue.apply(void 0, r);
|
|
2756
2785
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2757
2786
|
if (this.isEOF())
|
|
2758
2787
|
return null;
|
|
2759
2788
|
var n = this.char();
|
|
2760
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2789
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2761
2790
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2762
2791
|
var n = this.clonePosition();
|
|
2763
2792
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2773,7 +2802,7 @@ var Cn = (
|
|
|
2773
2802
|
case 125:
|
|
2774
2803
|
return this.bump(), {
|
|
2775
2804
|
val: {
|
|
2776
|
-
type:
|
|
2805
|
+
type: T.argument,
|
|
2777
2806
|
// value does not include the opening and closing braces.
|
|
2778
2807
|
value: i,
|
|
2779
2808
|
location: _(n, this.clonePosition())
|
|
@@ -2786,7 +2815,7 @@ var Cn = (
|
|
|
2786
2815
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2787
2816
|
}
|
|
2788
2817
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2789
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2818
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2790
2819
|
this.bumpTo(i);
|
|
2791
2820
|
var s = this.clonePosition(), o = _(t, s);
|
|
2792
2821
|
return { value: n, location: o };
|
|
@@ -2802,47 +2831,47 @@ var Cn = (
|
|
|
2802
2831
|
var a = null;
|
|
2803
2832
|
if (this.bumpIf(",")) {
|
|
2804
2833
|
this.bumpSpace();
|
|
2805
|
-
var l = this.clonePosition(),
|
|
2806
|
-
if (
|
|
2807
|
-
return
|
|
2808
|
-
var
|
|
2809
|
-
if (
|
|
2834
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2835
|
+
if (f.err)
|
|
2836
|
+
return f;
|
|
2837
|
+
var c = Tn(f.val);
|
|
2838
|
+
if (c.length === 0)
|
|
2810
2839
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2811
|
-
var
|
|
2812
|
-
a = { style:
|
|
2840
|
+
var p = _(l, this.clonePosition());
|
|
2841
|
+
a = { style: c, styleLocation: p };
|
|
2813
2842
|
}
|
|
2814
|
-
var
|
|
2815
|
-
if (
|
|
2816
|
-
return
|
|
2843
|
+
var d = this.tryParseArgumentClose(i);
|
|
2844
|
+
if (d.err)
|
|
2845
|
+
return d;
|
|
2817
2846
|
var g = _(i, this.clonePosition());
|
|
2818
2847
|
if (a && ht(a == null ? void 0 : a.style, "::", 0)) {
|
|
2819
|
-
var E =
|
|
2848
|
+
var E = vn(a.style.slice(2));
|
|
2820
2849
|
if (u === "number") {
|
|
2821
|
-
var
|
|
2822
|
-
return
|
|
2823
|
-
val: { type:
|
|
2850
|
+
var f = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2851
|
+
return f.err ? f : {
|
|
2852
|
+
val: { type: T.number, value: n, location: g, style: f.val },
|
|
2824
2853
|
err: null
|
|
2825
2854
|
};
|
|
2826
2855
|
} else {
|
|
2827
2856
|
if (E.length === 0)
|
|
2828
2857
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2829
2858
|
var m = E;
|
|
2830
|
-
this.locale && (m =
|
|
2831
|
-
var
|
|
2832
|
-
type:
|
|
2859
|
+
this.locale && (m = hn(E, this.locale));
|
|
2860
|
+
var c = {
|
|
2861
|
+
type: Q.dateTime,
|
|
2833
2862
|
pattern: m,
|
|
2834
2863
|
location: a.styleLocation,
|
|
2835
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2836
|
-
},
|
|
2864
|
+
parsedOptions: this.shouldParseSkeletons ? tn(m) : {}
|
|
2865
|
+
}, C = u === "date" ? T.date : T.time;
|
|
2837
2866
|
return {
|
|
2838
|
-
val: { type:
|
|
2867
|
+
val: { type: C, value: n, location: g, style: c },
|
|
2839
2868
|
err: null
|
|
2840
2869
|
};
|
|
2841
2870
|
}
|
|
2842
2871
|
}
|
|
2843
2872
|
return {
|
|
2844
2873
|
val: {
|
|
2845
|
-
type: u === "number" ?
|
|
2874
|
+
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2846
2875
|
value: n,
|
|
2847
2876
|
location: g,
|
|
2848
2877
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
@@ -2853,43 +2882,43 @@ var Cn = (
|
|
|
2853
2882
|
case "plural":
|
|
2854
2883
|
case "selectordinal":
|
|
2855
2884
|
case "select": {
|
|
2856
|
-
var
|
|
2885
|
+
var B = this.clonePosition();
|
|
2857
2886
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2858
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2887
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B, x({}, B)));
|
|
2859
2888
|
this.bumpSpace();
|
|
2860
|
-
var
|
|
2861
|
-
if (u !== "select" &&
|
|
2889
|
+
var P = this.parseIdentifierIfPossible(), S = 0;
|
|
2890
|
+
if (u !== "select" && P.value === "offset") {
|
|
2862
2891
|
if (!this.bumpIf(":"))
|
|
2863
2892
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2864
2893
|
this.bumpSpace();
|
|
2865
|
-
var
|
|
2866
|
-
if (
|
|
2867
|
-
return
|
|
2868
|
-
this.bumpSpace(),
|
|
2894
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2895
|
+
if (f.err)
|
|
2896
|
+
return f;
|
|
2897
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), S = f.val;
|
|
2869
2898
|
}
|
|
2870
|
-
var
|
|
2871
|
-
if (
|
|
2872
|
-
return
|
|
2873
|
-
var
|
|
2874
|
-
if (
|
|
2875
|
-
return
|
|
2876
|
-
var
|
|
2899
|
+
var A = this.tryParsePluralOrSelectOptions(t, u, r, P);
|
|
2900
|
+
if (A.err)
|
|
2901
|
+
return A;
|
|
2902
|
+
var d = this.tryParseArgumentClose(i);
|
|
2903
|
+
if (d.err)
|
|
2904
|
+
return d;
|
|
2905
|
+
var N = _(i, this.clonePosition());
|
|
2877
2906
|
return u === "select" ? {
|
|
2878
2907
|
val: {
|
|
2879
|
-
type:
|
|
2908
|
+
type: T.select,
|
|
2880
2909
|
value: n,
|
|
2881
|
-
options: lt(
|
|
2882
|
-
location:
|
|
2910
|
+
options: lt(A.val),
|
|
2911
|
+
location: N
|
|
2883
2912
|
},
|
|
2884
2913
|
err: null
|
|
2885
2914
|
} : {
|
|
2886
2915
|
val: {
|
|
2887
|
-
type:
|
|
2916
|
+
type: T.plural,
|
|
2888
2917
|
value: n,
|
|
2889
|
-
options: lt(
|
|
2890
|
-
offset:
|
|
2918
|
+
options: lt(A.val),
|
|
2919
|
+
offset: S,
|
|
2891
2920
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2892
|
-
location:
|
|
2921
|
+
location: N
|
|
2893
2922
|
},
|
|
2894
2923
|
err: null
|
|
2895
2924
|
};
|
|
@@ -2937,48 +2966,48 @@ var Cn = (
|
|
|
2937
2966
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2938
2967
|
var n = [];
|
|
2939
2968
|
try {
|
|
2940
|
-
n =
|
|
2969
|
+
n = nn(t);
|
|
2941
2970
|
} catch (i) {
|
|
2942
2971
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2943
2972
|
}
|
|
2944
2973
|
return {
|
|
2945
2974
|
val: {
|
|
2946
|
-
type:
|
|
2975
|
+
type: Q.number,
|
|
2947
2976
|
tokens: n,
|
|
2948
2977
|
location: r,
|
|
2949
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2978
|
+
parsedOptions: this.shouldParseSkeletons ? un(n) : {}
|
|
2950
2979
|
},
|
|
2951
2980
|
err: null
|
|
2952
2981
|
};
|
|
2953
2982
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2954
2983
|
for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
|
|
2955
2984
|
if (a.length === 0) {
|
|
2956
|
-
var
|
|
2985
|
+
var f = this.clonePosition();
|
|
2957
2986
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2958
|
-
var
|
|
2959
|
-
if (
|
|
2960
|
-
return
|
|
2961
|
-
l = _(
|
|
2987
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2988
|
+
if (c.err)
|
|
2989
|
+
return c;
|
|
2990
|
+
l = _(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
2962
2991
|
} else
|
|
2963
2992
|
break;
|
|
2964
2993
|
}
|
|
2965
2994
|
if (h.has(a))
|
|
2966
2995
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2967
2996
|
a === "other" && (o = !0), this.bumpSpace();
|
|
2968
|
-
var
|
|
2997
|
+
var p = this.clonePosition();
|
|
2969
2998
|
if (!this.bumpIf("{"))
|
|
2970
2999
|
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
2971
|
-
var
|
|
2972
|
-
if (
|
|
2973
|
-
return
|
|
2974
|
-
var g = this.tryParseArgumentClose(
|
|
3000
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3001
|
+
if (d.err)
|
|
3002
|
+
return d;
|
|
3003
|
+
var g = this.tryParseArgumentClose(p);
|
|
2975
3004
|
if (g.err)
|
|
2976
3005
|
return g;
|
|
2977
3006
|
u.push([
|
|
2978
3007
|
a,
|
|
2979
3008
|
{
|
|
2980
|
-
value:
|
|
2981
|
-
location: _(
|
|
3009
|
+
value: d.val,
|
|
3010
|
+
location: _(p, this.clonePosition())
|
|
2982
3011
|
}
|
|
2983
3012
|
]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
2984
3013
|
}
|
|
@@ -2994,7 +3023,7 @@ var Cn = (
|
|
|
2994
3023
|
break;
|
|
2995
3024
|
}
|
|
2996
3025
|
var h = _(i, this.clonePosition());
|
|
2997
|
-
return s ? (o *= n,
|
|
3026
|
+
return s ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2998
3027
|
}, e.prototype.offset = function() {
|
|
2999
3028
|
return this.position.offset;
|
|
3000
3029
|
}, e.prototype.isEOF = function() {
|
|
@@ -3063,24 +3092,25 @@ var Cn = (
|
|
|
3063
3092
|
function Ge(e) {
|
|
3064
3093
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3065
3094
|
}
|
|
3066
|
-
function
|
|
3095
|
+
function Hn(e) {
|
|
3067
3096
|
return Ge(e) || e === 47;
|
|
3068
3097
|
}
|
|
3069
|
-
function
|
|
3098
|
+
function An(e) {
|
|
3070
3099
|
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;
|
|
3071
3100
|
}
|
|
3072
3101
|
function Vt(e) {
|
|
3073
3102
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3074
3103
|
}
|
|
3075
|
-
function
|
|
3104
|
+
function Bn(e) {
|
|
3076
3105
|
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;
|
|
3077
3106
|
}
|
|
3078
|
-
function
|
|
3107
|
+
function Fe(e) {
|
|
3079
3108
|
e.forEach(function(t) {
|
|
3080
3109
|
if (delete t.location, It(t) || Mt(t))
|
|
3081
3110
|
for (var r in t.options)
|
|
3082
|
-
delete t.options[r].location,
|
|
3083
|
-
else
|
|
3111
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3112
|
+
else
|
|
3113
|
+
Pt(t) && Rt(t.style) || (Nt(t) || Lt(t)) && $e(t.style) ? delete t.style.location : $t(t) && Fe(t.children);
|
|
3084
3114
|
});
|
|
3085
3115
|
}
|
|
3086
3116
|
function Sn(e, t) {
|
|
@@ -3090,16 +3120,16 @@ function Sn(e, t) {
|
|
|
3090
3120
|
var n = SyntaxError(y[r.err.kind]);
|
|
3091
3121
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3092
3122
|
}
|
|
3093
|
-
return t != null && t.captureLocation ||
|
|
3123
|
+
return t != null && t.captureLocation || Fe(r.val), r.val;
|
|
3094
3124
|
}
|
|
3095
|
-
var
|
|
3125
|
+
var q;
|
|
3096
3126
|
(function(e) {
|
|
3097
3127
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3098
|
-
})(
|
|
3099
|
-
var
|
|
3128
|
+
})(q || (q = {}));
|
|
3129
|
+
var Ee = (
|
|
3100
3130
|
/** @class */
|
|
3101
3131
|
function(e) {
|
|
3102
|
-
|
|
3132
|
+
xe(t, e);
|
|
3103
3133
|
function t(r, n, i) {
|
|
3104
3134
|
var s = e.call(this, r) || this;
|
|
3105
3135
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3108,51 +3138,51 @@ var xe = (
|
|
|
3108
3138
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3109
3139
|
}, t;
|
|
3110
3140
|
}(Error)
|
|
3111
|
-
),
|
|
3141
|
+
), ft = (
|
|
3112
3142
|
/** @class */
|
|
3113
3143
|
function(e) {
|
|
3114
|
-
|
|
3144
|
+
xe(t, e);
|
|
3115
3145
|
function t(r, n, i, s) {
|
|
3116
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3146
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3117
3147
|
}
|
|
3118
3148
|
return t;
|
|
3119
|
-
}(
|
|
3120
|
-
),
|
|
3149
|
+
}(Ee)
|
|
3150
|
+
), wn = (
|
|
3121
3151
|
/** @class */
|
|
3122
3152
|
function(e) {
|
|
3123
|
-
|
|
3153
|
+
xe(t, e);
|
|
3124
3154
|
function t(r, n, i) {
|
|
3125
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3155
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3126
3156
|
}
|
|
3127
3157
|
return t;
|
|
3128
|
-
}(
|
|
3158
|
+
}(Ee)
|
|
3129
3159
|
), On = (
|
|
3130
3160
|
/** @class */
|
|
3131
3161
|
function(e) {
|
|
3132
|
-
|
|
3162
|
+
xe(t, e);
|
|
3133
3163
|
function t(r, n) {
|
|
3134
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3164
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3135
3165
|
}
|
|
3136
3166
|
return t;
|
|
3137
|
-
}(
|
|
3138
|
-
),
|
|
3167
|
+
}(Ee)
|
|
3168
|
+
), O;
|
|
3139
3169
|
(function(e) {
|
|
3140
3170
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3141
|
-
})(
|
|
3171
|
+
})(O || (O = {}));
|
|
3142
3172
|
function Pn(e) {
|
|
3143
3173
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3144
3174
|
var n = t[t.length - 1];
|
|
3145
|
-
return !n || n.type !==
|
|
3175
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3146
3176
|
}, []);
|
|
3147
3177
|
}
|
|
3148
|
-
function
|
|
3178
|
+
function Nn(e) {
|
|
3149
3179
|
return typeof e == "function";
|
|
3150
3180
|
}
|
|
3151
|
-
function
|
|
3181
|
+
function me(e, t, r, n, i, s, o) {
|
|
3152
3182
|
if (e.length === 1 && st(e[0]))
|
|
3153
3183
|
return [
|
|
3154
3184
|
{
|
|
3155
|
-
type:
|
|
3185
|
+
type: O.literal,
|
|
3156
3186
|
value: e[0].value
|
|
3157
3187
|
}
|
|
3158
3188
|
];
|
|
@@ -3160,100 +3190,100 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3160
3190
|
var l = a[h];
|
|
3161
3191
|
if (st(l)) {
|
|
3162
3192
|
u.push({
|
|
3163
|
-
type:
|
|
3193
|
+
type: O.literal,
|
|
3164
3194
|
value: l.value
|
|
3165
3195
|
});
|
|
3166
3196
|
continue;
|
|
3167
3197
|
}
|
|
3168
|
-
if (
|
|
3198
|
+
if (Kr(l)) {
|
|
3169
3199
|
typeof s == "number" && u.push({
|
|
3170
|
-
type:
|
|
3200
|
+
type: O.literal,
|
|
3171
3201
|
value: r.getNumberFormat(t).format(s)
|
|
3172
3202
|
});
|
|
3173
3203
|
continue;
|
|
3174
3204
|
}
|
|
3175
|
-
var
|
|
3176
|
-
if (!(i &&
|
|
3177
|
-
throw new On(
|
|
3178
|
-
var
|
|
3179
|
-
if (
|
|
3180
|
-
(!
|
|
3181
|
-
type: typeof
|
|
3182
|
-
value:
|
|
3205
|
+
var f = l.value;
|
|
3206
|
+
if (!(i && f in i))
|
|
3207
|
+
throw new On(f, o);
|
|
3208
|
+
var c = i[f];
|
|
3209
|
+
if (Yr(l)) {
|
|
3210
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
|
|
3211
|
+
type: typeof c == "string" ? O.literal : O.object,
|
|
3212
|
+
value: c
|
|
3183
3213
|
});
|
|
3184
3214
|
continue;
|
|
3185
3215
|
}
|
|
3186
3216
|
if (Nt(l)) {
|
|
3187
|
-
var
|
|
3217
|
+
var p = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
|
|
3188
3218
|
u.push({
|
|
3189
|
-
type:
|
|
3190
|
-
value: r.getDateTimeFormat(t,
|
|
3219
|
+
type: O.literal,
|
|
3220
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3191
3221
|
});
|
|
3192
3222
|
continue;
|
|
3193
3223
|
}
|
|
3194
3224
|
if (Lt(l)) {
|
|
3195
|
-
var
|
|
3225
|
+
var p = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3196
3226
|
u.push({
|
|
3197
|
-
type:
|
|
3198
|
-
value: r.getDateTimeFormat(t,
|
|
3227
|
+
type: O.literal,
|
|
3228
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3199
3229
|
});
|
|
3200
3230
|
continue;
|
|
3201
3231
|
}
|
|
3202
|
-
if (
|
|
3203
|
-
var
|
|
3204
|
-
|
|
3205
|
-
type:
|
|
3206
|
-
value: r.getNumberFormat(t,
|
|
3232
|
+
if (Pt(l)) {
|
|
3233
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Rt(l.style) ? l.style.parsedOptions : void 0;
|
|
3234
|
+
p && p.scale && (c = c * (p.scale || 1)), u.push({
|
|
3235
|
+
type: O.literal,
|
|
3236
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3207
3237
|
});
|
|
3208
3238
|
continue;
|
|
3209
3239
|
}
|
|
3210
3240
|
if ($t(l)) {
|
|
3211
|
-
var
|
|
3212
|
-
if (!
|
|
3213
|
-
throw new
|
|
3214
|
-
var m =
|
|
3215
|
-
return
|
|
3241
|
+
var d = l.children, g = l.value, E = i[g];
|
|
3242
|
+
if (!Nn(E))
|
|
3243
|
+
throw new wn(g, "function", o);
|
|
3244
|
+
var m = me(d, t, r, n, i, s), C = E(m.map(function(S) {
|
|
3245
|
+
return S.value;
|
|
3216
3246
|
}));
|
|
3217
|
-
Array.isArray(
|
|
3247
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(S) {
|
|
3218
3248
|
return {
|
|
3219
|
-
type: typeof
|
|
3220
|
-
value:
|
|
3249
|
+
type: typeof S == "string" ? O.literal : O.object,
|
|
3250
|
+
value: S
|
|
3221
3251
|
};
|
|
3222
3252
|
}));
|
|
3223
3253
|
}
|
|
3224
3254
|
if (It(l)) {
|
|
3225
|
-
var
|
|
3226
|
-
if (!
|
|
3227
|
-
throw new
|
|
3228
|
-
u.push.apply(u,
|
|
3255
|
+
var B = l.options[c] || l.options.other;
|
|
3256
|
+
if (!B)
|
|
3257
|
+
throw new ft(l.value, c, Object.keys(l.options), o);
|
|
3258
|
+
u.push.apply(u, me(B.value, t, r, n, i));
|
|
3229
3259
|
continue;
|
|
3230
3260
|
}
|
|
3231
3261
|
if (Mt(l)) {
|
|
3232
|
-
var
|
|
3233
|
-
if (!
|
|
3262
|
+
var B = l.options["=".concat(c)];
|
|
3263
|
+
if (!B) {
|
|
3234
3264
|
if (!Intl.PluralRules)
|
|
3235
|
-
throw new
|
|
3265
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3236
3266
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3237
|
-
`,
|
|
3238
|
-
var
|
|
3239
|
-
|
|
3267
|
+
`, q.MISSING_INTL_API, o);
|
|
3268
|
+
var P = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3269
|
+
B = l.options[P] || l.options.other;
|
|
3240
3270
|
}
|
|
3241
|
-
if (!
|
|
3242
|
-
throw new
|
|
3243
|
-
u.push.apply(u,
|
|
3271
|
+
if (!B)
|
|
3272
|
+
throw new ft(l.value, c, Object.keys(l.options), o);
|
|
3273
|
+
u.push.apply(u, me(B.value, t, r, n, i, c - (l.offset || 0)));
|
|
3244
3274
|
continue;
|
|
3245
3275
|
}
|
|
3246
3276
|
}
|
|
3247
3277
|
return Pn(u);
|
|
3248
3278
|
}
|
|
3249
|
-
function
|
|
3279
|
+
function Ln(e, t) {
|
|
3250
3280
|
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3251
3281
|
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3252
3282
|
}, {})) : e;
|
|
3253
3283
|
}
|
|
3254
|
-
function
|
|
3284
|
+
function In(e, t) {
|
|
3255
3285
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3256
|
-
return r[n] =
|
|
3286
|
+
return r[n] = Ln(e[n], t[n]), r;
|
|
3257
3287
|
}, x({}, e)) : e;
|
|
3258
3288
|
}
|
|
3259
3289
|
function Oe(e) {
|
|
@@ -3270,39 +3300,39 @@ function Oe(e) {
|
|
|
3270
3300
|
}
|
|
3271
3301
|
};
|
|
3272
3302
|
}
|
|
3273
|
-
function
|
|
3303
|
+
function Mn(e) {
|
|
3274
3304
|
return e === void 0 && (e = {
|
|
3275
3305
|
number: {},
|
|
3276
3306
|
dateTime: {},
|
|
3277
3307
|
pluralRules: {}
|
|
3278
3308
|
}), {
|
|
3279
|
-
getNumberFormat:
|
|
3309
|
+
getNumberFormat: Be(function() {
|
|
3280
3310
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3281
3311
|
r[n] = arguments[n];
|
|
3282
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3312
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3283
3313
|
}, {
|
|
3284
3314
|
cache: Oe(e.number),
|
|
3285
3315
|
strategy: Se.variadic
|
|
3286
3316
|
}),
|
|
3287
|
-
getDateTimeFormat:
|
|
3317
|
+
getDateTimeFormat: Be(function() {
|
|
3288
3318
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3289
3319
|
r[n] = arguments[n];
|
|
3290
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3320
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3291
3321
|
}, {
|
|
3292
3322
|
cache: Oe(e.dateTime),
|
|
3293
3323
|
strategy: Se.variadic
|
|
3294
3324
|
}),
|
|
3295
|
-
getPluralRules:
|
|
3325
|
+
getPluralRules: Be(function() {
|
|
3296
3326
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3297
3327
|
r[n] = arguments[n];
|
|
3298
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3328
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3299
3329
|
}, {
|
|
3300
3330
|
cache: Oe(e.pluralRules),
|
|
3301
3331
|
strategy: Se.variadic
|
|
3302
3332
|
})
|
|
3303
3333
|
};
|
|
3304
3334
|
}
|
|
3305
|
-
var
|
|
3335
|
+
var $n = (
|
|
3306
3336
|
/** @class */
|
|
3307
3337
|
function() {
|
|
3308
3338
|
function e(t, r, n, i) {
|
|
@@ -3316,12 +3346,12 @@ var Mn = (
|
|
|
3316
3346
|
var a = s.formatToParts(h);
|
|
3317
3347
|
if (a.length === 1)
|
|
3318
3348
|
return a[0].value;
|
|
3319
|
-
var l = a.reduce(function(
|
|
3320
|
-
return !
|
|
3349
|
+
var l = a.reduce(function(f, c) {
|
|
3350
|
+
return !f.length || c.type !== O.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3321
3351
|
}, []);
|
|
3322
3352
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3323
3353
|
}, this.formatToParts = function(h) {
|
|
3324
|
-
return
|
|
3354
|
+
return me(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3325
3355
|
}, this.resolvedOptions = function() {
|
|
3326
3356
|
var h;
|
|
3327
3357
|
return {
|
|
@@ -3334,13 +3364,13 @@ var Mn = (
|
|
|
3334
3364
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3335
3365
|
var o = i || {};
|
|
3336
3366
|
o.formatters;
|
|
3337
|
-
var u =
|
|
3367
|
+
var u = Xr(o, ["formatters"]);
|
|
3338
3368
|
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3339
3369
|
} else
|
|
3340
3370
|
this.ast = t;
|
|
3341
3371
|
if (!Array.isArray(this.ast))
|
|
3342
3372
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3343
|
-
this.formats =
|
|
3373
|
+
this.formats = In(e.formats, n), this.formatters = i && i.formatters || Mn(this.formatterCache);
|
|
3344
3374
|
}
|
|
3345
3375
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3346
3376
|
get: function() {
|
|
@@ -3414,7 +3444,7 @@ var Mn = (
|
|
|
3414
3444
|
}, e;
|
|
3415
3445
|
}()
|
|
3416
3446
|
);
|
|
3417
|
-
function
|
|
3447
|
+
function Rn(e, t) {
|
|
3418
3448
|
if (t == null)
|
|
3419
3449
|
return;
|
|
3420
3450
|
if (t in e)
|
|
@@ -3435,21 +3465,21 @@ function $n(e, t) {
|
|
|
3435
3465
|
n = void 0;
|
|
3436
3466
|
return n;
|
|
3437
3467
|
}
|
|
3438
|
-
const D = {},
|
|
3468
|
+
const D = {}, Un = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Xt = (e, t) => {
|
|
3439
3469
|
if (t == null)
|
|
3440
3470
|
return;
|
|
3441
3471
|
if (t in D && e in D[t])
|
|
3442
3472
|
return D[t][e];
|
|
3443
|
-
const r =
|
|
3473
|
+
const r = ve(t);
|
|
3444
3474
|
for (let n = 0; n < r.length; n++) {
|
|
3445
3475
|
const i = r[n], s = Gn(i, e);
|
|
3446
3476
|
if (s)
|
|
3447
|
-
return
|
|
3477
|
+
return Un(e, t, s);
|
|
3448
3478
|
}
|
|
3449
3479
|
};
|
|
3450
3480
|
let We;
|
|
3451
|
-
const ue =
|
|
3452
|
-
function
|
|
3481
|
+
const ue = _e({});
|
|
3482
|
+
function Dn(e) {
|
|
3453
3483
|
return We[e] || null;
|
|
3454
3484
|
}
|
|
3455
3485
|
function zt(e) {
|
|
@@ -3458,13 +3488,13 @@ function zt(e) {
|
|
|
3458
3488
|
function Gn(e, t) {
|
|
3459
3489
|
if (!zt(e))
|
|
3460
3490
|
return null;
|
|
3461
|
-
const r =
|
|
3462
|
-
return
|
|
3491
|
+
const r = Dn(e);
|
|
3492
|
+
return Rn(r, t);
|
|
3463
3493
|
}
|
|
3464
|
-
function
|
|
3494
|
+
function Fn(e) {
|
|
3465
3495
|
if (e == null)
|
|
3466
3496
|
return;
|
|
3467
|
-
const t =
|
|
3497
|
+
const t = ve(e);
|
|
3468
3498
|
for (let r = 0; r < t.length; r++) {
|
|
3469
3499
|
const n = t[r];
|
|
3470
3500
|
if (zt(n))
|
|
@@ -3472,55 +3502,55 @@ function Dn(e) {
|
|
|
3472
3502
|
}
|
|
3473
3503
|
}
|
|
3474
3504
|
function Wt(e, ...t) {
|
|
3475
|
-
delete D[e], ue.update((r) => (r[e] =
|
|
3505
|
+
delete D[e], ue.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
|
|
3476
3506
|
}
|
|
3477
|
-
|
|
3507
|
+
K(
|
|
3478
3508
|
[ue],
|
|
3479
3509
|
([e]) => Object.keys(e)
|
|
3480
3510
|
);
|
|
3481
3511
|
ue.subscribe((e) => We = e);
|
|
3482
|
-
const
|
|
3483
|
-
function
|
|
3484
|
-
|
|
3512
|
+
const pe = {};
|
|
3513
|
+
function jn(e, t) {
|
|
3514
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3485
3515
|
}
|
|
3486
3516
|
function Zt(e) {
|
|
3487
|
-
return
|
|
3517
|
+
return pe[e];
|
|
3488
3518
|
}
|
|
3489
|
-
function
|
|
3490
|
-
return
|
|
3519
|
+
function kn(e) {
|
|
3520
|
+
return ve(e).map((t) => {
|
|
3491
3521
|
const r = Zt(t);
|
|
3492
3522
|
return [t, r ? [...r] : []];
|
|
3493
3523
|
}).filter(([, t]) => t.length > 0);
|
|
3494
3524
|
}
|
|
3495
|
-
function
|
|
3496
|
-
return e == null ? !1 :
|
|
3525
|
+
function je(e) {
|
|
3526
|
+
return e == null ? !1 : ve(e).some(
|
|
3497
3527
|
(t) => {
|
|
3498
3528
|
var r;
|
|
3499
3529
|
return (r = Zt(t)) == null ? void 0 : r.size;
|
|
3500
3530
|
}
|
|
3501
3531
|
);
|
|
3502
3532
|
}
|
|
3503
|
-
function
|
|
3533
|
+
function Vn(e, t) {
|
|
3504
3534
|
return Promise.all(
|
|
3505
|
-
t.map((n) => (
|
|
3535
|
+
t.map((n) => (jn(e, n), n().then((i) => i.default || i)))
|
|
3506
3536
|
).then((n) => Wt(e, ...n));
|
|
3507
3537
|
}
|
|
3508
|
-
const
|
|
3538
|
+
const re = {};
|
|
3509
3539
|
function Qt(e) {
|
|
3510
|
-
if (!
|
|
3511
|
-
return e in
|
|
3512
|
-
const t =
|
|
3513
|
-
return
|
|
3540
|
+
if (!je(e))
|
|
3541
|
+
return e in re ? re[e] : Promise.resolve();
|
|
3542
|
+
const t = kn(e);
|
|
3543
|
+
return re[e] = Promise.all(
|
|
3514
3544
|
t.map(
|
|
3515
|
-
([r, n]) =>
|
|
3545
|
+
([r, n]) => Vn(r, n)
|
|
3516
3546
|
)
|
|
3517
3547
|
).then(() => {
|
|
3518
|
-
if (
|
|
3548
|
+
if (je(e))
|
|
3519
3549
|
return Qt(e);
|
|
3520
|
-
delete
|
|
3521
|
-
}),
|
|
3550
|
+
delete re[e];
|
|
3551
|
+
}), re[e];
|
|
3522
3552
|
}
|
|
3523
|
-
const
|
|
3553
|
+
const Xn = {
|
|
3524
3554
|
number: {
|
|
3525
3555
|
scientific: { notation: "scientific" },
|
|
3526
3556
|
engineering: { notation: "engineering" },
|
|
@@ -3549,141 +3579,141 @@ const Vn = {
|
|
|
3549
3579
|
timeZoneName: "short"
|
|
3550
3580
|
}
|
|
3551
3581
|
}
|
|
3552
|
-
},
|
|
3582
|
+
}, zn = {
|
|
3553
3583
|
fallbackLocale: null,
|
|
3554
3584
|
loadingDelay: 200,
|
|
3555
|
-
formats:
|
|
3585
|
+
formats: Xn,
|
|
3556
3586
|
warnOnMissingMessages: !0,
|
|
3557
3587
|
handleMissingMessage: void 0,
|
|
3558
3588
|
ignoreTag: !0
|
|
3559
|
-
},
|
|
3560
|
-
function
|
|
3561
|
-
return
|
|
3589
|
+
}, Wn = zn;
|
|
3590
|
+
function J() {
|
|
3591
|
+
return Wn;
|
|
3562
3592
|
}
|
|
3563
|
-
const Pe =
|
|
3564
|
-
var
|
|
3593
|
+
const Pe = _e(!1);
|
|
3594
|
+
var Zn = Object.defineProperty, Qn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kn = (e, t) => {
|
|
3565
3595
|
for (var r in t || (t = {}))
|
|
3566
|
-
|
|
3596
|
+
Jn.call(t, r) && mt(e, r, t[r]);
|
|
3567
3597
|
if (gt)
|
|
3568
3598
|
for (var r of gt(t))
|
|
3569
|
-
|
|
3599
|
+
Yn.call(t, r) && mt(e, r, t[r]);
|
|
3570
3600
|
return e;
|
|
3571
|
-
},
|
|
3572
|
-
let
|
|
3573
|
-
const
|
|
3601
|
+
}, ei = (e, t) => Qn(e, qn(t));
|
|
3602
|
+
let ke;
|
|
3603
|
+
const be = _e(null);
|
|
3574
3604
|
function pt(e) {
|
|
3575
3605
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3576
3606
|
}
|
|
3577
|
-
function
|
|
3607
|
+
function ve(e, t = J().fallbackLocale) {
|
|
3578
3608
|
const r = pt(e);
|
|
3579
3609
|
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3580
3610
|
}
|
|
3581
|
-
function
|
|
3582
|
-
return
|
|
3611
|
+
function k() {
|
|
3612
|
+
return ke != null ? ke : void 0;
|
|
3583
3613
|
}
|
|
3584
|
-
|
|
3585
|
-
|
|
3614
|
+
be.subscribe((e) => {
|
|
3615
|
+
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3586
3616
|
});
|
|
3587
|
-
const
|
|
3588
|
-
if (e &&
|
|
3589
|
-
const { loadingDelay: t } =
|
|
3617
|
+
const ti = (e) => {
|
|
3618
|
+
if (e && Fn(e) && je(e)) {
|
|
3619
|
+
const { loadingDelay: t } = J();
|
|
3590
3620
|
let r;
|
|
3591
|
-
return typeof window != "undefined" &&
|
|
3621
|
+
return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
|
|
3592
3622
|
() => Pe.set(!0),
|
|
3593
3623
|
t
|
|
3594
3624
|
) : Pe.set(!0), Qt(e).then(() => {
|
|
3595
|
-
|
|
3625
|
+
be.set(e);
|
|
3596
3626
|
}).finally(() => {
|
|
3597
3627
|
clearTimeout(r), Pe.set(!1);
|
|
3598
3628
|
});
|
|
3599
3629
|
}
|
|
3600
|
-
return
|
|
3601
|
-
},
|
|
3602
|
-
set:
|
|
3603
|
-
}),
|
|
3630
|
+
return be.set(e);
|
|
3631
|
+
}, ee = ei(Kn({}, be), {
|
|
3632
|
+
set: ti
|
|
3633
|
+
}), Te = (e) => {
|
|
3604
3634
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3605
3635
|
return (n) => {
|
|
3606
3636
|
const i = JSON.stringify(n);
|
|
3607
3637
|
return i in t ? t[i] : t[i] = e(n);
|
|
3608
3638
|
};
|
|
3609
3639
|
};
|
|
3610
|
-
var
|
|
3640
|
+
var ri = Object.defineProperty, ye = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3611
3641
|
for (var r in t || (t = {}))
|
|
3612
3642
|
qt.call(t, r) && dt(e, r, t[r]);
|
|
3613
|
-
if (
|
|
3614
|
-
for (var r of
|
|
3643
|
+
if (ye)
|
|
3644
|
+
for (var r of ye(t))
|
|
3615
3645
|
Jt.call(t, r) && dt(e, r, t[r]);
|
|
3616
3646
|
return e;
|
|
3617
|
-
},
|
|
3647
|
+
}, te = (e, t) => {
|
|
3618
3648
|
var r = {};
|
|
3619
3649
|
for (var n in e)
|
|
3620
3650
|
qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3621
|
-
if (e != null &&
|
|
3622
|
-
for (var n of
|
|
3651
|
+
if (e != null && ye)
|
|
3652
|
+
for (var n of ye(e))
|
|
3623
3653
|
t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
|
|
3624
3654
|
return r;
|
|
3625
3655
|
};
|
|
3626
3656
|
const oe = (e, t) => {
|
|
3627
|
-
const { formats: r } =
|
|
3657
|
+
const { formats: r } = J();
|
|
3628
3658
|
if (e in r && t in r[e])
|
|
3629
3659
|
return r[e][t];
|
|
3630
3660
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3631
|
-
},
|
|
3661
|
+
}, ni = Te(
|
|
3632
3662
|
(e) => {
|
|
3633
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3663
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3634
3664
|
if (r == null)
|
|
3635
3665
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3636
3666
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3637
3667
|
}
|
|
3638
|
-
),
|
|
3668
|
+
), ii = Te(
|
|
3639
3669
|
(e) => {
|
|
3640
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3670
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3641
3671
|
if (r == null)
|
|
3642
3672
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3643
3673
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3644
3674
|
}
|
|
3645
|
-
),
|
|
3675
|
+
), si = Te(
|
|
3646
3676
|
(e) => {
|
|
3647
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3677
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3648
3678
|
if (r == null)
|
|
3649
3679
|
throw new Error(
|
|
3650
3680
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3651
3681
|
);
|
|
3652
3682
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3653
3683
|
}
|
|
3654
|
-
),
|
|
3684
|
+
), oi = (e = {}) => {
|
|
3655
3685
|
var t = e, {
|
|
3656
|
-
locale: r =
|
|
3657
|
-
} = t, n =
|
|
3658
|
-
"locale"
|
|
3659
|
-
]);
|
|
3660
|
-
return ri(Ze({ locale: r }, n));
|
|
3661
|
-
}, oi = (e = {}) => {
|
|
3662
|
-
var t = e, {
|
|
3663
|
-
locale: r = V()
|
|
3664
|
-
} = t, n = re(t, [
|
|
3686
|
+
locale: r = k()
|
|
3687
|
+
} = t, n = te(t, [
|
|
3665
3688
|
"locale"
|
|
3666
3689
|
]);
|
|
3667
3690
|
return ni(Ze({ locale: r }, n));
|
|
3668
3691
|
}, ai = (e = {}) => {
|
|
3669
3692
|
var t = e, {
|
|
3670
|
-
locale: r =
|
|
3671
|
-
} = t, n =
|
|
3693
|
+
locale: r = k()
|
|
3694
|
+
} = t, n = te(t, [
|
|
3672
3695
|
"locale"
|
|
3673
3696
|
]);
|
|
3674
3697
|
return ii(Ze({ locale: r }, n));
|
|
3675
|
-
}, ui =
|
|
3698
|
+
}, ui = (e = {}) => {
|
|
3699
|
+
var t = e, {
|
|
3700
|
+
locale: r = k()
|
|
3701
|
+
} = t, n = te(t, [
|
|
3702
|
+
"locale"
|
|
3703
|
+
]);
|
|
3704
|
+
return si(Ze({ locale: r }, n));
|
|
3705
|
+
}, hi = Te(
|
|
3676
3706
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3677
|
-
(e, t =
|
|
3678
|
-
ignoreTag:
|
|
3707
|
+
(e, t = k()) => new $n(e, t, J().formats, {
|
|
3708
|
+
ignoreTag: J().ignoreTag
|
|
3679
3709
|
})
|
|
3680
|
-
),
|
|
3710
|
+
), li = (e, t = {}) => {
|
|
3681
3711
|
var r, n, i, s;
|
|
3682
3712
|
let o = t;
|
|
3683
3713
|
typeof e == "object" && (o = e, e = o.id);
|
|
3684
3714
|
const {
|
|
3685
3715
|
values: u,
|
|
3686
|
-
locale: h =
|
|
3716
|
+
locale: h = k(),
|
|
3687
3717
|
default: a
|
|
3688
3718
|
} = o;
|
|
3689
3719
|
if (h == null)
|
|
@@ -3692,33 +3722,56 @@ const oe = (e, t) => {
|
|
|
3692
3722
|
);
|
|
3693
3723
|
let l = Xt(e, h);
|
|
3694
3724
|
if (!l)
|
|
3695
|
-
l = (s = (i = (n = (r =
|
|
3725
|
+
l = (s = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3696
3726
|
else if (typeof l != "string")
|
|
3697
3727
|
return console.warn(
|
|
3698
3728
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3699
3729
|
), l;
|
|
3700
3730
|
if (!u)
|
|
3701
3731
|
return l;
|
|
3702
|
-
let
|
|
3732
|
+
let f = l;
|
|
3703
3733
|
try {
|
|
3704
|
-
|
|
3705
|
-
} catch (
|
|
3706
|
-
|
|
3734
|
+
f = hi(l, h).format(u);
|
|
3735
|
+
} catch (c) {
|
|
3736
|
+
c instanceof Error && console.warn(
|
|
3707
3737
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3708
|
-
|
|
3738
|
+
c.message
|
|
3709
3739
|
);
|
|
3710
3740
|
}
|
|
3711
|
-
return
|
|
3712
|
-
},
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3741
|
+
return f;
|
|
3742
|
+
}, ci = (e, t) => ui(t).format(e), fi = (e, t) => ai(t).format(e), gi = (e, t) => oi(t).format(e), mi = (e, t = k()) => Xt(e, t), pi = K([ee, ue], () => li);
|
|
3743
|
+
K([ee], () => ci);
|
|
3744
|
+
K([ee], () => fi);
|
|
3745
|
+
K([ee], () => gi);
|
|
3746
|
+
K([ee, ue], () => mi);
|
|
3747
|
+
function di(e, t) {
|
|
3748
|
+
if (e) {
|
|
3749
|
+
const r = document.createElement("style");
|
|
3750
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3751
|
+
}
|
|
3752
|
+
}
|
|
3753
|
+
function bi(e, t) {
|
|
3754
|
+
const r = new URL(t);
|
|
3755
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3756
|
+
const i = document.createElement("style");
|
|
3757
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3758
|
+
}).catch((n) => {
|
|
3759
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3760
|
+
});
|
|
3761
|
+
}
|
|
3762
|
+
function yi(e, t, r) {
|
|
3763
|
+
if (window.emMessageBus) {
|
|
3764
|
+
const n = document.createElement("style");
|
|
3765
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
3766
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3767
|
+
});
|
|
3768
|
+
}
|
|
3769
|
+
}
|
|
3717
3770
|
function bt(e, t) {
|
|
3718
3771
|
Wt(e, t);
|
|
3719
3772
|
}
|
|
3720
|
-
function
|
|
3721
|
-
|
|
3773
|
+
function _i(e) {
|
|
3774
|
+
ee.set(e);
|
|
3722
3775
|
}
|
|
3723
3776
|
const yt = {
|
|
3724
3777
|
en: {
|
|
@@ -3830,334 +3883,322 @@ const yt = {
|
|
|
3830
3883
|
games: "games"
|
|
3831
3884
|
}
|
|
3832
3885
|
};
|
|
3833
|
-
function
|
|
3834
|
-
|
|
3886
|
+
function xi(e) {
|
|
3887
|
+
ur(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}");
|
|
3835
3888
|
}
|
|
3836
3889
|
function _t(e, t, r) {
|
|
3837
3890
|
const n = e.slice();
|
|
3838
|
-
return n[
|
|
3891
|
+
return n[23] = t[r], n;
|
|
3839
3892
|
}
|
|
3840
3893
|
function xt(e, t, r) {
|
|
3841
3894
|
const n = e.slice();
|
|
3842
|
-
return n[
|
|
3895
|
+
return n[23] = t[r], n;
|
|
3843
3896
|
}
|
|
3844
|
-
function
|
|
3897
|
+
function Ei(e) {
|
|
3845
3898
|
let t, r, n = (
|
|
3846
3899
|
/*$_*/
|
|
3847
3900
|
e[5]("topCategories") + ""
|
|
3848
3901
|
), i, s, o, u, h = (
|
|
3849
3902
|
/*$_*/
|
|
3850
3903
|
e[5]("otherCategories") + ""
|
|
3851
|
-
), a, l,
|
|
3904
|
+
), a, l, f = ce(
|
|
3852
3905
|
/*topCategories*/
|
|
3853
3906
|
e[3]
|
|
3854
|
-
),
|
|
3855
|
-
for (let g = 0; g <
|
|
3856
|
-
|
|
3857
|
-
let
|
|
3907
|
+
), c = [];
|
|
3908
|
+
for (let g = 0; g < f.length; g += 1)
|
|
3909
|
+
c[g] = Et(xt(e, f, g));
|
|
3910
|
+
let p = ce(
|
|
3858
3911
|
/*otherCategories*/
|
|
3859
3912
|
e[4]
|
|
3860
|
-
),
|
|
3861
|
-
for (let g = 0; g <
|
|
3862
|
-
|
|
3913
|
+
), d = [];
|
|
3914
|
+
for (let g = 0; g < p.length; g += 1)
|
|
3915
|
+
d[g] = vt(_t(e, p, g));
|
|
3863
3916
|
return {
|
|
3864
3917
|
c() {
|
|
3865
|
-
t =
|
|
3866
|
-
for (let g = 0; g <
|
|
3867
|
-
|
|
3868
|
-
o = R(), u =
|
|
3869
|
-
for (let g = 0; g <
|
|
3870
|
-
|
|
3918
|
+
t = w("div"), r = w("h4"), i = U(n), s = R();
|
|
3919
|
+
for (let g = 0; g < c.length; g += 1)
|
|
3920
|
+
c[g].c();
|
|
3921
|
+
o = R(), u = w("h4"), a = U(h), l = R();
|
|
3922
|
+
for (let g = 0; g < d.length; g += 1)
|
|
3923
|
+
d[g].c();
|
|
3871
3924
|
H(r, "class", "CategoryTitle"), H(u, "class", "CategoryTitle"), H(t, "class", "CasinoCategories");
|
|
3872
3925
|
},
|
|
3873
3926
|
m(g, E) {
|
|
3874
|
-
|
|
3875
|
-
for (let m = 0; m <
|
|
3876
|
-
|
|
3927
|
+
Y(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
3928
|
+
for (let m = 0; m < c.length; m += 1)
|
|
3929
|
+
c[m] && c[m].m(t, null);
|
|
3877
3930
|
v(t, o), v(t, u), v(u, a), v(t, l);
|
|
3878
|
-
for (let m = 0; m <
|
|
3879
|
-
|
|
3931
|
+
for (let m = 0; m < d.length; m += 1)
|
|
3932
|
+
d[m] && d[m].m(t, null);
|
|
3880
3933
|
},
|
|
3881
3934
|
p(g, E) {
|
|
3882
3935
|
if (E & /*$_*/
|
|
3883
3936
|
32 && n !== (n = /*$_*/
|
|
3884
|
-
g[5]("topCategories") + "") &&
|
|
3937
|
+
g[5]("topCategories") + "") && G(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3885
3938
|
105) {
|
|
3886
|
-
|
|
3939
|
+
f = ce(
|
|
3887
3940
|
/*topCategories*/
|
|
3888
3941
|
g[3]
|
|
3889
3942
|
);
|
|
3890
3943
|
let m;
|
|
3891
|
-
for (m = 0; m <
|
|
3892
|
-
const
|
|
3893
|
-
|
|
3944
|
+
for (m = 0; m < f.length; m += 1) {
|
|
3945
|
+
const C = xt(g, f, m);
|
|
3946
|
+
c[m] ? c[m].p(C, E) : (c[m] = Et(C), c[m].c(), c[m].m(t, o));
|
|
3894
3947
|
}
|
|
3895
|
-
for (; m <
|
|
3896
|
-
|
|
3897
|
-
|
|
3948
|
+
for (; m < c.length; m += 1)
|
|
3949
|
+
c[m].d(1);
|
|
3950
|
+
c.length = f.length;
|
|
3898
3951
|
}
|
|
3899
3952
|
if (E & /*$_*/
|
|
3900
3953
|
32 && h !== (h = /*$_*/
|
|
3901
|
-
g[5]("otherCategories") + "") &&
|
|
3954
|
+
g[5]("otherCategories") + "") && G(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3902
3955
|
113) {
|
|
3903
|
-
|
|
3956
|
+
p = ce(
|
|
3904
3957
|
/*otherCategories*/
|
|
3905
3958
|
g[4]
|
|
3906
3959
|
);
|
|
3907
3960
|
let m;
|
|
3908
|
-
for (m = 0; m <
|
|
3909
|
-
const
|
|
3910
|
-
|
|
3961
|
+
for (m = 0; m < p.length; m += 1) {
|
|
3962
|
+
const C = _t(g, p, m);
|
|
3963
|
+
d[m] ? d[m].p(C, E) : (d[m] = vt(C), d[m].c(), d[m].m(t, null));
|
|
3911
3964
|
}
|
|
3912
|
-
for (; m <
|
|
3913
|
-
|
|
3914
|
-
|
|
3965
|
+
for (; m < d.length; m += 1)
|
|
3966
|
+
d[m].d(1);
|
|
3967
|
+
d.length = p.length;
|
|
3915
3968
|
}
|
|
3916
3969
|
},
|
|
3917
3970
|
d(g) {
|
|
3918
|
-
g &&
|
|
3971
|
+
g && j(t), rt(c, g), rt(d, g);
|
|
3919
3972
|
}
|
|
3920
3973
|
};
|
|
3921
3974
|
}
|
|
3922
|
-
function
|
|
3975
|
+
function vi(e) {
|
|
3923
3976
|
let t;
|
|
3924
3977
|
return {
|
|
3925
3978
|
c() {
|
|
3926
|
-
t =
|
|
3979
|
+
t = w("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
|
|
3927
3980
|
},
|
|
3928
3981
|
m(r, n) {
|
|
3929
|
-
|
|
3982
|
+
Y(r, t, n);
|
|
3930
3983
|
},
|
|
3931
|
-
p:
|
|
3984
|
+
p: I,
|
|
3932
3985
|
d(r) {
|
|
3933
|
-
r &&
|
|
3986
|
+
r && j(t);
|
|
3934
3987
|
}
|
|
3935
3988
|
};
|
|
3936
3989
|
}
|
|
3937
3990
|
function Et(e) {
|
|
3938
3991
|
let t, r, n, i, s, o, u, h = (
|
|
3939
3992
|
/*category*/
|
|
3940
|
-
e[
|
|
3941
|
-
), a, l,
|
|
3993
|
+
e[23].name + ""
|
|
3994
|
+
), a, l, f, c = (
|
|
3942
3995
|
/*category*/
|
|
3943
|
-
e[
|
|
3944
|
-
),
|
|
3996
|
+
e[23].games.count + ""
|
|
3997
|
+
), p, d, g = (
|
|
3945
3998
|
/*$_*/
|
|
3946
3999
|
e[5]("games") + ""
|
|
3947
|
-
), E, m,
|
|
3948
|
-
function
|
|
4000
|
+
), E, m, C, B;
|
|
4001
|
+
function P() {
|
|
3949
4002
|
return (
|
|
3950
4003
|
/*click_handler*/
|
|
3951
|
-
e[
|
|
4004
|
+
e[15](
|
|
3952
4005
|
/*category*/
|
|
3953
|
-
e[
|
|
4006
|
+
e[23]
|
|
3954
4007
|
)
|
|
3955
4008
|
);
|
|
3956
4009
|
}
|
|
3957
4010
|
return {
|
|
3958
4011
|
c() {
|
|
3959
|
-
t =
|
|
3960
|
-
e[
|
|
3961
|
-
e[
|
|
4012
|
+
t = w("div"), r = w("img"), s = R(), o = w("div"), u = w("p"), a = U(h), l = R(), f = w("p"), p = U(c), d = R(), E = U(g), de(r.src, n = /*category*/
|
|
4013
|
+
e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
|
|
4014
|
+
e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
|
|
3962
4015
|
(e[0] === /*category*/
|
|
3963
|
-
e[
|
|
4016
|
+
e[23].id ? "Active" : ""));
|
|
3964
4017
|
},
|
|
3965
|
-
m(
|
|
3966
|
-
|
|
4018
|
+
m(S, A) {
|
|
4019
|
+
Y(S, t, A), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, f), v(f, p), v(f, d), v(f, E), C || (B = At(t, "click", P), C = !0);
|
|
3967
4020
|
},
|
|
3968
|
-
p(
|
|
3969
|
-
e =
|
|
3970
|
-
8 && !
|
|
3971
|
-
e[
|
|
4021
|
+
p(S, A) {
|
|
4022
|
+
e = S, A & /*topCategories*/
|
|
4023
|
+
8 && !de(r.src, n = /*category*/
|
|
4024
|
+
e[23].icon) && H(r, "src", n), A & /*topCategories*/
|
|
3972
4025
|
8 && i !== (i = /*category*/
|
|
3973
|
-
e[
|
|
4026
|
+
e[23].name) && H(r, "alt", i), A & /*topCategories*/
|
|
3974
4027
|
8 && h !== (h = /*category*/
|
|
3975
|
-
e[
|
|
3976
|
-
8 &&
|
|
3977
|
-
e[
|
|
4028
|
+
e[23].name + "") && G(a, h), A & /*topCategories*/
|
|
4029
|
+
8 && c !== (c = /*category*/
|
|
4030
|
+
e[23].games.count + "") && G(p, c), A & /*$_*/
|
|
3978
4031
|
32 && g !== (g = /*$_*/
|
|
3979
|
-
e[5]("games") + "") &&
|
|
4032
|
+
e[5]("games") + "") && G(E, g), A & /*activecategory, topCategories*/
|
|
3980
4033
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
3981
4034
|
(e[0] === /*category*/
|
|
3982
|
-
e[
|
|
4035
|
+
e[23].id ? "Active" : "")) && H(t, "class", m);
|
|
3983
4036
|
},
|
|
3984
|
-
d(
|
|
3985
|
-
|
|
4037
|
+
d(S) {
|
|
4038
|
+
S && j(t), C = !1, B();
|
|
3986
4039
|
}
|
|
3987
4040
|
};
|
|
3988
4041
|
}
|
|
3989
4042
|
function vt(e) {
|
|
3990
4043
|
let t, r, n, i, s, o, u, h = (
|
|
3991
4044
|
/*category*/
|
|
3992
|
-
e[
|
|
3993
|
-
), a, l,
|
|
4045
|
+
e[23].name + ""
|
|
4046
|
+
), a, l, f, c = (
|
|
3994
4047
|
/*category*/
|
|
3995
|
-
e[
|
|
3996
|
-
),
|
|
4048
|
+
e[23].games.count + ""
|
|
4049
|
+
), p, d, g = (
|
|
3997
4050
|
/*$_*/
|
|
3998
4051
|
e[5]("games") + ""
|
|
3999
|
-
), E, m,
|
|
4000
|
-
function
|
|
4052
|
+
), E, m, C, B, P;
|
|
4053
|
+
function S() {
|
|
4001
4054
|
return (
|
|
4002
4055
|
/*click_handler_1*/
|
|
4003
|
-
e[
|
|
4056
|
+
e[16](
|
|
4004
4057
|
/*category*/
|
|
4005
|
-
e[
|
|
4058
|
+
e[23]
|
|
4006
4059
|
)
|
|
4007
4060
|
);
|
|
4008
4061
|
}
|
|
4009
4062
|
return {
|
|
4010
4063
|
c() {
|
|
4011
|
-
t =
|
|
4012
|
-
e[
|
|
4013
|
-
e[
|
|
4064
|
+
t = w("div"), r = w("img"), s = R(), o = w("div"), u = w("p"), a = U(h), l = R(), f = w("p"), p = U(c), d = R(), E = U(g), m = R(), de(r.src, n = /*category*/
|
|
4065
|
+
e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
|
|
4066
|
+
e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", C = "Category " + /*activecategory*/
|
|
4014
4067
|
(e[0] === /*category*/
|
|
4015
|
-
e[
|
|
4068
|
+
e[23].id ? "Active" : ""));
|
|
4016
4069
|
},
|
|
4017
|
-
m(
|
|
4018
|
-
|
|
4070
|
+
m(A, N) {
|
|
4071
|
+
Y(A, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, f), v(f, p), v(f, d), v(f, E), v(t, m), B || (P = At(t, "click", S), B = !0);
|
|
4019
4072
|
},
|
|
4020
|
-
p(
|
|
4021
|
-
e =
|
|
4022
|
-
16 && !
|
|
4023
|
-
e[
|
|
4073
|
+
p(A, N) {
|
|
4074
|
+
e = A, N & /*otherCategories*/
|
|
4075
|
+
16 && !de(r.src, n = /*category*/
|
|
4076
|
+
e[23].icon) && H(r, "src", n), N & /*otherCategories*/
|
|
4024
4077
|
16 && i !== (i = /*category*/
|
|
4025
|
-
e[
|
|
4078
|
+
e[23].name) && H(r, "alt", i), N & /*otherCategories*/
|
|
4026
4079
|
16 && h !== (h = /*category*/
|
|
4027
|
-
e[
|
|
4028
|
-
16 &&
|
|
4029
|
-
e[
|
|
4080
|
+
e[23].name + "") && G(a, h), N & /*otherCategories*/
|
|
4081
|
+
16 && c !== (c = /*category*/
|
|
4082
|
+
e[23].games.count + "") && G(p, c), N & /*$_*/
|
|
4030
4083
|
32 && g !== (g = /*$_*/
|
|
4031
|
-
e[5]("games") + "") &&
|
|
4032
|
-
17 &&
|
|
4084
|
+
e[5]("games") + "") && G(E, g), N & /*activecategory, otherCategories*/
|
|
4085
|
+
17 && C !== (C = "Category " + /*activecategory*/
|
|
4033
4086
|
(e[0] === /*category*/
|
|
4034
|
-
e[
|
|
4087
|
+
e[23].id ? "Active" : "")) && H(t, "class", C);
|
|
4035
4088
|
},
|
|
4036
|
-
d(
|
|
4037
|
-
|
|
4089
|
+
d(A) {
|
|
4090
|
+
A && j(t), B = !1, P();
|
|
4038
4091
|
}
|
|
4039
4092
|
};
|
|
4040
4093
|
}
|
|
4041
|
-
function
|
|
4094
|
+
function Ti(e) {
|
|
4042
4095
|
let t;
|
|
4043
4096
|
function r(s, o) {
|
|
4044
4097
|
return (
|
|
4045
4098
|
/*isLoading*/
|
|
4046
|
-
s[2] ?
|
|
4099
|
+
s[2] ? vi : Ei
|
|
4047
4100
|
);
|
|
4048
4101
|
}
|
|
4049
4102
|
let n = r(e), i = n(e);
|
|
4050
4103
|
return {
|
|
4051
4104
|
c() {
|
|
4052
|
-
t =
|
|
4105
|
+
t = w("div"), i.c();
|
|
4053
4106
|
},
|
|
4054
4107
|
m(s, o) {
|
|
4055
|
-
|
|
4108
|
+
Y(s, t, o), i.m(t, null), e[17](t);
|
|
4056
4109
|
},
|
|
4057
4110
|
p(s, [o]) {
|
|
4058
4111
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4059
4112
|
},
|
|
4060
|
-
i:
|
|
4061
|
-
o:
|
|
4113
|
+
i: I,
|
|
4114
|
+
o: I,
|
|
4062
4115
|
d(s) {
|
|
4063
|
-
s &&
|
|
4116
|
+
s && j(t), i.d(), e[17](null);
|
|
4064
4117
|
}
|
|
4065
4118
|
};
|
|
4066
4119
|
}
|
|
4067
|
-
function
|
|
4120
|
+
function Ci(e, t, r) {
|
|
4068
4121
|
let n;
|
|
4069
|
-
|
|
4070
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4071
|
-
const
|
|
4072
|
-
let
|
|
4122
|
+
ar(e, pi, (b) => r(5, n = b));
|
|
4123
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, p, d = !1;
|
|
4124
|
+
const g = [];
|
|
4125
|
+
let E = [], m = [];
|
|
4073
4126
|
Object.keys(yt).forEach((b) => {
|
|
4074
4127
|
bt(b, yt[b]);
|
|
4075
4128
|
});
|
|
4076
|
-
const
|
|
4077
|
-
fetch(
|
|
4078
|
-
Object.keys(
|
|
4079
|
-
bt(
|
|
4129
|
+
const C = () => {
|
|
4130
|
+
fetch(f).then(($) => $.json()).then(($) => {
|
|
4131
|
+
Object.keys($).forEach((he) => {
|
|
4132
|
+
bt(he, $[he]);
|
|
4080
4133
|
});
|
|
4081
|
-
}).catch((
|
|
4082
|
-
console.log(
|
|
4134
|
+
}).catch(($) => {
|
|
4135
|
+
console.log($);
|
|
4083
4136
|
});
|
|
4084
|
-
},
|
|
4137
|
+
}, B = () => {
|
|
4085
4138
|
r(2, d = !0);
|
|
4086
4139
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4087
|
-
b.searchParams.append("language", o), fetch(b).then((
|
|
4140
|
+
b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
|
|
4088
4141
|
r(2, d = !1);
|
|
4089
|
-
const
|
|
4090
|
-
|
|
4091
|
-
const Qe =
|
|
4142
|
+
const he = h.split(",").map((F) => F.trim());
|
|
4143
|
+
g.push(...$.items);
|
|
4144
|
+
const Qe = g.filter((F) => !he.some((er) => {
|
|
4092
4145
|
var qe;
|
|
4093
|
-
return ((qe =
|
|
4146
|
+
return ((qe = F.flags) == null ? void 0 : qe.indexOf(er)) >= 0;
|
|
4094
4147
|
}));
|
|
4095
|
-
r(3,
|
|
4148
|
+
r(3, E = Qe.filter((F) => F.isTopCategory === !0)), r(4, m = Qe.filter((F) => F.isTopCategory === !1));
|
|
4096
4149
|
});
|
|
4097
|
-
},
|
|
4150
|
+
}, P = (b) => {
|
|
4098
4151
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4099
|
-
}, L = () => {
|
|
4100
|
-
pi(o);
|
|
4101
|
-
}, B = () => {
|
|
4102
|
-
let b = document.createElement("style");
|
|
4103
|
-
b.innerHTML = a, f.appendChild(b);
|
|
4104
4152
|
}, S = () => {
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
() => {
|
|
4114
|
-
},
|
|
4115
|
-
500
|
|
4116
|
-
);
|
|
4117
|
-
});
|
|
4118
|
-
}, w = (b) => A(b.id), Kt = (b) => A(b.id);
|
|
4119
|
-
function er(b) {
|
|
4120
|
-
we[b ? "unshift" : "push"](() => {
|
|
4121
|
-
f = b, r(1, f);
|
|
4153
|
+
_i(o);
|
|
4154
|
+
};
|
|
4155
|
+
mr(() => () => {
|
|
4156
|
+
});
|
|
4157
|
+
const A = (b) => P(b.id), N = (b) => P(b.id);
|
|
4158
|
+
function Kt(b) {
|
|
4159
|
+
Ne[b ? "unshift" : "push"](() => {
|
|
4160
|
+
p = b, r(1, p);
|
|
4122
4161
|
});
|
|
4123
4162
|
}
|
|
4124
4163
|
return e.$$set = (b) => {
|
|
4125
|
-
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13,
|
|
4164
|
+
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, f = b.translationurl), "mbsource" in b && r(14, c = b.mbsource);
|
|
4126
4165
|
}, e.$$.update = () => {
|
|
4127
4166
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4128
|
-
384 && i && s &&
|
|
4129
|
-
8192 &&
|
|
4130
|
-
512 && o &&
|
|
4131
|
-
2050 && a &&
|
|
4132
|
-
4098 && l &&
|
|
4167
|
+
384 && i && s && B(), e.$$.dirty & /*translationurl*/
|
|
4168
|
+
8192 && f && C(), e.$$.dirty & /*lang*/
|
|
4169
|
+
512 && o && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4170
|
+
2050 && a && p && di(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4171
|
+
4098 && l && p && bi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4172
|
+
16386 && c && p && yi(p, `${c}.Style`);
|
|
4133
4173
|
}, [
|
|
4134
4174
|
u,
|
|
4135
|
-
|
|
4175
|
+
p,
|
|
4136
4176
|
d,
|
|
4137
|
-
g,
|
|
4138
4177
|
E,
|
|
4178
|
+
m,
|
|
4139
4179
|
n,
|
|
4140
|
-
|
|
4180
|
+
P,
|
|
4141
4181
|
i,
|
|
4142
4182
|
s,
|
|
4143
4183
|
o,
|
|
4144
4184
|
h,
|
|
4145
4185
|
a,
|
|
4146
4186
|
l,
|
|
4187
|
+
f,
|
|
4147
4188
|
c,
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4189
|
+
A,
|
|
4190
|
+
N,
|
|
4191
|
+
Kt
|
|
4151
4192
|
];
|
|
4152
4193
|
}
|
|
4153
|
-
class Yt extends
|
|
4194
|
+
class Yt extends Ar {
|
|
4154
4195
|
constructor(t) {
|
|
4155
4196
|
super(), Cr(
|
|
4156
4197
|
this,
|
|
4157
4198
|
t,
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4199
|
+
Ci,
|
|
4200
|
+
Ti,
|
|
4201
|
+
Ct,
|
|
4161
4202
|
{
|
|
4162
4203
|
endpoint: 7,
|
|
4163
4204
|
datasource: 8,
|
|
@@ -4166,92 +4207,103 @@ class Yt extends Hr {
|
|
|
4166
4207
|
excludedflags: 10,
|
|
4167
4208
|
clientstyling: 11,
|
|
4168
4209
|
clientstylingurl: 12,
|
|
4169
|
-
translationurl: 13
|
|
4210
|
+
translationurl: 13,
|
|
4211
|
+
mbsource: 14
|
|
4170
4212
|
},
|
|
4171
|
-
|
|
4213
|
+
xi
|
|
4172
4214
|
);
|
|
4173
4215
|
}
|
|
4174
4216
|
get endpoint() {
|
|
4175
4217
|
return this.$$.ctx[7];
|
|
4176
4218
|
}
|
|
4177
4219
|
set endpoint(t) {
|
|
4178
|
-
this.$$set({ endpoint: t }),
|
|
4220
|
+
this.$$set({ endpoint: t }), M();
|
|
4179
4221
|
}
|
|
4180
4222
|
get datasource() {
|
|
4181
4223
|
return this.$$.ctx[8];
|
|
4182
4224
|
}
|
|
4183
4225
|
set datasource(t) {
|
|
4184
|
-
this.$$set({ datasource: t }),
|
|
4226
|
+
this.$$set({ datasource: t }), M();
|
|
4185
4227
|
}
|
|
4186
4228
|
get lang() {
|
|
4187
4229
|
return this.$$.ctx[9];
|
|
4188
4230
|
}
|
|
4189
4231
|
set lang(t) {
|
|
4190
|
-
this.$$set({ lang: t }),
|
|
4232
|
+
this.$$set({ lang: t }), M();
|
|
4191
4233
|
}
|
|
4192
4234
|
get activecategory() {
|
|
4193
4235
|
return this.$$.ctx[0];
|
|
4194
4236
|
}
|
|
4195
4237
|
set activecategory(t) {
|
|
4196
|
-
this.$$set({ activecategory: t }),
|
|
4238
|
+
this.$$set({ activecategory: t }), M();
|
|
4197
4239
|
}
|
|
4198
4240
|
get excludedflags() {
|
|
4199
4241
|
return this.$$.ctx[10];
|
|
4200
4242
|
}
|
|
4201
4243
|
set excludedflags(t) {
|
|
4202
|
-
this.$$set({ excludedflags: t }),
|
|
4244
|
+
this.$$set({ excludedflags: t }), M();
|
|
4203
4245
|
}
|
|
4204
4246
|
get clientstyling() {
|
|
4205
4247
|
return this.$$.ctx[11];
|
|
4206
4248
|
}
|
|
4207
4249
|
set clientstyling(t) {
|
|
4208
|
-
this.$$set({ clientstyling: t }),
|
|
4250
|
+
this.$$set({ clientstyling: t }), M();
|
|
4209
4251
|
}
|
|
4210
4252
|
get clientstylingurl() {
|
|
4211
4253
|
return this.$$.ctx[12];
|
|
4212
4254
|
}
|
|
4213
4255
|
set clientstylingurl(t) {
|
|
4214
|
-
this.$$set({ clientstylingurl: t }),
|
|
4256
|
+
this.$$set({ clientstylingurl: t }), M();
|
|
4215
4257
|
}
|
|
4216
4258
|
get translationurl() {
|
|
4217
4259
|
return this.$$.ctx[13];
|
|
4218
4260
|
}
|
|
4219
4261
|
set translationurl(t) {
|
|
4220
|
-
this.$$set({ translationurl: t }),
|
|
4262
|
+
this.$$set({ translationurl: t }), M();
|
|
4263
|
+
}
|
|
4264
|
+
get mbsource() {
|
|
4265
|
+
return this.$$.ctx[14];
|
|
4266
|
+
}
|
|
4267
|
+
set mbsource(t) {
|
|
4268
|
+
this.$$set({ mbsource: t }), M();
|
|
4221
4269
|
}
|
|
4222
4270
|
}
|
|
4223
|
-
|
|
4224
|
-
const
|
|
4271
|
+
Hr(Yt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4272
|
+
const Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4225
4273
|
__proto__: null,
|
|
4226
4274
|
default: Yt
|
|
4227
4275
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4228
4276
|
export {
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4277
|
+
ee as $,
|
|
4278
|
+
Ai as A,
|
|
4279
|
+
rt as B,
|
|
4280
|
+
de as C,
|
|
4281
|
+
Si as D,
|
|
4282
|
+
Ar as S,
|
|
4232
4283
|
Wt as a,
|
|
4233
|
-
|
|
4234
|
-
|
|
4284
|
+
ur as b,
|
|
4285
|
+
Hr as c,
|
|
4235
4286
|
R as d,
|
|
4236
|
-
|
|
4237
|
-
|
|
4287
|
+
w as e,
|
|
4288
|
+
M as f,
|
|
4238
4289
|
H as g,
|
|
4239
|
-
|
|
4290
|
+
Bi as h,
|
|
4240
4291
|
Cr as i,
|
|
4241
|
-
|
|
4292
|
+
Y as j,
|
|
4242
4293
|
v as k,
|
|
4243
4294
|
At as l,
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4295
|
+
G as m,
|
|
4296
|
+
I as n,
|
|
4297
|
+
j as o,
|
|
4298
|
+
ar as p,
|
|
4299
|
+
mr as q,
|
|
4249
4300
|
ae as r,
|
|
4250
|
-
|
|
4301
|
+
Ct as s,
|
|
4251
4302
|
U as t,
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4303
|
+
bi as u,
|
|
4304
|
+
yi as v,
|
|
4305
|
+
Ne as w,
|
|
4306
|
+
di as x,
|
|
4307
|
+
pi as y,
|
|
4308
|
+
ce as z
|
|
4257
4309
|
};
|