@everymatrix/casino-page 1.74.3 → 1.74.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCalendar-B4OJuO_L.cjs +19 -0
- package/components/{CasinoCalendar-DdMvhCOA.js → CasinoCalendar-BVD-g7V2.js} +1063 -1049
- package/components/{CasinoCalendar-BuZNkBai.js → CasinoCalendar-CDNIjQ8T.js} +1001 -987
- package/components/CasinoCalendarDailyDetails-BEUNC6Xh.cjs +1 -0
- package/components/{CasinoCalendarDailyDetails-ClfGxbko.js → CasinoCalendarDailyDetails-D_IsmUxa.js} +75 -75
- package/components/{CasinoCalendarDailyDetails-BCVIut1W.js → CasinoCalendarDailyDetails-Dun4o4bY.js} +75 -75
- package/components/{CasinoCalendarDailyItem-CYfiDQkf.js → CasinoCalendarDailyItem-SgYp_4Zc.js} +6 -6
- package/components/{CasinoCalendarDailyItem-C1ADnaTt.js → CasinoCalendarDailyItem-lgiTsDmQ.js} +6 -6
- package/components/{CasinoCalendarDailyItem-BdDom59r.cjs → CasinoCalendarDailyItem-r4x7VnIJ.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-4kHMGeo6.js → CasinoCollectionsProviders-Cfp1fpOk.js} +4 -4
- package/components/{CasinoCollectionsProviders-CM25qKz7.cjs → CasinoCollectionsProviders-DI8Ie4pa.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-Br5ZzIwL.js → CasinoCollectionsProviders-GH5hTDgu.js} +4 -4
- package/components/{CasinoFavoritesSection-Tnf79ngl.cjs → CasinoFavoritesSection-C2KNKREs.cjs} +1 -1
- package/components/{CasinoFavoritesSection-CK-RLGCt.js → CasinoFavoritesSection-CehE7hXi.js} +5 -5
- package/components/{CasinoFavoritesSection-C-Vh_jRK.js → CasinoFavoritesSection-DWDC5TD8.js} +5 -5
- package/components/CasinoFilter-BX1QlpN6.cjs +1 -0
- package/components/{CasinoFilter-1-YLqdq0.js → CasinoFilter-DUp1Zmmm.js} +224 -225
- package/components/{CasinoFilter-akdowSz4.js → CasinoFilter-idsuQa6E.js} +254 -253
- package/components/{CasinoGameThumbnail-QX8Y_4Bo.js → CasinoGameThumbnail-C8VWWEBL.js} +752 -768
- package/components/CasinoGameThumbnail-D4tCeYJQ.cjs +47 -0
- package/components/{CasinoGameThumbnail--7-bfdJ_.js → CasinoGameThumbnail-DMHcWul3.js} +1255 -1239
- package/components/{CasinoGamesCategorySection-oHVHccwm.js → CasinoGamesCategorySection-B_x3-ce_.js} +230 -222
- package/components/{CasinoGamesCategorySection-B2B6Ec4x.js → CasinoGamesCategorySection-BmQ5Kyco.js} +261 -253
- package/components/CasinoGamesCategorySection-DeeY3KIg.cjs +1 -0
- package/components/{CasinoJackpotBanner-Bdzek1XC.js → CasinoJackpotBanner-BAVC4_Yz.js} +8 -8
- package/components/{CasinoJackpotBanner-CyyNiIY2.cjs → CasinoJackpotBanner-ClvtHhmd.cjs} +1 -1
- package/components/{CasinoJackpotBanner--90-l4pm.js → CasinoJackpotBanner-Da0QCFOu.js} +8 -8
- package/components/{CasinoLastPlayedSection-C9uSdltZ.js → CasinoLastPlayedSection-BE3Bm9ng.js} +9 -9
- package/components/{CasinoLastPlayedSection-Rf3z6wkM.js → CasinoLastPlayedSection-DoXjABLd.js} +9 -9
- package/components/{CasinoLastPlayedSection-62R0XCfe.cjs → CasinoLastPlayedSection-aDH2W-Fh.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-Bx27HRdH.js → CasinoMostPlayedSection-BfDv76mA.js} +7 -7
- package/components/{CasinoMostPlayedSection-BCJtNlb4.cjs → CasinoMostPlayedSection-C6FKr5eT.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-CJSaZyqN.js → CasinoMostPlayedSection-CzbRjPnI.js} +7 -7
- package/components/CasinoMyGames-B4zNcogQ.js +1315 -0
- package/components/CasinoMyGames-CSuw2vRW.cjs +1 -0
- package/components/CasinoMyGames-kau415qI.js +1316 -0
- package/components/{CasinoPage-CNqNB1PI.js → CasinoPage-BrBXAe2Z.js} +15 -15
- package/components/{CasinoPage-B1g_jr0K.cjs → CasinoPage-Cqjd4hgf.cjs} +1 -1
- package/components/{CasinoPage-BGrVihVz.js → CasinoPage-Dw2FvCPq.js} +15 -15
- package/components/{CasinoRandomGame-CdQVMLbd.cjs → CasinoRandomGame-3uoEGw78.cjs} +2 -2
- package/components/{CasinoRandomGame-CtAOJXnF.js → CasinoRandomGame-9Yw_xC5j.js} +83 -83
- package/components/{CasinoRandomGame-D7RweU9Y.js → CasinoRandomGame-DpKfvMwV.js} +12 -12
- package/components/{CasinoSearch-CM0yzQsF.js → CasinoSearch-Cz5a7IL7.js} +5 -5
- package/components/{CasinoSearch-C2V-Dbqi.js → CasinoSearch-DvY5WITU.js} +5 -5
- package/components/{CasinoSearch-BF4OC6tZ.cjs → CasinoSearch-pPULoiZA.cjs} +1 -1
- package/components/{CasinoSort-5WNP_G3S.js → CasinoSort-BYQvNOsF.js} +93 -94
- package/components/{CasinoSort-BawqALZV.js → CasinoSort-CUCsGytJ.js} +103 -102
- package/components/{CasinoSort-Du3lmlNe.cjs → CasinoSort-DEzzINXT.cjs} +1 -1
- package/components/{CasinoWinners-XkR8Kmij.cjs → CasinoWinners-COmepRdG.cjs} +1 -1
- package/components/{CasinoWinners-DCiuykjq.js → CasinoWinners-CQf5gEvU.js} +116 -116
- package/components/{CasinoWinners-BE029Vxq.js → CasinoWinners-Dr5wYAG5.js} +116 -116
- package/components/{GeneralAnimationLoading-BETs-Kib.js → GeneralAnimationLoading-CBPC5I1a.js} +7 -7
- package/components/{GeneralAnimationLoading-BlN4kA08.js → GeneralAnimationLoading-CKgGhHlf.js} +7 -7
- package/components/{GeneralAnimationLoading-lIyg2-0l.cjs → GeneralAnimationLoading-DTUTIYre.cjs} +1 -1
- package/es2015/casino-page.cjs +1 -1
- package/es2015/casino-page.js +1 -1
- package/esnext/casino-page.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-wi94nFPy.cjs → casino-play-random-game-C3hhQjhn.cjs} +2 -2
- package/stencil/{casino-play-random-game-Bc2XLGRl.js → casino-play-random-game-qroM0e64.js} +2 -2
- package/stencil/{casino-play-random-game-d1PoE_Vf.js → casino-play-random-game-uBjWXXLi.js} +2 -2
- package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-BD-QREJe.js} +151 -151
- package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652-DJqGt8q2.js} +147 -147
- package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
- package/stencil/{index-ab3202d6-Cowbr6qN.js → index-ab3202d6-CSUArOSv.js} +209 -209
- package/stencil/{index-ab3202d6-CiI9jxo9.js → index-ab3202d6-CoRS04SH.js} +214 -214
- package/stencil/index-ab3202d6-DitihRZv.cjs +1 -0
- package/stencil/index-b2193545-3zPNeE9v.cjs +1 -0
- package/stencil/{index-b2193545-DdqB2rk5.js → index-b2193545-D_cUvAA-.js} +176 -176
- package/stencil/{index-b2193545-BL364Gzq.js → index-b2193545-kN0z2MLt.js} +169 -169
- package/stencil/{ui-image-CzGNxx73.js → ui-image-BAqS-hS6.js} +1 -1
- package/stencil/{ui-image-wubI3fkK.cjs → ui-image-CH2Jdp7k.cjs} +1 -1
- package/stencil/{ui-image-B_HWMBI-.js → ui-image-I_uR7pAI.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
- package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
- package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-Dh5Eqdlm.js} +2 -2
- package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-_K8Pt3w9.js} +2 -2
- package/stencil/{ui-skeleton-DTQ__6LQ.cjs → ui-skeleton-5mt1L8pA.cjs} +1 -1
- package/stencil/{ui-skeleton-CsmgJUYN.js → ui-skeleton-C0GZ2ncD.js} +2 -2
- package/stencil/{ui-skeleton-yRWBmyfK.js → ui-skeleton-CYeeBz0Q.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CxSezPtG.js → ui-skeleton-ae35c6f2-BSwiS43c.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BRNiEwlg.js → ui-skeleton-ae35c6f2-BmKf7IvD.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CZuWo9GO.cjs → ui-skeleton-ae35c6f2-CQ3pH6qH.cjs} +1 -1
- package/components/CasinoCalendar-CFUoQxq0.cjs +0 -19
- package/components/CasinoCalendarDailyDetails-Dqb6yp--.cjs +0 -1
- package/components/CasinoFilter-Cc3Yv48X.cjs +0 -1
- package/components/CasinoGameThumbnail-BpBjsCjD.cjs +0 -47
- package/components/CasinoGamesCategorySection-Begzaifx.cjs +0 -1
- package/components/CasinoMyGames-B24lfIIQ.js +0 -1352
- package/components/CasinoMyGames-CGvXSnA_.cjs +0 -1
- package/components/CasinoMyGames-CH2OwYz7.js +0 -1351
- package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
- package/stencil/index-ab3202d6-BwBGn0Oj.cjs +0 -1
- package/stencil/index-b2193545-DmjUkkS8.cjs +0 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Oe = (e, t, r) => t in e ?
|
|
1
|
+
var Br = Object.defineProperty, Pr = Object.defineProperties;
|
|
2
|
+
var Ar = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var st = Object.getOwnPropertySymbols;
|
|
4
|
+
var Or = Object.prototype.hasOwnProperty, Ir = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Oe = (e, t, r) => t in e ? Br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Or.call(t, r) && Oe(e, r, t[r]);
|
|
8
|
+
if (st)
|
|
9
|
+
for (var r of st(t))
|
|
10
|
+
Ir.call(t, r) && Oe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, ut = (e, t) => Pr(e, Ar(t));
|
|
13
13
|
var T = (e, t, r) => (Oe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
15
|
-
var
|
|
14
|
+
var lt = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function A() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Cr(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,71 +37,71 @@ function Pr(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Dt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ht() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
e.forEach(
|
|
46
|
+
function z(e) {
|
|
47
|
+
e.forEach(Dt);
|
|
48
48
|
}
|
|
49
49
|
function Se(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Ut(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
55
|
let de;
|
|
56
|
-
function
|
|
56
|
+
function bo(e, t) {
|
|
57
57
|
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Lr(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Gt(e, ...t) {
|
|
63
63
|
if (e == null) {
|
|
64
64
|
for (const n of t)
|
|
65
65
|
n(void 0);
|
|
66
|
-
return
|
|
66
|
+
return A;
|
|
67
67
|
}
|
|
68
68
|
const r = e.subscribe(...t);
|
|
69
69
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
e.$$.on_destroy.push(
|
|
71
|
+
function Mr(e, t, r) {
|
|
72
|
+
e.$$.on_destroy.push(Gt(t, r));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function yo(e, t, r, n) {
|
|
75
75
|
if (e) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = Ft(e, t, r, n);
|
|
77
77
|
return e[0](i);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e[1] && n ?
|
|
80
|
+
function Ft(e, t, r, n) {
|
|
81
|
+
return e[1] && n ? Cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function go(e, t, r, n) {
|
|
84
84
|
if (e[2] && n) {
|
|
85
85
|
const i = e[2](n(r));
|
|
86
86
|
if (t.dirty === void 0)
|
|
87
87
|
return i;
|
|
88
88
|
if (typeof i == "object") {
|
|
89
|
-
const
|
|
90
|
-
for (let
|
|
91
|
-
s
|
|
92
|
-
return
|
|
89
|
+
const o = [], a = Math.max(t.dirty.length, i.length);
|
|
90
|
+
for (let s = 0; s < a; s += 1)
|
|
91
|
+
o[s] = t.dirty[s] | i[s];
|
|
92
|
+
return o;
|
|
93
93
|
}
|
|
94
94
|
return t.dirty | i;
|
|
95
95
|
}
|
|
96
96
|
return t.dirty;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function vo(e, t, r, n, i, o) {
|
|
99
99
|
if (i) {
|
|
100
|
-
const
|
|
101
|
-
e.p(
|
|
100
|
+
const a = Ft(t, r, n, o);
|
|
101
|
+
e.p(a, i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function _o(e) {
|
|
105
105
|
if (e.ctx.length > 32) {
|
|
106
106
|
const t = [], r = e.ctx.length / 32;
|
|
107
107
|
for (let n = 0; n < r; n++)
|
|
@@ -110,20 +110,20 @@ function bs(e) {
|
|
|
110
110
|
}
|
|
111
111
|
return -1;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
return e && Se(e.destroy) ? e.destroy :
|
|
113
|
+
function Eo(e) {
|
|
114
|
+
return e && Se(e.destroy) ? e.destroy : A;
|
|
115
115
|
}
|
|
116
116
|
function we(e, t) {
|
|
117
117
|
e.appendChild(t);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
const n =
|
|
119
|
+
function Nr(e, t, r) {
|
|
120
|
+
const n = Rr(e);
|
|
121
121
|
if (!n.getElementById(t)) {
|
|
122
122
|
const i = $("style");
|
|
123
|
-
i.id = t, i.textContent = r,
|
|
123
|
+
i.id = t, i.textContent = r, $r(n, i);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Rr(e) {
|
|
127
127
|
if (!e)
|
|
128
128
|
return document;
|
|
129
129
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -133,7 +133,7 @@ function Lr(e) {
|
|
|
133
133
|
t
|
|
134
134
|
) : e.ownerDocument;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function $r(e, t) {
|
|
137
137
|
return we(
|
|
138
138
|
/** @type {Document} */
|
|
139
139
|
e.head || e,
|
|
@@ -146,29 +146,29 @@ function V(e, t, r) {
|
|
|
146
146
|
function U(e) {
|
|
147
147
|
e.parentNode && e.parentNode.removeChild(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Dr(e, t) {
|
|
150
150
|
for (let r = 0; r < e.length; r += 1)
|
|
151
151
|
e[r] && e[r].d(t);
|
|
152
152
|
}
|
|
153
153
|
function $(e) {
|
|
154
154
|
return document.createElement(e);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Ur(e) {
|
|
157
157
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function tt(e) {
|
|
160
160
|
return document.createTextNode(e);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
return
|
|
162
|
+
function Gr() {
|
|
163
|
+
return tt(" ");
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
return
|
|
165
|
+
function xo() {
|
|
166
|
+
return tt("");
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function So(e, t, r, n) {
|
|
169
169
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function wo(e) {
|
|
172
172
|
return function(t) {
|
|
173
173
|
return t.stopPropagation(), e.call(this, t);
|
|
174
174
|
};
|
|
@@ -180,23 +180,23 @@ function d(e, t, r) {
|
|
|
180
180
|
const n = t.toLowerCase();
|
|
181
181
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : k(e, t, r);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Fr(e) {
|
|
184
184
|
return Array.from(e.childNodes);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function jr(e, t) {
|
|
187
187
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
188
188
|
t);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function To(e, t) {
|
|
191
191
|
e.value = t == null ? "" : t;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Ho(e, t, r, n) {
|
|
194
194
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Bo(e, t, r) {
|
|
197
197
|
e.classList.toggle(t, !!r);
|
|
198
198
|
}
|
|
199
|
-
class
|
|
199
|
+
class Po {
|
|
200
200
|
constructor(t = !1) {
|
|
201
201
|
/**
|
|
202
202
|
* @private
|
|
@@ -227,7 +227,7 @@ class ws {
|
|
|
227
227
|
* @returns {void}
|
|
228
228
|
*/
|
|
229
229
|
m(t, r, n = null) {
|
|
230
|
-
this.e || (this.is_svg ? this.e =
|
|
230
|
+
this.e || (this.is_svg ? this.e = Ur(
|
|
231
231
|
/** @type {keyof SVGElementTagNameMap} */
|
|
232
232
|
r.nodeName
|
|
233
233
|
) : this.e = $(
|
|
@@ -266,7 +266,7 @@ class ws {
|
|
|
266
266
|
this.n.forEach(U);
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function kr(e) {
|
|
270
270
|
const t = {};
|
|
271
271
|
return e.childNodes.forEach(
|
|
272
272
|
/** @param {Element} node */
|
|
@@ -279,28 +279,28 @@ let le;
|
|
|
279
279
|
function ue(e) {
|
|
280
280
|
le = e;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function jt() {
|
|
283
283
|
if (!le)
|
|
284
284
|
throw new Error("Function called outside component initialization");
|
|
285
285
|
return le;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
|
|
287
|
+
function Vr(e) {
|
|
288
|
+
jt().$$.on_mount.push(e);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function Ao(e) {
|
|
291
|
+
jt().$$.on_destroy.push(e);
|
|
292
292
|
}
|
|
293
|
-
const q = [],
|
|
293
|
+
const q = [], Ue = [];
|
|
294
294
|
let Y = [];
|
|
295
|
-
const
|
|
296
|
-
let
|
|
297
|
-
function
|
|
298
|
-
|
|
295
|
+
const ct = [], kt = /* @__PURE__ */ Promise.resolve();
|
|
296
|
+
let Ge = !1;
|
|
297
|
+
function Vt() {
|
|
298
|
+
Ge || (Ge = !0, kt.then(R));
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
return
|
|
300
|
+
function Oo() {
|
|
301
|
+
return Vt(), kt;
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Fe(e) {
|
|
304
304
|
Y.push(e);
|
|
305
305
|
}
|
|
306
306
|
const Ie = /* @__PURE__ */ new Set();
|
|
@@ -313,123 +313,123 @@ function R() {
|
|
|
313
313
|
try {
|
|
314
314
|
for (; Q < q.length; ) {
|
|
315
315
|
const t = q[Q];
|
|
316
|
-
Q++, ue(t),
|
|
316
|
+
Q++, ue(t), Xr(t.$$);
|
|
317
317
|
}
|
|
318
318
|
} catch (t) {
|
|
319
319
|
throw q.length = 0, Q = 0, t;
|
|
320
320
|
}
|
|
321
|
-
for (ue(null), q.length = 0, Q = 0;
|
|
322
|
-
|
|
321
|
+
for (ue(null), q.length = 0, Q = 0; Ue.length; )
|
|
322
|
+
Ue.pop()();
|
|
323
323
|
for (let t = 0; t < Y.length; t += 1) {
|
|
324
324
|
const r = Y[t];
|
|
325
325
|
Ie.has(r) || (Ie.add(r), r());
|
|
326
326
|
}
|
|
327
327
|
Y.length = 0;
|
|
328
328
|
} while (q.length);
|
|
329
|
-
for (;
|
|
330
|
-
|
|
331
|
-
|
|
329
|
+
for (; ct.length; )
|
|
330
|
+
ct.pop()();
|
|
331
|
+
Ge = !1, Ie.clear(), ue(e);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function Xr(e) {
|
|
334
334
|
if (e.fragment !== null) {
|
|
335
|
-
e.update(),
|
|
335
|
+
e.update(), z(e.before_update);
|
|
336
336
|
const t = e.dirty;
|
|
337
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
337
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Wr(e) {
|
|
341
341
|
const t = [], r = [];
|
|
342
342
|
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
|
343
343
|
}
|
|
344
344
|
const be = /* @__PURE__ */ new Set();
|
|
345
|
-
let
|
|
346
|
-
function
|
|
347
|
-
|
|
345
|
+
let W;
|
|
346
|
+
function Io() {
|
|
347
|
+
W = {
|
|
348
348
|
r: 0,
|
|
349
349
|
c: [],
|
|
350
|
-
p:
|
|
350
|
+
p: W
|
|
351
351
|
// parent group
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
|
|
354
|
+
function Co() {
|
|
355
|
+
W.r || z(W.c), W = W.p;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Xt(e, t) {
|
|
358
358
|
e && e.i && (be.delete(e), e.i(t));
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function zr(e, t, r, n) {
|
|
361
361
|
if (e && e.o) {
|
|
362
362
|
if (be.has(e))
|
|
363
363
|
return;
|
|
364
|
-
be.add(e),
|
|
364
|
+
be.add(e), W.c.push(() => {
|
|
365
365
|
be.delete(e), n && (r && e.d(1), n());
|
|
366
366
|
}), e.o(t);
|
|
367
367
|
} else
|
|
368
368
|
n && n();
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function ft(e) {
|
|
371
371
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Lo(e, t) {
|
|
374
374
|
e.d(1), t.delete(e.key);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
|
|
376
|
+
function Mo(e, t) {
|
|
377
|
+
zr(e, 1, 1, () => {
|
|
378
378
|
t.delete(e.key);
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
let
|
|
381
|
+
function No(e, t, r, n, i, o, a, s, l, u, h, f) {
|
|
382
|
+
let c = e.length, m = o.length, b = c;
|
|
383
383
|
const g = {};
|
|
384
384
|
for (; b--; )
|
|
385
385
|
g[e[b].key] = b;
|
|
386
|
-
const S = [],
|
|
386
|
+
const S = [], O = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), w = [];
|
|
387
387
|
for (b = m; b--; ) {
|
|
388
|
-
const x =
|
|
389
|
-
let
|
|
390
|
-
|
|
388
|
+
const x = f(i, o, b), C = r(x);
|
|
389
|
+
let L = a.get(C);
|
|
390
|
+
L ? w.push(() => L.p(x, t)) : (L = u(C, x), L.c()), O.set(C, S[b] = L), C in g && P.set(C, Math.abs(b - g[C]));
|
|
391
391
|
}
|
|
392
|
-
const
|
|
393
|
-
function
|
|
394
|
-
|
|
392
|
+
const M = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Set();
|
|
393
|
+
function N(x) {
|
|
394
|
+
Xt(x, 1), x.m(s, h), a.set(x.key, x), h = x.first, m--;
|
|
395
395
|
}
|
|
396
|
-
for (;
|
|
397
|
-
const x = S[m - 1], C = e[
|
|
398
|
-
x === C ? (h = x.first,
|
|
396
|
+
for (; c && m; ) {
|
|
397
|
+
const x = S[m - 1], C = e[c - 1], L = x.key, X = C.key;
|
|
398
|
+
x === C ? (h = x.first, c--, m--) : O.has(X) ? !a.has(L) || M.has(L) ? N(x) : I.has(X) ? c-- : P.get(L) > P.get(X) ? (I.add(L), N(x)) : (M.add(X), c--) : (l(C, a), c--);
|
|
399
399
|
}
|
|
400
|
-
for (;
|
|
401
|
-
const x = e[
|
|
402
|
-
|
|
400
|
+
for (; c--; ) {
|
|
401
|
+
const x = e[c];
|
|
402
|
+
O.has(x.key) || l(x, a);
|
|
403
403
|
}
|
|
404
404
|
for (; m; )
|
|
405
|
-
|
|
406
|
-
return
|
|
405
|
+
N(S[m - 1]);
|
|
406
|
+
return z(w), S;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Zr(e, t, r) {
|
|
409
409
|
const { fragment: n, after_update: i } = e.$$;
|
|
410
|
-
n && n.m(t, r),
|
|
411
|
-
const
|
|
412
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
413
|
-
}), i.forEach(
|
|
410
|
+
n && n.m(t, r), Fe(() => {
|
|
411
|
+
const o = e.$$.on_mount.map(Dt).filter(Se);
|
|
412
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : z(o), e.$$.on_mount = [];
|
|
413
|
+
}), i.forEach(Fe);
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function Qr(e, t) {
|
|
416
416
|
const r = e.$$;
|
|
417
|
-
r.fragment !== null && (
|
|
417
|
+
r.fragment !== null && (Wr(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
e.$$.dirty[0] === -1 && (q.push(e),
|
|
419
|
+
function Jr(e, t) {
|
|
420
|
+
e.$$.dirty[0] === -1 && (q.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function qr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
423
423
|
const l = le;
|
|
424
424
|
ue(e);
|
|
425
425
|
const u = e.$$ = {
|
|
426
426
|
fragment: null,
|
|
427
427
|
ctx: [],
|
|
428
428
|
// state
|
|
429
|
-
props:
|
|
430
|
-
update:
|
|
429
|
+
props: o,
|
|
430
|
+
update: A,
|
|
431
431
|
not_equal: i,
|
|
432
|
-
bound:
|
|
432
|
+
bound: ht(),
|
|
433
433
|
// lifecycle
|
|
434
434
|
on_mount: [],
|
|
435
435
|
on_destroy: [],
|
|
@@ -438,28 +438,28 @@ function zr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
438
438
|
after_update: [],
|
|
439
439
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
440
440
|
// everything else
|
|
441
|
-
callbacks:
|
|
442
|
-
dirty:
|
|
441
|
+
callbacks: ht(),
|
|
442
|
+
dirty: s,
|
|
443
443
|
skip_bound: !1,
|
|
444
444
|
root: t.target || l.$$.root
|
|
445
445
|
};
|
|
446
|
-
|
|
446
|
+
a && a(u.root);
|
|
447
447
|
let h = !1;
|
|
448
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
449
|
-
const b = m.length ? m[0] :
|
|
450
|
-
return u.ctx && i(u.ctx[
|
|
451
|
-
}) : [], u.update(), h = !0,
|
|
448
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
449
|
+
const b = m.length ? m[0] : c;
|
|
450
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Jr(e, f)), c;
|
|
451
|
+
}) : [], u.update(), h = !0, z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
452
452
|
if (t.hydrate) {
|
|
453
|
-
const
|
|
454
|
-
u.fragment && u.fragment.l(
|
|
453
|
+
const f = Fr(t.target);
|
|
454
|
+
u.fragment && u.fragment.l(f), f.forEach(U);
|
|
455
455
|
} else
|
|
456
456
|
u.fragment && u.fragment.c();
|
|
457
|
-
t.intro &&
|
|
457
|
+
t.intro && Xt(e.$$.fragment), Zr(e, t.target, t.anchor), R();
|
|
458
458
|
}
|
|
459
459
|
ue(l);
|
|
460
460
|
}
|
|
461
|
-
let
|
|
462
|
-
typeof HTMLElement == "function" && (
|
|
461
|
+
let Wt;
|
|
462
|
+
typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
|
463
463
|
constructor(t, r, n) {
|
|
464
464
|
super();
|
|
465
465
|
/** The Svelte component constructor */
|
|
@@ -496,42 +496,42 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
connectedCallback() {
|
|
499
|
-
return
|
|
499
|
+
return lt(this, null, function* () {
|
|
500
500
|
if (this.$$cn = !0, !this.$$c) {
|
|
501
|
-
let t = function(
|
|
501
|
+
let t = function(o) {
|
|
502
502
|
return () => {
|
|
503
|
-
let
|
|
503
|
+
let a;
|
|
504
504
|
return {
|
|
505
505
|
c: function() {
|
|
506
|
-
|
|
506
|
+
a = $("slot"), o !== "default" && k(a, "name", o);
|
|
507
507
|
},
|
|
508
508
|
/**
|
|
509
509
|
* @param {HTMLElement} target
|
|
510
510
|
* @param {HTMLElement} [anchor]
|
|
511
511
|
*/
|
|
512
512
|
m: function(u, h) {
|
|
513
|
-
V(u,
|
|
513
|
+
V(u, a, h);
|
|
514
514
|
},
|
|
515
515
|
d: function(u) {
|
|
516
|
-
u && U(
|
|
516
|
+
u && U(a);
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
519
|
};
|
|
520
520
|
};
|
|
521
521
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
522
522
|
return;
|
|
523
|
-
const r = {}, n =
|
|
524
|
-
for (const
|
|
525
|
-
|
|
526
|
-
for (const
|
|
527
|
-
const
|
|
528
|
-
|
|
523
|
+
const r = {}, n = kr(this);
|
|
524
|
+
for (const o of this.$$s)
|
|
525
|
+
o in n && (r[o] = [t(o)]);
|
|
526
|
+
for (const o of this.attributes) {
|
|
527
|
+
const a = this.$$g_p(o.name);
|
|
528
|
+
a in this.$$d || (this.$$d[a] = ye(a, o.value, this.$$p_d, "toProp"));
|
|
529
529
|
}
|
|
530
|
-
for (const
|
|
531
|
-
!(
|
|
530
|
+
for (const o in this.$$p_d)
|
|
531
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
532
532
|
this.$$c = new this.$$ctor({
|
|
533
533
|
target: this.shadowRoot || this,
|
|
534
|
-
props:
|
|
534
|
+
props: ut(at({}, this.$$d), {
|
|
535
535
|
$$slots: r,
|
|
536
536
|
$$scope: {
|
|
537
537
|
ctx: []
|
|
@@ -540,23 +540,23 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
540
540
|
});
|
|
541
541
|
const i = () => {
|
|
542
542
|
this.$$r = !0;
|
|
543
|
-
for (const
|
|
544
|
-
if (this.$$d[
|
|
545
|
-
const
|
|
546
|
-
|
|
547
|
-
this.$$d[
|
|
543
|
+
for (const o in this.$$p_d)
|
|
544
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
545
|
+
const a = ye(
|
|
546
|
+
o,
|
|
547
|
+
this.$$d[o],
|
|
548
548
|
this.$$p_d,
|
|
549
549
|
"toAttribute"
|
|
550
550
|
);
|
|
551
|
-
|
|
551
|
+
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
552
552
|
}
|
|
553
553
|
this.$$r = !1;
|
|
554
554
|
};
|
|
555
555
|
this.$$c.$$.after_update.push(i), i();
|
|
556
|
-
for (const
|
|
557
|
-
for (const
|
|
558
|
-
const
|
|
559
|
-
this.$$l_u.set(
|
|
556
|
+
for (const o in this.$$l)
|
|
557
|
+
for (const a of this.$$l[o]) {
|
|
558
|
+
const s = this.$$c.$on(o, a);
|
|
559
|
+
this.$$l_u.set(a, s);
|
|
560
560
|
}
|
|
561
561
|
this.$$l = {};
|
|
562
562
|
}
|
|
@@ -580,8 +580,8 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
582
|
function ye(e, t, r, n) {
|
|
583
|
-
var
|
|
584
|
-
const i = (
|
|
583
|
+
var o;
|
|
584
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
585
585
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
586
586
|
return t;
|
|
587
587
|
if (n === "toAttribute")
|
|
@@ -609,38 +609,38 @@ function ye(e, t, r, n) {
|
|
|
609
609
|
return t;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
let
|
|
612
|
+
function Yr(e, t, r, n, i, o) {
|
|
613
|
+
let a = class extends Wt {
|
|
614
614
|
constructor() {
|
|
615
615
|
super(e, r, i), this.$$p_d = t;
|
|
616
616
|
}
|
|
617
617
|
static get observedAttributes() {
|
|
618
618
|
return Object.keys(t).map(
|
|
619
|
-
(
|
|
619
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
620
620
|
);
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
|
-
return Object.keys(t).forEach((
|
|
624
|
-
Object.defineProperty(
|
|
623
|
+
return Object.keys(t).forEach((s) => {
|
|
624
|
+
Object.defineProperty(a.prototype, s, {
|
|
625
625
|
get() {
|
|
626
|
-
return this.$$c &&
|
|
626
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
627
627
|
},
|
|
628
628
|
set(l) {
|
|
629
629
|
var u;
|
|
630
|
-
l = ye(
|
|
630
|
+
l = ye(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
631
631
|
}
|
|
632
632
|
});
|
|
633
|
-
}), n.forEach((
|
|
634
|
-
Object.defineProperty(
|
|
633
|
+
}), n.forEach((s) => {
|
|
634
|
+
Object.defineProperty(a.prototype, s, {
|
|
635
635
|
get() {
|
|
636
636
|
var l;
|
|
637
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
637
|
+
return (l = this.$$c) == null ? void 0 : l[s];
|
|
638
638
|
}
|
|
639
639
|
});
|
|
640
640
|
}), e.element = /** @type {any} */
|
|
641
|
-
|
|
641
|
+
a, a;
|
|
642
642
|
}
|
|
643
|
-
class
|
|
643
|
+
class Kr {
|
|
644
644
|
constructor() {
|
|
645
645
|
/**
|
|
646
646
|
* ### PRIVATE API
|
|
@@ -661,7 +661,7 @@ class Qr {
|
|
|
661
661
|
}
|
|
662
662
|
/** @returns {void} */
|
|
663
663
|
$destroy() {
|
|
664
|
-
|
|
664
|
+
Qr(this, 1), this.$destroy = A;
|
|
665
665
|
}
|
|
666
666
|
/**
|
|
667
667
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -671,7 +671,7 @@ class Qr {
|
|
|
671
671
|
*/
|
|
672
672
|
$on(t, r) {
|
|
673
673
|
if (!Se(r))
|
|
674
|
-
return
|
|
674
|
+
return A;
|
|
675
675
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
676
676
|
return n.push(r), () => {
|
|
677
677
|
const i = n.indexOf(r);
|
|
@@ -683,11 +683,11 @@ class Qr {
|
|
|
683
683
|
* @returns {void}
|
|
684
684
|
*/
|
|
685
685
|
$set(t) {
|
|
686
|
-
this.$$set && !
|
|
686
|
+
this.$$set && !Lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
const
|
|
690
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
689
|
+
const en = "4";
|
|
690
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(en);
|
|
691
691
|
/*! *****************************************************************************
|
|
692
692
|
Copyright (c) Microsoft Corporation.
|
|
693
693
|
|
|
@@ -702,34 +702,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
702
702
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
703
703
|
PERFORMANCE OF THIS SOFTWARE.
|
|
704
704
|
***************************************************************************** */
|
|
705
|
-
var
|
|
706
|
-
return
|
|
705
|
+
var je = function(e, t) {
|
|
706
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
707
707
|
r.__proto__ = n;
|
|
708
708
|
} || function(r, n) {
|
|
709
709
|
for (var i in n)
|
|
710
710
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
711
|
-
},
|
|
711
|
+
}, je(e, t);
|
|
712
712
|
};
|
|
713
713
|
function G(e, t) {
|
|
714
714
|
if (typeof t != "function" && t !== null)
|
|
715
715
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
716
|
-
|
|
716
|
+
je(e, t);
|
|
717
717
|
function r() {
|
|
718
718
|
this.constructor = e;
|
|
719
719
|
}
|
|
720
720
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
721
721
|
}
|
|
722
|
-
var
|
|
723
|
-
return
|
|
722
|
+
var _ = function() {
|
|
723
|
+
return _ = Object.assign || function(t) {
|
|
724
724
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
725
725
|
r = arguments[n];
|
|
726
|
-
for (var
|
|
727
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
726
|
+
for (var o in r)
|
|
727
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
728
728
|
}
|
|
729
729
|
return t;
|
|
730
|
-
},
|
|
730
|
+
}, _.apply(this, arguments);
|
|
731
731
|
};
|
|
732
|
-
function
|
|
732
|
+
function tn(e, t) {
|
|
733
733
|
var r = {};
|
|
734
734
|
for (var n in e)
|
|
735
735
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -738,7 +738,7 @@ function qr(e, t) {
|
|
|
738
738
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
739
739
|
return r;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function ke(e) {
|
|
742
742
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
743
743
|
if (r)
|
|
744
744
|
return r.call(e);
|
|
@@ -750,42 +750,42 @@ function je(e) {
|
|
|
750
750
|
};
|
|
751
751
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function Ve(e, t) {
|
|
754
754
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
755
755
|
if (!r)
|
|
756
756
|
return e;
|
|
757
|
-
var n = r.call(e), i,
|
|
757
|
+
var n = r.call(e), i, o = [], a;
|
|
758
758
|
try {
|
|
759
759
|
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
760
|
-
|
|
761
|
-
} catch (
|
|
762
|
-
|
|
760
|
+
o.push(i.value);
|
|
761
|
+
} catch (s) {
|
|
762
|
+
a = { error: s };
|
|
763
763
|
} finally {
|
|
764
764
|
try {
|
|
765
765
|
i && !i.done && (r = n.return) && r.call(n);
|
|
766
766
|
} finally {
|
|
767
|
-
if (
|
|
768
|
-
throw
|
|
767
|
+
if (a)
|
|
768
|
+
throw a.error;
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
-
return
|
|
771
|
+
return o;
|
|
772
772
|
}
|
|
773
773
|
function K(e, t, r) {
|
|
774
774
|
if (r || arguments.length === 2)
|
|
775
|
-
for (var n = 0, i = t.length,
|
|
776
|
-
(
|
|
777
|
-
return e.concat(
|
|
775
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
776
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
777
|
+
return e.concat(o || t);
|
|
778
778
|
}
|
|
779
779
|
function D(e) {
|
|
780
780
|
return typeof e == "function";
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function zt(e) {
|
|
783
783
|
var t = function(n) {
|
|
784
784
|
Error.call(n), n.stack = new Error().stack;
|
|
785
785
|
}, r = e(t);
|
|
786
786
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
787
787
|
}
|
|
788
|
-
var
|
|
788
|
+
var Ce = zt(function(e) {
|
|
789
789
|
return function(r) {
|
|
790
790
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
791
791
|
` + r.map(function(n, i) {
|
|
@@ -794,7 +794,7 @@ var Le = Xt(function(e) {
|
|
|
794
794
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
795
795
|
};
|
|
796
796
|
});
|
|
797
|
-
function
|
|
797
|
+
function Xe(e, t) {
|
|
798
798
|
if (e) {
|
|
799
799
|
var r = e.indexOf(t);
|
|
800
800
|
0 <= r && e.splice(r, 1);
|
|
@@ -805,14 +805,14 @@ var Te = function() {
|
|
|
805
805
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
806
806
|
}
|
|
807
807
|
return e.prototype.unsubscribe = function() {
|
|
808
|
-
var t, r, n, i,
|
|
808
|
+
var t, r, n, i, o;
|
|
809
809
|
if (!this.closed) {
|
|
810
810
|
this.closed = !0;
|
|
811
|
-
var
|
|
812
|
-
if (
|
|
813
|
-
if (this._parentage = null, Array.isArray(
|
|
811
|
+
var a = this._parentage;
|
|
812
|
+
if (a)
|
|
813
|
+
if (this._parentage = null, Array.isArray(a))
|
|
814
814
|
try {
|
|
815
|
-
for (var
|
|
815
|
+
for (var s = ke(a), l = s.next(); !l.done; l = s.next()) {
|
|
816
816
|
var u = l.value;
|
|
817
817
|
u.remove(this);
|
|
818
818
|
}
|
|
@@ -820,52 +820,52 @@ var Te = function() {
|
|
|
820
820
|
t = { error: g };
|
|
821
821
|
} finally {
|
|
822
822
|
try {
|
|
823
|
-
l && !l.done && (r =
|
|
823
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
824
824
|
} finally {
|
|
825
825
|
if (t)
|
|
826
826
|
throw t.error;
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
else
|
|
830
|
-
|
|
830
|
+
a.remove(this);
|
|
831
831
|
var h = this.initialTeardown;
|
|
832
832
|
if (D(h))
|
|
833
833
|
try {
|
|
834
834
|
h();
|
|
835
835
|
} catch (g) {
|
|
836
|
-
|
|
836
|
+
o = g instanceof Ce ? g.errors : [g];
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
if (
|
|
838
|
+
var f = this._finalizers;
|
|
839
|
+
if (f) {
|
|
840
840
|
this._finalizers = null;
|
|
841
841
|
try {
|
|
842
|
-
for (var
|
|
842
|
+
for (var c = ke(f), m = c.next(); !m.done; m = c.next()) {
|
|
843
843
|
var b = m.value;
|
|
844
844
|
try {
|
|
845
|
-
|
|
845
|
+
dt(b);
|
|
846
846
|
} catch (g) {
|
|
847
|
-
|
|
847
|
+
o = o != null ? o : [], g instanceof Ce ? o = K(K([], Ve(o)), Ve(g.errors)) : o.push(g);
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
} catch (g) {
|
|
851
851
|
n = { error: g };
|
|
852
852
|
} finally {
|
|
853
853
|
try {
|
|
854
|
-
m && !m.done && (i =
|
|
854
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
855
855
|
} finally {
|
|
856
856
|
if (n)
|
|
857
857
|
throw n.error;
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
|
-
if (
|
|
862
|
-
throw new
|
|
861
|
+
if (o)
|
|
862
|
+
throw new Ce(o);
|
|
863
863
|
}
|
|
864
864
|
}, e.prototype.add = function(t) {
|
|
865
865
|
var r;
|
|
866
866
|
if (t && t !== this)
|
|
867
867
|
if (this.closed)
|
|
868
|
-
|
|
868
|
+
dt(t);
|
|
869
869
|
else {
|
|
870
870
|
if (t instanceof e) {
|
|
871
871
|
if (t.closed || t._hasParent(this))
|
|
@@ -882,56 +882,56 @@ var Te = function() {
|
|
|
882
882
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
883
883
|
}, e.prototype._removeParent = function(t) {
|
|
884
884
|
var r = this._parentage;
|
|
885
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
885
|
+
r === t ? this._parentage = null : Array.isArray(r) && Xe(r, t);
|
|
886
886
|
}, e.prototype.remove = function(t) {
|
|
887
887
|
var r = this._finalizers;
|
|
888
|
-
r &&
|
|
888
|
+
r && Xe(r, t), t instanceof e && t._removeParent(this);
|
|
889
889
|
}, e.EMPTY = function() {
|
|
890
890
|
var t = new e();
|
|
891
891
|
return t.closed = !0, t;
|
|
892
892
|
}(), e;
|
|
893
|
-
}(),
|
|
894
|
-
function
|
|
893
|
+
}(), Zt = Te.EMPTY;
|
|
894
|
+
function Qt(e) {
|
|
895
895
|
return e instanceof Te || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function dt(e) {
|
|
898
898
|
D(e) ? e() : e.unsubscribe();
|
|
899
899
|
}
|
|
900
|
-
var
|
|
900
|
+
var Jt = {
|
|
901
901
|
onUnhandledError: null,
|
|
902
902
|
onStoppedNotification: null,
|
|
903
903
|
Promise: void 0,
|
|
904
904
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
905
905
|
useDeprecatedNextContext: !1
|
|
906
|
-
},
|
|
906
|
+
}, rn = {
|
|
907
907
|
setTimeout: function(e, t) {
|
|
908
908
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
909
909
|
r[n - 2] = arguments[n];
|
|
910
|
-
return setTimeout.apply(void 0, K([e, t],
|
|
910
|
+
return setTimeout.apply(void 0, K([e, t], Ve(r)));
|
|
911
911
|
},
|
|
912
912
|
clearTimeout: function(e) {
|
|
913
913
|
return clearTimeout(e);
|
|
914
914
|
},
|
|
915
915
|
delegate: void 0
|
|
916
916
|
};
|
|
917
|
-
function
|
|
918
|
-
|
|
917
|
+
function nn(e) {
|
|
918
|
+
rn.setTimeout(function() {
|
|
919
919
|
throw e;
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function pt() {
|
|
923
923
|
}
|
|
924
924
|
function ge(e) {
|
|
925
925
|
e();
|
|
926
926
|
}
|
|
927
|
-
var
|
|
927
|
+
var qt = function(e) {
|
|
928
928
|
G(t, e);
|
|
929
929
|
function t(r) {
|
|
930
930
|
var n = e.call(this) || this;
|
|
931
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
931
|
+
return n.isStopped = !1, r ? (n.destination = r, Qt(r) && r.add(n)) : n.destination = un, n;
|
|
932
932
|
}
|
|
933
933
|
return t.create = function(r, n, i) {
|
|
934
|
-
return new
|
|
934
|
+
return new We(r, n, i);
|
|
935
935
|
}, t.prototype.next = function(r) {
|
|
936
936
|
this.isStopped || this._next(r);
|
|
937
937
|
}, t.prototype.error = function(r) {
|
|
@@ -955,7 +955,11 @@ var Zt = function(e) {
|
|
|
955
955
|
this.unsubscribe();
|
|
956
956
|
}
|
|
957
957
|
}, t;
|
|
958
|
-
}(Te),
|
|
958
|
+
}(Te), on = Function.prototype.bind;
|
|
959
|
+
function Le(e, t) {
|
|
960
|
+
return on.call(e, t);
|
|
961
|
+
}
|
|
962
|
+
var sn = function() {
|
|
959
963
|
function e(t) {
|
|
960
964
|
this.partialObserver = t;
|
|
961
965
|
}
|
|
@@ -986,43 +990,55 @@ var Zt = function(e) {
|
|
|
986
990
|
pe(r);
|
|
987
991
|
}
|
|
988
992
|
}, e;
|
|
989
|
-
}(),
|
|
993
|
+
}(), We = function(e) {
|
|
990
994
|
G(t, e);
|
|
991
995
|
function t(r, n, i) {
|
|
992
|
-
var
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
996
|
+
var o = e.call(this) || this, a;
|
|
997
|
+
if (D(r) || !r)
|
|
998
|
+
a = {
|
|
999
|
+
next: r != null ? r : void 0,
|
|
1000
|
+
error: n != null ? n : void 0,
|
|
1001
|
+
complete: i != null ? i : void 0
|
|
1002
|
+
};
|
|
1003
|
+
else {
|
|
1004
|
+
var s;
|
|
1005
|
+
o && Jt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
1006
|
+
return o.unsubscribe();
|
|
1007
|
+
}, a = {
|
|
1008
|
+
next: r.next && Le(r.next, s),
|
|
1009
|
+
error: r.error && Le(r.error, s),
|
|
1010
|
+
complete: r.complete && Le(r.complete, s)
|
|
1011
|
+
}) : a = r;
|
|
1012
|
+
}
|
|
1013
|
+
return o.destination = new sn(a), o;
|
|
998
1014
|
}
|
|
999
1015
|
return t;
|
|
1000
|
-
}(
|
|
1016
|
+
}(qt);
|
|
1001
1017
|
function pe(e) {
|
|
1002
|
-
|
|
1018
|
+
nn(e);
|
|
1003
1019
|
}
|
|
1004
|
-
function
|
|
1020
|
+
function an(e) {
|
|
1005
1021
|
throw e;
|
|
1006
1022
|
}
|
|
1007
|
-
var
|
|
1023
|
+
var un = {
|
|
1008
1024
|
closed: !0,
|
|
1009
|
-
next:
|
|
1010
|
-
error:
|
|
1011
|
-
complete:
|
|
1012
|
-
},
|
|
1025
|
+
next: pt,
|
|
1026
|
+
error: an,
|
|
1027
|
+
complete: pt
|
|
1028
|
+
}, ln = function() {
|
|
1013
1029
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1014
1030
|
}();
|
|
1015
|
-
function
|
|
1031
|
+
function hn(e) {
|
|
1016
1032
|
return e;
|
|
1017
1033
|
}
|
|
1018
|
-
function
|
|
1019
|
-
return e.length === 0 ?
|
|
1034
|
+
function cn(e) {
|
|
1035
|
+
return e.length === 0 ? hn : e.length === 1 ? e[0] : function(r) {
|
|
1020
1036
|
return e.reduce(function(n, i) {
|
|
1021
1037
|
return i(n);
|
|
1022
1038
|
}, r);
|
|
1023
1039
|
};
|
|
1024
1040
|
}
|
|
1025
|
-
var
|
|
1041
|
+
var mt = function() {
|
|
1026
1042
|
function e(t) {
|
|
1027
1043
|
t && (this._subscribe = t);
|
|
1028
1044
|
}
|
|
@@ -1030,11 +1046,11 @@ var dt = function() {
|
|
|
1030
1046
|
var r = new e();
|
|
1031
1047
|
return r.source = this, r.operator = t, r;
|
|
1032
1048
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
1033
|
-
var i = this,
|
|
1049
|
+
var i = this, o = dn(t) ? t : new We(t, r, n);
|
|
1034
1050
|
return ge(function() {
|
|
1035
|
-
var
|
|
1036
|
-
|
|
1037
|
-
}),
|
|
1051
|
+
var a = i, s = a.operator, l = a.source;
|
|
1052
|
+
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
1053
|
+
}), o;
|
|
1038
1054
|
}, e.prototype._trySubscribe = function(t) {
|
|
1039
1055
|
try {
|
|
1040
1056
|
return this._subscribe(t);
|
|
@@ -1043,87 +1059,87 @@ var dt = function() {
|
|
|
1043
1059
|
}
|
|
1044
1060
|
}, e.prototype.forEach = function(t, r) {
|
|
1045
1061
|
var n = this;
|
|
1046
|
-
return r =
|
|
1047
|
-
var
|
|
1048
|
-
next: function(
|
|
1062
|
+
return r = bt(r), new r(function(i, o) {
|
|
1063
|
+
var a = new We({
|
|
1064
|
+
next: function(s) {
|
|
1049
1065
|
try {
|
|
1050
|
-
t(
|
|
1066
|
+
t(s);
|
|
1051
1067
|
} catch (l) {
|
|
1052
|
-
|
|
1068
|
+
o(l), a.unsubscribe();
|
|
1053
1069
|
}
|
|
1054
1070
|
},
|
|
1055
|
-
error:
|
|
1071
|
+
error: o,
|
|
1056
1072
|
complete: i
|
|
1057
1073
|
});
|
|
1058
|
-
n.subscribe(
|
|
1074
|
+
n.subscribe(a);
|
|
1059
1075
|
});
|
|
1060
1076
|
}, e.prototype._subscribe = function(t) {
|
|
1061
1077
|
var r;
|
|
1062
1078
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1063
|
-
}, e.prototype[
|
|
1079
|
+
}, e.prototype[ln] = function() {
|
|
1064
1080
|
return this;
|
|
1065
1081
|
}, e.prototype.pipe = function() {
|
|
1066
1082
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1067
1083
|
t[r] = arguments[r];
|
|
1068
|
-
return
|
|
1084
|
+
return cn(t)(this);
|
|
1069
1085
|
}, e.prototype.toPromise = function(t) {
|
|
1070
1086
|
var r = this;
|
|
1071
|
-
return t =
|
|
1072
|
-
var
|
|
1073
|
-
r.subscribe(function(
|
|
1074
|
-
return
|
|
1075
|
-
}, function(
|
|
1076
|
-
return i(
|
|
1087
|
+
return t = bt(t), new t(function(n, i) {
|
|
1088
|
+
var o;
|
|
1089
|
+
r.subscribe(function(a) {
|
|
1090
|
+
return o = a;
|
|
1091
|
+
}, function(a) {
|
|
1092
|
+
return i(a);
|
|
1077
1093
|
}, function() {
|
|
1078
|
-
return n(
|
|
1094
|
+
return n(o);
|
|
1079
1095
|
});
|
|
1080
1096
|
});
|
|
1081
1097
|
}, e.create = function(t) {
|
|
1082
1098
|
return new e(t);
|
|
1083
1099
|
}, e;
|
|
1084
1100
|
}();
|
|
1085
|
-
function
|
|
1101
|
+
function bt(e) {
|
|
1086
1102
|
var t;
|
|
1087
|
-
return (t = e != null ? e :
|
|
1103
|
+
return (t = e != null ? e : Jt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1088
1104
|
}
|
|
1089
|
-
function
|
|
1105
|
+
function fn(e) {
|
|
1090
1106
|
return e && D(e.next) && D(e.error) && D(e.complete);
|
|
1091
1107
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return e && e instanceof
|
|
1108
|
+
function dn(e) {
|
|
1109
|
+
return e && e instanceof qt || fn(e) && Qt(e);
|
|
1094
1110
|
}
|
|
1095
|
-
var
|
|
1111
|
+
var pn = zt(function(e) {
|
|
1096
1112
|
return function() {
|
|
1097
1113
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1098
1114
|
};
|
|
1099
|
-
}),
|
|
1115
|
+
}), Yt = function(e) {
|
|
1100
1116
|
G(t, e);
|
|
1101
1117
|
function t() {
|
|
1102
1118
|
var r = e.call(this) || this;
|
|
1103
1119
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1104
1120
|
}
|
|
1105
1121
|
return t.prototype.lift = function(r) {
|
|
1106
|
-
var n = new
|
|
1122
|
+
var n = new yt(this, this);
|
|
1107
1123
|
return n.operator = r, n;
|
|
1108
1124
|
}, t.prototype._throwIfClosed = function() {
|
|
1109
1125
|
if (this.closed)
|
|
1110
|
-
throw new
|
|
1126
|
+
throw new pn();
|
|
1111
1127
|
}, t.prototype.next = function(r) {
|
|
1112
1128
|
var n = this;
|
|
1113
1129
|
ge(function() {
|
|
1114
|
-
var i,
|
|
1130
|
+
var i, o;
|
|
1115
1131
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1116
1132
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1117
1133
|
try {
|
|
1118
|
-
for (var
|
|
1119
|
-
var l =
|
|
1134
|
+
for (var a = ke(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1135
|
+
var l = s.value;
|
|
1120
1136
|
l.next(r);
|
|
1121
1137
|
}
|
|
1122
1138
|
} catch (u) {
|
|
1123
1139
|
i = { error: u };
|
|
1124
1140
|
} finally {
|
|
1125
1141
|
try {
|
|
1126
|
-
|
|
1142
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
1127
1143
|
} finally {
|
|
1128
1144
|
if (i)
|
|
1129
1145
|
throw i.error;
|
|
@@ -1163,20 +1179,20 @@ var hn = Xt(function(e) {
|
|
|
1163
1179
|
}, t.prototype._subscribe = function(r) {
|
|
1164
1180
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1165
1181
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1166
|
-
var n = this, i = this,
|
|
1167
|
-
return
|
|
1168
|
-
n.currentObservers = null,
|
|
1182
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1183
|
+
return o || a ? Zt : (this.currentObservers = null, s.push(r), new Te(function() {
|
|
1184
|
+
n.currentObservers = null, Xe(s, r);
|
|
1169
1185
|
}));
|
|
1170
1186
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1171
|
-
var n = this, i = n.hasError,
|
|
1172
|
-
i ? r.error(
|
|
1187
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1188
|
+
i ? r.error(o) : a && r.complete();
|
|
1173
1189
|
}, t.prototype.asObservable = function() {
|
|
1174
|
-
var r = new
|
|
1190
|
+
var r = new mt();
|
|
1175
1191
|
return r.source = this, r;
|
|
1176
1192
|
}, t.create = function(r, n) {
|
|
1177
|
-
return new
|
|
1193
|
+
return new yt(r, n);
|
|
1178
1194
|
}, t;
|
|
1179
|
-
}(
|
|
1195
|
+
}(mt), yt = function(e) {
|
|
1180
1196
|
G(t, e);
|
|
1181
1197
|
function t(r, n) {
|
|
1182
1198
|
var i = e.call(this) || this;
|
|
@@ -1193,54 +1209,54 @@ var hn = Xt(function(e) {
|
|
|
1193
1209
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1194
1210
|
}, t.prototype._subscribe = function(r) {
|
|
1195
1211
|
var n, i;
|
|
1196
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1212
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Zt;
|
|
1197
1213
|
}, t;
|
|
1198
|
-
}(
|
|
1214
|
+
}(Yt), Kt = {
|
|
1199
1215
|
now: function() {
|
|
1200
|
-
return (
|
|
1216
|
+
return (Kt.delegate || Date).now();
|
|
1201
1217
|
},
|
|
1202
1218
|
delegate: void 0
|
|
1203
|
-
},
|
|
1219
|
+
}, mn = function(e) {
|
|
1204
1220
|
G(t, e);
|
|
1205
1221
|
function t(r, n, i) {
|
|
1206
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1207
|
-
var
|
|
1208
|
-
return
|
|
1222
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Kt);
|
|
1223
|
+
var o = e.call(this) || this;
|
|
1224
|
+
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;
|
|
1209
1225
|
}
|
|
1210
1226
|
return t.prototype.next = function(r) {
|
|
1211
|
-
var n = this, i = n.isStopped,
|
|
1212
|
-
i || (
|
|
1227
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
|
|
1228
|
+
i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1213
1229
|
}, t.prototype._subscribe = function(r) {
|
|
1214
1230
|
this._throwIfClosed(), this._trimBuffer();
|
|
1215
|
-
for (var n = this._innerSubscribe(r), i = this,
|
|
1216
|
-
r.next(
|
|
1231
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
1232
|
+
r.next(s[l]);
|
|
1217
1233
|
return this._checkFinalizedStatuses(r), n;
|
|
1218
1234
|
}, t.prototype._trimBuffer = function() {
|
|
1219
|
-
var r = this, n = r._bufferSize, i = r._timestampProvider,
|
|
1220
|
-
if (n < 1 / 0 &&
|
|
1221
|
-
for (var l = i.now(), u = 0, h = 1; h <
|
|
1235
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
1236
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1237
|
+
for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1222
1238
|
u = h;
|
|
1223
|
-
u &&
|
|
1239
|
+
u && o.splice(0, u + 1);
|
|
1224
1240
|
}
|
|
1225
1241
|
}, t;
|
|
1226
|
-
}(
|
|
1227
|
-
const
|
|
1228
|
-
if (
|
|
1229
|
-
const r = new
|
|
1230
|
-
|
|
1242
|
+
}(Yt);
|
|
1243
|
+
const gt = [], vt = {}, bn = (e, t = 0) => {
|
|
1244
|
+
if (gt.indexOf(e) == -1) {
|
|
1245
|
+
const r = new mn(t);
|
|
1246
|
+
vt[e] = r, gt.push(e);
|
|
1231
1247
|
}
|
|
1232
|
-
return
|
|
1248
|
+
return vt[e];
|
|
1233
1249
|
}, J = [];
|
|
1234
|
-
function
|
|
1250
|
+
function yn(e, t) {
|
|
1235
1251
|
return {
|
|
1236
1252
|
subscribe: He(e, t).subscribe
|
|
1237
1253
|
};
|
|
1238
1254
|
}
|
|
1239
|
-
function He(e, t =
|
|
1255
|
+
function He(e, t = A) {
|
|
1240
1256
|
let r;
|
|
1241
1257
|
const n = /* @__PURE__ */ new Set();
|
|
1242
|
-
function i(
|
|
1243
|
-
if (
|
|
1258
|
+
function i(s) {
|
|
1259
|
+
if (Ut(e, s) && (e = s, r)) {
|
|
1244
1260
|
const l = !J.length;
|
|
1245
1261
|
for (const u of n)
|
|
1246
1262
|
u[1](), J.push(u, e);
|
|
@@ -1251,112 +1267,112 @@ function He(e, t = O) {
|
|
|
1251
1267
|
}
|
|
1252
1268
|
}
|
|
1253
1269
|
}
|
|
1254
|
-
function s
|
|
1255
|
-
i(
|
|
1270
|
+
function o(s) {
|
|
1271
|
+
i(s(e));
|
|
1256
1272
|
}
|
|
1257
|
-
function
|
|
1258
|
-
const u = [
|
|
1259
|
-
return n.add(u), n.size === 1 && (r = t(i,
|
|
1273
|
+
function a(s, l = A) {
|
|
1274
|
+
const u = [s, l];
|
|
1275
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || A), s(e), () => {
|
|
1260
1276
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1261
1277
|
};
|
|
1262
1278
|
}
|
|
1263
|
-
return { set: i, update:
|
|
1279
|
+
return { set: i, update: o, subscribe: a };
|
|
1264
1280
|
}
|
|
1265
1281
|
function ie(e, t, r) {
|
|
1266
1282
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1267
1283
|
if (!i.every(Boolean))
|
|
1268
1284
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1269
|
-
const
|
|
1270
|
-
return
|
|
1285
|
+
const o = t.length < 2;
|
|
1286
|
+
return yn(r, (a, s) => {
|
|
1271
1287
|
let l = !1;
|
|
1272
1288
|
const u = [];
|
|
1273
|
-
let h = 0,
|
|
1274
|
-
const
|
|
1289
|
+
let h = 0, f = A;
|
|
1290
|
+
const c = () => {
|
|
1275
1291
|
if (h)
|
|
1276
1292
|
return;
|
|
1277
|
-
|
|
1278
|
-
const b = t(n ? u[0] : u,
|
|
1279
|
-
|
|
1293
|
+
f();
|
|
1294
|
+
const b = t(n ? u[0] : u, a, s);
|
|
1295
|
+
o ? a(b) : f = Se(b) ? b : A;
|
|
1280
1296
|
}, m = i.map(
|
|
1281
|
-
(b, g) =>
|
|
1297
|
+
(b, g) => Gt(
|
|
1282
1298
|
b,
|
|
1283
1299
|
(S) => {
|
|
1284
|
-
u[g] = S, h &= ~(1 << g), l &&
|
|
1300
|
+
u[g] = S, h &= ~(1 << g), l && c();
|
|
1285
1301
|
},
|
|
1286
1302
|
() => {
|
|
1287
1303
|
h |= 1 << g;
|
|
1288
1304
|
}
|
|
1289
1305
|
)
|
|
1290
1306
|
);
|
|
1291
|
-
return l = !0,
|
|
1292
|
-
|
|
1307
|
+
return l = !0, c(), function() {
|
|
1308
|
+
z(m), f(), l = !1;
|
|
1293
1309
|
};
|
|
1294
1310
|
});
|
|
1295
1311
|
}
|
|
1296
|
-
function
|
|
1297
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1312
|
+
function gn(e) {
|
|
1313
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1298
1314
|
}
|
|
1299
|
-
var
|
|
1300
|
-
return
|
|
1315
|
+
var vn = function(t) {
|
|
1316
|
+
return _n(t) && !En(t);
|
|
1301
1317
|
};
|
|
1302
|
-
function
|
|
1318
|
+
function _n(e) {
|
|
1303
1319
|
return !!e && typeof e == "object";
|
|
1304
1320
|
}
|
|
1305
|
-
function
|
|
1321
|
+
function En(e) {
|
|
1306
1322
|
var t = Object.prototype.toString.call(e);
|
|
1307
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1323
|
+
return t === "[object RegExp]" || t === "[object Date]" || wn(e);
|
|
1308
1324
|
}
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1311
|
-
return e.$$typeof ===
|
|
1325
|
+
var xn = typeof Symbol == "function" && Symbol.for, Sn = xn ? Symbol.for("react.element") : 60103;
|
|
1326
|
+
function wn(e) {
|
|
1327
|
+
return e.$$typeof === Sn;
|
|
1312
1328
|
}
|
|
1313
|
-
function
|
|
1329
|
+
function Tn(e) {
|
|
1314
1330
|
return Array.isArray(e) ? [] : {};
|
|
1315
1331
|
}
|
|
1316
1332
|
function he(e, t) {
|
|
1317
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ee(
|
|
1333
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee(Tn(e), e, t) : e;
|
|
1318
1334
|
}
|
|
1319
|
-
function
|
|
1335
|
+
function Hn(e, t, r) {
|
|
1320
1336
|
return e.concat(t).map(function(n) {
|
|
1321
1337
|
return he(n, r);
|
|
1322
1338
|
});
|
|
1323
1339
|
}
|
|
1324
|
-
function
|
|
1340
|
+
function Bn(e, t) {
|
|
1325
1341
|
if (!t.customMerge)
|
|
1326
1342
|
return ee;
|
|
1327
1343
|
var r = t.customMerge(e);
|
|
1328
1344
|
return typeof r == "function" ? r : ee;
|
|
1329
1345
|
}
|
|
1330
|
-
function
|
|
1346
|
+
function Pn(e) {
|
|
1331
1347
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1332
1348
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1333
1349
|
}) : [];
|
|
1334
1350
|
}
|
|
1335
|
-
function
|
|
1336
|
-
return Object.keys(e).concat(
|
|
1351
|
+
function _t(e) {
|
|
1352
|
+
return Object.keys(e).concat(Pn(e));
|
|
1337
1353
|
}
|
|
1338
|
-
function
|
|
1354
|
+
function er(e, t) {
|
|
1339
1355
|
try {
|
|
1340
1356
|
return t in e;
|
|
1341
1357
|
} catch (r) {
|
|
1342
1358
|
return !1;
|
|
1343
1359
|
}
|
|
1344
1360
|
}
|
|
1345
|
-
function
|
|
1346
|
-
return
|
|
1361
|
+
function An(e, t) {
|
|
1362
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1347
1363
|
}
|
|
1348
|
-
function
|
|
1364
|
+
function On(e, t, r) {
|
|
1349
1365
|
var n = {};
|
|
1350
|
-
return r.isMergeableObject(e) &&
|
|
1366
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(i) {
|
|
1351
1367
|
n[i] = he(e[i], r);
|
|
1352
|
-
}),
|
|
1353
|
-
|
|
1368
|
+
}), _t(t).forEach(function(i) {
|
|
1369
|
+
An(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = Bn(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
|
|
1354
1370
|
}), n;
|
|
1355
1371
|
}
|
|
1356
1372
|
function ee(e, t, r) {
|
|
1357
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1358
|
-
var n = Array.isArray(t), i = Array.isArray(e),
|
|
1359
|
-
return
|
|
1373
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hn, r.isMergeableObject = r.isMergeableObject || vn, r.cloneUnlessOtherwiseSpecified = he;
|
|
1374
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1375
|
+
return o ? n ? r.arrayMerge(e, t, r) : On(e, t, r) : he(t, r);
|
|
1360
1376
|
}
|
|
1361
1377
|
ee.all = function(t, r) {
|
|
1362
1378
|
if (!Array.isArray(t))
|
|
@@ -1365,60 +1381,58 @@ ee.all = function(t, r) {
|
|
|
1365
1381
|
return ee(n, i, r);
|
|
1366
1382
|
}, {});
|
|
1367
1383
|
};
|
|
1368
|
-
var
|
|
1369
|
-
const
|
|
1370
|
-
function
|
|
1371
|
-
var r = t && t.cache ? t.cache :
|
|
1384
|
+
var In = ee, Cn = In;
|
|
1385
|
+
const Ln = /* @__PURE__ */ gn(Cn);
|
|
1386
|
+
function Me(e, t) {
|
|
1387
|
+
var r = t && t.cache ? t.cache : Un, n = t && t.serializer ? t.serializer : Dn, i = t && t.strategy ? t.strategy : Nn;
|
|
1372
1388
|
return i(e, {
|
|
1373
1389
|
cache: r,
|
|
1374
1390
|
serializer: n
|
|
1375
1391
|
});
|
|
1376
1392
|
}
|
|
1377
|
-
function
|
|
1393
|
+
function Mn(e) {
|
|
1378
1394
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1379
1395
|
}
|
|
1380
|
-
function
|
|
1381
|
-
var i =
|
|
1382
|
-
return typeof
|
|
1396
|
+
function tr(e, t, r, n) {
|
|
1397
|
+
var i = Mn(n) ? n : r(n), o = t.get(i);
|
|
1398
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1383
1399
|
}
|
|
1384
|
-
function
|
|
1385
|
-
var n = Array.prototype.slice.call(arguments, 3), i = r(n),
|
|
1386
|
-
return typeof
|
|
1400
|
+
function rr(e, t, r) {
|
|
1401
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1402
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1387
1403
|
}
|
|
1388
|
-
function
|
|
1404
|
+
function rt(e, t, r, n, i) {
|
|
1389
1405
|
return r.bind(t, e, n, i);
|
|
1390
1406
|
}
|
|
1391
|
-
function
|
|
1392
|
-
var r = e.length === 1 ?
|
|
1393
|
-
return
|
|
1407
|
+
function Nn(e, t) {
|
|
1408
|
+
var r = e.length === 1 ? tr : rr;
|
|
1409
|
+
return rt(e, this, r, t.cache.create(), t.serializer);
|
|
1394
1410
|
}
|
|
1395
|
-
function
|
|
1396
|
-
return
|
|
1411
|
+
function Rn(e, t) {
|
|
1412
|
+
return rt(e, this, rr, t.cache.create(), t.serializer);
|
|
1397
1413
|
}
|
|
1398
|
-
function
|
|
1399
|
-
return
|
|
1414
|
+
function $n(e, t) {
|
|
1415
|
+
return rt(e, this, tr, t.cache.create(), t.serializer);
|
|
1400
1416
|
}
|
|
1401
|
-
var
|
|
1417
|
+
var Dn = function() {
|
|
1402
1418
|
return JSON.stringify(arguments);
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
}()
|
|
1415
|
-
), Rn = {
|
|
1419
|
+
};
|
|
1420
|
+
function nt() {
|
|
1421
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1422
|
+
}
|
|
1423
|
+
nt.prototype.get = function(e) {
|
|
1424
|
+
return this.cache[e];
|
|
1425
|
+
};
|
|
1426
|
+
nt.prototype.set = function(e, t) {
|
|
1427
|
+
this.cache[e] = t;
|
|
1428
|
+
};
|
|
1429
|
+
var Un = {
|
|
1416
1430
|
create: function() {
|
|
1417
|
-
return new
|
|
1431
|
+
return new nt();
|
|
1418
1432
|
}
|
|
1419
1433
|
}, Ne = {
|
|
1420
|
-
variadic:
|
|
1421
|
-
monadic:
|
|
1434
|
+
variadic: Rn,
|
|
1435
|
+
monadic: $n
|
|
1422
1436
|
}, y;
|
|
1423
1437
|
(function(e) {
|
|
1424
1438
|
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";
|
|
@@ -1431,43 +1445,43 @@ var te;
|
|
|
1431
1445
|
(function(e) {
|
|
1432
1446
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1433
1447
|
})(te || (te = {}));
|
|
1434
|
-
function
|
|
1448
|
+
function Et(e) {
|
|
1435
1449
|
return e.type === E.literal;
|
|
1436
1450
|
}
|
|
1437
|
-
function
|
|
1451
|
+
function Gn(e) {
|
|
1438
1452
|
return e.type === E.argument;
|
|
1439
1453
|
}
|
|
1440
|
-
function
|
|
1454
|
+
function nr(e) {
|
|
1441
1455
|
return e.type === E.number;
|
|
1442
1456
|
}
|
|
1443
|
-
function
|
|
1457
|
+
function ir(e) {
|
|
1444
1458
|
return e.type === E.date;
|
|
1445
1459
|
}
|
|
1446
|
-
function
|
|
1460
|
+
function or(e) {
|
|
1447
1461
|
return e.type === E.time;
|
|
1448
1462
|
}
|
|
1449
|
-
function
|
|
1463
|
+
function sr(e) {
|
|
1450
1464
|
return e.type === E.select;
|
|
1451
1465
|
}
|
|
1452
|
-
function
|
|
1466
|
+
function ar(e) {
|
|
1453
1467
|
return e.type === E.plural;
|
|
1454
1468
|
}
|
|
1455
|
-
function
|
|
1469
|
+
function Fn(e) {
|
|
1456
1470
|
return e.type === E.pound;
|
|
1457
1471
|
}
|
|
1458
|
-
function
|
|
1472
|
+
function ur(e) {
|
|
1459
1473
|
return e.type === E.tag;
|
|
1460
1474
|
}
|
|
1461
|
-
function
|
|
1475
|
+
function lr(e) {
|
|
1462
1476
|
return !!(e && typeof e == "object" && e.type === te.number);
|
|
1463
1477
|
}
|
|
1464
|
-
function
|
|
1478
|
+
function ze(e) {
|
|
1465
1479
|
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
1466
1480
|
}
|
|
1467
|
-
var
|
|
1468
|
-
function
|
|
1481
|
+
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jn = /(?:[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;
|
|
1482
|
+
function kn(e) {
|
|
1469
1483
|
var t = {};
|
|
1470
|
-
return e.replace(
|
|
1484
|
+
return e.replace(jn, function(r) {
|
|
1471
1485
|
var n = r.length;
|
|
1472
1486
|
switch (r[0]) {
|
|
1473
1487
|
case "G":
|
|
@@ -1556,36 +1570,36 @@ function Gn(e) {
|
|
|
1556
1570
|
return "";
|
|
1557
1571
|
}), t;
|
|
1558
1572
|
}
|
|
1559
|
-
var
|
|
1560
|
-
function
|
|
1573
|
+
var Vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1574
|
+
function Xn(e) {
|
|
1561
1575
|
if (e.length === 0)
|
|
1562
1576
|
throw new Error("Number skeleton cannot be empty");
|
|
1563
|
-
for (var t = e.split(
|
|
1564
|
-
return
|
|
1577
|
+
for (var t = e.split(Vn).filter(function(c) {
|
|
1578
|
+
return c.length > 0;
|
|
1565
1579
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1566
|
-
var
|
|
1567
|
-
if (
|
|
1580
|
+
var o = i[n], a = o.split("/");
|
|
1581
|
+
if (a.length === 0)
|
|
1568
1582
|
throw new Error("Invalid number skeleton");
|
|
1569
|
-
for (var
|
|
1570
|
-
var
|
|
1571
|
-
if (
|
|
1583
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1584
|
+
var f = h[u];
|
|
1585
|
+
if (f.length === 0)
|
|
1572
1586
|
throw new Error("Invalid number skeleton");
|
|
1573
1587
|
}
|
|
1574
|
-
r.push({ stem:
|
|
1588
|
+
r.push({ stem: s, options: l });
|
|
1575
1589
|
}
|
|
1576
1590
|
return r;
|
|
1577
1591
|
}
|
|
1578
|
-
function
|
|
1592
|
+
function Wn(e) {
|
|
1579
1593
|
return e.replace(/^(.*?)-/, "");
|
|
1580
1594
|
}
|
|
1581
|
-
var
|
|
1582
|
-
function
|
|
1595
|
+
var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, zn = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
|
1596
|
+
function St(e) {
|
|
1583
1597
|
var t = {};
|
|
1584
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1598
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
|
1585
1599
|
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)), "";
|
|
1586
1600
|
}), t;
|
|
1587
1601
|
}
|
|
1588
|
-
function
|
|
1602
|
+
function dr(e) {
|
|
1589
1603
|
switch (e) {
|
|
1590
1604
|
case "sign-auto":
|
|
1591
1605
|
return {
|
|
@@ -1625,7 +1639,7 @@ function hr(e) {
|
|
|
1625
1639
|
};
|
|
1626
1640
|
}
|
|
1627
1641
|
}
|
|
1628
|
-
function
|
|
1642
|
+
function Zn(e) {
|
|
1629
1643
|
var t;
|
|
1630
1644
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1631
1645
|
notation: "engineering"
|
|
@@ -1633,17 +1647,17 @@ function Xn(e) {
|
|
|
1633
1647
|
notation: "scientific"
|
|
1634
1648
|
}, e = e.slice(1)), t) {
|
|
1635
1649
|
var r = e.slice(0, 2);
|
|
1636
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1650
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
|
1637
1651
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1638
1652
|
t.minimumIntegerDigits = e.length;
|
|
1639
1653
|
}
|
|
1640
1654
|
return t;
|
|
1641
1655
|
}
|
|
1642
|
-
function
|
|
1643
|
-
var t = {}, r =
|
|
1656
|
+
function wt(e) {
|
|
1657
|
+
var t = {}, r = dr(e);
|
|
1644
1658
|
return r || t;
|
|
1645
1659
|
}
|
|
1646
|
-
function
|
|
1660
|
+
function Qn(e) {
|
|
1647
1661
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1648
1662
|
var i = n[r];
|
|
1649
1663
|
switch (i.stem) {
|
|
@@ -1667,7 +1681,7 @@ function Wn(e) {
|
|
|
1667
1681
|
continue;
|
|
1668
1682
|
case "measure-unit":
|
|
1669
1683
|
case "unit":
|
|
1670
|
-
t.style = "unit", t.unit =
|
|
1684
|
+
t.style = "unit", t.unit = Wn(i.options[0]);
|
|
1671
1685
|
continue;
|
|
1672
1686
|
case "compact-short":
|
|
1673
1687
|
case "K":
|
|
@@ -1678,13 +1692,13 @@ function Wn(e) {
|
|
|
1678
1692
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1679
1693
|
continue;
|
|
1680
1694
|
case "scientific":
|
|
1681
|
-
t =
|
|
1682
|
-
return
|
|
1695
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1696
|
+
return _(_({}, l), wt(u));
|
|
1683
1697
|
}, {}));
|
|
1684
1698
|
continue;
|
|
1685
1699
|
case "engineering":
|
|
1686
|
-
t =
|
|
1687
|
-
return
|
|
1700
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1701
|
+
return _(_({}, l), wt(u));
|
|
1688
1702
|
}, {}));
|
|
1689
1703
|
continue;
|
|
1690
1704
|
case "notation-simple":
|
|
@@ -1729,11 +1743,11 @@ function Wn(e) {
|
|
|
1729
1743
|
case "integer-width":
|
|
1730
1744
|
if (i.options.length > 1)
|
|
1731
1745
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1732
|
-
i.options[0].replace(
|
|
1746
|
+
i.options[0].replace(zn, function(l, u, h, f, c, m) {
|
|
1733
1747
|
if (u)
|
|
1734
1748
|
t.minimumIntegerDigits = h.length;
|
|
1735
1749
|
else {
|
|
1736
|
-
if (
|
|
1750
|
+
if (f && c)
|
|
1737
1751
|
throw new Error("We currently do not support maximum integer digits");
|
|
1738
1752
|
if (m)
|
|
1739
1753
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1742,28 +1756,28 @@ function Wn(e) {
|
|
|
1742
1756
|
});
|
|
1743
1757
|
continue;
|
|
1744
1758
|
}
|
|
1745
|
-
if (
|
|
1759
|
+
if (fr.test(i.stem)) {
|
|
1746
1760
|
t.minimumIntegerDigits = i.stem.length;
|
|
1747
1761
|
continue;
|
|
1748
1762
|
}
|
|
1749
|
-
if (
|
|
1763
|
+
if (xt.test(i.stem)) {
|
|
1750
1764
|
if (i.options.length > 1)
|
|
1751
1765
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1752
|
-
i.stem.replace(
|
|
1753
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1766
|
+
i.stem.replace(xt, function(l, u, h, f, c, m) {
|
|
1767
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1754
1768
|
});
|
|
1755
|
-
var
|
|
1756
|
-
|
|
1769
|
+
var o = i.options[0];
|
|
1770
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), St(o)));
|
|
1757
1771
|
continue;
|
|
1758
1772
|
}
|
|
1759
|
-
if (
|
|
1760
|
-
t =
|
|
1773
|
+
if (cr.test(i.stem)) {
|
|
1774
|
+
t = _(_({}, t), St(i.stem));
|
|
1761
1775
|
continue;
|
|
1762
1776
|
}
|
|
1763
|
-
var
|
|
1764
|
-
|
|
1765
|
-
var
|
|
1766
|
-
|
|
1777
|
+
var a = dr(i.stem);
|
|
1778
|
+
a && (t = _(_({}, t), a));
|
|
1779
|
+
var s = Zn(i.stem);
|
|
1780
|
+
s && (t = _(_({}, t), s));
|
|
1767
1781
|
}
|
|
1768
1782
|
return t;
|
|
1769
1783
|
}
|
|
@@ -3182,23 +3196,23 @@ var me = {
|
|
|
3182
3196
|
"h"
|
|
3183
3197
|
]
|
|
3184
3198
|
};
|
|
3185
|
-
function
|
|
3199
|
+
function Jn(e, t) {
|
|
3186
3200
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3187
3201
|
var i = e.charAt(n);
|
|
3188
3202
|
if (i === "j") {
|
|
3189
|
-
for (var
|
|
3190
|
-
|
|
3191
|
-
var
|
|
3192
|
-
for ((u == "H" || u == "k") && (
|
|
3203
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3204
|
+
o++, n++;
|
|
3205
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = qn(t);
|
|
3206
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3193
3207
|
r += l;
|
|
3194
|
-
for (;
|
|
3208
|
+
for (; a-- > 0; )
|
|
3195
3209
|
r = u + r;
|
|
3196
3210
|
} else
|
|
3197
3211
|
i === "J" ? r += "H" : r += i;
|
|
3198
3212
|
}
|
|
3199
3213
|
return r;
|
|
3200
3214
|
}
|
|
3201
|
-
function
|
|
3215
|
+
function qn(e) {
|
|
3202
3216
|
var t = e.hourCycle;
|
|
3203
3217
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3204
3218
|
e.hourCycles && // @ts-ignore
|
|
@@ -3220,20 +3234,20 @@ function Zn(e) {
|
|
|
3220
3234
|
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
3221
3235
|
return i[0];
|
|
3222
3236
|
}
|
|
3223
|
-
var
|
|
3224
|
-
function
|
|
3237
|
+
var Re, Yn = new RegExp("^".concat(hr.source, "*")), Kn = new RegExp("".concat(hr.source, "*$"));
|
|
3238
|
+
function v(e, t) {
|
|
3225
3239
|
return { start: e, end: t };
|
|
3226
3240
|
}
|
|
3227
|
-
var
|
|
3241
|
+
var ei = !!String.prototype.startsWith && "_a".startsWith("a", 1), ti = !!String.fromCodePoint, ri = !!Object.fromEntries, ni = !!String.prototype.codePointAt, ii = !!String.prototype.trimStart, oi = !!String.prototype.trimEnd, si = !!Number.isSafeInteger, ai = si ? Number.isSafeInteger : function(e) {
|
|
3228
3242
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3229
|
-
},
|
|
3243
|
+
}, Ze = !0;
|
|
3230
3244
|
try {
|
|
3231
|
-
var
|
|
3232
|
-
|
|
3245
|
+
var ui = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3246
|
+
Ze = ((Re = ui.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
|
|
3233
3247
|
} catch (e) {
|
|
3234
|
-
|
|
3248
|
+
Ze = !1;
|
|
3235
3249
|
}
|
|
3236
|
-
var
|
|
3250
|
+
var Tt = ei ? (
|
|
3237
3251
|
// Native
|
|
3238
3252
|
function(t, r, n) {
|
|
3239
3253
|
return t.startsWith(r, n);
|
|
@@ -3243,31 +3257,31 @@ var St = qn ? (
|
|
|
3243
3257
|
function(t, r, n) {
|
|
3244
3258
|
return t.slice(n, n + r.length) === r;
|
|
3245
3259
|
}
|
|
3246
|
-
),
|
|
3260
|
+
), Qe = ti ? String.fromCodePoint : (
|
|
3247
3261
|
// IE11
|
|
3248
3262
|
function() {
|
|
3249
3263
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3250
3264
|
t[r] = arguments[r];
|
|
3251
|
-
for (var n = "", i = t.length,
|
|
3252
|
-
if (
|
|
3253
|
-
throw RangeError(
|
|
3254
|
-
n +=
|
|
3265
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
3266
|
+
if (a = t[o++], a > 1114111)
|
|
3267
|
+
throw RangeError(a + " is not a valid code point");
|
|
3268
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3255
3269
|
}
|
|
3256
3270
|
return n;
|
|
3257
3271
|
}
|
|
3258
|
-
),
|
|
3272
|
+
), Ht = (
|
|
3259
3273
|
// native
|
|
3260
|
-
|
|
3274
|
+
ri ? Object.fromEntries : (
|
|
3261
3275
|
// Ponyfill
|
|
3262
3276
|
function(t) {
|
|
3263
3277
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
3264
|
-
var
|
|
3265
|
-
r[
|
|
3278
|
+
var o = i[n], a = o[0], s = o[1];
|
|
3279
|
+
r[a] = s;
|
|
3266
3280
|
}
|
|
3267
3281
|
return r;
|
|
3268
3282
|
}
|
|
3269
3283
|
)
|
|
3270
|
-
),
|
|
3284
|
+
), pr = ni ? (
|
|
3271
3285
|
// Native
|
|
3272
3286
|
function(t, r) {
|
|
3273
3287
|
return t.codePointAt(r);
|
|
@@ -3277,11 +3291,11 @@ var St = qn ? (
|
|
|
3277
3291
|
function(t, r) {
|
|
3278
3292
|
var n = t.length;
|
|
3279
3293
|
if (!(r < 0 || r >= n)) {
|
|
3280
|
-
var i = t.charCodeAt(r),
|
|
3281
|
-
return i < 55296 || i > 56319 || r + 1 === n || (
|
|
3294
|
+
var i = t.charCodeAt(r), o;
|
|
3295
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3282
3296
|
}
|
|
3283
3297
|
}
|
|
3284
|
-
),
|
|
3298
|
+
), li = ii ? (
|
|
3285
3299
|
// Native
|
|
3286
3300
|
function(t) {
|
|
3287
3301
|
return t.trimStart();
|
|
@@ -3289,9 +3303,9 @@ var St = qn ? (
|
|
|
3289
3303
|
) : (
|
|
3290
3304
|
// Ponyfill
|
|
3291
3305
|
function(t) {
|
|
3292
|
-
return t.replace(
|
|
3306
|
+
return t.replace(Yn, "");
|
|
3293
3307
|
}
|
|
3294
|
-
),
|
|
3308
|
+
), hi = oi ? (
|
|
3295
3309
|
// Native
|
|
3296
3310
|
function(t) {
|
|
3297
3311
|
return t.trimEnd();
|
|
@@ -3299,32 +3313,32 @@ var St = qn ? (
|
|
|
3299
3313
|
) : (
|
|
3300
3314
|
// Ponyfill
|
|
3301
3315
|
function(t) {
|
|
3302
|
-
return t.replace(
|
|
3316
|
+
return t.replace(Kn, "");
|
|
3303
3317
|
}
|
|
3304
3318
|
);
|
|
3305
|
-
function
|
|
3319
|
+
function mr(e, t) {
|
|
3306
3320
|
return new RegExp(e, t);
|
|
3307
3321
|
}
|
|
3308
|
-
var
|
|
3309
|
-
if (
|
|
3310
|
-
var
|
|
3311
|
-
|
|
3322
|
+
var Je;
|
|
3323
|
+
if (Ze) {
|
|
3324
|
+
var Bt = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3325
|
+
Je = function(t, r) {
|
|
3312
3326
|
var n;
|
|
3313
|
-
|
|
3314
|
-
var i =
|
|
3327
|
+
Bt.lastIndex = r;
|
|
3328
|
+
var i = Bt.exec(t);
|
|
3315
3329
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3316
3330
|
};
|
|
3317
3331
|
} else
|
|
3318
|
-
|
|
3332
|
+
Je = function(t, r) {
|
|
3319
3333
|
for (var n = []; ; ) {
|
|
3320
|
-
var i =
|
|
3321
|
-
if (i === void 0 ||
|
|
3334
|
+
var i = pr(t, r);
|
|
3335
|
+
if (i === void 0 || br(i) || pi(i))
|
|
3322
3336
|
break;
|
|
3323
3337
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3324
3338
|
}
|
|
3325
|
-
return
|
|
3339
|
+
return Qe.apply(void 0, n);
|
|
3326
3340
|
};
|
|
3327
|
-
var
|
|
3341
|
+
var ci = (
|
|
3328
3342
|
/** @class */
|
|
3329
3343
|
function() {
|
|
3330
3344
|
function e(t, r) {
|
|
@@ -3336,35 +3350,35 @@ var ui = (
|
|
|
3336
3350
|
return this.parseMessage(0, "", !1);
|
|
3337
3351
|
}, e.prototype.parseMessage = function(t, r, n) {
|
|
3338
3352
|
for (var i = []; !this.isEOF(); ) {
|
|
3339
|
-
var
|
|
3340
|
-
if (
|
|
3341
|
-
var
|
|
3342
|
-
if (
|
|
3343
|
-
return
|
|
3344
|
-
i.push(
|
|
3353
|
+
var o = this.char();
|
|
3354
|
+
if (o === 123) {
|
|
3355
|
+
var a = this.parseArgument(t, n);
|
|
3356
|
+
if (a.err)
|
|
3357
|
+
return a;
|
|
3358
|
+
i.push(a.val);
|
|
3345
3359
|
} else {
|
|
3346
|
-
if (
|
|
3360
|
+
if (o === 125 && t > 0)
|
|
3347
3361
|
break;
|
|
3348
|
-
if (
|
|
3349
|
-
var
|
|
3362
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3363
|
+
var s = this.clonePosition();
|
|
3350
3364
|
this.bump(), i.push({
|
|
3351
3365
|
type: E.pound,
|
|
3352
|
-
location:
|
|
3366
|
+
location: v(s, this.clonePosition())
|
|
3353
3367
|
});
|
|
3354
|
-
} else if (
|
|
3368
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3355
3369
|
if (n)
|
|
3356
3370
|
break;
|
|
3357
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3358
|
-
} else if (
|
|
3359
|
-
var
|
|
3360
|
-
if (
|
|
3361
|
-
return
|
|
3362
|
-
i.push(
|
|
3371
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3372
|
+
} else if (o === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
|
|
3373
|
+
var a = this.parseTag(t, r);
|
|
3374
|
+
if (a.err)
|
|
3375
|
+
return a;
|
|
3376
|
+
i.push(a.val);
|
|
3363
3377
|
} else {
|
|
3364
|
-
var
|
|
3365
|
-
if (
|
|
3366
|
-
return
|
|
3367
|
-
i.push(
|
|
3378
|
+
var a = this.parseLiteral(t, r);
|
|
3379
|
+
if (a.err)
|
|
3380
|
+
return a;
|
|
3381
|
+
i.push(a.val);
|
|
3368
3382
|
}
|
|
3369
3383
|
}
|
|
3370
3384
|
}
|
|
@@ -3378,64 +3392,64 @@ var ui = (
|
|
|
3378
3392
|
val: {
|
|
3379
3393
|
type: E.literal,
|
|
3380
3394
|
value: "<".concat(i, "/>"),
|
|
3381
|
-
location:
|
|
3395
|
+
location: v(n, this.clonePosition())
|
|
3382
3396
|
},
|
|
3383
3397
|
err: null
|
|
3384
3398
|
};
|
|
3385
3399
|
if (this.bumpIf(">")) {
|
|
3386
|
-
var
|
|
3387
|
-
if (
|
|
3388
|
-
return
|
|
3389
|
-
var
|
|
3400
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3401
|
+
if (o.err)
|
|
3402
|
+
return o;
|
|
3403
|
+
var a = o.val, s = this.clonePosition();
|
|
3390
3404
|
if (this.bumpIf("</")) {
|
|
3391
|
-
if (this.isEOF() || !
|
|
3392
|
-
return this.error(y.INVALID_TAG,
|
|
3405
|
+
if (this.isEOF() || !qe(this.char()))
|
|
3406
|
+
return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
|
|
3393
3407
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3394
|
-
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3408
|
+
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3395
3409
|
val: {
|
|
3396
3410
|
type: E.tag,
|
|
3397
3411
|
value: i,
|
|
3398
|
-
children:
|
|
3399
|
-
location:
|
|
3412
|
+
children: a,
|
|
3413
|
+
location: v(n, this.clonePosition())
|
|
3400
3414
|
},
|
|
3401
3415
|
err: null
|
|
3402
|
-
} : this.error(y.INVALID_TAG,
|
|
3416
|
+
} : this.error(y.INVALID_TAG, v(s, this.clonePosition())));
|
|
3403
3417
|
} else
|
|
3404
|
-
return this.error(y.UNCLOSED_TAG,
|
|
3418
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3405
3419
|
} else
|
|
3406
|
-
return this.error(y.INVALID_TAG,
|
|
3420
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3407
3421
|
}, e.prototype.parseTagName = function() {
|
|
3408
3422
|
var t = this.offset();
|
|
3409
|
-
for (this.bump(); !this.isEOF() &&
|
|
3423
|
+
for (this.bump(); !this.isEOF() && di(this.char()); )
|
|
3410
3424
|
this.bump();
|
|
3411
3425
|
return this.message.slice(t, this.offset());
|
|
3412
3426
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
3413
3427
|
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
3414
|
-
var
|
|
3415
|
-
if (s) {
|
|
3416
|
-
i += s;
|
|
3417
|
-
continue;
|
|
3418
|
-
}
|
|
3419
|
-
var o = this.tryParseUnquoted(t, r);
|
|
3428
|
+
var o = this.tryParseQuote(r);
|
|
3420
3429
|
if (o) {
|
|
3421
3430
|
i += o;
|
|
3422
3431
|
continue;
|
|
3423
3432
|
}
|
|
3424
|
-
var a = this.
|
|
3433
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3425
3434
|
if (a) {
|
|
3426
3435
|
i += a;
|
|
3427
3436
|
continue;
|
|
3428
3437
|
}
|
|
3438
|
+
var s = this.tryParseLeftAngleBracket();
|
|
3439
|
+
if (s) {
|
|
3440
|
+
i += s;
|
|
3441
|
+
continue;
|
|
3442
|
+
}
|
|
3429
3443
|
break;
|
|
3430
3444
|
}
|
|
3431
|
-
var l =
|
|
3445
|
+
var l = v(n, this.clonePosition());
|
|
3432
3446
|
return {
|
|
3433
3447
|
val: { type: E.literal, value: i, location: l },
|
|
3434
3448
|
err: null
|
|
3435
3449
|
};
|
|
3436
3450
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3437
3451
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3438
|
-
!
|
|
3452
|
+
!fi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3439
3453
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3440
3454
|
if (this.isEOF() || this.char() !== 39)
|
|
3441
3455
|
return null;
|
|
@@ -3469,23 +3483,23 @@ var ui = (
|
|
|
3469
3483
|
r.push(n);
|
|
3470
3484
|
this.bump();
|
|
3471
3485
|
}
|
|
3472
|
-
return
|
|
3486
|
+
return Qe.apply(void 0, r);
|
|
3473
3487
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3474
3488
|
if (this.isEOF())
|
|
3475
3489
|
return null;
|
|
3476
3490
|
var n = this.char();
|
|
3477
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3491
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Qe(n));
|
|
3478
3492
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3479
3493
|
var n = this.clonePosition();
|
|
3480
3494
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3481
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3495
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3482
3496
|
if (this.char() === 125)
|
|
3483
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
|
3497
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3484
3498
|
var i = this.parseIdentifierIfPossible().value;
|
|
3485
3499
|
if (!i)
|
|
3486
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3500
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3487
3501
|
if (this.bumpSpace(), this.isEOF())
|
|
3488
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3502
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3489
3503
|
switch (this.char()) {
|
|
3490
3504
|
case 125:
|
|
3491
3505
|
return this.bump(), {
|
|
@@ -3493,25 +3507,25 @@ var ui = (
|
|
|
3493
3507
|
type: E.argument,
|
|
3494
3508
|
// value does not include the opening and closing braces.
|
|
3495
3509
|
value: i,
|
|
3496
|
-
location:
|
|
3510
|
+
location: v(n, this.clonePosition())
|
|
3497
3511
|
},
|
|
3498
3512
|
err: null
|
|
3499
3513
|
};
|
|
3500
3514
|
case 44:
|
|
3501
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3515
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3502
3516
|
default:
|
|
3503
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3517
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3504
3518
|
}
|
|
3505
3519
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3506
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3520
|
+
var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
|
|
3507
3521
|
this.bumpTo(i);
|
|
3508
|
-
var
|
|
3509
|
-
return { value: n, location:
|
|
3522
|
+
var o = this.clonePosition(), a = v(t, o);
|
|
3523
|
+
return { value: n, location: a };
|
|
3510
3524
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3511
|
-
var
|
|
3512
|
-
switch (
|
|
3525
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3526
|
+
switch (s) {
|
|
3513
3527
|
case "":
|
|
3514
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
|
3528
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(a, l));
|
|
3515
3529
|
case "number":
|
|
3516
3530
|
case "date":
|
|
3517
3531
|
case "time": {
|
|
@@ -3519,50 +3533,50 @@ var ui = (
|
|
|
3519
3533
|
var u = null;
|
|
3520
3534
|
if (this.bumpIf(",")) {
|
|
3521
3535
|
this.bumpSpace();
|
|
3522
|
-
var h = this.clonePosition(),
|
|
3523
|
-
if (
|
|
3524
|
-
return
|
|
3525
|
-
var
|
|
3526
|
-
if (
|
|
3527
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
|
3528
|
-
var m =
|
|
3529
|
-
u = { style:
|
|
3536
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3537
|
+
if (f.err)
|
|
3538
|
+
return f;
|
|
3539
|
+
var c = hi(f.val);
|
|
3540
|
+
if (c.length === 0)
|
|
3541
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3542
|
+
var m = v(h, this.clonePosition());
|
|
3543
|
+
u = { style: c, styleLocation: m };
|
|
3530
3544
|
}
|
|
3531
3545
|
var b = this.tryParseArgumentClose(i);
|
|
3532
3546
|
if (b.err)
|
|
3533
3547
|
return b;
|
|
3534
|
-
var g =
|
|
3535
|
-
if (u &&
|
|
3536
|
-
var S =
|
|
3537
|
-
if (
|
|
3538
|
-
var
|
|
3539
|
-
return
|
|
3540
|
-
val: { type: E.number, value: n, location: g, style:
|
|
3548
|
+
var g = v(i, this.clonePosition());
|
|
3549
|
+
if (u && Tt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3550
|
+
var S = li(u.style.slice(2));
|
|
3551
|
+
if (s === "number") {
|
|
3552
|
+
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3553
|
+
return f.err ? f : {
|
|
3554
|
+
val: { type: E.number, value: n, location: g, style: f.val },
|
|
3541
3555
|
err: null
|
|
3542
3556
|
};
|
|
3543
3557
|
} else {
|
|
3544
3558
|
if (S.length === 0)
|
|
3545
3559
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
3546
|
-
var
|
|
3547
|
-
this.locale && (
|
|
3548
|
-
var
|
|
3560
|
+
var O = S;
|
|
3561
|
+
this.locale && (O = Jn(S, this.locale));
|
|
3562
|
+
var c = {
|
|
3549
3563
|
type: te.dateTime,
|
|
3550
|
-
pattern:
|
|
3564
|
+
pattern: O,
|
|
3551
3565
|
location: u.styleLocation,
|
|
3552
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3553
|
-
}, P =
|
|
3566
|
+
parsedOptions: this.shouldParseSkeletons ? kn(O) : {}
|
|
3567
|
+
}, P = s === "date" ? E.date : E.time;
|
|
3554
3568
|
return {
|
|
3555
|
-
val: { type: P, value: n, location: g, style:
|
|
3569
|
+
val: { type: P, value: n, location: g, style: c },
|
|
3556
3570
|
err: null
|
|
3557
3571
|
};
|
|
3558
3572
|
}
|
|
3559
3573
|
}
|
|
3560
3574
|
return {
|
|
3561
3575
|
val: {
|
|
3562
|
-
type:
|
|
3576
|
+
type: s === "number" ? E.number : s === "date" ? E.date : E.time,
|
|
3563
3577
|
value: n,
|
|
3564
3578
|
location: g,
|
|
3565
|
-
style: (
|
|
3579
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3566
3580
|
},
|
|
3567
3581
|
err: null
|
|
3568
3582
|
};
|
|
@@ -3572,30 +3586,30 @@ var ui = (
|
|
|
3572
3586
|
case "select": {
|
|
3573
3587
|
var w = this.clonePosition();
|
|
3574
3588
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3575
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3589
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(w, _({}, w)));
|
|
3576
3590
|
this.bumpSpace();
|
|
3577
|
-
var
|
|
3578
|
-
if (
|
|
3591
|
+
var M = this.parseIdentifierIfPossible(), I = 0;
|
|
3592
|
+
if (s !== "select" && M.value === "offset") {
|
|
3579
3593
|
if (!this.bumpIf(":"))
|
|
3580
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3594
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3581
3595
|
this.bumpSpace();
|
|
3582
|
-
var
|
|
3583
|
-
if (
|
|
3584
|
-
return
|
|
3585
|
-
this.bumpSpace(),
|
|
3596
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3597
|
+
if (f.err)
|
|
3598
|
+
return f;
|
|
3599
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), I = f.val;
|
|
3586
3600
|
}
|
|
3587
|
-
var
|
|
3588
|
-
if (
|
|
3589
|
-
return
|
|
3601
|
+
var N = this.tryParsePluralOrSelectOptions(t, s, r, M);
|
|
3602
|
+
if (N.err)
|
|
3603
|
+
return N;
|
|
3590
3604
|
var b = this.tryParseArgumentClose(i);
|
|
3591
3605
|
if (b.err)
|
|
3592
3606
|
return b;
|
|
3593
|
-
var x =
|
|
3594
|
-
return
|
|
3607
|
+
var x = v(i, this.clonePosition());
|
|
3608
|
+
return s === "select" ? {
|
|
3595
3609
|
val: {
|
|
3596
3610
|
type: E.select,
|
|
3597
3611
|
value: n,
|
|
3598
|
-
options:
|
|
3612
|
+
options: Ht(N.val),
|
|
3599
3613
|
location: x
|
|
3600
3614
|
},
|
|
3601
3615
|
err: null
|
|
@@ -3603,19 +3617,19 @@ var ui = (
|
|
|
3603
3617
|
val: {
|
|
3604
3618
|
type: E.plural,
|
|
3605
3619
|
value: n,
|
|
3606
|
-
options:
|
|
3607
|
-
offset:
|
|
3608
|
-
pluralType:
|
|
3620
|
+
options: Ht(N.val),
|
|
3621
|
+
offset: I,
|
|
3622
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3609
3623
|
location: x
|
|
3610
3624
|
},
|
|
3611
3625
|
err: null
|
|
3612
3626
|
};
|
|
3613
3627
|
}
|
|
3614
3628
|
default:
|
|
3615
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
|
3629
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(a, l));
|
|
3616
3630
|
}
|
|
3617
3631
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3618
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3632
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3619
3633
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3620
3634
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3621
3635
|
var n = this.char();
|
|
@@ -3624,7 +3638,7 @@ var ui = (
|
|
|
3624
3638
|
this.bump();
|
|
3625
3639
|
var i = this.clonePosition();
|
|
3626
3640
|
if (!this.bumpUntil("'"))
|
|
3627
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3641
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3628
3642
|
this.bump();
|
|
3629
3643
|
break;
|
|
3630
3644
|
}
|
|
@@ -3654,7 +3668,7 @@ var ui = (
|
|
|
3654
3668
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3655
3669
|
var n = [];
|
|
3656
3670
|
try {
|
|
3657
|
-
n =
|
|
3671
|
+
n = Xn(t);
|
|
3658
3672
|
} catch (i) {
|
|
3659
3673
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3660
3674
|
}
|
|
@@ -3663,55 +3677,55 @@ var ui = (
|
|
|
3663
3677
|
type: te.number,
|
|
3664
3678
|
tokens: n,
|
|
3665
3679
|
location: r,
|
|
3666
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3680
|
+
parsedOptions: this.shouldParseSkeletons ? Qn(n) : {}
|
|
3667
3681
|
},
|
|
3668
3682
|
err: null
|
|
3669
3683
|
};
|
|
3670
3684
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3671
|
-
for (var
|
|
3685
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3672
3686
|
if (u.length === 0) {
|
|
3673
|
-
var
|
|
3687
|
+
var f = this.clonePosition();
|
|
3674
3688
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3675
|
-
var
|
|
3676
|
-
if (
|
|
3677
|
-
return
|
|
3678
|
-
h =
|
|
3689
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3690
|
+
if (c.err)
|
|
3691
|
+
return c;
|
|
3692
|
+
h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3679
3693
|
} else
|
|
3680
3694
|
break;
|
|
3681
3695
|
}
|
|
3682
3696
|
if (l.has(u))
|
|
3683
3697
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3684
|
-
u === "other" && (
|
|
3698
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3685
3699
|
var m = this.clonePosition();
|
|
3686
3700
|
if (!this.bumpIf("{"))
|
|
3687
|
-
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3701
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3688
3702
|
var b = this.parseMessage(t + 1, r, n);
|
|
3689
3703
|
if (b.err)
|
|
3690
3704
|
return b;
|
|
3691
3705
|
var g = this.tryParseArgumentClose(m);
|
|
3692
3706
|
if (g.err)
|
|
3693
3707
|
return g;
|
|
3694
|
-
|
|
3708
|
+
s.push([
|
|
3695
3709
|
u,
|
|
3696
3710
|
{
|
|
3697
3711
|
value: b.val,
|
|
3698
|
-
location:
|
|
3712
|
+
location: v(m, this.clonePosition())
|
|
3699
3713
|
}
|
|
3700
|
-
]), l.add(u), this.bumpSpace(),
|
|
3714
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3701
3715
|
}
|
|
3702
|
-
return
|
|
3716
|
+
return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3703
3717
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3704
3718
|
var n = 1, i = this.clonePosition();
|
|
3705
3719
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3706
|
-
for (var
|
|
3707
|
-
var
|
|
3708
|
-
if (
|
|
3709
|
-
|
|
3720
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3721
|
+
var s = this.char();
|
|
3722
|
+
if (s >= 48 && s <= 57)
|
|
3723
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3710
3724
|
else
|
|
3711
3725
|
break;
|
|
3712
3726
|
}
|
|
3713
|
-
var l =
|
|
3714
|
-
return
|
|
3727
|
+
var l = v(i, this.clonePosition());
|
|
3728
|
+
return o ? (a *= n, ai(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3715
3729
|
}, e.prototype.offset = function() {
|
|
3716
3730
|
return this.position.offset;
|
|
3717
3731
|
}, e.prototype.isEOF = function() {
|
|
@@ -3726,7 +3740,7 @@ var ui = (
|
|
|
3726
3740
|
var t = this.position.offset;
|
|
3727
3741
|
if (t >= this.message.length)
|
|
3728
3742
|
throw Error("out of bound");
|
|
3729
|
-
var r =
|
|
3743
|
+
var r = pr(this.message, t);
|
|
3730
3744
|
if (r === void 0)
|
|
3731
3745
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3732
3746
|
return r;
|
|
@@ -3745,7 +3759,7 @@ var ui = (
|
|
|
3745
3759
|
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);
|
|
3746
3760
|
}
|
|
3747
3761
|
}, e.prototype.bumpIf = function(t) {
|
|
3748
|
-
if (
|
|
3762
|
+
if (Tt(this.message, t, this.offset())) {
|
|
3749
3763
|
for (var r = 0; r < t.length; r++)
|
|
3750
3764
|
this.bump();
|
|
3751
3765
|
return !0;
|
|
@@ -3767,7 +3781,7 @@ var ui = (
|
|
|
3767
3781
|
break;
|
|
3768
3782
|
}
|
|
3769
3783
|
}, e.prototype.bumpSpace = function() {
|
|
3770
|
-
for (; !this.isEOF() &&
|
|
3784
|
+
for (; !this.isEOF() && br(this.char()); )
|
|
3771
3785
|
this.bump();
|
|
3772
3786
|
}, e.prototype.peek = function() {
|
|
3773
3787
|
if (this.isEOF())
|
|
@@ -3777,38 +3791,38 @@ var ui = (
|
|
|
3777
3791
|
}, e;
|
|
3778
3792
|
}()
|
|
3779
3793
|
);
|
|
3780
|
-
function
|
|
3794
|
+
function qe(e) {
|
|
3781
3795
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3782
3796
|
}
|
|
3783
|
-
function
|
|
3784
|
-
return
|
|
3797
|
+
function fi(e) {
|
|
3798
|
+
return qe(e) || e === 47;
|
|
3785
3799
|
}
|
|
3786
|
-
function
|
|
3800
|
+
function di(e) {
|
|
3787
3801
|
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;
|
|
3788
3802
|
}
|
|
3789
|
-
function
|
|
3803
|
+
function br(e) {
|
|
3790
3804
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3791
3805
|
}
|
|
3792
|
-
function
|
|
3806
|
+
function pi(e) {
|
|
3793
3807
|
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;
|
|
3794
3808
|
}
|
|
3795
|
-
function
|
|
3809
|
+
function Ye(e) {
|
|
3796
3810
|
e.forEach(function(t) {
|
|
3797
|
-
if (delete t.location,
|
|
3811
|
+
if (delete t.location, sr(t) || ar(t))
|
|
3798
3812
|
for (var r in t.options)
|
|
3799
|
-
delete t.options[r].location,
|
|
3813
|
+
delete t.options[r].location, Ye(t.options[r].value);
|
|
3800
3814
|
else
|
|
3801
|
-
|
|
3815
|
+
nr(t) && lr(t.style) || (ir(t) || or(t)) && ze(t.style) ? delete t.style.location : ur(t) && Ye(t.children);
|
|
3802
3816
|
});
|
|
3803
3817
|
}
|
|
3804
|
-
function
|
|
3805
|
-
t === void 0 && (t = {}), t =
|
|
3806
|
-
var r = new
|
|
3818
|
+
function mi(e, t) {
|
|
3819
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3820
|
+
var r = new ci(e, t).parse();
|
|
3807
3821
|
if (r.err) {
|
|
3808
3822
|
var n = SyntaxError(y[r.err.kind]);
|
|
3809
3823
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3810
3824
|
}
|
|
3811
|
-
return t != null && t.captureLocation ||
|
|
3825
|
+
return t != null && t.captureLocation || Ye(r.val), r.val;
|
|
3812
3826
|
}
|
|
3813
3827
|
var re;
|
|
3814
3828
|
(function(e) {
|
|
@@ -3819,23 +3833,23 @@ var Be = (
|
|
|
3819
3833
|
function(e) {
|
|
3820
3834
|
G(t, e);
|
|
3821
3835
|
function t(r, n, i) {
|
|
3822
|
-
var
|
|
3823
|
-
return
|
|
3836
|
+
var o = e.call(this, r) || this;
|
|
3837
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3824
3838
|
}
|
|
3825
3839
|
return t.prototype.toString = function() {
|
|
3826
3840
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3827
3841
|
}, t;
|
|
3828
3842
|
}(Error)
|
|
3829
|
-
),
|
|
3843
|
+
), Pt = (
|
|
3830
3844
|
/** @class */
|
|
3831
3845
|
function(e) {
|
|
3832
3846
|
G(t, e);
|
|
3833
|
-
function t(r, n, i,
|
|
3834
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE,
|
|
3847
|
+
function t(r, n, i, o) {
|
|
3848
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
|
|
3835
3849
|
}
|
|
3836
3850
|
return t;
|
|
3837
3851
|
}(Be)
|
|
3838
|
-
),
|
|
3852
|
+
), bi = (
|
|
3839
3853
|
/** @class */
|
|
3840
3854
|
function(e) {
|
|
3841
3855
|
G(t, e);
|
|
@@ -3844,7 +3858,7 @@ var Be = (
|
|
|
3844
3858
|
}
|
|
3845
3859
|
return t;
|
|
3846
3860
|
}(Be)
|
|
3847
|
-
),
|
|
3861
|
+
), yi = (
|
|
3848
3862
|
/** @class */
|
|
3849
3863
|
function(e) {
|
|
3850
3864
|
G(t, e);
|
|
@@ -3857,124 +3871,124 @@ var Be = (
|
|
|
3857
3871
|
(function(e) {
|
|
3858
3872
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3859
3873
|
})(H || (H = {}));
|
|
3860
|
-
function
|
|
3874
|
+
function gi(e) {
|
|
3861
3875
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3862
3876
|
var n = t[t.length - 1];
|
|
3863
3877
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3864
3878
|
}, []);
|
|
3865
3879
|
}
|
|
3866
|
-
function
|
|
3880
|
+
function vi(e) {
|
|
3867
3881
|
return typeof e == "function";
|
|
3868
3882
|
}
|
|
3869
|
-
function
|
|
3870
|
-
if (e.length === 1 &&
|
|
3883
|
+
function ve(e, t, r, n, i, o, a) {
|
|
3884
|
+
if (e.length === 1 && Et(e[0]))
|
|
3871
3885
|
return [
|
|
3872
3886
|
{
|
|
3873
3887
|
type: H.literal,
|
|
3874
3888
|
value: e[0].value
|
|
3875
3889
|
}
|
|
3876
3890
|
];
|
|
3877
|
-
for (var
|
|
3891
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3878
3892
|
var h = u[l];
|
|
3879
|
-
if (
|
|
3880
|
-
|
|
3893
|
+
if (Et(h)) {
|
|
3894
|
+
s.push({
|
|
3881
3895
|
type: H.literal,
|
|
3882
3896
|
value: h.value
|
|
3883
3897
|
});
|
|
3884
3898
|
continue;
|
|
3885
3899
|
}
|
|
3886
|
-
if (
|
|
3887
|
-
typeof
|
|
3900
|
+
if (Fn(h)) {
|
|
3901
|
+
typeof o == "number" && s.push({
|
|
3888
3902
|
type: H.literal,
|
|
3889
|
-
value: r.getNumberFormat(t).format(
|
|
3903
|
+
value: r.getNumberFormat(t).format(o)
|
|
3890
3904
|
});
|
|
3891
3905
|
continue;
|
|
3892
3906
|
}
|
|
3893
|
-
var
|
|
3894
|
-
if (!(i &&
|
|
3895
|
-
throw new
|
|
3896
|
-
var
|
|
3897
|
-
if (
|
|
3898
|
-
(!
|
|
3899
|
-
type: typeof
|
|
3900
|
-
value:
|
|
3907
|
+
var f = h.value;
|
|
3908
|
+
if (!(i && f in i))
|
|
3909
|
+
throw new yi(f, a);
|
|
3910
|
+
var c = i[f];
|
|
3911
|
+
if (Gn(h)) {
|
|
3912
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3913
|
+
type: typeof c == "string" ? H.literal : H.object,
|
|
3914
|
+
value: c
|
|
3901
3915
|
});
|
|
3902
3916
|
continue;
|
|
3903
3917
|
}
|
|
3904
|
-
if (
|
|
3905
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3906
|
-
|
|
3918
|
+
if (ir(h)) {
|
|
3919
|
+
var m = typeof h.style == "string" ? n.date[h.style] : ze(h.style) ? h.style.parsedOptions : void 0;
|
|
3920
|
+
s.push({
|
|
3907
3921
|
type: H.literal,
|
|
3908
|
-
value: r.getDateTimeFormat(t, m).format(
|
|
3922
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3909
3923
|
});
|
|
3910
3924
|
continue;
|
|
3911
3925
|
}
|
|
3912
|
-
if (
|
|
3913
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3914
|
-
|
|
3926
|
+
if (or(h)) {
|
|
3927
|
+
var m = typeof h.style == "string" ? n.time[h.style] : ze(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3928
|
+
s.push({
|
|
3915
3929
|
type: H.literal,
|
|
3916
|
-
value: r.getDateTimeFormat(t, m).format(
|
|
3930
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3917
3931
|
});
|
|
3918
3932
|
continue;
|
|
3919
3933
|
}
|
|
3920
|
-
if (
|
|
3921
|
-
var m = typeof h.style == "string" ? n.number[h.style] :
|
|
3922
|
-
m && m.scale && (
|
|
3934
|
+
if (nr(h)) {
|
|
3935
|
+
var m = typeof h.style == "string" ? n.number[h.style] : lr(h.style) ? h.style.parsedOptions : void 0;
|
|
3936
|
+
m && m.scale && (c = c * (m.scale || 1)), s.push({
|
|
3923
3937
|
type: H.literal,
|
|
3924
|
-
value: r.getNumberFormat(t, m).format(
|
|
3938
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3925
3939
|
});
|
|
3926
3940
|
continue;
|
|
3927
3941
|
}
|
|
3928
|
-
if (
|
|
3942
|
+
if (ur(h)) {
|
|
3929
3943
|
var b = h.children, g = h.value, S = i[g];
|
|
3930
|
-
if (!
|
|
3931
|
-
throw new
|
|
3932
|
-
var
|
|
3933
|
-
return
|
|
3944
|
+
if (!vi(S))
|
|
3945
|
+
throw new bi(g, "function", a);
|
|
3946
|
+
var O = ve(b, t, r, n, i, o), P = S(O.map(function(I) {
|
|
3947
|
+
return I.value;
|
|
3934
3948
|
}));
|
|
3935
|
-
Array.isArray(P) || (P = [P]),
|
|
3949
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(I) {
|
|
3936
3950
|
return {
|
|
3937
|
-
type: typeof
|
|
3938
|
-
value:
|
|
3951
|
+
type: typeof I == "string" ? H.literal : H.object,
|
|
3952
|
+
value: I
|
|
3939
3953
|
};
|
|
3940
3954
|
}));
|
|
3941
3955
|
}
|
|
3942
|
-
if (
|
|
3943
|
-
var w = h.options[
|
|
3956
|
+
if (sr(h)) {
|
|
3957
|
+
var w = h.options[c] || h.options.other;
|
|
3944
3958
|
if (!w)
|
|
3945
|
-
throw new
|
|
3946
|
-
|
|
3959
|
+
throw new Pt(h.value, c, Object.keys(h.options), a);
|
|
3960
|
+
s.push.apply(s, ve(w.value, t, r, n, i));
|
|
3947
3961
|
continue;
|
|
3948
3962
|
}
|
|
3949
|
-
if (
|
|
3950
|
-
var w = h.options["=".concat(
|
|
3963
|
+
if (ar(h)) {
|
|
3964
|
+
var w = h.options["=".concat(c)];
|
|
3951
3965
|
if (!w) {
|
|
3952
3966
|
if (!Intl.PluralRules)
|
|
3953
3967
|
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3954
3968
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3955
|
-
`, re.MISSING_INTL_API,
|
|
3956
|
-
var
|
|
3957
|
-
w = h.options[
|
|
3969
|
+
`, re.MISSING_INTL_API, a);
|
|
3970
|
+
var M = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3971
|
+
w = h.options[M] || h.options.other;
|
|
3958
3972
|
}
|
|
3959
3973
|
if (!w)
|
|
3960
|
-
throw new
|
|
3961
|
-
|
|
3974
|
+
throw new Pt(h.value, c, Object.keys(h.options), a);
|
|
3975
|
+
s.push.apply(s, ve(w.value, t, r, n, i, c - (h.offset || 0)));
|
|
3962
3976
|
continue;
|
|
3963
3977
|
}
|
|
3964
3978
|
}
|
|
3965
|
-
return
|
|
3979
|
+
return gi(s);
|
|
3966
3980
|
}
|
|
3967
|
-
function
|
|
3968
|
-
return t ?
|
|
3969
|
-
return r[n] =
|
|
3981
|
+
function _i(e, t) {
|
|
3982
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3983
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3970
3984
|
}, {})) : e;
|
|
3971
3985
|
}
|
|
3972
|
-
function
|
|
3986
|
+
function Ei(e, t) {
|
|
3973
3987
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3974
|
-
return r[n] =
|
|
3975
|
-
},
|
|
3988
|
+
return r[n] = _i(e[n], t[n]), r;
|
|
3989
|
+
}, _({}, e)) : e;
|
|
3976
3990
|
}
|
|
3977
|
-
function
|
|
3991
|
+
function $e(e) {
|
|
3978
3992
|
return {
|
|
3979
3993
|
create: function() {
|
|
3980
3994
|
return {
|
|
@@ -3988,77 +4002,77 @@ function Re(e) {
|
|
|
3988
4002
|
}
|
|
3989
4003
|
};
|
|
3990
4004
|
}
|
|
3991
|
-
function
|
|
4005
|
+
function xi(e) {
|
|
3992
4006
|
return e === void 0 && (e = {
|
|
3993
4007
|
number: {},
|
|
3994
4008
|
dateTime: {},
|
|
3995
4009
|
pluralRules: {}
|
|
3996
4010
|
}), {
|
|
3997
|
-
getNumberFormat:
|
|
4011
|
+
getNumberFormat: Me(function() {
|
|
3998
4012
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3999
4013
|
r[n] = arguments[n];
|
|
4000
4014
|
return new ((t = Intl.NumberFormat).bind.apply(t, K([void 0], r, !1)))();
|
|
4001
4015
|
}, {
|
|
4002
|
-
cache:
|
|
4016
|
+
cache: $e(e.number),
|
|
4003
4017
|
strategy: Ne.variadic
|
|
4004
4018
|
}),
|
|
4005
|
-
getDateTimeFormat:
|
|
4019
|
+
getDateTimeFormat: Me(function() {
|
|
4006
4020
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4007
4021
|
r[n] = arguments[n];
|
|
4008
4022
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, K([void 0], r, !1)))();
|
|
4009
4023
|
}, {
|
|
4010
|
-
cache:
|
|
4024
|
+
cache: $e(e.dateTime),
|
|
4011
4025
|
strategy: Ne.variadic
|
|
4012
4026
|
}),
|
|
4013
|
-
getPluralRules:
|
|
4027
|
+
getPluralRules: Me(function() {
|
|
4014
4028
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
4015
4029
|
r[n] = arguments[n];
|
|
4016
4030
|
return new ((t = Intl.PluralRules).bind.apply(t, K([void 0], r, !1)))();
|
|
4017
4031
|
}, {
|
|
4018
|
-
cache:
|
|
4032
|
+
cache: $e(e.pluralRules),
|
|
4019
4033
|
strategy: Ne.variadic
|
|
4020
4034
|
})
|
|
4021
4035
|
};
|
|
4022
4036
|
}
|
|
4023
|
-
var
|
|
4037
|
+
var Si = (
|
|
4024
4038
|
/** @class */
|
|
4025
4039
|
function() {
|
|
4026
4040
|
function e(t, r, n, i) {
|
|
4027
4041
|
r === void 0 && (r = e.defaultLocale);
|
|
4028
|
-
var
|
|
4042
|
+
var o = this;
|
|
4029
4043
|
if (this.formatterCache = {
|
|
4030
4044
|
number: {},
|
|
4031
4045
|
dateTime: {},
|
|
4032
4046
|
pluralRules: {}
|
|
4033
4047
|
}, this.format = function(l) {
|
|
4034
|
-
var u =
|
|
4048
|
+
var u = o.formatToParts(l);
|
|
4035
4049
|
if (u.length === 1)
|
|
4036
4050
|
return u[0].value;
|
|
4037
|
-
var h = u.reduce(function(
|
|
4038
|
-
return !
|
|
4051
|
+
var h = u.reduce(function(f, c) {
|
|
4052
|
+
return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
4039
4053
|
}, []);
|
|
4040
4054
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4041
4055
|
}, this.formatToParts = function(l) {
|
|
4042
|
-
return
|
|
4056
|
+
return ve(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
4043
4057
|
}, this.resolvedOptions = function() {
|
|
4044
4058
|
var l;
|
|
4045
4059
|
return {
|
|
4046
|
-
locale: ((l =
|
|
4060
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
4047
4061
|
};
|
|
4048
4062
|
}, this.getAst = function() {
|
|
4049
|
-
return
|
|
4063
|
+
return o.ast;
|
|
4050
4064
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4051
4065
|
if (this.message = t, !e.__parse)
|
|
4052
4066
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4053
|
-
var
|
|
4054
|
-
|
|
4055
|
-
var
|
|
4056
|
-
this.ast = e.__parse(t,
|
|
4067
|
+
var a = i || {};
|
|
4068
|
+
a.formatters;
|
|
4069
|
+
var s = tn(a, ["formatters"]);
|
|
4070
|
+
this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
|
|
4057
4071
|
} else
|
|
4058
4072
|
this.ast = t;
|
|
4059
4073
|
if (!Array.isArray(this.ast))
|
|
4060
4074
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4061
|
-
this.formats =
|
|
4075
|
+
this.formats = Ei(e.formats, n), this.formatters = i && i.formatters || xi(this.formatterCache);
|
|
4062
4076
|
}
|
|
4063
4077
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4064
4078
|
get: function() {
|
|
@@ -4071,7 +4085,7 @@ var vi = (
|
|
|
4071
4085
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4072
4086
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4073
4087
|
}
|
|
4074
|
-
}, e.__parse =
|
|
4088
|
+
}, e.__parse = mi, e.formats = {
|
|
4075
4089
|
number: {
|
|
4076
4090
|
integer: {
|
|
4077
4091
|
maximumFractionDigits: 0
|
|
@@ -4132,7 +4146,7 @@ var vi = (
|
|
|
4132
4146
|
}, e;
|
|
4133
4147
|
}()
|
|
4134
4148
|
);
|
|
4135
|
-
function
|
|
4149
|
+
function wi(e, t) {
|
|
4136
4150
|
if (t == null)
|
|
4137
4151
|
return;
|
|
4138
4152
|
if (t in e)
|
|
@@ -4142,9 +4156,9 @@ function Ei(e, t) {
|
|
|
4142
4156
|
for (let i = 0; i < r.length; i++)
|
|
4143
4157
|
if (typeof n == "object") {
|
|
4144
4158
|
if (i > 0) {
|
|
4145
|
-
const
|
|
4146
|
-
if (
|
|
4147
|
-
n = n[
|
|
4159
|
+
const o = r.slice(i, r.length).join(".");
|
|
4160
|
+
if (o in n) {
|
|
4161
|
+
n = n[o];
|
|
4148
4162
|
break;
|
|
4149
4163
|
}
|
|
4150
4164
|
}
|
|
@@ -4153,92 +4167,92 @@ function Ei(e, t) {
|
|
|
4153
4167
|
n = void 0;
|
|
4154
4168
|
return n;
|
|
4155
4169
|
}
|
|
4156
|
-
const j = {},
|
|
4170
|
+
const j = {}, Ti = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), yr = (e, t) => {
|
|
4157
4171
|
if (t == null)
|
|
4158
4172
|
return;
|
|
4159
4173
|
if (t in j && e in j[t])
|
|
4160
4174
|
return j[t][e];
|
|
4161
4175
|
const r = Pe(t);
|
|
4162
4176
|
for (let n = 0; n < r.length; n++) {
|
|
4163
|
-
const i = r[n],
|
|
4164
|
-
if (
|
|
4165
|
-
return
|
|
4177
|
+
const i = r[n], o = Bi(i, e);
|
|
4178
|
+
if (o)
|
|
4179
|
+
return Ti(e, t, o);
|
|
4166
4180
|
}
|
|
4167
4181
|
};
|
|
4168
|
-
let
|
|
4169
|
-
const
|
|
4170
|
-
function
|
|
4171
|
-
return
|
|
4182
|
+
let it;
|
|
4183
|
+
const fe = He({});
|
|
4184
|
+
function Hi(e) {
|
|
4185
|
+
return it[e] || null;
|
|
4172
4186
|
}
|
|
4173
|
-
function
|
|
4174
|
-
return e in
|
|
4187
|
+
function gr(e) {
|
|
4188
|
+
return e in it;
|
|
4175
4189
|
}
|
|
4176
|
-
function
|
|
4177
|
-
if (!
|
|
4190
|
+
function Bi(e, t) {
|
|
4191
|
+
if (!gr(e))
|
|
4178
4192
|
return null;
|
|
4179
|
-
const r =
|
|
4180
|
-
return
|
|
4193
|
+
const r = Hi(e);
|
|
4194
|
+
return wi(r, t);
|
|
4181
4195
|
}
|
|
4182
|
-
function
|
|
4196
|
+
function Pi(e) {
|
|
4183
4197
|
if (e == null)
|
|
4184
4198
|
return;
|
|
4185
4199
|
const t = Pe(e);
|
|
4186
4200
|
for (let r = 0; r < t.length; r++) {
|
|
4187
4201
|
const n = t[r];
|
|
4188
|
-
if (
|
|
4202
|
+
if (gr(n))
|
|
4189
4203
|
return n;
|
|
4190
4204
|
}
|
|
4191
4205
|
}
|
|
4192
|
-
function
|
|
4193
|
-
delete j[e],
|
|
4206
|
+
function vr(e, ...t) {
|
|
4207
|
+
delete j[e], fe.update((r) => (r[e] = Ln.all([r[e] || {}, ...t]), r));
|
|
4194
4208
|
}
|
|
4195
4209
|
ie(
|
|
4196
|
-
[
|
|
4210
|
+
[fe],
|
|
4197
4211
|
([e]) => Object.keys(e)
|
|
4198
4212
|
);
|
|
4199
|
-
|
|
4200
|
-
const
|
|
4201
|
-
function
|
|
4202
|
-
|
|
4213
|
+
fe.subscribe((e) => it = e);
|
|
4214
|
+
const _e = {};
|
|
4215
|
+
function Ai(e, t) {
|
|
4216
|
+
_e[e].delete(t), _e[e].size === 0 && delete _e[e];
|
|
4203
4217
|
}
|
|
4204
|
-
function
|
|
4205
|
-
return
|
|
4218
|
+
function _r(e) {
|
|
4219
|
+
return _e[e];
|
|
4206
4220
|
}
|
|
4207
|
-
function
|
|
4221
|
+
function Oi(e) {
|
|
4208
4222
|
return Pe(e).map((t) => {
|
|
4209
|
-
const r =
|
|
4223
|
+
const r = _r(t);
|
|
4210
4224
|
return [t, r ? [...r] : []];
|
|
4211
4225
|
}).filter(([, t]) => t.length > 0);
|
|
4212
4226
|
}
|
|
4213
|
-
function
|
|
4227
|
+
function Ke(e) {
|
|
4214
4228
|
return e == null ? !1 : Pe(e).some(
|
|
4215
4229
|
(t) => {
|
|
4216
4230
|
var r;
|
|
4217
|
-
return (r =
|
|
4231
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
|
4218
4232
|
}
|
|
4219
4233
|
);
|
|
4220
4234
|
}
|
|
4221
|
-
function
|
|
4235
|
+
function Ii(e, t) {
|
|
4222
4236
|
return Promise.all(
|
|
4223
|
-
t.map((n) => (
|
|
4224
|
-
).then((n) =>
|
|
4237
|
+
t.map((n) => (Ai(e, n), n().then((i) => i.default || i)))
|
|
4238
|
+
).then((n) => vr(e, ...n));
|
|
4225
4239
|
}
|
|
4226
4240
|
const ae = {};
|
|
4227
|
-
function
|
|
4228
|
-
if (!
|
|
4241
|
+
function Er(e) {
|
|
4242
|
+
if (!Ke(e))
|
|
4229
4243
|
return e in ae ? ae[e] : Promise.resolve();
|
|
4230
|
-
const t =
|
|
4244
|
+
const t = Oi(e);
|
|
4231
4245
|
return ae[e] = Promise.all(
|
|
4232
4246
|
t.map(
|
|
4233
|
-
([r, n]) =>
|
|
4247
|
+
([r, n]) => Ii(r, n)
|
|
4234
4248
|
)
|
|
4235
4249
|
).then(() => {
|
|
4236
|
-
if (
|
|
4237
|
-
return
|
|
4250
|
+
if (Ke(e))
|
|
4251
|
+
return Er(e);
|
|
4238
4252
|
delete ae[e];
|
|
4239
4253
|
}), ae[e];
|
|
4240
4254
|
}
|
|
4241
|
-
const
|
|
4255
|
+
const Ci = {
|
|
4242
4256
|
number: {
|
|
4243
4257
|
scientific: { notation: "scientific" },
|
|
4244
4258
|
engineering: { notation: "engineering" },
|
|
@@ -4267,57 +4281,57 @@ const Ai = {
|
|
|
4267
4281
|
timeZoneName: "short"
|
|
4268
4282
|
}
|
|
4269
4283
|
}
|
|
4270
|
-
},
|
|
4284
|
+
}, Li = {
|
|
4271
4285
|
fallbackLocale: null,
|
|
4272
4286
|
loadingDelay: 200,
|
|
4273
|
-
formats:
|
|
4287
|
+
formats: Ci,
|
|
4274
4288
|
warnOnMissingMessages: !0,
|
|
4275
4289
|
handleMissingMessage: void 0,
|
|
4276
4290
|
ignoreTag: !0
|
|
4277
|
-
},
|
|
4291
|
+
}, Mi = Li;
|
|
4278
4292
|
function ne() {
|
|
4279
|
-
return
|
|
4280
|
-
}
|
|
4281
|
-
const
|
|
4282
|
-
var
|
|
4283
|
-
for (var r in t)
|
|
4284
|
-
|
|
4285
|
-
if (
|
|
4286
|
-
for (var r of
|
|
4287
|
-
|
|
4293
|
+
return Mi;
|
|
4294
|
+
}
|
|
4295
|
+
const De = He(!1);
|
|
4296
|
+
var Ni = Object.defineProperty, Ri = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Di = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gi = (e, t) => {
|
|
4297
|
+
for (var r in t || (t = {}))
|
|
4298
|
+
Di.call(t, r) && Ot(e, r, t[r]);
|
|
4299
|
+
if (At)
|
|
4300
|
+
for (var r of At(t))
|
|
4301
|
+
Ui.call(t, r) && Ot(e, r, t[r]);
|
|
4288
4302
|
return e;
|
|
4289
|
-
},
|
|
4290
|
-
let
|
|
4303
|
+
}, Fi = (e, t) => Ri(e, $i(t));
|
|
4304
|
+
let et;
|
|
4291
4305
|
const Ee = He(null);
|
|
4292
|
-
function
|
|
4306
|
+
function It(e) {
|
|
4293
4307
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4294
4308
|
}
|
|
4295
4309
|
function Pe(e, t = ne().fallbackLocale) {
|
|
4296
|
-
const r =
|
|
4297
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4310
|
+
const r = It(e);
|
|
4311
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
|
|
4298
4312
|
}
|
|
4299
|
-
function
|
|
4300
|
-
return
|
|
4313
|
+
function Z() {
|
|
4314
|
+
return et != null ? et : void 0;
|
|
4301
4315
|
}
|
|
4302
4316
|
Ee.subscribe((e) => {
|
|
4303
|
-
|
|
4317
|
+
et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4304
4318
|
});
|
|
4305
|
-
const
|
|
4306
|
-
if (e &&
|
|
4319
|
+
const ji = (e) => {
|
|
4320
|
+
if (e && Pi(e) && Ke(e)) {
|
|
4307
4321
|
const { loadingDelay: t } = ne();
|
|
4308
4322
|
let r;
|
|
4309
|
-
return typeof window != "undefined" &&
|
|
4310
|
-
() =>
|
|
4323
|
+
return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
|
|
4324
|
+
() => De.set(!0),
|
|
4311
4325
|
t
|
|
4312
|
-
) :
|
|
4326
|
+
) : De.set(!0), Er(e).then(() => {
|
|
4313
4327
|
Ee.set(e);
|
|
4314
4328
|
}).finally(() => {
|
|
4315
|
-
clearTimeout(r),
|
|
4329
|
+
clearTimeout(r), De.set(!1);
|
|
4316
4330
|
});
|
|
4317
4331
|
}
|
|
4318
4332
|
return Ee.set(e);
|
|
4319
|
-
},
|
|
4320
|
-
set:
|
|
4333
|
+
}, oe = Fi(Gi({}, Ee), {
|
|
4334
|
+
set: ji
|
|
4321
4335
|
}), Ae = (e) => {
|
|
4322
4336
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4323
4337
|
return (n) => {
|
|
@@ -4325,118 +4339,118 @@ const Ui = (e) => {
|
|
|
4325
4339
|
return i in t ? t[i] : t[i] = e(n);
|
|
4326
4340
|
};
|
|
4327
4341
|
};
|
|
4328
|
-
var
|
|
4342
|
+
var ki = Object.defineProperty, xe = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
|
|
4329
4343
|
for (var r in t || (t = {}))
|
|
4330
|
-
|
|
4344
|
+
xr.call(t, r) && Ct(e, r, t[r]);
|
|
4331
4345
|
if (xe)
|
|
4332
4346
|
for (var r of xe(t))
|
|
4333
|
-
|
|
4347
|
+
Sr.call(t, r) && Ct(e, r, t[r]);
|
|
4334
4348
|
return e;
|
|
4335
|
-
},
|
|
4349
|
+
}, se = (e, t) => {
|
|
4336
4350
|
var r = {};
|
|
4337
4351
|
for (var n in e)
|
|
4338
|
-
|
|
4352
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4339
4353
|
if (e != null && xe)
|
|
4340
4354
|
for (var n of xe(e))
|
|
4341
|
-
t.indexOf(n) < 0 &&
|
|
4355
|
+
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
|
4342
4356
|
return r;
|
|
4343
4357
|
};
|
|
4344
|
-
const
|
|
4358
|
+
const ce = (e, t) => {
|
|
4345
4359
|
const { formats: r } = ne();
|
|
4346
4360
|
if (e in r && t in r[e])
|
|
4347
4361
|
return r[e][t];
|
|
4348
4362
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4349
|
-
},
|
|
4363
|
+
}, Vi = Ae(
|
|
4350
4364
|
(e) => {
|
|
4351
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4365
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4352
4366
|
if (r == null)
|
|
4353
4367
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4354
|
-
return n && (i =
|
|
4368
|
+
return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
|
|
4355
4369
|
}
|
|
4356
|
-
),
|
|
4370
|
+
), Xi = Ae(
|
|
4357
4371
|
(e) => {
|
|
4358
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4372
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4359
4373
|
if (r == null)
|
|
4360
4374
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4361
|
-
return n ? i =
|
|
4375
|
+
return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4362
4376
|
}
|
|
4363
|
-
),
|
|
4377
|
+
), Wi = Ae(
|
|
4364
4378
|
(e) => {
|
|
4365
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4379
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4366
4380
|
if (r == null)
|
|
4367
4381
|
throw new Error(
|
|
4368
4382
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4369
4383
|
);
|
|
4370
|
-
return n ? i =
|
|
4384
|
+
return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4371
4385
|
}
|
|
4372
|
-
),
|
|
4386
|
+
), zi = (e = {}) => {
|
|
4373
4387
|
var t = e, {
|
|
4374
|
-
locale: r =
|
|
4375
|
-
} = t, n =
|
|
4388
|
+
locale: r = Z()
|
|
4389
|
+
} = t, n = se(t, [
|
|
4376
4390
|
"locale"
|
|
4377
4391
|
]);
|
|
4378
|
-
return
|
|
4379
|
-
},
|
|
4392
|
+
return Vi(ot({ locale: r }, n));
|
|
4393
|
+
}, Zi = (e = {}) => {
|
|
4380
4394
|
var t = e, {
|
|
4381
|
-
locale: r =
|
|
4382
|
-
} = t, n =
|
|
4395
|
+
locale: r = Z()
|
|
4396
|
+
} = t, n = se(t, [
|
|
4383
4397
|
"locale"
|
|
4384
4398
|
]);
|
|
4385
|
-
return
|
|
4386
|
-
},
|
|
4399
|
+
return Xi(ot({ locale: r }, n));
|
|
4400
|
+
}, Qi = (e = {}) => {
|
|
4387
4401
|
var t = e, {
|
|
4388
|
-
locale: r =
|
|
4389
|
-
} = t, n =
|
|
4402
|
+
locale: r = Z()
|
|
4403
|
+
} = t, n = se(t, [
|
|
4390
4404
|
"locale"
|
|
4391
4405
|
]);
|
|
4392
|
-
return
|
|
4393
|
-
},
|
|
4406
|
+
return Wi(ot({ locale: r }, n));
|
|
4407
|
+
}, Ji = Ae(
|
|
4394
4408
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4395
|
-
(e, t =
|
|
4409
|
+
(e, t = Z()) => new Si(e, t, ne().formats, {
|
|
4396
4410
|
ignoreTag: ne().ignoreTag
|
|
4397
4411
|
})
|
|
4398
|
-
),
|
|
4399
|
-
var r, n, i,
|
|
4400
|
-
let
|
|
4401
|
-
typeof e == "object" && (
|
|
4412
|
+
), qi = (e, t = {}) => {
|
|
4413
|
+
var r, n, i, o;
|
|
4414
|
+
let a = t;
|
|
4415
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
4402
4416
|
const {
|
|
4403
|
-
values:
|
|
4404
|
-
locale: l =
|
|
4417
|
+
values: s,
|
|
4418
|
+
locale: l = Z(),
|
|
4405
4419
|
default: u
|
|
4406
|
-
} =
|
|
4420
|
+
} = a;
|
|
4407
4421
|
if (l == null)
|
|
4408
4422
|
throw new Error(
|
|
4409
4423
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4410
4424
|
);
|
|
4411
|
-
let h =
|
|
4425
|
+
let h = yr(e, l);
|
|
4412
4426
|
if (!h)
|
|
4413
|
-
h = (
|
|
4427
|
+
h = (o = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4414
4428
|
else if (typeof h != "string")
|
|
4415
4429
|
return console.warn(
|
|
4416
4430
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4417
4431
|
), h;
|
|
4418
|
-
if (!
|
|
4432
|
+
if (!s)
|
|
4419
4433
|
return h;
|
|
4420
|
-
let
|
|
4434
|
+
let f = h;
|
|
4421
4435
|
try {
|
|
4422
|
-
|
|
4423
|
-
} catch (
|
|
4424
|
-
|
|
4436
|
+
f = Ji(h, l).format(s);
|
|
4437
|
+
} catch (c) {
|
|
4438
|
+
c instanceof Error && console.warn(
|
|
4425
4439
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4426
|
-
|
|
4440
|
+
c.message
|
|
4427
4441
|
);
|
|
4428
4442
|
}
|
|
4429
|
-
return
|
|
4430
|
-
},
|
|
4431
|
-
ie([
|
|
4432
|
-
ie([
|
|
4433
|
-
ie([
|
|
4434
|
-
ie([
|
|
4435
|
-
window.emWidgets = { topic:
|
|
4436
|
-
const
|
|
4437
|
-
function
|
|
4443
|
+
return f;
|
|
4444
|
+
}, Yi = (e, t) => Qi(t).format(e), Ki = (e, t) => Zi(t).format(e), eo = (e, t) => zi(t).format(e), to = (e, t = Z()) => yr(e, t), ro = ie([oe, fe], () => qi);
|
|
4445
|
+
ie([oe], () => Yi);
|
|
4446
|
+
ie([oe], () => Ki);
|
|
4447
|
+
ie([oe], () => eo);
|
|
4448
|
+
ie([oe, fe], () => to);
|
|
4449
|
+
window.emWidgets = { topic: bn };
|
|
4450
|
+
const wr = (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)), no = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4451
|
+
function Ro(e, t) {
|
|
4438
4452
|
const r = window.navigator.userAgent;
|
|
4439
|
-
return
|
|
4453
|
+
return wr(r) ? t = e.filter((n) => {
|
|
4440
4454
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
|
4441
4455
|
return n;
|
|
4442
4456
|
}) : t = e.filter((n) => {
|
|
@@ -4444,13 +4458,13 @@ function Ls(e, t) {
|
|
|
4444
4458
|
return n;
|
|
4445
4459
|
}), t;
|
|
4446
4460
|
}
|
|
4447
|
-
function
|
|
4461
|
+
function io(e, t) {
|
|
4448
4462
|
if (e) {
|
|
4449
4463
|
const r = document.createElement("style");
|
|
4450
4464
|
r.innerHTML = t, e.appendChild(r);
|
|
4451
4465
|
}
|
|
4452
4466
|
}
|
|
4453
|
-
function
|
|
4467
|
+
function oo(e, t) {
|
|
4454
4468
|
const r = new URL(t);
|
|
4455
4469
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4456
4470
|
const i = document.createElement("style");
|
|
@@ -4459,7 +4473,7 @@ function rs(e, t) {
|
|
|
4459
4473
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4460
4474
|
});
|
|
4461
4475
|
}
|
|
4462
|
-
function
|
|
4476
|
+
function so(e, t, r) {
|
|
4463
4477
|
if (window.emMessageBus) {
|
|
4464
4478
|
const n = document.createElement("style");
|
|
4465
4479
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4467,13 +4481,13 @@ function ns(e, t, r) {
|
|
|
4467
4481
|
});
|
|
4468
4482
|
}
|
|
4469
4483
|
}
|
|
4470
|
-
function
|
|
4471
|
-
|
|
4484
|
+
function Lt(e, t) {
|
|
4485
|
+
vr(e, t);
|
|
4472
4486
|
}
|
|
4473
|
-
function
|
|
4474
|
-
|
|
4487
|
+
function ao(e) {
|
|
4488
|
+
oe.set(e);
|
|
4475
4489
|
}
|
|
4476
|
-
const
|
|
4490
|
+
const Mt = {
|
|
4477
4491
|
en: {
|
|
4478
4492
|
error: "500 Error - Internal Server Error"
|
|
4479
4493
|
},
|
|
@@ -4505,7 +4519,7 @@ if (typeof window != "undefined") {
|
|
|
4505
4519
|
}
|
|
4506
4520
|
};
|
|
4507
4521
|
};
|
|
4508
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-
|
|
4522
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-Dun4o4bY.js").then(({ default: t }) => {
|
|
4509
4523
|
!customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
|
|
4510
4524
|
});
|
|
4511
4525
|
}
|
|
@@ -4521,70 +4535,70 @@ if (typeof window != "undefined") {
|
|
|
4521
4535
|
}
|
|
4522
4536
|
};
|
|
4523
4537
|
};
|
|
4524
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-
|
|
4538
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-SgYp_4Zc.js").then(({ default: t }) => {
|
|
4525
4539
|
!customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
|
|
4526
4540
|
});
|
|
4527
4541
|
}
|
|
4528
|
-
function
|
|
4529
|
-
|
|
4542
|
+
function uo(e) {
|
|
4543
|
+
Nr(e, "svelte-5u3c97", `.svelte-5u3c97{font-family:inherit}.CasinoCalendarItem.svelte-5u3c97{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow-x:auto;overflow-y:hidden;justify-content:space-evenly}.Mobile.svelte-5u3c97{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper.svelte-5u3c97{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-5u3c97{display:block;width:80px;height:80px;margin:0 auto
|
|
4530
4544
|
}.LoadingSpinner.svelte-5u3c97:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:svelte-5u3c97-LoadingSpinner 1.2s linear infinite}@keyframes svelte-5u3c97-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
|
|
4531
4545
|
}
|
|
4532
|
-
function
|
|
4546
|
+
function Nt(e, t, r) {
|
|
4533
4547
|
const n = e.slice();
|
|
4534
4548
|
return n[26] = t[r], n[28] = r, n;
|
|
4535
4549
|
}
|
|
4536
|
-
function
|
|
4537
|
-
let t, r, n, i =
|
|
4550
|
+
function lo(e) {
|
|
4551
|
+
let t, r, n, i = ft(
|
|
4538
4552
|
/*calendarCollections*/
|
|
4539
4553
|
e[6]
|
|
4540
|
-
),
|
|
4541
|
-
for (let
|
|
4542
|
-
s
|
|
4543
|
-
let
|
|
4554
|
+
), o = [];
|
|
4555
|
+
for (let s = 0; s < i.length; s += 1)
|
|
4556
|
+
o[s] = Rt(Nt(e, i, s));
|
|
4557
|
+
let a = (
|
|
4544
4558
|
/*calendarModalOpened*/
|
|
4545
|
-
e[11] == !0 &&
|
|
4559
|
+
e[11] == !0 && $t(e)
|
|
4546
4560
|
);
|
|
4547
4561
|
return {
|
|
4548
4562
|
c() {
|
|
4549
4563
|
t = $("div");
|
|
4550
|
-
for (let
|
|
4551
|
-
s
|
|
4552
|
-
r =
|
|
4564
|
+
for (let s = 0; s < o.length; s += 1)
|
|
4565
|
+
o[s].c();
|
|
4566
|
+
r = Gr(), a && a.c(), k(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
|
|
4553
4567
|
(e[10] ? "Mobile" : "") + " svelte-5u3c97");
|
|
4554
4568
|
},
|
|
4555
|
-
m(
|
|
4556
|
-
V(
|
|
4557
|
-
for (let u = 0; u <
|
|
4558
|
-
|
|
4559
|
-
we(t, r),
|
|
4569
|
+
m(s, l) {
|
|
4570
|
+
V(s, t, l);
|
|
4571
|
+
for (let u = 0; u < o.length; u += 1)
|
|
4572
|
+
o[u] && o[u].m(t, null);
|
|
4573
|
+
we(t, r), a && a.m(t, null);
|
|
4560
4574
|
},
|
|
4561
|
-
p(
|
|
4575
|
+
p(s, l) {
|
|
4562
4576
|
if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
|
|
4563
4577
|
95) {
|
|
4564
|
-
i =
|
|
4578
|
+
i = ft(
|
|
4565
4579
|
/*calendarCollections*/
|
|
4566
|
-
|
|
4580
|
+
s[6]
|
|
4567
4581
|
);
|
|
4568
4582
|
let u;
|
|
4569
4583
|
for (u = 0; u < i.length; u += 1) {
|
|
4570
|
-
const h =
|
|
4571
|
-
|
|
4584
|
+
const h = Nt(s, i, u);
|
|
4585
|
+
o[u] ? o[u].p(h, l) : (o[u] = Rt(h), o[u].c(), o[u].m(t, r));
|
|
4572
4586
|
}
|
|
4573
|
-
for (; u <
|
|
4574
|
-
|
|
4575
|
-
|
|
4587
|
+
for (; u < o.length; u += 1)
|
|
4588
|
+
o[u].d(1);
|
|
4589
|
+
o.length = i.length;
|
|
4576
4590
|
}
|
|
4577
4591
|
/*calendarModalOpened*/
|
|
4578
|
-
|
|
4592
|
+
s[11] == !0 ? a ? a.p(s, l) : (a = $t(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
|
|
4579
4593
|
1024 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
|
|
4580
|
-
(
|
|
4594
|
+
(s[10] ? "Mobile" : "") + " svelte-5u3c97") && k(t, "class", n);
|
|
4581
4595
|
},
|
|
4582
|
-
d(
|
|
4583
|
-
|
|
4596
|
+
d(s) {
|
|
4597
|
+
s && U(t), Dr(o, s), a && a.d();
|
|
4584
4598
|
}
|
|
4585
4599
|
};
|
|
4586
4600
|
}
|
|
4587
|
-
function
|
|
4601
|
+
function ho(e) {
|
|
4588
4602
|
let t;
|
|
4589
4603
|
return {
|
|
4590
4604
|
c() {
|
|
@@ -4593,43 +4607,43 @@ function as(e) {
|
|
|
4593
4607
|
m(r, n) {
|
|
4594
4608
|
V(r, t, n);
|
|
4595
4609
|
},
|
|
4596
|
-
p:
|
|
4610
|
+
p: A,
|
|
4597
4611
|
d(r) {
|
|
4598
4612
|
r && U(t);
|
|
4599
4613
|
}
|
|
4600
4614
|
};
|
|
4601
4615
|
}
|
|
4602
|
-
function
|
|
4616
|
+
function co(e) {
|
|
4603
4617
|
let t, r = (
|
|
4604
4618
|
/*$_*/
|
|
4605
4619
|
e[12]("error") + ""
|
|
4606
4620
|
), n;
|
|
4607
4621
|
return {
|
|
4608
4622
|
c() {
|
|
4609
|
-
t = $("p"), n =
|
|
4623
|
+
t = $("p"), n = tt(r), k(t, "class", "SearchLoading svelte-5u3c97");
|
|
4610
4624
|
},
|
|
4611
|
-
m(i,
|
|
4612
|
-
V(i, t,
|
|
4625
|
+
m(i, o) {
|
|
4626
|
+
V(i, t, o), we(t, n);
|
|
4613
4627
|
},
|
|
4614
|
-
p(i,
|
|
4615
|
-
|
|
4628
|
+
p(i, o) {
|
|
4629
|
+
o & /*$_*/
|
|
4616
4630
|
4096 && r !== (r = /*$_*/
|
|
4617
|
-
i[12]("error") + "") &&
|
|
4631
|
+
i[12]("error") + "") && jr(n, r);
|
|
4618
4632
|
},
|
|
4619
4633
|
d(i) {
|
|
4620
4634
|
i && U(t);
|
|
4621
4635
|
}
|
|
4622
4636
|
};
|
|
4623
4637
|
}
|
|
4624
|
-
function
|
|
4625
|
-
let t, r, n, i,
|
|
4638
|
+
function Rt(e) {
|
|
4639
|
+
let t, r, n, i, o, a;
|
|
4626
4640
|
return {
|
|
4627
4641
|
c() {
|
|
4628
4642
|
t = $("casino-calendar-daily-item"), d(t, "dailybackground", r = /*dailyCalendarData*/
|
|
4629
4643
|
e[26].dailyBackground), d(t, "dailyicon", n = /*dailyCalendarData*/
|
|
4630
4644
|
e[26].dailyIcon), d(t, "dailyday", i = /*dailyCalendarData*/
|
|
4631
|
-
e[26].dailyDay), d(t, "dailydescription",
|
|
4632
|
-
e[26].dailyDescription), d(t, "dailybuttontitle",
|
|
4645
|
+
e[26].dailyDay), d(t, "dailydescription", o = /*dailyCalendarData*/
|
|
4646
|
+
e[26].dailyDescription), d(t, "dailybuttontitle", a = /*dailyCalendarData*/
|
|
4633
4647
|
e[26].dailyButtonTitle), d(
|
|
4634
4648
|
t,
|
|
4635
4649
|
"index",
|
|
@@ -4662,59 +4676,59 @@ function Nt(e) {
|
|
|
4662
4676
|
e[3]
|
|
4663
4677
|
), d(t, "class", "svelte-5u3c97");
|
|
4664
4678
|
},
|
|
4665
|
-
m(
|
|
4666
|
-
V(
|
|
4679
|
+
m(s, l) {
|
|
4680
|
+
V(s, t, l);
|
|
4667
4681
|
},
|
|
4668
|
-
p(
|
|
4682
|
+
p(s, l) {
|
|
4669
4683
|
l & /*calendarCollections*/
|
|
4670
4684
|
64 && r !== (r = /*dailyCalendarData*/
|
|
4671
|
-
|
|
4685
|
+
s[26].dailyBackground) && d(t, "dailybackground", r), l & /*calendarCollections*/
|
|
4672
4686
|
64 && n !== (n = /*dailyCalendarData*/
|
|
4673
|
-
|
|
4687
|
+
s[26].dailyIcon) && d(t, "dailyicon", n), l & /*calendarCollections*/
|
|
4674
4688
|
64 && i !== (i = /*dailyCalendarData*/
|
|
4675
|
-
|
|
4676
|
-
64 && s !== (s = /*dailyCalendarData*/
|
|
4677
|
-
a[26].dailyDescription) && d(t, "dailydescription", s), l & /*calendarCollections*/
|
|
4689
|
+
s[26].dailyDay) && d(t, "dailyday", i), l & /*calendarCollections*/
|
|
4678
4690
|
64 && o !== (o = /*dailyCalendarData*/
|
|
4679
|
-
|
|
4691
|
+
s[26].dailyDescription) && d(t, "dailydescription", o), l & /*calendarCollections*/
|
|
4692
|
+
64 && a !== (a = /*dailyCalendarData*/
|
|
4693
|
+
s[26].dailyButtonTitle) && d(t, "dailybuttontitle", a), l & /*lang*/
|
|
4680
4694
|
1 && d(
|
|
4681
4695
|
t,
|
|
4682
4696
|
"lang",
|
|
4683
4697
|
/*lang*/
|
|
4684
|
-
|
|
4698
|
+
s[0]
|
|
4685
4699
|
), l & /*clientstyling*/
|
|
4686
4700
|
2 && d(
|
|
4687
4701
|
t,
|
|
4688
4702
|
"clientstyling",
|
|
4689
4703
|
/*clientstyling*/
|
|
4690
|
-
|
|
4704
|
+
s[1]
|
|
4691
4705
|
), l & /*clientstylingurl*/
|
|
4692
4706
|
4 && d(
|
|
4693
4707
|
t,
|
|
4694
4708
|
"clientstylingurl",
|
|
4695
4709
|
/*clientstylingurl*/
|
|
4696
|
-
|
|
4710
|
+
s[2]
|
|
4697
4711
|
), l & /*mbsource*/
|
|
4698
4712
|
16 && d(
|
|
4699
4713
|
t,
|
|
4700
4714
|
"mbsource",
|
|
4701
4715
|
/*mbsource*/
|
|
4702
|
-
|
|
4716
|
+
s[4]
|
|
4703
4717
|
), l & /*translationurl*/
|
|
4704
4718
|
8 && d(
|
|
4705
4719
|
t,
|
|
4706
4720
|
"translationurl",
|
|
4707
4721
|
/*translationurl*/
|
|
4708
|
-
|
|
4722
|
+
s[3]
|
|
4709
4723
|
);
|
|
4710
4724
|
},
|
|
4711
|
-
d(
|
|
4712
|
-
|
|
4725
|
+
d(s) {
|
|
4726
|
+
s && U(t);
|
|
4713
4727
|
}
|
|
4714
4728
|
};
|
|
4715
4729
|
}
|
|
4716
|
-
function
|
|
4717
|
-
let t, r, n, i,
|
|
4730
|
+
function $t(e) {
|
|
4731
|
+
let t, r, n, i, o, a, s, l;
|
|
4718
4732
|
return {
|
|
4719
4733
|
c() {
|
|
4720
4734
|
t = $("div"), r = $("casino-calendar-daily-details"), d(r, "dailybackground", n = /*calendarCollections*/
|
|
@@ -4725,15 +4739,15 @@ function Mt(e) {
|
|
|
4725
4739
|
e[6][
|
|
4726
4740
|
/*selectedIndex*/
|
|
4727
4741
|
e[7]
|
|
4728
|
-
].dailyButtonTitle), d(r, "dailyday",
|
|
4742
|
+
].dailyButtonTitle), d(r, "dailyday", o = /*calendarCollections*/
|
|
4729
4743
|
e[6][
|
|
4730
4744
|
/*selectedIndex*/
|
|
4731
4745
|
e[7]
|
|
4732
|
-
].dailyDay), d(r, "dailydescription",
|
|
4746
|
+
].dailyDay), d(r, "dailydescription", a = /*calendarCollections*/
|
|
4733
4747
|
e[6][
|
|
4734
4748
|
/*selectedIndex*/
|
|
4735
4749
|
e[7]
|
|
4736
|
-
].dailyDescription), d(r, "dailyicon",
|
|
4750
|
+
].dailyDescription), d(r, "dailyicon", s = /*calendarCollections*/
|
|
4737
4751
|
e[6][
|
|
4738
4752
|
/*selectedIndex*/
|
|
4739
4753
|
e[7]
|
|
@@ -4783,21 +4797,21 @@ function Mt(e) {
|
|
|
4783
4797
|
/*selectedIndex*/
|
|
4784
4798
|
u[7]
|
|
4785
4799
|
].dailyButtonTitle) && d(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
|
|
4786
|
-
192 &&
|
|
4800
|
+
192 && o !== (o = /*calendarCollections*/
|
|
4787
4801
|
u[6][
|
|
4788
4802
|
/*selectedIndex*/
|
|
4789
4803
|
u[7]
|
|
4790
|
-
].dailyDay) && d(r, "dailyday",
|
|
4791
|
-
192 &&
|
|
4804
|
+
].dailyDay) && d(r, "dailyday", o), h & /*calendarCollections, selectedIndex*/
|
|
4805
|
+
192 && a !== (a = /*calendarCollections*/
|
|
4792
4806
|
u[6][
|
|
4793
4807
|
/*selectedIndex*/
|
|
4794
4808
|
u[7]
|
|
4795
|
-
].dailyDescription) && d(r, "dailydescription",
|
|
4796
|
-
192 &&
|
|
4809
|
+
].dailyDescription) && d(r, "dailydescription", a), h & /*calendarCollections, selectedIndex*/
|
|
4810
|
+
192 && s !== (s = /*calendarCollections*/
|
|
4797
4811
|
u[6][
|
|
4798
4812
|
/*selectedIndex*/
|
|
4799
4813
|
u[7]
|
|
4800
|
-
].dailyIcon) && d(r, "dailyicon",
|
|
4814
|
+
].dailyIcon) && d(r, "dailyicon", s), h & /*calendarCollections, selectedIndex*/
|
|
4801
4815
|
192 && l !== (l = /*calendarCollections*/
|
|
4802
4816
|
u[6][
|
|
4803
4817
|
/*selectedIndex*/
|
|
@@ -4839,82 +4853,82 @@ function Mt(e) {
|
|
|
4839
4853
|
}
|
|
4840
4854
|
};
|
|
4841
4855
|
}
|
|
4842
|
-
function
|
|
4856
|
+
function fo(e) {
|
|
4843
4857
|
let t;
|
|
4844
|
-
function r(
|
|
4845
|
-
var
|
|
4858
|
+
function r(o, a) {
|
|
4859
|
+
var s;
|
|
4846
4860
|
if (
|
|
4847
4861
|
/*hasErrors*/
|
|
4848
|
-
|
|
4862
|
+
o[9]
|
|
4849
4863
|
)
|
|
4850
|
-
return
|
|
4864
|
+
return co;
|
|
4851
4865
|
if (
|
|
4852
4866
|
/*isLoading*/
|
|
4853
|
-
|
|
4867
|
+
o[8]
|
|
4854
4868
|
)
|
|
4855
|
-
return
|
|
4869
|
+
return ho;
|
|
4856
4870
|
if (
|
|
4857
4871
|
/*calendarCollections*/
|
|
4858
|
-
(
|
|
4872
|
+
(s = o[6]) != null && s.length
|
|
4859
4873
|
)
|
|
4860
|
-
return
|
|
4874
|
+
return lo;
|
|
4861
4875
|
}
|
|
4862
4876
|
let n = r(e), i = n && n(e);
|
|
4863
4877
|
return {
|
|
4864
4878
|
c() {
|
|
4865
4879
|
t = $("div"), i && i.c(), k(t, "class", "svelte-5u3c97");
|
|
4866
4880
|
},
|
|
4867
|
-
m(
|
|
4868
|
-
V(
|
|
4881
|
+
m(o, a) {
|
|
4882
|
+
V(o, t, a), i && i.m(t, null), e[16](t);
|
|
4869
4883
|
},
|
|
4870
|
-
p(
|
|
4871
|
-
n === (n = r(
|
|
4884
|
+
p(o, [a]) {
|
|
4885
|
+
n === (n = r(o)) && i ? i.p(o, a) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
4872
4886
|
},
|
|
4873
|
-
i:
|
|
4874
|
-
o:
|
|
4875
|
-
d(
|
|
4876
|
-
|
|
4887
|
+
i: A,
|
|
4888
|
+
o: A,
|
|
4889
|
+
d(o) {
|
|
4890
|
+
o && U(t), i && i.d(), e[16](null);
|
|
4877
4891
|
}
|
|
4878
4892
|
};
|
|
4879
4893
|
}
|
|
4880
|
-
function
|
|
4894
|
+
function po(e, t, r) {
|
|
4881
4895
|
let n;
|
|
4882
|
-
|
|
4883
|
-
let { cmsendpoint: i = "" } = t, { env:
|
|
4884
|
-
const
|
|
4885
|
-
|
|
4896
|
+
Mr(e, ro, (p) => r(12, n = p));
|
|
4897
|
+
let { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, { mbsource: f } = t, c, m, b = 0, g = !0, S = !1, O = !1, P = window.navigator.userAgent, w = !1, M;
|
|
4898
|
+
const I = () => {
|
|
4899
|
+
ao(s);
|
|
4886
4900
|
};
|
|
4887
|
-
Object.keys(
|
|
4888
|
-
|
|
4901
|
+
Object.keys(Mt).forEach((p) => {
|
|
4902
|
+
Lt(p, Mt[p]);
|
|
4889
4903
|
});
|
|
4890
|
-
const
|
|
4904
|
+
const N = () => {
|
|
4891
4905
|
let p = h;
|
|
4892
4906
|
if (p)
|
|
4893
4907
|
return fetch(p).then((B) => B.json()).then((B) => {
|
|
4894
4908
|
Object.keys(B).forEach((F) => {
|
|
4895
|
-
|
|
4909
|
+
Lt(F, B[F]);
|
|
4896
4910
|
});
|
|
4897
4911
|
}).catch((B) => {
|
|
4898
4912
|
console.log(B);
|
|
4899
4913
|
});
|
|
4900
|
-
},
|
|
4914
|
+
}, x = () => {
|
|
4901
4915
|
r(8, g = !0);
|
|
4902
|
-
let p = new URL(`${i}/${
|
|
4903
|
-
p.searchParams.append("userRoles",
|
|
4904
|
-
let B =
|
|
4916
|
+
let p = new URL(`${i}/${s}/daily-calendar`);
|
|
4917
|
+
p.searchParams.append("userRoles", a), p.searchParams.append("env", o);
|
|
4918
|
+
let B = no(P);
|
|
4905
4919
|
B && (B === "PC" ? p.searchParams.append("device", "dk") : B === "iPad" || B === "iPhone" ? p.searchParams.append("device", "ios") : p.searchParams.append("device", "mtWeb")), fetch(p.href).then((F) => F.json()).then((F) => {
|
|
4906
4920
|
r(6, m = F);
|
|
4907
4921
|
}).catch((F) => {
|
|
4908
4922
|
console.log(F), r(9, S = !0);
|
|
4909
4923
|
}).finally(() => {
|
|
4910
|
-
|
|
4924
|
+
C(), r(8, g = !1);
|
|
4911
4925
|
});
|
|
4912
|
-
}, x = () => {
|
|
4913
|
-
const p = f.getRootNode().host;
|
|
4914
|
-
p.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: p } }));
|
|
4915
4926
|
}, C = () => {
|
|
4916
|
-
|
|
4917
|
-
|
|
4927
|
+
const p = c.getRootNode().host;
|
|
4928
|
+
p.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: p } }));
|
|
4929
|
+
}, L = () => {
|
|
4930
|
+
x();
|
|
4931
|
+
}, X = (p) => {
|
|
4918
4932
|
var B;
|
|
4919
4933
|
p.data && p.data.type == "OpenCalendar" && (r(7, b = p.data.index), r(11, w = !0), window.postMessage(
|
|
4920
4934
|
{
|
|
@@ -4928,52 +4942,52 @@ function hs(e, t, r) {
|
|
|
4928
4942
|
data: (B = m[b]) == null ? void 0 : B.dailyEvents
|
|
4929
4943
|
})), p.data && p.data.type == "ModalClosed" && r(11, w = !1);
|
|
4930
4944
|
};
|
|
4931
|
-
|
|
4932
|
-
window.removeEventListener("message",
|
|
4945
|
+
Vr(() => (window.addEventListener("message", X, !1), wr(P) && r(10, O = !0), () => {
|
|
4946
|
+
window.emMessageBus && M && window.emMessageBus.unsubscribe("Casino.Style"), window.removeEventListener("message", X);
|
|
4933
4947
|
}));
|
|
4934
|
-
function
|
|
4935
|
-
|
|
4936
|
-
|
|
4948
|
+
function Hr(p) {
|
|
4949
|
+
Ue[p ? "unshift" : "push"](() => {
|
|
4950
|
+
c = p, r(5, c);
|
|
4937
4951
|
});
|
|
4938
4952
|
}
|
|
4939
4953
|
return e.$$set = (p) => {
|
|
4940
|
-
"cmsendpoint" in p && r(13, i = p.cmsendpoint), "env" in p && r(14,
|
|
4954
|
+
"cmsendpoint" in p && r(13, i = p.cmsendpoint), "env" in p && r(14, o = p.env), "userroles" in p && r(15, a = p.userroles), "lang" in p && r(0, s = p.lang), "clientstyling" in p && r(1, l = p.clientstyling), "clientstylingurl" in p && r(2, u = p.clientstylingurl), "translationurl" in p && r(3, h = p.translationurl), "mbsource" in p && r(4, f = p.mbsource);
|
|
4941
4955
|
}, e.$$.update = () => {
|
|
4942
4956
|
e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
|
|
4943
|
-
57345 && i &&
|
|
4944
|
-
34 && l &&
|
|
4945
|
-
36 && u &&
|
|
4946
|
-
48 &&
|
|
4947
|
-
1 &&
|
|
4948
|
-
9 &&
|
|
4957
|
+
57345 && i && s && o && a && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4958
|
+
34 && l && c && io(c, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4959
|
+
36 && u && c && oo(c, u), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4960
|
+
48 && c && so(c, `${f}.Style`), e.$$.dirty & /*lang*/
|
|
4961
|
+
1 && s && I(), e.$$.dirty & /*lang, translationurl*/
|
|
4962
|
+
9 && s && h && N();
|
|
4949
4963
|
}, [
|
|
4950
|
-
|
|
4964
|
+
s,
|
|
4951
4965
|
l,
|
|
4952
4966
|
u,
|
|
4953
4967
|
h,
|
|
4954
|
-
c,
|
|
4955
4968
|
f,
|
|
4969
|
+
c,
|
|
4956
4970
|
m,
|
|
4957
4971
|
b,
|
|
4958
4972
|
g,
|
|
4959
4973
|
S,
|
|
4960
|
-
|
|
4974
|
+
O,
|
|
4961
4975
|
w,
|
|
4962
4976
|
n,
|
|
4963
4977
|
i,
|
|
4964
|
-
s,
|
|
4965
4978
|
o,
|
|
4966
|
-
|
|
4979
|
+
a,
|
|
4980
|
+
Hr
|
|
4967
4981
|
];
|
|
4968
4982
|
}
|
|
4969
|
-
class
|
|
4983
|
+
class Tr extends Kr {
|
|
4970
4984
|
constructor(t) {
|
|
4971
|
-
super(),
|
|
4985
|
+
super(), qr(
|
|
4972
4986
|
this,
|
|
4973
4987
|
t,
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4988
|
+
po,
|
|
4989
|
+
fo,
|
|
4990
|
+
Ut,
|
|
4977
4991
|
{
|
|
4978
4992
|
cmsendpoint: 13,
|
|
4979
4993
|
env: 14,
|
|
@@ -4984,7 +4998,7 @@ class xr extends Qr {
|
|
|
4984
4998
|
translationurl: 3,
|
|
4985
4999
|
mbsource: 4
|
|
4986
5000
|
},
|
|
4987
|
-
|
|
5001
|
+
uo
|
|
4988
5002
|
);
|
|
4989
5003
|
}
|
|
4990
5004
|
get cmsendpoint() {
|
|
@@ -5036,67 +5050,67 @@ class xr extends Qr {
|
|
|
5036
5050
|
this.$$set({ mbsource: t }), R();
|
|
5037
5051
|
}
|
|
5038
5052
|
}
|
|
5039
|
-
|
|
5040
|
-
const
|
|
5053
|
+
Yr(Tr, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
5054
|
+
const $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5041
5055
|
__proto__: null,
|
|
5042
|
-
default:
|
|
5056
|
+
default: Tr
|
|
5043
5057
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5044
5058
|
export {
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5059
|
+
oe as $,
|
|
5060
|
+
So as A,
|
|
5061
|
+
vo as B,
|
|
5062
|
+
_o as C,
|
|
5063
|
+
go as D,
|
|
5064
|
+
jr as E,
|
|
5065
|
+
Dr as F,
|
|
5066
|
+
A as G,
|
|
5053
5067
|
d as H,
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5068
|
+
bo as I,
|
|
5069
|
+
ro as J,
|
|
5070
|
+
Ur as K,
|
|
5071
|
+
Ho as L,
|
|
5072
|
+
z as M,
|
|
5073
|
+
wo as N,
|
|
5074
|
+
fe as O,
|
|
5075
|
+
no as P,
|
|
5076
|
+
To as Q,
|
|
5077
|
+
Bo as R,
|
|
5078
|
+
Kr as S,
|
|
5079
|
+
xo as T,
|
|
5080
|
+
Po as U,
|
|
5081
|
+
Oo as V,
|
|
5082
|
+
Ao as W,
|
|
5083
|
+
Ro as X,
|
|
5084
|
+
No as Y,
|
|
5085
|
+
Lo as Z,
|
|
5086
|
+
Mo as _,
|
|
5087
|
+
vr as a,
|
|
5088
|
+
Eo as a0,
|
|
5075
5089
|
Se as a1,
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5090
|
+
$o as a2,
|
|
5091
|
+
Nr as b,
|
|
5092
|
+
Yr as c,
|
|
5079
5093
|
V as d,
|
|
5080
5094
|
$ as e,
|
|
5081
5095
|
R as f,
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5096
|
+
Co as g,
|
|
5097
|
+
Xt as h,
|
|
5098
|
+
qr as i,
|
|
5085
5099
|
U as j,
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
+
Mr as k,
|
|
5101
|
+
oo as l,
|
|
5102
|
+
so as m,
|
|
5103
|
+
Io as n,
|
|
5104
|
+
Vr as o,
|
|
5105
|
+
wr as p,
|
|
5106
|
+
Ue as q,
|
|
5107
|
+
io as r,
|
|
5108
|
+
Ut as s,
|
|
5109
|
+
zr as t,
|
|
5110
|
+
yo as u,
|
|
5111
|
+
ft as v,
|
|
5112
|
+
Gr as w,
|
|
5113
|
+
tt as x,
|
|
5100
5114
|
k as y,
|
|
5101
5115
|
we as z
|
|
5102
5116
|
};
|