@everymatrix/casino-collections-providers 1.63.2 → 1.63.3
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/{CasinoCollectionsProviders-B1VO9UIp.js → CasinoCollectionsProviders-BtbkRi_X.js} +824 -829
- package/components/{CasinoCollectionsProviders-tpstUX6u.js → CasinoCollectionsProviders-BvCE1CcG.js} +796 -801
- package/components/CasinoCollectionsProviders-Bx2LMh1s.cjs +18 -0
- package/es2015/casino-collections-providers.cjs +1 -1
- package/es2015/casino-collections-providers.js +1 -1
- package/esnext/casino-collections-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCollectionsProviders-DCbQhqxv.cjs +0 -18
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-97d17652-B8yQdy7J.js +0 -542
- package/stencil/index-97d17652-C616IYj2.js +0 -558
- package/stencil/index-97d17652-C9Ph2JiE.cjs +0 -1
- package/stencil/ui-image-7da92f1f-26DzsVFt.js +0 -39
- package/stencil/ui-image-7da92f1f-BAghvEDf.js +0 -39
- package/stencil/ui-image-7da92f1f-BiVBd_OW.cjs +0 -1
- package/stencil/ui-image-Bz0nQwNJ.cjs +0 -1
- package/stencil/ui-image-DX8NqsyA.js +0 -25
- package/stencil/ui-image-o9dMcntc.js +0 -7
- package/stencil/ui-image_2-BXgptLvl.js +0 -154
- package/stencil/ui-image_2-Cctik3aF.cjs +0 -73
- package/stencil/ui-image_2-Cyqb4u7k.js +0 -154
package/components/{CasinoCollectionsProviders-B1VO9UIp.js → CasinoCollectionsProviders-BtbkRi_X.js}
RENAMED
@@ -1,17 +1,17 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var
|
1
|
+
var zr = Object.defineProperty, Zr = Object.defineProperties;
|
2
|
+
var Qr = Object.getOwnPropertyDescriptors;
|
3
|
+
var _t = Object.getOwnPropertySymbols;
|
4
|
+
var Jr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var Ne = (e, t, r) => t in e ? zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Jr.call(t, r) && Ne(e, r, t[r]);
|
8
|
+
if (_t)
|
9
|
+
for (var r of _t(t))
|
10
|
+
qr.call(t, r) && Ne(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var N = (e, t, r) => (
|
14
|
-
var
|
12
|
+
}, xt = (e, t) => Zr(e, Qr(t));
|
13
|
+
var N = (e, t, r) => (Ne(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
|
+
var St = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var o = (h) => {
|
16
16
|
try {
|
17
17
|
a(r.next(h));
|
@@ -27,32 +27,31 @@ var wt = (e, t, r) => new Promise((n, i) => {
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
28
28
|
a((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
|
-
import "../stencil/ui-image-DX8NqsyA.js";
|
31
30
|
function I() {
|
32
31
|
}
|
33
|
-
function
|
32
|
+
function er(e) {
|
34
33
|
return e();
|
35
34
|
}
|
36
|
-
function
|
35
|
+
function wt() {
|
37
36
|
return /* @__PURE__ */ Object.create(null);
|
38
37
|
}
|
39
|
-
function
|
40
|
-
e.forEach(
|
38
|
+
function te(e) {
|
39
|
+
e.forEach(er);
|
41
40
|
}
|
42
|
-
function
|
41
|
+
function at(e) {
|
43
42
|
return typeof e == "function";
|
44
43
|
}
|
45
|
-
function
|
44
|
+
function tr(e, t) {
|
46
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
47
46
|
}
|
48
|
-
let
|
49
|
-
function
|
50
|
-
return e === t ? !0 : (
|
47
|
+
let fe;
|
48
|
+
function ye(e, t) {
|
49
|
+
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
51
50
|
}
|
52
|
-
function
|
51
|
+
function Yr(e) {
|
53
52
|
return Object.keys(e).length === 0;
|
54
53
|
}
|
55
|
-
function
|
54
|
+
function rr(e, ...t) {
|
56
55
|
if (e == null) {
|
57
56
|
for (const n of t)
|
58
57
|
n(void 0);
|
@@ -61,20 +60,20 @@ function nr(e, ...t) {
|
|
61
60
|
const r = e.subscribe(...t);
|
62
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
63
62
|
}
|
64
|
-
function
|
65
|
-
e.$$.on_destroy.push(
|
63
|
+
function Kr(e, t, r) {
|
64
|
+
e.$$.on_destroy.push(rr(t, r));
|
66
65
|
}
|
67
|
-
function
|
66
|
+
function C(e, t) {
|
68
67
|
e.appendChild(t);
|
69
68
|
}
|
70
|
-
function
|
71
|
-
const n =
|
69
|
+
function en(e, t, r) {
|
70
|
+
const n = tn(e);
|
72
71
|
if (!n.getElementById(t)) {
|
73
|
-
const i =
|
74
|
-
i.id = t, i.textContent = r,
|
72
|
+
const i = P("style");
|
73
|
+
i.id = t, i.textContent = r, rn(n, i);
|
75
74
|
}
|
76
75
|
}
|
77
|
-
function
|
76
|
+
function tn(e) {
|
78
77
|
if (!e)
|
79
78
|
return document;
|
80
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -84,58 +83,54 @@ function rn(e) {
|
|
84
83
|
t
|
85
84
|
) : e.ownerDocument;
|
86
85
|
}
|
87
|
-
function
|
88
|
-
return
|
86
|
+
function rn(e, t) {
|
87
|
+
return C(
|
89
88
|
/** @type {Document} */
|
90
89
|
e.head || e,
|
91
90
|
t
|
92
91
|
), t.sheet;
|
93
92
|
}
|
94
|
-
function
|
93
|
+
function U(e, t, r) {
|
95
94
|
e.insertBefore(t, r || null);
|
96
95
|
}
|
97
96
|
function R(e) {
|
98
97
|
e.parentNode && e.parentNode.removeChild(e);
|
99
98
|
}
|
100
|
-
function
|
99
|
+
function nr(e, t) {
|
101
100
|
for (let r = 0; r < e.length; r += 1)
|
102
101
|
e[r] && e[r].d(t);
|
103
102
|
}
|
104
|
-
function
|
103
|
+
function P(e) {
|
105
104
|
return document.createElement(e);
|
106
105
|
}
|
107
|
-
function
|
106
|
+
function He(e) {
|
108
107
|
return document.createTextNode(e);
|
109
108
|
}
|
110
|
-
function
|
111
|
-
return
|
109
|
+
function V() {
|
110
|
+
return He(" ");
|
112
111
|
}
|
113
|
-
function
|
112
|
+
function _e(e, t, r, n) {
|
114
113
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
115
114
|
}
|
116
|
-
function
|
115
|
+
function nn(e) {
|
117
116
|
return function(t) {
|
118
117
|
return t.stopPropagation(), e.call(this, t);
|
119
118
|
};
|
120
119
|
}
|
121
|
-
function
|
120
|
+
function E(e, t, r) {
|
122
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
123
122
|
}
|
124
|
-
function
|
125
|
-
const n = t.toLowerCase();
|
126
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : P(e, t, r);
|
127
|
-
}
|
128
|
-
function sn(e) {
|
123
|
+
function on(e) {
|
129
124
|
return Array.from(e.childNodes);
|
130
125
|
}
|
131
|
-
function
|
126
|
+
function ut(e, t) {
|
132
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
133
128
|
t);
|
134
129
|
}
|
135
|
-
function
|
130
|
+
function Me(e, t, r, n) {
|
136
131
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
137
132
|
}
|
138
|
-
function
|
133
|
+
function sn(e) {
|
139
134
|
const t = {};
|
140
135
|
return e.childNodes.forEach(
|
141
136
|
/** @param {Element} node */
|
@@ -144,90 +139,90 @@ function an(e) {
|
|
144
139
|
}
|
145
140
|
), t;
|
146
141
|
}
|
147
|
-
let
|
148
|
-
function
|
149
|
-
|
142
|
+
let ae;
|
143
|
+
function se(e) {
|
144
|
+
ae = e;
|
150
145
|
}
|
151
|
-
function
|
152
|
-
if (!
|
146
|
+
function an() {
|
147
|
+
if (!ae)
|
153
148
|
throw new Error("Function called outside component initialization");
|
154
|
-
return
|
149
|
+
return ae;
|
155
150
|
}
|
156
|
-
function
|
157
|
-
|
151
|
+
function un(e) {
|
152
|
+
an().$$.on_mount.push(e);
|
158
153
|
}
|
159
|
-
const
|
160
|
-
let
|
161
|
-
const
|
162
|
-
let
|
163
|
-
function
|
164
|
-
|
154
|
+
const Q = [], Ee = [];
|
155
|
+
let J = [];
|
156
|
+
const Tt = [], ln = /* @__PURE__ */ Promise.resolve();
|
157
|
+
let Ve = !1;
|
158
|
+
function hn() {
|
159
|
+
Ve || (Ve = !0, ln.then(M));
|
165
160
|
}
|
166
|
-
function
|
167
|
-
|
161
|
+
function Xe(e) {
|
162
|
+
J.push(e);
|
168
163
|
}
|
169
|
-
const
|
170
|
-
let
|
164
|
+
const Re = /* @__PURE__ */ new Set();
|
165
|
+
let z = 0;
|
171
166
|
function M() {
|
172
|
-
if (
|
167
|
+
if (z !== 0)
|
173
168
|
return;
|
174
|
-
const e =
|
169
|
+
const e = ae;
|
175
170
|
do {
|
176
171
|
try {
|
177
|
-
for (;
|
178
|
-
const t =
|
179
|
-
|
172
|
+
for (; z < Q.length; ) {
|
173
|
+
const t = Q[z];
|
174
|
+
z++, se(t), cn(t.$$);
|
180
175
|
}
|
181
176
|
} catch (t) {
|
182
|
-
throw
|
177
|
+
throw Q.length = 0, z = 0, t;
|
183
178
|
}
|
184
|
-
for (
|
185
|
-
|
186
|
-
for (let t = 0; t <
|
187
|
-
const r =
|
188
|
-
|
179
|
+
for (se(null), Q.length = 0, z = 0; Ee.length; )
|
180
|
+
Ee.pop()();
|
181
|
+
for (let t = 0; t < J.length; t += 1) {
|
182
|
+
const r = J[t];
|
183
|
+
Re.has(r) || (Re.add(r), r());
|
189
184
|
}
|
190
|
-
|
191
|
-
} while (
|
192
|
-
for (;
|
193
|
-
|
194
|
-
|
185
|
+
J.length = 0;
|
186
|
+
} while (Q.length);
|
187
|
+
for (; Tt.length; )
|
188
|
+
Tt.pop()();
|
189
|
+
Ve = !1, Re.clear(), se(e);
|
195
190
|
}
|
196
|
-
function
|
191
|
+
function cn(e) {
|
197
192
|
if (e.fragment !== null) {
|
198
|
-
e.update(),
|
193
|
+
e.update(), te(e.before_update);
|
199
194
|
const t = e.dirty;
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
195
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
201
196
|
}
|
202
197
|
}
|
203
|
-
function
|
198
|
+
function fn(e) {
|
204
199
|
const t = [], r = [];
|
205
|
-
|
200
|
+
J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
|
206
201
|
}
|
207
|
-
const
|
208
|
-
function
|
209
|
-
e && e.i && (
|
202
|
+
const dn = /* @__PURE__ */ new Set();
|
203
|
+
function pn(e, t) {
|
204
|
+
e && e.i && (dn.delete(e), e.i(t));
|
210
205
|
}
|
211
|
-
function
|
206
|
+
function xe(e) {
|
212
207
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
213
208
|
}
|
214
|
-
function
|
209
|
+
function mn(e, t, r) {
|
215
210
|
const { fragment: n, after_update: i } = e.$$;
|
216
|
-
n && n.m(t, r),
|
217
|
-
const o = e.$$.on_mount.map(
|
218
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
219
|
-
}), i.forEach(
|
211
|
+
n && n.m(t, r), Xe(() => {
|
212
|
+
const o = e.$$.on_mount.map(er).filter(at);
|
213
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
214
|
+
}), i.forEach(Xe);
|
220
215
|
}
|
221
|
-
function
|
216
|
+
function bn(e, t) {
|
222
217
|
const r = e.$$;
|
223
|
-
r.fragment !== null && (
|
218
|
+
r.fragment !== null && (fn(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
224
219
|
}
|
225
|
-
function
|
226
|
-
e.$$.dirty[0] === -1 && (
|
220
|
+
function gn(e, t) {
|
221
|
+
e.$$.dirty[0] === -1 && (Q.push(e), hn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
227
222
|
}
|
228
|
-
function
|
229
|
-
const h =
|
230
|
-
|
223
|
+
function vn(e, t, r, n, i, o, s = null, a = [-1]) {
|
224
|
+
const h = ae;
|
225
|
+
se(e);
|
231
226
|
const l = e.$$ = {
|
232
227
|
fragment: null,
|
233
228
|
ctx: [],
|
@@ -235,7 +230,7 @@ function yn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
235
230
|
props: o,
|
236
231
|
update: I,
|
237
232
|
not_equal: i,
|
238
|
-
bound:
|
233
|
+
bound: wt(),
|
239
234
|
// lifecycle
|
240
235
|
on_mount: [],
|
241
236
|
on_destroy: [],
|
@@ -244,7 +239,7 @@ function yn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
244
239
|
after_update: [],
|
245
240
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
246
241
|
// everything else
|
247
|
-
callbacks:
|
242
|
+
callbacks: wt(),
|
248
243
|
dirty: a,
|
249
244
|
skip_bound: !1,
|
250
245
|
root: t.target || h.$$.root
|
@@ -253,19 +248,19 @@ function yn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
253
248
|
let u = !1;
|
254
249
|
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
255
250
|
const m = d.length ? d[0] : c;
|
256
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), u &&
|
257
|
-
}) : [], l.update(), u = !0,
|
251
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), u && gn(e, f)), c;
|
252
|
+
}) : [], l.update(), u = !0, te(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
258
253
|
if (t.hydrate) {
|
259
|
-
const f =
|
254
|
+
const f = on(t.target);
|
260
255
|
l.fragment && l.fragment.l(f), f.forEach(R);
|
261
256
|
} else
|
262
257
|
l.fragment && l.fragment.c();
|
263
|
-
t.intro &&
|
258
|
+
t.intro && pn(e.$$.fragment), mn(e, t.target, t.anchor), M();
|
264
259
|
}
|
265
|
-
|
260
|
+
se(h);
|
266
261
|
}
|
267
|
-
let
|
268
|
-
typeof HTMLElement == "function" && (
|
262
|
+
let ir;
|
263
|
+
typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
269
264
|
constructor(t, r, n) {
|
270
265
|
super();
|
271
266
|
/** The Svelte component constructor */
|
@@ -302,21 +297,21 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
302
297
|
}
|
303
298
|
}
|
304
299
|
connectedCallback() {
|
305
|
-
return
|
300
|
+
return St(this, null, function* () {
|
306
301
|
if (this.$$cn = !0, !this.$$c) {
|
307
302
|
let t = function(o) {
|
308
303
|
return () => {
|
309
304
|
let s;
|
310
305
|
return {
|
311
306
|
c: function() {
|
312
|
-
s =
|
307
|
+
s = P("slot"), o !== "default" && E(s, "name", o);
|
313
308
|
},
|
314
309
|
/**
|
315
310
|
* @param {HTMLElement} target
|
316
311
|
* @param {HTMLElement} [anchor]
|
317
312
|
*/
|
318
313
|
m: function(l, u) {
|
319
|
-
|
314
|
+
U(l, s, u);
|
320
315
|
},
|
321
316
|
d: function(l) {
|
322
317
|
l && R(s);
|
@@ -326,18 +321,18 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
326
321
|
};
|
327
322
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
328
323
|
return;
|
329
|
-
const r = {}, n =
|
324
|
+
const r = {}, n = sn(this);
|
330
325
|
for (const o of this.$$s)
|
331
326
|
o in n && (r[o] = [t(o)]);
|
332
327
|
for (const o of this.attributes) {
|
333
328
|
const s = this.$$g_p(o.name);
|
334
|
-
s in this.$$d || (this.$$d[s] =
|
329
|
+
s in this.$$d || (this.$$d[s] = me(s, o.value, this.$$p_d, "toProp"));
|
335
330
|
}
|
336
331
|
for (const o in this.$$p_d)
|
337
332
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
338
333
|
this.$$c = new this.$$ctor({
|
339
334
|
target: this.shadowRoot || this,
|
340
|
-
props:
|
335
|
+
props: xt(Et({}, this.$$d), {
|
341
336
|
$$slots: r,
|
342
337
|
$$scope: {
|
343
338
|
ctx: []
|
@@ -348,7 +343,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
348
343
|
this.$$r = !0;
|
349
344
|
for (const o in this.$$p_d)
|
350
345
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
351
|
-
const s =
|
346
|
+
const s = me(
|
352
347
|
o,
|
353
348
|
this.$$d[o],
|
354
349
|
this.$$p_d,
|
@@ -372,7 +367,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
372
367
|
// and setting attributes through setAttribute etc, this is helpful
|
373
368
|
attributeChangedCallback(t, r, n) {
|
374
369
|
var i;
|
375
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
370
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = me(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
376
371
|
}
|
377
372
|
disconnectedCallback() {
|
378
373
|
this.$$cn = !1, Promise.resolve().then(() => {
|
@@ -385,7 +380,7 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
385
380
|
) || t;
|
386
381
|
}
|
387
382
|
});
|
388
|
-
function
|
383
|
+
function me(e, t, r, n) {
|
389
384
|
var o;
|
390
385
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
391
386
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
@@ -415,8 +410,8 @@ function be(e, t, r, n) {
|
|
415
410
|
return t;
|
416
411
|
}
|
417
412
|
}
|
418
|
-
function
|
419
|
-
let s = class extends
|
413
|
+
function yn(e, t, r, n, i, o) {
|
414
|
+
let s = class extends ir {
|
420
415
|
constructor() {
|
421
416
|
super(e, r, i), this.$$p_d = t;
|
422
417
|
}
|
@@ -433,7 +428,7 @@ function _n(e, t, r, n, i, o) {
|
|
433
428
|
},
|
434
429
|
set(h) {
|
435
430
|
var l;
|
436
|
-
h =
|
431
|
+
h = me(a, h, t), this.$$d[a] = h, (l = this.$$c) == null || l.$set({ [a]: h });
|
437
432
|
}
|
438
433
|
});
|
439
434
|
}), n.forEach((a) => {
|
@@ -446,7 +441,7 @@ function _n(e, t, r, n, i, o) {
|
|
446
441
|
}), e.element = /** @type {any} */
|
447
442
|
s, s;
|
448
443
|
}
|
449
|
-
class
|
444
|
+
class _n {
|
450
445
|
constructor() {
|
451
446
|
/**
|
452
447
|
* ### PRIVATE API
|
@@ -467,7 +462,7 @@ class En {
|
|
467
462
|
}
|
468
463
|
/** @returns {void} */
|
469
464
|
$destroy() {
|
470
|
-
|
465
|
+
bn(this, 1), this.$destroy = I;
|
471
466
|
}
|
472
467
|
/**
|
473
468
|
* @template {Extract<keyof Events, string>} K
|
@@ -476,7 +471,7 @@ class En {
|
|
476
471
|
* @returns {() => void}
|
477
472
|
*/
|
478
473
|
$on(t, r) {
|
479
|
-
if (!
|
474
|
+
if (!at(r))
|
480
475
|
return I;
|
481
476
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
482
477
|
return n.push(r), () => {
|
@@ -489,29 +484,29 @@ class En {
|
|
489
484
|
* @returns {void}
|
490
485
|
*/
|
491
486
|
$set(t) {
|
492
|
-
this.$$set && !
|
487
|
+
this.$$set && !Yr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
493
488
|
}
|
494
489
|
}
|
495
|
-
const
|
496
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
497
|
-
const
|
498
|
-
function
|
490
|
+
const En = "4";
|
491
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(En);
|
492
|
+
const Z = [];
|
493
|
+
function xn(e, t) {
|
499
494
|
return {
|
500
|
-
subscribe:
|
495
|
+
subscribe: Ce(e, t).subscribe
|
501
496
|
};
|
502
497
|
}
|
503
|
-
function
|
498
|
+
function Ce(e, t = I) {
|
504
499
|
let r;
|
505
500
|
const n = /* @__PURE__ */ new Set();
|
506
501
|
function i(a) {
|
507
|
-
if (
|
508
|
-
const h = !
|
502
|
+
if (tr(e, a) && (e = a, r)) {
|
503
|
+
const h = !Z.length;
|
509
504
|
for (const l of n)
|
510
|
-
l[1](),
|
505
|
+
l[1](), Z.push(l, e);
|
511
506
|
if (h) {
|
512
|
-
for (let l = 0; l <
|
513
|
-
|
514
|
-
|
507
|
+
for (let l = 0; l < Z.length; l += 2)
|
508
|
+
Z[l][0](Z[l + 1]);
|
509
|
+
Z.length = 0;
|
515
510
|
}
|
516
511
|
}
|
517
512
|
}
|
@@ -526,12 +521,12 @@ function Pe(e, t = I) {
|
|
526
521
|
}
|
527
522
|
return { set: i, update: o, subscribe: s };
|
528
523
|
}
|
529
|
-
function
|
524
|
+
function re(e, t, r) {
|
530
525
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
531
526
|
if (!i.every(Boolean))
|
532
527
|
throw new Error("derived() expects stores as input, got a falsy value");
|
533
528
|
const o = t.length < 2;
|
534
|
-
return
|
529
|
+
return xn(r, (s, a) => {
|
535
530
|
let h = !1;
|
536
531
|
const l = [];
|
537
532
|
let u = 0, f = I;
|
@@ -540,9 +535,9 @@ function ne(e, t, r) {
|
|
540
535
|
return;
|
541
536
|
f();
|
542
537
|
const m = t(n ? l[0] : l, s, a);
|
543
|
-
o ? s(m) : f =
|
538
|
+
o ? s(m) : f = at(m) ? m : I;
|
544
539
|
}, d = i.map(
|
545
|
-
(m, b) =>
|
540
|
+
(m, b) => rr(
|
546
541
|
m,
|
547
542
|
(g) => {
|
548
543
|
l[b] = g, u &= ~(1 << b), h && c();
|
@@ -553,112 +548,112 @@ function ne(e, t, r) {
|
|
553
548
|
)
|
554
549
|
);
|
555
550
|
return h = !0, c(), function() {
|
556
|
-
|
551
|
+
te(d), f(), h = !1;
|
557
552
|
};
|
558
553
|
});
|
559
554
|
}
|
560
|
-
function
|
555
|
+
function Sn(e) {
|
561
556
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
562
557
|
}
|
563
|
-
var
|
564
|
-
return
|
558
|
+
var wn = function(t) {
|
559
|
+
return Tn(t) && !Hn(t);
|
565
560
|
};
|
566
|
-
function
|
561
|
+
function Tn(e) {
|
567
562
|
return !!e && typeof e == "object";
|
568
563
|
}
|
569
|
-
function
|
564
|
+
function Hn(e) {
|
570
565
|
var t = Object.prototype.toString.call(e);
|
571
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
566
|
+
return t === "[object RegExp]" || t === "[object Date]" || Bn(e);
|
572
567
|
}
|
573
|
-
var
|
574
|
-
function
|
575
|
-
return e.$$typeof ===
|
568
|
+
var Cn = typeof Symbol == "function" && Symbol.for, Pn = Cn ? Symbol.for("react.element") : 60103;
|
569
|
+
function Bn(e) {
|
570
|
+
return e.$$typeof === Pn;
|
576
571
|
}
|
577
|
-
function
|
572
|
+
function An(e) {
|
578
573
|
return Array.isArray(e) ? [] : {};
|
579
574
|
}
|
580
|
-
function
|
581
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
575
|
+
function ue(e, t) {
|
576
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(An(e), e, t) : e;
|
582
577
|
}
|
583
|
-
function
|
578
|
+
function On(e, t, r) {
|
584
579
|
return e.concat(t).map(function(n) {
|
585
|
-
return
|
580
|
+
return ue(n, r);
|
586
581
|
});
|
587
582
|
}
|
588
|
-
function
|
583
|
+
function Ln(e, t) {
|
589
584
|
if (!t.customMerge)
|
590
|
-
return
|
585
|
+
return q;
|
591
586
|
var r = t.customMerge(e);
|
592
|
-
return typeof r == "function" ? r :
|
587
|
+
return typeof r == "function" ? r : q;
|
593
588
|
}
|
594
|
-
function
|
589
|
+
function In(e) {
|
595
590
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
596
591
|
return Object.propertyIsEnumerable.call(e, t);
|
597
592
|
}) : [];
|
598
593
|
}
|
599
|
-
function
|
600
|
-
return Object.keys(e).concat(
|
594
|
+
function Ht(e) {
|
595
|
+
return Object.keys(e).concat(In(e));
|
601
596
|
}
|
602
|
-
function
|
597
|
+
function or(e, t) {
|
603
598
|
try {
|
604
599
|
return t in e;
|
605
600
|
} catch (r) {
|
606
601
|
return !1;
|
607
602
|
}
|
608
603
|
}
|
609
|
-
function
|
610
|
-
return
|
604
|
+
function Nn(e, t) {
|
605
|
+
return or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
611
606
|
}
|
612
|
-
function
|
607
|
+
function Mn(e, t, r) {
|
613
608
|
var n = {};
|
614
|
-
return r.isMergeableObject(e) &&
|
615
|
-
n[i] =
|
616
|
-
}),
|
617
|
-
|
609
|
+
return r.isMergeableObject(e) && Ht(e).forEach(function(i) {
|
610
|
+
n[i] = ue(e[i], r);
|
611
|
+
}), Ht(t).forEach(function(i) {
|
612
|
+
Nn(e, i) || (or(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ln(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
|
618
613
|
}), n;
|
619
614
|
}
|
620
|
-
function
|
621
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
615
|
+
function q(e, t, r) {
|
616
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || On, r.isMergeableObject = r.isMergeableObject || wn, r.cloneUnlessOtherwiseSpecified = ue;
|
622
617
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
623
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
618
|
+
return o ? n ? r.arrayMerge(e, t, r) : Mn(e, t, r) : ue(t, r);
|
624
619
|
}
|
625
|
-
|
620
|
+
q.all = function(t, r) {
|
626
621
|
if (!Array.isArray(t))
|
627
622
|
throw new Error("first argument should be an array");
|
628
623
|
return t.reduce(function(n, i) {
|
629
|
-
return
|
624
|
+
return q(n, i, r);
|
630
625
|
}, {});
|
631
626
|
};
|
632
|
-
var
|
633
|
-
const
|
634
|
-
var
|
635
|
-
return
|
627
|
+
var Rn = q, $n = Rn;
|
628
|
+
const Gn = /* @__PURE__ */ Sn($n);
|
629
|
+
var We = function(e, t) {
|
630
|
+
return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
636
631
|
r.__proto__ = n;
|
637
632
|
} || function(r, n) {
|
638
633
|
for (var i in n)
|
639
634
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
640
|
-
},
|
635
|
+
}, We(e, t);
|
641
636
|
};
|
642
|
-
function
|
637
|
+
function Pe(e, t) {
|
643
638
|
if (typeof t != "function" && t !== null)
|
644
639
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
645
|
-
|
640
|
+
We(e, t);
|
646
641
|
function r() {
|
647
642
|
this.constructor = e;
|
648
643
|
}
|
649
644
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
650
645
|
}
|
651
|
-
var
|
652
|
-
return
|
646
|
+
var G = function() {
|
647
|
+
return G = Object.assign || function(t) {
|
653
648
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
654
649
|
r = arguments[n];
|
655
650
|
for (var o in r)
|
656
651
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
657
652
|
}
|
658
653
|
return t;
|
659
|
-
},
|
654
|
+
}, G.apply(this, arguments);
|
660
655
|
};
|
661
|
-
function
|
656
|
+
function Un(e, t) {
|
662
657
|
var r = {};
|
663
658
|
for (var n in e)
|
664
659
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -667,43 +662,43 @@ function Dn(e, t) {
|
|
667
662
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
668
663
|
return r;
|
669
664
|
}
|
670
|
-
function
|
665
|
+
function $e(e, t, r) {
|
671
666
|
if (r || arguments.length === 2)
|
672
667
|
for (var n = 0, i = t.length, o; n < i; n++)
|
673
668
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
674
669
|
return e.concat(o || Array.prototype.slice.call(t));
|
675
670
|
}
|
676
|
-
function
|
677
|
-
var r = t && t.cache ? t.cache :
|
671
|
+
function Ge(e, t) {
|
672
|
+
var r = t && t.cache ? t.cache : Wn, n = t && t.serializer ? t.serializer : Vn, i = t && t.strategy ? t.strategy : jn;
|
678
673
|
return i(e, {
|
679
674
|
cache: r,
|
680
675
|
serializer: n
|
681
676
|
});
|
682
677
|
}
|
683
|
-
function
|
678
|
+
function Dn(e) {
|
684
679
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
685
680
|
}
|
686
|
-
function
|
687
|
-
var i =
|
681
|
+
function Fn(e, t, r, n) {
|
682
|
+
var i = Dn(n) ? n : r(n), o = t.get(i);
|
688
683
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
689
684
|
}
|
690
|
-
function
|
685
|
+
function sr(e, t, r) {
|
691
686
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
692
687
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
693
688
|
}
|
694
|
-
function
|
689
|
+
function ar(e, t, r, n, i) {
|
695
690
|
return r.bind(t, e, n, i);
|
696
691
|
}
|
697
|
-
function
|
698
|
-
var r = e.length === 1 ?
|
699
|
-
return
|
692
|
+
function jn(e, t) {
|
693
|
+
var r = e.length === 1 ? Fn : sr;
|
694
|
+
return ar(e, this, r, t.cache.create(), t.serializer);
|
700
695
|
}
|
701
|
-
function
|
702
|
-
return
|
696
|
+
function kn(e, t) {
|
697
|
+
return ar(e, this, sr, t.cache.create(), t.serializer);
|
703
698
|
}
|
704
|
-
var
|
699
|
+
var Vn = function() {
|
705
700
|
return JSON.stringify(arguments);
|
706
|
-
},
|
701
|
+
}, Xn = (
|
707
702
|
/** @class */
|
708
703
|
function() {
|
709
704
|
function e() {
|
@@ -715,71 +710,71 @@ var Xn = function() {
|
|
715
710
|
this.cache[t] = r;
|
716
711
|
}, e;
|
717
712
|
}()
|
718
|
-
),
|
713
|
+
), Wn = {
|
719
714
|
create: function() {
|
720
|
-
return new
|
715
|
+
return new Xn();
|
721
716
|
}
|
722
|
-
},
|
723
|
-
variadic:
|
724
|
-
},
|
725
|
-
return
|
717
|
+
}, Ue = {
|
718
|
+
variadic: kn
|
719
|
+
}, Se = function() {
|
720
|
+
return Se = Object.assign || function(t) {
|
726
721
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
727
722
|
r = arguments[n];
|
728
723
|
for (var o in r)
|
729
724
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
730
725
|
}
|
731
726
|
return t;
|
732
|
-
},
|
727
|
+
}, Se.apply(this, arguments);
|
733
728
|
};
|
734
729
|
var v;
|
735
730
|
(function(e) {
|
736
731
|
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";
|
737
732
|
})(v || (v = {}));
|
738
|
-
var
|
733
|
+
var S;
|
739
734
|
(function(e) {
|
740
735
|
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";
|
741
|
-
})(
|
742
|
-
var
|
736
|
+
})(S || (S = {}));
|
737
|
+
var Y;
|
743
738
|
(function(e) {
|
744
739
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
745
|
-
})(
|
746
|
-
function
|
747
|
-
return e.type ===
|
740
|
+
})(Y || (Y = {}));
|
741
|
+
function Ct(e) {
|
742
|
+
return e.type === S.literal;
|
748
743
|
}
|
749
|
-
function
|
750
|
-
return e.type ===
|
744
|
+
function zn(e) {
|
745
|
+
return e.type === S.argument;
|
746
|
+
}
|
747
|
+
function ur(e) {
|
748
|
+
return e.type === S.number;
|
751
749
|
}
|
752
750
|
function lr(e) {
|
753
|
-
return e.type ===
|
751
|
+
return e.type === S.date;
|
754
752
|
}
|
755
753
|
function hr(e) {
|
756
|
-
return e.type ===
|
754
|
+
return e.type === S.time;
|
757
755
|
}
|
758
756
|
function cr(e) {
|
759
|
-
return e.type ===
|
757
|
+
return e.type === S.select;
|
760
758
|
}
|
761
759
|
function fr(e) {
|
762
|
-
return e.type ===
|
760
|
+
return e.type === S.plural;
|
763
761
|
}
|
764
|
-
function
|
765
|
-
return e.type ===
|
762
|
+
function Zn(e) {
|
763
|
+
return e.type === S.pound;
|
766
764
|
}
|
767
|
-
function
|
768
|
-
return e.type ===
|
765
|
+
function dr(e) {
|
766
|
+
return e.type === S.tag;
|
769
767
|
}
|
770
768
|
function pr(e) {
|
771
|
-
return e.type ===
|
769
|
+
return !!(e && typeof e == "object" && e.type === Y.number);
|
772
770
|
}
|
773
|
-
function
|
774
|
-
return !!(e && typeof e == "object" && e.type ===
|
771
|
+
function ze(e) {
|
772
|
+
return !!(e && typeof e == "object" && e.type === Y.dateTime);
|
775
773
|
}
|
776
|
-
|
777
|
-
|
778
|
-
}
|
779
|
-
var br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Jn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
780
|
-
function qn(e) {
|
774
|
+
var mr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qn = /(?:[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;
|
775
|
+
function Jn(e) {
|
781
776
|
var t = {};
|
782
|
-
return e.replace(
|
777
|
+
return e.replace(Qn, function(r) {
|
783
778
|
var n = r.length;
|
784
779
|
switch (r[0]) {
|
785
780
|
case "G":
|
@@ -868,21 +863,21 @@ function qn(e) {
|
|
868
863
|
return "";
|
869
864
|
}), t;
|
870
865
|
}
|
871
|
-
var
|
872
|
-
return
|
866
|
+
var w = function() {
|
867
|
+
return w = Object.assign || function(t) {
|
873
868
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
874
869
|
r = arguments[n];
|
875
870
|
for (var o in r)
|
876
871
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
877
872
|
}
|
878
873
|
return t;
|
879
|
-
},
|
874
|
+
}, w.apply(this, arguments);
|
880
875
|
};
|
881
|
-
var
|
882
|
-
function
|
876
|
+
var qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
877
|
+
function Yn(e) {
|
883
878
|
if (e.length === 0)
|
884
879
|
throw new Error("Number skeleton cannot be empty");
|
885
|
-
for (var t = e.split(
|
880
|
+
for (var t = e.split(qn).filter(function(c) {
|
886
881
|
return c.length > 0;
|
887
882
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
888
883
|
var o = i[n], s = o.split("/");
|
@@ -897,17 +892,17 @@ function Kn(e) {
|
|
897
892
|
}
|
898
893
|
return r;
|
899
894
|
}
|
900
|
-
function
|
895
|
+
function Kn(e) {
|
901
896
|
return e.replace(/^(.*?)-/, "");
|
902
897
|
}
|
903
|
-
var
|
904
|
-
function
|
898
|
+
var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g, ei = /(\*)(0+)|(#+)(0+)|(0+)/g, gr = /^(0+)$/;
|
899
|
+
function Bt(e) {
|
905
900
|
var t = {};
|
906
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
901
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(br, function(r, n, i) {
|
907
902
|
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)), "";
|
908
903
|
}), t;
|
909
904
|
}
|
910
|
-
function
|
905
|
+
function vr(e) {
|
911
906
|
switch (e) {
|
912
907
|
case "sign-auto":
|
913
908
|
return {
|
@@ -947,7 +942,7 @@ function yr(e) {
|
|
947
942
|
};
|
948
943
|
}
|
949
944
|
}
|
950
|
-
function
|
945
|
+
function ti(e) {
|
951
946
|
var t;
|
952
947
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
953
948
|
notation: "engineering"
|
@@ -955,17 +950,17 @@ function ri(e) {
|
|
955
950
|
notation: "scientific"
|
956
951
|
}, e = e.slice(1)), t) {
|
957
952
|
var r = e.slice(0, 2);
|
958
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
953
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gr.test(e))
|
959
954
|
throw new Error("Malformed concise eng/scientific notation");
|
960
955
|
t.minimumIntegerDigits = e.length;
|
961
956
|
}
|
962
957
|
return t;
|
963
958
|
}
|
964
|
-
function
|
965
|
-
var t = {}, r =
|
959
|
+
function At(e) {
|
960
|
+
var t = {}, r = vr(e);
|
966
961
|
return r || t;
|
967
962
|
}
|
968
|
-
function
|
963
|
+
function ri(e) {
|
969
964
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
970
965
|
var i = n[r];
|
971
966
|
switch (i.stem) {
|
@@ -989,7 +984,7 @@ function ni(e) {
|
|
989
984
|
continue;
|
990
985
|
case "measure-unit":
|
991
986
|
case "unit":
|
992
|
-
t.style = "unit", t.unit =
|
987
|
+
t.style = "unit", t.unit = Kn(i.options[0]);
|
993
988
|
continue;
|
994
989
|
case "compact-short":
|
995
990
|
case "K":
|
@@ -1000,13 +995,13 @@ function ni(e) {
|
|
1000
995
|
t.notation = "compact", t.compactDisplay = "long";
|
1001
996
|
continue;
|
1002
997
|
case "scientific":
|
1003
|
-
t =
|
1004
|
-
return
|
998
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
999
|
+
return w(w({}, h), At(l));
|
1005
1000
|
}, {}));
|
1006
1001
|
continue;
|
1007
1002
|
case "engineering":
|
1008
|
-
t =
|
1009
|
-
return
|
1003
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1004
|
+
return w(w({}, h), At(l));
|
1010
1005
|
}, {}));
|
1011
1006
|
continue;
|
1012
1007
|
case "notation-simple":
|
@@ -1051,7 +1046,7 @@ function ni(e) {
|
|
1051
1046
|
case "integer-width":
|
1052
1047
|
if (i.options.length > 1)
|
1053
1048
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1054
|
-
i.options[0].replace(
|
1049
|
+
i.options[0].replace(ei, function(h, l, u, f, c, d) {
|
1055
1050
|
if (l)
|
1056
1051
|
t.minimumIntegerDigits = u.length;
|
1057
1052
|
else {
|
@@ -1064,32 +1059,32 @@ function ni(e) {
|
|
1064
1059
|
});
|
1065
1060
|
continue;
|
1066
1061
|
}
|
1067
|
-
if (
|
1062
|
+
if (gr.test(i.stem)) {
|
1068
1063
|
t.minimumIntegerDigits = i.stem.length;
|
1069
1064
|
continue;
|
1070
1065
|
}
|
1071
|
-
if (
|
1066
|
+
if (Pt.test(i.stem)) {
|
1072
1067
|
if (i.options.length > 1)
|
1073
1068
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1074
|
-
i.stem.replace(
|
1069
|
+
i.stem.replace(Pt, function(h, l, u, f, c, d) {
|
1075
1070
|
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1076
1071
|
});
|
1077
1072
|
var o = i.options[0];
|
1078
|
-
o === "w" ? t =
|
1073
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), Bt(o)));
|
1079
1074
|
continue;
|
1080
1075
|
}
|
1081
|
-
if (
|
1082
|
-
t =
|
1076
|
+
if (br.test(i.stem)) {
|
1077
|
+
t = w(w({}, t), Bt(i.stem));
|
1083
1078
|
continue;
|
1084
1079
|
}
|
1085
|
-
var s =
|
1086
|
-
s && (t =
|
1087
|
-
var a =
|
1088
|
-
a && (t =
|
1080
|
+
var s = vr(i.stem);
|
1081
|
+
s && (t = w(w({}, t), s));
|
1082
|
+
var a = ti(i.stem);
|
1083
|
+
a && (t = w(w({}, t), a));
|
1089
1084
|
}
|
1090
1085
|
return t;
|
1091
1086
|
}
|
1092
|
-
var
|
1087
|
+
var de = {
|
1093
1088
|
"001": [
|
1094
1089
|
"H",
|
1095
1090
|
"h"
|
@@ -2504,13 +2499,13 @@ var pe = {
|
|
2504
2499
|
"h"
|
2505
2500
|
]
|
2506
2501
|
};
|
2507
|
-
function
|
2502
|
+
function ni(e, t) {
|
2508
2503
|
for (var r = "", n = 0; n < e.length; n++) {
|
2509
2504
|
var i = e.charAt(n);
|
2510
2505
|
if (i === "j") {
|
2511
2506
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2512
2507
|
o++, n++;
|
2513
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
2508
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = ii(t);
|
2514
2509
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
2515
2510
|
r += h;
|
2516
2511
|
for (; s-- > 0; )
|
@@ -2520,7 +2515,7 @@ function ii(e, t) {
|
|
2520
2515
|
}
|
2521
2516
|
return r;
|
2522
2517
|
}
|
2523
|
-
function
|
2518
|
+
function ii(e) {
|
2524
2519
|
var t = e.hourCycle;
|
2525
2520
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2526
2521
|
e.hourCycles && // @ts-ignore
|
@@ -2539,23 +2534,23 @@ function oi(e) {
|
|
2539
2534
|
}
|
2540
2535
|
var r = e.language, n;
|
2541
2536
|
r !== "root" && (n = e.maximize().region);
|
2542
|
-
var i =
|
2537
|
+
var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
|
2543
2538
|
return i[0];
|
2544
2539
|
}
|
2545
|
-
var
|
2540
|
+
var De, oi = new RegExp("^".concat(mr.source, "*")), si = new RegExp("".concat(mr.source, "*$"));
|
2546
2541
|
function y(e, t) {
|
2547
2542
|
return { start: e, end: t };
|
2548
2543
|
}
|
2549
|
-
var
|
2544
|
+
var ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), ui = !!String.fromCodePoint, li = !!Object.fromEntries, hi = !!String.prototype.codePointAt, ci = !!String.prototype.trimStart, fi = !!String.prototype.trimEnd, di = !!Number.isSafeInteger, pi = di ? Number.isSafeInteger : function(e) {
|
2550
2545
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2551
|
-
},
|
2546
|
+
}, Ze = !0;
|
2552
2547
|
try {
|
2553
|
-
var
|
2554
|
-
|
2548
|
+
var mi = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2549
|
+
Ze = ((De = mi.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
2555
2550
|
} catch (e) {
|
2556
|
-
|
2551
|
+
Ze = !1;
|
2557
2552
|
}
|
2558
|
-
var
|
2553
|
+
var Ot = ai ? (
|
2559
2554
|
// Native
|
2560
2555
|
function(t, r, n) {
|
2561
2556
|
return t.startsWith(r, n);
|
@@ -2565,7 +2560,7 @@ var Lt = ui ? (
|
|
2565
2560
|
function(t, r, n) {
|
2566
2561
|
return t.slice(n, n + r.length) === r;
|
2567
2562
|
}
|
2568
|
-
),
|
2563
|
+
), Qe = ui ? String.fromCodePoint : (
|
2569
2564
|
// IE11
|
2570
2565
|
function() {
|
2571
2566
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2577,9 +2572,9 @@ var Lt = ui ? (
|
|
2577
2572
|
}
|
2578
2573
|
return n;
|
2579
2574
|
}
|
2580
|
-
),
|
2575
|
+
), Lt = (
|
2581
2576
|
// native
|
2582
|
-
|
2577
|
+
li ? Object.fromEntries : (
|
2583
2578
|
// Ponyfill
|
2584
2579
|
function(t) {
|
2585
2580
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2589,7 +2584,7 @@ var Lt = ui ? (
|
|
2589
2584
|
return r;
|
2590
2585
|
}
|
2591
2586
|
)
|
2592
|
-
),
|
2587
|
+
), yr = hi ? (
|
2593
2588
|
// Native
|
2594
2589
|
function(t, r) {
|
2595
2590
|
return t.codePointAt(r);
|
@@ -2603,7 +2598,7 @@ var Lt = ui ? (
|
|
2603
2598
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2604
2599
|
}
|
2605
2600
|
}
|
2606
|
-
),
|
2601
|
+
), bi = ci ? (
|
2607
2602
|
// Native
|
2608
2603
|
function(t) {
|
2609
2604
|
return t.trimStart();
|
@@ -2611,9 +2606,9 @@ var Lt = ui ? (
|
|
2611
2606
|
) : (
|
2612
2607
|
// Ponyfill
|
2613
2608
|
function(t) {
|
2614
|
-
return t.replace(
|
2609
|
+
return t.replace(oi, "");
|
2615
2610
|
}
|
2616
|
-
),
|
2611
|
+
), gi = fi ? (
|
2617
2612
|
// Native
|
2618
2613
|
function(t) {
|
2619
2614
|
return t.trimEnd();
|
@@ -2621,32 +2616,32 @@ var Lt = ui ? (
|
|
2621
2616
|
) : (
|
2622
2617
|
// Ponyfill
|
2623
2618
|
function(t) {
|
2624
|
-
return t.replace(
|
2619
|
+
return t.replace(si, "");
|
2625
2620
|
}
|
2626
2621
|
);
|
2627
|
-
function
|
2622
|
+
function _r(e, t) {
|
2628
2623
|
return new RegExp(e, t);
|
2629
2624
|
}
|
2630
|
-
var
|
2631
|
-
if (
|
2632
|
-
var
|
2633
|
-
|
2625
|
+
var Je;
|
2626
|
+
if (Ze) {
|
2627
|
+
var It = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2628
|
+
Je = function(t, r) {
|
2634
2629
|
var n;
|
2635
|
-
|
2636
|
-
var i =
|
2630
|
+
It.lastIndex = r;
|
2631
|
+
var i = It.exec(t);
|
2637
2632
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2638
2633
|
};
|
2639
2634
|
} else
|
2640
|
-
|
2635
|
+
Je = function(t, r) {
|
2641
2636
|
for (var n = []; ; ) {
|
2642
|
-
var i =
|
2643
|
-
if (i === void 0 ||
|
2637
|
+
var i = yr(t, r);
|
2638
|
+
if (i === void 0 || Er(i) || Ei(i))
|
2644
2639
|
break;
|
2645
2640
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2646
2641
|
}
|
2647
|
-
return
|
2642
|
+
return Qe.apply(void 0, n);
|
2648
2643
|
};
|
2649
|
-
var
|
2644
|
+
var vi = (
|
2650
2645
|
/** @class */
|
2651
2646
|
function() {
|
2652
2647
|
function e(t, r) {
|
@@ -2670,14 +2665,14 @@ var yi = (
|
|
2670
2665
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
2671
2666
|
var a = this.clonePosition();
|
2672
2667
|
this.bump(), i.push({
|
2673
|
-
type:
|
2668
|
+
type: S.pound,
|
2674
2669
|
location: y(a, this.clonePosition())
|
2675
2670
|
});
|
2676
2671
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2677
2672
|
if (n)
|
2678
2673
|
break;
|
2679
2674
|
return this.error(v.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
2680
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2675
|
+
} else if (o === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
2681
2676
|
var s = this.parseTag(t, r);
|
2682
2677
|
if (s.err)
|
2683
2678
|
return s;
|
@@ -2698,7 +2693,7 @@ var yi = (
|
|
2698
2693
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
2699
2694
|
return {
|
2700
2695
|
val: {
|
2701
|
-
type:
|
2696
|
+
type: S.literal,
|
2702
2697
|
value: "<".concat(i, "/>"),
|
2703
2698
|
location: y(n, this.clonePosition())
|
2704
2699
|
},
|
@@ -2710,12 +2705,12 @@ var yi = (
|
|
2710
2705
|
return o;
|
2711
2706
|
var s = o.val, a = this.clonePosition();
|
2712
2707
|
if (this.bumpIf("</")) {
|
2713
|
-
if (this.isEOF() || !
|
2708
|
+
if (this.isEOF() || !qe(this.char()))
|
2714
2709
|
return this.error(v.INVALID_TAG, y(a, this.clonePosition()));
|
2715
2710
|
var h = this.clonePosition(), l = this.parseTagName();
|
2716
2711
|
return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2717
2712
|
val: {
|
2718
|
-
type:
|
2713
|
+
type: S.tag,
|
2719
2714
|
value: i,
|
2720
2715
|
children: s,
|
2721
2716
|
location: y(n, this.clonePosition())
|
@@ -2728,7 +2723,7 @@ var yi = (
|
|
2728
2723
|
return this.error(v.INVALID_TAG, y(n, this.clonePosition()));
|
2729
2724
|
}, e.prototype.parseTagName = function() {
|
2730
2725
|
var t = this.offset();
|
2731
|
-
for (this.bump(); !this.isEOF() &&
|
2726
|
+
for (this.bump(); !this.isEOF() && _i(this.char()); )
|
2732
2727
|
this.bump();
|
2733
2728
|
return this.message.slice(t, this.offset());
|
2734
2729
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2752,12 +2747,12 @@ var yi = (
|
|
2752
2747
|
}
|
2753
2748
|
var h = y(n, this.clonePosition());
|
2754
2749
|
return {
|
2755
|
-
val: { type:
|
2750
|
+
val: { type: S.literal, value: i, location: h },
|
2756
2751
|
err: null
|
2757
2752
|
};
|
2758
2753
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2759
2754
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2760
|
-
!
|
2755
|
+
!yi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2761
2756
|
}, e.prototype.tryParseQuote = function(t) {
|
2762
2757
|
if (this.isEOF() || this.char() !== 39)
|
2763
2758
|
return null;
|
@@ -2791,12 +2786,12 @@ var yi = (
|
|
2791
2786
|
r.push(n);
|
2792
2787
|
this.bump();
|
2793
2788
|
}
|
2794
|
-
return
|
2789
|
+
return Qe.apply(void 0, r);
|
2795
2790
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
2796
2791
|
if (this.isEOF())
|
2797
2792
|
return null;
|
2798
2793
|
var n = this.char();
|
2799
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
2794
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Qe(n));
|
2800
2795
|
}, e.prototype.parseArgument = function(t, r) {
|
2801
2796
|
var n = this.clonePosition();
|
2802
2797
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -2812,7 +2807,7 @@ var yi = (
|
|
2812
2807
|
case 125:
|
2813
2808
|
return this.bump(), {
|
2814
2809
|
val: {
|
2815
|
-
type:
|
2810
|
+
type: S.argument,
|
2816
2811
|
// value does not include the opening and closing braces.
|
2817
2812
|
value: i,
|
2818
2813
|
location: y(n, this.clonePosition())
|
@@ -2825,7 +2820,7 @@ var yi = (
|
|
2825
2820
|
return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
2826
2821
|
}
|
2827
2822
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2828
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
2823
|
+
var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
|
2829
2824
|
this.bumpTo(i);
|
2830
2825
|
var o = this.clonePosition(), s = y(t, o);
|
2831
2826
|
return { value: n, location: s };
|
@@ -2844,7 +2839,7 @@ var yi = (
|
|
2844
2839
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
2845
2840
|
if (f.err)
|
2846
2841
|
return f;
|
2847
|
-
var c =
|
2842
|
+
var c = gi(f.val);
|
2848
2843
|
if (c.length === 0)
|
2849
2844
|
return this.error(v.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
2850
2845
|
var d = y(u, this.clonePosition());
|
@@ -2854,34 +2849,34 @@ var yi = (
|
|
2854
2849
|
if (m.err)
|
2855
2850
|
return m;
|
2856
2851
|
var b = y(i, this.clonePosition());
|
2857
|
-
if (l &&
|
2858
|
-
var g =
|
2852
|
+
if (l && Ot(l == null ? void 0 : l.style, "::", 0)) {
|
2853
|
+
var g = bi(l.style.slice(2));
|
2859
2854
|
if (a === "number") {
|
2860
2855
|
var f = this.parseNumberSkeletonFromString(g, l.styleLocation);
|
2861
2856
|
return f.err ? f : {
|
2862
|
-
val: { type:
|
2857
|
+
val: { type: S.number, value: n, location: b, style: f.val },
|
2863
2858
|
err: null
|
2864
2859
|
};
|
2865
2860
|
} else {
|
2866
2861
|
if (g.length === 0)
|
2867
2862
|
return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
|
2868
2863
|
var _ = g;
|
2869
|
-
this.locale && (_ =
|
2864
|
+
this.locale && (_ = ni(g, this.locale));
|
2870
2865
|
var c = {
|
2871
|
-
type:
|
2866
|
+
type: Y.dateTime,
|
2872
2867
|
pattern: _,
|
2873
2868
|
location: l.styleLocation,
|
2874
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2875
|
-
},
|
2869
|
+
parsedOptions: this.shouldParseSkeletons ? Jn(_) : {}
|
2870
|
+
}, x = a === "date" ? S.date : S.time;
|
2876
2871
|
return {
|
2877
|
-
val: { type:
|
2872
|
+
val: { type: x, value: n, location: b, style: c },
|
2878
2873
|
err: null
|
2879
2874
|
};
|
2880
2875
|
}
|
2881
2876
|
}
|
2882
2877
|
return {
|
2883
2878
|
val: {
|
2884
|
-
type: a === "number" ?
|
2879
|
+
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
2885
2880
|
value: n,
|
2886
2881
|
location: b,
|
2887
2882
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
@@ -2892,43 +2887,43 @@ var yi = (
|
|
2892
2887
|
case "plural":
|
2893
2888
|
case "selectordinal":
|
2894
2889
|
case "select": {
|
2895
|
-
var
|
2890
|
+
var T = this.clonePosition();
|
2896
2891
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2897
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(
|
2892
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, Se({}, T)));
|
2898
2893
|
this.bumpSpace();
|
2899
|
-
var
|
2900
|
-
if (a !== "select" &&
|
2894
|
+
var H = this.parseIdentifierIfPossible(), O = 0;
|
2895
|
+
if (a !== "select" && H.value === "offset") {
|
2901
2896
|
if (!this.bumpIf(":"))
|
2902
2897
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
2903
2898
|
this.bumpSpace();
|
2904
2899
|
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2905
2900
|
if (f.err)
|
2906
2901
|
return f;
|
2907
|
-
this.bumpSpace(),
|
2902
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), O = f.val;
|
2908
2903
|
}
|
2909
|
-
var
|
2910
|
-
if (
|
2911
|
-
return
|
2904
|
+
var k = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
2905
|
+
if (k.err)
|
2906
|
+
return k;
|
2912
2907
|
var m = this.tryParseArgumentClose(i);
|
2913
2908
|
if (m.err)
|
2914
2909
|
return m;
|
2915
|
-
var
|
2910
|
+
var W = y(i, this.clonePosition());
|
2916
2911
|
return a === "select" ? {
|
2917
2912
|
val: {
|
2918
|
-
type:
|
2913
|
+
type: S.select,
|
2919
2914
|
value: n,
|
2920
|
-
options:
|
2921
|
-
location:
|
2915
|
+
options: Lt(k.val),
|
2916
|
+
location: W
|
2922
2917
|
},
|
2923
2918
|
err: null
|
2924
2919
|
} : {
|
2925
2920
|
val: {
|
2926
|
-
type:
|
2921
|
+
type: S.plural,
|
2927
2922
|
value: n,
|
2928
|
-
options:
|
2923
|
+
options: Lt(k.val),
|
2929
2924
|
offset: O,
|
2930
2925
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2931
|
-
location:
|
2926
|
+
location: W
|
2932
2927
|
},
|
2933
2928
|
err: null
|
2934
2929
|
};
|
@@ -2976,16 +2971,16 @@ var yi = (
|
|
2976
2971
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2977
2972
|
var n = [];
|
2978
2973
|
try {
|
2979
|
-
n =
|
2974
|
+
n = Yn(t);
|
2980
2975
|
} catch (i) {
|
2981
2976
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
2982
2977
|
}
|
2983
2978
|
return {
|
2984
2979
|
val: {
|
2985
|
-
type:
|
2980
|
+
type: Y.number,
|
2986
2981
|
tokens: n,
|
2987
2982
|
location: r,
|
2988
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2983
|
+
parsedOptions: this.shouldParseSkeletons ? ri(n) : {}
|
2989
2984
|
},
|
2990
2985
|
err: null
|
2991
2986
|
};
|
@@ -3033,7 +3028,7 @@ var yi = (
|
|
3033
3028
|
break;
|
3034
3029
|
}
|
3035
3030
|
var h = y(i, this.clonePosition());
|
3036
|
-
return o ? (s *= n,
|
3031
|
+
return o ? (s *= n, pi(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3037
3032
|
}, e.prototype.offset = function() {
|
3038
3033
|
return this.position.offset;
|
3039
3034
|
}, e.prototype.isEOF = function() {
|
@@ -3048,7 +3043,7 @@ var yi = (
|
|
3048
3043
|
var t = this.position.offset;
|
3049
3044
|
if (t >= this.message.length)
|
3050
3045
|
throw Error("out of bound");
|
3051
|
-
var r =
|
3046
|
+
var r = yr(this.message, t);
|
3052
3047
|
if (r === void 0)
|
3053
3048
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3054
3049
|
return r;
|
@@ -3067,7 +3062,7 @@ var yi = (
|
|
3067
3062
|
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);
|
3068
3063
|
}
|
3069
3064
|
}, e.prototype.bumpIf = function(t) {
|
3070
|
-
if (
|
3065
|
+
if (Ot(this.message, t, this.offset())) {
|
3071
3066
|
for (var r = 0; r < t.length; r++)
|
3072
3067
|
this.bump();
|
3073
3068
|
return !0;
|
@@ -3089,7 +3084,7 @@ var yi = (
|
|
3089
3084
|
break;
|
3090
3085
|
}
|
3091
3086
|
}, e.prototype.bumpSpace = function() {
|
3092
|
-
for (; !this.isEOF() &&
|
3087
|
+
for (; !this.isEOF() && Er(this.char()); )
|
3093
3088
|
this.bump();
|
3094
3089
|
}, e.prototype.peek = function() {
|
3095
3090
|
if (this.isEOF())
|
@@ -3099,47 +3094,47 @@ var yi = (
|
|
3099
3094
|
}, e;
|
3100
3095
|
}()
|
3101
3096
|
);
|
3102
|
-
function
|
3097
|
+
function qe(e) {
|
3103
3098
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3104
3099
|
}
|
3105
|
-
function
|
3106
|
-
return
|
3100
|
+
function yi(e) {
|
3101
|
+
return qe(e) || e === 47;
|
3107
3102
|
}
|
3108
|
-
function
|
3103
|
+
function _i(e) {
|
3109
3104
|
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;
|
3110
3105
|
}
|
3111
|
-
function
|
3106
|
+
function Er(e) {
|
3112
3107
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3113
3108
|
}
|
3114
|
-
function
|
3109
|
+
function Ei(e) {
|
3115
3110
|
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;
|
3116
3111
|
}
|
3117
|
-
function
|
3112
|
+
function Ye(e) {
|
3118
3113
|
e.forEach(function(t) {
|
3119
|
-
if (delete t.location,
|
3114
|
+
if (delete t.location, cr(t) || fr(t))
|
3120
3115
|
for (var r in t.options)
|
3121
|
-
delete t.options[r].location,
|
3116
|
+
delete t.options[r].location, Ye(t.options[r].value);
|
3122
3117
|
else
|
3123
|
-
|
3118
|
+
ur(t) && pr(t.style) || (lr(t) || hr(t)) && ze(t.style) ? delete t.style.location : dr(t) && Ye(t.children);
|
3124
3119
|
});
|
3125
3120
|
}
|
3126
|
-
function
|
3127
|
-
t === void 0 && (t = {}), t =
|
3128
|
-
var r = new
|
3121
|
+
function xi(e, t) {
|
3122
|
+
t === void 0 && (t = {}), t = Se({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3123
|
+
var r = new vi(e, t).parse();
|
3129
3124
|
if (r.err) {
|
3130
3125
|
var n = SyntaxError(v[r.err.kind]);
|
3131
3126
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3132
3127
|
}
|
3133
|
-
return t != null && t.captureLocation ||
|
3128
|
+
return t != null && t.captureLocation || Ye(r.val), r.val;
|
3134
3129
|
}
|
3135
|
-
var
|
3130
|
+
var K;
|
3136
3131
|
(function(e) {
|
3137
3132
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3138
|
-
})(
|
3139
|
-
var
|
3133
|
+
})(K || (K = {}));
|
3134
|
+
var Be = (
|
3140
3135
|
/** @class */
|
3141
3136
|
function(e) {
|
3142
|
-
|
3137
|
+
Pe(t, e);
|
3143
3138
|
function t(r, n, i) {
|
3144
3139
|
var o = e.call(this, r) || this;
|
3145
3140
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3148,48 +3143,48 @@ var Ae = (
|
|
3148
3143
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3149
3144
|
}, t;
|
3150
3145
|
}(Error)
|
3151
|
-
),
|
3146
|
+
), Nt = (
|
3152
3147
|
/** @class */
|
3153
3148
|
function(e) {
|
3154
|
-
|
3149
|
+
Pe(t, e);
|
3155
3150
|
function t(r, n, i, o) {
|
3156
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3151
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, o) || this;
|
3157
3152
|
}
|
3158
3153
|
return t;
|
3159
|
-
}(
|
3160
|
-
),
|
3154
|
+
}(Be)
|
3155
|
+
), Si = (
|
3161
3156
|
/** @class */
|
3162
3157
|
function(e) {
|
3163
|
-
|
3158
|
+
Pe(t, e);
|
3164
3159
|
function t(r, n, i) {
|
3165
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3160
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
|
3166
3161
|
}
|
3167
3162
|
return t;
|
3168
|
-
}(
|
3169
|
-
),
|
3163
|
+
}(Be)
|
3164
|
+
), wi = (
|
3170
3165
|
/** @class */
|
3171
3166
|
function(e) {
|
3172
|
-
|
3167
|
+
Pe(t, e);
|
3173
3168
|
function t(r, n) {
|
3174
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3169
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
|
3175
3170
|
}
|
3176
3171
|
return t;
|
3177
|
-
}(
|
3172
|
+
}(Be)
|
3178
3173
|
), A;
|
3179
3174
|
(function(e) {
|
3180
3175
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3181
3176
|
})(A || (A = {}));
|
3182
|
-
function
|
3177
|
+
function Ti(e) {
|
3183
3178
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3184
3179
|
var n = t[t.length - 1];
|
3185
3180
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
3186
3181
|
}, []);
|
3187
3182
|
}
|
3188
|
-
function
|
3183
|
+
function Hi(e) {
|
3189
3184
|
return typeof e == "function";
|
3190
3185
|
}
|
3191
|
-
function
|
3192
|
-
if (e.length === 1 &&
|
3186
|
+
function be(e, t, r, n, i, o, s) {
|
3187
|
+
if (e.length === 1 && Ct(e[0]))
|
3193
3188
|
return [
|
3194
3189
|
{
|
3195
3190
|
type: A.literal,
|
@@ -3198,14 +3193,14 @@ function ge(e, t, r, n, i, o, s) {
|
|
3198
3193
|
];
|
3199
3194
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3200
3195
|
var u = l[h];
|
3201
|
-
if (
|
3196
|
+
if (Ct(u)) {
|
3202
3197
|
a.push({
|
3203
3198
|
type: A.literal,
|
3204
3199
|
value: u.value
|
3205
3200
|
});
|
3206
3201
|
continue;
|
3207
3202
|
}
|
3208
|
-
if (
|
3203
|
+
if (Zn(u)) {
|
3209
3204
|
typeof o == "number" && a.push({
|
3210
3205
|
type: A.literal,
|
3211
3206
|
value: r.getNumberFormat(t).format(o)
|
@@ -3214,89 +3209,89 @@ function ge(e, t, r, n, i, o, s) {
|
|
3214
3209
|
}
|
3215
3210
|
var f = u.value;
|
3216
3211
|
if (!(i && f in i))
|
3217
|
-
throw new
|
3212
|
+
throw new wi(f, s);
|
3218
3213
|
var c = i[f];
|
3219
|
-
if (
|
3214
|
+
if (zn(u)) {
|
3220
3215
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3221
3216
|
type: typeof c == "string" ? A.literal : A.object,
|
3222
3217
|
value: c
|
3223
3218
|
});
|
3224
3219
|
continue;
|
3225
3220
|
}
|
3226
|
-
if (
|
3227
|
-
var d = typeof u.style == "string" ? n.date[u.style] :
|
3221
|
+
if (lr(u)) {
|
3222
|
+
var d = typeof u.style == "string" ? n.date[u.style] : ze(u.style) ? u.style.parsedOptions : void 0;
|
3228
3223
|
a.push({
|
3229
3224
|
type: A.literal,
|
3230
3225
|
value: r.getDateTimeFormat(t, d).format(c)
|
3231
3226
|
});
|
3232
3227
|
continue;
|
3233
3228
|
}
|
3234
|
-
if (
|
3235
|
-
var d = typeof u.style == "string" ? n.time[u.style] :
|
3229
|
+
if (hr(u)) {
|
3230
|
+
var d = typeof u.style == "string" ? n.time[u.style] : ze(u.style) ? u.style.parsedOptions : n.time.medium;
|
3236
3231
|
a.push({
|
3237
3232
|
type: A.literal,
|
3238
3233
|
value: r.getDateTimeFormat(t, d).format(c)
|
3239
3234
|
});
|
3240
3235
|
continue;
|
3241
3236
|
}
|
3242
|
-
if (
|
3243
|
-
var d = typeof u.style == "string" ? n.number[u.style] :
|
3237
|
+
if (ur(u)) {
|
3238
|
+
var d = typeof u.style == "string" ? n.number[u.style] : pr(u.style) ? u.style.parsedOptions : void 0;
|
3244
3239
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
3245
3240
|
type: A.literal,
|
3246
3241
|
value: r.getNumberFormat(t, d).format(c)
|
3247
3242
|
});
|
3248
3243
|
continue;
|
3249
3244
|
}
|
3250
|
-
if (
|
3245
|
+
if (dr(u)) {
|
3251
3246
|
var m = u.children, b = u.value, g = i[b];
|
3252
|
-
if (!
|
3253
|
-
throw new
|
3254
|
-
var _ =
|
3247
|
+
if (!Hi(g))
|
3248
|
+
throw new Si(b, "function", s);
|
3249
|
+
var _ = be(m, t, r, n, i, o), x = g(_.map(function(O) {
|
3255
3250
|
return O.value;
|
3256
3251
|
}));
|
3257
|
-
Array.isArray(
|
3252
|
+
Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(O) {
|
3258
3253
|
return {
|
3259
3254
|
type: typeof O == "string" ? A.literal : A.object,
|
3260
3255
|
value: O
|
3261
3256
|
};
|
3262
3257
|
}));
|
3263
3258
|
}
|
3264
|
-
if (
|
3265
|
-
var
|
3266
|
-
if (!
|
3267
|
-
throw new
|
3268
|
-
a.push.apply(a,
|
3259
|
+
if (cr(u)) {
|
3260
|
+
var T = u.options[c] || u.options.other;
|
3261
|
+
if (!T)
|
3262
|
+
throw new Nt(u.value, c, Object.keys(u.options), s);
|
3263
|
+
a.push.apply(a, be(T.value, t, r, n, i));
|
3269
3264
|
continue;
|
3270
3265
|
}
|
3271
|
-
if (
|
3272
|
-
var
|
3273
|
-
if (!
|
3266
|
+
if (fr(u)) {
|
3267
|
+
var T = u.options["=".concat(c)];
|
3268
|
+
if (!T) {
|
3274
3269
|
if (!Intl.PluralRules)
|
3275
|
-
throw new
|
3270
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
3276
3271
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3277
|
-
`,
|
3278
|
-
var
|
3279
|
-
|
3272
|
+
`, K.MISSING_INTL_API, s);
|
3273
|
+
var H = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
3274
|
+
T = u.options[H] || u.options.other;
|
3280
3275
|
}
|
3281
|
-
if (!
|
3282
|
-
throw new
|
3283
|
-
a.push.apply(a,
|
3276
|
+
if (!T)
|
3277
|
+
throw new Nt(u.value, c, Object.keys(u.options), s);
|
3278
|
+
a.push.apply(a, be(T.value, t, r, n, i, c - (u.offset || 0)));
|
3284
3279
|
continue;
|
3285
3280
|
}
|
3286
3281
|
}
|
3287
|
-
return
|
3282
|
+
return Ti(a);
|
3288
3283
|
}
|
3289
|
-
function
|
3290
|
-
return t ?
|
3291
|
-
return r[n] =
|
3284
|
+
function Ci(e, t) {
|
3285
|
+
return t ? G(G(G({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3286
|
+
return r[n] = G(G({}, e[n]), t[n] || {}), r;
|
3292
3287
|
}, {})) : e;
|
3293
3288
|
}
|
3294
|
-
function
|
3289
|
+
function Pi(e, t) {
|
3295
3290
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3296
|
-
return r[n] =
|
3297
|
-
},
|
3291
|
+
return r[n] = Ci(e[n], t[n]), r;
|
3292
|
+
}, G({}, e)) : e;
|
3298
3293
|
}
|
3299
|
-
function
|
3294
|
+
function Fe(e) {
|
3300
3295
|
return {
|
3301
3296
|
create: function() {
|
3302
3297
|
return {
|
@@ -3310,39 +3305,39 @@ function je(e) {
|
|
3310
3305
|
}
|
3311
3306
|
};
|
3312
3307
|
}
|
3313
|
-
function
|
3308
|
+
function Bi(e) {
|
3314
3309
|
return e === void 0 && (e = {
|
3315
3310
|
number: {},
|
3316
3311
|
dateTime: {},
|
3317
3312
|
pluralRules: {}
|
3318
3313
|
}), {
|
3319
|
-
getNumberFormat:
|
3314
|
+
getNumberFormat: Ge(function() {
|
3320
3315
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3321
3316
|
r[n] = arguments[n];
|
3322
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3317
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
|
3323
3318
|
}, {
|
3324
|
-
cache:
|
3325
|
-
strategy:
|
3319
|
+
cache: Fe(e.number),
|
3320
|
+
strategy: Ue.variadic
|
3326
3321
|
}),
|
3327
|
-
getDateTimeFormat:
|
3322
|
+
getDateTimeFormat: Ge(function() {
|
3328
3323
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3329
3324
|
r[n] = arguments[n];
|
3330
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3325
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
|
3331
3326
|
}, {
|
3332
|
-
cache:
|
3333
|
-
strategy:
|
3327
|
+
cache: Fe(e.dateTime),
|
3328
|
+
strategy: Ue.variadic
|
3334
3329
|
}),
|
3335
|
-
getPluralRules:
|
3330
|
+
getPluralRules: Ge(function() {
|
3336
3331
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3337
3332
|
r[n] = arguments[n];
|
3338
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3333
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
|
3339
3334
|
}, {
|
3340
|
-
cache:
|
3341
|
-
strategy:
|
3335
|
+
cache: Fe(e.pluralRules),
|
3336
|
+
strategy: Ue.variadic
|
3342
3337
|
})
|
3343
3338
|
};
|
3344
3339
|
}
|
3345
|
-
var
|
3340
|
+
var Ai = (
|
3346
3341
|
/** @class */
|
3347
3342
|
function() {
|
3348
3343
|
function e(t, r, n, i) {
|
@@ -3361,7 +3356,7 @@ var Oi = (
|
|
3361
3356
|
}, []);
|
3362
3357
|
return u.length <= 1 ? u[0] || "" : u;
|
3363
3358
|
}, this.formatToParts = function(h) {
|
3364
|
-
return
|
3359
|
+
return be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3365
3360
|
}, this.resolvedOptions = function() {
|
3366
3361
|
var h;
|
3367
3362
|
return {
|
@@ -3374,13 +3369,13 @@ var Oi = (
|
|
3374
3369
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3375
3370
|
var s = i || {};
|
3376
3371
|
s.formatters;
|
3377
|
-
var a =
|
3378
|
-
this.ast = e.__parse(t,
|
3372
|
+
var a = Un(s, ["formatters"]);
|
3373
|
+
this.ast = e.__parse(t, G(G({}, a), { locale: this.resolvedLocale }));
|
3379
3374
|
} else
|
3380
3375
|
this.ast = t;
|
3381
3376
|
if (!Array.isArray(this.ast))
|
3382
3377
|
throw new TypeError("A message must be provided as a String or AST.");
|
3383
|
-
this.formats =
|
3378
|
+
this.formats = Pi(e.formats, n), this.formatters = i && i.formatters || Bi(this.formatterCache);
|
3384
3379
|
}
|
3385
3380
|
return Object.defineProperty(e, "defaultLocale", {
|
3386
3381
|
get: function() {
|
@@ -3393,7 +3388,7 @@ var Oi = (
|
|
3393
3388
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3394
3389
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3395
3390
|
}
|
3396
|
-
}, e.__parse =
|
3391
|
+
}, e.__parse = xi, e.formats = {
|
3397
3392
|
number: {
|
3398
3393
|
integer: {
|
3399
3394
|
maximumFractionDigits: 0
|
@@ -3454,7 +3449,7 @@ var Oi = (
|
|
3454
3449
|
}, e;
|
3455
3450
|
}()
|
3456
3451
|
);
|
3457
|
-
function
|
3452
|
+
function Oi(e, t) {
|
3458
3453
|
if (t == null)
|
3459
3454
|
return;
|
3460
3455
|
if (t in e)
|
@@ -3475,92 +3470,92 @@ function Li(e, t) {
|
|
3475
3470
|
n = void 0;
|
3476
3471
|
return n;
|
3477
3472
|
}
|
3478
|
-
const
|
3473
|
+
const j = {}, Li = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), xr = (e, t) => {
|
3479
3474
|
if (t == null)
|
3480
3475
|
return;
|
3481
|
-
if (t in
|
3482
|
-
return
|
3483
|
-
const r =
|
3476
|
+
if (t in j && e in j[t])
|
3477
|
+
return j[t][e];
|
3478
|
+
const r = Ae(t);
|
3484
3479
|
for (let n = 0; n < r.length; n++) {
|
3485
|
-
const i = r[n], o =
|
3480
|
+
const i = r[n], o = Ni(i, e);
|
3486
3481
|
if (o)
|
3487
|
-
return
|
3482
|
+
return Li(e, t, o);
|
3488
3483
|
}
|
3489
3484
|
};
|
3490
|
-
let
|
3491
|
-
const
|
3492
|
-
function
|
3493
|
-
return
|
3485
|
+
let lt;
|
3486
|
+
const he = Ce({});
|
3487
|
+
function Ii(e) {
|
3488
|
+
return lt[e] || null;
|
3494
3489
|
}
|
3495
|
-
function
|
3496
|
-
return e in
|
3490
|
+
function Sr(e) {
|
3491
|
+
return e in lt;
|
3497
3492
|
}
|
3498
|
-
function
|
3499
|
-
if (!
|
3493
|
+
function Ni(e, t) {
|
3494
|
+
if (!Sr(e))
|
3500
3495
|
return null;
|
3501
|
-
const r =
|
3502
|
-
return
|
3496
|
+
const r = Ii(e);
|
3497
|
+
return Oi(r, t);
|
3503
3498
|
}
|
3504
|
-
function
|
3499
|
+
function Mi(e) {
|
3505
3500
|
if (e == null)
|
3506
3501
|
return;
|
3507
|
-
const t =
|
3502
|
+
const t = Ae(e);
|
3508
3503
|
for (let r = 0; r < t.length; r++) {
|
3509
3504
|
const n = t[r];
|
3510
|
-
if (
|
3505
|
+
if (Sr(n))
|
3511
3506
|
return n;
|
3512
3507
|
}
|
3513
3508
|
}
|
3514
|
-
function
|
3515
|
-
delete
|
3509
|
+
function wr(e, ...t) {
|
3510
|
+
delete j[e], he.update((r) => (r[e] = Gn.all([r[e] || {}, ...t]), r));
|
3516
3511
|
}
|
3517
|
-
|
3518
|
-
[
|
3512
|
+
re(
|
3513
|
+
[he],
|
3519
3514
|
([e]) => Object.keys(e)
|
3520
3515
|
);
|
3521
|
-
|
3522
|
-
const
|
3523
|
-
function
|
3524
|
-
|
3516
|
+
he.subscribe((e) => lt = e);
|
3517
|
+
const ge = {};
|
3518
|
+
function Ri(e, t) {
|
3519
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
3525
3520
|
}
|
3526
|
-
function
|
3527
|
-
return
|
3521
|
+
function Tr(e) {
|
3522
|
+
return ge[e];
|
3528
3523
|
}
|
3529
|
-
function
|
3530
|
-
return
|
3531
|
-
const r =
|
3524
|
+
function $i(e) {
|
3525
|
+
return Ae(e).map((t) => {
|
3526
|
+
const r = Tr(t);
|
3532
3527
|
return [t, r ? [...r] : []];
|
3533
3528
|
}).filter(([, t]) => t.length > 0);
|
3534
3529
|
}
|
3535
|
-
function
|
3536
|
-
return e == null ? !1 :
|
3530
|
+
function Ke(e) {
|
3531
|
+
return e == null ? !1 : Ae(e).some(
|
3537
3532
|
(t) => {
|
3538
3533
|
var r;
|
3539
|
-
return (r =
|
3534
|
+
return (r = Tr(t)) == null ? void 0 : r.size;
|
3540
3535
|
}
|
3541
3536
|
);
|
3542
3537
|
}
|
3543
|
-
function
|
3538
|
+
function Gi(e, t) {
|
3544
3539
|
return Promise.all(
|
3545
|
-
t.map((n) => (
|
3546
|
-
).then((n) =>
|
3547
|
-
}
|
3548
|
-
const
|
3549
|
-
function
|
3550
|
-
if (!
|
3551
|
-
return e in
|
3552
|
-
const t =
|
3553
|
-
return
|
3540
|
+
t.map((n) => (Ri(e, n), n().then((i) => i.default || i)))
|
3541
|
+
).then((n) => wr(e, ...n));
|
3542
|
+
}
|
3543
|
+
const oe = {};
|
3544
|
+
function Hr(e) {
|
3545
|
+
if (!Ke(e))
|
3546
|
+
return e in oe ? oe[e] : Promise.resolve();
|
3547
|
+
const t = $i(e);
|
3548
|
+
return oe[e] = Promise.all(
|
3554
3549
|
t.map(
|
3555
|
-
([r, n]) =>
|
3550
|
+
([r, n]) => Gi(r, n)
|
3556
3551
|
)
|
3557
3552
|
).then(() => {
|
3558
|
-
if (
|
3559
|
-
return
|
3560
|
-
delete
|
3561
|
-
}),
|
3553
|
+
if (Ke(e))
|
3554
|
+
return Hr(e);
|
3555
|
+
delete oe[e];
|
3556
|
+
}), oe[e];
|
3562
3557
|
}
|
3563
|
-
const
|
3558
|
+
const Ui = {
|
3564
3559
|
number: {
|
3565
3560
|
scientific: { notation: "scientific" },
|
3566
3561
|
engineering: { notation: "engineering" },
|
@@ -3589,150 +3584,150 @@ const Di = {
|
|
3589
3584
|
timeZoneName: "short"
|
3590
3585
|
}
|
3591
3586
|
}
|
3592
|
-
},
|
3587
|
+
}, Di = {
|
3593
3588
|
fallbackLocale: null,
|
3594
3589
|
loadingDelay: 200,
|
3595
|
-
formats:
|
3590
|
+
formats: Ui,
|
3596
3591
|
warnOnMissingMessages: !0,
|
3597
3592
|
handleMissingMessage: void 0,
|
3598
3593
|
ignoreTag: !0
|
3599
|
-
},
|
3600
|
-
function
|
3601
|
-
return
|
3594
|
+
}, Fi = Di;
|
3595
|
+
function ee() {
|
3596
|
+
return Fi;
|
3602
3597
|
}
|
3603
|
-
const
|
3604
|
-
var
|
3598
|
+
const je = Ce(!1);
|
3599
|
+
var ji = Object.defineProperty, ki = Object.defineProperties, Vi = Object.getOwnPropertyDescriptors, Mt = Object.getOwnPropertySymbols, Xi = Object.prototype.hasOwnProperty, Wi = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zi = (e, t) => {
|
3605
3600
|
for (var r in t || (t = {}))
|
3606
|
-
|
3607
|
-
if (
|
3608
|
-
for (var r of
|
3609
|
-
|
3601
|
+
Xi.call(t, r) && Rt(e, r, t[r]);
|
3602
|
+
if (Mt)
|
3603
|
+
for (var r of Mt(t))
|
3604
|
+
Wi.call(t, r) && Rt(e, r, t[r]);
|
3610
3605
|
return e;
|
3611
|
-
},
|
3612
|
-
let
|
3613
|
-
const
|
3614
|
-
function
|
3606
|
+
}, Zi = (e, t) => ki(e, Vi(t));
|
3607
|
+
let et;
|
3608
|
+
const we = Ce(null);
|
3609
|
+
function $t(e) {
|
3615
3610
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3616
3611
|
}
|
3617
|
-
function
|
3618
|
-
const r =
|
3619
|
-
return t ? [.../* @__PURE__ */ new Set([...r,
|
3612
|
+
function Ae(e, t = ee().fallbackLocale) {
|
3613
|
+
const r = $t(e);
|
3614
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...$t(t)])] : r;
|
3620
3615
|
}
|
3621
|
-
function
|
3622
|
-
return
|
3616
|
+
function X() {
|
3617
|
+
return et != null ? et : void 0;
|
3623
3618
|
}
|
3624
|
-
|
3625
|
-
|
3619
|
+
we.subscribe((e) => {
|
3620
|
+
et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
3626
3621
|
});
|
3627
|
-
const
|
3628
|
-
if (e &&
|
3629
|
-
const { loadingDelay: t } =
|
3622
|
+
const Qi = (e) => {
|
3623
|
+
if (e && Mi(e) && Ke(e)) {
|
3624
|
+
const { loadingDelay: t } = ee();
|
3630
3625
|
let r;
|
3631
|
-
return typeof window != "undefined" &&
|
3632
|
-
() =>
|
3626
|
+
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
3627
|
+
() => je.set(!0),
|
3633
3628
|
t
|
3634
|
-
) :
|
3635
|
-
|
3629
|
+
) : je.set(!0), Hr(e).then(() => {
|
3630
|
+
we.set(e);
|
3636
3631
|
}).finally(() => {
|
3637
|
-
clearTimeout(r),
|
3632
|
+
clearTimeout(r), je.set(!1);
|
3638
3633
|
});
|
3639
3634
|
}
|
3640
|
-
return
|
3641
|
-
},
|
3642
|
-
set:
|
3643
|
-
}),
|
3635
|
+
return we.set(e);
|
3636
|
+
}, ne = Zi(zi({}, we), {
|
3637
|
+
set: Qi
|
3638
|
+
}), Oe = (e) => {
|
3644
3639
|
const t = /* @__PURE__ */ Object.create(null);
|
3645
3640
|
return (n) => {
|
3646
3641
|
const i = JSON.stringify(n);
|
3647
3642
|
return i in t ? t[i] : t[i] = e(n);
|
3648
3643
|
};
|
3649
3644
|
};
|
3650
|
-
var
|
3645
|
+
var Ji = Object.defineProperty, Te = Object.getOwnPropertySymbols, Cr = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? Ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
3651
3646
|
for (var r in t || (t = {}))
|
3652
|
-
|
3653
|
-
if (
|
3654
|
-
for (var r of
|
3655
|
-
|
3647
|
+
Cr.call(t, r) && Gt(e, r, t[r]);
|
3648
|
+
if (Te)
|
3649
|
+
for (var r of Te(t))
|
3650
|
+
Pr.call(t, r) && Gt(e, r, t[r]);
|
3656
3651
|
return e;
|
3657
|
-
},
|
3652
|
+
}, ie = (e, t) => {
|
3658
3653
|
var r = {};
|
3659
3654
|
for (var n in e)
|
3660
|
-
|
3661
|
-
if (e != null &&
|
3662
|
-
for (var n of
|
3663
|
-
t.indexOf(n) < 0 &&
|
3655
|
+
Cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3656
|
+
if (e != null && Te)
|
3657
|
+
for (var n of Te(e))
|
3658
|
+
t.indexOf(n) < 0 && Pr.call(e, n) && (r[n] = e[n]);
|
3664
3659
|
return r;
|
3665
3660
|
};
|
3666
|
-
const
|
3667
|
-
const { formats: r } =
|
3661
|
+
const le = (e, t) => {
|
3662
|
+
const { formats: r } = ee();
|
3668
3663
|
if (e in r && t in r[e])
|
3669
3664
|
return r[e][t];
|
3670
3665
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3671
|
-
},
|
3666
|
+
}, qi = Oe(
|
3672
3667
|
(e) => {
|
3673
|
-
var t = e, { locale: r, format: n } = t, i =
|
3668
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
3674
3669
|
if (r == null)
|
3675
3670
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3676
|
-
return n && (i =
|
3671
|
+
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
3677
3672
|
}
|
3678
|
-
),
|
3673
|
+
), Yi = Oe(
|
3679
3674
|
(e) => {
|
3680
|
-
var t = e, { locale: r, format: n } = t, i =
|
3675
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
3681
3676
|
if (r == null)
|
3682
3677
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3683
|
-
return n ? i =
|
3678
|
+
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
3684
3679
|
}
|
3685
|
-
),
|
3680
|
+
), Ki = Oe(
|
3686
3681
|
(e) => {
|
3687
|
-
var t = e, { locale: r, format: n } = t, i =
|
3682
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
3688
3683
|
if (r == null)
|
3689
3684
|
throw new Error(
|
3690
3685
|
'[svelte-i18n] A "locale" must be set to format time values'
|
3691
3686
|
);
|
3692
|
-
return n ? i =
|
3687
|
+
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
3693
3688
|
}
|
3694
|
-
),
|
3689
|
+
), eo = (e = {}) => {
|
3695
3690
|
var t = e, {
|
3696
|
-
locale: r =
|
3697
|
-
} = t, n =
|
3691
|
+
locale: r = X()
|
3692
|
+
} = t, n = ie(t, [
|
3698
3693
|
"locale"
|
3699
3694
|
]);
|
3700
|
-
return
|
3701
|
-
},
|
3695
|
+
return qi(ht({ locale: r }, n));
|
3696
|
+
}, to = (e = {}) => {
|
3702
3697
|
var t = e, {
|
3703
|
-
locale: r =
|
3704
|
-
} = t, n =
|
3698
|
+
locale: r = X()
|
3699
|
+
} = t, n = ie(t, [
|
3705
3700
|
"locale"
|
3706
3701
|
]);
|
3707
|
-
return
|
3708
|
-
},
|
3702
|
+
return Yi(ht({ locale: r }, n));
|
3703
|
+
}, ro = (e = {}) => {
|
3709
3704
|
var t = e, {
|
3710
|
-
locale: r =
|
3711
|
-
} = t, n =
|
3705
|
+
locale: r = X()
|
3706
|
+
} = t, n = ie(t, [
|
3712
3707
|
"locale"
|
3713
3708
|
]);
|
3714
|
-
return
|
3715
|
-
},
|
3709
|
+
return Ki(ht({ locale: r }, n));
|
3710
|
+
}, no = Oe(
|
3716
3711
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3717
|
-
(e, t =
|
3718
|
-
ignoreTag:
|
3712
|
+
(e, t = X()) => new Ai(e, t, ee().formats, {
|
3713
|
+
ignoreTag: ee().ignoreTag
|
3719
3714
|
})
|
3720
|
-
),
|
3715
|
+
), io = (e, t = {}) => {
|
3721
3716
|
var r, n, i, o;
|
3722
3717
|
let s = t;
|
3723
3718
|
typeof e == "object" && (s = e, e = s.id);
|
3724
3719
|
const {
|
3725
3720
|
values: a,
|
3726
|
-
locale: h =
|
3721
|
+
locale: h = X(),
|
3727
3722
|
default: l
|
3728
3723
|
} = s;
|
3729
3724
|
if (h == null)
|
3730
3725
|
throw new Error(
|
3731
3726
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3732
3727
|
);
|
3733
|
-
let u =
|
3728
|
+
let u = xr(e, h);
|
3734
3729
|
if (!u)
|
3735
|
-
u = (o = (i = (n = (r =
|
3730
|
+
u = (o = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
3736
3731
|
else if (typeof u != "string")
|
3737
3732
|
return console.warn(
|
3738
3733
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
@@ -3741,7 +3736,7 @@ const he = (e, t) => {
|
|
3741
3736
|
return u;
|
3742
3737
|
let f = u;
|
3743
3738
|
try {
|
3744
|
-
f =
|
3739
|
+
f = no(u, h).format(a);
|
3745
3740
|
} catch (c) {
|
3746
3741
|
c instanceof Error && console.warn(
|
3747
3742
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3749,18 +3744,18 @@ const he = (e, t) => {
|
|
3749
3744
|
);
|
3750
3745
|
}
|
3751
3746
|
return f;
|
3752
|
-
},
|
3753
|
-
|
3754
|
-
|
3755
|
-
|
3756
|
-
|
3757
|
-
function
|
3758
|
-
|
3759
|
-
}
|
3760
|
-
function
|
3761
|
-
|
3762
|
-
}
|
3763
|
-
const
|
3747
|
+
}, oo = (e, t) => ro(t).format(e), so = (e, t) => to(t).format(e), ao = (e, t) => eo(t).format(e), uo = (e, t = X()) => xr(e, t), lo = re([ne, he], () => io);
|
3748
|
+
re([ne], () => oo);
|
3749
|
+
re([ne], () => so);
|
3750
|
+
re([ne], () => ao);
|
3751
|
+
re([ne, he], () => uo);
|
3752
|
+
function Ut(e, t) {
|
3753
|
+
wr(e, t);
|
3754
|
+
}
|
3755
|
+
function ho(e) {
|
3756
|
+
ne.set(e);
|
3757
|
+
}
|
3758
|
+
const Dt = {
|
3764
3759
|
en: {
|
3765
3760
|
collections: "Game Collections",
|
3766
3761
|
providers: "Game Providers",
|
@@ -3871,24 +3866,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3871
3866
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
3872
3867
|
PERFORMANCE OF THIS SOFTWARE.
|
3873
3868
|
***************************************************************************** */
|
3874
|
-
var
|
3875
|
-
return
|
3869
|
+
var tt = function(e, t) {
|
3870
|
+
return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
3876
3871
|
r.__proto__ = n;
|
3877
3872
|
} || function(r, n) {
|
3878
3873
|
for (var i in n)
|
3879
3874
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
3880
|
-
},
|
3875
|
+
}, tt(e, t);
|
3881
3876
|
};
|
3882
|
-
function
|
3877
|
+
function ce(e, t) {
|
3883
3878
|
if (typeof t != "function" && t !== null)
|
3884
3879
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
3885
|
-
|
3880
|
+
tt(e, t);
|
3886
3881
|
function r() {
|
3887
3882
|
this.constructor = e;
|
3888
3883
|
}
|
3889
3884
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
3890
3885
|
}
|
3891
|
-
function
|
3886
|
+
function rt(e) {
|
3892
3887
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
3893
3888
|
if (r)
|
3894
3889
|
return r.call(e);
|
@@ -3900,7 +3895,7 @@ function nt(e) {
|
|
3900
3895
|
};
|
3901
3896
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
3902
3897
|
}
|
3903
|
-
function
|
3898
|
+
function nt(e, t) {
|
3904
3899
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
3905
3900
|
if (!r)
|
3906
3901
|
return e;
|
@@ -3920,22 +3915,22 @@ function it(e, t) {
|
|
3920
3915
|
}
|
3921
3916
|
return o;
|
3922
3917
|
}
|
3923
|
-
function
|
3918
|
+
function it(e, t, r) {
|
3924
3919
|
if (arguments.length === 2)
|
3925
3920
|
for (var n = 0, i = t.length, o; n < i; n++)
|
3926
3921
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
3927
3922
|
return e.concat(o || t);
|
3928
3923
|
}
|
3929
|
-
function
|
3924
|
+
function F(e) {
|
3930
3925
|
return typeof e == "function";
|
3931
3926
|
}
|
3932
|
-
function
|
3927
|
+
function Br(e) {
|
3933
3928
|
var t = function(n) {
|
3934
3929
|
Error.call(n), n.stack = new Error().stack;
|
3935
3930
|
}, r = e(t);
|
3936
3931
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
3937
3932
|
}
|
3938
|
-
var
|
3933
|
+
var ke = Br(function(e) {
|
3939
3934
|
return function(r) {
|
3940
3935
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
3941
3936
|
` + r.map(function(n, i) {
|
@@ -3944,13 +3939,13 @@ var Ve = Ar(function(e) {
|
|
3944
3939
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
3945
3940
|
};
|
3946
3941
|
});
|
3947
|
-
function
|
3942
|
+
function ot(e, t) {
|
3948
3943
|
if (e) {
|
3949
3944
|
var r = e.indexOf(t);
|
3950
3945
|
0 <= r && e.splice(r, 1);
|
3951
3946
|
}
|
3952
3947
|
}
|
3953
|
-
var
|
3948
|
+
var Le = function() {
|
3954
3949
|
function e(t) {
|
3955
3950
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
3956
3951
|
}
|
@@ -3962,7 +3957,7 @@ var Ie = function() {
|
|
3962
3957
|
if (s)
|
3963
3958
|
if (this._parentage = null, Array.isArray(s))
|
3964
3959
|
try {
|
3965
|
-
for (var a =
|
3960
|
+
for (var a = rt(s), h = a.next(); !h.done; h = a.next()) {
|
3966
3961
|
var l = h.value;
|
3967
3962
|
l.remove(this);
|
3968
3963
|
}
|
@@ -3979,22 +3974,22 @@ var Ie = function() {
|
|
3979
3974
|
else
|
3980
3975
|
s.remove(this);
|
3981
3976
|
var u = this.initialTeardown;
|
3982
|
-
if (
|
3977
|
+
if (F(u))
|
3983
3978
|
try {
|
3984
3979
|
u();
|
3985
3980
|
} catch (b) {
|
3986
|
-
o = b instanceof
|
3981
|
+
o = b instanceof ke ? b.errors : [b];
|
3987
3982
|
}
|
3988
3983
|
var f = this._finalizers;
|
3989
3984
|
if (f) {
|
3990
3985
|
this._finalizers = null;
|
3991
3986
|
try {
|
3992
|
-
for (var c =
|
3987
|
+
for (var c = rt(f), d = c.next(); !d.done; d = c.next()) {
|
3993
3988
|
var m = d.value;
|
3994
3989
|
try {
|
3995
|
-
|
3990
|
+
Ft(m);
|
3996
3991
|
} catch (b) {
|
3997
|
-
o = o != null ? o : [], b instanceof
|
3992
|
+
o = o != null ? o : [], b instanceof ke ? o = it(it([], nt(o)), nt(b.errors)) : o.push(b);
|
3998
3993
|
}
|
3999
3994
|
}
|
4000
3995
|
} catch (b) {
|
@@ -4009,13 +4004,13 @@ var Ie = function() {
|
|
4009
4004
|
}
|
4010
4005
|
}
|
4011
4006
|
if (o)
|
4012
|
-
throw new
|
4007
|
+
throw new ke(o);
|
4013
4008
|
}
|
4014
4009
|
}, e.prototype.add = function(t) {
|
4015
4010
|
var r;
|
4016
4011
|
if (t && t !== this)
|
4017
4012
|
if (this.closed)
|
4018
|
-
|
4013
|
+
Ft(t);
|
4019
4014
|
else {
|
4020
4015
|
if (t instanceof e) {
|
4021
4016
|
if (t.closed || t._hasParent(this))
|
@@ -4032,52 +4027,52 @@ var Ie = function() {
|
|
4032
4027
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
4033
4028
|
}, e.prototype._removeParent = function(t) {
|
4034
4029
|
var r = this._parentage;
|
4035
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
4030
|
+
r === t ? this._parentage = null : Array.isArray(r) && ot(r, t);
|
4036
4031
|
}, e.prototype.remove = function(t) {
|
4037
4032
|
var r = this._finalizers;
|
4038
|
-
r &&
|
4033
|
+
r && ot(r, t), t instanceof e && t._removeParent(this);
|
4039
4034
|
}, e.EMPTY = function() {
|
4040
4035
|
var t = new e();
|
4041
4036
|
return t.closed = !0, t;
|
4042
4037
|
}(), e;
|
4043
|
-
}(),
|
4044
|
-
function
|
4045
|
-
return e instanceof
|
4038
|
+
}(), Ar = Le.EMPTY;
|
4039
|
+
function Or(e) {
|
4040
|
+
return e instanceof Le || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
|
4046
4041
|
}
|
4047
|
-
function
|
4048
|
-
|
4042
|
+
function Ft(e) {
|
4043
|
+
F(e) ? e() : e.unsubscribe();
|
4049
4044
|
}
|
4050
|
-
var
|
4045
|
+
var co = {
|
4051
4046
|
Promise: void 0
|
4052
|
-
},
|
4047
|
+
}, fo = {
|
4053
4048
|
setTimeout: function(e, t) {
|
4054
4049
|
for (var r = [], n = 2; n < arguments.length; n++)
|
4055
4050
|
r[n - 2] = arguments[n];
|
4056
|
-
return setTimeout.apply(void 0,
|
4051
|
+
return setTimeout.apply(void 0, it([e, t], nt(r)));
|
4057
4052
|
},
|
4058
4053
|
clearTimeout: function(e) {
|
4059
4054
|
return clearTimeout(e);
|
4060
4055
|
},
|
4061
4056
|
delegate: void 0
|
4062
4057
|
};
|
4063
|
-
function
|
4064
|
-
|
4058
|
+
function po(e) {
|
4059
|
+
fo.setTimeout(function() {
|
4065
4060
|
throw e;
|
4066
4061
|
});
|
4067
4062
|
}
|
4068
|
-
function
|
4063
|
+
function jt() {
|
4069
4064
|
}
|
4070
|
-
function
|
4065
|
+
function ve(e) {
|
4071
4066
|
e();
|
4072
4067
|
}
|
4073
|
-
var
|
4074
|
-
|
4068
|
+
var Lr = function(e) {
|
4069
|
+
ce(t, e);
|
4075
4070
|
function t(r) {
|
4076
4071
|
var n = e.call(this) || this;
|
4077
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
4072
|
+
return n.isStopped = !1, r ? (n.destination = r, Or(r) && r.add(n)) : n.destination = go, n;
|
4078
4073
|
}
|
4079
4074
|
return t.create = function(r, n, i) {
|
4080
|
-
return new
|
4075
|
+
return new st(r, n, i);
|
4081
4076
|
}, t.prototype.next = function(r) {
|
4082
4077
|
this.isStopped || this._next(r);
|
4083
4078
|
}, t.prototype.error = function(r) {
|
@@ -4101,7 +4096,7 @@ var Ir = function(e) {
|
|
4101
4096
|
this.unsubscribe();
|
4102
4097
|
}
|
4103
4098
|
}, t;
|
4104
|
-
}(
|
4099
|
+
}(Le), mo = function() {
|
4105
4100
|
function e(t) {
|
4106
4101
|
this.partialObserver = t;
|
4107
4102
|
}
|
@@ -4111,7 +4106,7 @@ var Ir = function(e) {
|
|
4111
4106
|
try {
|
4112
4107
|
r.next(t);
|
4113
4108
|
} catch (n) {
|
4114
|
-
|
4109
|
+
pe(n);
|
4115
4110
|
}
|
4116
4111
|
}, e.prototype.error = function(t) {
|
4117
4112
|
var r = this.partialObserver;
|
@@ -4119,56 +4114,56 @@ var Ir = function(e) {
|
|
4119
4114
|
try {
|
4120
4115
|
r.error(t);
|
4121
4116
|
} catch (n) {
|
4122
|
-
|
4117
|
+
pe(n);
|
4123
4118
|
}
|
4124
4119
|
else
|
4125
|
-
|
4120
|
+
pe(t);
|
4126
4121
|
}, e.prototype.complete = function() {
|
4127
4122
|
var t = this.partialObserver;
|
4128
4123
|
if (t.complete)
|
4129
4124
|
try {
|
4130
4125
|
t.complete();
|
4131
4126
|
} catch (r) {
|
4132
|
-
|
4127
|
+
pe(r);
|
4133
4128
|
}
|
4134
4129
|
}, e;
|
4135
|
-
}(),
|
4136
|
-
|
4130
|
+
}(), st = function(e) {
|
4131
|
+
ce(t, e);
|
4137
4132
|
function t(r, n, i) {
|
4138
4133
|
var o = e.call(this) || this, s;
|
4139
|
-
return
|
4134
|
+
return F(r) || !r ? s = {
|
4140
4135
|
next: r != null ? r : void 0,
|
4141
4136
|
error: n != null ? n : void 0,
|
4142
4137
|
complete: i != null ? i : void 0
|
4143
|
-
} : s = r, o.destination = new
|
4138
|
+
} : s = r, o.destination = new mo(s), o;
|
4144
4139
|
}
|
4145
4140
|
return t;
|
4146
|
-
}(
|
4147
|
-
function
|
4148
|
-
|
4141
|
+
}(Lr);
|
4142
|
+
function pe(e) {
|
4143
|
+
po(e);
|
4149
4144
|
}
|
4150
|
-
function
|
4145
|
+
function bo(e) {
|
4151
4146
|
throw e;
|
4152
4147
|
}
|
4153
|
-
var
|
4148
|
+
var go = {
|
4154
4149
|
closed: !0,
|
4155
|
-
next:
|
4156
|
-
error:
|
4157
|
-
complete:
|
4158
|
-
},
|
4150
|
+
next: jt,
|
4151
|
+
error: bo,
|
4152
|
+
complete: jt
|
4153
|
+
}, vo = function() {
|
4159
4154
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
4160
4155
|
}();
|
4161
|
-
function
|
4156
|
+
function yo(e) {
|
4162
4157
|
return e;
|
4163
4158
|
}
|
4164
|
-
function
|
4165
|
-
return e.length === 0 ?
|
4159
|
+
function _o(e) {
|
4160
|
+
return e.length === 0 ? yo : e.length === 1 ? e[0] : function(r) {
|
4166
4161
|
return e.reduce(function(n, i) {
|
4167
4162
|
return i(n);
|
4168
4163
|
}, r);
|
4169
4164
|
};
|
4170
4165
|
}
|
4171
|
-
var
|
4166
|
+
var kt = function() {
|
4172
4167
|
function e(t) {
|
4173
4168
|
t && (this._subscribe = t);
|
4174
4169
|
}
|
@@ -4176,8 +4171,8 @@ var Vt = function() {
|
|
4176
4171
|
var r = new e();
|
4177
4172
|
return r.source = this, r.operator = t, r;
|
4178
4173
|
}, e.prototype.subscribe = function(t, r, n) {
|
4179
|
-
var i = this, o =
|
4180
|
-
return
|
4174
|
+
var i = this, o = xo(t) ? t : new st(t, r, n);
|
4175
|
+
return ve(function() {
|
4181
4176
|
var s = i, a = s.operator, h = s.source;
|
4182
4177
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
4183
4178
|
}), o;
|
@@ -4189,8 +4184,8 @@ var Vt = function() {
|
|
4189
4184
|
}
|
4190
4185
|
}, e.prototype.forEach = function(t, r) {
|
4191
4186
|
var n = this;
|
4192
|
-
return r =
|
4193
|
-
var s = new
|
4187
|
+
return r = Vt(r), new r(function(i, o) {
|
4188
|
+
var s = new st({
|
4194
4189
|
next: function(a) {
|
4195
4190
|
try {
|
4196
4191
|
t(a);
|
@@ -4206,15 +4201,15 @@ var Vt = function() {
|
|
4206
4201
|
}, e.prototype._subscribe = function(t) {
|
4207
4202
|
var r;
|
4208
4203
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
4209
|
-
}, e.prototype[
|
4204
|
+
}, e.prototype[vo] = function() {
|
4210
4205
|
return this;
|
4211
4206
|
}, e.prototype.pipe = function() {
|
4212
4207
|
for (var t = [], r = 0; r < arguments.length; r++)
|
4213
4208
|
t[r] = arguments[r];
|
4214
|
-
return
|
4209
|
+
return _o(t)(this);
|
4215
4210
|
}, e.prototype.toPromise = function(t) {
|
4216
4211
|
var r = this;
|
4217
|
-
return t =
|
4212
|
+
return t = Vt(t), new t(function(n, i) {
|
4218
4213
|
var o;
|
4219
4214
|
r.subscribe(function(s) {
|
4220
4215
|
return o = s;
|
@@ -4228,40 +4223,40 @@ var Vt = function() {
|
|
4228
4223
|
return new e(t);
|
4229
4224
|
}, e;
|
4230
4225
|
}();
|
4231
|
-
function
|
4226
|
+
function Vt(e) {
|
4232
4227
|
var t;
|
4233
|
-
return (t = e != null ? e :
|
4228
|
+
return (t = e != null ? e : co.Promise) !== null && t !== void 0 ? t : Promise;
|
4234
4229
|
}
|
4235
|
-
function
|
4236
|
-
return e &&
|
4230
|
+
function Eo(e) {
|
4231
|
+
return e && F(e.next) && F(e.error) && F(e.complete);
|
4237
4232
|
}
|
4238
|
-
function
|
4239
|
-
return e && e instanceof
|
4233
|
+
function xo(e) {
|
4234
|
+
return e && e instanceof Lr || Eo(e) && Or(e);
|
4240
4235
|
}
|
4241
|
-
var
|
4236
|
+
var So = Br(function(e) {
|
4242
4237
|
return function() {
|
4243
4238
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
4244
4239
|
};
|
4245
|
-
}),
|
4246
|
-
|
4240
|
+
}), Ir = function(e) {
|
4241
|
+
ce(t, e);
|
4247
4242
|
function t() {
|
4248
4243
|
var r = e.call(this) || this;
|
4249
4244
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
4250
4245
|
}
|
4251
4246
|
return t.prototype.lift = function(r) {
|
4252
|
-
var n = new
|
4247
|
+
var n = new Xt(this, this);
|
4253
4248
|
return n.operator = r, n;
|
4254
4249
|
}, t.prototype._throwIfClosed = function() {
|
4255
4250
|
if (this.closed)
|
4256
|
-
throw new
|
4251
|
+
throw new So();
|
4257
4252
|
}, t.prototype.next = function(r) {
|
4258
4253
|
var n = this;
|
4259
|
-
|
4254
|
+
ve(function() {
|
4260
4255
|
var i, o;
|
4261
4256
|
if (n._throwIfClosed(), !n.isStopped) {
|
4262
4257
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
4263
4258
|
try {
|
4264
|
-
for (var s =
|
4259
|
+
for (var s = rt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
4265
4260
|
var h = a.value;
|
4266
4261
|
h.next(r);
|
4267
4262
|
}
|
@@ -4279,7 +4274,7 @@ var wo = Ar(function(e) {
|
|
4279
4274
|
});
|
4280
4275
|
}, t.prototype.error = function(r) {
|
4281
4276
|
var n = this;
|
4282
|
-
|
4277
|
+
ve(function() {
|
4283
4278
|
if (n._throwIfClosed(), !n.isStopped) {
|
4284
4279
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
4285
4280
|
for (var i = n.observers; i.length; )
|
@@ -4288,7 +4283,7 @@ var wo = Ar(function(e) {
|
|
4288
4283
|
});
|
4289
4284
|
}, t.prototype.complete = function() {
|
4290
4285
|
var r = this;
|
4291
|
-
|
4286
|
+
ve(function() {
|
4292
4287
|
if (r._throwIfClosed(), !r.isStopped) {
|
4293
4288
|
r.isStopped = !0;
|
4294
4289
|
for (var n = r.observers; n.length; )
|
@@ -4310,20 +4305,20 @@ var wo = Ar(function(e) {
|
|
4310
4305
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
4311
4306
|
}, t.prototype._innerSubscribe = function(r) {
|
4312
4307
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
4313
|
-
return o || s ?
|
4314
|
-
n.currentObservers = null,
|
4308
|
+
return o || s ? Ar : (this.currentObservers = null, a.push(r), new Le(function() {
|
4309
|
+
n.currentObservers = null, ot(a, r);
|
4315
4310
|
}));
|
4316
4311
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
4317
4312
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
4318
4313
|
i ? r.error(o) : s && r.complete();
|
4319
4314
|
}, t.prototype.asObservable = function() {
|
4320
|
-
var r = new
|
4315
|
+
var r = new kt();
|
4321
4316
|
return r.source = this, r;
|
4322
4317
|
}, t.create = function(r, n) {
|
4323
|
-
return new
|
4318
|
+
return new Xt(r, n);
|
4324
4319
|
}, t;
|
4325
|
-
}(
|
4326
|
-
|
4320
|
+
}(kt), Xt = function(e) {
|
4321
|
+
ce(t, e);
|
4327
4322
|
function t(r, n) {
|
4328
4323
|
var i = e.call(this) || this;
|
4329
4324
|
return i.destination = r, i.source = n, i;
|
@@ -4339,17 +4334,17 @@ var wo = Ar(function(e) {
|
|
4339
4334
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
4340
4335
|
}, t.prototype._subscribe = function(r) {
|
4341
4336
|
var n, i;
|
4342
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
4337
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ar;
|
4343
4338
|
}, t;
|
4344
|
-
}(
|
4339
|
+
}(Ir), Nr = {
|
4345
4340
|
now: function() {
|
4346
|
-
return (
|
4341
|
+
return (Nr.delegate || Date).now();
|
4347
4342
|
},
|
4348
4343
|
delegate: void 0
|
4349
|
-
},
|
4350
|
-
|
4344
|
+
}, wo = function(e) {
|
4345
|
+
ce(t, e);
|
4351
4346
|
function t(r, n, i) {
|
4352
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
4347
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Nr);
|
4353
4348
|
var o = e.call(this) || this;
|
4354
4349
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
4355
4350
|
}
|
@@ -4369,23 +4364,23 @@ var wo = Ar(function(e) {
|
|
4369
4364
|
l && o.splice(0, l + 1);
|
4370
4365
|
}
|
4371
4366
|
}, t;
|
4372
|
-
}(
|
4373
|
-
const
|
4374
|
-
if (
|
4375
|
-
const r = new
|
4376
|
-
|
4367
|
+
}(Ir);
|
4368
|
+
const Wt = [], zt = {}, To = (e, t = 0) => {
|
4369
|
+
if (Wt.indexOf(e) == -1) {
|
4370
|
+
const r = new wo(t);
|
4371
|
+
zt[e] = r, Wt.push(e);
|
4377
4372
|
}
|
4378
|
-
return
|
4373
|
+
return zt[e];
|
4379
4374
|
};
|
4380
|
-
window.emWidgets = { topic:
|
4381
|
-
const
|
4382
|
-
function
|
4375
|
+
window.emWidgets = { topic: To };
|
4376
|
+
const Ho = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
4377
|
+
function Co(e, t) {
|
4383
4378
|
if (e) {
|
4384
4379
|
const r = document.createElement("style");
|
4385
4380
|
r.innerHTML = t, e.appendChild(r);
|
4386
4381
|
}
|
4387
4382
|
}
|
4388
|
-
function
|
4383
|
+
function Po(e, t) {
|
4389
4384
|
const r = new URL(t);
|
4390
4385
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4391
4386
|
const i = document.createElement("style");
|
@@ -4394,7 +4389,7 @@ function Bo(e, t) {
|
|
4394
4389
|
console.error("There was an error while trying to load client styling from URL", n);
|
4395
4390
|
});
|
4396
4391
|
}
|
4397
|
-
function
|
4392
|
+
function Bo(e, t, r) {
|
4398
4393
|
if (window.emMessageBus) {
|
4399
4394
|
const n = document.createElement("style");
|
4400
4395
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4402,18 +4397,18 @@ function Ao(e, t, r) {
|
|
4402
4397
|
});
|
4403
4398
|
}
|
4404
4399
|
}
|
4405
|
-
function
|
4406
|
-
|
4400
|
+
function Ao(e) {
|
4401
|
+
en(e, "svelte-ci1i8", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
4407
4402
|
}
|
4408
|
-
function
|
4403
|
+
function Zt(e, t, r) {
|
4409
4404
|
const n = e.slice();
|
4410
4405
|
return n[41] = t[r], n;
|
4411
4406
|
}
|
4412
|
-
function
|
4407
|
+
function Qt(e, t, r) {
|
4413
4408
|
const n = e.slice();
|
4414
4409
|
return n[44] = t[r], n;
|
4415
4410
|
}
|
4416
|
-
function
|
4411
|
+
function Oo(e) {
|
4417
4412
|
let t, r, n, i = (
|
4418
4413
|
/*type*/
|
4419
4414
|
(e[0] === "vendor" ? (
|
@@ -4426,24 +4421,24 @@ function Lo(e) {
|
|
4426
4421
|
), o, s, a, h, l, u = (
|
4427
4422
|
/*numberOfSlides*/
|
4428
4423
|
e[7] > /*numberOfVisibleSlides*/
|
4429
|
-
e[8] &&
|
4430
|
-
), f =
|
4424
|
+
e[8] && Jt(e)
|
4425
|
+
), f = xe(
|
4431
4426
|
/*gameCategories*/
|
4432
4427
|
e[3]
|
4433
4428
|
), c = [];
|
4434
4429
|
for (let d = 0; d < f.length; d += 1)
|
4435
|
-
c[d] =
|
4430
|
+
c[d] = Kt(Zt(e, f, d));
|
4436
4431
|
return {
|
4437
4432
|
c() {
|
4438
|
-
t =
|
4433
|
+
t = P("div"), r = P("div"), n = P("p"), o = He(i), s = V(), u && u.c(), a = V(), h = P("div");
|
4439
4434
|
for (let d = 0; d < c.length; d += 1)
|
4440
4435
|
c[d].c();
|
4441
|
-
|
4436
|
+
E(n, "class", "Title"), E(r, "class", "CategoriesHeader"), E(h, "class", "CategoriesSlider"), E(t, "class", l = "CasinoCollectionsProviders " + /*mobile*/
|
4442
4437
|
(e[9] ? "Mobile" : "") + " " + /*type*/
|
4443
4438
|
(e[0] === "vendor" ? "Providers" : "Collections"));
|
4444
4439
|
},
|
4445
4440
|
m(d, m) {
|
4446
|
-
|
4441
|
+
U(d, t, m), C(t, r), C(r, n), C(n, o), C(r, s), u && u.m(r, null), C(t, a), C(t, h);
|
4447
4442
|
for (let b = 0; b < c.length; b += 1)
|
4448
4443
|
c[b] && c[b].m(h, null);
|
4449
4444
|
e[25](h);
|
@@ -4457,18 +4452,18 @@ function Lo(e) {
|
|
4457
4452
|
) : (
|
4458
4453
|
/*$_*/
|
4459
4454
|
d[10]("collections")
|
4460
|
-
)) + "") &&
|
4455
|
+
)) + "") && ut(o, i), /*numberOfSlides*/
|
4461
4456
|
d[7] > /*numberOfVisibleSlides*/
|
4462
|
-
d[8] ? u ? u.p(d, m) : (u =
|
4457
|
+
d[8] ? u ? u.p(d, m) : (u = Jt(d), u.c(), u.m(r, null)) : u && (u.d(1), u = null), m[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
|
4463
4458
|
24590) {
|
4464
|
-
f =
|
4459
|
+
f = xe(
|
4465
4460
|
/*gameCategories*/
|
4466
4461
|
d[3]
|
4467
4462
|
);
|
4468
4463
|
let b;
|
4469
4464
|
for (b = 0; b < f.length; b += 1) {
|
4470
|
-
const g =
|
4471
|
-
c[b] ? c[b].p(g, m) : (c[b] =
|
4465
|
+
const g = Zt(d, f, b);
|
4466
|
+
c[b] ? c[b].p(g, m) : (c[b] = Kt(g), c[b].c(), c[b].m(h, null));
|
4472
4467
|
}
|
4473
4468
|
for (; b < c.length; b += 1)
|
4474
4469
|
c[b].d(1);
|
@@ -4477,21 +4472,21 @@ function Lo(e) {
|
|
4477
4472
|
m[0] & /*mobile, type*/
|
4478
4473
|
513 && l !== (l = "CasinoCollectionsProviders " + /*mobile*/
|
4479
4474
|
(d[9] ? "Mobile" : "") + " " + /*type*/
|
4480
|
-
(d[0] === "vendor" ? "Providers" : "Collections")) &&
|
4475
|
+
(d[0] === "vendor" ? "Providers" : "Collections")) && E(t, "class", l);
|
4481
4476
|
},
|
4482
4477
|
d(d) {
|
4483
|
-
d && R(t), u && u.d(),
|
4478
|
+
d && R(t), u && u.d(), nr(c, d), e[25](null);
|
4484
4479
|
}
|
4485
4480
|
};
|
4486
4481
|
}
|
4487
|
-
function
|
4482
|
+
function Lo(e) {
|
4488
4483
|
let t;
|
4489
4484
|
return {
|
4490
4485
|
c() {
|
4491
|
-
t =
|
4486
|
+
t = P("div"), E(t, "class", "LoadingSpinner");
|
4492
4487
|
},
|
4493
4488
|
m(r, n) {
|
4494
|
-
|
4489
|
+
U(r, t, n);
|
4495
4490
|
},
|
4496
4491
|
p: I,
|
4497
4492
|
d(r) {
|
@@ -4499,21 +4494,21 @@ function Io(e) {
|
|
4499
4494
|
}
|
4500
4495
|
};
|
4501
4496
|
}
|
4502
|
-
function
|
4497
|
+
function Jt(e) {
|
4503
4498
|
let t, r, n, i, o, s;
|
4504
4499
|
return {
|
4505
4500
|
c() {
|
4506
|
-
t =
|
4501
|
+
t = P("div"), r = P("button"), r.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>', n = V(), i = P("button"), i.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>', E(t, "class", "ButtonsContainer");
|
4507
4502
|
},
|
4508
4503
|
m(a, h) {
|
4509
|
-
|
4510
|
-
|
4504
|
+
U(a, t, h), C(t, r), C(t, n), C(t, i), o || (s = [
|
4505
|
+
_e(
|
4511
4506
|
r,
|
4512
4507
|
"click",
|
4513
4508
|
/*sliderScrollLeft*/
|
4514
4509
|
e[11]
|
4515
4510
|
),
|
4516
|
-
|
4511
|
+
_e(
|
4517
4512
|
i,
|
4518
4513
|
"click",
|
4519
4514
|
/*sliderScrollRight*/
|
@@ -4523,81 +4518,81 @@ function qt(e) {
|
|
4523
4518
|
},
|
4524
4519
|
p: I,
|
4525
4520
|
d(a) {
|
4526
|
-
a && R(t), o = !1,
|
4521
|
+
a && R(t), o = !1, te(s);
|
4527
4522
|
}
|
4528
4523
|
};
|
4529
4524
|
}
|
4530
|
-
function
|
4525
|
+
function Io(e) {
|
4531
4526
|
let t, r = (
|
4532
4527
|
/*category*/
|
4533
4528
|
e[41].name + ""
|
4534
4529
|
), n;
|
4535
4530
|
return {
|
4536
4531
|
c() {
|
4537
|
-
t =
|
4532
|
+
t = P("p"), n = He(r), E(t, "class", "CategorySlideTitle");
|
4538
4533
|
},
|
4539
4534
|
m(i, o) {
|
4540
|
-
|
4535
|
+
U(i, t, o), C(t, n);
|
4541
4536
|
},
|
4542
4537
|
p(i, o) {
|
4543
4538
|
o[0] & /*gameCategories*/
|
4544
4539
|
8 && r !== (r = /*category*/
|
4545
|
-
i[41].name + "") &&
|
4540
|
+
i[41].name + "") && ut(n, r);
|
4546
4541
|
},
|
4547
4542
|
d(i) {
|
4548
4543
|
i && R(t);
|
4549
4544
|
}
|
4550
4545
|
};
|
4551
4546
|
}
|
4552
|
-
function
|
4547
|
+
function No(e) {
|
4553
4548
|
let t, r, n;
|
4554
4549
|
return {
|
4555
4550
|
c() {
|
4556
|
-
t =
|
4557
|
-
e[41].icon) ||
|
4551
|
+
t = P("img"), E(t, "class", "CategorySlideLogo"), ye(t.src, r = /*category*/
|
4552
|
+
e[41].icon) || E(t, "src", r), E(t, "alt", n = /*category*/
|
4558
4553
|
e[41].name + " icon");
|
4559
4554
|
},
|
4560
4555
|
m(i, o) {
|
4561
|
-
|
4556
|
+
U(i, t, o);
|
4562
4557
|
},
|
4563
4558
|
p(i, o) {
|
4564
4559
|
o[0] & /*gameCategories*/
|
4565
|
-
8 && !
|
4566
|
-
i[41].icon) &&
|
4560
|
+
8 && !ye(t.src, r = /*category*/
|
4561
|
+
i[41].icon) && E(t, "src", r), o[0] & /*gameCategories*/
|
4567
4562
|
8 && n !== (n = /*category*/
|
4568
|
-
i[41].name + " icon") &&
|
4563
|
+
i[41].name + " icon") && E(t, "alt", n);
|
4569
4564
|
},
|
4570
4565
|
d(i) {
|
4571
4566
|
i && R(t);
|
4572
4567
|
}
|
4573
4568
|
};
|
4574
4569
|
}
|
4575
|
-
function
|
4570
|
+
function qt(e) {
|
4576
4571
|
let t, r = (
|
4577
4572
|
/*game*/
|
4578
4573
|
e[44].name + ""
|
4579
4574
|
), n, i;
|
4580
4575
|
return {
|
4581
4576
|
c() {
|
4582
|
-
t =
|
4577
|
+
t = P("p"), n = He(r), E(t, "title", i = /*game*/
|
4583
4578
|
e[44].name);
|
4584
4579
|
},
|
4585
4580
|
m(o, s) {
|
4586
|
-
|
4581
|
+
U(o, t, s), C(t, n);
|
4587
4582
|
},
|
4588
4583
|
p(o, s) {
|
4589
4584
|
s[0] & /*gameCategories*/
|
4590
4585
|
8 && r !== (r = /*game*/
|
4591
|
-
o[44].name + "") &&
|
4586
|
+
o[44].name + "") && ut(n, r), s[0] & /*gameCategories*/
|
4592
4587
|
8 && i !== (i = /*game*/
|
4593
|
-
o[44].name) &&
|
4588
|
+
o[44].name) && E(t, "title", i);
|
4594
4589
|
},
|
4595
4590
|
d(o) {
|
4596
4591
|
o && R(t);
|
4597
4592
|
}
|
4598
4593
|
};
|
4599
4594
|
}
|
4600
|
-
function
|
4595
|
+
function Yt(e) {
|
4601
4596
|
let t, r, n, i, o, s, a, h;
|
4602
4597
|
function l() {
|
4603
4598
|
return (
|
@@ -4610,50 +4605,50 @@ function Kt(e) {
|
|
4610
4605
|
}
|
4611
4606
|
let u = (
|
4612
4607
|
/*collectionprovidersgamenames*/
|
4613
|
-
e[2] == "true" &&
|
4608
|
+
e[2] == "true" && qt(e)
|
4614
4609
|
);
|
4615
4610
|
return {
|
4616
4611
|
c() {
|
4617
|
-
t =
|
4618
|
-
e[44].defaultThumbnail) ||
|
4619
|
-
e[44].name),
|
4612
|
+
t = P("div"), r = P("img"), o = V(), u && u.c(), s = V(), E(r, "class", "CategorySlideGameImage"), ye(r.src, n = /*game*/
|
4613
|
+
e[44].defaultThumbnail) || E(r, "src", n), E(r, "alt", i = /*game*/
|
4614
|
+
e[44].name), E(t, "class", "CategorySlideGames");
|
4620
4615
|
},
|
4621
4616
|
m(f, c) {
|
4622
|
-
|
4617
|
+
U(f, t, c), C(t, r), C(t, o), u && u.m(t, null), C(t, s), a || (h = _e(r, "click", nn(l)), a = !0);
|
4623
4618
|
},
|
4624
4619
|
p(f, c) {
|
4625
4620
|
e = f, c[0] & /*gameCategories*/
|
4626
|
-
8 && !
|
4627
|
-
e[44].defaultThumbnail) &&
|
4621
|
+
8 && !ye(r.src, n = /*game*/
|
4622
|
+
e[44].defaultThumbnail) && E(r, "src", n), c[0] & /*gameCategories*/
|
4628
4623
|
8 && i !== (i = /*game*/
|
4629
|
-
e[44].name) &&
|
4630
|
-
e[2] == "true" ? u ? u.p(e, c) : (u =
|
4624
|
+
e[44].name) && E(r, "alt", i), /*collectionprovidersgamenames*/
|
4625
|
+
e[2] == "true" ? u ? u.p(e, c) : (u = qt(e), u.c(), u.m(t, s)) : u && (u.d(1), u = null);
|
4631
4626
|
},
|
4632
4627
|
d(f) {
|
4633
4628
|
f && R(t), u && u.d(), a = !1, h();
|
4634
4629
|
}
|
4635
4630
|
};
|
4636
4631
|
}
|
4637
|
-
function
|
4632
|
+
function Kt(e) {
|
4638
4633
|
let t, r, n, i, o, s, a, h, l;
|
4639
4634
|
function u(g, _) {
|
4640
4635
|
if (
|
4641
4636
|
/*titletype*/
|
4642
4637
|
g[1] === "logo"
|
4643
4638
|
)
|
4644
|
-
return
|
4639
|
+
return No;
|
4645
4640
|
if (
|
4646
4641
|
/*titletype*/
|
4647
4642
|
g[1] === "title"
|
4648
4643
|
)
|
4649
|
-
return
|
4644
|
+
return Io;
|
4650
4645
|
}
|
4651
|
-
let f = u(e), c = f && f(e), d =
|
4646
|
+
let f = u(e), c = f && f(e), d = xe(
|
4652
4647
|
/*category*/
|
4653
4648
|
e[41].games
|
4654
4649
|
), m = [];
|
4655
4650
|
for (let g = 0; g < d.length; g += 1)
|
4656
|
-
m[g] =
|
4651
|
+
m[g] = Yt(Qt(e, d, g));
|
4657
4652
|
function b() {
|
4658
4653
|
return (
|
4659
4654
|
/*click_handler_1*/
|
@@ -4666,62 +4661,62 @@ function er(e) {
|
|
4666
4661
|
return {
|
4667
4662
|
c() {
|
4668
4663
|
var g, _;
|
4669
|
-
t =
|
4670
|
-
for (let
|
4671
|
-
m[
|
4672
|
-
a =
|
4673
|
-
(((g = e[41]) == null ? void 0 : g.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")),
|
4674
|
-
((_ = e[41]) == null ? void 0 : _.background) + ")"),
|
4664
|
+
t = P("div"), r = P("div"), n = P("div"), c && c.c(), i = V(), o = P("div");
|
4665
|
+
for (let x = 0; x < m.length; x += 1)
|
4666
|
+
m[x].c();
|
4667
|
+
a = V(), E(n, "class", "CategorySlideTopContainer"), E(o, "class", "CategorySlideGameContainer"), E(r, "class", s = "CategorySlide " + /*category*/
|
4668
|
+
(((g = e[41]) == null ? void 0 : g.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")), Me(r, "background-image", "url(" + /*category*/
|
4669
|
+
((_ = e[41]) == null ? void 0 : _.background) + ")"), Me(r, "background-size", "cover"), E(t, "class", "CategoriesSliderWrapper Animation");
|
4675
4670
|
},
|
4676
4671
|
m(g, _) {
|
4677
|
-
|
4678
|
-
for (let
|
4679
|
-
m[
|
4680
|
-
|
4672
|
+
U(g, t, _), C(t, r), C(r, n), c && c.m(n, null), C(r, i), C(r, o);
|
4673
|
+
for (let x = 0; x < m.length; x += 1)
|
4674
|
+
m[x] && m[x].m(o, null);
|
4675
|
+
C(t, a), h || (l = _e(r, "click", b), h = !0);
|
4681
4676
|
},
|
4682
4677
|
p(g, _) {
|
4683
|
-
var
|
4678
|
+
var x, T;
|
4684
4679
|
if (e = g, f === (f = u(e)) && c ? c.p(e, _) : (c && c.d(1), c = f && f(e), c && (c.c(), c.m(n, null))), _[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
|
4685
4680
|
8204) {
|
4686
|
-
d =
|
4681
|
+
d = xe(
|
4687
4682
|
/*category*/
|
4688
4683
|
e[41].games
|
4689
4684
|
);
|
4690
|
-
let
|
4691
|
-
for (
|
4692
|
-
const O =
|
4693
|
-
m[
|
4685
|
+
let H;
|
4686
|
+
for (H = 0; H < d.length; H += 1) {
|
4687
|
+
const O = Qt(e, d, H);
|
4688
|
+
m[H] ? m[H].p(O, _) : (m[H] = Yt(O), m[H].c(), m[H].m(o, null));
|
4694
4689
|
}
|
4695
|
-
for (;
|
4696
|
-
m[
|
4690
|
+
for (; H < m.length; H += 1)
|
4691
|
+
m[H].d(1);
|
4697
4692
|
m.length = d.length;
|
4698
4693
|
}
|
4699
4694
|
_[0] & /*gameCategories*/
|
4700
4695
|
8 && s !== (s = "CategorySlide " + /*category*/
|
4701
|
-
(((
|
4702
|
-
8 &&
|
4703
|
-
((
|
4696
|
+
(((x = e[41]) == null ? void 0 : x.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")) && E(r, "class", s), _[0] & /*gameCategories*/
|
4697
|
+
8 && Me(r, "background-image", "url(" + /*category*/
|
4698
|
+
((T = e[41]) == null ? void 0 : T.background) + ")");
|
4704
4699
|
},
|
4705
4700
|
d(g) {
|
4706
|
-
g && R(t), c && c.d(),
|
4701
|
+
g && R(t), c && c.d(), nr(m, g), h = !1, l();
|
4707
4702
|
}
|
4708
4703
|
};
|
4709
4704
|
}
|
4710
|
-
function
|
4705
|
+
function Mo(e) {
|
4711
4706
|
let t;
|
4712
4707
|
function r(o, s) {
|
4713
4708
|
return (
|
4714
4709
|
/*isLoading*/
|
4715
|
-
o[6] ?
|
4710
|
+
o[6] ? Lo : Oo
|
4716
4711
|
);
|
4717
4712
|
}
|
4718
4713
|
let n = r(e), i = n(e);
|
4719
4714
|
return {
|
4720
4715
|
c() {
|
4721
|
-
t =
|
4716
|
+
t = P("div"), i.c();
|
4722
4717
|
},
|
4723
4718
|
m(o, s) {
|
4724
|
-
|
4719
|
+
U(o, t, s), i.m(t, null), e[26](t);
|
4725
4720
|
},
|
4726
4721
|
p(o, s) {
|
4727
4722
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
@@ -4733,70 +4728,70 @@ function Ro(e) {
|
|
4733
4728
|
}
|
4734
4729
|
};
|
4735
4730
|
}
|
4736
|
-
function
|
4731
|
+
function Ro(e, t, r) {
|
4737
4732
|
let n;
|
4738
|
-
|
4739
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: f = "" } = t, { collectionprovidersgamenames: c = "" } = t, { mbsource: d } = t, m = [], b = !0, g, _ = 0,
|
4740
|
-
const
|
4733
|
+
Kr(e, lo, (p) => r(10, n = p));
|
4734
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: f = "" } = t, { collectionprovidersgamenames: c = "" } = t, { mbsource: d } = t, m = [], b = !0, g, _ = 0, x = 0, T = 0, H, O, k = 0, W = 50, Ie = !1, $, Mr = window.navigator.userAgent, ct;
|
4735
|
+
const Rr = () => {
|
4741
4736
|
fetch(f).then((B) => B.json()).then((B) => {
|
4742
|
-
Object.keys(B).forEach((
|
4743
|
-
|
4737
|
+
Object.keys(B).forEach((D) => {
|
4738
|
+
Ut(D, B[D]);
|
4744
4739
|
});
|
4745
4740
|
}).catch((B) => {
|
4746
4741
|
console.log(B);
|
4747
4742
|
});
|
4748
4743
|
};
|
4749
|
-
Object.keys(
|
4750
|
-
|
4744
|
+
Object.keys(Dt).forEach((p) => {
|
4745
|
+
Ut(p, Dt[p]);
|
4751
4746
|
});
|
4752
|
-
const
|
4747
|
+
const ft = () => {
|
4753
4748
|
const p = new URL(`${i}/v2/casino/groups/${o}`);
|
4754
|
-
p.searchParams.append("language", s), p.searchParams.append("expand", "games"), p.searchParams.append("filter", `$and(flags=${a})`), p.searchParams.append("pagination", `offset=${
|
4755
|
-
r(6, b = !1), B.total >
|
4756
|
-
let
|
4757
|
-
var vt, yt
|
4749
|
+
p.searchParams.append("language", s), p.searchParams.append("expand", "games"), p.searchParams.append("filter", `$and(flags=${a})`), p.searchParams.append("pagination", `offset=${k},limit=${W}`), fetch(p.href).then((B) => B.json()).then((B) => {
|
4750
|
+
r(6, b = !1), B.total > W && (k += 50, W += 50, r(22, Ie = !0));
|
4751
|
+
let D = B.items.map((L) => {
|
4752
|
+
var gt, vt, yt;
|
4758
4753
|
return {
|
4759
4754
|
id: L.id,
|
4760
4755
|
name: L.name,
|
4761
|
-
icon: L.icon ? L.icon : (
|
4762
|
-
games: L.games.items.slice(0, 4).map((
|
4756
|
+
icon: L.icon ? L.icon : (yt = (vt = (gt = L.vendors) == null ? void 0 : gt.items[0]) == null ? void 0 : vt.subVendors[0]) == null ? void 0 : yt.logo,
|
4757
|
+
games: L.games.items.slice(0, 4).map((Wr) => Wr),
|
4763
4758
|
background: L.background,
|
4764
4759
|
flag: L.flags
|
4765
4760
|
};
|
4766
4761
|
});
|
4767
|
-
r(3, m = [...m, ...
|
4762
|
+
r(3, m = [...m, ...D]), r(7, x = m.length), $r();
|
4768
4763
|
});
|
4769
|
-
},
|
4764
|
+
}, $r = () => {
|
4770
4765
|
const p = $.getRootNode().host;
|
4771
4766
|
p.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: p } }));
|
4772
|
-
},
|
4767
|
+
}, dt = (p) => {
|
4773
4768
|
var B;
|
4774
|
-
O = [...g.children], O.forEach((
|
4775
|
-
|
4776
|
-
}),
|
4769
|
+
O = [...g.children], O.forEach((D, L) => {
|
4770
|
+
D.style.transform = `translateX(${100 * (p ? L - p : L)}%)`;
|
4771
|
+
}), H = (B = O[0]) == null ? void 0 : B.getBoundingClientRect().width, Gr();
|
4772
|
+
}, Gr = () => {
|
4773
|
+
r(8, T = Math.floor(g.clientWidth / H));
|
4774
|
+
}, pt = () => {
|
4775
|
+
dt(_);
|
4777
4776
|
}, Ur = () => {
|
4778
|
-
|
4779
|
-
}, mt = () => {
|
4780
|
-
pt(_);
|
4777
|
+
_ === 0 ? _ = x - T : _ - T < -1 ? _ = 0 : _--, pt();
|
4781
4778
|
}, Dr = () => {
|
4782
|
-
_ ===
|
4783
|
-
},
|
4784
|
-
_ === E - w ? _ = 0 : E - w < _ + 1 ? _ = E - w : _++, mt();
|
4785
|
-
}, bt = (p, B, F, L) => {
|
4779
|
+
_ === x - T ? _ = 0 : x - T < _ + 1 ? _ = x - T : _++, pt();
|
4780
|
+
}, mt = (p, B, D, L) => {
|
4786
4781
|
window.postMessage(
|
4787
4782
|
{
|
4788
4783
|
type: "OpenCollectionsProvidersGame",
|
4789
4784
|
gameId: p,
|
4790
4785
|
launchUrl: B,
|
4791
|
-
gameName:
|
4786
|
+
gameName: D,
|
4792
4787
|
subVendor: L
|
4793
4788
|
},
|
4794
4789
|
window.location.href
|
4795
4790
|
), typeof gtag == "function" && gtag("event", "OpenGame", {
|
4796
4791
|
context: "CollectionsProviders",
|
4797
|
-
gameName: `${
|
4792
|
+
gameName: `${D}`
|
4798
4793
|
});
|
4799
|
-
},
|
4794
|
+
}, bt = (p) => {
|
4800
4795
|
window.postMessage(
|
4801
4796
|
{
|
4802
4797
|
type: "OpenCollectionsProvidersCategory",
|
@@ -4804,19 +4799,19 @@ function $o(e, t, r) {
|
|
4804
4799
|
},
|
4805
4800
|
window.location.href
|
4806
4801
|
);
|
4807
|
-
},
|
4808
|
-
|
4802
|
+
}, Fr = () => {
|
4803
|
+
ho(s);
|
4809
4804
|
};
|
4810
|
-
|
4805
|
+
un(() => (r(9, ct = Ho(Mr)), () => {
|
4811
4806
|
}));
|
4812
|
-
const
|
4813
|
-
function
|
4814
|
-
|
4807
|
+
const jr = (p) => mt(p.gameId, p.launchUrl, p.name, p.subVendor), kr = (p) => bt(p.id);
|
4808
|
+
function Vr(p) {
|
4809
|
+
Ee[p ? "unshift" : "push"](() => {
|
4815
4810
|
g = p, r(4, g);
|
4816
4811
|
});
|
4817
4812
|
}
|
4818
|
-
function
|
4819
|
-
|
4813
|
+
function Xr(p) {
|
4814
|
+
Ee[p ? "unshift" : "push"](() => {
|
4820
4815
|
$ = p, r(5, $);
|
4821
4816
|
});
|
4822
4817
|
}
|
@@ -4824,14 +4819,14 @@ function $o(e, t, r) {
|
|
4824
4819
|
"endpoint" in p && r(15, i = p.endpoint), "datasource" in p && r(16, o = p.datasource), "lang" in p && r(17, s = p.lang), "type" in p && r(0, a = p.type), "titletype" in p && r(1, h = p.titletype), "clientstyling" in p && r(18, l = p.clientstyling), "clientstylingurl" in p && r(19, u = p.clientstylingurl), "translationurl" in p && r(20, f = p.translationurl), "collectionprovidersgamenames" in p && r(2, c = p.collectionprovidersgamenames), "mbsource" in p && r(21, d = p.mbsource);
|
4825
4820
|
}, e.$$.update = () => {
|
4826
4821
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4827
|
-
229376 && i && o && s &&
|
4828
|
-
24 && m && g &&
|
4829
|
-
131072 && s &&
|
4830
|
-
262176 && l && $ &&
|
4831
|
-
524320 && u && $ &&
|
4832
|
-
2097184 && $ &&
|
4833
|
-
1048576 && f &&
|
4834
|
-
4194304 &&
|
4822
|
+
229376 && i && o && s && ft(), e.$$.dirty[0] & /*gameCategories, categoriesSlider*/
|
4823
|
+
24 && m && g && dt(), e.$$.dirty[0] & /*lang*/
|
4824
|
+
131072 && s && Fr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4825
|
+
262176 && l && $ && Co($, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4826
|
+
524320 && u && $ && Po($, u), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4827
|
+
2097184 && $ && Bo($, `${d}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4828
|
+
1048576 && f && Rr(), e.$$.dirty[0] & /*paginationrequired*/
|
4829
|
+
4194304 && Ie && ft();
|
4835
4830
|
}, [
|
4836
4831
|
a,
|
4837
4832
|
h,
|
@@ -4840,14 +4835,14 @@ function $o(e, t, r) {
|
|
4840
4835
|
g,
|
4841
4836
|
$,
|
4842
4837
|
b,
|
4843
|
-
|
4844
|
-
|
4845
|
-
|
4838
|
+
x,
|
4839
|
+
T,
|
4840
|
+
ct,
|
4846
4841
|
n,
|
4842
|
+
Ur,
|
4847
4843
|
Dr,
|
4848
|
-
|
4844
|
+
mt,
|
4849
4845
|
bt,
|
4850
|
-
gt,
|
4851
4846
|
i,
|
4852
4847
|
o,
|
4853
4848
|
s,
|
@@ -4855,21 +4850,21 @@ function $o(e, t, r) {
|
|
4855
4850
|
u,
|
4856
4851
|
f,
|
4857
4852
|
d,
|
4858
|
-
|
4853
|
+
Ie,
|
4854
|
+
jr,
|
4859
4855
|
kr,
|
4860
4856
|
Vr,
|
4861
|
-
Xr
|
4862
|
-
Wr
|
4857
|
+
Xr
|
4863
4858
|
];
|
4864
4859
|
}
|
4865
|
-
class
|
4860
|
+
class $o extends _n {
|
4866
4861
|
constructor(t) {
|
4867
|
-
super(),
|
4862
|
+
super(), vn(
|
4868
4863
|
this,
|
4869
4864
|
t,
|
4870
|
-
$o,
|
4871
4865
|
Ro,
|
4872
|
-
|
4866
|
+
Mo,
|
4867
|
+
tr,
|
4873
4868
|
{
|
4874
4869
|
endpoint: 15,
|
4875
4870
|
datasource: 16,
|
@@ -4882,7 +4877,7 @@ class Go extends En {
|
|
4882
4877
|
collectionprovidersgamenames: 2,
|
4883
4878
|
mbsource: 21
|
4884
4879
|
},
|
4885
|
-
|
4880
|
+
Ao,
|
4886
4881
|
[-1, -1]
|
4887
4882
|
);
|
4888
4883
|
}
|
@@ -4947,7 +4942,7 @@ class Go extends En {
|
|
4947
4942
|
this.$$set({ mbsource: t }), M();
|
4948
4943
|
}
|
4949
4944
|
}
|
4950
|
-
|
4945
|
+
yn($o, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
|
4951
4946
|
export {
|
4952
|
-
|
4947
|
+
$o as default
|
4953
4948
|
};
|