@everymatrix/casino-filter 1.74.3 → 1.74.4
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-CoSGBGa0.js → CasinoFilter-CH_J-89C.js} +930 -916
- package/components/CasinoFilter-DubvziDj.cjs +18 -0
- package/components/{CasinoFilter-BS67GG53.js → CasinoFilter-fKqudwyH.js} +911 -897
- 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
- package/components/CasinoFilter-Dldkk_9I.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Dr = Object.defineProperty, $r = Object.defineProperties;
|
|
2
|
+
var Gr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var St = Object.getOwnPropertySymbols;
|
|
4
|
+
var kr = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ze = (e, t, r) => t in e ? Dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
kr.call(t, r) && ze(e, r, t[r]);
|
|
8
|
+
if (St)
|
|
9
|
+
for (var r of St(t))
|
|
10
|
+
jr.call(t, r) && ze(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Ht = (e, t) => $r(e, Gr(t));
|
|
13
|
+
var D = (e, t, r) => (ze(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var At = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(u));
|
|
@@ -27,53 +27,53 @@ var St = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function $() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function nr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Bt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ne(e) {
|
|
39
|
+
e.forEach(nr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function vt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ir(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 Ft(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 Vr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function or(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
58
|
-
return
|
|
58
|
+
return $;
|
|
59
59
|
}
|
|
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 Xr(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(or(t, r));
|
|
65
65
|
}
|
|
66
66
|
function v(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function Wr(e, t, r) {
|
|
70
|
+
const n = zr(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = B("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, Zr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function zr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,20 +83,20 @@ function jr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Zr(e, t) {
|
|
87
87
|
return v(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function z(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
96
|
function j(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Jr(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
@@ -115,20 +115,20 @@ function G() {
|
|
|
115
115
|
function Ue(e, t, r, n) {
|
|
116
116
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function d(e, t, r) {
|
|
119
119
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Qr(e) {
|
|
122
122
|
return Array.from(e.childNodes);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function te(e, t) {
|
|
125
125
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
126
126
|
t);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Pt(e, t) {
|
|
129
129
|
e.value = t == null ? "" : t;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function qr(e) {
|
|
132
132
|
const t = {};
|
|
133
133
|
return e.childNodes.forEach(
|
|
134
134
|
/** @param {Element} node */
|
|
@@ -137,98 +137,98 @@ function zr(e) {
|
|
|
137
137
|
}
|
|
138
138
|
), t;
|
|
139
139
|
}
|
|
140
|
-
let
|
|
141
|
-
function
|
|
142
|
-
|
|
140
|
+
let Te;
|
|
141
|
+
function Se(e) {
|
|
142
|
+
Te = e;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
if (!
|
|
144
|
+
function Yr() {
|
|
145
|
+
if (!Te)
|
|
146
146
|
throw new Error("Function called outside component initialization");
|
|
147
|
-
return
|
|
147
|
+
return Te;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
149
|
+
function Kr(e) {
|
|
150
|
+
Yr().$$.on_mount.push(e);
|
|
151
151
|
}
|
|
152
|
-
const ce = [],
|
|
152
|
+
const ce = [], rt = [];
|
|
153
153
|
let fe = [];
|
|
154
|
-
const
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
|
|
154
|
+
const Ct = [], en = /* @__PURE__ */ Promise.resolve();
|
|
155
|
+
let nt = !1;
|
|
156
|
+
function tn() {
|
|
157
|
+
nt || (nt = !0, en.then(M));
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function it(e) {
|
|
160
160
|
fe.push(e);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const Ze = /* @__PURE__ */ new Set();
|
|
163
163
|
let ue = 0;
|
|
164
|
-
function
|
|
164
|
+
function M() {
|
|
165
165
|
if (ue !== 0)
|
|
166
166
|
return;
|
|
167
|
-
const e =
|
|
167
|
+
const e = Te;
|
|
168
168
|
do {
|
|
169
169
|
try {
|
|
170
170
|
for (; ue < ce.length; ) {
|
|
171
171
|
const t = ce[ue];
|
|
172
|
-
ue++,
|
|
172
|
+
ue++, Se(t), rn(t.$$);
|
|
173
173
|
}
|
|
174
174
|
} catch (t) {
|
|
175
175
|
throw ce.length = 0, ue = 0, t;
|
|
176
176
|
}
|
|
177
|
-
for (
|
|
178
|
-
|
|
177
|
+
for (Se(null), ce.length = 0, ue = 0; rt.length; )
|
|
178
|
+
rt.pop()();
|
|
179
179
|
for (let t = 0; t < fe.length; t += 1) {
|
|
180
180
|
const r = fe[t];
|
|
181
|
-
|
|
181
|
+
Ze.has(r) || (Ze.add(r), r());
|
|
182
182
|
}
|
|
183
183
|
fe.length = 0;
|
|
184
184
|
} while (ce.length);
|
|
185
|
-
for (;
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
for (; Ct.length; )
|
|
186
|
+
Ct.pop()();
|
|
187
|
+
nt = !1, Ze.clear(), Se(e);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function rn(e) {
|
|
190
190
|
if (e.fragment !== null) {
|
|
191
|
-
e.update(),
|
|
191
|
+
e.update(), ne(e.before_update);
|
|
192
192
|
const t = e.dirty;
|
|
193
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
193
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(it);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function nn(e) {
|
|
197
197
|
const t = [], r = [];
|
|
198
198
|
fe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), fe = t;
|
|
199
199
|
}
|
|
200
|
-
const
|
|
201
|
-
function
|
|
202
|
-
e && e.i && (
|
|
200
|
+
const on = /* @__PURE__ */ new Set();
|
|
201
|
+
function sn(e, t) {
|
|
202
|
+
e && e.i && (on.delete(e), e.i(t));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function It(e) {
|
|
205
205
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function an(e, t, r) {
|
|
208
208
|
const { fragment: n, after_update: i } = e.$$;
|
|
209
|
-
n && n.m(t, r),
|
|
210
|
-
const o = e.$$.on_mount.map(
|
|
211
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
212
|
-
}), i.forEach(
|
|
209
|
+
n && n.m(t, r), it(() => {
|
|
210
|
+
const o = e.$$.on_mount.map(nr).filter(vt);
|
|
211
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
212
|
+
}), i.forEach(it);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function ln(e, t) {
|
|
215
215
|
const r = e.$$;
|
|
216
|
-
r.fragment !== null && (
|
|
216
|
+
r.fragment !== null && (nn(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
e.$$.dirty[0] === -1 && (ce.push(e),
|
|
218
|
+
function un(e, t) {
|
|
219
|
+
e.$$.dirty[0] === -1 && (ce.push(e), tn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
const u =
|
|
223
|
-
|
|
221
|
+
function hn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
222
|
+
const u = Te;
|
|
223
|
+
Se(e);
|
|
224
224
|
const l = e.$$ = {
|
|
225
225
|
fragment: null,
|
|
226
226
|
ctx: [],
|
|
227
227
|
// state
|
|
228
228
|
props: o,
|
|
229
|
-
update:
|
|
229
|
+
update: $,
|
|
230
230
|
not_equal: i,
|
|
231
|
-
bound:
|
|
231
|
+
bound: Bt(),
|
|
232
232
|
// lifecycle
|
|
233
233
|
on_mount: [],
|
|
234
234
|
on_destroy: [],
|
|
@@ -237,48 +237,48 @@ function sn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
237
237
|
after_update: [],
|
|
238
238
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
239
239
|
// everything else
|
|
240
|
-
callbacks:
|
|
240
|
+
callbacks: Bt(),
|
|
241
241
|
dirty: a,
|
|
242
242
|
skip_bound: !1,
|
|
243
243
|
root: t.target || u.$$.root
|
|
244
244
|
};
|
|
245
245
|
s && s(l.root);
|
|
246
246
|
let h = !1;
|
|
247
|
-
if (l.ctx = r(e, t.props || {}, (
|
|
248
|
-
const
|
|
249
|
-
return l.ctx && i(l.ctx[
|
|
250
|
-
}), l.update(), h = !0,
|
|
247
|
+
if (l.ctx = r ? r(e, t.props || {}, (p, f, ...g) => {
|
|
248
|
+
const _ = g.length ? g[0] : f;
|
|
249
|
+
return l.ctx && i(l.ctx[p], l.ctx[p] = _) && (!l.skip_bound && l.bound[p] && l.bound[p](_), h && un(e, p)), f;
|
|
250
|
+
}) : [], l.update(), h = !0, ne(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
251
251
|
if (t.hydrate) {
|
|
252
|
-
const
|
|
253
|
-
l.fragment && l.fragment.l(
|
|
252
|
+
const p = Qr(t.target);
|
|
253
|
+
l.fragment && l.fragment.l(p), p.forEach(j);
|
|
254
254
|
} else
|
|
255
255
|
l.fragment && l.fragment.c();
|
|
256
|
-
t.intro &&
|
|
256
|
+
t.intro && sn(e.$$.fragment), an(e, t.target, t.anchor), M();
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
Se(u);
|
|
259
259
|
}
|
|
260
|
-
let
|
|
261
|
-
typeof HTMLElement == "function" && (
|
|
260
|
+
let sr;
|
|
261
|
+
typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
262
262
|
constructor(t, r, n) {
|
|
263
263
|
super();
|
|
264
264
|
/** The Svelte component constructor */
|
|
265
|
-
|
|
265
|
+
D(this, "$$ctor");
|
|
266
266
|
/** Slots */
|
|
267
|
-
|
|
267
|
+
D(this, "$$s");
|
|
268
268
|
/** The Svelte component instance */
|
|
269
|
-
|
|
269
|
+
D(this, "$$c");
|
|
270
270
|
/** Whether or not the custom element is connected */
|
|
271
|
-
|
|
271
|
+
D(this, "$$cn", !1);
|
|
272
272
|
/** Component props data */
|
|
273
|
-
|
|
273
|
+
D(this, "$$d", {});
|
|
274
274
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
275
|
-
|
|
275
|
+
D(this, "$$r", !1);
|
|
276
276
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
277
|
-
|
|
277
|
+
D(this, "$$p_d", {});
|
|
278
278
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
279
|
-
|
|
279
|
+
D(this, "$$l", {});
|
|
280
280
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
281
|
-
|
|
281
|
+
D(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
282
282
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
283
283
|
}
|
|
284
284
|
addEventListener(t, r, n) {
|
|
@@ -295,21 +295,21 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
connectedCallback() {
|
|
298
|
-
return
|
|
298
|
+
return At(this, null, function* () {
|
|
299
299
|
if (this.$$cn = !0, !this.$$c) {
|
|
300
300
|
let t = function(o) {
|
|
301
301
|
return () => {
|
|
302
302
|
let s;
|
|
303
303
|
return {
|
|
304
304
|
c: function() {
|
|
305
|
-
s = B("slot"), o !== "default" &&
|
|
305
|
+
s = B("slot"), o !== "default" && d(s, "name", o);
|
|
306
306
|
},
|
|
307
307
|
/**
|
|
308
308
|
* @param {HTMLElement} target
|
|
309
309
|
* @param {HTMLElement} [anchor]
|
|
310
310
|
*/
|
|
311
311
|
m: function(l, h) {
|
|
312
|
-
|
|
312
|
+
z(l, s, h);
|
|
313
313
|
},
|
|
314
314
|
d: function(l) {
|
|
315
315
|
l && j(s);
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
319
319
|
};
|
|
320
320
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
321
321
|
return;
|
|
322
|
-
const r = {}, n =
|
|
322
|
+
const r = {}, n = qr(this);
|
|
323
323
|
for (const o of this.$$s)
|
|
324
324
|
o in n && (r[o] = [t(o)]);
|
|
325
325
|
for (const o of this.attributes) {
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
330
330
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
331
331
|
this.$$c = new this.$$ctor({
|
|
332
332
|
target: this.shadowRoot || this,
|
|
333
|
-
props:
|
|
333
|
+
props: Ht(Tt({}, this.$$d), {
|
|
334
334
|
$$slots: r,
|
|
335
335
|
$$scope: {
|
|
336
336
|
ctx: []
|
|
@@ -408,8 +408,8 @@ function Le(e, t, r, n) {
|
|
|
408
408
|
return t;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
let s = class extends
|
|
411
|
+
function cn(e, t, r, n, i, o) {
|
|
412
|
+
let s = class extends sr {
|
|
413
413
|
constructor() {
|
|
414
414
|
super(e, r, i), this.$$p_d = t;
|
|
415
415
|
}
|
|
@@ -439,7 +439,7 @@ function an(e, t, r, n, i, o) {
|
|
|
439
439
|
}), e.element = /** @type {any} */
|
|
440
440
|
s, s;
|
|
441
441
|
}
|
|
442
|
-
class
|
|
442
|
+
class fn {
|
|
443
443
|
constructor() {
|
|
444
444
|
/**
|
|
445
445
|
* ### PRIVATE API
|
|
@@ -448,7 +448,7 @@ class ln {
|
|
|
448
448
|
*
|
|
449
449
|
* @type {any}
|
|
450
450
|
*/
|
|
451
|
-
|
|
451
|
+
D(this, "$$");
|
|
452
452
|
/**
|
|
453
453
|
* ### PRIVATE API
|
|
454
454
|
*
|
|
@@ -456,11 +456,11 @@ class ln {
|
|
|
456
456
|
*
|
|
457
457
|
* @type {any}
|
|
458
458
|
*/
|
|
459
|
-
|
|
459
|
+
D(this, "$$set");
|
|
460
460
|
}
|
|
461
461
|
/** @returns {void} */
|
|
462
462
|
$destroy() {
|
|
463
|
-
|
|
463
|
+
ln(this, 1), this.$destroy = $;
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
466
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -469,8 +469,8 @@ class ln {
|
|
|
469
469
|
* @returns {() => void}
|
|
470
470
|
*/
|
|
471
471
|
$on(t, r) {
|
|
472
|
-
if (!
|
|
473
|
-
return
|
|
472
|
+
if (!vt(r))
|
|
473
|
+
return $;
|
|
474
474
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
475
475
|
return n.push(r), () => {
|
|
476
476
|
const i = n.indexOf(r);
|
|
@@ -482,11 +482,11 @@ class ln {
|
|
|
482
482
|
* @returns {void}
|
|
483
483
|
*/
|
|
484
484
|
$set(t) {
|
|
485
|
-
this.$$set &&
|
|
485
|
+
this.$$set && !Vr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
const
|
|
489
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
488
|
+
const pn = "4";
|
|
489
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pn);
|
|
490
490
|
/*! *****************************************************************************
|
|
491
491
|
Copyright (c) Microsoft Corporation.
|
|
492
492
|
|
|
@@ -501,34 +501,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
501
501
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
502
502
|
PERFORMANCE OF THIS SOFTWARE.
|
|
503
503
|
***************************************************************************** */
|
|
504
|
-
var
|
|
505
|
-
return
|
|
504
|
+
var ot = function(e, t) {
|
|
505
|
+
return ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
506
506
|
r.__proto__ = n;
|
|
507
507
|
} || function(r, n) {
|
|
508
508
|
for (var i in n)
|
|
509
509
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
510
|
-
},
|
|
510
|
+
}, ot(e, t);
|
|
511
511
|
};
|
|
512
|
-
function
|
|
512
|
+
function Z(e, t) {
|
|
513
513
|
if (typeof t != "function" && t !== null)
|
|
514
514
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
515
|
-
|
|
515
|
+
ot(e, t);
|
|
516
516
|
function r() {
|
|
517
517
|
this.constructor = e;
|
|
518
518
|
}
|
|
519
519
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
520
520
|
}
|
|
521
|
-
var
|
|
522
|
-
return
|
|
521
|
+
var E = function() {
|
|
522
|
+
return E = Object.assign || function(t) {
|
|
523
523
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
524
524
|
r = arguments[n];
|
|
525
525
|
for (var o in r)
|
|
526
526
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
527
527
|
}
|
|
528
528
|
return t;
|
|
529
|
-
},
|
|
529
|
+
}, E.apply(this, arguments);
|
|
530
530
|
};
|
|
531
|
-
function
|
|
531
|
+
function dn(e, t) {
|
|
532
532
|
var r = {};
|
|
533
533
|
for (var n in e)
|
|
534
534
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -537,7 +537,7 @@ function hn(e, t) {
|
|
|
537
537
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
538
538
|
return r;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function st(e) {
|
|
541
541
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
542
542
|
if (r)
|
|
543
543
|
return r.call(e);
|
|
@@ -549,7 +549,7 @@ function it(e) {
|
|
|
549
549
|
};
|
|
550
550
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function at(e, t) {
|
|
553
553
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
554
554
|
if (!r)
|
|
555
555
|
return e;
|
|
@@ -569,22 +569,22 @@ function ot(e, t) {
|
|
|
569
569
|
}
|
|
570
570
|
return o;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function pe(e, t, r) {
|
|
573
573
|
if (r || arguments.length === 2)
|
|
574
574
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
575
575
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
576
576
|
return e.concat(o || t);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function W(e) {
|
|
579
579
|
return typeof e == "function";
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function ar(e) {
|
|
582
582
|
var t = function(n) {
|
|
583
583
|
Error.call(n), n.stack = new Error().stack;
|
|
584
584
|
}, r = e(t);
|
|
585
585
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
586
586
|
}
|
|
587
|
-
var
|
|
587
|
+
var Je = ar(function(e) {
|
|
588
588
|
return function(r) {
|
|
589
589
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
590
590
|
` + r.map(function(n, i) {
|
|
@@ -593,7 +593,7 @@ var Ze = ir(function(e) {
|
|
|
593
593
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
594
594
|
};
|
|
595
595
|
});
|
|
596
|
-
function
|
|
596
|
+
function lt(e, t) {
|
|
597
597
|
if (e) {
|
|
598
598
|
var r = e.indexOf(t);
|
|
599
599
|
0 <= r && e.splice(r, 1);
|
|
@@ -611,12 +611,12 @@ var Ge = function() {
|
|
|
611
611
|
if (s)
|
|
612
612
|
if (this._parentage = null, Array.isArray(s))
|
|
613
613
|
try {
|
|
614
|
-
for (var a =
|
|
614
|
+
for (var a = st(s), u = a.next(); !u.done; u = a.next()) {
|
|
615
615
|
var l = u.value;
|
|
616
616
|
l.remove(this);
|
|
617
617
|
}
|
|
618
|
-
} catch (
|
|
619
|
-
t = { error:
|
|
618
|
+
} catch (b) {
|
|
619
|
+
t = { error: b };
|
|
620
620
|
} finally {
|
|
621
621
|
try {
|
|
622
622
|
u && !u.done && (r = a.return) && r.call(a);
|
|
@@ -628,29 +628,29 @@ var Ge = function() {
|
|
|
628
628
|
else
|
|
629
629
|
s.remove(this);
|
|
630
630
|
var h = this.initialTeardown;
|
|
631
|
-
if (
|
|
631
|
+
if (W(h))
|
|
632
632
|
try {
|
|
633
633
|
h();
|
|
634
|
-
} catch (
|
|
635
|
-
o =
|
|
634
|
+
} catch (b) {
|
|
635
|
+
o = b instanceof Je ? b.errors : [b];
|
|
636
636
|
}
|
|
637
|
-
var
|
|
638
|
-
if (
|
|
637
|
+
var p = this._finalizers;
|
|
638
|
+
if (p) {
|
|
639
639
|
this._finalizers = null;
|
|
640
640
|
try {
|
|
641
|
-
for (var f =
|
|
642
|
-
var
|
|
641
|
+
for (var f = st(p), g = f.next(); !g.done; g = f.next()) {
|
|
642
|
+
var _ = g.value;
|
|
643
643
|
try {
|
|
644
|
-
|
|
645
|
-
} catch (
|
|
646
|
-
o = o != null ? o : [],
|
|
644
|
+
Ot(_);
|
|
645
|
+
} catch (b) {
|
|
646
|
+
o = o != null ? o : [], b instanceof Je ? o = pe(pe([], at(o)), at(b.errors)) : o.push(b);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
} catch (
|
|
650
|
-
n = { error:
|
|
649
|
+
} catch (b) {
|
|
650
|
+
n = { error: b };
|
|
651
651
|
} finally {
|
|
652
652
|
try {
|
|
653
|
-
|
|
653
|
+
g && !g.done && (i = f.return) && i.call(f);
|
|
654
654
|
} finally {
|
|
655
655
|
if (n)
|
|
656
656
|
throw n.error;
|
|
@@ -658,13 +658,13 @@ var Ge = function() {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
if (o)
|
|
661
|
-
throw new
|
|
661
|
+
throw new Je(o);
|
|
662
662
|
}
|
|
663
663
|
}, e.prototype.add = function(t) {
|
|
664
664
|
var r;
|
|
665
665
|
if (t && t !== this)
|
|
666
666
|
if (this.closed)
|
|
667
|
-
|
|
667
|
+
Ot(t);
|
|
668
668
|
else {
|
|
669
669
|
if (t instanceof e) {
|
|
670
670
|
if (t.closed || t._hasParent(this))
|
|
@@ -681,56 +681,56 @@ var Ge = function() {
|
|
|
681
681
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
682
682
|
}, e.prototype._removeParent = function(t) {
|
|
683
683
|
var r = this._parentage;
|
|
684
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
684
|
+
r === t ? this._parentage = null : Array.isArray(r) && lt(r, t);
|
|
685
685
|
}, e.prototype.remove = function(t) {
|
|
686
686
|
var r = this._finalizers;
|
|
687
|
-
r &&
|
|
687
|
+
r && lt(r, t), t instanceof e && t._removeParent(this);
|
|
688
688
|
}, e.EMPTY = function() {
|
|
689
689
|
var t = new e();
|
|
690
690
|
return t.closed = !0, t;
|
|
691
691
|
}(), e;
|
|
692
|
-
}(),
|
|
693
|
-
function
|
|
694
|
-
return e instanceof Ge || e && "closed" in e &&
|
|
692
|
+
}(), lr = Ge.EMPTY;
|
|
693
|
+
function ur(e) {
|
|
694
|
+
return e instanceof Ge || e && "closed" in e && W(e.remove) && W(e.add) && W(e.unsubscribe);
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
|
|
696
|
+
function Ot(e) {
|
|
697
|
+
W(e) ? e() : e.unsubscribe();
|
|
698
698
|
}
|
|
699
|
-
var
|
|
699
|
+
var hr = {
|
|
700
700
|
onUnhandledError: null,
|
|
701
701
|
onStoppedNotification: null,
|
|
702
702
|
Promise: void 0,
|
|
703
703
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
704
704
|
useDeprecatedNextContext: !1
|
|
705
|
-
},
|
|
705
|
+
}, mn = {
|
|
706
706
|
setTimeout: function(e, t) {
|
|
707
707
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
708
708
|
r[n - 2] = arguments[n];
|
|
709
|
-
return setTimeout.apply(void 0,
|
|
709
|
+
return setTimeout.apply(void 0, pe([e, t], at(r)));
|
|
710
710
|
},
|
|
711
711
|
clearTimeout: function(e) {
|
|
712
712
|
return clearTimeout(e);
|
|
713
713
|
},
|
|
714
714
|
delegate: void 0
|
|
715
715
|
};
|
|
716
|
-
function
|
|
717
|
-
|
|
716
|
+
function bn(e) {
|
|
717
|
+
mn.setTimeout(function() {
|
|
718
718
|
throw e;
|
|
719
719
|
});
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function Lt() {
|
|
722
722
|
}
|
|
723
723
|
function Ne(e) {
|
|
724
724
|
e();
|
|
725
725
|
}
|
|
726
|
-
var
|
|
727
|
-
|
|
726
|
+
var cr = function(e) {
|
|
727
|
+
Z(t, e);
|
|
728
728
|
function t(r) {
|
|
729
729
|
var n = e.call(this) || this;
|
|
730
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
730
|
+
return n.isStopped = !1, r ? (n.destination = r, ur(r) && r.add(n)) : n.destination = _n, n;
|
|
731
731
|
}
|
|
732
732
|
return t.create = function(r, n, i) {
|
|
733
|
-
return new
|
|
733
|
+
return new ut(r, n, i);
|
|
734
734
|
}, t.prototype.next = function(r) {
|
|
735
735
|
this.isStopped || this._next(r);
|
|
736
736
|
}, t.prototype.error = function(r) {
|
|
@@ -754,7 +754,11 @@ var ar = function(e) {
|
|
|
754
754
|
this.unsubscribe();
|
|
755
755
|
}
|
|
756
756
|
}, t;
|
|
757
|
-
}(Ge),
|
|
757
|
+
}(Ge), gn = Function.prototype.bind;
|
|
758
|
+
function Qe(e, t) {
|
|
759
|
+
return gn.call(e, t);
|
|
760
|
+
}
|
|
761
|
+
var vn = function() {
|
|
758
762
|
function e(t) {
|
|
759
763
|
this.partialObserver = t;
|
|
760
764
|
}
|
|
@@ -785,43 +789,55 @@ var ar = function(e) {
|
|
|
785
789
|
Ie(r);
|
|
786
790
|
}
|
|
787
791
|
}, e;
|
|
788
|
-
}(),
|
|
789
|
-
|
|
792
|
+
}(), ut = function(e) {
|
|
793
|
+
Z(t, e);
|
|
790
794
|
function t(r, n, i) {
|
|
791
795
|
var o = e.call(this) || this, s;
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
796
|
+
if (W(r) || !r)
|
|
797
|
+
s = {
|
|
798
|
+
next: r != null ? r : void 0,
|
|
799
|
+
error: n != null ? n : void 0,
|
|
800
|
+
complete: i != null ? i : void 0
|
|
801
|
+
};
|
|
802
|
+
else {
|
|
803
|
+
var a;
|
|
804
|
+
o && hr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
805
|
+
return o.unsubscribe();
|
|
806
|
+
}, s = {
|
|
807
|
+
next: r.next && Qe(r.next, a),
|
|
808
|
+
error: r.error && Qe(r.error, a),
|
|
809
|
+
complete: r.complete && Qe(r.complete, a)
|
|
810
|
+
}) : s = r;
|
|
811
|
+
}
|
|
812
|
+
return o.destination = new vn(s), o;
|
|
797
813
|
}
|
|
798
814
|
return t;
|
|
799
|
-
}(
|
|
815
|
+
}(cr);
|
|
800
816
|
function Ie(e) {
|
|
801
|
-
|
|
817
|
+
bn(e);
|
|
802
818
|
}
|
|
803
|
-
function
|
|
819
|
+
function yn(e) {
|
|
804
820
|
throw e;
|
|
805
821
|
}
|
|
806
|
-
var
|
|
822
|
+
var _n = {
|
|
807
823
|
closed: !0,
|
|
808
|
-
next:
|
|
809
|
-
error:
|
|
810
|
-
complete:
|
|
811
|
-
},
|
|
824
|
+
next: Lt,
|
|
825
|
+
error: yn,
|
|
826
|
+
complete: Lt
|
|
827
|
+
}, xn = function() {
|
|
812
828
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
813
829
|
}();
|
|
814
|
-
function
|
|
830
|
+
function En(e) {
|
|
815
831
|
return e;
|
|
816
832
|
}
|
|
817
|
-
function
|
|
818
|
-
return e.length === 0 ?
|
|
833
|
+
function wn(e) {
|
|
834
|
+
return e.length === 0 ? En : e.length === 1 ? e[0] : function(r) {
|
|
819
835
|
return e.reduce(function(n, i) {
|
|
820
836
|
return i(n);
|
|
821
837
|
}, r);
|
|
822
838
|
};
|
|
823
839
|
}
|
|
824
|
-
var
|
|
840
|
+
var Nt = function() {
|
|
825
841
|
function e(t) {
|
|
826
842
|
t && (this._subscribe = t);
|
|
827
843
|
}
|
|
@@ -829,7 +845,7 @@ var It = function() {
|
|
|
829
845
|
var r = new e();
|
|
830
846
|
return r.source = this, r.operator = t, r;
|
|
831
847
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
832
|
-
var i = this, o =
|
|
848
|
+
var i = this, o = Tn(t) ? t : new ut(t, r, n);
|
|
833
849
|
return Ne(function() {
|
|
834
850
|
var s = i, a = s.operator, u = s.source;
|
|
835
851
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -842,8 +858,8 @@ var It = function() {
|
|
|
842
858
|
}
|
|
843
859
|
}, e.prototype.forEach = function(t, r) {
|
|
844
860
|
var n = this;
|
|
845
|
-
return r =
|
|
846
|
-
var s = new
|
|
861
|
+
return r = Mt(r), new r(function(i, o) {
|
|
862
|
+
var s = new ut({
|
|
847
863
|
next: function(a) {
|
|
848
864
|
try {
|
|
849
865
|
t(a);
|
|
@@ -859,15 +875,15 @@ var It = function() {
|
|
|
859
875
|
}, e.prototype._subscribe = function(t) {
|
|
860
876
|
var r;
|
|
861
877
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
862
|
-
}, e.prototype[
|
|
878
|
+
}, e.prototype[xn] = function() {
|
|
863
879
|
return this;
|
|
864
880
|
}, e.prototype.pipe = function() {
|
|
865
881
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
866
882
|
t[r] = arguments[r];
|
|
867
|
-
return
|
|
883
|
+
return wn(t)(this);
|
|
868
884
|
}, e.prototype.toPromise = function(t) {
|
|
869
885
|
var r = this;
|
|
870
|
-
return t =
|
|
886
|
+
return t = Mt(t), new t(function(n, i) {
|
|
871
887
|
var o;
|
|
872
888
|
r.subscribe(function(s) {
|
|
873
889
|
return o = s;
|
|
@@ -881,32 +897,32 @@ var It = function() {
|
|
|
881
897
|
return new e(t);
|
|
882
898
|
}, e;
|
|
883
899
|
}();
|
|
884
|
-
function
|
|
900
|
+
function Mt(e) {
|
|
885
901
|
var t;
|
|
886
|
-
return (t = e != null ? e :
|
|
902
|
+
return (t = e != null ? e : hr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
887
903
|
}
|
|
888
|
-
function
|
|
889
|
-
return e &&
|
|
904
|
+
function Sn(e) {
|
|
905
|
+
return e && W(e.next) && W(e.error) && W(e.complete);
|
|
890
906
|
}
|
|
891
|
-
function
|
|
892
|
-
return e && e instanceof
|
|
907
|
+
function Tn(e) {
|
|
908
|
+
return e && e instanceof cr || Sn(e) && ur(e);
|
|
893
909
|
}
|
|
894
|
-
var
|
|
910
|
+
var Hn = ar(function(e) {
|
|
895
911
|
return function() {
|
|
896
912
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
897
913
|
};
|
|
898
|
-
}),
|
|
899
|
-
|
|
914
|
+
}), fr = function(e) {
|
|
915
|
+
Z(t, e);
|
|
900
916
|
function t() {
|
|
901
917
|
var r = e.call(this) || this;
|
|
902
918
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
903
919
|
}
|
|
904
920
|
return t.prototype.lift = function(r) {
|
|
905
|
-
var n = new
|
|
921
|
+
var n = new Rt(this, this);
|
|
906
922
|
return n.operator = r, n;
|
|
907
923
|
}, t.prototype._throwIfClosed = function() {
|
|
908
924
|
if (this.closed)
|
|
909
|
-
throw new
|
|
925
|
+
throw new Hn();
|
|
910
926
|
}, t.prototype.next = function(r) {
|
|
911
927
|
var n = this;
|
|
912
928
|
Ne(function() {
|
|
@@ -914,7 +930,7 @@ var En = ir(function(e) {
|
|
|
914
930
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
915
931
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
916
932
|
try {
|
|
917
|
-
for (var s =
|
|
933
|
+
for (var s = st(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
918
934
|
var u = a.value;
|
|
919
935
|
u.next(r);
|
|
920
936
|
}
|
|
@@ -963,20 +979,20 @@ var En = ir(function(e) {
|
|
|
963
979
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
964
980
|
}, t.prototype._innerSubscribe = function(r) {
|
|
965
981
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
966
|
-
return o || s ?
|
|
967
|
-
n.currentObservers = null,
|
|
982
|
+
return o || s ? lr : (this.currentObservers = null, a.push(r), new Ge(function() {
|
|
983
|
+
n.currentObservers = null, lt(a, r);
|
|
968
984
|
}));
|
|
969
985
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
970
986
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
971
987
|
i ? r.error(o) : s && r.complete();
|
|
972
988
|
}, t.prototype.asObservable = function() {
|
|
973
|
-
var r = new
|
|
989
|
+
var r = new Nt();
|
|
974
990
|
return r.source = this, r;
|
|
975
991
|
}, t.create = function(r, n) {
|
|
976
|
-
return new
|
|
992
|
+
return new Rt(r, n);
|
|
977
993
|
}, t;
|
|
978
|
-
}(
|
|
979
|
-
|
|
994
|
+
}(Nt), Rt = function(e) {
|
|
995
|
+
Z(t, e);
|
|
980
996
|
function t(r, n) {
|
|
981
997
|
var i = e.call(this) || this;
|
|
982
998
|
return i.destination = r, i.source = n, i;
|
|
@@ -992,17 +1008,17 @@ var En = ir(function(e) {
|
|
|
992
1008
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
993
1009
|
}, t.prototype._subscribe = function(r) {
|
|
994
1010
|
var n, i;
|
|
995
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1011
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : lr;
|
|
996
1012
|
}, t;
|
|
997
|
-
}(
|
|
1013
|
+
}(fr), pr = {
|
|
998
1014
|
now: function() {
|
|
999
|
-
return (
|
|
1015
|
+
return (pr.delegate || Date).now();
|
|
1000
1016
|
},
|
|
1001
1017
|
delegate: void 0
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1018
|
+
}, An = function(e) {
|
|
1019
|
+
Z(t, e);
|
|
1004
1020
|
function t(r, n, i) {
|
|
1005
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1021
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = pr);
|
|
1006
1022
|
var o = e.call(this) || this;
|
|
1007
1023
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1008
1024
|
}
|
|
@@ -1022,24 +1038,24 @@ var En = ir(function(e) {
|
|
|
1022
1038
|
l && o.splice(0, l + 1);
|
|
1023
1039
|
}
|
|
1024
1040
|
}, t;
|
|
1025
|
-
}(
|
|
1026
|
-
const
|
|
1027
|
-
if (
|
|
1028
|
-
const r = new
|
|
1029
|
-
|
|
1041
|
+
}(fr);
|
|
1042
|
+
const Ut = [], Dt = {}, Bn = (e, t = 0) => {
|
|
1043
|
+
if (Ut.indexOf(e) == -1) {
|
|
1044
|
+
const r = new An(t);
|
|
1045
|
+
Dt[e] = r, Ut.push(e);
|
|
1030
1046
|
}
|
|
1031
|
-
return
|
|
1047
|
+
return Dt[e];
|
|
1032
1048
|
}, he = [];
|
|
1033
|
-
function
|
|
1049
|
+
function Fn(e, t) {
|
|
1034
1050
|
return {
|
|
1035
1051
|
subscribe: ke(e, t).subscribe
|
|
1036
1052
|
};
|
|
1037
1053
|
}
|
|
1038
|
-
function ke(e, t =
|
|
1054
|
+
function ke(e, t = $) {
|
|
1039
1055
|
let r;
|
|
1040
1056
|
const n = /* @__PURE__ */ new Set();
|
|
1041
1057
|
function i(a) {
|
|
1042
|
-
if (
|
|
1058
|
+
if (ir(e, a) && (e = a, r)) {
|
|
1043
1059
|
const u = !he.length;
|
|
1044
1060
|
for (const l of n)
|
|
1045
1061
|
l[1](), he.push(l, e);
|
|
@@ -1053,175 +1069,173 @@ function ke(e, t = D) {
|
|
|
1053
1069
|
function o(a) {
|
|
1054
1070
|
i(a(e));
|
|
1055
1071
|
}
|
|
1056
|
-
function s(a, u =
|
|
1072
|
+
function s(a, u = $) {
|
|
1057
1073
|
const l = [a, u];
|
|
1058
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
|
1074
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || $), a(e), () => {
|
|
1059
1075
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1060
1076
|
};
|
|
1061
1077
|
}
|
|
1062
1078
|
return { set: i, update: o, subscribe: s };
|
|
1063
1079
|
}
|
|
1064
|
-
function
|
|
1080
|
+
function ve(e, t, r) {
|
|
1065
1081
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1066
1082
|
if (!i.every(Boolean))
|
|
1067
1083
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1068
1084
|
const o = t.length < 2;
|
|
1069
|
-
return
|
|
1085
|
+
return Fn(r, (s, a) => {
|
|
1070
1086
|
let u = !1;
|
|
1071
1087
|
const l = [];
|
|
1072
|
-
let h = 0,
|
|
1088
|
+
let h = 0, p = $;
|
|
1073
1089
|
const f = () => {
|
|
1074
1090
|
if (h)
|
|
1075
1091
|
return;
|
|
1076
|
-
|
|
1077
|
-
const
|
|
1078
|
-
o ? s(
|
|
1079
|
-
},
|
|
1080
|
-
(
|
|
1081
|
-
|
|
1082
|
-
(
|
|
1083
|
-
l[
|
|
1092
|
+
p();
|
|
1093
|
+
const _ = t(n ? l[0] : l, s, a);
|
|
1094
|
+
o ? s(_) : p = vt(_) ? _ : $;
|
|
1095
|
+
}, g = i.map(
|
|
1096
|
+
(_, b) => or(
|
|
1097
|
+
_,
|
|
1098
|
+
(T) => {
|
|
1099
|
+
l[b] = T, h &= ~(1 << b), u && f();
|
|
1084
1100
|
},
|
|
1085
1101
|
() => {
|
|
1086
|
-
h |= 1 <<
|
|
1102
|
+
h |= 1 << b;
|
|
1087
1103
|
}
|
|
1088
1104
|
)
|
|
1089
1105
|
);
|
|
1090
1106
|
return u = !0, f(), function() {
|
|
1091
|
-
|
|
1107
|
+
ne(g), p(), u = !1;
|
|
1092
1108
|
};
|
|
1093
1109
|
});
|
|
1094
1110
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1111
|
+
function Pn(e) {
|
|
1112
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1097
1113
|
}
|
|
1098
|
-
var
|
|
1099
|
-
return
|
|
1114
|
+
var Cn = function(t) {
|
|
1115
|
+
return In(t) && !On(t);
|
|
1100
1116
|
};
|
|
1101
|
-
function
|
|
1117
|
+
function In(e) {
|
|
1102
1118
|
return !!e && typeof e == "object";
|
|
1103
1119
|
}
|
|
1104
|
-
function
|
|
1120
|
+
function On(e) {
|
|
1105
1121
|
var t = Object.prototype.toString.call(e);
|
|
1106
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1122
|
+
return t === "[object RegExp]" || t === "[object Date]" || Mn(e);
|
|
1107
1123
|
}
|
|
1108
|
-
var
|
|
1109
|
-
function
|
|
1110
|
-
return e.$$typeof ===
|
|
1124
|
+
var Ln = typeof Symbol == "function" && Symbol.for, Nn = Ln ? Symbol.for("react.element") : 60103;
|
|
1125
|
+
function Mn(e) {
|
|
1126
|
+
return e.$$typeof === Nn;
|
|
1111
1127
|
}
|
|
1112
|
-
function
|
|
1128
|
+
function Rn(e) {
|
|
1113
1129
|
return Array.isArray(e) ? [] : {};
|
|
1114
1130
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1131
|
+
function He(e, t) {
|
|
1132
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? de(Rn(e), e, t) : e;
|
|
1117
1133
|
}
|
|
1118
|
-
function
|
|
1134
|
+
function Un(e, t, r) {
|
|
1119
1135
|
return e.concat(t).map(function(n) {
|
|
1120
|
-
return
|
|
1136
|
+
return He(n, r);
|
|
1121
1137
|
});
|
|
1122
1138
|
}
|
|
1123
|
-
function
|
|
1139
|
+
function Dn(e, t) {
|
|
1124
1140
|
if (!t.customMerge)
|
|
1125
|
-
return
|
|
1141
|
+
return de;
|
|
1126
1142
|
var r = t.customMerge(e);
|
|
1127
|
-
return typeof r == "function" ? r :
|
|
1143
|
+
return typeof r == "function" ? r : de;
|
|
1128
1144
|
}
|
|
1129
|
-
function
|
|
1145
|
+
function $n(e) {
|
|
1130
1146
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1131
1147
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1132
1148
|
}) : [];
|
|
1133
1149
|
}
|
|
1134
|
-
function
|
|
1135
|
-
return Object.keys(e).concat(
|
|
1150
|
+
function $t(e) {
|
|
1151
|
+
return Object.keys(e).concat($n(e));
|
|
1136
1152
|
}
|
|
1137
|
-
function
|
|
1153
|
+
function dr(e, t) {
|
|
1138
1154
|
try {
|
|
1139
1155
|
return t in e;
|
|
1140
1156
|
} catch (r) {
|
|
1141
1157
|
return !1;
|
|
1142
1158
|
}
|
|
1143
1159
|
}
|
|
1144
|
-
function
|
|
1145
|
-
return
|
|
1160
|
+
function Gn(e, t) {
|
|
1161
|
+
return dr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1146
1162
|
}
|
|
1147
|
-
function
|
|
1163
|
+
function kn(e, t, r) {
|
|
1148
1164
|
var n = {};
|
|
1149
|
-
return r.isMergeableObject(e) &&
|
|
1150
|
-
n[i] =
|
|
1151
|
-
}),
|
|
1152
|
-
|
|
1165
|
+
return r.isMergeableObject(e) && $t(e).forEach(function(i) {
|
|
1166
|
+
n[i] = He(e[i], r);
|
|
1167
|
+
}), $t(t).forEach(function(i) {
|
|
1168
|
+
Gn(e, i) || (dr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dn(i, r)(e[i], t[i], r) : n[i] = He(t[i], r));
|
|
1153
1169
|
}), n;
|
|
1154
1170
|
}
|
|
1155
|
-
function
|
|
1156
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1171
|
+
function de(e, t, r) {
|
|
1172
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Un, r.isMergeableObject = r.isMergeableObject || Cn, r.cloneUnlessOtherwiseSpecified = He;
|
|
1157
1173
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1158
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1174
|
+
return o ? n ? r.arrayMerge(e, t, r) : kn(e, t, r) : He(t, r);
|
|
1159
1175
|
}
|
|
1160
|
-
|
|
1176
|
+
de.all = function(t, r) {
|
|
1161
1177
|
if (!Array.isArray(t))
|
|
1162
1178
|
throw new Error("first argument should be an array");
|
|
1163
1179
|
return t.reduce(function(n, i) {
|
|
1164
|
-
return
|
|
1180
|
+
return de(n, i, r);
|
|
1165
1181
|
}, {});
|
|
1166
1182
|
};
|
|
1167
|
-
var
|
|
1168
|
-
const
|
|
1169
|
-
function
|
|
1170
|
-
var r = t && t.cache ? t.cache :
|
|
1183
|
+
var jn = de, Vn = jn;
|
|
1184
|
+
const Xn = /* @__PURE__ */ Pn(Vn);
|
|
1185
|
+
function qe(e, t) {
|
|
1186
|
+
var r = t && t.cache ? t.cache : qn, n = t && t.serializer ? t.serializer : Qn, i = t && t.strategy ? t.strategy : zn;
|
|
1171
1187
|
return i(e, {
|
|
1172
1188
|
cache: r,
|
|
1173
1189
|
serializer: n
|
|
1174
1190
|
});
|
|
1175
1191
|
}
|
|
1176
|
-
function
|
|
1192
|
+
function Wn(e) {
|
|
1177
1193
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1178
1194
|
}
|
|
1179
|
-
function
|
|
1180
|
-
var i =
|
|
1195
|
+
function mr(e, t, r, n) {
|
|
1196
|
+
var i = Wn(n) ? n : r(n), o = t.get(i);
|
|
1181
1197
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1182
1198
|
}
|
|
1183
|
-
function
|
|
1199
|
+
function br(e, t, r) {
|
|
1184
1200
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1185
1201
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1186
1202
|
}
|
|
1187
|
-
function
|
|
1203
|
+
function yt(e, t, r, n, i) {
|
|
1188
1204
|
return r.bind(t, e, n, i);
|
|
1189
1205
|
}
|
|
1190
|
-
function
|
|
1191
|
-
var r = e.length === 1 ?
|
|
1192
|
-
return
|
|
1206
|
+
function zn(e, t) {
|
|
1207
|
+
var r = e.length === 1 ? mr : br;
|
|
1208
|
+
return yt(e, this, r, t.cache.create(), t.serializer);
|
|
1193
1209
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return
|
|
1210
|
+
function Zn(e, t) {
|
|
1211
|
+
return yt(e, this, br, t.cache.create(), t.serializer);
|
|
1196
1212
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return
|
|
1213
|
+
function Jn(e, t) {
|
|
1214
|
+
return yt(e, this, mr, t.cache.create(), t.serializer);
|
|
1199
1215
|
}
|
|
1200
|
-
var
|
|
1216
|
+
var Qn = function() {
|
|
1201
1217
|
return JSON.stringify(arguments);
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
}()
|
|
1214
|
-
), Zn = {
|
|
1218
|
+
};
|
|
1219
|
+
function _t() {
|
|
1220
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1221
|
+
}
|
|
1222
|
+
_t.prototype.get = function(e) {
|
|
1223
|
+
return this.cache[e];
|
|
1224
|
+
};
|
|
1225
|
+
_t.prototype.set = function(e, t) {
|
|
1226
|
+
this.cache[e] = t;
|
|
1227
|
+
};
|
|
1228
|
+
var qn = {
|
|
1215
1229
|
create: function() {
|
|
1216
|
-
return new
|
|
1230
|
+
return new _t();
|
|
1217
1231
|
}
|
|
1218
|
-
},
|
|
1219
|
-
variadic:
|
|
1220
|
-
monadic:
|
|
1221
|
-
},
|
|
1232
|
+
}, Ye = {
|
|
1233
|
+
variadic: Zn,
|
|
1234
|
+
monadic: Jn
|
|
1235
|
+
}, y;
|
|
1222
1236
|
(function(e) {
|
|
1223
1237
|
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";
|
|
1224
|
-
})(
|
|
1238
|
+
})(y || (y = {}));
|
|
1225
1239
|
var F;
|
|
1226
1240
|
(function(e) {
|
|
1227
1241
|
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";
|
|
@@ -1230,43 +1244,43 @@ var me;
|
|
|
1230
1244
|
(function(e) {
|
|
1231
1245
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1232
1246
|
})(me || (me = {}));
|
|
1233
|
-
function
|
|
1247
|
+
function Gt(e) {
|
|
1234
1248
|
return e.type === F.literal;
|
|
1235
1249
|
}
|
|
1236
|
-
function
|
|
1250
|
+
function Yn(e) {
|
|
1237
1251
|
return e.type === F.argument;
|
|
1238
1252
|
}
|
|
1239
|
-
function
|
|
1253
|
+
function gr(e) {
|
|
1240
1254
|
return e.type === F.number;
|
|
1241
1255
|
}
|
|
1242
|
-
function
|
|
1256
|
+
function vr(e) {
|
|
1243
1257
|
return e.type === F.date;
|
|
1244
1258
|
}
|
|
1245
|
-
function
|
|
1259
|
+
function yr(e) {
|
|
1246
1260
|
return e.type === F.time;
|
|
1247
1261
|
}
|
|
1248
|
-
function
|
|
1262
|
+
function _r(e) {
|
|
1249
1263
|
return e.type === F.select;
|
|
1250
1264
|
}
|
|
1251
|
-
function
|
|
1265
|
+
function xr(e) {
|
|
1252
1266
|
return e.type === F.plural;
|
|
1253
1267
|
}
|
|
1254
|
-
function
|
|
1268
|
+
function Kn(e) {
|
|
1255
1269
|
return e.type === F.pound;
|
|
1256
1270
|
}
|
|
1257
|
-
function
|
|
1271
|
+
function Er(e) {
|
|
1258
1272
|
return e.type === F.tag;
|
|
1259
1273
|
}
|
|
1260
|
-
function
|
|
1274
|
+
function wr(e) {
|
|
1261
1275
|
return !!(e && typeof e == "object" && e.type === me.number);
|
|
1262
1276
|
}
|
|
1263
|
-
function
|
|
1277
|
+
function ht(e) {
|
|
1264
1278
|
return !!(e && typeof e == "object" && e.type === me.dateTime);
|
|
1265
1279
|
}
|
|
1266
|
-
var
|
|
1267
|
-
function
|
|
1280
|
+
var Sr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ei = /(?:[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;
|
|
1281
|
+
function ti(e) {
|
|
1268
1282
|
var t = {};
|
|
1269
|
-
return e.replace(
|
|
1283
|
+
return e.replace(ei, function(r) {
|
|
1270
1284
|
var n = r.length;
|
|
1271
1285
|
switch (r[0]) {
|
|
1272
1286
|
case "G":
|
|
@@ -1355,36 +1369,36 @@ function Yn(e) {
|
|
|
1355
1369
|
return "";
|
|
1356
1370
|
}), t;
|
|
1357
1371
|
}
|
|
1358
|
-
var
|
|
1359
|
-
function
|
|
1372
|
+
var ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1373
|
+
function ni(e) {
|
|
1360
1374
|
if (e.length === 0)
|
|
1361
1375
|
throw new Error("Number skeleton cannot be empty");
|
|
1362
|
-
for (var t = e.split(
|
|
1376
|
+
for (var t = e.split(ri).filter(function(f) {
|
|
1363
1377
|
return f.length > 0;
|
|
1364
1378
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1365
1379
|
var o = i[n], s = o.split("/");
|
|
1366
1380
|
if (s.length === 0)
|
|
1367
1381
|
throw new Error("Invalid number skeleton");
|
|
1368
1382
|
for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
1369
|
-
var
|
|
1370
|
-
if (
|
|
1383
|
+
var p = h[l];
|
|
1384
|
+
if (p.length === 0)
|
|
1371
1385
|
throw new Error("Invalid number skeleton");
|
|
1372
1386
|
}
|
|
1373
1387
|
r.push({ stem: a, options: u });
|
|
1374
1388
|
}
|
|
1375
1389
|
return r;
|
|
1376
1390
|
}
|
|
1377
|
-
function
|
|
1391
|
+
function ii(e) {
|
|
1378
1392
|
return e.replace(/^(.*?)-/, "");
|
|
1379
1393
|
}
|
|
1380
|
-
var
|
|
1381
|
-
function
|
|
1394
|
+
var kt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tr = /^(@+)?(\+|#+)?[rs]?$/g, oi = /(\*)(0+)|(#+)(0+)|(0+)/g, Hr = /^(0+)$/;
|
|
1395
|
+
function jt(e) {
|
|
1382
1396
|
var t = {};
|
|
1383
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1397
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Tr, function(r, n, i) {
|
|
1384
1398
|
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)), "";
|
|
1385
1399
|
}), t;
|
|
1386
1400
|
}
|
|
1387
|
-
function
|
|
1401
|
+
function Ar(e) {
|
|
1388
1402
|
switch (e) {
|
|
1389
1403
|
case "sign-auto":
|
|
1390
1404
|
return {
|
|
@@ -1424,7 +1438,7 @@ function wr(e) {
|
|
|
1424
1438
|
};
|
|
1425
1439
|
}
|
|
1426
1440
|
}
|
|
1427
|
-
function
|
|
1441
|
+
function si(e) {
|
|
1428
1442
|
var t;
|
|
1429
1443
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1430
1444
|
notation: "engineering"
|
|
@@ -1432,17 +1446,17 @@ function ni(e) {
|
|
|
1432
1446
|
notation: "scientific"
|
|
1433
1447
|
}, e = e.slice(1)), t) {
|
|
1434
1448
|
var r = e.slice(0, 2);
|
|
1435
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1449
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Hr.test(e))
|
|
1436
1450
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1437
1451
|
t.minimumIntegerDigits = e.length;
|
|
1438
1452
|
}
|
|
1439
1453
|
return t;
|
|
1440
1454
|
}
|
|
1441
|
-
function
|
|
1442
|
-
var t = {}, r =
|
|
1455
|
+
function Vt(e) {
|
|
1456
|
+
var t = {}, r = Ar(e);
|
|
1443
1457
|
return r || t;
|
|
1444
1458
|
}
|
|
1445
|
-
function
|
|
1459
|
+
function ai(e) {
|
|
1446
1460
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1447
1461
|
var i = n[r];
|
|
1448
1462
|
switch (i.stem) {
|
|
@@ -1466,7 +1480,7 @@ function ii(e) {
|
|
|
1466
1480
|
continue;
|
|
1467
1481
|
case "measure-unit":
|
|
1468
1482
|
case "unit":
|
|
1469
|
-
t.style = "unit", t.unit =
|
|
1483
|
+
t.style = "unit", t.unit = ii(i.options[0]);
|
|
1470
1484
|
continue;
|
|
1471
1485
|
case "compact-short":
|
|
1472
1486
|
case "K":
|
|
@@ -1477,13 +1491,13 @@ function ii(e) {
|
|
|
1477
1491
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1478
1492
|
continue;
|
|
1479
1493
|
case "scientific":
|
|
1480
|
-
t =
|
|
1481
|
-
return
|
|
1494
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1495
|
+
return E(E({}, u), Vt(l));
|
|
1482
1496
|
}, {}));
|
|
1483
1497
|
continue;
|
|
1484
1498
|
case "engineering":
|
|
1485
|
-
t =
|
|
1486
|
-
return
|
|
1499
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1500
|
+
return E(E({}, u), Vt(l));
|
|
1487
1501
|
}, {}));
|
|
1488
1502
|
continue;
|
|
1489
1503
|
case "notation-simple":
|
|
@@ -1528,41 +1542,41 @@ function ii(e) {
|
|
|
1528
1542
|
case "integer-width":
|
|
1529
1543
|
if (i.options.length > 1)
|
|
1530
1544
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1531
|
-
i.options[0].replace(
|
|
1545
|
+
i.options[0].replace(oi, function(u, l, h, p, f, g) {
|
|
1532
1546
|
if (l)
|
|
1533
1547
|
t.minimumIntegerDigits = h.length;
|
|
1534
1548
|
else {
|
|
1535
|
-
if (
|
|
1549
|
+
if (p && f)
|
|
1536
1550
|
throw new Error("We currently do not support maximum integer digits");
|
|
1537
|
-
if (
|
|
1551
|
+
if (g)
|
|
1538
1552
|
throw new Error("We currently do not support exact integer digits");
|
|
1539
1553
|
}
|
|
1540
1554
|
return "";
|
|
1541
1555
|
});
|
|
1542
1556
|
continue;
|
|
1543
1557
|
}
|
|
1544
|
-
if (
|
|
1558
|
+
if (Hr.test(i.stem)) {
|
|
1545
1559
|
t.minimumIntegerDigits = i.stem.length;
|
|
1546
1560
|
continue;
|
|
1547
1561
|
}
|
|
1548
|
-
if (
|
|
1562
|
+
if (kt.test(i.stem)) {
|
|
1549
1563
|
if (i.options.length > 1)
|
|
1550
1564
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1551
|
-
i.stem.replace(
|
|
1552
|
-
return h === "*" ? t.minimumFractionDigits = l.length :
|
|
1565
|
+
i.stem.replace(kt, function(u, l, h, p, f, g) {
|
|
1566
|
+
return h === "*" ? 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), "";
|
|
1553
1567
|
});
|
|
1554
1568
|
var o = i.options[0];
|
|
1555
|
-
o === "w" ? t =
|
|
1569
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), jt(o)));
|
|
1556
1570
|
continue;
|
|
1557
1571
|
}
|
|
1558
|
-
if (
|
|
1559
|
-
t =
|
|
1572
|
+
if (Tr.test(i.stem)) {
|
|
1573
|
+
t = E(E({}, t), jt(i.stem));
|
|
1560
1574
|
continue;
|
|
1561
1575
|
}
|
|
1562
|
-
var s =
|
|
1563
|
-
s && (t =
|
|
1564
|
-
var a =
|
|
1565
|
-
a && (t =
|
|
1576
|
+
var s = Ar(i.stem);
|
|
1577
|
+
s && (t = E(E({}, t), s));
|
|
1578
|
+
var a = si(i.stem);
|
|
1579
|
+
a && (t = E(E({}, t), a));
|
|
1566
1580
|
}
|
|
1567
1581
|
return t;
|
|
1568
1582
|
}
|
|
@@ -2981,13 +2995,13 @@ var Oe = {
|
|
|
2981
2995
|
"h"
|
|
2982
2996
|
]
|
|
2983
2997
|
};
|
|
2984
|
-
function
|
|
2998
|
+
function li(e, t) {
|
|
2985
2999
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2986
3000
|
var i = e.charAt(n);
|
|
2987
3001
|
if (i === "j") {
|
|
2988
3002
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2989
3003
|
o++, n++;
|
|
2990
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
3004
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ui(t);
|
|
2991
3005
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2992
3006
|
r += u;
|
|
2993
3007
|
for (; s-- > 0; )
|
|
@@ -2997,7 +3011,7 @@ function oi(e, t) {
|
|
|
2997
3011
|
}
|
|
2998
3012
|
return r;
|
|
2999
3013
|
}
|
|
3000
|
-
function
|
|
3014
|
+
function ui(e) {
|
|
3001
3015
|
var t = e.hourCycle;
|
|
3002
3016
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3003
3017
|
e.hourCycles && // @ts-ignore
|
|
@@ -3019,20 +3033,20 @@ function si(e) {
|
|
|
3019
3033
|
var i = Oe[n || ""] || Oe[r || ""] || Oe["".concat(r, "-001")] || Oe["001"];
|
|
3020
3034
|
return i[0];
|
|
3021
3035
|
}
|
|
3022
|
-
var
|
|
3023
|
-
function
|
|
3036
|
+
var Ke, hi = new RegExp("^".concat(Sr.source, "*")), ci = new RegExp("".concat(Sr.source, "*$"));
|
|
3037
|
+
function x(e, t) {
|
|
3024
3038
|
return { start: e, end: t };
|
|
3025
3039
|
}
|
|
3026
|
-
var
|
|
3040
|
+
var fi = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, di = !!Object.fromEntries, mi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, gi = !!String.prototype.trimEnd, vi = !!Number.isSafeInteger, yi = vi ? Number.isSafeInteger : function(e) {
|
|
3027
3041
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3028
|
-
},
|
|
3042
|
+
}, ct = !0;
|
|
3029
3043
|
try {
|
|
3030
|
-
var
|
|
3031
|
-
|
|
3044
|
+
var _i = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3045
|
+
ct = ((Ke = _i.exec("a")) === null || Ke === void 0 ? void 0 : Ke[0]) === "a";
|
|
3032
3046
|
} catch (e) {
|
|
3033
|
-
|
|
3047
|
+
ct = !1;
|
|
3034
3048
|
}
|
|
3035
|
-
var
|
|
3049
|
+
var Xt = fi ? (
|
|
3036
3050
|
// Native
|
|
3037
3051
|
function(t, r, n) {
|
|
3038
3052
|
return t.startsWith(r, n);
|
|
@@ -3042,7 +3056,7 @@ var kt = ui ? (
|
|
|
3042
3056
|
function(t, r, n) {
|
|
3043
3057
|
return t.slice(n, n + r.length) === r;
|
|
3044
3058
|
}
|
|
3045
|
-
),
|
|
3059
|
+
), ft = pi ? String.fromCodePoint : (
|
|
3046
3060
|
// IE11
|
|
3047
3061
|
function() {
|
|
3048
3062
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3054,9 +3068,9 @@ var kt = ui ? (
|
|
|
3054
3068
|
}
|
|
3055
3069
|
return n;
|
|
3056
3070
|
}
|
|
3057
|
-
),
|
|
3071
|
+
), Wt = (
|
|
3058
3072
|
// native
|
|
3059
|
-
|
|
3073
|
+
di ? Object.fromEntries : (
|
|
3060
3074
|
// Ponyfill
|
|
3061
3075
|
function(t) {
|
|
3062
3076
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3066,7 +3080,7 @@ var kt = ui ? (
|
|
|
3066
3080
|
return r;
|
|
3067
3081
|
}
|
|
3068
3082
|
)
|
|
3069
|
-
),
|
|
3083
|
+
), Br = mi ? (
|
|
3070
3084
|
// Native
|
|
3071
3085
|
function(t, r) {
|
|
3072
3086
|
return t.codePointAt(r);
|
|
@@ -3080,7 +3094,7 @@ var kt = ui ? (
|
|
|
3080
3094
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3081
3095
|
}
|
|
3082
3096
|
}
|
|
3083
|
-
),
|
|
3097
|
+
), xi = bi ? (
|
|
3084
3098
|
// Native
|
|
3085
3099
|
function(t) {
|
|
3086
3100
|
return t.trimStart();
|
|
@@ -3088,9 +3102,9 @@ var kt = ui ? (
|
|
|
3088
3102
|
) : (
|
|
3089
3103
|
// Ponyfill
|
|
3090
3104
|
function(t) {
|
|
3091
|
-
return t.replace(
|
|
3105
|
+
return t.replace(hi, "");
|
|
3092
3106
|
}
|
|
3093
|
-
),
|
|
3107
|
+
), Ei = gi ? (
|
|
3094
3108
|
// Native
|
|
3095
3109
|
function(t) {
|
|
3096
3110
|
return t.trimEnd();
|
|
@@ -3098,32 +3112,32 @@ var kt = ui ? (
|
|
|
3098
3112
|
) : (
|
|
3099
3113
|
// Ponyfill
|
|
3100
3114
|
function(t) {
|
|
3101
|
-
return t.replace(
|
|
3115
|
+
return t.replace(ci, "");
|
|
3102
3116
|
}
|
|
3103
3117
|
);
|
|
3104
|
-
function
|
|
3118
|
+
function Fr(e, t) {
|
|
3105
3119
|
return new RegExp(e, t);
|
|
3106
3120
|
}
|
|
3107
|
-
var
|
|
3108
|
-
if (
|
|
3109
|
-
var
|
|
3110
|
-
|
|
3121
|
+
var pt;
|
|
3122
|
+
if (ct) {
|
|
3123
|
+
var zt = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3124
|
+
pt = function(t, r) {
|
|
3111
3125
|
var n;
|
|
3112
|
-
|
|
3113
|
-
var i =
|
|
3126
|
+
zt.lastIndex = r;
|
|
3127
|
+
var i = zt.exec(t);
|
|
3114
3128
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3115
3129
|
};
|
|
3116
3130
|
} else
|
|
3117
|
-
|
|
3131
|
+
pt = function(t, r) {
|
|
3118
3132
|
for (var n = []; ; ) {
|
|
3119
|
-
var i =
|
|
3120
|
-
if (i === void 0 ||
|
|
3133
|
+
var i = Br(t, r);
|
|
3134
|
+
if (i === void 0 || Pr(i) || Hi(i))
|
|
3121
3135
|
break;
|
|
3122
3136
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3123
3137
|
}
|
|
3124
|
-
return
|
|
3138
|
+
return ft.apply(void 0, n);
|
|
3125
3139
|
};
|
|
3126
|
-
var
|
|
3140
|
+
var wi = (
|
|
3127
3141
|
/** @class */
|
|
3128
3142
|
function() {
|
|
3129
3143
|
function e(t, r) {
|
|
@@ -3148,13 +3162,13 @@ var _i = (
|
|
|
3148
3162
|
var a = this.clonePosition();
|
|
3149
3163
|
this.bump(), i.push({
|
|
3150
3164
|
type: F.pound,
|
|
3151
|
-
location:
|
|
3165
|
+
location: x(a, this.clonePosition())
|
|
3152
3166
|
});
|
|
3153
3167
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3154
3168
|
if (n)
|
|
3155
3169
|
break;
|
|
3156
|
-
return this.error(
|
|
3157
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3170
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
|
|
3171
|
+
} else if (o === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
|
|
3158
3172
|
var s = this.parseTag(t, r);
|
|
3159
3173
|
if (s.err)
|
|
3160
3174
|
return s;
|
|
@@ -3177,7 +3191,7 @@ var _i = (
|
|
|
3177
3191
|
val: {
|
|
3178
3192
|
type: F.literal,
|
|
3179
3193
|
value: "<".concat(i, "/>"),
|
|
3180
|
-
location:
|
|
3194
|
+
location: x(n, this.clonePosition())
|
|
3181
3195
|
},
|
|
3182
3196
|
err: null
|
|
3183
3197
|
};
|
|
@@ -3187,25 +3201,25 @@ var _i = (
|
|
|
3187
3201
|
return o;
|
|
3188
3202
|
var s = o.val, a = this.clonePosition();
|
|
3189
3203
|
if (this.bumpIf("</")) {
|
|
3190
|
-
if (this.isEOF() || !
|
|
3191
|
-
return this.error(
|
|
3204
|
+
if (this.isEOF() || !dt(this.char()))
|
|
3205
|
+
return this.error(y.INVALID_TAG, x(a, this.clonePosition()));
|
|
3192
3206
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3193
|
-
return i !== l ? this.error(
|
|
3207
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, x(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3194
3208
|
val: {
|
|
3195
3209
|
type: F.tag,
|
|
3196
3210
|
value: i,
|
|
3197
3211
|
children: s,
|
|
3198
|
-
location:
|
|
3212
|
+
location: x(n, this.clonePosition())
|
|
3199
3213
|
},
|
|
3200
3214
|
err: null
|
|
3201
|
-
} : this.error(
|
|
3215
|
+
} : this.error(y.INVALID_TAG, x(a, this.clonePosition())));
|
|
3202
3216
|
} else
|
|
3203
|
-
return this.error(
|
|
3217
|
+
return this.error(y.UNCLOSED_TAG, x(n, this.clonePosition()));
|
|
3204
3218
|
} else
|
|
3205
|
-
return this.error(
|
|
3219
|
+
return this.error(y.INVALID_TAG, x(n, this.clonePosition()));
|
|
3206
3220
|
}, e.prototype.parseTagName = function() {
|
|
3207
3221
|
var t = this.offset();
|
|
3208
|
-
for (this.bump(); !this.isEOF() &&
|
|
3222
|
+
for (this.bump(); !this.isEOF() && Ti(this.char()); )
|
|
3209
3223
|
this.bump();
|
|
3210
3224
|
return this.message.slice(t, this.offset());
|
|
3211
3225
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3227,14 +3241,14 @@ var _i = (
|
|
|
3227
3241
|
}
|
|
3228
3242
|
break;
|
|
3229
3243
|
}
|
|
3230
|
-
var u =
|
|
3244
|
+
var u = x(n, this.clonePosition());
|
|
3231
3245
|
return {
|
|
3232
3246
|
val: { type: F.literal, value: i, location: u },
|
|
3233
3247
|
err: null
|
|
3234
3248
|
};
|
|
3235
3249
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3236
3250
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3237
|
-
!
|
|
3251
|
+
!Si(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3238
3252
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3239
3253
|
if (this.isEOF() || this.char() !== 39)
|
|
3240
3254
|
return null;
|
|
@@ -3268,23 +3282,23 @@ var _i = (
|
|
|
3268
3282
|
r.push(n);
|
|
3269
3283
|
this.bump();
|
|
3270
3284
|
}
|
|
3271
|
-
return
|
|
3285
|
+
return ft.apply(void 0, r);
|
|
3272
3286
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3273
3287
|
if (this.isEOF())
|
|
3274
3288
|
return null;
|
|
3275
3289
|
var n = this.char();
|
|
3276
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3290
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ft(n));
|
|
3277
3291
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3278
3292
|
var n = this.clonePosition();
|
|
3279
3293
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3280
|
-
return this.error(
|
|
3294
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
|
|
3281
3295
|
if (this.char() === 125)
|
|
3282
|
-
return this.bump(), this.error(
|
|
3296
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, x(n, this.clonePosition()));
|
|
3283
3297
|
var i = this.parseIdentifierIfPossible().value;
|
|
3284
3298
|
if (!i)
|
|
3285
|
-
return this.error(
|
|
3299
|
+
return this.error(y.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
3286
3300
|
if (this.bumpSpace(), this.isEOF())
|
|
3287
|
-
return this.error(
|
|
3301
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
|
|
3288
3302
|
switch (this.char()) {
|
|
3289
3303
|
case 125:
|
|
3290
3304
|
return this.bump(), {
|
|
@@ -3292,25 +3306,25 @@ var _i = (
|
|
|
3292
3306
|
type: F.argument,
|
|
3293
3307
|
// value does not include the opening and closing braces.
|
|
3294
3308
|
value: i,
|
|
3295
|
-
location:
|
|
3309
|
+
location: x(n, this.clonePosition())
|
|
3296
3310
|
},
|
|
3297
3311
|
err: null
|
|
3298
3312
|
};
|
|
3299
3313
|
case 44:
|
|
3300
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3314
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3301
3315
|
default:
|
|
3302
|
-
return this.error(
|
|
3316
|
+
return this.error(y.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
|
|
3303
3317
|
}
|
|
3304
3318
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3305
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3319
|
+
var t = this.clonePosition(), r = this.offset(), n = pt(this.message, r), i = r + n.length;
|
|
3306
3320
|
this.bumpTo(i);
|
|
3307
|
-
var o = this.clonePosition(), s =
|
|
3321
|
+
var o = this.clonePosition(), s = x(t, o);
|
|
3308
3322
|
return { value: n, location: s };
|
|
3309
3323
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3310
3324
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3311
3325
|
switch (a) {
|
|
3312
3326
|
case "":
|
|
3313
|
-
return this.error(
|
|
3327
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, x(s, u));
|
|
3314
3328
|
case "number":
|
|
3315
3329
|
case "date":
|
|
3316
3330
|
case "time": {
|
|
@@ -3318,40 +3332,40 @@ var _i = (
|
|
|
3318
3332
|
var l = null;
|
|
3319
3333
|
if (this.bumpIf(",")) {
|
|
3320
3334
|
this.bumpSpace();
|
|
3321
|
-
var h = this.clonePosition(),
|
|
3322
|
-
if (
|
|
3323
|
-
return
|
|
3324
|
-
var f =
|
|
3335
|
+
var h = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
|
3336
|
+
if (p.err)
|
|
3337
|
+
return p;
|
|
3338
|
+
var f = Ei(p.val);
|
|
3325
3339
|
if (f.length === 0)
|
|
3326
|
-
return this.error(
|
|
3327
|
-
var
|
|
3328
|
-
l = { style: f, styleLocation:
|
|
3340
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
|
|
3341
|
+
var g = x(h, this.clonePosition());
|
|
3342
|
+
l = { style: f, styleLocation: g };
|
|
3329
3343
|
}
|
|
3330
|
-
var
|
|
3331
|
-
if (
|
|
3332
|
-
return
|
|
3333
|
-
var
|
|
3334
|
-
if (l &&
|
|
3335
|
-
var
|
|
3344
|
+
var _ = this.tryParseArgumentClose(i);
|
|
3345
|
+
if (_.err)
|
|
3346
|
+
return _;
|
|
3347
|
+
var b = x(i, this.clonePosition());
|
|
3348
|
+
if (l && Xt(l == null ? void 0 : l.style, "::", 0)) {
|
|
3349
|
+
var T = xi(l.style.slice(2));
|
|
3336
3350
|
if (a === "number") {
|
|
3337
|
-
var
|
|
3338
|
-
return
|
|
3339
|
-
val: { type: F.number, value: n, location:
|
|
3351
|
+
var p = this.parseNumberSkeletonFromString(T, l.styleLocation);
|
|
3352
|
+
return p.err ? p : {
|
|
3353
|
+
val: { type: F.number, value: n, location: b, style: p.val },
|
|
3340
3354
|
err: null
|
|
3341
3355
|
};
|
|
3342
3356
|
} else {
|
|
3343
|
-
if (
|
|
3344
|
-
return this.error(
|
|
3345
|
-
var
|
|
3346
|
-
this.locale && (
|
|
3357
|
+
if (T.length === 0)
|
|
3358
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
|
|
3359
|
+
var H = T;
|
|
3360
|
+
this.locale && (H = li(T, this.locale));
|
|
3347
3361
|
var f = {
|
|
3348
3362
|
type: me.dateTime,
|
|
3349
|
-
pattern:
|
|
3363
|
+
pattern: H,
|
|
3350
3364
|
location: l.styleLocation,
|
|
3351
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3352
|
-
},
|
|
3365
|
+
parsedOptions: this.shouldParseSkeletons ? ti(H) : {}
|
|
3366
|
+
}, S = a === "date" ? F.date : F.time;
|
|
3353
3367
|
return {
|
|
3354
|
-
val: { type:
|
|
3368
|
+
val: { type: S, value: n, location: b, style: f },
|
|
3355
3369
|
err: null
|
|
3356
3370
|
};
|
|
3357
3371
|
}
|
|
@@ -3360,7 +3374,7 @@ var _i = (
|
|
|
3360
3374
|
val: {
|
|
3361
3375
|
type: a === "number" ? F.number : a === "date" ? F.date : F.time,
|
|
3362
3376
|
value: n,
|
|
3363
|
-
location:
|
|
3377
|
+
location: b,
|
|
3364
3378
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
3365
3379
|
},
|
|
3366
3380
|
err: null
|
|
@@ -3369,32 +3383,32 @@ var _i = (
|
|
|
3369
3383
|
case "plural":
|
|
3370
3384
|
case "selectordinal":
|
|
3371
3385
|
case "select": {
|
|
3372
|
-
var
|
|
3386
|
+
var m = this.clonePosition();
|
|
3373
3387
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3374
|
-
return this.error(
|
|
3388
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, x(m, E({}, m)));
|
|
3375
3389
|
this.bumpSpace();
|
|
3376
|
-
var C = this.parseIdentifierIfPossible(),
|
|
3390
|
+
var C = this.parseIdentifierIfPossible(), L = 0;
|
|
3377
3391
|
if (a !== "select" && C.value === "offset") {
|
|
3378
3392
|
if (!this.bumpIf(":"))
|
|
3379
|
-
return this.error(
|
|
3393
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x(this.clonePosition(), this.clonePosition()));
|
|
3380
3394
|
this.bumpSpace();
|
|
3381
|
-
var
|
|
3382
|
-
if (
|
|
3383
|
-
return
|
|
3384
|
-
this.bumpSpace(), C = this.parseIdentifierIfPossible(),
|
|
3395
|
+
var p = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3396
|
+
if (p.err)
|
|
3397
|
+
return p;
|
|
3398
|
+
this.bumpSpace(), C = this.parseIdentifierIfPossible(), L = p.val;
|
|
3385
3399
|
}
|
|
3386
|
-
var
|
|
3387
|
-
if (
|
|
3388
|
-
return
|
|
3389
|
-
var
|
|
3390
|
-
if (
|
|
3391
|
-
return
|
|
3392
|
-
var V =
|
|
3400
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, C);
|
|
3401
|
+
if (R.err)
|
|
3402
|
+
return R;
|
|
3403
|
+
var _ = this.tryParseArgumentClose(i);
|
|
3404
|
+
if (_.err)
|
|
3405
|
+
return _;
|
|
3406
|
+
var V = x(i, this.clonePosition());
|
|
3393
3407
|
return a === "select" ? {
|
|
3394
3408
|
val: {
|
|
3395
3409
|
type: F.select,
|
|
3396
3410
|
value: n,
|
|
3397
|
-
options:
|
|
3411
|
+
options: Wt(R.val),
|
|
3398
3412
|
location: V
|
|
3399
3413
|
},
|
|
3400
3414
|
err: null
|
|
@@ -3402,8 +3416,8 @@ var _i = (
|
|
|
3402
3416
|
val: {
|
|
3403
3417
|
type: F.plural,
|
|
3404
3418
|
value: n,
|
|
3405
|
-
options:
|
|
3406
|
-
offset:
|
|
3419
|
+
options: Wt(R.val),
|
|
3420
|
+
offset: L,
|
|
3407
3421
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3408
3422
|
location: V
|
|
3409
3423
|
},
|
|
@@ -3411,10 +3425,10 @@ var _i = (
|
|
|
3411
3425
|
};
|
|
3412
3426
|
}
|
|
3413
3427
|
default:
|
|
3414
|
-
return this.error(
|
|
3428
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, x(s, u));
|
|
3415
3429
|
}
|
|
3416
3430
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3417
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3431
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, x(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3418
3432
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3419
3433
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3420
3434
|
var n = this.char();
|
|
@@ -3423,7 +3437,7 @@ var _i = (
|
|
|
3423
3437
|
this.bump();
|
|
3424
3438
|
var i = this.clonePosition();
|
|
3425
3439
|
if (!this.bumpUntil("'"))
|
|
3426
|
-
return this.error(
|
|
3440
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, x(i, this.clonePosition()));
|
|
3427
3441
|
this.bump();
|
|
3428
3442
|
break;
|
|
3429
3443
|
}
|
|
@@ -3453,52 +3467,52 @@ var _i = (
|
|
|
3453
3467
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3454
3468
|
var n = [];
|
|
3455
3469
|
try {
|
|
3456
|
-
n =
|
|
3470
|
+
n = ni(t);
|
|
3457
3471
|
} catch (i) {
|
|
3458
|
-
return this.error(
|
|
3472
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3459
3473
|
}
|
|
3460
3474
|
return {
|
|
3461
3475
|
val: {
|
|
3462
3476
|
type: me.number,
|
|
3463
3477
|
tokens: n,
|
|
3464
3478
|
location: r,
|
|
3465
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3479
|
+
parsedOptions: this.shouldParseSkeletons ? ai(n) : {}
|
|
3466
3480
|
},
|
|
3467
3481
|
err: null
|
|
3468
3482
|
};
|
|
3469
3483
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3470
3484
|
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3471
3485
|
if (l.length === 0) {
|
|
3472
|
-
var
|
|
3486
|
+
var p = this.clonePosition();
|
|
3473
3487
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3474
|
-
var f = this.tryParseDecimalInteger(
|
|
3488
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3475
3489
|
if (f.err)
|
|
3476
3490
|
return f;
|
|
3477
|
-
h =
|
|
3491
|
+
h = x(p, this.clonePosition()), l = this.message.slice(p.offset, this.offset());
|
|
3478
3492
|
} else
|
|
3479
3493
|
break;
|
|
3480
3494
|
}
|
|
3481
3495
|
if (u.has(l))
|
|
3482
|
-
return this.error(r === "select" ?
|
|
3496
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3483
3497
|
l === "other" && (s = !0), this.bumpSpace();
|
|
3484
|
-
var
|
|
3498
|
+
var g = this.clonePosition();
|
|
3485
3499
|
if (!this.bumpIf("{"))
|
|
3486
|
-
return this.error(r === "select" ?
|
|
3487
|
-
var
|
|
3488
|
-
if (
|
|
3489
|
-
return
|
|
3490
|
-
var
|
|
3491
|
-
if (
|
|
3492
|
-
return
|
|
3500
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, x(this.clonePosition(), this.clonePosition()));
|
|
3501
|
+
var _ = this.parseMessage(t + 1, r, n);
|
|
3502
|
+
if (_.err)
|
|
3503
|
+
return _;
|
|
3504
|
+
var b = this.tryParseArgumentClose(g);
|
|
3505
|
+
if (b.err)
|
|
3506
|
+
return b;
|
|
3493
3507
|
a.push([
|
|
3494
3508
|
l,
|
|
3495
3509
|
{
|
|
3496
|
-
value:
|
|
3497
|
-
location:
|
|
3510
|
+
value: _.val,
|
|
3511
|
+
location: x(g, this.clonePosition())
|
|
3498
3512
|
}
|
|
3499
3513
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3500
3514
|
}
|
|
3501
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3515
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, x(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, x(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3502
3516
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3503
3517
|
var n = 1, i = this.clonePosition();
|
|
3504
3518
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3509,8 +3523,8 @@ var _i = (
|
|
|
3509
3523
|
else
|
|
3510
3524
|
break;
|
|
3511
3525
|
}
|
|
3512
|
-
var u =
|
|
3513
|
-
return o ? (s *= n,
|
|
3526
|
+
var u = x(i, this.clonePosition());
|
|
3527
|
+
return o ? (s *= n, yi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3514
3528
|
}, e.prototype.offset = function() {
|
|
3515
3529
|
return this.position.offset;
|
|
3516
3530
|
}, e.prototype.isEOF = function() {
|
|
@@ -3525,7 +3539,7 @@ var _i = (
|
|
|
3525
3539
|
var t = this.position.offset;
|
|
3526
3540
|
if (t >= this.message.length)
|
|
3527
3541
|
throw Error("out of bound");
|
|
3528
|
-
var r =
|
|
3542
|
+
var r = Br(this.message, t);
|
|
3529
3543
|
if (r === void 0)
|
|
3530
3544
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3531
3545
|
return r;
|
|
@@ -3544,7 +3558,7 @@ var _i = (
|
|
|
3544
3558
|
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);
|
|
3545
3559
|
}
|
|
3546
3560
|
}, e.prototype.bumpIf = function(t) {
|
|
3547
|
-
if (
|
|
3561
|
+
if (Xt(this.message, t, this.offset())) {
|
|
3548
3562
|
for (var r = 0; r < t.length; r++)
|
|
3549
3563
|
this.bump();
|
|
3550
3564
|
return !0;
|
|
@@ -3566,7 +3580,7 @@ var _i = (
|
|
|
3566
3580
|
break;
|
|
3567
3581
|
}
|
|
3568
3582
|
}, e.prototype.bumpSpace = function() {
|
|
3569
|
-
for (; !this.isEOF() &&
|
|
3583
|
+
for (; !this.isEOF() && Pr(this.char()); )
|
|
3570
3584
|
this.bump();
|
|
3571
3585
|
}, e.prototype.peek = function() {
|
|
3572
3586
|
if (this.isEOF())
|
|
@@ -3576,38 +3590,38 @@ var _i = (
|
|
|
3576
3590
|
}, e;
|
|
3577
3591
|
}()
|
|
3578
3592
|
);
|
|
3579
|
-
function
|
|
3593
|
+
function dt(e) {
|
|
3580
3594
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3581
3595
|
}
|
|
3582
|
-
function
|
|
3583
|
-
return
|
|
3596
|
+
function Si(e) {
|
|
3597
|
+
return dt(e) || e === 47;
|
|
3584
3598
|
}
|
|
3585
|
-
function
|
|
3599
|
+
function Ti(e) {
|
|
3586
3600
|
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;
|
|
3587
3601
|
}
|
|
3588
|
-
function
|
|
3602
|
+
function Pr(e) {
|
|
3589
3603
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3590
3604
|
}
|
|
3591
|
-
function
|
|
3605
|
+
function Hi(e) {
|
|
3592
3606
|
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;
|
|
3593
3607
|
}
|
|
3594
|
-
function
|
|
3608
|
+
function mt(e) {
|
|
3595
3609
|
e.forEach(function(t) {
|
|
3596
|
-
if (delete t.location,
|
|
3610
|
+
if (delete t.location, _r(t) || xr(t))
|
|
3597
3611
|
for (var r in t.options)
|
|
3598
|
-
delete t.options[r].location,
|
|
3612
|
+
delete t.options[r].location, mt(t.options[r].value);
|
|
3599
3613
|
else
|
|
3600
|
-
|
|
3614
|
+
gr(t) && wr(t.style) || (vr(t) || yr(t)) && ht(t.style) ? delete t.style.location : Er(t) && mt(t.children);
|
|
3601
3615
|
});
|
|
3602
3616
|
}
|
|
3603
|
-
function
|
|
3604
|
-
t === void 0 && (t = {}), t =
|
|
3605
|
-
var r = new
|
|
3617
|
+
function Ai(e, t) {
|
|
3618
|
+
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3619
|
+
var r = new wi(e, t).parse();
|
|
3606
3620
|
if (r.err) {
|
|
3607
|
-
var n = SyntaxError(
|
|
3621
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3608
3622
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3609
3623
|
}
|
|
3610
|
-
return t != null && t.captureLocation ||
|
|
3624
|
+
return t != null && t.captureLocation || mt(r.val), r.val;
|
|
3611
3625
|
}
|
|
3612
3626
|
var be;
|
|
3613
3627
|
(function(e) {
|
|
@@ -3616,7 +3630,7 @@ var be;
|
|
|
3616
3630
|
var je = (
|
|
3617
3631
|
/** @class */
|
|
3618
3632
|
function(e) {
|
|
3619
|
-
|
|
3633
|
+
Z(t, e);
|
|
3620
3634
|
function t(r, n, i) {
|
|
3621
3635
|
var o = e.call(this, r) || this;
|
|
3622
3636
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3625,155 +3639,155 @@ var je = (
|
|
|
3625
3639
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3626
3640
|
}, t;
|
|
3627
3641
|
}(Error)
|
|
3628
|
-
),
|
|
3642
|
+
), Zt = (
|
|
3629
3643
|
/** @class */
|
|
3630
3644
|
function(e) {
|
|
3631
|
-
|
|
3645
|
+
Z(t, e);
|
|
3632
3646
|
function t(r, n, i, o) {
|
|
3633
3647
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), be.INVALID_VALUE, o) || this;
|
|
3634
3648
|
}
|
|
3635
3649
|
return t;
|
|
3636
3650
|
}(je)
|
|
3637
|
-
),
|
|
3651
|
+
), Bi = (
|
|
3638
3652
|
/** @class */
|
|
3639
3653
|
function(e) {
|
|
3640
|
-
|
|
3654
|
+
Z(t, e);
|
|
3641
3655
|
function t(r, n, i) {
|
|
3642
3656
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), be.INVALID_VALUE, i) || this;
|
|
3643
3657
|
}
|
|
3644
3658
|
return t;
|
|
3645
3659
|
}(je)
|
|
3646
|
-
),
|
|
3660
|
+
), Fi = (
|
|
3647
3661
|
/** @class */
|
|
3648
3662
|
function(e) {
|
|
3649
|
-
|
|
3663
|
+
Z(t, e);
|
|
3650
3664
|
function t(r, n) {
|
|
3651
3665
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), be.MISSING_VALUE, n) || this;
|
|
3652
3666
|
}
|
|
3653
3667
|
return t;
|
|
3654
3668
|
}(je)
|
|
3655
|
-
),
|
|
3669
|
+
), N;
|
|
3656
3670
|
(function(e) {
|
|
3657
3671
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3658
|
-
})(
|
|
3659
|
-
function
|
|
3672
|
+
})(N || (N = {}));
|
|
3673
|
+
function Pi(e) {
|
|
3660
3674
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3661
3675
|
var n = t[t.length - 1];
|
|
3662
|
-
return !n || n.type !==
|
|
3676
|
+
return !n || n.type !== N.literal || r.type !== N.literal ? t.push(r) : n.value += r.value, t;
|
|
3663
3677
|
}, []);
|
|
3664
3678
|
}
|
|
3665
|
-
function
|
|
3679
|
+
function Ci(e) {
|
|
3666
3680
|
return typeof e == "function";
|
|
3667
3681
|
}
|
|
3668
3682
|
function Me(e, t, r, n, i, o, s) {
|
|
3669
|
-
if (e.length === 1 &&
|
|
3683
|
+
if (e.length === 1 && Gt(e[0]))
|
|
3670
3684
|
return [
|
|
3671
3685
|
{
|
|
3672
|
-
type:
|
|
3686
|
+
type: N.literal,
|
|
3673
3687
|
value: e[0].value
|
|
3674
3688
|
}
|
|
3675
3689
|
];
|
|
3676
3690
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3677
3691
|
var h = l[u];
|
|
3678
|
-
if (
|
|
3692
|
+
if (Gt(h)) {
|
|
3679
3693
|
a.push({
|
|
3680
|
-
type:
|
|
3694
|
+
type: N.literal,
|
|
3681
3695
|
value: h.value
|
|
3682
3696
|
});
|
|
3683
3697
|
continue;
|
|
3684
3698
|
}
|
|
3685
|
-
if (
|
|
3699
|
+
if (Kn(h)) {
|
|
3686
3700
|
typeof o == "number" && a.push({
|
|
3687
|
-
type:
|
|
3701
|
+
type: N.literal,
|
|
3688
3702
|
value: r.getNumberFormat(t).format(o)
|
|
3689
3703
|
});
|
|
3690
3704
|
continue;
|
|
3691
3705
|
}
|
|
3692
|
-
var
|
|
3693
|
-
if (!(i &&
|
|
3694
|
-
throw new
|
|
3695
|
-
var f = i[
|
|
3696
|
-
if (
|
|
3706
|
+
var p = h.value;
|
|
3707
|
+
if (!(i && p in i))
|
|
3708
|
+
throw new Fi(p, s);
|
|
3709
|
+
var f = i[p];
|
|
3710
|
+
if (Yn(h)) {
|
|
3697
3711
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3698
|
-
type: typeof f == "string" ?
|
|
3712
|
+
type: typeof f == "string" ? N.literal : N.object,
|
|
3699
3713
|
value: f
|
|
3700
3714
|
});
|
|
3701
3715
|
continue;
|
|
3702
3716
|
}
|
|
3703
|
-
if (
|
|
3704
|
-
var
|
|
3717
|
+
if (vr(h)) {
|
|
3718
|
+
var g = typeof h.style == "string" ? n.date[h.style] : ht(h.style) ? h.style.parsedOptions : void 0;
|
|
3705
3719
|
a.push({
|
|
3706
|
-
type:
|
|
3707
|
-
value: r.getDateTimeFormat(t,
|
|
3720
|
+
type: N.literal,
|
|
3721
|
+
value: r.getDateTimeFormat(t, g).format(f)
|
|
3708
3722
|
});
|
|
3709
3723
|
continue;
|
|
3710
3724
|
}
|
|
3711
|
-
if (
|
|
3712
|
-
var
|
|
3725
|
+
if (yr(h)) {
|
|
3726
|
+
var g = typeof h.style == "string" ? n.time[h.style] : ht(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3713
3727
|
a.push({
|
|
3714
|
-
type:
|
|
3715
|
-
value: r.getDateTimeFormat(t,
|
|
3728
|
+
type: N.literal,
|
|
3729
|
+
value: r.getDateTimeFormat(t, g).format(f)
|
|
3716
3730
|
});
|
|
3717
3731
|
continue;
|
|
3718
3732
|
}
|
|
3719
|
-
if (
|
|
3720
|
-
var
|
|
3721
|
-
|
|
3722
|
-
type:
|
|
3723
|
-
value: r.getNumberFormat(t,
|
|
3733
|
+
if (gr(h)) {
|
|
3734
|
+
var g = typeof h.style == "string" ? n.number[h.style] : wr(h.style) ? h.style.parsedOptions : void 0;
|
|
3735
|
+
g && g.scale && (f = f * (g.scale || 1)), a.push({
|
|
3736
|
+
type: N.literal,
|
|
3737
|
+
value: r.getNumberFormat(t, g).format(f)
|
|
3724
3738
|
});
|
|
3725
3739
|
continue;
|
|
3726
3740
|
}
|
|
3727
|
-
if (
|
|
3728
|
-
var
|
|
3729
|
-
if (!
|
|
3730
|
-
throw new
|
|
3731
|
-
var
|
|
3732
|
-
return
|
|
3741
|
+
if (Er(h)) {
|
|
3742
|
+
var _ = h.children, b = h.value, T = i[b];
|
|
3743
|
+
if (!Ci(T))
|
|
3744
|
+
throw new Bi(b, "function", s);
|
|
3745
|
+
var H = Me(_, t, r, n, i, o), S = T(H.map(function(L) {
|
|
3746
|
+
return L.value;
|
|
3733
3747
|
}));
|
|
3734
|
-
Array.isArray(
|
|
3748
|
+
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(L) {
|
|
3735
3749
|
return {
|
|
3736
|
-
type: typeof
|
|
3737
|
-
value:
|
|
3750
|
+
type: typeof L == "string" ? N.literal : N.object,
|
|
3751
|
+
value: L
|
|
3738
3752
|
};
|
|
3739
3753
|
}));
|
|
3740
3754
|
}
|
|
3741
|
-
if (
|
|
3742
|
-
var
|
|
3743
|
-
if (!
|
|
3744
|
-
throw new
|
|
3745
|
-
a.push.apply(a, Me(
|
|
3755
|
+
if (_r(h)) {
|
|
3756
|
+
var m = h.options[f] || h.options.other;
|
|
3757
|
+
if (!m)
|
|
3758
|
+
throw new Zt(h.value, f, Object.keys(h.options), s);
|
|
3759
|
+
a.push.apply(a, Me(m.value, t, r, n, i));
|
|
3746
3760
|
continue;
|
|
3747
3761
|
}
|
|
3748
|
-
if (
|
|
3749
|
-
var
|
|
3750
|
-
if (!
|
|
3762
|
+
if (xr(h)) {
|
|
3763
|
+
var m = h.options["=".concat(f)];
|
|
3764
|
+
if (!m) {
|
|
3751
3765
|
if (!Intl.PluralRules)
|
|
3752
3766
|
throw new je(`Intl.PluralRules is not available in this environment.
|
|
3753
3767
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3754
3768
|
`, be.MISSING_INTL_API, s);
|
|
3755
3769
|
var C = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3756
|
-
|
|
3770
|
+
m = h.options[C] || h.options.other;
|
|
3757
3771
|
}
|
|
3758
|
-
if (!
|
|
3759
|
-
throw new
|
|
3760
|
-
a.push.apply(a, Me(
|
|
3772
|
+
if (!m)
|
|
3773
|
+
throw new Zt(h.value, f, Object.keys(h.options), s);
|
|
3774
|
+
a.push.apply(a, Me(m.value, t, r, n, i, f - (h.offset || 0)));
|
|
3761
3775
|
continue;
|
|
3762
3776
|
}
|
|
3763
3777
|
}
|
|
3764
|
-
return
|
|
3778
|
+
return Pi(a);
|
|
3765
3779
|
}
|
|
3766
|
-
function
|
|
3767
|
-
return t ?
|
|
3768
|
-
return r[n] =
|
|
3780
|
+
function Ii(e, t) {
|
|
3781
|
+
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3782
|
+
return r[n] = E(E({}, e[n]), t[n] || {}), r;
|
|
3769
3783
|
}, {})) : e;
|
|
3770
3784
|
}
|
|
3771
|
-
function
|
|
3785
|
+
function Oi(e, t) {
|
|
3772
3786
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3773
|
-
return r[n] =
|
|
3774
|
-
},
|
|
3787
|
+
return r[n] = Ii(e[n], t[n]), r;
|
|
3788
|
+
}, E({}, e)) : e;
|
|
3775
3789
|
}
|
|
3776
|
-
function
|
|
3790
|
+
function et(e) {
|
|
3777
3791
|
return {
|
|
3778
3792
|
create: function() {
|
|
3779
3793
|
return {
|
|
@@ -3787,39 +3801,39 @@ function Ye(e) {
|
|
|
3787
3801
|
}
|
|
3788
3802
|
};
|
|
3789
3803
|
}
|
|
3790
|
-
function
|
|
3804
|
+
function Li(e) {
|
|
3791
3805
|
return e === void 0 && (e = {
|
|
3792
3806
|
number: {},
|
|
3793
3807
|
dateTime: {},
|
|
3794
3808
|
pluralRules: {}
|
|
3795
3809
|
}), {
|
|
3796
|
-
getNumberFormat:
|
|
3810
|
+
getNumberFormat: qe(function() {
|
|
3797
3811
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3798
3812
|
r[n] = arguments[n];
|
|
3799
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3813
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, pe([void 0], r, !1)))();
|
|
3800
3814
|
}, {
|
|
3801
|
-
cache:
|
|
3802
|
-
strategy:
|
|
3815
|
+
cache: et(e.number),
|
|
3816
|
+
strategy: Ye.variadic
|
|
3803
3817
|
}),
|
|
3804
|
-
getDateTimeFormat:
|
|
3818
|
+
getDateTimeFormat: qe(function() {
|
|
3805
3819
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3806
3820
|
r[n] = arguments[n];
|
|
3807
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3821
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, pe([void 0], r, !1)))();
|
|
3808
3822
|
}, {
|
|
3809
|
-
cache:
|
|
3810
|
-
strategy:
|
|
3823
|
+
cache: et(e.dateTime),
|
|
3824
|
+
strategy: Ye.variadic
|
|
3811
3825
|
}),
|
|
3812
|
-
getPluralRules:
|
|
3826
|
+
getPluralRules: qe(function() {
|
|
3813
3827
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3814
3828
|
r[n] = arguments[n];
|
|
3815
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3829
|
+
return new ((t = Intl.PluralRules).bind.apply(t, pe([void 0], r, !1)))();
|
|
3816
3830
|
}, {
|
|
3817
|
-
cache:
|
|
3818
|
-
strategy:
|
|
3831
|
+
cache: et(e.pluralRules),
|
|
3832
|
+
strategy: Ye.variadic
|
|
3819
3833
|
})
|
|
3820
3834
|
};
|
|
3821
3835
|
}
|
|
3822
|
-
var
|
|
3836
|
+
var Ni = (
|
|
3823
3837
|
/** @class */
|
|
3824
3838
|
function() {
|
|
3825
3839
|
function e(t, r, n, i) {
|
|
@@ -3833,8 +3847,8 @@ var Ii = (
|
|
|
3833
3847
|
var l = o.formatToParts(u);
|
|
3834
3848
|
if (l.length === 1)
|
|
3835
3849
|
return l[0].value;
|
|
3836
|
-
var h = l.reduce(function(
|
|
3837
|
-
return !
|
|
3850
|
+
var h = l.reduce(function(p, f) {
|
|
3851
|
+
return !p.length || f.type !== N.literal || typeof p[p.length - 1] != "string" ? p.push(f.value) : p[p.length - 1] += f.value, p;
|
|
3838
3852
|
}, []);
|
|
3839
3853
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3840
3854
|
}, this.formatToParts = function(u) {
|
|
@@ -3851,13 +3865,13 @@ var Ii = (
|
|
|
3851
3865
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3852
3866
|
var s = i || {};
|
|
3853
3867
|
s.formatters;
|
|
3854
|
-
var a =
|
|
3855
|
-
this.ast = e.__parse(t,
|
|
3868
|
+
var a = dn(s, ["formatters"]);
|
|
3869
|
+
this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
|
|
3856
3870
|
} else
|
|
3857
3871
|
this.ast = t;
|
|
3858
3872
|
if (!Array.isArray(this.ast))
|
|
3859
3873
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3860
|
-
this.formats =
|
|
3874
|
+
this.formats = Oi(e.formats, n), this.formatters = i && i.formatters || Li(this.formatterCache);
|
|
3861
3875
|
}
|
|
3862
3876
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3863
3877
|
get: function() {
|
|
@@ -3870,7 +3884,7 @@ var Ii = (
|
|
|
3870
3884
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3871
3885
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3872
3886
|
}
|
|
3873
|
-
}, e.__parse =
|
|
3887
|
+
}, e.__parse = Ai, e.formats = {
|
|
3874
3888
|
number: {
|
|
3875
3889
|
integer: {
|
|
3876
3890
|
maximumFractionDigits: 0
|
|
@@ -3931,7 +3945,7 @@ var Ii = (
|
|
|
3931
3945
|
}, e;
|
|
3932
3946
|
}()
|
|
3933
3947
|
);
|
|
3934
|
-
function
|
|
3948
|
+
function Mi(e, t) {
|
|
3935
3949
|
if (t == null)
|
|
3936
3950
|
return;
|
|
3937
3951
|
if (t in e)
|
|
@@ -3952,92 +3966,92 @@ function Oi(e, t) {
|
|
|
3952
3966
|
n = void 0;
|
|
3953
3967
|
return n;
|
|
3954
3968
|
}
|
|
3955
|
-
const
|
|
3969
|
+
const q = {}, Ri = (e, t, r) => r && (t in q || (q[t] = {}), e in q[t] || (q[t][e] = r), r), Cr = (e, t) => {
|
|
3956
3970
|
if (t == null)
|
|
3957
3971
|
return;
|
|
3958
|
-
if (t in
|
|
3959
|
-
return
|
|
3972
|
+
if (t in q && e in q[t])
|
|
3973
|
+
return q[t][e];
|
|
3960
3974
|
const r = Ve(t);
|
|
3961
3975
|
for (let n = 0; n < r.length; n++) {
|
|
3962
|
-
const i = r[n], o =
|
|
3976
|
+
const i = r[n], o = Di(i, e);
|
|
3963
3977
|
if (o)
|
|
3964
|
-
return
|
|
3978
|
+
return Ri(e, t, o);
|
|
3965
3979
|
}
|
|
3966
3980
|
};
|
|
3967
|
-
let
|
|
3968
|
-
const
|
|
3969
|
-
function
|
|
3970
|
-
return
|
|
3981
|
+
let xt;
|
|
3982
|
+
const ye = ke({});
|
|
3983
|
+
function Ui(e) {
|
|
3984
|
+
return xt[e] || null;
|
|
3971
3985
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return e in
|
|
3986
|
+
function Ir(e) {
|
|
3987
|
+
return e in xt;
|
|
3974
3988
|
}
|
|
3975
|
-
function
|
|
3976
|
-
if (!
|
|
3989
|
+
function Di(e, t) {
|
|
3990
|
+
if (!Ir(e))
|
|
3977
3991
|
return null;
|
|
3978
|
-
const r =
|
|
3979
|
-
return
|
|
3992
|
+
const r = Ui(e);
|
|
3993
|
+
return Mi(r, t);
|
|
3980
3994
|
}
|
|
3981
|
-
function
|
|
3995
|
+
function $i(e) {
|
|
3982
3996
|
if (e == null)
|
|
3983
3997
|
return;
|
|
3984
3998
|
const t = Ve(e);
|
|
3985
3999
|
for (let r = 0; r < t.length; r++) {
|
|
3986
4000
|
const n = t[r];
|
|
3987
|
-
if (
|
|
4001
|
+
if (Ir(n))
|
|
3988
4002
|
return n;
|
|
3989
4003
|
}
|
|
3990
4004
|
}
|
|
3991
|
-
function
|
|
3992
|
-
delete
|
|
4005
|
+
function Or(e, ...t) {
|
|
4006
|
+
delete q[e], ye.update((r) => (r[e] = Xn.all([r[e] || {}, ...t]), r));
|
|
3993
4007
|
}
|
|
3994
|
-
|
|
3995
|
-
[
|
|
4008
|
+
ve(
|
|
4009
|
+
[ye],
|
|
3996
4010
|
([e]) => Object.keys(e)
|
|
3997
4011
|
);
|
|
3998
|
-
|
|
4012
|
+
ye.subscribe((e) => xt = e);
|
|
3999
4013
|
const Re = {};
|
|
4000
|
-
function
|
|
4014
|
+
function Gi(e, t) {
|
|
4001
4015
|
Re[e].delete(t), Re[e].size === 0 && delete Re[e];
|
|
4002
4016
|
}
|
|
4003
|
-
function
|
|
4017
|
+
function Lr(e) {
|
|
4004
4018
|
return Re[e];
|
|
4005
4019
|
}
|
|
4006
|
-
function
|
|
4020
|
+
function ki(e) {
|
|
4007
4021
|
return Ve(e).map((t) => {
|
|
4008
|
-
const r =
|
|
4022
|
+
const r = Lr(t);
|
|
4009
4023
|
return [t, r ? [...r] : []];
|
|
4010
4024
|
}).filter(([, t]) => t.length > 0);
|
|
4011
4025
|
}
|
|
4012
|
-
function
|
|
4026
|
+
function bt(e) {
|
|
4013
4027
|
return e == null ? !1 : Ve(e).some(
|
|
4014
4028
|
(t) => {
|
|
4015
4029
|
var r;
|
|
4016
|
-
return (r =
|
|
4030
|
+
return (r = Lr(t)) == null ? void 0 : r.size;
|
|
4017
4031
|
}
|
|
4018
4032
|
);
|
|
4019
4033
|
}
|
|
4020
|
-
function
|
|
4034
|
+
function ji(e, t) {
|
|
4021
4035
|
return Promise.all(
|
|
4022
|
-
t.map((n) => (
|
|
4023
|
-
).then((n) =>
|
|
4024
|
-
}
|
|
4025
|
-
const
|
|
4026
|
-
function
|
|
4027
|
-
if (!
|
|
4028
|
-
return e in
|
|
4029
|
-
const t =
|
|
4030
|
-
return
|
|
4036
|
+
t.map((n) => (Gi(e, n), n().then((i) => i.default || i)))
|
|
4037
|
+
).then((n) => Or(e, ...n));
|
|
4038
|
+
}
|
|
4039
|
+
const we = {};
|
|
4040
|
+
function Nr(e) {
|
|
4041
|
+
if (!bt(e))
|
|
4042
|
+
return e in we ? we[e] : Promise.resolve();
|
|
4043
|
+
const t = ki(e);
|
|
4044
|
+
return we[e] = Promise.all(
|
|
4031
4045
|
t.map(
|
|
4032
|
-
([r, n]) =>
|
|
4046
|
+
([r, n]) => ji(r, n)
|
|
4033
4047
|
)
|
|
4034
4048
|
).then(() => {
|
|
4035
|
-
if (
|
|
4036
|
-
return
|
|
4037
|
-
delete
|
|
4038
|
-
}),
|
|
4049
|
+
if (bt(e))
|
|
4050
|
+
return Nr(e);
|
|
4051
|
+
delete we[e];
|
|
4052
|
+
}), we[e];
|
|
4039
4053
|
}
|
|
4040
|
-
const
|
|
4054
|
+
const Vi = {
|
|
4041
4055
|
number: {
|
|
4042
4056
|
scientific: { notation: "scientific" },
|
|
4043
4057
|
engineering: { notation: "engineering" },
|
|
@@ -4066,57 +4080,57 @@ const Gi = {
|
|
|
4066
4080
|
timeZoneName: "short"
|
|
4067
4081
|
}
|
|
4068
4082
|
}
|
|
4069
|
-
},
|
|
4083
|
+
}, Xi = {
|
|
4070
4084
|
fallbackLocale: null,
|
|
4071
4085
|
loadingDelay: 200,
|
|
4072
|
-
formats:
|
|
4086
|
+
formats: Vi,
|
|
4073
4087
|
warnOnMissingMessages: !0,
|
|
4074
4088
|
handleMissingMessage: void 0,
|
|
4075
4089
|
ignoreTag: !0
|
|
4076
|
-
},
|
|
4090
|
+
}, Wi = Xi;
|
|
4077
4091
|
function ge() {
|
|
4078
|
-
return
|
|
4079
|
-
}
|
|
4080
|
-
const
|
|
4081
|
-
var
|
|
4082
|
-
for (var r in t)
|
|
4083
|
-
|
|
4084
|
-
if (
|
|
4085
|
-
for (var r of
|
|
4086
|
-
|
|
4092
|
+
return Wi;
|
|
4093
|
+
}
|
|
4094
|
+
const tt = ke(!1);
|
|
4095
|
+
var zi = Object.defineProperty, Zi = Object.defineProperties, Ji = Object.getOwnPropertyDescriptors, Jt = Object.getOwnPropertySymbols, Qi = Object.prototype.hasOwnProperty, qi = Object.prototype.propertyIsEnumerable, Qt = (e, t, r) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yi = (e, t) => {
|
|
4096
|
+
for (var r in t || (t = {}))
|
|
4097
|
+
Qi.call(t, r) && Qt(e, r, t[r]);
|
|
4098
|
+
if (Jt)
|
|
4099
|
+
for (var r of Jt(t))
|
|
4100
|
+
qi.call(t, r) && Qt(e, r, t[r]);
|
|
4087
4101
|
return e;
|
|
4088
|
-
},
|
|
4089
|
-
let
|
|
4102
|
+
}, Ki = (e, t) => Zi(e, Ji(t));
|
|
4103
|
+
let gt;
|
|
4090
4104
|
const De = ke(null);
|
|
4091
|
-
function
|
|
4105
|
+
function qt(e) {
|
|
4092
4106
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4093
4107
|
}
|
|
4094
4108
|
function Ve(e, t = ge().fallbackLocale) {
|
|
4095
|
-
const r =
|
|
4096
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4109
|
+
const r = qt(e);
|
|
4110
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...qt(t)])] : r;
|
|
4097
4111
|
}
|
|
4098
|
-
function
|
|
4099
|
-
return
|
|
4112
|
+
function ie() {
|
|
4113
|
+
return gt != null ? gt : void 0;
|
|
4100
4114
|
}
|
|
4101
4115
|
De.subscribe((e) => {
|
|
4102
|
-
|
|
4116
|
+
gt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4103
4117
|
});
|
|
4104
|
-
const
|
|
4105
|
-
if (e &&
|
|
4118
|
+
const eo = (e) => {
|
|
4119
|
+
if (e && $i(e) && bt(e)) {
|
|
4106
4120
|
const { loadingDelay: t } = ge();
|
|
4107
4121
|
let r;
|
|
4108
|
-
return typeof window != "undefined" &&
|
|
4109
|
-
() =>
|
|
4122
|
+
return typeof window != "undefined" && ie() != null && t ? r = window.setTimeout(
|
|
4123
|
+
() => tt.set(!0),
|
|
4110
4124
|
t
|
|
4111
|
-
) :
|
|
4125
|
+
) : tt.set(!0), Nr(e).then(() => {
|
|
4112
4126
|
De.set(e);
|
|
4113
4127
|
}).finally(() => {
|
|
4114
|
-
clearTimeout(r),
|
|
4128
|
+
clearTimeout(r), tt.set(!1);
|
|
4115
4129
|
});
|
|
4116
4130
|
}
|
|
4117
4131
|
return De.set(e);
|
|
4118
|
-
},
|
|
4119
|
-
set:
|
|
4132
|
+
}, re = Ki(Yi({}, De), {
|
|
4133
|
+
set: eo
|
|
4120
4134
|
}), Xe = (e) => {
|
|
4121
4135
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4122
4136
|
return (n) => {
|
|
@@ -4124,90 +4138,90 @@ const qi = (e) => {
|
|
|
4124
4138
|
return i in t ? t[i] : t[i] = e(n);
|
|
4125
4139
|
};
|
|
4126
4140
|
};
|
|
4127
|
-
var
|
|
4141
|
+
var to = Object.defineProperty, $e = Object.getOwnPropertySymbols, Mr = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable, Yt = (e, t, r) => t in e ? to(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t) => {
|
|
4128
4142
|
for (var r in t || (t = {}))
|
|
4129
|
-
|
|
4143
|
+
Mr.call(t, r) && Yt(e, r, t[r]);
|
|
4130
4144
|
if ($e)
|
|
4131
4145
|
for (var r of $e(t))
|
|
4132
|
-
|
|
4146
|
+
Rr.call(t, r) && Yt(e, r, t[r]);
|
|
4133
4147
|
return e;
|
|
4134
4148
|
}, _e = (e, t) => {
|
|
4135
4149
|
var r = {};
|
|
4136
4150
|
for (var n in e)
|
|
4137
|
-
|
|
4151
|
+
Mr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4138
4152
|
if (e != null && $e)
|
|
4139
4153
|
for (var n of $e(e))
|
|
4140
|
-
t.indexOf(n) < 0 &&
|
|
4154
|
+
t.indexOf(n) < 0 && Rr.call(e, n) && (r[n] = e[n]);
|
|
4141
4155
|
return r;
|
|
4142
4156
|
};
|
|
4143
|
-
const
|
|
4157
|
+
const Ae = (e, t) => {
|
|
4144
4158
|
const { formats: r } = ge();
|
|
4145
4159
|
if (e in r && t in r[e])
|
|
4146
4160
|
return r[e][t];
|
|
4147
4161
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4148
|
-
},
|
|
4162
|
+
}, ro = Xe(
|
|
4149
4163
|
(e) => {
|
|
4150
4164
|
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
|
4151
4165
|
if (r == null)
|
|
4152
4166
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4153
|
-
return n && (i =
|
|
4167
|
+
return n && (i = Ae("number", n)), new Intl.NumberFormat(r, i);
|
|
4154
4168
|
}
|
|
4155
|
-
),
|
|
4169
|
+
), no = Xe(
|
|
4156
4170
|
(e) => {
|
|
4157
4171
|
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
|
4158
4172
|
if (r == null)
|
|
4159
4173
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4160
|
-
return n ? i =
|
|
4174
|
+
return n ? i = Ae("date", n) : Object.keys(i).length === 0 && (i = Ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4161
4175
|
}
|
|
4162
|
-
),
|
|
4176
|
+
), io = Xe(
|
|
4163
4177
|
(e) => {
|
|
4164
4178
|
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
|
4165
4179
|
if (r == null)
|
|
4166
4180
|
throw new Error(
|
|
4167
4181
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4168
4182
|
);
|
|
4169
|
-
return n ? i =
|
|
4183
|
+
return n ? i = Ae("time", n) : Object.keys(i).length === 0 && (i = Ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4170
4184
|
}
|
|
4171
|
-
),
|
|
4185
|
+
), oo = (e = {}) => {
|
|
4172
4186
|
var t = e, {
|
|
4173
|
-
locale: r =
|
|
4187
|
+
locale: r = ie()
|
|
4174
4188
|
} = t, n = _e(t, [
|
|
4175
4189
|
"locale"
|
|
4176
4190
|
]);
|
|
4177
|
-
return
|
|
4178
|
-
},
|
|
4191
|
+
return ro(Et({ locale: r }, n));
|
|
4192
|
+
}, so = (e = {}) => {
|
|
4179
4193
|
var t = e, {
|
|
4180
|
-
locale: r =
|
|
4194
|
+
locale: r = ie()
|
|
4181
4195
|
} = t, n = _e(t, [
|
|
4182
4196
|
"locale"
|
|
4183
4197
|
]);
|
|
4184
|
-
return
|
|
4185
|
-
},
|
|
4198
|
+
return no(Et({ locale: r }, n));
|
|
4199
|
+
}, ao = (e = {}) => {
|
|
4186
4200
|
var t = e, {
|
|
4187
|
-
locale: r =
|
|
4201
|
+
locale: r = ie()
|
|
4188
4202
|
} = t, n = _e(t, [
|
|
4189
4203
|
"locale"
|
|
4190
4204
|
]);
|
|
4191
|
-
return
|
|
4192
|
-
},
|
|
4205
|
+
return io(Et({ locale: r }, n));
|
|
4206
|
+
}, lo = Xe(
|
|
4193
4207
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4194
|
-
(e, t =
|
|
4208
|
+
(e, t = ie()) => new Ni(e, t, ge().formats, {
|
|
4195
4209
|
ignoreTag: ge().ignoreTag
|
|
4196
4210
|
})
|
|
4197
|
-
),
|
|
4211
|
+
), uo = (e, t = {}) => {
|
|
4198
4212
|
var r, n, i, o;
|
|
4199
4213
|
let s = t;
|
|
4200
4214
|
typeof e == "object" && (s = e, e = s.id);
|
|
4201
4215
|
const {
|
|
4202
4216
|
values: a,
|
|
4203
|
-
locale: u =
|
|
4217
|
+
locale: u = ie(),
|
|
4204
4218
|
default: l
|
|
4205
4219
|
} = s;
|
|
4206
4220
|
if (u == null)
|
|
4207
4221
|
throw new Error(
|
|
4208
4222
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4209
4223
|
);
|
|
4210
|
-
let h =
|
|
4224
|
+
let h = Cr(e, u);
|
|
4211
4225
|
if (!h)
|
|
4212
4226
|
h = (o = (i = (n = (r = ge()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4213
4227
|
else if (typeof h != "string")
|
|
@@ -4216,30 +4230,30 @@ const Te = (e, t) => {
|
|
|
4216
4230
|
), h;
|
|
4217
4231
|
if (!a)
|
|
4218
4232
|
return h;
|
|
4219
|
-
let
|
|
4233
|
+
let p = h;
|
|
4220
4234
|
try {
|
|
4221
|
-
|
|
4235
|
+
p = lo(h, u).format(a);
|
|
4222
4236
|
} catch (f) {
|
|
4223
4237
|
f instanceof Error && console.warn(
|
|
4224
4238
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4225
4239
|
f.message
|
|
4226
4240
|
);
|
|
4227
4241
|
}
|
|
4228
|
-
return
|
|
4229
|
-
},
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
window.emWidgets = { topic:
|
|
4235
|
-
const
|
|
4236
|
-
function
|
|
4242
|
+
return p;
|
|
4243
|
+
}, ho = (e, t) => ao(t).format(e), co = (e, t) => so(t).format(e), fo = (e, t) => oo(t).format(e), po = (e, t = ie()) => Cr(e, t), mo = ve([re, ye], () => uo);
|
|
4244
|
+
ve([re], () => ho);
|
|
4245
|
+
ve([re], () => co);
|
|
4246
|
+
ve([re], () => fo);
|
|
4247
|
+
ve([re, ye], () => po);
|
|
4248
|
+
window.emWidgets = { topic: Bn };
|
|
4249
|
+
const bo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4250
|
+
function go(e, t) {
|
|
4237
4251
|
if (e) {
|
|
4238
4252
|
const r = document.createElement("style");
|
|
4239
4253
|
r.innerHTML = t, e.appendChild(r);
|
|
4240
4254
|
}
|
|
4241
4255
|
}
|
|
4242
|
-
function
|
|
4256
|
+
function vo(e, t) {
|
|
4243
4257
|
const r = new URL(t);
|
|
4244
4258
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4245
4259
|
const i = document.createElement("style");
|
|
@@ -4248,7 +4262,7 @@ function mo(e, t) {
|
|
|
4248
4262
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4249
4263
|
});
|
|
4250
4264
|
}
|
|
4251
|
-
function
|
|
4265
|
+
function yo(e, t, r) {
|
|
4252
4266
|
if (window.emMessageBus) {
|
|
4253
4267
|
const n = document.createElement("style");
|
|
4254
4268
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4256,15 +4270,15 @@ function bo(e, t, r) {
|
|
|
4256
4270
|
});
|
|
4257
4271
|
}
|
|
4258
4272
|
}
|
|
4259
|
-
function
|
|
4260
|
-
|
|
4261
|
-
r == null && (
|
|
4273
|
+
function _o({ withLocale: e, translations: t }) {
|
|
4274
|
+
re.subscribe((r) => {
|
|
4275
|
+
r == null && (ye.set(t), re.set(e));
|
|
4262
4276
|
});
|
|
4263
4277
|
}
|
|
4264
|
-
function
|
|
4265
|
-
|
|
4278
|
+
function Kt(e, t) {
|
|
4279
|
+
Or(e, t);
|
|
4266
4280
|
}
|
|
4267
|
-
const
|
|
4281
|
+
const er = {
|
|
4268
4282
|
en: {
|
|
4269
4283
|
providers: "Providers:",
|
|
4270
4284
|
filterby: "Filter by:",
|
|
@@ -4374,56 +4388,56 @@ const qt = {
|
|
|
4374
4388
|
clear: "Clear all"
|
|
4375
4389
|
}
|
|
4376
4390
|
};
|
|
4377
|
-
function
|
|
4378
|
-
|
|
4391
|
+
function xo(e) {
|
|
4392
|
+
Wr(e, "svelte-14m0j7n", ':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:17}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}');
|
|
4379
4393
|
}
|
|
4380
|
-
function
|
|
4394
|
+
function tr(e, t, r) {
|
|
4381
4395
|
const n = e.slice();
|
|
4382
4396
|
return n[37] = t[r], n[38] = t, n[39] = r, n;
|
|
4383
4397
|
}
|
|
4384
|
-
function
|
|
4398
|
+
function Eo(e) {
|
|
4385
4399
|
let t, r, n, i, o, s, a, u, l = (
|
|
4386
4400
|
/*$_*/
|
|
4387
4401
|
e[11]("filterby") + ""
|
|
4388
|
-
), h,
|
|
4402
|
+
), h, p, f, g, _ = (
|
|
4389
4403
|
/*$_*/
|
|
4390
4404
|
e[11]("providers") + ""
|
|
4391
|
-
),
|
|
4405
|
+
), b, T, H, S, m, C, L, R, V, I, J, xe, X, Y = (
|
|
4392
4406
|
/*$_*/
|
|
4393
4407
|
e[11]("clear") + ""
|
|
4394
|
-
),
|
|
4395
|
-
function Be(
|
|
4408
|
+
), oe, K, ee, se, ae, Ee;
|
|
4409
|
+
function Be(c, w) {
|
|
4396
4410
|
return (
|
|
4397
4411
|
/*fullSelection*/
|
|
4398
|
-
|
|
4412
|
+
c[7] ? To : So
|
|
4399
4413
|
);
|
|
4400
4414
|
}
|
|
4401
|
-
let
|
|
4415
|
+
let le = Be(e), U = le(e), Q = It(
|
|
4402
4416
|
/*vendorArray*/
|
|
4403
4417
|
e[5]
|
|
4404
|
-
),
|
|
4405
|
-
for (let
|
|
4406
|
-
c
|
|
4418
|
+
), O = [];
|
|
4419
|
+
for (let c = 0; c < Q.length; c += 1)
|
|
4420
|
+
O[c] = rr(tr(e, Q, c));
|
|
4407
4421
|
return {
|
|
4408
4422
|
c() {
|
|
4409
|
-
t = B("div"), r = B("div"), n = B("div"), i = Ce("svg"), o = Ce("path"), s = G(), a = B("div"), u = B("span"), h = k(l),
|
|
4410
|
-
for (let
|
|
4411
|
-
c
|
|
4412
|
-
|
|
4413
|
-
(e[4] ? "TriangleActive" : "")),
|
|
4414
|
-
(e[4] ? "FilterSelectorOpen" : "")),
|
|
4423
|
+
t = B("div"), r = B("div"), n = B("div"), i = Ce("svg"), o = Ce("path"), s = G(), a = B("div"), u = B("span"), h = k(l), p = G(), f = B("div"), g = B("span"), b = k(_), T = G(), U.c(), H = G(), S = B("span"), m = Ce("svg"), C = Ce("path"), V = G(), I = B("div"), J = B("ul");
|
|
4424
|
+
for (let c = 0; c < O.length; c += 1)
|
|
4425
|
+
O[c].c();
|
|
4426
|
+
xe = G(), X = B("button"), oe = k(Y), 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(u, "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*/
|
|
4427
|
+
(e[4] ? "TriangleActive" : "")), d(r, "class", R = "FilterSelector " + /*isFilterActive*/
|
|
4428
|
+
(e[4] ? "FilterSelectorOpen" : "")), d(J, "class", "FilterDropdown"), d(X, "class", "ClearFilters"), X.disabled = K = /*fullSelection*/
|
|
4415
4429
|
e[7] && /*selectedVendorArray*/
|
|
4416
4430
|
e[6].length != /*vendorArray*/
|
|
4417
|
-
e[5].length,
|
|
4418
|
-
(e[4] ? "FilterOpen" : "")),
|
|
4431
|
+
e[5].length, d(I, "class", ee = "FilterDropdownContainer " + /*isFilterActive*/
|
|
4432
|
+
(e[4] ? "FilterOpen" : "")), d(t, "class", se = "FilterContainer " + /*addfilterselector*/
|
|
4419
4433
|
(e[0] == "true" && /*addsortingselector*/
|
|
4420
4434
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
|
4421
4435
|
},
|
|
4422
|
-
m(
|
|
4423
|
-
|
|
4424
|
-
for (let
|
|
4425
|
-
|
|
4426
|
-
v(I,
|
|
4436
|
+
m(c, w) {
|
|
4437
|
+
z(c, t, w), v(t, r), v(r, n), v(n, i), v(i, o), v(n, s), v(n, a), v(a, u), v(u, h), v(a, p), v(a, f), v(f, g), v(g, b), v(f, T), U.m(f, null), v(r, H), v(r, S), v(S, m), v(m, C), v(t, V), v(t, I), v(I, J);
|
|
4438
|
+
for (let A = 0; A < O.length; A += 1)
|
|
4439
|
+
O[A] && O[A].m(J, null);
|
|
4440
|
+
v(I, xe), v(I, X), v(X, oe), ae || (Ee = [
|
|
4427
4441
|
Ue(
|
|
4428
4442
|
r,
|
|
4429
4443
|
"click",
|
|
@@ -4431,66 +4445,66 @@ function vo(e) {
|
|
|
4431
4445
|
e[24]
|
|
4432
4446
|
),
|
|
4433
4447
|
Ue(
|
|
4434
|
-
|
|
4448
|
+
X,
|
|
4435
4449
|
"click",
|
|
4436
4450
|
/*click_handler_2*/
|
|
4437
4451
|
e[27]
|
|
4438
4452
|
)
|
|
4439
|
-
],
|
|
4453
|
+
], ae = !0);
|
|
4440
4454
|
},
|
|
4441
|
-
p(
|
|
4442
|
-
if (
|
|
4455
|
+
p(c, w) {
|
|
4456
|
+
if (w[0] & /*$_*/
|
|
4443
4457
|
2048 && l !== (l = /*$_*/
|
|
4444
|
-
|
|
4445
|
-
2048 &&
|
|
4446
|
-
|
|
4447
|
-
16 &&
|
|
4448
|
-
(
|
|
4449
|
-
16 &&
|
|
4450
|
-
(
|
|
4458
|
+
c[11]("filterby") + "") && te(h, l), w[0] & /*$_*/
|
|
4459
|
+
2048 && _ !== (_ = /*$_*/
|
|
4460
|
+
c[11]("providers") + "") && te(b, _), le === (le = Be(c)) && U ? U.p(c, w) : (U.d(1), U = le(c), U && (U.c(), U.m(f, null))), w[0] & /*isFilterActive*/
|
|
4461
|
+
16 && L !== (L = "TriangleInactive " + /*isFilterActive*/
|
|
4462
|
+
(c[4] ? "TriangleActive" : "")) && d(S, "class", L), w[0] & /*isFilterActive*/
|
|
4463
|
+
16 && R !== (R = "FilterSelector " + /*isFilterActive*/
|
|
4464
|
+
(c[4] ? "FilterSelectorOpen" : "")) && d(r, "class", R), w[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
|
4451
4465
|
8228) {
|
|
4452
|
-
|
|
4466
|
+
Q = It(
|
|
4453
4467
|
/*vendorArray*/
|
|
4454
|
-
|
|
4468
|
+
c[5]
|
|
4455
4469
|
);
|
|
4456
|
-
let
|
|
4457
|
-
for (
|
|
4458
|
-
const
|
|
4459
|
-
|
|
4470
|
+
let A;
|
|
4471
|
+
for (A = 0; A < Q.length; A += 1) {
|
|
4472
|
+
const P = tr(c, Q, A);
|
|
4473
|
+
O[A] ? O[A].p(P, w) : (O[A] = rr(P), O[A].c(), O[A].m(J, null));
|
|
4460
4474
|
}
|
|
4461
|
-
for (;
|
|
4462
|
-
|
|
4463
|
-
|
|
4475
|
+
for (; A < O.length; A += 1)
|
|
4476
|
+
O[A].d(1);
|
|
4477
|
+
O.length = Q.length;
|
|
4464
4478
|
}
|
|
4465
|
-
|
|
4466
|
-
2048 &&
|
|
4467
|
-
|
|
4468
|
-
224 &&
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
16 &&
|
|
4473
|
-
(
|
|
4474
|
-
3 &&
|
|
4475
|
-
(
|
|
4476
|
-
|
|
4479
|
+
w[0] & /*$_*/
|
|
4480
|
+
2048 && Y !== (Y = /*$_*/
|
|
4481
|
+
c[11]("clear") + "") && te(oe, Y), w[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
|
4482
|
+
224 && K !== (K = /*fullSelection*/
|
|
4483
|
+
c[7] && /*selectedVendorArray*/
|
|
4484
|
+
c[6].length != /*vendorArray*/
|
|
4485
|
+
c[5].length) && (X.disabled = K), w[0] & /*isFilterActive*/
|
|
4486
|
+
16 && ee !== (ee = "FilterDropdownContainer " + /*isFilterActive*/
|
|
4487
|
+
(c[4] ? "FilterOpen" : "")) && d(I, "class", ee), w[0] & /*addfilterselector, addsortingselector*/
|
|
4488
|
+
3 && se !== (se = "FilterContainer " + /*addfilterselector*/
|
|
4489
|
+
(c[0] == "true" && /*addsortingselector*/
|
|
4490
|
+
c[1] == "true" ? "FilerContainerSplit" : "")) && d(t, "class", se);
|
|
4477
4491
|
},
|
|
4478
|
-
d(
|
|
4479
|
-
|
|
4492
|
+
d(c) {
|
|
4493
|
+
c && j(t), U.d(), Jr(O, c), ae = !1, ne(Ee);
|
|
4480
4494
|
}
|
|
4481
4495
|
};
|
|
4482
4496
|
}
|
|
4483
|
-
function
|
|
4497
|
+
function wo(e) {
|
|
4484
4498
|
let t, r = (
|
|
4485
4499
|
/*$_*/
|
|
4486
4500
|
e[11]("500") + ""
|
|
4487
4501
|
);
|
|
4488
4502
|
return {
|
|
4489
4503
|
c() {
|
|
4490
|
-
t = B("p"),
|
|
4504
|
+
t = B("p"), d(t, "class", "SearchLoading");
|
|
4491
4505
|
},
|
|
4492
4506
|
m(n, i) {
|
|
4493
|
-
|
|
4507
|
+
z(n, t, i), t.innerHTML = r;
|
|
4494
4508
|
},
|
|
4495
4509
|
p(n, i) {
|
|
4496
4510
|
i[0] & /*$_*/
|
|
@@ -4502,21 +4516,21 @@ function _o(e) {
|
|
|
4502
4516
|
}
|
|
4503
4517
|
};
|
|
4504
4518
|
}
|
|
4505
|
-
function
|
|
4519
|
+
function So(e) {
|
|
4506
4520
|
let t, r;
|
|
4507
4521
|
return {
|
|
4508
4522
|
c() {
|
|
4509
4523
|
t = B("span"), r = k(
|
|
4510
4524
|
/*selectionNumber*/
|
|
4511
4525
|
e[8]
|
|
4512
|
-
),
|
|
4526
|
+
), d(t, "class", "FilterCounter");
|
|
4513
4527
|
},
|
|
4514
4528
|
m(n, i) {
|
|
4515
|
-
|
|
4529
|
+
z(n, t, i), v(t, r);
|
|
4516
4530
|
},
|
|
4517
4531
|
p(n, i) {
|
|
4518
4532
|
i[0] & /*selectionNumber*/
|
|
4519
|
-
256 &&
|
|
4533
|
+
256 && te(
|
|
4520
4534
|
r,
|
|
4521
4535
|
/*selectionNumber*/
|
|
4522
4536
|
n[8]
|
|
@@ -4527,49 +4541,49 @@ function xo(e) {
|
|
|
4527
4541
|
}
|
|
4528
4542
|
};
|
|
4529
4543
|
}
|
|
4530
|
-
function
|
|
4544
|
+
function To(e) {
|
|
4531
4545
|
let t, r = (
|
|
4532
4546
|
/*$_*/
|
|
4533
4547
|
e[11]("all") + ""
|
|
4534
4548
|
), n;
|
|
4535
4549
|
return {
|
|
4536
4550
|
c() {
|
|
4537
|
-
t = B("span"), n = k(r),
|
|
4551
|
+
t = B("span"), n = k(r), d(t, "class", "FilterCounter");
|
|
4538
4552
|
},
|
|
4539
4553
|
m(i, o) {
|
|
4540
|
-
|
|
4554
|
+
z(i, t, o), v(t, n);
|
|
4541
4555
|
},
|
|
4542
4556
|
p(i, o) {
|
|
4543
4557
|
o[0] & /*$_*/
|
|
4544
4558
|
2048 && r !== (r = /*$_*/
|
|
4545
|
-
i[11]("all") + "") &&
|
|
4559
|
+
i[11]("all") + "") && te(n, r);
|
|
4546
4560
|
},
|
|
4547
4561
|
d(i) {
|
|
4548
4562
|
i && j(t);
|
|
4549
4563
|
}
|
|
4550
4564
|
};
|
|
4551
4565
|
}
|
|
4552
|
-
function
|
|
4566
|
+
function Ho(e) {
|
|
4553
4567
|
let t, r;
|
|
4554
4568
|
return {
|
|
4555
4569
|
c() {
|
|
4556
|
-
t = B("img"),
|
|
4557
|
-
e[37].logo) ||
|
|
4570
|
+
t = B("img"), Ft(t.src, r = /*vendor*/
|
|
4571
|
+
e[37].logo) || d(t, "src", r), d(t, "alt", "vendor logo");
|
|
4558
4572
|
},
|
|
4559
4573
|
m(n, i) {
|
|
4560
|
-
|
|
4574
|
+
z(n, t, i);
|
|
4561
4575
|
},
|
|
4562
4576
|
p(n, i) {
|
|
4563
4577
|
i[0] & /*vendorArray*/
|
|
4564
|
-
32 && !
|
|
4565
|
-
n[37].logo) &&
|
|
4578
|
+
32 && !Ft(t.src, r = /*vendor*/
|
|
4579
|
+
n[37].logo) && d(t, "src", r);
|
|
4566
4580
|
},
|
|
4567
4581
|
d(n) {
|
|
4568
4582
|
n && j(t);
|
|
4569
4583
|
}
|
|
4570
4584
|
};
|
|
4571
4585
|
}
|
|
4572
|
-
function
|
|
4586
|
+
function Ao(e) {
|
|
4573
4587
|
let t, r, n = (
|
|
4574
4588
|
/*vendor*/
|
|
4575
4589
|
e[37].name + ""
|
|
@@ -4579,26 +4593,26 @@ function So(e) {
|
|
|
4579
4593
|
), l, h;
|
|
4580
4594
|
return {
|
|
4581
4595
|
c() {
|
|
4582
|
-
t = B("div"), r = B("span"), i = k(n), o = G(), s = B("span"), a = k("("), l = k(u), h = k(")"),
|
|
4596
|
+
t = B("div"), r = B("span"), i = k(n), o = G(), s = B("span"), a = k("("), l = k(u), h = k(")"), d(r, "class", "VendorName"), d(t, "class", "FilterItemLabel");
|
|
4583
4597
|
},
|
|
4584
|
-
m(
|
|
4585
|
-
|
|
4598
|
+
m(p, f) {
|
|
4599
|
+
z(p, t, f), v(t, r), v(r, i), v(t, o), v(t, s), v(s, a), v(s, l), v(s, h);
|
|
4586
4600
|
},
|
|
4587
|
-
p(
|
|
4601
|
+
p(p, f) {
|
|
4588
4602
|
f[0] & /*vendorArray*/
|
|
4589
4603
|
32 && n !== (n = /*vendor*/
|
|
4590
|
-
|
|
4604
|
+
p[37].name + "") && te(i, n), f[0] & /*vendorArray*/
|
|
4591
4605
|
32 && u !== (u = /*vendor*/
|
|
4592
|
-
|
|
4606
|
+
p[37].games.total + "") && te(l, u);
|
|
4593
4607
|
},
|
|
4594
|
-
d(
|
|
4595
|
-
|
|
4608
|
+
d(p) {
|
|
4609
|
+
p && j(t);
|
|
4596
4610
|
}
|
|
4597
4611
|
};
|
|
4598
4612
|
}
|
|
4599
|
-
function
|
|
4600
|
-
let t, r, n, i, o, s, a, u, l, h,
|
|
4601
|
-
function
|
|
4613
|
+
function rr(e) {
|
|
4614
|
+
let t, r, n, i, o, s, a, u, l, h, p, f;
|
|
4615
|
+
function g() {
|
|
4602
4616
|
e[25].call(
|
|
4603
4617
|
n,
|
|
4604
4618
|
/*each_value*/
|
|
@@ -4607,7 +4621,7 @@ function Kt(e) {
|
|
|
4607
4621
|
e[39]
|
|
4608
4622
|
);
|
|
4609
4623
|
}
|
|
4610
|
-
function
|
|
4624
|
+
function _() {
|
|
4611
4625
|
return (
|
|
4612
4626
|
/*click_handler_1*/
|
|
4613
4627
|
e[26](
|
|
@@ -4616,60 +4630,60 @@ function Kt(e) {
|
|
|
4616
4630
|
)
|
|
4617
4631
|
);
|
|
4618
4632
|
}
|
|
4619
|
-
function
|
|
4633
|
+
function b(S, m) {
|
|
4620
4634
|
if (
|
|
4621
4635
|
/*filterbylogo*/
|
|
4622
|
-
|
|
4636
|
+
S[2] === "false"
|
|
4623
4637
|
)
|
|
4624
|
-
return
|
|
4638
|
+
return Ao;
|
|
4625
4639
|
if (
|
|
4626
4640
|
/*filterbylogo*/
|
|
4627
|
-
|
|
4641
|
+
S[2] === "true"
|
|
4628
4642
|
)
|
|
4629
|
-
return
|
|
4643
|
+
return Ho;
|
|
4630
4644
|
}
|
|
4631
|
-
let
|
|
4645
|
+
let T = b(e), H = T && T(e);
|
|
4632
4646
|
return {
|
|
4633
4647
|
c() {
|
|
4634
|
-
t = B("li"), r = B("label"), n = B("input"), o = G(), s = B("span"), a = G(),
|
|
4635
|
-
e[37].name,
|
|
4648
|
+
t = B("li"), r = B("label"), n = B("input"), o = G(), s = B("span"), a = G(), H && H.c(), u = G(), d(n, "type", "checkbox"), d(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
|
4649
|
+
e[37].name, Pt(n, n.__value), d(s, "class", "FiltersCheckmark"), d(r, "class", "FilterLabel"), d(t, "class", l = "FilterItem " + /*filterbylogo*/
|
|
4636
4650
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = h = /*vendor*/
|
|
4637
4651
|
e[37].name;
|
|
4638
4652
|
},
|
|
4639
|
-
m(
|
|
4640
|
-
|
|
4641
|
-
e[37].isFilterSelected, v(r, o), v(r, s), v(r, a),
|
|
4642
|
-
Ue(n, "change",
|
|
4643
|
-
Ue(n, "click",
|
|
4644
|
-
],
|
|
4653
|
+
m(S, m) {
|
|
4654
|
+
z(S, t, m), v(t, r), v(r, n), n.checked = /*vendor*/
|
|
4655
|
+
e[37].isFilterSelected, v(r, o), v(r, s), v(r, a), H && H.m(r, null), v(t, u), p || (f = [
|
|
4656
|
+
Ue(n, "change", g),
|
|
4657
|
+
Ue(n, "click", _)
|
|
4658
|
+
], p = !0);
|
|
4645
4659
|
},
|
|
4646
|
-
p(
|
|
4647
|
-
e =
|
|
4660
|
+
p(S, m) {
|
|
4661
|
+
e = S, m[0] & /*vendorArray*/
|
|
4648
4662
|
32 && i !== (i = /*vendor*/
|
|
4649
|
-
e[37].name) && (n.__value = i,
|
|
4663
|
+
e[37].name) && (n.__value = i, Pt(n, n.__value)), m[0] & /*vendorArray*/
|
|
4650
4664
|
32 && (n.checked = /*vendor*/
|
|
4651
|
-
e[37].isFilterSelected),
|
|
4665
|
+
e[37].isFilterSelected), T === (T = b(e)) && H ? H.p(e, m) : (H && H.d(1), H = T && T(e), H && (H.c(), H.m(r, null))), m[0] & /*filterbylogo*/
|
|
4652
4666
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
|
4653
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")) &&
|
|
4667
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")) && d(t, "class", l), m[0] & /*vendorArray*/
|
|
4654
4668
|
32 && h !== (h = /*vendor*/
|
|
4655
4669
|
e[37].name) && (t.value = h);
|
|
4656
4670
|
},
|
|
4657
|
-
d(
|
|
4658
|
-
|
|
4671
|
+
d(S) {
|
|
4672
|
+
S && j(t), H && H.d(), p = !1, ne(f);
|
|
4659
4673
|
}
|
|
4660
4674
|
};
|
|
4661
4675
|
}
|
|
4662
|
-
function
|
|
4676
|
+
function Bo(e) {
|
|
4663
4677
|
let t;
|
|
4664
4678
|
function r(o, s) {
|
|
4665
4679
|
if (
|
|
4666
4680
|
/*hasErrors*/
|
|
4667
4681
|
o[10]
|
|
4668
4682
|
)
|
|
4669
|
-
return
|
|
4683
|
+
return wo;
|
|
4670
4684
|
if (!/*isLoading*/
|
|
4671
4685
|
o[9])
|
|
4672
|
-
return
|
|
4686
|
+
return Eo;
|
|
4673
4687
|
}
|
|
4674
4688
|
let n = r(e), i = n && n(e);
|
|
4675
4689
|
return {
|
|
@@ -4677,110 +4691,110 @@ function To(e) {
|
|
|
4677
4691
|
t = B("div"), i && i.c();
|
|
4678
4692
|
},
|
|
4679
4693
|
m(o, s) {
|
|
4680
|
-
|
|
4694
|
+
z(o, t, s), i && i.m(t, null), e[28](t);
|
|
4681
4695
|
},
|
|
4682
4696
|
p(o, s) {
|
|
4683
4697
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
4684
4698
|
},
|
|
4685
|
-
i:
|
|
4686
|
-
o:
|
|
4699
|
+
i: $,
|
|
4700
|
+
o: $,
|
|
4687
4701
|
d(o) {
|
|
4688
4702
|
o && j(t), i && i.d(), e[28](null);
|
|
4689
4703
|
}
|
|
4690
4704
|
};
|
|
4691
4705
|
}
|
|
4692
|
-
function
|
|
4706
|
+
function Fo(e, t, r) {
|
|
4693
4707
|
let n;
|
|
4694
|
-
|
|
4695
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, { addfilterselector:
|
|
4696
|
-
|
|
4697
|
-
const
|
|
4698
|
-
fetch(a).then((
|
|
4699
|
-
Object.keys(
|
|
4700
|
-
|
|
4708
|
+
Xr(e, mo, (c) => r(11, n = c));
|
|
4709
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, { addfilterselector: p = "false" } = t, { addsortingselector: f = "false" } = t, { filterbylogo: g = "false" } = t, { mbsource: _ } = t, { usesinglevendorfilter: b = "false" } = t, T = !1, H = window.navigator.userAgent, S = [], m = [], C = {}, L = !1, R = 0, V = !0, I, J = !1, xe;
|
|
4710
|
+
_o({ withLocale: "en", translations: {} });
|
|
4711
|
+
const X = () => {
|
|
4712
|
+
fetch(a).then((w) => w.json()).then((w) => {
|
|
4713
|
+
Object.keys(w).forEach((A) => {
|
|
4714
|
+
Kt(A, w[A]);
|
|
4701
4715
|
});
|
|
4702
|
-
}).catch((
|
|
4703
|
-
console.log(
|
|
4716
|
+
}).catch((w) => {
|
|
4717
|
+
console.log(w);
|
|
4704
4718
|
});
|
|
4705
4719
|
};
|
|
4706
|
-
Object.keys(
|
|
4707
|
-
|
|
4720
|
+
Object.keys(er).forEach((c) => {
|
|
4721
|
+
Kt(c, er[c]);
|
|
4708
4722
|
}), C[h] && (C = { [h]: [] });
|
|
4709
|
-
const
|
|
4710
|
-
r(4,
|
|
4711
|
-
},
|
|
4712
|
-
fetch(c).then((
|
|
4713
|
-
|
|
4714
|
-
let
|
|
4715
|
-
const
|
|
4716
|
-
|
|
4717
|
-
var
|
|
4718
|
-
|
|
4719
|
-
}), r(5,
|
|
4720
|
-
}).catch((
|
|
4721
|
-
console.error(
|
|
4723
|
+
const Y = () => {
|
|
4724
|
+
r(4, T = !T), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
|
4725
|
+
}, oe = (c) => (r(9, V = !0), new Promise((w, A) => {
|
|
4726
|
+
fetch(c).then((P) => P.json()).then((P) => {
|
|
4727
|
+
P = P.items, w(P.items), r(6, m = []);
|
|
4728
|
+
let We = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
|
4729
|
+
const Ur = b === "true" ? "*" : h;
|
|
4730
|
+
P.forEach((Fe) => {
|
|
4731
|
+
var wt;
|
|
4732
|
+
We || (We = { currentCategoryId: [] }), ((wt = We[Ur]) == null ? void 0 : wt.indexOf(Fe.id)) >= 0 ? (Fe.isFilterSelected = !0, m.push(Fe)) : Fe.isFilterSelected = !1;
|
|
4733
|
+
}), r(5, S = P), ee();
|
|
4734
|
+
}).catch((P) => {
|
|
4735
|
+
console.error(P), r(10, J = !0), A(P);
|
|
4722
4736
|
}).finally(() => {
|
|
4723
4737
|
r(9, V = !1);
|
|
4724
4738
|
});
|
|
4725
|
-
})),
|
|
4726
|
-
let
|
|
4727
|
-
c.isFilterSelected = !c.isFilterSelected, !
|
|
4728
|
-
const
|
|
4729
|
-
|
|
4730
|
-
[
|
|
4731
|
-
})) : (
|
|
4732
|
-
},
|
|
4733
|
-
r(7,
|
|
4734
|
-
},
|
|
4735
|
-
if (
|
|
4739
|
+
})), K = (c) => {
|
|
4740
|
+
let w = localStorage.getItem("vendorFiltersByCategory");
|
|
4741
|
+
c.isFilterSelected = !c.isFilterSelected, !m.length || m.filter((P) => P.name === c.name).length == 0 ? m.push(c) : r(6, m = m.filter((P) => P.name !== c.name));
|
|
4742
|
+
const A = b === "true" ? "*" : h;
|
|
4743
|
+
w == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(C = {
|
|
4744
|
+
[A]: m.map((P) => P.id)
|
|
4745
|
+
})) : (w = JSON.parse(w), w[A] = m.map((P) => P.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(w))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), ee();
|
|
4746
|
+
}, ee = () => {
|
|
4747
|
+
r(7, L = m.length === S.length || m.length == 0), r(8, R = m.length);
|
|
4748
|
+
}, se = () => {
|
|
4749
|
+
if (S.length && b === "true")
|
|
4736
4750
|
return;
|
|
4737
4751
|
const c = new URL(`${i}/v1/casino/vendors`);
|
|
4738
|
-
r(4,
|
|
4739
|
-
},
|
|
4740
|
-
r(6,
|
|
4741
|
-
[
|
|
4742
|
-
})),
|
|
4743
|
-
},
|
|
4744
|
-
c.data.type == "SortingOpened" && r(4,
|
|
4752
|
+
r(4, T = !1), c.searchParams.append("fields", "id,name,logo,subVendors,games"), c.searchParams.append("language", s), c.searchParams.append("datasource", o), c.searchParams.append("platform", bo(H)), b === "true" || ((h.match(/\$/g) || []).length > 1 ? (c.searchParams.append("filter", `games(subGroups=${h})`), c.searchParams.append("subVendors", `games(subGroups=${h})`)) : c.searchParams.append("filter", `games(groups=${h})`)), oe(c);
|
|
4753
|
+
}, ae = () => {
|
|
4754
|
+
r(6, m = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(C = {
|
|
4755
|
+
[b === "true" ? "*" : h]: m.map((c) => c.id)
|
|
4756
|
+
})), S.forEach((c) => c.isFilterSelected = !1), r(5, S), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, L = !0), r(4, T = !1);
|
|
4757
|
+
}, Ee = (c) => {
|
|
4758
|
+
c.data.type == "SortingOpened" && r(4, T = !1);
|
|
4745
4759
|
};
|
|
4746
|
-
|
|
4747
|
-
window.removeEventListener("message",
|
|
4760
|
+
Kr(() => (window.addEventListener("message", Ee, !1), () => {
|
|
4761
|
+
window.emMessageBus != null && xe && xe.unsubscribe(), window.removeEventListener("message", Ee);
|
|
4748
4762
|
}));
|
|
4749
|
-
const
|
|
4750
|
-
function
|
|
4751
|
-
c[
|
|
4763
|
+
const Be = () => Y();
|
|
4764
|
+
function le(c, w) {
|
|
4765
|
+
c[w].isFilterSelected = this.checked, r(5, S);
|
|
4752
4766
|
}
|
|
4753
|
-
const
|
|
4754
|
-
function
|
|
4755
|
-
|
|
4767
|
+
const U = (c) => K(c), Q = () => ae();
|
|
4768
|
+
function O(c) {
|
|
4769
|
+
rt[c ? "unshift" : "push"](() => {
|
|
4756
4770
|
I = c, r(3, I);
|
|
4757
4771
|
});
|
|
4758
4772
|
}
|
|
4759
4773
|
return e.$$set = (c) => {
|
|
4760
|
-
"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, u = c.clientstyling), "clientstylingurl" in c && r(20, l = c.clientstylingurl), "categoryid" in c && r(21, h = c.categoryid), "addfilterselector" in c && r(0,
|
|
4774
|
+
"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, u = c.clientstyling), "clientstylingurl" in c && r(20, l = c.clientstylingurl), "categoryid" in c && r(21, h = 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, _ = c.mbsource), "usesinglevendorfilter" in c && r(23, b = c.usesinglevendorfilter);
|
|
4761
4775
|
}, e.$$.update = () => {
|
|
4762
4776
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
|
4763
|
-
2195460 && i && o && h &&
|
|
4764
|
-
524296 && u && I &&
|
|
4765
|
-
1048584 && l && I &&
|
|
4766
|
-
4194312 && I &&
|
|
4767
|
-
262144 && a &&
|
|
4777
|
+
2195460 && i && o && h && g && se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4778
|
+
524296 && u && I && go(I, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4779
|
+
1048584 && l && I && vo(I, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4780
|
+
4194312 && I && yo(I, `${_}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4781
|
+
262144 && a && X();
|
|
4768
4782
|
}, [
|
|
4769
|
-
|
|
4783
|
+
p,
|
|
4770
4784
|
f,
|
|
4771
|
-
|
|
4785
|
+
g,
|
|
4772
4786
|
I,
|
|
4773
|
-
H,
|
|
4774
4787
|
T,
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4788
|
+
S,
|
|
4789
|
+
m,
|
|
4790
|
+
L,
|
|
4791
|
+
R,
|
|
4778
4792
|
V,
|
|
4779
|
-
|
|
4793
|
+
J,
|
|
4780
4794
|
n,
|
|
4781
|
-
|
|
4782
|
-
ie,
|
|
4795
|
+
Y,
|
|
4783
4796
|
K,
|
|
4797
|
+
ae,
|
|
4784
4798
|
i,
|
|
4785
4799
|
o,
|
|
4786
4800
|
s,
|
|
@@ -4788,23 +4802,23 @@ function Ho(e, t, r) {
|
|
|
4788
4802
|
u,
|
|
4789
4803
|
l,
|
|
4790
4804
|
h,
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
Ae,
|
|
4805
|
+
_,
|
|
4806
|
+
b,
|
|
4794
4807
|
Be,
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4808
|
+
le,
|
|
4809
|
+
U,
|
|
4810
|
+
Q,
|
|
4811
|
+
O
|
|
4798
4812
|
];
|
|
4799
4813
|
}
|
|
4800
|
-
class
|
|
4814
|
+
class Po extends fn {
|
|
4801
4815
|
constructor(t) {
|
|
4802
|
-
super(),
|
|
4816
|
+
super(), hn(
|
|
4803
4817
|
this,
|
|
4804
4818
|
t,
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4819
|
+
Fo,
|
|
4820
|
+
Bo,
|
|
4821
|
+
ir,
|
|
4808
4822
|
{
|
|
4809
4823
|
endpoint: 15,
|
|
4810
4824
|
datasource: 16,
|
|
@@ -4819,7 +4833,7 @@ class Ao extends ln {
|
|
|
4819
4833
|
mbsource: 22,
|
|
4820
4834
|
usesinglevendorfilter: 23
|
|
4821
4835
|
},
|
|
4822
|
-
|
|
4836
|
+
xo,
|
|
4823
4837
|
[-1, -1]
|
|
4824
4838
|
);
|
|
4825
4839
|
}
|
|
@@ -4827,76 +4841,76 @@ class Ao extends ln {
|
|
|
4827
4841
|
return this.$$.ctx[15];
|
|
4828
4842
|
}
|
|
4829
4843
|
set endpoint(t) {
|
|
4830
|
-
this.$$set({ endpoint: t }),
|
|
4844
|
+
this.$$set({ endpoint: t }), M();
|
|
4831
4845
|
}
|
|
4832
4846
|
get datasource() {
|
|
4833
4847
|
return this.$$.ctx[16];
|
|
4834
4848
|
}
|
|
4835
4849
|
set datasource(t) {
|
|
4836
|
-
this.$$set({ datasource: t }),
|
|
4850
|
+
this.$$set({ datasource: t }), M();
|
|
4837
4851
|
}
|
|
4838
4852
|
get lang() {
|
|
4839
4853
|
return this.$$.ctx[17];
|
|
4840
4854
|
}
|
|
4841
4855
|
set lang(t) {
|
|
4842
|
-
this.$$set({ lang: t }),
|
|
4856
|
+
this.$$set({ lang: t }), M();
|
|
4843
4857
|
}
|
|
4844
4858
|
get translationurl() {
|
|
4845
4859
|
return this.$$.ctx[18];
|
|
4846
4860
|
}
|
|
4847
4861
|
set translationurl(t) {
|
|
4848
|
-
this.$$set({ translationurl: t }),
|
|
4862
|
+
this.$$set({ translationurl: t }), M();
|
|
4849
4863
|
}
|
|
4850
4864
|
get clientstyling() {
|
|
4851
4865
|
return this.$$.ctx[19];
|
|
4852
4866
|
}
|
|
4853
4867
|
set clientstyling(t) {
|
|
4854
|
-
this.$$set({ clientstyling: t }),
|
|
4868
|
+
this.$$set({ clientstyling: t }), M();
|
|
4855
4869
|
}
|
|
4856
4870
|
get clientstylingurl() {
|
|
4857
4871
|
return this.$$.ctx[20];
|
|
4858
4872
|
}
|
|
4859
4873
|
set clientstylingurl(t) {
|
|
4860
|
-
this.$$set({ clientstylingurl: t }),
|
|
4874
|
+
this.$$set({ clientstylingurl: t }), M();
|
|
4861
4875
|
}
|
|
4862
4876
|
get categoryid() {
|
|
4863
4877
|
return this.$$.ctx[21];
|
|
4864
4878
|
}
|
|
4865
4879
|
set categoryid(t) {
|
|
4866
|
-
this.$$set({ categoryid: t }),
|
|
4880
|
+
this.$$set({ categoryid: t }), M();
|
|
4867
4881
|
}
|
|
4868
4882
|
get addfilterselector() {
|
|
4869
4883
|
return this.$$.ctx[0];
|
|
4870
4884
|
}
|
|
4871
4885
|
set addfilterselector(t) {
|
|
4872
|
-
this.$$set({ addfilterselector: t }),
|
|
4886
|
+
this.$$set({ addfilterselector: t }), M();
|
|
4873
4887
|
}
|
|
4874
4888
|
get addsortingselector() {
|
|
4875
4889
|
return this.$$.ctx[1];
|
|
4876
4890
|
}
|
|
4877
4891
|
set addsortingselector(t) {
|
|
4878
|
-
this.$$set({ addsortingselector: t }),
|
|
4892
|
+
this.$$set({ addsortingselector: t }), M();
|
|
4879
4893
|
}
|
|
4880
4894
|
get filterbylogo() {
|
|
4881
4895
|
return this.$$.ctx[2];
|
|
4882
4896
|
}
|
|
4883
4897
|
set filterbylogo(t) {
|
|
4884
|
-
this.$$set({ filterbylogo: t }),
|
|
4898
|
+
this.$$set({ filterbylogo: t }), M();
|
|
4885
4899
|
}
|
|
4886
4900
|
get mbsource() {
|
|
4887
4901
|
return this.$$.ctx[22];
|
|
4888
4902
|
}
|
|
4889
4903
|
set mbsource(t) {
|
|
4890
|
-
this.$$set({ mbsource: t }),
|
|
4904
|
+
this.$$set({ mbsource: t }), M();
|
|
4891
4905
|
}
|
|
4892
4906
|
get usesinglevendorfilter() {
|
|
4893
4907
|
return this.$$.ctx[23];
|
|
4894
4908
|
}
|
|
4895
4909
|
set usesinglevendorfilter(t) {
|
|
4896
|
-
this.$$set({ usesinglevendorfilter: t }),
|
|
4910
|
+
this.$$set({ usesinglevendorfilter: t }), M();
|
|
4897
4911
|
}
|
|
4898
4912
|
}
|
|
4899
|
-
|
|
4913
|
+
cn(Po, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {}, usesinglevendorfilter: {} }, [], [], !0);
|
|
4900
4914
|
export {
|
|
4901
|
-
|
|
4915
|
+
Po as default
|
|
4902
4916
|
};
|