@everymatrix/casino-filter 1.87.37 → 1.87.39
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/{CasinoFilter-BrKuaJL2.cjs → CasinoFilter-4ZLApuWT.cjs} +4 -4
- package/components/{CasinoFilter-CYVWh2Jl.js → CasinoFilter-DI_CAVUC.js} +305 -304
- package/components/{CasinoFilter-DEifLfrs.js → CasinoFilter-_HG4Fv1c.js} +286 -285
- package/es2015/casino-filter.cjs +1 -1
- package/es2015/casino-filter.js +1 -1
- package/esnext/casino-filter.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function D() {
|
|
2
2
|
}
|
|
3
3
|
function Kt(e) {
|
|
4
4
|
return e();
|
|
@@ -6,7 +6,7 @@ function Kt(e) {
|
|
|
6
6
|
function wt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ne(e) {
|
|
10
10
|
e.forEach(Kt);
|
|
11
11
|
}
|
|
12
12
|
function xt(e) {
|
|
@@ -26,7 +26,7 @@ function tr(e, ...t) {
|
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
29
|
-
return
|
|
29
|
+
return D;
|
|
30
30
|
}
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -34,7 +34,7 @@ function tr(e, ...t) {
|
|
|
34
34
|
function Nr(e, t, r) {
|
|
35
35
|
e.$$.on_destroy.push(tr(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function y(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
40
|
function Mr(e, t, r) {
|
|
@@ -55,7 +55,7 @@ function Rr(e) {
|
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
57
|
function Ur(e, t) {
|
|
58
|
-
return
|
|
58
|
+
return y(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
@@ -67,7 +67,7 @@ function z(e, t, r) {
|
|
|
67
67
|
function j(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Dr(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -80,7 +80,7 @@ function Ce(e) {
|
|
|
80
80
|
function k(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function $() {
|
|
84
84
|
return k(" ");
|
|
85
85
|
}
|
|
86
86
|
function Ue(e, t, r, n) {
|
|
@@ -89,10 +89,10 @@ function Ue(e, t, r, n) {
|
|
|
89
89
|
function d(e, t, r) {
|
|
90
90
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function $r(e) {
|
|
93
93
|
return Array.from(e.childNodes);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function te(e, t) {
|
|
96
96
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
97
97
|
t);
|
|
98
98
|
}
|
|
@@ -108,65 +108,65 @@ function Gr(e) {
|
|
|
108
108
|
}
|
|
109
109
|
), t;
|
|
110
110
|
}
|
|
111
|
-
let
|
|
112
|
-
function
|
|
113
|
-
|
|
111
|
+
let we;
|
|
112
|
+
function Se(e) {
|
|
113
|
+
we = e;
|
|
114
114
|
}
|
|
115
115
|
function kr() {
|
|
116
|
-
if (!
|
|
116
|
+
if (!we)
|
|
117
117
|
throw new Error("Function called outside component initialization");
|
|
118
|
-
return
|
|
118
|
+
return we;
|
|
119
119
|
}
|
|
120
120
|
function jr(e) {
|
|
121
121
|
kr().$$.on_mount.push(e);
|
|
122
122
|
}
|
|
123
|
-
const
|
|
124
|
-
let
|
|
123
|
+
const ce = [], nt = [];
|
|
124
|
+
let pe = [];
|
|
125
125
|
const At = [], Vr = /* @__PURE__ */ Promise.resolve();
|
|
126
126
|
let it = !1;
|
|
127
127
|
function Xr() {
|
|
128
128
|
it || (it = !0, Vr.then(M));
|
|
129
129
|
}
|
|
130
130
|
function ot(e) {
|
|
131
|
-
|
|
131
|
+
pe.push(e);
|
|
132
132
|
}
|
|
133
133
|
const Je = /* @__PURE__ */ new Set();
|
|
134
|
-
let
|
|
134
|
+
let ue = 0;
|
|
135
135
|
function M() {
|
|
136
|
-
if (
|
|
136
|
+
if (ue !== 0)
|
|
137
137
|
return;
|
|
138
|
-
const e =
|
|
138
|
+
const e = we;
|
|
139
139
|
do {
|
|
140
140
|
try {
|
|
141
|
-
for (;
|
|
142
|
-
const t =
|
|
143
|
-
|
|
141
|
+
for (; ue < ce.length; ) {
|
|
142
|
+
const t = ce[ue];
|
|
143
|
+
ue++, Se(t), Wr(t.$$);
|
|
144
144
|
}
|
|
145
145
|
} catch (t) {
|
|
146
|
-
throw
|
|
146
|
+
throw ce.length = 0, ue = 0, t;
|
|
147
147
|
}
|
|
148
|
-
for (
|
|
148
|
+
for (Se(null), ce.length = 0, ue = 0; nt.length; )
|
|
149
149
|
nt.pop()();
|
|
150
|
-
for (let t = 0; t <
|
|
151
|
-
const r =
|
|
150
|
+
for (let t = 0; t < pe.length; t += 1) {
|
|
151
|
+
const r = pe[t];
|
|
152
152
|
Je.has(r) || (Je.add(r), r());
|
|
153
153
|
}
|
|
154
|
-
|
|
155
|
-
} while (
|
|
154
|
+
pe.length = 0;
|
|
155
|
+
} while (ce.length);
|
|
156
156
|
for (; At.length; )
|
|
157
157
|
At.pop()();
|
|
158
|
-
it = !1, Je.clear(),
|
|
158
|
+
it = !1, Je.clear(), Se(e);
|
|
159
159
|
}
|
|
160
160
|
function Wr(e) {
|
|
161
161
|
if (e.fragment !== null) {
|
|
162
|
-
e.update(),
|
|
162
|
+
e.update(), ne(e.before_update);
|
|
163
163
|
const t = e.dirty;
|
|
164
164
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ot);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
function zr(e) {
|
|
168
168
|
const t = [], r = [];
|
|
169
|
-
|
|
169
|
+
pe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), pe = t;
|
|
170
170
|
}
|
|
171
171
|
const Zr = /* @__PURE__ */ new Set();
|
|
172
172
|
function Jr(e, t) {
|
|
@@ -179,25 +179,25 @@ function Qr(e, t, r) {
|
|
|
179
179
|
const { fragment: n, after_update: i } = e.$$;
|
|
180
180
|
n && n.m(t, r), ot(() => {
|
|
181
181
|
const o = e.$$.on_mount.map(Kt).filter(xt);
|
|
182
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
182
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
183
183
|
}), i.forEach(ot);
|
|
184
184
|
}
|
|
185
185
|
function Yr(e, t) {
|
|
186
186
|
const r = e.$$;
|
|
187
|
-
r.fragment !== null && (zr(r.after_update),
|
|
187
|
+
r.fragment !== null && (zr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
188
188
|
}
|
|
189
189
|
function qr(e, t) {
|
|
190
|
-
e.$$.dirty[0] === -1 && (
|
|
190
|
+
e.$$.dirty[0] === -1 && (ce.push(e), Xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
191
191
|
}
|
|
192
192
|
function Kr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
193
|
-
const h =
|
|
194
|
-
|
|
193
|
+
const h = we;
|
|
194
|
+
Se(e);
|
|
195
195
|
const l = e.$$ = {
|
|
196
196
|
fragment: null,
|
|
197
197
|
ctx: [],
|
|
198
198
|
// state
|
|
199
199
|
props: o,
|
|
200
|
-
update:
|
|
200
|
+
update: D,
|
|
201
201
|
not_equal: i,
|
|
202
202
|
bound: wt(),
|
|
203
203
|
// lifecycle
|
|
@@ -216,17 +216,17 @@ function Kr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
216
216
|
s && s(l.root);
|
|
217
217
|
let u = !1;
|
|
218
218
|
if (l.ctx = r ? r(e, t.props || {}, (p, f, ...g) => {
|
|
219
|
-
const
|
|
220
|
-
return l.ctx && i(l.ctx[p], l.ctx[p] =
|
|
221
|
-
}) : [], l.update(), u = !0,
|
|
219
|
+
const v = g.length ? g[0] : f;
|
|
220
|
+
return l.ctx && i(l.ctx[p], l.ctx[p] = v) && (!l.skip_bound && l.bound[p] && l.bound[p](v), u && qr(e, p)), f;
|
|
221
|
+
}) : [], l.update(), u = !0, ne(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
222
222
|
if (t.hydrate) {
|
|
223
|
-
const p =
|
|
223
|
+
const p = $r(t.target);
|
|
224
224
|
l.fragment && l.fragment.l(p), p.forEach(j);
|
|
225
225
|
} else
|
|
226
226
|
l.fragment && l.fragment.c();
|
|
227
227
|
t.intro && Jr(e.$$.fragment), Qr(e, t.target, t.anchor), M();
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
Se(h);
|
|
230
230
|
}
|
|
231
231
|
let rr;
|
|
232
232
|
typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
@@ -423,7 +423,7 @@ class tn {
|
|
|
423
423
|
$$set = void 0;
|
|
424
424
|
/** @returns {void} */
|
|
425
425
|
$destroy() {
|
|
426
|
-
Yr(this, 1), this.$destroy =
|
|
426
|
+
Yr(this, 1), this.$destroy = D;
|
|
427
427
|
}
|
|
428
428
|
/**
|
|
429
429
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -433,7 +433,7 @@ class tn {
|
|
|
433
433
|
*/
|
|
434
434
|
$on(t, r) {
|
|
435
435
|
if (!xt(r))
|
|
436
|
-
return
|
|
436
|
+
return D;
|
|
437
437
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
438
438
|
return n.push(r), () => {
|
|
439
439
|
const i = n.indexOf(r);
|
|
@@ -472,7 +472,7 @@ var st = function(e, t) {
|
|
|
472
472
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
473
473
|
}, st(e, t);
|
|
474
474
|
};
|
|
475
|
-
function
|
|
475
|
+
function Ae(e, t) {
|
|
476
476
|
if (typeof t != "function" && t !== null)
|
|
477
477
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
478
478
|
st(e, t);
|
|
@@ -583,9 +583,9 @@ var ke = function() {
|
|
|
583
583
|
this._finalizers = null;
|
|
584
584
|
try {
|
|
585
585
|
for (var f = at(p), g = f.next(); !g.done; g = f.next()) {
|
|
586
|
-
var
|
|
586
|
+
var v = g.value;
|
|
587
587
|
try {
|
|
588
|
-
Pt(
|
|
588
|
+
Pt(v);
|
|
589
589
|
} catch (b) {
|
|
590
590
|
o = o ?? [], b instanceof Qe ? o = ut(ut([], lt(o)), lt(b.errors)) : o.push(b);
|
|
591
591
|
}
|
|
@@ -664,7 +664,7 @@ function Ne(e) {
|
|
|
664
664
|
e();
|
|
665
665
|
}
|
|
666
666
|
var sr = function(e) {
|
|
667
|
-
|
|
667
|
+
Ae(t, e);
|
|
668
668
|
function t(r) {
|
|
669
669
|
var n = e.call(this) || this;
|
|
670
670
|
return n.isStopped = !1, r ? (n.destination = r, or(r) && r.add(n)) : n.destination = un, n;
|
|
@@ -726,7 +726,7 @@ var sr = function(e) {
|
|
|
726
726
|
}
|
|
727
727
|
}, e;
|
|
728
728
|
}(), ct = function(e) {
|
|
729
|
-
|
|
729
|
+
Ae(t, e);
|
|
730
730
|
function t(r, n, i) {
|
|
731
731
|
var o = e.call(this) || this, s;
|
|
732
732
|
return W(r) || !r ? s = {
|
|
@@ -836,7 +836,7 @@ var mn = nr(function(e) {
|
|
|
836
836
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
837
837
|
};
|
|
838
838
|
}), ar = function(e) {
|
|
839
|
-
|
|
839
|
+
Ae(t, e);
|
|
840
840
|
function t() {
|
|
841
841
|
var r = e.call(this) || this;
|
|
842
842
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
@@ -916,7 +916,7 @@ var mn = nr(function(e) {
|
|
|
916
916
|
return new It(r, n);
|
|
917
917
|
}, t;
|
|
918
918
|
}(Ct), It = function(e) {
|
|
919
|
-
|
|
919
|
+
Ae(t, e);
|
|
920
920
|
function t(r, n) {
|
|
921
921
|
var i = e.call(this) || this;
|
|
922
922
|
return i.destination = r, i.source = n, i;
|
|
@@ -940,7 +940,7 @@ var mn = nr(function(e) {
|
|
|
940
940
|
},
|
|
941
941
|
delegate: void 0
|
|
942
942
|
}, bn = function(e) {
|
|
943
|
-
|
|
943
|
+
Ae(t, e);
|
|
944
944
|
function t(r, n, i) {
|
|
945
945
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = lr);
|
|
946
946
|
var o = e.call(this) || this;
|
|
@@ -969,56 +969,56 @@ const Lt = [], Nt = {}, gn = (e, t = 0) => {
|
|
|
969
969
|
Nt[e] = r, Lt.push(e);
|
|
970
970
|
}
|
|
971
971
|
return Nt[e];
|
|
972
|
-
},
|
|
973
|
-
function
|
|
972
|
+
}, he = [];
|
|
973
|
+
function yn(e, t) {
|
|
974
974
|
return {
|
|
975
975
|
subscribe: je(e, t).subscribe
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
|
-
function je(e, t =
|
|
978
|
+
function je(e, t = D) {
|
|
979
979
|
let r;
|
|
980
980
|
const n = /* @__PURE__ */ new Set();
|
|
981
981
|
function i(a) {
|
|
982
982
|
if (er(e, a) && (e = a, r)) {
|
|
983
|
-
const h = !
|
|
983
|
+
const h = !he.length;
|
|
984
984
|
for (const l of n)
|
|
985
|
-
l[1](),
|
|
985
|
+
l[1](), he.push(l, e);
|
|
986
986
|
if (h) {
|
|
987
|
-
for (let l = 0; l <
|
|
988
|
-
|
|
989
|
-
|
|
987
|
+
for (let l = 0; l < he.length; l += 2)
|
|
988
|
+
he[l][0](he[l + 1]);
|
|
989
|
+
he.length = 0;
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
function o(a) {
|
|
994
994
|
i(a(e));
|
|
995
995
|
}
|
|
996
|
-
function s(a, h =
|
|
996
|
+
function s(a, h = D) {
|
|
997
997
|
const l = [a, h];
|
|
998
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
|
998
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || D), a(e), () => {
|
|
999
999
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1000
1000
|
};
|
|
1001
1001
|
}
|
|
1002
1002
|
return { set: i, update: o, subscribe: s };
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function ye(e, t, r) {
|
|
1005
1005
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1006
1006
|
if (!i.every(Boolean))
|
|
1007
1007
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1008
1008
|
const o = t.length < 2;
|
|
1009
|
-
return
|
|
1009
|
+
return yn(r, (s, a) => {
|
|
1010
1010
|
let h = !1;
|
|
1011
1011
|
const l = [];
|
|
1012
|
-
let u = 0, p =
|
|
1012
|
+
let u = 0, p = D;
|
|
1013
1013
|
const f = () => {
|
|
1014
1014
|
if (u)
|
|
1015
1015
|
return;
|
|
1016
1016
|
p();
|
|
1017
|
-
const
|
|
1018
|
-
o ? s(
|
|
1017
|
+
const v = t(n ? l[0] : l, s, a);
|
|
1018
|
+
o ? s(v) : p = xt(v) ? v : D;
|
|
1019
1019
|
}, g = i.map(
|
|
1020
|
-
(
|
|
1021
|
-
|
|
1020
|
+
(v, b) => tr(
|
|
1021
|
+
v,
|
|
1022
1022
|
(w) => {
|
|
1023
1023
|
l[b] = w, u &= ~(1 << b), h && f();
|
|
1024
1024
|
},
|
|
@@ -1028,11 +1028,11 @@ function ge(e, t, r) {
|
|
|
1028
1028
|
)
|
|
1029
1029
|
);
|
|
1030
1030
|
return h = !0, f(), function() {
|
|
1031
|
-
|
|
1031
|
+
ne(g), p(), h = !1;
|
|
1032
1032
|
};
|
|
1033
1033
|
});
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function vn(e) {
|
|
1036
1036
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1037
1037
|
}
|
|
1038
1038
|
var _n = function(t) {
|
|
@@ -1052,19 +1052,19 @@ function Tn(e) {
|
|
|
1052
1052
|
function Hn(e) {
|
|
1053
1053
|
return Array.isArray(e) ? [] : {};
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1055
|
+
function Te(e, t) {
|
|
1056
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? de(Hn(e), e, t) : e;
|
|
1057
1057
|
}
|
|
1058
1058
|
function An(e, t, r) {
|
|
1059
1059
|
return e.concat(t).map(function(n) {
|
|
1060
|
-
return
|
|
1060
|
+
return Te(n, r);
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
1063
|
function Bn(e, t) {
|
|
1064
1064
|
if (!t.customMerge)
|
|
1065
|
-
return
|
|
1065
|
+
return de;
|
|
1066
1066
|
var r = t.customMerge(e);
|
|
1067
|
-
return typeof r == "function" ? r :
|
|
1067
|
+
return typeof r == "function" ? r : de;
|
|
1068
1068
|
}
|
|
1069
1069
|
function Pn(e) {
|
|
1070
1070
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -1087,25 +1087,25 @@ function Fn(e, t) {
|
|
|
1087
1087
|
function Cn(e, t, r) {
|
|
1088
1088
|
var n = {};
|
|
1089
1089
|
return r.isMergeableObject(e) && Mt(e).forEach(function(i) {
|
|
1090
|
-
n[i] =
|
|
1090
|
+
n[i] = Te(e[i], r);
|
|
1091
1091
|
}), Mt(t).forEach(function(i) {
|
|
1092
|
-
Fn(e, i) || (ur(e, i) && r.isMergeableObject(t[i]) ? n[i] = Bn(i, r)(e[i], t[i], r) : n[i] =
|
|
1092
|
+
Fn(e, i) || (ur(e, i) && r.isMergeableObject(t[i]) ? n[i] = Bn(i, r)(e[i], t[i], r) : n[i] = Te(t[i], r));
|
|
1093
1093
|
}), n;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || An, r.isMergeableObject = r.isMergeableObject || _n, r.cloneUnlessOtherwiseSpecified =
|
|
1095
|
+
function de(e, t, r) {
|
|
1096
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || An, r.isMergeableObject = r.isMergeableObject || _n, r.cloneUnlessOtherwiseSpecified = Te;
|
|
1097
1097
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1098
|
-
return o ? n ? r.arrayMerge(e, t, r) : Cn(e, t, r) :
|
|
1098
|
+
return o ? n ? r.arrayMerge(e, t, r) : Cn(e, t, r) : Te(t, r);
|
|
1099
1099
|
}
|
|
1100
|
-
|
|
1100
|
+
de.all = function(t, r) {
|
|
1101
1101
|
if (!Array.isArray(t))
|
|
1102
1102
|
throw new Error("first argument should be an array");
|
|
1103
1103
|
return t.reduce(function(n, i) {
|
|
1104
|
-
return
|
|
1104
|
+
return de(n, i, r);
|
|
1105
1105
|
}, {});
|
|
1106
1106
|
};
|
|
1107
|
-
var On =
|
|
1108
|
-
const Ln = /* @__PURE__ */
|
|
1107
|
+
var On = de, In = On;
|
|
1108
|
+
const Ln = /* @__PURE__ */ vn(In);
|
|
1109
1109
|
var ft = function(e, t) {
|
|
1110
1110
|
return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1111
1111
|
r.__proto__ = n;
|
|
@@ -1149,7 +1149,7 @@ function Ye(e, t, r) {
|
|
|
1149
1149
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1150
1150
|
}
|
|
1151
1151
|
function qe(e, t) {
|
|
1152
|
-
var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer :
|
|
1152
|
+
var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Un;
|
|
1153
1153
|
return i(e, {
|
|
1154
1154
|
cache: r,
|
|
1155
1155
|
serializer: n
|
|
@@ -1173,10 +1173,10 @@ function Un(e, t) {
|
|
|
1173
1173
|
var r = e.length === 1 ? Rn : hr;
|
|
1174
1174
|
return cr(e, this, r, t.cache.create(), t.serializer);
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function Dn(e, t) {
|
|
1177
1177
|
return cr(e, this, hr, t.cache.create(), t.serializer);
|
|
1178
1178
|
}
|
|
1179
|
-
var
|
|
1179
|
+
var $n = function() {
|
|
1180
1180
|
return JSON.stringify(arguments);
|
|
1181
1181
|
}, Gn = (
|
|
1182
1182
|
/** @class */
|
|
@@ -1195,29 +1195,29 @@ var Dn = function() {
|
|
|
1195
1195
|
return new Gn();
|
|
1196
1196
|
}
|
|
1197
1197
|
}, Ke = {
|
|
1198
|
-
variadic:
|
|
1199
|
-
},
|
|
1200
|
-
return
|
|
1198
|
+
variadic: Dn
|
|
1199
|
+
}, De = function() {
|
|
1200
|
+
return De = Object.assign || function(t) {
|
|
1201
1201
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1202
1202
|
r = arguments[n];
|
|
1203
1203
|
for (var o in r)
|
|
1204
1204
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1205
1205
|
}
|
|
1206
1206
|
return t;
|
|
1207
|
-
},
|
|
1207
|
+
}, De.apply(this, arguments);
|
|
1208
1208
|
};
|
|
1209
|
-
var
|
|
1209
|
+
var _;
|
|
1210
1210
|
(function(e) {
|
|
1211
1211
|
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";
|
|
1212
|
-
})(
|
|
1212
|
+
})(_ || (_ = {}));
|
|
1213
1213
|
var B;
|
|
1214
1214
|
(function(e) {
|
|
1215
1215
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1216
1216
|
})(B || (B = {}));
|
|
1217
|
-
var
|
|
1217
|
+
var me;
|
|
1218
1218
|
(function(e) {
|
|
1219
1219
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1220
|
-
})(
|
|
1220
|
+
})(me || (me = {}));
|
|
1221
1221
|
function Rt(e) {
|
|
1222
1222
|
return e.type === B.literal;
|
|
1223
1223
|
}
|
|
@@ -1245,13 +1245,13 @@ function Vn(e) {
|
|
|
1245
1245
|
function gr(e) {
|
|
1246
1246
|
return e.type === B.tag;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1248
|
+
function yr(e) {
|
|
1249
|
+
return !!(e && typeof e == "object" && e.type === me.number);
|
|
1250
1250
|
}
|
|
1251
1251
|
function pt(e) {
|
|
1252
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1252
|
+
return !!(e && typeof e == "object" && e.type === me.dateTime);
|
|
1253
1253
|
}
|
|
1254
|
-
var
|
|
1254
|
+
var vr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xn = /(?:[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;
|
|
1255
1255
|
function Wn(e) {
|
|
1256
1256
|
var t = {};
|
|
1257
1257
|
return e.replace(Xn, function(r) {
|
|
@@ -1376,7 +1376,7 @@ function Jn(e) {
|
|
|
1376
1376
|
return e.replace(/^(.*?)-/, "");
|
|
1377
1377
|
}
|
|
1378
1378
|
var Ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, _r = /^(@+)?(\+|#+)?[rs]?$/g, Qn = /(\*)(0+)|(#+)(0+)|(0+)/g, xr = /^(0+)$/;
|
|
1379
|
-
function
|
|
1379
|
+
function Dt(e) {
|
|
1380
1380
|
var t = {};
|
|
1381
1381
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(_r, function(r, n, i) {
|
|
1382
1382
|
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)), "";
|
|
@@ -1436,7 +1436,7 @@ function Yn(e) {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
return t;
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function $t(e) {
|
|
1440
1440
|
var t = {}, r = Er(e);
|
|
1441
1441
|
return r || t;
|
|
1442
1442
|
}
|
|
@@ -1476,12 +1476,12 @@ function qn(e) {
|
|
|
1476
1476
|
continue;
|
|
1477
1477
|
case "scientific":
|
|
1478
1478
|
t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1479
|
-
return P(P({}, h),
|
|
1479
|
+
return P(P({}, h), $t(l));
|
|
1480
1480
|
}, {}));
|
|
1481
1481
|
continue;
|
|
1482
1482
|
case "engineering":
|
|
1483
1483
|
t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1484
|
-
return P(P({}, h),
|
|
1484
|
+
return P(P({}, h), $t(l));
|
|
1485
1485
|
}, {}));
|
|
1486
1486
|
continue;
|
|
1487
1487
|
case "notation-simple":
|
|
@@ -1550,11 +1550,11 @@ function qn(e) {
|
|
|
1550
1550
|
return u === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1551
1551
|
});
|
|
1552
1552
|
var o = i.options[0];
|
|
1553
|
-
o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t),
|
|
1553
|
+
o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), Dt(o)));
|
|
1554
1554
|
continue;
|
|
1555
1555
|
}
|
|
1556
1556
|
if (_r.test(i.stem)) {
|
|
1557
|
-
t = P(P({}, t),
|
|
1557
|
+
t = P(P({}, t), Dt(i.stem));
|
|
1558
1558
|
continue;
|
|
1559
1559
|
}
|
|
1560
1560
|
var s = Er(i.stem);
|
|
@@ -3017,7 +3017,7 @@ function ei(e) {
|
|
|
3017
3017
|
var i = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
|
|
3018
3018
|
return i[0];
|
|
3019
3019
|
}
|
|
3020
|
-
var et, ti = new RegExp("^".concat(
|
|
3020
|
+
var et, ti = new RegExp("^".concat(vr.source, "*")), ri = new RegExp("".concat(vr.source, "*$"));
|
|
3021
3021
|
function x(e, t) {
|
|
3022
3022
|
return { start: e, end: t };
|
|
3023
3023
|
}
|
|
@@ -3151,7 +3151,7 @@ var di = (
|
|
|
3151
3151
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3152
3152
|
if (n)
|
|
3153
3153
|
break;
|
|
3154
|
-
return this.error(
|
|
3154
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
|
|
3155
3155
|
} else if (o === 60 && !this.ignoreTag && gt(this.peek() || 0)) {
|
|
3156
3156
|
var s = this.parseTag(t, r);
|
|
3157
3157
|
if (s.err)
|
|
@@ -3186,9 +3186,9 @@ var di = (
|
|
|
3186
3186
|
var s = o.val, a = this.clonePosition();
|
|
3187
3187
|
if (this.bumpIf("</")) {
|
|
3188
3188
|
if (this.isEOF() || !gt(this.char()))
|
|
3189
|
-
return this.error(
|
|
3189
|
+
return this.error(_.INVALID_TAG, x(a, this.clonePosition()));
|
|
3190
3190
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
3191
|
-
return i !== l ? this.error(
|
|
3191
|
+
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, x(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3192
3192
|
val: {
|
|
3193
3193
|
type: B.tag,
|
|
3194
3194
|
value: i,
|
|
@@ -3196,11 +3196,11 @@ var di = (
|
|
|
3196
3196
|
location: x(n, this.clonePosition())
|
|
3197
3197
|
},
|
|
3198
3198
|
err: null
|
|
3199
|
-
} : this.error(
|
|
3199
|
+
} : this.error(_.INVALID_TAG, x(a, this.clonePosition())));
|
|
3200
3200
|
} else
|
|
3201
|
-
return this.error(
|
|
3201
|
+
return this.error(_.UNCLOSED_TAG, x(n, this.clonePosition()));
|
|
3202
3202
|
} else
|
|
3203
|
-
return this.error(
|
|
3203
|
+
return this.error(_.INVALID_TAG, x(n, this.clonePosition()));
|
|
3204
3204
|
}, e.prototype.parseTagName = function() {
|
|
3205
3205
|
var t = this.offset();
|
|
3206
3206
|
for (this.bump(); !this.isEOF() && bi(this.char()); )
|
|
@@ -3275,14 +3275,14 @@ var di = (
|
|
|
3275
3275
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3276
3276
|
var n = this.clonePosition();
|
|
3277
3277
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3278
|
-
return this.error(
|
|
3278
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
|
|
3279
3279
|
if (this.char() === 125)
|
|
3280
|
-
return this.bump(), this.error(
|
|
3280
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, x(n, this.clonePosition()));
|
|
3281
3281
|
var i = this.parseIdentifierIfPossible().value;
|
|
3282
3282
|
if (!i)
|
|
3283
|
-
return this.error(
|
|
3283
|
+
return this.error(_.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
3284
3284
|
if (this.bumpSpace(), this.isEOF())
|
|
3285
|
-
return this.error(
|
|
3285
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
|
|
3286
3286
|
switch (this.char()) {
|
|
3287
3287
|
case 125:
|
|
3288
3288
|
return this.bump(), {
|
|
@@ -3295,9 +3295,9 @@ var di = (
|
|
|
3295
3295
|
err: null
|
|
3296
3296
|
};
|
|
3297
3297
|
case 44:
|
|
3298
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3298
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3299
3299
|
default:
|
|
3300
|
-
return this.error(
|
|
3300
|
+
return this.error(_.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
3301
3301
|
}
|
|
3302
3302
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3303
3303
|
var t = this.clonePosition(), r = this.offset(), n = bt(this.message, r), i = r + n.length;
|
|
@@ -3308,7 +3308,7 @@ var di = (
|
|
|
3308
3308
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3309
3309
|
switch (a) {
|
|
3310
3310
|
case "":
|
|
3311
|
-
return this.error(
|
|
3311
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, x(s, h));
|
|
3312
3312
|
case "number":
|
|
3313
3313
|
case "date":
|
|
3314
3314
|
case "time": {
|
|
@@ -3321,13 +3321,13 @@ var di = (
|
|
|
3321
3321
|
return p;
|
|
3322
3322
|
var f = pi(p.val);
|
|
3323
3323
|
if (f.length === 0)
|
|
3324
|
-
return this.error(
|
|
3324
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
|
|
3325
3325
|
var g = x(u, this.clonePosition());
|
|
3326
3326
|
l = { style: f, styleLocation: g };
|
|
3327
3327
|
}
|
|
3328
|
-
var
|
|
3329
|
-
if (
|
|
3330
|
-
return
|
|
3328
|
+
var v = this.tryParseArgumentClose(i);
|
|
3329
|
+
if (v.err)
|
|
3330
|
+
return v;
|
|
3331
3331
|
var b = x(i, this.clonePosition());
|
|
3332
3332
|
if (l && Gt(l?.style, "::", 0)) {
|
|
3333
3333
|
var w = fi(l.style.slice(2));
|
|
@@ -3339,11 +3339,11 @@ var di = (
|
|
|
3339
3339
|
};
|
|
3340
3340
|
} else {
|
|
3341
3341
|
if (w.length === 0)
|
|
3342
|
-
return this.error(
|
|
3342
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, b);
|
|
3343
3343
|
var T = w;
|
|
3344
3344
|
this.locale && (T = Kn(w, this.locale));
|
|
3345
3345
|
var f = {
|
|
3346
|
-
type:
|
|
3346
|
+
type: me.dateTime,
|
|
3347
3347
|
pattern: T,
|
|
3348
3348
|
location: l.styleLocation,
|
|
3349
3349
|
parsedOptions: this.shouldParseSkeletons ? Wn(T) : {}
|
|
@@ -3369,14 +3369,14 @@ var di = (
|
|
|
3369
3369
|
case "select": {
|
|
3370
3370
|
var m = this.clonePosition();
|
|
3371
3371
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3372
|
-
return this.error(
|
|
3372
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, x(m, De({}, m)));
|
|
3373
3373
|
this.bumpSpace();
|
|
3374
3374
|
var C = this.parseIdentifierIfPossible(), L = 0;
|
|
3375
3375
|
if (a !== "select" && C.value === "offset") {
|
|
3376
3376
|
if (!this.bumpIf(":"))
|
|
3377
|
-
return this.error(
|
|
3377
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x(this.clonePosition(), this.clonePosition()));
|
|
3378
3378
|
this.bumpSpace();
|
|
3379
|
-
var p = this.tryParseDecimalInteger(
|
|
3379
|
+
var p = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3380
3380
|
if (p.err)
|
|
3381
3381
|
return p;
|
|
3382
3382
|
this.bumpSpace(), C = this.parseIdentifierIfPossible(), L = p.val;
|
|
@@ -3384,9 +3384,9 @@ var di = (
|
|
|
3384
3384
|
var R = this.tryParsePluralOrSelectOptions(t, a, r, C);
|
|
3385
3385
|
if (R.err)
|
|
3386
3386
|
return R;
|
|
3387
|
-
var
|
|
3388
|
-
if (
|
|
3389
|
-
return
|
|
3387
|
+
var v = this.tryParseArgumentClose(i);
|
|
3388
|
+
if (v.err)
|
|
3389
|
+
return v;
|
|
3390
3390
|
var V = x(i, this.clonePosition());
|
|
3391
3391
|
return a === "select" ? {
|
|
3392
3392
|
val: {
|
|
@@ -3409,10 +3409,10 @@ var di = (
|
|
|
3409
3409
|
};
|
|
3410
3410
|
}
|
|
3411
3411
|
default:
|
|
3412
|
-
return this.error(
|
|
3412
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, x(s, h));
|
|
3413
3413
|
}
|
|
3414
3414
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3415
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3415
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, x(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3416
3416
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3417
3417
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3418
3418
|
var n = this.char();
|
|
@@ -3421,7 +3421,7 @@ var di = (
|
|
|
3421
3421
|
this.bump();
|
|
3422
3422
|
var i = this.clonePosition();
|
|
3423
3423
|
if (!this.bumpUntil("'"))
|
|
3424
|
-
return this.error(
|
|
3424
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, x(i, this.clonePosition()));
|
|
3425
3425
|
this.bump();
|
|
3426
3426
|
break;
|
|
3427
3427
|
}
|
|
@@ -3453,11 +3453,11 @@ var di = (
|
|
|
3453
3453
|
try {
|
|
3454
3454
|
n = Zn(t);
|
|
3455
3455
|
} catch {
|
|
3456
|
-
return this.error(
|
|
3456
|
+
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3457
3457
|
}
|
|
3458
3458
|
return {
|
|
3459
3459
|
val: {
|
|
3460
|
-
type:
|
|
3460
|
+
type: me.number,
|
|
3461
3461
|
tokens: n,
|
|
3462
3462
|
location: r,
|
|
3463
3463
|
parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
|
|
@@ -3469,7 +3469,7 @@ var di = (
|
|
|
3469
3469
|
if (l.length === 0) {
|
|
3470
3470
|
var p = this.clonePosition();
|
|
3471
3471
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3472
|
-
var f = this.tryParseDecimalInteger(
|
|
3472
|
+
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3473
3473
|
if (f.err)
|
|
3474
3474
|
return f;
|
|
3475
3475
|
u = x(p, this.clonePosition()), l = this.message.slice(p.offset, this.offset());
|
|
@@ -3477,26 +3477,26 @@ var di = (
|
|
|
3477
3477
|
break;
|
|
3478
3478
|
}
|
|
3479
3479
|
if (h.has(l))
|
|
3480
|
-
return this.error(r === "select" ?
|
|
3480
|
+
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3481
3481
|
l === "other" && (s = !0), this.bumpSpace();
|
|
3482
3482
|
var g = this.clonePosition();
|
|
3483
3483
|
if (!this.bumpIf("{"))
|
|
3484
|
-
return this.error(r === "select" ?
|
|
3485
|
-
var
|
|
3486
|
-
if (
|
|
3487
|
-
return
|
|
3484
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, x(this.clonePosition(), this.clonePosition()));
|
|
3485
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3486
|
+
if (v.err)
|
|
3487
|
+
return v;
|
|
3488
3488
|
var b = this.tryParseArgumentClose(g);
|
|
3489
3489
|
if (b.err)
|
|
3490
3490
|
return b;
|
|
3491
3491
|
a.push([
|
|
3492
3492
|
l,
|
|
3493
3493
|
{
|
|
3494
|
-
value:
|
|
3494
|
+
value: v.val,
|
|
3495
3495
|
location: x(g, this.clonePosition())
|
|
3496
3496
|
}
|
|
3497
3497
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
3498
3498
|
}
|
|
3499
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3499
|
+
return a.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, x(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(_.MISSING_OTHER_CLAUSE, x(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3500
3500
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3501
3501
|
var n = 1, i = this.clonePosition();
|
|
3502
3502
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3589,28 +3589,28 @@ function Tr(e) {
|
|
|
3589
3589
|
function gi(e) {
|
|
3590
3590
|
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;
|
|
3591
3591
|
}
|
|
3592
|
-
function
|
|
3592
|
+
function yt(e) {
|
|
3593
3593
|
e.forEach(function(t) {
|
|
3594
3594
|
if (delete t.location, mr(t) || br(t))
|
|
3595
3595
|
for (var r in t.options)
|
|
3596
|
-
delete t.options[r].location,
|
|
3596
|
+
delete t.options[r].location, yt(t.options[r].value);
|
|
3597
3597
|
else
|
|
3598
|
-
fr(t) &&
|
|
3598
|
+
fr(t) && yr(t.style) || (pr(t) || dr(t)) && pt(t.style) ? delete t.style.location : gr(t) && yt(t.children);
|
|
3599
3599
|
});
|
|
3600
3600
|
}
|
|
3601
|
-
function
|
|
3602
|
-
t === void 0 && (t = {}), t =
|
|
3601
|
+
function yi(e, t) {
|
|
3602
|
+
t === void 0 && (t = {}), t = De({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3603
3603
|
var r = new di(e, t).parse();
|
|
3604
3604
|
if (r.err) {
|
|
3605
|
-
var n = SyntaxError(
|
|
3605
|
+
var n = SyntaxError(_[r.err.kind]);
|
|
3606
3606
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3607
3607
|
}
|
|
3608
|
-
return t?.captureLocation ||
|
|
3608
|
+
return t?.captureLocation || yt(r.val), r.val;
|
|
3609
3609
|
}
|
|
3610
|
-
var
|
|
3610
|
+
var be;
|
|
3611
3611
|
(function(e) {
|
|
3612
3612
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3613
|
-
})(
|
|
3613
|
+
})(be || (be = {}));
|
|
3614
3614
|
var Xe = (
|
|
3615
3615
|
/** @class */
|
|
3616
3616
|
function(e) {
|
|
@@ -3628,16 +3628,16 @@ var Xe = (
|
|
|
3628
3628
|
function(e) {
|
|
3629
3629
|
Ve(t, e);
|
|
3630
3630
|
function t(r, n, i, o) {
|
|
3631
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3631
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), be.INVALID_VALUE, o) || this;
|
|
3632
3632
|
}
|
|
3633
3633
|
return t;
|
|
3634
3634
|
}(Xe)
|
|
3635
|
-
),
|
|
3635
|
+
), vi = (
|
|
3636
3636
|
/** @class */
|
|
3637
3637
|
function(e) {
|
|
3638
3638
|
Ve(t, e);
|
|
3639
3639
|
function t(r, n, i) {
|
|
3640
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3640
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), be.INVALID_VALUE, i) || this;
|
|
3641
3641
|
}
|
|
3642
3642
|
return t;
|
|
3643
3643
|
}(Xe)
|
|
@@ -3646,7 +3646,7 @@ var Xe = (
|
|
|
3646
3646
|
function(e) {
|
|
3647
3647
|
Ve(t, e);
|
|
3648
3648
|
function t(r, n) {
|
|
3649
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3649
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), be.MISSING_VALUE, n) || this;
|
|
3650
3650
|
}
|
|
3651
3651
|
return t;
|
|
3652
3652
|
}(Xe)
|
|
@@ -3715,7 +3715,7 @@ function Me(e, t, r, n, i, o, s) {
|
|
|
3715
3715
|
continue;
|
|
3716
3716
|
}
|
|
3717
3717
|
if (fr(u)) {
|
|
3718
|
-
var g = typeof u.style == "string" ? n.number[u.style] :
|
|
3718
|
+
var g = typeof u.style == "string" ? n.number[u.style] : yr(u.style) ? u.style.parsedOptions : void 0;
|
|
3719
3719
|
g && g.scale && (f = f * (g.scale || 1)), a.push({
|
|
3720
3720
|
type: N.literal,
|
|
3721
3721
|
value: r.getNumberFormat(t, g).format(f)
|
|
@@ -3723,10 +3723,10 @@ function Me(e, t, r, n, i, o, s) {
|
|
|
3723
3723
|
continue;
|
|
3724
3724
|
}
|
|
3725
3725
|
if (gr(u)) {
|
|
3726
|
-
var
|
|
3726
|
+
var v = u.children, b = u.value, w = i[b];
|
|
3727
3727
|
if (!Ei(w))
|
|
3728
|
-
throw new
|
|
3729
|
-
var T = Me(
|
|
3728
|
+
throw new vi(b, "function", s);
|
|
3729
|
+
var T = Me(v, t, r, n, i, o), S = w(T.map(function(L) {
|
|
3730
3730
|
return L.value;
|
|
3731
3731
|
}));
|
|
3732
3732
|
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(L) {
|
|
@@ -3749,7 +3749,7 @@ function Me(e, t, r, n, i, o, s) {
|
|
|
3749
3749
|
if (!Intl.PluralRules)
|
|
3750
3750
|
throw new Xe(`Intl.PluralRules is not available in this environment.
|
|
3751
3751
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3752
|
-
`,
|
|
3752
|
+
`, be.MISSING_INTL_API, s);
|
|
3753
3753
|
var C = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
|
3754
3754
|
m = u.options[C] || u.options.other;
|
|
3755
3755
|
}
|
|
@@ -3868,7 +3868,7 @@ var Hi = (
|
|
|
3868
3868
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3869
3869
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3870
3870
|
}
|
|
3871
|
-
}, e.__parse =
|
|
3871
|
+
}, e.__parse = yi, e.formats = {
|
|
3872
3872
|
number: {
|
|
3873
3873
|
integer: {
|
|
3874
3874
|
maximumFractionDigits: 0
|
|
@@ -3950,11 +3950,11 @@ function Ai(e, t) {
|
|
|
3950
3950
|
n = void 0;
|
|
3951
3951
|
return n;
|
|
3952
3952
|
}
|
|
3953
|
-
const
|
|
3953
|
+
const Y = {}, Bi = (e, t, r) => r && (t in Y || (Y[t] = {}), e in Y[t] || (Y[t][e] = r), r), Hr = (e, t) => {
|
|
3954
3954
|
if (t == null)
|
|
3955
3955
|
return;
|
|
3956
|
-
if (t in
|
|
3957
|
-
return
|
|
3956
|
+
if (t in Y && e in Y[t])
|
|
3957
|
+
return Y[t][e];
|
|
3958
3958
|
const r = We(t);
|
|
3959
3959
|
for (let n = 0; n < r.length; n++) {
|
|
3960
3960
|
const i = r[n], o = Fi(i, e);
|
|
@@ -3987,9 +3987,9 @@ function Ci(e) {
|
|
|
3987
3987
|
}
|
|
3988
3988
|
}
|
|
3989
3989
|
function Br(e, ...t) {
|
|
3990
|
-
delete
|
|
3990
|
+
delete Y[e], ve.update((r) => (r[e] = Ln.all([r[e] || {}, ...t]), r));
|
|
3991
3991
|
}
|
|
3992
|
-
|
|
3992
|
+
ye(
|
|
3993
3993
|
[ve],
|
|
3994
3994
|
([e]) => Object.keys(e)
|
|
3995
3995
|
);
|
|
@@ -4007,7 +4007,7 @@ function Ii(e) {
|
|
|
4007
4007
|
return [t, r ? [...r] : []];
|
|
4008
4008
|
}).filter(([, t]) => t.length > 0);
|
|
4009
4009
|
}
|
|
4010
|
-
function
|
|
4010
|
+
function vt(e) {
|
|
4011
4011
|
return e == null ? !1 : We(e).some(
|
|
4012
4012
|
(t) => {
|
|
4013
4013
|
var r;
|
|
@@ -4020,20 +4020,20 @@ function Li(e, t) {
|
|
|
4020
4020
|
t.map((n) => (Oi(e, n), n().then((i) => i.default || i)))
|
|
4021
4021
|
).then((n) => Br(e, ...n));
|
|
4022
4022
|
}
|
|
4023
|
-
const
|
|
4023
|
+
const Ee = {};
|
|
4024
4024
|
function Fr(e) {
|
|
4025
|
-
if (!
|
|
4026
|
-
return e in
|
|
4025
|
+
if (!vt(e))
|
|
4026
|
+
return e in Ee ? Ee[e] : Promise.resolve();
|
|
4027
4027
|
const t = Ii(e);
|
|
4028
|
-
return
|
|
4028
|
+
return Ee[e] = Promise.all(
|
|
4029
4029
|
t.map(
|
|
4030
4030
|
([r, n]) => Li(r, n)
|
|
4031
4031
|
)
|
|
4032
4032
|
).then(() => {
|
|
4033
|
-
if (
|
|
4033
|
+
if (vt(e))
|
|
4034
4034
|
return Fr(e);
|
|
4035
|
-
delete
|
|
4036
|
-
}),
|
|
4035
|
+
delete Ee[e];
|
|
4036
|
+
}), Ee[e];
|
|
4037
4037
|
}
|
|
4038
4038
|
const Ni = {
|
|
4039
4039
|
number: {
|
|
@@ -4072,48 +4072,48 @@ const Ni = {
|
|
|
4072
4072
|
handleMissingMessage: void 0,
|
|
4073
4073
|
ignoreTag: !0
|
|
4074
4074
|
}, Ri = Mi;
|
|
4075
|
-
function
|
|
4075
|
+
function ge() {
|
|
4076
4076
|
return Ri;
|
|
4077
4077
|
}
|
|
4078
4078
|
const rt = je(!1);
|
|
4079
|
-
var Ui = Object.defineProperty,
|
|
4079
|
+
var Ui = Object.defineProperty, Di = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, Xt = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ji = (e, t) => {
|
|
4080
4080
|
for (var r in t || (t = {}))
|
|
4081
4081
|
Gi.call(t, r) && Wt(e, r, t[r]);
|
|
4082
4082
|
if (Xt)
|
|
4083
4083
|
for (var r of Xt(t))
|
|
4084
4084
|
ki.call(t, r) && Wt(e, r, t[r]);
|
|
4085
4085
|
return e;
|
|
4086
|
-
}, Vi = (e, t) =>
|
|
4086
|
+
}, Vi = (e, t) => Di(e, $i(t));
|
|
4087
4087
|
let _t;
|
|
4088
|
-
const
|
|
4088
|
+
const $e = je(null);
|
|
4089
4089
|
function zt(e) {
|
|
4090
4090
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4091
4091
|
}
|
|
4092
|
-
function We(e, t =
|
|
4092
|
+
function We(e, t = ge().fallbackLocale) {
|
|
4093
4093
|
const r = zt(e);
|
|
4094
4094
|
return t ? [.../* @__PURE__ */ new Set([...r, ...zt(t)])] : r;
|
|
4095
4095
|
}
|
|
4096
|
-
function
|
|
4096
|
+
function ie() {
|
|
4097
4097
|
return _t ?? void 0;
|
|
4098
4098
|
}
|
|
4099
|
-
|
|
4099
|
+
$e.subscribe((e) => {
|
|
4100
4100
|
_t = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4101
4101
|
});
|
|
4102
4102
|
const Xi = (e) => {
|
|
4103
|
-
if (e && Ci(e) &&
|
|
4104
|
-
const { loadingDelay: t } =
|
|
4103
|
+
if (e && Ci(e) && vt(e)) {
|
|
4104
|
+
const { loadingDelay: t } = ge();
|
|
4105
4105
|
let r;
|
|
4106
|
-
return typeof window < "u" &&
|
|
4106
|
+
return typeof window < "u" && ie() != null && t ? r = window.setTimeout(
|
|
4107
4107
|
() => rt.set(!0),
|
|
4108
4108
|
t
|
|
4109
4109
|
) : rt.set(!0), Fr(e).then(() => {
|
|
4110
|
-
|
|
4110
|
+
$e.set(e);
|
|
4111
4111
|
}).finally(() => {
|
|
4112
4112
|
clearTimeout(r), rt.set(!1);
|
|
4113
4113
|
});
|
|
4114
4114
|
}
|
|
4115
|
-
return
|
|
4116
|
-
},
|
|
4115
|
+
return $e.set(e);
|
|
4116
|
+
}, re = Vi(ji({}, $e), {
|
|
4117
4117
|
set: Xi
|
|
4118
4118
|
}), ze = (e) => {
|
|
4119
4119
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -4129,7 +4129,7 @@ var Wi = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Cr = Object.p
|
|
|
4129
4129
|
for (var r of Ge(t))
|
|
4130
4130
|
Or.call(t, r) && Zt(e, r, t[r]);
|
|
4131
4131
|
return e;
|
|
4132
|
-
},
|
|
4132
|
+
}, _e = (e, t) => {
|
|
4133
4133
|
var r = {};
|
|
4134
4134
|
for (var n in e)
|
|
4135
4135
|
Cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4138,59 +4138,59 @@ var Wi = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Cr = Object.p
|
|
|
4138
4138
|
t.indexOf(n) < 0 && Or.call(e, n) && (r[n] = e[n]);
|
|
4139
4139
|
return r;
|
|
4140
4140
|
};
|
|
4141
|
-
const
|
|
4142
|
-
const { formats: r } =
|
|
4141
|
+
const He = (e, t) => {
|
|
4142
|
+
const { formats: r } = ge();
|
|
4143
4143
|
if (e in r && t in r[e])
|
|
4144
4144
|
return r[e][t];
|
|
4145
4145
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4146
4146
|
}, zi = ze(
|
|
4147
4147
|
(e) => {
|
|
4148
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4148
|
+
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
|
4149
4149
|
if (r == null)
|
|
4150
4150
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4151
|
-
return n && (i =
|
|
4151
|
+
return n && (i = He("number", n)), new Intl.NumberFormat(r, i);
|
|
4152
4152
|
}
|
|
4153
4153
|
), Zi = ze(
|
|
4154
4154
|
(e) => {
|
|
4155
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4155
|
+
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
|
4156
4156
|
if (r == null)
|
|
4157
4157
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4158
|
-
return n ? i =
|
|
4158
|
+
return n ? i = He("date", n) : Object.keys(i).length === 0 && (i = He("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4159
4159
|
}
|
|
4160
4160
|
), Ji = ze(
|
|
4161
4161
|
(e) => {
|
|
4162
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4162
|
+
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
|
4163
4163
|
if (r == null)
|
|
4164
4164
|
throw new Error(
|
|
4165
4165
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4166
4166
|
);
|
|
4167
|
-
return n ? i =
|
|
4167
|
+
return n ? i = He("time", n) : Object.keys(i).length === 0 && (i = He("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4168
4168
|
}
|
|
4169
4169
|
), Qi = (e = {}) => {
|
|
4170
4170
|
var t = e, {
|
|
4171
|
-
locale: r =
|
|
4172
|
-
} = t, n =
|
|
4171
|
+
locale: r = ie()
|
|
4172
|
+
} = t, n = _e(t, [
|
|
4173
4173
|
"locale"
|
|
4174
4174
|
]);
|
|
4175
4175
|
return zi(St({ locale: r }, n));
|
|
4176
4176
|
}, Yi = (e = {}) => {
|
|
4177
4177
|
var t = e, {
|
|
4178
|
-
locale: r =
|
|
4179
|
-
} = t, n =
|
|
4178
|
+
locale: r = ie()
|
|
4179
|
+
} = t, n = _e(t, [
|
|
4180
4180
|
"locale"
|
|
4181
4181
|
]);
|
|
4182
4182
|
return Zi(St({ locale: r }, n));
|
|
4183
4183
|
}, qi = (e = {}) => {
|
|
4184
4184
|
var t = e, {
|
|
4185
|
-
locale: r =
|
|
4186
|
-
} = t, n =
|
|
4185
|
+
locale: r = ie()
|
|
4186
|
+
} = t, n = _e(t, [
|
|
4187
4187
|
"locale"
|
|
4188
4188
|
]);
|
|
4189
4189
|
return Ji(St({ locale: r }, n));
|
|
4190
4190
|
}, Ki = ze(
|
|
4191
4191
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4192
|
-
(e, t =
|
|
4193
|
-
ignoreTag:
|
|
4192
|
+
(e, t = ie()) => new Hi(e, t, ge().formats, {
|
|
4193
|
+
ignoreTag: ge().ignoreTag
|
|
4194
4194
|
})
|
|
4195
4195
|
), eo = (e, t = {}) => {
|
|
4196
4196
|
var r, n, i, o;
|
|
@@ -4198,7 +4198,7 @@ const Te = (e, t) => {
|
|
|
4198
4198
|
typeof e == "object" && (s = e, e = s.id);
|
|
4199
4199
|
const {
|
|
4200
4200
|
values: a,
|
|
4201
|
-
locale: h =
|
|
4201
|
+
locale: h = ie(),
|
|
4202
4202
|
default: l
|
|
4203
4203
|
} = s;
|
|
4204
4204
|
if (h == null)
|
|
@@ -4207,7 +4207,7 @@ const Te = (e, t) => {
|
|
|
4207
4207
|
);
|
|
4208
4208
|
let u = Hr(e, h);
|
|
4209
4209
|
if (!u)
|
|
4210
|
-
u = (o = (i = (n = (r =
|
|
4210
|
+
u = (o = (i = (n = (r = ge()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4211
4211
|
else if (typeof u != "string")
|
|
4212
4212
|
return console.warn(
|
|
4213
4213
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4224,15 +4224,15 @@ const Te = (e, t) => {
|
|
|
4224
4224
|
);
|
|
4225
4225
|
}
|
|
4226
4226
|
return p;
|
|
4227
|
-
}, to = (e, t) => qi(t).format(e), ro = (e, t) => Yi(t).format(e), no = (e, t) => Qi(t).format(e), io = (e, t =
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4227
|
+
}, to = (e, t) => qi(t).format(e), ro = (e, t) => Yi(t).format(e), no = (e, t) => Qi(t).format(e), io = (e, t = ie()) => Hr(e, t), oo = ye([re, ve], () => eo);
|
|
4228
|
+
ye([re], () => to);
|
|
4229
|
+
ye([re], () => ro);
|
|
4230
|
+
ye([re], () => no);
|
|
4231
|
+
ye([re, ve], () => io);
|
|
4232
4232
|
window.emWidgets = { topic: gn };
|
|
4233
4233
|
const so = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4234
4234
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4235
|
-
const
|
|
4235
|
+
const fe = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4236
4236
|
function ao(e, t) {
|
|
4237
4237
|
if (e) {
|
|
4238
4238
|
const r = document.createElement("style");
|
|
@@ -4255,11 +4255,11 @@ function uo(e, t, r, n = !1) {
|
|
|
4255
4255
|
return;
|
|
4256
4256
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
4257
4257
|
return r = ho(e, t), r;
|
|
4258
|
-
window[
|
|
4258
|
+
window[fe] || (window[fe] = {}), r = co(e, t);
|
|
4259
4259
|
const o = r.unsubscribe.bind(r), s = () => {
|
|
4260
|
-
if (window[
|
|
4261
|
-
const a = window[
|
|
4262
|
-
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[
|
|
4260
|
+
if (window[fe][t]) {
|
|
4261
|
+
const a = window[fe][t];
|
|
4262
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[fe][t];
|
|
4263
4263
|
}
|
|
4264
4264
|
o();
|
|
4265
4265
|
};
|
|
@@ -4275,7 +4275,7 @@ function co(e, t) {
|
|
|
4275
4275
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
4276
4276
|
if (!e)
|
|
4277
4277
|
return;
|
|
4278
|
-
const n = e.getRootNode(), i = window[
|
|
4278
|
+
const n = e.getRootNode(), i = window[fe];
|
|
4279
4279
|
let o = i[t]?.sheet;
|
|
4280
4280
|
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
4281
4281
|
sheet: o,
|
|
@@ -4286,8 +4286,8 @@ function co(e, t) {
|
|
|
4286
4286
|
});
|
|
4287
4287
|
}
|
|
4288
4288
|
function fo({ withLocale: e, translations: t }) {
|
|
4289
|
-
|
|
4290
|
-
r == null && (ve.set(t),
|
|
4289
|
+
re.subscribe((r) => {
|
|
4290
|
+
r == null && (ve.set(t), re.set(e));
|
|
4291
4291
|
});
|
|
4292
4292
|
}
|
|
4293
4293
|
function Jt(e, t) {
|
|
@@ -4414,98 +4414,98 @@ function mo(e) {
|
|
|
4414
4414
|
let t, r, n, i, o, s, a, h, l = (
|
|
4415
4415
|
/*$_*/
|
|
4416
4416
|
e[11]("filterby") + ""
|
|
4417
|
-
), u, p, f, g,
|
|
4417
|
+
), u, p, f, g, v = (
|
|
4418
4418
|
/*$_*/
|
|
4419
4419
|
e[11]("providers") + ""
|
|
4420
|
-
), b, w, T, S, m, C, L, R, V, O, Z,
|
|
4420
|
+
), b, w, T, S, m, C, L, R, V, O, Z, J, X, q = (
|
|
4421
4421
|
/*$_*/
|
|
4422
4422
|
e[11]("clear") + ""
|
|
4423
|
-
),
|
|
4423
|
+
), oe, K, ee, se, ae, xe;
|
|
4424
4424
|
function Be(c, E) {
|
|
4425
4425
|
return (
|
|
4426
4426
|
/*fullSelection*/
|
|
4427
|
-
c[7] ?
|
|
4427
|
+
c[7] ? yo : go
|
|
4428
4428
|
);
|
|
4429
4429
|
}
|
|
4430
|
-
let
|
|
4430
|
+
let le = Be(e), U = le(e), Q = Bt(
|
|
4431
4431
|
/*vendorArray*/
|
|
4432
4432
|
e[5]
|
|
4433
4433
|
), I = [];
|
|
4434
|
-
for (let c = 0; c <
|
|
4435
|
-
I[c] = qt(Yt(e,
|
|
4434
|
+
for (let c = 0; c < Q.length; c += 1)
|
|
4435
|
+
I[c] = qt(Yt(e, Q, c));
|
|
4436
4436
|
return {
|
|
4437
4437
|
c() {
|
|
4438
|
-
t = A("div"), r = A("div"), n = A("div"), i = Ce("svg"), o = Ce("path"), s =
|
|
4438
|
+
t = A("div"), r = A("div"), n = A("div"), i = Ce("svg"), o = Ce("path"), s = $(), a = A("div"), h = A("span"), u = k(l), p = $(), f = A("div"), g = A("span"), b = k(v), w = $(), U.c(), T = $(), S = A("span"), m = Ce("svg"), C = Ce("path"), V = $(), O = A("div"), Z = A("ul");
|
|
4439
4439
|
for (let c = 0; c < I.length; c += 1)
|
|
4440
4440
|
I[c].c();
|
|
4441
|
-
|
|
4441
|
+
J = $(), X = A("button"), oe = k(q), d(o, "id", "noun_filter_736223"), d(o, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), d(o, "transform", "translate(-5 -6.2)"), d(o, "fill", "#fff"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "16"), d(i, "height", "16"), d(i, "viewBox", "0 0 16 16"), d(h, "class", "FilterName"), d(f, "class", "FilterValueContainer"), d(a, "class", "FilterTextContainer"), d(n, "class", "FilterMainArea"), d(C, "id", "arrow"), d(C, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), d(C, "transform", "translate(-274.511 -441.088)"), d(C, "fill", "#d1d1d1"), d(m, "xmlns", "http://www.w3.org/2000/svg"), d(m, "width", "14"), d(m, "height", "6.835"), d(m, "viewBox", "0 0 14 6.835"), d(S, "class", L = "TriangleInactive " + /*isFilterActive*/
|
|
4442
4442
|
(e[4] ? "TriangleActive" : "")), d(r, "class", R = "FilterSelector " + /*isFilterActive*/
|
|
4443
|
-
(e[4] ? "FilterSelectorOpen" : "")), d(Z, "class", "FilterDropdown"), d(X, "class", "ClearFilters"), X.disabled =
|
|
4443
|
+
(e[4] ? "FilterSelectorOpen" : "")), d(Z, "class", "FilterDropdown"), d(X, "class", "ClearFilters"), X.disabled = K = /*fullSelection*/
|
|
4444
4444
|
e[7] && /*selectedVendorArray*/
|
|
4445
4445
|
e[6].length != /*vendorArray*/
|
|
4446
|
-
e[5].length, d(O, "class",
|
|
4447
|
-
(e[4] ? "FilterOpen" : "")), d(t, "class",
|
|
4446
|
+
e[5].length, d(O, "class", ee = "FilterDropdownContainer " + /*isFilterActive*/
|
|
4447
|
+
(e[4] ? "FilterOpen" : "")), d(t, "class", se = "FilterContainer " + /*addfilterselector*/
|
|
4448
4448
|
(e[0] == "true" && /*addsortingselector*/
|
|
4449
4449
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
|
4450
4450
|
},
|
|
4451
4451
|
m(c, E) {
|
|
4452
|
-
z(c, t, E),
|
|
4452
|
+
z(c, t, E), y(t, r), y(r, n), y(n, i), y(i, o), y(n, s), y(n, a), y(a, h), y(h, u), y(a, p), y(a, f), y(f, g), y(g, b), y(f, w), U.m(f, null), y(r, T), y(r, S), y(S, m), y(m, C), y(t, V), y(t, O), y(O, Z);
|
|
4453
4453
|
for (let H = 0; H < I.length; H += 1)
|
|
4454
4454
|
I[H] && I[H].m(Z, null);
|
|
4455
|
-
|
|
4455
|
+
y(O, J), y(O, X), y(X, oe), ae || (xe = [
|
|
4456
4456
|
Ue(
|
|
4457
4457
|
r,
|
|
4458
4458
|
"click",
|
|
4459
4459
|
/*click_handler*/
|
|
4460
|
-
e[
|
|
4460
|
+
e[25]
|
|
4461
4461
|
),
|
|
4462
4462
|
Ue(
|
|
4463
4463
|
X,
|
|
4464
4464
|
"click",
|
|
4465
4465
|
/*click_handler_2*/
|
|
4466
|
-
e[
|
|
4466
|
+
e[28]
|
|
4467
4467
|
)
|
|
4468
|
-
],
|
|
4468
|
+
], ae = !0);
|
|
4469
4469
|
},
|
|
4470
4470
|
p(c, E) {
|
|
4471
4471
|
if (E[0] & /*$_*/
|
|
4472
4472
|
2048 && l !== (l = /*$_*/
|
|
4473
|
-
c[11]("filterby") + "") &&
|
|
4474
|
-
2048 &&
|
|
4475
|
-
c[11]("providers") + "") &&
|
|
4473
|
+
c[11]("filterby") + "") && te(u, l), E[0] & /*$_*/
|
|
4474
|
+
2048 && v !== (v = /*$_*/
|
|
4475
|
+
c[11]("providers") + "") && te(b, v), le === (le = Be(c)) && U ? U.p(c, E) : (U.d(1), U = le(c), U && (U.c(), U.m(f, null))), E[0] & /*isFilterActive*/
|
|
4476
4476
|
16 && L !== (L = "TriangleInactive " + /*isFilterActive*/
|
|
4477
4477
|
(c[4] ? "TriangleActive" : "")) && d(S, "class", L), E[0] & /*isFilterActive*/
|
|
4478
4478
|
16 && R !== (R = "FilterSelector " + /*isFilterActive*/
|
|
4479
4479
|
(c[4] ? "FilterSelectorOpen" : "")) && d(r, "class", R), E[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
|
4480
4480
|
8228) {
|
|
4481
|
-
|
|
4481
|
+
Q = Bt(
|
|
4482
4482
|
/*vendorArray*/
|
|
4483
4483
|
c[5]
|
|
4484
4484
|
);
|
|
4485
4485
|
let H;
|
|
4486
|
-
for (H = 0; H <
|
|
4487
|
-
const F = Yt(c,
|
|
4486
|
+
for (H = 0; H < Q.length; H += 1) {
|
|
4487
|
+
const F = Yt(c, Q, H);
|
|
4488
4488
|
I[H] ? I[H].p(F, E) : (I[H] = qt(F), I[H].c(), I[H].m(Z, null));
|
|
4489
4489
|
}
|
|
4490
4490
|
for (; H < I.length; H += 1)
|
|
4491
4491
|
I[H].d(1);
|
|
4492
|
-
I.length =
|
|
4492
|
+
I.length = Q.length;
|
|
4493
4493
|
}
|
|
4494
4494
|
E[0] & /*$_*/
|
|
4495
|
-
2048 &&
|
|
4496
|
-
c[11]("clear") + "") &&
|
|
4497
|
-
224 &&
|
|
4495
|
+
2048 && q !== (q = /*$_*/
|
|
4496
|
+
c[11]("clear") + "") && te(oe, q), E[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
|
4497
|
+
224 && K !== (K = /*fullSelection*/
|
|
4498
4498
|
c[7] && /*selectedVendorArray*/
|
|
4499
4499
|
c[6].length != /*vendorArray*/
|
|
4500
|
-
c[5].length) && (X.disabled =
|
|
4501
|
-
16 &&
|
|
4502
|
-
(c[4] ? "FilterOpen" : "")) && d(O, "class",
|
|
4503
|
-
3 &&
|
|
4500
|
+
c[5].length) && (X.disabled = K), E[0] & /*isFilterActive*/
|
|
4501
|
+
16 && ee !== (ee = "FilterDropdownContainer " + /*isFilterActive*/
|
|
4502
|
+
(c[4] ? "FilterOpen" : "")) && d(O, "class", ee), E[0] & /*addfilterselector, addsortingselector*/
|
|
4503
|
+
3 && se !== (se = "FilterContainer " + /*addfilterselector*/
|
|
4504
4504
|
(c[0] == "true" && /*addsortingselector*/
|
|
4505
|
-
c[1] == "true" ? "FilerContainerSplit" : "")) && d(t, "class",
|
|
4505
|
+
c[1] == "true" ? "FilerContainerSplit" : "")) && d(t, "class", se);
|
|
4506
4506
|
},
|
|
4507
4507
|
d(c) {
|
|
4508
|
-
c && j(t), U.d(),
|
|
4508
|
+
c && j(t), U.d(), Dr(I, c), ae = !1, ne(xe);
|
|
4509
4509
|
}
|
|
4510
4510
|
};
|
|
4511
4511
|
}
|
|
@@ -4541,11 +4541,11 @@ function go(e) {
|
|
|
4541
4541
|
), d(t, "class", "FilterCounter");
|
|
4542
4542
|
},
|
|
4543
4543
|
m(n, i) {
|
|
4544
|
-
z(n, t, i),
|
|
4544
|
+
z(n, t, i), y(t, r);
|
|
4545
4545
|
},
|
|
4546
4546
|
p(n, i) {
|
|
4547
4547
|
i[0] & /*selectionNumber*/
|
|
4548
|
-
256 &&
|
|
4548
|
+
256 && te(
|
|
4549
4549
|
r,
|
|
4550
4550
|
/*selectionNumber*/
|
|
4551
4551
|
n[8]
|
|
@@ -4556,7 +4556,7 @@ function go(e) {
|
|
|
4556
4556
|
}
|
|
4557
4557
|
};
|
|
4558
4558
|
}
|
|
4559
|
-
function
|
|
4559
|
+
function yo(e) {
|
|
4560
4560
|
let t, r = (
|
|
4561
4561
|
/*$_*/
|
|
4562
4562
|
e[11]("all") + ""
|
|
@@ -4566,19 +4566,19 @@ function vo(e) {
|
|
|
4566
4566
|
t = A("span"), n = k(r), d(t, "class", "FilterCounter");
|
|
4567
4567
|
},
|
|
4568
4568
|
m(i, o) {
|
|
4569
|
-
z(i, t, o),
|
|
4569
|
+
z(i, t, o), y(t, n);
|
|
4570
4570
|
},
|
|
4571
4571
|
p(i, o) {
|
|
4572
4572
|
o[0] & /*$_*/
|
|
4573
4573
|
2048 && r !== (r = /*$_*/
|
|
4574
|
-
i[11]("all") + "") &&
|
|
4574
|
+
i[11]("all") + "") && te(n, r);
|
|
4575
4575
|
},
|
|
4576
4576
|
d(i) {
|
|
4577
4577
|
i && j(t);
|
|
4578
4578
|
}
|
|
4579
4579
|
};
|
|
4580
4580
|
}
|
|
4581
|
-
function
|
|
4581
|
+
function vo(e) {
|
|
4582
4582
|
let t, r;
|
|
4583
4583
|
return {
|
|
4584
4584
|
c() {
|
|
@@ -4608,17 +4608,17 @@ function _o(e) {
|
|
|
4608
4608
|
), l, u;
|
|
4609
4609
|
return {
|
|
4610
4610
|
c() {
|
|
4611
|
-
t = A("div"), r = A("span"), i = k(n), o =
|
|
4611
|
+
t = A("div"), r = A("span"), i = k(n), o = $(), s = A("span"), a = k("("), l = k(h), u = k(")"), d(r, "class", "VendorName"), d(t, "class", "FilterItemLabel");
|
|
4612
4612
|
},
|
|
4613
4613
|
m(p, f) {
|
|
4614
|
-
z(p, t, f),
|
|
4614
|
+
z(p, t, f), y(t, r), y(r, i), y(t, o), y(t, s), y(s, a), y(s, l), y(s, u);
|
|
4615
4615
|
},
|
|
4616
4616
|
p(p, f) {
|
|
4617
4617
|
f[0] & /*vendorArray*/
|
|
4618
4618
|
32 && n !== (n = /*vendor*/
|
|
4619
|
-
p[37].name + "") &&
|
|
4619
|
+
p[37].name + "") && te(i, n), f[0] & /*vendorArray*/
|
|
4620
4620
|
32 && h !== (h = /*vendor*/
|
|
4621
|
-
p[37].games.total + "") &&
|
|
4621
|
+
p[37].games.total + "") && te(l, h);
|
|
4622
4622
|
},
|
|
4623
4623
|
d(p) {
|
|
4624
4624
|
p && j(t);
|
|
@@ -4628,7 +4628,7 @@ function _o(e) {
|
|
|
4628
4628
|
function qt(e) {
|
|
4629
4629
|
let t, r, n, i, o, s, a, h, l, u, p, f;
|
|
4630
4630
|
function g() {
|
|
4631
|
-
e[
|
|
4631
|
+
e[26].call(
|
|
4632
4632
|
n,
|
|
4633
4633
|
/*each_value*/
|
|
4634
4634
|
e[38],
|
|
@@ -4636,10 +4636,10 @@ function qt(e) {
|
|
|
4636
4636
|
e[39]
|
|
4637
4637
|
);
|
|
4638
4638
|
}
|
|
4639
|
-
function
|
|
4639
|
+
function v() {
|
|
4640
4640
|
return (
|
|
4641
4641
|
/*click_handler_1*/
|
|
4642
|
-
e[
|
|
4642
|
+
e[27](
|
|
4643
4643
|
/*vendor*/
|
|
4644
4644
|
e[37]
|
|
4645
4645
|
)
|
|
@@ -4655,21 +4655,21 @@ function qt(e) {
|
|
|
4655
4655
|
/*filterbylogo*/
|
|
4656
4656
|
S[2] === "true"
|
|
4657
4657
|
)
|
|
4658
|
-
return
|
|
4658
|
+
return vo;
|
|
4659
4659
|
}
|
|
4660
4660
|
let w = b(e), T = w && w(e);
|
|
4661
4661
|
return {
|
|
4662
4662
|
c() {
|
|
4663
|
-
t = A("li"), r = A("label"), n = A("input"), o =
|
|
4663
|
+
t = A("li"), r = A("label"), n = A("input"), o = $(), s = A("span"), a = $(), T && T.c(), h = $(), d(n, "type", "checkbox"), d(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
|
4664
4664
|
e[37].name, Ht(n, n.__value), d(s, "class", "FiltersCheckmark"), d(r, "class", "FilterLabel"), d(t, "class", l = "FilterItem " + /*filterbylogo*/
|
|
4665
4665
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = u = /*vendor*/
|
|
4666
4666
|
e[37].name;
|
|
4667
4667
|
},
|
|
4668
4668
|
m(S, m) {
|
|
4669
|
-
z(S, t, m),
|
|
4670
|
-
e[37].isFilterSelected,
|
|
4669
|
+
z(S, t, m), y(t, r), y(r, n), n.checked = /*vendor*/
|
|
4670
|
+
e[37].isFilterSelected, y(r, o), y(r, s), y(r, a), T && T.m(r, null), y(t, h), p || (f = [
|
|
4671
4671
|
Ue(n, "change", g),
|
|
4672
|
-
Ue(n, "click",
|
|
4672
|
+
Ue(n, "click", v)
|
|
4673
4673
|
], p = !0);
|
|
4674
4674
|
},
|
|
4675
4675
|
p(S, m) {
|
|
@@ -4684,7 +4684,7 @@ function qt(e) {
|
|
|
4684
4684
|
e[37].name) && (t.value = u);
|
|
4685
4685
|
},
|
|
4686
4686
|
d(S) {
|
|
4687
|
-
S && j(t), T && T.d(), p = !1,
|
|
4687
|
+
S && j(t), T && T.d(), p = !1, ne(f);
|
|
4688
4688
|
}
|
|
4689
4689
|
};
|
|
4690
4690
|
}
|
|
@@ -4706,22 +4706,22 @@ function xo(e) {
|
|
|
4706
4706
|
t = A("div"), i && i.c();
|
|
4707
4707
|
},
|
|
4708
4708
|
m(o, s) {
|
|
4709
|
-
z(o, t, s), i && i.m(t, null), e[
|
|
4709
|
+
z(o, t, s), i && i.m(t, null), e[29](t);
|
|
4710
4710
|
},
|
|
4711
4711
|
p(o, s) {
|
|
4712
4712
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
4713
4713
|
},
|
|
4714
|
-
i:
|
|
4715
|
-
o:
|
|
4714
|
+
i: D,
|
|
4715
|
+
o: D,
|
|
4716
4716
|
d(o) {
|
|
4717
|
-
o && j(t), i && i.d(), e[
|
|
4717
|
+
o && j(t), i && i.d(), e[29](null);
|
|
4718
4718
|
}
|
|
4719
4719
|
};
|
|
4720
4720
|
}
|
|
4721
4721
|
function Eo(e, t, r) {
|
|
4722
4722
|
let n;
|
|
4723
4723
|
Nr(e, oo, (c) => r(11, n = c));
|
|
4724
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector: p = "false" } = t, { addsortingselector: f = "false" } = t, { filterbylogo: g = "false" } = t, { mbsource:
|
|
4724
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector: p = "false" } = t, { addsortingselector: f = "false" } = t, { filterbylogo: g = "false" } = t, { mbsource: v } = t, { usesinglevendorfilter: b = "false" } = t, w = !1, T = window.navigator.userAgent, S = [], m = [], C = {}, L = !1, R = 0, V = !0, O, Z = !1, J;
|
|
4725
4725
|
fo({ withLocale: "en", translations: {} });
|
|
4726
4726
|
const X = () => {
|
|
4727
4727
|
fetch(a).then((E) => E.json()).then((E) => {
|
|
@@ -4735,63 +4735,63 @@ function Eo(e, t, r) {
|
|
|
4735
4735
|
Object.keys(Qt).forEach((c) => {
|
|
4736
4736
|
Jt(c, Qt[c]);
|
|
4737
4737
|
}), C[u] && (C = { [u]: [] });
|
|
4738
|
-
const
|
|
4738
|
+
const q = () => {
|
|
4739
4739
|
r(4, w = !w), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
|
4740
|
-
},
|
|
4740
|
+
}, oe = (c) => (r(9, V = !0), new Promise((E, H) => {
|
|
4741
4741
|
fetch(c).then((F) => F.json()).then((F) => {
|
|
4742
4742
|
F = F.items, E(F.items), r(6, m = []);
|
|
4743
4743
|
let Ze = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
|
4744
4744
|
const Ir = b === "true" ? "*" : u;
|
|
4745
4745
|
F.forEach((Pe) => {
|
|
4746
4746
|
Ze || (Ze = { currentCategoryId: [] }), Ze[Ir]?.indexOf(Pe.id) >= 0 ? (Pe.isFilterSelected = !0, m.push(Pe)) : Pe.isFilterSelected = !1;
|
|
4747
|
-
}), r(5, S = F),
|
|
4747
|
+
}), r(5, S = F), ee();
|
|
4748
4748
|
}).catch((F) => {
|
|
4749
4749
|
console.error(F), r(10, Z = !0), H(F);
|
|
4750
4750
|
}).finally(() => {
|
|
4751
4751
|
r(9, V = !1);
|
|
4752
4752
|
});
|
|
4753
|
-
})),
|
|
4753
|
+
})), K = (c) => {
|
|
4754
4754
|
let E = localStorage.getItem("vendorFiltersByCategory");
|
|
4755
4755
|
c.isFilterSelected = !c.isFilterSelected, !m.length || m.filter((F) => F.name === c.name).length == 0 ? m.push(c) : r(6, m = m.filter((F) => F.name !== c.name));
|
|
4756
4756
|
const H = b === "true" ? "*" : u;
|
|
4757
4757
|
E == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(C = {
|
|
4758
4758
|
[H]: m.map((F) => F.id)
|
|
4759
|
-
})) : (E = JSON.parse(E), E[H] = m.map((F) => F.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(E))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href),
|
|
4760
|
-
},
|
|
4759
|
+
})) : (E = JSON.parse(E), E[H] = m.map((F) => F.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(E))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), ee();
|
|
4760
|
+
}, ee = () => {
|
|
4761
4761
|
r(7, L = m.length === S.length || m.length == 0), r(8, R = m.length);
|
|
4762
|
-
},
|
|
4762
|
+
}, se = () => {
|
|
4763
4763
|
if (S.length && b === "true")
|
|
4764
4764
|
return;
|
|
4765
4765
|
const c = new URL(`${i}/v1/casino/vendors`);
|
|
4766
|
-
r(4, w = !1), c.searchParams.append("fields", "id,name,logo,subVendors,games"), c.searchParams.append("language", s), c.searchParams.append("datasource", o), c.searchParams.append("platform", so(T)), b === "true" || ((u.match(/\$/g) || []).length > 1 ? (c.searchParams.append("filter", `games(subGroups=${u})`), c.searchParams.append("subVendors", `games(subGroups=${u})`)) : c.searchParams.append("filter", `games(groups=${u})`)),
|
|
4767
|
-
},
|
|
4766
|
+
r(4, w = !1), c.searchParams.append("fields", "id,name,logo,subVendors,games"), c.searchParams.append("language", s), c.searchParams.append("datasource", o), c.searchParams.append("platform", so(T)), b === "true" || ((u.match(/\$/g) || []).length > 1 ? (c.searchParams.append("filter", `games(subGroups=${u})`), c.searchParams.append("subVendors", `games(subGroups=${u})`)) : c.searchParams.append("filter", `games(groups=${u})`)), oe(c);
|
|
4767
|
+
}, ae = () => {
|
|
4768
4768
|
r(6, m = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(C = {
|
|
4769
4769
|
[b === "true" ? "*" : u]: m.map((c) => c.id)
|
|
4770
4770
|
})), S.forEach((c) => c.isFilterSelected = !1), r(5, S), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, L = !0), r(4, w = !1);
|
|
4771
|
-
},
|
|
4771
|
+
}, xe = (c) => {
|
|
4772
4772
|
c.data.type == "SortingOpened" && r(4, w = !1);
|
|
4773
4773
|
};
|
|
4774
|
-
jr(() => (window.addEventListener("message",
|
|
4775
|
-
window.removeEventListener("message",
|
|
4774
|
+
jr(() => (window.addEventListener("message", xe, !1), () => {
|
|
4775
|
+
window.emMessageBus != null && J && J.unsubscribe(), window.removeEventListener("message", xe);
|
|
4776
4776
|
}));
|
|
4777
|
-
const Be = () =>
|
|
4778
|
-
function
|
|
4777
|
+
const Be = () => q();
|
|
4778
|
+
function le(c, E) {
|
|
4779
4779
|
c[E].isFilterSelected = this.checked, r(5, S);
|
|
4780
4780
|
}
|
|
4781
|
-
const U = (c) =>
|
|
4781
|
+
const U = (c) => K(c), Q = () => ae();
|
|
4782
4782
|
function I(c) {
|
|
4783
4783
|
nt[c ? "unshift" : "push"](() => {
|
|
4784
4784
|
O = c, r(3, O);
|
|
4785
4785
|
});
|
|
4786
4786
|
}
|
|
4787
4787
|
return e.$$set = (c) => {
|
|
4788
|
-
"endpoint" in c && r(15, i = c.endpoint), "datasource" in c && r(16, o = c.datasource), "lang" in c && r(17, s = c.lang), "translationurl" in c && r(18, a = c.translationurl), "clientstyling" in c && r(19, h = c.clientstyling), "clientstylingurl" in c && r(20, l = c.clientstylingurl), "categoryid" in c && r(21, u = c.categoryid), "addfilterselector" in c && r(0, p = c.addfilterselector), "addsortingselector" in c && r(1, f = c.addsortingselector), "filterbylogo" in c && r(2, g = c.filterbylogo), "mbsource" in c && r(22,
|
|
4788
|
+
"endpoint" in c && r(15, i = c.endpoint), "datasource" in c && r(16, o = c.datasource), "lang" in c && r(17, s = c.lang), "translationurl" in c && r(18, a = c.translationurl), "clientstyling" in c && r(19, h = c.clientstyling), "clientstylingurl" in c && r(20, l = c.clientstylingurl), "categoryid" in c && r(21, u = c.categoryid), "addfilterselector" in c && r(0, p = c.addfilterselector), "addsortingselector" in c && r(1, f = c.addsortingselector), "filterbylogo" in c && r(2, g = c.filterbylogo), "mbsource" in c && r(22, v = c.mbsource), "usesinglevendorfilter" in c && r(23, b = c.usesinglevendorfilter);
|
|
4789
4789
|
}, e.$$.update = () => {
|
|
4790
4790
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
|
4791
|
-
2195460 && i && o && u && g &&
|
|
4791
|
+
2195460 && i && o && u && g && se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4792
4792
|
524296 && h && O && ao(O, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4793
|
-
1048584 && l && O && lo(O, l), e.$$.dirty[0] & /*customStylingContainer,
|
|
4794
|
-
|
|
4793
|
+
1048584 && l && O && lo(O, l), e.$$.dirty[0] & /*mbsource, customStylingContainer, styleSubscription*/
|
|
4794
|
+
20971528 && v && O && r(24, J = uo(O, `${v}.Style`, J, !0)), e.$$.dirty[0] & /*translationurl*/
|
|
4795
4795
|
262144 && a && X();
|
|
4796
4796
|
}, [
|
|
4797
4797
|
p,
|
|
@@ -4806,9 +4806,9 @@ function Eo(e, t, r) {
|
|
|
4806
4806
|
V,
|
|
4807
4807
|
Z,
|
|
4808
4808
|
n,
|
|
4809
|
-
Y,
|
|
4810
4809
|
q,
|
|
4811
|
-
|
|
4810
|
+
K,
|
|
4811
|
+
ae,
|
|
4812
4812
|
i,
|
|
4813
4813
|
o,
|
|
4814
4814
|
s,
|
|
@@ -4816,12 +4816,13 @@ function Eo(e, t, r) {
|
|
|
4816
4816
|
h,
|
|
4817
4817
|
l,
|
|
4818
4818
|
u,
|
|
4819
|
-
|
|
4819
|
+
v,
|
|
4820
4820
|
b,
|
|
4821
|
+
J,
|
|
4821
4822
|
Be,
|
|
4822
|
-
|
|
4823
|
+
le,
|
|
4823
4824
|
U,
|
|
4824
|
-
|
|
4825
|
+
Q,
|
|
4825
4826
|
I
|
|
4826
4827
|
];
|
|
4827
4828
|
}
|