@everymatrix/casino-tournaments-tab 1.86.2 → 1.86.3
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/{CasinoTournamentsTab-D5CTMAEx.js → CasinoTournamentsTab-CHpA7UyH.js} +684 -705
- package/components/{CasinoTournamentsTab-C32EjHEa.js → CasinoTournamentsTab-DRLg4oeD.js} +732 -753
- package/components/CasinoTournamentsTab-DcCZHhw6.cjs +18 -0
- package/es2015/casino-tournaments-tab.cjs +1 -1
- package/es2015/casino-tournaments-tab.js +1 -1
- package/esnext/casino-tournaments-tab.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsTab-alsBtUTn.cjs +0 -18
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
function
|
|
1
|
+
function S() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function xt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ze() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function K(e) {
|
|
10
|
+
e.forEach(xt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Fe(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Tt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function nr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ir(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return S;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function N(e, t) {
|
|
31
31
|
e.appendChild(t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const n =
|
|
33
|
+
function or(e, t, r) {
|
|
34
|
+
const n = sr(e);
|
|
35
35
|
if (!n.getElementById(t)) {
|
|
36
36
|
const i = O("style");
|
|
37
|
-
i.id = t, i.textContent = r,
|
|
37
|
+
i.id = t, i.textContent = r, ar(n, i);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function sr(e) {
|
|
41
41
|
if (!e)
|
|
42
42
|
return document;
|
|
43
43
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -47,46 +47,46 @@ function ar(e) {
|
|
|
47
47
|
t
|
|
48
48
|
) : e.ownerDocument;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function ar(e, t) {
|
|
51
|
+
return N(
|
|
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 ur(e, t) {
|
|
64
64
|
for (let r = 0; r < e.length; r += 1)
|
|
65
65
|
e[r] && e[r].d(t);
|
|
66
66
|
}
|
|
67
67
|
function O(e) {
|
|
68
68
|
return document.createElement(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function je(e) {
|
|
71
71
|
return document.createTextNode(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return
|
|
73
|
+
function Qe() {
|
|
74
|
+
return je(" ");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function hr(e, t, r, n) {
|
|
77
77
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function T(e, t, r) {
|
|
80
80
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function lr(e) {
|
|
83
83
|
return Array.from(e.childNodes);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function St(e, t) {
|
|
86
86
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
87
87
|
t);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function fr(e) {
|
|
90
90
|
const t = {};
|
|
91
91
|
return e.childNodes.forEach(
|
|
92
92
|
/** @param {Element} node */
|
|
@@ -95,98 +95,98 @@ function cr(e) {
|
|
|
95
95
|
}
|
|
96
96
|
), t;
|
|
97
97
|
}
|
|
98
|
-
let
|
|
99
|
-
function
|
|
100
|
-
|
|
98
|
+
let J;
|
|
99
|
+
function Q(e) {
|
|
100
|
+
J = e;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
if (!
|
|
102
|
+
function cr() {
|
|
103
|
+
if (!J)
|
|
104
104
|
throw new Error("Function called outside component initialization");
|
|
105
|
-
return
|
|
105
|
+
return J;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
107
|
+
function wt(e) {
|
|
108
|
+
cr().$$.on_mount.push(e);
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const $ = [], we = [];
|
|
111
111
|
let U = [];
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
function
|
|
115
|
-
|
|
112
|
+
const Je = [], pr = /* @__PURE__ */ Promise.resolve();
|
|
113
|
+
let He = !1;
|
|
114
|
+
function mr() {
|
|
115
|
+
He || (He = !0, pr.then(A));
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Be(e) {
|
|
118
118
|
U.push(e);
|
|
119
119
|
}
|
|
120
|
-
const
|
|
120
|
+
const ge = /* @__PURE__ */ new Set();
|
|
121
121
|
let M = 0;
|
|
122
|
-
function
|
|
122
|
+
function A() {
|
|
123
123
|
if (M !== 0)
|
|
124
124
|
return;
|
|
125
|
-
const e =
|
|
125
|
+
const e = J;
|
|
126
126
|
do {
|
|
127
127
|
try {
|
|
128
|
-
for (; M <
|
|
129
|
-
const t =
|
|
130
|
-
M++,
|
|
128
|
+
for (; M < $.length; ) {
|
|
129
|
+
const t = $[M];
|
|
130
|
+
M++, Q(t), br(t.$$);
|
|
131
131
|
}
|
|
132
132
|
} catch (t) {
|
|
133
|
-
throw
|
|
133
|
+
throw $.length = 0, M = 0, t;
|
|
134
134
|
}
|
|
135
|
-
for (
|
|
136
|
-
|
|
135
|
+
for (Q(null), $.length = 0, M = 0; we.length; )
|
|
136
|
+
we.pop()();
|
|
137
137
|
for (let t = 0; t < U.length; t += 1) {
|
|
138
138
|
const r = U[t];
|
|
139
|
-
|
|
139
|
+
ge.has(r) || (ge.add(r), r());
|
|
140
140
|
}
|
|
141
141
|
U.length = 0;
|
|
142
|
-
} while (
|
|
143
|
-
for (;
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
} while ($.length);
|
|
143
|
+
for (; Je.length; )
|
|
144
|
+
Je.pop()();
|
|
145
|
+
He = !1, ge.clear(), Q(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function br(e) {
|
|
148
148
|
if (e.fragment !== null) {
|
|
149
|
-
e.update(),
|
|
149
|
+
e.update(), K(e.before_update);
|
|
150
150
|
const t = e.dirty;
|
|
151
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
151
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Be);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function dr(e) {
|
|
155
155
|
const t = [], r = [];
|
|
156
156
|
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
157
157
|
}
|
|
158
|
-
const
|
|
159
|
-
function
|
|
160
|
-
e && e.i && (
|
|
158
|
+
const gr = /* @__PURE__ */ new Set();
|
|
159
|
+
function vr(e, t) {
|
|
160
|
+
e && e.i && (gr.delete(e), e.i(t));
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Ye(e) {
|
|
163
163
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function yr(e, t, r) {
|
|
166
166
|
const { fragment: n, after_update: i } = e.$$;
|
|
167
|
-
n && n.m(t, r),
|
|
168
|
-
const o = e.$$.on_mount.map(
|
|
169
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
170
|
-
}), i.forEach(
|
|
167
|
+
n && n.m(t, r), Be(() => {
|
|
168
|
+
const o = e.$$.on_mount.map(xt).filter(Fe);
|
|
169
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
170
|
+
}), i.forEach(Be);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function _r(e, t) {
|
|
173
173
|
const r = e.$$;
|
|
174
|
-
r.fragment !== null && (
|
|
174
|
+
r.fragment !== null && (dr(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
e.$$.dirty[0] === -1 && (
|
|
176
|
+
function Er(e, t) {
|
|
177
|
+
e.$$.dirty[0] === -1 && ($.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
const h =
|
|
181
|
-
|
|
179
|
+
function xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
180
|
+
const h = J;
|
|
181
|
+
Q(e);
|
|
182
182
|
const u = e.$$ = {
|
|
183
183
|
fragment: null,
|
|
184
184
|
ctx: [],
|
|
185
185
|
// state
|
|
186
186
|
props: o,
|
|
187
|
-
update:
|
|
187
|
+
update: S,
|
|
188
188
|
not_equal: i,
|
|
189
|
-
bound:
|
|
189
|
+
bound: Ze(),
|
|
190
190
|
// lifecycle
|
|
191
191
|
on_mount: [],
|
|
192
192
|
on_destroy: [],
|
|
@@ -195,7 +195,7 @@ function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
195
195
|
after_update: [],
|
|
196
196
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
197
197
|
// everything else
|
|
198
|
-
callbacks:
|
|
198
|
+
callbacks: Ze(),
|
|
199
199
|
dirty: a,
|
|
200
200
|
skip_bound: !1,
|
|
201
201
|
root: t.target || h.$$.root
|
|
@@ -204,19 +204,19 @@ function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
204
204
|
let l = !1;
|
|
205
205
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
206
206
|
const b = p.length ? p[0] : c;
|
|
207
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), l &&
|
|
208
|
-
}) : [], u.update(), l = !0,
|
|
207
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), l && Er(e, f)), c;
|
|
208
|
+
}) : [], u.update(), l = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
209
209
|
if (t.hydrate) {
|
|
210
|
-
const f =
|
|
211
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
210
|
+
const f = lr(t.target);
|
|
211
|
+
u.fragment && u.fragment.l(f), f.forEach(V);
|
|
212
212
|
} else
|
|
213
213
|
u.fragment && u.fragment.c();
|
|
214
|
-
t.intro &&
|
|
214
|
+
t.intro && vr(e.$$.fragment), yr(e, t.target, t.anchor), A();
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
Q(h);
|
|
217
217
|
}
|
|
218
|
-
let
|
|
219
|
-
typeof HTMLElement == "function" && (
|
|
218
|
+
let Ht;
|
|
219
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
220
220
|
/** The Svelte component constructor */
|
|
221
221
|
$$ctor;
|
|
222
222
|
/** Slots */
|
|
@@ -258,24 +258,24 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
258
258
|
let o;
|
|
259
259
|
return {
|
|
260
260
|
c: function() {
|
|
261
|
-
o = O("slot"), i !== "default" &&
|
|
261
|
+
o = O("slot"), i !== "default" && T(o, "name", i);
|
|
262
262
|
},
|
|
263
263
|
/**
|
|
264
264
|
* @param {HTMLElement} target
|
|
265
265
|
* @param {HTMLElement} [anchor]
|
|
266
266
|
*/
|
|
267
267
|
m: function(h, u) {
|
|
268
|
-
|
|
268
|
+
ee(h, o, u);
|
|
269
269
|
},
|
|
270
270
|
d: function(h) {
|
|
271
|
-
h &&
|
|
271
|
+
h && V(o);
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
};
|
|
276
276
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
277
277
|
return;
|
|
278
|
-
const t = {}, r =
|
|
278
|
+
const t = {}, r = fr(this);
|
|
279
279
|
for (const i of this.$$s)
|
|
280
280
|
i in r && (t[i] = [e(i)]);
|
|
281
281
|
for (const i of this.attributes) {
|
|
@@ -363,7 +363,7 @@ function se(e, t, r, n) {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
function Tr(e, t, r, n, i, o) {
|
|
366
|
-
let s = class extends
|
|
366
|
+
let s = class extends Ht {
|
|
367
367
|
constructor() {
|
|
368
368
|
super(e, r, i), this.$$p_d = t;
|
|
369
369
|
}
|
|
@@ -391,7 +391,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
391
391
|
}), e.element = /** @type {any} */
|
|
392
392
|
s, s;
|
|
393
393
|
}
|
|
394
|
-
class
|
|
394
|
+
class Sr {
|
|
395
395
|
/**
|
|
396
396
|
* ### PRIVATE API
|
|
397
397
|
*
|
|
@@ -410,7 +410,7 @@ class wr {
|
|
|
410
410
|
$$set = void 0;
|
|
411
411
|
/** @returns {void} */
|
|
412
412
|
$destroy() {
|
|
413
|
-
|
|
413
|
+
_r(this, 1), this.$destroy = S;
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
416
416
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -419,8 +419,8 @@ class wr {
|
|
|
419
419
|
* @returns {() => void}
|
|
420
420
|
*/
|
|
421
421
|
$on(t, r) {
|
|
422
|
-
if (!
|
|
423
|
-
return
|
|
422
|
+
if (!Fe(r))
|
|
423
|
+
return S;
|
|
424
424
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
425
425
|
return n.push(r), () => {
|
|
426
426
|
const i = n.indexOf(r);
|
|
@@ -432,12 +432,12 @@ class wr {
|
|
|
432
432
|
* @returns {void}
|
|
433
433
|
*/
|
|
434
434
|
$set(t) {
|
|
435
|
-
this.$$set && !
|
|
435
|
+
this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
const
|
|
439
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
440
|
-
const
|
|
438
|
+
const wr = "4";
|
|
439
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
440
|
+
const Hr = (e) => (r) => {
|
|
441
441
|
Object.keys(e).map((n) => {
|
|
442
442
|
if (r.data && r.data.type == n) {
|
|
443
443
|
const { type: i, ...o } = r.data;
|
|
@@ -445,8 +445,8 @@ const Ar = (e) => (r) => {
|
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}, Br = (e) => {
|
|
448
|
-
const t =
|
|
449
|
-
|
|
448
|
+
const t = Hr(e);
|
|
449
|
+
wt(() => (window.addEventListener("message", t, !1), () => {
|
|
450
450
|
window.removeEventListener("message", t);
|
|
451
451
|
}));
|
|
452
452
|
};
|
|
@@ -464,24 +464,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
464
464
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
465
465
|
PERFORMANCE OF THIS SOFTWARE.
|
|
466
466
|
***************************************************************************** */
|
|
467
|
-
var
|
|
468
|
-
return
|
|
467
|
+
var Ae = function(e, t) {
|
|
468
|
+
return Ae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
469
469
|
r.__proto__ = n;
|
|
470
470
|
} || function(r, n) {
|
|
471
471
|
for (var i in n)
|
|
472
472
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
473
|
-
},
|
|
473
|
+
}, Ae(e, t);
|
|
474
474
|
};
|
|
475
|
-
function
|
|
475
|
+
function B(e, t) {
|
|
476
476
|
if (typeof t != "function" && t !== null)
|
|
477
477
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
478
|
-
|
|
478
|
+
Ae(e, t);
|
|
479
479
|
function r() {
|
|
480
480
|
this.constructor = e;
|
|
481
481
|
}
|
|
482
482
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
var y = function() {
|
|
485
|
+
return y = Object.assign || function(t) {
|
|
486
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
487
|
+
r = arguments[n];
|
|
488
|
+
for (var o in r)
|
|
489
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
490
|
+
}
|
|
491
|
+
return t;
|
|
492
|
+
}, y.apply(this, arguments);
|
|
493
|
+
};
|
|
494
|
+
function Ar(e, t) {
|
|
495
|
+
var r = {};
|
|
496
|
+
for (var n in e)
|
|
497
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
498
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
499
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
500
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
501
|
+
return r;
|
|
502
|
+
}
|
|
503
|
+
function Pe(e) {
|
|
485
504
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
486
505
|
if (r)
|
|
487
506
|
return r.call(e);
|
|
@@ -493,7 +512,7 @@ function Ie(e) {
|
|
|
493
512
|
};
|
|
494
513
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
495
514
|
}
|
|
496
|
-
function
|
|
515
|
+
function Oe(e, t) {
|
|
497
516
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
498
517
|
if (!r)
|
|
499
518
|
return e;
|
|
@@ -513,22 +532,22 @@ function Ne(e, t) {
|
|
|
513
532
|
}
|
|
514
533
|
return o;
|
|
515
534
|
}
|
|
516
|
-
function
|
|
517
|
-
if (arguments.length === 2)
|
|
535
|
+
function D(e, t, r) {
|
|
536
|
+
if (r || arguments.length === 2)
|
|
518
537
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
519
538
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
520
539
|
return e.concat(o || t);
|
|
521
540
|
}
|
|
522
|
-
function
|
|
541
|
+
function H(e) {
|
|
523
542
|
return typeof e == "function";
|
|
524
543
|
}
|
|
525
|
-
function
|
|
544
|
+
function Bt(e) {
|
|
526
545
|
var t = function(n) {
|
|
527
546
|
Error.call(n), n.stack = new Error().stack;
|
|
528
547
|
}, r = e(t);
|
|
529
548
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
530
549
|
}
|
|
531
|
-
var
|
|
550
|
+
var ve = Bt(function(e) {
|
|
532
551
|
return function(r) {
|
|
533
552
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
534
553
|
` + r.map(function(n, i) {
|
|
@@ -537,13 +556,13 @@ var _e = Pt(function(e) {
|
|
|
537
556
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
538
557
|
};
|
|
539
558
|
});
|
|
540
|
-
function
|
|
559
|
+
function Ie(e, t) {
|
|
541
560
|
if (e) {
|
|
542
561
|
var r = e.indexOf(t);
|
|
543
562
|
0 <= r && e.splice(r, 1);
|
|
544
563
|
}
|
|
545
564
|
}
|
|
546
|
-
var
|
|
565
|
+
var ce = function() {
|
|
547
566
|
function e(t) {
|
|
548
567
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
549
568
|
}
|
|
@@ -555,7 +574,7 @@ var pe = function() {
|
|
|
555
574
|
if (s)
|
|
556
575
|
if (this._parentage = null, Array.isArray(s))
|
|
557
576
|
try {
|
|
558
|
-
for (var a =
|
|
577
|
+
for (var a = Pe(s), h = a.next(); !h.done; h = a.next()) {
|
|
559
578
|
var u = h.value;
|
|
560
579
|
u.remove(this);
|
|
561
580
|
}
|
|
@@ -572,22 +591,22 @@ var pe = function() {
|
|
|
572
591
|
else
|
|
573
592
|
s.remove(this);
|
|
574
593
|
var l = this.initialTeardown;
|
|
575
|
-
if (
|
|
594
|
+
if (H(l))
|
|
576
595
|
try {
|
|
577
596
|
l();
|
|
578
597
|
} catch (v) {
|
|
579
|
-
o = v instanceof
|
|
598
|
+
o = v instanceof ve ? v.errors : [v];
|
|
580
599
|
}
|
|
581
600
|
var f = this._finalizers;
|
|
582
601
|
if (f) {
|
|
583
602
|
this._finalizers = null;
|
|
584
603
|
try {
|
|
585
|
-
for (var c =
|
|
604
|
+
for (var c = Pe(f), p = c.next(); !p.done; p = c.next()) {
|
|
586
605
|
var b = p.value;
|
|
587
606
|
try {
|
|
588
|
-
|
|
607
|
+
qe(b);
|
|
589
608
|
} catch (v) {
|
|
590
|
-
o = o ?? [], v instanceof
|
|
609
|
+
o = o ?? [], v instanceof ve ? o = D(D([], Oe(o)), Oe(v.errors)) : o.push(v);
|
|
591
610
|
}
|
|
592
611
|
}
|
|
593
612
|
} catch (v) {
|
|
@@ -602,13 +621,13 @@ var pe = function() {
|
|
|
602
621
|
}
|
|
603
622
|
}
|
|
604
623
|
if (o)
|
|
605
|
-
throw new
|
|
624
|
+
throw new ve(o);
|
|
606
625
|
}
|
|
607
626
|
}, e.prototype.add = function(t) {
|
|
608
627
|
var r;
|
|
609
628
|
if (t && t !== this)
|
|
610
629
|
if (this.closed)
|
|
611
|
-
|
|
630
|
+
qe(t);
|
|
612
631
|
else {
|
|
613
632
|
if (t instanceof e) {
|
|
614
633
|
if (t.closed || t._hasParent(this))
|
|
@@ -625,52 +644,56 @@ var pe = function() {
|
|
|
625
644
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
626
645
|
}, e.prototype._removeParent = function(t) {
|
|
627
646
|
var r = this._parentage;
|
|
628
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
647
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ie(r, t);
|
|
629
648
|
}, e.prototype.remove = function(t) {
|
|
630
649
|
var r = this._finalizers;
|
|
631
|
-
r &&
|
|
650
|
+
r && Ie(r, t), t instanceof e && t._removeParent(this);
|
|
632
651
|
}, e.EMPTY = function() {
|
|
633
652
|
var t = new e();
|
|
634
653
|
return t.closed = !0, t;
|
|
635
654
|
}(), e;
|
|
636
|
-
}(),
|
|
637
|
-
function
|
|
638
|
-
return e instanceof
|
|
639
|
-
}
|
|
640
|
-
function
|
|
641
|
-
|
|
642
|
-
}
|
|
643
|
-
var
|
|
644
|
-
|
|
645
|
-
|
|
655
|
+
}(), At = ce.EMPTY;
|
|
656
|
+
function Pt(e) {
|
|
657
|
+
return e instanceof ce || e && "closed" in e && H(e.remove) && H(e.add) && H(e.unsubscribe);
|
|
658
|
+
}
|
|
659
|
+
function qe(e) {
|
|
660
|
+
H(e) ? e() : e.unsubscribe();
|
|
661
|
+
}
|
|
662
|
+
var Ot = {
|
|
663
|
+
onUnhandledError: null,
|
|
664
|
+
onStoppedNotification: null,
|
|
665
|
+
Promise: void 0,
|
|
666
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
667
|
+
useDeprecatedNextContext: !1
|
|
668
|
+
}, Pr = {
|
|
646
669
|
setTimeout: function(e, t) {
|
|
647
670
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
648
671
|
r[n - 2] = arguments[n];
|
|
649
|
-
return setTimeout.apply(void 0,
|
|
672
|
+
return setTimeout.apply(void 0, D([e, t], Oe(r)));
|
|
650
673
|
},
|
|
651
674
|
clearTimeout: function(e) {
|
|
652
675
|
return clearTimeout(e);
|
|
653
676
|
},
|
|
654
677
|
delegate: void 0
|
|
655
678
|
};
|
|
656
|
-
function
|
|
657
|
-
|
|
679
|
+
function Or(e) {
|
|
680
|
+
Pr.setTimeout(function() {
|
|
658
681
|
throw e;
|
|
659
682
|
});
|
|
660
683
|
}
|
|
661
|
-
function
|
|
684
|
+
function Ke() {
|
|
662
685
|
}
|
|
663
686
|
function ae(e) {
|
|
664
687
|
e();
|
|
665
688
|
}
|
|
666
|
-
var
|
|
667
|
-
|
|
689
|
+
var It = function(e) {
|
|
690
|
+
B(t, e);
|
|
668
691
|
function t(r) {
|
|
669
692
|
var n = e.call(this) || this;
|
|
670
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
693
|
+
return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = Cr, n;
|
|
671
694
|
}
|
|
672
695
|
return t.create = function(r, n, i) {
|
|
673
|
-
return new
|
|
696
|
+
return new Le(r, n, i);
|
|
674
697
|
}, t.prototype.next = function(r) {
|
|
675
698
|
this.isStopped || this._next(r);
|
|
676
699
|
}, t.prototype.error = function(r) {
|
|
@@ -694,7 +717,11 @@ var Nt = function(e) {
|
|
|
694
717
|
this.unsubscribe();
|
|
695
718
|
}
|
|
696
719
|
}, t;
|
|
697
|
-
}(
|
|
720
|
+
}(ce), Ir = Function.prototype.bind;
|
|
721
|
+
function ye(e, t) {
|
|
722
|
+
return Ir.call(e, t);
|
|
723
|
+
}
|
|
724
|
+
var Lr = function() {
|
|
698
725
|
function e(t) {
|
|
699
726
|
this.partialObserver = t;
|
|
700
727
|
}
|
|
@@ -725,43 +752,55 @@ var Nt = function(e) {
|
|
|
725
752
|
ie(r);
|
|
726
753
|
}
|
|
727
754
|
}, e;
|
|
728
|
-
}(),
|
|
729
|
-
|
|
755
|
+
}(), Le = function(e) {
|
|
756
|
+
B(t, e);
|
|
730
757
|
function t(r, n, i) {
|
|
731
758
|
var o = e.call(this) || this, s;
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
759
|
+
if (H(r) || !r)
|
|
760
|
+
s = {
|
|
761
|
+
next: r ?? void 0,
|
|
762
|
+
error: n ?? void 0,
|
|
763
|
+
complete: i ?? void 0
|
|
764
|
+
};
|
|
765
|
+
else {
|
|
766
|
+
var a;
|
|
767
|
+
o && Ot.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
768
|
+
return o.unsubscribe();
|
|
769
|
+
}, s = {
|
|
770
|
+
next: r.next && ye(r.next, a),
|
|
771
|
+
error: r.error && ye(r.error, a),
|
|
772
|
+
complete: r.complete && ye(r.complete, a)
|
|
773
|
+
}) : s = r;
|
|
774
|
+
}
|
|
775
|
+
return o.destination = new Lr(s), o;
|
|
737
776
|
}
|
|
738
777
|
return t;
|
|
739
|
-
}(
|
|
778
|
+
}(It);
|
|
740
779
|
function ie(e) {
|
|
741
|
-
|
|
780
|
+
Or(e);
|
|
742
781
|
}
|
|
743
|
-
function
|
|
782
|
+
function Nr(e) {
|
|
744
783
|
throw e;
|
|
745
784
|
}
|
|
746
785
|
var Cr = {
|
|
747
786
|
closed: !0,
|
|
748
|
-
next:
|
|
749
|
-
error:
|
|
750
|
-
complete:
|
|
787
|
+
next: Ke,
|
|
788
|
+
error: Nr,
|
|
789
|
+
complete: Ke
|
|
751
790
|
}, Mr = function() {
|
|
752
791
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
753
792
|
}();
|
|
754
|
-
function
|
|
793
|
+
function Rr(e) {
|
|
755
794
|
return e;
|
|
756
795
|
}
|
|
757
|
-
function
|
|
758
|
-
return e.length === 0 ?
|
|
796
|
+
function $r(e) {
|
|
797
|
+
return e.length === 0 ? Rr : e.length === 1 ? e[0] : function(r) {
|
|
759
798
|
return e.reduce(function(n, i) {
|
|
760
799
|
return i(n);
|
|
761
800
|
}, r);
|
|
762
801
|
};
|
|
763
802
|
}
|
|
764
|
-
var
|
|
803
|
+
var et = function() {
|
|
765
804
|
function e(t) {
|
|
766
805
|
t && (this._subscribe = t);
|
|
767
806
|
}
|
|
@@ -769,7 +808,7 @@ var rt = function() {
|
|
|
769
808
|
var r = new e();
|
|
770
809
|
return r.source = this, r.operator = t, r;
|
|
771
810
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
772
|
-
var i = this, o = Dr(t) ? t : new
|
|
811
|
+
var i = this, o = Dr(t) ? t : new Le(t, r, n);
|
|
773
812
|
return ae(function() {
|
|
774
813
|
var s = i, a = s.operator, h = s.source;
|
|
775
814
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -782,8 +821,8 @@ var rt = function() {
|
|
|
782
821
|
}
|
|
783
822
|
}, e.prototype.forEach = function(t, r) {
|
|
784
823
|
var n = this;
|
|
785
|
-
return r =
|
|
786
|
-
var s = new
|
|
824
|
+
return r = tt(r), new r(function(i, o) {
|
|
825
|
+
var s = new Le({
|
|
787
826
|
next: function(a) {
|
|
788
827
|
try {
|
|
789
828
|
t(a);
|
|
@@ -804,10 +843,10 @@ var rt = function() {
|
|
|
804
843
|
}, e.prototype.pipe = function() {
|
|
805
844
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
806
845
|
t[r] = arguments[r];
|
|
807
|
-
return
|
|
846
|
+
return $r(t)(this);
|
|
808
847
|
}, e.prototype.toPromise = function(t) {
|
|
809
848
|
var r = this;
|
|
810
|
-
return t =
|
|
849
|
+
return t = tt(t), new t(function(n, i) {
|
|
811
850
|
var o;
|
|
812
851
|
r.subscribe(function(s) {
|
|
813
852
|
return o = s;
|
|
@@ -821,28 +860,28 @@ var rt = function() {
|
|
|
821
860
|
return new e(t);
|
|
822
861
|
}, e;
|
|
823
862
|
}();
|
|
824
|
-
function
|
|
863
|
+
function tt(e) {
|
|
825
864
|
var t;
|
|
826
|
-
return (t = e ??
|
|
865
|
+
return (t = e ?? Ot.Promise) !== null && t !== void 0 ? t : Promise;
|
|
827
866
|
}
|
|
828
867
|
function Ur(e) {
|
|
829
|
-
return e &&
|
|
868
|
+
return e && H(e.next) && H(e.error) && H(e.complete);
|
|
830
869
|
}
|
|
831
870
|
function Dr(e) {
|
|
832
|
-
return e && e instanceof
|
|
871
|
+
return e && e instanceof It || Ur(e) && Pt(e);
|
|
833
872
|
}
|
|
834
|
-
var Gr =
|
|
873
|
+
var Gr = Bt(function(e) {
|
|
835
874
|
return function() {
|
|
836
875
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
837
876
|
};
|
|
838
877
|
}), Lt = function(e) {
|
|
839
|
-
|
|
878
|
+
B(t, e);
|
|
840
879
|
function t() {
|
|
841
880
|
var r = e.call(this) || this;
|
|
842
881
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
843
882
|
}
|
|
844
883
|
return t.prototype.lift = function(r) {
|
|
845
|
-
var n = new
|
|
884
|
+
var n = new rt(this, this);
|
|
846
885
|
return n.operator = r, n;
|
|
847
886
|
}, t.prototype._throwIfClosed = function() {
|
|
848
887
|
if (this.closed)
|
|
@@ -854,7 +893,7 @@ var Gr = Pt(function(e) {
|
|
|
854
893
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
855
894
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
856
895
|
try {
|
|
857
|
-
for (var s =
|
|
896
|
+
for (var s = Pe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
858
897
|
var h = a.value;
|
|
859
898
|
h.next(r);
|
|
860
899
|
}
|
|
@@ -903,20 +942,20 @@ var Gr = Pt(function(e) {
|
|
|
903
942
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
904
943
|
}, t.prototype._innerSubscribe = function(r) {
|
|
905
944
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
906
|
-
return o || s ?
|
|
907
|
-
n.currentObservers = null,
|
|
945
|
+
return o || s ? At : (this.currentObservers = null, a.push(r), new ce(function() {
|
|
946
|
+
n.currentObservers = null, Ie(a, r);
|
|
908
947
|
}));
|
|
909
948
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
910
949
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
911
950
|
i ? r.error(o) : s && r.complete();
|
|
912
951
|
}, t.prototype.asObservable = function() {
|
|
913
|
-
var r = new
|
|
952
|
+
var r = new et();
|
|
914
953
|
return r.source = this, r;
|
|
915
954
|
}, t.create = function(r, n) {
|
|
916
|
-
return new
|
|
955
|
+
return new rt(r, n);
|
|
917
956
|
}, t;
|
|
918
|
-
}(
|
|
919
|
-
|
|
957
|
+
}(et), rt = function(e) {
|
|
958
|
+
B(t, e);
|
|
920
959
|
function t(r, n) {
|
|
921
960
|
var i = e.call(this) || this;
|
|
922
961
|
return i.destination = r, i.source = n, i;
|
|
@@ -932,17 +971,17 @@ var Gr = Pt(function(e) {
|
|
|
932
971
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
933
972
|
}, t.prototype._subscribe = function(r) {
|
|
934
973
|
var n, i;
|
|
935
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
974
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
|
|
936
975
|
}, t;
|
|
937
|
-
}(Lt),
|
|
976
|
+
}(Lt), Nt = {
|
|
938
977
|
now: function() {
|
|
939
|
-
return (
|
|
978
|
+
return (Nt.delegate || Date).now();
|
|
940
979
|
},
|
|
941
980
|
delegate: void 0
|
|
942
981
|
}, Fr = function(e) {
|
|
943
|
-
|
|
982
|
+
B(t, e);
|
|
944
983
|
function t(r, n, i) {
|
|
945
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
984
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Nt);
|
|
946
985
|
var o = e.call(this) || this;
|
|
947
986
|
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;
|
|
948
987
|
}
|
|
@@ -963,45 +1002,45 @@ var Gr = Pt(function(e) {
|
|
|
963
1002
|
}
|
|
964
1003
|
}, t;
|
|
965
1004
|
}(Lt);
|
|
966
|
-
const
|
|
967
|
-
if (
|
|
1005
|
+
const nt = [], it = {}, jr = (e, t = 0) => {
|
|
1006
|
+
if (nt.indexOf(e) == -1) {
|
|
968
1007
|
const r = new Fr(t);
|
|
969
|
-
|
|
1008
|
+
it[e] = r, nt.push(e);
|
|
970
1009
|
}
|
|
971
|
-
return
|
|
972
|
-
},
|
|
1010
|
+
return it[e];
|
|
1011
|
+
}, R = [];
|
|
973
1012
|
function kr(e, t) {
|
|
974
1013
|
return {
|
|
975
|
-
subscribe:
|
|
1014
|
+
subscribe: pe(e, t).subscribe
|
|
976
1015
|
};
|
|
977
1016
|
}
|
|
978
|
-
function
|
|
1017
|
+
function pe(e, t = S) {
|
|
979
1018
|
let r;
|
|
980
1019
|
const n = /* @__PURE__ */ new Set();
|
|
981
1020
|
function i(a) {
|
|
982
|
-
if (
|
|
983
|
-
const h =
|
|
1021
|
+
if (Tt(e, a) && (e = a, r)) {
|
|
1022
|
+
const h = !R.length;
|
|
984
1023
|
for (const u of n)
|
|
985
|
-
u[1](),
|
|
1024
|
+
u[1](), R.push(u, e);
|
|
986
1025
|
if (h) {
|
|
987
|
-
for (let u = 0; u <
|
|
988
|
-
|
|
989
|
-
|
|
1026
|
+
for (let u = 0; u < R.length; u += 2)
|
|
1027
|
+
R[u][0](R[u + 1]);
|
|
1028
|
+
R.length = 0;
|
|
990
1029
|
}
|
|
991
1030
|
}
|
|
992
1031
|
}
|
|
993
1032
|
function o(a) {
|
|
994
1033
|
i(a(e));
|
|
995
1034
|
}
|
|
996
|
-
function s(a, h =
|
|
1035
|
+
function s(a, h = S) {
|
|
997
1036
|
const u = [a, h];
|
|
998
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1037
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || S), a(e), () => {
|
|
999
1038
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1000
1039
|
};
|
|
1001
1040
|
}
|
|
1002
1041
|
return { set: i, update: o, subscribe: s };
|
|
1003
1042
|
}
|
|
1004
|
-
function
|
|
1043
|
+
function X(e, t, r) {
|
|
1005
1044
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1006
1045
|
if (!i.every(Boolean))
|
|
1007
1046
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1009,15 +1048,15 @@ function V(e, t, r) {
|
|
|
1009
1048
|
return kr(r, (s, a) => {
|
|
1010
1049
|
let h = !1;
|
|
1011
1050
|
const u = [];
|
|
1012
|
-
let l = 0, f =
|
|
1051
|
+
let l = 0, f = S;
|
|
1013
1052
|
const c = () => {
|
|
1014
1053
|
if (l)
|
|
1015
1054
|
return;
|
|
1016
1055
|
f();
|
|
1017
1056
|
const b = t(n ? u[0] : u, s, a);
|
|
1018
|
-
o ? s(b) : f =
|
|
1057
|
+
o ? s(b) : f = Fe(b) ? b : S;
|
|
1019
1058
|
}, p = i.map(
|
|
1020
|
-
(b, v) =>
|
|
1059
|
+
(b, v) => ir(
|
|
1021
1060
|
b,
|
|
1022
1061
|
(x) => {
|
|
1023
1062
|
u[v] = x, l &= ~(1 << v), h && c();
|
|
@@ -1028,7 +1067,7 @@ function V(e, t, r) {
|
|
|
1028
1067
|
)
|
|
1029
1068
|
);
|
|
1030
1069
|
return h = !0, c(), function() {
|
|
1031
|
-
|
|
1070
|
+
K(p), f(), h = !1;
|
|
1032
1071
|
};
|
|
1033
1072
|
});
|
|
1034
1073
|
}
|
|
@@ -1052,29 +1091,29 @@ function Jr(e) {
|
|
|
1052
1091
|
function Yr(e) {
|
|
1053
1092
|
return Array.isArray(e) ? [] : {};
|
|
1054
1093
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1094
|
+
function Y(e, t) {
|
|
1095
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? G(Yr(e), e, t) : e;
|
|
1057
1096
|
}
|
|
1058
1097
|
function qr(e, t, r) {
|
|
1059
1098
|
return e.concat(t).map(function(n) {
|
|
1060
|
-
return
|
|
1099
|
+
return Y(n, r);
|
|
1061
1100
|
});
|
|
1062
1101
|
}
|
|
1063
1102
|
function Kr(e, t) {
|
|
1064
1103
|
if (!t.customMerge)
|
|
1065
|
-
return
|
|
1104
|
+
return G;
|
|
1066
1105
|
var r = t.customMerge(e);
|
|
1067
|
-
return typeof r == "function" ? r :
|
|
1106
|
+
return typeof r == "function" ? r : G;
|
|
1068
1107
|
}
|
|
1069
1108
|
function en(e) {
|
|
1070
1109
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1071
1110
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1072
1111
|
}) : [];
|
|
1073
1112
|
}
|
|
1074
|
-
function
|
|
1113
|
+
function ot(e) {
|
|
1075
1114
|
return Object.keys(e).concat(en(e));
|
|
1076
1115
|
}
|
|
1077
|
-
function
|
|
1116
|
+
function Ct(e, t) {
|
|
1078
1117
|
try {
|
|
1079
1118
|
return t in e;
|
|
1080
1119
|
} catch {
|
|
@@ -1082,179 +1121,129 @@ function Mt(e, t) {
|
|
|
1082
1121
|
}
|
|
1083
1122
|
}
|
|
1084
1123
|
function tn(e, t) {
|
|
1085
|
-
return
|
|
1124
|
+
return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1086
1125
|
}
|
|
1087
1126
|
function rn(e, t, r) {
|
|
1088
1127
|
var n = {};
|
|
1089
|
-
return r.isMergeableObject(e) &&
|
|
1090
|
-
n[i] =
|
|
1091
|
-
}),
|
|
1092
|
-
tn(e, i) || (
|
|
1128
|
+
return r.isMergeableObject(e) && ot(e).forEach(function(i) {
|
|
1129
|
+
n[i] = Y(e[i], r);
|
|
1130
|
+
}), ot(t).forEach(function(i) {
|
|
1131
|
+
tn(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
1093
1132
|
}), n;
|
|
1094
1133
|
}
|
|
1095
|
-
function
|
|
1096
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified =
|
|
1134
|
+
function G(e, t, r) {
|
|
1135
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
1097
1136
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1098
|
-
return o ? n ? r.arrayMerge(e, t, r) : rn(e, t, r) :
|
|
1137
|
+
return o ? n ? r.arrayMerge(e, t, r) : rn(e, t, r) : Y(t, r);
|
|
1099
1138
|
}
|
|
1100
|
-
|
|
1139
|
+
G.all = function(t, r) {
|
|
1101
1140
|
if (!Array.isArray(t))
|
|
1102
1141
|
throw new Error("first argument should be an array");
|
|
1103
1142
|
return t.reduce(function(n, i) {
|
|
1104
|
-
return
|
|
1143
|
+
return G(n, i, r);
|
|
1105
1144
|
}, {});
|
|
1106
1145
|
};
|
|
1107
|
-
var nn =
|
|
1146
|
+
var nn = G, on = nn;
|
|
1108
1147
|
const sn = /* @__PURE__ */ Vr(on);
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
r.__proto__ = n;
|
|
1112
|
-
} || function(r, n) {
|
|
1113
|
-
for (var i in n)
|
|
1114
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1115
|
-
}, $e(e, t);
|
|
1116
|
-
};
|
|
1117
|
-
function be(e, t) {
|
|
1118
|
-
if (typeof t != "function" && t !== null)
|
|
1119
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1120
|
-
$e(e, t);
|
|
1121
|
-
function r() {
|
|
1122
|
-
this.constructor = e;
|
|
1123
|
-
}
|
|
1124
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1125
|
-
}
|
|
1126
|
-
var H = function() {
|
|
1127
|
-
return H = Object.assign || function(t) {
|
|
1128
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1129
|
-
r = arguments[n];
|
|
1130
|
-
for (var o in r)
|
|
1131
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1132
|
-
}
|
|
1133
|
-
return t;
|
|
1134
|
-
}, H.apply(this, arguments);
|
|
1135
|
-
};
|
|
1136
|
-
function an(e, t) {
|
|
1137
|
-
var r = {};
|
|
1138
|
-
for (var n in e)
|
|
1139
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1140
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1141
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1142
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1143
|
-
return r;
|
|
1144
|
-
}
|
|
1145
|
-
function Ee(e, t, r) {
|
|
1146
|
-
if (r || arguments.length === 2)
|
|
1147
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1148
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1149
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1150
|
-
}
|
|
1151
|
-
function xe(e, t) {
|
|
1152
|
-
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : ln;
|
|
1148
|
+
function _e(e, t) {
|
|
1149
|
+
var r = t && t.cache ? t.cache : cn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : un;
|
|
1153
1150
|
return i(e, {
|
|
1154
1151
|
cache: r,
|
|
1155
1152
|
serializer: n
|
|
1156
1153
|
});
|
|
1157
1154
|
}
|
|
1158
|
-
function
|
|
1155
|
+
function an(e) {
|
|
1159
1156
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1160
1157
|
}
|
|
1161
|
-
function
|
|
1162
|
-
var i =
|
|
1158
|
+
function Mt(e, t, r, n) {
|
|
1159
|
+
var i = an(n) ? n : r(n), o = t.get(i);
|
|
1163
1160
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1164
1161
|
}
|
|
1165
|
-
function
|
|
1162
|
+
function Rt(e, t, r) {
|
|
1166
1163
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1167
1164
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1168
1165
|
}
|
|
1169
|
-
function
|
|
1166
|
+
function ke(e, t, r, n, i) {
|
|
1170
1167
|
return r.bind(t, e, n, i);
|
|
1171
1168
|
}
|
|
1172
|
-
function
|
|
1173
|
-
var r = e.length === 1 ?
|
|
1174
|
-
return
|
|
1169
|
+
function un(e, t) {
|
|
1170
|
+
var r = e.length === 1 ? Mt : Rt;
|
|
1171
|
+
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
1175
1172
|
}
|
|
1176
|
-
function
|
|
1177
|
-
return
|
|
1173
|
+
function hn(e, t) {
|
|
1174
|
+
return ke(e, this, Rt, t.cache.create(), t.serializer);
|
|
1175
|
+
}
|
|
1176
|
+
function ln(e, t) {
|
|
1177
|
+
return ke(e, this, Mt, t.cache.create(), t.serializer);
|
|
1178
1178
|
}
|
|
1179
|
-
var
|
|
1179
|
+
var fn = function() {
|
|
1180
1180
|
return JSON.stringify(arguments);
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
}()
|
|
1193
|
-
), mn = {
|
|
1181
|
+
};
|
|
1182
|
+
function Ve() {
|
|
1183
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1184
|
+
}
|
|
1185
|
+
Ve.prototype.get = function(e) {
|
|
1186
|
+
return this.cache[e];
|
|
1187
|
+
};
|
|
1188
|
+
Ve.prototype.set = function(e, t) {
|
|
1189
|
+
this.cache[e] = t;
|
|
1190
|
+
};
|
|
1191
|
+
var cn = {
|
|
1194
1192
|
create: function() {
|
|
1195
|
-
return new
|
|
1193
|
+
return new Ve();
|
|
1196
1194
|
}
|
|
1197
|
-
},
|
|
1198
|
-
variadic:
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1202
|
-
r = arguments[n];
|
|
1203
|
-
for (var o in r)
|
|
1204
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1205
|
-
}
|
|
1206
|
-
return t;
|
|
1207
|
-
}, le.apply(this, arguments);
|
|
1208
|
-
};
|
|
1209
|
-
var m;
|
|
1195
|
+
}, Ee = {
|
|
1196
|
+
variadic: hn,
|
|
1197
|
+
monadic: ln
|
|
1198
|
+
}, m;
|
|
1210
1199
|
(function(e) {
|
|
1211
1200
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1212
1201
|
})(m || (m = {}));
|
|
1213
|
-
var
|
|
1202
|
+
var _;
|
|
1214
1203
|
(function(e) {
|
|
1215
1204
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1216
|
-
})(
|
|
1217
|
-
var
|
|
1205
|
+
})(_ || (_ = {}));
|
|
1206
|
+
var F;
|
|
1218
1207
|
(function(e) {
|
|
1219
1208
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1220
|
-
})(
|
|
1221
|
-
function
|
|
1222
|
-
return e.type ===
|
|
1209
|
+
})(F || (F = {}));
|
|
1210
|
+
function st(e) {
|
|
1211
|
+
return e.type === _.literal;
|
|
1223
1212
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return e.type ===
|
|
1213
|
+
function pn(e) {
|
|
1214
|
+
return e.type === _.argument;
|
|
1215
|
+
}
|
|
1216
|
+
function $t(e) {
|
|
1217
|
+
return e.type === _.number;
|
|
1226
1218
|
}
|
|
1227
1219
|
function Ut(e) {
|
|
1228
|
-
return e.type ===
|
|
1220
|
+
return e.type === _.date;
|
|
1229
1221
|
}
|
|
1230
1222
|
function Dt(e) {
|
|
1231
|
-
return e.type ===
|
|
1223
|
+
return e.type === _.time;
|
|
1232
1224
|
}
|
|
1233
1225
|
function Gt(e) {
|
|
1234
|
-
return e.type ===
|
|
1226
|
+
return e.type === _.select;
|
|
1235
1227
|
}
|
|
1236
1228
|
function Ft(e) {
|
|
1237
|
-
return e.type ===
|
|
1229
|
+
return e.type === _.plural;
|
|
1238
1230
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return e.type ===
|
|
1231
|
+
function mn(e) {
|
|
1232
|
+
return e.type === _.pound;
|
|
1241
1233
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return e.type ===
|
|
1234
|
+
function jt(e) {
|
|
1235
|
+
return e.type === _.tag;
|
|
1244
1236
|
}
|
|
1245
1237
|
function kt(e) {
|
|
1246
|
-
return e.type ===
|
|
1247
|
-
}
|
|
1248
|
-
function Vt(e) {
|
|
1249
|
-
return !!(e && typeof e == "object" && e.type === G.number);
|
|
1238
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
|
1250
1239
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1240
|
+
function Ne(e) {
|
|
1241
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
|
1253
1242
|
}
|
|
1254
|
-
var
|
|
1255
|
-
function
|
|
1243
|
+
var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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;
|
|
1244
|
+
function dn(e) {
|
|
1256
1245
|
var t = {};
|
|
1257
|
-
return e.replace(
|
|
1246
|
+
return e.replace(bn, function(r) {
|
|
1258
1247
|
var n = r.length;
|
|
1259
1248
|
switch (r[0]) {
|
|
1260
1249
|
case "G":
|
|
@@ -1343,21 +1332,11 @@ function vn(e) {
|
|
|
1343
1332
|
return "";
|
|
1344
1333
|
}), t;
|
|
1345
1334
|
}
|
|
1346
|
-
var
|
|
1347
|
-
|
|
1348
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1349
|
-
r = arguments[n];
|
|
1350
|
-
for (var o in r)
|
|
1351
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1352
|
-
}
|
|
1353
|
-
return t;
|
|
1354
|
-
}, _.apply(this, arguments);
|
|
1355
|
-
};
|
|
1356
|
-
var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1357
|
-
function _n(e) {
|
|
1335
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1336
|
+
function vn(e) {
|
|
1358
1337
|
if (e.length === 0)
|
|
1359
1338
|
throw new Error("Number skeleton cannot be empty");
|
|
1360
|
-
for (var t = e.split(
|
|
1339
|
+
for (var t = e.split(gn).filter(function(c) {
|
|
1361
1340
|
return c.length > 0;
|
|
1362
1341
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1363
1342
|
var o = i[n], s = o.split("/");
|
|
@@ -1372,17 +1351,17 @@ function _n(e) {
|
|
|
1372
1351
|
}
|
|
1373
1352
|
return r;
|
|
1374
1353
|
}
|
|
1375
|
-
function
|
|
1354
|
+
function yn(e) {
|
|
1376
1355
|
return e.replace(/^(.*?)-/, "");
|
|
1377
1356
|
}
|
|
1378
|
-
var
|
|
1379
|
-
function
|
|
1357
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
1358
|
+
function ut(e) {
|
|
1380
1359
|
var t = {};
|
|
1381
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1360
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
|
|
1382
1361
|
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)), "";
|
|
1383
1362
|
}), t;
|
|
1384
1363
|
}
|
|
1385
|
-
function
|
|
1364
|
+
function Wt(e) {
|
|
1386
1365
|
switch (e) {
|
|
1387
1366
|
case "sign-auto":
|
|
1388
1367
|
return {
|
|
@@ -1422,7 +1401,7 @@ function Zt(e) {
|
|
|
1422
1401
|
};
|
|
1423
1402
|
}
|
|
1424
1403
|
}
|
|
1425
|
-
function
|
|
1404
|
+
function En(e) {
|
|
1426
1405
|
var t;
|
|
1427
1406
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1428
1407
|
notation: "engineering"
|
|
@@ -1430,17 +1409,17 @@ function Sn(e) {
|
|
|
1430
1409
|
notation: "scientific"
|
|
1431
1410
|
}, e = e.slice(1)), t) {
|
|
1432
1411
|
var r = e.slice(0, 2);
|
|
1433
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1412
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !zt.test(e))
|
|
1434
1413
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1435
1414
|
t.minimumIntegerDigits = e.length;
|
|
1436
1415
|
}
|
|
1437
1416
|
return t;
|
|
1438
1417
|
}
|
|
1439
|
-
function
|
|
1440
|
-
var t = {}, r =
|
|
1418
|
+
function ht(e) {
|
|
1419
|
+
var t = {}, r = Wt(e);
|
|
1441
1420
|
return r || t;
|
|
1442
1421
|
}
|
|
1443
|
-
function
|
|
1422
|
+
function xn(e) {
|
|
1444
1423
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1445
1424
|
var i = n[r];
|
|
1446
1425
|
switch (i.stem) {
|
|
@@ -1464,7 +1443,7 @@ function Tn(e) {
|
|
|
1464
1443
|
continue;
|
|
1465
1444
|
case "measure-unit":
|
|
1466
1445
|
case "unit":
|
|
1467
|
-
t.style = "unit", t.unit =
|
|
1446
|
+
t.style = "unit", t.unit = yn(i.options[0]);
|
|
1468
1447
|
continue;
|
|
1469
1448
|
case "compact-short":
|
|
1470
1449
|
case "K":
|
|
@@ -1475,13 +1454,13 @@ function Tn(e) {
|
|
|
1475
1454
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1476
1455
|
continue;
|
|
1477
1456
|
case "scientific":
|
|
1478
|
-
t =
|
|
1479
|
-
return
|
|
1457
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1458
|
+
return y(y({}, h), ht(u));
|
|
1480
1459
|
}, {}));
|
|
1481
1460
|
continue;
|
|
1482
1461
|
case "engineering":
|
|
1483
|
-
t =
|
|
1484
|
-
return
|
|
1462
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1463
|
+
return y(y({}, h), ht(u));
|
|
1485
1464
|
}, {}));
|
|
1486
1465
|
continue;
|
|
1487
1466
|
case "notation-simple":
|
|
@@ -1526,7 +1505,7 @@ function Tn(e) {
|
|
|
1526
1505
|
case "integer-width":
|
|
1527
1506
|
if (i.options.length > 1)
|
|
1528
1507
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1529
|
-
i.options[0].replace(
|
|
1508
|
+
i.options[0].replace(_n, function(h, u, l, f, c, p) {
|
|
1530
1509
|
if (u)
|
|
1531
1510
|
t.minimumIntegerDigits = l.length;
|
|
1532
1511
|
else {
|
|
@@ -1539,28 +1518,28 @@ function Tn(e) {
|
|
|
1539
1518
|
});
|
|
1540
1519
|
continue;
|
|
1541
1520
|
}
|
|
1542
|
-
if (
|
|
1521
|
+
if (zt.test(i.stem)) {
|
|
1543
1522
|
t.minimumIntegerDigits = i.stem.length;
|
|
1544
1523
|
continue;
|
|
1545
1524
|
}
|
|
1546
|
-
if (
|
|
1525
|
+
if (at.test(i.stem)) {
|
|
1547
1526
|
if (i.options.length > 1)
|
|
1548
1527
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1549
|
-
i.stem.replace(
|
|
1528
|
+
i.stem.replace(at, function(h, u, l, f, c, p) {
|
|
1550
1529
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1551
1530
|
});
|
|
1552
1531
|
var o = i.options[0];
|
|
1553
|
-
o === "w" ? t =
|
|
1532
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ut(o)));
|
|
1554
1533
|
continue;
|
|
1555
1534
|
}
|
|
1556
|
-
if (
|
|
1557
|
-
t =
|
|
1535
|
+
if (Xt.test(i.stem)) {
|
|
1536
|
+
t = y(y({}, t), ut(i.stem));
|
|
1558
1537
|
continue;
|
|
1559
1538
|
}
|
|
1560
|
-
var s =
|
|
1561
|
-
s && (t =
|
|
1562
|
-
var a =
|
|
1563
|
-
a && (t =
|
|
1539
|
+
var s = Wt(i.stem);
|
|
1540
|
+
s && (t = y(y({}, t), s));
|
|
1541
|
+
var a = En(i.stem);
|
|
1542
|
+
a && (t = y(y({}, t), a));
|
|
1564
1543
|
}
|
|
1565
1544
|
return t;
|
|
1566
1545
|
}
|
|
@@ -2979,13 +2958,13 @@ var oe = {
|
|
|
2979
2958
|
"h"
|
|
2980
2959
|
]
|
|
2981
2960
|
};
|
|
2982
|
-
function
|
|
2961
|
+
function Tn(e, t) {
|
|
2983
2962
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2984
2963
|
var i = e.charAt(n);
|
|
2985
2964
|
if (i === "j") {
|
|
2986
2965
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2987
2966
|
o++, n++;
|
|
2988
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2967
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Sn(t);
|
|
2989
2968
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2990
2969
|
r += h;
|
|
2991
2970
|
for (; s-- > 0; )
|
|
@@ -2995,7 +2974,7 @@ function wn(e, t) {
|
|
|
2995
2974
|
}
|
|
2996
2975
|
return r;
|
|
2997
2976
|
}
|
|
2998
|
-
function
|
|
2977
|
+
function Sn(e) {
|
|
2999
2978
|
var t = e.hourCycle;
|
|
3000
2979
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3001
2980
|
e.hourCycles && // @ts-ignore
|
|
@@ -3017,20 +2996,20 @@ function Hn(e) {
|
|
|
3017
2996
|
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
3018
2997
|
return i[0];
|
|
3019
2998
|
}
|
|
3020
|
-
var
|
|
2999
|
+
var xe, wn = new RegExp("^".concat(Vt.source, "*")), Hn = new RegExp("".concat(Vt.source, "*$"));
|
|
3021
3000
|
function d(e, t) {
|
|
3022
3001
|
return { start: e, end: t };
|
|
3023
3002
|
}
|
|
3024
|
-
var
|
|
3003
|
+
var Bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), An = !!String.fromCodePoint, Pn = !!Object.fromEntries, On = !!String.prototype.codePointAt, In = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Nn = !!Number.isSafeInteger, Cn = Nn ? Number.isSafeInteger : function(e) {
|
|
3025
3004
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3026
|
-
},
|
|
3005
|
+
}, Ce = !0;
|
|
3027
3006
|
try {
|
|
3028
|
-
var
|
|
3029
|
-
|
|
3007
|
+
var Mn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3008
|
+
Ce = ((xe = Mn.exec("a")) === null || xe === void 0 ? void 0 : xe[0]) === "a";
|
|
3030
3009
|
} catch {
|
|
3031
|
-
|
|
3010
|
+
Ce = !1;
|
|
3032
3011
|
}
|
|
3033
|
-
var
|
|
3012
|
+
var lt = Bn ? (
|
|
3034
3013
|
// Native
|
|
3035
3014
|
function(t, r, n) {
|
|
3036
3015
|
return t.startsWith(r, n);
|
|
@@ -3040,7 +3019,7 @@ var ct = Pn ? (
|
|
|
3040
3019
|
function(t, r, n) {
|
|
3041
3020
|
return t.slice(n, n + r.length) === r;
|
|
3042
3021
|
}
|
|
3043
|
-
),
|
|
3022
|
+
), Me = An ? String.fromCodePoint : (
|
|
3044
3023
|
// IE11
|
|
3045
3024
|
function() {
|
|
3046
3025
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3052,9 +3031,9 @@ var ct = Pn ? (
|
|
|
3052
3031
|
}
|
|
3053
3032
|
return n;
|
|
3054
3033
|
}
|
|
3055
|
-
),
|
|
3034
|
+
), ft = (
|
|
3056
3035
|
// native
|
|
3057
|
-
|
|
3036
|
+
Pn ? Object.fromEntries : (
|
|
3058
3037
|
// Ponyfill
|
|
3059
3038
|
function(t) {
|
|
3060
3039
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3064,7 +3043,7 @@ var ct = Pn ? (
|
|
|
3064
3043
|
return r;
|
|
3065
3044
|
}
|
|
3066
3045
|
)
|
|
3067
|
-
),
|
|
3046
|
+
), Zt = On ? (
|
|
3068
3047
|
// Native
|
|
3069
3048
|
function(t, r) {
|
|
3070
3049
|
return t.codePointAt(r);
|
|
@@ -3078,7 +3057,7 @@ var ct = Pn ? (
|
|
|
3078
3057
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3079
3058
|
}
|
|
3080
3059
|
}
|
|
3081
|
-
),
|
|
3060
|
+
), Rn = In ? (
|
|
3082
3061
|
// Native
|
|
3083
3062
|
function(t) {
|
|
3084
3063
|
return t.trimStart();
|
|
@@ -3086,9 +3065,9 @@ var ct = Pn ? (
|
|
|
3086
3065
|
) : (
|
|
3087
3066
|
// Ponyfill
|
|
3088
3067
|
function(t) {
|
|
3089
|
-
return t.replace(
|
|
3068
|
+
return t.replace(wn, "");
|
|
3090
3069
|
}
|
|
3091
|
-
),
|
|
3070
|
+
), $n = Ln ? (
|
|
3092
3071
|
// Native
|
|
3093
3072
|
function(t) {
|
|
3094
3073
|
return t.trimEnd();
|
|
@@ -3096,32 +3075,32 @@ var ct = Pn ? (
|
|
|
3096
3075
|
) : (
|
|
3097
3076
|
// Ponyfill
|
|
3098
3077
|
function(t) {
|
|
3099
|
-
return t.replace(
|
|
3078
|
+
return t.replace(Hn, "");
|
|
3100
3079
|
}
|
|
3101
3080
|
);
|
|
3102
|
-
function
|
|
3081
|
+
function Qt(e, t) {
|
|
3103
3082
|
return new RegExp(e, t);
|
|
3104
3083
|
}
|
|
3105
|
-
var
|
|
3106
|
-
if (
|
|
3107
|
-
var
|
|
3108
|
-
|
|
3084
|
+
var Re;
|
|
3085
|
+
if (Ce) {
|
|
3086
|
+
var ct = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3087
|
+
Re = function(t, r) {
|
|
3109
3088
|
var n;
|
|
3110
|
-
|
|
3111
|
-
var i =
|
|
3089
|
+
ct.lastIndex = r;
|
|
3090
|
+
var i = ct.exec(t);
|
|
3112
3091
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3113
3092
|
};
|
|
3114
3093
|
} else
|
|
3115
|
-
|
|
3094
|
+
Re = function(t, r) {
|
|
3116
3095
|
for (var n = []; ; ) {
|
|
3117
|
-
var i =
|
|
3118
|
-
if (i === void 0 ||
|
|
3096
|
+
var i = Zt(t, r);
|
|
3097
|
+
if (i === void 0 || Jt(i) || Fn(i))
|
|
3119
3098
|
break;
|
|
3120
3099
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3121
3100
|
}
|
|
3122
|
-
return
|
|
3101
|
+
return Me.apply(void 0, n);
|
|
3123
3102
|
};
|
|
3124
|
-
var
|
|
3103
|
+
var Un = (
|
|
3125
3104
|
/** @class */
|
|
3126
3105
|
function() {
|
|
3127
3106
|
function e(t, r) {
|
|
@@ -3145,14 +3124,14 @@ var Gn = (
|
|
|
3145
3124
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3146
3125
|
var a = this.clonePosition();
|
|
3147
3126
|
this.bump(), i.push({
|
|
3148
|
-
type:
|
|
3127
|
+
type: _.pound,
|
|
3149
3128
|
location: d(a, this.clonePosition())
|
|
3150
3129
|
});
|
|
3151
3130
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3152
3131
|
if (n)
|
|
3153
3132
|
break;
|
|
3154
3133
|
return this.error(m.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3155
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3134
|
+
} else if (o === 60 && !this.ignoreTag && $e(this.peek() || 0)) {
|
|
3156
3135
|
var s = this.parseTag(t, r);
|
|
3157
3136
|
if (s.err)
|
|
3158
3137
|
return s;
|
|
@@ -3173,7 +3152,7 @@ var Gn = (
|
|
|
3173
3152
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3174
3153
|
return {
|
|
3175
3154
|
val: {
|
|
3176
|
-
type:
|
|
3155
|
+
type: _.literal,
|
|
3177
3156
|
value: "<".concat(i, "/>"),
|
|
3178
3157
|
location: d(n, this.clonePosition())
|
|
3179
3158
|
},
|
|
@@ -3185,12 +3164,12 @@ var Gn = (
|
|
|
3185
3164
|
return o;
|
|
3186
3165
|
var s = o.val, a = this.clonePosition();
|
|
3187
3166
|
if (this.bumpIf("</")) {
|
|
3188
|
-
if (this.isEOF() ||
|
|
3167
|
+
if (this.isEOF() || !$e(this.char()))
|
|
3189
3168
|
return this.error(m.INVALID_TAG, d(a, this.clonePosition()));
|
|
3190
3169
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3191
3170
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3192
3171
|
val: {
|
|
3193
|
-
type:
|
|
3172
|
+
type: _.tag,
|
|
3194
3173
|
value: i,
|
|
3195
3174
|
children: s,
|
|
3196
3175
|
location: d(n, this.clonePosition())
|
|
@@ -3203,7 +3182,7 @@ var Gn = (
|
|
|
3203
3182
|
return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
|
|
3204
3183
|
}, e.prototype.parseTagName = function() {
|
|
3205
3184
|
var t = this.offset();
|
|
3206
|
-
for (this.bump(); !this.isEOF() &&
|
|
3185
|
+
for (this.bump(); !this.isEOF() && Gn(this.char()); )
|
|
3207
3186
|
this.bump();
|
|
3208
3187
|
return this.message.slice(t, this.offset());
|
|
3209
3188
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3227,12 +3206,12 @@ var Gn = (
|
|
|
3227
3206
|
}
|
|
3228
3207
|
var h = d(n, this.clonePosition());
|
|
3229
3208
|
return {
|
|
3230
|
-
val: { type:
|
|
3209
|
+
val: { type: _.literal, value: i, location: h },
|
|
3231
3210
|
err: null
|
|
3232
3211
|
};
|
|
3233
3212
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3234
3213
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3235
|
-
!
|
|
3214
|
+
!Dn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3236
3215
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3237
3216
|
if (this.isEOF() || this.char() !== 39)
|
|
3238
3217
|
return null;
|
|
@@ -3266,12 +3245,12 @@ var Gn = (
|
|
|
3266
3245
|
r.push(n);
|
|
3267
3246
|
this.bump();
|
|
3268
3247
|
}
|
|
3269
|
-
return
|
|
3248
|
+
return Me.apply(void 0, r);
|
|
3270
3249
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3271
3250
|
if (this.isEOF())
|
|
3272
3251
|
return null;
|
|
3273
3252
|
var n = this.char();
|
|
3274
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3253
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Me(n));
|
|
3275
3254
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3276
3255
|
var n = this.clonePosition();
|
|
3277
3256
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3287,7 +3266,7 @@ var Gn = (
|
|
|
3287
3266
|
case 125:
|
|
3288
3267
|
return this.bump(), {
|
|
3289
3268
|
val: {
|
|
3290
|
-
type:
|
|
3269
|
+
type: _.argument,
|
|
3291
3270
|
// value does not include the opening and closing braces.
|
|
3292
3271
|
value: i,
|
|
3293
3272
|
location: d(n, this.clonePosition())
|
|
@@ -3300,7 +3279,7 @@ var Gn = (
|
|
|
3300
3279
|
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3301
3280
|
}
|
|
3302
3281
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3303
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3282
|
+
var t = this.clonePosition(), r = this.offset(), n = Re(this.message, r), i = r + n.length;
|
|
3304
3283
|
this.bumpTo(i);
|
|
3305
3284
|
var o = this.clonePosition(), s = d(t, o);
|
|
3306
3285
|
return { value: n, location: s };
|
|
@@ -3319,7 +3298,7 @@ var Gn = (
|
|
|
3319
3298
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3320
3299
|
if (f.err)
|
|
3321
3300
|
return f;
|
|
3322
|
-
var c =
|
|
3301
|
+
var c = $n(f.val);
|
|
3323
3302
|
if (c.length === 0)
|
|
3324
3303
|
return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3325
3304
|
var p = d(l, this.clonePosition());
|
|
@@ -3329,25 +3308,25 @@ var Gn = (
|
|
|
3329
3308
|
if (b.err)
|
|
3330
3309
|
return b;
|
|
3331
3310
|
var v = d(i, this.clonePosition());
|
|
3332
|
-
if (u &&
|
|
3333
|
-
var x =
|
|
3311
|
+
if (u && lt(u?.style, "::", 0)) {
|
|
3312
|
+
var x = Rn(u.style.slice(2));
|
|
3334
3313
|
if (a === "number") {
|
|
3335
3314
|
var f = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
3336
3315
|
return f.err ? f : {
|
|
3337
|
-
val: { type:
|
|
3316
|
+
val: { type: _.number, value: n, location: v, style: f.val },
|
|
3338
3317
|
err: null
|
|
3339
3318
|
};
|
|
3340
3319
|
} else {
|
|
3341
3320
|
if (x.length === 0)
|
|
3342
3321
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3343
3322
|
var I = x;
|
|
3344
|
-
this.locale && (I =
|
|
3323
|
+
this.locale && (I = Tn(x, this.locale));
|
|
3345
3324
|
var c = {
|
|
3346
|
-
type:
|
|
3325
|
+
type: F.dateTime,
|
|
3347
3326
|
pattern: I,
|
|
3348
3327
|
location: u.styleLocation,
|
|
3349
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3350
|
-
}, g = a === "date" ?
|
|
3328
|
+
parsedOptions: this.shouldParseSkeletons ? dn(I) : {}
|
|
3329
|
+
}, g = a === "date" ? _.date : _.time;
|
|
3351
3330
|
return {
|
|
3352
3331
|
val: { type: g, value: n, location: v, style: c },
|
|
3353
3332
|
err: null
|
|
@@ -3356,7 +3335,7 @@ var Gn = (
|
|
|
3356
3335
|
}
|
|
3357
3336
|
return {
|
|
3358
3337
|
val: {
|
|
3359
|
-
type: a === "number" ?
|
|
3338
|
+
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3360
3339
|
value: n,
|
|
3361
3340
|
location: v,
|
|
3362
3341
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3369,41 +3348,41 @@ var Gn = (
|
|
|
3369
3348
|
case "select": {
|
|
3370
3349
|
var w = this.clonePosition();
|
|
3371
3350
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3372
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(w,
|
|
3351
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(w, y({}, w)));
|
|
3373
3352
|
this.bumpSpace();
|
|
3374
|
-
var
|
|
3375
|
-
if (a !== "select" &&
|
|
3353
|
+
var W = this.parseIdentifierIfPossible(), L = 0;
|
|
3354
|
+
if (a !== "select" && W.value === "offset") {
|
|
3376
3355
|
if (!this.bumpIf(":"))
|
|
3377
3356
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3378
3357
|
this.bumpSpace();
|
|
3379
3358
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3380
3359
|
if (f.err)
|
|
3381
3360
|
return f;
|
|
3382
|
-
this.bumpSpace(),
|
|
3361
|
+
this.bumpSpace(), W = this.parseIdentifierIfPossible(), L = f.val;
|
|
3383
3362
|
}
|
|
3384
|
-
var ne = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3363
|
+
var ne = this.tryParsePluralOrSelectOptions(t, a, r, W);
|
|
3385
3364
|
if (ne.err)
|
|
3386
3365
|
return ne;
|
|
3387
3366
|
var b = this.tryParseArgumentClose(i);
|
|
3388
3367
|
if (b.err)
|
|
3389
3368
|
return b;
|
|
3390
|
-
var
|
|
3369
|
+
var We = d(i, this.clonePosition());
|
|
3391
3370
|
return a === "select" ? {
|
|
3392
3371
|
val: {
|
|
3393
|
-
type:
|
|
3372
|
+
type: _.select,
|
|
3394
3373
|
value: n,
|
|
3395
|
-
options:
|
|
3396
|
-
location:
|
|
3374
|
+
options: ft(ne.val),
|
|
3375
|
+
location: We
|
|
3397
3376
|
},
|
|
3398
3377
|
err: null
|
|
3399
3378
|
} : {
|
|
3400
3379
|
val: {
|
|
3401
|
-
type:
|
|
3380
|
+
type: _.plural,
|
|
3402
3381
|
value: n,
|
|
3403
|
-
options:
|
|
3404
|
-
offset:
|
|
3382
|
+
options: ft(ne.val),
|
|
3383
|
+
offset: L,
|
|
3405
3384
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3406
|
-
location:
|
|
3385
|
+
location: We
|
|
3407
3386
|
},
|
|
3408
3387
|
err: null
|
|
3409
3388
|
};
|
|
@@ -3451,16 +3430,16 @@ var Gn = (
|
|
|
3451
3430
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3452
3431
|
var n = [];
|
|
3453
3432
|
try {
|
|
3454
|
-
n =
|
|
3433
|
+
n = vn(t);
|
|
3455
3434
|
} catch {
|
|
3456
3435
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3457
3436
|
}
|
|
3458
3437
|
return {
|
|
3459
3438
|
val: {
|
|
3460
|
-
type:
|
|
3439
|
+
type: F.number,
|
|
3461
3440
|
tokens: n,
|
|
3462
3441
|
location: r,
|
|
3463
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3442
|
+
parsedOptions: this.shouldParseSkeletons ? xn(n) : {}
|
|
3464
3443
|
},
|
|
3465
3444
|
err: null
|
|
3466
3445
|
};
|
|
@@ -3508,7 +3487,7 @@ var Gn = (
|
|
|
3508
3487
|
break;
|
|
3509
3488
|
}
|
|
3510
3489
|
var h = d(i, this.clonePosition());
|
|
3511
|
-
return o ? (s *= n,
|
|
3490
|
+
return o ? (s *= n, Cn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3512
3491
|
}, e.prototype.offset = function() {
|
|
3513
3492
|
return this.position.offset;
|
|
3514
3493
|
}, e.prototype.isEOF = function() {
|
|
@@ -3523,7 +3502,7 @@ var Gn = (
|
|
|
3523
3502
|
var t = this.position.offset;
|
|
3524
3503
|
if (t >= this.message.length)
|
|
3525
3504
|
throw Error("out of bound");
|
|
3526
|
-
var r =
|
|
3505
|
+
var r = Zt(this.message, t);
|
|
3527
3506
|
if (r === void 0)
|
|
3528
3507
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3529
3508
|
return r;
|
|
@@ -3542,7 +3521,7 @@ var Gn = (
|
|
|
3542
3521
|
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);
|
|
3543
3522
|
}
|
|
3544
3523
|
}, e.prototype.bumpIf = function(t) {
|
|
3545
|
-
if (
|
|
3524
|
+
if (lt(this.message, t, this.offset())) {
|
|
3546
3525
|
for (var r = 0; r < t.length; r++)
|
|
3547
3526
|
this.bump();
|
|
3548
3527
|
return !0;
|
|
@@ -3564,7 +3543,7 @@ var Gn = (
|
|
|
3564
3543
|
break;
|
|
3565
3544
|
}
|
|
3566
3545
|
}, e.prototype.bumpSpace = function() {
|
|
3567
|
-
for (; !this.isEOF() &&
|
|
3546
|
+
for (; !this.isEOF() && Jt(this.char()); )
|
|
3568
3547
|
this.bump();
|
|
3569
3548
|
}, e.prototype.peek = function() {
|
|
3570
3549
|
if (this.isEOF())
|
|
@@ -3574,47 +3553,47 @@ var Gn = (
|
|
|
3574
3553
|
}, e;
|
|
3575
3554
|
}()
|
|
3576
3555
|
);
|
|
3577
|
-
function
|
|
3556
|
+
function $e(e) {
|
|
3578
3557
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3579
3558
|
}
|
|
3580
|
-
function
|
|
3581
|
-
return
|
|
3559
|
+
function Dn(e) {
|
|
3560
|
+
return $e(e) || e === 47;
|
|
3582
3561
|
}
|
|
3583
|
-
function
|
|
3562
|
+
function Gn(e) {
|
|
3584
3563
|
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;
|
|
3585
3564
|
}
|
|
3586
|
-
function
|
|
3565
|
+
function Jt(e) {
|
|
3587
3566
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3588
3567
|
}
|
|
3589
|
-
function
|
|
3568
|
+
function Fn(e) {
|
|
3590
3569
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3591
3570
|
}
|
|
3592
|
-
function
|
|
3571
|
+
function Ue(e) {
|
|
3593
3572
|
e.forEach(function(t) {
|
|
3594
|
-
if (delete t.location,
|
|
3573
|
+
if (delete t.location, Gt(t) || Ft(t))
|
|
3595
3574
|
for (var r in t.options)
|
|
3596
|
-
delete t.options[r].location,
|
|
3575
|
+
delete t.options[r].location, Ue(t.options[r].value);
|
|
3597
3576
|
else
|
|
3598
|
-
|
|
3577
|
+
$t(t) && kt(t.style) || (Ut(t) || Dt(t)) && Ne(t.style) ? delete t.style.location : jt(t) && Ue(t.children);
|
|
3599
3578
|
});
|
|
3600
3579
|
}
|
|
3601
|
-
function
|
|
3602
|
-
t === void 0 && (t = {}), t =
|
|
3603
|
-
var r = new
|
|
3580
|
+
function jn(e, t) {
|
|
3581
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3582
|
+
var r = new Un(e, t).parse();
|
|
3604
3583
|
if (r.err) {
|
|
3605
3584
|
var n = SyntaxError(m[r.err.kind]);
|
|
3606
3585
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3607
3586
|
}
|
|
3608
|
-
return t?.captureLocation ||
|
|
3587
|
+
return t?.captureLocation || Ue(r.val), r.val;
|
|
3609
3588
|
}
|
|
3610
|
-
var
|
|
3589
|
+
var j;
|
|
3611
3590
|
(function(e) {
|
|
3612
3591
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3613
|
-
})(
|
|
3614
|
-
var
|
|
3592
|
+
})(j || (j = {}));
|
|
3593
|
+
var me = (
|
|
3615
3594
|
/** @class */
|
|
3616
3595
|
function(e) {
|
|
3617
|
-
|
|
3596
|
+
B(t, e);
|
|
3618
3597
|
function t(r, n, i) {
|
|
3619
3598
|
var o = e.call(this, r) || this;
|
|
3620
3599
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3623,48 +3602,48 @@ var de = (
|
|
|
3623
3602
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3624
3603
|
}, t;
|
|
3625
3604
|
}(Error)
|
|
3626
|
-
),
|
|
3605
|
+
), pt = (
|
|
3627
3606
|
/** @class */
|
|
3628
3607
|
function(e) {
|
|
3629
|
-
|
|
3608
|
+
B(t, e);
|
|
3630
3609
|
function t(r, n, i, o) {
|
|
3631
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3610
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
|
|
3632
3611
|
}
|
|
3633
3612
|
return t;
|
|
3634
|
-
}(
|
|
3635
|
-
),
|
|
3613
|
+
}(me)
|
|
3614
|
+
), kn = (
|
|
3636
3615
|
/** @class */
|
|
3637
3616
|
function(e) {
|
|
3638
|
-
|
|
3617
|
+
B(t, e);
|
|
3639
3618
|
function t(r, n, i) {
|
|
3640
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3619
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3641
3620
|
}
|
|
3642
3621
|
return t;
|
|
3643
|
-
}(
|
|
3644
|
-
),
|
|
3622
|
+
}(me)
|
|
3623
|
+
), Vn = (
|
|
3645
3624
|
/** @class */
|
|
3646
3625
|
function(e) {
|
|
3647
|
-
|
|
3626
|
+
B(t, e);
|
|
3648
3627
|
function t(r, n) {
|
|
3649
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3628
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3650
3629
|
}
|
|
3651
3630
|
return t;
|
|
3652
|
-
}(
|
|
3631
|
+
}(me)
|
|
3653
3632
|
), E;
|
|
3654
3633
|
(function(e) {
|
|
3655
3634
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3656
3635
|
})(E || (E = {}));
|
|
3657
|
-
function
|
|
3636
|
+
function Xn(e) {
|
|
3658
3637
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3659
3638
|
var n = t[t.length - 1];
|
|
3660
3639
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3661
3640
|
}, []);
|
|
3662
3641
|
}
|
|
3663
|
-
function
|
|
3642
|
+
function zn(e) {
|
|
3664
3643
|
return typeof e == "function";
|
|
3665
3644
|
}
|
|
3666
3645
|
function ue(e, t, r, n, i, o, s) {
|
|
3667
|
-
if (e.length === 1 &&
|
|
3646
|
+
if (e.length === 1 && st(e[0]))
|
|
3668
3647
|
return [
|
|
3669
3648
|
{
|
|
3670
3649
|
type: E.literal,
|
|
@@ -3673,14 +3652,14 @@ function ue(e, t, r, n, i, o, s) {
|
|
|
3673
3652
|
];
|
|
3674
3653
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3675
3654
|
var l = u[h];
|
|
3676
|
-
if (
|
|
3655
|
+
if (st(l)) {
|
|
3677
3656
|
a.push({
|
|
3678
3657
|
type: E.literal,
|
|
3679
3658
|
value: l.value
|
|
3680
3659
|
});
|
|
3681
3660
|
continue;
|
|
3682
3661
|
}
|
|
3683
|
-
if (
|
|
3662
|
+
if (mn(l)) {
|
|
3684
3663
|
typeof o == "number" && a.push({
|
|
3685
3664
|
type: E.literal,
|
|
3686
3665
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3689,89 +3668,89 @@ function ue(e, t, r, n, i, o, s) {
|
|
|
3689
3668
|
}
|
|
3690
3669
|
var f = l.value;
|
|
3691
3670
|
if (!(i && f in i))
|
|
3692
|
-
throw new
|
|
3671
|
+
throw new Vn(f, s);
|
|
3693
3672
|
var c = i[f];
|
|
3694
|
-
if (
|
|
3673
|
+
if (pn(l)) {
|
|
3695
3674
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3696
3675
|
type: typeof c == "string" ? E.literal : E.object,
|
|
3697
3676
|
value: c
|
|
3698
3677
|
});
|
|
3699
3678
|
continue;
|
|
3700
3679
|
}
|
|
3701
|
-
if (
|
|
3702
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3680
|
+
if (Ut(l)) {
|
|
3681
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ne(l.style) ? l.style.parsedOptions : void 0;
|
|
3703
3682
|
a.push({
|
|
3704
3683
|
type: E.literal,
|
|
3705
3684
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3706
3685
|
});
|
|
3707
3686
|
continue;
|
|
3708
3687
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3688
|
+
if (Dt(l)) {
|
|
3689
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ne(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3711
3690
|
a.push({
|
|
3712
3691
|
type: E.literal,
|
|
3713
3692
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3714
3693
|
});
|
|
3715
3694
|
continue;
|
|
3716
3695
|
}
|
|
3717
|
-
if (
|
|
3718
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3696
|
+
if ($t(l)) {
|
|
3697
|
+
var p = typeof l.style == "string" ? n.number[l.style] : kt(l.style) ? l.style.parsedOptions : void 0;
|
|
3719
3698
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3720
3699
|
type: E.literal,
|
|
3721
3700
|
value: r.getNumberFormat(t, p).format(c)
|
|
3722
3701
|
});
|
|
3723
3702
|
continue;
|
|
3724
3703
|
}
|
|
3725
|
-
if (
|
|
3704
|
+
if (jt(l)) {
|
|
3726
3705
|
var b = l.children, v = l.value, x = i[v];
|
|
3727
|
-
if (!
|
|
3728
|
-
throw new
|
|
3729
|
-
var I = ue(b, t, r, n, i, o), g = x(I.map(function(
|
|
3730
|
-
return
|
|
3706
|
+
if (!zn(x))
|
|
3707
|
+
throw new kn(v, "function", s);
|
|
3708
|
+
var I = ue(b, t, r, n, i, o), g = x(I.map(function(L) {
|
|
3709
|
+
return L.value;
|
|
3731
3710
|
}));
|
|
3732
|
-
Array.isArray(g) || (g = [g]), a.push.apply(a, g.map(function(
|
|
3711
|
+
Array.isArray(g) || (g = [g]), a.push.apply(a, g.map(function(L) {
|
|
3733
3712
|
return {
|
|
3734
|
-
type: typeof
|
|
3735
|
-
value:
|
|
3713
|
+
type: typeof L == "string" ? E.literal : E.object,
|
|
3714
|
+
value: L
|
|
3736
3715
|
};
|
|
3737
3716
|
}));
|
|
3738
3717
|
}
|
|
3739
|
-
if (
|
|
3718
|
+
if (Gt(l)) {
|
|
3740
3719
|
var w = l.options[c] || l.options.other;
|
|
3741
3720
|
if (!w)
|
|
3742
|
-
throw new
|
|
3721
|
+
throw new pt(l.value, c, Object.keys(l.options), s);
|
|
3743
3722
|
a.push.apply(a, ue(w.value, t, r, n, i));
|
|
3744
3723
|
continue;
|
|
3745
3724
|
}
|
|
3746
|
-
if (
|
|
3725
|
+
if (Ft(l)) {
|
|
3747
3726
|
var w = l.options["=".concat(c)];
|
|
3748
3727
|
if (!w) {
|
|
3749
3728
|
if (!Intl.PluralRules)
|
|
3750
|
-
throw new
|
|
3729
|
+
throw new me(`Intl.PluralRules is not available in this environment.
|
|
3751
3730
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3752
|
-
`,
|
|
3753
|
-
var
|
|
3754
|
-
w = l.options[
|
|
3731
|
+
`, j.MISSING_INTL_API, s);
|
|
3732
|
+
var W = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3733
|
+
w = l.options[W] || l.options.other;
|
|
3755
3734
|
}
|
|
3756
3735
|
if (!w)
|
|
3757
|
-
throw new
|
|
3736
|
+
throw new pt(l.value, c, Object.keys(l.options), s);
|
|
3758
3737
|
a.push.apply(a, ue(w.value, t, r, n, i, c - (l.offset || 0)));
|
|
3759
3738
|
continue;
|
|
3760
3739
|
}
|
|
3761
3740
|
}
|
|
3762
|
-
return
|
|
3741
|
+
return Xn(a);
|
|
3763
3742
|
}
|
|
3764
|
-
function
|
|
3765
|
-
return t ?
|
|
3766
|
-
return r[n] =
|
|
3743
|
+
function Wn(e, t) {
|
|
3744
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3745
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3767
3746
|
}, {})) : e;
|
|
3768
3747
|
}
|
|
3769
|
-
function
|
|
3748
|
+
function Zn(e, t) {
|
|
3770
3749
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3771
|
-
return r[n] =
|
|
3772
|
-
},
|
|
3750
|
+
return r[n] = Wn(e[n], t[n]), r;
|
|
3751
|
+
}, y({}, e)) : e;
|
|
3773
3752
|
}
|
|
3774
|
-
function
|
|
3753
|
+
function Te(e) {
|
|
3775
3754
|
return {
|
|
3776
3755
|
create: function() {
|
|
3777
3756
|
return {
|
|
@@ -3785,39 +3764,39 @@ function we(e) {
|
|
|
3785
3764
|
}
|
|
3786
3765
|
};
|
|
3787
3766
|
}
|
|
3788
|
-
function
|
|
3767
|
+
function Qn(e) {
|
|
3789
3768
|
return e === void 0 && (e = {
|
|
3790
3769
|
number: {},
|
|
3791
3770
|
dateTime: {},
|
|
3792
3771
|
pluralRules: {}
|
|
3793
3772
|
}), {
|
|
3794
|
-
getNumberFormat:
|
|
3773
|
+
getNumberFormat: _e(function() {
|
|
3795
3774
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3796
3775
|
r[n] = arguments[n];
|
|
3797
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3776
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, D([void 0], r, !1)))();
|
|
3798
3777
|
}, {
|
|
3799
|
-
cache:
|
|
3800
|
-
strategy:
|
|
3778
|
+
cache: Te(e.number),
|
|
3779
|
+
strategy: Ee.variadic
|
|
3801
3780
|
}),
|
|
3802
|
-
getDateTimeFormat:
|
|
3781
|
+
getDateTimeFormat: _e(function() {
|
|
3803
3782
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3804
3783
|
r[n] = arguments[n];
|
|
3805
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3784
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, D([void 0], r, !1)))();
|
|
3806
3785
|
}, {
|
|
3807
|
-
cache:
|
|
3808
|
-
strategy:
|
|
3786
|
+
cache: Te(e.dateTime),
|
|
3787
|
+
strategy: Ee.variadic
|
|
3809
3788
|
}),
|
|
3810
|
-
getPluralRules:
|
|
3789
|
+
getPluralRules: _e(function() {
|
|
3811
3790
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3812
3791
|
r[n] = arguments[n];
|
|
3813
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3792
|
+
return new ((t = Intl.PluralRules).bind.apply(t, D([void 0], r, !1)))();
|
|
3814
3793
|
}, {
|
|
3815
|
-
cache:
|
|
3816
|
-
strategy:
|
|
3794
|
+
cache: Te(e.pluralRules),
|
|
3795
|
+
strategy: Ee.variadic
|
|
3817
3796
|
})
|
|
3818
3797
|
};
|
|
3819
3798
|
}
|
|
3820
|
-
var
|
|
3799
|
+
var Jn = (
|
|
3821
3800
|
/** @class */
|
|
3822
3801
|
function() {
|
|
3823
3802
|
function e(t, r, n, i) {
|
|
@@ -3849,13 +3828,13 @@ var qn = (
|
|
|
3849
3828
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3850
3829
|
var s = i || {};
|
|
3851
3830
|
s.formatters;
|
|
3852
|
-
var a =
|
|
3853
|
-
this.ast = e.__parse(t,
|
|
3831
|
+
var a = Ar(s, ["formatters"]);
|
|
3832
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3854
3833
|
} else
|
|
3855
3834
|
this.ast = t;
|
|
3856
3835
|
if (!Array.isArray(this.ast))
|
|
3857
3836
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3858
|
-
this.formats =
|
|
3837
|
+
this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || Qn(this.formatterCache);
|
|
3859
3838
|
}
|
|
3860
3839
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3861
3840
|
get: function() {
|
|
@@ -3868,7 +3847,7 @@ var qn = (
|
|
|
3868
3847
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3869
3848
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3870
3849
|
}
|
|
3871
|
-
}, e.__parse =
|
|
3850
|
+
}, e.__parse = jn, e.formats = {
|
|
3872
3851
|
number: {
|
|
3873
3852
|
integer: {
|
|
3874
3853
|
maximumFractionDigits: 0
|
|
@@ -3929,7 +3908,7 @@ var qn = (
|
|
|
3929
3908
|
}, e;
|
|
3930
3909
|
}()
|
|
3931
3910
|
);
|
|
3932
|
-
function
|
|
3911
|
+
function Yn(e, t) {
|
|
3933
3912
|
if (t == null)
|
|
3934
3913
|
return;
|
|
3935
3914
|
if (t in e)
|
|
@@ -3950,92 +3929,92 @@ function Kn(e, t) {
|
|
|
3950
3929
|
n = void 0;
|
|
3951
3930
|
return n;
|
|
3952
3931
|
}
|
|
3953
|
-
const P = {},
|
|
3932
|
+
const P = {}, qn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), Yt = (e, t) => {
|
|
3954
3933
|
if (t == null)
|
|
3955
3934
|
return;
|
|
3956
3935
|
if (t in P && e in P[t])
|
|
3957
3936
|
return P[t][e];
|
|
3958
|
-
const r =
|
|
3937
|
+
const r = be(t);
|
|
3959
3938
|
for (let n = 0; n < r.length; n++) {
|
|
3960
|
-
const i = r[n], o =
|
|
3939
|
+
const i = r[n], o = ei(i, e);
|
|
3961
3940
|
if (o)
|
|
3962
|
-
return
|
|
3941
|
+
return qn(e, t, o);
|
|
3963
3942
|
}
|
|
3964
3943
|
};
|
|
3965
|
-
let
|
|
3966
|
-
const te =
|
|
3967
|
-
function
|
|
3968
|
-
return
|
|
3944
|
+
let Xe;
|
|
3945
|
+
const te = pe({});
|
|
3946
|
+
function Kn(e) {
|
|
3947
|
+
return Xe[e] || null;
|
|
3969
3948
|
}
|
|
3970
|
-
function
|
|
3971
|
-
return e in
|
|
3949
|
+
function qt(e) {
|
|
3950
|
+
return e in Xe;
|
|
3972
3951
|
}
|
|
3973
|
-
function
|
|
3974
|
-
if (!
|
|
3952
|
+
function ei(e, t) {
|
|
3953
|
+
if (!qt(e))
|
|
3975
3954
|
return null;
|
|
3976
|
-
const r =
|
|
3977
|
-
return
|
|
3955
|
+
const r = Kn(e);
|
|
3956
|
+
return Yn(r, t);
|
|
3978
3957
|
}
|
|
3979
|
-
function
|
|
3958
|
+
function ti(e) {
|
|
3980
3959
|
if (e == null)
|
|
3981
3960
|
return;
|
|
3982
|
-
const t =
|
|
3961
|
+
const t = be(e);
|
|
3983
3962
|
for (let r = 0; r < t.length; r++) {
|
|
3984
3963
|
const n = t[r];
|
|
3985
|
-
if (
|
|
3964
|
+
if (qt(n))
|
|
3986
3965
|
return n;
|
|
3987
3966
|
}
|
|
3988
3967
|
}
|
|
3989
|
-
function
|
|
3968
|
+
function ri(e, ...t) {
|
|
3990
3969
|
delete P[e], te.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
|
|
3991
3970
|
}
|
|
3992
|
-
|
|
3971
|
+
X(
|
|
3993
3972
|
[te],
|
|
3994
3973
|
([e]) => Object.keys(e)
|
|
3995
3974
|
);
|
|
3996
|
-
te.subscribe((e) =>
|
|
3975
|
+
te.subscribe((e) => Xe = e);
|
|
3997
3976
|
const he = {};
|
|
3998
|
-
function
|
|
3977
|
+
function ni(e, t) {
|
|
3999
3978
|
he[e].delete(t), he[e].size === 0 && delete he[e];
|
|
4000
3979
|
}
|
|
4001
|
-
function
|
|
3980
|
+
function Kt(e) {
|
|
4002
3981
|
return he[e];
|
|
4003
3982
|
}
|
|
4004
|
-
function
|
|
4005
|
-
return
|
|
4006
|
-
const r =
|
|
3983
|
+
function ii(e) {
|
|
3984
|
+
return be(e).map((t) => {
|
|
3985
|
+
const r = Kt(t);
|
|
4007
3986
|
return [t, r ? [...r] : []];
|
|
4008
3987
|
}).filter(([, t]) => t.length > 0);
|
|
4009
3988
|
}
|
|
4010
|
-
function
|
|
4011
|
-
return e == null ? !1 :
|
|
3989
|
+
function De(e) {
|
|
3990
|
+
return e == null ? !1 : be(e).some(
|
|
4012
3991
|
(t) => {
|
|
4013
3992
|
var r;
|
|
4014
|
-
return (r =
|
|
3993
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
4015
3994
|
}
|
|
4016
3995
|
);
|
|
4017
3996
|
}
|
|
4018
|
-
function
|
|
3997
|
+
function oi(e, t) {
|
|
4019
3998
|
return Promise.all(
|
|
4020
|
-
t.map((n) => (
|
|
4021
|
-
).then((n) =>
|
|
4022
|
-
}
|
|
4023
|
-
const
|
|
4024
|
-
function
|
|
4025
|
-
if (!
|
|
4026
|
-
return e in
|
|
4027
|
-
const t =
|
|
4028
|
-
return
|
|
3999
|
+
t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
|
|
4000
|
+
).then((n) => ri(e, ...n));
|
|
4001
|
+
}
|
|
4002
|
+
const Z = {};
|
|
4003
|
+
function er(e) {
|
|
4004
|
+
if (!De(e))
|
|
4005
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
4006
|
+
const t = ii(e);
|
|
4007
|
+
return Z[e] = Promise.all(
|
|
4029
4008
|
t.map(
|
|
4030
|
-
([r, n]) =>
|
|
4009
|
+
([r, n]) => oi(r, n)
|
|
4031
4010
|
)
|
|
4032
4011
|
).then(() => {
|
|
4033
|
-
if (
|
|
4034
|
-
return
|
|
4035
|
-
delete
|
|
4036
|
-
}),
|
|
4012
|
+
if (De(e))
|
|
4013
|
+
return er(e);
|
|
4014
|
+
delete Z[e];
|
|
4015
|
+
}), Z[e];
|
|
4037
4016
|
}
|
|
4038
|
-
const
|
|
4017
|
+
const si = {
|
|
4039
4018
|
number: {
|
|
4040
4019
|
scientific: { notation: "scientific" },
|
|
4041
4020
|
engineering: { notation: "engineering" },
|
|
@@ -4064,135 +4043,135 @@ const ui = {
|
|
|
4064
4043
|
timeZoneName: "short"
|
|
4065
4044
|
}
|
|
4066
4045
|
}
|
|
4067
|
-
},
|
|
4046
|
+
}, ai = {
|
|
4068
4047
|
fallbackLocale: null,
|
|
4069
4048
|
loadingDelay: 200,
|
|
4070
|
-
formats:
|
|
4049
|
+
formats: si,
|
|
4071
4050
|
warnOnMissingMessages: !0,
|
|
4072
4051
|
handleMissingMessage: void 0,
|
|
4073
4052
|
ignoreTag: !0
|
|
4074
|
-
},
|
|
4075
|
-
function
|
|
4076
|
-
return
|
|
4053
|
+
}, ui = ai;
|
|
4054
|
+
function k() {
|
|
4055
|
+
return ui;
|
|
4077
4056
|
}
|
|
4078
|
-
const
|
|
4079
|
-
var
|
|
4057
|
+
const Se = pe(!1);
|
|
4058
|
+
var hi = Object.defineProperty, li = Object.defineProperties, fi = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mi = (e, t) => {
|
|
4080
4059
|
for (var r in t || (t = {}))
|
|
4081
|
-
|
|
4082
|
-
if (
|
|
4083
|
-
for (var r of
|
|
4084
|
-
|
|
4060
|
+
ci.call(t, r) && bt(e, r, t[r]);
|
|
4061
|
+
if (mt)
|
|
4062
|
+
for (var r of mt(t))
|
|
4063
|
+
pi.call(t, r) && bt(e, r, t[r]);
|
|
4085
4064
|
return e;
|
|
4086
|
-
},
|
|
4087
|
-
let
|
|
4088
|
-
const
|
|
4089
|
-
function
|
|
4065
|
+
}, bi = (e, t) => li(e, fi(t));
|
|
4066
|
+
let Ge;
|
|
4067
|
+
const le = pe(null);
|
|
4068
|
+
function dt(e) {
|
|
4090
4069
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4091
4070
|
}
|
|
4092
|
-
function
|
|
4093
|
-
const r =
|
|
4094
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4071
|
+
function be(e, t = k().fallbackLocale) {
|
|
4072
|
+
const r = dt(e);
|
|
4073
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
|
|
4095
4074
|
}
|
|
4096
4075
|
function C() {
|
|
4097
|
-
return
|
|
4076
|
+
return Ge ?? void 0;
|
|
4098
4077
|
}
|
|
4099
|
-
|
|
4100
|
-
|
|
4078
|
+
le.subscribe((e) => {
|
|
4079
|
+
Ge = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4101
4080
|
});
|
|
4102
|
-
const
|
|
4103
|
-
if (e &&
|
|
4104
|
-
const { loadingDelay: t } =
|
|
4081
|
+
const di = (e) => {
|
|
4082
|
+
if (e && ti(e) && De(e)) {
|
|
4083
|
+
const { loadingDelay: t } = k();
|
|
4105
4084
|
let r;
|
|
4106
4085
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
|
4107
|
-
() =>
|
|
4086
|
+
() => Se.set(!0),
|
|
4108
4087
|
t
|
|
4109
|
-
) :
|
|
4110
|
-
|
|
4088
|
+
) : Se.set(!0), er(e).then(() => {
|
|
4089
|
+
le.set(e);
|
|
4111
4090
|
}).finally(() => {
|
|
4112
|
-
clearTimeout(r),
|
|
4091
|
+
clearTimeout(r), Se.set(!1);
|
|
4113
4092
|
});
|
|
4114
4093
|
}
|
|
4115
|
-
return
|
|
4116
|
-
}, re =
|
|
4117
|
-
set:
|
|
4118
|
-
}),
|
|
4094
|
+
return le.set(e);
|
|
4095
|
+
}, re = bi(mi({}, le), {
|
|
4096
|
+
set: di
|
|
4097
|
+
}), de = (e) => {
|
|
4119
4098
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4120
4099
|
return (n) => {
|
|
4121
4100
|
const i = JSON.stringify(n);
|
|
4122
4101
|
return i in t ? t[i] : t[i] = e(n);
|
|
4123
4102
|
};
|
|
4124
4103
|
};
|
|
4125
|
-
var
|
|
4104
|
+
var gi = Object.defineProperty, fe = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
4126
4105
|
for (var r in t || (t = {}))
|
|
4127
|
-
|
|
4128
|
-
if (
|
|
4129
|
-
for (var r of
|
|
4130
|
-
|
|
4106
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
4107
|
+
if (fe)
|
|
4108
|
+
for (var r of fe(t))
|
|
4109
|
+
rr.call(t, r) && gt(e, r, t[r]);
|
|
4131
4110
|
return e;
|
|
4132
|
-
},
|
|
4111
|
+
}, z = (e, t) => {
|
|
4133
4112
|
var r = {};
|
|
4134
4113
|
for (var n in e)
|
|
4135
|
-
|
|
4136
|
-
if (e != null &&
|
|
4137
|
-
for (var n of
|
|
4138
|
-
t.indexOf(n) < 0 &&
|
|
4114
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4115
|
+
if (e != null && fe)
|
|
4116
|
+
for (var n of fe(e))
|
|
4117
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
4139
4118
|
return r;
|
|
4140
4119
|
};
|
|
4141
|
-
const
|
|
4142
|
-
const { formats: r } =
|
|
4120
|
+
const q = (e, t) => {
|
|
4121
|
+
const { formats: r } = k();
|
|
4143
4122
|
if (e in r && t in r[e])
|
|
4144
4123
|
return r[e][t];
|
|
4145
4124
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4146
|
-
},
|
|
4125
|
+
}, vi = de(
|
|
4147
4126
|
(e) => {
|
|
4148
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4127
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4149
4128
|
if (r == null)
|
|
4150
4129
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4151
|
-
return n && (i =
|
|
4130
|
+
return n && (i = q("number", n)), new Intl.NumberFormat(r, i);
|
|
4152
4131
|
}
|
|
4153
|
-
),
|
|
4132
|
+
), yi = de(
|
|
4154
4133
|
(e) => {
|
|
4155
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4134
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4156
4135
|
if (r == null)
|
|
4157
4136
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4158
|
-
return n ? i =
|
|
4137
|
+
return n ? i = q("date", n) : Object.keys(i).length === 0 && (i = q("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4159
4138
|
}
|
|
4160
|
-
),
|
|
4139
|
+
), _i = de(
|
|
4161
4140
|
(e) => {
|
|
4162
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4141
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4163
4142
|
if (r == null)
|
|
4164
4143
|
throw new Error(
|
|
4165
4144
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4166
4145
|
);
|
|
4167
|
-
return n ? i =
|
|
4146
|
+
return n ? i = q("time", n) : Object.keys(i).length === 0 && (i = q("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4168
4147
|
}
|
|
4169
|
-
),
|
|
4148
|
+
), Ei = (e = {}) => {
|
|
4170
4149
|
var t = e, {
|
|
4171
4150
|
locale: r = C()
|
|
4172
|
-
} = t, n =
|
|
4151
|
+
} = t, n = z(t, [
|
|
4173
4152
|
"locale"
|
|
4174
4153
|
]);
|
|
4175
|
-
return
|
|
4176
|
-
},
|
|
4154
|
+
return vi(ze({ locale: r }, n));
|
|
4155
|
+
}, xi = (e = {}) => {
|
|
4177
4156
|
var t = e, {
|
|
4178
4157
|
locale: r = C()
|
|
4179
|
-
} = t, n =
|
|
4158
|
+
} = t, n = z(t, [
|
|
4180
4159
|
"locale"
|
|
4181
4160
|
]);
|
|
4182
|
-
return
|
|
4183
|
-
},
|
|
4161
|
+
return yi(ze({ locale: r }, n));
|
|
4162
|
+
}, Ti = (e = {}) => {
|
|
4184
4163
|
var t = e, {
|
|
4185
4164
|
locale: r = C()
|
|
4186
|
-
} = t, n =
|
|
4165
|
+
} = t, n = z(t, [
|
|
4187
4166
|
"locale"
|
|
4188
4167
|
]);
|
|
4189
|
-
return
|
|
4190
|
-
},
|
|
4168
|
+
return _i(ze({ locale: r }, n));
|
|
4169
|
+
}, Si = de(
|
|
4191
4170
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4192
|
-
(e, t = C()) => new
|
|
4193
|
-
ignoreTag:
|
|
4171
|
+
(e, t = C()) => new Jn(e, t, k().formats, {
|
|
4172
|
+
ignoreTag: k().ignoreTag
|
|
4194
4173
|
})
|
|
4195
|
-
),
|
|
4174
|
+
), wi = (e, t = {}) => {
|
|
4196
4175
|
var r, n, i, o;
|
|
4197
4176
|
let s = t;
|
|
4198
4177
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4205,9 +4184,9 @@ const Y = (e, t) => {
|
|
|
4205
4184
|
throw new Error(
|
|
4206
4185
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4207
4186
|
);
|
|
4208
|
-
let l =
|
|
4187
|
+
let l = Yt(e, h);
|
|
4209
4188
|
if (!l)
|
|
4210
|
-
l = (o = (i = (n = (r =
|
|
4189
|
+
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;
|
|
4211
4190
|
else if (typeof l != "string")
|
|
4212
4191
|
return console.warn(
|
|
4213
4192
|
`[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.`
|
|
@@ -4216,7 +4195,7 @@ const Y = (e, t) => {
|
|
|
4216
4195
|
return l;
|
|
4217
4196
|
let f = l;
|
|
4218
4197
|
try {
|
|
4219
|
-
f =
|
|
4198
|
+
f = Si(l, h).format(a);
|
|
4220
4199
|
} catch (c) {
|
|
4221
4200
|
c instanceof Error && console.warn(
|
|
4222
4201
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4224,22 +4203,22 @@ const Y = (e, t) => {
|
|
|
4224
4203
|
);
|
|
4225
4204
|
}
|
|
4226
4205
|
return f;
|
|
4227
|
-
},
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4206
|
+
}, Hi = (e, t) => Ti(t).format(e), Bi = (e, t) => xi(t).format(e), Ai = (e, t) => Ei(t).format(e), Pi = (e, t = C()) => Yt(e, t);
|
|
4207
|
+
X([re, te], () => wi);
|
|
4208
|
+
X([re], () => Hi);
|
|
4209
|
+
X([re], () => Bi);
|
|
4210
|
+
X([re], () => Ai);
|
|
4211
|
+
X([re, te], () => Pi);
|
|
4233
4212
|
window.emWidgets = { topic: jr };
|
|
4234
|
-
const
|
|
4213
|
+
const Oi = (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));
|
|
4235
4214
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4236
|
-
function
|
|
4215
|
+
function Ii(e, t) {
|
|
4237
4216
|
if (e) {
|
|
4238
4217
|
const r = document.createElement("style");
|
|
4239
4218
|
r.innerHTML = t, e.appendChild(r);
|
|
4240
4219
|
}
|
|
4241
4220
|
}
|
|
4242
|
-
function
|
|
4221
|
+
function Li(e, t) {
|
|
4243
4222
|
if (!e || !t)
|
|
4244
4223
|
return;
|
|
4245
4224
|
const r = new URL(t);
|
|
@@ -4250,7 +4229,7 @@ function Ci(e, t) {
|
|
|
4250
4229
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4251
4230
|
});
|
|
4252
4231
|
}
|
|
4253
|
-
function
|
|
4232
|
+
function Ni(e, t, r) {
|
|
4254
4233
|
if (window.emMessageBus) {
|
|
4255
4234
|
const n = document.createElement("style");
|
|
4256
4235
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4258,43 +4237,43 @@ function Mi(e, t, r) {
|
|
|
4258
4237
|
});
|
|
4259
4238
|
}
|
|
4260
4239
|
}
|
|
4261
|
-
function
|
|
4262
|
-
|
|
4240
|
+
function Ci(e) {
|
|
4241
|
+
or(e, "svelte-qazmct", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:var(--emw--color-primary, #F7F7F7);font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw var(--emw--color-grey-105, #424242) solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;font-size:var(--emw--font-size-small, 14px);flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}.TabDesktop.casino-tournaments-tab{margin:10px}.TabDesktop.casino-tournaments-tab ul{font-size:inherit;border-bottom:2px var(--emw--color-grey-105, #424242) solid}.TabDesktop.casino-tournaments-tab ul li{padding:10px 20px;cursor:pointer}.TabDesktop.casino-tournaments-tab ul li.active{color:var(--emw--color-primary, #FF8364);border-bottom:3px var(--emw--color-primary, #FF8364) solid}.TabDesktop.casino-tournaments-tab ul li span{margin:auto 0}");
|
|
4263
4242
|
}
|
|
4264
|
-
function
|
|
4243
|
+
function vt(e, t, r) {
|
|
4265
4244
|
const n = e.slice();
|
|
4266
4245
|
return n[16] = t[r], n;
|
|
4267
4246
|
}
|
|
4268
|
-
function
|
|
4269
|
-
let t, r =
|
|
4247
|
+
function yt(e) {
|
|
4248
|
+
let t, r = Ye(
|
|
4270
4249
|
/*__tabs*/
|
|
4271
4250
|
e[6]
|
|
4272
4251
|
), n = [];
|
|
4273
4252
|
for (let i = 0; i < r.length; i += 1)
|
|
4274
|
-
n[i] =
|
|
4253
|
+
n[i] = Et(vt(e, r, i));
|
|
4275
4254
|
return {
|
|
4276
4255
|
c() {
|
|
4277
4256
|
t = O("ul");
|
|
4278
4257
|
for (let i = 0; i < n.length; i += 1)
|
|
4279
4258
|
n[i].c();
|
|
4280
|
-
|
|
4259
|
+
T(t, "part", "ul");
|
|
4281
4260
|
},
|
|
4282
4261
|
m(i, o) {
|
|
4283
|
-
|
|
4262
|
+
ee(i, t, o);
|
|
4284
4263
|
for (let s = 0; s < n.length; s += 1)
|
|
4285
4264
|
n[s] && n[s].m(t, null);
|
|
4286
4265
|
},
|
|
4287
4266
|
p(i, o) {
|
|
4288
4267
|
if (o & /*__tab, __tabs, window, tid, totalReceiver, textReceiver*/
|
|
4289
4268
|
121) {
|
|
4290
|
-
r =
|
|
4269
|
+
r = Ye(
|
|
4291
4270
|
/*__tabs*/
|
|
4292
4271
|
i[6]
|
|
4293
4272
|
);
|
|
4294
4273
|
let s;
|
|
4295
4274
|
for (s = 0; s < r.length; s += 1) {
|
|
4296
|
-
const a =
|
|
4297
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4275
|
+
const a = vt(i, r, s);
|
|
4276
|
+
n[s] ? n[s].p(a, o) : (n[s] = Et(a), n[s].c(), n[s].m(t, null));
|
|
4298
4277
|
}
|
|
4299
4278
|
for (; s < n.length; s += 1)
|
|
4300
4279
|
n[s].d(1);
|
|
@@ -4302,11 +4281,11 @@ function Et(e) {
|
|
|
4302
4281
|
}
|
|
4303
4282
|
},
|
|
4304
4283
|
d(i) {
|
|
4305
|
-
i &&
|
|
4284
|
+
i && V(t), ur(n, i);
|
|
4306
4285
|
}
|
|
4307
4286
|
};
|
|
4308
4287
|
}
|
|
4309
|
-
function
|
|
4288
|
+
function _t(e) {
|
|
4310
4289
|
let t, r, n = (
|
|
4311
4290
|
/*totalReceiver*/
|
|
4312
4291
|
e[3][
|
|
@@ -4316,10 +4295,10 @@ function xt(e) {
|
|
|
4316
4295
|
), i;
|
|
4317
4296
|
return {
|
|
4318
4297
|
c() {
|
|
4319
|
-
t = O("sup"), r = O("span"), i =
|
|
4298
|
+
t = O("sup"), r = O("span"), i = je(n), T(r, "part", "SupText"), T(t, "part", "sup");
|
|
4320
4299
|
},
|
|
4321
4300
|
m(o, s) {
|
|
4322
|
-
|
|
4301
|
+
ee(o, t, s), N(t, r), N(r, i);
|
|
4323
4302
|
},
|
|
4324
4303
|
p(o, s) {
|
|
4325
4304
|
s & /*totalReceiver, __tabs*/
|
|
@@ -4327,14 +4306,14 @@ function xt(e) {
|
|
|
4327
4306
|
o[3][
|
|
4328
4307
|
/*_tab*/
|
|
4329
4308
|
o[16]
|
|
4330
|
-
] + "") &&
|
|
4309
|
+
] + "") && St(i, n);
|
|
4331
4310
|
},
|
|
4332
4311
|
d(o) {
|
|
4333
|
-
o &&
|
|
4312
|
+
o && V(t);
|
|
4334
4313
|
}
|
|
4335
4314
|
};
|
|
4336
4315
|
}
|
|
4337
|
-
function
|
|
4316
|
+
function Et(e) {
|
|
4338
4317
|
let t, r, n = (
|
|
4339
4318
|
/*textReceiver*/
|
|
4340
4319
|
(e[4][
|
|
@@ -4346,7 +4325,7 @@ function St(e) {
|
|
|
4346
4325
|
e[3][
|
|
4347
4326
|
/*_tab*/
|
|
4348
4327
|
e[16]
|
|
4349
|
-
] >= 0 &&
|
|
4328
|
+
] >= 0 && _t(e)
|
|
4350
4329
|
);
|
|
4351
4330
|
function c() {
|
|
4352
4331
|
return (
|
|
@@ -4359,15 +4338,15 @@ function St(e) {
|
|
|
4359
4338
|
}
|
|
4360
4339
|
return {
|
|
4361
4340
|
c() {
|
|
4362
|
-
t = O("li"), r = O("span"), i =
|
|
4341
|
+
t = O("li"), r = O("span"), i = je(n), o = Qe(), f && f.c(), s = Qe(), T(r, "part", "LiText"), T(t, "class", a = /*__tab*/
|
|
4363
4342
|
e[5] === /*_tab*/
|
|
4364
|
-
e[16] ? "active" : ""),
|
|
4343
|
+
e[16] ? "active" : ""), T(t, "part", h = `${/*_tab*/
|
|
4365
4344
|
e[16]} li ` + /*__tab*/
|
|
4366
4345
|
(e[5] === /*_tab*/
|
|
4367
4346
|
e[16] ? "active" : ""));
|
|
4368
4347
|
},
|
|
4369
4348
|
m(p, b) {
|
|
4370
|
-
|
|
4349
|
+
ee(p, t, b), N(t, r), N(r, i), N(t, o), f && f.m(t, null), N(t, s), u || (l = hr(t, "click", c), u = !0);
|
|
4371
4350
|
},
|
|
4372
4351
|
p(p, b) {
|
|
4373
4352
|
e = p, b & /*textReceiver, __tabs*/
|
|
@@ -4375,51 +4354,51 @@ function St(e) {
|
|
|
4375
4354
|
(e[4][
|
|
4376
4355
|
/*_tab*/
|
|
4377
4356
|
e[16]
|
|
4378
|
-
] || "") + "") &&
|
|
4357
|
+
] || "") + "") && St(i, n), /*totalReceiver*/
|
|
4379
4358
|
e[3][
|
|
4380
4359
|
/*_tab*/
|
|
4381
4360
|
e[16]
|
|
4382
|
-
] >= 0 ? f ? f.p(e, b) : (f =
|
|
4361
|
+
] >= 0 ? f ? f.p(e, b) : (f = _t(e), f.c(), f.m(t, s)) : f && (f.d(1), f = null), b & /*__tab, __tabs*/
|
|
4383
4362
|
96 && a !== (a = /*__tab*/
|
|
4384
4363
|
e[5] === /*_tab*/
|
|
4385
|
-
e[16] ? "active" : "") &&
|
|
4364
|
+
e[16] ? "active" : "") && T(t, "class", a), b & /*__tabs, __tab*/
|
|
4386
4365
|
96 && h !== (h = `${/*_tab*/
|
|
4387
4366
|
e[16]} li ` + /*__tab*/
|
|
4388
4367
|
(e[5] === /*_tab*/
|
|
4389
|
-
e[16] ? "active" : "")) &&
|
|
4368
|
+
e[16] ? "active" : "")) && T(t, "part", h);
|
|
4390
4369
|
},
|
|
4391
4370
|
d(p) {
|
|
4392
|
-
p &&
|
|
4371
|
+
p && V(t), f && f.d(), u = !1, l();
|
|
4393
4372
|
}
|
|
4394
4373
|
};
|
|
4395
4374
|
}
|
|
4396
|
-
function
|
|
4375
|
+
function Mi(e) {
|
|
4397
4376
|
let t, r = (
|
|
4398
4377
|
/*isTitleInited*/
|
|
4399
|
-
e[2] &&
|
|
4378
|
+
e[2] && yt(e)
|
|
4400
4379
|
);
|
|
4401
4380
|
return {
|
|
4402
4381
|
c() {
|
|
4403
|
-
t = O("div"), r && r.c(),
|
|
4382
|
+
t = O("div"), r && r.c(), T(t, "class", "casino-tournaments-tab " + (Oi(
|
|
4404
4383
|
/*userAgent*/
|
|
4405
4384
|
e[7]
|
|
4406
|
-
) ? "TabMobile" : "TabDesktop")),
|
|
4385
|
+
) ? "TabMobile" : "TabDesktop")), T(t, "part", "CustomStylingContainer");
|
|
4407
4386
|
},
|
|
4408
4387
|
m(n, i) {
|
|
4409
|
-
|
|
4388
|
+
ee(n, t, i), r && r.m(t, null), e[14](t);
|
|
4410
4389
|
},
|
|
4411
4390
|
p(n, [i]) {
|
|
4412
4391
|
/*isTitleInited*/
|
|
4413
|
-
n[2] ? r ? r.p(n, i) : (r =
|
|
4392
|
+
n[2] ? r ? r.p(n, i) : (r = yt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4414
4393
|
},
|
|
4415
|
-
i:
|
|
4416
|
-
o:
|
|
4394
|
+
i: S,
|
|
4395
|
+
o: S,
|
|
4417
4396
|
d(n) {
|
|
4418
|
-
n &&
|
|
4397
|
+
n && V(t), r && r.d(), e[14](null);
|
|
4419
4398
|
}
|
|
4420
4399
|
};
|
|
4421
4400
|
}
|
|
4422
|
-
function
|
|
4401
|
+
function Ri(e, t, r) {
|
|
4423
4402
|
let n, i, { tabs: o = "" } = t, { tab: s = void 0 } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { tid: l = "pageTab" } = t, f, c = !1;
|
|
4424
4403
|
const p = window.navigator.userAgent;
|
|
4425
4404
|
let b = {}, v = {};
|
|
@@ -4439,7 +4418,7 @@ function Ui(e, t, r) {
|
|
|
4439
4418
|
TournamentsTabLocaleTextUpdate: (g) => {
|
|
4440
4419
|
r(2, c = !0), r(4, v = { ...v, [g.state]: g.text });
|
|
4441
4420
|
}
|
|
4442
|
-
}),
|
|
4421
|
+
}), wt(() => (window.postMessage(
|
|
4443
4422
|
{
|
|
4444
4423
|
type: "TournamentsTabListenerLoaded",
|
|
4445
4424
|
tid: l
|
|
@@ -4458,7 +4437,7 @@ function Ui(e, t, r) {
|
|
|
4458
4437
|
);
|
|
4459
4438
|
};
|
|
4460
4439
|
function I(g) {
|
|
4461
|
-
|
|
4440
|
+
we[g ? "unshift" : "push"](() => {
|
|
4462
4441
|
f = g, r(1, f);
|
|
4463
4442
|
});
|
|
4464
4443
|
}
|
|
@@ -4466,9 +4445,9 @@ function Ui(e, t, r) {
|
|
|
4466
4445
|
"tabs" in g && r(8, o = g.tabs), "tab" in g && r(9, s = g.tab), "clientstyling" in g && r(10, a = g.clientstyling), "clientstylingurl" in g && r(11, h = g.clientstylingurl), "mbsource" in g && r(12, u = g.mbsource), "tid" in g && r(0, l = g.tid);
|
|
4467
4446
|
}, e.$$.update = () => {
|
|
4468
4447
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4469
|
-
1026 && a && f &&
|
|
4470
|
-
2050 && h && f &&
|
|
4471
|
-
4098 && u && f &&
|
|
4448
|
+
1026 && a && f && Ii(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4449
|
+
2050 && h && f && Li(f, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4450
|
+
4098 && u && f && Ni(f, `${u}.Style`), e.$$.dirty & /*tabs*/
|
|
4472
4451
|
256 && r(6, n = o.split(",")), e.$$.dirty & /*tab*/
|
|
4473
4452
|
512 && r(5, i = s);
|
|
4474
4453
|
}, [
|
|
@@ -4489,14 +4468,14 @@ function Ui(e, t, r) {
|
|
|
4489
4468
|
I
|
|
4490
4469
|
];
|
|
4491
4470
|
}
|
|
4492
|
-
class
|
|
4471
|
+
class $i extends Sr {
|
|
4493
4472
|
constructor(t) {
|
|
4494
|
-
super(),
|
|
4473
|
+
super(), xr(
|
|
4495
4474
|
this,
|
|
4496
4475
|
t,
|
|
4497
|
-
Ui,
|
|
4498
4476
|
Ri,
|
|
4499
|
-
|
|
4477
|
+
Mi,
|
|
4478
|
+
Tt,
|
|
4500
4479
|
{
|
|
4501
4480
|
tabs: 8,
|
|
4502
4481
|
tab: 9,
|
|
@@ -4505,47 +4484,47 @@ class Di extends wr {
|
|
|
4505
4484
|
mbsource: 12,
|
|
4506
4485
|
tid: 0
|
|
4507
4486
|
},
|
|
4508
|
-
|
|
4487
|
+
Ci
|
|
4509
4488
|
);
|
|
4510
4489
|
}
|
|
4511
4490
|
get tabs() {
|
|
4512
4491
|
return this.$$.ctx[8];
|
|
4513
4492
|
}
|
|
4514
4493
|
set tabs(t) {
|
|
4515
|
-
this.$$set({ tabs: t }),
|
|
4494
|
+
this.$$set({ tabs: t }), A();
|
|
4516
4495
|
}
|
|
4517
4496
|
get tab() {
|
|
4518
4497
|
return this.$$.ctx[9];
|
|
4519
4498
|
}
|
|
4520
4499
|
set tab(t) {
|
|
4521
|
-
this.$$set({ tab: t }),
|
|
4500
|
+
this.$$set({ tab: t }), A();
|
|
4522
4501
|
}
|
|
4523
4502
|
get clientstyling() {
|
|
4524
4503
|
return this.$$.ctx[10];
|
|
4525
4504
|
}
|
|
4526
4505
|
set clientstyling(t) {
|
|
4527
|
-
this.$$set({ clientstyling: t }),
|
|
4506
|
+
this.$$set({ clientstyling: t }), A();
|
|
4528
4507
|
}
|
|
4529
4508
|
get clientstylingurl() {
|
|
4530
4509
|
return this.$$.ctx[11];
|
|
4531
4510
|
}
|
|
4532
4511
|
set clientstylingurl(t) {
|
|
4533
|
-
this.$$set({ clientstylingurl: t }),
|
|
4512
|
+
this.$$set({ clientstylingurl: t }), A();
|
|
4534
4513
|
}
|
|
4535
4514
|
get mbsource() {
|
|
4536
4515
|
return this.$$.ctx[12];
|
|
4537
4516
|
}
|
|
4538
4517
|
set mbsource(t) {
|
|
4539
|
-
this.$$set({ mbsource: t }),
|
|
4518
|
+
this.$$set({ mbsource: t }), A();
|
|
4540
4519
|
}
|
|
4541
4520
|
get tid() {
|
|
4542
4521
|
return this.$$.ctx[0];
|
|
4543
4522
|
}
|
|
4544
4523
|
set tid(t) {
|
|
4545
|
-
this.$$set({ tid: t }),
|
|
4524
|
+
this.$$set({ tid: t }), A();
|
|
4546
4525
|
}
|
|
4547
4526
|
}
|
|
4548
|
-
Tr(
|
|
4527
|
+
Tr($i, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, tid: {} }, [], [], !0);
|
|
4549
4528
|
export {
|
|
4550
|
-
|
|
4529
|
+
$i as C
|
|
4551
4530
|
};
|