@everymatrix/casino-betslip-indicator 1.86.4 → 1.86.6
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/CasinoBetslipIndicator-BG6_488N.cjs +21 -0
- package/components/{CasinoBetslipIndicator-BW4YdRM2.js → CasinoBetslipIndicator-CAXOjqlO.js} +678 -657
- package/components/{CasinoBetslipIndicator-DMTZXZqg.js → CasinoBetslipIndicator-CBwpESZf.js} +710 -689
- package/es2015/casino-betslip-indicator.cjs +1 -1
- package/es2015/casino-betslip-indicator.js +1 -1
- package/esnext/casino-betslip-indicator.js +1 -1
- package/package.json +1 -1
- package/components/CasinoBetslipIndicator-BHcGVcyx.cjs +0 -21
package/components/{CasinoBetslipIndicator-DMTZXZqg.js → CasinoBetslipIndicator-CBwpESZf.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Hr = Object.defineProperty, Tr = Object.defineProperties;
|
|
2
|
+
var Ar = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var st = Object.getOwnPropertySymbols;
|
|
4
|
+
var Or = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ae = (e, t, r) => t in e ? Hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
Pr.call(t, r) &&
|
|
7
|
+
Or.call(t, r) && Ae(e, r, t[r]);
|
|
8
|
+
if (st)
|
|
9
|
+
for (var r of st(t))
|
|
10
|
+
Pr.call(t, r) && Ae(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, ut = (e, t) => Tr(e, Ar(t));
|
|
13
|
+
var I = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var lt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -29,25 +29,25 @@ var at = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function C() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Rt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ht() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function j(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Rt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function tt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function $t(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
function Ir(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ut(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,17 +56,17 @@ function Rt(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Cr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Ut(t, r));
|
|
61
61
|
}
|
|
62
62
|
function w(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Nr(e, t, r) {
|
|
66
66
|
const n = Lr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = O("style");
|
|
69
|
+
i.id = t, i.textContent = r, Mr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
function Lr(e) {
|
|
@@ -79,7 +79,7 @@ function Lr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Mr(e, t) {
|
|
83
83
|
return w(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
@@ -92,7 +92,7 @@ function S(e, t, r) {
|
|
|
92
92
|
function B(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function O(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
98
|
function G(e) {
|
|
@@ -101,26 +101,26 @@ function G(e) {
|
|
|
101
101
|
function D(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Y() {
|
|
105
105
|
return D(" ");
|
|
106
106
|
}
|
|
107
107
|
function J(e, t, r, n) {
|
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function _(e, t, r) {
|
|
111
111
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Rr(e) {
|
|
114
114
|
return Array.from(e.childNodes);
|
|
115
115
|
}
|
|
116
116
|
function k(e, t) {
|
|
117
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
118
118
|
t);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function $r(e, t, r, n) {
|
|
121
121
|
e.style.setProperty(t, r, "");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ur(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -129,87 +129,87 @@ function $r(e) {
|
|
|
129
129
|
}
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
132
|
+
let ae;
|
|
133
|
+
function se(e) {
|
|
134
|
+
ae = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
if (!
|
|
136
|
+
function Dr() {
|
|
137
|
+
if (!ae)
|
|
138
138
|
throw new Error("Function called outside component initialization");
|
|
139
|
-
return
|
|
139
|
+
return ae;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function Fr(e) {
|
|
142
|
+
Dr().$$.on_mount.push(e);
|
|
143
143
|
}
|
|
144
|
-
const Z = [],
|
|
144
|
+
const Z = [], $e = [];
|
|
145
145
|
let Q = [];
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
146
|
+
const ct = [], Gr = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let Ue = !1;
|
|
148
|
+
function kr() {
|
|
149
|
+
Ue || (Ue = !0, Gr.then(R));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function De(e) {
|
|
152
152
|
Q.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const Oe = /* @__PURE__ */ new Set();
|
|
155
155
|
let z = 0;
|
|
156
|
-
function
|
|
156
|
+
function R() {
|
|
157
157
|
if (z !== 0)
|
|
158
158
|
return;
|
|
159
|
-
const e =
|
|
159
|
+
const e = ae;
|
|
160
160
|
do {
|
|
161
161
|
try {
|
|
162
162
|
for (; z < Z.length; ) {
|
|
163
163
|
const t = Z[z];
|
|
164
|
-
z++,
|
|
164
|
+
z++, se(t), jr(t.$$);
|
|
165
165
|
}
|
|
166
166
|
} catch (t) {
|
|
167
167
|
throw Z.length = 0, z = 0, t;
|
|
168
168
|
}
|
|
169
|
-
for (
|
|
170
|
-
|
|
169
|
+
for (se(null), Z.length = 0, z = 0; $e.length; )
|
|
170
|
+
$e.pop()();
|
|
171
171
|
for (let t = 0; t < Q.length; t += 1) {
|
|
172
172
|
const r = Q[t];
|
|
173
|
-
|
|
173
|
+
Oe.has(r) || (Oe.add(r), r());
|
|
174
174
|
}
|
|
175
175
|
Q.length = 0;
|
|
176
176
|
} while (Z.length);
|
|
177
|
-
for (;
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
for (; ct.length; )
|
|
178
|
+
ct.pop()();
|
|
179
|
+
Ue = !1, Oe.clear(), se(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function jr(e) {
|
|
182
182
|
if (e.fragment !== null) {
|
|
183
183
|
e.update(), j(e.before_update);
|
|
184
184
|
const t = e.dirty;
|
|
185
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
185
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Vr(e) {
|
|
189
189
|
const t = [], r = [];
|
|
190
190
|
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
e && e.i && (
|
|
192
|
+
const Xr = /* @__PURE__ */ new Set();
|
|
193
|
+
function zr(e, t) {
|
|
194
|
+
e && e.i && (Xr.delete(e), e.i(t));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Wr(e, t, r) {
|
|
197
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
198
|
-
n && n.m(t, r),
|
|
199
|
-
const o = e.$$.on_mount.map(
|
|
198
|
+
n && n.m(t, r), De(() => {
|
|
199
|
+
const o = e.$$.on_mount.map(Rt).filter(tt);
|
|
200
200
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : j(o), e.$$.on_mount = [];
|
|
201
|
-
}), i.forEach(
|
|
201
|
+
}), i.forEach(De);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Zr(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (Vr(r.after_update), j(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.$$.dirty[0] === -1 && (Z.push(e),
|
|
207
|
+
function Jr(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (Z.push(e), kr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
const l =
|
|
212
|
-
|
|
210
|
+
function Qr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
211
|
+
const l = ae;
|
|
212
|
+
se(e);
|
|
213
213
|
const u = e.$$ = {
|
|
214
214
|
fragment: null,
|
|
215
215
|
ctx: [],
|
|
@@ -217,7 +217,7 @@ function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
217
|
props: o,
|
|
218
218
|
update: C,
|
|
219
219
|
not_equal: i,
|
|
220
|
-
bound:
|
|
220
|
+
bound: ht(),
|
|
221
221
|
// lifecycle
|
|
222
222
|
on_mount: [],
|
|
223
223
|
on_destroy: [],
|
|
@@ -226,7 +226,7 @@ function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
226
226
|
after_update: [],
|
|
227
227
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
228
228
|
// everything else
|
|
229
|
-
callbacks:
|
|
229
|
+
callbacks: ht(),
|
|
230
230
|
dirty: a,
|
|
231
231
|
skip_bound: !1,
|
|
232
232
|
root: t.target || l.$$.root
|
|
@@ -235,39 +235,39 @@ function Jr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
235
235
|
let h = !1;
|
|
236
236
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
237
237
|
const d = p.length ? p[0] : f;
|
|
238
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h &&
|
|
238
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && Jr(e, c)), f;
|
|
239
239
|
}) : [], u.update(), h = !0, j(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
|
-
const c =
|
|
241
|
+
const c = Rr(t.target);
|
|
242
242
|
u.fragment && u.fragment.l(c), c.forEach(B);
|
|
243
243
|
} else
|
|
244
244
|
u.fragment && u.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && zr(e.$$.fragment), Wr(e, t.target, t.anchor), R();
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
se(l);
|
|
248
248
|
}
|
|
249
|
-
let
|
|
250
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let Dt;
|
|
250
|
+
typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
|
|
251
251
|
constructor(t, r, n) {
|
|
252
252
|
super();
|
|
253
253
|
/** The Svelte component constructor */
|
|
254
|
-
|
|
254
|
+
I(this, "$$ctor");
|
|
255
255
|
/** Slots */
|
|
256
|
-
|
|
256
|
+
I(this, "$$s");
|
|
257
257
|
/** The Svelte component instance */
|
|
258
|
-
|
|
258
|
+
I(this, "$$c");
|
|
259
259
|
/** Whether or not the custom element is connected */
|
|
260
|
-
|
|
260
|
+
I(this, "$$cn", !1);
|
|
261
261
|
/** Component props data */
|
|
262
|
-
|
|
262
|
+
I(this, "$$d", {});
|
|
263
263
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
264
|
-
|
|
264
|
+
I(this, "$$r", !1);
|
|
265
265
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
266
|
-
|
|
266
|
+
I(this, "$$p_d", {});
|
|
267
267
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
268
|
-
|
|
268
|
+
I(this, "$$l", {});
|
|
269
269
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
270
|
-
|
|
270
|
+
I(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
271
271
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
272
272
|
}
|
|
273
273
|
addEventListener(t, r, n) {
|
|
@@ -284,14 +284,14 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
connectedCallback() {
|
|
287
|
-
return
|
|
287
|
+
return lt(this, null, function* () {
|
|
288
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
289
289
|
let t = function(o) {
|
|
290
290
|
return () => {
|
|
291
291
|
let s;
|
|
292
292
|
return {
|
|
293
293
|
c: function() {
|
|
294
|
-
s =
|
|
294
|
+
s = O("slot"), o !== "default" && _(s, "name", o);
|
|
295
295
|
},
|
|
296
296
|
/**
|
|
297
297
|
* @param {HTMLElement} target
|
|
@@ -308,7 +308,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
308
308
|
};
|
|
309
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = Ur(this);
|
|
312
312
|
for (const o of this.$$s)
|
|
313
313
|
o in n && (r[o] = [t(o)]);
|
|
314
314
|
for (const o of this.attributes) {
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
319
319
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
320
320
|
this.$$c = new this.$$ctor({
|
|
321
321
|
target: this.shadowRoot || this,
|
|
322
|
-
props:
|
|
322
|
+
props: ut(at({}, this.$$d), {
|
|
323
323
|
$$slots: r,
|
|
324
324
|
$$scope: {
|
|
325
325
|
ctx: []
|
|
@@ -397,8 +397,8 @@ function de(e, t, r, n) {
|
|
|
397
397
|
return t;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
let s = class extends
|
|
400
|
+
function Yr(e, t, r, n, i, o) {
|
|
401
|
+
let s = class extends Dt {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(e, r, i), this.$$p_d = t;
|
|
404
404
|
}
|
|
@@ -428,7 +428,7 @@ function Qr(e, t, r, n, i, o) {
|
|
|
428
428
|
}), e.element = /** @type {any} */
|
|
429
429
|
s, s;
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class qr {
|
|
432
432
|
constructor() {
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
@@ -437,7 +437,7 @@ class Yr {
|
|
|
437
437
|
*
|
|
438
438
|
* @type {any}
|
|
439
439
|
*/
|
|
440
|
-
|
|
440
|
+
I(this, "$$");
|
|
441
441
|
/**
|
|
442
442
|
* ### PRIVATE API
|
|
443
443
|
*
|
|
@@ -445,11 +445,11 @@ class Yr {
|
|
|
445
445
|
*
|
|
446
446
|
* @type {any}
|
|
447
447
|
*/
|
|
448
|
-
|
|
448
|
+
I(this, "$$set");
|
|
449
449
|
}
|
|
450
450
|
/** @returns {void} */
|
|
451
451
|
$destroy() {
|
|
452
|
-
|
|
452
|
+
Zr(this, 1), this.$destroy = C;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -458,7 +458,7 @@ class Yr {
|
|
|
458
458
|
* @returns {() => void}
|
|
459
459
|
*/
|
|
460
460
|
$on(t, r) {
|
|
461
|
-
if (!
|
|
461
|
+
if (!tt(r))
|
|
462
462
|
return C;
|
|
463
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
464
464
|
return n.push(r), () => {
|
|
@@ -474,8 +474,8 @@ class Yr {
|
|
|
474
474
|
this.$$set && !Ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
477
|
+
const Kr = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kr);
|
|
479
479
|
/*! *****************************************************************************
|
|
480
480
|
Copyright (c) Microsoft Corporation.
|
|
481
481
|
|
|
@@ -490,43 +490,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
490
490
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
491
491
|
PERFORMANCE OF THIS SOFTWARE.
|
|
492
492
|
***************************************************************************** */
|
|
493
|
-
var
|
|
494
|
-
return
|
|
493
|
+
var Fe = function(e, t) {
|
|
494
|
+
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
495
495
|
r.__proto__ = n;
|
|
496
496
|
} || function(r, n) {
|
|
497
497
|
for (var i in n)
|
|
498
498
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
499
|
-
},
|
|
499
|
+
}, Fe(e, t);
|
|
500
500
|
};
|
|
501
|
-
function
|
|
501
|
+
function he(e, t) {
|
|
502
502
|
if (typeof t != "function" && t !== null)
|
|
503
503
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
504
|
-
|
|
504
|
+
Fe(e, t);
|
|
505
505
|
function r() {
|
|
506
506
|
this.constructor = e;
|
|
507
507
|
}
|
|
508
508
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
509
509
|
}
|
|
510
|
-
|
|
511
|
-
return _ = Object.assign || function(t) {
|
|
512
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
513
|
-
r = arguments[n];
|
|
514
|
-
for (var o in r)
|
|
515
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
516
|
-
}
|
|
517
|
-
return t;
|
|
518
|
-
}, _.apply(this, arguments);
|
|
519
|
-
};
|
|
520
|
-
function Kr(e, t) {
|
|
521
|
-
var r = {};
|
|
522
|
-
for (var n in e)
|
|
523
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
524
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
525
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
526
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
527
|
-
return r;
|
|
528
|
-
}
|
|
529
|
-
function De(e) {
|
|
510
|
+
function Ge(e) {
|
|
530
511
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
531
512
|
if (r)
|
|
532
513
|
return r.call(e);
|
|
@@ -538,7 +519,7 @@ function De(e) {
|
|
|
538
519
|
};
|
|
539
520
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
540
521
|
}
|
|
541
|
-
function
|
|
522
|
+
function ke(e, t) {
|
|
542
523
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
543
524
|
if (!r)
|
|
544
525
|
return e;
|
|
@@ -558,22 +539,22 @@ function Fe(e, t) {
|
|
|
558
539
|
}
|
|
559
540
|
return o;
|
|
560
541
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
542
|
+
function je(e, t, r) {
|
|
543
|
+
if (arguments.length === 2)
|
|
563
544
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
564
545
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
565
546
|
return e.concat(o || t);
|
|
566
547
|
}
|
|
567
|
-
function
|
|
548
|
+
function $(e) {
|
|
568
549
|
return typeof e == "function";
|
|
569
550
|
}
|
|
570
|
-
function
|
|
551
|
+
function Ft(e) {
|
|
571
552
|
var t = function(n) {
|
|
572
553
|
Error.call(n), n.stack = new Error().stack;
|
|
573
554
|
}, r = e(t);
|
|
574
555
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
575
556
|
}
|
|
576
|
-
var
|
|
557
|
+
var Pe = Ft(function(e) {
|
|
577
558
|
return function(r) {
|
|
578
559
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
579
560
|
` + r.map(function(n, i) {
|
|
@@ -582,13 +563,13 @@ var Ae = Ut(function(e) {
|
|
|
582
563
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
583
564
|
};
|
|
584
565
|
});
|
|
585
|
-
function
|
|
566
|
+
function Ve(e, t) {
|
|
586
567
|
if (e) {
|
|
587
568
|
var r = e.indexOf(t);
|
|
588
569
|
0 <= r && e.splice(r, 1);
|
|
589
570
|
}
|
|
590
571
|
}
|
|
591
|
-
var
|
|
572
|
+
var xe = function() {
|
|
592
573
|
function e(t) {
|
|
593
574
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
594
575
|
}
|
|
@@ -600,7 +581,7 @@ var Ee = function() {
|
|
|
600
581
|
if (s)
|
|
601
582
|
if (this._parentage = null, Array.isArray(s))
|
|
602
583
|
try {
|
|
603
|
-
for (var a =
|
|
584
|
+
for (var a = Ge(s), l = a.next(); !l.done; l = a.next()) {
|
|
604
585
|
var u = l.value;
|
|
605
586
|
u.remove(this);
|
|
606
587
|
}
|
|
@@ -617,22 +598,22 @@ var Ee = function() {
|
|
|
617
598
|
else
|
|
618
599
|
s.remove(this);
|
|
619
600
|
var h = this.initialTeardown;
|
|
620
|
-
if (
|
|
601
|
+
if ($(h))
|
|
621
602
|
try {
|
|
622
603
|
h();
|
|
623
604
|
} catch (m) {
|
|
624
|
-
o = m instanceof
|
|
605
|
+
o = m instanceof Pe ? m.errors : [m];
|
|
625
606
|
}
|
|
626
607
|
var c = this._finalizers;
|
|
627
608
|
if (c) {
|
|
628
609
|
this._finalizers = null;
|
|
629
610
|
try {
|
|
630
|
-
for (var f =
|
|
611
|
+
for (var f = Ge(c), p = f.next(); !p.done; p = f.next()) {
|
|
631
612
|
var d = p.value;
|
|
632
613
|
try {
|
|
633
|
-
|
|
614
|
+
ft(d);
|
|
634
615
|
} catch (m) {
|
|
635
|
-
o = o != null ? o : [], m instanceof
|
|
616
|
+
o = o != null ? o : [], m instanceof Pe ? o = je(je([], ke(o)), ke(m.errors)) : o.push(m);
|
|
636
617
|
}
|
|
637
618
|
}
|
|
638
619
|
} catch (m) {
|
|
@@ -647,13 +628,13 @@ var Ee = function() {
|
|
|
647
628
|
}
|
|
648
629
|
}
|
|
649
630
|
if (o)
|
|
650
|
-
throw new
|
|
631
|
+
throw new Pe(o);
|
|
651
632
|
}
|
|
652
633
|
}, e.prototype.add = function(t) {
|
|
653
634
|
var r;
|
|
654
635
|
if (t && t !== this)
|
|
655
636
|
if (this.closed)
|
|
656
|
-
|
|
637
|
+
ft(t);
|
|
657
638
|
else {
|
|
658
639
|
if (t instanceof e) {
|
|
659
640
|
if (t.closed || t._hasParent(this))
|
|
@@ -670,56 +651,52 @@ var Ee = function() {
|
|
|
670
651
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
671
652
|
}, e.prototype._removeParent = function(t) {
|
|
672
653
|
var r = this._parentage;
|
|
673
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
654
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ve(r, t);
|
|
674
655
|
}, e.prototype.remove = function(t) {
|
|
675
656
|
var r = this._finalizers;
|
|
676
|
-
r &&
|
|
657
|
+
r && Ve(r, t), t instanceof e && t._removeParent(this);
|
|
677
658
|
}, e.EMPTY = function() {
|
|
678
659
|
var t = new e();
|
|
679
660
|
return t.closed = !0, t;
|
|
680
661
|
}(), e;
|
|
681
|
-
}(),
|
|
682
|
-
function
|
|
683
|
-
return e instanceof
|
|
684
|
-
}
|
|
685
|
-
function
|
|
686
|
-
|
|
687
|
-
}
|
|
688
|
-
var
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
Promise: void 0,
|
|
692
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
693
|
-
useDeprecatedNextContext: !1
|
|
694
|
-
}, en = {
|
|
662
|
+
}(), Gt = xe.EMPTY;
|
|
663
|
+
function kt(e) {
|
|
664
|
+
return e instanceof xe || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
665
|
+
}
|
|
666
|
+
function ft(e) {
|
|
667
|
+
$(e) ? e() : e.unsubscribe();
|
|
668
|
+
}
|
|
669
|
+
var en = {
|
|
670
|
+
Promise: void 0
|
|
671
|
+
}, tn = {
|
|
695
672
|
setTimeout: function(e, t) {
|
|
696
673
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
697
674
|
r[n - 2] = arguments[n];
|
|
698
|
-
return setTimeout.apply(void 0,
|
|
675
|
+
return setTimeout.apply(void 0, je([e, t], ke(r)));
|
|
699
676
|
},
|
|
700
677
|
clearTimeout: function(e) {
|
|
701
678
|
return clearTimeout(e);
|
|
702
679
|
},
|
|
703
680
|
delegate: void 0
|
|
704
681
|
};
|
|
705
|
-
function
|
|
706
|
-
|
|
682
|
+
function rn(e) {
|
|
683
|
+
tn.setTimeout(function() {
|
|
707
684
|
throw e;
|
|
708
685
|
});
|
|
709
686
|
}
|
|
710
|
-
function
|
|
687
|
+
function mt() {
|
|
711
688
|
}
|
|
712
689
|
function be(e) {
|
|
713
690
|
e();
|
|
714
691
|
}
|
|
715
|
-
var
|
|
716
|
-
|
|
692
|
+
var jt = function(e) {
|
|
693
|
+
he(t, e);
|
|
717
694
|
function t(r) {
|
|
718
695
|
var n = e.call(this) || this;
|
|
719
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
696
|
+
return n.isStopped = !1, r ? (n.destination = r, kt(r) && r.add(n)) : n.destination = sn, n;
|
|
720
697
|
}
|
|
721
698
|
return t.create = function(r, n, i) {
|
|
722
|
-
return new
|
|
699
|
+
return new Xe(r, n, i);
|
|
723
700
|
}, t.prototype.next = function(r) {
|
|
724
701
|
this.isStopped || this._next(r);
|
|
725
702
|
}, t.prototype.error = function(r) {
|
|
@@ -743,11 +720,7 @@ var kt = function(e) {
|
|
|
743
720
|
this.unsubscribe();
|
|
744
721
|
}
|
|
745
722
|
}, t;
|
|
746
|
-
}(
|
|
747
|
-
function Pe(e, t) {
|
|
748
|
-
return rn.call(e, t);
|
|
749
|
-
}
|
|
750
|
-
var nn = function() {
|
|
723
|
+
}(xe), nn = function() {
|
|
751
724
|
function e(t) {
|
|
752
725
|
this.partialObserver = t;
|
|
753
726
|
}
|
|
@@ -778,41 +751,29 @@ var nn = function() {
|
|
|
778
751
|
me(r);
|
|
779
752
|
}
|
|
780
753
|
}, e;
|
|
781
|
-
}(),
|
|
782
|
-
|
|
754
|
+
}(), Xe = function(e) {
|
|
755
|
+
he(t, e);
|
|
783
756
|
function t(r, n, i) {
|
|
784
757
|
var o = e.call(this) || this, s;
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
};
|
|
791
|
-
else {
|
|
792
|
-
var a;
|
|
793
|
-
o && Gt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
794
|
-
return o.unsubscribe();
|
|
795
|
-
}, s = {
|
|
796
|
-
next: r.next && Pe(r.next, a),
|
|
797
|
-
error: r.error && Pe(r.error, a),
|
|
798
|
-
complete: r.complete && Pe(r.complete, a)
|
|
799
|
-
}) : s = r;
|
|
800
|
-
}
|
|
801
|
-
return o.destination = new nn(s), o;
|
|
758
|
+
return $(r) || !r ? s = {
|
|
759
|
+
next: r != null ? r : void 0,
|
|
760
|
+
error: n != null ? n : void 0,
|
|
761
|
+
complete: i != null ? i : void 0
|
|
762
|
+
} : s = r, o.destination = new nn(s), o;
|
|
802
763
|
}
|
|
803
764
|
return t;
|
|
804
|
-
}(
|
|
765
|
+
}(jt);
|
|
805
766
|
function me(e) {
|
|
806
|
-
|
|
767
|
+
rn(e);
|
|
807
768
|
}
|
|
808
769
|
function on(e) {
|
|
809
770
|
throw e;
|
|
810
771
|
}
|
|
811
772
|
var sn = {
|
|
812
773
|
closed: !0,
|
|
813
|
-
next:
|
|
774
|
+
next: mt,
|
|
814
775
|
error: on,
|
|
815
|
-
complete:
|
|
776
|
+
complete: mt
|
|
816
777
|
}, an = function() {
|
|
817
778
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
818
779
|
}();
|
|
@@ -826,7 +787,7 @@ function ln(e) {
|
|
|
826
787
|
}, r);
|
|
827
788
|
};
|
|
828
789
|
}
|
|
829
|
-
var
|
|
790
|
+
var pt = function() {
|
|
830
791
|
function e(t) {
|
|
831
792
|
t && (this._subscribe = t);
|
|
832
793
|
}
|
|
@@ -834,7 +795,7 @@ var ft = function() {
|
|
|
834
795
|
var r = new e();
|
|
835
796
|
return r.source = this, r.operator = t, r;
|
|
836
797
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
837
|
-
var i = this, o = cn(t) ? t : new
|
|
798
|
+
var i = this, o = cn(t) ? t : new Xe(t, r, n);
|
|
838
799
|
return be(function() {
|
|
839
800
|
var s = i, a = s.operator, l = s.source;
|
|
840
801
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -847,8 +808,8 @@ var ft = function() {
|
|
|
847
808
|
}
|
|
848
809
|
}, e.prototype.forEach = function(t, r) {
|
|
849
810
|
var n = this;
|
|
850
|
-
return r =
|
|
851
|
-
var s = new
|
|
811
|
+
return r = dt(r), new r(function(i, o) {
|
|
812
|
+
var s = new Xe({
|
|
852
813
|
next: function(a) {
|
|
853
814
|
try {
|
|
854
815
|
t(a);
|
|
@@ -872,7 +833,7 @@ var ft = function() {
|
|
|
872
833
|
return ln(t)(this);
|
|
873
834
|
}, e.prototype.toPromise = function(t) {
|
|
874
835
|
var r = this;
|
|
875
|
-
return t =
|
|
836
|
+
return t = dt(t), new t(function(n, i) {
|
|
876
837
|
var o;
|
|
877
838
|
r.subscribe(function(s) {
|
|
878
839
|
return o = s;
|
|
@@ -886,28 +847,28 @@ var ft = function() {
|
|
|
886
847
|
return new e(t);
|
|
887
848
|
}, e;
|
|
888
849
|
}();
|
|
889
|
-
function
|
|
850
|
+
function dt(e) {
|
|
890
851
|
var t;
|
|
891
|
-
return (t = e != null ? e :
|
|
852
|
+
return (t = e != null ? e : en.Promise) !== null && t !== void 0 ? t : Promise;
|
|
892
853
|
}
|
|
893
854
|
function hn(e) {
|
|
894
|
-
return e &&
|
|
855
|
+
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
895
856
|
}
|
|
896
857
|
function cn(e) {
|
|
897
|
-
return e && e instanceof
|
|
858
|
+
return e && e instanceof jt || hn(e) && kt(e);
|
|
898
859
|
}
|
|
899
|
-
var fn =
|
|
860
|
+
var fn = Ft(function(e) {
|
|
900
861
|
return function() {
|
|
901
862
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
902
863
|
};
|
|
903
|
-
}),
|
|
904
|
-
|
|
864
|
+
}), Vt = function(e) {
|
|
865
|
+
he(t, e);
|
|
905
866
|
function t() {
|
|
906
867
|
var r = e.call(this) || this;
|
|
907
868
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
908
869
|
}
|
|
909
870
|
return t.prototype.lift = function(r) {
|
|
910
|
-
var n = new
|
|
871
|
+
var n = new bt(this, this);
|
|
911
872
|
return n.operator = r, n;
|
|
912
873
|
}, t.prototype._throwIfClosed = function() {
|
|
913
874
|
if (this.closed)
|
|
@@ -919,7 +880,7 @@ var fn = Ut(function(e) {
|
|
|
919
880
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
920
881
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
921
882
|
try {
|
|
922
|
-
for (var s =
|
|
883
|
+
for (var s = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
923
884
|
var l = a.value;
|
|
924
885
|
l.next(r);
|
|
925
886
|
}
|
|
@@ -968,20 +929,20 @@ var fn = Ut(function(e) {
|
|
|
968
929
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
969
930
|
}, t.prototype._innerSubscribe = function(r) {
|
|
970
931
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
971
|
-
return o || s ?
|
|
972
|
-
n.currentObservers = null,
|
|
932
|
+
return o || s ? Gt : (this.currentObservers = null, a.push(r), new xe(function() {
|
|
933
|
+
n.currentObservers = null, Ve(a, r);
|
|
973
934
|
}));
|
|
974
935
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
975
936
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
976
937
|
i ? r.error(o) : s && r.complete();
|
|
977
938
|
}, t.prototype.asObservable = function() {
|
|
978
|
-
var r = new
|
|
939
|
+
var r = new pt();
|
|
979
940
|
return r.source = this, r;
|
|
980
941
|
}, t.create = function(r, n) {
|
|
981
|
-
return new
|
|
942
|
+
return new bt(r, n);
|
|
982
943
|
}, t;
|
|
983
|
-
}(
|
|
984
|
-
|
|
944
|
+
}(pt), bt = function(e) {
|
|
945
|
+
he(t, e);
|
|
985
946
|
function t(r, n) {
|
|
986
947
|
var i = e.call(this) || this;
|
|
987
948
|
return i.destination = r, i.source = n, i;
|
|
@@ -997,17 +958,17 @@ var fn = Ut(function(e) {
|
|
|
997
958
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
998
959
|
}, t.prototype._subscribe = function(r) {
|
|
999
960
|
var n, i;
|
|
1000
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
961
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gt;
|
|
1001
962
|
}, t;
|
|
1002
|
-
}(
|
|
963
|
+
}(Vt), Xt = {
|
|
1003
964
|
now: function() {
|
|
1004
|
-
return (
|
|
965
|
+
return (Xt.delegate || Date).now();
|
|
1005
966
|
},
|
|
1006
967
|
delegate: void 0
|
|
1007
968
|
}, mn = function(e) {
|
|
1008
|
-
|
|
969
|
+
he(t, e);
|
|
1009
970
|
function t(r, n, i) {
|
|
1010
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
971
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Xt);
|
|
1011
972
|
var o = e.call(this) || this;
|
|
1012
973
|
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;
|
|
1013
974
|
}
|
|
@@ -1027,24 +988,24 @@ var fn = Ut(function(e) {
|
|
|
1027
988
|
u && o.splice(0, u + 1);
|
|
1028
989
|
}
|
|
1029
990
|
}, t;
|
|
1030
|
-
}(
|
|
1031
|
-
const
|
|
1032
|
-
if (
|
|
991
|
+
}(Vt);
|
|
992
|
+
const gt = [], yt = {}, pn = (e, t = 0) => {
|
|
993
|
+
if (gt.indexOf(e) == -1) {
|
|
1033
994
|
const r = new mn(t);
|
|
1034
|
-
|
|
995
|
+
yt[e] = r, gt.push(e);
|
|
1035
996
|
}
|
|
1036
|
-
return
|
|
997
|
+
return yt[e];
|
|
1037
998
|
}, W = [];
|
|
1038
999
|
function dn(e, t) {
|
|
1039
1000
|
return {
|
|
1040
|
-
subscribe:
|
|
1001
|
+
subscribe: Be(e, t).subscribe
|
|
1041
1002
|
};
|
|
1042
1003
|
}
|
|
1043
|
-
function
|
|
1004
|
+
function Be(e, t = C) {
|
|
1044
1005
|
let r;
|
|
1045
1006
|
const n = /* @__PURE__ */ new Set();
|
|
1046
1007
|
function i(a) {
|
|
1047
|
-
if (
|
|
1008
|
+
if ($t(e, a) && (e = a, r)) {
|
|
1048
1009
|
const l = !W.length;
|
|
1049
1010
|
for (const u of n)
|
|
1050
1011
|
u[1](), W.push(u, e);
|
|
@@ -1066,7 +1027,7 @@ function xe(e, t = C) {
|
|
|
1066
1027
|
}
|
|
1067
1028
|
return { set: i, update: o, subscribe: s };
|
|
1068
1029
|
}
|
|
1069
|
-
function
|
|
1030
|
+
function re(e, t, r) {
|
|
1070
1031
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1071
1032
|
if (!i.every(Boolean))
|
|
1072
1033
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1080,9 +1041,9 @@ function ne(e, t, r) {
|
|
|
1080
1041
|
return;
|
|
1081
1042
|
c();
|
|
1082
1043
|
const d = t(n ? u[0] : u, s, a);
|
|
1083
|
-
o ? s(d) : c =
|
|
1044
|
+
o ? s(d) : c = tt(d) ? d : C;
|
|
1084
1045
|
}, p = i.map(
|
|
1085
|
-
(d, m) =>
|
|
1046
|
+
(d, m) => Ut(
|
|
1086
1047
|
d,
|
|
1087
1048
|
(v) => {
|
|
1088
1049
|
u[m] = v, h &= ~(1 << m), l && f();
|
|
@@ -1117,29 +1078,29 @@ function xn(e) {
|
|
|
1117
1078
|
function Bn(e) {
|
|
1118
1079
|
return Array.isArray(e) ? [] : {};
|
|
1119
1080
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1081
|
+
function ue(e, t) {
|
|
1082
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(Bn(e), e, t) : e;
|
|
1122
1083
|
}
|
|
1123
1084
|
function Sn(e, t, r) {
|
|
1124
1085
|
return e.concat(t).map(function(n) {
|
|
1125
|
-
return
|
|
1086
|
+
return ue(n, r);
|
|
1126
1087
|
});
|
|
1127
1088
|
}
|
|
1128
1089
|
function wn(e, t) {
|
|
1129
1090
|
if (!t.customMerge)
|
|
1130
|
-
return
|
|
1091
|
+
return q;
|
|
1131
1092
|
var r = t.customMerge(e);
|
|
1132
|
-
return typeof r == "function" ? r :
|
|
1093
|
+
return typeof r == "function" ? r : q;
|
|
1133
1094
|
}
|
|
1134
1095
|
function Hn(e) {
|
|
1135
1096
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1136
1097
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1137
1098
|
}) : [];
|
|
1138
1099
|
}
|
|
1139
|
-
function
|
|
1100
|
+
function vt(e) {
|
|
1140
1101
|
return Object.keys(e).concat(Hn(e));
|
|
1141
1102
|
}
|
|
1142
|
-
function
|
|
1103
|
+
function zt(e, t) {
|
|
1143
1104
|
try {
|
|
1144
1105
|
return t in e;
|
|
1145
1106
|
} catch (r) {
|
|
@@ -1147,129 +1108,179 @@ function Xt(e, t) {
|
|
|
1147
1108
|
}
|
|
1148
1109
|
}
|
|
1149
1110
|
function Tn(e, t) {
|
|
1150
|
-
return
|
|
1111
|
+
return zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1151
1112
|
}
|
|
1152
1113
|
function An(e, t, r) {
|
|
1153
1114
|
var n = {};
|
|
1154
|
-
return r.isMergeableObject(e) &&
|
|
1155
|
-
n[i] =
|
|
1156
|
-
}),
|
|
1157
|
-
Tn(e, i) || (
|
|
1115
|
+
return r.isMergeableObject(e) && vt(e).forEach(function(i) {
|
|
1116
|
+
n[i] = ue(e[i], r);
|
|
1117
|
+
}), vt(t).forEach(function(i) {
|
|
1118
|
+
Tn(e, i) || (zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
|
|
1158
1119
|
}), n;
|
|
1159
1120
|
}
|
|
1160
|
-
function
|
|
1161
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || gn, r.cloneUnlessOtherwiseSpecified =
|
|
1121
|
+
function q(e, t, r) {
|
|
1122
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Sn, r.isMergeableObject = r.isMergeableObject || gn, r.cloneUnlessOtherwiseSpecified = ue;
|
|
1162
1123
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1163
|
-
return o ? n ? r.arrayMerge(e, t, r) : An(e, t, r) :
|
|
1124
|
+
return o ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : ue(t, r);
|
|
1164
1125
|
}
|
|
1165
|
-
|
|
1126
|
+
q.all = function(t, r) {
|
|
1166
1127
|
if (!Array.isArray(t))
|
|
1167
1128
|
throw new Error("first argument should be an array");
|
|
1168
1129
|
return t.reduce(function(n, i) {
|
|
1169
|
-
return
|
|
1130
|
+
return q(n, i, r);
|
|
1170
1131
|
}, {});
|
|
1171
1132
|
};
|
|
1172
|
-
var
|
|
1173
|
-
const
|
|
1174
|
-
function
|
|
1175
|
-
|
|
1133
|
+
var On = q, Pn = On;
|
|
1134
|
+
const In = /* @__PURE__ */ bn(Pn);
|
|
1135
|
+
var ze = function(e, t) {
|
|
1136
|
+
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1137
|
+
r.__proto__ = n;
|
|
1138
|
+
} || function(r, n) {
|
|
1139
|
+
for (var i in n)
|
|
1140
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1141
|
+
}, ze(e, t);
|
|
1142
|
+
};
|
|
1143
|
+
function Se(e, t) {
|
|
1144
|
+
if (typeof t != "function" && t !== null)
|
|
1145
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1146
|
+
ze(e, t);
|
|
1147
|
+
function r() {
|
|
1148
|
+
this.constructor = e;
|
|
1149
|
+
}
|
|
1150
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1151
|
+
}
|
|
1152
|
+
var L = function() {
|
|
1153
|
+
return L = Object.assign || function(t) {
|
|
1154
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1155
|
+
r = arguments[n];
|
|
1156
|
+
for (var o in r)
|
|
1157
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1158
|
+
}
|
|
1159
|
+
return t;
|
|
1160
|
+
}, L.apply(this, arguments);
|
|
1161
|
+
};
|
|
1162
|
+
function Cn(e, t) {
|
|
1163
|
+
var r = {};
|
|
1164
|
+
for (var n in e)
|
|
1165
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1166
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1167
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1168
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1169
|
+
return r;
|
|
1170
|
+
}
|
|
1171
|
+
function Ie(e, t, r) {
|
|
1172
|
+
if (r || arguments.length === 2)
|
|
1173
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1174
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1175
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1176
|
+
}
|
|
1177
|
+
function Ce(e, t) {
|
|
1178
|
+
var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Mn;
|
|
1176
1179
|
return i(e, {
|
|
1177
1180
|
cache: r,
|
|
1178
1181
|
serializer: n
|
|
1179
1182
|
});
|
|
1180
1183
|
}
|
|
1181
|
-
function
|
|
1184
|
+
function Nn(e) {
|
|
1182
1185
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1183
1186
|
}
|
|
1184
|
-
function
|
|
1185
|
-
var i =
|
|
1187
|
+
function Ln(e, t, r, n) {
|
|
1188
|
+
var i = Nn(n) ? n : r(n), o = t.get(i);
|
|
1186
1189
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1187
1190
|
}
|
|
1188
1191
|
function Wt(e, t, r) {
|
|
1189
1192
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1190
1193
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1191
1194
|
}
|
|
1192
|
-
function
|
|
1195
|
+
function Zt(e, t, r, n, i) {
|
|
1193
1196
|
return r.bind(t, e, n, i);
|
|
1194
1197
|
}
|
|
1195
|
-
function Ln(e, t) {
|
|
1196
|
-
var r = e.length === 1 ? zt : Wt;
|
|
1197
|
-
return qe(e, this, r, t.cache.create(), t.serializer);
|
|
1198
|
-
}
|
|
1199
|
-
function Nn(e, t) {
|
|
1200
|
-
return qe(e, this, Wt, t.cache.create(), t.serializer);
|
|
1201
|
-
}
|
|
1202
1198
|
function Mn(e, t) {
|
|
1203
|
-
|
|
1199
|
+
var r = e.length === 1 ? Ln : Wt;
|
|
1200
|
+
return Zt(e, this, r, t.cache.create(), t.serializer);
|
|
1204
1201
|
}
|
|
1205
|
-
|
|
1206
|
-
return
|
|
1207
|
-
};
|
|
1208
|
-
function Ke() {
|
|
1209
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1202
|
+
function Rn(e, t) {
|
|
1203
|
+
return Zt(e, this, Wt, t.cache.create(), t.serializer);
|
|
1210
1204
|
}
|
|
1211
|
-
|
|
1212
|
-
return
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1205
|
+
var $n = function() {
|
|
1206
|
+
return JSON.stringify(arguments);
|
|
1207
|
+
}, Un = (
|
|
1208
|
+
/** @class */
|
|
1209
|
+
function() {
|
|
1210
|
+
function e() {
|
|
1211
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1212
|
+
}
|
|
1213
|
+
return e.prototype.get = function(t) {
|
|
1214
|
+
return this.cache[t];
|
|
1215
|
+
}, e.prototype.set = function(t, r) {
|
|
1216
|
+
this.cache[t] = r;
|
|
1217
|
+
}, e;
|
|
1218
|
+
}()
|
|
1219
|
+
), Dn = {
|
|
1218
1220
|
create: function() {
|
|
1219
|
-
return new
|
|
1221
|
+
return new Un();
|
|
1220
1222
|
}
|
|
1221
|
-
},
|
|
1222
|
-
variadic:
|
|
1223
|
-
|
|
1224
|
-
|
|
1223
|
+
}, Ne = {
|
|
1224
|
+
variadic: Rn
|
|
1225
|
+
}, ve = function() {
|
|
1226
|
+
return ve = Object.assign || function(t) {
|
|
1227
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1228
|
+
r = arguments[n];
|
|
1229
|
+
for (var o in r)
|
|
1230
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1231
|
+
}
|
|
1232
|
+
return t;
|
|
1233
|
+
}, ve.apply(this, arguments);
|
|
1234
|
+
};
|
|
1235
|
+
var g;
|
|
1225
1236
|
(function(e) {
|
|
1226
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";
|
|
1227
1238
|
})(g || (g = {}));
|
|
1228
|
-
var
|
|
1239
|
+
var E;
|
|
1229
1240
|
(function(e) {
|
|
1230
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";
|
|
1231
|
-
})(
|
|
1232
|
-
var
|
|
1242
|
+
})(E || (E = {}));
|
|
1243
|
+
var K;
|
|
1233
1244
|
(function(e) {
|
|
1234
1245
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1235
|
-
})(
|
|
1236
|
-
function
|
|
1237
|
-
return e.type ===
|
|
1238
|
-
}
|
|
1239
|
-
function Un(e) {
|
|
1240
|
-
return e.type === x.argument;
|
|
1246
|
+
})(K || (K = {}));
|
|
1247
|
+
function _t(e) {
|
|
1248
|
+
return e.type === E.literal;
|
|
1241
1249
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return e.type ===
|
|
1250
|
+
function Fn(e) {
|
|
1251
|
+
return e.type === E.argument;
|
|
1244
1252
|
}
|
|
1245
1253
|
function Jt(e) {
|
|
1246
|
-
return e.type ===
|
|
1254
|
+
return e.type === E.number;
|
|
1247
1255
|
}
|
|
1248
1256
|
function Qt(e) {
|
|
1249
|
-
return e.type ===
|
|
1257
|
+
return e.type === E.date;
|
|
1250
1258
|
}
|
|
1251
1259
|
function Yt(e) {
|
|
1252
|
-
return e.type ===
|
|
1260
|
+
return e.type === E.time;
|
|
1253
1261
|
}
|
|
1254
1262
|
function qt(e) {
|
|
1255
|
-
return e.type ===
|
|
1256
|
-
}
|
|
1257
|
-
function Dn(e) {
|
|
1258
|
-
return e.type === x.pound;
|
|
1263
|
+
return e.type === E.select;
|
|
1259
1264
|
}
|
|
1260
1265
|
function Kt(e) {
|
|
1261
|
-
return e.type ===
|
|
1266
|
+
return e.type === E.plural;
|
|
1267
|
+
}
|
|
1268
|
+
function Gn(e) {
|
|
1269
|
+
return e.type === E.pound;
|
|
1262
1270
|
}
|
|
1263
1271
|
function er(e) {
|
|
1264
|
-
return
|
|
1272
|
+
return e.type === E.tag;
|
|
1265
1273
|
}
|
|
1266
|
-
function
|
|
1267
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1274
|
+
function tr(e) {
|
|
1275
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1268
1276
|
}
|
|
1269
|
-
|
|
1270
|
-
|
|
1277
|
+
function We(e) {
|
|
1278
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1279
|
+
}
|
|
1280
|
+
var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kn = /(?:[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 jn(e) {
|
|
1271
1282
|
var t = {};
|
|
1272
|
-
return e.replace(
|
|
1283
|
+
return e.replace(kn, function(r) {
|
|
1273
1284
|
var n = r.length;
|
|
1274
1285
|
switch (r[0]) {
|
|
1275
1286
|
case "G":
|
|
@@ -1358,11 +1369,21 @@ function Gn(e) {
|
|
|
1358
1369
|
return "";
|
|
1359
1370
|
}), t;
|
|
1360
1371
|
}
|
|
1361
|
-
var
|
|
1362
|
-
function
|
|
1372
|
+
var x = function() {
|
|
1373
|
+
return x = Object.assign || function(t) {
|
|
1374
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1375
|
+
r = arguments[n];
|
|
1376
|
+
for (var o in r)
|
|
1377
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1378
|
+
}
|
|
1379
|
+
return t;
|
|
1380
|
+
}, x.apply(this, arguments);
|
|
1381
|
+
};
|
|
1382
|
+
var Vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1383
|
+
function Xn(e) {
|
|
1363
1384
|
if (e.length === 0)
|
|
1364
1385
|
throw new Error("Number skeleton cannot be empty");
|
|
1365
|
-
for (var t = e.split(
|
|
1386
|
+
for (var t = e.split(Vn).filter(function(f) {
|
|
1366
1387
|
return f.length > 0;
|
|
1367
1388
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1368
1389
|
var o = i[n], s = o.split("/");
|
|
@@ -1377,17 +1398,17 @@ function jn(e) {
|
|
|
1377
1398
|
}
|
|
1378
1399
|
return r;
|
|
1379
1400
|
}
|
|
1380
|
-
function
|
|
1401
|
+
function zn(e) {
|
|
1381
1402
|
return e.replace(/^(.*?)-/, "");
|
|
1382
1403
|
}
|
|
1383
|
-
var
|
|
1384
|
-
function
|
|
1404
|
+
var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, ir = /^(0+)$/;
|
|
1405
|
+
function xt(e) {
|
|
1385
1406
|
var t = {};
|
|
1386
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1407
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(r, n, i) {
|
|
1387
1408
|
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)), "";
|
|
1388
1409
|
}), t;
|
|
1389
1410
|
}
|
|
1390
|
-
function
|
|
1411
|
+
function or(e) {
|
|
1391
1412
|
switch (e) {
|
|
1392
1413
|
case "sign-auto":
|
|
1393
1414
|
return {
|
|
@@ -1427,7 +1448,7 @@ function ir(e) {
|
|
|
1427
1448
|
};
|
|
1428
1449
|
}
|
|
1429
1450
|
}
|
|
1430
|
-
function
|
|
1451
|
+
function Zn(e) {
|
|
1431
1452
|
var t;
|
|
1432
1453
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1433
1454
|
notation: "engineering"
|
|
@@ -1435,17 +1456,17 @@ function zn(e) {
|
|
|
1435
1456
|
notation: "scientific"
|
|
1436
1457
|
}, e = e.slice(1)), t) {
|
|
1437
1458
|
var r = e.slice(0, 2);
|
|
1438
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1459
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ir.test(e))
|
|
1439
1460
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1440
1461
|
t.minimumIntegerDigits = e.length;
|
|
1441
1462
|
}
|
|
1442
1463
|
return t;
|
|
1443
1464
|
}
|
|
1444
|
-
function
|
|
1445
|
-
var t = {}, r =
|
|
1465
|
+
function Bt(e) {
|
|
1466
|
+
var t = {}, r = or(e);
|
|
1446
1467
|
return r || t;
|
|
1447
1468
|
}
|
|
1448
|
-
function
|
|
1469
|
+
function Jn(e) {
|
|
1449
1470
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1450
1471
|
var i = n[r];
|
|
1451
1472
|
switch (i.stem) {
|
|
@@ -1469,7 +1490,7 @@ function Wn(e) {
|
|
|
1469
1490
|
continue;
|
|
1470
1491
|
case "measure-unit":
|
|
1471
1492
|
case "unit":
|
|
1472
|
-
t.style = "unit", t.unit =
|
|
1493
|
+
t.style = "unit", t.unit = zn(i.options[0]);
|
|
1473
1494
|
continue;
|
|
1474
1495
|
case "compact-short":
|
|
1475
1496
|
case "K":
|
|
@@ -1480,13 +1501,13 @@ function Wn(e) {
|
|
|
1480
1501
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1481
1502
|
continue;
|
|
1482
1503
|
case "scientific":
|
|
1483
|
-
t =
|
|
1484
|
-
return
|
|
1504
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1505
|
+
return x(x({}, l), Bt(u));
|
|
1485
1506
|
}, {}));
|
|
1486
1507
|
continue;
|
|
1487
1508
|
case "engineering":
|
|
1488
|
-
t =
|
|
1489
|
-
return
|
|
1509
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1510
|
+
return x(x({}, l), Bt(u));
|
|
1490
1511
|
}, {}));
|
|
1491
1512
|
continue;
|
|
1492
1513
|
case "notation-simple":
|
|
@@ -1531,7 +1552,7 @@ function Wn(e) {
|
|
|
1531
1552
|
case "integer-width":
|
|
1532
1553
|
if (i.options.length > 1)
|
|
1533
1554
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1534
|
-
i.options[0].replace(
|
|
1555
|
+
i.options[0].replace(Wn, function(l, u, h, c, f, p) {
|
|
1535
1556
|
if (u)
|
|
1536
1557
|
t.minimumIntegerDigits = h.length;
|
|
1537
1558
|
else {
|
|
@@ -1544,28 +1565,28 @@ function Wn(e) {
|
|
|
1544
1565
|
});
|
|
1545
1566
|
continue;
|
|
1546
1567
|
}
|
|
1547
|
-
if (
|
|
1568
|
+
if (ir.test(i.stem)) {
|
|
1548
1569
|
t.minimumIntegerDigits = i.stem.length;
|
|
1549
1570
|
continue;
|
|
1550
1571
|
}
|
|
1551
|
-
if (
|
|
1572
|
+
if (Et.test(i.stem)) {
|
|
1552
1573
|
if (i.options.length > 1)
|
|
1553
1574
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1554
|
-
i.stem.replace(
|
|
1575
|
+
i.stem.replace(Et, function(l, u, h, c, f, p) {
|
|
1555
1576
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1556
1577
|
});
|
|
1557
1578
|
var o = i.options[0];
|
|
1558
|
-
o === "w" ? t =
|
|
1579
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), xt(o)));
|
|
1559
1580
|
continue;
|
|
1560
1581
|
}
|
|
1561
|
-
if (
|
|
1562
|
-
t =
|
|
1582
|
+
if (nr.test(i.stem)) {
|
|
1583
|
+
t = x(x({}, t), xt(i.stem));
|
|
1563
1584
|
continue;
|
|
1564
1585
|
}
|
|
1565
|
-
var s =
|
|
1566
|
-
s && (t =
|
|
1567
|
-
var a =
|
|
1568
|
-
a && (t =
|
|
1586
|
+
var s = or(i.stem);
|
|
1587
|
+
s && (t = x(x({}, t), s));
|
|
1588
|
+
var a = Zn(i.stem);
|
|
1589
|
+
a && (t = x(x({}, t), a));
|
|
1569
1590
|
}
|
|
1570
1591
|
return t;
|
|
1571
1592
|
}
|
|
@@ -2984,13 +3005,13 @@ var pe = {
|
|
|
2984
3005
|
"h"
|
|
2985
3006
|
]
|
|
2986
3007
|
};
|
|
2987
|
-
function
|
|
3008
|
+
function Qn(e, t) {
|
|
2988
3009
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2989
3010
|
var i = e.charAt(n);
|
|
2990
3011
|
if (i === "j") {
|
|
2991
3012
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2992
3013
|
o++, n++;
|
|
2993
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3014
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Yn(t);
|
|
2994
3015
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2995
3016
|
r += l;
|
|
2996
3017
|
for (; s-- > 0; )
|
|
@@ -3000,7 +3021,7 @@ function Zn(e, t) {
|
|
|
3000
3021
|
}
|
|
3001
3022
|
return r;
|
|
3002
3023
|
}
|
|
3003
|
-
function
|
|
3024
|
+
function Yn(e) {
|
|
3004
3025
|
var t = e.hourCycle;
|
|
3005
3026
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3006
3027
|
e.hourCycles && // @ts-ignore
|
|
@@ -3022,20 +3043,20 @@ function Jn(e) {
|
|
|
3022
3043
|
var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
|
|
3023
3044
|
return i[0];
|
|
3024
3045
|
}
|
|
3025
|
-
var
|
|
3046
|
+
var Le, qn = new RegExp("^".concat(rr.source, "*")), Kn = new RegExp("".concat(rr.source, "*$"));
|
|
3026
3047
|
function y(e, t) {
|
|
3027
3048
|
return { start: e, end: t };
|
|
3028
3049
|
}
|
|
3029
|
-
var
|
|
3050
|
+
var ei = !!String.prototype.startsWith && "_a".startsWith("a", 1), ti = !!String.fromCodePoint, ri = !!Object.fromEntries, ni = !!String.prototype.codePointAt, ii = !!String.prototype.trimStart, oi = !!String.prototype.trimEnd, si = !!Number.isSafeInteger, ai = si ? Number.isSafeInteger : function(e) {
|
|
3030
3051
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3031
|
-
},
|
|
3052
|
+
}, Ze = !0;
|
|
3032
3053
|
try {
|
|
3033
|
-
var
|
|
3034
|
-
|
|
3054
|
+
var ui = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3055
|
+
Ze = ((Le = ui.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
3035
3056
|
} catch (e) {
|
|
3036
|
-
|
|
3057
|
+
Ze = !1;
|
|
3037
3058
|
}
|
|
3038
|
-
var
|
|
3059
|
+
var St = ei ? (
|
|
3039
3060
|
// Native
|
|
3040
3061
|
function(t, r, n) {
|
|
3041
3062
|
return t.startsWith(r, n);
|
|
@@ -3045,7 +3066,7 @@ var xt = qn ? (
|
|
|
3045
3066
|
function(t, r, n) {
|
|
3046
3067
|
return t.slice(n, n + r.length) === r;
|
|
3047
3068
|
}
|
|
3048
|
-
),
|
|
3069
|
+
), Je = ti ? String.fromCodePoint : (
|
|
3049
3070
|
// IE11
|
|
3050
3071
|
function() {
|
|
3051
3072
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3057,9 +3078,9 @@ var xt = qn ? (
|
|
|
3057
3078
|
}
|
|
3058
3079
|
return n;
|
|
3059
3080
|
}
|
|
3060
|
-
),
|
|
3081
|
+
), wt = (
|
|
3061
3082
|
// native
|
|
3062
|
-
|
|
3083
|
+
ri ? Object.fromEntries : (
|
|
3063
3084
|
// Ponyfill
|
|
3064
3085
|
function(t) {
|
|
3065
3086
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3069,7 +3090,7 @@ var xt = qn ? (
|
|
|
3069
3090
|
return r;
|
|
3070
3091
|
}
|
|
3071
3092
|
)
|
|
3072
|
-
),
|
|
3093
|
+
), sr = ni ? (
|
|
3073
3094
|
// Native
|
|
3074
3095
|
function(t, r) {
|
|
3075
3096
|
return t.codePointAt(r);
|
|
@@ -3083,7 +3104,7 @@ var xt = qn ? (
|
|
|
3083
3104
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3084
3105
|
}
|
|
3085
3106
|
}
|
|
3086
|
-
),
|
|
3107
|
+
), li = ii ? (
|
|
3087
3108
|
// Native
|
|
3088
3109
|
function(t) {
|
|
3089
3110
|
return t.trimStart();
|
|
@@ -3091,9 +3112,9 @@ var xt = qn ? (
|
|
|
3091
3112
|
) : (
|
|
3092
3113
|
// Ponyfill
|
|
3093
3114
|
function(t) {
|
|
3094
|
-
return t.replace(
|
|
3115
|
+
return t.replace(qn, "");
|
|
3095
3116
|
}
|
|
3096
|
-
),
|
|
3117
|
+
), hi = oi ? (
|
|
3097
3118
|
// Native
|
|
3098
3119
|
function(t) {
|
|
3099
3120
|
return t.trimEnd();
|
|
@@ -3101,32 +3122,32 @@ var xt = qn ? (
|
|
|
3101
3122
|
) : (
|
|
3102
3123
|
// Ponyfill
|
|
3103
3124
|
function(t) {
|
|
3104
|
-
return t.replace(
|
|
3125
|
+
return t.replace(Kn, "");
|
|
3105
3126
|
}
|
|
3106
3127
|
);
|
|
3107
|
-
function
|
|
3128
|
+
function ar(e, t) {
|
|
3108
3129
|
return new RegExp(e, t);
|
|
3109
3130
|
}
|
|
3110
|
-
var
|
|
3111
|
-
if (
|
|
3112
|
-
var
|
|
3113
|
-
|
|
3131
|
+
var Qe;
|
|
3132
|
+
if (Ze) {
|
|
3133
|
+
var Ht = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3134
|
+
Qe = function(t, r) {
|
|
3114
3135
|
var n;
|
|
3115
|
-
|
|
3116
|
-
var i =
|
|
3136
|
+
Ht.lastIndex = r;
|
|
3137
|
+
var i = Ht.exec(t);
|
|
3117
3138
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3118
3139
|
};
|
|
3119
3140
|
} else
|
|
3120
|
-
|
|
3141
|
+
Qe = function(t, r) {
|
|
3121
3142
|
for (var n = []; ; ) {
|
|
3122
|
-
var i =
|
|
3123
|
-
if (i === void 0 ||
|
|
3143
|
+
var i = sr(t, r);
|
|
3144
|
+
if (i === void 0 || ur(i) || pi(i))
|
|
3124
3145
|
break;
|
|
3125
3146
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3126
3147
|
}
|
|
3127
|
-
return
|
|
3148
|
+
return Je.apply(void 0, n);
|
|
3128
3149
|
};
|
|
3129
|
-
var
|
|
3150
|
+
var ci = (
|
|
3130
3151
|
/** @class */
|
|
3131
3152
|
function() {
|
|
3132
3153
|
function e(t, r) {
|
|
@@ -3150,14 +3171,14 @@ var li = (
|
|
|
3150
3171
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3151
3172
|
var a = this.clonePosition();
|
|
3152
3173
|
this.bump(), i.push({
|
|
3153
|
-
type:
|
|
3174
|
+
type: E.pound,
|
|
3154
3175
|
location: y(a, this.clonePosition())
|
|
3155
3176
|
});
|
|
3156
3177
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3157
3178
|
if (n)
|
|
3158
3179
|
break;
|
|
3159
3180
|
return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3160
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3181
|
+
} else if (o === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
|
3161
3182
|
var s = this.parseTag(t, r);
|
|
3162
3183
|
if (s.err)
|
|
3163
3184
|
return s;
|
|
@@ -3178,7 +3199,7 @@ var li = (
|
|
|
3178
3199
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3179
3200
|
return {
|
|
3180
3201
|
val: {
|
|
3181
|
-
type:
|
|
3202
|
+
type: E.literal,
|
|
3182
3203
|
value: "<".concat(i, "/>"),
|
|
3183
3204
|
location: y(n, this.clonePosition())
|
|
3184
3205
|
},
|
|
@@ -3190,12 +3211,12 @@ var li = (
|
|
|
3190
3211
|
return o;
|
|
3191
3212
|
var s = o.val, a = this.clonePosition();
|
|
3192
3213
|
if (this.bumpIf("</")) {
|
|
3193
|
-
if (this.isEOF() || !
|
|
3214
|
+
if (this.isEOF() || !Ye(this.char()))
|
|
3194
3215
|
return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
|
|
3195
3216
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3196
3217
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3197
3218
|
val: {
|
|
3198
|
-
type:
|
|
3219
|
+
type: E.tag,
|
|
3199
3220
|
value: i,
|
|
3200
3221
|
children: s,
|
|
3201
3222
|
location: y(n, this.clonePosition())
|
|
@@ -3208,7 +3229,7 @@ var li = (
|
|
|
3208
3229
|
return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
|
|
3209
3230
|
}, e.prototype.parseTagName = function() {
|
|
3210
3231
|
var t = this.offset();
|
|
3211
|
-
for (this.bump(); !this.isEOF() &&
|
|
3232
|
+
for (this.bump(); !this.isEOF() && mi(this.char()); )
|
|
3212
3233
|
this.bump();
|
|
3213
3234
|
return this.message.slice(t, this.offset());
|
|
3214
3235
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3232,12 +3253,12 @@ var li = (
|
|
|
3232
3253
|
}
|
|
3233
3254
|
var l = y(n, this.clonePosition());
|
|
3234
3255
|
return {
|
|
3235
|
-
val: { type:
|
|
3256
|
+
val: { type: E.literal, value: i, location: l },
|
|
3236
3257
|
err: null
|
|
3237
3258
|
};
|
|
3238
3259
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3239
3260
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3240
|
-
!
|
|
3261
|
+
!fi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3241
3262
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3242
3263
|
if (this.isEOF() || this.char() !== 39)
|
|
3243
3264
|
return null;
|
|
@@ -3271,12 +3292,12 @@ var li = (
|
|
|
3271
3292
|
r.push(n);
|
|
3272
3293
|
this.bump();
|
|
3273
3294
|
}
|
|
3274
|
-
return
|
|
3295
|
+
return Je.apply(void 0, r);
|
|
3275
3296
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3276
3297
|
if (this.isEOF())
|
|
3277
3298
|
return null;
|
|
3278
3299
|
var n = this.char();
|
|
3279
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3300
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
|
|
3280
3301
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3281
3302
|
var n = this.clonePosition();
|
|
3282
3303
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3292,7 +3313,7 @@ var li = (
|
|
|
3292
3313
|
case 125:
|
|
3293
3314
|
return this.bump(), {
|
|
3294
3315
|
val: {
|
|
3295
|
-
type:
|
|
3316
|
+
type: E.argument,
|
|
3296
3317
|
// value does not include the opening and closing braces.
|
|
3297
3318
|
value: i,
|
|
3298
3319
|
location: y(n, this.clonePosition())
|
|
@@ -3305,7 +3326,7 @@ var li = (
|
|
|
3305
3326
|
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3306
3327
|
}
|
|
3307
3328
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3308
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3329
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
|
3309
3330
|
this.bumpTo(i);
|
|
3310
3331
|
var o = this.clonePosition(), s = y(t, o);
|
|
3311
3332
|
return { value: n, location: s };
|
|
@@ -3324,7 +3345,7 @@ var li = (
|
|
|
3324
3345
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3325
3346
|
if (c.err)
|
|
3326
3347
|
return c;
|
|
3327
|
-
var f =
|
|
3348
|
+
var f = hi(c.val);
|
|
3328
3349
|
if (f.length === 0)
|
|
3329
3350
|
return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3330
3351
|
var p = y(h, this.clonePosition());
|
|
@@ -3334,34 +3355,34 @@ var li = (
|
|
|
3334
3355
|
if (d.err)
|
|
3335
3356
|
return d;
|
|
3336
3357
|
var m = y(i, this.clonePosition());
|
|
3337
|
-
if (u &&
|
|
3338
|
-
var v =
|
|
3358
|
+
if (u && St(u == null ? void 0 : u.style, "::", 0)) {
|
|
3359
|
+
var v = li(u.style.slice(2));
|
|
3339
3360
|
if (a === "number") {
|
|
3340
3361
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
3341
3362
|
return c.err ? c : {
|
|
3342
|
-
val: { type:
|
|
3363
|
+
val: { type: E.number, value: n, location: m, style: c.val },
|
|
3343
3364
|
err: null
|
|
3344
3365
|
};
|
|
3345
3366
|
} else {
|
|
3346
3367
|
if (v.length === 0)
|
|
3347
3368
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, m);
|
|
3348
3369
|
var A = v;
|
|
3349
|
-
this.locale && (A =
|
|
3370
|
+
this.locale && (A = Qn(v, this.locale));
|
|
3350
3371
|
var f = {
|
|
3351
|
-
type:
|
|
3372
|
+
type: K.dateTime,
|
|
3352
3373
|
pattern: A,
|
|
3353
3374
|
location: u.styleLocation,
|
|
3354
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3355
|
-
},
|
|
3375
|
+
parsedOptions: this.shouldParseSkeletons ? jn(A) : {}
|
|
3376
|
+
}, N = a === "date" ? E.date : E.time;
|
|
3356
3377
|
return {
|
|
3357
|
-
val: { type:
|
|
3378
|
+
val: { type: N, value: n, location: m, style: f },
|
|
3358
3379
|
err: null
|
|
3359
3380
|
};
|
|
3360
3381
|
}
|
|
3361
3382
|
}
|
|
3362
3383
|
return {
|
|
3363
3384
|
val: {
|
|
3364
|
-
type: a === "number" ?
|
|
3385
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3365
3386
|
value: n,
|
|
3366
3387
|
location: m,
|
|
3367
3388
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3374,9 +3395,9 @@ var li = (
|
|
|
3374
3395
|
case "select": {
|
|
3375
3396
|
var H = this.clonePosition();
|
|
3376
3397
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3377
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(H,
|
|
3398
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(H, ve({}, H)));
|
|
3378
3399
|
this.bumpSpace();
|
|
3379
|
-
var F = this.parseIdentifierIfPossible(),
|
|
3400
|
+
var F = this.parseIdentifierIfPossible(), M = 0;
|
|
3380
3401
|
if (a !== "select" && F.value === "offset") {
|
|
3381
3402
|
if (!this.bumpIf(":"))
|
|
3382
3403
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
@@ -3384,29 +3405,29 @@ var li = (
|
|
|
3384
3405
|
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3385
3406
|
if (c.err)
|
|
3386
3407
|
return c;
|
|
3387
|
-
this.bumpSpace(), F = this.parseIdentifierIfPossible(),
|
|
3408
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), M = c.val;
|
|
3388
3409
|
}
|
|
3389
|
-
var
|
|
3390
|
-
if (
|
|
3391
|
-
return
|
|
3410
|
+
var P = this.tryParsePluralOrSelectOptions(t, a, r, F);
|
|
3411
|
+
if (P.err)
|
|
3412
|
+
return P;
|
|
3392
3413
|
var d = this.tryParseArgumentClose(i);
|
|
3393
3414
|
if (d.err)
|
|
3394
3415
|
return d;
|
|
3395
3416
|
var fe = y(i, this.clonePosition());
|
|
3396
3417
|
return a === "select" ? {
|
|
3397
3418
|
val: {
|
|
3398
|
-
type:
|
|
3419
|
+
type: E.select,
|
|
3399
3420
|
value: n,
|
|
3400
|
-
options:
|
|
3421
|
+
options: wt(P.val),
|
|
3401
3422
|
location: fe
|
|
3402
3423
|
},
|
|
3403
3424
|
err: null
|
|
3404
3425
|
} : {
|
|
3405
3426
|
val: {
|
|
3406
|
-
type:
|
|
3427
|
+
type: E.plural,
|
|
3407
3428
|
value: n,
|
|
3408
|
-
options:
|
|
3409
|
-
offset:
|
|
3429
|
+
options: wt(P.val),
|
|
3430
|
+
offset: M,
|
|
3410
3431
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3411
3432
|
location: fe
|
|
3412
3433
|
},
|
|
@@ -3456,16 +3477,16 @@ var li = (
|
|
|
3456
3477
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3457
3478
|
var n = [];
|
|
3458
3479
|
try {
|
|
3459
|
-
n =
|
|
3480
|
+
n = Xn(t);
|
|
3460
3481
|
} catch (i) {
|
|
3461
3482
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3462
3483
|
}
|
|
3463
3484
|
return {
|
|
3464
3485
|
val: {
|
|
3465
|
-
type:
|
|
3486
|
+
type: K.number,
|
|
3466
3487
|
tokens: n,
|
|
3467
3488
|
location: r,
|
|
3468
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3489
|
+
parsedOptions: this.shouldParseSkeletons ? Jn(n) : {}
|
|
3469
3490
|
},
|
|
3470
3491
|
err: null
|
|
3471
3492
|
};
|
|
@@ -3513,7 +3534,7 @@ var li = (
|
|
|
3513
3534
|
break;
|
|
3514
3535
|
}
|
|
3515
3536
|
var l = y(i, this.clonePosition());
|
|
3516
|
-
return o ? (s *= n,
|
|
3537
|
+
return o ? (s *= n, ai(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3517
3538
|
}, e.prototype.offset = function() {
|
|
3518
3539
|
return this.position.offset;
|
|
3519
3540
|
}, e.prototype.isEOF = function() {
|
|
@@ -3528,7 +3549,7 @@ var li = (
|
|
|
3528
3549
|
var t = this.position.offset;
|
|
3529
3550
|
if (t >= this.message.length)
|
|
3530
3551
|
throw Error("out of bound");
|
|
3531
|
-
var r =
|
|
3552
|
+
var r = sr(this.message, t);
|
|
3532
3553
|
if (r === void 0)
|
|
3533
3554
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3534
3555
|
return r;
|
|
@@ -3547,7 +3568,7 @@ var li = (
|
|
|
3547
3568
|
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);
|
|
3548
3569
|
}
|
|
3549
3570
|
}, e.prototype.bumpIf = function(t) {
|
|
3550
|
-
if (
|
|
3571
|
+
if (St(this.message, t, this.offset())) {
|
|
3551
3572
|
for (var r = 0; r < t.length; r++)
|
|
3552
3573
|
this.bump();
|
|
3553
3574
|
return !0;
|
|
@@ -3569,7 +3590,7 @@ var li = (
|
|
|
3569
3590
|
break;
|
|
3570
3591
|
}
|
|
3571
3592
|
}, e.prototype.bumpSpace = function() {
|
|
3572
|
-
for (; !this.isEOF() &&
|
|
3593
|
+
for (; !this.isEOF() && ur(this.char()); )
|
|
3573
3594
|
this.bump();
|
|
3574
3595
|
}, e.prototype.peek = function() {
|
|
3575
3596
|
if (this.isEOF())
|
|
@@ -3579,47 +3600,47 @@ var li = (
|
|
|
3579
3600
|
}, e;
|
|
3580
3601
|
}()
|
|
3581
3602
|
);
|
|
3582
|
-
function
|
|
3603
|
+
function Ye(e) {
|
|
3583
3604
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3584
3605
|
}
|
|
3585
|
-
function
|
|
3586
|
-
return
|
|
3606
|
+
function fi(e) {
|
|
3607
|
+
return Ye(e) || e === 47;
|
|
3587
3608
|
}
|
|
3588
|
-
function
|
|
3609
|
+
function mi(e) {
|
|
3589
3610
|
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;
|
|
3590
3611
|
}
|
|
3591
|
-
function
|
|
3612
|
+
function ur(e) {
|
|
3592
3613
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3593
3614
|
}
|
|
3594
|
-
function
|
|
3615
|
+
function pi(e) {
|
|
3595
3616
|
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;
|
|
3596
3617
|
}
|
|
3597
|
-
function
|
|
3618
|
+
function qe(e) {
|
|
3598
3619
|
e.forEach(function(t) {
|
|
3599
|
-
if (delete t.location,
|
|
3620
|
+
if (delete t.location, qt(t) || Kt(t))
|
|
3600
3621
|
for (var r in t.options)
|
|
3601
|
-
delete t.options[r].location,
|
|
3622
|
+
delete t.options[r].location, qe(t.options[r].value);
|
|
3602
3623
|
else
|
|
3603
|
-
|
|
3624
|
+
Jt(t) && tr(t.style) || (Qt(t) || Yt(t)) && We(t.style) ? delete t.style.location : er(t) && qe(t.children);
|
|
3604
3625
|
});
|
|
3605
3626
|
}
|
|
3606
|
-
function
|
|
3607
|
-
t === void 0 && (t = {}), t =
|
|
3608
|
-
var r = new
|
|
3627
|
+
function di(e, t) {
|
|
3628
|
+
t === void 0 && (t = {}), t = ve({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3629
|
+
var r = new ci(e, t).parse();
|
|
3609
3630
|
if (r.err) {
|
|
3610
3631
|
var n = SyntaxError(g[r.err.kind]);
|
|
3611
3632
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3612
3633
|
}
|
|
3613
|
-
return t != null && t.captureLocation ||
|
|
3634
|
+
return t != null && t.captureLocation || qe(r.val), r.val;
|
|
3614
3635
|
}
|
|
3615
|
-
var
|
|
3636
|
+
var ee;
|
|
3616
3637
|
(function(e) {
|
|
3617
3638
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3618
|
-
})(
|
|
3619
|
-
var
|
|
3639
|
+
})(ee || (ee = {}));
|
|
3640
|
+
var we = (
|
|
3620
3641
|
/** @class */
|
|
3621
3642
|
function(e) {
|
|
3622
|
-
|
|
3643
|
+
Se(t, e);
|
|
3623
3644
|
function t(r, n, i) {
|
|
3624
3645
|
var o = e.call(this, r) || this;
|
|
3625
3646
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3628,48 +3649,48 @@ var Be = (
|
|
|
3628
3649
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3629
3650
|
}, t;
|
|
3630
3651
|
}(Error)
|
|
3631
|
-
),
|
|
3652
|
+
), Tt = (
|
|
3632
3653
|
/** @class */
|
|
3633
3654
|
function(e) {
|
|
3634
|
-
|
|
3655
|
+
Se(t, e);
|
|
3635
3656
|
function t(r, n, i, o) {
|
|
3636
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3657
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
|
3637
3658
|
}
|
|
3638
3659
|
return t;
|
|
3639
|
-
}(
|
|
3640
|
-
),
|
|
3660
|
+
}(we)
|
|
3661
|
+
), bi = (
|
|
3641
3662
|
/** @class */
|
|
3642
3663
|
function(e) {
|
|
3643
|
-
|
|
3664
|
+
Se(t, e);
|
|
3644
3665
|
function t(r, n, i) {
|
|
3645
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3666
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3646
3667
|
}
|
|
3647
3668
|
return t;
|
|
3648
|
-
}(
|
|
3649
|
-
),
|
|
3669
|
+
}(we)
|
|
3670
|
+
), gi = (
|
|
3650
3671
|
/** @class */
|
|
3651
3672
|
function(e) {
|
|
3652
|
-
|
|
3673
|
+
Se(t, e);
|
|
3653
3674
|
function t(r, n) {
|
|
3654
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3675
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3655
3676
|
}
|
|
3656
3677
|
return t;
|
|
3657
|
-
}(
|
|
3678
|
+
}(we)
|
|
3658
3679
|
), T;
|
|
3659
3680
|
(function(e) {
|
|
3660
3681
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3661
3682
|
})(T || (T = {}));
|
|
3662
|
-
function
|
|
3683
|
+
function yi(e) {
|
|
3663
3684
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3664
3685
|
var n = t[t.length - 1];
|
|
3665
3686
|
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3666
3687
|
}, []);
|
|
3667
3688
|
}
|
|
3668
|
-
function
|
|
3689
|
+
function vi(e) {
|
|
3669
3690
|
return typeof e == "function";
|
|
3670
3691
|
}
|
|
3671
3692
|
function ge(e, t, r, n, i, o, s) {
|
|
3672
|
-
if (e.length === 1 &&
|
|
3693
|
+
if (e.length === 1 && _t(e[0]))
|
|
3673
3694
|
return [
|
|
3674
3695
|
{
|
|
3675
3696
|
type: T.literal,
|
|
@@ -3678,14 +3699,14 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3678
3699
|
];
|
|
3679
3700
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3680
3701
|
var h = u[l];
|
|
3681
|
-
if (
|
|
3702
|
+
if (_t(h)) {
|
|
3682
3703
|
a.push({
|
|
3683
3704
|
type: T.literal,
|
|
3684
3705
|
value: h.value
|
|
3685
3706
|
});
|
|
3686
3707
|
continue;
|
|
3687
3708
|
}
|
|
3688
|
-
if (
|
|
3709
|
+
if (Gn(h)) {
|
|
3689
3710
|
typeof o == "number" && a.push({
|
|
3690
3711
|
type: T.literal,
|
|
3691
3712
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3694,89 +3715,89 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3694
3715
|
}
|
|
3695
3716
|
var c = h.value;
|
|
3696
3717
|
if (!(i && c in i))
|
|
3697
|
-
throw new
|
|
3718
|
+
throw new gi(c, s);
|
|
3698
3719
|
var f = i[c];
|
|
3699
|
-
if (
|
|
3720
|
+
if (Fn(h)) {
|
|
3700
3721
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3701
3722
|
type: typeof f == "string" ? T.literal : T.object,
|
|
3702
3723
|
value: f
|
|
3703
3724
|
});
|
|
3704
3725
|
continue;
|
|
3705
3726
|
}
|
|
3706
|
-
if (
|
|
3707
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3727
|
+
if (Qt(h)) {
|
|
3728
|
+
var p = typeof h.style == "string" ? n.date[h.style] : We(h.style) ? h.style.parsedOptions : void 0;
|
|
3708
3729
|
a.push({
|
|
3709
3730
|
type: T.literal,
|
|
3710
3731
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3711
3732
|
});
|
|
3712
3733
|
continue;
|
|
3713
3734
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3735
|
+
if (Yt(h)) {
|
|
3736
|
+
var p = typeof h.style == "string" ? n.time[h.style] : We(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3716
3737
|
a.push({
|
|
3717
3738
|
type: T.literal,
|
|
3718
3739
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3719
3740
|
});
|
|
3720
3741
|
continue;
|
|
3721
3742
|
}
|
|
3722
|
-
if (
|
|
3723
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3743
|
+
if (Jt(h)) {
|
|
3744
|
+
var p = typeof h.style == "string" ? n.number[h.style] : tr(h.style) ? h.style.parsedOptions : void 0;
|
|
3724
3745
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3725
3746
|
type: T.literal,
|
|
3726
3747
|
value: r.getNumberFormat(t, p).format(f)
|
|
3727
3748
|
});
|
|
3728
3749
|
continue;
|
|
3729
3750
|
}
|
|
3730
|
-
if (
|
|
3751
|
+
if (er(h)) {
|
|
3731
3752
|
var d = h.children, m = h.value, v = i[m];
|
|
3732
|
-
if (!
|
|
3733
|
-
throw new
|
|
3734
|
-
var A = ge(d, t, r, n, i, o),
|
|
3735
|
-
return
|
|
3753
|
+
if (!vi(v))
|
|
3754
|
+
throw new bi(m, "function", s);
|
|
3755
|
+
var A = ge(d, t, r, n, i, o), N = v(A.map(function(M) {
|
|
3756
|
+
return M.value;
|
|
3736
3757
|
}));
|
|
3737
|
-
Array.isArray(
|
|
3758
|
+
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(M) {
|
|
3738
3759
|
return {
|
|
3739
|
-
type: typeof
|
|
3740
|
-
value:
|
|
3760
|
+
type: typeof M == "string" ? T.literal : T.object,
|
|
3761
|
+
value: M
|
|
3741
3762
|
};
|
|
3742
3763
|
}));
|
|
3743
3764
|
}
|
|
3744
|
-
if (
|
|
3765
|
+
if (qt(h)) {
|
|
3745
3766
|
var H = h.options[f] || h.options.other;
|
|
3746
3767
|
if (!H)
|
|
3747
|
-
throw new
|
|
3768
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
|
3748
3769
|
a.push.apply(a, ge(H.value, t, r, n, i));
|
|
3749
3770
|
continue;
|
|
3750
3771
|
}
|
|
3751
|
-
if (
|
|
3772
|
+
if (Kt(h)) {
|
|
3752
3773
|
var H = h.options["=".concat(f)];
|
|
3753
3774
|
if (!H) {
|
|
3754
3775
|
if (!Intl.PluralRules)
|
|
3755
|
-
throw new
|
|
3776
|
+
throw new we(`Intl.PluralRules is not available in this environment.
|
|
3756
3777
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3757
|
-
`,
|
|
3778
|
+
`, ee.MISSING_INTL_API, s);
|
|
3758
3779
|
var F = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3759
3780
|
H = h.options[F] || h.options.other;
|
|
3760
3781
|
}
|
|
3761
3782
|
if (!H)
|
|
3762
|
-
throw new
|
|
3783
|
+
throw new Tt(h.value, f, Object.keys(h.options), s);
|
|
3763
3784
|
a.push.apply(a, ge(H.value, t, r, n, i, f - (h.offset || 0)));
|
|
3764
3785
|
continue;
|
|
3765
3786
|
}
|
|
3766
3787
|
}
|
|
3767
|
-
return
|
|
3788
|
+
return yi(a);
|
|
3768
3789
|
}
|
|
3769
|
-
function
|
|
3770
|
-
return t ?
|
|
3771
|
-
return r[n] =
|
|
3790
|
+
function _i(e, t) {
|
|
3791
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3792
|
+
return r[n] = L(L({}, e[n]), t[n] || {}), r;
|
|
3772
3793
|
}, {})) : e;
|
|
3773
3794
|
}
|
|
3774
|
-
function
|
|
3795
|
+
function Ei(e, t) {
|
|
3775
3796
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3776
|
-
return r[n] =
|
|
3777
|
-
},
|
|
3797
|
+
return r[n] = _i(e[n], t[n]), r;
|
|
3798
|
+
}, L({}, e)) : e;
|
|
3778
3799
|
}
|
|
3779
|
-
function
|
|
3800
|
+
function Me(e) {
|
|
3780
3801
|
return {
|
|
3781
3802
|
create: function() {
|
|
3782
3803
|
return {
|
|
@@ -3790,39 +3811,39 @@ function Le(e) {
|
|
|
3790
3811
|
}
|
|
3791
3812
|
};
|
|
3792
3813
|
}
|
|
3793
|
-
function
|
|
3814
|
+
function xi(e) {
|
|
3794
3815
|
return e === void 0 && (e = {
|
|
3795
3816
|
number: {},
|
|
3796
3817
|
dateTime: {},
|
|
3797
3818
|
pluralRules: {}
|
|
3798
3819
|
}), {
|
|
3799
|
-
getNumberFormat:
|
|
3820
|
+
getNumberFormat: Ce(function() {
|
|
3800
3821
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3801
3822
|
r[n] = arguments[n];
|
|
3802
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3823
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3803
3824
|
}, {
|
|
3804
|
-
cache:
|
|
3805
|
-
strategy:
|
|
3825
|
+
cache: Me(e.number),
|
|
3826
|
+
strategy: Ne.variadic
|
|
3806
3827
|
}),
|
|
3807
|
-
getDateTimeFormat:
|
|
3828
|
+
getDateTimeFormat: Ce(function() {
|
|
3808
3829
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3809
3830
|
r[n] = arguments[n];
|
|
3810
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3831
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3811
3832
|
}, {
|
|
3812
|
-
cache:
|
|
3813
|
-
strategy:
|
|
3833
|
+
cache: Me(e.dateTime),
|
|
3834
|
+
strategy: Ne.variadic
|
|
3814
3835
|
}),
|
|
3815
|
-
getPluralRules:
|
|
3836
|
+
getPluralRules: Ce(function() {
|
|
3816
3837
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3817
3838
|
r[n] = arguments[n];
|
|
3818
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3839
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3819
3840
|
}, {
|
|
3820
|
-
cache:
|
|
3821
|
-
strategy:
|
|
3841
|
+
cache: Me(e.pluralRules),
|
|
3842
|
+
strategy: Ne.variadic
|
|
3822
3843
|
})
|
|
3823
3844
|
};
|
|
3824
3845
|
}
|
|
3825
|
-
var
|
|
3846
|
+
var Bi = (
|
|
3826
3847
|
/** @class */
|
|
3827
3848
|
function() {
|
|
3828
3849
|
function e(t, r, n, i) {
|
|
@@ -3854,13 +3875,13 @@ var Ei = (
|
|
|
3854
3875
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3855
3876
|
var s = i || {};
|
|
3856
3877
|
s.formatters;
|
|
3857
|
-
var a =
|
|
3858
|
-
this.ast = e.__parse(t,
|
|
3878
|
+
var a = Cn(s, ["formatters"]);
|
|
3879
|
+
this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
|
|
3859
3880
|
} else
|
|
3860
3881
|
this.ast = t;
|
|
3861
3882
|
if (!Array.isArray(this.ast))
|
|
3862
3883
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3863
|
-
this.formats =
|
|
3884
|
+
this.formats = Ei(e.formats, n), this.formatters = i && i.formatters || xi(this.formatterCache);
|
|
3864
3885
|
}
|
|
3865
3886
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3866
3887
|
get: function() {
|
|
@@ -3873,7 +3894,7 @@ var Ei = (
|
|
|
3873
3894
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3874
3895
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3875
3896
|
}
|
|
3876
|
-
}, e.__parse =
|
|
3897
|
+
}, e.__parse = di, e.formats = {
|
|
3877
3898
|
number: {
|
|
3878
3899
|
integer: {
|
|
3879
3900
|
maximumFractionDigits: 0
|
|
@@ -3934,7 +3955,7 @@ var Ei = (
|
|
|
3934
3955
|
}, e;
|
|
3935
3956
|
}()
|
|
3936
3957
|
);
|
|
3937
|
-
function
|
|
3958
|
+
function Si(e, t) {
|
|
3938
3959
|
if (t == null)
|
|
3939
3960
|
return;
|
|
3940
3961
|
if (t in e)
|
|
@@ -3955,92 +3976,92 @@ function xi(e, t) {
|
|
|
3955
3976
|
n = void 0;
|
|
3956
3977
|
return n;
|
|
3957
3978
|
}
|
|
3958
|
-
const U = {},
|
|
3979
|
+
const U = {}, wi = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), lr = (e, t) => {
|
|
3959
3980
|
if (t == null)
|
|
3960
3981
|
return;
|
|
3961
3982
|
if (t in U && e in U[t])
|
|
3962
3983
|
return U[t][e];
|
|
3963
|
-
const r =
|
|
3984
|
+
const r = He(t);
|
|
3964
3985
|
for (let n = 0; n < r.length; n++) {
|
|
3965
|
-
const i = r[n], o =
|
|
3986
|
+
const i = r[n], o = Ti(i, e);
|
|
3966
3987
|
if (o)
|
|
3967
|
-
return
|
|
3988
|
+
return wi(e, t, o);
|
|
3968
3989
|
}
|
|
3969
3990
|
};
|
|
3970
|
-
let
|
|
3971
|
-
const ce =
|
|
3972
|
-
function
|
|
3973
|
-
return
|
|
3991
|
+
let rt;
|
|
3992
|
+
const ce = Be({});
|
|
3993
|
+
function Hi(e) {
|
|
3994
|
+
return rt[e] || null;
|
|
3974
3995
|
}
|
|
3975
|
-
function
|
|
3976
|
-
return e in
|
|
3996
|
+
function hr(e) {
|
|
3997
|
+
return e in rt;
|
|
3977
3998
|
}
|
|
3978
|
-
function
|
|
3979
|
-
if (!
|
|
3999
|
+
function Ti(e, t) {
|
|
4000
|
+
if (!hr(e))
|
|
3980
4001
|
return null;
|
|
3981
|
-
const r =
|
|
3982
|
-
return
|
|
4002
|
+
const r = Hi(e);
|
|
4003
|
+
return Si(r, t);
|
|
3983
4004
|
}
|
|
3984
|
-
function
|
|
4005
|
+
function Ai(e) {
|
|
3985
4006
|
if (e == null)
|
|
3986
4007
|
return;
|
|
3987
|
-
const t =
|
|
4008
|
+
const t = He(e);
|
|
3988
4009
|
for (let r = 0; r < t.length; r++) {
|
|
3989
4010
|
const n = t[r];
|
|
3990
|
-
if (
|
|
4011
|
+
if (hr(n))
|
|
3991
4012
|
return n;
|
|
3992
4013
|
}
|
|
3993
4014
|
}
|
|
3994
|
-
function
|
|
3995
|
-
delete U[e], ce.update((r) => (r[e] =
|
|
4015
|
+
function cr(e, ...t) {
|
|
4016
|
+
delete U[e], ce.update((r) => (r[e] = In.all([r[e] || {}, ...t]), r));
|
|
3996
4017
|
}
|
|
3997
|
-
|
|
4018
|
+
re(
|
|
3998
4019
|
[ce],
|
|
3999
4020
|
([e]) => Object.keys(e)
|
|
4000
4021
|
);
|
|
4001
|
-
ce.subscribe((e) =>
|
|
4022
|
+
ce.subscribe((e) => rt = e);
|
|
4002
4023
|
const ye = {};
|
|
4003
|
-
function
|
|
4024
|
+
function Oi(e, t) {
|
|
4004
4025
|
ye[e].delete(t), ye[e].size === 0 && delete ye[e];
|
|
4005
4026
|
}
|
|
4006
|
-
function
|
|
4027
|
+
function fr(e) {
|
|
4007
4028
|
return ye[e];
|
|
4008
4029
|
}
|
|
4009
|
-
function
|
|
4010
|
-
return
|
|
4011
|
-
const r =
|
|
4030
|
+
function Pi(e) {
|
|
4031
|
+
return He(e).map((t) => {
|
|
4032
|
+
const r = fr(t);
|
|
4012
4033
|
return [t, r ? [...r] : []];
|
|
4013
4034
|
}).filter(([, t]) => t.length > 0);
|
|
4014
4035
|
}
|
|
4015
|
-
function
|
|
4016
|
-
return e == null ? !1 :
|
|
4036
|
+
function Ke(e) {
|
|
4037
|
+
return e == null ? !1 : He(e).some(
|
|
4017
4038
|
(t) => {
|
|
4018
4039
|
var r;
|
|
4019
|
-
return (r =
|
|
4040
|
+
return (r = fr(t)) == null ? void 0 : r.size;
|
|
4020
4041
|
}
|
|
4021
4042
|
);
|
|
4022
4043
|
}
|
|
4023
|
-
function
|
|
4044
|
+
function Ii(e, t) {
|
|
4024
4045
|
return Promise.all(
|
|
4025
|
-
t.map((n) => (
|
|
4026
|
-
).then((n) =>
|
|
4027
|
-
}
|
|
4028
|
-
const
|
|
4029
|
-
function
|
|
4030
|
-
if (!
|
|
4031
|
-
return e in
|
|
4032
|
-
const t =
|
|
4033
|
-
return
|
|
4046
|
+
t.map((n) => (Oi(e, n), n().then((i) => i.default || i)))
|
|
4047
|
+
).then((n) => cr(e, ...n));
|
|
4048
|
+
}
|
|
4049
|
+
const oe = {};
|
|
4050
|
+
function mr(e) {
|
|
4051
|
+
if (!Ke(e))
|
|
4052
|
+
return e in oe ? oe[e] : Promise.resolve();
|
|
4053
|
+
const t = Pi(e);
|
|
4054
|
+
return oe[e] = Promise.all(
|
|
4034
4055
|
t.map(
|
|
4035
|
-
([r, n]) =>
|
|
4056
|
+
([r, n]) => Ii(r, n)
|
|
4036
4057
|
)
|
|
4037
4058
|
).then(() => {
|
|
4038
|
-
if (
|
|
4039
|
-
return
|
|
4040
|
-
delete
|
|
4041
|
-
}),
|
|
4059
|
+
if (Ke(e))
|
|
4060
|
+
return mr(e);
|
|
4061
|
+
delete oe[e];
|
|
4062
|
+
}), oe[e];
|
|
4042
4063
|
}
|
|
4043
|
-
const
|
|
4064
|
+
const Ci = {
|
|
4044
4065
|
number: {
|
|
4045
4066
|
scientific: { notation: "scientific" },
|
|
4046
4067
|
engineering: { notation: "engineering" },
|
|
@@ -4069,135 +4090,135 @@ const Ii = {
|
|
|
4069
4090
|
timeZoneName: "short"
|
|
4070
4091
|
}
|
|
4071
4092
|
}
|
|
4072
|
-
},
|
|
4093
|
+
}, Ni = {
|
|
4073
4094
|
fallbackLocale: null,
|
|
4074
4095
|
loadingDelay: 200,
|
|
4075
|
-
formats:
|
|
4096
|
+
formats: Ci,
|
|
4076
4097
|
warnOnMissingMessages: !0,
|
|
4077
4098
|
handleMissingMessage: void 0,
|
|
4078
4099
|
ignoreTag: !0
|
|
4079
|
-
},
|
|
4080
|
-
function
|
|
4081
|
-
return
|
|
4100
|
+
}, Li = Ni;
|
|
4101
|
+
function te() {
|
|
4102
|
+
return Li;
|
|
4082
4103
|
}
|
|
4083
|
-
const
|
|
4084
|
-
var
|
|
4104
|
+
const Re = Be(!1);
|
|
4105
|
+
var Mi = Object.defineProperty, Ri = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fi = (e, t) => {
|
|
4085
4106
|
for (var r in t || (t = {}))
|
|
4086
|
-
|
|
4087
|
-
if (
|
|
4088
|
-
for (var r of
|
|
4089
|
-
|
|
4107
|
+
Ui.call(t, r) && Ot(e, r, t[r]);
|
|
4108
|
+
if (At)
|
|
4109
|
+
for (var r of At(t))
|
|
4110
|
+
Di.call(t, r) && Ot(e, r, t[r]);
|
|
4090
4111
|
return e;
|
|
4091
|
-
},
|
|
4092
|
-
let
|
|
4093
|
-
const
|
|
4094
|
-
function
|
|
4112
|
+
}, Gi = (e, t) => Ri(e, $i(t));
|
|
4113
|
+
let et;
|
|
4114
|
+
const _e = Be(null);
|
|
4115
|
+
function Pt(e) {
|
|
4095
4116
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4096
4117
|
}
|
|
4097
|
-
function
|
|
4098
|
-
const r =
|
|
4099
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4118
|
+
function He(e, t = te().fallbackLocale) {
|
|
4119
|
+
const r = Pt(e);
|
|
4120
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
|
|
4100
4121
|
}
|
|
4101
4122
|
function V() {
|
|
4102
|
-
return
|
|
4123
|
+
return et != null ? et : void 0;
|
|
4103
4124
|
}
|
|
4104
|
-
|
|
4105
|
-
|
|
4125
|
+
_e.subscribe((e) => {
|
|
4126
|
+
et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4106
4127
|
});
|
|
4107
|
-
const
|
|
4108
|
-
if (e &&
|
|
4109
|
-
const { loadingDelay: t } =
|
|
4128
|
+
const ki = (e) => {
|
|
4129
|
+
if (e && Ai(e) && Ke(e)) {
|
|
4130
|
+
const { loadingDelay: t } = te();
|
|
4110
4131
|
let r;
|
|
4111
4132
|
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
4112
|
-
() =>
|
|
4133
|
+
() => Re.set(!0),
|
|
4113
4134
|
t
|
|
4114
|
-
) :
|
|
4115
|
-
|
|
4135
|
+
) : Re.set(!0), mr(e).then(() => {
|
|
4136
|
+
_e.set(e);
|
|
4116
4137
|
}).finally(() => {
|
|
4117
|
-
clearTimeout(r),
|
|
4138
|
+
clearTimeout(r), Re.set(!1);
|
|
4118
4139
|
});
|
|
4119
4140
|
}
|
|
4120
|
-
return
|
|
4121
|
-
},
|
|
4122
|
-
set:
|
|
4123
|
-
}),
|
|
4141
|
+
return _e.set(e);
|
|
4142
|
+
}, ne = Gi(Fi({}, _e), {
|
|
4143
|
+
set: ki
|
|
4144
|
+
}), Te = (e) => {
|
|
4124
4145
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4125
4146
|
return (n) => {
|
|
4126
4147
|
const i = JSON.stringify(n);
|
|
4127
4148
|
return i in t ? t[i] : t[i] = e(n);
|
|
4128
4149
|
};
|
|
4129
4150
|
};
|
|
4130
|
-
var
|
|
4151
|
+
var ji = Object.defineProperty, Ee = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
|
|
4131
4152
|
for (var r in t || (t = {}))
|
|
4132
|
-
|
|
4133
|
-
if (
|
|
4134
|
-
for (var r of
|
|
4135
|
-
|
|
4153
|
+
pr.call(t, r) && It(e, r, t[r]);
|
|
4154
|
+
if (Ee)
|
|
4155
|
+
for (var r of Ee(t))
|
|
4156
|
+
dr.call(t, r) && It(e, r, t[r]);
|
|
4136
4157
|
return e;
|
|
4137
|
-
},
|
|
4158
|
+
}, ie = (e, t) => {
|
|
4138
4159
|
var r = {};
|
|
4139
4160
|
for (var n in e)
|
|
4140
|
-
|
|
4141
|
-
if (e != null &&
|
|
4142
|
-
for (var n of
|
|
4143
|
-
t.indexOf(n) < 0 &&
|
|
4161
|
+
pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4162
|
+
if (e != null && Ee)
|
|
4163
|
+
for (var n of Ee(e))
|
|
4164
|
+
t.indexOf(n) < 0 && dr.call(e, n) && (r[n] = e[n]);
|
|
4144
4165
|
return r;
|
|
4145
4166
|
};
|
|
4146
|
-
const
|
|
4147
|
-
const { formats: r } =
|
|
4167
|
+
const le = (e, t) => {
|
|
4168
|
+
const { formats: r } = te();
|
|
4148
4169
|
if (e in r && t in r[e])
|
|
4149
4170
|
return r[e][t];
|
|
4150
4171
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4151
|
-
},
|
|
4172
|
+
}, Vi = Te(
|
|
4152
4173
|
(e) => {
|
|
4153
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4174
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
4154
4175
|
if (r == null)
|
|
4155
4176
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4156
|
-
return n && (i =
|
|
4177
|
+
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
|
4157
4178
|
}
|
|
4158
|
-
),
|
|
4179
|
+
), Xi = Te(
|
|
4159
4180
|
(e) => {
|
|
4160
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4181
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
4161
4182
|
if (r == null)
|
|
4162
4183
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4163
|
-
return n ? i =
|
|
4184
|
+
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4164
4185
|
}
|
|
4165
|
-
),
|
|
4186
|
+
), zi = Te(
|
|
4166
4187
|
(e) => {
|
|
4167
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4188
|
+
var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
|
|
4168
4189
|
if (r == null)
|
|
4169
4190
|
throw new Error(
|
|
4170
4191
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4171
4192
|
);
|
|
4172
|
-
return n ? i =
|
|
4193
|
+
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4173
4194
|
}
|
|
4174
|
-
),
|
|
4195
|
+
), Wi = (e = {}) => {
|
|
4175
4196
|
var t = e, {
|
|
4176
4197
|
locale: r = V()
|
|
4177
|
-
} = t, n =
|
|
4198
|
+
} = t, n = ie(t, [
|
|
4178
4199
|
"locale"
|
|
4179
4200
|
]);
|
|
4180
|
-
return
|
|
4181
|
-
},
|
|
4201
|
+
return Vi(nt({ locale: r }, n));
|
|
4202
|
+
}, Zi = (e = {}) => {
|
|
4182
4203
|
var t = e, {
|
|
4183
4204
|
locale: r = V()
|
|
4184
|
-
} = t, n =
|
|
4205
|
+
} = t, n = ie(t, [
|
|
4185
4206
|
"locale"
|
|
4186
4207
|
]);
|
|
4187
|
-
return
|
|
4188
|
-
},
|
|
4208
|
+
return Xi(nt({ locale: r }, n));
|
|
4209
|
+
}, Ji = (e = {}) => {
|
|
4189
4210
|
var t = e, {
|
|
4190
4211
|
locale: r = V()
|
|
4191
|
-
} = t, n =
|
|
4212
|
+
} = t, n = ie(t, [
|
|
4192
4213
|
"locale"
|
|
4193
4214
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4215
|
+
return zi(nt({ locale: r }, n));
|
|
4216
|
+
}, Qi = Te(
|
|
4196
4217
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4197
|
-
(e, t = V()) => new
|
|
4198
|
-
ignoreTag:
|
|
4218
|
+
(e, t = V()) => new Bi(e, t, te().formats, {
|
|
4219
|
+
ignoreTag: te().ignoreTag
|
|
4199
4220
|
})
|
|
4200
|
-
),
|
|
4221
|
+
), Yi = (e, t = {}) => {
|
|
4201
4222
|
var r, n, i, o;
|
|
4202
4223
|
let s = t;
|
|
4203
4224
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4210,9 +4231,9 @@ const he = (e, t) => {
|
|
|
4210
4231
|
throw new Error(
|
|
4211
4232
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4212
4233
|
);
|
|
4213
|
-
let h =
|
|
4234
|
+
let h = lr(e, l);
|
|
4214
4235
|
if (!h)
|
|
4215
|
-
h = (o = (i = (n = (r =
|
|
4236
|
+
h = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4216
4237
|
else if (typeof h != "string")
|
|
4217
4238
|
return console.warn(
|
|
4218
4239
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4221,7 +4242,7 @@ const he = (e, t) => {
|
|
|
4221
4242
|
return h;
|
|
4222
4243
|
let c = h;
|
|
4223
4244
|
try {
|
|
4224
|
-
c =
|
|
4245
|
+
c = Qi(h, l).format(a);
|
|
4225
4246
|
} catch (f) {
|
|
4226
4247
|
f instanceof Error && console.warn(
|
|
4227
4248
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4229,21 +4250,21 @@ const he = (e, t) => {
|
|
|
4229
4250
|
);
|
|
4230
4251
|
}
|
|
4231
4252
|
return c;
|
|
4232
|
-
},
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4253
|
+
}, qi = (e, t) => Ji(t).format(e), Ki = (e, t) => Zi(t).format(e), eo = (e, t) => Wi(t).format(e), to = (e, t = V()) => lr(e, t), ro = re([ne, ce], () => Yi);
|
|
4254
|
+
re([ne], () => qi);
|
|
4255
|
+
re([ne], () => Ki);
|
|
4256
|
+
re([ne], () => eo);
|
|
4257
|
+
re([ne, ce], () => to);
|
|
4237
4258
|
window.emWidgets = { topic: pn };
|
|
4238
|
-
const
|
|
4259
|
+
const no = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4239
4260
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4240
|
-
function
|
|
4261
|
+
function io(e, t) {
|
|
4241
4262
|
if (e) {
|
|
4242
4263
|
const r = document.createElement("style");
|
|
4243
4264
|
r.innerHTML = t, e.appendChild(r);
|
|
4244
4265
|
}
|
|
4245
4266
|
}
|
|
4246
|
-
function
|
|
4267
|
+
function oo(e, t) {
|
|
4247
4268
|
if (!e || !t)
|
|
4248
4269
|
return;
|
|
4249
4270
|
const r = new URL(t);
|
|
@@ -4254,7 +4275,7 @@ function no(e, t) {
|
|
|
4254
4275
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4255
4276
|
});
|
|
4256
4277
|
}
|
|
4257
|
-
function
|
|
4278
|
+
function so(e, t, r) {
|
|
4258
4279
|
if (window.emMessageBus) {
|
|
4259
4280
|
const n = document.createElement("style");
|
|
4260
4281
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4262,13 +4283,13 @@ function io(e, t, r) {
|
|
|
4262
4283
|
});
|
|
4263
4284
|
}
|
|
4264
4285
|
}
|
|
4265
|
-
function
|
|
4266
|
-
|
|
4286
|
+
function Ct(e, t) {
|
|
4287
|
+
cr(e, t);
|
|
4267
4288
|
}
|
|
4268
|
-
function
|
|
4269
|
-
|
|
4289
|
+
function ao(e) {
|
|
4290
|
+
ne.set(e);
|
|
4270
4291
|
}
|
|
4271
|
-
const
|
|
4292
|
+
const Nt = {
|
|
4272
4293
|
en: {
|
|
4273
4294
|
loginButton: "Login",
|
|
4274
4295
|
registerButton: "Join Now",
|
|
@@ -4347,22 +4368,22 @@ const Ot = {
|
|
|
4347
4368
|
loading: "Loading..."
|
|
4348
4369
|
}
|
|
4349
4370
|
};
|
|
4350
|
-
function
|
|
4351
|
-
|
|
4371
|
+
function uo(e) {
|
|
4372
|
+
Nr(e, "svelte-zg2zu1", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.betslipIndicator{display:flex;align-items:center;justify-content:center;padding:15px 20px;position:fixed;bottom:20%;right:20px;color:#fff;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0px 5px 30px var(--emw--color-gray-100, #E6E6E6);border-radius:50%;border:none}.betslipIndicator__icon{display:flex;width:20px;fill:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.betslipIndicator__number{display:flex;align-items:center;justify-content:center;position:absolute;right:0px;top:-10px;width:25px;height:25px;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));border-radius:50%}.loader{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:2px;margin:100px auto;width:1em;height:1em;border-radius:50%;position:relative;text-indent:-9999em;-webkit-animation:load4 1.3s infinite linear;animation:load4 1.3s infinite linear;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes load4{0%,100%{box-shadow:0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em}75%{box-shadow:0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0}87.5%{box-shadow:0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em}}@keyframes load4{0%,100%{box-shadow:0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em}75%{box-shadow:0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0}87.5%{box-shadow:0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em}}.betslipBar{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;gap:5px;padding:5px 10px;position:fixed;bottom:80px;left:50%;transform:translateX(-50%);z-index:31;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.betslipBarButton{border:0;margin:0;height:auto;padding:10px;background-color:transparent;text-transform:uppercase;font-size:16px;text-wrap:nowrap}.betslipBarCount{border:1px solid var(--emw--color-background);padding:16px 20px;background:var(--emw--betslip-bar-count-background, linear-gradient(to left, rgba(var(--emw--color-600-rgb), 0.9), rgba(var(--emw--color-700-rgb), 0.9)));border-radius:6px}.betslipBar .betslipBarCount{border:0;line-height:0}");
|
|
4352
4373
|
}
|
|
4353
|
-
function
|
|
4374
|
+
function Lt(e) {
|
|
4354
4375
|
let t, r;
|
|
4355
4376
|
function n(s, a) {
|
|
4356
4377
|
return (
|
|
4357
4378
|
/*isLoggedIn*/
|
|
4358
4379
|
s[7] && /*sessionID*/
|
|
4359
|
-
s[6] ?
|
|
4380
|
+
s[6] ? ho : lo
|
|
4360
4381
|
);
|
|
4361
4382
|
}
|
|
4362
4383
|
let i = n(e), o = i(e);
|
|
4363
4384
|
return {
|
|
4364
4385
|
c() {
|
|
4365
|
-
t =
|
|
4386
|
+
t = O("div"), o.c(), _(t, "class", r = `betslipBar ${/*isLoggedIn*/
|
|
4366
4387
|
e[7] ? "loggedIn" : "loggedOut"}`);
|
|
4367
4388
|
},
|
|
4368
4389
|
m(s, a) {
|
|
@@ -4371,14 +4392,14 @@ function Ct(e) {
|
|
|
4371
4392
|
p(s, a) {
|
|
4372
4393
|
i === (i = n(s)) && o ? o.p(s, a) : (o.d(1), o = i(s), o && (o.c(), o.m(t, null))), a & /*isLoggedIn*/
|
|
4373
4394
|
128 && r !== (r = `betslipBar ${/*isLoggedIn*/
|
|
4374
|
-
s[7] ? "loggedIn" : "loggedOut"}`) &&
|
|
4395
|
+
s[7] ? "loggedIn" : "loggedOut"}`) && _(t, "class", r);
|
|
4375
4396
|
},
|
|
4376
4397
|
d(s) {
|
|
4377
4398
|
s && B(t), o.d();
|
|
4378
4399
|
}
|
|
4379
4400
|
};
|
|
4380
4401
|
}
|
|
4381
|
-
function
|
|
4402
|
+
function lo(e) {
|
|
4382
4403
|
let t, r = (
|
|
4383
4404
|
/*$_*/
|
|
4384
4405
|
e[8]("loginButton") + ""
|
|
@@ -4388,7 +4409,7 @@ function ao(e) {
|
|
|
4388
4409
|
), u, h, c;
|
|
4389
4410
|
return {
|
|
4390
4411
|
c() {
|
|
4391
|
-
t =
|
|
4412
|
+
t = O("button"), n = D(r), i = Y(), o = O("span"), o.textContent = "|", s = Y(), a = O("button"), u = D(l), _(t, "class", "betslipBarButton loginButton"), _(o, "class", "betslipBarSeparator"), _(a, "class", "betslipBarButton registerButton");
|
|
4392
4413
|
},
|
|
4393
4414
|
m(f, p) {
|
|
4394
4415
|
S(f, t, p), w(t, n), S(f, i, p), S(f, o, p), S(f, s, p), S(f, a, p), w(a, u), h || (c = [
|
|
@@ -4418,7 +4439,7 @@ function ao(e) {
|
|
|
4418
4439
|
}
|
|
4419
4440
|
};
|
|
4420
4441
|
}
|
|
4421
|
-
function
|
|
4442
|
+
function ho(e) {
|
|
4422
4443
|
let t, r = (
|
|
4423
4444
|
/*$_*/
|
|
4424
4445
|
e[8]("betslipButton") + ""
|
|
@@ -4429,13 +4450,13 @@ function uo(e) {
|
|
|
4429
4450
|
function f(m, v) {
|
|
4430
4451
|
return (
|
|
4431
4452
|
/*isLoading*/
|
|
4432
|
-
m[4] ?
|
|
4453
|
+
m[4] ? fo : co
|
|
4433
4454
|
);
|
|
4434
4455
|
}
|
|
4435
4456
|
let p = f(e), d = p(e);
|
|
4436
4457
|
return {
|
|
4437
4458
|
c() {
|
|
4438
|
-
t =
|
|
4459
|
+
t = O("button"), n = D(r), i = Y(), o = O("button"), d.c(), s = Y(), a = O("button"), u = D(l), _(t, "class", "betslipBarButton betslipDetails"), _(o, "class", "betslipBarCount"), _(a, "class", "betslipBarButton betsDetails");
|
|
4439
4460
|
},
|
|
4440
4461
|
m(m, v) {
|
|
4441
4462
|
S(m, t, v), w(t, n), S(m, i, v), S(m, o, v), d.m(o, null), S(m, s, v), S(m, a, v), w(a, u), h || (c = [
|
|
@@ -4471,7 +4492,7 @@ function uo(e) {
|
|
|
4471
4492
|
}
|
|
4472
4493
|
};
|
|
4473
4494
|
}
|
|
4474
|
-
function
|
|
4495
|
+
function co(e) {
|
|
4475
4496
|
let t = (
|
|
4476
4497
|
/*betNumber*/
|
|
4477
4498
|
(e[2] ? (
|
|
@@ -4499,14 +4520,14 @@ function lo(e) {
|
|
|
4499
4520
|
}
|
|
4500
4521
|
};
|
|
4501
4522
|
}
|
|
4502
|
-
function
|
|
4523
|
+
function fo(e) {
|
|
4503
4524
|
let t, r = (
|
|
4504
4525
|
/*$_*/
|
|
4505
4526
|
e[8]("loading") + ""
|
|
4506
4527
|
), n;
|
|
4507
4528
|
return {
|
|
4508
4529
|
c() {
|
|
4509
|
-
t =
|
|
4530
|
+
t = O("div"), n = D(r), _(t, "class", "loader");
|
|
4510
4531
|
},
|
|
4511
4532
|
m(i, o) {
|
|
4512
4533
|
S(i, t, o), w(t, n);
|
|
@@ -4521,21 +4542,21 @@ function ho(e) {
|
|
|
4521
4542
|
}
|
|
4522
4543
|
};
|
|
4523
4544
|
}
|
|
4524
|
-
function
|
|
4545
|
+
function Mt(e) {
|
|
4525
4546
|
let t, r, n, i, o, s, a, l, u, h, c, f;
|
|
4526
4547
|
function p(v, A) {
|
|
4527
4548
|
return (
|
|
4528
4549
|
/*isLoading*/
|
|
4529
|
-
v[4] ?
|
|
4550
|
+
v[4] ? po : mo
|
|
4530
4551
|
);
|
|
4531
4552
|
}
|
|
4532
4553
|
let d = p(e), m = d(e);
|
|
4533
4554
|
return {
|
|
4534
4555
|
c() {
|
|
4535
|
-
t =
|
|
4556
|
+
t = O("button"), r = O("small"), m.c(), n = Y(), i = G("svg"), o = G("g"), s = G("path"), a = G("path"), l = G("path"), u = G("path"), h = G("path"), _(r, "class", "betslipIndicator__number"), _(s, "d", `M45,95c0,1.1,0.9,2,2,2h11c3.3,0,6-2.7,6-6V9c0-3.3-2.7-6-6-6H47c-1.1,0-2,0.9-2,2c0,7.2-5.8,13-13,13S19,12.2,19,5
|
|
4536
4557
|
c0-1.1-0.9-2-2-2H6C2.7,3,0,5.7,0,9v82c0,3.3,2.7,6,6,6h11c1.1,0,2-0.9,2-2c0-7.2,5.8-13,13-13S45,87.8,45,95z M32,78
|
|
4537
4558
|
c-8.6,0-15.9,6.4-16.9,15H6c-1.1,0-2-0.9-2-2V9c0-1.1,0.9-2,2-2h9.1c1.2,9.3,9.7,15.9,19,14.8c7.7-1,13.8-7,14.8-14.8H58
|
|
4538
|
-
c1.1,0,2,0.9,2,2v82c0,1.1-0.9,2-2,2h-9.1C47.9,84.4,40.6,78,32,78z`),
|
|
4559
|
+
c1.1,0,2,0.9,2,2v82c0,1.1-0.9,2-2,2h-9.1C47.9,84.4,40.6,78,32,78z`), _(a, "d", "M50.9,29.5H13.1c-0.8,0-1.5,0.9-1.5,2c0,1.1,0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2C52.4,30.4,51.7,29.5,50.9,29.5z"), _(l, "d", "M50.9,41.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,41.5,50.9,41.5z"), _(u, "d", "M50.9,53.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,53.5,50.9,53.5z"), _(h, "d", "M50.9,66.5H13.1c-0.8,0-1.5,0.9-1.5,2s0.7,2,1.5,2h37.8c0.8,0,1.5-0.9,1.5-2S51.7,66.5,50.9,66.5z"), _(i, "version", "1.1"), _(i, "id", "Layer_1"), _(i, "class", "betslipIndicator__icon"), _(i, "xmlns", "http://www.w3.org/2000/svg"), _(i, "xmlns:xlink", "http://www.w3.org/1999/xlink"), _(i, "x", "0px"), _(i, "y", "0px"), _(i, "viewBox", "0 0 64 100"), $r(i, "enable-background", "new 0 0 64 100"), _(i, "xml:space", "preserve"), _(t, "class", "betslipIndicator");
|
|
4539
4560
|
},
|
|
4540
4561
|
m(v, A) {
|
|
4541
4562
|
S(v, t, A), w(t, r), m.m(r, null), w(t, n), w(t, i), w(i, o), w(o, s), w(o, a), w(o, l), w(o, u), w(o, h), c || (f = J(
|
|
@@ -4553,7 +4574,7 @@ function Lt(e) {
|
|
|
4553
4574
|
}
|
|
4554
4575
|
};
|
|
4555
4576
|
}
|
|
4556
|
-
function
|
|
4577
|
+
function mo(e) {
|
|
4557
4578
|
let t;
|
|
4558
4579
|
return {
|
|
4559
4580
|
c() {
|
|
@@ -4578,11 +4599,11 @@ function co(e) {
|
|
|
4578
4599
|
}
|
|
4579
4600
|
};
|
|
4580
4601
|
}
|
|
4581
|
-
function
|
|
4602
|
+
function po(e) {
|
|
4582
4603
|
let t;
|
|
4583
4604
|
return {
|
|
4584
4605
|
c() {
|
|
4585
|
-
t =
|
|
4606
|
+
t = O("div"), t.textContent = "Loading...", _(t, "class", "loader");
|
|
4586
4607
|
},
|
|
4587
4608
|
m(r, n) {
|
|
4588
4609
|
S(r, t, n);
|
|
@@ -4593,22 +4614,22 @@ function fo(e) {
|
|
|
4593
4614
|
}
|
|
4594
4615
|
};
|
|
4595
4616
|
}
|
|
4596
|
-
function
|
|
4617
|
+
function bo(e) {
|
|
4597
4618
|
let t, r, n = (
|
|
4598
4619
|
/*isBetslipButtonBar*/
|
|
4599
4620
|
e[1] && /*mobileView*/
|
|
4600
4621
|
e[3] && /*betSlipVisible*/
|
|
4601
|
-
e[5] &&
|
|
4622
|
+
e[5] && Lt(e)
|
|
4602
4623
|
), i = (
|
|
4603
4624
|
/*mobileView*/
|
|
4604
4625
|
e[3] && /*betNumber*/
|
|
4605
4626
|
e[2] > 0 && /*betSlipVisible*/
|
|
4606
4627
|
e[5] && !/*isBetslipButtonBar*/
|
|
4607
|
-
e[1] &&
|
|
4628
|
+
e[1] && Mt(e)
|
|
4608
4629
|
);
|
|
4609
4630
|
return {
|
|
4610
4631
|
c() {
|
|
4611
|
-
t =
|
|
4632
|
+
t = O("div"), n && n.c(), r = Y(), i && i.c();
|
|
4612
4633
|
},
|
|
4613
4634
|
m(o, s) {
|
|
4614
4635
|
S(o, t, s), n && n.m(t, null), w(t, r), i && i.m(t, null), e[23](t);
|
|
@@ -4617,11 +4638,11 @@ function mo(e) {
|
|
|
4617
4638
|
/*isBetslipButtonBar*/
|
|
4618
4639
|
o[1] && /*mobileView*/
|
|
4619
4640
|
o[3] && /*betSlipVisible*/
|
|
4620
|
-
o[5] ? n ? n.p(o, s) : (n =
|
|
4641
|
+
o[5] ? n ? n.p(o, s) : (n = Lt(o), n.c(), n.m(t, r)) : n && (n.d(1), n = null), /*mobileView*/
|
|
4621
4642
|
o[3] && /*betNumber*/
|
|
4622
4643
|
o[2] > 0 && /*betSlipVisible*/
|
|
4623
4644
|
o[5] && !/*isBetslipButtonBar*/
|
|
4624
|
-
o[1] ? i ? i.p(o, s) : (i =
|
|
4645
|
+
o[1] ? i ? i.p(o, s) : (i = Mt(o), i.c(), i.m(t, null)) : i && (i.d(1), i = null);
|
|
4625
4646
|
},
|
|
4626
4647
|
i: C,
|
|
4627
4648
|
o: C,
|
|
@@ -4630,25 +4651,25 @@ function mo(e) {
|
|
|
4630
4651
|
}
|
|
4631
4652
|
};
|
|
4632
4653
|
}
|
|
4633
|
-
function
|
|
4654
|
+
function go(e, t, r) {
|
|
4634
4655
|
let n;
|
|
4635
|
-
|
|
4636
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { betslipbuttonbar: a = "false" } = t, { session: l = "" } = t, { lang: u = "" } = t, { translationurl: h = "" } = t, c, f = window.navigator.userAgent, p = null, d = !1, m = !0, v = !1, A = !1,
|
|
4656
|
+
Cr(e, ro, (b) => r(8, n = b));
|
|
4657
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { betslipbuttonbar: a = "false" } = t, { session: l = "" } = t, { lang: u = "" } = t, { translationurl: h = "" } = t, c, f = window.navigator.userAgent, p = null, d = !1, m = !0, v = !1, A = !1, N = "", H = !1;
|
|
4637
4658
|
const F = () => {
|
|
4638
4659
|
fetch(h).then((b) => b.json()).then((b) => {
|
|
4639
4660
|
Object.keys(b).forEach((X) => {
|
|
4640
|
-
|
|
4661
|
+
Ct(X, b[X]);
|
|
4641
4662
|
});
|
|
4642
4663
|
}).catch((b) => {
|
|
4643
4664
|
console.log(b);
|
|
4644
4665
|
});
|
|
4645
4666
|
};
|
|
4646
|
-
Object.keys(
|
|
4647
|
-
|
|
4667
|
+
Object.keys(Nt).forEach((b) => {
|
|
4668
|
+
Ct(b, Nt[b]);
|
|
4648
4669
|
});
|
|
4649
|
-
const
|
|
4670
|
+
const M = () => {
|
|
4650
4671
|
window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
|
|
4651
|
-
},
|
|
4672
|
+
}, P = (b, X) => {
|
|
4652
4673
|
c.dispatchEvent(new CustomEvent(
|
|
4653
4674
|
b,
|
|
4654
4675
|
{
|
|
@@ -4659,35 +4680,35 @@ function po(e, t, r) {
|
|
|
4659
4680
|
}
|
|
4660
4681
|
));
|
|
4661
4682
|
}, fe = () => {
|
|
4662
|
-
r(7, H = !0), r(6,
|
|
4663
|
-
},
|
|
4664
|
-
|
|
4665
|
-
},
|
|
4666
|
-
var
|
|
4667
|
-
const { type: X, payload:
|
|
4683
|
+
r(7, H = !0), r(6, N = l);
|
|
4684
|
+
}, br = () => {
|
|
4685
|
+
ao(u);
|
|
4686
|
+
}, it = (b) => {
|
|
4687
|
+
var ot;
|
|
4688
|
+
const { type: X, payload: Sr } = b.data;
|
|
4668
4689
|
if (b.data)
|
|
4669
4690
|
switch (X) {
|
|
4670
4691
|
case "OMFE:updateBetslipSelectionsCount":
|
|
4671
|
-
r(2, p =
|
|
4692
|
+
r(2, p = Sr.count), r(4, m = !1);
|
|
4672
4693
|
break;
|
|
4673
4694
|
case "OMFE:betslipSidebar":
|
|
4674
|
-
const
|
|
4675
|
-
r(5, v = !!
|
|
4695
|
+
const wr = (ot = b.data.payload) == null ? void 0 : ot.enableBetslipBubble;
|
|
4696
|
+
r(5, v = !!wr);
|
|
4676
4697
|
break;
|
|
4677
4698
|
case "UserSessionID":
|
|
4678
|
-
r(6,
|
|
4699
|
+
r(6, N = b.data.session), r(7, H = !0);
|
|
4679
4700
|
break;
|
|
4680
4701
|
case "LogoutSuccessfull":
|
|
4681
4702
|
r(7, H = !1);
|
|
4682
4703
|
break;
|
|
4683
4704
|
}
|
|
4684
4705
|
};
|
|
4685
|
-
|
|
4686
|
-
window.removeEventListener("message",
|
|
4706
|
+
Fr(() => (M(), window.addEventListener("message", it, !1), no(f) && r(3, d = !0), () => {
|
|
4707
|
+
window.removeEventListener("message", it);
|
|
4687
4708
|
}));
|
|
4688
|
-
const
|
|
4689
|
-
function
|
|
4690
|
-
|
|
4709
|
+
const gr = (b) => P("betslipClick", {}), yr = (b) => P("betslipClick", {}), vr = (b) => P("betslipClick", { actionType: "showMyBets" }), _r = (b) => P("betslipClick", { actionType: "login" }), Er = (b) => P("betslipClick", { actionType: "register" }), xr = (b) => P("betslipClick", {});
|
|
4710
|
+
function Br(b) {
|
|
4711
|
+
$e[b ? "unshift" : "push"](() => {
|
|
4691
4712
|
c = b, r(0, c);
|
|
4692
4713
|
});
|
|
4693
4714
|
}
|
|
@@ -4695,12 +4716,12 @@ function po(e, t, r) {
|
|
|
4695
4716
|
"clientstyling" in b && r(10, i = b.clientstyling), "clientstylingurl" in b && r(11, o = b.clientstylingurl), "mbsource" in b && r(12, s = b.mbsource), "betslipbuttonbar" in b && r(13, a = b.betslipbuttonbar), "session" in b && r(14, l = b.session), "lang" in b && r(15, u = b.lang), "translationurl" in b && r(16, h = b.translationurl);
|
|
4696
4717
|
}, e.$$.update = () => {
|
|
4697
4718
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4698
|
-
1025 && i && c &&
|
|
4699
|
-
2049 && o && c &&
|
|
4700
|
-
4097 && s && c &&
|
|
4719
|
+
1025 && i && c && io(c, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4720
|
+
2049 && o && c && oo(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4721
|
+
4097 && s && c && so(c, `${s}.Style`), e.$$.dirty & /*betslipbuttonbar*/
|
|
4701
4722
|
8192 && r(1, A = a.toLowerCase() === "true"), e.$$.dirty & /*session, isBetslipButtonBar*/
|
|
4702
4723
|
16386 && l && A && fe(), e.$$.dirty & /*lang*/
|
|
4703
|
-
32768 && u &&
|
|
4724
|
+
32768 && u && br(), e.$$.dirty & /*translationurl*/
|
|
4704
4725
|
65536 && h && F();
|
|
4705
4726
|
}, [
|
|
4706
4727
|
c,
|
|
@@ -4709,10 +4730,10 @@ function po(e, t, r) {
|
|
|
4709
4730
|
d,
|
|
4710
4731
|
m,
|
|
4711
4732
|
v,
|
|
4712
|
-
|
|
4733
|
+
N,
|
|
4713
4734
|
H,
|
|
4714
4735
|
n,
|
|
4715
|
-
|
|
4736
|
+
P,
|
|
4716
4737
|
i,
|
|
4717
4738
|
o,
|
|
4718
4739
|
s,
|
|
@@ -4720,23 +4741,23 @@ function po(e, t, r) {
|
|
|
4720
4741
|
l,
|
|
4721
4742
|
u,
|
|
4722
4743
|
h,
|
|
4723
|
-
br,
|
|
4724
4744
|
gr,
|
|
4725
4745
|
yr,
|
|
4726
4746
|
vr,
|
|
4727
4747
|
_r,
|
|
4728
4748
|
Er,
|
|
4729
|
-
xr
|
|
4749
|
+
xr,
|
|
4750
|
+
Br
|
|
4730
4751
|
];
|
|
4731
4752
|
}
|
|
4732
|
-
class
|
|
4753
|
+
class yo extends qr {
|
|
4733
4754
|
constructor(t) {
|
|
4734
|
-
super(),
|
|
4755
|
+
super(), Qr(
|
|
4735
4756
|
this,
|
|
4736
4757
|
t,
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4758
|
+
go,
|
|
4759
|
+
bo,
|
|
4760
|
+
$t,
|
|
4740
4761
|
{
|
|
4741
4762
|
clientstyling: 10,
|
|
4742
4763
|
clientstylingurl: 11,
|
|
@@ -4746,53 +4767,53 @@ class bo extends Yr {
|
|
|
4746
4767
|
lang: 15,
|
|
4747
4768
|
translationurl: 16
|
|
4748
4769
|
},
|
|
4749
|
-
|
|
4770
|
+
uo
|
|
4750
4771
|
);
|
|
4751
4772
|
}
|
|
4752
4773
|
get clientstyling() {
|
|
4753
4774
|
return this.$$.ctx[10];
|
|
4754
4775
|
}
|
|
4755
4776
|
set clientstyling(t) {
|
|
4756
|
-
this.$$set({ clientstyling: t }),
|
|
4777
|
+
this.$$set({ clientstyling: t }), R();
|
|
4757
4778
|
}
|
|
4758
4779
|
get clientstylingurl() {
|
|
4759
4780
|
return this.$$.ctx[11];
|
|
4760
4781
|
}
|
|
4761
4782
|
set clientstylingurl(t) {
|
|
4762
|
-
this.$$set({ clientstylingurl: t }),
|
|
4783
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4763
4784
|
}
|
|
4764
4785
|
get mbsource() {
|
|
4765
4786
|
return this.$$.ctx[12];
|
|
4766
4787
|
}
|
|
4767
4788
|
set mbsource(t) {
|
|
4768
|
-
this.$$set({ mbsource: t }),
|
|
4789
|
+
this.$$set({ mbsource: t }), R();
|
|
4769
4790
|
}
|
|
4770
4791
|
get betslipbuttonbar() {
|
|
4771
4792
|
return this.$$.ctx[13];
|
|
4772
4793
|
}
|
|
4773
4794
|
set betslipbuttonbar(t) {
|
|
4774
|
-
this.$$set({ betslipbuttonbar: t }),
|
|
4795
|
+
this.$$set({ betslipbuttonbar: t }), R();
|
|
4775
4796
|
}
|
|
4776
4797
|
get session() {
|
|
4777
4798
|
return this.$$.ctx[14];
|
|
4778
4799
|
}
|
|
4779
4800
|
set session(t) {
|
|
4780
|
-
this.$$set({ session: t }),
|
|
4801
|
+
this.$$set({ session: t }), R();
|
|
4781
4802
|
}
|
|
4782
4803
|
get lang() {
|
|
4783
4804
|
return this.$$.ctx[15];
|
|
4784
4805
|
}
|
|
4785
4806
|
set lang(t) {
|
|
4786
|
-
this.$$set({ lang: t }),
|
|
4807
|
+
this.$$set({ lang: t }), R();
|
|
4787
4808
|
}
|
|
4788
4809
|
get translationurl() {
|
|
4789
4810
|
return this.$$.ctx[16];
|
|
4790
4811
|
}
|
|
4791
4812
|
set translationurl(t) {
|
|
4792
|
-
this.$$set({ translationurl: t }),
|
|
4813
|
+
this.$$set({ translationurl: t }), R();
|
|
4793
4814
|
}
|
|
4794
4815
|
}
|
|
4795
|
-
|
|
4816
|
+
Yr(yo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, betslipbuttonbar: {}, session: {}, lang: {}, translationurl: {} }, [], [], !0);
|
|
4796
4817
|
export {
|
|
4797
|
-
|
|
4818
|
+
yo as default
|
|
4798
4819
|
};
|