@everymatrix/casino-page-nd 1.54.12 → 1.56.0
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-BUWW4Xzj.cjs +6 -0
- package/components/{CasinoCalendar-DqqWE3PZ.js → CasinoCalendar-DwKH1vl3.js} +972 -928
- package/components/{CasinoCalendar-BzhZkzgP.js → CasinoCalendar-tMtCN0uW.js} +939 -895
- package/components/CasinoCalendarDailyDetails-B1yNq5WP.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-BP_ANGdX.js +693 -0
- package/components/CasinoCalendarDailyDetails-CehhK4Vt.js +693 -0
- package/components/CasinoCalendarDailyItem-C08Z_td-.cjs +1 -0
- package/components/CasinoCalendarDailyItem-Cf-elj80.js +306 -0
- package/components/CasinoCalendarDailyItem-DE7Q_O2x.js +306 -0
- package/components/CasinoCollectionsProviders-C0mIOrt5.cjs +1 -0
- package/components/CasinoCollectionsProviders-DoRepmON.js +659 -0
- package/components/CasinoCollectionsProviders-Yt2ApEP5.js +654 -0
- package/components/{CasinoFavoritesSectionNd-BaYSblX2.js → CasinoFavoritesSectionNd-B02g5uyD.js} +149 -142
- package/components/{CasinoFavoritesSectionNd-DPO11eIl.js → CasinoFavoritesSectionNd-Bza8UQ0r.js} +149 -142
- package/components/CasinoFavoritesSectionNd-CnSYWIJi.cjs +1 -0
- package/components/CasinoFilter-BYz1zKUs.cjs +1 -0
- package/components/{CasinoFilter-CQA5tRXc.js → CasinoFilter-BbKgy4VX.js} +240 -247
- package/components/{CasinoFilter-DarCjn7O.js → CasinoFilter-Cb7FySTm.js} +236 -241
- package/components/{CasinoGameThumbnailNd-C8JF_kRW.js → CasinoGameThumbnailNd-6P122Pbb.js} +1335 -1338
- package/components/CasinoGameThumbnailNd-DlUJ8jo8.cjs +39 -0
- package/components/{CasinoGameThumbnailNd-CMWvCrxU.js → CasinoGameThumbnailNd-Dtq6Pf7M.js} +1335 -1338
- package/components/CasinoGamesCategorySectionNd-C1OvVakY.js +3029 -0
- package/components/CasinoGamesCategorySectionNd-C1iO2_SR.cjs +1 -0
- package/components/{CasinoGamesCategorySectionNd-D97PLCZQ.js → CasinoGamesCategorySectionNd-vmZnCjR8.js} +1135 -1109
- package/components/CasinoJackpotBanner-BaqwOwIt.js +688 -0
- package/components/CasinoJackpotBanner-DZZsX8IW.cjs +1 -0
- package/components/CasinoJackpotBanner-Dnu1YGvy.js +692 -0
- package/components/CasinoLastPlayedSectionNd-CYoHFQEu.js +575 -0
- package/components/CasinoLastPlayedSectionNd-D-71OOLA.cjs +1 -0
- package/components/CasinoLastPlayedSectionNd-DVAEB9Kf.js +575 -0
- package/components/{CasinoMostPlayedSectionNd-DBY9uW22.js → CasinoMostPlayedSectionNd-Ce4mFMX2.js} +172 -163
- package/components/{CasinoMostPlayedSectionNd-DT0BhU2p.js → CasinoMostPlayedSectionNd-Comi_0uw.js} +172 -163
- package/components/CasinoMostPlayedSectionNd-DOFhn6t3.cjs +1 -0
- package/components/{CasinoMyGamesNd-BYler1NB.js → CasinoMyGamesNd-C2159D_C.js} +493 -463
- package/components/{CasinoMyGamesNd-tEImAPBs.js → CasinoMyGamesNd-CI-YgB5L.js} +499 -469
- package/components/CasinoMyGamesNd-Do0Jd4Yy.cjs +1 -0
- package/components/{CasinoPageNd-BbdpaE5v.js → CasinoPageNd-CHw9KY4G.js} +1305 -1146
- package/components/{CasinoPageNd-CbP1X2KC.js → CasinoPageNd-Cl9m0NgT.js} +1299 -1140
- package/components/CasinoPageNd-q_CaW-NM.cjs +1 -0
- package/components/{CasinoRandomGame-D1NgXW5u.cjs → CasinoRandomGame-B2FGgsW1.cjs} +2 -2
- package/components/{CasinoRandomGame-CGpFFaoE.js → CasinoRandomGame-D9BEuIS2.js} +226 -228
- package/components/{CasinoRandomGame-CWMW9E0i.js → CasinoRandomGame-T1GVZYOt.js} +243 -245
- package/components/{CasinoSearchNd-BnS9e06D.js → CasinoSearchNd-8l70r1-j.js} +449 -442
- package/components/{CasinoSearchNd-Dr-tu25u.js → CasinoSearchNd-DI3QD6gc.js} +486 -479
- package/components/CasinoSearchNd-r3Xsk168.cjs +1 -0
- package/components/CasinoSort-BmkqSaqQ.cjs +1 -0
- package/components/CasinoSort-BwNRVsYT.js +427 -0
- package/components/CasinoSort-DykEVPy1.js +428 -0
- package/components/CasinoWinners-4fX-Jkcx.cjs +1 -0
- package/components/{CasinoWinners-CFPyLxtr.js → CasinoWinners-DbNw8Ecj.js} +345 -342
- package/components/{CasinoWinners-Brfa3DHB.js → CasinoWinners-Dn6mLcJT.js} +355 -352
- package/components/GeneralAnimationLoading-C3AulHDZ.js +84 -0
- package/components/GeneralAnimationLoading-CKfD84TR.js +84 -0
- package/components/GeneralAnimationLoading-D4L1aOk8.cjs +1 -0
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-NI77_BKB.js → casino-play-random-game-CBXhEsCq.js} +54 -29
- package/stencil/{casino-play-random-game-BxdfOAZj.js → casino-play-random-game-PZXnDzfs.js} +73 -48
- package/stencil/{casino-play-random-game-DEBmcc-I.cjs → casino-play-random-game-y8flXwPv.cjs} +2 -2
- package/stencil/index-29915e18-B3XYTzEC.cjs +1 -0
- package/stencil/{index-8b2c4ca7-BNDGCsVn.js → index-29915e18-CQ_kWzEh.js} +134 -133
- package/stencil/{index-8b2c4ca7-CtUqBgXG.js → index-29915e18-MPiqo7vY.js} +131 -130
- package/components/CasinoCalendar-D2xyIjnZ.cjs +0 -6
- package/components/CasinoCalendarDailyDetails-CNKPmgJW.cjs +0 -1
- package/components/CasinoCalendarDailyDetails-DazppRF9.js +0 -701
- package/components/CasinoCalendarDailyDetails-qLuUx2VZ.js +0 -701
- package/components/CasinoCalendarDailyItem-DKZuA435.js +0 -315
- package/components/CasinoCalendarDailyItem-DcdOBbU8.js +0 -315
- package/components/CasinoCalendarDailyItem-Dm-IKJx0.cjs +0 -1
- package/components/CasinoCollectionsProviders-BpPCl2Cs.cjs +0 -1
- package/components/CasinoCollectionsProviders-DDg-M4Ky.js +0 -664
- package/components/CasinoCollectionsProviders-DPXPW7Wb.js +0 -659
- package/components/CasinoFavoritesSectionNd-BseQ6ntB.cjs +0 -1
- package/components/CasinoFilter-bjRSwwQj.cjs +0 -1
- package/components/CasinoGameThumbnailNd-M5MyMQqb.cjs +0 -39
- package/components/CasinoGamesCategorySectionNd-B7bxi7wJ.js +0 -3003
- package/components/CasinoGamesCategorySectionNd-DzkueBMw.cjs +0 -1
- package/components/CasinoJackpotBanner-BzQTQP0g.js +0 -618
- package/components/CasinoJackpotBanner-CyMIq-Hw.js +0 -614
- package/components/CasinoJackpotBanner-DrH5T9F0.cjs +0 -1
- package/components/CasinoLastPlayedSectionNd-C-VkTH2C.js +0 -566
- package/components/CasinoLastPlayedSectionNd-D7cVedev.js +0 -566
- package/components/CasinoLastPlayedSectionNd-K-wgzihy.cjs +0 -1
- package/components/CasinoMostPlayedSectionNd-DLd7wPNf.cjs +0 -1
- package/components/CasinoMyGamesNd-DQQ8Lo5B.cjs +0 -1
- package/components/CasinoPageNd-D9CuZV8a.cjs +0 -1
- package/components/CasinoSearchNd-BNECYNN3.cjs +0 -1
- package/components/CasinoSort-B5j-QwSa.cjs +0 -1
- package/components/CasinoSort-BKXVp_Q-.js +0 -432
- package/components/CasinoSort-mWbCQ4MJ.js +0 -431
- package/components/CasinoWinners-WPMrk6iO.cjs +0 -1
- package/components/GeneralAnimationLoading-CM50RqcF.js +0 -75
- package/components/GeneralAnimationLoading-DVXxEF3S.js +0 -75
- package/components/GeneralAnimationLoading-DqRALFbY.cjs +0 -1
- package/stencil/index-8b2c4ca7-DAQdcMA3.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var wr = Object.defineProperty, Sr = Object.defineProperties;
|
|
2
2
|
var Tr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var nt = Object.getOwnPropertySymbols;
|
|
4
4
|
var Hr = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Oe = (e, t, r) => t in e ? wr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Hr.call(t, r) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
Br.call(t, r) &&
|
|
7
|
+
Hr.call(t, r) && Oe(e, r, t[r]);
|
|
8
|
+
if (nt)
|
|
9
|
+
for (var r of nt(t))
|
|
10
|
+
Br.call(t, r) && Oe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var T = (e, t, r) =>
|
|
14
|
-
var
|
|
12
|
+
}, ot = (e, t) => Sr(e, Tr(t));
|
|
13
|
+
var T = (e, t, r) => Oe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var st = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -27,7 +27,7 @@ var at = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function O() {
|
|
31
31
|
}
|
|
32
32
|
function Pr(e, t) {
|
|
33
33
|
for (const r in t) e[r] = t[r];
|
|
@@ -36,50 +36,50 @@ function Pr(e, t) {
|
|
|
36
36
|
e
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Rt(e) {
|
|
40
40
|
return e();
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function at() {
|
|
43
43
|
return /* @__PURE__ */ Object.create(null);
|
|
44
44
|
}
|
|
45
45
|
function W(e) {
|
|
46
|
-
e.forEach(
|
|
46
|
+
e.forEach(Rt);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Se(e) {
|
|
49
49
|
return typeof e == "function";
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function $t(e, t) {
|
|
52
52
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
53
53
|
}
|
|
54
|
-
let
|
|
55
|
-
function
|
|
56
|
-
return e === t ? !0 : (
|
|
54
|
+
let de;
|
|
55
|
+
function fo(e, t) {
|
|
56
|
+
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
|
57
57
|
}
|
|
58
58
|
function Ar(e) {
|
|
59
59
|
return Object.keys(e).length === 0;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Dt(e, ...t) {
|
|
62
62
|
if (e == null) {
|
|
63
63
|
for (const n of t)
|
|
64
64
|
n(void 0);
|
|
65
|
-
return
|
|
65
|
+
return O;
|
|
66
66
|
}
|
|
67
67
|
const r = e.subscribe(...t);
|
|
68
68
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
69
69
|
}
|
|
70
70
|
function Or(e, t, r) {
|
|
71
|
-
e.$$.on_destroy.push(
|
|
71
|
+
e.$$.on_destroy.push(Dt(t, r));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function po(e, t, r, n) {
|
|
74
74
|
if (e) {
|
|
75
|
-
const i =
|
|
75
|
+
const i = Ut(e, t, r, n);
|
|
76
76
|
return e[0](i);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ut(e, t, r, n) {
|
|
80
80
|
return e[1] && n ? Pr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function mo(e, t, r, n) {
|
|
83
83
|
if (e[2] && n) {
|
|
84
84
|
const i = e[2](n(r));
|
|
85
85
|
if (t.dirty === void 0)
|
|
@@ -94,13 +94,13 @@ function fo(e, t, r, n) {
|
|
|
94
94
|
}
|
|
95
95
|
return t.dirty;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function bo(e, t, r, n, i, o) {
|
|
98
98
|
if (i) {
|
|
99
|
-
const s =
|
|
99
|
+
const s = Ut(t, r, n, o);
|
|
100
100
|
e.p(s, i);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function yo(e) {
|
|
104
104
|
if (e.ctx.length > 32) {
|
|
105
105
|
const t = [], r = e.ctx.length / 32;
|
|
106
106
|
for (let n = 0; n < r; n++)
|
|
@@ -109,16 +109,16 @@ function mo(e) {
|
|
|
109
109
|
}
|
|
110
110
|
return -1;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return e &&
|
|
112
|
+
function go(e) {
|
|
113
|
+
return e && Se(e.destroy) ? e.destroy : O;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ce(e, t) {
|
|
116
116
|
e.appendChild(t);
|
|
117
117
|
}
|
|
118
118
|
function Ir(e, t, r) {
|
|
119
119
|
const n = Cr(e);
|
|
120
120
|
if (!n.getElementById(t)) {
|
|
121
|
-
const i =
|
|
121
|
+
const i = N("style");
|
|
122
122
|
i.id = t, i.textContent = r, Lr(n, i);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
@@ -132,13 +132,13 @@ function Cr(e) {
|
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
134
|
function Lr(e, t) {
|
|
135
|
-
return
|
|
135
|
+
return ce(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function V(e, t, r) {
|
|
142
142
|
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
144
|
function D(e) {
|
|
@@ -148,35 +148,35 @@ function Nr(e, t) {
|
|
|
148
148
|
for (let r = 0; r < e.length; r += 1)
|
|
149
149
|
e[r] && e[r].d(t);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function N(e) {
|
|
152
152
|
return document.createElement(e);
|
|
153
153
|
}
|
|
154
154
|
function Mr(e) {
|
|
155
155
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function et(e) {
|
|
158
158
|
return document.createTextNode(e);
|
|
159
159
|
}
|
|
160
160
|
function Rr() {
|
|
161
|
-
return
|
|
161
|
+
return et(" ");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
163
|
+
function vo() {
|
|
164
|
+
return et("");
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ut(e, t, r, n) {
|
|
167
167
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function _o(e) {
|
|
170
170
|
return function(t) {
|
|
171
171
|
return t.stopPropagation(), e.call(this, t);
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function k(e, t, r) {
|
|
175
175
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function p(e, t, r) {
|
|
178
178
|
const n = t.toLowerCase();
|
|
179
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
179
|
+
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);
|
|
180
180
|
}
|
|
181
181
|
function $r(e) {
|
|
182
182
|
return Array.from(e.childNodes);
|
|
@@ -185,34 +185,34 @@ function Dr(e, t) {
|
|
|
185
185
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
186
186
|
t);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Eo(e, t) {
|
|
189
189
|
e.value = t == null ? "" : t;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function xo(e, t, r, n) {
|
|
192
192
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
193
193
|
}
|
|
194
|
-
let
|
|
194
|
+
let pe;
|
|
195
195
|
function Ur() {
|
|
196
|
-
if (
|
|
197
|
-
|
|
196
|
+
if (pe === void 0) {
|
|
197
|
+
pe = !1;
|
|
198
198
|
try {
|
|
199
199
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
200
200
|
} catch (e) {
|
|
201
|
-
|
|
201
|
+
pe = !0;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
return
|
|
204
|
+
return pe;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function wo(e, t) {
|
|
207
207
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
208
|
-
const n =
|
|
208
|
+
const n = N("iframe");
|
|
209
209
|
n.setAttribute(
|
|
210
210
|
"style",
|
|
211
211
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
212
212
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
213
213
|
const i = Ur();
|
|
214
214
|
let o;
|
|
215
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
215
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = ut(
|
|
216
216
|
window,
|
|
217
217
|
"message",
|
|
218
218
|
/** @param {MessageEvent} event */
|
|
@@ -220,15 +220,15 @@ function Eo(e, t) {
|
|
|
220
220
|
s.source === n.contentWindow && t();
|
|
221
221
|
}
|
|
222
222
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
223
|
-
o =
|
|
224
|
-
}),
|
|
223
|
+
o = ut(n.contentWindow, "resize", t), t();
|
|
224
|
+
}), ce(e, n), () => {
|
|
225
225
|
(i || o && n.contentWindow) && o(), D(n);
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function So(e, t, r) {
|
|
229
229
|
e.classList.toggle(t, !!r);
|
|
230
230
|
}
|
|
231
|
-
class
|
|
231
|
+
class To {
|
|
232
232
|
constructor(t = !1) {
|
|
233
233
|
/**
|
|
234
234
|
* @private
|
|
@@ -262,7 +262,7 @@ class So {
|
|
|
262
262
|
this.e || (this.is_svg ? this.e = Mr(
|
|
263
263
|
/** @type {keyof SVGElementTagNameMap} */
|
|
264
264
|
r.nodeName
|
|
265
|
-
) : this.e =
|
|
265
|
+
) : this.e = N(
|
|
266
266
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
267
267
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
268
268
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
@@ -283,7 +283,7 @@ class So {
|
|
|
283
283
|
* @returns {void} */
|
|
284
284
|
i(t) {
|
|
285
285
|
for (let r = 0; r < this.n.length; r += 1)
|
|
286
|
-
|
|
286
|
+
V(this.t, this.n[r], t);
|
|
287
287
|
}
|
|
288
288
|
/**
|
|
289
289
|
* @param {string} html
|
|
@@ -307,147 +307,150 @@ function Gr(e) {
|
|
|
307
307
|
}
|
|
308
308
|
), t;
|
|
309
309
|
}
|
|
310
|
-
let
|
|
311
|
-
function
|
|
312
|
-
|
|
310
|
+
let ue;
|
|
311
|
+
function ae(e) {
|
|
312
|
+
ue = e;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
if (!
|
|
316
|
-
return
|
|
314
|
+
function Gt() {
|
|
315
|
+
if (!ue) throw new Error("Function called outside component initialization");
|
|
316
|
+
return ue;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
|
|
318
|
+
function Fr(e) {
|
|
319
|
+
Gt().$$.on_mount.push(e);
|
|
320
|
+
}
|
|
321
|
+
function Ho(e) {
|
|
322
|
+
Gt().$$.on_destroy.push(e);
|
|
320
323
|
}
|
|
321
|
-
const J = [],
|
|
322
|
-
let
|
|
323
|
-
const
|
|
324
|
-
let
|
|
324
|
+
const J = [], De = [];
|
|
325
|
+
let q = [];
|
|
326
|
+
const lt = [], Ft = /* @__PURE__ */ Promise.resolve();
|
|
327
|
+
let Ue = !1;
|
|
325
328
|
function jt() {
|
|
326
|
-
|
|
329
|
+
Ue || (Ue = !0, Ft.then($));
|
|
327
330
|
}
|
|
328
|
-
function
|
|
331
|
+
function Bo() {
|
|
329
332
|
return jt(), Ft;
|
|
330
333
|
}
|
|
331
|
-
function
|
|
332
|
-
|
|
334
|
+
function Ge(e) {
|
|
335
|
+
q.push(e);
|
|
333
336
|
}
|
|
334
|
-
const
|
|
337
|
+
const Ie = /* @__PURE__ */ new Set();
|
|
335
338
|
let Z = 0;
|
|
336
|
-
function
|
|
339
|
+
function $() {
|
|
337
340
|
if (Z !== 0)
|
|
338
341
|
return;
|
|
339
|
-
const e =
|
|
342
|
+
const e = ue;
|
|
340
343
|
do {
|
|
341
344
|
try {
|
|
342
345
|
for (; Z < J.length; ) {
|
|
343
346
|
const t = J[Z];
|
|
344
|
-
Z++,
|
|
347
|
+
Z++, ae(t), jr(t.$$);
|
|
345
348
|
}
|
|
346
349
|
} catch (t) {
|
|
347
350
|
throw J.length = 0, Z = 0, t;
|
|
348
351
|
}
|
|
349
|
-
for (
|
|
350
|
-
for (let t = 0; t <
|
|
351
|
-
const r =
|
|
352
|
-
|
|
352
|
+
for (ae(null), J.length = 0, Z = 0; De.length; ) De.pop()();
|
|
353
|
+
for (let t = 0; t < q.length; t += 1) {
|
|
354
|
+
const r = q[t];
|
|
355
|
+
Ie.has(r) || (Ie.add(r), r());
|
|
353
356
|
}
|
|
354
|
-
|
|
357
|
+
q.length = 0;
|
|
355
358
|
} while (J.length);
|
|
356
|
-
for (;
|
|
357
|
-
|
|
358
|
-
|
|
359
|
+
for (; lt.length; )
|
|
360
|
+
lt.pop()();
|
|
361
|
+
Ue = !1, Ie.clear(), ae(e);
|
|
359
362
|
}
|
|
360
|
-
function
|
|
363
|
+
function jr(e) {
|
|
361
364
|
if (e.fragment !== null) {
|
|
362
365
|
e.update(), W(e.before_update);
|
|
363
366
|
const t = e.dirty;
|
|
364
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
367
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ge);
|
|
365
368
|
}
|
|
366
369
|
}
|
|
367
|
-
function
|
|
370
|
+
function kr(e) {
|
|
368
371
|
const t = [], r = [];
|
|
369
|
-
|
|
372
|
+
q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
|
|
370
373
|
}
|
|
371
|
-
const
|
|
372
|
-
let
|
|
373
|
-
function
|
|
374
|
-
|
|
374
|
+
const ye = /* @__PURE__ */ new Set();
|
|
375
|
+
let X;
|
|
376
|
+
function Po() {
|
|
377
|
+
X = {
|
|
375
378
|
r: 0,
|
|
376
379
|
c: [],
|
|
377
|
-
p:
|
|
380
|
+
p: X
|
|
378
381
|
// parent group
|
|
379
382
|
};
|
|
380
383
|
}
|
|
381
|
-
function
|
|
382
|
-
|
|
384
|
+
function Ao() {
|
|
385
|
+
X.r || W(X.c), X = X.p;
|
|
383
386
|
}
|
|
384
387
|
function kt(e, t) {
|
|
385
|
-
e && e.i && (
|
|
388
|
+
e && e.i && (ye.delete(e), e.i(t));
|
|
386
389
|
}
|
|
387
|
-
function
|
|
390
|
+
function Oo(e, t, r, n) {
|
|
388
391
|
if (e && e.o) {
|
|
389
|
-
if (
|
|
390
|
-
|
|
391
|
-
|
|
392
|
+
if (ye.has(e)) return;
|
|
393
|
+
ye.add(e), X.c.push(() => {
|
|
394
|
+
ye.delete(e), n && (r && e.d(1), n());
|
|
392
395
|
}), e.o(t);
|
|
393
396
|
} else n && n();
|
|
394
397
|
}
|
|
395
|
-
function
|
|
398
|
+
function ht(e) {
|
|
396
399
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
397
400
|
}
|
|
398
|
-
function
|
|
401
|
+
function Io(e, t) {
|
|
399
402
|
e.d(1), t.delete(e.key);
|
|
400
403
|
}
|
|
401
|
-
function
|
|
402
|
-
let c = e.length,
|
|
403
|
-
const
|
|
404
|
-
for (; b--; )
|
|
405
|
-
const
|
|
406
|
-
for (b =
|
|
407
|
-
const
|
|
408
|
-
let L = s.get(
|
|
409
|
-
L ?
|
|
404
|
+
function Co(e, t, r, n, i, o, s, a, l, u, h, f) {
|
|
405
|
+
let c = e.length, m = o.length, b = c;
|
|
406
|
+
const g = {};
|
|
407
|
+
for (; b--; ) g[e[b].key] = b;
|
|
408
|
+
const w = [], I = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), S = [];
|
|
409
|
+
for (b = m; b--; ) {
|
|
410
|
+
const x = f(i, o, b), A = r(x);
|
|
411
|
+
let L = s.get(A);
|
|
412
|
+
L ? S.push(() => L.p(x, t)) : (L = u(A, x), L.c()), I.set(A, w[b] = L), A in g && P.set(A, Math.abs(b - g[A]));
|
|
410
413
|
}
|
|
411
|
-
const
|
|
412
|
-
function
|
|
413
|
-
kt(
|
|
414
|
+
const M = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set();
|
|
415
|
+
function R(x) {
|
|
416
|
+
kt(x, 1), x.m(a, h), s.set(x.key, x), h = x.first, m--;
|
|
414
417
|
}
|
|
415
|
-
for (; c &&
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
+
for (; c && m; ) {
|
|
419
|
+
const x = w[m - 1], A = e[c - 1], L = x.key, d = A.key;
|
|
420
|
+
x === A ? (h = x.first, c--, m--) : I.has(d) ? !s.has(L) || M.has(L) ? R(x) : C.has(d) ? c-- : P.get(L) > P.get(d) ? (C.add(L), R(x)) : (M.add(d), c--) : (l(A, s), c--);
|
|
418
421
|
}
|
|
419
422
|
for (; c--; ) {
|
|
420
|
-
const
|
|
421
|
-
|
|
423
|
+
const x = e[c];
|
|
424
|
+
I.has(x.key) || l(x, s);
|
|
422
425
|
}
|
|
423
|
-
for (;
|
|
424
|
-
return W(
|
|
426
|
+
for (; m; ) R(w[m - 1]);
|
|
427
|
+
return W(S), w;
|
|
425
428
|
}
|
|
426
|
-
function
|
|
429
|
+
function Vr(e, t, r) {
|
|
427
430
|
const { fragment: n, after_update: i } = e.$$;
|
|
428
|
-
n && n.m(t, r),
|
|
429
|
-
const o = e.$$.on_mount.map(
|
|
431
|
+
n && n.m(t, r), Ge(() => {
|
|
432
|
+
const o = e.$$.on_mount.map(Rt).filter(Se);
|
|
430
433
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : W(o), e.$$.on_mount = [];
|
|
431
|
-
}), i.forEach(
|
|
434
|
+
}), i.forEach(Ge);
|
|
432
435
|
}
|
|
433
|
-
function
|
|
436
|
+
function Xr(e, t) {
|
|
434
437
|
const r = e.$$;
|
|
435
|
-
r.fragment !== null && (
|
|
438
|
+
r.fragment !== null && (kr(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
436
439
|
}
|
|
437
|
-
function
|
|
440
|
+
function Wr(e, t) {
|
|
438
441
|
e.$$.dirty[0] === -1 && (J.push(e), jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
439
442
|
}
|
|
440
|
-
function
|
|
441
|
-
const l =
|
|
442
|
-
|
|
443
|
+
function zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
444
|
+
const l = ue;
|
|
445
|
+
ae(e);
|
|
443
446
|
const u = e.$$ = {
|
|
444
447
|
fragment: null,
|
|
445
448
|
ctx: [],
|
|
446
449
|
// state
|
|
447
450
|
props: o,
|
|
448
|
-
update:
|
|
451
|
+
update: O,
|
|
449
452
|
not_equal: i,
|
|
450
|
-
bound:
|
|
453
|
+
bound: at(),
|
|
451
454
|
// lifecycle
|
|
452
455
|
on_mount: [],
|
|
453
456
|
on_destroy: [],
|
|
@@ -456,25 +459,25 @@ function qr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
456
459
|
after_update: [],
|
|
457
460
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
458
461
|
// everything else
|
|
459
|
-
callbacks:
|
|
462
|
+
callbacks: at(),
|
|
460
463
|
dirty: a,
|
|
461
464
|
skip_bound: !1,
|
|
462
465
|
root: t.target || l.$$.root
|
|
463
466
|
};
|
|
464
467
|
s && s(u.root);
|
|
465
468
|
let h = !1;
|
|
466
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
467
|
-
const b =
|
|
468
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h &&
|
|
469
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
470
|
+
const b = m.length ? m[0] : c;
|
|
471
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Wr(e, f)), c;
|
|
469
472
|
}) : [], u.update(), h = !0, W(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
470
473
|
if (t.hydrate) {
|
|
471
474
|
const f = $r(t.target);
|
|
472
475
|
u.fragment && u.fragment.l(f), f.forEach(D);
|
|
473
476
|
} else
|
|
474
477
|
u.fragment && u.fragment.c();
|
|
475
|
-
t.intro && kt(e.$$.fragment),
|
|
478
|
+
t.intro && kt(e.$$.fragment), Vr(e, t.target, t.anchor), $();
|
|
476
479
|
}
|
|
477
|
-
|
|
480
|
+
ae(l);
|
|
478
481
|
}
|
|
479
482
|
let Vt;
|
|
480
483
|
typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
@@ -514,21 +517,21 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
514
517
|
}
|
|
515
518
|
}
|
|
516
519
|
connectedCallback() {
|
|
517
|
-
return
|
|
520
|
+
return st(this, null, function* () {
|
|
518
521
|
if (this.$$cn = !0, !this.$$c) {
|
|
519
522
|
let t = function(o) {
|
|
520
523
|
return () => {
|
|
521
524
|
let s;
|
|
522
525
|
return {
|
|
523
526
|
c: function() {
|
|
524
|
-
s =
|
|
527
|
+
s = N("slot"), o !== "default" && k(s, "name", o);
|
|
525
528
|
},
|
|
526
529
|
/**
|
|
527
530
|
* @param {HTMLElement} target
|
|
528
531
|
* @param {HTMLElement} [anchor]
|
|
529
532
|
*/
|
|
530
533
|
m: function(u, h) {
|
|
531
|
-
|
|
534
|
+
V(u, s, h);
|
|
532
535
|
},
|
|
533
536
|
d: function(u) {
|
|
534
537
|
u && D(s);
|
|
@@ -543,13 +546,13 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
543
546
|
o in n && (r[o] = [t(o)]);
|
|
544
547
|
for (const o of this.attributes) {
|
|
545
548
|
const s = this.$$g_p(o.name);
|
|
546
|
-
s in this.$$d || (this.$$d[s] =
|
|
549
|
+
s in this.$$d || (this.$$d[s] = ge(s, o.value, this.$$p_d, "toProp"));
|
|
547
550
|
}
|
|
548
551
|
for (const o in this.$$p_d)
|
|
549
552
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
550
553
|
this.$$c = new this.$$ctor({
|
|
551
554
|
target: this.shadowRoot || this,
|
|
552
|
-
props:
|
|
555
|
+
props: ot(it({}, this.$$d), {
|
|
553
556
|
$$slots: r,
|
|
554
557
|
$$scope: {
|
|
555
558
|
ctx: []
|
|
@@ -560,7 +563,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
560
563
|
this.$$r = !0;
|
|
561
564
|
for (const o in this.$$p_d)
|
|
562
565
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
563
|
-
const s =
|
|
566
|
+
const s = ge(
|
|
564
567
|
o,
|
|
565
568
|
this.$$d[o],
|
|
566
569
|
this.$$p_d,
|
|
@@ -584,7 +587,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
584
587
|
// and setting attributes through setAttribute etc, this is helpful
|
|
585
588
|
attributeChangedCallback(t, r, n) {
|
|
586
589
|
var i;
|
|
587
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
590
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ge(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
588
591
|
}
|
|
589
592
|
disconnectedCallback() {
|
|
590
593
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -597,7 +600,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
597
600
|
) || t;
|
|
598
601
|
}
|
|
599
602
|
});
|
|
600
|
-
function
|
|
603
|
+
function ge(e, t, r, n) {
|
|
601
604
|
var o;
|
|
602
605
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
603
606
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -645,7 +648,7 @@ function Zr(e, t, r, n, i, o) {
|
|
|
645
648
|
},
|
|
646
649
|
set(l) {
|
|
647
650
|
var u;
|
|
648
|
-
l =
|
|
651
|
+
l = ge(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
649
652
|
}
|
|
650
653
|
});
|
|
651
654
|
}), n.forEach((a) => {
|
|
@@ -679,7 +682,7 @@ class Qr {
|
|
|
679
682
|
}
|
|
680
683
|
/** @returns {void} */
|
|
681
684
|
$destroy() {
|
|
682
|
-
|
|
685
|
+
Xr(this, 1), this.$destroy = O;
|
|
683
686
|
}
|
|
684
687
|
/**
|
|
685
688
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -688,8 +691,8 @@ class Qr {
|
|
|
688
691
|
* @returns {() => void}
|
|
689
692
|
*/
|
|
690
693
|
$on(t, r) {
|
|
691
|
-
if (!
|
|
692
|
-
return
|
|
694
|
+
if (!Se(r))
|
|
695
|
+
return O;
|
|
693
696
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
694
697
|
return n.push(r), () => {
|
|
695
698
|
const i = n.indexOf(r);
|
|
@@ -706,17 +709,17 @@ class Qr {
|
|
|
706
709
|
}
|
|
707
710
|
const Jr = "4";
|
|
708
711
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
|
|
709
|
-
var
|
|
710
|
-
return
|
|
712
|
+
var Fe = function(e, t) {
|
|
713
|
+
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
711
714
|
r.__proto__ = n;
|
|
712
715
|
} || function(r, n) {
|
|
713
716
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
714
|
-
},
|
|
717
|
+
}, Fe(e, t);
|
|
715
718
|
};
|
|
716
|
-
function
|
|
719
|
+
function G(e, t) {
|
|
717
720
|
if (typeof t != "function" && t !== null)
|
|
718
721
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
719
|
-
|
|
722
|
+
Fe(e, t);
|
|
720
723
|
function r() {
|
|
721
724
|
this.constructor = e;
|
|
722
725
|
}
|
|
@@ -731,7 +734,7 @@ var _ = function() {
|
|
|
731
734
|
return t;
|
|
732
735
|
}, _.apply(this, arguments);
|
|
733
736
|
};
|
|
734
|
-
function
|
|
737
|
+
function qr(e, t) {
|
|
735
738
|
var r = {};
|
|
736
739
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
737
740
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -739,7 +742,7 @@ function Yr(e, t) {
|
|
|
739
742
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
740
743
|
return r;
|
|
741
744
|
}
|
|
742
|
-
function
|
|
745
|
+
function je(e) {
|
|
743
746
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
744
747
|
if (r) return r.call(e);
|
|
745
748
|
if (e && typeof e.length == "number") return {
|
|
@@ -749,7 +752,7 @@ function ke(e) {
|
|
|
749
752
|
};
|
|
750
753
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
751
754
|
}
|
|
752
|
-
function
|
|
755
|
+
function ke(e, t) {
|
|
753
756
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
754
757
|
if (!r) return e;
|
|
755
758
|
var n = r.call(e), i, o = [], s;
|
|
@@ -766,12 +769,12 @@ function Ve(e, t) {
|
|
|
766
769
|
}
|
|
767
770
|
return o;
|
|
768
771
|
}
|
|
769
|
-
function
|
|
772
|
+
function Y(e, t, r) {
|
|
770
773
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
771
774
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
772
775
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
773
776
|
}
|
|
774
|
-
function
|
|
777
|
+
function U(e) {
|
|
775
778
|
return typeof e == "function";
|
|
776
779
|
}
|
|
777
780
|
function Xt(e) {
|
|
@@ -780,7 +783,7 @@ function Xt(e) {
|
|
|
780
783
|
}, r = e(t);
|
|
781
784
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
782
785
|
}
|
|
783
|
-
var
|
|
786
|
+
var Ce = Xt(function(e) {
|
|
784
787
|
return function(r) {
|
|
785
788
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
786
789
|
` + r.map(function(n, i) {
|
|
@@ -789,13 +792,13 @@ var Le = Xt(function(e) {
|
|
|
789
792
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
790
793
|
};
|
|
791
794
|
});
|
|
792
|
-
function
|
|
795
|
+
function Ve(e, t) {
|
|
793
796
|
if (e) {
|
|
794
797
|
var r = e.indexOf(t);
|
|
795
798
|
0 <= r && e.splice(r, 1);
|
|
796
799
|
}
|
|
797
800
|
}
|
|
798
|
-
var
|
|
801
|
+
var Te = function() {
|
|
799
802
|
function e(t) {
|
|
800
803
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
801
804
|
}
|
|
@@ -807,12 +810,12 @@ var He = function() {
|
|
|
807
810
|
if (s)
|
|
808
811
|
if (this._parentage = null, Array.isArray(s))
|
|
809
812
|
try {
|
|
810
|
-
for (var a =
|
|
813
|
+
for (var a = je(s), l = a.next(); !l.done; l = a.next()) {
|
|
811
814
|
var u = l.value;
|
|
812
815
|
u.remove(this);
|
|
813
816
|
}
|
|
814
|
-
} catch (
|
|
815
|
-
t = { error:
|
|
817
|
+
} catch (g) {
|
|
818
|
+
t = { error: g };
|
|
816
819
|
} finally {
|
|
817
820
|
try {
|
|
818
821
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -823,42 +826,42 @@ var He = function() {
|
|
|
823
826
|
else
|
|
824
827
|
s.remove(this);
|
|
825
828
|
var h = this.initialTeardown;
|
|
826
|
-
if (
|
|
829
|
+
if (U(h))
|
|
827
830
|
try {
|
|
828
831
|
h();
|
|
829
|
-
} catch (
|
|
830
|
-
o =
|
|
832
|
+
} catch (g) {
|
|
833
|
+
o = g instanceof Ce ? g.errors : [g];
|
|
831
834
|
}
|
|
832
835
|
var f = this._finalizers;
|
|
833
836
|
if (f) {
|
|
834
837
|
this._finalizers = null;
|
|
835
838
|
try {
|
|
836
|
-
for (var c =
|
|
837
|
-
var b =
|
|
839
|
+
for (var c = je(f), m = c.next(); !m.done; m = c.next()) {
|
|
840
|
+
var b = m.value;
|
|
838
841
|
try {
|
|
839
|
-
|
|
840
|
-
} catch (
|
|
841
|
-
o = o != null ? o : [],
|
|
842
|
+
ct(b);
|
|
843
|
+
} catch (g) {
|
|
844
|
+
o = o != null ? o : [], g instanceof Ce ? o = Y(Y([], ke(o)), ke(g.errors)) : o.push(g);
|
|
842
845
|
}
|
|
843
846
|
}
|
|
844
|
-
} catch (
|
|
845
|
-
n = { error:
|
|
847
|
+
} catch (g) {
|
|
848
|
+
n = { error: g };
|
|
846
849
|
} finally {
|
|
847
850
|
try {
|
|
848
|
-
|
|
851
|
+
m && !m.done && (i = c.return) && i.call(c);
|
|
849
852
|
} finally {
|
|
850
853
|
if (n) throw n.error;
|
|
851
854
|
}
|
|
852
855
|
}
|
|
853
856
|
}
|
|
854
857
|
if (o)
|
|
855
|
-
throw new
|
|
858
|
+
throw new Ce(o);
|
|
856
859
|
}
|
|
857
860
|
}, e.prototype.add = function(t) {
|
|
858
861
|
var r;
|
|
859
862
|
if (t && t !== this)
|
|
860
863
|
if (this.closed)
|
|
861
|
-
|
|
864
|
+
ct(t);
|
|
862
865
|
else {
|
|
863
866
|
if (t instanceof e) {
|
|
864
867
|
if (t.closed || t._hasParent(this))
|
|
@@ -875,52 +878,52 @@ var He = function() {
|
|
|
875
878
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
876
879
|
}, e.prototype._removeParent = function(t) {
|
|
877
880
|
var r = this._parentage;
|
|
878
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
881
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ve(r, t);
|
|
879
882
|
}, e.prototype.remove = function(t) {
|
|
880
883
|
var r = this._finalizers;
|
|
881
|
-
r &&
|
|
884
|
+
r && Ve(r, t), t instanceof e && t._removeParent(this);
|
|
882
885
|
}, e.EMPTY = function() {
|
|
883
886
|
var t = new e();
|
|
884
887
|
return t.closed = !0, t;
|
|
885
888
|
}(), e;
|
|
886
|
-
}(), Wt =
|
|
889
|
+
}(), Wt = Te.EMPTY;
|
|
887
890
|
function zt(e) {
|
|
888
|
-
return e instanceof
|
|
891
|
+
return e instanceof Te || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
|
|
889
892
|
}
|
|
890
|
-
function
|
|
891
|
-
|
|
893
|
+
function ct(e) {
|
|
894
|
+
U(e) ? e() : e.unsubscribe();
|
|
892
895
|
}
|
|
893
|
-
var
|
|
896
|
+
var Yr = {
|
|
894
897
|
Promise: void 0
|
|
895
|
-
},
|
|
898
|
+
}, Kr = {
|
|
896
899
|
setTimeout: function(e, t) {
|
|
897
900
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
898
901
|
r[n - 2] = arguments[n];
|
|
899
|
-
return setTimeout.apply(void 0,
|
|
902
|
+
return setTimeout.apply(void 0, Y([e, t], ke(r)));
|
|
900
903
|
},
|
|
901
904
|
clearTimeout: function(e) {
|
|
902
905
|
return clearTimeout(e);
|
|
903
906
|
},
|
|
904
907
|
delegate: void 0
|
|
905
908
|
};
|
|
906
|
-
function
|
|
907
|
-
|
|
909
|
+
function en(e) {
|
|
910
|
+
Kr.setTimeout(function() {
|
|
908
911
|
throw e;
|
|
909
912
|
});
|
|
910
913
|
}
|
|
911
|
-
function
|
|
914
|
+
function ft() {
|
|
912
915
|
}
|
|
913
|
-
function
|
|
916
|
+
function ve(e) {
|
|
914
917
|
e();
|
|
915
918
|
}
|
|
916
|
-
var
|
|
917
|
-
|
|
919
|
+
var Zt = function(e) {
|
|
920
|
+
G(t, e);
|
|
918
921
|
function t(r) {
|
|
919
922
|
var n = e.call(this) || this;
|
|
920
|
-
return n.isStopped = !1, r ? (n.destination = r, zt(r) && r.add(n)) : n.destination =
|
|
923
|
+
return n.isStopped = !1, r ? (n.destination = r, zt(r) && r.add(n)) : n.destination = nn, n;
|
|
921
924
|
}
|
|
922
925
|
return t.create = function(r, n, i) {
|
|
923
|
-
return new
|
|
926
|
+
return new Xe(r, n, i);
|
|
924
927
|
}, t.prototype.next = function(r) {
|
|
925
928
|
this.isStopped || this._next(r);
|
|
926
929
|
}, t.prototype.error = function(r) {
|
|
@@ -944,7 +947,7 @@ var qt = function(e) {
|
|
|
944
947
|
this.unsubscribe();
|
|
945
948
|
}
|
|
946
949
|
}, t;
|
|
947
|
-
}(
|
|
950
|
+
}(Te), tn = function() {
|
|
948
951
|
function e(t) {
|
|
949
952
|
this.partialObserver = t;
|
|
950
953
|
}
|
|
@@ -954,7 +957,7 @@ var qt = function(e) {
|
|
|
954
957
|
try {
|
|
955
958
|
r.next(t);
|
|
956
959
|
} catch (n) {
|
|
957
|
-
|
|
960
|
+
me(n);
|
|
958
961
|
}
|
|
959
962
|
}, e.prototype.error = function(t) {
|
|
960
963
|
var r = this.partialObserver;
|
|
@@ -962,56 +965,56 @@ var qt = function(e) {
|
|
|
962
965
|
try {
|
|
963
966
|
r.error(t);
|
|
964
967
|
} catch (n) {
|
|
965
|
-
|
|
968
|
+
me(n);
|
|
966
969
|
}
|
|
967
970
|
else
|
|
968
|
-
|
|
971
|
+
me(t);
|
|
969
972
|
}, e.prototype.complete = function() {
|
|
970
973
|
var t = this.partialObserver;
|
|
971
974
|
if (t.complete)
|
|
972
975
|
try {
|
|
973
976
|
t.complete();
|
|
974
977
|
} catch (r) {
|
|
975
|
-
|
|
978
|
+
me(r);
|
|
976
979
|
}
|
|
977
980
|
}, e;
|
|
978
|
-
}(),
|
|
979
|
-
|
|
981
|
+
}(), Xe = function(e) {
|
|
982
|
+
G(t, e);
|
|
980
983
|
function t(r, n, i) {
|
|
981
984
|
var o = e.call(this) || this, s;
|
|
982
|
-
return
|
|
985
|
+
return U(r) || !r ? s = {
|
|
983
986
|
next: r != null ? r : void 0,
|
|
984
987
|
error: n != null ? n : void 0,
|
|
985
988
|
complete: i != null ? i : void 0
|
|
986
|
-
} : s = r, o.destination = new
|
|
989
|
+
} : s = r, o.destination = new tn(s), o;
|
|
987
990
|
}
|
|
988
991
|
return t;
|
|
989
|
-
}(
|
|
990
|
-
function
|
|
991
|
-
|
|
992
|
+
}(Zt);
|
|
993
|
+
function me(e) {
|
|
994
|
+
en(e);
|
|
992
995
|
}
|
|
993
|
-
function
|
|
996
|
+
function rn(e) {
|
|
994
997
|
throw e;
|
|
995
998
|
}
|
|
996
|
-
var
|
|
999
|
+
var nn = {
|
|
997
1000
|
closed: !0,
|
|
998
|
-
next:
|
|
999
|
-
error:
|
|
1000
|
-
complete:
|
|
1001
|
-
},
|
|
1001
|
+
next: ft,
|
|
1002
|
+
error: rn,
|
|
1003
|
+
complete: ft
|
|
1004
|
+
}, on = function() {
|
|
1002
1005
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1003
1006
|
}();
|
|
1004
|
-
function
|
|
1007
|
+
function sn(e) {
|
|
1005
1008
|
return e;
|
|
1006
1009
|
}
|
|
1007
|
-
function
|
|
1008
|
-
return e.length === 0 ?
|
|
1010
|
+
function an(e) {
|
|
1011
|
+
return e.length === 0 ? sn : e.length === 1 ? e[0] : function(r) {
|
|
1009
1012
|
return e.reduce(function(n, i) {
|
|
1010
1013
|
return i(n);
|
|
1011
1014
|
}, r);
|
|
1012
1015
|
};
|
|
1013
1016
|
}
|
|
1014
|
-
var
|
|
1017
|
+
var dt = function() {
|
|
1015
1018
|
function e(t) {
|
|
1016
1019
|
t && (this._subscribe = t);
|
|
1017
1020
|
}
|
|
@@ -1019,8 +1022,8 @@ var pt = function() {
|
|
|
1019
1022
|
var r = new e();
|
|
1020
1023
|
return r.source = this, r.operator = t, r;
|
|
1021
1024
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
1022
|
-
var i = this, o =
|
|
1023
|
-
return
|
|
1025
|
+
var i = this, o = ln(t) ? t : new Xe(t, r, n);
|
|
1026
|
+
return ve(function() {
|
|
1024
1027
|
var s = i, a = s.operator, l = s.source;
|
|
1025
1028
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
1026
1029
|
}), o;
|
|
@@ -1032,8 +1035,8 @@ var pt = function() {
|
|
|
1032
1035
|
}
|
|
1033
1036
|
}, e.prototype.forEach = function(t, r) {
|
|
1034
1037
|
var n = this;
|
|
1035
|
-
return r =
|
|
1036
|
-
var s = new
|
|
1038
|
+
return r = pt(r), new r(function(i, o) {
|
|
1039
|
+
var s = new Xe({
|
|
1037
1040
|
next: function(a) {
|
|
1038
1041
|
try {
|
|
1039
1042
|
t(a);
|
|
@@ -1049,15 +1052,15 @@ var pt = function() {
|
|
|
1049
1052
|
}, e.prototype._subscribe = function(t) {
|
|
1050
1053
|
var r;
|
|
1051
1054
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1052
|
-
}, e.prototype[
|
|
1055
|
+
}, e.prototype[on] = function() {
|
|
1053
1056
|
return this;
|
|
1054
1057
|
}, e.prototype.pipe = function() {
|
|
1055
1058
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1056
1059
|
t[r] = arguments[r];
|
|
1057
|
-
return
|
|
1060
|
+
return an(t)(this);
|
|
1058
1061
|
}, e.prototype.toPromise = function(t) {
|
|
1059
1062
|
var r = this;
|
|
1060
|
-
return t =
|
|
1063
|
+
return t = pt(t), new t(function(n, i) {
|
|
1061
1064
|
var o;
|
|
1062
1065
|
r.subscribe(function(s) {
|
|
1063
1066
|
return o = s;
|
|
@@ -1071,40 +1074,40 @@ var pt = function() {
|
|
|
1071
1074
|
return new e(t);
|
|
1072
1075
|
}, e;
|
|
1073
1076
|
}();
|
|
1074
|
-
function
|
|
1077
|
+
function pt(e) {
|
|
1075
1078
|
var t;
|
|
1076
|
-
return (t = e != null ? e :
|
|
1079
|
+
return (t = e != null ? e : Yr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1077
1080
|
}
|
|
1078
|
-
function
|
|
1079
|
-
return e &&
|
|
1081
|
+
function un(e) {
|
|
1082
|
+
return e && U(e.next) && U(e.error) && U(e.complete);
|
|
1080
1083
|
}
|
|
1081
|
-
function
|
|
1082
|
-
return e && e instanceof
|
|
1084
|
+
function ln(e) {
|
|
1085
|
+
return e && e instanceof Zt || un(e) && zt(e);
|
|
1083
1086
|
}
|
|
1084
|
-
var
|
|
1087
|
+
var hn = Xt(function(e) {
|
|
1085
1088
|
return function() {
|
|
1086
1089
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1087
1090
|
};
|
|
1088
|
-
}),
|
|
1089
|
-
|
|
1091
|
+
}), Qt = function(e) {
|
|
1092
|
+
G(t, e);
|
|
1090
1093
|
function t() {
|
|
1091
1094
|
var r = e.call(this) || this;
|
|
1092
1095
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1093
1096
|
}
|
|
1094
1097
|
return t.prototype.lift = function(r) {
|
|
1095
|
-
var n = new
|
|
1098
|
+
var n = new mt(this, this);
|
|
1096
1099
|
return n.operator = r, n;
|
|
1097
1100
|
}, t.prototype._throwIfClosed = function() {
|
|
1098
1101
|
if (this.closed)
|
|
1099
|
-
throw new
|
|
1102
|
+
throw new hn();
|
|
1100
1103
|
}, t.prototype.next = function(r) {
|
|
1101
1104
|
var n = this;
|
|
1102
|
-
|
|
1105
|
+
ve(function() {
|
|
1103
1106
|
var i, o;
|
|
1104
1107
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1105
1108
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1106
1109
|
try {
|
|
1107
|
-
for (var s =
|
|
1110
|
+
for (var s = je(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
1108
1111
|
var l = a.value;
|
|
1109
1112
|
l.next(r);
|
|
1110
1113
|
}
|
|
@@ -1121,7 +1124,7 @@ var cn = Xt(function(e) {
|
|
|
1121
1124
|
});
|
|
1122
1125
|
}, t.prototype.error = function(r) {
|
|
1123
1126
|
var n = this;
|
|
1124
|
-
|
|
1127
|
+
ve(function() {
|
|
1125
1128
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1126
1129
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1127
1130
|
for (var i = n.observers; i.length; )
|
|
@@ -1130,7 +1133,7 @@ var cn = Xt(function(e) {
|
|
|
1130
1133
|
});
|
|
1131
1134
|
}, t.prototype.complete = function() {
|
|
1132
1135
|
var r = this;
|
|
1133
|
-
|
|
1136
|
+
ve(function() {
|
|
1134
1137
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
1135
1138
|
r.isStopped = !0;
|
|
1136
1139
|
for (var n = r.observers; n.length; )
|
|
@@ -1152,20 +1155,20 @@ var cn = Xt(function(e) {
|
|
|
1152
1155
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1153
1156
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1154
1157
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
1155
|
-
return o || s ? Wt : (this.currentObservers = null, a.push(r), new
|
|
1156
|
-
n.currentObservers = null,
|
|
1158
|
+
return o || s ? Wt : (this.currentObservers = null, a.push(r), new Te(function() {
|
|
1159
|
+
n.currentObservers = null, Ve(a, r);
|
|
1157
1160
|
}));
|
|
1158
1161
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1159
1162
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
1160
1163
|
i ? r.error(o) : s && r.complete();
|
|
1161
1164
|
}, t.prototype.asObservable = function() {
|
|
1162
|
-
var r = new
|
|
1165
|
+
var r = new dt();
|
|
1163
1166
|
return r.source = this, r;
|
|
1164
1167
|
}, t.create = function(r, n) {
|
|
1165
|
-
return new
|
|
1168
|
+
return new mt(r, n);
|
|
1166
1169
|
}, t;
|
|
1167
|
-
}(
|
|
1168
|
-
|
|
1170
|
+
}(dt), mt = function(e) {
|
|
1171
|
+
G(t, e);
|
|
1169
1172
|
function t(r, n) {
|
|
1170
1173
|
var i = e.call(this) || this;
|
|
1171
1174
|
return i.destination = r, i.source = n, i;
|
|
@@ -1183,15 +1186,15 @@ var cn = Xt(function(e) {
|
|
|
1183
1186
|
var n, i;
|
|
1184
1187
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Wt;
|
|
1185
1188
|
}, t;
|
|
1186
|
-
}(
|
|
1189
|
+
}(Qt), Jt = {
|
|
1187
1190
|
now: function() {
|
|
1188
|
-
return (
|
|
1191
|
+
return (Jt.delegate || Date).now();
|
|
1189
1192
|
},
|
|
1190
1193
|
delegate: void 0
|
|
1191
|
-
},
|
|
1192
|
-
|
|
1194
|
+
}, cn = function(e) {
|
|
1195
|
+
G(t, e);
|
|
1193
1196
|
function t(r, n, i) {
|
|
1194
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1197
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Jt);
|
|
1195
1198
|
var o = e.call(this) || this;
|
|
1196
1199
|
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;
|
|
1197
1200
|
}
|
|
@@ -1211,24 +1214,24 @@ var cn = Xt(function(e) {
|
|
|
1211
1214
|
u && o.splice(0, u + 1);
|
|
1212
1215
|
}
|
|
1213
1216
|
}, t;
|
|
1214
|
-
}(
|
|
1215
|
-
const
|
|
1216
|
-
if (
|
|
1217
|
-
const r = new
|
|
1218
|
-
|
|
1217
|
+
}(Qt);
|
|
1218
|
+
const bt = [], yt = {}, fn = (e, t = 0) => {
|
|
1219
|
+
if (bt.indexOf(e) == -1) {
|
|
1220
|
+
const r = new cn(t);
|
|
1221
|
+
yt[e] = r, bt.push(e);
|
|
1219
1222
|
}
|
|
1220
|
-
return
|
|
1223
|
+
return yt[e];
|
|
1221
1224
|
}, Q = [];
|
|
1222
|
-
function
|
|
1225
|
+
function dn(e, t) {
|
|
1223
1226
|
return {
|
|
1224
|
-
subscribe:
|
|
1227
|
+
subscribe: He(e, t).subscribe
|
|
1225
1228
|
};
|
|
1226
1229
|
}
|
|
1227
|
-
function
|
|
1230
|
+
function He(e, t = O) {
|
|
1228
1231
|
let r;
|
|
1229
1232
|
const n = /* @__PURE__ */ new Set();
|
|
1230
1233
|
function i(a) {
|
|
1231
|
-
if (
|
|
1234
|
+
if ($t(e, a) && (e = a, r)) {
|
|
1232
1235
|
const l = !Q.length;
|
|
1233
1236
|
for (const u of n)
|
|
1234
1237
|
u[1](), Q.push(u, e);
|
|
@@ -1242,131 +1245,131 @@ function Be(e, t = A) {
|
|
|
1242
1245
|
function o(a) {
|
|
1243
1246
|
i(a(e));
|
|
1244
1247
|
}
|
|
1245
|
-
function s(a, l =
|
|
1248
|
+
function s(a, l = O) {
|
|
1246
1249
|
const u = [a, l];
|
|
1247
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1250
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || O), a(e), () => {
|
|
1248
1251
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1249
1252
|
};
|
|
1250
1253
|
}
|
|
1251
1254
|
return { set: i, update: o, subscribe: s };
|
|
1252
1255
|
}
|
|
1253
|
-
function
|
|
1256
|
+
function ne(e, t, r) {
|
|
1254
1257
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1255
1258
|
if (!i.every(Boolean))
|
|
1256
1259
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1257
1260
|
const o = t.length < 2;
|
|
1258
|
-
return
|
|
1261
|
+
return dn(r, (s, a) => {
|
|
1259
1262
|
let l = !1;
|
|
1260
1263
|
const u = [];
|
|
1261
|
-
let h = 0, f =
|
|
1264
|
+
let h = 0, f = O;
|
|
1262
1265
|
const c = () => {
|
|
1263
1266
|
if (h)
|
|
1264
1267
|
return;
|
|
1265
1268
|
f();
|
|
1266
1269
|
const b = t(n ? u[0] : u, s, a);
|
|
1267
|
-
o ? s(b) : f =
|
|
1268
|
-
},
|
|
1269
|
-
(b,
|
|
1270
|
+
o ? s(b) : f = Se(b) ? b : O;
|
|
1271
|
+
}, m = i.map(
|
|
1272
|
+
(b, g) => Dt(
|
|
1270
1273
|
b,
|
|
1271
|
-
(
|
|
1272
|
-
u[
|
|
1274
|
+
(w) => {
|
|
1275
|
+
u[g] = w, h &= ~(1 << g), l && c();
|
|
1273
1276
|
},
|
|
1274
1277
|
() => {
|
|
1275
|
-
h |= 1 <<
|
|
1278
|
+
h |= 1 << g;
|
|
1276
1279
|
}
|
|
1277
1280
|
)
|
|
1278
1281
|
);
|
|
1279
1282
|
return l = !0, c(), function() {
|
|
1280
|
-
W(
|
|
1283
|
+
W(m), f(), l = !1;
|
|
1281
1284
|
};
|
|
1282
1285
|
});
|
|
1283
1286
|
}
|
|
1284
|
-
function
|
|
1287
|
+
function pn(e) {
|
|
1285
1288
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1286
1289
|
}
|
|
1287
|
-
var
|
|
1288
|
-
return
|
|
1290
|
+
var mn = function(t) {
|
|
1291
|
+
return bn(t) && !yn(t);
|
|
1289
1292
|
};
|
|
1290
|
-
function
|
|
1293
|
+
function bn(e) {
|
|
1291
1294
|
return !!e && typeof e == "object";
|
|
1292
1295
|
}
|
|
1293
|
-
function
|
|
1296
|
+
function yn(e) {
|
|
1294
1297
|
var t = Object.prototype.toString.call(e);
|
|
1295
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1298
|
+
return t === "[object RegExp]" || t === "[object Date]" || _n(e);
|
|
1296
1299
|
}
|
|
1297
|
-
var
|
|
1298
|
-
function
|
|
1299
|
-
return e.$$typeof ===
|
|
1300
|
+
var gn = typeof Symbol == "function" && Symbol.for, vn = gn ? Symbol.for("react.element") : 60103;
|
|
1301
|
+
function _n(e) {
|
|
1302
|
+
return e.$$typeof === vn;
|
|
1300
1303
|
}
|
|
1301
|
-
function
|
|
1304
|
+
function En(e) {
|
|
1302
1305
|
return Array.isArray(e) ? [] : {};
|
|
1303
1306
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1307
|
+
function le(e, t) {
|
|
1308
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? K(En(e), e, t) : e;
|
|
1306
1309
|
}
|
|
1307
|
-
function
|
|
1310
|
+
function xn(e, t, r) {
|
|
1308
1311
|
return e.concat(t).map(function(n) {
|
|
1309
|
-
return
|
|
1312
|
+
return le(n, r);
|
|
1310
1313
|
});
|
|
1311
1314
|
}
|
|
1312
1315
|
function wn(e, t) {
|
|
1313
1316
|
if (!t.customMerge)
|
|
1314
|
-
return
|
|
1317
|
+
return K;
|
|
1315
1318
|
var r = t.customMerge(e);
|
|
1316
|
-
return typeof r == "function" ? r :
|
|
1319
|
+
return typeof r == "function" ? r : K;
|
|
1317
1320
|
}
|
|
1318
|
-
function
|
|
1321
|
+
function Sn(e) {
|
|
1319
1322
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1320
1323
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1321
1324
|
}) : [];
|
|
1322
1325
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return Object.keys(e).concat(
|
|
1326
|
+
function gt(e) {
|
|
1327
|
+
return Object.keys(e).concat(Sn(e));
|
|
1325
1328
|
}
|
|
1326
|
-
function
|
|
1329
|
+
function qt(e, t) {
|
|
1327
1330
|
try {
|
|
1328
1331
|
return t in e;
|
|
1329
1332
|
} catch (r) {
|
|
1330
1333
|
return !1;
|
|
1331
1334
|
}
|
|
1332
1335
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
1336
|
+
function Tn(e, t) {
|
|
1337
|
+
return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1335
1338
|
}
|
|
1336
|
-
function
|
|
1339
|
+
function Hn(e, t, r) {
|
|
1337
1340
|
var n = {};
|
|
1338
|
-
return r.isMergeableObject(e) &&
|
|
1339
|
-
n[i] =
|
|
1340
|
-
}),
|
|
1341
|
-
|
|
1341
|
+
return r.isMergeableObject(e) && gt(e).forEach(function(i) {
|
|
1342
|
+
n[i] = le(e[i], r);
|
|
1343
|
+
}), gt(t).forEach(function(i) {
|
|
1344
|
+
Tn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
|
|
1342
1345
|
}), n;
|
|
1343
1346
|
}
|
|
1344
|
-
function
|
|
1345
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1347
|
+
function K(e, t, r) {
|
|
1348
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || xn, r.isMergeableObject = r.isMergeableObject || mn, r.cloneUnlessOtherwiseSpecified = le;
|
|
1346
1349
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1347
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1350
|
+
return o ? n ? r.arrayMerge(e, t, r) : Hn(e, t, r) : le(t, r);
|
|
1348
1351
|
}
|
|
1349
|
-
|
|
1352
|
+
K.all = function(t, r) {
|
|
1350
1353
|
if (!Array.isArray(t))
|
|
1351
1354
|
throw new Error("first argument should be an array");
|
|
1352
1355
|
return t.reduce(function(n, i) {
|
|
1353
|
-
return
|
|
1356
|
+
return K(n, i, r);
|
|
1354
1357
|
}, {});
|
|
1355
1358
|
};
|
|
1356
|
-
var
|
|
1357
|
-
const
|
|
1358
|
-
function
|
|
1359
|
-
var r = t && t.cache ? t.cache :
|
|
1359
|
+
var Bn = K, Pn = Bn;
|
|
1360
|
+
const An = /* @__PURE__ */ pn(Pn);
|
|
1361
|
+
function Le(e, t) {
|
|
1362
|
+
var r = t && t.cache ? t.cache : Rn, n = t && t.serializer ? t.serializer : Nn, i = t && t.strategy ? t.strategy : Cn;
|
|
1360
1363
|
return i(e, {
|
|
1361
1364
|
cache: r,
|
|
1362
1365
|
serializer: n
|
|
1363
1366
|
});
|
|
1364
1367
|
}
|
|
1365
|
-
function
|
|
1368
|
+
function On(e) {
|
|
1366
1369
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1367
1370
|
}
|
|
1368
|
-
function
|
|
1369
|
-
var i =
|
|
1371
|
+
function In(e, t, r, n) {
|
|
1372
|
+
var i = On(n) ? n : r(n), o = t.get(i);
|
|
1370
1373
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1371
1374
|
}
|
|
1372
1375
|
function Yt(e, t, r) {
|
|
@@ -1376,16 +1379,16 @@ function Yt(e, t, r) {
|
|
|
1376
1379
|
function Kt(e, t, r, n, i) {
|
|
1377
1380
|
return r.bind(t, e, n, i);
|
|
1378
1381
|
}
|
|
1379
|
-
function
|
|
1380
|
-
var r = e.length === 1 ?
|
|
1382
|
+
function Cn(e, t) {
|
|
1383
|
+
var r = e.length === 1 ? In : Yt;
|
|
1381
1384
|
return Kt(e, this, r, t.cache.create(), t.serializer);
|
|
1382
1385
|
}
|
|
1383
|
-
function
|
|
1386
|
+
function Ln(e, t) {
|
|
1384
1387
|
return Kt(e, this, Yt, t.cache.create(), t.serializer);
|
|
1385
1388
|
}
|
|
1386
|
-
var
|
|
1389
|
+
var Nn = function() {
|
|
1387
1390
|
return JSON.stringify(arguments);
|
|
1388
|
-
},
|
|
1391
|
+
}, Mn = (
|
|
1389
1392
|
/** @class */
|
|
1390
1393
|
function() {
|
|
1391
1394
|
function e() {
|
|
@@ -1397,61 +1400,61 @@ var Mn = function() {
|
|
|
1397
1400
|
this.cache[t] = r;
|
|
1398
1401
|
}, e;
|
|
1399
1402
|
}()
|
|
1400
|
-
),
|
|
1403
|
+
), Rn = {
|
|
1401
1404
|
create: function() {
|
|
1402
|
-
return new
|
|
1405
|
+
return new Mn();
|
|
1403
1406
|
}
|
|
1404
|
-
},
|
|
1405
|
-
variadic:
|
|
1407
|
+
}, Ne = {
|
|
1408
|
+
variadic: Ln
|
|
1406
1409
|
}, y;
|
|
1407
1410
|
(function(e) {
|
|
1408
1411
|
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";
|
|
1409
1412
|
})(y || (y = {}));
|
|
1410
|
-
var
|
|
1413
|
+
var E;
|
|
1411
1414
|
(function(e) {
|
|
1412
1415
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1413
|
-
})(
|
|
1414
|
-
var
|
|
1416
|
+
})(E || (E = {}));
|
|
1417
|
+
var ee;
|
|
1415
1418
|
(function(e) {
|
|
1416
1419
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1417
|
-
})(
|
|
1418
|
-
function
|
|
1419
|
-
return e.type ===
|
|
1420
|
+
})(ee || (ee = {}));
|
|
1421
|
+
function vt(e) {
|
|
1422
|
+
return e.type === E.literal;
|
|
1420
1423
|
}
|
|
1421
|
-
function
|
|
1422
|
-
return e.type ===
|
|
1424
|
+
function $n(e) {
|
|
1425
|
+
return e.type === E.argument;
|
|
1423
1426
|
}
|
|
1424
1427
|
function er(e) {
|
|
1425
|
-
return e.type ===
|
|
1428
|
+
return e.type === E.number;
|
|
1426
1429
|
}
|
|
1427
1430
|
function tr(e) {
|
|
1428
|
-
return e.type ===
|
|
1431
|
+
return e.type === E.date;
|
|
1429
1432
|
}
|
|
1430
1433
|
function rr(e) {
|
|
1431
|
-
return e.type ===
|
|
1434
|
+
return e.type === E.time;
|
|
1432
1435
|
}
|
|
1433
1436
|
function nr(e) {
|
|
1434
|
-
return e.type ===
|
|
1437
|
+
return e.type === E.select;
|
|
1435
1438
|
}
|
|
1436
1439
|
function ir(e) {
|
|
1437
|
-
return e.type ===
|
|
1440
|
+
return e.type === E.plural;
|
|
1438
1441
|
}
|
|
1439
|
-
function
|
|
1440
|
-
return e.type ===
|
|
1442
|
+
function Dn(e) {
|
|
1443
|
+
return e.type === E.pound;
|
|
1441
1444
|
}
|
|
1442
1445
|
function or(e) {
|
|
1443
|
-
return e.type ===
|
|
1446
|
+
return e.type === E.tag;
|
|
1444
1447
|
}
|
|
1445
1448
|
function sr(e) {
|
|
1446
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1449
|
+
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
1447
1450
|
}
|
|
1448
|
-
function
|
|
1449
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1451
|
+
function We(e) {
|
|
1452
|
+
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
1450
1453
|
}
|
|
1451
|
-
var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1452
|
-
function
|
|
1454
|
+
var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Un = /(?:[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;
|
|
1455
|
+
function Gn(e) {
|
|
1453
1456
|
var t = {};
|
|
1454
|
-
return e.replace(
|
|
1457
|
+
return e.replace(Un, function(r) {
|
|
1455
1458
|
var n = r.length;
|
|
1456
1459
|
switch (r[0]) {
|
|
1457
1460
|
case "G":
|
|
@@ -1540,11 +1543,11 @@ function Fn(e) {
|
|
|
1540
1543
|
return "";
|
|
1541
1544
|
}), t;
|
|
1542
1545
|
}
|
|
1543
|
-
var
|
|
1544
|
-
function
|
|
1546
|
+
var Fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1547
|
+
function jn(e) {
|
|
1545
1548
|
if (e.length === 0)
|
|
1546
1549
|
throw new Error("Number skeleton cannot be empty");
|
|
1547
|
-
for (var t = e.split(
|
|
1550
|
+
for (var t = e.split(Fn).filter(function(c) {
|
|
1548
1551
|
return c.length > 0;
|
|
1549
1552
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1550
1553
|
var o = i[n], s = o.split("/");
|
|
@@ -1559,11 +1562,11 @@ function kn(e) {
|
|
|
1559
1562
|
}
|
|
1560
1563
|
return r;
|
|
1561
1564
|
}
|
|
1562
|
-
function
|
|
1565
|
+
function kn(e) {
|
|
1563
1566
|
return e.replace(/^(.*?)-/, "");
|
|
1564
1567
|
}
|
|
1565
|
-
var
|
|
1566
|
-
function
|
|
1568
|
+
var _t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ur = /^(@+)?(\+|#+)?[rs]?$/g, Vn = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
|
|
1569
|
+
function Et(e) {
|
|
1567
1570
|
var t = {};
|
|
1568
1571
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ur, function(r, n, i) {
|
|
1569
1572
|
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)), "";
|
|
@@ -1609,7 +1612,7 @@ function hr(e) {
|
|
|
1609
1612
|
};
|
|
1610
1613
|
}
|
|
1611
1614
|
}
|
|
1612
|
-
function
|
|
1615
|
+
function Xn(e) {
|
|
1613
1616
|
var t;
|
|
1614
1617
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1615
1618
|
notation: "engineering"
|
|
@@ -1623,11 +1626,11 @@ function Wn(e) {
|
|
|
1623
1626
|
}
|
|
1624
1627
|
return t;
|
|
1625
1628
|
}
|
|
1626
|
-
function
|
|
1629
|
+
function xt(e) {
|
|
1627
1630
|
var t = {}, r = hr(e);
|
|
1628
1631
|
return r || t;
|
|
1629
1632
|
}
|
|
1630
|
-
function
|
|
1633
|
+
function Wn(e) {
|
|
1631
1634
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1632
1635
|
var i = n[r];
|
|
1633
1636
|
switch (i.stem) {
|
|
@@ -1651,7 +1654,7 @@ function zn(e) {
|
|
|
1651
1654
|
continue;
|
|
1652
1655
|
case "measure-unit":
|
|
1653
1656
|
case "unit":
|
|
1654
|
-
t.style = "unit", t.unit =
|
|
1657
|
+
t.style = "unit", t.unit = kn(i.options[0]);
|
|
1655
1658
|
continue;
|
|
1656
1659
|
case "compact-short":
|
|
1657
1660
|
case "K":
|
|
@@ -1663,12 +1666,12 @@ function zn(e) {
|
|
|
1663
1666
|
continue;
|
|
1664
1667
|
case "scientific":
|
|
1665
1668
|
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1666
|
-
return _(_({}, l),
|
|
1669
|
+
return _(_({}, l), xt(u));
|
|
1667
1670
|
}, {}));
|
|
1668
1671
|
continue;
|
|
1669
1672
|
case "engineering":
|
|
1670
1673
|
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1671
|
-
return _(_({}, l),
|
|
1674
|
+
return _(_({}, l), xt(u));
|
|
1672
1675
|
}, {}));
|
|
1673
1676
|
continue;
|
|
1674
1677
|
case "notation-simple":
|
|
@@ -1713,13 +1716,13 @@ function zn(e) {
|
|
|
1713
1716
|
case "integer-width":
|
|
1714
1717
|
if (i.options.length > 1)
|
|
1715
1718
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1716
|
-
i.options[0].replace(
|
|
1719
|
+
i.options[0].replace(Vn, function(l, u, h, f, c, m) {
|
|
1717
1720
|
if (u)
|
|
1718
1721
|
t.minimumIntegerDigits = h.length;
|
|
1719
1722
|
else {
|
|
1720
1723
|
if (f && c)
|
|
1721
1724
|
throw new Error("We currently do not support maximum integer digits");
|
|
1722
|
-
if (
|
|
1725
|
+
if (m)
|
|
1723
1726
|
throw new Error("We currently do not support exact integer digits");
|
|
1724
1727
|
}
|
|
1725
1728
|
return "";
|
|
@@ -1730,28 +1733,28 @@ function zn(e) {
|
|
|
1730
1733
|
t.minimumIntegerDigits = i.stem.length;
|
|
1731
1734
|
continue;
|
|
1732
1735
|
}
|
|
1733
|
-
if (
|
|
1736
|
+
if (_t.test(i.stem)) {
|
|
1734
1737
|
if (i.options.length > 1)
|
|
1735
1738
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1736
|
-
i.stem.replace(
|
|
1737
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1739
|
+
i.stem.replace(_t, function(l, u, h, f, c, m) {
|
|
1740
|
+
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), "";
|
|
1738
1741
|
});
|
|
1739
1742
|
var o = i.options[0];
|
|
1740
|
-
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t),
|
|
1743
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Et(o)));
|
|
1741
1744
|
continue;
|
|
1742
1745
|
}
|
|
1743
1746
|
if (ur.test(i.stem)) {
|
|
1744
|
-
t = _(_({}, t),
|
|
1747
|
+
t = _(_({}, t), Et(i.stem));
|
|
1745
1748
|
continue;
|
|
1746
1749
|
}
|
|
1747
1750
|
var s = hr(i.stem);
|
|
1748
1751
|
s && (t = _(_({}, t), s));
|
|
1749
|
-
var a =
|
|
1752
|
+
var a = Xn(i.stem);
|
|
1750
1753
|
a && (t = _(_({}, t), a));
|
|
1751
1754
|
}
|
|
1752
1755
|
return t;
|
|
1753
1756
|
}
|
|
1754
|
-
var
|
|
1757
|
+
var be = {
|
|
1755
1758
|
"001": [
|
|
1756
1759
|
"H",
|
|
1757
1760
|
"h"
|
|
@@ -3166,7 +3169,7 @@ var ye = {
|
|
|
3166
3169
|
"h"
|
|
3167
3170
|
]
|
|
3168
3171
|
};
|
|
3169
|
-
function
|
|
3172
|
+
function zn(e, t) {
|
|
3170
3173
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3171
3174
|
var i = e.charAt(n);
|
|
3172
3175
|
if (i === "j") {
|
|
@@ -3200,23 +3203,23 @@ function Zn(e) {
|
|
|
3200
3203
|
}
|
|
3201
3204
|
var r = e.language, n;
|
|
3202
3205
|
r !== "root" && (n = e.maximize().region);
|
|
3203
|
-
var i =
|
|
3206
|
+
var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
|
|
3204
3207
|
return i[0];
|
|
3205
3208
|
}
|
|
3206
|
-
var
|
|
3207
|
-
function
|
|
3209
|
+
var Me, Qn = new RegExp("^".concat(ar.source, "*")), Jn = new RegExp("".concat(ar.source, "*$"));
|
|
3210
|
+
function v(e, t) {
|
|
3208
3211
|
return { start: e, end: t };
|
|
3209
3212
|
}
|
|
3210
|
-
var
|
|
3213
|
+
var qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yn = !!String.fromCodePoint, Kn = !!Object.fromEntries, ei = !!String.prototype.codePointAt, ti = !!String.prototype.trimStart, ri = !!String.prototype.trimEnd, ni = !!Number.isSafeInteger, ii = ni ? Number.isSafeInteger : function(e) {
|
|
3211
3214
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3212
|
-
},
|
|
3215
|
+
}, ze = !0;
|
|
3213
3216
|
try {
|
|
3214
|
-
var
|
|
3215
|
-
|
|
3217
|
+
var oi = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3218
|
+
ze = ((Me = oi.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
|
|
3216
3219
|
} catch (e) {
|
|
3217
|
-
|
|
3220
|
+
ze = !1;
|
|
3218
3221
|
}
|
|
3219
|
-
var wt =
|
|
3222
|
+
var wt = qn ? (
|
|
3220
3223
|
// Native
|
|
3221
3224
|
function(t, r, n) {
|
|
3222
3225
|
return t.startsWith(r, n);
|
|
@@ -3226,7 +3229,7 @@ var wt = Yn ? (
|
|
|
3226
3229
|
function(t, r, n) {
|
|
3227
3230
|
return t.slice(n, n + r.length) === r;
|
|
3228
3231
|
}
|
|
3229
|
-
), Ze =
|
|
3232
|
+
), Ze = Yn ? String.fromCodePoint : (
|
|
3230
3233
|
// IE11
|
|
3231
3234
|
function() {
|
|
3232
3235
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3238,9 +3241,9 @@ var wt = Yn ? (
|
|
|
3238
3241
|
}
|
|
3239
3242
|
return n;
|
|
3240
3243
|
}
|
|
3241
|
-
),
|
|
3244
|
+
), St = (
|
|
3242
3245
|
// native
|
|
3243
|
-
|
|
3246
|
+
Kn ? Object.fromEntries : (
|
|
3244
3247
|
// Ponyfill
|
|
3245
3248
|
function(t) {
|
|
3246
3249
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3250,7 +3253,7 @@ var wt = Yn ? (
|
|
|
3250
3253
|
return r;
|
|
3251
3254
|
}
|
|
3252
3255
|
)
|
|
3253
|
-
), cr =
|
|
3256
|
+
), cr = ei ? (
|
|
3254
3257
|
// Native
|
|
3255
3258
|
function(t, r) {
|
|
3256
3259
|
return t.codePointAt(r);
|
|
@@ -3264,7 +3267,7 @@ var wt = Yn ? (
|
|
|
3264
3267
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3265
3268
|
}
|
|
3266
3269
|
}
|
|
3267
|
-
),
|
|
3270
|
+
), si = ti ? (
|
|
3268
3271
|
// Native
|
|
3269
3272
|
function(t) {
|
|
3270
3273
|
return t.trimStart();
|
|
@@ -3274,7 +3277,7 @@ var wt = Yn ? (
|
|
|
3274
3277
|
function(t) {
|
|
3275
3278
|
return t.replace(Qn, "");
|
|
3276
3279
|
}
|
|
3277
|
-
),
|
|
3280
|
+
), ai = ri ? (
|
|
3278
3281
|
// Native
|
|
3279
3282
|
function(t) {
|
|
3280
3283
|
return t.trimEnd();
|
|
@@ -3289,25 +3292,25 @@ function fr(e, t) {
|
|
|
3289
3292
|
return new RegExp(e, t);
|
|
3290
3293
|
}
|
|
3291
3294
|
var Qe;
|
|
3292
|
-
if (
|
|
3293
|
-
var
|
|
3295
|
+
if (ze) {
|
|
3296
|
+
var Tt = fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3294
3297
|
Qe = function(t, r) {
|
|
3295
3298
|
var n;
|
|
3296
|
-
|
|
3297
|
-
var i =
|
|
3299
|
+
Tt.lastIndex = r;
|
|
3300
|
+
var i = Tt.exec(t);
|
|
3298
3301
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3299
3302
|
};
|
|
3300
3303
|
} else
|
|
3301
3304
|
Qe = function(t, r) {
|
|
3302
3305
|
for (var n = []; ; ) {
|
|
3303
3306
|
var i = cr(t, r);
|
|
3304
|
-
if (i === void 0 || dr(i) ||
|
|
3307
|
+
if (i === void 0 || dr(i) || ci(i))
|
|
3305
3308
|
break;
|
|
3306
3309
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3307
3310
|
}
|
|
3308
3311
|
return Ze.apply(void 0, n);
|
|
3309
3312
|
};
|
|
3310
|
-
var
|
|
3313
|
+
var ui = (
|
|
3311
3314
|
/** @class */
|
|
3312
3315
|
function() {
|
|
3313
3316
|
function e(t, r) {
|
|
@@ -3331,13 +3334,13 @@ var li = (
|
|
|
3331
3334
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3332
3335
|
var a = this.clonePosition();
|
|
3333
3336
|
this.bump(), i.push({
|
|
3334
|
-
type:
|
|
3335
|
-
location:
|
|
3337
|
+
type: E.pound,
|
|
3338
|
+
location: v(a, this.clonePosition())
|
|
3336
3339
|
});
|
|
3337
3340
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3338
3341
|
if (n)
|
|
3339
3342
|
break;
|
|
3340
|
-
return this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3343
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3341
3344
|
} else if (o === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
|
|
3342
3345
|
var s = this.parseTag(t, r);
|
|
3343
3346
|
if (s.err)
|
|
@@ -3359,9 +3362,9 @@ var li = (
|
|
|
3359
3362
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3360
3363
|
return {
|
|
3361
3364
|
val: {
|
|
3362
|
-
type:
|
|
3365
|
+
type: E.literal,
|
|
3363
3366
|
value: "<".concat(i, "/>"),
|
|
3364
|
-
location:
|
|
3367
|
+
location: v(n, this.clonePosition())
|
|
3365
3368
|
},
|
|
3366
3369
|
err: null
|
|
3367
3370
|
};
|
|
@@ -3372,24 +3375,24 @@ var li = (
|
|
|
3372
3375
|
var s = o.val, a = this.clonePosition();
|
|
3373
3376
|
if (this.bumpIf("</")) {
|
|
3374
3377
|
if (this.isEOF() || !Je(this.char()))
|
|
3375
|
-
return this.error(y.INVALID_TAG,
|
|
3378
|
+
return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
|
|
3376
3379
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3377
|
-
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG,
|
|
3380
|
+
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3378
3381
|
val: {
|
|
3379
|
-
type:
|
|
3382
|
+
type: E.tag,
|
|
3380
3383
|
value: i,
|
|
3381
3384
|
children: s,
|
|
3382
|
-
location:
|
|
3385
|
+
location: v(n, this.clonePosition())
|
|
3383
3386
|
},
|
|
3384
3387
|
err: null
|
|
3385
|
-
} : this.error(y.INVALID_TAG,
|
|
3388
|
+
} : this.error(y.INVALID_TAG, v(a, this.clonePosition())));
|
|
3386
3389
|
} else
|
|
3387
|
-
return this.error(y.UNCLOSED_TAG,
|
|
3390
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3388
3391
|
} else
|
|
3389
|
-
return this.error(y.INVALID_TAG,
|
|
3392
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3390
3393
|
}, e.prototype.parseTagName = function() {
|
|
3391
3394
|
var t = this.offset();
|
|
3392
|
-
for (this.bump(); !this.isEOF() &&
|
|
3395
|
+
for (this.bump(); !this.isEOF() && hi(this.char()); )
|
|
3393
3396
|
this.bump();
|
|
3394
3397
|
return this.message.slice(t, this.offset());
|
|
3395
3398
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3411,14 +3414,14 @@ var li = (
|
|
|
3411
3414
|
}
|
|
3412
3415
|
break;
|
|
3413
3416
|
}
|
|
3414
|
-
var l =
|
|
3417
|
+
var l = v(n, this.clonePosition());
|
|
3415
3418
|
return {
|
|
3416
|
-
val: { type:
|
|
3419
|
+
val: { type: E.literal, value: i, location: l },
|
|
3417
3420
|
err: null
|
|
3418
3421
|
};
|
|
3419
3422
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3420
3423
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3421
|
-
!
|
|
3424
|
+
!li(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3422
3425
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3423
3426
|
if (this.isEOF() || this.char() !== 39)
|
|
3424
3427
|
return null;
|
|
@@ -3461,40 +3464,40 @@ var li = (
|
|
|
3461
3464
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3462
3465
|
var n = this.clonePosition();
|
|
3463
3466
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3464
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3467
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3465
3468
|
if (this.char() === 125)
|
|
3466
|
-
return this.bump(), this.error(y.EMPTY_ARGUMENT,
|
|
3469
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3467
3470
|
var i = this.parseIdentifierIfPossible().value;
|
|
3468
3471
|
if (!i)
|
|
3469
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3472
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3470
3473
|
if (this.bumpSpace(), this.isEOF())
|
|
3471
|
-
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3474
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3472
3475
|
switch (this.char()) {
|
|
3473
3476
|
case 125:
|
|
3474
3477
|
return this.bump(), {
|
|
3475
3478
|
val: {
|
|
3476
|
-
type:
|
|
3479
|
+
type: E.argument,
|
|
3477
3480
|
// value does not include the opening and closing braces.
|
|
3478
3481
|
value: i,
|
|
3479
|
-
location:
|
|
3482
|
+
location: v(n, this.clonePosition())
|
|
3480
3483
|
},
|
|
3481
3484
|
err: null
|
|
3482
3485
|
};
|
|
3483
3486
|
case 44:
|
|
3484
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3487
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3485
3488
|
default:
|
|
3486
|
-
return this.error(y.MALFORMED_ARGUMENT,
|
|
3489
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3487
3490
|
}
|
|
3488
3491
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3489
3492
|
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
|
3490
3493
|
this.bumpTo(i);
|
|
3491
|
-
var o = this.clonePosition(), s =
|
|
3494
|
+
var o = this.clonePosition(), s = v(t, o);
|
|
3492
3495
|
return { value: n, location: s };
|
|
3493
3496
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3494
3497
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3495
3498
|
switch (a) {
|
|
3496
3499
|
case "":
|
|
3497
|
-
return this.error(y.EXPECT_ARGUMENT_TYPE,
|
|
3500
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, l));
|
|
3498
3501
|
case "number":
|
|
3499
3502
|
case "date":
|
|
3500
3503
|
case "time": {
|
|
@@ -3505,46 +3508,46 @@ var li = (
|
|
|
3505
3508
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3506
3509
|
if (f.err)
|
|
3507
3510
|
return f;
|
|
3508
|
-
var c =
|
|
3511
|
+
var c = ai(f.val);
|
|
3509
3512
|
if (c.length === 0)
|
|
3510
|
-
return this.error(y.EXPECT_ARGUMENT_STYLE,
|
|
3511
|
-
var
|
|
3512
|
-
u = { style: c, styleLocation:
|
|
3513
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3514
|
+
var m = v(h, this.clonePosition());
|
|
3515
|
+
u = { style: c, styleLocation: m };
|
|
3513
3516
|
}
|
|
3514
3517
|
var b = this.tryParseArgumentClose(i);
|
|
3515
3518
|
if (b.err)
|
|
3516
3519
|
return b;
|
|
3517
|
-
var
|
|
3520
|
+
var g = v(i, this.clonePosition());
|
|
3518
3521
|
if (u && wt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3519
|
-
var
|
|
3522
|
+
var w = si(u.style.slice(2));
|
|
3520
3523
|
if (a === "number") {
|
|
3521
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3524
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3522
3525
|
return f.err ? f : {
|
|
3523
|
-
val: { type:
|
|
3526
|
+
val: { type: E.number, value: n, location: g, style: f.val },
|
|
3524
3527
|
err: null
|
|
3525
3528
|
};
|
|
3526
3529
|
} else {
|
|
3527
|
-
if (
|
|
3528
|
-
return this.error(y.EXPECT_DATE_TIME_SKELETON,
|
|
3529
|
-
var
|
|
3530
|
-
this.locale && (
|
|
3530
|
+
if (w.length === 0)
|
|
3531
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
3532
|
+
var I = w;
|
|
3533
|
+
this.locale && (I = zn(w, this.locale));
|
|
3531
3534
|
var c = {
|
|
3532
|
-
type:
|
|
3533
|
-
pattern:
|
|
3535
|
+
type: ee.dateTime,
|
|
3536
|
+
pattern: I,
|
|
3534
3537
|
location: u.styleLocation,
|
|
3535
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3536
|
-
}, P = a === "date" ?
|
|
3538
|
+
parsedOptions: this.shouldParseSkeletons ? Gn(I) : {}
|
|
3539
|
+
}, P = a === "date" ? E.date : E.time;
|
|
3537
3540
|
return {
|
|
3538
|
-
val: { type: P, value: n, location:
|
|
3541
|
+
val: { type: P, value: n, location: g, style: c },
|
|
3539
3542
|
err: null
|
|
3540
3543
|
};
|
|
3541
3544
|
}
|
|
3542
3545
|
}
|
|
3543
3546
|
return {
|
|
3544
3547
|
val: {
|
|
3545
|
-
type: a === "number" ?
|
|
3548
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
3546
3549
|
value: n,
|
|
3547
|
-
location:
|
|
3550
|
+
location: g,
|
|
3548
3551
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3549
3552
|
},
|
|
3550
3553
|
err: null
|
|
@@ -3553,52 +3556,52 @@ var li = (
|
|
|
3553
3556
|
case "plural":
|
|
3554
3557
|
case "selectordinal":
|
|
3555
3558
|
case "select": {
|
|
3556
|
-
var
|
|
3559
|
+
var S = this.clonePosition();
|
|
3557
3560
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3558
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3561
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(S, _({}, S)));
|
|
3559
3562
|
this.bumpSpace();
|
|
3560
|
-
var
|
|
3561
|
-
if (a !== "select" &&
|
|
3563
|
+
var M = this.parseIdentifierIfPossible(), C = 0;
|
|
3564
|
+
if (a !== "select" && M.value === "offset") {
|
|
3562
3565
|
if (!this.bumpIf(":"))
|
|
3563
|
-
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3566
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3564
3567
|
this.bumpSpace();
|
|
3565
3568
|
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3566
3569
|
if (f.err)
|
|
3567
3570
|
return f;
|
|
3568
|
-
this.bumpSpace(),
|
|
3571
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), C = f.val;
|
|
3569
3572
|
}
|
|
3570
|
-
var
|
|
3571
|
-
if (
|
|
3572
|
-
return
|
|
3573
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, M);
|
|
3574
|
+
if (R.err)
|
|
3575
|
+
return R;
|
|
3573
3576
|
var b = this.tryParseArgumentClose(i);
|
|
3574
3577
|
if (b.err)
|
|
3575
3578
|
return b;
|
|
3576
|
-
var
|
|
3579
|
+
var x = v(i, this.clonePosition());
|
|
3577
3580
|
return a === "select" ? {
|
|
3578
3581
|
val: {
|
|
3579
|
-
type:
|
|
3582
|
+
type: E.select,
|
|
3580
3583
|
value: n,
|
|
3581
|
-
options:
|
|
3582
|
-
location:
|
|
3584
|
+
options: St(R.val),
|
|
3585
|
+
location: x
|
|
3583
3586
|
},
|
|
3584
3587
|
err: null
|
|
3585
3588
|
} : {
|
|
3586
3589
|
val: {
|
|
3587
|
-
type:
|
|
3590
|
+
type: E.plural,
|
|
3588
3591
|
value: n,
|
|
3589
|
-
options:
|
|
3590
|
-
offset:
|
|
3592
|
+
options: St(R.val),
|
|
3593
|
+
offset: C,
|
|
3591
3594
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3592
|
-
location:
|
|
3595
|
+
location: x
|
|
3593
3596
|
},
|
|
3594
3597
|
err: null
|
|
3595
3598
|
};
|
|
3596
3599
|
}
|
|
3597
3600
|
default:
|
|
3598
|
-
return this.error(y.INVALID_ARGUMENT_TYPE,
|
|
3601
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(s, l));
|
|
3599
3602
|
}
|
|
3600
3603
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3601
|
-
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3604
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3602
3605
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3603
3606
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3604
3607
|
var n = this.char();
|
|
@@ -3607,7 +3610,7 @@ var li = (
|
|
|
3607
3610
|
this.bump();
|
|
3608
3611
|
var i = this.clonePosition();
|
|
3609
3612
|
if (!this.bumpUntil("'"))
|
|
3610
|
-
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3613
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3611
3614
|
this.bump();
|
|
3612
3615
|
break;
|
|
3613
3616
|
}
|
|
@@ -3637,16 +3640,16 @@ var li = (
|
|
|
3637
3640
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3638
3641
|
var n = [];
|
|
3639
3642
|
try {
|
|
3640
|
-
n =
|
|
3643
|
+
n = jn(t);
|
|
3641
3644
|
} catch (i) {
|
|
3642
3645
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3643
3646
|
}
|
|
3644
3647
|
return {
|
|
3645
3648
|
val: {
|
|
3646
|
-
type:
|
|
3649
|
+
type: ee.number,
|
|
3647
3650
|
tokens: n,
|
|
3648
3651
|
location: r,
|
|
3649
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3652
|
+
parsedOptions: this.shouldParseSkeletons ? Wn(n) : {}
|
|
3650
3653
|
},
|
|
3651
3654
|
err: null
|
|
3652
3655
|
};
|
|
@@ -3658,31 +3661,31 @@ var li = (
|
|
|
3658
3661
|
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3659
3662
|
if (c.err)
|
|
3660
3663
|
return c;
|
|
3661
|
-
h =
|
|
3664
|
+
h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3662
3665
|
} else
|
|
3663
3666
|
break;
|
|
3664
3667
|
}
|
|
3665
3668
|
if (l.has(u))
|
|
3666
3669
|
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3667
3670
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3668
|
-
var
|
|
3671
|
+
var m = this.clonePosition();
|
|
3669
3672
|
if (!this.bumpIf("{"))
|
|
3670
|
-
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3673
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3671
3674
|
var b = this.parseMessage(t + 1, r, n);
|
|
3672
3675
|
if (b.err)
|
|
3673
3676
|
return b;
|
|
3674
|
-
var
|
|
3675
|
-
if (
|
|
3676
|
-
return
|
|
3677
|
+
var g = this.tryParseArgumentClose(m);
|
|
3678
|
+
if (g.err)
|
|
3679
|
+
return g;
|
|
3677
3680
|
a.push([
|
|
3678
3681
|
u,
|
|
3679
3682
|
{
|
|
3680
3683
|
value: b.val,
|
|
3681
|
-
location:
|
|
3684
|
+
location: v(m, this.clonePosition())
|
|
3682
3685
|
}
|
|
3683
3686
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3684
3687
|
}
|
|
3685
|
-
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3688
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3686
3689
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3687
3690
|
var n = 1, i = this.clonePosition();
|
|
3688
3691
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3693,8 +3696,8 @@ var li = (
|
|
|
3693
3696
|
else
|
|
3694
3697
|
break;
|
|
3695
3698
|
}
|
|
3696
|
-
var l =
|
|
3697
|
-
return o ? (s *= n,
|
|
3699
|
+
var l = v(i, this.clonePosition());
|
|
3700
|
+
return o ? (s *= n, ii(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3698
3701
|
}, e.prototype.offset = function() {
|
|
3699
3702
|
return this.position.offset;
|
|
3700
3703
|
}, e.prototype.isEOF = function() {
|
|
@@ -3763,43 +3766,43 @@ var li = (
|
|
|
3763
3766
|
function Je(e) {
|
|
3764
3767
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3765
3768
|
}
|
|
3766
|
-
function
|
|
3769
|
+
function li(e) {
|
|
3767
3770
|
return Je(e) || e === 47;
|
|
3768
3771
|
}
|
|
3769
|
-
function
|
|
3772
|
+
function hi(e) {
|
|
3770
3773
|
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;
|
|
3771
3774
|
}
|
|
3772
3775
|
function dr(e) {
|
|
3773
3776
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3774
3777
|
}
|
|
3775
|
-
function
|
|
3778
|
+
function ci(e) {
|
|
3776
3779
|
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;
|
|
3777
3780
|
}
|
|
3778
|
-
function
|
|
3781
|
+
function qe(e) {
|
|
3779
3782
|
e.forEach(function(t) {
|
|
3780
3783
|
if (delete t.location, nr(t) || ir(t))
|
|
3781
3784
|
for (var r in t.options)
|
|
3782
|
-
delete t.options[r].location,
|
|
3783
|
-
else er(t) && sr(t.style) || (tr(t) || rr(t)) &&
|
|
3785
|
+
delete t.options[r].location, qe(t.options[r].value);
|
|
3786
|
+
else er(t) && sr(t.style) || (tr(t) || rr(t)) && We(t.style) ? delete t.style.location : or(t) && qe(t.children);
|
|
3784
3787
|
});
|
|
3785
3788
|
}
|
|
3786
|
-
function
|
|
3789
|
+
function fi(e, t) {
|
|
3787
3790
|
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3788
|
-
var r = new
|
|
3791
|
+
var r = new ui(e, t).parse();
|
|
3789
3792
|
if (r.err) {
|
|
3790
3793
|
var n = SyntaxError(y[r.err.kind]);
|
|
3791
3794
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3792
3795
|
}
|
|
3793
|
-
return t != null && t.captureLocation ||
|
|
3796
|
+
return t != null && t.captureLocation || qe(r.val), r.val;
|
|
3794
3797
|
}
|
|
3795
|
-
var
|
|
3798
|
+
var te;
|
|
3796
3799
|
(function(e) {
|
|
3797
3800
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3798
|
-
})(
|
|
3799
|
-
var
|
|
3801
|
+
})(te || (te = {}));
|
|
3802
|
+
var Be = (
|
|
3800
3803
|
/** @class */
|
|
3801
3804
|
function(e) {
|
|
3802
|
-
|
|
3805
|
+
G(t, e);
|
|
3803
3806
|
function t(r, n, i) {
|
|
3804
3807
|
var o = e.call(this, r) || this;
|
|
3805
3808
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3808,155 +3811,155 @@ var Pe = (
|
|
|
3808
3811
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3809
3812
|
}, t;
|
|
3810
3813
|
}(Error)
|
|
3811
|
-
),
|
|
3814
|
+
), Ht = (
|
|
3812
3815
|
/** @class */
|
|
3813
3816
|
function(e) {
|
|
3814
|
-
|
|
3817
|
+
G(t, e);
|
|
3815
3818
|
function t(r, n, i, o) {
|
|
3816
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3819
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
|
|
3817
3820
|
}
|
|
3818
3821
|
return t;
|
|
3819
|
-
}(
|
|
3820
|
-
),
|
|
3822
|
+
}(Be)
|
|
3823
|
+
), di = (
|
|
3821
3824
|
/** @class */
|
|
3822
3825
|
function(e) {
|
|
3823
|
-
|
|
3826
|
+
G(t, e);
|
|
3824
3827
|
function t(r, n, i) {
|
|
3825
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3828
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
3826
3829
|
}
|
|
3827
3830
|
return t;
|
|
3828
|
-
}(
|
|
3829
|
-
),
|
|
3831
|
+
}(Be)
|
|
3832
|
+
), pi = (
|
|
3830
3833
|
/** @class */
|
|
3831
3834
|
function(e) {
|
|
3832
|
-
|
|
3835
|
+
G(t, e);
|
|
3833
3836
|
function t(r, n) {
|
|
3834
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3837
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
3835
3838
|
}
|
|
3836
3839
|
return t;
|
|
3837
|
-
}(
|
|
3838
|
-
),
|
|
3840
|
+
}(Be)
|
|
3841
|
+
), H;
|
|
3839
3842
|
(function(e) {
|
|
3840
3843
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3841
|
-
})(
|
|
3842
|
-
function
|
|
3844
|
+
})(H || (H = {}));
|
|
3845
|
+
function mi(e) {
|
|
3843
3846
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3844
3847
|
var n = t[t.length - 1];
|
|
3845
|
-
return !n || n.type !==
|
|
3848
|
+
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3846
3849
|
}, []);
|
|
3847
3850
|
}
|
|
3848
|
-
function
|
|
3851
|
+
function bi(e) {
|
|
3849
3852
|
return typeof e == "function";
|
|
3850
3853
|
}
|
|
3851
|
-
function
|
|
3852
|
-
if (e.length === 1 &&
|
|
3854
|
+
function _e(e, t, r, n, i, o, s) {
|
|
3855
|
+
if (e.length === 1 && vt(e[0]))
|
|
3853
3856
|
return [
|
|
3854
3857
|
{
|
|
3855
|
-
type:
|
|
3858
|
+
type: H.literal,
|
|
3856
3859
|
value: e[0].value
|
|
3857
3860
|
}
|
|
3858
3861
|
];
|
|
3859
3862
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3860
3863
|
var h = u[l];
|
|
3861
|
-
if (
|
|
3864
|
+
if (vt(h)) {
|
|
3862
3865
|
a.push({
|
|
3863
|
-
type:
|
|
3866
|
+
type: H.literal,
|
|
3864
3867
|
value: h.value
|
|
3865
3868
|
});
|
|
3866
3869
|
continue;
|
|
3867
3870
|
}
|
|
3868
|
-
if (
|
|
3871
|
+
if (Dn(h)) {
|
|
3869
3872
|
typeof o == "number" && a.push({
|
|
3870
|
-
type:
|
|
3873
|
+
type: H.literal,
|
|
3871
3874
|
value: r.getNumberFormat(t).format(o)
|
|
3872
3875
|
});
|
|
3873
3876
|
continue;
|
|
3874
3877
|
}
|
|
3875
3878
|
var f = h.value;
|
|
3876
3879
|
if (!(i && f in i))
|
|
3877
|
-
throw new
|
|
3880
|
+
throw new pi(f, s);
|
|
3878
3881
|
var c = i[f];
|
|
3879
|
-
if (
|
|
3882
|
+
if ($n(h)) {
|
|
3880
3883
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3881
|
-
type: typeof c == "string" ?
|
|
3884
|
+
type: typeof c == "string" ? H.literal : H.object,
|
|
3882
3885
|
value: c
|
|
3883
3886
|
});
|
|
3884
3887
|
continue;
|
|
3885
3888
|
}
|
|
3886
3889
|
if (tr(h)) {
|
|
3887
|
-
var
|
|
3890
|
+
var m = typeof h.style == "string" ? n.date[h.style] : We(h.style) ? h.style.parsedOptions : void 0;
|
|
3888
3891
|
a.push({
|
|
3889
|
-
type:
|
|
3890
|
-
value: r.getDateTimeFormat(t,
|
|
3892
|
+
type: H.literal,
|
|
3893
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3891
3894
|
});
|
|
3892
3895
|
continue;
|
|
3893
3896
|
}
|
|
3894
3897
|
if (rr(h)) {
|
|
3895
|
-
var
|
|
3898
|
+
var m = typeof h.style == "string" ? n.time[h.style] : We(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3896
3899
|
a.push({
|
|
3897
|
-
type:
|
|
3898
|
-
value: r.getDateTimeFormat(t,
|
|
3900
|
+
type: H.literal,
|
|
3901
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3899
3902
|
});
|
|
3900
3903
|
continue;
|
|
3901
3904
|
}
|
|
3902
3905
|
if (er(h)) {
|
|
3903
|
-
var
|
|
3904
|
-
|
|
3905
|
-
type:
|
|
3906
|
-
value: r.getNumberFormat(t,
|
|
3906
|
+
var m = typeof h.style == "string" ? n.number[h.style] : sr(h.style) ? h.style.parsedOptions : void 0;
|
|
3907
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3908
|
+
type: H.literal,
|
|
3909
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3907
3910
|
});
|
|
3908
3911
|
continue;
|
|
3909
3912
|
}
|
|
3910
3913
|
if (or(h)) {
|
|
3911
|
-
var b = h.children,
|
|
3912
|
-
if (!
|
|
3913
|
-
throw new
|
|
3914
|
-
var
|
|
3915
|
-
return
|
|
3914
|
+
var b = h.children, g = h.value, w = i[g];
|
|
3915
|
+
if (!bi(w))
|
|
3916
|
+
throw new di(g, "function", s);
|
|
3917
|
+
var I = _e(b, t, r, n, i, o), P = w(I.map(function(C) {
|
|
3918
|
+
return C.value;
|
|
3916
3919
|
}));
|
|
3917
|
-
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(
|
|
3920
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(C) {
|
|
3918
3921
|
return {
|
|
3919
|
-
type: typeof
|
|
3920
|
-
value:
|
|
3922
|
+
type: typeof C == "string" ? H.literal : H.object,
|
|
3923
|
+
value: C
|
|
3921
3924
|
};
|
|
3922
3925
|
}));
|
|
3923
3926
|
}
|
|
3924
3927
|
if (nr(h)) {
|
|
3925
|
-
var
|
|
3926
|
-
if (!
|
|
3927
|
-
throw new
|
|
3928
|
-
a.push.apply(a,
|
|
3928
|
+
var S = h.options[c] || h.options.other;
|
|
3929
|
+
if (!S)
|
|
3930
|
+
throw new Ht(h.value, c, Object.keys(h.options), s);
|
|
3931
|
+
a.push.apply(a, _e(S.value, t, r, n, i));
|
|
3929
3932
|
continue;
|
|
3930
3933
|
}
|
|
3931
3934
|
if (ir(h)) {
|
|
3932
|
-
var
|
|
3933
|
-
if (!
|
|
3935
|
+
var S = h.options["=".concat(c)];
|
|
3936
|
+
if (!S) {
|
|
3934
3937
|
if (!Intl.PluralRules)
|
|
3935
|
-
throw new
|
|
3938
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3936
3939
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3937
|
-
`,
|
|
3938
|
-
var
|
|
3939
|
-
|
|
3940
|
+
`, te.MISSING_INTL_API, s);
|
|
3941
|
+
var M = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3942
|
+
S = h.options[M] || h.options.other;
|
|
3940
3943
|
}
|
|
3941
|
-
if (!
|
|
3942
|
-
throw new
|
|
3943
|
-
a.push.apply(a,
|
|
3944
|
+
if (!S)
|
|
3945
|
+
throw new Ht(h.value, c, Object.keys(h.options), s);
|
|
3946
|
+
a.push.apply(a, _e(S.value, t, r, n, i, c - (h.offset || 0)));
|
|
3944
3947
|
continue;
|
|
3945
3948
|
}
|
|
3946
3949
|
}
|
|
3947
|
-
return
|
|
3950
|
+
return mi(a);
|
|
3948
3951
|
}
|
|
3949
|
-
function
|
|
3952
|
+
function yi(e, t) {
|
|
3950
3953
|
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3951
3954
|
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3952
3955
|
}, {})) : e;
|
|
3953
3956
|
}
|
|
3954
|
-
function
|
|
3957
|
+
function gi(e, t) {
|
|
3955
3958
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3956
|
-
return r[n] =
|
|
3959
|
+
return r[n] = yi(e[n], t[n]), r;
|
|
3957
3960
|
}, _({}, e)) : e;
|
|
3958
3961
|
}
|
|
3959
|
-
function
|
|
3962
|
+
function Re(e) {
|
|
3960
3963
|
return {
|
|
3961
3964
|
create: function() {
|
|
3962
3965
|
return {
|
|
@@ -3970,39 +3973,39 @@ function $e(e) {
|
|
|
3970
3973
|
}
|
|
3971
3974
|
};
|
|
3972
3975
|
}
|
|
3973
|
-
function
|
|
3976
|
+
function vi(e) {
|
|
3974
3977
|
return e === void 0 && (e = {
|
|
3975
3978
|
number: {},
|
|
3976
3979
|
dateTime: {},
|
|
3977
3980
|
pluralRules: {}
|
|
3978
3981
|
}), {
|
|
3979
|
-
getNumberFormat:
|
|
3982
|
+
getNumberFormat: Le(function() {
|
|
3980
3983
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3981
3984
|
r[n] = arguments[n];
|
|
3982
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3985
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], r, !1)))();
|
|
3983
3986
|
}, {
|
|
3984
|
-
cache:
|
|
3985
|
-
strategy:
|
|
3987
|
+
cache: Re(e.number),
|
|
3988
|
+
strategy: Ne.variadic
|
|
3986
3989
|
}),
|
|
3987
|
-
getDateTimeFormat:
|
|
3990
|
+
getDateTimeFormat: Le(function() {
|
|
3988
3991
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3989
3992
|
r[n] = arguments[n];
|
|
3990
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3993
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], r, !1)))();
|
|
3991
3994
|
}, {
|
|
3992
|
-
cache:
|
|
3993
|
-
strategy:
|
|
3995
|
+
cache: Re(e.dateTime),
|
|
3996
|
+
strategy: Ne.variadic
|
|
3994
3997
|
}),
|
|
3995
|
-
getPluralRules:
|
|
3998
|
+
getPluralRules: Le(function() {
|
|
3996
3999
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3997
4000
|
r[n] = arguments[n];
|
|
3998
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4001
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], r, !1)))();
|
|
3999
4002
|
}, {
|
|
4000
|
-
cache:
|
|
4001
|
-
strategy:
|
|
4003
|
+
cache: Re(e.pluralRules),
|
|
4004
|
+
strategy: Ne.variadic
|
|
4002
4005
|
})
|
|
4003
4006
|
};
|
|
4004
4007
|
}
|
|
4005
|
-
var
|
|
4008
|
+
var _i = (
|
|
4006
4009
|
/** @class */
|
|
4007
4010
|
function() {
|
|
4008
4011
|
function e(t, r, n, i) {
|
|
@@ -4017,11 +4020,11 @@ var Ei = (
|
|
|
4017
4020
|
if (u.length === 1)
|
|
4018
4021
|
return u[0].value;
|
|
4019
4022
|
var h = u.reduce(function(f, c) {
|
|
4020
|
-
return !f.length || c.type !==
|
|
4023
|
+
return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
4021
4024
|
}, []);
|
|
4022
4025
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4023
4026
|
}, this.formatToParts = function(l) {
|
|
4024
|
-
return
|
|
4027
|
+
return _e(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
4025
4028
|
}, this.resolvedOptions = function() {
|
|
4026
4029
|
var l;
|
|
4027
4030
|
return {
|
|
@@ -4034,13 +4037,13 @@ var Ei = (
|
|
|
4034
4037
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4035
4038
|
var s = i || {};
|
|
4036
4039
|
s.formatters;
|
|
4037
|
-
var a =
|
|
4040
|
+
var a = qr(s, ["formatters"]);
|
|
4038
4041
|
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
4039
4042
|
} else
|
|
4040
4043
|
this.ast = t;
|
|
4041
4044
|
if (!Array.isArray(this.ast))
|
|
4042
4045
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4043
|
-
this.formats =
|
|
4046
|
+
this.formats = gi(e.formats, n), this.formatters = i && i.formatters || vi(this.formatterCache);
|
|
4044
4047
|
}
|
|
4045
4048
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4046
4049
|
get: function() {
|
|
@@ -4053,7 +4056,7 @@ var Ei = (
|
|
|
4053
4056
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4054
4057
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4055
4058
|
}
|
|
4056
|
-
}, e.__parse =
|
|
4059
|
+
}, e.__parse = fi, e.formats = {
|
|
4057
4060
|
number: {
|
|
4058
4061
|
integer: {
|
|
4059
4062
|
maximumFractionDigits: 0
|
|
@@ -4114,7 +4117,7 @@ var Ei = (
|
|
|
4114
4117
|
}, e;
|
|
4115
4118
|
}()
|
|
4116
4119
|
);
|
|
4117
|
-
function
|
|
4120
|
+
function Ei(e, t) {
|
|
4118
4121
|
if (t == null)
|
|
4119
4122
|
return;
|
|
4120
4123
|
if (t in e)
|
|
@@ -4135,36 +4138,36 @@ function xi(e, t) {
|
|
|
4135
4138
|
n = void 0;
|
|
4136
4139
|
return n;
|
|
4137
4140
|
}
|
|
4138
|
-
const j = {},
|
|
4141
|
+
const j = {}, xi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), pr = (e, t) => {
|
|
4139
4142
|
if (t == null)
|
|
4140
4143
|
return;
|
|
4141
4144
|
if (t in j && e in j[t])
|
|
4142
4145
|
return j[t][e];
|
|
4143
|
-
const r =
|
|
4146
|
+
const r = Pe(t);
|
|
4144
4147
|
for (let n = 0; n < r.length; n++) {
|
|
4145
|
-
const i = r[n], o =
|
|
4148
|
+
const i = r[n], o = Si(i, e);
|
|
4146
4149
|
if (o)
|
|
4147
|
-
return
|
|
4150
|
+
return xi(e, t, o);
|
|
4148
4151
|
}
|
|
4149
4152
|
};
|
|
4150
|
-
let
|
|
4151
|
-
const
|
|
4153
|
+
let tt;
|
|
4154
|
+
const fe = He({});
|
|
4152
4155
|
function wi(e) {
|
|
4153
|
-
return
|
|
4156
|
+
return tt[e] || null;
|
|
4154
4157
|
}
|
|
4155
4158
|
function mr(e) {
|
|
4156
|
-
return e in
|
|
4159
|
+
return e in tt;
|
|
4157
4160
|
}
|
|
4158
|
-
function
|
|
4161
|
+
function Si(e, t) {
|
|
4159
4162
|
if (!mr(e))
|
|
4160
4163
|
return null;
|
|
4161
4164
|
const r = wi(e);
|
|
4162
|
-
return
|
|
4165
|
+
return Ei(r, t);
|
|
4163
4166
|
}
|
|
4164
|
-
function
|
|
4167
|
+
function Ti(e) {
|
|
4165
4168
|
if (e == null)
|
|
4166
4169
|
return;
|
|
4167
|
-
const t =
|
|
4170
|
+
const t = Pe(e);
|
|
4168
4171
|
for (let r = 0; r < t.length; r++) {
|
|
4169
4172
|
const n = t[r];
|
|
4170
4173
|
if (mr(n))
|
|
@@ -4172,55 +4175,55 @@ function Hi(e) {
|
|
|
4172
4175
|
}
|
|
4173
4176
|
}
|
|
4174
4177
|
function br(e, ...t) {
|
|
4175
|
-
delete j[e],
|
|
4178
|
+
delete j[e], fe.update((r) => (r[e] = An.all([r[e] || {}, ...t]), r));
|
|
4176
4179
|
}
|
|
4177
|
-
|
|
4178
|
-
[
|
|
4180
|
+
ne(
|
|
4181
|
+
[fe],
|
|
4179
4182
|
([e]) => Object.keys(e)
|
|
4180
4183
|
);
|
|
4181
|
-
|
|
4182
|
-
const
|
|
4183
|
-
function
|
|
4184
|
-
|
|
4184
|
+
fe.subscribe((e) => tt = e);
|
|
4185
|
+
const Ee = {};
|
|
4186
|
+
function Hi(e, t) {
|
|
4187
|
+
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
4185
4188
|
}
|
|
4186
4189
|
function yr(e) {
|
|
4187
|
-
return
|
|
4190
|
+
return Ee[e];
|
|
4188
4191
|
}
|
|
4189
|
-
function
|
|
4190
|
-
return
|
|
4192
|
+
function Bi(e) {
|
|
4193
|
+
return Pe(e).map((t) => {
|
|
4191
4194
|
const r = yr(t);
|
|
4192
4195
|
return [t, r ? [...r] : []];
|
|
4193
4196
|
}).filter(([, t]) => t.length > 0);
|
|
4194
4197
|
}
|
|
4195
|
-
function
|
|
4196
|
-
return e == null ? !1 :
|
|
4198
|
+
function Ye(e) {
|
|
4199
|
+
return e == null ? !1 : Pe(e).some(
|
|
4197
4200
|
(t) => {
|
|
4198
4201
|
var r;
|
|
4199
4202
|
return (r = yr(t)) == null ? void 0 : r.size;
|
|
4200
4203
|
}
|
|
4201
4204
|
);
|
|
4202
4205
|
}
|
|
4203
|
-
function
|
|
4206
|
+
function Pi(e, t) {
|
|
4204
4207
|
return Promise.all(
|
|
4205
|
-
t.map((n) => (
|
|
4208
|
+
t.map((n) => (Hi(e, n), n().then((i) => i.default || i)))
|
|
4206
4209
|
).then((n) => br(e, ...n));
|
|
4207
4210
|
}
|
|
4208
|
-
const
|
|
4211
|
+
const se = {};
|
|
4209
4212
|
function gr(e) {
|
|
4210
|
-
if (!
|
|
4211
|
-
return e in
|
|
4212
|
-
const t =
|
|
4213
|
-
return
|
|
4213
|
+
if (!Ye(e))
|
|
4214
|
+
return e in se ? se[e] : Promise.resolve();
|
|
4215
|
+
const t = Bi(e);
|
|
4216
|
+
return se[e] = Promise.all(
|
|
4214
4217
|
t.map(
|
|
4215
|
-
([r, n]) =>
|
|
4218
|
+
([r, n]) => Pi(r, n)
|
|
4216
4219
|
)
|
|
4217
4220
|
).then(() => {
|
|
4218
|
-
if (
|
|
4221
|
+
if (Ye(e))
|
|
4219
4222
|
return gr(e);
|
|
4220
|
-
delete
|
|
4221
|
-
}),
|
|
4223
|
+
delete se[e];
|
|
4224
|
+
}), se[e];
|
|
4222
4225
|
}
|
|
4223
|
-
const
|
|
4226
|
+
const Ai = {
|
|
4224
4227
|
number: {
|
|
4225
4228
|
scientific: { notation: "scientific" },
|
|
4226
4229
|
engineering: { notation: "engineering" },
|
|
@@ -4249,72 +4252,72 @@ const Oi = {
|
|
|
4249
4252
|
timeZoneName: "short"
|
|
4250
4253
|
}
|
|
4251
4254
|
}
|
|
4252
|
-
},
|
|
4255
|
+
}, Oi = {
|
|
4253
4256
|
fallbackLocale: null,
|
|
4254
4257
|
loadingDelay: 200,
|
|
4255
|
-
formats:
|
|
4258
|
+
formats: Ai,
|
|
4256
4259
|
warnOnMissingMessages: !0,
|
|
4257
4260
|
handleMissingMessage: void 0,
|
|
4258
4261
|
ignoreTag: !0
|
|
4259
|
-
},
|
|
4260
|
-
function
|
|
4261
|
-
return
|
|
4262
|
+
}, Ii = Oi;
|
|
4263
|
+
function re() {
|
|
4264
|
+
return Ii;
|
|
4262
4265
|
}
|
|
4263
|
-
const
|
|
4264
|
-
var
|
|
4266
|
+
const $e = He(!1);
|
|
4267
|
+
var Ci = Object.defineProperty, Li = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $i = (e, t) => {
|
|
4265
4268
|
for (var r in t || (t = {}))
|
|
4266
|
-
|
|
4267
|
-
if (
|
|
4268
|
-
for (var r of
|
|
4269
|
-
|
|
4269
|
+
Mi.call(t, r) && Pt(e, r, t[r]);
|
|
4270
|
+
if (Bt)
|
|
4271
|
+
for (var r of Bt(t))
|
|
4272
|
+
Ri.call(t, r) && Pt(e, r, t[r]);
|
|
4270
4273
|
return e;
|
|
4271
|
-
},
|
|
4272
|
-
let
|
|
4273
|
-
const
|
|
4274
|
-
function
|
|
4274
|
+
}, Di = (e, t) => Li(e, Ni(t));
|
|
4275
|
+
let Ke;
|
|
4276
|
+
const xe = He(null);
|
|
4277
|
+
function At(e) {
|
|
4275
4278
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4276
4279
|
}
|
|
4277
|
-
function
|
|
4278
|
-
const r =
|
|
4279
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4280
|
+
function Pe(e, t = re().fallbackLocale) {
|
|
4281
|
+
const r = At(e);
|
|
4282
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...At(t)])] : r;
|
|
4280
4283
|
}
|
|
4281
4284
|
function z() {
|
|
4282
|
-
return
|
|
4285
|
+
return Ke != null ? Ke : void 0;
|
|
4283
4286
|
}
|
|
4284
|
-
|
|
4285
|
-
|
|
4287
|
+
xe.subscribe((e) => {
|
|
4288
|
+
Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4286
4289
|
});
|
|
4287
|
-
const
|
|
4288
|
-
if (e &&
|
|
4289
|
-
const { loadingDelay: t } =
|
|
4290
|
+
const Ui = (e) => {
|
|
4291
|
+
if (e && Ti(e) && Ye(e)) {
|
|
4292
|
+
const { loadingDelay: t } = re();
|
|
4290
4293
|
let r;
|
|
4291
4294
|
return typeof window != "undefined" && z() != null && t ? r = window.setTimeout(
|
|
4292
|
-
() =>
|
|
4295
|
+
() => $e.set(!0),
|
|
4293
4296
|
t
|
|
4294
|
-
) :
|
|
4295
|
-
|
|
4297
|
+
) : $e.set(!0), gr(e).then(() => {
|
|
4298
|
+
xe.set(e);
|
|
4296
4299
|
}).finally(() => {
|
|
4297
|
-
clearTimeout(r),
|
|
4300
|
+
clearTimeout(r), $e.set(!1);
|
|
4298
4301
|
});
|
|
4299
4302
|
}
|
|
4300
|
-
return
|
|
4301
|
-
},
|
|
4302
|
-
set:
|
|
4303
|
-
}),
|
|
4303
|
+
return xe.set(e);
|
|
4304
|
+
}, ie = Di($i({}, xe), {
|
|
4305
|
+
set: Ui
|
|
4306
|
+
}), Ae = (e) => {
|
|
4304
4307
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4305
4308
|
return (n) => {
|
|
4306
4309
|
const i = JSON.stringify(n);
|
|
4307
4310
|
return i in t ? t[i] : t[i] = e(n);
|
|
4308
4311
|
};
|
|
4309
4312
|
};
|
|
4310
|
-
var
|
|
4313
|
+
var Gi = Object.defineProperty, we = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
4311
4314
|
for (var r in t || (t = {}))
|
|
4312
|
-
vr.call(t, r) &&
|
|
4315
|
+
vr.call(t, r) && Ot(e, r, t[r]);
|
|
4313
4316
|
if (we)
|
|
4314
4317
|
for (var r of we(t))
|
|
4315
|
-
_r.call(t, r) &&
|
|
4318
|
+
_r.call(t, r) && Ot(e, r, t[r]);
|
|
4316
4319
|
return e;
|
|
4317
|
-
},
|
|
4320
|
+
}, oe = (e, t) => {
|
|
4318
4321
|
var r = {};
|
|
4319
4322
|
for (var n in e)
|
|
4320
4323
|
vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -4323,59 +4326,59 @@ var Fi = Object.defineProperty, we = Object.getOwnPropertySymbols, vr = Object.p
|
|
|
4323
4326
|
t.indexOf(n) < 0 && _r.call(e, n) && (r[n] = e[n]);
|
|
4324
4327
|
return r;
|
|
4325
4328
|
};
|
|
4326
|
-
const
|
|
4327
|
-
const { formats: r } =
|
|
4329
|
+
const he = (e, t) => {
|
|
4330
|
+
const { formats: r } = re();
|
|
4328
4331
|
if (e in r && t in r[e])
|
|
4329
4332
|
return r[e][t];
|
|
4330
4333
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4331
|
-
},
|
|
4334
|
+
}, Fi = Ae(
|
|
4332
4335
|
(e) => {
|
|
4333
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4336
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4334
4337
|
if (r == null)
|
|
4335
4338
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4336
|
-
return n && (i =
|
|
4339
|
+
return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
|
|
4337
4340
|
}
|
|
4338
|
-
),
|
|
4341
|
+
), ji = Ae(
|
|
4339
4342
|
(e) => {
|
|
4340
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4343
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4341
4344
|
if (r == null)
|
|
4342
4345
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4343
|
-
return n ? i =
|
|
4346
|
+
return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4344
4347
|
}
|
|
4345
|
-
),
|
|
4348
|
+
), ki = Ae(
|
|
4346
4349
|
(e) => {
|
|
4347
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4350
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4348
4351
|
if (r == null)
|
|
4349
4352
|
throw new Error(
|
|
4350
4353
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4351
4354
|
);
|
|
4352
|
-
return n ? i =
|
|
4355
|
+
return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4353
4356
|
}
|
|
4354
|
-
),
|
|
4357
|
+
), Vi = (e = {}) => {
|
|
4355
4358
|
var t = e, {
|
|
4356
4359
|
locale: r = z()
|
|
4357
|
-
} = t, n =
|
|
4360
|
+
} = t, n = oe(t, [
|
|
4358
4361
|
"locale"
|
|
4359
4362
|
]);
|
|
4360
|
-
return
|
|
4361
|
-
},
|
|
4363
|
+
return Fi(rt({ locale: r }, n));
|
|
4364
|
+
}, Xi = (e = {}) => {
|
|
4362
4365
|
var t = e, {
|
|
4363
4366
|
locale: r = z()
|
|
4364
|
-
} = t, n =
|
|
4367
|
+
} = t, n = oe(t, [
|
|
4365
4368
|
"locale"
|
|
4366
4369
|
]);
|
|
4367
|
-
return
|
|
4368
|
-
},
|
|
4370
|
+
return ji(rt({ locale: r }, n));
|
|
4371
|
+
}, Wi = (e = {}) => {
|
|
4369
4372
|
var t = e, {
|
|
4370
4373
|
locale: r = z()
|
|
4371
|
-
} = t, n =
|
|
4374
|
+
} = t, n = oe(t, [
|
|
4372
4375
|
"locale"
|
|
4373
4376
|
]);
|
|
4374
|
-
return
|
|
4375
|
-
},
|
|
4377
|
+
return ki(rt({ locale: r }, n));
|
|
4378
|
+
}, zi = Ae(
|
|
4376
4379
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4377
|
-
(e, t = z()) => new
|
|
4378
|
-
ignoreTag:
|
|
4380
|
+
(e, t = z()) => new _i(e, t, re().formats, {
|
|
4381
|
+
ignoreTag: re().ignoreTag
|
|
4379
4382
|
})
|
|
4380
4383
|
), Zi = (e, t = {}) => {
|
|
4381
4384
|
var r, n, i, o;
|
|
@@ -4392,7 +4395,7 @@ const ce = (e, t) => {
|
|
|
4392
4395
|
);
|
|
4393
4396
|
let h = pr(e, l);
|
|
4394
4397
|
if (!h)
|
|
4395
|
-
h = (o = (i = (n = (r =
|
|
4398
|
+
h = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4396
4399
|
else if (typeof h != "string")
|
|
4397
4400
|
return console.warn(
|
|
4398
4401
|
`[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.`
|
|
@@ -4401,7 +4404,7 @@ const ce = (e, t) => {
|
|
|
4401
4404
|
return h;
|
|
4402
4405
|
let f = h;
|
|
4403
4406
|
try {
|
|
4404
|
-
f =
|
|
4407
|
+
f = zi(h, l).format(a);
|
|
4405
4408
|
} catch (c) {
|
|
4406
4409
|
c instanceof Error && console.warn(
|
|
4407
4410
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4409,14 +4412,14 @@ const ce = (e, t) => {
|
|
|
4409
4412
|
);
|
|
4410
4413
|
}
|
|
4411
4414
|
return f;
|
|
4412
|
-
}, Qi = (e, t) =>
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
window.emWidgets = { topic:
|
|
4418
|
-
const Er = (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)),
|
|
4419
|
-
function
|
|
4415
|
+
}, Qi = (e, t) => Wi(t).format(e), Ji = (e, t) => Xi(t).format(e), qi = (e, t) => Vi(t).format(e), Yi = (e, t = z()) => pr(e, t), Ki = ne([ie, fe], () => Zi);
|
|
4416
|
+
ne([ie], () => Qi);
|
|
4417
|
+
ne([ie], () => Ji);
|
|
4418
|
+
ne([ie], () => qi);
|
|
4419
|
+
ne([ie, fe], () => Yi);
|
|
4420
|
+
window.emWidgets = { topic: fn };
|
|
4421
|
+
const Er = (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)), eo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4422
|
+
function Lo(e, t) {
|
|
4420
4423
|
const r = window.navigator.userAgent;
|
|
4421
4424
|
return Er(r) ? t = e.filter((n) => {
|
|
4422
4425
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
|
@@ -4426,13 +4429,36 @@ function Oo(e, t) {
|
|
|
4426
4429
|
return n;
|
|
4427
4430
|
}), t;
|
|
4428
4431
|
}
|
|
4429
|
-
function
|
|
4432
|
+
function to(e, t) {
|
|
4433
|
+
if (e) {
|
|
4434
|
+
const r = document.createElement("style");
|
|
4435
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4436
|
+
}
|
|
4437
|
+
}
|
|
4438
|
+
function ro(e, t) {
|
|
4439
|
+
const r = new URL(t);
|
|
4440
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4441
|
+
const i = document.createElement("style");
|
|
4442
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4443
|
+
}).catch((n) => {
|
|
4444
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4445
|
+
});
|
|
4446
|
+
}
|
|
4447
|
+
function no(e, t, r) {
|
|
4448
|
+
if (window.emMessageBus) {
|
|
4449
|
+
const n = document.createElement("style");
|
|
4450
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4451
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4452
|
+
});
|
|
4453
|
+
}
|
|
4454
|
+
}
|
|
4455
|
+
function It(e, t) {
|
|
4430
4456
|
br(e, t);
|
|
4431
4457
|
}
|
|
4432
|
-
function
|
|
4433
|
-
|
|
4458
|
+
function io(e) {
|
|
4459
|
+
ie.set(e);
|
|
4434
4460
|
}
|
|
4435
|
-
const
|
|
4461
|
+
const Ct = {
|
|
4436
4462
|
en: {
|
|
4437
4463
|
error: "500 Error - Internal Server Error"
|
|
4438
4464
|
},
|
|
@@ -4464,7 +4490,7 @@ if (typeof window != "undefined") {
|
|
|
4464
4490
|
}
|
|
4465
4491
|
};
|
|
4466
4492
|
};
|
|
4467
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-
|
|
4493
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-CehhK4Vt.js").then(({ default: t }) => {
|
|
4468
4494
|
!customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
|
|
4469
4495
|
});
|
|
4470
4496
|
}
|
|
@@ -4480,176 +4506,187 @@ if (typeof window != "undefined") {
|
|
|
4480
4506
|
}
|
|
4481
4507
|
};
|
|
4482
4508
|
};
|
|
4483
|
-
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-
|
|
4509
|
+
customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-Cf-elj80.js").then(({ default: t }) => {
|
|
4484
4510
|
!customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
|
|
4485
4511
|
});
|
|
4486
4512
|
}
|
|
4487
|
-
function
|
|
4488
|
-
Ir(e, "svelte-
|
|
4489
|
-
}.LoadingSpinner.svelte-
|
|
4513
|
+
function oo(e) {
|
|
4514
|
+
Ir(e, "svelte-61avp5", `.svelte-61avp5{font-family:inherit}.CasinoCalendarItem.svelte-61avp5{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-61avp5{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-61avp5{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-61avp5{display:block;width:80px;height:80px;margin:0 auto
|
|
4515
|
+
}.LoadingSpinner.svelte-61avp5: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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:svelte-61avp5-LoadingSpinner 1.2s linear infinite}@keyframes svelte-61avp5-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
|
|
4490
4516
|
}
|
|
4491
|
-
function
|
|
4517
|
+
function Lt(e, t, r) {
|
|
4492
4518
|
const n = e.slice();
|
|
4493
|
-
return n[
|
|
4519
|
+
return n[25] = t[r], n[27] = r, n;
|
|
4494
4520
|
}
|
|
4495
|
-
function
|
|
4496
|
-
let t, r, n, i =
|
|
4521
|
+
function so(e) {
|
|
4522
|
+
let t, r, n, i = ht(
|
|
4497
4523
|
/*calendarCollections*/
|
|
4498
|
-
e[
|
|
4524
|
+
e[6]
|
|
4499
4525
|
), o = [];
|
|
4500
4526
|
for (let a = 0; a < i.length; a += 1)
|
|
4501
|
-
o[a] =
|
|
4527
|
+
o[a] = Nt(Lt(e, i, a));
|
|
4502
4528
|
let s = (
|
|
4503
4529
|
/*calendarModalOpened*/
|
|
4504
|
-
e[
|
|
4530
|
+
e[11] == !0 && Mt(e)
|
|
4505
4531
|
);
|
|
4506
4532
|
return {
|
|
4507
4533
|
c() {
|
|
4508
|
-
t =
|
|
4534
|
+
t = N("div");
|
|
4509
4535
|
for (let a = 0; a < o.length; a += 1)
|
|
4510
4536
|
o[a].c();
|
|
4511
|
-
r = Rr(), s && s.c(),
|
|
4512
|
-
(e[
|
|
4537
|
+
r = Rr(), s && s.c(), k(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
|
|
4538
|
+
(e[10] ? "Mobile" : "") + " svelte-61avp5");
|
|
4513
4539
|
},
|
|
4514
4540
|
m(a, l) {
|
|
4515
|
-
|
|
4541
|
+
V(a, t, l);
|
|
4516
4542
|
for (let u = 0; u < o.length; u += 1)
|
|
4517
4543
|
o[u] && o[u].m(t, null);
|
|
4518
|
-
|
|
4544
|
+
ce(t, r), s && s.m(t, null);
|
|
4519
4545
|
},
|
|
4520
4546
|
p(a, l) {
|
|
4521
|
-
if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, translationurl*/
|
|
4522
|
-
|
|
4523
|
-
i =
|
|
4547
|
+
if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
|
|
4548
|
+
95) {
|
|
4549
|
+
i = ht(
|
|
4524
4550
|
/*calendarCollections*/
|
|
4525
|
-
a[
|
|
4551
|
+
a[6]
|
|
4526
4552
|
);
|
|
4527
4553
|
let u;
|
|
4528
4554
|
for (u = 0; u < i.length; u += 1) {
|
|
4529
|
-
const h =
|
|
4530
|
-
o[u] ? o[u].p(h, l) : (o[u] =
|
|
4555
|
+
const h = Lt(a, i, u);
|
|
4556
|
+
o[u] ? o[u].p(h, l) : (o[u] = Nt(h), o[u].c(), o[u].m(t, r));
|
|
4531
4557
|
}
|
|
4532
4558
|
for (; u < o.length; u += 1)
|
|
4533
4559
|
o[u].d(1);
|
|
4534
4560
|
o.length = i.length;
|
|
4535
4561
|
}
|
|
4536
4562
|
/*calendarModalOpened*/
|
|
4537
|
-
a[
|
|
4538
|
-
|
|
4539
|
-
(a[
|
|
4563
|
+
a[11] == !0 ? s ? s.p(a, l) : (s = Mt(a), s.c(), s.m(t, null)) : s && (s.d(1), s = null), l & /*mobileView*/
|
|
4564
|
+
1024 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
|
|
4565
|
+
(a[10] ? "Mobile" : "") + " svelte-61avp5") && k(t, "class", n);
|
|
4540
4566
|
},
|
|
4541
4567
|
d(a) {
|
|
4542
4568
|
a && D(t), Nr(o, a), s && s.d();
|
|
4543
4569
|
}
|
|
4544
4570
|
};
|
|
4545
4571
|
}
|
|
4546
|
-
function
|
|
4572
|
+
function ao(e) {
|
|
4547
4573
|
let t;
|
|
4548
4574
|
return {
|
|
4549
4575
|
c() {
|
|
4550
|
-
t =
|
|
4576
|
+
t = N("div"), k(t, "class", "LoadingSpinner svelte-61avp5");
|
|
4551
4577
|
},
|
|
4552
4578
|
m(r, n) {
|
|
4553
|
-
|
|
4579
|
+
V(r, t, n);
|
|
4554
4580
|
},
|
|
4555
|
-
p:
|
|
4581
|
+
p: O,
|
|
4556
4582
|
d(r) {
|
|
4557
4583
|
r && D(t);
|
|
4558
4584
|
}
|
|
4559
4585
|
};
|
|
4560
4586
|
}
|
|
4561
|
-
function
|
|
4587
|
+
function uo(e) {
|
|
4562
4588
|
let t, r = (
|
|
4563
4589
|
/*$_*/
|
|
4564
|
-
e[
|
|
4590
|
+
e[12]("error") + ""
|
|
4565
4591
|
), n;
|
|
4566
4592
|
return {
|
|
4567
4593
|
c() {
|
|
4568
|
-
t =
|
|
4594
|
+
t = N("p"), n = et(r), k(t, "class", "SearchLoading svelte-61avp5");
|
|
4569
4595
|
},
|
|
4570
4596
|
m(i, o) {
|
|
4571
|
-
|
|
4597
|
+
V(i, t, o), ce(t, n);
|
|
4572
4598
|
},
|
|
4573
4599
|
p(i, o) {
|
|
4574
4600
|
o & /*$_*/
|
|
4575
|
-
|
|
4576
|
-
i[
|
|
4601
|
+
4096 && r !== (r = /*$_*/
|
|
4602
|
+
i[12]("error") + "") && Dr(n, r);
|
|
4577
4603
|
},
|
|
4578
4604
|
d(i) {
|
|
4579
4605
|
i && D(t);
|
|
4580
4606
|
}
|
|
4581
4607
|
};
|
|
4582
4608
|
}
|
|
4583
|
-
function
|
|
4609
|
+
function Nt(e) {
|
|
4584
4610
|
let t, r, n, i, o, s;
|
|
4585
4611
|
return {
|
|
4586
4612
|
c() {
|
|
4587
|
-
t =
|
|
4588
|
-
e[
|
|
4589
|
-
e[
|
|
4590
|
-
e[
|
|
4591
|
-
e[
|
|
4592
|
-
e[
|
|
4613
|
+
t = N("casino-calendar-daily-item"), p(t, "dailybackground", r = /*dailyCalendarData*/
|
|
4614
|
+
e[25].dailyBackground), p(t, "dailyicon", n = /*dailyCalendarData*/
|
|
4615
|
+
e[25].dailyIcon), p(t, "dailyday", i = /*dailyCalendarData*/
|
|
4616
|
+
e[25].dailyDay), p(t, "dailydescription", o = /*dailyCalendarData*/
|
|
4617
|
+
e[25].dailyDescription), p(t, "dailybuttontitle", s = /*dailyCalendarData*/
|
|
4618
|
+
e[25].dailyButtonTitle), p(
|
|
4593
4619
|
t,
|
|
4594
4620
|
"index",
|
|
4595
4621
|
/*index*/
|
|
4596
|
-
e[
|
|
4597
|
-
),
|
|
4622
|
+
e[27]
|
|
4623
|
+
), p(
|
|
4598
4624
|
t,
|
|
4599
4625
|
"lang",
|
|
4600
4626
|
/*lang*/
|
|
4601
4627
|
e[0]
|
|
4602
|
-
),
|
|
4628
|
+
), p(
|
|
4603
4629
|
t,
|
|
4604
4630
|
"clientstyling",
|
|
4605
4631
|
/*clientstyling*/
|
|
4606
4632
|
e[1]
|
|
4607
|
-
),
|
|
4633
|
+
), p(
|
|
4608
4634
|
t,
|
|
4609
4635
|
"clientstylingurl",
|
|
4610
4636
|
/*clientstylingurl*/
|
|
4611
4637
|
e[2]
|
|
4612
|
-
),
|
|
4638
|
+
), p(
|
|
4639
|
+
t,
|
|
4640
|
+
"mbsource",
|
|
4641
|
+
/*mbsource*/
|
|
4642
|
+
e[4]
|
|
4643
|
+
), p(
|
|
4613
4644
|
t,
|
|
4614
4645
|
"translationurl",
|
|
4615
4646
|
/*translationurl*/
|
|
4616
4647
|
e[3]
|
|
4617
|
-
);
|
|
4648
|
+
), p(t, "class", "svelte-61avp5");
|
|
4618
4649
|
},
|
|
4619
4650
|
m(a, l) {
|
|
4620
|
-
|
|
4651
|
+
V(a, t, l);
|
|
4621
4652
|
},
|
|
4622
4653
|
p(a, l) {
|
|
4623
4654
|
l & /*calendarCollections*/
|
|
4624
|
-
|
|
4625
|
-
a[
|
|
4626
|
-
|
|
4627
|
-
a[
|
|
4628
|
-
|
|
4629
|
-
a[
|
|
4630
|
-
|
|
4631
|
-
a[
|
|
4632
|
-
|
|
4633
|
-
a[
|
|
4634
|
-
1 &&
|
|
4655
|
+
64 && r !== (r = /*dailyCalendarData*/
|
|
4656
|
+
a[25].dailyBackground) && p(t, "dailybackground", r), l & /*calendarCollections*/
|
|
4657
|
+
64 && n !== (n = /*dailyCalendarData*/
|
|
4658
|
+
a[25].dailyIcon) && p(t, "dailyicon", n), l & /*calendarCollections*/
|
|
4659
|
+
64 && i !== (i = /*dailyCalendarData*/
|
|
4660
|
+
a[25].dailyDay) && p(t, "dailyday", i), l & /*calendarCollections*/
|
|
4661
|
+
64 && o !== (o = /*dailyCalendarData*/
|
|
4662
|
+
a[25].dailyDescription) && p(t, "dailydescription", o), l & /*calendarCollections*/
|
|
4663
|
+
64 && s !== (s = /*dailyCalendarData*/
|
|
4664
|
+
a[25].dailyButtonTitle) && p(t, "dailybuttontitle", s), l & /*lang*/
|
|
4665
|
+
1 && p(
|
|
4635
4666
|
t,
|
|
4636
4667
|
"lang",
|
|
4637
4668
|
/*lang*/
|
|
4638
4669
|
a[0]
|
|
4639
4670
|
), l & /*clientstyling*/
|
|
4640
|
-
2 &&
|
|
4671
|
+
2 && p(
|
|
4641
4672
|
t,
|
|
4642
4673
|
"clientstyling",
|
|
4643
4674
|
/*clientstyling*/
|
|
4644
4675
|
a[1]
|
|
4645
4676
|
), l & /*clientstylingurl*/
|
|
4646
|
-
4 &&
|
|
4677
|
+
4 && p(
|
|
4647
4678
|
t,
|
|
4648
4679
|
"clientstylingurl",
|
|
4649
4680
|
/*clientstylingurl*/
|
|
4650
4681
|
a[2]
|
|
4682
|
+
), l & /*mbsource*/
|
|
4683
|
+
16 && p(
|
|
4684
|
+
t,
|
|
4685
|
+
"mbsource",
|
|
4686
|
+
/*mbsource*/
|
|
4687
|
+
a[4]
|
|
4651
4688
|
), l & /*translationurl*/
|
|
4652
|
-
8 &&
|
|
4689
|
+
8 && p(
|
|
4653
4690
|
t,
|
|
4654
4691
|
"translationurl",
|
|
4655
4692
|
/*translationurl*/
|
|
@@ -4661,110 +4698,121 @@ function Mt(e) {
|
|
|
4661
4698
|
}
|
|
4662
4699
|
};
|
|
4663
4700
|
}
|
|
4664
|
-
function
|
|
4701
|
+
function Mt(e) {
|
|
4665
4702
|
let t, r, n, i, o, s, a, l;
|
|
4666
4703
|
return {
|
|
4667
4704
|
c() {
|
|
4668
|
-
t =
|
|
4669
|
-
e[
|
|
4705
|
+
t = N("div"), r = N("casino-calendar-daily-details"), p(r, "dailybackground", n = /*calendarCollections*/
|
|
4706
|
+
e[6][
|
|
4670
4707
|
/*selectedIndex*/
|
|
4671
|
-
e[
|
|
4672
|
-
].dailyBackground),
|
|
4673
|
-
e[
|
|
4708
|
+
e[7]
|
|
4709
|
+
].dailyBackground), p(r, "dailybuttontitle", i = /*calendarCollections*/
|
|
4710
|
+
e[6][
|
|
4674
4711
|
/*selectedIndex*/
|
|
4675
|
-
e[
|
|
4676
|
-
].dailyButtonTitle),
|
|
4677
|
-
e[
|
|
4712
|
+
e[7]
|
|
4713
|
+
].dailyButtonTitle), p(r, "dailyday", o = /*calendarCollections*/
|
|
4714
|
+
e[6][
|
|
4678
4715
|
/*selectedIndex*/
|
|
4679
|
-
e[
|
|
4680
|
-
].dailyDay),
|
|
4681
|
-
e[
|
|
4716
|
+
e[7]
|
|
4717
|
+
].dailyDay), p(r, "dailydescription", s = /*calendarCollections*/
|
|
4718
|
+
e[6][
|
|
4682
4719
|
/*selectedIndex*/
|
|
4683
|
-
e[
|
|
4684
|
-
].dailyDescription),
|
|
4685
|
-
e[
|
|
4720
|
+
e[7]
|
|
4721
|
+
].dailyDescription), p(r, "dailyicon", a = /*calendarCollections*/
|
|
4722
|
+
e[6][
|
|
4686
4723
|
/*selectedIndex*/
|
|
4687
|
-
e[
|
|
4688
|
-
].dailyIcon),
|
|
4689
|
-
e[
|
|
4724
|
+
e[7]
|
|
4725
|
+
].dailyIcon), p(r, "dailytitle", l = /*calendarCollections*/
|
|
4726
|
+
e[6][
|
|
4690
4727
|
/*selectedIndex*/
|
|
4691
|
-
e[
|
|
4692
|
-
].dailyTitle),
|
|
4728
|
+
e[7]
|
|
4729
|
+
].dailyTitle), p(
|
|
4693
4730
|
r,
|
|
4694
4731
|
"lang",
|
|
4695
4732
|
/*lang*/
|
|
4696
4733
|
e[0]
|
|
4697
|
-
),
|
|
4734
|
+
), p(
|
|
4698
4735
|
r,
|
|
4699
4736
|
"clientstyling",
|
|
4700
4737
|
/*clientstyling*/
|
|
4701
4738
|
e[1]
|
|
4702
|
-
),
|
|
4739
|
+
), p(
|
|
4703
4740
|
r,
|
|
4704
4741
|
"clientstylingurl",
|
|
4705
4742
|
/*clientstylingurl*/
|
|
4706
4743
|
e[2]
|
|
4707
|
-
),
|
|
4744
|
+
), p(
|
|
4745
|
+
r,
|
|
4746
|
+
"mbsource",
|
|
4747
|
+
/*mbsource*/
|
|
4748
|
+
e[4]
|
|
4749
|
+
), p(
|
|
4708
4750
|
r,
|
|
4709
4751
|
"translationurl",
|
|
4710
4752
|
/*translationurl*/
|
|
4711
4753
|
e[3]
|
|
4712
|
-
),
|
|
4754
|
+
), p(r, "class", "svelte-61avp5"), k(t, "class", "CalendarDetailsWrapper svelte-61avp5");
|
|
4713
4755
|
},
|
|
4714
4756
|
m(u, h) {
|
|
4715
|
-
|
|
4757
|
+
V(u, t, h), ce(t, r);
|
|
4716
4758
|
},
|
|
4717
4759
|
p(u, h) {
|
|
4718
4760
|
h & /*calendarCollections, selectedIndex*/
|
|
4719
|
-
|
|
4720
|
-
u[
|
|
4761
|
+
192 && n !== (n = /*calendarCollections*/
|
|
4762
|
+
u[6][
|
|
4721
4763
|
/*selectedIndex*/
|
|
4722
|
-
u[
|
|
4723
|
-
].dailyBackground) &&
|
|
4724
|
-
|
|
4725
|
-
u[
|
|
4764
|
+
u[7]
|
|
4765
|
+
].dailyBackground) && p(r, "dailybackground", n), h & /*calendarCollections, selectedIndex*/
|
|
4766
|
+
192 && i !== (i = /*calendarCollections*/
|
|
4767
|
+
u[6][
|
|
4726
4768
|
/*selectedIndex*/
|
|
4727
|
-
u[
|
|
4728
|
-
].dailyButtonTitle) &&
|
|
4729
|
-
|
|
4730
|
-
u[
|
|
4769
|
+
u[7]
|
|
4770
|
+
].dailyButtonTitle) && p(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
|
|
4771
|
+
192 && o !== (o = /*calendarCollections*/
|
|
4772
|
+
u[6][
|
|
4731
4773
|
/*selectedIndex*/
|
|
4732
|
-
u[
|
|
4733
|
-
].dailyDay) &&
|
|
4734
|
-
|
|
4735
|
-
u[
|
|
4774
|
+
u[7]
|
|
4775
|
+
].dailyDay) && p(r, "dailyday", o), h & /*calendarCollections, selectedIndex*/
|
|
4776
|
+
192 && s !== (s = /*calendarCollections*/
|
|
4777
|
+
u[6][
|
|
4736
4778
|
/*selectedIndex*/
|
|
4737
|
-
u[
|
|
4738
|
-
].dailyDescription) &&
|
|
4739
|
-
|
|
4740
|
-
u[
|
|
4779
|
+
u[7]
|
|
4780
|
+
].dailyDescription) && p(r, "dailydescription", s), h & /*calendarCollections, selectedIndex*/
|
|
4781
|
+
192 && a !== (a = /*calendarCollections*/
|
|
4782
|
+
u[6][
|
|
4741
4783
|
/*selectedIndex*/
|
|
4742
|
-
u[
|
|
4743
|
-
].dailyIcon) &&
|
|
4744
|
-
|
|
4745
|
-
u[
|
|
4784
|
+
u[7]
|
|
4785
|
+
].dailyIcon) && p(r, "dailyicon", a), h & /*calendarCollections, selectedIndex*/
|
|
4786
|
+
192 && l !== (l = /*calendarCollections*/
|
|
4787
|
+
u[6][
|
|
4746
4788
|
/*selectedIndex*/
|
|
4747
|
-
u[
|
|
4748
|
-
].dailyTitle) &&
|
|
4749
|
-
1 &&
|
|
4789
|
+
u[7]
|
|
4790
|
+
].dailyTitle) && p(r, "dailytitle", l), h & /*lang*/
|
|
4791
|
+
1 && p(
|
|
4750
4792
|
r,
|
|
4751
4793
|
"lang",
|
|
4752
4794
|
/*lang*/
|
|
4753
4795
|
u[0]
|
|
4754
4796
|
), h & /*clientstyling*/
|
|
4755
|
-
2 &&
|
|
4797
|
+
2 && p(
|
|
4756
4798
|
r,
|
|
4757
4799
|
"clientstyling",
|
|
4758
4800
|
/*clientstyling*/
|
|
4759
4801
|
u[1]
|
|
4760
4802
|
), h & /*clientstylingurl*/
|
|
4761
|
-
4 &&
|
|
4803
|
+
4 && p(
|
|
4762
4804
|
r,
|
|
4763
4805
|
"clientstylingurl",
|
|
4764
4806
|
/*clientstylingurl*/
|
|
4765
4807
|
u[2]
|
|
4808
|
+
), h & /*mbsource*/
|
|
4809
|
+
16 && p(
|
|
4810
|
+
r,
|
|
4811
|
+
"mbsource",
|
|
4812
|
+
/*mbsource*/
|
|
4813
|
+
u[4]
|
|
4766
4814
|
), h & /*translationurl*/
|
|
4767
|
-
8 &&
|
|
4815
|
+
8 && p(
|
|
4768
4816
|
r,
|
|
4769
4817
|
"translationurl",
|
|
4770
4818
|
/*translationurl*/
|
|
@@ -4776,123 +4824,107 @@ function Rt(e) {
|
|
|
4776
4824
|
}
|
|
4777
4825
|
};
|
|
4778
4826
|
}
|
|
4779
|
-
function
|
|
4827
|
+
function lo(e) {
|
|
4780
4828
|
let t;
|
|
4781
4829
|
function r(o, s) {
|
|
4782
4830
|
var a;
|
|
4783
4831
|
if (
|
|
4784
4832
|
/*hasErrors*/
|
|
4785
|
-
o[
|
|
4786
|
-
) return
|
|
4833
|
+
o[9]
|
|
4834
|
+
) return uo;
|
|
4787
4835
|
if (
|
|
4788
4836
|
/*isLoading*/
|
|
4789
|
-
o[
|
|
4790
|
-
) return
|
|
4837
|
+
o[8]
|
|
4838
|
+
) return ao;
|
|
4791
4839
|
if (
|
|
4792
4840
|
/*calendarCollections*/
|
|
4793
|
-
(a = o[
|
|
4794
|
-
) return
|
|
4841
|
+
(a = o[6]) != null && a.length
|
|
4842
|
+
) return so;
|
|
4795
4843
|
}
|
|
4796
4844
|
let n = r(e), i = n && n(e);
|
|
4797
4845
|
return {
|
|
4798
4846
|
c() {
|
|
4799
|
-
t =
|
|
4847
|
+
t = N("div"), i && i.c(), k(t, "class", "svelte-61avp5");
|
|
4800
4848
|
},
|
|
4801
4849
|
m(o, s) {
|
|
4802
|
-
|
|
4850
|
+
V(o, t, s), i && i.m(t, null), e[16](t);
|
|
4803
4851
|
},
|
|
4804
4852
|
p(o, [s]) {
|
|
4805
4853
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
|
4806
4854
|
},
|
|
4807
|
-
i:
|
|
4808
|
-
o:
|
|
4855
|
+
i: O,
|
|
4856
|
+
o: O,
|
|
4809
4857
|
d(o) {
|
|
4810
|
-
o && D(t), i && i.d(), e[
|
|
4858
|
+
o && D(t), i && i.d(), e[16](null);
|
|
4811
4859
|
}
|
|
4812
4860
|
};
|
|
4813
4861
|
}
|
|
4814
|
-
function
|
|
4862
|
+
function ho(e, t, r) {
|
|
4815
4863
|
let n;
|
|
4816
|
-
Or(e,
|
|
4817
|
-
let { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, f, c,
|
|
4818
|
-
const
|
|
4819
|
-
|
|
4864
|
+
Or(e, Ki, (d) => r(12, n = d));
|
|
4865
|
+
let { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, { mbsource: f } = t, c, m, b = 0, g = !0, w = !1, I = !1, P = window.navigator.userAgent, S = !1;
|
|
4866
|
+
const M = () => {
|
|
4867
|
+
io(a);
|
|
4820
4868
|
};
|
|
4821
|
-
Object.keys(
|
|
4822
|
-
|
|
4869
|
+
Object.keys(Ct).forEach((d) => {
|
|
4870
|
+
It(d, Ct[d]);
|
|
4823
4871
|
});
|
|
4824
|
-
const
|
|
4872
|
+
const C = () => {
|
|
4825
4873
|
let d = h;
|
|
4826
4874
|
if (d)
|
|
4827
|
-
return fetch(d).then((
|
|
4828
|
-
Object.keys(
|
|
4829
|
-
|
|
4875
|
+
return fetch(d).then((B) => B.json()).then((B) => {
|
|
4876
|
+
Object.keys(B).forEach((F) => {
|
|
4877
|
+
It(F, B[F]);
|
|
4830
4878
|
});
|
|
4831
|
-
}).catch((
|
|
4832
|
-
console.log(
|
|
4879
|
+
}).catch((B) => {
|
|
4880
|
+
console.log(B);
|
|
4833
4881
|
});
|
|
4834
|
-
},
|
|
4835
|
-
r(
|
|
4882
|
+
}, R = () => {
|
|
4883
|
+
r(8, g = !0);
|
|
4836
4884
|
let d = new URL(`${i}/${a}/daily-calendar`);
|
|
4837
4885
|
d.searchParams.append("userRoles", s), d.searchParams.append("env", o);
|
|
4838
|
-
let
|
|
4839
|
-
|
|
4840
|
-
r(
|
|
4841
|
-
}).catch((
|
|
4842
|
-
console.log(
|
|
4886
|
+
let B = eo(P);
|
|
4887
|
+
B && (B === "PC" ? d.searchParams.append("device", "dk") : B === "iPad" || B === "iPhone" ? d.searchParams.append("device", "ios") : d.searchParams.append("device", "mtWeb")), fetch(d.href).then((F) => F.json()).then((F) => {
|
|
4888
|
+
r(6, m = F);
|
|
4889
|
+
}).catch((F) => {
|
|
4890
|
+
console.log(F), r(9, w = !0);
|
|
4843
4891
|
}).finally(() => {
|
|
4844
|
-
r(
|
|
4892
|
+
r(8, g = !1);
|
|
4845
4893
|
});
|
|
4846
|
-
},
|
|
4847
|
-
|
|
4848
|
-
},
|
|
4849
|
-
var
|
|
4850
|
-
d.data && d.data.type == "OpenCalendar" && (r(
|
|
4894
|
+
}, x = () => {
|
|
4895
|
+
R();
|
|
4896
|
+
}, A = (d) => {
|
|
4897
|
+
var B;
|
|
4898
|
+
d.data && d.data.type == "OpenCalendar" && (r(7, b = d.data.index), r(11, S = !0), window.postMessage(
|
|
4851
4899
|
{
|
|
4852
4900
|
type: "ShowModal",
|
|
4853
|
-
selectedIndex:
|
|
4901
|
+
selectedIndex: b,
|
|
4854
4902
|
identifier: "Calendar"
|
|
4855
4903
|
},
|
|
4856
4904
|
window.location.href
|
|
4857
4905
|
), window.postMessage({
|
|
4858
4906
|
type: "DailyEventsData",
|
|
4859
|
-
data: (
|
|
4860
|
-
})), d.data && d.data.type == "ModalClosed" && r(
|
|
4861
|
-
}, C = () => {
|
|
4862
|
-
let d = document.createElement("style");
|
|
4863
|
-
d.innerHTML = l, f.appendChild(d);
|
|
4864
|
-
}, L = () => {
|
|
4865
|
-
let d = new URL(u), w = document.createElement("style");
|
|
4866
|
-
fetch(d.href).then((N) => N.text()).then((N) => {
|
|
4867
|
-
w.innerHTML = N, setTimeout(
|
|
4868
|
-
() => {
|
|
4869
|
-
f.appendChild(w);
|
|
4870
|
-
},
|
|
4871
|
-
1
|
|
4872
|
-
), setTimeout(
|
|
4873
|
-
() => {
|
|
4874
|
-
},
|
|
4875
|
-
500
|
|
4876
|
-
);
|
|
4877
|
-
});
|
|
4907
|
+
data: (B = m[b]) == null ? void 0 : B.dailyEvents
|
|
4908
|
+
})), d.data && d.data.type == "ModalClosed" && r(11, S = !1);
|
|
4878
4909
|
};
|
|
4879
|
-
|
|
4880
|
-
window.removeEventListener("message",
|
|
4910
|
+
Fr(() => (window.addEventListener("message", A, !1), Er(P) && r(10, I = !0), () => {
|
|
4911
|
+
window.removeEventListener("message", A);
|
|
4881
4912
|
}));
|
|
4882
|
-
function
|
|
4883
|
-
|
|
4884
|
-
|
|
4913
|
+
function L(d) {
|
|
4914
|
+
De[d ? "unshift" : "push"](() => {
|
|
4915
|
+
c = d, r(5, c);
|
|
4885
4916
|
});
|
|
4886
4917
|
}
|
|
4887
4918
|
return e.$$set = (d) => {
|
|
4888
|
-
"cmsendpoint" in d && r(
|
|
4919
|
+
"cmsendpoint" in d && r(13, i = d.cmsendpoint), "env" in d && r(14, o = d.env), "userroles" in d && r(15, s = d.userroles), "lang" in d && r(0, a = d.lang), "clientstyling" in d && r(1, l = d.clientstyling), "clientstylingurl" in d && r(2, u = d.clientstylingurl), "translationurl" in d && r(3, h = d.translationurl), "mbsource" in d && r(4, f = d.mbsource);
|
|
4889
4920
|
}, e.$$.update = () => {
|
|
4890
4921
|
e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4922
|
+
57345 && i && a && o && s && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4923
|
+
34 && l && c && to(c, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4924
|
+
36 && u && c && ro(c, u), e.$$.dirty & /*customStylingContainer, mbsource*/
|
|
4925
|
+
48 && c && no(c, `${f}.Style`), e.$$.dirty & /*lang*/
|
|
4926
|
+
1 && a && M(), e.$$.dirty & /*lang, translationurl*/
|
|
4927
|
+
9 && a && h && C();
|
|
4896
4928
|
}, [
|
|
4897
4929
|
a,
|
|
4898
4930
|
l,
|
|
@@ -4900,139 +4932,151 @@ function uo(e, t, r) {
|
|
|
4900
4932
|
h,
|
|
4901
4933
|
f,
|
|
4902
4934
|
c,
|
|
4903
|
-
|
|
4935
|
+
m,
|
|
4904
4936
|
b,
|
|
4905
|
-
|
|
4937
|
+
g,
|
|
4938
|
+
w,
|
|
4939
|
+
I,
|
|
4906
4940
|
S,
|
|
4907
|
-
P,
|
|
4908
4941
|
n,
|
|
4909
4942
|
i,
|
|
4910
4943
|
o,
|
|
4911
4944
|
s,
|
|
4912
|
-
|
|
4945
|
+
L
|
|
4913
4946
|
];
|
|
4914
4947
|
}
|
|
4915
4948
|
class xr extends Qr {
|
|
4916
4949
|
constructor(t) {
|
|
4917
|
-
super(),
|
|
4950
|
+
super(), zr(
|
|
4918
4951
|
this,
|
|
4919
4952
|
t,
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4953
|
+
ho,
|
|
4954
|
+
lo,
|
|
4955
|
+
$t,
|
|
4923
4956
|
{
|
|
4924
|
-
cmsendpoint:
|
|
4925
|
-
env:
|
|
4926
|
-
userroles:
|
|
4957
|
+
cmsendpoint: 13,
|
|
4958
|
+
env: 14,
|
|
4959
|
+
userroles: 15,
|
|
4927
4960
|
lang: 0,
|
|
4928
4961
|
clientstyling: 1,
|
|
4929
4962
|
clientstylingurl: 2,
|
|
4930
|
-
translationurl: 3
|
|
4963
|
+
translationurl: 3,
|
|
4964
|
+
mbsource: 4
|
|
4931
4965
|
},
|
|
4932
|
-
|
|
4966
|
+
oo
|
|
4933
4967
|
);
|
|
4934
4968
|
}
|
|
4935
4969
|
get cmsendpoint() {
|
|
4936
|
-
return this.$$.ctx[
|
|
4970
|
+
return this.$$.ctx[13];
|
|
4937
4971
|
}
|
|
4938
4972
|
set cmsendpoint(t) {
|
|
4939
|
-
this.$$set({ cmsendpoint: t }),
|
|
4973
|
+
this.$$set({ cmsendpoint: t }), $();
|
|
4940
4974
|
}
|
|
4941
4975
|
get env() {
|
|
4942
|
-
return this.$$.ctx[
|
|
4976
|
+
return this.$$.ctx[14];
|
|
4943
4977
|
}
|
|
4944
4978
|
set env(t) {
|
|
4945
|
-
this.$$set({ env: t }),
|
|
4979
|
+
this.$$set({ env: t }), $();
|
|
4946
4980
|
}
|
|
4947
4981
|
get userroles() {
|
|
4948
|
-
return this.$$.ctx[
|
|
4982
|
+
return this.$$.ctx[15];
|
|
4949
4983
|
}
|
|
4950
4984
|
set userroles(t) {
|
|
4951
|
-
this.$$set({ userroles: t }),
|
|
4985
|
+
this.$$set({ userroles: t }), $();
|
|
4952
4986
|
}
|
|
4953
4987
|
get lang() {
|
|
4954
4988
|
return this.$$.ctx[0];
|
|
4955
4989
|
}
|
|
4956
4990
|
set lang(t) {
|
|
4957
|
-
this.$$set({ lang: t }),
|
|
4991
|
+
this.$$set({ lang: t }), $();
|
|
4958
4992
|
}
|
|
4959
4993
|
get clientstyling() {
|
|
4960
4994
|
return this.$$.ctx[1];
|
|
4961
4995
|
}
|
|
4962
4996
|
set clientstyling(t) {
|
|
4963
|
-
this.$$set({ clientstyling: t }),
|
|
4997
|
+
this.$$set({ clientstyling: t }), $();
|
|
4964
4998
|
}
|
|
4965
4999
|
get clientstylingurl() {
|
|
4966
5000
|
return this.$$.ctx[2];
|
|
4967
5001
|
}
|
|
4968
5002
|
set clientstylingurl(t) {
|
|
4969
|
-
this.$$set({ clientstylingurl: t }),
|
|
5003
|
+
this.$$set({ clientstylingurl: t }), $();
|
|
4970
5004
|
}
|
|
4971
5005
|
get translationurl() {
|
|
4972
5006
|
return this.$$.ctx[3];
|
|
4973
5007
|
}
|
|
4974
5008
|
set translationurl(t) {
|
|
4975
|
-
this.$$set({ translationurl: t }),
|
|
5009
|
+
this.$$set({ translationurl: t }), $();
|
|
5010
|
+
}
|
|
5011
|
+
get mbsource() {
|
|
5012
|
+
return this.$$.ctx[4];
|
|
5013
|
+
}
|
|
5014
|
+
set mbsource(t) {
|
|
5015
|
+
this.$$set({ mbsource: t }), $();
|
|
4976
5016
|
}
|
|
4977
5017
|
}
|
|
4978
|
-
Zr(xr, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4979
|
-
const
|
|
5018
|
+
Zr(xr, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
5019
|
+
const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4980
5020
|
__proto__: null,
|
|
4981
5021
|
default: xr
|
|
4982
5022
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4983
5023
|
export {
|
|
4984
|
-
|
|
4985
|
-
|
|
5024
|
+
ie as $,
|
|
5025
|
+
ut as A,
|
|
4986
5026
|
Rr as B,
|
|
4987
|
-
|
|
4988
|
-
|
|
5027
|
+
De as C,
|
|
5028
|
+
fo as D,
|
|
4989
5029
|
Mr as E,
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5030
|
+
vo as F,
|
|
5031
|
+
xo as G,
|
|
5032
|
+
To as H,
|
|
5033
|
+
to as I,
|
|
5034
|
+
ro as J,
|
|
5035
|
+
no as K,
|
|
5036
|
+
Zr as L,
|
|
5037
|
+
Ki as M,
|
|
5038
|
+
wo as N,
|
|
5039
|
+
Ge as O,
|
|
5040
|
+
W as P,
|
|
5041
|
+
_o as Q,
|
|
5042
|
+
fe as R,
|
|
5003
5043
|
Qr as S,
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5044
|
+
p as T,
|
|
5045
|
+
eo as U,
|
|
5046
|
+
Eo as V,
|
|
5047
|
+
So as W,
|
|
5048
|
+
Bo as X,
|
|
5049
|
+
Lo as Y,
|
|
5050
|
+
Co as Z,
|
|
5011
5051
|
Io as _,
|
|
5012
5052
|
br as a,
|
|
5053
|
+
Ho as a0,
|
|
5054
|
+
go as a1,
|
|
5055
|
+
Se as a2,
|
|
5056
|
+
No as a3,
|
|
5013
5057
|
Ir as b,
|
|
5014
5058
|
kt as c,
|
|
5015
5059
|
D as d,
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5060
|
+
Ao as e,
|
|
5061
|
+
$ as f,
|
|
5062
|
+
Po as g,
|
|
5063
|
+
V as h,
|
|
5064
|
+
zr as i,
|
|
5065
|
+
N as j,
|
|
5022
5066
|
Or as k,
|
|
5023
5067
|
Er as l,
|
|
5024
5068
|
Dr as m,
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5069
|
+
O as n,
|
|
5070
|
+
Fr as o,
|
|
5071
|
+
ce as p,
|
|
5072
|
+
et as q,
|
|
5073
|
+
k as r,
|
|
5074
|
+
$t as s,
|
|
5075
|
+
Oo as t,
|
|
5076
|
+
po as u,
|
|
5077
|
+
ht as v,
|
|
5034
5078
|
Nr as w,
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5079
|
+
bo as x,
|
|
5080
|
+
yo as y,
|
|
5081
|
+
mo as z
|
|
5038
5082
|
};
|