@everymatrix/casino-betslip-indicator 1.77.20 → 1.77.22
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-D5g8UN-M.js → CasinoBetslipIndicator-BUP9qpWA.js} +716 -673
- package/components/CasinoBetslipIndicator-Bdsfkyjn.cjs +21 -0
- package/components/{CasinoBetslipIndicator-nDNVANjF.js → CasinoBetslipIndicator-C0Ki2HhZ.js} +738 -695
- 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-DfAVaF5E.cjs +0 -21
package/components/{CasinoBetslipIndicator-D5g8UN-M.js → CasinoBetslipIndicator-BUP9qpWA.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function H() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function gt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function K(e) {
|
|
10
|
+
e.forEach(gt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function We(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _t(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function qt(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Kt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -30,14 +30,14 @@ function Zt(e, ...t) {
|
|
|
30
30
|
function B(e, t) {
|
|
31
31
|
e.appendChild(t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const n =
|
|
33
|
+
function er(e, t, r) {
|
|
34
|
+
const n = tr(e);
|
|
35
35
|
if (!n.getElementById(t)) {
|
|
36
|
-
const i =
|
|
37
|
-
i.id = t, i.textContent = r,
|
|
36
|
+
const i = F("style");
|
|
37
|
+
i.id = t, i.textContent = r, rr(n, i);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function tr(e) {
|
|
41
41
|
if (!e)
|
|
42
42
|
return document;
|
|
43
43
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -47,48 +47,48 @@ function Jt(e) {
|
|
|
47
47
|
t
|
|
48
48
|
) : e.ownerDocument;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function rr(e, t) {
|
|
51
51
|
return B(
|
|
52
52
|
/** @type {Document} */
|
|
53
53
|
e.head || e,
|
|
54
54
|
t
|
|
55
55
|
), t.sheet;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function ee(e, t, r) {
|
|
58
58
|
e.insertBefore(t, r || null);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function V(e) {
|
|
61
61
|
e.parentNode && e.parentNode.removeChild(e);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function F(e) {
|
|
64
64
|
return document.createElement(e);
|
|
65
65
|
}
|
|
66
66
|
function C(e) {
|
|
67
67
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function xt(e) {
|
|
70
70
|
return document.createTextNode(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
72
|
+
function nr() {
|
|
73
|
+
return xt(" ");
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ir(e, t, r, n) {
|
|
76
76
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
77
77
|
}
|
|
78
78
|
function E(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function or(e) {
|
|
82
82
|
return Array.from(e.childNodes);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function sr(e, t) {
|
|
85
85
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
86
86
|
t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function ar(e, t, r, n) {
|
|
89
89
|
e.style.setProperty(t, r, "");
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function ur(e) {
|
|
92
92
|
const t = {};
|
|
93
93
|
return e.childNodes.forEach(
|
|
94
94
|
/** @param {Element} node */
|
|
@@ -97,87 +97,87 @@ function nr(e) {
|
|
|
97
97
|
}
|
|
98
98
|
), t;
|
|
99
99
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
102
|
-
|
|
100
|
+
let J;
|
|
101
|
+
function Z(e) {
|
|
102
|
+
J = e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!
|
|
104
|
+
function hr() {
|
|
105
|
+
if (!J)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
|
-
return
|
|
107
|
+
return J;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function lr(e) {
|
|
110
|
+
hr().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const R = [],
|
|
112
|
+
const R = [], Ae = [];
|
|
113
113
|
let U = [];
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
114
|
+
const Ye = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Pe = !1;
|
|
116
|
+
function fr() {
|
|
117
|
+
Pe || (Pe = !0, cr.then(Q));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Oe(e) {
|
|
120
120
|
U.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const _e = /* @__PURE__ */ new Set();
|
|
123
123
|
let M = 0;
|
|
124
|
-
function
|
|
124
|
+
function Q() {
|
|
125
125
|
if (M !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = J;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
130
|
for (; M < R.length; ) {
|
|
131
131
|
const t = R[M];
|
|
132
|
-
M++,
|
|
132
|
+
M++, Z(t), mr(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
135
|
throw R.length = 0, M = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
137
|
+
for (Z(null), R.length = 0, M = 0; Ae.length; )
|
|
138
|
+
Ae.pop()();
|
|
139
139
|
for (let t = 0; t < U.length; t += 1) {
|
|
140
140
|
const r = U[t];
|
|
141
|
-
|
|
141
|
+
_e.has(r) || (_e.add(r), r());
|
|
142
142
|
}
|
|
143
143
|
U.length = 0;
|
|
144
144
|
} while (R.length);
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
for (; Ye.length; )
|
|
146
|
+
Ye.pop()();
|
|
147
|
+
Pe = !1, _e.clear(), Z(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function mr(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), K(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Oe);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function pr(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
158
|
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const dr = /* @__PURE__ */ new Set();
|
|
161
|
+
function br(e, t) {
|
|
162
|
+
e && e.i && (dr.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function yr(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
167
|
-
const o = e.$$.on_mount.map(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
169
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), Oe(() => {
|
|
167
|
+
const o = e.$$.on_mount.map(gt).filter(We);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
169
|
+
}), i.forEach(Oe);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function vr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (pr(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (R.push(e),
|
|
175
|
+
function gr(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (R.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
const h =
|
|
180
|
-
|
|
178
|
+
function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
179
|
+
const h = J;
|
|
180
|
+
Z(e);
|
|
181
181
|
const u = e.$$ = {
|
|
182
182
|
fragment: null,
|
|
183
183
|
ctx: [],
|
|
@@ -185,7 +185,7 @@ function dr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
185
185
|
props: o,
|
|
186
186
|
update: H,
|
|
187
187
|
not_equal: i,
|
|
188
|
-
bound:
|
|
188
|
+
bound: Je(),
|
|
189
189
|
// lifecycle
|
|
190
190
|
on_mount: [],
|
|
191
191
|
on_destroy: [],
|
|
@@ -194,7 +194,7 @@ function dr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
194
194
|
after_update: [],
|
|
195
195
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
196
196
|
// everything else
|
|
197
|
-
callbacks:
|
|
197
|
+
callbacks: Je(),
|
|
198
198
|
dirty: a,
|
|
199
199
|
skip_bound: !1,
|
|
200
200
|
root: t.target || h.$$.root
|
|
@@ -202,20 +202,20 @@ function dr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
202
202
|
s && s(u.root);
|
|
203
203
|
let l = !1;
|
|
204
204
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
205
|
-
const
|
|
206
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
207
|
-
}) : [], u.update(), l = !0,
|
|
205
|
+
const y = p.length ? p[0] : f;
|
|
206
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && gr(e, c)), f;
|
|
207
|
+
}) : [], u.update(), l = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
|
-
const c =
|
|
210
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
209
|
+
const c = or(t.target);
|
|
210
|
+
u.fragment && u.fragment.l(c), c.forEach(V);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
213
|
+
t.intro && br(e.$$.fragment), yr(e, t.target, t.anchor), Q();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
Z(h);
|
|
216
216
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let Et;
|
|
218
|
+
typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
219
219
|
/** The Svelte component constructor */
|
|
220
220
|
$$ctor;
|
|
221
221
|
/** Slots */
|
|
@@ -257,24 +257,24 @@ typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
|
257
257
|
let o;
|
|
258
258
|
return {
|
|
259
259
|
c: function() {
|
|
260
|
-
o =
|
|
260
|
+
o = F("slot"), i !== "default" && E(o, "name", i);
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
263
|
* @param {HTMLElement} target
|
|
264
264
|
* @param {HTMLElement} [anchor]
|
|
265
265
|
*/
|
|
266
266
|
m: function(h, u) {
|
|
267
|
-
|
|
267
|
+
ee(h, o, u);
|
|
268
268
|
},
|
|
269
269
|
d: function(h) {
|
|
270
|
-
h &&
|
|
270
|
+
h && V(o);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
276
|
return;
|
|
277
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = ur(this);
|
|
278
278
|
for (const i of this.$$s)
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
@@ -361,8 +361,8 @@ function ae(e, t, r, n) {
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
let s = class extends
|
|
364
|
+
function xr(e, t, r, n, i, o) {
|
|
365
|
+
let s = class extends Et {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
|
368
368
|
}
|
|
@@ -390,7 +390,7 @@ function br(e, t, r, n, i, o) {
|
|
|
390
390
|
}), e.element = /** @type {any} */
|
|
391
391
|
s, s;
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class Er {
|
|
394
394
|
/**
|
|
395
395
|
* ### PRIVATE API
|
|
396
396
|
*
|
|
@@ -409,7 +409,7 @@ class yr {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
|
|
412
|
+
vr(this, 1), this.$destroy = H;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,7 +418,7 @@ class yr {
|
|
|
418
418
|
* @returns {() => void}
|
|
419
419
|
*/
|
|
420
420
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
421
|
+
if (!We(r))
|
|
422
422
|
return H;
|
|
423
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
424
|
return n.push(r), () => {
|
|
@@ -431,11 +431,11 @@ class yr {
|
|
|
431
431
|
* @returns {void}
|
|
432
432
|
*/
|
|
433
433
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !qt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
437
|
+
const Sr = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
|
|
439
439
|
/*! *****************************************************************************
|
|
440
440
|
Copyright (c) Microsoft Corporation.
|
|
441
441
|
|
|
@@ -450,43 +450,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
450
450
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
451
451
|
PERFORMANCE OF THIS SOFTWARE.
|
|
452
452
|
***************************************************************************** */
|
|
453
|
-
var
|
|
454
|
-
return
|
|
453
|
+
var Ie = function(e, t) {
|
|
454
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
455
455
|
r.__proto__ = n;
|
|
456
456
|
} || function(r, n) {
|
|
457
457
|
for (var i in n)
|
|
458
458
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
459
|
-
},
|
|
459
|
+
}, Ie(e, t);
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function te(e, t) {
|
|
462
462
|
if (typeof t != "function" && t !== null)
|
|
463
463
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
464
|
-
|
|
464
|
+
Ie(e, t);
|
|
465
465
|
function r() {
|
|
466
466
|
this.constructor = e;
|
|
467
467
|
}
|
|
468
468
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
469
469
|
}
|
|
470
|
-
|
|
471
|
-
return y = Object.assign || function(t) {
|
|
472
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
473
|
-
r = arguments[n];
|
|
474
|
-
for (var o in r)
|
|
475
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
476
|
-
}
|
|
477
|
-
return t;
|
|
478
|
-
}, y.apply(this, arguments);
|
|
479
|
-
};
|
|
480
|
-
function gr(e, t) {
|
|
481
|
-
var r = {};
|
|
482
|
-
for (var n in e)
|
|
483
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
484
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
485
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
486
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
487
|
-
return r;
|
|
488
|
-
}
|
|
489
|
-
function Pe(e) {
|
|
470
|
+
function Ne(e) {
|
|
490
471
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
491
472
|
if (r)
|
|
492
473
|
return r.call(e);
|
|
@@ -498,7 +479,7 @@ function Pe(e) {
|
|
|
498
479
|
};
|
|
499
480
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
500
481
|
}
|
|
501
|
-
function
|
|
482
|
+
function Ce(e, t) {
|
|
502
483
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
503
484
|
if (!r)
|
|
504
485
|
return e;
|
|
@@ -518,22 +499,22 @@ function Oe(e, t) {
|
|
|
518
499
|
}
|
|
519
500
|
return o;
|
|
520
501
|
}
|
|
521
|
-
function
|
|
522
|
-
if (
|
|
502
|
+
function Le(e, t, r) {
|
|
503
|
+
if (arguments.length === 2)
|
|
523
504
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
524
505
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
525
506
|
return e.concat(o || t);
|
|
526
507
|
}
|
|
527
|
-
function
|
|
508
|
+
function P(e) {
|
|
528
509
|
return typeof e == "function";
|
|
529
510
|
}
|
|
530
|
-
function
|
|
511
|
+
function St(e) {
|
|
531
512
|
var t = function(n) {
|
|
532
513
|
Error.call(n), n.stack = new Error().stack;
|
|
533
514
|
}, r = e(t);
|
|
534
515
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
535
516
|
}
|
|
536
|
-
var
|
|
517
|
+
var xe = St(function(e) {
|
|
537
518
|
return function(r) {
|
|
538
519
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
539
520
|
` + r.map(function(n, i) {
|
|
@@ -542,13 +523,13 @@ var ge = vt(function(e) {
|
|
|
542
523
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
543
524
|
};
|
|
544
525
|
});
|
|
545
|
-
function
|
|
526
|
+
function Me(e, t) {
|
|
546
527
|
if (e) {
|
|
547
528
|
var r = e.indexOf(t);
|
|
548
529
|
0 <= r && e.splice(r, 1);
|
|
549
530
|
}
|
|
550
531
|
}
|
|
551
|
-
var
|
|
532
|
+
var pe = function() {
|
|
552
533
|
function e(t) {
|
|
553
534
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
554
535
|
}
|
|
@@ -560,7 +541,7 @@ var me = function() {
|
|
|
560
541
|
if (s)
|
|
561
542
|
if (this._parentage = null, Array.isArray(s))
|
|
562
543
|
try {
|
|
563
|
-
for (var a =
|
|
544
|
+
for (var a = Ne(s), h = a.next(); !h.done; h = a.next()) {
|
|
564
545
|
var u = h.value;
|
|
565
546
|
u.remove(this);
|
|
566
547
|
}
|
|
@@ -577,22 +558,22 @@ var me = function() {
|
|
|
577
558
|
else
|
|
578
559
|
s.remove(this);
|
|
579
560
|
var l = this.initialTeardown;
|
|
580
|
-
if (
|
|
561
|
+
if (P(l))
|
|
581
562
|
try {
|
|
582
563
|
l();
|
|
583
564
|
} catch (m) {
|
|
584
|
-
o = m instanceof
|
|
565
|
+
o = m instanceof xe ? m.errors : [m];
|
|
585
566
|
}
|
|
586
567
|
var c = this._finalizers;
|
|
587
568
|
if (c) {
|
|
588
569
|
this._finalizers = null;
|
|
589
570
|
try {
|
|
590
|
-
for (var f =
|
|
591
|
-
var
|
|
571
|
+
for (var f = Ne(c), p = f.next(); !p.done; p = f.next()) {
|
|
572
|
+
var y = p.value;
|
|
592
573
|
try {
|
|
593
|
-
|
|
574
|
+
qe(y);
|
|
594
575
|
} catch (m) {
|
|
595
|
-
o = o ?? [], m instanceof
|
|
576
|
+
o = o ?? [], m instanceof xe ? o = Le(Le([], Ce(o)), Ce(m.errors)) : o.push(m);
|
|
596
577
|
}
|
|
597
578
|
}
|
|
598
579
|
} catch (m) {
|
|
@@ -607,13 +588,13 @@ var me = function() {
|
|
|
607
588
|
}
|
|
608
589
|
}
|
|
609
590
|
if (o)
|
|
610
|
-
throw new
|
|
591
|
+
throw new xe(o);
|
|
611
592
|
}
|
|
612
593
|
}, e.prototype.add = function(t) {
|
|
613
594
|
var r;
|
|
614
595
|
if (t && t !== this)
|
|
615
596
|
if (this.closed)
|
|
616
|
-
|
|
597
|
+
qe(t);
|
|
617
598
|
else {
|
|
618
599
|
if (t instanceof e) {
|
|
619
600
|
if (t.closed || t._hasParent(this))
|
|
@@ -630,52 +611,52 @@ var me = function() {
|
|
|
630
611
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
631
612
|
}, e.prototype._removeParent = function(t) {
|
|
632
613
|
var r = this._parentage;
|
|
633
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
614
|
+
r === t ? this._parentage = null : Array.isArray(r) && Me(r, t);
|
|
634
615
|
}, e.prototype.remove = function(t) {
|
|
635
616
|
var r = this._finalizers;
|
|
636
|
-
r &&
|
|
617
|
+
r && Me(r, t), t instanceof e && t._removeParent(this);
|
|
637
618
|
}, e.EMPTY = function() {
|
|
638
619
|
var t = new e();
|
|
639
620
|
return t.closed = !0, t;
|
|
640
621
|
}(), e;
|
|
641
|
-
}(),
|
|
642
|
-
function
|
|
643
|
-
return e instanceof
|
|
622
|
+
}(), wt = pe.EMPTY;
|
|
623
|
+
function Ht(e) {
|
|
624
|
+
return e instanceof pe || e && "closed" in e && P(e.remove) && P(e.add) && P(e.unsubscribe);
|
|
644
625
|
}
|
|
645
|
-
function
|
|
646
|
-
|
|
626
|
+
function qe(e) {
|
|
627
|
+
P(e) ? e() : e.unsubscribe();
|
|
647
628
|
}
|
|
648
|
-
var
|
|
629
|
+
var wr = {
|
|
649
630
|
Promise: void 0
|
|
650
|
-
},
|
|
631
|
+
}, Hr = {
|
|
651
632
|
setTimeout: function(e, t) {
|
|
652
633
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
653
634
|
r[n - 2] = arguments[n];
|
|
654
|
-
return setTimeout.apply(void 0,
|
|
635
|
+
return setTimeout.apply(void 0, Le([e, t], Ce(r)));
|
|
655
636
|
},
|
|
656
637
|
clearTimeout: function(e) {
|
|
657
638
|
return clearTimeout(e);
|
|
658
639
|
},
|
|
659
640
|
delegate: void 0
|
|
660
641
|
};
|
|
661
|
-
function
|
|
662
|
-
|
|
642
|
+
function Tr(e) {
|
|
643
|
+
Hr.setTimeout(function() {
|
|
663
644
|
throw e;
|
|
664
645
|
});
|
|
665
646
|
}
|
|
666
|
-
function
|
|
647
|
+
function Ke() {
|
|
667
648
|
}
|
|
668
649
|
function ue(e) {
|
|
669
650
|
e();
|
|
670
651
|
}
|
|
671
|
-
var
|
|
672
|
-
|
|
652
|
+
var Tt = function(e) {
|
|
653
|
+
te(t, e);
|
|
673
654
|
function t(r) {
|
|
674
655
|
var n = e.call(this) || this;
|
|
675
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
656
|
+
return n.isStopped = !1, r ? (n.destination = r, Ht(r) && r.add(n)) : n.destination = Pr, n;
|
|
676
657
|
}
|
|
677
658
|
return t.create = function(r, n, i) {
|
|
678
|
-
return new
|
|
659
|
+
return new $e(r, n, i);
|
|
679
660
|
}, t.prototype.next = function(r) {
|
|
680
661
|
this.isStopped || this._next(r);
|
|
681
662
|
}, t.prototype.error = function(r) {
|
|
@@ -699,7 +680,7 @@ var _t = function(e) {
|
|
|
699
680
|
this.unsubscribe();
|
|
700
681
|
}
|
|
701
682
|
}, t;
|
|
702
|
-
}(
|
|
683
|
+
}(pe), Br = function() {
|
|
703
684
|
function e(t) {
|
|
704
685
|
this.partialObserver = t;
|
|
705
686
|
}
|
|
@@ -730,43 +711,43 @@ var _t = function(e) {
|
|
|
730
711
|
oe(r);
|
|
731
712
|
}
|
|
732
713
|
}, e;
|
|
733
|
-
}(),
|
|
734
|
-
|
|
714
|
+
}(), $e = function(e) {
|
|
715
|
+
te(t, e);
|
|
735
716
|
function t(r, n, i) {
|
|
736
717
|
var o = e.call(this) || this, s;
|
|
737
|
-
return
|
|
718
|
+
return P(r) || !r ? s = {
|
|
738
719
|
next: r ?? void 0,
|
|
739
720
|
error: n ?? void 0,
|
|
740
721
|
complete: i ?? void 0
|
|
741
|
-
} : s = r, o.destination = new
|
|
722
|
+
} : s = r, o.destination = new Br(s), o;
|
|
742
723
|
}
|
|
743
724
|
return t;
|
|
744
|
-
}(
|
|
725
|
+
}(Tt);
|
|
745
726
|
function oe(e) {
|
|
746
|
-
|
|
727
|
+
Tr(e);
|
|
747
728
|
}
|
|
748
|
-
function
|
|
729
|
+
function Ar(e) {
|
|
749
730
|
throw e;
|
|
750
731
|
}
|
|
751
|
-
var
|
|
732
|
+
var Pr = {
|
|
752
733
|
closed: !0,
|
|
753
|
-
next:
|
|
754
|
-
error:
|
|
755
|
-
complete:
|
|
756
|
-
},
|
|
734
|
+
next: Ke,
|
|
735
|
+
error: Ar,
|
|
736
|
+
complete: Ke
|
|
737
|
+
}, Or = function() {
|
|
757
738
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
758
739
|
}();
|
|
759
|
-
function
|
|
740
|
+
function Ir(e) {
|
|
760
741
|
return e;
|
|
761
742
|
}
|
|
762
|
-
function
|
|
763
|
-
return e.length === 0 ?
|
|
743
|
+
function Nr(e) {
|
|
744
|
+
return e.length === 0 ? Ir : e.length === 1 ? e[0] : function(r) {
|
|
764
745
|
return e.reduce(function(n, i) {
|
|
765
746
|
return i(n);
|
|
766
747
|
}, r);
|
|
767
748
|
};
|
|
768
749
|
}
|
|
769
|
-
var
|
|
750
|
+
var et = function() {
|
|
770
751
|
function e(t) {
|
|
771
752
|
t && (this._subscribe = t);
|
|
772
753
|
}
|
|
@@ -774,7 +755,7 @@ var Qe = function() {
|
|
|
774
755
|
var r = new e();
|
|
775
756
|
return r.source = this, r.operator = t, r;
|
|
776
757
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
777
|
-
var i = this, o =
|
|
758
|
+
var i = this, o = Lr(t) ? t : new $e(t, r, n);
|
|
778
759
|
return ue(function() {
|
|
779
760
|
var s = i, a = s.operator, h = s.source;
|
|
780
761
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -787,8 +768,8 @@ var Qe = function() {
|
|
|
787
768
|
}
|
|
788
769
|
}, e.prototype.forEach = function(t, r) {
|
|
789
770
|
var n = this;
|
|
790
|
-
return r =
|
|
791
|
-
var s = new
|
|
771
|
+
return r = tt(r), new r(function(i, o) {
|
|
772
|
+
var s = new $e({
|
|
792
773
|
next: function(a) {
|
|
793
774
|
try {
|
|
794
775
|
t(a);
|
|
@@ -804,15 +785,15 @@ var Qe = function() {
|
|
|
804
785
|
}, e.prototype._subscribe = function(t) {
|
|
805
786
|
var r;
|
|
806
787
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
807
|
-
}, e.prototype[
|
|
788
|
+
}, e.prototype[Or] = function() {
|
|
808
789
|
return this;
|
|
809
790
|
}, e.prototype.pipe = function() {
|
|
810
791
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
811
792
|
t[r] = arguments[r];
|
|
812
|
-
return
|
|
793
|
+
return Nr(t)(this);
|
|
813
794
|
}, e.prototype.toPromise = function(t) {
|
|
814
795
|
var r = this;
|
|
815
|
-
return t =
|
|
796
|
+
return t = tt(t), new t(function(n, i) {
|
|
816
797
|
var o;
|
|
817
798
|
r.subscribe(function(s) {
|
|
818
799
|
return o = s;
|
|
@@ -826,32 +807,32 @@ var Qe = function() {
|
|
|
826
807
|
return new e(t);
|
|
827
808
|
}, e;
|
|
828
809
|
}();
|
|
829
|
-
function
|
|
810
|
+
function tt(e) {
|
|
830
811
|
var t;
|
|
831
|
-
return (t = e ??
|
|
812
|
+
return (t = e ?? wr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
832
813
|
}
|
|
833
|
-
function
|
|
834
|
-
return e &&
|
|
814
|
+
function Cr(e) {
|
|
815
|
+
return e && P(e.next) && P(e.error) && P(e.complete);
|
|
835
816
|
}
|
|
836
|
-
function
|
|
837
|
-
return e && e instanceof
|
|
817
|
+
function Lr(e) {
|
|
818
|
+
return e && e instanceof Tt || Cr(e) && Ht(e);
|
|
838
819
|
}
|
|
839
|
-
var
|
|
820
|
+
var Mr = St(function(e) {
|
|
840
821
|
return function() {
|
|
841
822
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
842
823
|
};
|
|
843
|
-
}),
|
|
844
|
-
|
|
824
|
+
}), Bt = function(e) {
|
|
825
|
+
te(t, e);
|
|
845
826
|
function t() {
|
|
846
827
|
var r = e.call(this) || this;
|
|
847
828
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
848
829
|
}
|
|
849
830
|
return t.prototype.lift = function(r) {
|
|
850
|
-
var n = new
|
|
831
|
+
var n = new rt(this, this);
|
|
851
832
|
return n.operator = r, n;
|
|
852
833
|
}, t.prototype._throwIfClosed = function() {
|
|
853
834
|
if (this.closed)
|
|
854
|
-
throw new
|
|
835
|
+
throw new Mr();
|
|
855
836
|
}, t.prototype.next = function(r) {
|
|
856
837
|
var n = this;
|
|
857
838
|
ue(function() {
|
|
@@ -859,7 +840,7 @@ var Ir = vt(function(e) {
|
|
|
859
840
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
860
841
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
861
842
|
try {
|
|
862
|
-
for (var s =
|
|
843
|
+
for (var s = Ne(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
863
844
|
var h = a.value;
|
|
864
845
|
h.next(r);
|
|
865
846
|
}
|
|
@@ -908,20 +889,20 @@ var Ir = vt(function(e) {
|
|
|
908
889
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
909
890
|
}, t.prototype._innerSubscribe = function(r) {
|
|
910
891
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
911
|
-
return o || s ?
|
|
912
|
-
n.currentObservers = null,
|
|
892
|
+
return o || s ? wt : (this.currentObservers = null, a.push(r), new pe(function() {
|
|
893
|
+
n.currentObservers = null, Me(a, r);
|
|
913
894
|
}));
|
|
914
895
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
915
896
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
916
897
|
i ? r.error(o) : s && r.complete();
|
|
917
898
|
}, t.prototype.asObservable = function() {
|
|
918
|
-
var r = new
|
|
899
|
+
var r = new et();
|
|
919
900
|
return r.source = this, r;
|
|
920
901
|
}, t.create = function(r, n) {
|
|
921
|
-
return new
|
|
902
|
+
return new rt(r, n);
|
|
922
903
|
}, t;
|
|
923
|
-
}(
|
|
924
|
-
|
|
904
|
+
}(et), rt = function(e) {
|
|
905
|
+
te(t, e);
|
|
925
906
|
function t(r, n) {
|
|
926
907
|
var i = e.call(this) || this;
|
|
927
908
|
return i.destination = r, i.source = n, i;
|
|
@@ -937,17 +918,17 @@ var Ir = vt(function(e) {
|
|
|
937
918
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
938
919
|
}, t.prototype._subscribe = function(r) {
|
|
939
920
|
var n, i;
|
|
940
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
921
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : wt;
|
|
941
922
|
}, t;
|
|
942
|
-
}(
|
|
923
|
+
}(Bt), At = {
|
|
943
924
|
now: function() {
|
|
944
|
-
return (
|
|
925
|
+
return (At.delegate || Date).now();
|
|
945
926
|
},
|
|
946
927
|
delegate: void 0
|
|
947
|
-
},
|
|
948
|
-
|
|
928
|
+
}, $r = function(e) {
|
|
929
|
+
te(t, e);
|
|
949
930
|
function t(r, n, i) {
|
|
950
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
931
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = At);
|
|
951
932
|
var o = e.call(this) || this;
|
|
952
933
|
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;
|
|
953
934
|
}
|
|
@@ -967,24 +948,24 @@ var Ir = vt(function(e) {
|
|
|
967
948
|
u && o.splice(0, u + 1);
|
|
968
949
|
}
|
|
969
950
|
}, t;
|
|
970
|
-
}(
|
|
971
|
-
const
|
|
972
|
-
if (
|
|
973
|
-
const r = new
|
|
974
|
-
|
|
951
|
+
}(Bt);
|
|
952
|
+
const nt = [], it = {}, Rr = (e, t = 0) => {
|
|
953
|
+
if (nt.indexOf(e) == -1) {
|
|
954
|
+
const r = new $r(t);
|
|
955
|
+
it[e] = r, nt.push(e);
|
|
975
956
|
}
|
|
976
|
-
return
|
|
957
|
+
return it[e];
|
|
977
958
|
}, $ = [];
|
|
978
|
-
function
|
|
959
|
+
function Ur(e, t) {
|
|
979
960
|
return {
|
|
980
|
-
subscribe:
|
|
961
|
+
subscribe: de(e, t).subscribe
|
|
981
962
|
};
|
|
982
963
|
}
|
|
983
|
-
function
|
|
964
|
+
function de(e, t = H) {
|
|
984
965
|
let r;
|
|
985
966
|
const n = /* @__PURE__ */ new Set();
|
|
986
967
|
function i(a) {
|
|
987
|
-
if (
|
|
968
|
+
if (_t(e, a) && (e = a, r)) {
|
|
988
969
|
const h = !$.length;
|
|
989
970
|
for (const u of n)
|
|
990
971
|
u[1](), $.push(u, e);
|
|
@@ -1006,12 +987,12 @@ function pe(e, t = H) {
|
|
|
1006
987
|
}
|
|
1007
988
|
return { set: i, update: o, subscribe: s };
|
|
1008
989
|
}
|
|
1009
|
-
function
|
|
990
|
+
function X(e, t, r) {
|
|
1010
991
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1011
992
|
if (!i.every(Boolean))
|
|
1012
993
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1013
994
|
const o = t.length < 2;
|
|
1014
|
-
return
|
|
995
|
+
return Ur(r, (s, a) => {
|
|
1015
996
|
let h = !1;
|
|
1016
997
|
const u = [];
|
|
1017
998
|
let l = 0, c = H;
|
|
@@ -1019,13 +1000,13 @@ function W(e, t, r) {
|
|
|
1019
1000
|
if (l)
|
|
1020
1001
|
return;
|
|
1021
1002
|
c();
|
|
1022
|
-
const
|
|
1023
|
-
o ? s(
|
|
1003
|
+
const y = t(n ? u[0] : u, s, a);
|
|
1004
|
+
o ? s(y) : c = We(y) ? y : H;
|
|
1024
1005
|
}, p = i.map(
|
|
1025
|
-
(
|
|
1026
|
-
|
|
1027
|
-
(
|
|
1028
|
-
u[m] =
|
|
1006
|
+
(y, m) => Kt(
|
|
1007
|
+
y,
|
|
1008
|
+
(x) => {
|
|
1009
|
+
u[m] = x, l &= ~(1 << m), h && f();
|
|
1029
1010
|
},
|
|
1030
1011
|
() => {
|
|
1031
1012
|
l |= 1 << m;
|
|
@@ -1033,115 +1014,157 @@ function W(e, t, r) {
|
|
|
1033
1014
|
)
|
|
1034
1015
|
);
|
|
1035
1016
|
return h = !0, f(), function() {
|
|
1036
|
-
|
|
1017
|
+
K(p), c(), h = !1;
|
|
1037
1018
|
};
|
|
1038
1019
|
});
|
|
1039
1020
|
}
|
|
1040
|
-
function
|
|
1021
|
+
function Fr(e) {
|
|
1041
1022
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1042
1023
|
}
|
|
1043
|
-
var
|
|
1044
|
-
return
|
|
1024
|
+
var Dr = function(t) {
|
|
1025
|
+
return Gr(t) && !jr(t);
|
|
1045
1026
|
};
|
|
1046
|
-
function
|
|
1027
|
+
function Gr(e) {
|
|
1047
1028
|
return !!e && typeof e == "object";
|
|
1048
1029
|
}
|
|
1049
|
-
function
|
|
1030
|
+
function jr(e) {
|
|
1050
1031
|
var t = Object.prototype.toString.call(e);
|
|
1051
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1032
|
+
return t === "[object RegExp]" || t === "[object Date]" || Xr(e);
|
|
1052
1033
|
}
|
|
1053
|
-
var
|
|
1054
|
-
function
|
|
1055
|
-
return e.$$typeof ===
|
|
1034
|
+
var kr = typeof Symbol == "function" && Symbol.for, Vr = kr ? Symbol.for("react.element") : 60103;
|
|
1035
|
+
function Xr(e) {
|
|
1036
|
+
return e.$$typeof === Vr;
|
|
1056
1037
|
}
|
|
1057
|
-
function
|
|
1038
|
+
function Wr(e) {
|
|
1058
1039
|
return Array.isArray(e) ? [] : {};
|
|
1059
1040
|
}
|
|
1060
|
-
function
|
|
1061
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1041
|
+
function Y(e, t) {
|
|
1042
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(Wr(e), e, t) : e;
|
|
1062
1043
|
}
|
|
1063
|
-
function
|
|
1044
|
+
function zr(e, t, r) {
|
|
1064
1045
|
return e.concat(t).map(function(n) {
|
|
1065
|
-
return
|
|
1046
|
+
return Y(n, r);
|
|
1066
1047
|
});
|
|
1067
1048
|
}
|
|
1068
|
-
function
|
|
1049
|
+
function Zr(e, t) {
|
|
1069
1050
|
if (!t.customMerge)
|
|
1070
|
-
return
|
|
1051
|
+
return D;
|
|
1071
1052
|
var r = t.customMerge(e);
|
|
1072
|
-
return typeof r == "function" ? r :
|
|
1053
|
+
return typeof r == "function" ? r : D;
|
|
1073
1054
|
}
|
|
1074
|
-
function
|
|
1055
|
+
function Qr(e) {
|
|
1075
1056
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1076
1057
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1077
1058
|
}) : [];
|
|
1078
1059
|
}
|
|
1079
|
-
function
|
|
1080
|
-
return Object.keys(e).concat(
|
|
1060
|
+
function ot(e) {
|
|
1061
|
+
return Object.keys(e).concat(Qr(e));
|
|
1081
1062
|
}
|
|
1082
|
-
function
|
|
1063
|
+
function Pt(e, t) {
|
|
1083
1064
|
try {
|
|
1084
1065
|
return t in e;
|
|
1085
1066
|
} catch {
|
|
1086
1067
|
return !1;
|
|
1087
1068
|
}
|
|
1088
1069
|
}
|
|
1089
|
-
function
|
|
1090
|
-
return
|
|
1070
|
+
function Jr(e, t) {
|
|
1071
|
+
return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1091
1072
|
}
|
|
1092
|
-
function
|
|
1073
|
+
function Yr(e, t, r) {
|
|
1093
1074
|
var n = {};
|
|
1094
|
-
return r.isMergeableObject(e) &&
|
|
1095
|
-
n[i] =
|
|
1096
|
-
}),
|
|
1097
|
-
|
|
1075
|
+
return r.isMergeableObject(e) && ot(e).forEach(function(i) {
|
|
1076
|
+
n[i] = Y(e[i], r);
|
|
1077
|
+
}), ot(t).forEach(function(i) {
|
|
1078
|
+
Jr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Zr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
1098
1079
|
}), n;
|
|
1099
1080
|
}
|
|
1100
|
-
function
|
|
1101
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1081
|
+
function D(e, t, r) {
|
|
1082
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || zr, r.isMergeableObject = r.isMergeableObject || Dr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
1102
1083
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1103
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1084
|
+
return o ? n ? r.arrayMerge(e, t, r) : Yr(e, t, r) : Y(t, r);
|
|
1104
1085
|
}
|
|
1105
|
-
|
|
1086
|
+
D.all = function(t, r) {
|
|
1106
1087
|
if (!Array.isArray(t))
|
|
1107
1088
|
throw new Error("first argument should be an array");
|
|
1108
1089
|
return t.reduce(function(n, i) {
|
|
1109
|
-
return
|
|
1090
|
+
return D(n, i, r);
|
|
1110
1091
|
}, {});
|
|
1111
1092
|
};
|
|
1112
|
-
var
|
|
1113
|
-
const
|
|
1114
|
-
function
|
|
1115
|
-
|
|
1093
|
+
var qr = D, Kr = qr;
|
|
1094
|
+
const en = /* @__PURE__ */ Fr(Kr);
|
|
1095
|
+
var Re = function(e, t) {
|
|
1096
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1097
|
+
r.__proto__ = n;
|
|
1098
|
+
} || function(r, n) {
|
|
1099
|
+
for (var i in n)
|
|
1100
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1101
|
+
}, Re(e, t);
|
|
1102
|
+
};
|
|
1103
|
+
function be(e, t) {
|
|
1104
|
+
if (typeof t != "function" && t !== null)
|
|
1105
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1106
|
+
Re(e, t);
|
|
1107
|
+
function r() {
|
|
1108
|
+
this.constructor = e;
|
|
1109
|
+
}
|
|
1110
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1111
|
+
}
|
|
1112
|
+
var A = function() {
|
|
1113
|
+
return A = Object.assign || function(t) {
|
|
1114
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1115
|
+
r = arguments[n];
|
|
1116
|
+
for (var o in r)
|
|
1117
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1118
|
+
}
|
|
1119
|
+
return t;
|
|
1120
|
+
}, A.apply(this, arguments);
|
|
1121
|
+
};
|
|
1122
|
+
function tn(e, t) {
|
|
1123
|
+
var r = {};
|
|
1124
|
+
for (var n in e)
|
|
1125
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1126
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1127
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1128
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1129
|
+
return r;
|
|
1130
|
+
}
|
|
1131
|
+
function Ee(e, t, r) {
|
|
1132
|
+
if (r || arguments.length === 2)
|
|
1133
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1134
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1135
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1136
|
+
}
|
|
1137
|
+
function Se(e, t) {
|
|
1138
|
+
var r = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer : an, i = t && t.strategy ? t.strategy : on;
|
|
1116
1139
|
return i(e, {
|
|
1117
1140
|
cache: r,
|
|
1118
1141
|
serializer: n
|
|
1119
1142
|
});
|
|
1120
1143
|
}
|
|
1121
|
-
function
|
|
1144
|
+
function rn(e) {
|
|
1122
1145
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1123
1146
|
}
|
|
1124
|
-
function
|
|
1125
|
-
var i =
|
|
1147
|
+
function nn(e, t, r, n) {
|
|
1148
|
+
var i = rn(n) ? n : r(n), o = t.get(i);
|
|
1126
1149
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1127
1150
|
}
|
|
1128
|
-
function
|
|
1151
|
+
function Ot(e, t, r) {
|
|
1129
1152
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1130
1153
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1131
1154
|
}
|
|
1132
|
-
function
|
|
1155
|
+
function It(e, t, r, n, i) {
|
|
1133
1156
|
return r.bind(t, e, n, i);
|
|
1134
1157
|
}
|
|
1135
|
-
function
|
|
1136
|
-
var r = e.length === 1 ?
|
|
1137
|
-
return
|
|
1158
|
+
function on(e, t) {
|
|
1159
|
+
var r = e.length === 1 ? nn : Ot;
|
|
1160
|
+
return It(e, this, r, t.cache.create(), t.serializer);
|
|
1138
1161
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return
|
|
1162
|
+
function sn(e, t) {
|
|
1163
|
+
return It(e, this, Ot, t.cache.create(), t.serializer);
|
|
1141
1164
|
}
|
|
1142
|
-
var
|
|
1165
|
+
var an = function() {
|
|
1143
1166
|
return JSON.stringify(arguments);
|
|
1144
|
-
},
|
|
1167
|
+
}, un = (
|
|
1145
1168
|
/** @class */
|
|
1146
1169
|
function() {
|
|
1147
1170
|
function e() {
|
|
@@ -1153,61 +1176,71 @@ var tn = function() {
|
|
|
1153
1176
|
this.cache[t] = r;
|
|
1154
1177
|
}, e;
|
|
1155
1178
|
}()
|
|
1156
|
-
),
|
|
1179
|
+
), hn = {
|
|
1157
1180
|
create: function() {
|
|
1158
|
-
return new
|
|
1181
|
+
return new un();
|
|
1159
1182
|
}
|
|
1160
|
-
},
|
|
1161
|
-
variadic:
|
|
1162
|
-
},
|
|
1183
|
+
}, we = {
|
|
1184
|
+
variadic: sn
|
|
1185
|
+
}, ce = function() {
|
|
1186
|
+
return ce = Object.assign || function(t) {
|
|
1187
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1188
|
+
r = arguments[n];
|
|
1189
|
+
for (var o in r)
|
|
1190
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1191
|
+
}
|
|
1192
|
+
return t;
|
|
1193
|
+
}, ce.apply(this, arguments);
|
|
1194
|
+
};
|
|
1195
|
+
var d;
|
|
1163
1196
|
(function(e) {
|
|
1164
1197
|
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";
|
|
1165
1198
|
})(d || (d = {}));
|
|
1166
|
-
var
|
|
1199
|
+
var g;
|
|
1167
1200
|
(function(e) {
|
|
1168
1201
|
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";
|
|
1169
|
-
})(
|
|
1170
|
-
var
|
|
1202
|
+
})(g || (g = {}));
|
|
1203
|
+
var G;
|
|
1171
1204
|
(function(e) {
|
|
1172
1205
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1173
|
-
})(
|
|
1174
|
-
function
|
|
1175
|
-
return e.type ===
|
|
1206
|
+
})(G || (G = {}));
|
|
1207
|
+
function st(e) {
|
|
1208
|
+
return e.type === g.literal;
|
|
1176
1209
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return e.type ===
|
|
1210
|
+
function ln(e) {
|
|
1211
|
+
return e.type === g.argument;
|
|
1179
1212
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return e.type ===
|
|
1213
|
+
function Nt(e) {
|
|
1214
|
+
return e.type === g.number;
|
|
1182
1215
|
}
|
|
1183
|
-
function
|
|
1184
|
-
return e.type ===
|
|
1216
|
+
function Ct(e) {
|
|
1217
|
+
return e.type === g.date;
|
|
1185
1218
|
}
|
|
1186
|
-
function
|
|
1187
|
-
return e.type ===
|
|
1219
|
+
function Lt(e) {
|
|
1220
|
+
return e.type === g.time;
|
|
1188
1221
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return e.type ===
|
|
1222
|
+
function Mt(e) {
|
|
1223
|
+
return e.type === g.select;
|
|
1191
1224
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return e.type ===
|
|
1225
|
+
function $t(e) {
|
|
1226
|
+
return e.type === g.plural;
|
|
1194
1227
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return e.type ===
|
|
1228
|
+
function cn(e) {
|
|
1229
|
+
return e.type === g.pound;
|
|
1197
1230
|
}
|
|
1198
|
-
function
|
|
1199
|
-
return e.type ===
|
|
1231
|
+
function Rt(e) {
|
|
1232
|
+
return e.type === g.tag;
|
|
1200
1233
|
}
|
|
1201
|
-
function
|
|
1202
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1234
|
+
function Ut(e) {
|
|
1235
|
+
return !!(e && typeof e == "object" && e.type === G.number);
|
|
1203
1236
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1237
|
+
function Ue(e) {
|
|
1238
|
+
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
1206
1239
|
}
|
|
1207
|
-
var
|
|
1208
|
-
function
|
|
1240
|
+
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, fn = /(?:[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;
|
|
1241
|
+
function mn(e) {
|
|
1209
1242
|
var t = {};
|
|
1210
|
-
return e.replace(
|
|
1243
|
+
return e.replace(fn, function(r) {
|
|
1211
1244
|
var n = r.length;
|
|
1212
1245
|
switch (r[0]) {
|
|
1213
1246
|
case "G":
|
|
@@ -1296,11 +1329,21 @@ function un(e) {
|
|
|
1296
1329
|
return "";
|
|
1297
1330
|
}), t;
|
|
1298
1331
|
}
|
|
1299
|
-
var
|
|
1300
|
-
function
|
|
1332
|
+
var _ = function() {
|
|
1333
|
+
return _ = Object.assign || function(t) {
|
|
1334
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1335
|
+
r = arguments[n];
|
|
1336
|
+
for (var o in r)
|
|
1337
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1338
|
+
}
|
|
1339
|
+
return t;
|
|
1340
|
+
}, _.apply(this, arguments);
|
|
1341
|
+
};
|
|
1342
|
+
var pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1343
|
+
function dn(e) {
|
|
1301
1344
|
if (e.length === 0)
|
|
1302
1345
|
throw new Error("Number skeleton cannot be empty");
|
|
1303
|
-
for (var t = e.split(
|
|
1346
|
+
for (var t = e.split(pn).filter(function(f) {
|
|
1304
1347
|
return f.length > 0;
|
|
1305
1348
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1306
1349
|
var o = i[n], s = o.split("/");
|
|
@@ -1315,17 +1358,17 @@ function ln(e) {
|
|
|
1315
1358
|
}
|
|
1316
1359
|
return r;
|
|
1317
1360
|
}
|
|
1318
|
-
function
|
|
1361
|
+
function bn(e) {
|
|
1319
1362
|
return e.replace(/^(.*?)-/, "");
|
|
1320
1363
|
}
|
|
1321
|
-
var
|
|
1322
|
-
function
|
|
1364
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
|
|
1365
|
+
function ut(e) {
|
|
1323
1366
|
var t = {};
|
|
1324
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1367
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
|
|
1325
1368
|
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)), "";
|
|
1326
1369
|
}), t;
|
|
1327
1370
|
}
|
|
1328
|
-
function
|
|
1371
|
+
function jt(e) {
|
|
1329
1372
|
switch (e) {
|
|
1330
1373
|
case "sign-auto":
|
|
1331
1374
|
return {
|
|
@@ -1365,7 +1408,7 @@ function Rt(e) {
|
|
|
1365
1408
|
};
|
|
1366
1409
|
}
|
|
1367
1410
|
}
|
|
1368
|
-
function
|
|
1411
|
+
function vn(e) {
|
|
1369
1412
|
var t;
|
|
1370
1413
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1371
1414
|
notation: "engineering"
|
|
@@ -1373,17 +1416,17 @@ function mn(e) {
|
|
|
1373
1416
|
notation: "scientific"
|
|
1374
1417
|
}, e = e.slice(1)), t) {
|
|
1375
1418
|
var r = e.slice(0, 2);
|
|
1376
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
1419
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
|
|
1377
1420
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1378
1421
|
t.minimumIntegerDigits = e.length;
|
|
1379
1422
|
}
|
|
1380
1423
|
return t;
|
|
1381
1424
|
}
|
|
1382
|
-
function
|
|
1383
|
-
var t = {}, r =
|
|
1425
|
+
function ht(e) {
|
|
1426
|
+
var t = {}, r = jt(e);
|
|
1384
1427
|
return r || t;
|
|
1385
1428
|
}
|
|
1386
|
-
function
|
|
1429
|
+
function gn(e) {
|
|
1387
1430
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1388
1431
|
var i = n[r];
|
|
1389
1432
|
switch (i.stem) {
|
|
@@ -1407,7 +1450,7 @@ function pn(e) {
|
|
|
1407
1450
|
continue;
|
|
1408
1451
|
case "measure-unit":
|
|
1409
1452
|
case "unit":
|
|
1410
|
-
t.style = "unit", t.unit =
|
|
1453
|
+
t.style = "unit", t.unit = bn(i.options[0]);
|
|
1411
1454
|
continue;
|
|
1412
1455
|
case "compact-short":
|
|
1413
1456
|
case "K":
|
|
@@ -1418,13 +1461,13 @@ function pn(e) {
|
|
|
1418
1461
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1419
1462
|
continue;
|
|
1420
1463
|
case "scientific":
|
|
1421
|
-
t =
|
|
1422
|
-
return
|
|
1464
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1465
|
+
return _(_({}, h), ht(u));
|
|
1423
1466
|
}, {}));
|
|
1424
1467
|
continue;
|
|
1425
1468
|
case "engineering":
|
|
1426
|
-
t =
|
|
1427
|
-
return
|
|
1469
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1470
|
+
return _(_({}, h), ht(u));
|
|
1428
1471
|
}, {}));
|
|
1429
1472
|
continue;
|
|
1430
1473
|
case "notation-simple":
|
|
@@ -1469,7 +1512,7 @@ function pn(e) {
|
|
|
1469
1512
|
case "integer-width":
|
|
1470
1513
|
if (i.options.length > 1)
|
|
1471
1514
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1472
|
-
i.options[0].replace(
|
|
1515
|
+
i.options[0].replace(yn, function(h, u, l, c, f, p) {
|
|
1473
1516
|
if (u)
|
|
1474
1517
|
t.minimumIntegerDigits = l.length;
|
|
1475
1518
|
else {
|
|
@@ -1482,28 +1525,28 @@ function pn(e) {
|
|
|
1482
1525
|
});
|
|
1483
1526
|
continue;
|
|
1484
1527
|
}
|
|
1485
|
-
if (
|
|
1528
|
+
if (Gt.test(i.stem)) {
|
|
1486
1529
|
t.minimumIntegerDigits = i.stem.length;
|
|
1487
1530
|
continue;
|
|
1488
1531
|
}
|
|
1489
|
-
if (
|
|
1532
|
+
if (at.test(i.stem)) {
|
|
1490
1533
|
if (i.options.length > 1)
|
|
1491
1534
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1492
|
-
i.stem.replace(
|
|
1535
|
+
i.stem.replace(at, function(h, u, l, c, f, p) {
|
|
1493
1536
|
return l === "*" ? 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), "";
|
|
1494
1537
|
});
|
|
1495
1538
|
var o = i.options[0];
|
|
1496
|
-
o === "w" ? t =
|
|
1539
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ut(o)));
|
|
1497
1540
|
continue;
|
|
1498
1541
|
}
|
|
1499
|
-
if (
|
|
1500
|
-
t =
|
|
1542
|
+
if (Dt.test(i.stem)) {
|
|
1543
|
+
t = _(_({}, t), ut(i.stem));
|
|
1501
1544
|
continue;
|
|
1502
1545
|
}
|
|
1503
|
-
var s =
|
|
1504
|
-
s && (t =
|
|
1505
|
-
var a =
|
|
1506
|
-
a && (t =
|
|
1546
|
+
var s = jt(i.stem);
|
|
1547
|
+
s && (t = _(_({}, t), s));
|
|
1548
|
+
var a = vn(i.stem);
|
|
1549
|
+
a && (t = _(_({}, t), a));
|
|
1507
1550
|
}
|
|
1508
1551
|
return t;
|
|
1509
1552
|
}
|
|
@@ -2922,13 +2965,13 @@ var se = {
|
|
|
2922
2965
|
"h"
|
|
2923
2966
|
]
|
|
2924
2967
|
};
|
|
2925
|
-
function
|
|
2968
|
+
function _n(e, t) {
|
|
2926
2969
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2927
2970
|
var i = e.charAt(n);
|
|
2928
2971
|
if (i === "j") {
|
|
2929
2972
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2930
2973
|
o++, n++;
|
|
2931
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2974
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = xn(t);
|
|
2932
2975
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2933
2976
|
r += h;
|
|
2934
2977
|
for (; s-- > 0; )
|
|
@@ -2938,7 +2981,7 @@ function dn(e, t) {
|
|
|
2938
2981
|
}
|
|
2939
2982
|
return r;
|
|
2940
2983
|
}
|
|
2941
|
-
function
|
|
2984
|
+
function xn(e) {
|
|
2942
2985
|
var t = e.hourCycle;
|
|
2943
2986
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2944
2987
|
e.hourCycles && // @ts-ignore
|
|
@@ -2960,20 +3003,20 @@ function bn(e) {
|
|
|
2960
3003
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2961
3004
|
return i[0];
|
|
2962
3005
|
}
|
|
2963
|
-
var
|
|
3006
|
+
var He, En = new RegExp("^".concat(Ft.source, "*")), Sn = new RegExp("".concat(Ft.source, "*$"));
|
|
2964
3007
|
function b(e, t) {
|
|
2965
3008
|
return { start: e, end: t };
|
|
2966
3009
|
}
|
|
2967
|
-
var
|
|
3010
|
+
var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hn = !!String.fromCodePoint, Tn = !!Object.fromEntries, Bn = !!String.prototype.codePointAt, An = !!String.prototype.trimStart, Pn = !!String.prototype.trimEnd, On = !!Number.isSafeInteger, In = On ? Number.isSafeInteger : function(e) {
|
|
2968
3011
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2969
|
-
},
|
|
3012
|
+
}, Fe = !0;
|
|
2970
3013
|
try {
|
|
2971
|
-
var
|
|
2972
|
-
|
|
3014
|
+
var Nn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3015
|
+
Fe = ((He = Nn.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
2973
3016
|
} catch {
|
|
2974
|
-
|
|
3017
|
+
Fe = !1;
|
|
2975
3018
|
}
|
|
2976
|
-
var
|
|
3019
|
+
var lt = wn ? (
|
|
2977
3020
|
// Native
|
|
2978
3021
|
function(t, r, n) {
|
|
2979
3022
|
return t.startsWith(r, n);
|
|
@@ -2983,7 +3026,7 @@ var ot = gn ? (
|
|
|
2983
3026
|
function(t, r, n) {
|
|
2984
3027
|
return t.slice(n, n + r.length) === r;
|
|
2985
3028
|
}
|
|
2986
|
-
),
|
|
3029
|
+
), De = Hn ? String.fromCodePoint : (
|
|
2987
3030
|
// IE11
|
|
2988
3031
|
function() {
|
|
2989
3032
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2995,9 +3038,9 @@ var ot = gn ? (
|
|
|
2995
3038
|
}
|
|
2996
3039
|
return n;
|
|
2997
3040
|
}
|
|
2998
|
-
),
|
|
3041
|
+
), ct = (
|
|
2999
3042
|
// native
|
|
3000
|
-
|
|
3043
|
+
Tn ? Object.fromEntries : (
|
|
3001
3044
|
// Ponyfill
|
|
3002
3045
|
function(t) {
|
|
3003
3046
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3007,7 +3050,7 @@ var ot = gn ? (
|
|
|
3007
3050
|
return r;
|
|
3008
3051
|
}
|
|
3009
3052
|
)
|
|
3010
|
-
),
|
|
3053
|
+
), kt = Bn ? (
|
|
3011
3054
|
// Native
|
|
3012
3055
|
function(t, r) {
|
|
3013
3056
|
return t.codePointAt(r);
|
|
@@ -3021,7 +3064,7 @@ var ot = gn ? (
|
|
|
3021
3064
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3022
3065
|
}
|
|
3023
3066
|
}
|
|
3024
|
-
),
|
|
3067
|
+
), Cn = An ? (
|
|
3025
3068
|
// Native
|
|
3026
3069
|
function(t) {
|
|
3027
3070
|
return t.trimStart();
|
|
@@ -3029,9 +3072,9 @@ var ot = gn ? (
|
|
|
3029
3072
|
) : (
|
|
3030
3073
|
// Ponyfill
|
|
3031
3074
|
function(t) {
|
|
3032
|
-
return t.replace(
|
|
3075
|
+
return t.replace(En, "");
|
|
3033
3076
|
}
|
|
3034
|
-
),
|
|
3077
|
+
), Ln = Pn ? (
|
|
3035
3078
|
// Native
|
|
3036
3079
|
function(t) {
|
|
3037
3080
|
return t.trimEnd();
|
|
@@ -3039,32 +3082,32 @@ var ot = gn ? (
|
|
|
3039
3082
|
) : (
|
|
3040
3083
|
// Ponyfill
|
|
3041
3084
|
function(t) {
|
|
3042
|
-
return t.replace(
|
|
3085
|
+
return t.replace(Sn, "");
|
|
3043
3086
|
}
|
|
3044
3087
|
);
|
|
3045
|
-
function
|
|
3088
|
+
function Vt(e, t) {
|
|
3046
3089
|
return new RegExp(e, t);
|
|
3047
3090
|
}
|
|
3048
|
-
var
|
|
3049
|
-
if (
|
|
3050
|
-
var
|
|
3051
|
-
|
|
3091
|
+
var Ge;
|
|
3092
|
+
if (Fe) {
|
|
3093
|
+
var ft = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3094
|
+
Ge = function(t, r) {
|
|
3052
3095
|
var n;
|
|
3053
|
-
|
|
3054
|
-
var i =
|
|
3096
|
+
ft.lastIndex = r;
|
|
3097
|
+
var i = ft.exec(t);
|
|
3055
3098
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3056
3099
|
};
|
|
3057
3100
|
} else
|
|
3058
|
-
|
|
3101
|
+
Ge = function(t, r) {
|
|
3059
3102
|
for (var n = []; ; ) {
|
|
3060
|
-
var i =
|
|
3061
|
-
if (i === void 0 ||
|
|
3103
|
+
var i = kt(t, r);
|
|
3104
|
+
if (i === void 0 || Xt(i) || Un(i))
|
|
3062
3105
|
break;
|
|
3063
3106
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3064
3107
|
}
|
|
3065
|
-
return
|
|
3108
|
+
return De.apply(void 0, n);
|
|
3066
3109
|
};
|
|
3067
|
-
var
|
|
3110
|
+
var Mn = (
|
|
3068
3111
|
/** @class */
|
|
3069
3112
|
function() {
|
|
3070
3113
|
function e(t, r) {
|
|
@@ -3088,14 +3131,14 @@ var On = (
|
|
|
3088
3131
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3089
3132
|
var a = this.clonePosition();
|
|
3090
3133
|
this.bump(), i.push({
|
|
3091
|
-
type:
|
|
3134
|
+
type: g.pound,
|
|
3092
3135
|
location: b(a, this.clonePosition())
|
|
3093
3136
|
});
|
|
3094
3137
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3095
3138
|
if (n)
|
|
3096
3139
|
break;
|
|
3097
3140
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3098
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3141
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
3099
3142
|
var s = this.parseTag(t, r);
|
|
3100
3143
|
if (s.err)
|
|
3101
3144
|
return s;
|
|
@@ -3116,7 +3159,7 @@ var On = (
|
|
|
3116
3159
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3117
3160
|
return {
|
|
3118
3161
|
val: {
|
|
3119
|
-
type:
|
|
3162
|
+
type: g.literal,
|
|
3120
3163
|
value: "<".concat(i, "/>"),
|
|
3121
3164
|
location: b(n, this.clonePosition())
|
|
3122
3165
|
},
|
|
@@ -3128,12 +3171,12 @@ var On = (
|
|
|
3128
3171
|
return o;
|
|
3129
3172
|
var s = o.val, a = this.clonePosition();
|
|
3130
3173
|
if (this.bumpIf("</")) {
|
|
3131
|
-
if (this.isEOF() || !
|
|
3174
|
+
if (this.isEOF() || !je(this.char()))
|
|
3132
3175
|
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
3133
3176
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3134
3177
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3135
3178
|
val: {
|
|
3136
|
-
type:
|
|
3179
|
+
type: g.tag,
|
|
3137
3180
|
value: i,
|
|
3138
3181
|
children: s,
|
|
3139
3182
|
location: b(n, this.clonePosition())
|
|
@@ -3146,7 +3189,7 @@ var On = (
|
|
|
3146
3189
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
3147
3190
|
}, e.prototype.parseTagName = function() {
|
|
3148
3191
|
var t = this.offset();
|
|
3149
|
-
for (this.bump(); !this.isEOF() &&
|
|
3192
|
+
for (this.bump(); !this.isEOF() && Rn(this.char()); )
|
|
3150
3193
|
this.bump();
|
|
3151
3194
|
return this.message.slice(t, this.offset());
|
|
3152
3195
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3170,12 +3213,12 @@ var On = (
|
|
|
3170
3213
|
}
|
|
3171
3214
|
var h = b(n, this.clonePosition());
|
|
3172
3215
|
return {
|
|
3173
|
-
val: { type:
|
|
3216
|
+
val: { type: g.literal, value: i, location: h },
|
|
3174
3217
|
err: null
|
|
3175
3218
|
};
|
|
3176
3219
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3177
3220
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3178
|
-
|
|
3221
|
+
!$n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3179
3222
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3180
3223
|
if (this.isEOF() || this.char() !== 39)
|
|
3181
3224
|
return null;
|
|
@@ -3209,12 +3252,12 @@ var On = (
|
|
|
3209
3252
|
r.push(n);
|
|
3210
3253
|
this.bump();
|
|
3211
3254
|
}
|
|
3212
|
-
return
|
|
3255
|
+
return De.apply(void 0, r);
|
|
3213
3256
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3214
3257
|
if (this.isEOF())
|
|
3215
3258
|
return null;
|
|
3216
3259
|
var n = this.char();
|
|
3217
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3260
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
3218
3261
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3219
3262
|
var n = this.clonePosition();
|
|
3220
3263
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3230,7 +3273,7 @@ var On = (
|
|
|
3230
3273
|
case 125:
|
|
3231
3274
|
return this.bump(), {
|
|
3232
3275
|
val: {
|
|
3233
|
-
type:
|
|
3276
|
+
type: g.argument,
|
|
3234
3277
|
// value does not include the opening and closing braces.
|
|
3235
3278
|
value: i,
|
|
3236
3279
|
location: b(n, this.clonePosition())
|
|
@@ -3243,7 +3286,7 @@ var On = (
|
|
|
3243
3286
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3244
3287
|
}
|
|
3245
3288
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3246
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3289
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
3247
3290
|
this.bumpTo(i);
|
|
3248
3291
|
var o = this.clonePosition(), s = b(t, o);
|
|
3249
3292
|
return { value: n, location: s };
|
|
@@ -3262,35 +3305,35 @@ var On = (
|
|
|
3262
3305
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3263
3306
|
if (c.err)
|
|
3264
3307
|
return c;
|
|
3265
|
-
var f =
|
|
3308
|
+
var f = Ln(c.val);
|
|
3266
3309
|
if (f.length === 0)
|
|
3267
3310
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3268
3311
|
var p = b(l, this.clonePosition());
|
|
3269
3312
|
u = { style: f, styleLocation: p };
|
|
3270
3313
|
}
|
|
3271
|
-
var
|
|
3272
|
-
if (
|
|
3273
|
-
return
|
|
3314
|
+
var y = this.tryParseArgumentClose(i);
|
|
3315
|
+
if (y.err)
|
|
3316
|
+
return y;
|
|
3274
3317
|
var m = b(i, this.clonePosition());
|
|
3275
|
-
if (u &&
|
|
3276
|
-
var
|
|
3318
|
+
if (u && lt(u?.style, "::", 0)) {
|
|
3319
|
+
var x = Cn(u.style.slice(2));
|
|
3277
3320
|
if (a === "number") {
|
|
3278
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3321
|
+
var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
3279
3322
|
return c.err ? c : {
|
|
3280
|
-
val: { type:
|
|
3323
|
+
val: { type: g.number, value: n, location: m, style: c.val },
|
|
3281
3324
|
err: null
|
|
3282
3325
|
};
|
|
3283
3326
|
} else {
|
|
3284
|
-
if (
|
|
3327
|
+
if (x.length === 0)
|
|
3285
3328
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
|
|
3286
|
-
var
|
|
3287
|
-
this.locale && (
|
|
3329
|
+
var v = x;
|
|
3330
|
+
this.locale && (v = _n(x, this.locale));
|
|
3288
3331
|
var f = {
|
|
3289
|
-
type:
|
|
3290
|
-
pattern:
|
|
3332
|
+
type: G.dateTime,
|
|
3333
|
+
pattern: v,
|
|
3291
3334
|
location: u.styleLocation,
|
|
3292
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3293
|
-
}, T = a === "date" ?
|
|
3335
|
+
parsedOptions: this.shouldParseSkeletons ? mn(v) : {}
|
|
3336
|
+
}, T = a === "date" ? g.date : g.time;
|
|
3294
3337
|
return {
|
|
3295
3338
|
val: { type: T, value: n, location: m, style: f },
|
|
3296
3339
|
err: null
|
|
@@ -3299,7 +3342,7 @@ var On = (
|
|
|
3299
3342
|
}
|
|
3300
3343
|
return {
|
|
3301
3344
|
val: {
|
|
3302
|
-
type: a === "number" ?
|
|
3345
|
+
type: a === "number" ? g.number : a === "date" ? g.date : g.time,
|
|
3303
3346
|
value: n,
|
|
3304
3347
|
location: m,
|
|
3305
3348
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3312,7 +3355,7 @@ var On = (
|
|
|
3312
3355
|
case "select": {
|
|
3313
3356
|
var w = this.clonePosition();
|
|
3314
3357
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3315
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(w,
|
|
3358
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(w, ce({}, w)));
|
|
3316
3359
|
this.bumpSpace();
|
|
3317
3360
|
var I = this.parseIdentifierIfPossible(), N = 0;
|
|
3318
3361
|
if (a !== "select" && I.value === "offset") {
|
|
@@ -3327,26 +3370,26 @@ var On = (
|
|
|
3327
3370
|
var ie = this.tryParsePluralOrSelectOptions(t, a, r, I);
|
|
3328
3371
|
if (ie.err)
|
|
3329
3372
|
return ie;
|
|
3330
|
-
var
|
|
3331
|
-
if (
|
|
3332
|
-
return
|
|
3333
|
-
var
|
|
3373
|
+
var y = this.tryParseArgumentClose(i);
|
|
3374
|
+
if (y.err)
|
|
3375
|
+
return y;
|
|
3376
|
+
var Qe = b(i, this.clonePosition());
|
|
3334
3377
|
return a === "select" ? {
|
|
3335
3378
|
val: {
|
|
3336
|
-
type:
|
|
3379
|
+
type: g.select,
|
|
3337
3380
|
value: n,
|
|
3338
|
-
options:
|
|
3339
|
-
location:
|
|
3381
|
+
options: ct(ie.val),
|
|
3382
|
+
location: Qe
|
|
3340
3383
|
},
|
|
3341
3384
|
err: null
|
|
3342
3385
|
} : {
|
|
3343
3386
|
val: {
|
|
3344
|
-
type:
|
|
3387
|
+
type: g.plural,
|
|
3345
3388
|
value: n,
|
|
3346
|
-
options:
|
|
3389
|
+
options: ct(ie.val),
|
|
3347
3390
|
offset: N,
|
|
3348
3391
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3349
|
-
location:
|
|
3392
|
+
location: Qe
|
|
3350
3393
|
},
|
|
3351
3394
|
err: null
|
|
3352
3395
|
};
|
|
@@ -3394,16 +3437,16 @@ var On = (
|
|
|
3394
3437
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3395
3438
|
var n = [];
|
|
3396
3439
|
try {
|
|
3397
|
-
n =
|
|
3440
|
+
n = dn(t);
|
|
3398
3441
|
} catch {
|
|
3399
3442
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3400
3443
|
}
|
|
3401
3444
|
return {
|
|
3402
3445
|
val: {
|
|
3403
|
-
type:
|
|
3446
|
+
type: G.number,
|
|
3404
3447
|
tokens: n,
|
|
3405
3448
|
location: r,
|
|
3406
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3449
|
+
parsedOptions: this.shouldParseSkeletons ? gn(n) : {}
|
|
3407
3450
|
},
|
|
3408
3451
|
err: null
|
|
3409
3452
|
};
|
|
@@ -3425,16 +3468,16 @@ var On = (
|
|
|
3425
3468
|
var p = this.clonePosition();
|
|
3426
3469
|
if (!this.bumpIf("{"))
|
|
3427
3470
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3428
|
-
var
|
|
3429
|
-
if (
|
|
3430
|
-
return
|
|
3471
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
3472
|
+
if (y.err)
|
|
3473
|
+
return y;
|
|
3431
3474
|
var m = this.tryParseArgumentClose(p);
|
|
3432
3475
|
if (m.err)
|
|
3433
3476
|
return m;
|
|
3434
3477
|
a.push([
|
|
3435
3478
|
u,
|
|
3436
3479
|
{
|
|
3437
|
-
value:
|
|
3480
|
+
value: y.val,
|
|
3438
3481
|
location: b(p, this.clonePosition())
|
|
3439
3482
|
}
|
|
3440
3483
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
@@ -3451,7 +3494,7 @@ var On = (
|
|
|
3451
3494
|
break;
|
|
3452
3495
|
}
|
|
3453
3496
|
var h = b(i, this.clonePosition());
|
|
3454
|
-
return o ? (s *= n,
|
|
3497
|
+
return o ? (s *= n, In(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3455
3498
|
}, e.prototype.offset = function() {
|
|
3456
3499
|
return this.position.offset;
|
|
3457
3500
|
}, e.prototype.isEOF = function() {
|
|
@@ -3466,7 +3509,7 @@ var On = (
|
|
|
3466
3509
|
var t = this.position.offset;
|
|
3467
3510
|
if (t >= this.message.length)
|
|
3468
3511
|
throw Error("out of bound");
|
|
3469
|
-
var r =
|
|
3512
|
+
var r = kt(this.message, t);
|
|
3470
3513
|
if (r === void 0)
|
|
3471
3514
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3472
3515
|
return r;
|
|
@@ -3485,7 +3528,7 @@ var On = (
|
|
|
3485
3528
|
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);
|
|
3486
3529
|
}
|
|
3487
3530
|
}, e.prototype.bumpIf = function(t) {
|
|
3488
|
-
if (
|
|
3531
|
+
if (lt(this.message, t, this.offset())) {
|
|
3489
3532
|
for (var r = 0; r < t.length; r++)
|
|
3490
3533
|
this.bump();
|
|
3491
3534
|
return !0;
|
|
@@ -3507,7 +3550,7 @@ var On = (
|
|
|
3507
3550
|
break;
|
|
3508
3551
|
}
|
|
3509
3552
|
}, e.prototype.bumpSpace = function() {
|
|
3510
|
-
for (; !this.isEOF() &&
|
|
3553
|
+
for (; !this.isEOF() && Xt(this.char()); )
|
|
3511
3554
|
this.bump();
|
|
3512
3555
|
}, e.prototype.peek = function() {
|
|
3513
3556
|
if (this.isEOF())
|
|
@@ -3517,47 +3560,47 @@ var On = (
|
|
|
3517
3560
|
}, e;
|
|
3518
3561
|
}()
|
|
3519
3562
|
);
|
|
3520
|
-
function
|
|
3563
|
+
function je(e) {
|
|
3521
3564
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3522
3565
|
}
|
|
3523
|
-
function
|
|
3524
|
-
return
|
|
3566
|
+
function $n(e) {
|
|
3567
|
+
return je(e) || e === 47;
|
|
3525
3568
|
}
|
|
3526
|
-
function
|
|
3569
|
+
function Rn(e) {
|
|
3527
3570
|
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;
|
|
3528
3571
|
}
|
|
3529
|
-
function
|
|
3572
|
+
function Xt(e) {
|
|
3530
3573
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3531
3574
|
}
|
|
3532
|
-
function
|
|
3575
|
+
function Un(e) {
|
|
3533
3576
|
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;
|
|
3534
3577
|
}
|
|
3535
|
-
function
|
|
3578
|
+
function ke(e) {
|
|
3536
3579
|
e.forEach(function(t) {
|
|
3537
|
-
if (delete t.location,
|
|
3580
|
+
if (delete t.location, Mt(t) || $t(t))
|
|
3538
3581
|
for (var r in t.options)
|
|
3539
|
-
delete t.options[r].location,
|
|
3582
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3540
3583
|
else
|
|
3541
|
-
|
|
3584
|
+
Nt(t) && Ut(t.style) || (Ct(t) || Lt(t)) && Ue(t.style) ? delete t.style.location : Rt(t) && ke(t.children);
|
|
3542
3585
|
});
|
|
3543
3586
|
}
|
|
3544
|
-
function
|
|
3545
|
-
t === void 0 && (t = {}), t =
|
|
3546
|
-
var r = new
|
|
3587
|
+
function Fn(e, t) {
|
|
3588
|
+
t === void 0 && (t = {}), t = ce({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3589
|
+
var r = new Mn(e, t).parse();
|
|
3547
3590
|
if (r.err) {
|
|
3548
3591
|
var n = SyntaxError(d[r.err.kind]);
|
|
3549
3592
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3550
3593
|
}
|
|
3551
|
-
return t?.captureLocation ||
|
|
3594
|
+
return t?.captureLocation || ke(r.val), r.val;
|
|
3552
3595
|
}
|
|
3553
|
-
var
|
|
3596
|
+
var j;
|
|
3554
3597
|
(function(e) {
|
|
3555
3598
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3556
|
-
})(
|
|
3557
|
-
var
|
|
3599
|
+
})(j || (j = {}));
|
|
3600
|
+
var ye = (
|
|
3558
3601
|
/** @class */
|
|
3559
3602
|
function(e) {
|
|
3560
|
-
|
|
3603
|
+
be(t, e);
|
|
3561
3604
|
function t(r, n, i) {
|
|
3562
3605
|
var o = e.call(this, r) || this;
|
|
3563
3606
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3566,48 +3609,48 @@ var de = (
|
|
|
3566
3609
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3567
3610
|
}, t;
|
|
3568
3611
|
}(Error)
|
|
3569
|
-
),
|
|
3612
|
+
), mt = (
|
|
3570
3613
|
/** @class */
|
|
3571
3614
|
function(e) {
|
|
3572
|
-
|
|
3615
|
+
be(t, e);
|
|
3573
3616
|
function t(r, n, i, o) {
|
|
3574
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3617
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
|
|
3575
3618
|
}
|
|
3576
3619
|
return t;
|
|
3577
|
-
}(
|
|
3578
|
-
),
|
|
3620
|
+
}(ye)
|
|
3621
|
+
), Dn = (
|
|
3579
3622
|
/** @class */
|
|
3580
3623
|
function(e) {
|
|
3581
|
-
|
|
3624
|
+
be(t, e);
|
|
3582
3625
|
function t(r, n, i) {
|
|
3583
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3626
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3584
3627
|
}
|
|
3585
3628
|
return t;
|
|
3586
|
-
}(
|
|
3587
|
-
),
|
|
3629
|
+
}(ye)
|
|
3630
|
+
), Gn = (
|
|
3588
3631
|
/** @class */
|
|
3589
3632
|
function(e) {
|
|
3590
|
-
|
|
3633
|
+
be(t, e);
|
|
3591
3634
|
function t(r, n) {
|
|
3592
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3635
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3593
3636
|
}
|
|
3594
3637
|
return t;
|
|
3595
|
-
}(
|
|
3638
|
+
}(ye)
|
|
3596
3639
|
), S;
|
|
3597
3640
|
(function(e) {
|
|
3598
3641
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3599
3642
|
})(S || (S = {}));
|
|
3600
|
-
function
|
|
3643
|
+
function jn(e) {
|
|
3601
3644
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3602
3645
|
var n = t[t.length - 1];
|
|
3603
3646
|
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3604
3647
|
}, []);
|
|
3605
3648
|
}
|
|
3606
|
-
function
|
|
3649
|
+
function kn(e) {
|
|
3607
3650
|
return typeof e == "function";
|
|
3608
3651
|
}
|
|
3609
3652
|
function he(e, t, r, n, i, o, s) {
|
|
3610
|
-
if (e.length === 1 &&
|
|
3653
|
+
if (e.length === 1 && st(e[0]))
|
|
3611
3654
|
return [
|
|
3612
3655
|
{
|
|
3613
3656
|
type: S.literal,
|
|
@@ -3616,14 +3659,14 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3616
3659
|
];
|
|
3617
3660
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3618
3661
|
var l = u[h];
|
|
3619
|
-
if (
|
|
3662
|
+
if (st(l)) {
|
|
3620
3663
|
a.push({
|
|
3621
3664
|
type: S.literal,
|
|
3622
3665
|
value: l.value
|
|
3623
3666
|
});
|
|
3624
3667
|
continue;
|
|
3625
3668
|
}
|
|
3626
|
-
if (
|
|
3669
|
+
if (cn(l)) {
|
|
3627
3670
|
typeof o == "number" && a.push({
|
|
3628
3671
|
type: S.literal,
|
|
3629
3672
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3632,44 +3675,44 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3632
3675
|
}
|
|
3633
3676
|
var c = l.value;
|
|
3634
3677
|
if (!(i && c in i))
|
|
3635
|
-
throw new
|
|
3678
|
+
throw new Gn(c, s);
|
|
3636
3679
|
var f = i[c];
|
|
3637
|
-
if (
|
|
3680
|
+
if (ln(l)) {
|
|
3638
3681
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3639
3682
|
type: typeof f == "string" ? S.literal : S.object,
|
|
3640
3683
|
value: f
|
|
3641
3684
|
});
|
|
3642
3685
|
continue;
|
|
3643
3686
|
}
|
|
3644
|
-
if (
|
|
3645
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3687
|
+
if (Ct(l)) {
|
|
3688
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3646
3689
|
a.push({
|
|
3647
3690
|
type: S.literal,
|
|
3648
3691
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3649
3692
|
});
|
|
3650
3693
|
continue;
|
|
3651
3694
|
}
|
|
3652
|
-
if (
|
|
3653
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3695
|
+
if (Lt(l)) {
|
|
3696
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3654
3697
|
a.push({
|
|
3655
3698
|
type: S.literal,
|
|
3656
3699
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3657
3700
|
});
|
|
3658
3701
|
continue;
|
|
3659
3702
|
}
|
|
3660
|
-
if (
|
|
3661
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3703
|
+
if (Nt(l)) {
|
|
3704
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
|
|
3662
3705
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3663
3706
|
type: S.literal,
|
|
3664
3707
|
value: r.getNumberFormat(t, p).format(f)
|
|
3665
3708
|
});
|
|
3666
3709
|
continue;
|
|
3667
3710
|
}
|
|
3668
|
-
if (
|
|
3669
|
-
var
|
|
3670
|
-
if (!
|
|
3671
|
-
throw new
|
|
3672
|
-
var
|
|
3711
|
+
if (Rt(l)) {
|
|
3712
|
+
var y = l.children, m = l.value, x = i[m];
|
|
3713
|
+
if (!kn(x))
|
|
3714
|
+
throw new Dn(m, "function", s);
|
|
3715
|
+
var v = he(y, t, r, n, i, o), T = x(v.map(function(N) {
|
|
3673
3716
|
return N.value;
|
|
3674
3717
|
}));
|
|
3675
3718
|
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(N) {
|
|
@@ -3679,42 +3722,42 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3679
3722
|
};
|
|
3680
3723
|
}));
|
|
3681
3724
|
}
|
|
3682
|
-
if (
|
|
3725
|
+
if (Mt(l)) {
|
|
3683
3726
|
var w = l.options[f] || l.options.other;
|
|
3684
3727
|
if (!w)
|
|
3685
|
-
throw new
|
|
3728
|
+
throw new mt(l.value, f, Object.keys(l.options), s);
|
|
3686
3729
|
a.push.apply(a, he(w.value, t, r, n, i));
|
|
3687
3730
|
continue;
|
|
3688
3731
|
}
|
|
3689
|
-
if (
|
|
3732
|
+
if ($t(l)) {
|
|
3690
3733
|
var w = l.options["=".concat(f)];
|
|
3691
3734
|
if (!w) {
|
|
3692
3735
|
if (!Intl.PluralRules)
|
|
3693
|
-
throw new
|
|
3736
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3694
3737
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3695
|
-
`,
|
|
3738
|
+
`, j.MISSING_INTL_API, s);
|
|
3696
3739
|
var I = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3697
3740
|
w = l.options[I] || l.options.other;
|
|
3698
3741
|
}
|
|
3699
3742
|
if (!w)
|
|
3700
|
-
throw new
|
|
3743
|
+
throw new mt(l.value, f, Object.keys(l.options), s);
|
|
3701
3744
|
a.push.apply(a, he(w.value, t, r, n, i, f - (l.offset || 0)));
|
|
3702
3745
|
continue;
|
|
3703
3746
|
}
|
|
3704
3747
|
}
|
|
3705
|
-
return
|
|
3748
|
+
return jn(a);
|
|
3706
3749
|
}
|
|
3707
|
-
function
|
|
3708
|
-
return t ?
|
|
3709
|
-
return r[n] =
|
|
3750
|
+
function Vn(e, t) {
|
|
3751
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3752
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3710
3753
|
}, {})) : e;
|
|
3711
3754
|
}
|
|
3712
|
-
function
|
|
3755
|
+
function Xn(e, t) {
|
|
3713
3756
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3714
|
-
return r[n] =
|
|
3715
|
-
},
|
|
3757
|
+
return r[n] = Vn(e[n], t[n]), r;
|
|
3758
|
+
}, A({}, e)) : e;
|
|
3716
3759
|
}
|
|
3717
|
-
function
|
|
3760
|
+
function Te(e) {
|
|
3718
3761
|
return {
|
|
3719
3762
|
create: function() {
|
|
3720
3763
|
return {
|
|
@@ -3728,39 +3771,39 @@ function Se(e) {
|
|
|
3728
3771
|
}
|
|
3729
3772
|
};
|
|
3730
3773
|
}
|
|
3731
|
-
function
|
|
3774
|
+
function Wn(e) {
|
|
3732
3775
|
return e === void 0 && (e = {
|
|
3733
3776
|
number: {},
|
|
3734
3777
|
dateTime: {},
|
|
3735
3778
|
pluralRules: {}
|
|
3736
3779
|
}), {
|
|
3737
|
-
getNumberFormat:
|
|
3780
|
+
getNumberFormat: Se(function() {
|
|
3738
3781
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3739
3782
|
r[n] = arguments[n];
|
|
3740
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3783
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3741
3784
|
}, {
|
|
3742
|
-
cache:
|
|
3743
|
-
strategy:
|
|
3785
|
+
cache: Te(e.number),
|
|
3786
|
+
strategy: we.variadic
|
|
3744
3787
|
}),
|
|
3745
|
-
getDateTimeFormat:
|
|
3788
|
+
getDateTimeFormat: Se(function() {
|
|
3746
3789
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3747
3790
|
r[n] = arguments[n];
|
|
3748
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3791
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3749
3792
|
}, {
|
|
3750
|
-
cache:
|
|
3751
|
-
strategy:
|
|
3793
|
+
cache: Te(e.dateTime),
|
|
3794
|
+
strategy: we.variadic
|
|
3752
3795
|
}),
|
|
3753
|
-
getPluralRules:
|
|
3796
|
+
getPluralRules: Se(function() {
|
|
3754
3797
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3755
3798
|
r[n] = arguments[n];
|
|
3756
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3799
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ee([void 0], r, !1)))();
|
|
3757
3800
|
}, {
|
|
3758
|
-
cache:
|
|
3759
|
-
strategy:
|
|
3801
|
+
cache: Te(e.pluralRules),
|
|
3802
|
+
strategy: we.variadic
|
|
3760
3803
|
})
|
|
3761
3804
|
};
|
|
3762
3805
|
}
|
|
3763
|
-
var
|
|
3806
|
+
var zn = (
|
|
3764
3807
|
/** @class */
|
|
3765
3808
|
function() {
|
|
3766
3809
|
function e(t, r, n, i) {
|
|
@@ -3792,13 +3835,13 @@ var jn = (
|
|
|
3792
3835
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3793
3836
|
var s = i || {};
|
|
3794
3837
|
s.formatters;
|
|
3795
|
-
var a =
|
|
3796
|
-
this.ast = e.__parse(t,
|
|
3838
|
+
var a = tn(s, ["formatters"]);
|
|
3839
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3797
3840
|
} else
|
|
3798
3841
|
this.ast = t;
|
|
3799
3842
|
if (!Array.isArray(this.ast))
|
|
3800
3843
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3801
|
-
this.formats =
|
|
3844
|
+
this.formats = Xn(e.formats, n), this.formatters = i && i.formatters || Wn(this.formatterCache);
|
|
3802
3845
|
}
|
|
3803
3846
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3804
3847
|
get: function() {
|
|
@@ -3811,7 +3854,7 @@ var jn = (
|
|
|
3811
3854
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3812
3855
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3813
3856
|
}
|
|
3814
|
-
}, e.__parse =
|
|
3857
|
+
}, e.__parse = Fn, e.formats = {
|
|
3815
3858
|
number: {
|
|
3816
3859
|
integer: {
|
|
3817
3860
|
maximumFractionDigits: 0
|
|
@@ -3872,7 +3915,7 @@ var jn = (
|
|
|
3872
3915
|
}, e;
|
|
3873
3916
|
}()
|
|
3874
3917
|
);
|
|
3875
|
-
function
|
|
3918
|
+
function Zn(e, t) {
|
|
3876
3919
|
if (t == null)
|
|
3877
3920
|
return;
|
|
3878
3921
|
if (t in e)
|
|
@@ -3893,92 +3936,92 @@ function kn(e, t) {
|
|
|
3893
3936
|
n = void 0;
|
|
3894
3937
|
return n;
|
|
3895
3938
|
}
|
|
3896
|
-
const O = {},
|
|
3939
|
+
const O = {}, Qn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Wt = (e, t) => {
|
|
3897
3940
|
if (t == null)
|
|
3898
3941
|
return;
|
|
3899
3942
|
if (t in O && e in O[t])
|
|
3900
3943
|
return O[t][e];
|
|
3901
|
-
const r =
|
|
3944
|
+
const r = ve(t);
|
|
3902
3945
|
for (let n = 0; n < r.length; n++) {
|
|
3903
|
-
const i = r[n], o =
|
|
3946
|
+
const i = r[n], o = Yn(i, e);
|
|
3904
3947
|
if (o)
|
|
3905
|
-
return
|
|
3948
|
+
return Qn(e, t, o);
|
|
3906
3949
|
}
|
|
3907
3950
|
};
|
|
3908
|
-
let
|
|
3909
|
-
const re =
|
|
3910
|
-
function
|
|
3911
|
-
return
|
|
3951
|
+
let ze;
|
|
3952
|
+
const re = de({});
|
|
3953
|
+
function Jn(e) {
|
|
3954
|
+
return ze[e] || null;
|
|
3912
3955
|
}
|
|
3913
|
-
function
|
|
3914
|
-
return e in
|
|
3956
|
+
function zt(e) {
|
|
3957
|
+
return e in ze;
|
|
3915
3958
|
}
|
|
3916
|
-
function
|
|
3917
|
-
if (!
|
|
3959
|
+
function Yn(e, t) {
|
|
3960
|
+
if (!zt(e))
|
|
3918
3961
|
return null;
|
|
3919
|
-
const r =
|
|
3920
|
-
return
|
|
3962
|
+
const r = Jn(e);
|
|
3963
|
+
return Zn(r, t);
|
|
3921
3964
|
}
|
|
3922
|
-
function
|
|
3965
|
+
function qn(e) {
|
|
3923
3966
|
if (e == null)
|
|
3924
3967
|
return;
|
|
3925
|
-
const t =
|
|
3968
|
+
const t = ve(e);
|
|
3926
3969
|
for (let r = 0; r < t.length; r++) {
|
|
3927
3970
|
const n = t[r];
|
|
3928
|
-
if (
|
|
3971
|
+
if (zt(n))
|
|
3929
3972
|
return n;
|
|
3930
3973
|
}
|
|
3931
3974
|
}
|
|
3932
|
-
function
|
|
3933
|
-
delete O[e], re.update((r) => (r[e] =
|
|
3975
|
+
function Kn(e, ...t) {
|
|
3976
|
+
delete O[e], re.update((r) => (r[e] = en.all([r[e] || {}, ...t]), r));
|
|
3934
3977
|
}
|
|
3935
|
-
|
|
3978
|
+
X(
|
|
3936
3979
|
[re],
|
|
3937
3980
|
([e]) => Object.keys(e)
|
|
3938
3981
|
);
|
|
3939
|
-
re.subscribe((e) =>
|
|
3982
|
+
re.subscribe((e) => ze = e);
|
|
3940
3983
|
const le = {};
|
|
3941
|
-
function
|
|
3984
|
+
function ei(e, t) {
|
|
3942
3985
|
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3943
3986
|
}
|
|
3944
|
-
function
|
|
3987
|
+
function Zt(e) {
|
|
3945
3988
|
return le[e];
|
|
3946
3989
|
}
|
|
3947
|
-
function
|
|
3948
|
-
return
|
|
3949
|
-
const r =
|
|
3990
|
+
function ti(e) {
|
|
3991
|
+
return ve(e).map((t) => {
|
|
3992
|
+
const r = Zt(t);
|
|
3950
3993
|
return [t, r ? [...r] : []];
|
|
3951
3994
|
}).filter(([, t]) => t.length > 0);
|
|
3952
3995
|
}
|
|
3953
|
-
function
|
|
3954
|
-
return e == null ? !1 :
|
|
3996
|
+
function Ve(e) {
|
|
3997
|
+
return e == null ? !1 : ve(e).some(
|
|
3955
3998
|
(t) => {
|
|
3956
3999
|
var r;
|
|
3957
|
-
return (r =
|
|
4000
|
+
return (r = Zt(t)) == null ? void 0 : r.size;
|
|
3958
4001
|
}
|
|
3959
4002
|
);
|
|
3960
4003
|
}
|
|
3961
|
-
function
|
|
4004
|
+
function ri(e, t) {
|
|
3962
4005
|
return Promise.all(
|
|
3963
|
-
t.map((n) => (
|
|
3964
|
-
).then((n) =>
|
|
3965
|
-
}
|
|
3966
|
-
const
|
|
3967
|
-
function
|
|
3968
|
-
if (!
|
|
3969
|
-
return e in
|
|
3970
|
-
const t =
|
|
3971
|
-
return
|
|
4006
|
+
t.map((n) => (ei(e, n), n().then((i) => i.default || i)))
|
|
4007
|
+
).then((n) => Kn(e, ...n));
|
|
4008
|
+
}
|
|
4009
|
+
const z = {};
|
|
4010
|
+
function Qt(e) {
|
|
4011
|
+
if (!Ve(e))
|
|
4012
|
+
return e in z ? z[e] : Promise.resolve();
|
|
4013
|
+
const t = ti(e);
|
|
4014
|
+
return z[e] = Promise.all(
|
|
3972
4015
|
t.map(
|
|
3973
|
-
([r, n]) =>
|
|
4016
|
+
([r, n]) => ri(r, n)
|
|
3974
4017
|
)
|
|
3975
4018
|
).then(() => {
|
|
3976
|
-
if (
|
|
3977
|
-
return
|
|
3978
|
-
delete
|
|
3979
|
-
}),
|
|
4019
|
+
if (Ve(e))
|
|
4020
|
+
return Qt(e);
|
|
4021
|
+
delete z[e];
|
|
4022
|
+
}), z[e];
|
|
3980
4023
|
}
|
|
3981
|
-
const
|
|
4024
|
+
const ni = {
|
|
3982
4025
|
number: {
|
|
3983
4026
|
scientific: { notation: "scientific" },
|
|
3984
4027
|
engineering: { notation: "engineering" },
|
|
@@ -4007,135 +4050,135 @@ const qn = {
|
|
|
4007
4050
|
timeZoneName: "short"
|
|
4008
4051
|
}
|
|
4009
4052
|
}
|
|
4010
|
-
},
|
|
4053
|
+
}, ii = {
|
|
4011
4054
|
fallbackLocale: null,
|
|
4012
4055
|
loadingDelay: 200,
|
|
4013
|
-
formats:
|
|
4056
|
+
formats: ni,
|
|
4014
4057
|
warnOnMissingMessages: !0,
|
|
4015
4058
|
handleMissingMessage: void 0,
|
|
4016
4059
|
ignoreTag: !0
|
|
4017
|
-
},
|
|
4018
|
-
function
|
|
4019
|
-
return
|
|
4060
|
+
}, oi = ii;
|
|
4061
|
+
function k() {
|
|
4062
|
+
return oi;
|
|
4020
4063
|
}
|
|
4021
|
-
const
|
|
4022
|
-
var
|
|
4064
|
+
const Be = de(!1);
|
|
4065
|
+
var si = Object.defineProperty, ai = Object.defineProperties, ui = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, hi = Object.prototype.hasOwnProperty, li = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ci = (e, t) => {
|
|
4023
4066
|
for (var r in t || (t = {}))
|
|
4024
|
-
|
|
4025
|
-
if (
|
|
4026
|
-
for (var r of
|
|
4027
|
-
|
|
4067
|
+
hi.call(t, r) && dt(e, r, t[r]);
|
|
4068
|
+
if (pt)
|
|
4069
|
+
for (var r of pt(t))
|
|
4070
|
+
li.call(t, r) && dt(e, r, t[r]);
|
|
4028
4071
|
return e;
|
|
4029
|
-
},
|
|
4030
|
-
let
|
|
4031
|
-
const
|
|
4032
|
-
function
|
|
4072
|
+
}, fi = (e, t) => ai(e, ui(t));
|
|
4073
|
+
let Xe;
|
|
4074
|
+
const fe = de(null);
|
|
4075
|
+
function bt(e) {
|
|
4033
4076
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4034
4077
|
}
|
|
4035
|
-
function
|
|
4036
|
-
const r =
|
|
4037
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4078
|
+
function ve(e, t = k().fallbackLocale) {
|
|
4079
|
+
const r = bt(e);
|
|
4080
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
4038
4081
|
}
|
|
4039
4082
|
function L() {
|
|
4040
|
-
return
|
|
4083
|
+
return Xe ?? void 0;
|
|
4041
4084
|
}
|
|
4042
|
-
|
|
4043
|
-
|
|
4085
|
+
fe.subscribe((e) => {
|
|
4086
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4044
4087
|
});
|
|
4045
|
-
const
|
|
4046
|
-
if (e &&
|
|
4047
|
-
const { loadingDelay: t } =
|
|
4088
|
+
const mi = (e) => {
|
|
4089
|
+
if (e && qn(e) && Ve(e)) {
|
|
4090
|
+
const { loadingDelay: t } = k();
|
|
4048
4091
|
let r;
|
|
4049
4092
|
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
4050
|
-
() =>
|
|
4093
|
+
() => Be.set(!0),
|
|
4051
4094
|
t
|
|
4052
|
-
) :
|
|
4053
|
-
|
|
4095
|
+
) : Be.set(!0), Qt(e).then(() => {
|
|
4096
|
+
fe.set(e);
|
|
4054
4097
|
}).finally(() => {
|
|
4055
|
-
clearTimeout(r),
|
|
4098
|
+
clearTimeout(r), Be.set(!1);
|
|
4056
4099
|
});
|
|
4057
4100
|
}
|
|
4058
|
-
return
|
|
4059
|
-
}, ne =
|
|
4060
|
-
set:
|
|
4061
|
-
}),
|
|
4101
|
+
return fe.set(e);
|
|
4102
|
+
}, ne = fi(ci({}, fe), {
|
|
4103
|
+
set: mi
|
|
4104
|
+
}), ge = (e) => {
|
|
4062
4105
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4063
4106
|
return (n) => {
|
|
4064
4107
|
const i = JSON.stringify(n);
|
|
4065
4108
|
return i in t ? t[i] : t[i] = e(n);
|
|
4066
4109
|
};
|
|
4067
4110
|
};
|
|
4068
|
-
var
|
|
4111
|
+
var pi = Object.defineProperty, me = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
4069
4112
|
for (var r in t || (t = {}))
|
|
4070
|
-
|
|
4071
|
-
if (
|
|
4072
|
-
for (var r of
|
|
4073
|
-
|
|
4113
|
+
Jt.call(t, r) && yt(e, r, t[r]);
|
|
4114
|
+
if (me)
|
|
4115
|
+
for (var r of me(t))
|
|
4116
|
+
Yt.call(t, r) && yt(e, r, t[r]);
|
|
4074
4117
|
return e;
|
|
4075
|
-
},
|
|
4118
|
+
}, W = (e, t) => {
|
|
4076
4119
|
var r = {};
|
|
4077
4120
|
for (var n in e)
|
|
4078
|
-
|
|
4079
|
-
if (e != null &&
|
|
4080
|
-
for (var n of
|
|
4081
|
-
t.indexOf(n) < 0 &&
|
|
4121
|
+
Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4122
|
+
if (e != null && me)
|
|
4123
|
+
for (var n of me(e))
|
|
4124
|
+
t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
|
|
4082
4125
|
return r;
|
|
4083
4126
|
};
|
|
4084
|
-
const
|
|
4085
|
-
const { formats: r } =
|
|
4127
|
+
const q = (e, t) => {
|
|
4128
|
+
const { formats: r } = k();
|
|
4086
4129
|
if (e in r && t in r[e])
|
|
4087
4130
|
return r[e][t];
|
|
4088
4131
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4089
|
-
},
|
|
4132
|
+
}, di = ge(
|
|
4090
4133
|
(e) => {
|
|
4091
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4134
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4092
4135
|
if (r == null)
|
|
4093
4136
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4094
|
-
return n && (i =
|
|
4137
|
+
return n && (i = q("number", n)), new Intl.NumberFormat(r, i);
|
|
4095
4138
|
}
|
|
4096
|
-
),
|
|
4139
|
+
), bi = ge(
|
|
4097
4140
|
(e) => {
|
|
4098
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4141
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4099
4142
|
if (r == null)
|
|
4100
4143
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4101
|
-
return n ? i =
|
|
4144
|
+
return n ? i = q("date", n) : Object.keys(i).length === 0 && (i = q("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4102
4145
|
}
|
|
4103
|
-
),
|
|
4146
|
+
), yi = ge(
|
|
4104
4147
|
(e) => {
|
|
4105
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4148
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4106
4149
|
if (r == null)
|
|
4107
4150
|
throw new Error(
|
|
4108
4151
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4109
4152
|
);
|
|
4110
|
-
return n ? i =
|
|
4153
|
+
return n ? i = q("time", n) : Object.keys(i).length === 0 && (i = q("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4111
4154
|
}
|
|
4112
|
-
),
|
|
4155
|
+
), vi = (e = {}) => {
|
|
4113
4156
|
var t = e, {
|
|
4114
4157
|
locale: r = L()
|
|
4115
|
-
} = t, n =
|
|
4158
|
+
} = t, n = W(t, [
|
|
4116
4159
|
"locale"
|
|
4117
4160
|
]);
|
|
4118
|
-
return
|
|
4119
|
-
},
|
|
4161
|
+
return di(Ze({ locale: r }, n));
|
|
4162
|
+
}, gi = (e = {}) => {
|
|
4120
4163
|
var t = e, {
|
|
4121
4164
|
locale: r = L()
|
|
4122
|
-
} = t, n =
|
|
4165
|
+
} = t, n = W(t, [
|
|
4123
4166
|
"locale"
|
|
4124
4167
|
]);
|
|
4125
|
-
return
|
|
4126
|
-
},
|
|
4168
|
+
return bi(Ze({ locale: r }, n));
|
|
4169
|
+
}, _i = (e = {}) => {
|
|
4127
4170
|
var t = e, {
|
|
4128
4171
|
locale: r = L()
|
|
4129
|
-
} = t, n =
|
|
4172
|
+
} = t, n = W(t, [
|
|
4130
4173
|
"locale"
|
|
4131
4174
|
]);
|
|
4132
|
-
return
|
|
4133
|
-
},
|
|
4175
|
+
return yi(Ze({ locale: r }, n));
|
|
4176
|
+
}, xi = ge(
|
|
4134
4177
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4135
|
-
(e, t = L()) => new
|
|
4136
|
-
ignoreTag:
|
|
4178
|
+
(e, t = L()) => new zn(e, t, k().formats, {
|
|
4179
|
+
ignoreTag: k().ignoreTag
|
|
4137
4180
|
})
|
|
4138
|
-
),
|
|
4181
|
+
), Ei = (e, t = {}) => {
|
|
4139
4182
|
var r, n, i, o;
|
|
4140
4183
|
let s = t;
|
|
4141
4184
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4148,9 +4191,9 @@ const K = (e, t) => {
|
|
|
4148
4191
|
throw new Error(
|
|
4149
4192
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4150
4193
|
);
|
|
4151
|
-
let l =
|
|
4194
|
+
let l = Wt(e, h);
|
|
4152
4195
|
if (!l)
|
|
4153
|
-
l = (o = (i = (n = (r =
|
|
4196
|
+
l = (o = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4154
4197
|
else if (typeof l != "string")
|
|
4155
4198
|
return console.warn(
|
|
4156
4199
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4159,7 +4202,7 @@ const K = (e, t) => {
|
|
|
4159
4202
|
return l;
|
|
4160
4203
|
let c = l;
|
|
4161
4204
|
try {
|
|
4162
|
-
c =
|
|
4205
|
+
c = xi(l, h).format(a);
|
|
4163
4206
|
} catch (f) {
|
|
4164
4207
|
f instanceof Error && console.warn(
|
|
4165
4208
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4167,21 +4210,21 @@ const K = (e, t) => {
|
|
|
4167
4210
|
);
|
|
4168
4211
|
}
|
|
4169
4212
|
return c;
|
|
4170
|
-
},
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
window.emWidgets = { topic:
|
|
4177
|
-
const
|
|
4178
|
-
function
|
|
4213
|
+
}, Si = (e, t) => _i(t).format(e), wi = (e, t) => gi(t).format(e), Hi = (e, t) => vi(t).format(e), Ti = (e, t = L()) => Wt(e, t);
|
|
4214
|
+
X([ne, re], () => Ei);
|
|
4215
|
+
X([ne], () => Si);
|
|
4216
|
+
X([ne], () => wi);
|
|
4217
|
+
X([ne], () => Hi);
|
|
4218
|
+
X([ne, re], () => Ti);
|
|
4219
|
+
window.emWidgets = { topic: Rr };
|
|
4220
|
+
const Bi = (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));
|
|
4221
|
+
function Ai(e, t) {
|
|
4179
4222
|
if (e) {
|
|
4180
4223
|
const r = document.createElement("style");
|
|
4181
4224
|
r.innerHTML = t, e.appendChild(r);
|
|
4182
4225
|
}
|
|
4183
4226
|
}
|
|
4184
|
-
function
|
|
4227
|
+
function Pi(e, t) {
|
|
4185
4228
|
const r = new URL(t);
|
|
4186
4229
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4187
4230
|
const i = document.createElement("style");
|
|
@@ -4190,7 +4233,7 @@ function wi(e, t) {
|
|
|
4190
4233
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4191
4234
|
});
|
|
4192
4235
|
}
|
|
4193
|
-
function
|
|
4236
|
+
function Oi(e, t, r) {
|
|
4194
4237
|
if (window.emMessageBus) {
|
|
4195
4238
|
const n = document.createElement("style");
|
|
4196
4239
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4198,115 +4241,115 @@ function Hi(e, t, r) {
|
|
|
4198
4241
|
});
|
|
4199
4242
|
}
|
|
4200
4243
|
}
|
|
4201
|
-
function
|
|
4202
|
-
|
|
4244
|
+
function Ii(e) {
|
|
4245
|
+
er(e, "svelte-8o17lh", "*,*::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}}");
|
|
4203
4246
|
}
|
|
4204
|
-
function
|
|
4247
|
+
function vt(e) {
|
|
4205
4248
|
let t, r, n, i, o, s, a, h, u, l, c, f;
|
|
4206
|
-
function p(
|
|
4249
|
+
function p(x, v) {
|
|
4207
4250
|
return (
|
|
4208
4251
|
/*isLoading*/
|
|
4209
|
-
|
|
4252
|
+
x[3] ? Ci : Ni
|
|
4210
4253
|
);
|
|
4211
4254
|
}
|
|
4212
|
-
let
|
|
4255
|
+
let y = p(e), m = y(e);
|
|
4213
4256
|
return {
|
|
4214
4257
|
c() {
|
|
4215
|
-
t =
|
|
4258
|
+
t = F("button"), r = F("small"), m.c(), n = nr(), i = C("svg"), o = C("g"), s = C("path"), a = C("path"), h = C("path"), u = C("path"), l = C("path"), E(r, "class", "betslipIndicator__number"), E(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
|
|
4216
4259
|
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
|
|
4217
4260
|
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
|
|
4218
|
-
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`), E(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"), E(h, "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"), E(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"), E(l, "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"), E(i, "version", "1.1"), E(i, "id", "Layer_1"), E(i, "class", "betslipIndicator__icon"), E(i, "xmlns", "http://www.w3.org/2000/svg"), E(i, "xmlns:xlink", "http://www.w3.org/1999/xlink"), E(i, "x", "0px"), E(i, "y", "0px"), E(i, "viewBox", "0 0 64 100"),
|
|
4261
|
+
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`), E(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"), E(h, "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"), E(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"), E(l, "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"), E(i, "version", "1.1"), E(i, "id", "Layer_1"), E(i, "class", "betslipIndicator__icon"), E(i, "xmlns", "http://www.w3.org/2000/svg"), E(i, "xmlns:xlink", "http://www.w3.org/1999/xlink"), E(i, "x", "0px"), E(i, "y", "0px"), E(i, "viewBox", "0 0 64 100"), ar(i, "enable-background", "new 0 0 64 100"), E(i, "xml:space", "preserve"), E(t, "class", "betslipIndicator");
|
|
4219
4262
|
},
|
|
4220
|
-
m(
|
|
4221
|
-
|
|
4263
|
+
m(x, v) {
|
|
4264
|
+
ee(x, t, v), B(t, r), m.m(r, null), B(t, n), B(t, i), B(i, o), B(o, s), B(o, a), B(o, h), B(o, u), B(o, l), c || (f = ir(
|
|
4222
4265
|
t,
|
|
4223
4266
|
"click",
|
|
4224
4267
|
/*click_handler*/
|
|
4225
4268
|
e[9]
|
|
4226
4269
|
), c = !0);
|
|
4227
4270
|
},
|
|
4228
|
-
p(
|
|
4229
|
-
|
|
4271
|
+
p(x, v) {
|
|
4272
|
+
y === (y = p(x)) && m ? m.p(x, v) : (m.d(1), m = y(x), m && (m.c(), m.m(r, null)));
|
|
4230
4273
|
},
|
|
4231
|
-
d(
|
|
4232
|
-
|
|
4274
|
+
d(x) {
|
|
4275
|
+
x && V(t), m.d(), c = !1, f();
|
|
4233
4276
|
}
|
|
4234
4277
|
};
|
|
4235
4278
|
}
|
|
4236
|
-
function
|
|
4279
|
+
function Ni(e) {
|
|
4237
4280
|
let t;
|
|
4238
4281
|
return {
|
|
4239
4282
|
c() {
|
|
4240
|
-
t =
|
|
4283
|
+
t = xt(
|
|
4241
4284
|
/*betNumber*/
|
|
4242
4285
|
e[1]
|
|
4243
4286
|
);
|
|
4244
4287
|
},
|
|
4245
4288
|
m(r, n) {
|
|
4246
|
-
|
|
4289
|
+
ee(r, t, n);
|
|
4247
4290
|
},
|
|
4248
4291
|
p(r, n) {
|
|
4249
4292
|
n & /*betNumber*/
|
|
4250
|
-
2 &&
|
|
4293
|
+
2 && sr(
|
|
4251
4294
|
t,
|
|
4252
4295
|
/*betNumber*/
|
|
4253
4296
|
r[1]
|
|
4254
4297
|
);
|
|
4255
4298
|
},
|
|
4256
4299
|
d(r) {
|
|
4257
|
-
r &&
|
|
4300
|
+
r && V(t);
|
|
4258
4301
|
}
|
|
4259
4302
|
};
|
|
4260
4303
|
}
|
|
4261
|
-
function
|
|
4304
|
+
function Ci(e) {
|
|
4262
4305
|
let t;
|
|
4263
4306
|
return {
|
|
4264
4307
|
c() {
|
|
4265
|
-
t =
|
|
4308
|
+
t = F("div"), t.textContent = "Loading...", E(t, "class", "loader");
|
|
4266
4309
|
},
|
|
4267
4310
|
m(r, n) {
|
|
4268
|
-
|
|
4311
|
+
ee(r, t, n);
|
|
4269
4312
|
},
|
|
4270
4313
|
p: H,
|
|
4271
4314
|
d(r) {
|
|
4272
|
-
r &&
|
|
4315
|
+
r && V(t);
|
|
4273
4316
|
}
|
|
4274
4317
|
};
|
|
4275
4318
|
}
|
|
4276
|
-
function
|
|
4319
|
+
function Li(e) {
|
|
4277
4320
|
let t, r = (
|
|
4278
4321
|
/*mobileView*/
|
|
4279
4322
|
e[2] && /*betNumber*/
|
|
4280
4323
|
e[1] > 0 && /*betSlipVisible*/
|
|
4281
|
-
e[4] &&
|
|
4324
|
+
e[4] && vt(e)
|
|
4282
4325
|
);
|
|
4283
4326
|
return {
|
|
4284
4327
|
c() {
|
|
4285
|
-
t =
|
|
4328
|
+
t = F("div"), r && r.c();
|
|
4286
4329
|
},
|
|
4287
4330
|
m(n, i) {
|
|
4288
|
-
|
|
4331
|
+
ee(n, t, i), r && r.m(t, null), e[10](t);
|
|
4289
4332
|
},
|
|
4290
4333
|
p(n, [i]) {
|
|
4291
4334
|
/*mobileView*/
|
|
4292
4335
|
n[2] && /*betNumber*/
|
|
4293
4336
|
n[1] > 0 && /*betSlipVisible*/
|
|
4294
|
-
n[4] ? r ? r.p(n, i) : (r =
|
|
4337
|
+
n[4] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4295
4338
|
},
|
|
4296
4339
|
i: H,
|
|
4297
4340
|
o: H,
|
|
4298
4341
|
d(n) {
|
|
4299
|
-
n &&
|
|
4342
|
+
n && V(t), r && r.d(), e[10](null);
|
|
4300
4343
|
}
|
|
4301
4344
|
};
|
|
4302
4345
|
}
|
|
4303
|
-
function
|
|
4346
|
+
function Mi(e, t, r) {
|
|
4304
4347
|
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { mbsource: o } = t, s, a = window.navigator.userAgent, h = null, u = !1, l = !0, c = !1;
|
|
4305
4348
|
const f = () => {
|
|
4306
4349
|
window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
|
|
4307
|
-
}, p = (
|
|
4350
|
+
}, p = (v, T) => {
|
|
4308
4351
|
s.dispatchEvent(new CustomEvent(
|
|
4309
|
-
|
|
4352
|
+
v,
|
|
4310
4353
|
{
|
|
4311
4354
|
detail: T,
|
|
4312
4355
|
composed: !0,
|
|
@@ -4314,35 +4357,35 @@ function Oi(e, t, r) {
|
|
|
4314
4357
|
// propagate across the shadow DOM
|
|
4315
4358
|
}
|
|
4316
4359
|
));
|
|
4317
|
-
},
|
|
4318
|
-
const { type: T, payload: w } =
|
|
4319
|
-
if (
|
|
4360
|
+
}, y = (v) => {
|
|
4361
|
+
const { type: T, payload: w } = v.data;
|
|
4362
|
+
if (v.data)
|
|
4320
4363
|
switch (T) {
|
|
4321
4364
|
case "OMFE:updateBetslipSelectionsCount":
|
|
4322
4365
|
r(1, h = w.count), r(3, l = !1);
|
|
4323
4366
|
break;
|
|
4324
4367
|
case "OMFE:betslipSidebar":
|
|
4325
|
-
const I =
|
|
4368
|
+
const I = v.data.payload?.enableBetslipBubble;
|
|
4326
4369
|
r(4, c = !!I);
|
|
4327
4370
|
break;
|
|
4328
4371
|
}
|
|
4329
4372
|
};
|
|
4330
|
-
|
|
4331
|
-
window.removeEventListener("message",
|
|
4373
|
+
lr(() => (f(), window.addEventListener("message", y, !1), Bi(a) && r(2, u = !0), () => {
|
|
4374
|
+
window.removeEventListener("message", y);
|
|
4332
4375
|
}));
|
|
4333
|
-
const m = (
|
|
4334
|
-
function
|
|
4335
|
-
|
|
4336
|
-
s =
|
|
4376
|
+
const m = (v) => p("betslipClick", {});
|
|
4377
|
+
function x(v) {
|
|
4378
|
+
Ae[v ? "unshift" : "push"](() => {
|
|
4379
|
+
s = v, r(0, s);
|
|
4337
4380
|
});
|
|
4338
4381
|
}
|
|
4339
|
-
return e.$$set = (
|
|
4340
|
-
"clientstyling" in
|
|
4382
|
+
return e.$$set = (v) => {
|
|
4383
|
+
"clientstyling" in v && r(6, n = v.clientstyling), "clientstylingurl" in v && r(7, i = v.clientstylingurl), "mbsource" in v && r(8, o = v.mbsource);
|
|
4341
4384
|
}, e.$$.update = () => {
|
|
4342
4385
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4343
|
-
65 && n && s &&
|
|
4344
|
-
129 && i && s &&
|
|
4345
|
-
257 && o && s &&
|
|
4386
|
+
65 && n && s && Ai(s, n), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4387
|
+
129 && i && s && Pi(s, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4388
|
+
257 && o && s && Oi(s, `${o}.Style`);
|
|
4346
4389
|
}, [
|
|
4347
4390
|
s,
|
|
4348
4391
|
h,
|
|
@@ -4354,45 +4397,45 @@ function Oi(e, t, r) {
|
|
|
4354
4397
|
i,
|
|
4355
4398
|
o,
|
|
4356
4399
|
m,
|
|
4357
|
-
|
|
4400
|
+
x
|
|
4358
4401
|
];
|
|
4359
4402
|
}
|
|
4360
|
-
class
|
|
4403
|
+
class $i extends Er {
|
|
4361
4404
|
constructor(t) {
|
|
4362
|
-
super(),
|
|
4405
|
+
super(), _r(
|
|
4363
4406
|
this,
|
|
4364
4407
|
t,
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4408
|
+
Mi,
|
|
4409
|
+
Li,
|
|
4410
|
+
_t,
|
|
4368
4411
|
{
|
|
4369
4412
|
clientstyling: 6,
|
|
4370
4413
|
clientstylingurl: 7,
|
|
4371
4414
|
mbsource: 8
|
|
4372
4415
|
},
|
|
4373
|
-
|
|
4416
|
+
Ii
|
|
4374
4417
|
);
|
|
4375
4418
|
}
|
|
4376
4419
|
get clientstyling() {
|
|
4377
4420
|
return this.$$.ctx[6];
|
|
4378
4421
|
}
|
|
4379
4422
|
set clientstyling(t) {
|
|
4380
|
-
this.$$set({ clientstyling: t }),
|
|
4423
|
+
this.$$set({ clientstyling: t }), Q();
|
|
4381
4424
|
}
|
|
4382
4425
|
get clientstylingurl() {
|
|
4383
4426
|
return this.$$.ctx[7];
|
|
4384
4427
|
}
|
|
4385
4428
|
set clientstylingurl(t) {
|
|
4386
|
-
this.$$set({ clientstylingurl: t }),
|
|
4429
|
+
this.$$set({ clientstylingurl: t }), Q();
|
|
4387
4430
|
}
|
|
4388
4431
|
get mbsource() {
|
|
4389
4432
|
return this.$$.ctx[8];
|
|
4390
4433
|
}
|
|
4391
4434
|
set mbsource(t) {
|
|
4392
|
-
this.$$set({ mbsource: t }),
|
|
4435
|
+
this.$$set({ mbsource: t }), Q();
|
|
4393
4436
|
}
|
|
4394
4437
|
}
|
|
4395
|
-
|
|
4438
|
+
xr($i, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
4396
4439
|
export {
|
|
4397
|
-
|
|
4440
|
+
$i as C
|
|
4398
4441
|
};
|