@everymatrix/casino-categories-slider 1.47.3 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategoriesSlider-CSV6RmWs.js → CasinoCategoriesSlider-B9aXApz5.js} +549 -544
- package/components/{CasinoCategoriesSlider-DqzDlqdF.cjs → CasinoCategoriesSlider-CEQ7guYX.cjs} +3 -3
- package/components/{CasinoSlider-dAY4e2nD.js → CasinoSlider-CTLT5T1k.js} +2 -2
- package/components/{CasinoSlider-Bquz3sVm.cjs → CasinoSlider-Ciq29NG6.cjs} +1 -1
- package/es2015/casino-categories-slider.cjs +1 -1
- package/es2015/casino-categories-slider.js +1 -1
- package/package.json +1 -1
package/components/{CasinoCategoriesSlider-CSV6RmWs.js → CasinoCategoriesSlider-B9aXApz5.js}
RENAMED
@@ -1,17 +1,17 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var
|
1
|
+
var $r = Object.defineProperty, jr = Object.defineProperties;
|
2
|
+
var kr = Object.getOwnPropertyDescriptors;
|
3
|
+
var dt = Object.getOwnPropertySymbols;
|
4
|
+
var Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var Ie = (e, t, r) => t in e ? $r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Vr.call(t, r) && Ie(e, r, t[r]);
|
8
|
+
if (dt)
|
9
|
+
for (var r of dt(t))
|
10
|
+
Xr.call(t, r) && Ie(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
},
|
13
|
-
var R = (e, t, r) =>
|
14
|
-
var
|
12
|
+
}, pt = (e, t) => jr(e, kr(t));
|
13
|
+
var R = (e, t, r) => Ie(e, typeof t != "symbol" ? t + "" : t, r);
|
14
|
+
var gt = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var s = (h) => {
|
16
16
|
try {
|
17
17
|
a(r.next(h));
|
@@ -29,29 +29,29 @@ var bt = (e, t, r) => new Promise((n, i) => {
|
|
29
29
|
});
|
30
30
|
function B() {
|
31
31
|
}
|
32
|
-
function
|
32
|
+
function jt(e) {
|
33
33
|
return e();
|
34
34
|
}
|
35
|
-
function
|
35
|
+
function yt() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
38
|
function ie(e) {
|
39
|
-
e.forEach(
|
39
|
+
e.forEach(jt);
|
40
40
|
}
|
41
41
|
function we(e) {
|
42
42
|
return typeof e == "function";
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function kt(e, t) {
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
46
46
|
}
|
47
47
|
let pe;
|
48
|
-
function
|
48
|
+
function Ts(e, t) {
|
49
49
|
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
50
50
|
}
|
51
|
-
function
|
51
|
+
function Wr(e) {
|
52
52
|
return Object.keys(e).length === 0;
|
53
53
|
}
|
54
|
-
function
|
54
|
+
function Vt(e, ...t) {
|
55
55
|
if (e == null) {
|
56
56
|
for (const n of t)
|
57
57
|
n(void 0);
|
@@ -60,23 +60,23 @@ function jt(e, ...t) {
|
|
60
60
|
const r = e.subscribe(...t);
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
62
62
|
}
|
63
|
-
function
|
64
|
-
e.$$.on_destroy.push(
|
63
|
+
function zr(e, t, r) {
|
64
|
+
e.$$.on_destroy.push(Vt(t, r));
|
65
65
|
}
|
66
|
-
function
|
66
|
+
function Zr(e) {
|
67
67
|
return e && we(e.destroy) ? e.destroy : B;
|
68
68
|
}
|
69
|
-
function
|
69
|
+
function Xt(e, t) {
|
70
70
|
e.appendChild(t);
|
71
71
|
}
|
72
|
-
function
|
73
|
-
const n =
|
72
|
+
function qr(e, t, r) {
|
73
|
+
const n = Qr(e);
|
74
74
|
if (!n.getElementById(t)) {
|
75
75
|
const i = V("style");
|
76
|
-
i.id = t, i.textContent = r,
|
76
|
+
i.id = t, i.textContent = r, Jr(n, i);
|
77
77
|
}
|
78
78
|
}
|
79
|
-
function
|
79
|
+
function Qr(e) {
|
80
80
|
if (!e) return document;
|
81
81
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
82
82
|
return t && /** @type {ShadowRoot} */
|
@@ -85,8 +85,8 @@ function qr(e) {
|
|
85
85
|
t
|
86
86
|
) : e.ownerDocument;
|
87
87
|
}
|
88
|
-
function
|
89
|
-
return
|
88
|
+
function Jr(e, t) {
|
89
|
+
return Xt(
|
90
90
|
/** @type {Document} */
|
91
91
|
e.head || e,
|
92
92
|
t
|
@@ -98,23 +98,23 @@ function me(e, t, r) {
|
|
98
98
|
function se(e) {
|
99
99
|
e.parentNode && e.parentNode.removeChild(e);
|
100
100
|
}
|
101
|
-
function
|
101
|
+
function ws(e, t) {
|
102
102
|
for (let r = 0; r < e.length; r += 1)
|
103
103
|
e[r] && e[r].d(t);
|
104
104
|
}
|
105
105
|
function V(e) {
|
106
106
|
return document.createElement(e);
|
107
107
|
}
|
108
|
-
function
|
108
|
+
function Wt(e) {
|
109
109
|
return document.createTextNode(e);
|
110
110
|
}
|
111
|
-
function
|
112
|
-
return
|
111
|
+
function Hs() {
|
112
|
+
return Wt(" ");
|
113
113
|
}
|
114
|
-
function
|
115
|
-
return
|
114
|
+
function As() {
|
115
|
+
return Wt("");
|
116
116
|
}
|
117
|
-
function
|
117
|
+
function Bs(e, t, r, n) {
|
118
118
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
119
119
|
}
|
120
120
|
function K(e, t, r) {
|
@@ -124,14 +124,14 @@ function E(e, t, r) {
|
|
124
124
|
const n = t.toLowerCase();
|
125
125
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : K(e, t, r);
|
126
126
|
}
|
127
|
-
function
|
127
|
+
function Yr(e) {
|
128
128
|
return Array.from(e.childNodes);
|
129
129
|
}
|
130
|
-
function
|
130
|
+
function Ps(e, t) {
|
131
131
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
132
132
|
t);
|
133
133
|
}
|
134
|
-
function
|
134
|
+
function Kr(e) {
|
135
135
|
const t = {};
|
136
136
|
return e.childNodes.forEach(
|
137
137
|
/** @param {Element} node */
|
@@ -144,27 +144,27 @@ let le;
|
|
144
144
|
function he(e) {
|
145
145
|
le = e;
|
146
146
|
}
|
147
|
-
function
|
147
|
+
function en() {
|
148
148
|
if (!le) throw new Error("Function called outside component initialization");
|
149
149
|
return le;
|
150
150
|
}
|
151
|
-
function
|
152
|
-
|
151
|
+
function tn(e) {
|
152
|
+
en().$$.on_mount.push(e);
|
153
153
|
}
|
154
|
-
const Q = [],
|
154
|
+
const Q = [], ke = [];
|
155
155
|
let J = [];
|
156
|
-
const
|
157
|
-
let
|
158
|
-
function
|
159
|
-
|
156
|
+
const vt = [], zt = /* @__PURE__ */ Promise.resolve();
|
157
|
+
let Ve = !1;
|
158
|
+
function Zt() {
|
159
|
+
Ve || (Ve = !0, zt.then(S));
|
160
160
|
}
|
161
|
-
function
|
162
|
-
return
|
161
|
+
function rn() {
|
162
|
+
return Zt(), zt;
|
163
163
|
}
|
164
|
-
function
|
164
|
+
function Xe(e) {
|
165
165
|
J.push(e);
|
166
166
|
}
|
167
|
-
const
|
167
|
+
const Me = /* @__PURE__ */ new Set();
|
168
168
|
let Z = 0;
|
169
169
|
function S() {
|
170
170
|
if (Z !== 0)
|
@@ -174,60 +174,60 @@ function S() {
|
|
174
174
|
try {
|
175
175
|
for (; Z < Q.length; ) {
|
176
176
|
const t = Q[Z];
|
177
|
-
Z++, he(t),
|
177
|
+
Z++, he(t), nn(t.$$);
|
178
178
|
}
|
179
179
|
} catch (t) {
|
180
180
|
throw Q.length = 0, Z = 0, t;
|
181
181
|
}
|
182
|
-
for (he(null), Q.length = 0, Z = 0;
|
182
|
+
for (he(null), Q.length = 0, Z = 0; ke.length; ) ke.pop()();
|
183
183
|
for (let t = 0; t < J.length; t += 1) {
|
184
184
|
const r = J[t];
|
185
|
-
|
185
|
+
Me.has(r) || (Me.add(r), r());
|
186
186
|
}
|
187
187
|
J.length = 0;
|
188
188
|
} while (Q.length);
|
189
|
-
for (;
|
190
|
-
|
191
|
-
|
189
|
+
for (; vt.length; )
|
190
|
+
vt.pop()();
|
191
|
+
Ve = !1, Me.clear(), he(e);
|
192
192
|
}
|
193
|
-
function
|
193
|
+
function nn(e) {
|
194
194
|
if (e.fragment !== null) {
|
195
195
|
e.update(), ie(e.before_update);
|
196
196
|
const t = e.dirty;
|
197
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
197
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
198
198
|
}
|
199
199
|
}
|
200
|
-
function
|
200
|
+
function sn(e) {
|
201
201
|
const t = [], r = [];
|
202
202
|
J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
|
203
203
|
}
|
204
|
-
const
|
205
|
-
function
|
206
|
-
e && e.i && (
|
204
|
+
const on = /* @__PURE__ */ new Set();
|
205
|
+
function qt(e, t) {
|
206
|
+
e && e.i && (on.delete(e), e.i(t));
|
207
207
|
}
|
208
|
-
function
|
208
|
+
function Ns(e) {
|
209
209
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
210
210
|
}
|
211
|
-
function
|
211
|
+
function Os(e, t) {
|
212
212
|
e.d(1), t.delete(e.key);
|
213
213
|
}
|
214
|
-
function
|
214
|
+
function Ls(e, t, r, n, i, s, o, a, h, u, l, m) {
|
215
215
|
let c = e.length, d = s.length, b = c;
|
216
216
|
const y = {};
|
217
217
|
for (; b--; ) y[e[b].key] = b;
|
218
218
|
const w = [], I = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), T = [];
|
219
219
|
for (b = d; b--; ) {
|
220
|
-
const _ = m(i, s, b),
|
221
|
-
let
|
222
|
-
|
220
|
+
const _ = m(i, s, b), L = r(_);
|
221
|
+
let C = o.get(L);
|
222
|
+
C ? T.push(() => C.p(_, t)) : (C = u(L, _), C.c()), I.set(L, w[b] = C), L in y && P.set(L, Math.abs(b - y[L]));
|
223
223
|
}
|
224
224
|
const N = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
|
225
225
|
function G(_) {
|
226
|
-
|
226
|
+
qt(_, 1), _.m(a, l), o.set(_.key, _), l = _.first, d--;
|
227
227
|
}
|
228
228
|
for (; c && d; ) {
|
229
|
-
const _ = w[d - 1],
|
230
|
-
_ ===
|
229
|
+
const _ = w[d - 1], L = e[c - 1], C = _.key, M = L.key;
|
230
|
+
_ === L ? (l = _.first, c--, d--) : I.has(M) ? !o.has(C) || N.has(C) ? G(_) : O.has(M) ? c-- : P.get(C) > P.get(M) ? (O.add(C), G(_)) : (N.add(M), c--) : (h(L, o), c--);
|
231
231
|
}
|
232
232
|
for (; c--; ) {
|
233
233
|
const _ = e[c];
|
@@ -236,21 +236,21 @@ function Os(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
236
236
|
for (; d; ) G(w[d - 1]);
|
237
237
|
return ie(T), w;
|
238
238
|
}
|
239
|
-
function
|
239
|
+
function an(e, t, r) {
|
240
240
|
const { fragment: n, after_update: i } = e.$$;
|
241
|
-
n && n.m(t, r),
|
242
|
-
const s = e.$$.on_mount.map(
|
241
|
+
n && n.m(t, r), Xe(() => {
|
242
|
+
const s = e.$$.on_mount.map(jt).filter(we);
|
243
243
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ie(s), e.$$.on_mount = [];
|
244
|
-
}), i.forEach(
|
244
|
+
}), i.forEach(Xe);
|
245
245
|
}
|
246
|
-
function
|
246
|
+
function un(e, t) {
|
247
247
|
const r = e.$$;
|
248
|
-
r.fragment !== null && (
|
248
|
+
r.fragment !== null && (sn(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
249
249
|
}
|
250
|
-
function
|
251
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
250
|
+
function hn(e, t) {
|
251
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Zt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
252
252
|
}
|
253
|
-
function
|
253
|
+
function ln(e, t, r, n, i, s, o = null, a = [-1]) {
|
254
254
|
const h = le;
|
255
255
|
he(e);
|
256
256
|
const u = e.$$ = {
|
@@ -260,7 +260,7 @@ function un(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
260
260
|
props: s,
|
261
261
|
update: B,
|
262
262
|
not_equal: i,
|
263
|
-
bound:
|
263
|
+
bound: yt(),
|
264
264
|
// lifecycle
|
265
265
|
on_mount: [],
|
266
266
|
on_destroy: [],
|
@@ -269,7 +269,7 @@ function un(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
269
269
|
after_update: [],
|
270
270
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
271
271
|
// everything else
|
272
|
-
callbacks:
|
272
|
+
callbacks: yt(),
|
273
273
|
dirty: a,
|
274
274
|
skip_bound: !1,
|
275
275
|
root: t.target || h.$$.root
|
@@ -278,19 +278,19 @@ function un(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
278
278
|
let l = !1;
|
279
279
|
if (u.ctx = r ? r(e, t.props || {}, (m, c, ...d) => {
|
280
280
|
const b = d.length ? d[0] : c;
|
281
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l &&
|
281
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l && hn(e, m)), c;
|
282
282
|
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
283
283
|
if (t.hydrate) {
|
284
|
-
const m =
|
284
|
+
const m = Yr(t.target);
|
285
285
|
u.fragment && u.fragment.l(m), m.forEach(se);
|
286
286
|
} else
|
287
287
|
u.fragment && u.fragment.c();
|
288
|
-
t.intro &&
|
288
|
+
t.intro && qt(e.$$.fragment), an(e, t.target, t.anchor), S();
|
289
289
|
}
|
290
290
|
he(h);
|
291
291
|
}
|
292
|
-
let
|
293
|
-
typeof HTMLElement == "function" && (
|
292
|
+
let Qt;
|
293
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
294
294
|
constructor(t, r, n) {
|
295
295
|
super();
|
296
296
|
/** The Svelte component constructor */
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
327
327
|
}
|
328
328
|
}
|
329
329
|
connectedCallback() {
|
330
|
-
return
|
330
|
+
return gt(this, null, function* () {
|
331
331
|
if (this.$$cn = !0, !this.$$c) {
|
332
332
|
let t = function(s) {
|
333
333
|
return () => {
|
@@ -351,7 +351,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
351
351
|
};
|
352
352
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
353
353
|
return;
|
354
|
-
const r = {}, n =
|
354
|
+
const r = {}, n = Kr(this);
|
355
355
|
for (const s of this.$$s)
|
356
356
|
s in n && (r[s] = [t(s)]);
|
357
357
|
for (const s of this.attributes) {
|
@@ -362,7 +362,7 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
362
362
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
363
363
|
this.$$c = new this.$$ctor({
|
364
364
|
target: this.shadowRoot || this,
|
365
|
-
props:
|
365
|
+
props: pt(bt({}, this.$$d), {
|
366
366
|
$$slots: r,
|
367
367
|
$$scope: {
|
368
368
|
ctx: []
|
@@ -440,8 +440,8 @@ function ve(e, t, r, n) {
|
|
440
440
|
return t;
|
441
441
|
}
|
442
442
|
}
|
443
|
-
function
|
444
|
-
let o = class extends
|
443
|
+
function cn(e, t, r, n, i, s) {
|
444
|
+
let o = class extends Qt {
|
445
445
|
constructor() {
|
446
446
|
super(e, r, i), this.$$p_d = t;
|
447
447
|
}
|
@@ -471,7 +471,7 @@ function hn(e, t, r, n, i, s) {
|
|
471
471
|
}), e.element = /** @type {any} */
|
472
472
|
o, o;
|
473
473
|
}
|
474
|
-
class
|
474
|
+
class fn {
|
475
475
|
constructor() {
|
476
476
|
/**
|
477
477
|
* ### PRIVATE API
|
@@ -492,7 +492,7 @@ class ln {
|
|
492
492
|
}
|
493
493
|
/** @returns {void} */
|
494
494
|
$destroy() {
|
495
|
-
|
495
|
+
un(this, 1), this.$destroy = B;
|
496
496
|
}
|
497
497
|
/**
|
498
498
|
* @template {Extract<keyof Events, string>} K
|
@@ -514,22 +514,22 @@ class ln {
|
|
514
514
|
* @returns {void}
|
515
515
|
*/
|
516
516
|
$set(t) {
|
517
|
-
this.$$set && !
|
517
|
+
this.$$set && !Wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
518
518
|
}
|
519
519
|
}
|
520
|
-
const
|
521
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
522
|
-
var
|
523
|
-
return
|
520
|
+
const mn = "4";
|
521
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mn);
|
522
|
+
var We = function(e, t) {
|
523
|
+
return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
524
524
|
r.__proto__ = n;
|
525
525
|
} || function(r, n) {
|
526
526
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
527
|
-
},
|
527
|
+
}, We(e, t);
|
528
528
|
};
|
529
529
|
function D(e, t) {
|
530
530
|
if (typeof t != "function" && t !== null)
|
531
531
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
532
|
-
|
532
|
+
We(e, t);
|
533
533
|
function r() {
|
534
534
|
this.constructor = e;
|
535
535
|
}
|
@@ -544,7 +544,7 @@ var v = function() {
|
|
544
544
|
return t;
|
545
545
|
}, v.apply(this, arguments);
|
546
546
|
};
|
547
|
-
function
|
547
|
+
function dn(e, t) {
|
548
548
|
var r = {};
|
549
549
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
550
550
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -552,7 +552,7 @@ function fn(e, t) {
|
|
552
552
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
553
553
|
return r;
|
554
554
|
}
|
555
|
-
function
|
555
|
+
function ze(e) {
|
556
556
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
557
557
|
if (r) return r.call(e);
|
558
558
|
if (e && typeof e.length == "number") return {
|
@@ -562,7 +562,7 @@ function We(e) {
|
|
562
562
|
};
|
563
563
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
564
564
|
}
|
565
|
-
function
|
565
|
+
function Ze(e, t) {
|
566
566
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
567
567
|
if (!r) return e;
|
568
568
|
var n = r.call(e), i, s = [], o;
|
@@ -587,13 +587,13 @@ function Y(e, t, r) {
|
|
587
587
|
function U(e) {
|
588
588
|
return typeof e == "function";
|
589
589
|
}
|
590
|
-
function
|
590
|
+
function Jt(e) {
|
591
591
|
var t = function(n) {
|
592
592
|
Error.call(n), n.stack = new Error().stack;
|
593
593
|
}, r = e(t);
|
594
594
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
595
595
|
}
|
596
|
-
var
|
596
|
+
var Re = Jt(function(e) {
|
597
597
|
return function(r) {
|
598
598
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
599
599
|
` + r.map(function(n, i) {
|
@@ -602,7 +602,7 @@ var Me = qt(function(e) {
|
|
602
602
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
603
603
|
};
|
604
604
|
});
|
605
|
-
function
|
605
|
+
function qe(e, t) {
|
606
606
|
if (e) {
|
607
607
|
var r = e.indexOf(t);
|
608
608
|
0 <= r && e.splice(r, 1);
|
@@ -620,7 +620,7 @@ var He = function() {
|
|
620
620
|
if (o)
|
621
621
|
if (this._parentage = null, Array.isArray(o))
|
622
622
|
try {
|
623
|
-
for (var a =
|
623
|
+
for (var a = ze(o), h = a.next(); !h.done; h = a.next()) {
|
624
624
|
var u = h.value;
|
625
625
|
u.remove(this);
|
626
626
|
}
|
@@ -640,18 +640,18 @@ var He = function() {
|
|
640
640
|
try {
|
641
641
|
l();
|
642
642
|
} catch (y) {
|
643
|
-
s = y instanceof
|
643
|
+
s = y instanceof Re ? y.errors : [y];
|
644
644
|
}
|
645
645
|
var m = this._finalizers;
|
646
646
|
if (m) {
|
647
647
|
this._finalizers = null;
|
648
648
|
try {
|
649
|
-
for (var c =
|
649
|
+
for (var c = ze(m), d = c.next(); !d.done; d = c.next()) {
|
650
650
|
var b = d.value;
|
651
651
|
try {
|
652
|
-
|
652
|
+
Et(b);
|
653
653
|
} catch (y) {
|
654
|
-
s = s != null ? s : [], y instanceof
|
654
|
+
s = s != null ? s : [], y instanceof Re ? s = Y(Y([], Ze(s)), Ze(y.errors)) : s.push(y);
|
655
655
|
}
|
656
656
|
}
|
657
657
|
} catch (y) {
|
@@ -665,13 +665,13 @@ var He = function() {
|
|
665
665
|
}
|
666
666
|
}
|
667
667
|
if (s)
|
668
|
-
throw new
|
668
|
+
throw new Re(s);
|
669
669
|
}
|
670
670
|
}, e.prototype.add = function(t) {
|
671
671
|
var r;
|
672
672
|
if (t && t !== this)
|
673
673
|
if (this.closed)
|
674
|
-
|
674
|
+
Et(t);
|
675
675
|
else {
|
676
676
|
if (t instanceof e) {
|
677
677
|
if (t.closed || t._hasParent(this))
|
@@ -688,57 +688,57 @@ var He = function() {
|
|
688
688
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
689
689
|
}, e.prototype._removeParent = function(t) {
|
690
690
|
var r = this._parentage;
|
691
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
691
|
+
r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
|
692
692
|
}, e.prototype.remove = function(t) {
|
693
693
|
var r = this._finalizers;
|
694
|
-
r &&
|
694
|
+
r && qe(r, t), t instanceof e && t._removeParent(this);
|
695
695
|
}, e.EMPTY = function() {
|
696
696
|
var t = new e();
|
697
697
|
return t.closed = !0, t;
|
698
698
|
}(), e;
|
699
|
-
}(),
|
700
|
-
function
|
699
|
+
}(), Yt = He.EMPTY;
|
700
|
+
function Kt(e) {
|
701
701
|
return e instanceof He || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
|
702
702
|
}
|
703
|
-
function
|
703
|
+
function Et(e) {
|
704
704
|
U(e) ? e() : e.unsubscribe();
|
705
705
|
}
|
706
|
-
var
|
706
|
+
var er = {
|
707
707
|
onUnhandledError: null,
|
708
708
|
onStoppedNotification: null,
|
709
709
|
Promise: void 0,
|
710
710
|
useDeprecatedSynchronousErrorHandling: !1,
|
711
711
|
useDeprecatedNextContext: !1
|
712
|
-
},
|
712
|
+
}, tr = {
|
713
713
|
setTimeout: function(e, t) {
|
714
714
|
for (var r = [], n = 2; n < arguments.length; n++)
|
715
715
|
r[n - 2] = arguments[n];
|
716
|
-
return setTimeout.apply(void 0, Y([e, t],
|
716
|
+
return setTimeout.apply(void 0, Y([e, t], Ze(r)));
|
717
717
|
},
|
718
718
|
clearTimeout: function(e) {
|
719
|
-
var t =
|
719
|
+
var t = tr.delegate;
|
720
720
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
721
721
|
},
|
722
722
|
delegate: void 0
|
723
723
|
};
|
724
|
-
function
|
725
|
-
|
724
|
+
function bn(e) {
|
725
|
+
tr.setTimeout(function() {
|
726
726
|
throw e;
|
727
727
|
});
|
728
728
|
}
|
729
|
-
function
|
729
|
+
function _t() {
|
730
730
|
}
|
731
731
|
function Ee(e) {
|
732
732
|
e();
|
733
733
|
}
|
734
|
-
var
|
734
|
+
var rr = function(e) {
|
735
735
|
D(t, e);
|
736
736
|
function t(r) {
|
737
737
|
var n = e.call(this) || this;
|
738
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
738
|
+
return n.isStopped = !1, r ? (n.destination = r, Kt(r) && r.add(n)) : n.destination = vn, n;
|
739
739
|
}
|
740
740
|
return t.create = function(r, n, i) {
|
741
|
-
return new
|
741
|
+
return new Qe(r, n, i);
|
742
742
|
}, t.prototype.next = function(r) {
|
743
743
|
this.isStopped || this._next(r);
|
744
744
|
}, t.prototype.error = function(r) {
|
@@ -762,11 +762,11 @@ var er = function(e) {
|
|
762
762
|
this.unsubscribe();
|
763
763
|
}
|
764
764
|
}, t;
|
765
|
-
}(He),
|
766
|
-
function
|
767
|
-
return
|
765
|
+
}(He), pn = Function.prototype.bind;
|
766
|
+
function Ge(e, t) {
|
767
|
+
return pn.call(e, t);
|
768
768
|
}
|
769
|
-
var
|
769
|
+
var gn = function() {
|
770
770
|
function e(t) {
|
771
771
|
this.partialObserver = t;
|
772
772
|
}
|
@@ -797,7 +797,7 @@ var bn = function() {
|
|
797
797
|
ge(r);
|
798
798
|
}
|
799
799
|
}, e;
|
800
|
-
}(),
|
800
|
+
}(), Qe = function(e) {
|
801
801
|
D(t, e);
|
802
802
|
function t(r, n, i) {
|
803
803
|
var s = e.call(this) || this, o;
|
@@ -809,43 +809,43 @@ var bn = function() {
|
|
809
809
|
};
|
810
810
|
else {
|
811
811
|
var a;
|
812
|
-
s &&
|
812
|
+
s && er.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
813
813
|
return s.unsubscribe();
|
814
814
|
}, o = {
|
815
|
-
next: r.next &&
|
816
|
-
error: r.error &&
|
817
|
-
complete: r.complete &&
|
815
|
+
next: r.next && Ge(r.next, a),
|
816
|
+
error: r.error && Ge(r.error, a),
|
817
|
+
complete: r.complete && Ge(r.complete, a)
|
818
818
|
}) : o = r;
|
819
819
|
}
|
820
|
-
return s.destination = new
|
820
|
+
return s.destination = new gn(o), s;
|
821
821
|
}
|
822
822
|
return t;
|
823
|
-
}(
|
823
|
+
}(rr);
|
824
824
|
function ge(e) {
|
825
|
-
|
825
|
+
bn(e);
|
826
826
|
}
|
827
|
-
function
|
827
|
+
function yn(e) {
|
828
828
|
throw e;
|
829
829
|
}
|
830
|
-
var
|
830
|
+
var vn = {
|
831
831
|
closed: !0,
|
832
|
-
next:
|
833
|
-
error:
|
834
|
-
complete:
|
835
|
-
},
|
832
|
+
next: _t,
|
833
|
+
error: yn,
|
834
|
+
complete: _t
|
835
|
+
}, En = function() {
|
836
836
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
837
837
|
}();
|
838
|
-
function
|
838
|
+
function _n(e) {
|
839
839
|
return e;
|
840
840
|
}
|
841
|
-
function
|
842
|
-
return e.length === 0 ?
|
841
|
+
function xn(e) {
|
842
|
+
return e.length === 0 ? _n : e.length === 1 ? e[0] : function(r) {
|
843
843
|
return e.reduce(function(n, i) {
|
844
844
|
return i(n);
|
845
845
|
}, r);
|
846
846
|
};
|
847
847
|
}
|
848
|
-
var
|
848
|
+
var xt = function() {
|
849
849
|
function e(t) {
|
850
850
|
t && (this._subscribe = t);
|
851
851
|
}
|
@@ -853,7 +853,7 @@ var Et = function() {
|
|
853
853
|
var r = new e();
|
854
854
|
return r.source = this, r.operator = t, r;
|
855
855
|
}, e.prototype.subscribe = function(t, r, n) {
|
856
|
-
var i = this, s =
|
856
|
+
var i = this, s = Tn(t) ? t : new Qe(t, r, n);
|
857
857
|
return Ee(function() {
|
858
858
|
var o = i, a = o.operator, h = o.source;
|
859
859
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
@@ -866,8 +866,8 @@ var Et = function() {
|
|
866
866
|
}
|
867
867
|
}, e.prototype.forEach = function(t, r) {
|
868
868
|
var n = this;
|
869
|
-
return r =
|
870
|
-
var o = new
|
869
|
+
return r = St(r), new r(function(i, s) {
|
870
|
+
var o = new Qe({
|
871
871
|
next: function(a) {
|
872
872
|
try {
|
873
873
|
t(a);
|
@@ -883,15 +883,15 @@ var Et = function() {
|
|
883
883
|
}, e.prototype._subscribe = function(t) {
|
884
884
|
var r;
|
885
885
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
886
|
-
}, e.prototype[
|
886
|
+
}, e.prototype[En] = function() {
|
887
887
|
return this;
|
888
888
|
}, e.prototype.pipe = function() {
|
889
889
|
for (var t = [], r = 0; r < arguments.length; r++)
|
890
890
|
t[r] = arguments[r];
|
891
|
-
return
|
891
|
+
return xn(t)(this);
|
892
892
|
}, e.prototype.toPromise = function(t) {
|
893
893
|
var r = this;
|
894
|
-
return t =
|
894
|
+
return t = St(t), new t(function(n, i) {
|
895
895
|
var s;
|
896
896
|
r.subscribe(function(o) {
|
897
897
|
return s = o;
|
@@ -905,32 +905,32 @@ var Et = function() {
|
|
905
905
|
return new e(t);
|
906
906
|
}, e;
|
907
907
|
}();
|
908
|
-
function
|
908
|
+
function St(e) {
|
909
909
|
var t;
|
910
|
-
return (t = e != null ? e :
|
910
|
+
return (t = e != null ? e : er.Promise) !== null && t !== void 0 ? t : Promise;
|
911
911
|
}
|
912
|
-
function
|
912
|
+
function Sn(e) {
|
913
913
|
return e && U(e.next) && U(e.error) && U(e.complete);
|
914
914
|
}
|
915
|
-
function
|
916
|
-
return e && e instanceof
|
915
|
+
function Tn(e) {
|
916
|
+
return e && e instanceof rr || Sn(e) && Kt(e);
|
917
917
|
}
|
918
|
-
var
|
918
|
+
var wn = Jt(function(e) {
|
919
919
|
return function() {
|
920
920
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
921
921
|
};
|
922
|
-
}),
|
922
|
+
}), nr = function(e) {
|
923
923
|
D(t, e);
|
924
924
|
function t() {
|
925
925
|
var r = e.call(this) || this;
|
926
926
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
927
927
|
}
|
928
928
|
return t.prototype.lift = function(r) {
|
929
|
-
var n = new
|
929
|
+
var n = new Tt(this, this);
|
930
930
|
return n.operator = r, n;
|
931
931
|
}, t.prototype._throwIfClosed = function() {
|
932
932
|
if (this.closed)
|
933
|
-
throw new
|
933
|
+
throw new wn();
|
934
934
|
}, t.prototype.next = function(r) {
|
935
935
|
var n = this;
|
936
936
|
Ee(function() {
|
@@ -938,7 +938,7 @@ var Sn = qt(function(e) {
|
|
938
938
|
if (n._throwIfClosed(), !n.isStopped) {
|
939
939
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
940
940
|
try {
|
941
|
-
for (var o =
|
941
|
+
for (var o = ze(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
942
942
|
var h = a.value;
|
943
943
|
h.next(r);
|
944
944
|
}
|
@@ -986,19 +986,19 @@ var Sn = qt(function(e) {
|
|
986
986
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
987
987
|
}, t.prototype._innerSubscribe = function(r) {
|
988
988
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
989
|
-
return s || o ?
|
990
|
-
n.currentObservers = null,
|
989
|
+
return s || o ? Yt : (this.currentObservers = null, a.push(r), new He(function() {
|
990
|
+
n.currentObservers = null, qe(a, r);
|
991
991
|
}));
|
992
992
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
993
993
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
994
994
|
i ? r.error(s) : o && r.complete();
|
995
995
|
}, t.prototype.asObservable = function() {
|
996
|
-
var r = new
|
996
|
+
var r = new xt();
|
997
997
|
return r.source = this, r;
|
998
998
|
}, t.create = function(r, n) {
|
999
|
-
return new
|
999
|
+
return new Tt(r, n);
|
1000
1000
|
}, t;
|
1001
|
-
}(
|
1001
|
+
}(xt), Tt = function(e) {
|
1002
1002
|
D(t, e);
|
1003
1003
|
function t(r, n) {
|
1004
1004
|
var i = e.call(this) || this;
|
@@ -1015,17 +1015,17 @@ var Sn = qt(function(e) {
|
|
1015
1015
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
1016
1016
|
}, t.prototype._subscribe = function(r) {
|
1017
1017
|
var n, i;
|
1018
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1018
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Yt;
|
1019
1019
|
}, t;
|
1020
|
-
}(
|
1020
|
+
}(nr), ir = {
|
1021
1021
|
now: function() {
|
1022
|
-
return (
|
1022
|
+
return (ir.delegate || Date).now();
|
1023
1023
|
},
|
1024
1024
|
delegate: void 0
|
1025
|
-
},
|
1025
|
+
}, Hn = function(e) {
|
1026
1026
|
D(t, e);
|
1027
1027
|
function t(r, n, i) {
|
1028
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1028
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = ir);
|
1029
1029
|
var s = e.call(this) || this;
|
1030
1030
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
1031
1031
|
}
|
@@ -1045,15 +1045,15 @@ var Sn = qt(function(e) {
|
|
1045
1045
|
u && s.splice(0, u + 1);
|
1046
1046
|
}
|
1047
1047
|
}, t;
|
1048
|
-
}(
|
1049
|
-
const
|
1050
|
-
if (
|
1051
|
-
const r = new
|
1052
|
-
|
1048
|
+
}(nr);
|
1049
|
+
const wt = [], Ht = {}, An = (e, t = 0) => {
|
1050
|
+
if (wt.indexOf(e) == -1) {
|
1051
|
+
const r = new Hn(t);
|
1052
|
+
Ht[e] = r, wt.push(e);
|
1053
1053
|
}
|
1054
|
-
return
|
1054
|
+
return Ht[e];
|
1055
1055
|
}, q = [];
|
1056
|
-
function
|
1056
|
+
function Bn(e, t) {
|
1057
1057
|
return {
|
1058
1058
|
subscribe: Ae(e, t).subscribe
|
1059
1059
|
};
|
@@ -1062,7 +1062,7 @@ function Ae(e, t = B) {
|
|
1062
1062
|
let r;
|
1063
1063
|
const n = /* @__PURE__ */ new Set();
|
1064
1064
|
function i(a) {
|
1065
|
-
if (
|
1065
|
+
if (kt(e, a) && (e = a, r)) {
|
1066
1066
|
const h = !q.length;
|
1067
1067
|
for (const u of n)
|
1068
1068
|
u[1](), q.push(u, e);
|
@@ -1089,7 +1089,7 @@ function oe(e, t, r) {
|
|
1089
1089
|
if (!i.every(Boolean))
|
1090
1090
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1091
1091
|
const s = t.length < 2;
|
1092
|
-
return
|
1092
|
+
return Bn(r, (o, a) => {
|
1093
1093
|
let h = !1;
|
1094
1094
|
const u = [];
|
1095
1095
|
let l = 0, m = B;
|
@@ -1100,7 +1100,7 @@ function oe(e, t, r) {
|
|
1100
1100
|
const b = t(n ? u[0] : u, o, a);
|
1101
1101
|
s ? o(b) : m = we(b) ? b : B;
|
1102
1102
|
}, d = i.map(
|
1103
|
-
(b, y) =>
|
1103
|
+
(b, y) => Vt(
|
1104
1104
|
b,
|
1105
1105
|
(w) => {
|
1106
1106
|
u[y] = w, l &= ~(1 << y), h && c();
|
@@ -1115,70 +1115,70 @@ function oe(e, t, r) {
|
|
1115
1115
|
};
|
1116
1116
|
});
|
1117
1117
|
}
|
1118
|
-
function
|
1118
|
+
function Pn(e) {
|
1119
1119
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1120
1120
|
}
|
1121
|
-
var
|
1122
|
-
return
|
1121
|
+
var Nn = function(t) {
|
1122
|
+
return On(t) && !Ln(t);
|
1123
1123
|
};
|
1124
|
-
function
|
1124
|
+
function On(e) {
|
1125
1125
|
return !!e && typeof e == "object";
|
1126
1126
|
}
|
1127
|
-
function
|
1127
|
+
function Ln(e) {
|
1128
1128
|
var t = Object.prototype.toString.call(e);
|
1129
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1129
|
+
return t === "[object RegExp]" || t === "[object Date]" || Mn(e);
|
1130
1130
|
}
|
1131
|
-
var
|
1132
|
-
function
|
1133
|
-
return e.$$typeof ===
|
1131
|
+
var Cn = typeof Symbol == "function" && Symbol.for, In = Cn ? Symbol.for("react.element") : 60103;
|
1132
|
+
function Mn(e) {
|
1133
|
+
return e.$$typeof === In;
|
1134
1134
|
}
|
1135
|
-
function
|
1135
|
+
function Rn(e) {
|
1136
1136
|
return Array.isArray(e) ? [] : {};
|
1137
1137
|
}
|
1138
1138
|
function ce(e, t) {
|
1139
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ee(
|
1139
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee(Rn(e), e, t) : e;
|
1140
1140
|
}
|
1141
|
-
function
|
1141
|
+
function Gn(e, t, r) {
|
1142
1142
|
return e.concat(t).map(function(n) {
|
1143
1143
|
return ce(n, r);
|
1144
1144
|
});
|
1145
1145
|
}
|
1146
|
-
function
|
1146
|
+
function Un(e, t) {
|
1147
1147
|
if (!t.customMerge)
|
1148
1148
|
return ee;
|
1149
1149
|
var r = t.customMerge(e);
|
1150
1150
|
return typeof r == "function" ? r : ee;
|
1151
1151
|
}
|
1152
|
-
function
|
1152
|
+
function Dn(e) {
|
1153
1153
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1154
1154
|
return Object.propertyIsEnumerable.call(e, t);
|
1155
1155
|
}) : [];
|
1156
1156
|
}
|
1157
|
-
function
|
1158
|
-
return Object.keys(e).concat(
|
1157
|
+
function At(e) {
|
1158
|
+
return Object.keys(e).concat(Dn(e));
|
1159
1159
|
}
|
1160
|
-
function
|
1160
|
+
function sr(e, t) {
|
1161
1161
|
try {
|
1162
1162
|
return t in e;
|
1163
1163
|
} catch (r) {
|
1164
1164
|
return !1;
|
1165
1165
|
}
|
1166
1166
|
}
|
1167
|
-
function
|
1168
|
-
return
|
1167
|
+
function Fn(e, t) {
|
1168
|
+
return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1169
1169
|
}
|
1170
|
-
function
|
1170
|
+
function $n(e, t, r) {
|
1171
1171
|
var n = {};
|
1172
|
-
return r.isMergeableObject(e) &&
|
1172
|
+
return r.isMergeableObject(e) && At(e).forEach(function(i) {
|
1173
1173
|
n[i] = ce(e[i], r);
|
1174
|
-
}),
|
1175
|
-
|
1174
|
+
}), At(t).forEach(function(i) {
|
1175
|
+
Fn(e, i) || (sr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Un(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
1176
1176
|
}), n;
|
1177
1177
|
}
|
1178
1178
|
function ee(e, t, r) {
|
1179
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1179
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Gn, r.isMergeableObject = r.isMergeableObject || Nn, r.cloneUnlessOtherwiseSpecified = ce;
|
1180
1180
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
1181
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
1181
|
+
return s ? n ? r.arrayMerge(e, t, r) : $n(e, t, r) : ce(t, r);
|
1182
1182
|
}
|
1183
1183
|
ee.all = function(t, r) {
|
1184
1184
|
if (!Array.isArray(t))
|
@@ -1187,8 +1187,8 @@ ee.all = function(t, r) {
|
|
1187
1187
|
return ee(n, i, r);
|
1188
1188
|
}, {});
|
1189
1189
|
};
|
1190
|
-
var
|
1191
|
-
const
|
1190
|
+
var jn = ee, kn = jn;
|
1191
|
+
const Vn = /* @__PURE__ */ Pn(kn);
|
1192
1192
|
var p;
|
1193
1193
|
(function(e) {
|
1194
1194
|
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";
|
@@ -1201,43 +1201,43 @@ var te;
|
|
1201
1201
|
(function(e) {
|
1202
1202
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1203
1203
|
})(te || (te = {}));
|
1204
|
-
function
|
1204
|
+
function Bt(e) {
|
1205
1205
|
return e.type === x.literal;
|
1206
1206
|
}
|
1207
|
-
function
|
1207
|
+
function Xn(e) {
|
1208
1208
|
return e.type === x.argument;
|
1209
1209
|
}
|
1210
|
-
function
|
1210
|
+
function or(e) {
|
1211
1211
|
return e.type === x.number;
|
1212
1212
|
}
|
1213
|
-
function
|
1213
|
+
function ar(e) {
|
1214
1214
|
return e.type === x.date;
|
1215
1215
|
}
|
1216
|
-
function
|
1216
|
+
function ur(e) {
|
1217
1217
|
return e.type === x.time;
|
1218
1218
|
}
|
1219
|
-
function
|
1219
|
+
function hr(e) {
|
1220
1220
|
return e.type === x.select;
|
1221
1221
|
}
|
1222
|
-
function
|
1222
|
+
function lr(e) {
|
1223
1223
|
return e.type === x.plural;
|
1224
1224
|
}
|
1225
|
-
function
|
1225
|
+
function Wn(e) {
|
1226
1226
|
return e.type === x.pound;
|
1227
1227
|
}
|
1228
|
-
function
|
1228
|
+
function cr(e) {
|
1229
1229
|
return e.type === x.tag;
|
1230
1230
|
}
|
1231
|
-
function
|
1231
|
+
function fr(e) {
|
1232
1232
|
return !!(e && typeof e == "object" && e.type === te.number);
|
1233
1233
|
}
|
1234
|
-
function
|
1234
|
+
function Je(e) {
|
1235
1235
|
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
1236
1236
|
}
|
1237
|
-
var
|
1238
|
-
function
|
1237
|
+
var mr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zn = /(?:[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;
|
1238
|
+
function Zn(e) {
|
1239
1239
|
var t = {};
|
1240
|
-
return e.replace(
|
1240
|
+
return e.replace(zn, function(r) {
|
1241
1241
|
var n = r.length;
|
1242
1242
|
switch (r[0]) {
|
1243
1243
|
case "G":
|
@@ -1326,11 +1326,11 @@ function Wn(e) {
|
|
1326
1326
|
return "";
|
1327
1327
|
}), t;
|
1328
1328
|
}
|
1329
|
-
var
|
1330
|
-
function
|
1329
|
+
var qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1330
|
+
function Qn(e) {
|
1331
1331
|
if (e.length === 0)
|
1332
1332
|
throw new Error("Number skeleton cannot be empty");
|
1333
|
-
for (var t = e.split(
|
1333
|
+
for (var t = e.split(qn).filter(function(c) {
|
1334
1334
|
return c.length > 0;
|
1335
1335
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1336
1336
|
var s = i[n], o = s.split("/");
|
@@ -1345,17 +1345,17 @@ function Zn(e) {
|
|
1345
1345
|
}
|
1346
1346
|
return r;
|
1347
1347
|
}
|
1348
|
-
function
|
1348
|
+
function Jn(e) {
|
1349
1349
|
return e.replace(/^(.*?)-/, "");
|
1350
1350
|
}
|
1351
|
-
var
|
1352
|
-
function
|
1351
|
+
var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
|
1352
|
+
function Nt(e) {
|
1353
1353
|
var t = {};
|
1354
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1354
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dr, function(r, n, i) {
|
1355
1355
|
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)), "";
|
1356
1356
|
}), t;
|
1357
1357
|
}
|
1358
|
-
function
|
1358
|
+
function pr(e) {
|
1359
1359
|
switch (e) {
|
1360
1360
|
case "sign-auto":
|
1361
1361
|
return {
|
@@ -1395,7 +1395,7 @@ function dr(e) {
|
|
1395
1395
|
};
|
1396
1396
|
}
|
1397
1397
|
}
|
1398
|
-
function
|
1398
|
+
function Kn(e) {
|
1399
1399
|
var t;
|
1400
1400
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1401
1401
|
notation: "engineering"
|
@@ -1403,17 +1403,17 @@ function Jn(e) {
|
|
1403
1403
|
notation: "scientific"
|
1404
1404
|
}, e = e.slice(1)), t) {
|
1405
1405
|
var r = e.slice(0, 2);
|
1406
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1406
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
|
1407
1407
|
throw new Error("Malformed concise eng/scientific notation");
|
1408
1408
|
t.minimumIntegerDigits = e.length;
|
1409
1409
|
}
|
1410
1410
|
return t;
|
1411
1411
|
}
|
1412
|
-
function
|
1413
|
-
var t = {}, r =
|
1412
|
+
function Ot(e) {
|
1413
|
+
var t = {}, r = pr(e);
|
1414
1414
|
return r || t;
|
1415
1415
|
}
|
1416
|
-
function
|
1416
|
+
function ei(e) {
|
1417
1417
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1418
1418
|
var i = n[r];
|
1419
1419
|
switch (i.stem) {
|
@@ -1437,7 +1437,7 @@ function Yn(e) {
|
|
1437
1437
|
continue;
|
1438
1438
|
case "measure-unit":
|
1439
1439
|
case "unit":
|
1440
|
-
t.style = "unit", t.unit =
|
1440
|
+
t.style = "unit", t.unit = Jn(i.options[0]);
|
1441
1441
|
continue;
|
1442
1442
|
case "compact-short":
|
1443
1443
|
case "K":
|
@@ -1449,12 +1449,12 @@ function Yn(e) {
|
|
1449
1449
|
continue;
|
1450
1450
|
case "scientific":
|
1451
1451
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
1452
|
-
return v(v({}, h),
|
1452
|
+
return v(v({}, h), Ot(u));
|
1453
1453
|
}, {}));
|
1454
1454
|
continue;
|
1455
1455
|
case "engineering":
|
1456
1456
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
1457
|
-
return v(v({}, h),
|
1457
|
+
return v(v({}, h), Ot(u));
|
1458
1458
|
}, {}));
|
1459
1459
|
continue;
|
1460
1460
|
case "notation-simple":
|
@@ -1499,7 +1499,7 @@ function Yn(e) {
|
|
1499
1499
|
case "integer-width":
|
1500
1500
|
if (i.options.length > 1)
|
1501
1501
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1502
|
-
i.options[0].replace(
|
1502
|
+
i.options[0].replace(Yn, function(h, u, l, m, c, d) {
|
1503
1503
|
if (u)
|
1504
1504
|
t.minimumIntegerDigits = l.length;
|
1505
1505
|
else {
|
@@ -1512,27 +1512,27 @@ function Yn(e) {
|
|
1512
1512
|
});
|
1513
1513
|
continue;
|
1514
1514
|
}
|
1515
|
-
if (
|
1515
|
+
if (br.test(i.stem)) {
|
1516
1516
|
t.minimumIntegerDigits = i.stem.length;
|
1517
1517
|
continue;
|
1518
1518
|
}
|
1519
|
-
if (
|
1519
|
+
if (Pt.test(i.stem)) {
|
1520
1520
|
if (i.options.length > 1)
|
1521
1521
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1522
|
-
i.stem.replace(
|
1522
|
+
i.stem.replace(Pt, function(h, u, l, m, c, d) {
|
1523
1523
|
return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
1524
1524
|
});
|
1525
1525
|
var s = i.options[0];
|
1526
|
-
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t),
|
1526
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), Nt(s)));
|
1527
1527
|
continue;
|
1528
1528
|
}
|
1529
|
-
if (
|
1530
|
-
t = v(v({}, t),
|
1529
|
+
if (dr.test(i.stem)) {
|
1530
|
+
t = v(v({}, t), Nt(i.stem));
|
1531
1531
|
continue;
|
1532
1532
|
}
|
1533
|
-
var o =
|
1533
|
+
var o = pr(i.stem);
|
1534
1534
|
o && (t = v(v({}, t), o));
|
1535
|
-
var a =
|
1535
|
+
var a = Kn(i.stem);
|
1536
1536
|
a && (t = v(v({}, t), a));
|
1537
1537
|
}
|
1538
1538
|
return t;
|
@@ -2946,13 +2946,13 @@ var ye = {
|
|
2946
2946
|
"h"
|
2947
2947
|
]
|
2948
2948
|
};
|
2949
|
-
function
|
2949
|
+
function ti(e, t) {
|
2950
2950
|
for (var r = "", n = 0; n < e.length; n++) {
|
2951
2951
|
var i = e.charAt(n);
|
2952
2952
|
if (i === "j") {
|
2953
2953
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2954
2954
|
s++, n++;
|
2955
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
2955
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = ri(t);
|
2956
2956
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
2957
2957
|
r += h;
|
2958
2958
|
for (; o-- > 0; )
|
@@ -2961,7 +2961,7 @@ function Kn(e, t) {
|
|
2961
2961
|
}
|
2962
2962
|
return r;
|
2963
2963
|
}
|
2964
|
-
function
|
2964
|
+
function ri(e) {
|
2965
2965
|
var t = e.hourCycle;
|
2966
2966
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2967
2967
|
e.hourCycles && // @ts-ignore
|
@@ -2983,20 +2983,20 @@ function ei(e) {
|
|
2983
2983
|
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
2984
2984
|
return i[0];
|
2985
2985
|
}
|
2986
|
-
var
|
2986
|
+
var Ue, ni = new RegExp("^".concat(mr.source, "*")), ii = new RegExp("".concat(mr.source, "*$"));
|
2987
2987
|
function g(e, t) {
|
2988
2988
|
return { start: e, end: t };
|
2989
2989
|
}
|
2990
|
-
var
|
2990
|
+
var si = !!String.prototype.startsWith && "_a".startsWith("a", 1), oi = !!String.fromCodePoint, ai = !!Object.fromEntries, ui = !!String.prototype.codePointAt, hi = !!String.prototype.trimStart, li = !!String.prototype.trimEnd, ci = !!Number.isSafeInteger, fi = ci ? Number.isSafeInteger : function(e) {
|
2991
2991
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2992
|
-
},
|
2992
|
+
}, Ye = !0;
|
2993
2993
|
try {
|
2994
|
-
var
|
2995
|
-
|
2994
|
+
var mi = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2995
|
+
Ye = ((Ue = mi.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
2996
2996
|
} catch (e) {
|
2997
|
-
|
2997
|
+
Ye = !1;
|
2998
2998
|
}
|
2999
|
-
var
|
2999
|
+
var Lt = si ? (
|
3000
3000
|
// Native
|
3001
3001
|
function(t, r, n) {
|
3002
3002
|
return t.startsWith(r, n);
|
@@ -3006,7 +3006,7 @@ var Nt = ni ? (
|
|
3006
3006
|
function(t, r, n) {
|
3007
3007
|
return t.slice(n, n + r.length) === r;
|
3008
3008
|
}
|
3009
|
-
),
|
3009
|
+
), Ke = oi ? String.fromCodePoint : (
|
3010
3010
|
// IE11
|
3011
3011
|
function() {
|
3012
3012
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3018,9 +3018,9 @@ var Nt = ni ? (
|
|
3018
3018
|
}
|
3019
3019
|
return n;
|
3020
3020
|
}
|
3021
|
-
),
|
3021
|
+
), Ct = (
|
3022
3022
|
// native
|
3023
|
-
|
3023
|
+
ai ? Object.fromEntries : (
|
3024
3024
|
// Ponyfill
|
3025
3025
|
function(t) {
|
3026
3026
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3030,7 +3030,7 @@ var Nt = ni ? (
|
|
3030
3030
|
return r;
|
3031
3031
|
}
|
3032
3032
|
)
|
3033
|
-
),
|
3033
|
+
), gr = ui ? (
|
3034
3034
|
// Native
|
3035
3035
|
function(t, r) {
|
3036
3036
|
return t.codePointAt(r);
|
@@ -3044,7 +3044,7 @@ var Nt = ni ? (
|
|
3044
3044
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
3045
3045
|
}
|
3046
3046
|
}
|
3047
|
-
),
|
3047
|
+
), di = hi ? (
|
3048
3048
|
// Native
|
3049
3049
|
function(t) {
|
3050
3050
|
return t.trimStart();
|
@@ -3052,9 +3052,9 @@ var Nt = ni ? (
|
|
3052
3052
|
) : (
|
3053
3053
|
// Ponyfill
|
3054
3054
|
function(t) {
|
3055
|
-
return t.replace(
|
3055
|
+
return t.replace(ni, "");
|
3056
3056
|
}
|
3057
|
-
),
|
3057
|
+
), bi = li ? (
|
3058
3058
|
// Native
|
3059
3059
|
function(t) {
|
3060
3060
|
return t.trimEnd();
|
@@ -3062,32 +3062,32 @@ var Nt = ni ? (
|
|
3062
3062
|
) : (
|
3063
3063
|
// Ponyfill
|
3064
3064
|
function(t) {
|
3065
|
-
return t.replace(
|
3065
|
+
return t.replace(ii, "");
|
3066
3066
|
}
|
3067
3067
|
);
|
3068
|
-
function
|
3068
|
+
function yr(e, t) {
|
3069
3069
|
return new RegExp(e, t);
|
3070
3070
|
}
|
3071
|
-
var
|
3072
|
-
if (
|
3073
|
-
var
|
3074
|
-
|
3071
|
+
var et;
|
3072
|
+
if (Ye) {
|
3073
|
+
var It = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3074
|
+
et = function(t, r) {
|
3075
3075
|
var n;
|
3076
|
-
|
3077
|
-
var i =
|
3076
|
+
It.lastIndex = r;
|
3077
|
+
var i = It.exec(t);
|
3078
3078
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3079
3079
|
};
|
3080
3080
|
} else
|
3081
|
-
|
3081
|
+
et = function(t, r) {
|
3082
3082
|
for (var n = []; ; ) {
|
3083
|
-
var i =
|
3084
|
-
if (i === void 0 ||
|
3083
|
+
var i = gr(t, r);
|
3084
|
+
if (i === void 0 || vr(i) || vi(i))
|
3085
3085
|
break;
|
3086
3086
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3087
3087
|
}
|
3088
|
-
return
|
3088
|
+
return Ke.apply(void 0, n);
|
3089
3089
|
};
|
3090
|
-
var
|
3090
|
+
var pi = (
|
3091
3091
|
/** @class */
|
3092
3092
|
function() {
|
3093
3093
|
function e(t, r) {
|
@@ -3118,7 +3118,7 @@ var di = (
|
|
3118
3118
|
if (n)
|
3119
3119
|
break;
|
3120
3120
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
3121
|
-
} else if (s === 60 && !this.ignoreTag &&
|
3121
|
+
} else if (s === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
|
3122
3122
|
var o = this.parseTag(t, r);
|
3123
3123
|
if (o.err)
|
3124
3124
|
return o;
|
@@ -3151,7 +3151,7 @@ var di = (
|
|
3151
3151
|
return s;
|
3152
3152
|
var o = s.val, a = this.clonePosition();
|
3153
3153
|
if (this.bumpIf("</")) {
|
3154
|
-
if (this.isEOF() || !
|
3154
|
+
if (this.isEOF() || !tt(this.char()))
|
3155
3155
|
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
3156
3156
|
var h = this.clonePosition(), u = this.parseTagName();
|
3157
3157
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -3169,7 +3169,7 @@ var di = (
|
|
3169
3169
|
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
3170
3170
|
}, e.prototype.parseTagName = function() {
|
3171
3171
|
var t = this.offset();
|
3172
|
-
for (this.bump(); !this.isEOF() &&
|
3172
|
+
for (this.bump(); !this.isEOF() && yi(this.char()); )
|
3173
3173
|
this.bump();
|
3174
3174
|
return this.message.slice(t, this.offset());
|
3175
3175
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3198,7 +3198,7 @@ var di = (
|
|
3198
3198
|
};
|
3199
3199
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3200
3200
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3201
|
-
!
|
3201
|
+
!gi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3202
3202
|
}, e.prototype.tryParseQuote = function(t) {
|
3203
3203
|
if (this.isEOF() || this.char() !== 39)
|
3204
3204
|
return null;
|
@@ -3232,12 +3232,12 @@ var di = (
|
|
3232
3232
|
r.push(n);
|
3233
3233
|
this.bump();
|
3234
3234
|
}
|
3235
|
-
return
|
3235
|
+
return Ke.apply(void 0, r);
|
3236
3236
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3237
3237
|
if (this.isEOF())
|
3238
3238
|
return null;
|
3239
3239
|
var n = this.char();
|
3240
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3240
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
|
3241
3241
|
}, e.prototype.parseArgument = function(t, r) {
|
3242
3242
|
var n = this.clonePosition();
|
3243
3243
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -3266,7 +3266,7 @@ var di = (
|
|
3266
3266
|
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
3267
3267
|
}
|
3268
3268
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3269
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3269
|
+
var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
|
3270
3270
|
this.bumpTo(i);
|
3271
3271
|
var s = this.clonePosition(), o = g(t, s);
|
3272
3272
|
return { value: n, location: o };
|
@@ -3285,7 +3285,7 @@ var di = (
|
|
3285
3285
|
var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
3286
3286
|
if (m.err)
|
3287
3287
|
return m;
|
3288
|
-
var c =
|
3288
|
+
var c = bi(m.val);
|
3289
3289
|
if (c.length === 0)
|
3290
3290
|
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
3291
3291
|
var d = g(l, this.clonePosition());
|
@@ -3295,8 +3295,8 @@ var di = (
|
|
3295
3295
|
if (b.err)
|
3296
3296
|
return b;
|
3297
3297
|
var y = g(i, this.clonePosition());
|
3298
|
-
if (u &&
|
3299
|
-
var w =
|
3298
|
+
if (u && Lt(u == null ? void 0 : u.style, "::", 0)) {
|
3299
|
+
var w = di(u.style.slice(2));
|
3300
3300
|
if (a === "number") {
|
3301
3301
|
var m = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
3302
3302
|
return m.err ? m : {
|
@@ -3307,12 +3307,12 @@ var di = (
|
|
3307
3307
|
if (w.length === 0)
|
3308
3308
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, y);
|
3309
3309
|
var I = w;
|
3310
|
-
this.locale && (I =
|
3310
|
+
this.locale && (I = ti(w, this.locale));
|
3311
3311
|
var c = {
|
3312
3312
|
type: te.dateTime,
|
3313
3313
|
pattern: I,
|
3314
3314
|
location: u.styleLocation,
|
3315
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3315
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(I) : {}
|
3316
3316
|
}, P = a === "date" ? x.date : x.time;
|
3317
3317
|
return {
|
3318
3318
|
val: { type: P, value: n, location: y, style: c },
|
@@ -3358,7 +3358,7 @@ var di = (
|
|
3358
3358
|
val: {
|
3359
3359
|
type: x.select,
|
3360
3360
|
value: n,
|
3361
|
-
options:
|
3361
|
+
options: Ct(G.val),
|
3362
3362
|
location: _
|
3363
3363
|
},
|
3364
3364
|
err: null
|
@@ -3366,7 +3366,7 @@ var di = (
|
|
3366
3366
|
val: {
|
3367
3367
|
type: x.plural,
|
3368
3368
|
value: n,
|
3369
|
-
options:
|
3369
|
+
options: Ct(G.val),
|
3370
3370
|
offset: O,
|
3371
3371
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3372
3372
|
location: _
|
@@ -3417,7 +3417,7 @@ var di = (
|
|
3417
3417
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3418
3418
|
var n = [];
|
3419
3419
|
try {
|
3420
|
-
n =
|
3420
|
+
n = Qn(t);
|
3421
3421
|
} catch (i) {
|
3422
3422
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
3423
3423
|
}
|
@@ -3426,7 +3426,7 @@ var di = (
|
|
3426
3426
|
type: te.number,
|
3427
3427
|
tokens: n,
|
3428
3428
|
location: r,
|
3429
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3429
|
+
parsedOptions: this.shouldParseSkeletons ? ei(n) : {}
|
3430
3430
|
},
|
3431
3431
|
err: null
|
3432
3432
|
};
|
@@ -3474,7 +3474,7 @@ var di = (
|
|
3474
3474
|
break;
|
3475
3475
|
}
|
3476
3476
|
var h = g(i, this.clonePosition());
|
3477
|
-
return s ? (o *= n,
|
3477
|
+
return s ? (o *= n, fi(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
3478
3478
|
}, e.prototype.offset = function() {
|
3479
3479
|
return this.position.offset;
|
3480
3480
|
}, e.prototype.isEOF = function() {
|
@@ -3489,7 +3489,7 @@ var di = (
|
|
3489
3489
|
var t = this.position.offset;
|
3490
3490
|
if (t >= this.message.length)
|
3491
3491
|
throw Error("out of bound");
|
3492
|
-
var r =
|
3492
|
+
var r = gr(this.message, t);
|
3493
3493
|
if (r === void 0)
|
3494
3494
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3495
3495
|
return r;
|
@@ -3508,7 +3508,7 @@ var di = (
|
|
3508
3508
|
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);
|
3509
3509
|
}
|
3510
3510
|
}, e.prototype.bumpIf = function(t) {
|
3511
|
-
if (
|
3511
|
+
if (Lt(this.message, t, this.offset())) {
|
3512
3512
|
for (var r = 0; r < t.length; r++)
|
3513
3513
|
this.bump();
|
3514
3514
|
return !0;
|
@@ -3530,7 +3530,7 @@ var di = (
|
|
3530
3530
|
break;
|
3531
3531
|
}
|
3532
3532
|
}, e.prototype.bumpSpace = function() {
|
3533
|
-
for (; !this.isEOF() &&
|
3533
|
+
for (; !this.isEOF() && vr(this.char()); )
|
3534
3534
|
this.bump();
|
3535
3535
|
}, e.prototype.peek = function() {
|
3536
3536
|
if (this.isEOF())
|
@@ -3540,88 +3540,88 @@ var di = (
|
|
3540
3540
|
}, e;
|
3541
3541
|
}()
|
3542
3542
|
);
|
3543
|
-
function
|
3543
|
+
function tt(e) {
|
3544
3544
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3545
3545
|
}
|
3546
|
-
function
|
3547
|
-
return
|
3546
|
+
function gi(e) {
|
3547
|
+
return tt(e) || e === 47;
|
3548
3548
|
}
|
3549
|
-
function
|
3549
|
+
function yi(e) {
|
3550
3550
|
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;
|
3551
3551
|
}
|
3552
|
-
function
|
3552
|
+
function vr(e) {
|
3553
3553
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3554
3554
|
}
|
3555
|
-
function
|
3555
|
+
function vi(e) {
|
3556
3556
|
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;
|
3557
3557
|
}
|
3558
|
-
function
|
3558
|
+
function rt(e) {
|
3559
3559
|
e.forEach(function(t) {
|
3560
|
-
if (delete t.location,
|
3560
|
+
if (delete t.location, hr(t) || lr(t))
|
3561
3561
|
for (var r in t.options)
|
3562
|
-
delete t.options[r].location,
|
3563
|
-
else
|
3562
|
+
delete t.options[r].location, rt(t.options[r].value);
|
3563
|
+
else or(t) && fr(t.style) || (ar(t) || ur(t)) && Je(t.style) ? delete t.style.location : cr(t) && rt(t.children);
|
3564
3564
|
});
|
3565
3565
|
}
|
3566
|
-
function
|
3566
|
+
function Ei(e, t) {
|
3567
3567
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3568
|
-
var r = new
|
3568
|
+
var r = new pi(e, t).parse();
|
3569
3569
|
if (r.err) {
|
3570
3570
|
var n = SyntaxError(p[r.err.kind]);
|
3571
3571
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3572
3572
|
}
|
3573
|
-
return t != null && t.captureLocation ||
|
3573
|
+
return t != null && t.captureLocation || rt(r.val), r.val;
|
3574
3574
|
}
|
3575
|
-
function
|
3576
|
-
var r = t && t.cache ? t.cache :
|
3575
|
+
function De(e, t) {
|
3576
|
+
var r = t && t.cache ? t.cache : Hi, n = t && t.serializer ? t.serializer : wi, i = t && t.strategy ? t.strategy : xi;
|
3577
3577
|
return i(e, {
|
3578
3578
|
cache: r,
|
3579
3579
|
serializer: n
|
3580
3580
|
});
|
3581
3581
|
}
|
3582
|
-
function
|
3582
|
+
function _i(e) {
|
3583
3583
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
3584
3584
|
}
|
3585
|
-
function
|
3586
|
-
var i =
|
3585
|
+
function Er(e, t, r, n) {
|
3586
|
+
var i = _i(n) ? n : r(n), s = t.get(i);
|
3587
3587
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
3588
3588
|
}
|
3589
|
-
function
|
3589
|
+
function _r(e, t, r) {
|
3590
3590
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
3591
3591
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
3592
3592
|
}
|
3593
|
-
function
|
3593
|
+
function ot(e, t, r, n, i) {
|
3594
3594
|
return r.bind(t, e, n, i);
|
3595
3595
|
}
|
3596
|
-
function
|
3597
|
-
var r = e.length === 1 ?
|
3598
|
-
return
|
3596
|
+
function xi(e, t) {
|
3597
|
+
var r = e.length === 1 ? Er : _r;
|
3598
|
+
return ot(e, this, r, t.cache.create(), t.serializer);
|
3599
3599
|
}
|
3600
|
-
function
|
3601
|
-
return
|
3600
|
+
function Si(e, t) {
|
3601
|
+
return ot(e, this, _r, t.cache.create(), t.serializer);
|
3602
3602
|
}
|
3603
|
-
function
|
3604
|
-
return
|
3603
|
+
function Ti(e, t) {
|
3604
|
+
return ot(e, this, Er, t.cache.create(), t.serializer);
|
3605
3605
|
}
|
3606
|
-
var
|
3606
|
+
var wi = function() {
|
3607
3607
|
return JSON.stringify(arguments);
|
3608
3608
|
};
|
3609
|
-
function
|
3609
|
+
function at() {
|
3610
3610
|
this.cache = /* @__PURE__ */ Object.create(null);
|
3611
3611
|
}
|
3612
|
-
|
3612
|
+
at.prototype.get = function(e) {
|
3613
3613
|
return this.cache[e];
|
3614
3614
|
};
|
3615
|
-
|
3615
|
+
at.prototype.set = function(e, t) {
|
3616
3616
|
this.cache[e] = t;
|
3617
3617
|
};
|
3618
|
-
var
|
3618
|
+
var Hi = {
|
3619
3619
|
create: function() {
|
3620
|
-
return new
|
3620
|
+
return new at();
|
3621
3621
|
}
|
3622
|
-
},
|
3623
|
-
variadic:
|
3624
|
-
monadic:
|
3622
|
+
}, Fe = {
|
3623
|
+
variadic: Si,
|
3624
|
+
monadic: Ti
|
3625
3625
|
}, re;
|
3626
3626
|
(function(e) {
|
3627
3627
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
@@ -3638,7 +3638,7 @@ var Be = (
|
|
3638
3638
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3639
3639
|
}, t;
|
3640
3640
|
}(Error)
|
3641
|
-
),
|
3641
|
+
), Mt = (
|
3642
3642
|
/** @class */
|
3643
3643
|
function(e) {
|
3644
3644
|
D(t, e);
|
@@ -3647,7 +3647,7 @@ var Be = (
|
|
3647
3647
|
}
|
3648
3648
|
return t;
|
3649
3649
|
}(Be)
|
3650
|
-
),
|
3650
|
+
), Ai = (
|
3651
3651
|
/** @class */
|
3652
3652
|
function(e) {
|
3653
3653
|
D(t, e);
|
@@ -3656,7 +3656,7 @@ var Be = (
|
|
3656
3656
|
}
|
3657
3657
|
return t;
|
3658
3658
|
}(Be)
|
3659
|
-
),
|
3659
|
+
), Bi = (
|
3660
3660
|
/** @class */
|
3661
3661
|
function(e) {
|
3662
3662
|
D(t, e);
|
@@ -3669,17 +3669,17 @@ var Be = (
|
|
3669
3669
|
(function(e) {
|
3670
3670
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3671
3671
|
})(A || (A = {}));
|
3672
|
-
function
|
3672
|
+
function Pi(e) {
|
3673
3673
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3674
3674
|
var n = t[t.length - 1];
|
3675
3675
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
3676
3676
|
}, []);
|
3677
3677
|
}
|
3678
|
-
function
|
3678
|
+
function Ni(e) {
|
3679
3679
|
return typeof e == "function";
|
3680
3680
|
}
|
3681
3681
|
function _e(e, t, r, n, i, s, o) {
|
3682
|
-
if (e.length === 1 &&
|
3682
|
+
if (e.length === 1 && Bt(e[0]))
|
3683
3683
|
return [
|
3684
3684
|
{
|
3685
3685
|
type: A.literal,
|
@@ -3688,14 +3688,14 @@ function _e(e, t, r, n, i, s, o) {
|
|
3688
3688
|
];
|
3689
3689
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
3690
3690
|
var l = u[h];
|
3691
|
-
if (
|
3691
|
+
if (Bt(l)) {
|
3692
3692
|
a.push({
|
3693
3693
|
type: A.literal,
|
3694
3694
|
value: l.value
|
3695
3695
|
});
|
3696
3696
|
continue;
|
3697
3697
|
}
|
3698
|
-
if (
|
3698
|
+
if (Wn(l)) {
|
3699
3699
|
typeof s == "number" && a.push({
|
3700
3700
|
type: A.literal,
|
3701
3701
|
value: r.getNumberFormat(t).format(s)
|
@@ -3704,43 +3704,43 @@ function _e(e, t, r, n, i, s, o) {
|
|
3704
3704
|
}
|
3705
3705
|
var m = l.value;
|
3706
3706
|
if (!(i && m in i))
|
3707
|
-
throw new
|
3707
|
+
throw new Bi(m, o);
|
3708
3708
|
var c = i[m];
|
3709
|
-
if (
|
3709
|
+
if (Xn(l)) {
|
3710
3710
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3711
3711
|
type: typeof c == "string" ? A.literal : A.object,
|
3712
3712
|
value: c
|
3713
3713
|
});
|
3714
3714
|
continue;
|
3715
3715
|
}
|
3716
|
-
if (
|
3717
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
3716
|
+
if (ar(l)) {
|
3717
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Je(l.style) ? l.style.parsedOptions : void 0;
|
3718
3718
|
a.push({
|
3719
3719
|
type: A.literal,
|
3720
3720
|
value: r.getDateTimeFormat(t, d).format(c)
|
3721
3721
|
});
|
3722
3722
|
continue;
|
3723
3723
|
}
|
3724
|
-
if (
|
3725
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
3724
|
+
if (ur(l)) {
|
3725
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Je(l.style) ? l.style.parsedOptions : n.time.medium;
|
3726
3726
|
a.push({
|
3727
3727
|
type: A.literal,
|
3728
3728
|
value: r.getDateTimeFormat(t, d).format(c)
|
3729
3729
|
});
|
3730
3730
|
continue;
|
3731
3731
|
}
|
3732
|
-
if (
|
3733
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
3732
|
+
if (or(l)) {
|
3733
|
+
var d = typeof l.style == "string" ? n.number[l.style] : fr(l.style) ? l.style.parsedOptions : void 0;
|
3734
3734
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
3735
3735
|
type: A.literal,
|
3736
3736
|
value: r.getNumberFormat(t, d).format(c)
|
3737
3737
|
});
|
3738
3738
|
continue;
|
3739
3739
|
}
|
3740
|
-
if (
|
3740
|
+
if (cr(l)) {
|
3741
3741
|
var b = l.children, y = l.value, w = i[y];
|
3742
|
-
if (!
|
3743
|
-
throw new
|
3742
|
+
if (!Ni(w))
|
3743
|
+
throw new Ai(y, "function", o);
|
3744
3744
|
var I = _e(b, t, r, n, i, s), P = w(I.map(function(O) {
|
3745
3745
|
return O.value;
|
3746
3746
|
}));
|
@@ -3751,14 +3751,14 @@ function _e(e, t, r, n, i, s, o) {
|
|
3751
3751
|
};
|
3752
3752
|
}));
|
3753
3753
|
}
|
3754
|
-
if (
|
3754
|
+
if (hr(l)) {
|
3755
3755
|
var T = l.options[c] || l.options.other;
|
3756
3756
|
if (!T)
|
3757
|
-
throw new
|
3757
|
+
throw new Mt(l.value, c, Object.keys(l.options), o);
|
3758
3758
|
a.push.apply(a, _e(T.value, t, r, n, i));
|
3759
3759
|
continue;
|
3760
3760
|
}
|
3761
|
-
if (
|
3761
|
+
if (lr(l)) {
|
3762
3762
|
var T = l.options["=".concat(c)];
|
3763
3763
|
if (!T) {
|
3764
3764
|
if (!Intl.PluralRules)
|
@@ -3769,24 +3769,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3769
3769
|
T = l.options[N] || l.options.other;
|
3770
3770
|
}
|
3771
3771
|
if (!T)
|
3772
|
-
throw new
|
3772
|
+
throw new Mt(l.value, c, Object.keys(l.options), o);
|
3773
3773
|
a.push.apply(a, _e(T.value, t, r, n, i, c - (l.offset || 0)));
|
3774
3774
|
continue;
|
3775
3775
|
}
|
3776
3776
|
}
|
3777
|
-
return
|
3777
|
+
return Pi(a);
|
3778
3778
|
}
|
3779
|
-
function
|
3779
|
+
function Oi(e, t) {
|
3780
3780
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3781
3781
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
3782
3782
|
}, {})) : e;
|
3783
3783
|
}
|
3784
|
-
function
|
3784
|
+
function Li(e, t) {
|
3785
3785
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3786
|
-
return r[n] =
|
3786
|
+
return r[n] = Oi(e[n], t[n]), r;
|
3787
3787
|
}, v({}, e)) : e;
|
3788
3788
|
}
|
3789
|
-
function
|
3789
|
+
function $e(e) {
|
3790
3790
|
return {
|
3791
3791
|
create: function() {
|
3792
3792
|
return {
|
@@ -3800,39 +3800,39 @@ function Fe(e) {
|
|
3800
3800
|
}
|
3801
3801
|
};
|
3802
3802
|
}
|
3803
|
-
function
|
3803
|
+
function Ci(e) {
|
3804
3804
|
return e === void 0 && (e = {
|
3805
3805
|
number: {},
|
3806
3806
|
dateTime: {},
|
3807
3807
|
pluralRules: {}
|
3808
3808
|
}), {
|
3809
|
-
getNumberFormat:
|
3809
|
+
getNumberFormat: De(function() {
|
3810
3810
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3811
3811
|
r[n] = arguments[n];
|
3812
3812
|
return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], r, !1)))();
|
3813
3813
|
}, {
|
3814
|
-
cache:
|
3815
|
-
strategy:
|
3814
|
+
cache: $e(e.number),
|
3815
|
+
strategy: Fe.variadic
|
3816
3816
|
}),
|
3817
|
-
getDateTimeFormat:
|
3817
|
+
getDateTimeFormat: De(function() {
|
3818
3818
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3819
3819
|
r[n] = arguments[n];
|
3820
3820
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], r, !1)))();
|
3821
3821
|
}, {
|
3822
|
-
cache:
|
3823
|
-
strategy:
|
3822
|
+
cache: $e(e.dateTime),
|
3823
|
+
strategy: Fe.variadic
|
3824
3824
|
}),
|
3825
|
-
getPluralRules:
|
3825
|
+
getPluralRules: De(function() {
|
3826
3826
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3827
3827
|
r[n] = arguments[n];
|
3828
3828
|
return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], r, !1)))();
|
3829
3829
|
}, {
|
3830
|
-
cache:
|
3831
|
-
strategy:
|
3830
|
+
cache: $e(e.pluralRules),
|
3831
|
+
strategy: Fe.variadic
|
3832
3832
|
})
|
3833
3833
|
};
|
3834
3834
|
}
|
3835
|
-
var
|
3835
|
+
var Ii = (
|
3836
3836
|
/** @class */
|
3837
3837
|
function() {
|
3838
3838
|
function e(t, r, n, i) {
|
@@ -3863,13 +3863,13 @@ var Ci = (
|
|
3863
3863
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3864
3864
|
var o = i || {};
|
3865
3865
|
o.formatters;
|
3866
|
-
var a =
|
3866
|
+
var a = dn(o, ["formatters"]);
|
3867
3867
|
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
3868
3868
|
} else
|
3869
3869
|
this.ast = t;
|
3870
3870
|
if (!Array.isArray(this.ast))
|
3871
3871
|
throw new TypeError("A message must be provided as a String or AST.");
|
3872
|
-
this.formats =
|
3872
|
+
this.formats = Li(e.formats, n), this.formatters = i && i.formatters || Ci(this.formatterCache);
|
3873
3873
|
}
|
3874
3874
|
return Object.defineProperty(e, "defaultLocale", {
|
3875
3875
|
get: function() {
|
@@ -3882,7 +3882,7 @@ var Ci = (
|
|
3882
3882
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3883
3883
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3884
3884
|
}
|
3885
|
-
}, e.__parse =
|
3885
|
+
}, e.__parse = Ei, e.formats = {
|
3886
3886
|
number: {
|
3887
3887
|
integer: {
|
3888
3888
|
maximumFractionDigits: 0
|
@@ -3943,7 +3943,7 @@ var Ci = (
|
|
3943
3943
|
}, e;
|
3944
3944
|
}()
|
3945
3945
|
);
|
3946
|
-
function
|
3946
|
+
function Mi(e, t) {
|
3947
3947
|
if (t == null)
|
3948
3948
|
return;
|
3949
3949
|
if (t in e)
|
@@ -3964,92 +3964,92 @@ function Li(e, t) {
|
|
3964
3964
|
n = void 0;
|
3965
3965
|
return n;
|
3966
3966
|
}
|
3967
|
-
const $ = {},
|
3967
|
+
const $ = {}, Ri = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), xr = (e, t) => {
|
3968
3968
|
if (t == null)
|
3969
3969
|
return;
|
3970
3970
|
if (t in $ && e in $[t])
|
3971
3971
|
return $[t][e];
|
3972
3972
|
const r = Pe(t);
|
3973
3973
|
for (let n = 0; n < r.length; n++) {
|
3974
|
-
const i = r[n], s =
|
3974
|
+
const i = r[n], s = Ui(i, e);
|
3975
3975
|
if (s)
|
3976
|
-
return
|
3976
|
+
return Ri(e, t, s);
|
3977
3977
|
}
|
3978
3978
|
};
|
3979
|
-
let
|
3979
|
+
let ut;
|
3980
3980
|
const de = Ae({});
|
3981
|
-
function
|
3982
|
-
return
|
3981
|
+
function Gi(e) {
|
3982
|
+
return ut[e] || null;
|
3983
3983
|
}
|
3984
|
-
function
|
3985
|
-
return e in
|
3984
|
+
function Sr(e) {
|
3985
|
+
return e in ut;
|
3986
3986
|
}
|
3987
|
-
function
|
3988
|
-
if (!
|
3987
|
+
function Ui(e, t) {
|
3988
|
+
if (!Sr(e))
|
3989
3989
|
return null;
|
3990
|
-
const r =
|
3991
|
-
return
|
3990
|
+
const r = Gi(e);
|
3991
|
+
return Mi(r, t);
|
3992
3992
|
}
|
3993
|
-
function
|
3993
|
+
function Di(e) {
|
3994
3994
|
if (e == null)
|
3995
3995
|
return;
|
3996
3996
|
const t = Pe(e);
|
3997
3997
|
for (let r = 0; r < t.length; r++) {
|
3998
3998
|
const n = t[r];
|
3999
|
-
if (
|
3999
|
+
if (Sr(n))
|
4000
4000
|
return n;
|
4001
4001
|
}
|
4002
4002
|
}
|
4003
|
-
function
|
4004
|
-
delete $[e], de.update((r) => (r[e] =
|
4003
|
+
function Tr(e, ...t) {
|
4004
|
+
delete $[e], de.update((r) => (r[e] = Vn.all([r[e] || {}, ...t]), r));
|
4005
4005
|
}
|
4006
4006
|
oe(
|
4007
4007
|
[de],
|
4008
4008
|
([e]) => Object.keys(e)
|
4009
4009
|
);
|
4010
|
-
de.subscribe((e) =>
|
4010
|
+
de.subscribe((e) => ut = e);
|
4011
4011
|
const xe = {};
|
4012
|
-
function
|
4012
|
+
function Fi(e, t) {
|
4013
4013
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
4014
4014
|
}
|
4015
|
-
function
|
4015
|
+
function wr(e) {
|
4016
4016
|
return xe[e];
|
4017
4017
|
}
|
4018
|
-
function
|
4018
|
+
function $i(e) {
|
4019
4019
|
return Pe(e).map((t) => {
|
4020
|
-
const r =
|
4020
|
+
const r = wr(t);
|
4021
4021
|
return [t, r ? [...r] : []];
|
4022
4022
|
}).filter(([, t]) => t.length > 0);
|
4023
4023
|
}
|
4024
|
-
function
|
4024
|
+
function nt(e) {
|
4025
4025
|
return e == null ? !1 : Pe(e).some(
|
4026
4026
|
(t) => {
|
4027
4027
|
var r;
|
4028
|
-
return (r =
|
4028
|
+
return (r = wr(t)) == null ? void 0 : r.size;
|
4029
4029
|
}
|
4030
4030
|
);
|
4031
4031
|
}
|
4032
|
-
function
|
4032
|
+
function ji(e, t) {
|
4033
4033
|
return Promise.all(
|
4034
|
-
t.map((n) => (
|
4035
|
-
).then((n) =>
|
4034
|
+
t.map((n) => (Fi(e, n), n().then((i) => i.default || i)))
|
4035
|
+
).then((n) => Tr(e, ...n));
|
4036
4036
|
}
|
4037
4037
|
const ue = {};
|
4038
|
-
function
|
4039
|
-
if (!
|
4038
|
+
function Hr(e) {
|
4039
|
+
if (!nt(e))
|
4040
4040
|
return e in ue ? ue[e] : Promise.resolve();
|
4041
|
-
const t =
|
4041
|
+
const t = $i(e);
|
4042
4042
|
return ue[e] = Promise.all(
|
4043
4043
|
t.map(
|
4044
|
-
([r, n]) =>
|
4044
|
+
([r, n]) => ji(r, n)
|
4045
4045
|
)
|
4046
4046
|
).then(() => {
|
4047
|
-
if (
|
4048
|
-
return
|
4047
|
+
if (nt(e))
|
4048
|
+
return Hr(e);
|
4049
4049
|
delete ue[e];
|
4050
4050
|
}), ue[e];
|
4051
4051
|
}
|
4052
|
-
const
|
4052
|
+
const ki = {
|
4053
4053
|
number: {
|
4054
4054
|
scientific: { notation: "scientific" },
|
4055
4055
|
engineering: { notation: "engineering" },
|
@@ -4078,57 +4078,57 @@ const $i = {
|
|
4078
4078
|
timeZoneName: "short"
|
4079
4079
|
}
|
4080
4080
|
}
|
4081
|
-
},
|
4081
|
+
}, Vi = {
|
4082
4082
|
fallbackLocale: null,
|
4083
4083
|
loadingDelay: 200,
|
4084
|
-
formats:
|
4084
|
+
formats: ki,
|
4085
4085
|
warnOnMissingMessages: !0,
|
4086
4086
|
handleMissingMessage: void 0,
|
4087
4087
|
ignoreTag: !0
|
4088
|
-
},
|
4088
|
+
}, Xi = Vi;
|
4089
4089
|
function ne() {
|
4090
|
-
return
|
4090
|
+
return Xi;
|
4091
4091
|
}
|
4092
|
-
const
|
4093
|
-
var
|
4092
|
+
const je = Ae(!1);
|
4093
|
+
var Wi = Object.defineProperty, zi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, qi = Object.prototype.hasOwnProperty, Qi = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ji = (e, t) => {
|
4094
4094
|
for (var r in t || (t = {}))
|
4095
|
-
|
4096
|
-
if (
|
4097
|
-
for (var r of
|
4098
|
-
|
4095
|
+
qi.call(t, r) && Gt(e, r, t[r]);
|
4096
|
+
if (Rt)
|
4097
|
+
for (var r of Rt(t))
|
4098
|
+
Qi.call(t, r) && Gt(e, r, t[r]);
|
4099
4099
|
return e;
|
4100
|
-
},
|
4101
|
-
let
|
4100
|
+
}, Yi = (e, t) => zi(e, Zi(t));
|
4101
|
+
let it;
|
4102
4102
|
const Se = Ae(null);
|
4103
|
-
function
|
4103
|
+
function Ut(e) {
|
4104
4104
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4105
4105
|
}
|
4106
4106
|
function Pe(e, t = ne().fallbackLocale) {
|
4107
|
-
const r =
|
4108
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4107
|
+
const r = Ut(e);
|
4108
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ut(t)])] : r;
|
4109
4109
|
}
|
4110
4110
|
function X() {
|
4111
|
-
return
|
4111
|
+
return it != null ? it : void 0;
|
4112
4112
|
}
|
4113
4113
|
Se.subscribe((e) => {
|
4114
|
-
|
4114
|
+
it = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
4115
4115
|
});
|
4116
|
-
const
|
4117
|
-
if (e &&
|
4116
|
+
const Ki = (e) => {
|
4117
|
+
if (e && Di(e) && nt(e)) {
|
4118
4118
|
const { loadingDelay: t } = ne();
|
4119
4119
|
let r;
|
4120
4120
|
return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
|
4121
|
-
() =>
|
4121
|
+
() => je.set(!0),
|
4122
4122
|
t
|
4123
|
-
) :
|
4123
|
+
) : je.set(!0), Hr(e).then(() => {
|
4124
4124
|
Se.set(e);
|
4125
4125
|
}).finally(() => {
|
4126
|
-
clearTimeout(r),
|
4126
|
+
clearTimeout(r), je.set(!1);
|
4127
4127
|
});
|
4128
4128
|
}
|
4129
4129
|
return Se.set(e);
|
4130
|
-
}, be =
|
4131
|
-
set:
|
4130
|
+
}, be = Yi(Ji({}, Se), {
|
4131
|
+
set: Ki
|
4132
4132
|
}), Ne = (e) => {
|
4133
4133
|
const t = /* @__PURE__ */ Object.create(null);
|
4134
4134
|
return (n) => {
|
@@ -4136,20 +4136,20 @@ const Ji = (e) => {
|
|
4136
4136
|
return i in t ? t[i] : t[i] = e(n);
|
4137
4137
|
};
|
4138
4138
|
};
|
4139
|
-
var
|
4139
|
+
var es = Object.defineProperty, Te = Object.getOwnPropertySymbols, Ar = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? es(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
|
4140
4140
|
for (var r in t || (t = {}))
|
4141
|
-
|
4141
|
+
Ar.call(t, r) && Dt(e, r, t[r]);
|
4142
4142
|
if (Te)
|
4143
4143
|
for (var r of Te(t))
|
4144
|
-
|
4144
|
+
Br.call(t, r) && Dt(e, r, t[r]);
|
4145
4145
|
return e;
|
4146
4146
|
}, ae = (e, t) => {
|
4147
4147
|
var r = {};
|
4148
4148
|
for (var n in e)
|
4149
|
-
|
4149
|
+
Ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4150
4150
|
if (e != null && Te)
|
4151
4151
|
for (var n of Te(e))
|
4152
|
-
t.indexOf(n) < 0 &&
|
4152
|
+
t.indexOf(n) < 0 && Br.call(e, n) && (r[n] = e[n]);
|
4153
4153
|
return r;
|
4154
4154
|
};
|
4155
4155
|
const fe = (e, t) => {
|
@@ -4157,21 +4157,21 @@ const fe = (e, t) => {
|
|
4157
4157
|
if (e in r && t in r[e])
|
4158
4158
|
return r[e][t];
|
4159
4159
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4160
|
-
},
|
4160
|
+
}, ts = Ne(
|
4161
4161
|
(e) => {
|
4162
4162
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
4163
4163
|
if (r == null)
|
4164
4164
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4165
4165
|
return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
|
4166
4166
|
}
|
4167
|
-
),
|
4167
|
+
), rs = Ne(
|
4168
4168
|
(e) => {
|
4169
4169
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
4170
4170
|
if (r == null)
|
4171
4171
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4172
4172
|
return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
|
4173
4173
|
}
|
4174
|
-
),
|
4174
|
+
), ns = Ne(
|
4175
4175
|
(e) => {
|
4176
4176
|
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
4177
4177
|
if (r == null)
|
@@ -4180,33 +4180,33 @@ const fe = (e, t) => {
|
|
4180
4180
|
);
|
4181
4181
|
return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
|
4182
4182
|
}
|
4183
|
-
),
|
4183
|
+
), is = (e = {}) => {
|
4184
4184
|
var t = e, {
|
4185
4185
|
locale: r = X()
|
4186
4186
|
} = t, n = ae(t, [
|
4187
4187
|
"locale"
|
4188
4188
|
]);
|
4189
|
-
return
|
4190
|
-
},
|
4189
|
+
return ts(ht({ locale: r }, n));
|
4190
|
+
}, ss = (e = {}) => {
|
4191
4191
|
var t = e, {
|
4192
4192
|
locale: r = X()
|
4193
4193
|
} = t, n = ae(t, [
|
4194
4194
|
"locale"
|
4195
4195
|
]);
|
4196
|
-
return
|
4197
|
-
},
|
4196
|
+
return rs(ht({ locale: r }, n));
|
4197
|
+
}, os = (e = {}) => {
|
4198
4198
|
var t = e, {
|
4199
4199
|
locale: r = X()
|
4200
4200
|
} = t, n = ae(t, [
|
4201
4201
|
"locale"
|
4202
4202
|
]);
|
4203
|
-
return
|
4204
|
-
},
|
4203
|
+
return ns(ht({ locale: r }, n));
|
4204
|
+
}, as = Ne(
|
4205
4205
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4206
|
-
(e, t = X()) => new
|
4206
|
+
(e, t = X()) => new Ii(e, t, ne().formats, {
|
4207
4207
|
ignoreTag: ne().ignoreTag
|
4208
4208
|
})
|
4209
|
-
),
|
4209
|
+
), us = (e, t = {}) => {
|
4210
4210
|
var r, n, i, s;
|
4211
4211
|
let o = t;
|
4212
4212
|
typeof e == "object" && (o = e, e = o.id);
|
@@ -4219,7 +4219,7 @@ const fe = (e, t) => {
|
|
4219
4219
|
throw new Error(
|
4220
4220
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4221
4221
|
);
|
4222
|
-
let l =
|
4222
|
+
let l = xr(e, h);
|
4223
4223
|
if (!l)
|
4224
4224
|
l = (s = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
4225
4225
|
else if (typeof l != "string")
|
@@ -4230,7 +4230,7 @@ const fe = (e, t) => {
|
|
4230
4230
|
return l;
|
4231
4231
|
let m = l;
|
4232
4232
|
try {
|
4233
|
-
m =
|
4233
|
+
m = as(l, h).format(a);
|
4234
4234
|
} catch (c) {
|
4235
4235
|
c instanceof Error && console.warn(
|
4236
4236
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -4238,17 +4238,17 @@ const fe = (e, t) => {
|
|
4238
4238
|
);
|
4239
4239
|
}
|
4240
4240
|
return m;
|
4241
|
-
},
|
4242
|
-
oe([be], () => as);
|
4243
|
-
oe([be], () => us);
|
4241
|
+
}, hs = (e, t) => os(t).format(e), ls = (e, t) => ss(t).format(e), cs = (e, t) => is(t).format(e), fs = (e, t = X()) => xr(e, t), ms = oe([be, de], () => us);
|
4244
4242
|
oe([be], () => hs);
|
4245
|
-
oe([be
|
4246
|
-
|
4247
|
-
|
4248
|
-
|
4249
|
-
|
4250
|
-
|
4251
|
-
|
4243
|
+
oe([be], () => ls);
|
4244
|
+
oe([be], () => cs);
|
4245
|
+
oe([be, de], () => fs);
|
4246
|
+
window.emWidgets = { topic: An };
|
4247
|
+
const ds = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4248
|
+
function Ft(e, t) {
|
4249
|
+
Tr(e, t);
|
4250
|
+
}
|
4251
|
+
const $t = {
|
4252
4252
|
en: {
|
4253
4253
|
lobbyName: "Lobby",
|
4254
4254
|
myGamesName: "My games"
|
@@ -4330,14 +4330,14 @@ if (typeof window != "undefined") {
|
|
4330
4330
|
}
|
4331
4331
|
};
|
4332
4332
|
};
|
4333
|
-
customElements.define = e(customElements.define), import("./CasinoSlider-
|
4333
|
+
customElements.define = e(customElements.define), import("./CasinoSlider-CTLT5T1k.js").then(({ default: t }) => {
|
4334
4334
|
!customElements.get("casino-slider") && customElements.define("casino-slider", t.element);
|
4335
4335
|
});
|
4336
4336
|
}
|
4337
|
-
function
|
4338
|
-
|
4337
|
+
function bs(e) {
|
4338
|
+
qr(e, "svelte-1ydghqy", ".CasinoCategoriesLoading.svelte-1ydghqy{height:52px}p.svelte-1ydghqy{color:var( --emfe-w-categories-typography, var(--emfe-w-color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1ydghqy{background:var( --emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C))}");
|
4339
4339
|
}
|
4340
|
-
function
|
4340
|
+
function ps(e) {
|
4341
4341
|
let t, r, n, i;
|
4342
4342
|
return {
|
4343
4343
|
c() {
|
@@ -4356,7 +4356,7 @@ function ds(e) {
|
|
4356
4356
|
"endpoint",
|
4357
4357
|
/*endpoint*/
|
4358
4358
|
e[1]
|
4359
|
-
), E(r, "identity",
|
4359
|
+
), E(r, "identity", st), E(
|
4360
4360
|
r,
|
4361
4361
|
"favoritesnumber",
|
4362
4362
|
/*numberOfFavoredGames*/
|
@@ -4409,7 +4409,7 @@ function ds(e) {
|
|
4409
4409
|
), K(t, "class", "CasinoCategoriesContainer svelte-1ydghqy"), K(t, "part", "CasinoCategoriesContainer");
|
4410
4410
|
},
|
4411
4411
|
m(s, o) {
|
4412
|
-
me(s, t, o),
|
4412
|
+
me(s, t, o), Xt(t, r), n || (i = Zr(
|
4413
4413
|
/*sendSliderData*/
|
4414
4414
|
e[16].call(null, r)
|
4415
4415
|
), n = !0);
|
@@ -4500,7 +4500,7 @@ function ds(e) {
|
|
4500
4500
|
}
|
4501
4501
|
};
|
4502
4502
|
}
|
4503
|
-
function
|
4503
|
+
function gs(e) {
|
4504
4504
|
let t;
|
4505
4505
|
return {
|
4506
4506
|
c() {
|
@@ -4515,7 +4515,7 @@ function bs(e) {
|
|
4515
4515
|
}
|
4516
4516
|
};
|
4517
4517
|
}
|
4518
|
-
function
|
4518
|
+
function ys(e) {
|
4519
4519
|
let t;
|
4520
4520
|
return {
|
4521
4521
|
c() {
|
@@ -4530,14 +4530,14 @@ function ps(e) {
|
|
4530
4530
|
}
|
4531
4531
|
};
|
4532
4532
|
}
|
4533
|
-
function
|
4533
|
+
function vs(e) {
|
4534
4534
|
let t;
|
4535
4535
|
function r(s, o) {
|
4536
4536
|
return (
|
4537
4537
|
/*isLoading*/
|
4538
|
-
s[12] ||
|
4538
|
+
s[12] || Es || _s ? ys : (
|
4539
4539
|
/*hasErrors*/
|
4540
|
-
s[14] ?
|
4540
|
+
s[14] ? gs : ps
|
4541
4541
|
)
|
4542
4542
|
);
|
4543
4543
|
}
|
@@ -4559,47 +4559,47 @@ function gs(e) {
|
|
4559
4559
|
}
|
4560
4560
|
};
|
4561
4561
|
}
|
4562
|
-
let
|
4563
|
-
function
|
4562
|
+
let st = "CasinoSliderData", Es = !1, _s = !1;
|
4563
|
+
function xs(e, t, r) {
|
4564
4564
|
let n;
|
4565
|
-
|
4566
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: w = "" } = t, { location: I = "secondaryMenu" } = t, { showsubgroups: P = "false" } = t, { filteredcategories: T = "" } = t, { translationurl: N = "" } = t, { categoriesicon: O = "" } = t, { lobbyiconimage: G = "" } = t, { mygamesiconimage: _ = "" } = t,
|
4567
|
-
const
|
4565
|
+
zr(e, ms, (f) => r(32, n = f));
|
4566
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: w = "" } = t, { location: I = "secondaryMenu" } = t, { showsubgroups: P = "false" } = t, { filteredcategories: T = "" } = t, { translationurl: N = "" } = t, { categoriesicon: O = "" } = t, { lobbyiconimage: G = "" } = t, { mygamesiconimage: _ = "" } = t, L, C, M = !0, W, z = [], j = !1, Nr = window.navigator.userAgent, k, lt, ct = !1, Oe = !1;
|
4567
|
+
const Or = () => {
|
4568
4568
|
fetch(N).then((H) => H.json()).then((H) => {
|
4569
4569
|
Object.keys(H).forEach((F) => {
|
4570
|
-
|
4570
|
+
Ft(F, H[F]);
|
4571
4571
|
});
|
4572
4572
|
}).catch((H) => {
|
4573
4573
|
console.log(H);
|
4574
4574
|
});
|
4575
4575
|
};
|
4576
|
-
Object.keys(
|
4577
|
-
|
4576
|
+
Object.keys($t).forEach((f) => {
|
4577
|
+
Ft(f, $t[f]);
|
4578
4578
|
});
|
4579
|
-
const
|
4580
|
-
|
4579
|
+
const Lr = () => {
|
4580
|
+
ct == !1 && (m == "true" || u == "true" || l == "true") && z.splice(1, 0, {
|
4581
4581
|
// @ts-ignore
|
4582
4582
|
id: "MYGAMES",
|
4583
|
-
name:
|
4583
|
+
name: L,
|
4584
4584
|
href: "",
|
4585
4585
|
games: []
|
4586
|
-
}),
|
4587
|
-
}, Cr = () => (i || (W = "Endpoint is missing! Please provide a valid endpointURL.", r(14, j = !0), r(12, M = !1), console.error(W)), s || (W = "Datasource is missing! Please provide a valid datasource.", r(14, j = !0), r(12, M = !1), console.error(W)), (!o || o.length < 2) && (W = "Language is missing! Please provide a valid language (alpha2code)", r(14, j = !0), r(12, M = !1), console.error(W)), j),
|
4588
|
-
if (
|
4586
|
+
}), rn(), ct = !0, r(25, Oe = !0), Le();
|
4587
|
+
}, Cr = () => (i || (W = "Endpoint is missing! Please provide a valid endpointURL.", r(14, j = !0), r(12, M = !1), console.error(W)), s || (W = "Datasource is missing! Please provide a valid datasource.", r(14, j = !0), r(12, M = !1), console.error(W)), (!o || o.length < 2) && (W = "Language is missing! Please provide a valid language (alpha2code)", r(14, j = !0), r(12, M = !1), console.error(W)), j), Ir = () => {
|
4588
|
+
if (L = n("myGamesName"), C = n("lobbyName"), !Cr()) {
|
4589
4589
|
let f = new URL(`${i}/v1/casino/groups/${s}`);
|
4590
|
-
f.searchParams.append("datasource", s), f.searchParams.append("language", o), f.searchParams.append("platform",
|
4590
|
+
f.searchParams.append("datasource", s), f.searchParams.append("language", o), f.searchParams.append("platform", ds(Nr)), fetch(f).then((H) => H.json()).then(
|
4591
4591
|
(H) => {
|
4592
|
-
let F = T.split(","),
|
4592
|
+
let F = T.split(","), Dr = H.items.filter((mt) => {
|
4593
4593
|
let Ce = !1;
|
4594
|
-
if (
|
4595
|
-
for (let
|
4596
|
-
|
4594
|
+
if (mt.games.total > 0 && (Ce = !0, T))
|
4595
|
+
for (let Fr of F)
|
4596
|
+
mt.flags == Fr && (Ce = !1);
|
4597
4597
|
return Ce;
|
4598
4598
|
});
|
4599
|
-
z = [], z = z.concat(
|
4599
|
+
z = [], z = z.concat(Dr), z.unshift({
|
4600
4600
|
// @ts-ignore
|
4601
4601
|
id: "LOBBY",
|
4602
|
-
name:
|
4602
|
+
name: C,
|
4603
4603
|
href: "",
|
4604
4604
|
games: []
|
4605
4605
|
}), r(12, M = !1), window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
|
@@ -4611,13 +4611,13 @@ function Es(e, t, r) {
|
|
4611
4611
|
r(14, j = !0), console.error("There was an error while fetching the categories", H);
|
4612
4612
|
});
|
4613
4613
|
}
|
4614
|
-
},
|
4614
|
+
}, Mr = () => {
|
4615
4615
|
let f = b.split("$");
|
4616
4616
|
r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
4617
|
-
},
|
4617
|
+
}, Rr = () => {
|
4618
4618
|
let f = document.createElement("style");
|
4619
4619
|
f.innerHTML = c, k.appendChild(f);
|
4620
|
-
},
|
4620
|
+
}, Gr = () => {
|
4621
4621
|
let f = document.createElement("style"), H = new URL(d);
|
4622
4622
|
fetch(H.href).then((F) => F.text()).then((F) => {
|
4623
4623
|
f.innerHTML = F, setTimeout(
|
@@ -4627,18 +4627,23 @@ function Es(e, t, r) {
|
|
4627
4627
|
1
|
4628
4628
|
);
|
4629
4629
|
});
|
4630
|
-
},
|
4630
|
+
}, Le = () => {
|
4631
4631
|
window.postMessage(
|
4632
4632
|
{
|
4633
4633
|
type: "SliderData",
|
4634
|
-
identity:
|
4634
|
+
identity: st,
|
4635
4635
|
data: z
|
4636
4636
|
},
|
4637
4637
|
window.location.href
|
4638
4638
|
);
|
4639
|
+
}, ft = (f) => {
|
4640
|
+
f.data && f.data.type == "SliderLoaded" && st == f.data.identity && Le();
|
4639
4641
|
};
|
4640
|
-
|
4641
|
-
|
4642
|
+
tn(() => (window.addEventListener("message", ft, !1), () => {
|
4643
|
+
window.removeEventListener("message", ft);
|
4644
|
+
}));
|
4645
|
+
function Ur(f) {
|
4646
|
+
ke[f ? "unshift" : "push"](() => {
|
4642
4647
|
k = f, r(13, k);
|
4643
4648
|
});
|
4644
4649
|
}
|
@@ -4646,13 +4651,13 @@ function Es(e, t, r) {
|
|
4646
4651
|
"endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(17, a = f.userid), "session" in f && r(18, h = f.session), "mostplayed" in f && r(19, u = f.mostplayed), "lastplayed" in f && r(20, l = f.lastplayed), "favorites" in f && r(21, m = f.favorites), "clientstyling" in f && r(4, c = f.clientstyling), "clientstylingurl" in f && r(5, d = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(6, y = f.actionevent), "sessioncheck" in f && r(22, w = f.sessioncheck), "location" in f && r(7, I = f.location), "showsubgroups" in f && r(8, P = f.showsubgroups), "filteredcategories" in f && r(23, T = f.filteredcategories), "translationurl" in f && r(24, N = f.translationurl), "categoriesicon" in f && r(9, O = f.categoriesicon), "lobbyiconimage" in f && r(10, G = f.lobbyiconimage), "mygamesiconimage" in f && r(11, _ = f.mygamesiconimage);
|
4647
4652
|
}, e.$$.update = () => {
|
4648
4653
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4649
|
-
14 && i && s && o &&
|
4650
|
-
3936258 && i && h && (u || l || m) && !M &&
|
4651
|
-
33820673 && !M && b && (!h || Oe) &&
|
4652
|
-
8208 && c && k &&
|
4653
|
-
16777216 && N &&
|
4654
|
-
8224 && d && k &&
|
4655
|
-
}, r(15,
|
4654
|
+
14 && i && s && o && Ir(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
4655
|
+
3936258 && i && h && (u || l || m) && !M && Lr(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
4656
|
+
33820673 && !M && b && (!h || Oe) && Mr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4657
|
+
8208 && c && k && Rr(), e.$$.dirty[0] & /*translationurl*/
|
4658
|
+
16777216 && N && Or(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4659
|
+
8224 && d && k && Gr();
|
4660
|
+
}, r(15, lt = 0), [
|
4656
4661
|
b,
|
4657
4662
|
i,
|
4658
4663
|
s,
|
@@ -4668,8 +4673,8 @@ function Es(e, t, r) {
|
|
4668
4673
|
M,
|
4669
4674
|
k,
|
4670
4675
|
j,
|
4671
|
-
ut,
|
4672
4676
|
lt,
|
4677
|
+
Le,
|
4673
4678
|
a,
|
4674
4679
|
h,
|
4675
4680
|
u,
|
@@ -4679,17 +4684,17 @@ function Es(e, t, r) {
|
|
4679
4684
|
T,
|
4680
4685
|
N,
|
4681
4686
|
Oe,
|
4682
|
-
|
4687
|
+
Ur
|
4683
4688
|
];
|
4684
4689
|
}
|
4685
|
-
class
|
4690
|
+
class Pr extends fn {
|
4686
4691
|
constructor(t) {
|
4687
|
-
super(),
|
4692
|
+
super(), ln(
|
4688
4693
|
this,
|
4689
4694
|
t,
|
4690
|
-
|
4691
|
-
|
4692
|
-
|
4695
|
+
xs,
|
4696
|
+
vs,
|
4697
|
+
kt,
|
4693
4698
|
{
|
4694
4699
|
endpoint: 1,
|
4695
4700
|
datasource: 2,
|
@@ -4712,7 +4717,7 @@ class Br extends ln {
|
|
4712
4717
|
lobbyiconimage: 10,
|
4713
4718
|
mygamesiconimage: 11
|
4714
4719
|
},
|
4715
|
-
|
4720
|
+
bs,
|
4716
4721
|
[-1, -1]
|
4717
4722
|
);
|
4718
4723
|
}
|
@@ -4837,39 +4842,39 @@ class Br extends ln {
|
|
4837
4842
|
this.$$set({ mygamesiconimage: t }), S();
|
4838
4843
|
}
|
4839
4844
|
}
|
4840
|
-
|
4845
|
+
cn(Pr, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
|
4841
4846
|
const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4842
4847
|
__proto__: null,
|
4843
|
-
default:
|
4848
|
+
default: Pr
|
4844
4849
|
}, Symbol.toStringTag, { value: "Module" }));
|
4845
4850
|
export {
|
4846
4851
|
be as $,
|
4847
4852
|
Cs as C,
|
4848
|
-
|
4853
|
+
fn as S,
|
4849
4854
|
de as a,
|
4850
|
-
|
4851
|
-
|
4852
|
-
|
4855
|
+
Tr as b,
|
4856
|
+
cn as c,
|
4857
|
+
qr as d,
|
4853
4858
|
V as e,
|
4854
4859
|
S as f,
|
4855
|
-
|
4860
|
+
Hs as g,
|
4856
4861
|
K as h,
|
4857
|
-
|
4862
|
+
ln as i,
|
4858
4863
|
me as j,
|
4859
|
-
|
4860
|
-
|
4864
|
+
Xt as k,
|
4865
|
+
Bs as l,
|
4861
4866
|
se as m,
|
4862
4867
|
B as n,
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4868
|
+
tn as o,
|
4869
|
+
Ns as p,
|
4870
|
+
As as q,
|
4866
4871
|
ie as r,
|
4867
|
-
|
4868
|
-
|
4869
|
-
|
4870
|
-
|
4871
|
-
|
4872
|
-
|
4873
|
-
|
4874
|
-
|
4872
|
+
kt as s,
|
4873
|
+
Ts as t,
|
4874
|
+
Ls as u,
|
4875
|
+
ke as v,
|
4876
|
+
Os as w,
|
4877
|
+
ws as x,
|
4878
|
+
Wt as y,
|
4879
|
+
Ps as z
|
4875
4880
|
};
|