@everymatrix/casino-categories-providers 1.54.0 → 1.54.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-D5-eHUf6.js → CasinoCategories-CHNw2pQ_.js} +839 -879
- package/components/{CasinoCategoriesProviders-DXhs5BLh.js → CasinoCategoriesProviders-DXwAVUpY.js} +20 -20
- package/components/{CasinoProviders-QTOOjKZ2.js → CasinoProviders-CLyFrUKu.js} +1 -1
- package/esnext/casino-categories-providers.js +14 -0
- package/package.json +10 -12
- package/components/CasinoCategories-Be_Dbpvt.cjs +0 -3
- package/components/CasinoCategoriesProviders-B4TQX_3_.cjs +0 -1
- package/components/CasinoProviders-C4dx5rA0.cjs +0 -1
- package/es2015/casino-categories-providers.cjs +0 -1
- package/es2015/casino-categories-providers.js +0 -16
|
@@ -1,79 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
var nr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var qe = Object.getOwnPropertySymbols;
|
|
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, Je = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
ir.call(t, r) && Ce(e, r, t[r]);
|
|
8
|
-
if (qe)
|
|
9
|
-
for (var r of qe(t))
|
|
10
|
-
sr.call(t, r) && Ce(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Ye = (e, t) => rr(e, nr(t));
|
|
13
|
-
var I = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (h) => {
|
|
16
|
-
try {
|
|
17
|
-
u(r.next(h));
|
|
18
|
-
} catch (a) {
|
|
19
|
-
i(a);
|
|
20
|
-
}
|
|
21
|
-
}, o = (h) => {
|
|
22
|
-
try {
|
|
23
|
-
u(r.throw(h));
|
|
24
|
-
} catch (a) {
|
|
25
|
-
i(a);
|
|
26
|
-
}
|
|
27
|
-
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
|
-
u((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function M() {
|
|
1
|
+
function I() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function pt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function We() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function oe(e) {
|
|
10
|
+
e.forEach(pt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function Fe(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function dt(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
18
|
+
let ue;
|
|
19
|
+
function me(e, t) {
|
|
20
|
+
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function Zt(e) {
|
|
52
23
|
return Object.keys(e).length === 0;
|
|
53
24
|
}
|
|
54
|
-
function
|
|
25
|
+
function bt(e, ...t) {
|
|
55
26
|
if (e == null) {
|
|
56
27
|
for (const n of t)
|
|
57
28
|
n(void 0);
|
|
58
|
-
return
|
|
29
|
+
return I;
|
|
59
30
|
}
|
|
60
31
|
const r = e.subscribe(...t);
|
|
61
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
33
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Qt(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(bt(t, r));
|
|
65
36
|
}
|
|
66
37
|
function v(e, t) {
|
|
67
38
|
e.appendChild(t);
|
|
68
39
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
40
|
+
function qt(e, t, r) {
|
|
41
|
+
const n = Jt(e);
|
|
71
42
|
if (!n.getElementById(t)) {
|
|
72
43
|
const i = O("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Yt(n, i);
|
|
74
45
|
}
|
|
75
46
|
}
|
|
76
|
-
function
|
|
47
|
+
function Jt(e) {
|
|
77
48
|
if (!e) return document;
|
|
78
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
50
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,53 +53,53 @@ function hr(e) {
|
|
|
82
53
|
t
|
|
83
54
|
) : e.ownerDocument;
|
|
84
55
|
}
|
|
85
|
-
function
|
|
56
|
+
function Yt(e, t) {
|
|
86
57
|
return v(
|
|
87
58
|
/** @type {Document} */
|
|
88
59
|
e.head || e,
|
|
89
60
|
t
|
|
90
61
|
), t.sheet;
|
|
91
62
|
}
|
|
92
|
-
function
|
|
63
|
+
function Y(e, t, r) {
|
|
93
64
|
e.insertBefore(t, r || null);
|
|
94
65
|
}
|
|
95
|
-
function
|
|
66
|
+
function j(e) {
|
|
96
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
68
|
}
|
|
98
|
-
function
|
|
69
|
+
function Ze(e, t) {
|
|
99
70
|
for (let r = 0; r < e.length; r += 1)
|
|
100
71
|
e[r] && e[r].d(t);
|
|
101
72
|
}
|
|
102
73
|
function O(e) {
|
|
103
74
|
return document.createElement(e);
|
|
104
75
|
}
|
|
105
|
-
function
|
|
76
|
+
function R(e) {
|
|
106
77
|
return document.createTextNode(e);
|
|
107
78
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
79
|
+
function $() {
|
|
80
|
+
return R(" ");
|
|
110
81
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
82
|
+
function hi() {
|
|
83
|
+
return R("");
|
|
113
84
|
}
|
|
114
|
-
function
|
|
85
|
+
function yt(e, t, r, n) {
|
|
115
86
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
87
|
}
|
|
117
88
|
function H(e, t, r) {
|
|
118
89
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
90
|
}
|
|
120
|
-
function
|
|
91
|
+
function li(e, t, r) {
|
|
121
92
|
const n = t.toLowerCase();
|
|
122
93
|
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
94
|
}
|
|
124
|
-
function
|
|
95
|
+
function Kt(e) {
|
|
125
96
|
return Array.from(e.childNodes);
|
|
126
97
|
}
|
|
127
|
-
function
|
|
98
|
+
function D(e, t) {
|
|
128
99
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
129
100
|
t);
|
|
130
101
|
}
|
|
131
|
-
function
|
|
102
|
+
function er(e) {
|
|
132
103
|
const t = {};
|
|
133
104
|
return e.childNodes.forEach(
|
|
134
105
|
/** @param {Element} node */
|
|
@@ -137,241 +108,237 @@ function cr(e) {
|
|
|
137
108
|
}
|
|
138
109
|
), t;
|
|
139
110
|
}
|
|
140
|
-
let
|
|
141
|
-
function
|
|
142
|
-
|
|
111
|
+
let je;
|
|
112
|
+
function ne(e) {
|
|
113
|
+
je = e;
|
|
143
114
|
}
|
|
144
|
-
const
|
|
145
|
-
let
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
115
|
+
const z = [], Oe = [];
|
|
116
|
+
let W = [];
|
|
117
|
+
const Qe = [], tr = /* @__PURE__ */ Promise.resolve();
|
|
118
|
+
let Pe = !1;
|
|
119
|
+
function rr() {
|
|
120
|
+
Pe || (Pe = !0, tr.then(M));
|
|
150
121
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
122
|
+
function we(e) {
|
|
123
|
+
W.push(e);
|
|
153
124
|
}
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
if (
|
|
125
|
+
const ve = /* @__PURE__ */ new Set();
|
|
126
|
+
let V = 0;
|
|
127
|
+
function M() {
|
|
128
|
+
if (V !== 0)
|
|
158
129
|
return;
|
|
159
|
-
const e =
|
|
130
|
+
const e = je;
|
|
160
131
|
do {
|
|
161
132
|
try {
|
|
162
|
-
for (;
|
|
163
|
-
const t =
|
|
164
|
-
|
|
133
|
+
for (; V < z.length; ) {
|
|
134
|
+
const t = z[V];
|
|
135
|
+
V++, ne(t), nr(t.$$);
|
|
165
136
|
}
|
|
166
137
|
} catch (t) {
|
|
167
|
-
throw
|
|
138
|
+
throw z.length = 0, V = 0, t;
|
|
168
139
|
}
|
|
169
|
-
for (
|
|
170
|
-
for (let t = 0; t <
|
|
171
|
-
const r =
|
|
172
|
-
|
|
140
|
+
for (ne(null), z.length = 0, V = 0; Oe.length; ) Oe.pop()();
|
|
141
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
142
|
+
const r = W[t];
|
|
143
|
+
ve.has(r) || (ve.add(r), r());
|
|
173
144
|
}
|
|
174
|
-
|
|
175
|
-
} while (
|
|
176
|
-
for (;
|
|
177
|
-
|
|
178
|
-
|
|
145
|
+
W.length = 0;
|
|
146
|
+
} while (z.length);
|
|
147
|
+
for (; Qe.length; )
|
|
148
|
+
Qe.pop()();
|
|
149
|
+
Pe = !1, ve.clear(), ne(e);
|
|
179
150
|
}
|
|
180
|
-
function
|
|
151
|
+
function nr(e) {
|
|
181
152
|
if (e.fragment !== null) {
|
|
182
|
-
e.update(),
|
|
153
|
+
e.update(), oe(e.before_update);
|
|
183
154
|
const t = e.dirty;
|
|
184
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
155
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
|
|
185
156
|
}
|
|
186
157
|
}
|
|
187
|
-
function
|
|
158
|
+
function ir(e) {
|
|
188
159
|
const t = [], r = [];
|
|
189
|
-
|
|
160
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
190
161
|
}
|
|
191
|
-
const
|
|
192
|
-
function
|
|
193
|
-
e && e.i && (
|
|
162
|
+
const sr = /* @__PURE__ */ new Set();
|
|
163
|
+
function or(e, t) {
|
|
164
|
+
e && e.i && (sr.delete(e), e.i(t));
|
|
194
165
|
}
|
|
195
|
-
function
|
|
196
|
-
return
|
|
166
|
+
function he(e) {
|
|
167
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
197
168
|
}
|
|
198
|
-
function
|
|
169
|
+
function ar(e, t, r) {
|
|
199
170
|
const { fragment: n, after_update: i } = e.$$;
|
|
200
|
-
n && n.m(t, r),
|
|
201
|
-
const s = e.$$.on_mount.map(
|
|
202
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
203
|
-
}), i.forEach(
|
|
171
|
+
n && n.m(t, r), we(() => {
|
|
172
|
+
const s = e.$$.on_mount.map(pt).filter(Fe);
|
|
173
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : oe(s), e.$$.on_mount = [];
|
|
174
|
+
}), i.forEach(we);
|
|
204
175
|
}
|
|
205
|
-
function
|
|
176
|
+
function ur(e, t) {
|
|
206
177
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
178
|
+
r.fragment !== null && (ir(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
208
179
|
}
|
|
209
|
-
function
|
|
210
|
-
e.$$.dirty[0] === -1 && (
|
|
180
|
+
function hr(e, t) {
|
|
181
|
+
e.$$.dirty[0] === -1 && (z.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
182
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
214
|
-
|
|
183
|
+
function lr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
184
|
+
const f = je;
|
|
185
|
+
ne(e);
|
|
215
186
|
const a = e.$$ = {
|
|
216
187
|
fragment: null,
|
|
217
188
|
ctx: [],
|
|
218
189
|
// state
|
|
219
190
|
props: s,
|
|
220
|
-
update:
|
|
191
|
+
update: I,
|
|
221
192
|
not_equal: i,
|
|
222
|
-
bound:
|
|
193
|
+
bound: We(),
|
|
223
194
|
// lifecycle
|
|
224
195
|
on_mount: [],
|
|
225
196
|
on_destroy: [],
|
|
226
197
|
on_disconnect: [],
|
|
227
198
|
before_update: [],
|
|
228
199
|
after_update: [],
|
|
229
|
-
context: new Map(t.context || (
|
|
200
|
+
context: new Map(t.context || (f ? f.$$.context : [])),
|
|
230
201
|
// everything else
|
|
231
|
-
callbacks:
|
|
202
|
+
callbacks: We(),
|
|
232
203
|
dirty: u,
|
|
233
204
|
skip_bound: !1,
|
|
234
|
-
root: t.target ||
|
|
205
|
+
root: t.target || f.$$.root
|
|
235
206
|
};
|
|
236
207
|
o && o(a.root);
|
|
237
|
-
let
|
|
238
|
-
if (a.ctx = r ? r(e, t.props || {}, (c,
|
|
239
|
-
const p = d.length ? d[0] :
|
|
240
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] = p) && (!a.skip_bound && a.bound[c] && a.bound[c](p),
|
|
241
|
-
}) : [], a.update(),
|
|
208
|
+
let h = !1;
|
|
209
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, l, ...d) => {
|
|
210
|
+
const p = d.length ? d[0] : l;
|
|
211
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = p) && (!a.skip_bound && a.bound[c] && a.bound[c](p), h && hr(e, c)), l;
|
|
212
|
+
}) : [], a.update(), h = !0, oe(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
242
213
|
if (t.hydrate) {
|
|
243
|
-
const c =
|
|
244
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
214
|
+
const c = Kt(t.target);
|
|
215
|
+
a.fragment && a.fragment.l(c), c.forEach(j);
|
|
245
216
|
} else
|
|
246
217
|
a.fragment && a.fragment.c();
|
|
247
|
-
t.intro &&
|
|
218
|
+
t.intro && or(e.$$.fragment), ar(e, t.target, t.anchor), M();
|
|
248
219
|
}
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
220
|
+
ne(f);
|
|
221
|
+
}
|
|
222
|
+
let _t;
|
|
223
|
+
typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
224
|
+
/** The Svelte component constructor */
|
|
225
|
+
$$ctor;
|
|
226
|
+
/** Slots */
|
|
227
|
+
$$s;
|
|
228
|
+
/** The Svelte component instance */
|
|
229
|
+
$$c;
|
|
230
|
+
/** Whether or not the custom element is connected */
|
|
231
|
+
$$cn = !1;
|
|
232
|
+
/** Component props data */
|
|
233
|
+
$$d = {};
|
|
234
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
235
|
+
$$r = !1;
|
|
236
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
237
|
+
$$p_d = {};
|
|
238
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
239
|
+
$$l = {};
|
|
240
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
241
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
242
|
+
constructor(e, t, r) {
|
|
243
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
274
244
|
}
|
|
275
|
-
addEventListener(t, r
|
|
276
|
-
if (this.$$l[
|
|
277
|
-
const
|
|
278
|
-
this.$$l_u.set(
|
|
245
|
+
addEventListener(e, t, r) {
|
|
246
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
247
|
+
const n = this.$$c.$on(e, t);
|
|
248
|
+
this.$$l_u.set(t, n);
|
|
279
249
|
}
|
|
280
|
-
super.addEventListener(t, r
|
|
250
|
+
super.addEventListener(e, t, r);
|
|
281
251
|
}
|
|
282
|
-
removeEventListener(t, r
|
|
283
|
-
if (super.removeEventListener(t, r
|
|
284
|
-
const
|
|
285
|
-
|
|
252
|
+
removeEventListener(e, t, r) {
|
|
253
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
254
|
+
const n = this.$$l_u.get(t);
|
|
255
|
+
n && (n(), this.$$l_u.delete(t));
|
|
286
256
|
}
|
|
287
257
|
}
|
|
288
|
-
connectedCallback() {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
};
|
|
258
|
+
async connectedCallback() {
|
|
259
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
260
|
+
let e = function(i) {
|
|
261
|
+
return () => {
|
|
262
|
+
let s;
|
|
263
|
+
return {
|
|
264
|
+
c: function() {
|
|
265
|
+
s = O("slot"), i !== "default" && H(s, "name", i);
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* @param {HTMLElement} target
|
|
269
|
+
* @param {HTMLElement} [anchor]
|
|
270
|
+
*/
|
|
271
|
+
m: function(f, a) {
|
|
272
|
+
Y(f, s, a);
|
|
273
|
+
},
|
|
274
|
+
d: function(f) {
|
|
275
|
+
f && j(s);
|
|
276
|
+
}
|
|
309
277
|
};
|
|
310
278
|
};
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
279
|
+
};
|
|
280
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
281
|
+
return;
|
|
282
|
+
const t = {}, r = er(this);
|
|
283
|
+
for (const i of this.$$s)
|
|
284
|
+
i in r && (t[i] = [e(i)]);
|
|
285
|
+
for (const i of this.attributes) {
|
|
286
|
+
const s = this.$$g_p(i.name);
|
|
287
|
+
s in this.$$d || (this.$$d[s] = fe(s, i.value, this.$$p_d, "toProp"));
|
|
288
|
+
}
|
|
289
|
+
for (const i in this.$$p_d)
|
|
290
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
291
|
+
this.$$c = new this.$$ctor({
|
|
292
|
+
target: this.shadowRoot || this,
|
|
293
|
+
props: {
|
|
294
|
+
...this.$$d,
|
|
295
|
+
$$slots: t,
|
|
296
|
+
$$scope: {
|
|
297
|
+
ctx: []
|
|
298
|
+
}
|
|
319
299
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
this.$$
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
this.$$r = !0;
|
|
333
|
-
for (const s in this.$$p_d)
|
|
334
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
335
|
-
const o = ce(
|
|
336
|
-
s,
|
|
337
|
-
this.$$d[s],
|
|
338
|
-
this.$$p_d,
|
|
339
|
-
"toAttribute"
|
|
340
|
-
);
|
|
341
|
-
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
342
|
-
}
|
|
343
|
-
this.$$r = !1;
|
|
344
|
-
};
|
|
345
|
-
this.$$c.$$.after_update.push(i), i();
|
|
346
|
-
for (const s in this.$$l)
|
|
347
|
-
for (const o of this.$$l[s]) {
|
|
348
|
-
const u = this.$$c.$on(s, o);
|
|
349
|
-
this.$$l_u.set(o, u);
|
|
300
|
+
});
|
|
301
|
+
const n = () => {
|
|
302
|
+
this.$$r = !0;
|
|
303
|
+
for (const i in this.$$p_d)
|
|
304
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
305
|
+
const s = fe(
|
|
306
|
+
i,
|
|
307
|
+
this.$$d[i],
|
|
308
|
+
this.$$p_d,
|
|
309
|
+
"toAttribute"
|
|
310
|
+
);
|
|
311
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
350
312
|
}
|
|
351
|
-
this.$$
|
|
352
|
-
}
|
|
353
|
-
|
|
313
|
+
this.$$r = !1;
|
|
314
|
+
};
|
|
315
|
+
this.$$c.$$.after_update.push(n), n();
|
|
316
|
+
for (const i in this.$$l)
|
|
317
|
+
for (const s of this.$$l[i]) {
|
|
318
|
+
const o = this.$$c.$on(i, s);
|
|
319
|
+
this.$$l_u.set(s, o);
|
|
320
|
+
}
|
|
321
|
+
this.$$l = {};
|
|
322
|
+
}
|
|
354
323
|
}
|
|
355
324
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
356
325
|
// and setting attributes through setAttribute etc, this is helpful
|
|
357
|
-
attributeChangedCallback(t, r
|
|
358
|
-
|
|
359
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ce(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
326
|
+
attributeChangedCallback(e, t, r) {
|
|
327
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
360
328
|
}
|
|
361
329
|
disconnectedCallback() {
|
|
362
330
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
363
331
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
364
332
|
});
|
|
365
333
|
}
|
|
366
|
-
$$g_p(
|
|
334
|
+
$$g_p(e) {
|
|
367
335
|
return Object.keys(this.$$p_d).find(
|
|
368
|
-
(
|
|
369
|
-
) ||
|
|
336
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
337
|
+
) || e;
|
|
370
338
|
}
|
|
371
339
|
});
|
|
372
|
-
function
|
|
373
|
-
|
|
374
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
340
|
+
function fe(e, t, r, n) {
|
|
341
|
+
const i = r[e]?.type;
|
|
375
342
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
376
343
|
return t;
|
|
377
344
|
if (n === "toAttribute")
|
|
@@ -382,7 +349,7 @@ function ce(e, t, r, n) {
|
|
|
382
349
|
case "Boolean":
|
|
383
350
|
return t ? "" : null;
|
|
384
351
|
case "Number":
|
|
385
|
-
return t
|
|
352
|
+
return t ?? null;
|
|
386
353
|
default:
|
|
387
354
|
return t;
|
|
388
355
|
}
|
|
@@ -399,8 +366,8 @@ function ce(e, t, r, n) {
|
|
|
399
366
|
return t;
|
|
400
367
|
}
|
|
401
368
|
}
|
|
402
|
-
function
|
|
403
|
-
let o = class extends
|
|
369
|
+
function fr(e, t, r, n, i, s) {
|
|
370
|
+
let o = class extends _t {
|
|
404
371
|
constructor() {
|
|
405
372
|
super(e, r, i), this.$$p_d = t;
|
|
406
373
|
}
|
|
@@ -415,43 +382,39 @@ function Cr(e, t, r, n, i, s) {
|
|
|
415
382
|
get() {
|
|
416
383
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
417
384
|
},
|
|
418
|
-
set(
|
|
419
|
-
|
|
420
|
-
h = ce(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
385
|
+
set(f) {
|
|
386
|
+
f = fe(u, f, t), this.$$d[u] = f, this.$$c?.$set({ [u]: f });
|
|
421
387
|
}
|
|
422
388
|
});
|
|
423
389
|
}), n.forEach((u) => {
|
|
424
390
|
Object.defineProperty(o.prototype, u, {
|
|
425
391
|
get() {
|
|
426
|
-
|
|
427
|
-
return (h = this.$$c) == null ? void 0 : h[u];
|
|
392
|
+
return this.$$c?.[u];
|
|
428
393
|
}
|
|
429
394
|
});
|
|
430
395
|
}), e.element = /** @type {any} */
|
|
431
396
|
o, o;
|
|
432
397
|
}
|
|
433
|
-
class
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
I(this, "$$set");
|
|
451
|
-
}
|
|
398
|
+
class cr {
|
|
399
|
+
/**
|
|
400
|
+
* ### PRIVATE API
|
|
401
|
+
*
|
|
402
|
+
* Do not use, may change at any time
|
|
403
|
+
*
|
|
404
|
+
* @type {any}
|
|
405
|
+
*/
|
|
406
|
+
$$ = void 0;
|
|
407
|
+
/**
|
|
408
|
+
* ### PRIVATE API
|
|
409
|
+
*
|
|
410
|
+
* Do not use, may change at any time
|
|
411
|
+
*
|
|
412
|
+
* @type {any}
|
|
413
|
+
*/
|
|
414
|
+
$$set = void 0;
|
|
452
415
|
/** @returns {void} */
|
|
453
416
|
$destroy() {
|
|
454
|
-
|
|
417
|
+
ur(this, 1), this.$destroy = I;
|
|
455
418
|
}
|
|
456
419
|
/**
|
|
457
420
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -460,8 +423,8 @@ class Tr {
|
|
|
460
423
|
* @returns {() => void}
|
|
461
424
|
*/
|
|
462
425
|
$on(t, r) {
|
|
463
|
-
if (!
|
|
464
|
-
return
|
|
426
|
+
if (!Fe(r))
|
|
427
|
+
return I;
|
|
465
428
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
466
429
|
return n.push(r), () => {
|
|
467
430
|
const i = n.indexOf(r);
|
|
@@ -473,159 +436,159 @@ class Tr {
|
|
|
473
436
|
* @returns {void}
|
|
474
437
|
*/
|
|
475
438
|
$set(t) {
|
|
476
|
-
this.$$set && !
|
|
439
|
+
this.$$set && !Zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
477
440
|
}
|
|
478
441
|
}
|
|
479
|
-
const
|
|
480
|
-
typeof window
|
|
481
|
-
const
|
|
482
|
-
function
|
|
442
|
+
const gr = "4";
|
|
443
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gr);
|
|
444
|
+
const X = [];
|
|
445
|
+
function mr(e, t) {
|
|
483
446
|
return {
|
|
484
|
-
subscribe:
|
|
447
|
+
subscribe: be(e, t).subscribe
|
|
485
448
|
};
|
|
486
449
|
}
|
|
487
|
-
function
|
|
450
|
+
function be(e, t = I) {
|
|
488
451
|
let r;
|
|
489
452
|
const n = /* @__PURE__ */ new Set();
|
|
490
453
|
function i(u) {
|
|
491
|
-
if (
|
|
492
|
-
const
|
|
454
|
+
if (dt(e, u) && (e = u, r)) {
|
|
455
|
+
const f = !X.length;
|
|
493
456
|
for (const a of n)
|
|
494
|
-
a[1](),
|
|
495
|
-
if (
|
|
496
|
-
for (let a = 0; a <
|
|
497
|
-
|
|
498
|
-
|
|
457
|
+
a[1](), X.push(a, e);
|
|
458
|
+
if (f) {
|
|
459
|
+
for (let a = 0; a < X.length; a += 2)
|
|
460
|
+
X[a][0](X[a + 1]);
|
|
461
|
+
X.length = 0;
|
|
499
462
|
}
|
|
500
463
|
}
|
|
501
464
|
}
|
|
502
465
|
function s(u) {
|
|
503
466
|
i(u(e));
|
|
504
467
|
}
|
|
505
|
-
function o(u,
|
|
506
|
-
const a = [u,
|
|
507
|
-
return n.add(a), n.size === 1 && (r = t(i, s) ||
|
|
468
|
+
function o(u, f = I) {
|
|
469
|
+
const a = [u, f];
|
|
470
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || I), u(e), () => {
|
|
508
471
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
509
472
|
};
|
|
510
473
|
}
|
|
511
474
|
return { set: i, update: s, subscribe: o };
|
|
512
475
|
}
|
|
513
|
-
function
|
|
476
|
+
function K(e, t, r) {
|
|
514
477
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
515
478
|
if (!i.every(Boolean))
|
|
516
479
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
517
480
|
const s = t.length < 2;
|
|
518
|
-
return
|
|
519
|
-
let
|
|
481
|
+
return mr(r, (o, u) => {
|
|
482
|
+
let f = !1;
|
|
520
483
|
const a = [];
|
|
521
|
-
let
|
|
522
|
-
const
|
|
523
|
-
if (
|
|
484
|
+
let h = 0, c = I;
|
|
485
|
+
const l = () => {
|
|
486
|
+
if (h)
|
|
524
487
|
return;
|
|
525
488
|
c();
|
|
526
489
|
const p = t(n ? a[0] : a, o, u);
|
|
527
|
-
s ? o(p) : c =
|
|
490
|
+
s ? o(p) : c = Fe(p) ? p : I;
|
|
528
491
|
}, d = i.map(
|
|
529
|
-
(p, g) =>
|
|
492
|
+
(p, g) => bt(
|
|
530
493
|
p,
|
|
531
494
|
(E) => {
|
|
532
|
-
a[g] = E,
|
|
495
|
+
a[g] = E, h &= ~(1 << g), f && l();
|
|
533
496
|
},
|
|
534
497
|
() => {
|
|
535
|
-
|
|
498
|
+
h |= 1 << g;
|
|
536
499
|
}
|
|
537
500
|
)
|
|
538
501
|
);
|
|
539
|
-
return
|
|
540
|
-
|
|
502
|
+
return f = !0, l(), function() {
|
|
503
|
+
oe(d), c(), f = !1;
|
|
541
504
|
};
|
|
542
505
|
});
|
|
543
506
|
}
|
|
544
|
-
function
|
|
507
|
+
function pr(e) {
|
|
545
508
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
546
509
|
}
|
|
547
|
-
var
|
|
548
|
-
return
|
|
510
|
+
var dr = function(t) {
|
|
511
|
+
return br(t) && !yr(t);
|
|
549
512
|
};
|
|
550
|
-
function
|
|
513
|
+
function br(e) {
|
|
551
514
|
return !!e && typeof e == "object";
|
|
552
515
|
}
|
|
553
|
-
function
|
|
516
|
+
function yr(e) {
|
|
554
517
|
var t = Object.prototype.toString.call(e);
|
|
555
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
518
|
+
return t === "[object RegExp]" || t === "[object Date]" || Er(e);
|
|
556
519
|
}
|
|
557
|
-
var
|
|
558
|
-
function
|
|
559
|
-
return e.$$typeof ===
|
|
520
|
+
var _r = typeof Symbol == "function" && Symbol.for, xr = _r ? Symbol.for("react.element") : 60103;
|
|
521
|
+
function Er(e) {
|
|
522
|
+
return e.$$typeof === xr;
|
|
560
523
|
}
|
|
561
|
-
function
|
|
524
|
+
function vr(e) {
|
|
562
525
|
return Array.isArray(e) ? [] : {};
|
|
563
526
|
}
|
|
564
|
-
function
|
|
565
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
527
|
+
function ie(e, t) {
|
|
528
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(vr(e), e, t) : e;
|
|
566
529
|
}
|
|
567
|
-
function
|
|
530
|
+
function Cr(e, t, r) {
|
|
568
531
|
return e.concat(t).map(function(n) {
|
|
569
|
-
return
|
|
532
|
+
return ie(n, r);
|
|
570
533
|
});
|
|
571
534
|
}
|
|
572
|
-
function
|
|
535
|
+
function Tr(e, t) {
|
|
573
536
|
if (!t.customMerge)
|
|
574
|
-
return
|
|
537
|
+
return Z;
|
|
575
538
|
var r = t.customMerge(e);
|
|
576
|
-
return typeof r == "function" ? r :
|
|
539
|
+
return typeof r == "function" ? r : Z;
|
|
577
540
|
}
|
|
578
|
-
function
|
|
541
|
+
function Hr(e) {
|
|
579
542
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
580
543
|
return Object.propertyIsEnumerable.call(e, t);
|
|
581
544
|
}) : [];
|
|
582
545
|
}
|
|
583
|
-
function
|
|
584
|
-
return Object.keys(e).concat(
|
|
546
|
+
function qe(e) {
|
|
547
|
+
return Object.keys(e).concat(Hr(e));
|
|
585
548
|
}
|
|
586
|
-
function
|
|
549
|
+
function xt(e, t) {
|
|
587
550
|
try {
|
|
588
551
|
return t in e;
|
|
589
|
-
} catch
|
|
552
|
+
} catch {
|
|
590
553
|
return !1;
|
|
591
554
|
}
|
|
592
555
|
}
|
|
593
|
-
function
|
|
594
|
-
return
|
|
556
|
+
function Ar(e, t) {
|
|
557
|
+
return xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
595
558
|
}
|
|
596
|
-
function
|
|
559
|
+
function Sr(e, t, r) {
|
|
597
560
|
var n = {};
|
|
598
|
-
return r.isMergeableObject(e) &&
|
|
599
|
-
n[i] =
|
|
600
|
-
}),
|
|
601
|
-
|
|
561
|
+
return r.isMergeableObject(e) && qe(e).forEach(function(i) {
|
|
562
|
+
n[i] = ie(e[i], r);
|
|
563
|
+
}), qe(t).forEach(function(i) {
|
|
564
|
+
Ar(e, i) || (xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
602
565
|
}), n;
|
|
603
566
|
}
|
|
604
|
-
function
|
|
605
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
567
|
+
function Z(e, t, r) {
|
|
568
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || dr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
606
569
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
607
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
570
|
+
return s ? n ? r.arrayMerge(e, t, r) : Sr(e, t, r) : ie(t, r);
|
|
608
571
|
}
|
|
609
|
-
|
|
572
|
+
Z.all = function(t, r) {
|
|
610
573
|
if (!Array.isArray(t))
|
|
611
574
|
throw new Error("first argument should be an array");
|
|
612
575
|
return t.reduce(function(n, i) {
|
|
613
|
-
return
|
|
576
|
+
return Z(n, i, r);
|
|
614
577
|
}, {});
|
|
615
578
|
};
|
|
616
|
-
var
|
|
617
|
-
const
|
|
618
|
-
var
|
|
619
|
-
return
|
|
579
|
+
var Br = Z, Or = Br;
|
|
580
|
+
const Pr = /* @__PURE__ */ pr(Or);
|
|
581
|
+
var Ne = function(e, t) {
|
|
582
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
620
583
|
r.__proto__ = n;
|
|
621
584
|
} || function(r, n) {
|
|
622
585
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
623
|
-
},
|
|
586
|
+
}, Ne(e, t);
|
|
624
587
|
};
|
|
625
|
-
function
|
|
588
|
+
function ye(e, t) {
|
|
626
589
|
if (typeof t != "function" && t !== null)
|
|
627
590
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
628
|
-
|
|
591
|
+
Ne(e, t);
|
|
629
592
|
function r() {
|
|
630
593
|
this.constructor = e;
|
|
631
594
|
}
|
|
@@ -640,7 +603,7 @@ var x = function() {
|
|
|
640
603
|
return t;
|
|
641
604
|
}, x.apply(this, arguments);
|
|
642
605
|
};
|
|
643
|
-
function
|
|
606
|
+
function wr(e, t) {
|
|
644
607
|
var r = {};
|
|
645
608
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
646
609
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -648,45 +611,45 @@ function kr(e, t) {
|
|
|
648
611
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
649
612
|
return r;
|
|
650
613
|
}
|
|
651
|
-
function
|
|
614
|
+
function Ce(e, t, r) {
|
|
652
615
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
653
616
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
654
617
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
655
618
|
}
|
|
656
|
-
function
|
|
657
|
-
var r = t && t.cache ? t.cache :
|
|
619
|
+
function Te(e, t) {
|
|
620
|
+
var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : $r, i = t && t.strategy ? t.strategy : Lr;
|
|
658
621
|
return i(e, {
|
|
659
622
|
cache: r,
|
|
660
623
|
serializer: n
|
|
661
624
|
});
|
|
662
625
|
}
|
|
663
|
-
function
|
|
626
|
+
function Nr(e) {
|
|
664
627
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
665
628
|
}
|
|
666
|
-
function
|
|
667
|
-
var i =
|
|
668
|
-
return typeof s
|
|
629
|
+
function Et(e, t, r, n) {
|
|
630
|
+
var i = Nr(n) ? n : r(n), s = t.get(i);
|
|
631
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
669
632
|
}
|
|
670
|
-
function
|
|
633
|
+
function vt(e, t, r) {
|
|
671
634
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
672
|
-
return typeof s
|
|
635
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
673
636
|
}
|
|
674
|
-
function
|
|
637
|
+
function ke(e, t, r, n, i) {
|
|
675
638
|
return r.bind(t, e, n, i);
|
|
676
639
|
}
|
|
677
|
-
function
|
|
678
|
-
var r = e.length === 1 ?
|
|
679
|
-
return
|
|
640
|
+
function Lr(e, t) {
|
|
641
|
+
var r = e.length === 1 ? Et : vt;
|
|
642
|
+
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
680
643
|
}
|
|
681
|
-
function
|
|
682
|
-
return
|
|
644
|
+
function Ir(e, t) {
|
|
645
|
+
return ke(e, this, vt, t.cache.create(), t.serializer);
|
|
683
646
|
}
|
|
684
|
-
function
|
|
685
|
-
return
|
|
647
|
+
function Mr(e, t) {
|
|
648
|
+
return ke(e, this, Et, t.cache.create(), t.serializer);
|
|
686
649
|
}
|
|
687
|
-
var
|
|
650
|
+
var $r = function() {
|
|
688
651
|
return JSON.stringify(arguments);
|
|
689
|
-
},
|
|
652
|
+
}, Rr = (
|
|
690
653
|
/** @class */
|
|
691
654
|
function() {
|
|
692
655
|
function e() {
|
|
@@ -698,13 +661,13 @@ var Zr = function() {
|
|
|
698
661
|
this.cache[t] = r;
|
|
699
662
|
}, e;
|
|
700
663
|
}()
|
|
701
|
-
),
|
|
664
|
+
), Ur = {
|
|
702
665
|
create: function() {
|
|
703
|
-
return new
|
|
666
|
+
return new Rr();
|
|
704
667
|
}
|
|
705
|
-
},
|
|
706
|
-
variadic:
|
|
707
|
-
monadic:
|
|
668
|
+
}, He = {
|
|
669
|
+
variadic: Ir,
|
|
670
|
+
monadic: Mr
|
|
708
671
|
}, y;
|
|
709
672
|
(function(e) {
|
|
710
673
|
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";
|
|
@@ -713,47 +676,47 @@ var C;
|
|
|
713
676
|
(function(e) {
|
|
714
677
|
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";
|
|
715
678
|
})(C || (C = {}));
|
|
716
|
-
var
|
|
679
|
+
var Q;
|
|
717
680
|
(function(e) {
|
|
718
681
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
719
|
-
})(
|
|
720
|
-
function
|
|
682
|
+
})(Q || (Q = {}));
|
|
683
|
+
function Je(e) {
|
|
721
684
|
return e.type === C.literal;
|
|
722
685
|
}
|
|
723
|
-
function
|
|
686
|
+
function Gr(e) {
|
|
724
687
|
return e.type === C.argument;
|
|
725
688
|
}
|
|
726
|
-
function
|
|
689
|
+
function Ct(e) {
|
|
727
690
|
return e.type === C.number;
|
|
728
691
|
}
|
|
729
|
-
function
|
|
692
|
+
function Tt(e) {
|
|
730
693
|
return e.type === C.date;
|
|
731
694
|
}
|
|
732
|
-
function
|
|
695
|
+
function Ht(e) {
|
|
733
696
|
return e.type === C.time;
|
|
734
697
|
}
|
|
735
|
-
function
|
|
698
|
+
function At(e) {
|
|
736
699
|
return e.type === C.select;
|
|
737
700
|
}
|
|
738
|
-
function
|
|
701
|
+
function St(e) {
|
|
739
702
|
return e.type === C.plural;
|
|
740
703
|
}
|
|
741
|
-
function
|
|
704
|
+
function Dr(e) {
|
|
742
705
|
return e.type === C.pound;
|
|
743
706
|
}
|
|
744
|
-
function
|
|
707
|
+
function Bt(e) {
|
|
745
708
|
return e.type === C.tag;
|
|
746
709
|
}
|
|
747
|
-
function
|
|
748
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
710
|
+
function Ot(e) {
|
|
711
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
749
712
|
}
|
|
750
|
-
function
|
|
751
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
713
|
+
function Le(e) {
|
|
714
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
752
715
|
}
|
|
753
|
-
var
|
|
754
|
-
function
|
|
716
|
+
var Pt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
717
|
+
function jr(e) {
|
|
755
718
|
var t = {};
|
|
756
|
-
return e.replace(
|
|
719
|
+
return e.replace(Fr, function(r) {
|
|
757
720
|
var n = r.length;
|
|
758
721
|
switch (r[0]) {
|
|
759
722
|
case "G":
|
|
@@ -842,36 +805,36 @@ function en(e) {
|
|
|
842
805
|
return "";
|
|
843
806
|
}), t;
|
|
844
807
|
}
|
|
845
|
-
var
|
|
846
|
-
function
|
|
808
|
+
var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
809
|
+
function Vr(e) {
|
|
847
810
|
if (e.length === 0)
|
|
848
811
|
throw new Error("Number skeleton cannot be empty");
|
|
849
|
-
for (var t = e.split(
|
|
850
|
-
return
|
|
812
|
+
for (var t = e.split(kr).filter(function(l) {
|
|
813
|
+
return l.length > 0;
|
|
851
814
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
852
815
|
var s = i[n], o = s.split("/");
|
|
853
816
|
if (o.length === 0)
|
|
854
817
|
throw new Error("Invalid number skeleton");
|
|
855
|
-
for (var u = o[0],
|
|
856
|
-
var c =
|
|
818
|
+
for (var u = o[0], f = o.slice(1), a = 0, h = f; a < h.length; a++) {
|
|
819
|
+
var c = h[a];
|
|
857
820
|
if (c.length === 0)
|
|
858
821
|
throw new Error("Invalid number skeleton");
|
|
859
822
|
}
|
|
860
|
-
r.push({ stem: u, options:
|
|
823
|
+
r.push({ stem: u, options: f });
|
|
861
824
|
}
|
|
862
825
|
return r;
|
|
863
826
|
}
|
|
864
|
-
function
|
|
827
|
+
function Xr(e) {
|
|
865
828
|
return e.replace(/^(.*?)-/, "");
|
|
866
829
|
}
|
|
867
|
-
var
|
|
868
|
-
function
|
|
830
|
+
var Ye = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, wt = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Nt = /^(0+)$/;
|
|
831
|
+
function Ke(e) {
|
|
869
832
|
var t = {};
|
|
870
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
833
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(wt, function(r, n, i) {
|
|
871
834
|
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)), "";
|
|
872
835
|
}), t;
|
|
873
836
|
}
|
|
874
|
-
function
|
|
837
|
+
function Lt(e) {
|
|
875
838
|
switch (e) {
|
|
876
839
|
case "sign-auto":
|
|
877
840
|
return {
|
|
@@ -911,7 +874,7 @@ function Dt(e) {
|
|
|
911
874
|
};
|
|
912
875
|
}
|
|
913
876
|
}
|
|
914
|
-
function
|
|
877
|
+
function Wr(e) {
|
|
915
878
|
var t;
|
|
916
879
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
917
880
|
notation: "engineering"
|
|
@@ -919,17 +882,17 @@ function on(e) {
|
|
|
919
882
|
notation: "scientific"
|
|
920
883
|
}, e = e.slice(1)), t) {
|
|
921
884
|
var r = e.slice(0, 2);
|
|
922
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
885
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nt.test(e))
|
|
923
886
|
throw new Error("Malformed concise eng/scientific notation");
|
|
924
887
|
t.minimumIntegerDigits = e.length;
|
|
925
888
|
}
|
|
926
889
|
return t;
|
|
927
890
|
}
|
|
928
|
-
function
|
|
929
|
-
var t = {}, r =
|
|
891
|
+
function et(e) {
|
|
892
|
+
var t = {}, r = Lt(e);
|
|
930
893
|
return r || t;
|
|
931
894
|
}
|
|
932
|
-
function
|
|
895
|
+
function Zr(e) {
|
|
933
896
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
934
897
|
var i = n[r];
|
|
935
898
|
switch (i.stem) {
|
|
@@ -953,7 +916,7 @@ function an(e) {
|
|
|
953
916
|
continue;
|
|
954
917
|
case "measure-unit":
|
|
955
918
|
case "unit":
|
|
956
|
-
t.style = "unit", t.unit =
|
|
919
|
+
t.style = "unit", t.unit = Xr(i.options[0]);
|
|
957
920
|
continue;
|
|
958
921
|
case "compact-short":
|
|
959
922
|
case "K":
|
|
@@ -964,13 +927,13 @@ function an(e) {
|
|
|
964
927
|
t.notation = "compact", t.compactDisplay = "long";
|
|
965
928
|
continue;
|
|
966
929
|
case "scientific":
|
|
967
|
-
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
968
|
-
return x(x({},
|
|
930
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(f, a) {
|
|
931
|
+
return x(x({}, f), et(a));
|
|
969
932
|
}, {}));
|
|
970
933
|
continue;
|
|
971
934
|
case "engineering":
|
|
972
|
-
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
973
|
-
return x(x({},
|
|
935
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(f, a) {
|
|
936
|
+
return x(x({}, f), et(a));
|
|
974
937
|
}, {}));
|
|
975
938
|
continue;
|
|
976
939
|
case "notation-simple":
|
|
@@ -1015,11 +978,11 @@ function an(e) {
|
|
|
1015
978
|
case "integer-width":
|
|
1016
979
|
if (i.options.length > 1)
|
|
1017
980
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1018
|
-
i.options[0].replace(
|
|
981
|
+
i.options[0].replace(zr, function(f, a, h, c, l, d) {
|
|
1019
982
|
if (a)
|
|
1020
|
-
t.minimumIntegerDigits =
|
|
983
|
+
t.minimumIntegerDigits = h.length;
|
|
1021
984
|
else {
|
|
1022
|
-
if (c &&
|
|
985
|
+
if (c && l)
|
|
1023
986
|
throw new Error("We currently do not support maximum integer digits");
|
|
1024
987
|
if (d)
|
|
1025
988
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1028,32 +991,32 @@ function an(e) {
|
|
|
1028
991
|
});
|
|
1029
992
|
continue;
|
|
1030
993
|
}
|
|
1031
|
-
if (
|
|
994
|
+
if (Nt.test(i.stem)) {
|
|
1032
995
|
t.minimumIntegerDigits = i.stem.length;
|
|
1033
996
|
continue;
|
|
1034
997
|
}
|
|
1035
|
-
if (
|
|
998
|
+
if (Ye.test(i.stem)) {
|
|
1036
999
|
if (i.options.length > 1)
|
|
1037
1000
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1038
|
-
i.stem.replace(
|
|
1039
|
-
return
|
|
1001
|
+
i.stem.replace(Ye, function(f, a, h, c, l, d) {
|
|
1002
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : l && d ? (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1040
1003
|
});
|
|
1041
1004
|
var s = i.options[0];
|
|
1042
|
-
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t),
|
|
1005
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), Ke(s)));
|
|
1043
1006
|
continue;
|
|
1044
1007
|
}
|
|
1045
|
-
if (
|
|
1046
|
-
t = x(x({}, t),
|
|
1008
|
+
if (wt.test(i.stem)) {
|
|
1009
|
+
t = x(x({}, t), Ke(i.stem));
|
|
1047
1010
|
continue;
|
|
1048
1011
|
}
|
|
1049
|
-
var o =
|
|
1012
|
+
var o = Lt(i.stem);
|
|
1050
1013
|
o && (t = x(x({}, t), o));
|
|
1051
|
-
var u =
|
|
1014
|
+
var u = Wr(i.stem);
|
|
1052
1015
|
u && (t = x(x({}, t), u));
|
|
1053
1016
|
}
|
|
1054
1017
|
return t;
|
|
1055
1018
|
}
|
|
1056
|
-
var
|
|
1019
|
+
var le = {
|
|
1057
1020
|
"001": [
|
|
1058
1021
|
"H",
|
|
1059
1022
|
"h"
|
|
@@ -2468,22 +2431,22 @@ var fe = {
|
|
|
2468
2431
|
"h"
|
|
2469
2432
|
]
|
|
2470
2433
|
};
|
|
2471
|
-
function
|
|
2434
|
+
function Qr(e, t) {
|
|
2472
2435
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2473
2436
|
var i = e.charAt(n);
|
|
2474
2437
|
if (i === "j") {
|
|
2475
2438
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2476
2439
|
s++, n++;
|
|
2477
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1),
|
|
2440
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), f = "a", a = qr(t);
|
|
2478
2441
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2479
|
-
r +=
|
|
2442
|
+
r += f;
|
|
2480
2443
|
for (; o-- > 0; )
|
|
2481
2444
|
r = a + r;
|
|
2482
2445
|
} else i === "J" ? r += "H" : r += i;
|
|
2483
2446
|
}
|
|
2484
2447
|
return r;
|
|
2485
2448
|
}
|
|
2486
|
-
function
|
|
2449
|
+
function qr(e) {
|
|
2487
2450
|
var t = e.hourCycle;
|
|
2488
2451
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2489
2452
|
e.hourCycles && // @ts-ignore
|
|
@@ -2502,23 +2465,23 @@ function hn(e) {
|
|
|
2502
2465
|
}
|
|
2503
2466
|
var r = e.language, n;
|
|
2504
2467
|
r !== "root" && (n = e.maximize().region);
|
|
2505
|
-
var i =
|
|
2468
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2506
2469
|
return i[0];
|
|
2507
2470
|
}
|
|
2508
|
-
var
|
|
2471
|
+
var Ae, Jr = new RegExp("^".concat(Pt.source, "*")), Yr = new RegExp("".concat(Pt.source, "*$"));
|
|
2509
2472
|
function _(e, t) {
|
|
2510
2473
|
return { start: e, end: t };
|
|
2511
2474
|
}
|
|
2512
|
-
var
|
|
2475
|
+
var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), en = !!String.fromCodePoint, tn = !!Object.fromEntries, rn = !!String.prototype.codePointAt, nn = !!String.prototype.trimStart, sn = !!String.prototype.trimEnd, on = !!Number.isSafeInteger, an = on ? Number.isSafeInteger : function(e) {
|
|
2513
2476
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2514
|
-
},
|
|
2477
|
+
}, Ie = !0;
|
|
2515
2478
|
try {
|
|
2516
|
-
var
|
|
2517
|
-
|
|
2518
|
-
} catch
|
|
2519
|
-
|
|
2479
|
+
var un = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2480
|
+
Ie = ((Ae = un.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2481
|
+
} catch {
|
|
2482
|
+
Ie = !1;
|
|
2520
2483
|
}
|
|
2521
|
-
var
|
|
2484
|
+
var tt = Kr ? (
|
|
2522
2485
|
// Native
|
|
2523
2486
|
function(t, r, n) {
|
|
2524
2487
|
return t.startsWith(r, n);
|
|
@@ -2528,7 +2491,7 @@ var ut = cn ? (
|
|
|
2528
2491
|
function(t, r, n) {
|
|
2529
2492
|
return t.slice(n, n + r.length) === r;
|
|
2530
2493
|
}
|
|
2531
|
-
),
|
|
2494
|
+
), Me = en ? String.fromCodePoint : (
|
|
2532
2495
|
// IE11
|
|
2533
2496
|
function() {
|
|
2534
2497
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2540,9 +2503,9 @@ var ut = cn ? (
|
|
|
2540
2503
|
}
|
|
2541
2504
|
return n;
|
|
2542
2505
|
}
|
|
2543
|
-
),
|
|
2506
|
+
), rt = (
|
|
2544
2507
|
// native
|
|
2545
|
-
|
|
2508
|
+
tn ? Object.fromEntries : (
|
|
2546
2509
|
// Ponyfill
|
|
2547
2510
|
function(t) {
|
|
2548
2511
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2552,7 +2515,7 @@ var ut = cn ? (
|
|
|
2552
2515
|
return r;
|
|
2553
2516
|
}
|
|
2554
2517
|
)
|
|
2555
|
-
),
|
|
2518
|
+
), It = rn ? (
|
|
2556
2519
|
// Native
|
|
2557
2520
|
function(t, r) {
|
|
2558
2521
|
return t.codePointAt(r);
|
|
@@ -2566,7 +2529,7 @@ var ut = cn ? (
|
|
|
2566
2529
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2567
2530
|
}
|
|
2568
2531
|
}
|
|
2569
|
-
),
|
|
2532
|
+
), hn = nn ? (
|
|
2570
2533
|
// Native
|
|
2571
2534
|
function(t) {
|
|
2572
2535
|
return t.trimStart();
|
|
@@ -2574,9 +2537,9 @@ var ut = cn ? (
|
|
|
2574
2537
|
) : (
|
|
2575
2538
|
// Ponyfill
|
|
2576
2539
|
function(t) {
|
|
2577
|
-
return t.replace(
|
|
2540
|
+
return t.replace(Jr, "");
|
|
2578
2541
|
}
|
|
2579
|
-
),
|
|
2542
|
+
), ln = sn ? (
|
|
2580
2543
|
// Native
|
|
2581
2544
|
function(t) {
|
|
2582
2545
|
return t.trimEnd();
|
|
@@ -2584,32 +2547,32 @@ var ut = cn ? (
|
|
|
2584
2547
|
) : (
|
|
2585
2548
|
// Ponyfill
|
|
2586
2549
|
function(t) {
|
|
2587
|
-
return t.replace(
|
|
2550
|
+
return t.replace(Yr, "");
|
|
2588
2551
|
}
|
|
2589
2552
|
);
|
|
2590
|
-
function
|
|
2553
|
+
function Mt(e, t) {
|
|
2591
2554
|
return new RegExp(e, t);
|
|
2592
2555
|
}
|
|
2593
|
-
var
|
|
2594
|
-
if (
|
|
2595
|
-
var
|
|
2596
|
-
|
|
2556
|
+
var $e;
|
|
2557
|
+
if (Ie) {
|
|
2558
|
+
var nt = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2559
|
+
$e = function(t, r) {
|
|
2597
2560
|
var n;
|
|
2598
|
-
|
|
2599
|
-
var i =
|
|
2561
|
+
nt.lastIndex = r;
|
|
2562
|
+
var i = nt.exec(t);
|
|
2600
2563
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2601
2564
|
};
|
|
2602
2565
|
} else
|
|
2603
|
-
|
|
2566
|
+
$e = function(t, r) {
|
|
2604
2567
|
for (var n = []; ; ) {
|
|
2605
|
-
var i =
|
|
2606
|
-
if (i === void 0 ||
|
|
2568
|
+
var i = It(t, r);
|
|
2569
|
+
if (i === void 0 || $t(i) || mn(i))
|
|
2607
2570
|
break;
|
|
2608
2571
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2609
2572
|
}
|
|
2610
|
-
return
|
|
2573
|
+
return Me.apply(void 0, n);
|
|
2611
2574
|
};
|
|
2612
|
-
var
|
|
2575
|
+
var fn = (
|
|
2613
2576
|
/** @class */
|
|
2614
2577
|
function() {
|
|
2615
2578
|
function e(t, r) {
|
|
@@ -2640,7 +2603,7 @@ var Cn = (
|
|
|
2640
2603
|
if (n)
|
|
2641
2604
|
break;
|
|
2642
2605
|
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2643
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2606
|
+
} else if (s === 60 && !this.ignoreTag && Re(this.peek() || 0)) {
|
|
2644
2607
|
var o = this.parseTag(t, r);
|
|
2645
2608
|
if (o.err)
|
|
2646
2609
|
return o;
|
|
@@ -2673,10 +2636,10 @@ var Cn = (
|
|
|
2673
2636
|
return s;
|
|
2674
2637
|
var o = s.val, u = this.clonePosition();
|
|
2675
2638
|
if (this.bumpIf("</")) {
|
|
2676
|
-
if (this.isEOF() || !
|
|
2639
|
+
if (this.isEOF() || !Re(this.char()))
|
|
2677
2640
|
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2678
|
-
var
|
|
2679
|
-
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(
|
|
2641
|
+
var f = this.clonePosition(), a = this.parseTagName();
|
|
2642
|
+
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2680
2643
|
val: {
|
|
2681
2644
|
type: C.tag,
|
|
2682
2645
|
value: i,
|
|
@@ -2691,7 +2654,7 @@ var Cn = (
|
|
|
2691
2654
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2692
2655
|
}, e.prototype.parseTagName = function() {
|
|
2693
2656
|
var t = this.offset();
|
|
2694
|
-
for (this.bump(); !this.isEOF() &&
|
|
2657
|
+
for (this.bump(); !this.isEOF() && gn(this.char()); )
|
|
2695
2658
|
this.bump();
|
|
2696
2659
|
return this.message.slice(t, this.offset());
|
|
2697
2660
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2713,14 +2676,14 @@ var Cn = (
|
|
|
2713
2676
|
}
|
|
2714
2677
|
break;
|
|
2715
2678
|
}
|
|
2716
|
-
var
|
|
2679
|
+
var f = _(n, this.clonePosition());
|
|
2717
2680
|
return {
|
|
2718
|
-
val: { type: C.literal, value: i, location:
|
|
2681
|
+
val: { type: C.literal, value: i, location: f },
|
|
2719
2682
|
err: null
|
|
2720
2683
|
};
|
|
2721
2684
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2722
2685
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2723
|
-
!
|
|
2686
|
+
!cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2724
2687
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2725
2688
|
if (this.isEOF() || this.char() !== 39)
|
|
2726
2689
|
return null;
|
|
@@ -2754,12 +2717,12 @@ var Cn = (
|
|
|
2754
2717
|
r.push(n);
|
|
2755
2718
|
this.bump();
|
|
2756
2719
|
}
|
|
2757
|
-
return
|
|
2720
|
+
return Me.apply(void 0, r);
|
|
2758
2721
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2759
2722
|
if (this.isEOF())
|
|
2760
2723
|
return null;
|
|
2761
2724
|
var n = this.char();
|
|
2762
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2725
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Me(n));
|
|
2763
2726
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2764
2727
|
var n = this.clonePosition();
|
|
2765
2728
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2788,15 +2751,15 @@ var Cn = (
|
|
|
2788
2751
|
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2789
2752
|
}
|
|
2790
2753
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2791
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2754
|
+
var t = this.clonePosition(), r = this.offset(), n = $e(this.message, r), i = r + n.length;
|
|
2792
2755
|
this.bumpTo(i);
|
|
2793
2756
|
var s = this.clonePosition(), o = _(t, s);
|
|
2794
2757
|
return { value: n, location: o };
|
|
2795
2758
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2796
|
-
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value,
|
|
2759
|
+
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, f = this.clonePosition();
|
|
2797
2760
|
switch (u) {
|
|
2798
2761
|
case "":
|
|
2799
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE, _(o,
|
|
2762
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, f));
|
|
2800
2763
|
case "number":
|
|
2801
2764
|
case "date":
|
|
2802
2765
|
case "time": {
|
|
@@ -2804,21 +2767,21 @@ var Cn = (
|
|
|
2804
2767
|
var a = null;
|
|
2805
2768
|
if (this.bumpIf(",")) {
|
|
2806
2769
|
this.bumpSpace();
|
|
2807
|
-
var
|
|
2770
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2808
2771
|
if (c.err)
|
|
2809
2772
|
return c;
|
|
2810
|
-
var
|
|
2811
|
-
if (
|
|
2773
|
+
var l = ln(c.val);
|
|
2774
|
+
if (l.length === 0)
|
|
2812
2775
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2813
|
-
var d = _(
|
|
2814
|
-
a = { style:
|
|
2776
|
+
var d = _(h, this.clonePosition());
|
|
2777
|
+
a = { style: l, styleLocation: d };
|
|
2815
2778
|
}
|
|
2816
2779
|
var p = this.tryParseArgumentClose(i);
|
|
2817
2780
|
if (p.err)
|
|
2818
2781
|
return p;
|
|
2819
2782
|
var g = _(i, this.clonePosition());
|
|
2820
|
-
if (a &&
|
|
2821
|
-
var E =
|
|
2783
|
+
if (a && tt(a?.style, "::", 0)) {
|
|
2784
|
+
var E = hn(a.style.slice(2));
|
|
2822
2785
|
if (u === "number") {
|
|
2823
2786
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2824
2787
|
return c.err ? c : {
|
|
@@ -2829,15 +2792,15 @@ var Cn = (
|
|
|
2829
2792
|
if (E.length === 0)
|
|
2830
2793
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2831
2794
|
var m = E;
|
|
2832
|
-
this.locale && (m =
|
|
2833
|
-
var
|
|
2834
|
-
type:
|
|
2795
|
+
this.locale && (m = Qr(E, this.locale));
|
|
2796
|
+
var l = {
|
|
2797
|
+
type: Q.dateTime,
|
|
2835
2798
|
pattern: m,
|
|
2836
2799
|
location: a.styleLocation,
|
|
2837
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2800
|
+
parsedOptions: this.shouldParseSkeletons ? jr(m) : {}
|
|
2838
2801
|
}, T = u === "date" ? C.date : C.time;
|
|
2839
2802
|
return {
|
|
2840
|
-
val: { type: T, value: n, location: g, style:
|
|
2803
|
+
val: { type: T, value: n, location: g, style: l },
|
|
2841
2804
|
err: null
|
|
2842
2805
|
};
|
|
2843
2806
|
}
|
|
@@ -2847,7 +2810,7 @@ var Cn = (
|
|
|
2847
2810
|
type: u === "number" ? C.number : u === "date" ? C.date : C.time,
|
|
2848
2811
|
value: n,
|
|
2849
2812
|
location: g,
|
|
2850
|
-
style: (s = a
|
|
2813
|
+
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2851
2814
|
},
|
|
2852
2815
|
err: null
|
|
2853
2816
|
};
|
|
@@ -2880,7 +2843,7 @@ var Cn = (
|
|
|
2880
2843
|
val: {
|
|
2881
2844
|
type: C.select,
|
|
2882
2845
|
value: n,
|
|
2883
|
-
options:
|
|
2846
|
+
options: rt(S.val),
|
|
2884
2847
|
location: w
|
|
2885
2848
|
},
|
|
2886
2849
|
err: null
|
|
@@ -2888,7 +2851,7 @@ var Cn = (
|
|
|
2888
2851
|
val: {
|
|
2889
2852
|
type: C.plural,
|
|
2890
2853
|
value: n,
|
|
2891
|
-
options:
|
|
2854
|
+
options: rt(S.val),
|
|
2892
2855
|
offset: B,
|
|
2893
2856
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2894
2857
|
location: w
|
|
@@ -2897,7 +2860,7 @@ var Cn = (
|
|
|
2897
2860
|
};
|
|
2898
2861
|
}
|
|
2899
2862
|
default:
|
|
2900
|
-
return this.error(y.INVALID_ARGUMENT_TYPE, _(o,
|
|
2863
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(o, f));
|
|
2901
2864
|
}
|
|
2902
2865
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2903
2866
|
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2939,33 +2902,33 @@ var Cn = (
|
|
|
2939
2902
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2940
2903
|
var n = [];
|
|
2941
2904
|
try {
|
|
2942
|
-
n =
|
|
2943
|
-
} catch
|
|
2905
|
+
n = Vr(t);
|
|
2906
|
+
} catch {
|
|
2944
2907
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2945
2908
|
}
|
|
2946
2909
|
return {
|
|
2947
2910
|
val: {
|
|
2948
|
-
type:
|
|
2911
|
+
type: Q.number,
|
|
2949
2912
|
tokens: n,
|
|
2950
2913
|
location: r,
|
|
2951
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2914
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
|
|
2952
2915
|
},
|
|
2953
2916
|
err: null
|
|
2954
2917
|
};
|
|
2955
2918
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2956
|
-
for (var s, o = !1, u = [],
|
|
2919
|
+
for (var s, o = !1, u = [], f = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
2957
2920
|
if (a.length === 0) {
|
|
2958
2921
|
var c = this.clonePosition();
|
|
2959
2922
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2960
|
-
var
|
|
2961
|
-
if (
|
|
2962
|
-
return
|
|
2963
|
-
|
|
2923
|
+
var l = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2924
|
+
if (l.err)
|
|
2925
|
+
return l;
|
|
2926
|
+
h = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
2964
2927
|
} else
|
|
2965
2928
|
break;
|
|
2966
2929
|
}
|
|
2967
|
-
if (
|
|
2968
|
-
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2930
|
+
if (f.has(a))
|
|
2931
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2969
2932
|
a === "other" && (o = !0), this.bumpSpace();
|
|
2970
2933
|
var d = this.clonePosition();
|
|
2971
2934
|
if (!this.bumpIf("{"))
|
|
@@ -2982,7 +2945,7 @@ var Cn = (
|
|
|
2982
2945
|
value: p.val,
|
|
2983
2946
|
location: _(d, this.clonePosition())
|
|
2984
2947
|
}
|
|
2985
|
-
]),
|
|
2948
|
+
]), f.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
2986
2949
|
}
|
|
2987
2950
|
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
2988
2951
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -2995,8 +2958,8 @@ var Cn = (
|
|
|
2995
2958
|
else
|
|
2996
2959
|
break;
|
|
2997
2960
|
}
|
|
2998
|
-
var
|
|
2999
|
-
return s ? (o *= n,
|
|
2961
|
+
var f = _(i, this.clonePosition());
|
|
2962
|
+
return s ? (o *= n, an(o) ? { val: o, err: null } : this.error(r, f)) : this.error(t, f);
|
|
3000
2963
|
}, e.prototype.offset = function() {
|
|
3001
2964
|
return this.position.offset;
|
|
3002
2965
|
}, e.prototype.isEOF = function() {
|
|
@@ -3011,7 +2974,7 @@ var Cn = (
|
|
|
3011
2974
|
var t = this.position.offset;
|
|
3012
2975
|
if (t >= this.message.length)
|
|
3013
2976
|
throw Error("out of bound");
|
|
3014
|
-
var r =
|
|
2977
|
+
var r = It(this.message, t);
|
|
3015
2978
|
if (r === void 0)
|
|
3016
2979
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3017
2980
|
return r;
|
|
@@ -3030,7 +2993,7 @@ var Cn = (
|
|
|
3030
2993
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3031
2994
|
}
|
|
3032
2995
|
}, e.prototype.bumpIf = function(t) {
|
|
3033
|
-
if (
|
|
2996
|
+
if (tt(this.message, t, this.offset())) {
|
|
3034
2997
|
for (var r = 0; r < t.length; r++)
|
|
3035
2998
|
this.bump();
|
|
3036
2999
|
return !0;
|
|
@@ -3052,56 +3015,56 @@ var Cn = (
|
|
|
3052
3015
|
break;
|
|
3053
3016
|
}
|
|
3054
3017
|
}, e.prototype.bumpSpace = function() {
|
|
3055
|
-
for (; !this.isEOF() &&
|
|
3018
|
+
for (; !this.isEOF() && $t(this.char()); )
|
|
3056
3019
|
this.bump();
|
|
3057
3020
|
}, e.prototype.peek = function() {
|
|
3058
3021
|
if (this.isEOF())
|
|
3059
3022
|
return null;
|
|
3060
3023
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3061
|
-
return n
|
|
3024
|
+
return n ?? null;
|
|
3062
3025
|
}, e;
|
|
3063
3026
|
}()
|
|
3064
3027
|
);
|
|
3065
|
-
function
|
|
3028
|
+
function Re(e) {
|
|
3066
3029
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3067
3030
|
}
|
|
3068
|
-
function
|
|
3069
|
-
return
|
|
3031
|
+
function cn(e) {
|
|
3032
|
+
return Re(e) || e === 47;
|
|
3070
3033
|
}
|
|
3071
|
-
function
|
|
3034
|
+
function gn(e) {
|
|
3072
3035
|
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;
|
|
3073
3036
|
}
|
|
3074
|
-
function
|
|
3037
|
+
function $t(e) {
|
|
3075
3038
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3076
3039
|
}
|
|
3077
|
-
function
|
|
3040
|
+
function mn(e) {
|
|
3078
3041
|
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;
|
|
3079
3042
|
}
|
|
3080
|
-
function
|
|
3043
|
+
function Ue(e) {
|
|
3081
3044
|
e.forEach(function(t) {
|
|
3082
|
-
if (delete t.location,
|
|
3045
|
+
if (delete t.location, At(t) || St(t))
|
|
3083
3046
|
for (var r in t.options)
|
|
3084
|
-
delete t.options[r].location,
|
|
3085
|
-
else
|
|
3047
|
+
delete t.options[r].location, Ue(t.options[r].value);
|
|
3048
|
+
else Ct(t) && Ot(t.style) || (Tt(t) || Ht(t)) && Le(t.style) ? delete t.style.location : Bt(t) && Ue(t.children);
|
|
3086
3049
|
});
|
|
3087
3050
|
}
|
|
3088
|
-
function
|
|
3051
|
+
function pn(e, t) {
|
|
3089
3052
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3090
|
-
var r = new
|
|
3053
|
+
var r = new fn(e, t).parse();
|
|
3091
3054
|
if (r.err) {
|
|
3092
3055
|
var n = SyntaxError(y[r.err.kind]);
|
|
3093
3056
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3094
3057
|
}
|
|
3095
|
-
return t
|
|
3058
|
+
return t?.captureLocation || Ue(r.val), r.val;
|
|
3096
3059
|
}
|
|
3097
|
-
var
|
|
3060
|
+
var q;
|
|
3098
3061
|
(function(e) {
|
|
3099
3062
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3100
|
-
})(
|
|
3101
|
-
var
|
|
3063
|
+
})(q || (q = {}));
|
|
3064
|
+
var _e = (
|
|
3102
3065
|
/** @class */
|
|
3103
3066
|
function(e) {
|
|
3104
|
-
|
|
3067
|
+
ye(t, e);
|
|
3105
3068
|
function t(r, n, i) {
|
|
3106
3069
|
var s = e.call(this, r) || this;
|
|
3107
3070
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3110,110 +3073,110 @@ var xe = (
|
|
|
3110
3073
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3111
3074
|
}, t;
|
|
3112
3075
|
}(Error)
|
|
3113
|
-
),
|
|
3076
|
+
), it = (
|
|
3114
3077
|
/** @class */
|
|
3115
3078
|
function(e) {
|
|
3116
|
-
|
|
3079
|
+
ye(t, e);
|
|
3117
3080
|
function t(r, n, i, s) {
|
|
3118
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3081
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3119
3082
|
}
|
|
3120
3083
|
return t;
|
|
3121
|
-
}(
|
|
3122
|
-
),
|
|
3084
|
+
}(_e)
|
|
3085
|
+
), dn = (
|
|
3123
3086
|
/** @class */
|
|
3124
3087
|
function(e) {
|
|
3125
|
-
|
|
3088
|
+
ye(t, e);
|
|
3126
3089
|
function t(r, n, i) {
|
|
3127
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3090
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3128
3091
|
}
|
|
3129
3092
|
return t;
|
|
3130
|
-
}(
|
|
3131
|
-
),
|
|
3093
|
+
}(_e)
|
|
3094
|
+
), bn = (
|
|
3132
3095
|
/** @class */
|
|
3133
3096
|
function(e) {
|
|
3134
|
-
|
|
3097
|
+
ye(t, e);
|
|
3135
3098
|
function t(r, n) {
|
|
3136
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3099
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3137
3100
|
}
|
|
3138
3101
|
return t;
|
|
3139
|
-
}(
|
|
3102
|
+
}(_e)
|
|
3140
3103
|
), P;
|
|
3141
3104
|
(function(e) {
|
|
3142
3105
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3143
3106
|
})(P || (P = {}));
|
|
3144
|
-
function
|
|
3107
|
+
function yn(e) {
|
|
3145
3108
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3146
3109
|
var n = t[t.length - 1];
|
|
3147
3110
|
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3148
3111
|
}, []);
|
|
3149
3112
|
}
|
|
3150
|
-
function
|
|
3113
|
+
function _n(e) {
|
|
3151
3114
|
return typeof e == "function";
|
|
3152
3115
|
}
|
|
3153
|
-
function
|
|
3154
|
-
if (e.length === 1 &&
|
|
3116
|
+
function ce(e, t, r, n, i, s, o) {
|
|
3117
|
+
if (e.length === 1 && Je(e[0]))
|
|
3155
3118
|
return [
|
|
3156
3119
|
{
|
|
3157
3120
|
type: P.literal,
|
|
3158
3121
|
value: e[0].value
|
|
3159
3122
|
}
|
|
3160
3123
|
];
|
|
3161
|
-
for (var u = [],
|
|
3162
|
-
var
|
|
3163
|
-
if (
|
|
3124
|
+
for (var u = [], f = 0, a = e; f < a.length; f++) {
|
|
3125
|
+
var h = a[f];
|
|
3126
|
+
if (Je(h)) {
|
|
3164
3127
|
u.push({
|
|
3165
3128
|
type: P.literal,
|
|
3166
|
-
value:
|
|
3129
|
+
value: h.value
|
|
3167
3130
|
});
|
|
3168
3131
|
continue;
|
|
3169
3132
|
}
|
|
3170
|
-
if (
|
|
3133
|
+
if (Dr(h)) {
|
|
3171
3134
|
typeof s == "number" && u.push({
|
|
3172
3135
|
type: P.literal,
|
|
3173
3136
|
value: r.getNumberFormat(t).format(s)
|
|
3174
3137
|
});
|
|
3175
3138
|
continue;
|
|
3176
3139
|
}
|
|
3177
|
-
var c =
|
|
3140
|
+
var c = h.value;
|
|
3178
3141
|
if (!(i && c in i))
|
|
3179
|
-
throw new
|
|
3180
|
-
var
|
|
3181
|
-
if (
|
|
3182
|
-
(!
|
|
3183
|
-
type: typeof
|
|
3184
|
-
value:
|
|
3142
|
+
throw new bn(c, o);
|
|
3143
|
+
var l = i[c];
|
|
3144
|
+
if (Gr(h)) {
|
|
3145
|
+
(!l || typeof l == "string" || typeof l == "number") && (l = typeof l == "string" || typeof l == "number" ? String(l) : ""), u.push({
|
|
3146
|
+
type: typeof l == "string" ? P.literal : P.object,
|
|
3147
|
+
value: l
|
|
3185
3148
|
});
|
|
3186
3149
|
continue;
|
|
3187
3150
|
}
|
|
3188
|
-
if (
|
|
3189
|
-
var d = typeof
|
|
3151
|
+
if (Tt(h)) {
|
|
3152
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Le(h.style) ? h.style.parsedOptions : void 0;
|
|
3190
3153
|
u.push({
|
|
3191
3154
|
type: P.literal,
|
|
3192
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3155
|
+
value: r.getDateTimeFormat(t, d).format(l)
|
|
3193
3156
|
});
|
|
3194
3157
|
continue;
|
|
3195
3158
|
}
|
|
3196
|
-
if (
|
|
3197
|
-
var d = typeof
|
|
3159
|
+
if (Ht(h)) {
|
|
3160
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Le(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3198
3161
|
u.push({
|
|
3199
3162
|
type: P.literal,
|
|
3200
|
-
value: r.getDateTimeFormat(t, d).format(
|
|
3163
|
+
value: r.getDateTimeFormat(t, d).format(l)
|
|
3201
3164
|
});
|
|
3202
3165
|
continue;
|
|
3203
3166
|
}
|
|
3204
|
-
if (
|
|
3205
|
-
var d = typeof
|
|
3206
|
-
d && d.scale && (
|
|
3167
|
+
if (Ct(h)) {
|
|
3168
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Ot(h.style) ? h.style.parsedOptions : void 0;
|
|
3169
|
+
d && d.scale && (l = l * (d.scale || 1)), u.push({
|
|
3207
3170
|
type: P.literal,
|
|
3208
|
-
value: r.getNumberFormat(t, d).format(
|
|
3171
|
+
value: r.getNumberFormat(t, d).format(l)
|
|
3209
3172
|
});
|
|
3210
3173
|
continue;
|
|
3211
3174
|
}
|
|
3212
|
-
if (
|
|
3213
|
-
var p =
|
|
3214
|
-
if (!
|
|
3215
|
-
throw new
|
|
3216
|
-
var m =
|
|
3175
|
+
if (Bt(h)) {
|
|
3176
|
+
var p = h.children, g = h.value, E = i[g];
|
|
3177
|
+
if (!_n(E))
|
|
3178
|
+
throw new dn(g, "function", o);
|
|
3179
|
+
var m = ce(p, t, r, n, i, s), T = E(m.map(function(B) {
|
|
3217
3180
|
return B.value;
|
|
3218
3181
|
}));
|
|
3219
3182
|
Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(B) {
|
|
@@ -3223,42 +3186,42 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3223
3186
|
};
|
|
3224
3187
|
}));
|
|
3225
3188
|
}
|
|
3226
|
-
if (
|
|
3227
|
-
var A =
|
|
3189
|
+
if (At(h)) {
|
|
3190
|
+
var A = h.options[l] || h.options.other;
|
|
3228
3191
|
if (!A)
|
|
3229
|
-
throw new
|
|
3230
|
-
u.push.apply(u,
|
|
3192
|
+
throw new it(h.value, l, Object.keys(h.options), o);
|
|
3193
|
+
u.push.apply(u, ce(A.value, t, r, n, i));
|
|
3231
3194
|
continue;
|
|
3232
3195
|
}
|
|
3233
|
-
if (
|
|
3234
|
-
var A =
|
|
3196
|
+
if (St(h)) {
|
|
3197
|
+
var A = h.options["=".concat(l)];
|
|
3235
3198
|
if (!A) {
|
|
3236
3199
|
if (!Intl.PluralRules)
|
|
3237
|
-
throw new
|
|
3200
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3238
3201
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3239
|
-
`,
|
|
3240
|
-
var L = r.getPluralRules(t, { type:
|
|
3241
|
-
A =
|
|
3202
|
+
`, q.MISSING_INTL_API, o);
|
|
3203
|
+
var L = r.getPluralRules(t, { type: h.pluralType }).select(l - (h.offset || 0));
|
|
3204
|
+
A = h.options[L] || h.options.other;
|
|
3242
3205
|
}
|
|
3243
3206
|
if (!A)
|
|
3244
|
-
throw new
|
|
3245
|
-
u.push.apply(u,
|
|
3207
|
+
throw new it(h.value, l, Object.keys(h.options), o);
|
|
3208
|
+
u.push.apply(u, ce(A.value, t, r, n, i, l - (h.offset || 0)));
|
|
3246
3209
|
continue;
|
|
3247
3210
|
}
|
|
3248
3211
|
}
|
|
3249
|
-
return
|
|
3212
|
+
return yn(u);
|
|
3250
3213
|
}
|
|
3251
|
-
function
|
|
3214
|
+
function xn(e, t) {
|
|
3252
3215
|
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3253
3216
|
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3254
3217
|
}, {})) : e;
|
|
3255
3218
|
}
|
|
3256
|
-
function
|
|
3219
|
+
function En(e, t) {
|
|
3257
3220
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3258
|
-
return r[n] =
|
|
3221
|
+
return r[n] = xn(e[n], t[n]), r;
|
|
3259
3222
|
}, x({}, e)) : e;
|
|
3260
3223
|
}
|
|
3261
|
-
function
|
|
3224
|
+
function Se(e) {
|
|
3262
3225
|
return {
|
|
3263
3226
|
create: function() {
|
|
3264
3227
|
return {
|
|
@@ -3272,39 +3235,39 @@ function Oe(e) {
|
|
|
3272
3235
|
}
|
|
3273
3236
|
};
|
|
3274
3237
|
}
|
|
3275
|
-
function
|
|
3238
|
+
function vn(e) {
|
|
3276
3239
|
return e === void 0 && (e = {
|
|
3277
3240
|
number: {},
|
|
3278
3241
|
dateTime: {},
|
|
3279
3242
|
pluralRules: {}
|
|
3280
3243
|
}), {
|
|
3281
|
-
getNumberFormat:
|
|
3244
|
+
getNumberFormat: Te(function() {
|
|
3282
3245
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3283
3246
|
r[n] = arguments[n];
|
|
3284
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3247
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3285
3248
|
}, {
|
|
3286
|
-
cache:
|
|
3287
|
-
strategy:
|
|
3249
|
+
cache: Se(e.number),
|
|
3250
|
+
strategy: He.variadic
|
|
3288
3251
|
}),
|
|
3289
|
-
getDateTimeFormat:
|
|
3252
|
+
getDateTimeFormat: Te(function() {
|
|
3290
3253
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3291
3254
|
r[n] = arguments[n];
|
|
3292
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3255
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3293
3256
|
}, {
|
|
3294
|
-
cache:
|
|
3295
|
-
strategy:
|
|
3257
|
+
cache: Se(e.dateTime),
|
|
3258
|
+
strategy: He.variadic
|
|
3296
3259
|
}),
|
|
3297
|
-
getPluralRules:
|
|
3260
|
+
getPluralRules: Te(function() {
|
|
3298
3261
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3299
3262
|
r[n] = arguments[n];
|
|
3300
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3263
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3301
3264
|
}, {
|
|
3302
|
-
cache:
|
|
3303
|
-
strategy:
|
|
3265
|
+
cache: Se(e.pluralRules),
|
|
3266
|
+
strategy: He.variadic
|
|
3304
3267
|
})
|
|
3305
3268
|
};
|
|
3306
3269
|
}
|
|
3307
|
-
var
|
|
3270
|
+
var Cn = (
|
|
3308
3271
|
/** @class */
|
|
3309
3272
|
function() {
|
|
3310
3273
|
function e(t, r, n, i) {
|
|
@@ -3314,20 +3277,20 @@ var Mn = (
|
|
|
3314
3277
|
number: {},
|
|
3315
3278
|
dateTime: {},
|
|
3316
3279
|
pluralRules: {}
|
|
3317
|
-
}, this.format = function(
|
|
3318
|
-
var a = s.formatToParts(
|
|
3280
|
+
}, this.format = function(f) {
|
|
3281
|
+
var a = s.formatToParts(f);
|
|
3319
3282
|
if (a.length === 1)
|
|
3320
3283
|
return a[0].value;
|
|
3321
|
-
var
|
|
3322
|
-
return !c.length ||
|
|
3284
|
+
var h = a.reduce(function(c, l) {
|
|
3285
|
+
return !c.length || l.type !== P.literal || typeof c[c.length - 1] != "string" ? c.push(l.value) : c[c.length - 1] += l.value, c;
|
|
3323
3286
|
}, []);
|
|
3324
|
-
return
|
|
3325
|
-
}, this.formatToParts = function(
|
|
3326
|
-
return
|
|
3287
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3288
|
+
}, this.formatToParts = function(f) {
|
|
3289
|
+
return ce(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
|
|
3327
3290
|
}, this.resolvedOptions = function() {
|
|
3328
|
-
var
|
|
3291
|
+
var f;
|
|
3329
3292
|
return {
|
|
3330
|
-
locale: ((
|
|
3293
|
+
locale: ((f = s.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3331
3294
|
};
|
|
3332
3295
|
}, this.getAst = function() {
|
|
3333
3296
|
return s.ast;
|
|
@@ -3336,13 +3299,13 @@ var Mn = (
|
|
|
3336
3299
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3337
3300
|
var o = i || {};
|
|
3338
3301
|
o.formatters;
|
|
3339
|
-
var u =
|
|
3302
|
+
var u = wr(o, ["formatters"]);
|
|
3340
3303
|
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3341
3304
|
} else
|
|
3342
3305
|
this.ast = t;
|
|
3343
3306
|
if (!Array.isArray(this.ast))
|
|
3344
3307
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3345
|
-
this.formats =
|
|
3308
|
+
this.formats = En(e.formats, n), this.formatters = i && i.formatters || vn(this.formatterCache);
|
|
3346
3309
|
}
|
|
3347
3310
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3348
3311
|
get: function() {
|
|
@@ -3351,11 +3314,11 @@ var Mn = (
|
|
|
3351
3314
|
enumerable: !1,
|
|
3352
3315
|
configurable: !0
|
|
3353
3316
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3354
|
-
if (typeof Intl.Locale
|
|
3317
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3355
3318
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3356
3319
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3357
3320
|
}
|
|
3358
|
-
}, e.__parse =
|
|
3321
|
+
}, e.__parse = pn, e.formats = {
|
|
3359
3322
|
number: {
|
|
3360
3323
|
integer: {
|
|
3361
3324
|
maximumFractionDigits: 0
|
|
@@ -3416,7 +3379,7 @@ var Mn = (
|
|
|
3416
3379
|
}, e;
|
|
3417
3380
|
}()
|
|
3418
3381
|
);
|
|
3419
|
-
function
|
|
3382
|
+
function Tn(e, t) {
|
|
3420
3383
|
if (t == null)
|
|
3421
3384
|
return;
|
|
3422
3385
|
if (t in e)
|
|
@@ -3437,92 +3400,92 @@ function $n(e, t) {
|
|
|
3437
3400
|
n = void 0;
|
|
3438
3401
|
return n;
|
|
3439
3402
|
}
|
|
3440
|
-
const
|
|
3403
|
+
const G = {}, Hn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Rt = (e, t) => {
|
|
3441
3404
|
if (t == null)
|
|
3442
3405
|
return;
|
|
3443
|
-
if (t in
|
|
3444
|
-
return
|
|
3445
|
-
const r =
|
|
3406
|
+
if (t in G && e in G[t])
|
|
3407
|
+
return G[t][e];
|
|
3408
|
+
const r = xe(t);
|
|
3446
3409
|
for (let n = 0; n < r.length; n++) {
|
|
3447
|
-
const i = r[n], s =
|
|
3410
|
+
const i = r[n], s = Sn(i, e);
|
|
3448
3411
|
if (s)
|
|
3449
|
-
return
|
|
3412
|
+
return Hn(e, t, s);
|
|
3450
3413
|
}
|
|
3451
3414
|
};
|
|
3452
|
-
let
|
|
3453
|
-
const
|
|
3454
|
-
function
|
|
3455
|
-
return
|
|
3415
|
+
let Ve;
|
|
3416
|
+
const ae = be({});
|
|
3417
|
+
function An(e) {
|
|
3418
|
+
return Ve[e] || null;
|
|
3456
3419
|
}
|
|
3457
|
-
function
|
|
3458
|
-
return e in
|
|
3420
|
+
function Ut(e) {
|
|
3421
|
+
return e in Ve;
|
|
3459
3422
|
}
|
|
3460
|
-
function
|
|
3461
|
-
if (!
|
|
3423
|
+
function Sn(e, t) {
|
|
3424
|
+
if (!Ut(e))
|
|
3462
3425
|
return null;
|
|
3463
|
-
const r =
|
|
3464
|
-
return
|
|
3426
|
+
const r = An(e);
|
|
3427
|
+
return Tn(r, t);
|
|
3465
3428
|
}
|
|
3466
|
-
function
|
|
3429
|
+
function Bn(e) {
|
|
3467
3430
|
if (e == null)
|
|
3468
3431
|
return;
|
|
3469
|
-
const t =
|
|
3432
|
+
const t = xe(e);
|
|
3470
3433
|
for (let r = 0; r < t.length; r++) {
|
|
3471
3434
|
const n = t[r];
|
|
3472
|
-
if (
|
|
3435
|
+
if (Ut(n))
|
|
3473
3436
|
return n;
|
|
3474
3437
|
}
|
|
3475
3438
|
}
|
|
3476
|
-
function
|
|
3477
|
-
delete
|
|
3439
|
+
function Gt(e, ...t) {
|
|
3440
|
+
delete G[e], ae.update((r) => (r[e] = Pr.all([r[e] || {}, ...t]), r));
|
|
3478
3441
|
}
|
|
3479
|
-
|
|
3480
|
-
[
|
|
3442
|
+
K(
|
|
3443
|
+
[ae],
|
|
3481
3444
|
([e]) => Object.keys(e)
|
|
3482
3445
|
);
|
|
3483
|
-
|
|
3484
|
-
const
|
|
3485
|
-
function
|
|
3486
|
-
|
|
3446
|
+
ae.subscribe((e) => Ve = e);
|
|
3447
|
+
const ge = {};
|
|
3448
|
+
function On(e, t) {
|
|
3449
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
3487
3450
|
}
|
|
3488
|
-
function
|
|
3489
|
-
return
|
|
3451
|
+
function Dt(e) {
|
|
3452
|
+
return ge[e];
|
|
3490
3453
|
}
|
|
3491
|
-
function
|
|
3492
|
-
return
|
|
3493
|
-
const r =
|
|
3454
|
+
function Pn(e) {
|
|
3455
|
+
return xe(e).map((t) => {
|
|
3456
|
+
const r = Dt(t);
|
|
3494
3457
|
return [t, r ? [...r] : []];
|
|
3495
3458
|
}).filter(([, t]) => t.length > 0);
|
|
3496
3459
|
}
|
|
3497
|
-
function
|
|
3498
|
-
return e == null ? !1 :
|
|
3460
|
+
function Ge(e) {
|
|
3461
|
+
return e == null ? !1 : xe(e).some(
|
|
3499
3462
|
(t) => {
|
|
3500
3463
|
var r;
|
|
3501
|
-
return (r =
|
|
3464
|
+
return (r = Dt(t)) == null ? void 0 : r.size;
|
|
3502
3465
|
}
|
|
3503
3466
|
);
|
|
3504
3467
|
}
|
|
3505
|
-
function
|
|
3468
|
+
function wn(e, t) {
|
|
3506
3469
|
return Promise.all(
|
|
3507
|
-
t.map((n) => (
|
|
3508
|
-
).then((n) =>
|
|
3509
|
-
}
|
|
3510
|
-
const
|
|
3511
|
-
function
|
|
3512
|
-
if (!
|
|
3513
|
-
return e in
|
|
3514
|
-
const t =
|
|
3515
|
-
return
|
|
3470
|
+
t.map((n) => (On(e, n), n().then((i) => i.default || i)))
|
|
3471
|
+
).then((n) => Gt(e, ...n));
|
|
3472
|
+
}
|
|
3473
|
+
const re = {};
|
|
3474
|
+
function Ft(e) {
|
|
3475
|
+
if (!Ge(e))
|
|
3476
|
+
return e in re ? re[e] : Promise.resolve();
|
|
3477
|
+
const t = Pn(e);
|
|
3478
|
+
return re[e] = Promise.all(
|
|
3516
3479
|
t.map(
|
|
3517
|
-
([r, n]) =>
|
|
3480
|
+
([r, n]) => wn(r, n)
|
|
3518
3481
|
)
|
|
3519
3482
|
).then(() => {
|
|
3520
|
-
if (
|
|
3521
|
-
return
|
|
3522
|
-
delete
|
|
3523
|
-
}),
|
|
3483
|
+
if (Ge(e))
|
|
3484
|
+
return Ft(e);
|
|
3485
|
+
delete re[e];
|
|
3486
|
+
}), re[e];
|
|
3524
3487
|
}
|
|
3525
|
-
const
|
|
3488
|
+
const Nn = {
|
|
3526
3489
|
number: {
|
|
3527
3490
|
scientific: { notation: "scientific" },
|
|
3528
3491
|
engineering: { notation: "engineering" },
|
|
@@ -3551,178 +3514,178 @@ const Vn = {
|
|
|
3551
3514
|
timeZoneName: "short"
|
|
3552
3515
|
}
|
|
3553
3516
|
}
|
|
3554
|
-
},
|
|
3517
|
+
}, Ln = {
|
|
3555
3518
|
fallbackLocale: null,
|
|
3556
3519
|
loadingDelay: 200,
|
|
3557
|
-
formats:
|
|
3520
|
+
formats: Nn,
|
|
3558
3521
|
warnOnMissingMessages: !0,
|
|
3559
3522
|
handleMissingMessage: void 0,
|
|
3560
3523
|
ignoreTag: !0
|
|
3561
|
-
},
|
|
3562
|
-
function
|
|
3563
|
-
return
|
|
3524
|
+
}, In = Ln;
|
|
3525
|
+
function J() {
|
|
3526
|
+
return In;
|
|
3564
3527
|
}
|
|
3565
|
-
const
|
|
3566
|
-
var
|
|
3528
|
+
const Be = be(!1);
|
|
3529
|
+
var Mn = Object.defineProperty, $n = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, st = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Dn = (e, t) => {
|
|
3567
3530
|
for (var r in t)
|
|
3568
|
-
|
|
3569
|
-
if (
|
|
3570
|
-
for (var r of
|
|
3571
|
-
|
|
3531
|
+
Un.call(t, r) && ot(e, r, t[r]);
|
|
3532
|
+
if (st)
|
|
3533
|
+
for (var r of st(t))
|
|
3534
|
+
Gn.call(t, r) && ot(e, r, t[r]);
|
|
3572
3535
|
return e;
|
|
3573
|
-
},
|
|
3574
|
-
let
|
|
3575
|
-
const
|
|
3576
|
-
function
|
|
3536
|
+
}, Fn = (e, t) => $n(e, Rn(t));
|
|
3537
|
+
let De;
|
|
3538
|
+
const pe = be(null);
|
|
3539
|
+
function at(e) {
|
|
3577
3540
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3578
3541
|
}
|
|
3579
|
-
function
|
|
3580
|
-
const r =
|
|
3581
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3542
|
+
function xe(e, t = J().fallbackLocale) {
|
|
3543
|
+
const r = at(e);
|
|
3544
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...at(t)])] : r;
|
|
3582
3545
|
}
|
|
3583
|
-
function
|
|
3584
|
-
return
|
|
3546
|
+
function k() {
|
|
3547
|
+
return De ?? void 0;
|
|
3585
3548
|
}
|
|
3586
|
-
|
|
3587
|
-
|
|
3549
|
+
pe.subscribe((e) => {
|
|
3550
|
+
De = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3588
3551
|
});
|
|
3589
|
-
const
|
|
3590
|
-
if (e &&
|
|
3591
|
-
const { loadingDelay: t } =
|
|
3552
|
+
const jn = (e) => {
|
|
3553
|
+
if (e && Bn(e) && Ge(e)) {
|
|
3554
|
+
const { loadingDelay: t } = J();
|
|
3592
3555
|
let r;
|
|
3593
|
-
return typeof window
|
|
3594
|
-
() =>
|
|
3556
|
+
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3557
|
+
() => Be.set(!0),
|
|
3595
3558
|
t
|
|
3596
|
-
) :
|
|
3597
|
-
|
|
3559
|
+
) : Be.set(!0), Ft(e).then(() => {
|
|
3560
|
+
pe.set(e);
|
|
3598
3561
|
}).finally(() => {
|
|
3599
|
-
clearTimeout(r),
|
|
3562
|
+
clearTimeout(r), Be.set(!1);
|
|
3600
3563
|
});
|
|
3601
3564
|
}
|
|
3602
|
-
return
|
|
3603
|
-
},
|
|
3604
|
-
set:
|
|
3605
|
-
}),
|
|
3565
|
+
return pe.set(e);
|
|
3566
|
+
}, ee = Fn(Dn({}, pe), {
|
|
3567
|
+
set: jn
|
|
3568
|
+
}), Ee = (e) => {
|
|
3606
3569
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3607
3570
|
return (n) => {
|
|
3608
3571
|
const i = JSON.stringify(n);
|
|
3609
3572
|
return i in t ? t[i] : t[i] = e(n);
|
|
3610
3573
|
};
|
|
3611
3574
|
};
|
|
3612
|
-
var
|
|
3575
|
+
var kn = Object.defineProperty, de = Object.getOwnPropertySymbols, jt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
|
|
3613
3576
|
for (var r in t || (t = {}))
|
|
3614
|
-
|
|
3615
|
-
if (
|
|
3616
|
-
for (var r of
|
|
3617
|
-
|
|
3577
|
+
jt.call(t, r) && ut(e, r, t[r]);
|
|
3578
|
+
if (de)
|
|
3579
|
+
for (var r of de(t))
|
|
3580
|
+
kt.call(t, r) && ut(e, r, t[r]);
|
|
3618
3581
|
return e;
|
|
3619
|
-
},
|
|
3582
|
+
}, te = (e, t) => {
|
|
3620
3583
|
var r = {};
|
|
3621
3584
|
for (var n in e)
|
|
3622
|
-
|
|
3623
|
-
if (e != null &&
|
|
3624
|
-
for (var n of
|
|
3625
|
-
t.indexOf(n) < 0 &&
|
|
3585
|
+
jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3586
|
+
if (e != null && de)
|
|
3587
|
+
for (var n of de(e))
|
|
3588
|
+
t.indexOf(n) < 0 && kt.call(e, n) && (r[n] = e[n]);
|
|
3626
3589
|
return r;
|
|
3627
3590
|
};
|
|
3628
|
-
const
|
|
3629
|
-
const { formats: r } =
|
|
3591
|
+
const se = (e, t) => {
|
|
3592
|
+
const { formats: r } = J();
|
|
3630
3593
|
if (e in r && t in r[e])
|
|
3631
3594
|
return r[e][t];
|
|
3632
3595
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3633
|
-
},
|
|
3596
|
+
}, Vn = Ee(
|
|
3634
3597
|
(e) => {
|
|
3635
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3598
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3636
3599
|
if (r == null)
|
|
3637
3600
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3638
|
-
return n && (i =
|
|
3601
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
3639
3602
|
}
|
|
3640
|
-
),
|
|
3603
|
+
), Xn = Ee(
|
|
3641
3604
|
(e) => {
|
|
3642
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3605
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3643
3606
|
if (r == null)
|
|
3644
3607
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3645
|
-
return n ? i =
|
|
3608
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3646
3609
|
}
|
|
3647
|
-
),
|
|
3610
|
+
), zn = Ee(
|
|
3648
3611
|
(e) => {
|
|
3649
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3612
|
+
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3650
3613
|
if (r == null)
|
|
3651
3614
|
throw new Error(
|
|
3652
3615
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3653
3616
|
);
|
|
3654
|
-
return n ? i =
|
|
3617
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3655
3618
|
}
|
|
3656
|
-
),
|
|
3619
|
+
), Wn = (e = {}) => {
|
|
3657
3620
|
var t = e, {
|
|
3658
|
-
locale: r =
|
|
3659
|
-
} = t, n =
|
|
3621
|
+
locale: r = k()
|
|
3622
|
+
} = t, n = te(t, [
|
|
3660
3623
|
"locale"
|
|
3661
3624
|
]);
|
|
3662
|
-
return
|
|
3663
|
-
},
|
|
3625
|
+
return Vn(Xe({ locale: r }, n));
|
|
3626
|
+
}, Zn = (e = {}) => {
|
|
3664
3627
|
var t = e, {
|
|
3665
|
-
locale: r =
|
|
3666
|
-
} = t, n =
|
|
3628
|
+
locale: r = k()
|
|
3629
|
+
} = t, n = te(t, [
|
|
3667
3630
|
"locale"
|
|
3668
3631
|
]);
|
|
3669
|
-
return
|
|
3670
|
-
},
|
|
3632
|
+
return Xn(Xe({ locale: r }, n));
|
|
3633
|
+
}, Qn = (e = {}) => {
|
|
3671
3634
|
var t = e, {
|
|
3672
|
-
locale: r =
|
|
3673
|
-
} = t, n =
|
|
3635
|
+
locale: r = k()
|
|
3636
|
+
} = t, n = te(t, [
|
|
3674
3637
|
"locale"
|
|
3675
3638
|
]);
|
|
3676
|
-
return
|
|
3677
|
-
},
|
|
3639
|
+
return zn(Xe({ locale: r }, n));
|
|
3640
|
+
}, qn = Ee(
|
|
3678
3641
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3679
|
-
(e, t =
|
|
3680
|
-
ignoreTag:
|
|
3642
|
+
(e, t = k()) => new Cn(e, t, J().formats, {
|
|
3643
|
+
ignoreTag: J().ignoreTag
|
|
3681
3644
|
})
|
|
3682
|
-
),
|
|
3645
|
+
), Jn = (e, t = {}) => {
|
|
3683
3646
|
var r, n, i, s;
|
|
3684
3647
|
let o = t;
|
|
3685
3648
|
typeof e == "object" && (o = e, e = o.id);
|
|
3686
3649
|
const {
|
|
3687
3650
|
values: u,
|
|
3688
|
-
locale:
|
|
3651
|
+
locale: f = k(),
|
|
3689
3652
|
default: a
|
|
3690
3653
|
} = o;
|
|
3691
|
-
if (
|
|
3654
|
+
if (f == null)
|
|
3692
3655
|
throw new Error(
|
|
3693
3656
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3694
3657
|
);
|
|
3695
|
-
let
|
|
3696
|
-
if (!
|
|
3697
|
-
|
|
3698
|
-
else if (typeof
|
|
3658
|
+
let h = Rt(e, f);
|
|
3659
|
+
if (!h)
|
|
3660
|
+
h = (s = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3661
|
+
else if (typeof h != "string")
|
|
3699
3662
|
return console.warn(
|
|
3700
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3701
|
-
),
|
|
3663
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3664
|
+
), h;
|
|
3702
3665
|
if (!u)
|
|
3703
|
-
return
|
|
3704
|
-
let c =
|
|
3666
|
+
return h;
|
|
3667
|
+
let c = h;
|
|
3705
3668
|
try {
|
|
3706
|
-
c =
|
|
3707
|
-
} catch (
|
|
3708
|
-
|
|
3669
|
+
c = qn(h, f).format(u);
|
|
3670
|
+
} catch (l) {
|
|
3671
|
+
l instanceof Error && console.warn(
|
|
3709
3672
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3710
|
-
|
|
3673
|
+
l.message
|
|
3711
3674
|
);
|
|
3712
3675
|
}
|
|
3713
3676
|
return c;
|
|
3714
|
-
},
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
function
|
|
3720
|
-
|
|
3721
|
-
}
|
|
3722
|
-
function
|
|
3723
|
-
|
|
3724
|
-
}
|
|
3725
|
-
const
|
|
3677
|
+
}, Yn = (e, t) => Qn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = k()) => Rt(e, t), ri = K([ee, ae], () => Jn);
|
|
3678
|
+
K([ee], () => Yn);
|
|
3679
|
+
K([ee], () => Kn);
|
|
3680
|
+
K([ee], () => ei);
|
|
3681
|
+
K([ee, ae], () => ti);
|
|
3682
|
+
function ht(e, t) {
|
|
3683
|
+
Gt(e, t);
|
|
3684
|
+
}
|
|
3685
|
+
function ni(e) {
|
|
3686
|
+
ee.set(e);
|
|
3687
|
+
}
|
|
3688
|
+
const lt = {
|
|
3726
3689
|
en: {
|
|
3727
3690
|
topCategories: "Top Categories",
|
|
3728
3691
|
otherCategories: "Other Categories",
|
|
@@ -3832,84 +3795,84 @@ const bt = {
|
|
|
3832
3795
|
games: "games"
|
|
3833
3796
|
}
|
|
3834
3797
|
};
|
|
3835
|
-
function
|
|
3836
|
-
|
|
3798
|
+
function ii(e) {
|
|
3799
|
+
qt(e, "svelte-131a9uf", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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}");
|
|
3837
3800
|
}
|
|
3838
|
-
function
|
|
3801
|
+
function ft(e, t, r) {
|
|
3839
3802
|
const n = e.slice();
|
|
3840
3803
|
return n[24] = t[r], n;
|
|
3841
3804
|
}
|
|
3842
|
-
function
|
|
3805
|
+
function ct(e, t, r) {
|
|
3843
3806
|
const n = e.slice();
|
|
3844
3807
|
return n[24] = t[r], n;
|
|
3845
3808
|
}
|
|
3846
|
-
function
|
|
3809
|
+
function si(e) {
|
|
3847
3810
|
let t, r, n = (
|
|
3848
3811
|
/*$_*/
|
|
3849
3812
|
e[5]("topCategories") + ""
|
|
3850
|
-
), i, s, o, u,
|
|
3813
|
+
), i, s, o, u, f = (
|
|
3851
3814
|
/*$_*/
|
|
3852
3815
|
e[5]("otherCategories") + ""
|
|
3853
|
-
), a,
|
|
3816
|
+
), a, h, c = he(
|
|
3854
3817
|
/*topCategories*/
|
|
3855
3818
|
e[3]
|
|
3856
|
-
),
|
|
3819
|
+
), l = [];
|
|
3857
3820
|
for (let g = 0; g < c.length; g += 1)
|
|
3858
|
-
|
|
3859
|
-
let d =
|
|
3821
|
+
l[g] = gt(ct(e, c, g));
|
|
3822
|
+
let d = he(
|
|
3860
3823
|
/*otherCategories*/
|
|
3861
3824
|
e[4]
|
|
3862
3825
|
), p = [];
|
|
3863
3826
|
for (let g = 0; g < d.length; g += 1)
|
|
3864
|
-
p[g] =
|
|
3827
|
+
p[g] = mt(ft(e, d, g));
|
|
3865
3828
|
return {
|
|
3866
3829
|
c() {
|
|
3867
|
-
t = O("div"), r = O("h4"), i =
|
|
3868
|
-
for (let g = 0; g <
|
|
3869
|
-
|
|
3870
|
-
o =
|
|
3830
|
+
t = O("div"), r = O("h4"), i = R(n), s = $();
|
|
3831
|
+
for (let g = 0; g < l.length; g += 1)
|
|
3832
|
+
l[g].c();
|
|
3833
|
+
o = $(), u = O("h4"), a = R(f), h = $();
|
|
3871
3834
|
for (let g = 0; g < p.length; g += 1)
|
|
3872
3835
|
p[g].c();
|
|
3873
3836
|
H(r, "class", "CategoryTitle"), H(u, "class", "CategoryTitle"), H(t, "class", "CasinoCategories");
|
|
3874
3837
|
},
|
|
3875
3838
|
m(g, E) {
|
|
3876
|
-
|
|
3877
|
-
for (let m = 0; m <
|
|
3878
|
-
|
|
3879
|
-
v(t, o), v(t, u), v(u, a), v(t,
|
|
3839
|
+
Y(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
3840
|
+
for (let m = 0; m < l.length; m += 1)
|
|
3841
|
+
l[m] && l[m].m(t, null);
|
|
3842
|
+
v(t, o), v(t, u), v(u, a), v(t, h);
|
|
3880
3843
|
for (let m = 0; m < p.length; m += 1)
|
|
3881
3844
|
p[m] && p[m].m(t, null);
|
|
3882
3845
|
},
|
|
3883
3846
|
p(g, E) {
|
|
3884
3847
|
if (E & /*$_*/
|
|
3885
3848
|
32 && n !== (n = /*$_*/
|
|
3886
|
-
g[5]("topCategories") + "") &&
|
|
3849
|
+
g[5]("topCategories") + "") && D(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3887
3850
|
105) {
|
|
3888
|
-
c =
|
|
3851
|
+
c = he(
|
|
3889
3852
|
/*topCategories*/
|
|
3890
3853
|
g[3]
|
|
3891
3854
|
);
|
|
3892
3855
|
let m;
|
|
3893
3856
|
for (m = 0; m < c.length; m += 1) {
|
|
3894
|
-
const T =
|
|
3895
|
-
|
|
3857
|
+
const T = ct(g, c, m);
|
|
3858
|
+
l[m] ? l[m].p(T, E) : (l[m] = gt(T), l[m].c(), l[m].m(t, o));
|
|
3896
3859
|
}
|
|
3897
|
-
for (; m <
|
|
3898
|
-
|
|
3899
|
-
|
|
3860
|
+
for (; m < l.length; m += 1)
|
|
3861
|
+
l[m].d(1);
|
|
3862
|
+
l.length = c.length;
|
|
3900
3863
|
}
|
|
3901
3864
|
if (E & /*$_*/
|
|
3902
|
-
32 &&
|
|
3903
|
-
g[5]("otherCategories") + "") &&
|
|
3865
|
+
32 && f !== (f = /*$_*/
|
|
3866
|
+
g[5]("otherCategories") + "") && D(a, f), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3904
3867
|
113) {
|
|
3905
|
-
d =
|
|
3868
|
+
d = he(
|
|
3906
3869
|
/*otherCategories*/
|
|
3907
3870
|
g[4]
|
|
3908
3871
|
);
|
|
3909
3872
|
let m;
|
|
3910
3873
|
for (m = 0; m < d.length; m += 1) {
|
|
3911
|
-
const T =
|
|
3912
|
-
p[m] ? p[m].p(T, E) : (p[m] =
|
|
3874
|
+
const T = ft(g, d, m);
|
|
3875
|
+
p[m] ? p[m].p(T, E) : (p[m] = mt(T), p[m].c(), p[m].m(t, null));
|
|
3913
3876
|
}
|
|
3914
3877
|
for (; m < p.length; m += 1)
|
|
3915
3878
|
p[m].d(1);
|
|
@@ -3917,30 +3880,30 @@ function bi(e) {
|
|
|
3917
3880
|
}
|
|
3918
3881
|
},
|
|
3919
3882
|
d(g) {
|
|
3920
|
-
g &&
|
|
3883
|
+
g && j(t), Ze(l, g), Ze(p, g);
|
|
3921
3884
|
}
|
|
3922
3885
|
};
|
|
3923
3886
|
}
|
|
3924
|
-
function
|
|
3887
|
+
function oi(e) {
|
|
3925
3888
|
let t;
|
|
3926
3889
|
return {
|
|
3927
3890
|
c() {
|
|
3928
3891
|
t = O("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
|
|
3929
3892
|
},
|
|
3930
3893
|
m(r, n) {
|
|
3931
|
-
|
|
3894
|
+
Y(r, t, n);
|
|
3932
3895
|
},
|
|
3933
|
-
p:
|
|
3896
|
+
p: I,
|
|
3934
3897
|
d(r) {
|
|
3935
|
-
r &&
|
|
3898
|
+
r && j(t);
|
|
3936
3899
|
}
|
|
3937
3900
|
};
|
|
3938
3901
|
}
|
|
3939
|
-
function
|
|
3940
|
-
let t, r, n, i, s, o, u,
|
|
3902
|
+
function gt(e) {
|
|
3903
|
+
let t, r, n, i, s, o, u, f = (
|
|
3941
3904
|
/*category*/
|
|
3942
3905
|
e[24].name + ""
|
|
3943
|
-
), a,
|
|
3906
|
+
), a, h, c, l = (
|
|
3944
3907
|
/*category*/
|
|
3945
3908
|
e[24].games.count + ""
|
|
3946
3909
|
), d, p, g = (
|
|
@@ -3958,41 +3921,41 @@ function xt(e) {
|
|
|
3958
3921
|
}
|
|
3959
3922
|
return {
|
|
3960
3923
|
c() {
|
|
3961
|
-
t = O("div"), r = O("img"), s =
|
|
3924
|
+
t = O("div"), r = O("img"), s = $(), o = O("div"), u = O("p"), a = R(f), h = $(), c = O("p"), d = R(l), p = $(), E = R(g), me(r.src, n = /*category*/
|
|
3962
3925
|
e[24].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
|
|
3963
3926
|
e[24].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
|
|
3964
3927
|
(e[0] === /*category*/
|
|
3965
3928
|
e[24].id ? "Active" : ""));
|
|
3966
3929
|
},
|
|
3967
3930
|
m(B, S) {
|
|
3968
|
-
|
|
3931
|
+
Y(B, t, S), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, d), v(c, p), v(c, E), T || (A = yt(t, "click", L), T = !0);
|
|
3969
3932
|
},
|
|
3970
3933
|
p(B, S) {
|
|
3971
3934
|
e = B, S & /*topCategories*/
|
|
3972
|
-
8 && !
|
|
3935
|
+
8 && !me(r.src, n = /*category*/
|
|
3973
3936
|
e[24].icon) && H(r, "src", n), S & /*topCategories*/
|
|
3974
3937
|
8 && i !== (i = /*category*/
|
|
3975
3938
|
e[24].name) && H(r, "alt", i), S & /*topCategories*/
|
|
3976
|
-
8 && h !== (h = /*category*/
|
|
3977
|
-
e[24].name + "") && F(a, h), S & /*topCategories*/
|
|
3978
3939
|
8 && f !== (f = /*category*/
|
|
3979
|
-
e[24].
|
|
3940
|
+
e[24].name + "") && D(a, f), S & /*topCategories*/
|
|
3941
|
+
8 && l !== (l = /*category*/
|
|
3942
|
+
e[24].games.count + "") && D(d, l), S & /*$_*/
|
|
3980
3943
|
32 && g !== (g = /*$_*/
|
|
3981
|
-
e[5]("games") + "") &&
|
|
3944
|
+
e[5]("games") + "") && D(E, g), S & /*activecategory, topCategories*/
|
|
3982
3945
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
3983
3946
|
(e[0] === /*category*/
|
|
3984
3947
|
e[24].id ? "Active" : "")) && H(t, "class", m);
|
|
3985
3948
|
},
|
|
3986
3949
|
d(B) {
|
|
3987
|
-
B &&
|
|
3950
|
+
B && j(t), T = !1, A();
|
|
3988
3951
|
}
|
|
3989
3952
|
};
|
|
3990
3953
|
}
|
|
3991
|
-
function
|
|
3992
|
-
let t, r, n, i, s, o, u,
|
|
3954
|
+
function mt(e) {
|
|
3955
|
+
let t, r, n, i, s, o, u, f = (
|
|
3993
3956
|
/*category*/
|
|
3994
3957
|
e[24].name + ""
|
|
3995
|
-
), a,
|
|
3958
|
+
), a, h, c, l = (
|
|
3996
3959
|
/*category*/
|
|
3997
3960
|
e[24].games.count + ""
|
|
3998
3961
|
), d, p, g = (
|
|
@@ -4010,42 +3973,42 @@ function Et(e) {
|
|
|
4010
3973
|
}
|
|
4011
3974
|
return {
|
|
4012
3975
|
c() {
|
|
4013
|
-
t = O("div"), r = O("img"), s =
|
|
3976
|
+
t = O("div"), r = O("img"), s = $(), o = O("div"), u = O("p"), a = R(f), h = $(), c = O("p"), d = R(l), p = $(), E = R(g), m = $(), me(r.src, n = /*category*/
|
|
4014
3977
|
e[24].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
|
|
4015
3978
|
e[24].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", T = "Category " + /*activecategory*/
|
|
4016
3979
|
(e[0] === /*category*/
|
|
4017
3980
|
e[24].id ? "Active" : ""));
|
|
4018
3981
|
},
|
|
4019
3982
|
m(S, w) {
|
|
4020
|
-
|
|
3983
|
+
Y(S, t, w), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, d), v(c, p), v(c, E), v(t, m), A || (L = yt(t, "click", B), A = !0);
|
|
4021
3984
|
},
|
|
4022
3985
|
p(S, w) {
|
|
4023
3986
|
e = S, w & /*otherCategories*/
|
|
4024
|
-
16 && !
|
|
3987
|
+
16 && !me(r.src, n = /*category*/
|
|
4025
3988
|
e[24].icon) && H(r, "src", n), w & /*otherCategories*/
|
|
4026
3989
|
16 && i !== (i = /*category*/
|
|
4027
3990
|
e[24].name) && H(r, "alt", i), w & /*otherCategories*/
|
|
4028
|
-
16 && h !== (h = /*category*/
|
|
4029
|
-
e[24].name + "") && F(a, h), w & /*otherCategories*/
|
|
4030
3991
|
16 && f !== (f = /*category*/
|
|
4031
|
-
e[24].
|
|
3992
|
+
e[24].name + "") && D(a, f), w & /*otherCategories*/
|
|
3993
|
+
16 && l !== (l = /*category*/
|
|
3994
|
+
e[24].games.count + "") && D(d, l), w & /*$_*/
|
|
4032
3995
|
32 && g !== (g = /*$_*/
|
|
4033
|
-
e[5]("games") + "") &&
|
|
3996
|
+
e[5]("games") + "") && D(E, g), w & /*activecategory, otherCategories*/
|
|
4034
3997
|
17 && T !== (T = "Category " + /*activecategory*/
|
|
4035
3998
|
(e[0] === /*category*/
|
|
4036
3999
|
e[24].id ? "Active" : "")) && H(t, "class", T);
|
|
4037
4000
|
},
|
|
4038
4001
|
d(S) {
|
|
4039
|
-
S &&
|
|
4002
|
+
S && j(t), A = !1, L();
|
|
4040
4003
|
}
|
|
4041
4004
|
};
|
|
4042
4005
|
}
|
|
4043
|
-
function
|
|
4006
|
+
function ai(e) {
|
|
4044
4007
|
let t;
|
|
4045
4008
|
function r(s, o) {
|
|
4046
4009
|
return (
|
|
4047
4010
|
/*isLoading*/
|
|
4048
|
-
s[2] ?
|
|
4011
|
+
s[2] ? oi : si
|
|
4049
4012
|
);
|
|
4050
4013
|
}
|
|
4051
4014
|
let n = r(e), i = n(e);
|
|
@@ -4054,31 +4017,31 @@ function _i(e) {
|
|
|
4054
4017
|
t = O("div"), i.c();
|
|
4055
4018
|
},
|
|
4056
4019
|
m(s, o) {
|
|
4057
|
-
|
|
4020
|
+
Y(s, t, o), i.m(t, null), e[16](t);
|
|
4058
4021
|
},
|
|
4059
4022
|
p(s, [o]) {
|
|
4060
4023
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4061
4024
|
},
|
|
4062
|
-
i:
|
|
4063
|
-
o:
|
|
4025
|
+
i: I,
|
|
4026
|
+
o: I,
|
|
4064
4027
|
d(s) {
|
|
4065
|
-
s &&
|
|
4028
|
+
s && j(t), i.d(), e[16](null);
|
|
4066
4029
|
}
|
|
4067
4030
|
};
|
|
4068
4031
|
}
|
|
4069
|
-
function
|
|
4032
|
+
function ui(e, t, r) {
|
|
4070
4033
|
let n;
|
|
4071
|
-
|
|
4072
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags:
|
|
4034
|
+
Qt(e, ri, (b) => r(5, n = b));
|
|
4035
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: f = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, l, d = !1;
|
|
4073
4036
|
const p = [];
|
|
4074
4037
|
let g = [], E = [];
|
|
4075
|
-
Object.keys(
|
|
4076
|
-
|
|
4038
|
+
Object.keys(lt).forEach((b) => {
|
|
4039
|
+
ht(b, lt[b]);
|
|
4077
4040
|
});
|
|
4078
4041
|
const m = () => {
|
|
4079
4042
|
fetch(c).then((N) => N.json()).then((N) => {
|
|
4080
|
-
Object.keys(N).forEach((
|
|
4081
|
-
|
|
4043
|
+
Object.keys(N).forEach((U) => {
|
|
4044
|
+
ht(U, N[U]);
|
|
4082
4045
|
});
|
|
4083
4046
|
}).catch((N) => {
|
|
4084
4047
|
console.log(N);
|
|
@@ -4088,27 +4051,24 @@ function xi(e, t, r) {
|
|
|
4088
4051
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4089
4052
|
b.searchParams.append("language", o), fetch(b).then((N) => N.json()).then((N) => {
|
|
4090
4053
|
r(2, d = !1);
|
|
4091
|
-
const
|
|
4054
|
+
const U = f.split(",").map((F) => F.trim());
|
|
4092
4055
|
p.push(...N.items);
|
|
4093
|
-
const
|
|
4094
|
-
|
|
4095
|
-
return ((Qe = j.flags) == null ? void 0 : Qe.indexOf(er)) >= 0;
|
|
4096
|
-
}));
|
|
4097
|
-
r(3, g = Ze.filter((j) => j.isTopCategory === !0)), r(4, E = Ze.filter((j) => j.isTopCategory === !1));
|
|
4056
|
+
const ze = p.filter((F) => !U.some((Wt) => F.flags?.indexOf(Wt) >= 0));
|
|
4057
|
+
r(3, g = ze.filter((F) => F.isTopCategory === !0)), r(4, E = ze.filter((F) => F.isTopCategory === !1));
|
|
4098
4058
|
});
|
|
4099
4059
|
}, A = (b) => {
|
|
4100
4060
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4101
4061
|
}, L = () => {
|
|
4102
|
-
|
|
4062
|
+
ni(o);
|
|
4103
4063
|
}, B = () => {
|
|
4104
4064
|
let b = document.createElement("style");
|
|
4105
|
-
b.innerHTML = a,
|
|
4065
|
+
b.innerHTML = a, l.appendChild(b);
|
|
4106
4066
|
}, S = () => {
|
|
4107
|
-
let b = new URL(
|
|
4108
|
-
fetch(b.href).then((
|
|
4109
|
-
N.innerHTML =
|
|
4067
|
+
let b = new URL(h), N = document.createElement("style");
|
|
4068
|
+
fetch(b.href).then((U) => U.text()).then((U) => {
|
|
4069
|
+
N.innerHTML = U, setTimeout(
|
|
4110
4070
|
() => {
|
|
4111
|
-
|
|
4071
|
+
l.appendChild(N);
|
|
4112
4072
|
},
|
|
4113
4073
|
1
|
|
4114
4074
|
), setTimeout(
|
|
@@ -4117,24 +4077,24 @@ function xi(e, t, r) {
|
|
|
4117
4077
|
500
|
|
4118
4078
|
);
|
|
4119
4079
|
});
|
|
4120
|
-
}, w = (b) => A(b.id),
|
|
4121
|
-
function
|
|
4122
|
-
|
|
4123
|
-
|
|
4080
|
+
}, w = (b) => A(b.id), Xt = (b) => A(b.id);
|
|
4081
|
+
function zt(b) {
|
|
4082
|
+
Oe[b ? "unshift" : "push"](() => {
|
|
4083
|
+
l = b, r(1, l);
|
|
4124
4084
|
});
|
|
4125
4085
|
}
|
|
4126
4086
|
return e.$$set = (b) => {
|
|
4127
|
-
"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,
|
|
4087
|
+
"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, f = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl);
|
|
4128
4088
|
}, e.$$.update = () => {
|
|
4129
4089
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4130
4090
|
384 && i && s && T(), e.$$.dirty & /*translationurl*/
|
|
4131
4091
|
8192 && c && m(), e.$$.dirty & /*lang*/
|
|
4132
4092
|
512 && o && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4133
|
-
2050 && a &&
|
|
4134
|
-
4098 &&
|
|
4093
|
+
2050 && a && l && B(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4094
|
+
4098 && h && l && S();
|
|
4135
4095
|
}, [
|
|
4136
4096
|
u,
|
|
4137
|
-
|
|
4097
|
+
l,
|
|
4138
4098
|
d,
|
|
4139
4099
|
g,
|
|
4140
4100
|
E,
|
|
@@ -4143,23 +4103,23 @@ function xi(e, t, r) {
|
|
|
4143
4103
|
i,
|
|
4144
4104
|
s,
|
|
4145
4105
|
o,
|
|
4146
|
-
|
|
4106
|
+
f,
|
|
4147
4107
|
a,
|
|
4148
|
-
|
|
4108
|
+
h,
|
|
4149
4109
|
c,
|
|
4150
4110
|
w,
|
|
4151
|
-
|
|
4152
|
-
|
|
4111
|
+
Xt,
|
|
4112
|
+
zt
|
|
4153
4113
|
];
|
|
4154
4114
|
}
|
|
4155
|
-
class
|
|
4115
|
+
class Vt extends cr {
|
|
4156
4116
|
constructor(t) {
|
|
4157
|
-
super(),
|
|
4117
|
+
super(), lr(
|
|
4158
4118
|
this,
|
|
4159
4119
|
t,
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4120
|
+
ui,
|
|
4121
|
+
ai,
|
|
4122
|
+
dt,
|
|
4163
4123
|
{
|
|
4164
4124
|
endpoint: 7,
|
|
4165
4125
|
datasource: 8,
|
|
@@ -4170,90 +4130,90 @@ class Jt extends Tr {
|
|
|
4170
4130
|
clientstylingurl: 12,
|
|
4171
4131
|
translationurl: 13
|
|
4172
4132
|
},
|
|
4173
|
-
|
|
4133
|
+
ii
|
|
4174
4134
|
);
|
|
4175
4135
|
}
|
|
4176
4136
|
get endpoint() {
|
|
4177
4137
|
return this.$$.ctx[7];
|
|
4178
4138
|
}
|
|
4179
4139
|
set endpoint(t) {
|
|
4180
|
-
this.$$set({ endpoint: t }),
|
|
4140
|
+
this.$$set({ endpoint: t }), M();
|
|
4181
4141
|
}
|
|
4182
4142
|
get datasource() {
|
|
4183
4143
|
return this.$$.ctx[8];
|
|
4184
4144
|
}
|
|
4185
4145
|
set datasource(t) {
|
|
4186
|
-
this.$$set({ datasource: t }),
|
|
4146
|
+
this.$$set({ datasource: t }), M();
|
|
4187
4147
|
}
|
|
4188
4148
|
get lang() {
|
|
4189
4149
|
return this.$$.ctx[9];
|
|
4190
4150
|
}
|
|
4191
4151
|
set lang(t) {
|
|
4192
|
-
this.$$set({ lang: t }),
|
|
4152
|
+
this.$$set({ lang: t }), M();
|
|
4193
4153
|
}
|
|
4194
4154
|
get activecategory() {
|
|
4195
4155
|
return this.$$.ctx[0];
|
|
4196
4156
|
}
|
|
4197
4157
|
set activecategory(t) {
|
|
4198
|
-
this.$$set({ activecategory: t }),
|
|
4158
|
+
this.$$set({ activecategory: t }), M();
|
|
4199
4159
|
}
|
|
4200
4160
|
get excludedflags() {
|
|
4201
4161
|
return this.$$.ctx[10];
|
|
4202
4162
|
}
|
|
4203
4163
|
set excludedflags(t) {
|
|
4204
|
-
this.$$set({ excludedflags: t }),
|
|
4164
|
+
this.$$set({ excludedflags: t }), M();
|
|
4205
4165
|
}
|
|
4206
4166
|
get clientstyling() {
|
|
4207
4167
|
return this.$$.ctx[11];
|
|
4208
4168
|
}
|
|
4209
4169
|
set clientstyling(t) {
|
|
4210
|
-
this.$$set({ clientstyling: t }),
|
|
4170
|
+
this.$$set({ clientstyling: t }), M();
|
|
4211
4171
|
}
|
|
4212
4172
|
get clientstylingurl() {
|
|
4213
4173
|
return this.$$.ctx[12];
|
|
4214
4174
|
}
|
|
4215
4175
|
set clientstylingurl(t) {
|
|
4216
|
-
this.$$set({ clientstylingurl: t }),
|
|
4176
|
+
this.$$set({ clientstylingurl: t }), M();
|
|
4217
4177
|
}
|
|
4218
4178
|
get translationurl() {
|
|
4219
4179
|
return this.$$.ctx[13];
|
|
4220
4180
|
}
|
|
4221
4181
|
set translationurl(t) {
|
|
4222
|
-
this.$$set({ translationurl: t }),
|
|
4182
|
+
this.$$set({ translationurl: t }), M();
|
|
4223
4183
|
}
|
|
4224
4184
|
}
|
|
4225
|
-
|
|
4226
|
-
const
|
|
4185
|
+
fr(Vt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4186
|
+
const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4227
4187
|
__proto__: null,
|
|
4228
|
-
default:
|
|
4188
|
+
default: Vt
|
|
4229
4189
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4230
4190
|
export {
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4191
|
+
ee as $,
|
|
4192
|
+
fi as C,
|
|
4193
|
+
cr as S,
|
|
4194
|
+
Gt as a,
|
|
4195
|
+
qt as b,
|
|
4196
|
+
fr as c,
|
|
4197
|
+
$ as d,
|
|
4238
4198
|
O as e,
|
|
4239
|
-
|
|
4199
|
+
M as f,
|
|
4240
4200
|
H as g,
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4201
|
+
li as h,
|
|
4202
|
+
lr as i,
|
|
4203
|
+
Y as j,
|
|
4244
4204
|
v as k,
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4205
|
+
yt as l,
|
|
4206
|
+
D as m,
|
|
4207
|
+
I as n,
|
|
4208
|
+
j as o,
|
|
4209
|
+
Qt as p,
|
|
4210
|
+
Oe as q,
|
|
4211
|
+
oe as r,
|
|
4212
|
+
dt as s,
|
|
4213
|
+
R as t,
|
|
4214
|
+
ri as u,
|
|
4215
|
+
he as v,
|
|
4216
|
+
hi as w,
|
|
4217
|
+
Ze as x,
|
|
4218
|
+
me as y
|
|
4259
4219
|
};
|