@everymatrix/casino-header-controller-nd 1.54.6 → 1.54.9
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/{CasinoHamburgerMenuNd-CkPg6ouB.js → CasinoHamburgerMenuNd-ByOv9WYg.js} +1652 -1660
- package/components/CasinoHamburgerMenuNd-C0vs2463.js +5463 -0
- package/components/CasinoHamburgerMenuNd-C_mDzbID.cjs +5 -0
- package/components/{CasinoHeaderControllerNd-BX0AvD48.js → CasinoHeaderControllerNd-3Q94rK_H.js} +85 -85
- package/components/CasinoHeaderControllerNd-CmBOctnz.cjs +1 -0
- package/components/CasinoHeaderControllerNd-hT8qHvSB.js +2168 -0
- package/components/{PlayerAccountBalanceModalNd-K5u0ko-m.js → PlayerAccountBalanceModalNd-B4Yp_9Au.js} +93 -93
- package/components/PlayerAccountBalanceModalNd-CjlZ6-7s.cjs +13 -0
- package/components/PlayerAccountBalanceModalNd-bDU8dGTK.js +1586 -0
- package/components/{PlayerDeposit-DsOspOgB.js → PlayerDeposit-C__xk64-.js} +46 -46
- package/components/PlayerDeposit-CmyD00QS.js +395 -0
- package/components/PlayerDeposit-DGMSukDR.cjs +1 -0
- package/es2015/casino-header-controller-nd.cjs +1 -0
- package/es2015/casino-header-controller-nd.js +16 -0
- package/esnext/casino-header-controller-nd.js +1 -1
- package/package.json +4 -1
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/gamification-dropdown-BYoQE2eM.js +25 -0
- package/stencil/{gamification-dropdown-Rl66gqyp.js → gamification-dropdown-BsDum8HU.js} +1 -1
- package/stencil/gamification-dropdown-DBvEliZb.cjs +1 -0
- package/stencil/gamification-dropdown-dc081799-COWgoauo.js +121 -0
- package/stencil/{gamification-dropdown-ae7b7c69-C61VnAKy.js → gamification-dropdown-dc081799-D_3lOXxi.js} +10 -10
- package/stencil/gamification-dropdown-dc081799-qkGbJFv-.cjs +1 -0
- package/stencil/gamification-dropdown_4-CD0pDli_.cjs +192 -0
- package/stencil/gamification-dropdown_4-CGfeeef4.js +468 -0
- package/stencil/{gamification-dropdown_4-AbKMnPZ5.js → gamification-dropdown_4-DGgVhZVT.js} +16 -16
- package/stencil/index-5e36ea65-8utgvA4y.cjs +1 -0
- package/stencil/index-5e36ea65-BQOFxtoF.js +859 -0
- package/stencil/index-5e36ea65-BkSKs2J0.js +832 -0
- package/stencil/{player-elevate-card-B4AMnqub.js → player-elevate-card-9f41yx5g.js} +2 -2
- package/stencil/player-elevate-card-DQE8G7ox.js +105 -0
- package/stencil/player-elevate-card-items-2a1dc5b5-BGYI6LDp.js +1439 -0
- package/stencil/player-elevate-card-items-2a1dc5b5-Bbza8SeJ.cjs +1 -0
- package/stencil/{player-elevate-card-items-9d490a3b-BxciIvXh.js → player-elevate-card-items-2a1dc5b5-C0Ul-nhu.js} +298 -300
- package/stencil/player-elevate-card-jcWIm8Vs.cjs +64 -0
- package/stencil/player-elevate-pointcard-Bx5fP0DY.cjs +1 -0
- package/stencil/{player-elevate-pointcard-BeXukLE-.js → player-elevate-pointcard-G_yPTu4J.js} +2 -2
- package/stencil/player-elevate-pointcard-MyvSBf45.js +43 -0
- package/stencil/index-ea7720e4-FqoOOnHW.js +0 -826
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
var b = (e, t, a) => new Promise((n, r) => {
|
|
2
|
+
var l = (s) => {
|
|
3
|
+
try {
|
|
4
|
+
o(a.next(s));
|
|
5
|
+
} catch (c) {
|
|
6
|
+
r(c);
|
|
7
|
+
}
|
|
8
|
+
}, d = (s) => {
|
|
9
|
+
try {
|
|
10
|
+
o(a.throw(s));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
r(c);
|
|
13
|
+
}
|
|
14
|
+
}, o = (s) => s.done ? n(s.value) : Promise.resolve(s.value).then(l, d);
|
|
15
|
+
o((a = a.apply(e, t)).next());
|
|
16
|
+
});
|
|
17
|
+
import { G as pe } from "./gamification-dropdown-dc081799-COWgoauo.js";
|
|
18
|
+
import { r as u, h as i, g as P, c as O, a as m, F as N } from "./index-5e36ea65-BQOFxtoF.js";
|
|
19
|
+
import { t as k, T as $, P as W, a as z, b as L, c as U, r as p, d as h, g as E } from "./player-elevate-card-items-2a1dc5b5-BGYI6LDp.js";
|
|
20
|
+
const q = (e, t) => new Promise((a) => {
|
|
21
|
+
fetch(e).then((n) => n.json()).then((n) => {
|
|
22
|
+
Object.keys(n).forEach((r) => {
|
|
23
|
+
t[r] = t[r] ? t[r] : {};
|
|
24
|
+
for (let l in n[r])
|
|
25
|
+
t[r][l] = n[r][l];
|
|
26
|
+
}), a(!0);
|
|
27
|
+
});
|
|
28
|
+
}), F = ":host{display:block}", H = F, j = class {
|
|
29
|
+
constructor(e) {
|
|
30
|
+
u(this, e), this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.stylingAppends = !1, this.setClientStyling = () => {
|
|
31
|
+
let t = document.createElement("style");
|
|
32
|
+
t.innerHTML = this.clientStyling, this.el.prepend(t);
|
|
33
|
+
}, this.setClientStylingURL = () => {
|
|
34
|
+
let t = new URL(this.clientStylingUrl), a = document.createElement("style");
|
|
35
|
+
fetch(t.href).then((n) => n.text()).then((n) => {
|
|
36
|
+
a.innerHTML = n, setTimeout(() => {
|
|
37
|
+
this.el.prepend(a);
|
|
38
|
+
}, 1);
|
|
39
|
+
}).catch((n) => {
|
|
40
|
+
console.log("error ", n);
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
componentDidRender() {
|
|
45
|
+
this.stylingAppends || (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.stylingAppends = !0);
|
|
46
|
+
}
|
|
47
|
+
componentWillLoad() {
|
|
48
|
+
return b(this, null, function* () {
|
|
49
|
+
const e = [];
|
|
50
|
+
if (this.translationUrl) {
|
|
51
|
+
const t = q(this.translationUrl, this.targetTranslations);
|
|
52
|
+
e.push(t);
|
|
53
|
+
}
|
|
54
|
+
return yield Promise.all(e);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
return i("div", { key: "4d3414408c7662f88331dbe655966237f74d6958", class: "StyleShell" }, i("slot", { key: "1d004644d84602c4314bdf5dfc26b55b160f57df", name: "mainContent" }));
|
|
59
|
+
}
|
|
60
|
+
get el() {
|
|
61
|
+
return P(this);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
j.style = H;
|
|
65
|
+
function w(e) {
|
|
66
|
+
p(1, arguments);
|
|
67
|
+
var t = h(e);
|
|
68
|
+
return t.setHours(0, 0, 0, 0), t;
|
|
69
|
+
}
|
|
70
|
+
var G = 864e5;
|
|
71
|
+
function X(e, t) {
|
|
72
|
+
p(2, arguments);
|
|
73
|
+
var a = w(e), n = w(t), r = a.getTime() - E(a), l = n.getTime() - E(n);
|
|
74
|
+
return Math.round((r - l) / G);
|
|
75
|
+
}
|
|
76
|
+
var K = 6e4, Y = 36e5;
|
|
77
|
+
function C(e, t) {
|
|
78
|
+
return p(2, arguments), h(e).getTime() - h(t).getTime();
|
|
79
|
+
}
|
|
80
|
+
var I = {
|
|
81
|
+
ceil: Math.ceil,
|
|
82
|
+
round: Math.round,
|
|
83
|
+
floor: Math.floor,
|
|
84
|
+
trunc: function(t) {
|
|
85
|
+
return t < 0 ? Math.ceil(t) : Math.floor(t);
|
|
86
|
+
}
|
|
87
|
+
// Math.trunc is not supported by IE
|
|
88
|
+
}, J = "trunc";
|
|
89
|
+
function S(e) {
|
|
90
|
+
return e ? I[e] : I[J];
|
|
91
|
+
}
|
|
92
|
+
function Q(e, t, a) {
|
|
93
|
+
p(2, arguments);
|
|
94
|
+
var n = C(e, t) / Y;
|
|
95
|
+
return S(a == null ? void 0 : a.roundingMethod)(n);
|
|
96
|
+
}
|
|
97
|
+
function V(e, t, a) {
|
|
98
|
+
p(2, arguments);
|
|
99
|
+
var n = C(e, t) / K;
|
|
100
|
+
return S(a == null ? void 0 : a.roundingMethod)(n);
|
|
101
|
+
}
|
|
102
|
+
function Z(e, t) {
|
|
103
|
+
p(2, arguments);
|
|
104
|
+
var a = h(e), n = h(t);
|
|
105
|
+
return a.getTime() < n.getTime();
|
|
106
|
+
}
|
|
107
|
+
function ee(e, t) {
|
|
108
|
+
const a = e.querySelector("#total_level"), n = 17, r = 6.5, l = a.getBBox().width, d = t > 1 ? 1 : t, o = d * l - n < 0 ? 0 : d * l - n, s = e.querySelector("#current_level"), c = e.querySelector("#filter_current_level"), g = e.querySelector("#circle_current_level");
|
|
109
|
+
a.setAttribute("viewbox", `0 0 ${o} 28`), s.setAttribute("width", `${o}`), g.setAttribute("cx", `${o < r ? r : o}`), c.setAttribute("x", `${o - 8}`);
|
|
110
|
+
const y = e.querySelector("#lock"), T = e.querySelector("#filter_heart_ball"), A = e.querySelector("#filter_ball"), B = e.querySelector("#filter_heart"), D = e.querySelector("#filter_lock"), f = e.querySelector("#paint0_linear_ball"), x = e.querySelector("#paint1_linear_lock"), _ = e.querySelector("#lock_box"), R = e.querySelector("#heart_box"), M = 10, v = l - M;
|
|
111
|
+
y.setAttribute("cx", `${v}`), x.setAttribute("x1", `${v}`), x.setAttribute("x2", `${v}`), f.setAttribute("x1", `${v - 6}`), f.setAttribute("x2", `${v - 6 + 11.2}`), D.setAttribute("x", `${v - 6}`), B.setAttribute("x", `${v - 6 - 2}`), A.setAttribute("x", `${v - 6 - 2 - 2}`), T.setAttribute("x", `${v - 6 - 2 - 2 - 4}`), _.setAttribute("x", `${v - 6}`), R.setAttribute("x", `${v - 6}`), a.parentElement.style.opacity = "1";
|
|
112
|
+
}
|
|
113
|
+
const te = `:host {
|
|
114
|
+
display: block;
|
|
115
|
+
width: 360px;
|
|
116
|
+
height: 230px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.ElevateCardWrapper {
|
|
120
|
+
contain: layout inline-size;
|
|
121
|
+
width: 100%;
|
|
122
|
+
height: fit-content;
|
|
123
|
+
min-height: 218px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.Outer {
|
|
127
|
+
container-type: inline-size;
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
background-size: cover;
|
|
130
|
+
background-repeat: no-repeat;
|
|
131
|
+
line-height: initial;
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: 100%;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.Dark {
|
|
137
|
+
color: var(--emw--color-gray150, #efefef);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.Light {
|
|
141
|
+
color: var(--emw--color-black, #0e0e0e);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@container (min-width: 381px) {
|
|
145
|
+
.Outer {
|
|
146
|
+
background-size: cover;
|
|
147
|
+
}
|
|
148
|
+
.Outer .OuterCover {
|
|
149
|
+
min-height: 190px;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
@container (min-width: 260px) {
|
|
153
|
+
.Outer {
|
|
154
|
+
background-size: contain;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
.OuterCover {
|
|
158
|
+
width: 100%;
|
|
159
|
+
height: 100%;
|
|
160
|
+
content: "";
|
|
161
|
+
background-repeat: no-repeat;
|
|
162
|
+
background-size: cover;
|
|
163
|
+
border-radius: 15px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.Inner {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
min-height: 158px;
|
|
170
|
+
}
|
|
171
|
+
.Inner .Content {
|
|
172
|
+
padding: 15px;
|
|
173
|
+
flex-wrap: wrap;
|
|
174
|
+
gap: 8px;
|
|
175
|
+
}
|
|
176
|
+
.Inner .Row {
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: row;
|
|
179
|
+
}
|
|
180
|
+
.Inner .CardCell {
|
|
181
|
+
display: flex;
|
|
182
|
+
}
|
|
183
|
+
.Inner .LevelProgress svg {
|
|
184
|
+
transition: opacity 0.4s;
|
|
185
|
+
}
|
|
186
|
+
.Inner .LevelInfo {
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
}
|
|
190
|
+
.Inner .LevelInfo .ElevateLevel .LevelName {
|
|
191
|
+
height: 28px;
|
|
192
|
+
border-radius: 5px;
|
|
193
|
+
line-height: 28px;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
text-overflow: ellipsis;
|
|
196
|
+
white-space: nowrap;
|
|
197
|
+
}
|
|
198
|
+
.Inner .LevelInfo.Level0 .ElevateLevel .LevelName {
|
|
199
|
+
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level0button-shadow, rgba(191, 84, 6, 0.75));
|
|
200
|
+
background: linear-gradient(180deg, var(--emw--elevate-color-level0-bg0, #E2792C) 0%, var(--emw--elevate-color-level0-bg1, rgba(242, 151, 99, 0)) 100%);
|
|
201
|
+
}
|
|
202
|
+
.Inner .LevelInfo.Level1 .ElevateLevel .LevelName {
|
|
203
|
+
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level1button-shadow, rgba(151, 151, 151, 0.75));
|
|
204
|
+
background: linear-gradient(180deg, var(--emw--elevate-color-level1-bg0, #BEBFED) 0%, var(--emw--elevate-color-level1-bg1, rgba(216, 217, 233, 0)) 100%);
|
|
205
|
+
}
|
|
206
|
+
.Inner .LevelInfo.Level2 .ElevateLevel .LevelName {
|
|
207
|
+
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level2button-shadow, rgba(191, 120, 6, 0.75));
|
|
208
|
+
background: linear-gradient(180deg, var(--emw--elevate-color-level2-bg0, #FCC410) 0%, var(--emw--elevate-color-level2-bg1, rgba(255, 189, 43, 0)) 100%);
|
|
209
|
+
}
|
|
210
|
+
.Inner .LevelInfo.Level3 .ElevateLevel .LevelName {
|
|
211
|
+
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level3button-shadow, rgba(65, 6, 191, 0.75));
|
|
212
|
+
background: linear-gradient(180deg, var(--emw--elevate-color-level3-bg0, #B1A2DB) 0%, var(--emw--elevate-color-level3-bg1, rgba(203, 202, 245, 0)) 100%);
|
|
213
|
+
}
|
|
214
|
+
.Inner .LevelInfo.Level4 .ElevateLevel .LevelName {
|
|
215
|
+
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level4button-shadow, rgba(65, 6, 191, 0.75));
|
|
216
|
+
background: linear-gradient(180deg, var(--emw--elevate-color-level4-bg0, #B1A2DB) 0%, var(--emw--elevate-color-level4-bg1, rgba(203, 202, 245, 0)) 100%);
|
|
217
|
+
}
|
|
218
|
+
.Inner .LevelInfo .ElevateLevel {
|
|
219
|
+
display: flex;
|
|
220
|
+
}
|
|
221
|
+
.Inner .LevelInfo {
|
|
222
|
+
flex: 1;
|
|
223
|
+
flex-grow: 1;
|
|
224
|
+
min-width: 150px;
|
|
225
|
+
}
|
|
226
|
+
.Inner .PlayerImg {
|
|
227
|
+
width: 29%;
|
|
228
|
+
margin: auto;
|
|
229
|
+
max-width: 100px;
|
|
230
|
+
min-width: 30px;
|
|
231
|
+
order: 0;
|
|
232
|
+
}
|
|
233
|
+
.Inner .PlayerAvatar {
|
|
234
|
+
max-width: 100px;
|
|
235
|
+
flex-basis: 100px;
|
|
236
|
+
height: auto;
|
|
237
|
+
margin: auto;
|
|
238
|
+
padding-top: 10px;
|
|
239
|
+
}
|
|
240
|
+
.Inner .PlayerAvatar .Avatar, .Inner .PlayerAvatar .Badge {
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: 100%;
|
|
243
|
+
}
|
|
244
|
+
.Inner .PlayerAvatar .Avatar {
|
|
245
|
+
border-radius: 50%;
|
|
246
|
+
background-size: contain;
|
|
247
|
+
background-repeat: no-repeat;
|
|
248
|
+
}
|
|
249
|
+
.Inner .ElevateLevel .ExpirationDate {
|
|
250
|
+
max-width: 138px;
|
|
251
|
+
min-width: 118px;
|
|
252
|
+
}
|
|
253
|
+
.Inner .PlayerName, .Inner .RedeemButton, .Inner .ElevateLevel {
|
|
254
|
+
text-transform: capitalize;
|
|
255
|
+
width: 100%;
|
|
256
|
+
}
|
|
257
|
+
.Inner .PlayerName {
|
|
258
|
+
font-size: 16px;
|
|
259
|
+
}
|
|
260
|
+
.Inner .Row .PointsInfo {
|
|
261
|
+
display: table;
|
|
262
|
+
font-weight: 600;
|
|
263
|
+
}
|
|
264
|
+
.Inner .Row .Redeem {
|
|
265
|
+
justify-content: flex-end;
|
|
266
|
+
margin-left: auto;
|
|
267
|
+
}
|
|
268
|
+
.Inner .Row .Redeem:hover {
|
|
269
|
+
color: var(--emw--elevate-color-redeem-hover, #00ABA4);
|
|
270
|
+
cursor: pointer;
|
|
271
|
+
}
|
|
272
|
+
.Inner .Row .RedeemButton:hover span {
|
|
273
|
+
color: var(emfe-w-elevate-color-redeem-text-hover, #f1f1f1);
|
|
274
|
+
font-weight: bold;
|
|
275
|
+
}
|
|
276
|
+
.Inner .Row .RedeemButton {
|
|
277
|
+
width: 95px;
|
|
278
|
+
height: 35px;
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
border-radius: 10px;
|
|
282
|
+
background: var(--emw--elevate-color-redeem-bg, linear-gradient(0deg, #26CC37, #26CC37)), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%);
|
|
283
|
+
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);
|
|
284
|
+
}
|
|
285
|
+
.Inner .Row .RedeemButton span {
|
|
286
|
+
color: var(--emw--color-white, #fff);
|
|
287
|
+
line-height: 18px;
|
|
288
|
+
font-size: 15px;
|
|
289
|
+
text-align: center;
|
|
290
|
+
width: 100%;
|
|
291
|
+
}
|
|
292
|
+
.Inner .Row .Points {
|
|
293
|
+
font-size: large;
|
|
294
|
+
vertical-align: middle;
|
|
295
|
+
}
|
|
296
|
+
.Inner .Row .Points .XP {
|
|
297
|
+
font-size: x-small;
|
|
298
|
+
}
|
|
299
|
+
.Inner .Row .ExpirationPoints {
|
|
300
|
+
font-size: small;
|
|
301
|
+
text-align: right;
|
|
302
|
+
font-weight: bold;
|
|
303
|
+
color: var(--emw--color-red, #9e595f);
|
|
304
|
+
}`, ne = te, ae = class {
|
|
305
|
+
constructor(e) {
|
|
306
|
+
u(this, e), this.playerElevateLeveLoaded = O(this, "playerElevateLeveLoaded");
|
|
307
|
+
}
|
|
308
|
+
handleWindowResizs() {
|
|
309
|
+
this.initLevelProgressbar();
|
|
310
|
+
}
|
|
311
|
+
onParamsChanged() {
|
|
312
|
+
this.loadElevateInfo();
|
|
313
|
+
}
|
|
314
|
+
redeemGiftButtonHandler() {
|
|
315
|
+
this.loadElevateInfo();
|
|
316
|
+
}
|
|
317
|
+
onRedeemClick() {
|
|
318
|
+
window.postMessage({ type: "BEERedeemClicked" }, window.location.href);
|
|
319
|
+
}
|
|
320
|
+
loadLevels() {
|
|
321
|
+
let e = new URL(`${this.params.endpoint}/v1/elevate/levels?language=${this.params.language}`);
|
|
322
|
+
return new Promise((t, a) => fetch(e.href, {
|
|
323
|
+
method: "GET"
|
|
324
|
+
}).then((n) => n.json()).then((n) => {
|
|
325
|
+
this.levels = n.data, t(!0);
|
|
326
|
+
}).catch((n) => {
|
|
327
|
+
a(n);
|
|
328
|
+
}));
|
|
329
|
+
}
|
|
330
|
+
calcuatePointsToBeExpired(e) {
|
|
331
|
+
let t = "";
|
|
332
|
+
if (!e || !e.aboutToExpire || e.aboutToExpire.length == 0 || e.aboutToExpire[0].points <= 0)
|
|
333
|
+
return t;
|
|
334
|
+
e.aboutToExpire.sort((o, s) => Z(new Date(o.expireTime), new Date(s.expireTime)) ? -1 : 1);
|
|
335
|
+
const a = e.aboutToExpire[0], n = X(new Date(a.expireTime), /* @__PURE__ */ new Date());
|
|
336
|
+
let r = 0, l = 0, d = n === 0 ? "pointsToBeExpiredDay" : "pointsToBeExpired";
|
|
337
|
+
return n <= 0 && (r = Q(new Date(a.expireTime), /* @__PURE__ */ new Date(), { roundingMethod: "floor" }), d = r > 1 ? "pointsToBeExpiredHours" : "pointsToBeExpiredHour", r <= 0 && (l = V(new Date(a.expireTime), /* @__PURE__ */ new Date(), { roundingMethod: "floor" }), d = l > 1 ? "pointsToBeExpiredMinutes" : "pointsToBeExpiredMinute")), t = k(d, {
|
|
338
|
+
expirationPoints: a.points,
|
|
339
|
+
expireDay: Math.max(n, r, l)
|
|
340
|
+
}), t;
|
|
341
|
+
}
|
|
342
|
+
loadPlayerLevelInfo() {
|
|
343
|
+
let e = new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);
|
|
344
|
+
return new Promise((t, a) => fetch(e.href, {
|
|
345
|
+
method: "GET",
|
|
346
|
+
headers: {
|
|
347
|
+
"X-Sessionid": this.params.session,
|
|
348
|
+
"Content-Type": "application/json"
|
|
349
|
+
}
|
|
350
|
+
}).then((n) => n.json()).then((n) => {
|
|
351
|
+
var r, l, d;
|
|
352
|
+
if (!n.success) {
|
|
353
|
+
console.error("Exception when fetch user elevateinfo, ", n.errorCode, n.errorMessage), a(!0);
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
let o = n.data;
|
|
357
|
+
this.playerElevateLevel = o.level, this.playerElevateLevel.name = this.playerElevateLevel.presentation.displayName || this.playerElevateLevel.name, this.playerElevateLevel.spendablePoints = ((r = o.spendableWallet) === null || r === void 0 ? void 0 : r.total.points) || 0, this.playerElevateLeveLoaded.emit({ elevateLevel: this.playerElevateLevel });
|
|
358
|
+
const s = (l = n.data.spendableWallet) === null || l === void 0 ? void 0 : l.total, c = (d = n.data.loyaltyWallet) === null || d === void 0 ? void 0 : d.total;
|
|
359
|
+
this.playerElevateLeveLoaded.emit({
|
|
360
|
+
elevateLevelWalletTotal: s,
|
|
361
|
+
loyaltyWalletTotal: c
|
|
362
|
+
});
|
|
363
|
+
let g = this.calcuatePointsToBeExpired(s), y = this.calcuatePointsToBeExpired(c);
|
|
364
|
+
(g || y) && this.playerElevateLeveLoaded.emit({
|
|
365
|
+
pointExpireString: g,
|
|
366
|
+
xpExpireString: y
|
|
367
|
+
}), t(this.playerElevateLevel);
|
|
368
|
+
}).catch((n) => {
|
|
369
|
+
console.log("error ", n), a(!0);
|
|
370
|
+
}));
|
|
371
|
+
}
|
|
372
|
+
setLoyaltyProgress(e) {
|
|
373
|
+
ee(this.loyaltyProgressEle, e);
|
|
374
|
+
}
|
|
375
|
+
initLevelProgressbar() {
|
|
376
|
+
setTimeout(() => {
|
|
377
|
+
this.loyaltyProgressEle = this.elevateCardRef.parentElement.querySelector("#LevelProgress"), this.loyaltyProgressEle && (this.setLoyaltyProgress(this.playerElevateLevel.nextLevel ? this.playerElevateLevel.loyaltyPoints / this.playerElevateLevel.nextLevel.entryPoints : 1), this.params.playerElevateLevel = this.playerElevateLevel);
|
|
378
|
+
}, 80);
|
|
379
|
+
}
|
|
380
|
+
componentDidRender() {
|
|
381
|
+
this.initLevelProgressbar();
|
|
382
|
+
}
|
|
383
|
+
loadElevateInfo() {
|
|
384
|
+
if (!this.params.endpoint || !this.params.session)
|
|
385
|
+
return;
|
|
386
|
+
const e = [];
|
|
387
|
+
e.push(this.loadPlayerLevelInfo()), this.params.calculateLevelFlag && e.push(this.loadLevels()), Promise.all(e).then((t) => {
|
|
388
|
+
if (console.log("elevate-init", t), this.initLevelProgressbar(), !this.levels)
|
|
389
|
+
return;
|
|
390
|
+
this.levels.sort((r, l) => r.firstEntryPoints > l.firstEntryPoints ? 1 : -1);
|
|
391
|
+
const a = this.playerElevateLevel.loyaltyPoints;
|
|
392
|
+
let n = 0;
|
|
393
|
+
this.levels.forEach((r, l) => {
|
|
394
|
+
a > r.firstEntryPoints && (n = l);
|
|
395
|
+
}), this.playerElevateLeveLoaded.emit({
|
|
396
|
+
calculatedLevelFlag: n
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
componentWillLoad() {
|
|
401
|
+
this.loadElevateInfo();
|
|
402
|
+
}
|
|
403
|
+
get elevateCardRef() {
|
|
404
|
+
return P(this);
|
|
405
|
+
}
|
|
406
|
+
static get watchers() {
|
|
407
|
+
return {
|
|
408
|
+
params: ["onParamsChanged"]
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
ae.style = ne;
|
|
413
|
+
const re = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:11px;margin-left:5px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emw--color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}", le = re, ie = class {
|
|
414
|
+
constructor(e) {
|
|
415
|
+
u(this, e), this.theme = "Dark", this.language = "en", this.dateFormat = "yyyy-MM-dd", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "";
|
|
416
|
+
}
|
|
417
|
+
onSessionOrEndpointChange() {
|
|
418
|
+
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
419
|
+
}
|
|
420
|
+
playerElevateLeveLoadedHandler(e) {
|
|
421
|
+
e.detail && (e.detail.elevateLevelWalletTotal && (this.elevateWalletTotal = e.detail.elevateLevelWalletTotal), e.detail.elevateLevel && (this.playerElevateLevel = e.detail.elevateLevel), e.detail.pointExpireString && (this.pointExpireString = e.detail.xpExpireString));
|
|
422
|
+
}
|
|
423
|
+
onRedeemClick() {
|
|
424
|
+
window.postMessage({ type: "BEERedeemClicked" }, window.location.href);
|
|
425
|
+
}
|
|
426
|
+
componentWillLoad() {
|
|
427
|
+
this.paramProxy = {
|
|
428
|
+
endpoint: this.endpoint,
|
|
429
|
+
session: this.session,
|
|
430
|
+
language: this.language
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
getNextLevelPoints() {
|
|
434
|
+
var e, t;
|
|
435
|
+
return !((e = this.playerElevateLevel) === null || e === void 0) && e.nextLevel ? (t = this.playerElevateLevel) === null || t === void 0 ? void 0 : t.nextLevel.entryPoints : -1;
|
|
436
|
+
}
|
|
437
|
+
getNextLevelTips() {
|
|
438
|
+
var e;
|
|
439
|
+
let t = (e = this.playerElevateLevel) === null || e === void 0 ? void 0 : e.nextLevel;
|
|
440
|
+
if (this.playerElevateLevel && t) {
|
|
441
|
+
const a = (t.entryPoints - this.playerElevateLevel.loyaltyPoints).toFixed(2);
|
|
442
|
+
return k("tipsForNextLevel", {
|
|
443
|
+
pointsToReach: a,
|
|
444
|
+
levelName: t.name,
|
|
445
|
+
lang: this.language
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
return "";
|
|
449
|
+
}
|
|
450
|
+
render() {
|
|
451
|
+
const e = m("../static/card-ground.svg"), t = m("../static/card-ground-over.svg");
|
|
452
|
+
return i("div", { key: "2b0944f8317a94621e1bc65bbbb3726654b8963b", class: `ElevateCardWrapper ${this.theme}` }, i("div", { key: "c6d4dbba143435b4485d7fde91ab0a48a2f6688b", class: "LoyaltyCard Outer", style: { backgroundImage: `url(${e}` } }, i("general-styling-wrapper", { key: "e47a4efe925eb35d4449c6ff33a0afef9d284e55", clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: $, translationUrl: this.translationUrl }), i("player-elevate-card-data", { key: "a560991893305894ddd41756cd7b3c32d0ef9e03", params: this.paramProxy }), i("div", { key: "ceb8b71386f84f54518a3694535aa16c2c3d3951", class: "OuterCover Inner", style: { backgroundImage: `url(${t}` } }, i("div", { key: "1df9647c3de42e74adee0f8895511442118ae381", class: "Content Row" }, this.playerElevateLevel && i(N, { key: "569bcd5fc3c578d2e6cc7442d28444e29688660c" }, i("div", { key: "aa40032bff99c5462b906e4427232ca2d4019017", class: "PlayerImg" }, i(W, { key: "7a2d535b0c2029c90b9f1c123f9feebafca6bdde", onlyBadge: !0, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), i("div", { key: "90999da8fc2a3102eac235fcbc8afbec2a2bbdf8", class: `LevelInfo ${this.playerElevateLevel.name}` }, i(z, { key: "67e8bf370b1b77e776fb6d955ae63928fd1338d8", hideInfo: !0, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), i("div", { key: "1e0fefc6a23f4aeeef5e19828399fe1229a3fc81", class: "PointsRange" }, i(L, { key: "dd176e624cde3b6f517101d7702a15465305174d", loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), i(L, { key: "6cddb64c92545803d08fbbc513cc951b2691a42e", loyaltyPoints: this.getNextLevelPoints(), language: this.language })), i(U, { key: "08817ca979ea784aeb735579b0d52e5150eb0852" }), i("div", { key: "be9a1b40a8145d5e6d329d8e9f047296e84dd24b", class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && i("div", { key: "f9cbb7d06e34717cb9f74cb8d2e506e49969e775", class: "PointsInfo ExpirationPoints" }, this.pointExpireString, " ")))))));
|
|
453
|
+
}
|
|
454
|
+
static get watchers() {
|
|
455
|
+
return {
|
|
456
|
+
session: ["onSessionOrEndpointChange"],
|
|
457
|
+
endpoint: ["onSessionOrEndpointChange"],
|
|
458
|
+
language: ["onSessionOrEndpointChange"]
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
ie.style = le;
|
|
463
|
+
export {
|
|
464
|
+
pe as gamification_dropdown,
|
|
465
|
+
j as general_styling_wrapper,
|
|
466
|
+
ae as player_elevate_card_data,
|
|
467
|
+
ie as player_elevate_loyaltycard
|
|
468
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { G as
|
|
2
|
-
import { r as u, h as i, g as I, c as M, a as b, F as O } from "./index-
|
|
3
|
-
import { t as P, T as N, P as $, a as W, b as m, c as z, r as
|
|
1
|
+
import { G as ve } from "./gamification-dropdown-dc081799-D_3lOXxi.js";
|
|
2
|
+
import { r as u, h as i, g as I, c as M, a as b, F as O } from "./index-5e36ea65-BkSKs2J0.js";
|
|
3
|
+
import { t as P, T as N, P as $, a as W, b as m, c as z, r as c, d as p, g as L } from "./player-elevate-card-items-2a1dc5b5-C0Ul-nhu.js";
|
|
4
4
|
const U = (e, t) => new Promise((a) => {
|
|
5
5
|
fetch(e).then((n) => n.json()).then((n) => {
|
|
6
6
|
Object.keys(n).forEach((r) => {
|
|
@@ -45,19 +45,19 @@ const U = (e, t) => new Promise((a) => {
|
|
|
45
45
|
};
|
|
46
46
|
H.style = F;
|
|
47
47
|
function E(e) {
|
|
48
|
-
|
|
48
|
+
c(1, arguments);
|
|
49
49
|
var t = p(e);
|
|
50
50
|
return t.setHours(0, 0, 0, 0), t;
|
|
51
51
|
}
|
|
52
52
|
var j = 864e5;
|
|
53
53
|
function G(e, t) {
|
|
54
|
-
|
|
54
|
+
c(2, arguments);
|
|
55
55
|
var a = E(e), n = E(t), r = a.getTime() - L(a), l = n.getTime() - L(n);
|
|
56
56
|
return Math.round((r - l) / j);
|
|
57
57
|
}
|
|
58
58
|
var X = 6e4, K = 36e5;
|
|
59
59
|
function k(e, t) {
|
|
60
|
-
return
|
|
60
|
+
return c(2, arguments), p(e).getTime() - p(t).getTime();
|
|
61
61
|
}
|
|
62
62
|
var w = {
|
|
63
63
|
ceil: Math.ceil,
|
|
@@ -72,23 +72,23 @@ function C(e) {
|
|
|
72
72
|
return e ? w[e] : w[Y];
|
|
73
73
|
}
|
|
74
74
|
function J(e, t, a) {
|
|
75
|
-
|
|
75
|
+
c(2, arguments);
|
|
76
76
|
var n = k(e, t) / K;
|
|
77
77
|
return C(a?.roundingMethod)(n);
|
|
78
78
|
}
|
|
79
79
|
function Q(e, t, a) {
|
|
80
|
-
|
|
80
|
+
c(2, arguments);
|
|
81
81
|
var n = k(e, t) / X;
|
|
82
82
|
return C(a?.roundingMethod)(n);
|
|
83
83
|
}
|
|
84
84
|
function V(e, t) {
|
|
85
|
-
|
|
85
|
+
c(2, arguments);
|
|
86
86
|
var a = p(e), n = p(t);
|
|
87
87
|
return a.getTime() < n.getTime();
|
|
88
88
|
}
|
|
89
89
|
function Z(e, t) {
|
|
90
|
-
const a = e.querySelector("#total_level"), n = 17, r = 6.5, l = a.getBBox().width, s = t > 1 ? 1 : t, d = s * l - n < 0 ? 0 : s * l - n,
|
|
91
|
-
a.setAttribute("viewbox", `0 0 ${d} 28`),
|
|
90
|
+
const a = e.querySelector("#total_level"), n = 17, r = 6.5, l = a.getBBox().width, s = t > 1 ? 1 : t, d = s * l - n < 0 ? 0 : s * l - n, v = e.querySelector("#current_level"), h = e.querySelector("#filter_current_level"), g = e.querySelector("#circle_current_level");
|
|
91
|
+
a.setAttribute("viewbox", `0 0 ${d} 28`), v.setAttribute("width", `${d}`), g.setAttribute("cx", `${d < r ? r : d}`), h.setAttribute("x", `${d - 8}`);
|
|
92
92
|
const y = e.querySelector("#lock"), S = e.querySelector("#filter_heart_ball"), T = e.querySelector("#filter_ball"), A = e.querySelector("#filter_heart"), B = e.querySelector("#filter_lock"), f = e.querySelector("#paint0_linear_ball"), x = e.querySelector("#paint1_linear_lock"), D = e.querySelector("#lock_box"), _ = e.querySelector("#heart_box"), R = 10, o = l - R;
|
|
93
93
|
y.setAttribute("cx", `${o}`), x.setAttribute("x1", `${o}`), x.setAttribute("x2", `${o}`), f.setAttribute("x1", `${o - 6}`), f.setAttribute("x2", `${o - 6 + 11.2}`), B.setAttribute("x", `${o - 6}`), A.setAttribute("x", `${o - 6 - 2}`), T.setAttribute("x", `${o - 6 - 2 - 2}`), S.setAttribute("x", `${o - 6 - 2 - 2 - 4}`), D.setAttribute("x", `${o - 6}`), _.setAttribute("x", `${o - 6}`), a.parentElement.style.opacity = "1";
|
|
94
94
|
}
|
|
@@ -313,7 +313,7 @@ const ee = `:host {
|
|
|
313
313
|
let t = "";
|
|
314
314
|
if (!e || !e.aboutToExpire || e.aboutToExpire.length == 0 || e.aboutToExpire[0].points <= 0)
|
|
315
315
|
return t;
|
|
316
|
-
e.aboutToExpire.sort((d,
|
|
316
|
+
e.aboutToExpire.sort((d, v) => V(new Date(d.expireTime), new Date(v.expireTime)) ? -1 : 1);
|
|
317
317
|
const a = e.aboutToExpire[0], n = G(new Date(a.expireTime), /* @__PURE__ */ new Date());
|
|
318
318
|
let r = 0, l = 0, s = n === 0 ? "pointsToBeExpiredDay" : "pointsToBeExpired";
|
|
319
319
|
return n <= 0 && (r = J(new Date(a.expireTime), /* @__PURE__ */ new Date(), { roundingMethod: "floor" }), s = r > 1 ? "pointsToBeExpiredHours" : "pointsToBeExpiredHour", r <= 0 && (l = Q(new Date(a.expireTime), /* @__PURE__ */ new Date(), { roundingMethod: "floor" }), s = l > 1 ? "pointsToBeExpiredMinutes" : "pointsToBeExpiredMinute")), t = P(s, {
|
|
@@ -337,12 +337,12 @@ const ee = `:host {
|
|
|
337
337
|
}
|
|
338
338
|
let d = n.data;
|
|
339
339
|
this.playerElevateLevel = d.level, this.playerElevateLevel.name = this.playerElevateLevel.presentation.displayName || this.playerElevateLevel.name, this.playerElevateLevel.spendablePoints = ((r = d.spendableWallet) === null || r === void 0 ? void 0 : r.total.points) || 0, this.playerElevateLeveLoaded.emit({ elevateLevel: this.playerElevateLevel });
|
|
340
|
-
const
|
|
340
|
+
const v = (l = n.data.spendableWallet) === null || l === void 0 ? void 0 : l.total, h = (s = n.data.loyaltyWallet) === null || s === void 0 ? void 0 : s.total;
|
|
341
341
|
this.playerElevateLeveLoaded.emit({
|
|
342
|
-
elevateLevelWalletTotal:
|
|
342
|
+
elevateLevelWalletTotal: v,
|
|
343
343
|
loyaltyWalletTotal: h
|
|
344
344
|
});
|
|
345
|
-
let g = this.calcuatePointsToBeExpired(
|
|
345
|
+
let g = this.calcuatePointsToBeExpired(v), y = this.calcuatePointsToBeExpired(h);
|
|
346
346
|
(g || y) && this.playerElevateLeveLoaded.emit({
|
|
347
347
|
pointExpireString: g,
|
|
348
348
|
xpExpireString: y
|
|
@@ -443,7 +443,7 @@ const ae = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCar
|
|
|
443
443
|
};
|
|
444
444
|
le.style = re;
|
|
445
445
|
export {
|
|
446
|
-
|
|
446
|
+
ve as gamification_dropdown,
|
|
447
447
|
H as general_styling_wrapper,
|
|
448
448
|
ne as player_elevate_card_data,
|
|
449
449
|
le as player_elevate_loyaltycard
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var qe=Object.defineProperty;var le=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var ie=(e,t,s)=>t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,oe=(e,t)=>{for(var s in t||(t={}))Be.call(t,s)&&ie(e,s,t[s]);if(le)for(var s of le(t))De.call(t,s)&&ie(e,s,t[s]);return e};var z=(e,t,s)=>new Promise((r,n)=>{var i=$=>{try{l(s.next($))}catch(c){n(c)}},a=$=>{try{l(s.throw($))}catch(c){n(c)}},l=$=>$.done?r($.value):Promise.resolve($.value).then(i,a);l((s=s.apply(e,t)).next())});const Fe="gamification-dropdown",I={experimentalSlotFixes:!1,hydratedSelectorName:"hydrated",lazyLoad:!0,slotRelocation:!0,updatable:!0};var Ce=Object.defineProperty,We=(e,t)=>{for(var s in t)Ce(e,s,{get:t[s],enumerable:!0})},Ge="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",N=new WeakMap,L=e=>N.get(e),Xe=(e,t)=>{N.set(t.$lazyInstance$=e,t)},Je=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(n=>s.$onReadyResolve$=n),e["s-p"]=[],e["s-rc"]=[],N.set(e,s)},ae=(e,t)=>t in e,x=(e,t)=>(0,console.error)(e,t),G=new Map,Ke=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const i=G.get(n);if(i)return i[r];{const a=l=>(G.set(n,l),l[r]);switch(n){case"gamification-dropdown_4":return Promise.resolve().then(()=>require("./gamification-dropdown_4-CD0pDli_.cjs")).then(a,x);case"player-elevate-card":return Promise.resolve().then(()=>require("./player-elevate-card-jcWIm8Vs.cjs")).then(a,x);case"player-elevate-pointcard":return Promise.resolve().then(()=>require("./player-elevate-pointcard-Bx5fP0DY.cjs")).then(a,x)}}return import(`./${n}.entry.js`).then(a=>(G.set(n,a),a[r]),a=>{x(a,t.$hostElement$)})},q=new Map,Qe="sty-id",Ze="{visibility:hidden}.hydrated{visibility:inherit}",pe="slot-fb{display:contents}slot-fb[hidden]{display:none}",A=typeof window!="undefined"?window:{},k=A.document||{head:{}},v={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},Me=(()=>{let e=!1;try{k.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),ge=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),X=!1,$e=[],Se=[],Ne=(e,t)=>s=>{e.push(s),X||(X=!0,v.$flags$&4?V(J):v.raf(J))},ce=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){x(s)}e.length=0},J=()=>{ce($e),ce(Se),(X=$e.length>0)&&v.raf(J)},V=e=>ge().then(e),Ve=Ne(Se),et=e=>{const t=new URL(e,v.$resourcesUrl$);return t.origin!==A.location.origin?t.href:t.pathname},ee=e=>(e=typeof e,e==="object"||e==="function");function Ee(e){var t,s,r;return(r=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?r:void 0}var tt={};We(tt,{err:()=>ke,map:()=>st,ok:()=>K,unwrap:()=>nt,unwrapErr:()=>rt});var K=e=>({isOk:!0,isErr:!1,value:e}),ke=e=>({isOk:!1,isErr:!0,value:e});function st(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>K(r)):K(s)}if(e.isErr){const s=e.value;return ke(s)}throw"should never get here"}var nt=e=>{if(e.isOk)return e.value;throw e.value},rt=e=>{if(e.isErr)return e.value;throw e.value},_e=e=>{const t=e.__childNodes||e.childNodes;e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Te(t,e.tagName).forEach(s=>{var r;s.nodeType===1&&s.tagName==="SLOT-FB"&&((r=lt(s,s["s-sn"],!1))!=null&&r.length?s.hidden=!0:s.hidden=!1)});for(const s of t)s.nodeType===1&&(s.__childNodes||s.childNodes).length&&_e(s)};function Te(e,t,s){let r=0,n=[],i;for(;r<e.length;r++)i=e[r],i["s-sr"]&&i["s-hn"]===t&&s===void 0&&n.push(i),n=[...n,...Te(i.childNodes,t,s)];return n}var lt=(e,t,s=!0)=>{const r=[];for((s&&e["s-sr"]||!e["s-sr"])&&r.push(e);(e=e.nextSibling)&&e["s-sn"]===t;)r.push(e);return r},fe=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",w=(e,t="")=>()=>{},it=(e,t)=>()=>{},te=(e,t,...s)=>{let r=null,n=null,i=null,a=!1,l=!1;const $=[],c=d=>{for(let o=0;o<d.length;o++)r=d[o],Array.isArray(r)?c(r):r!=null&&typeof r!="boolean"&&((a=typeof e!="function"&&!ee(r))&&(r=String(r)),a&&l?$[$.length-1].$text$+=r:$.push(a?B(null,r):r),l=a)};if(c(s),t){t.key&&(n=t.key),t.name&&(i=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter(o=>d[o]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,$,$t);const f=B(e,null);return f.$attrs$=t,$.length>0&&(f.$children$=$),f.$key$=n,f.$name$=i,f},B=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},ot={},at=e=>e&&e.$tag$===ot,$t={forEach:(e,t)=>e.map(de).forEach(t),map:(e,t)=>e.map(de).map(t).map(ct)},de=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),ct=e=>{if(typeof e.vtag=="function"){const s=oe({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),te(e.vtag,s,...e.vchildren||[])}const t=B(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Q=(e,t)=>e!=null&&!ee(e)&&t&1?String(e):e,Le=e=>L(e).$hostElement$,ft=(e,t,s)=>{const r=Le(e);return{emit:n=>xe(r,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},xe=(e,t,s)=>{const r=v.ce(t,s);return e.dispatchEvent(r),r},m=new WeakMap,dt=(e,t,s)=>{let r=q.get(e);ye&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,q.set(e,r)},ut=(e,t,s)=>{var r;const n=be(t),i=q.get(n);if(e=e.nodeType===11?e:k,i)if(typeof i=="string"){e=e.head||e;let a=m.get(e),l;if(a||m.set(e,a=new Set),!a.has(n)){{l=document.querySelector(`[${Qe}="${n}"]`)||k.createElement("style"),l.innerHTML=i;const $=(r=v.$nonce$)!=null?r:Ee(k);if($!=null&&l.setAttribute("nonce",$),!(t.$flags$&1))if(e.nodeName==="HEAD"){const c=e.querySelectorAll("link[rel=preconnect]"),f=c.length>0?c[c.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(f==null?void 0:f.parentNode)===e?f:null)}else if("host"in e)if(ye){const c=new CSSStyleSheet;c.replaceSync(i),e.adoptedStyleSheets=[c,...e.adoptedStyleSheets]}else{const c=e.querySelector("style");c?c.innerHTML=i+c.innerHTML:e.prepend(l)}else e.append(l);t.$flags$&1&&e.nodeName!=="HEAD"&&e.insertBefore(l,null)}t.$flags$&4&&(l.innerHTML+=pe),a&&a.add(n)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return n},ht=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=t.$flags$,n=w("attachStyles",t.$tagName$),i=ut(s.shadowRoot?s.shadowRoot:s.getRootNode(),t);r&10&&r&2&&(s["s-sc"]=i,s.classList.add(i+"-h")),n()},be=(e,t)=>"sc-"+e.$tagName$,ue=(e,t,s,r,n,i,a)=>{if(s!==r){let l=ae(e,t),$=t.toLowerCase();if(t==="class"){const c=e.classList,f=he(s);let d=he(r);c.remove(...f.filter(o=>o&&!d.includes(o))),c.add(...d.filter(o=>o&&!f.includes(o)))}else if(t==="style"){for(const c in s)(!r||r[c]==null)&&(c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(const c in r)(!s||r[c]!==s[c])&&(c.includes("-")?e.style.setProperty(c,r[c]):e.style[c]=r[c])}else if(t!=="key")if(t==="ref")r&&r(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):ae(A,$)?t=$.slice(2):t=$[2]+t.slice(3),s||r){const c=t.endsWith(we);t=t.replace(pt,""),s&&v.rel(e,t,s,c),r&&v.ael(e,t,r,c)}}else{const c=ee(r);if((l||c&&r!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==r&&(e[t]=r);else{const f=r==null?"":r;t==="list"?l=!1:(s==null||e[t]!=f)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=f:e.setAttribute(t,f))}}catch(f){}r==null||r===!1?(r!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||i&4||n)&&!c&&(r=r===!0?"":r,e.setAttribute(t,r))}}},vt=/\s/,he=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(vt)),we="Capture",pt=new RegExp(we+"$"),Pe=(e,t,s,r)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||{},a=t.$attrs$||{};for(const l of ve(Object.keys(i)))l in a||ue(n,l,i[l],void 0,s,t.$flags$);for(const l of ve(Object.keys(a)))ue(n,l,i[l],a[l],s,t.$flags$)};function ve(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var Z,W,D=!1,F=!1,se=!1,E=!1,C=(e,t,s)=>{var r;const n=t.$children$[s];let i=0,a,l,$;if(D||(se=!0,n.$tag$==="slot"&&(n.$flags$|=n.$children$?2:1)),n.$text$!==null)a=n.$elm$=k.createTextNode(n.$text$);else if(n.$flags$&1)a=n.$elm$=k.createTextNode("");else{if(E||(E=n.$tag$==="svg"),a=n.$elm$=k.createElementNS(E?Ge:Ye,!D&&I.slotRelocation&&n.$flags$&2?"slot-fb":n.$tag$),E&&n.$tag$==="foreignObject"&&(E=!1),Pe(null,n,E),n.$children$)for(i=0;i<n.$children$.length;++i)l=C(e,n,i),l&&a.appendChild(l);n.$tag$==="svg"?E=!1:a.tagName==="foreignObject"&&(E=!0)}return a["s-hn"]=W,n.$flags$&3&&(a["s-sr"]=!0,a["s-cr"]=Z,a["s-sn"]=n.$name$||"",a["s-rf"]=(r=n.$attrs$)==null?void 0:r.ref,$=e&&e.$children$&&e.$children$[s],$&&$.$tag$===n.$tag$&&e.$elm$&&j(e.$elm$,!1)),a},j=(e,t)=>{v.$flags$|=1;const s=Array.from(e.__childNodes||e.childNodes);e["s-sr"]&&I.experimentalSlotFixes;for(let r=s.length-1;r>=0;r--){const n=s[r];n["s-hn"]!==W&&n["s-ol"]&&(P(R(n).parentNode,n,R(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,se=!0),t&&j(n,t)}v.$flags$&=-2},Oe=(e,t,s,r,n,i)=>{let a=e["s-cr"]&&e["s-cr"].parentNode||e,l;for(a.shadowRoot&&a.tagName===W&&(a=a.shadowRoot);n<=i;++n)r[n]&&(l=C(null,s,n),l&&(r[n].$elm$=l,P(a,l,R(t))))},me=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const i=n.$elm$;je(n),i&&(F=!0,i["s-ol"]?i["s-ol"].remove():j(i,!0),i.remove())}}},gt=(e,t,s,r,n=!1)=>{let i=0,a=0,l=0,$=0,c=t.length-1,f=t[0],d=t[c],o=r.length-1,u=r[0],h=r[o],p,S;for(;i<=c&&a<=o;)if(f==null)f=t[++i];else if(d==null)d=t[--c];else if(u==null)u=r[++a];else if(h==null)h=r[--o];else if(U(f,u,n))O(f,u,n),f=t[++i],u=r[++a];else if(U(d,h,n))O(d,h,n),d=t[--c],h=r[--o];else if(U(f,h,n))(f.$tag$==="slot"||h.$tag$==="slot")&&j(f.$elm$.parentNode,!1),O(f,h,n),P(e,f.$elm$,d.$elm$.nextSibling),f=t[++i],h=r[--o];else if(U(d,u,n))(f.$tag$==="slot"||h.$tag$==="slot")&&j(d.$elm$.parentNode,!1),O(d,u,n),P(e,d.$elm$,f.$elm$),d=t[--c],u=r[++a];else{for(l=-1,$=i;$<=c;++$)if(t[$]&&t[$].$key$!==null&&t[$].$key$===u.$key$){l=$;break}l>=0?(S=t[l],S.$tag$!==u.$tag$?p=C(t&&t[a],s,l):(O(S,u,n),t[l]=void 0,p=S.$elm$),u=r[++a]):(p=C(t&&t[a],s,a),u=r[++a]),p&&P(R(f.$elm$).parentNode,p,R(f.$elm$))}i>c?Oe(e,r[o+1]==null?null:r[o+1].$elm$,s,r,a,o):a>o&&me(t,i,c)},U=(e,t,s=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:s?(s&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$:!1,R=e=>e&&e["s-ol"]||e,O=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,i=t.$children$,a=t.$tag$,l=t.$text$;let $;l===null?(E=a==="svg"?!0:a==="foreignObject"?!1:E,a==="slot"&&!D||Pe(e,t,E),n!==null&&i!==null?gt(r,n,t,i,s):i!==null?(e.$text$!==null&&(r.textContent=""),Oe(r,null,t,i,0,i.length-1)):!s&&I.updatable&&n!==null&&me(n,0,n.length-1),E&&a==="svg"&&(E=!1)):($=r["s-cr"])?$.parentNode.textContent=l:e.$text$!==l&&(r.data=l)},b=[],Ae=e=>{let t,s,r;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=i["s-sn"];for(r=s.length-1;r>=0;r--)if(t=s[r],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==i["s-hn"])if(fe(t,a)){let l=b.find($=>$.$nodeToRelocate$===t);F=!0,t["s-sn"]=t["s-sn"]||a,l?(l.$nodeToRelocate$["s-sh"]=i["s-hn"],l.$slotRefNode$=i):(t["s-sh"]=i["s-hn"],b.push({$slotRefNode$:i,$nodeToRelocate$:t})),t["s-sr"]&&b.map($=>{fe($.$nodeToRelocate$,t["s-sn"])&&(l=b.find(c=>c.$nodeToRelocate$===t),l&&!$.$slotRefNode$&&($.$slotRefNode$=l.$slotRefNode$))})}else b.some(l=>l.$nodeToRelocate$===t)||b.push({$nodeToRelocate$:t})}i.nodeType===1&&Ae(i)}},je=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(je)},P=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),yt=(e,t,s=!1)=>{var r,n,i,a;const l=e.$hostElement$,$=e.$cmpMeta$,c=e.$vnode$||B(null,null),f=at(t)?t:te(null,null,t);if(W=l.tagName,$.$attrsToReflect$&&(f.$attrs$=f.$attrs$||{},$.$attrsToReflect$.map(([d,o])=>f.$attrs$[o]=l[d])),s&&f.$attrs$)for(const d of Object.keys(f.$attrs$))l.hasAttribute(d)&&!["key","ref","style","class"].includes(d)&&(f.$attrs$[d]=l[d]);f.$tag$=null,f.$flags$|=4,e.$vnode$=f,f.$elm$=c.$elm$=l.shadowRoot||l,D=($.$flags$&1)!==0,Z=l["s-cr"],F=!1,O(c,f,s);{if(v.$flags$|=1,se){Ae(f.$elm$);for(const d of b){const o=d.$nodeToRelocate$;if(!o["s-ol"]){const u=k.createTextNode("");u["s-nr"]=o,P(o.parentNode,o["s-ol"]=u,o)}}for(const d of b){const o=d.$nodeToRelocate$,u=d.$slotRefNode$;if(u){const h=u.parentNode;let p=u.nextSibling;{let _=(r=o["s-ol"])==null?void 0:r.previousSibling;for(;_;){let y=(n=_["s-nr"])!=null?n:null;if(y&&y["s-sn"]===o["s-sn"]&&h===(y.__parentNode||y.parentNode)){for(y=y.nextSibling;y===o||y!=null&&y["s-sr"];)y=y==null?void 0:y.nextSibling;if(!y||!y["s-nr"]){p=y;break}}_=_.previousSibling}}const S=o.__parentNode||o.parentNode,g=o.__nextSibling||o.nextSibling;(!p&&h!==S||g!==p)&&o!==p&&(!o["s-hn"]&&o["s-ol"]&&(o["s-hn"]=o["s-ol"].parentNode.nodeName),P(h,o,p),o.nodeType===1&&o.tagName!=="SLOT-FB"&&(o.hidden=(i=o["s-ih"])!=null?i:!1)),o&&typeof u["s-rf"]=="function"&&u["s-rf"](o)}else o.nodeType===1&&(s&&(o["s-ih"]=(a=o.hidden)!=null?a:!1),o.hidden=!0)}}F&&_e(f.$elm$),v.$flags$&=-2,b.length=0}Z=void 0},Re=(e,t)=>{if(t&&!e.$onRenderResolve$&&t["s-p"]){const s=t["s-p"].push(new Promise(r=>e.$onRenderResolve$=()=>{t["s-p"].splice(s-1,1),r()}))}},ne=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Re(e,e.$ancestorComponent$),Ve(()=>St(e,t))},St=(e,t)=>{const s=e.$hostElement$,r=w("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([a,l])=>M(n,a,l,s)),e.$queuedListeners$=void 0),i=M(n,"componentWillLoad",void 0,s)),r(),Et(i,()=>_t(e,n,t))},Et=(e,t)=>kt(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),kt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",_t=(e,t,s)=>z(exports,null,function*(){var r;const n=e.$hostElement$,i=w("update",e.$cmpMeta$.$tagName$),a=n["s-rc"];s&&ht(e);const l=w("render",e.$cmpMeta$.$tagName$);Tt(e,t,n,s),a&&(a.map($=>$()),n["s-rc"]=void 0),l(),i();{const $=(r=n["s-p"])!=null?r:[],c=()=>Lt(e);$.length===0?c():(Promise.all($).then(c),e.$flags$|=4,$.length=0)}}),Tt=(e,t,s,r)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,yt(e,t,r)}catch(n){x(n,e.$hostElement$)}return null},Lt=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=w("postUpdate",t),n=e.$lazyInstance$,i=e.$ancestorComponent$;M(n,"componentDidRender",void 0,s),e.$flags$&64?r():(e.$flags$|=64,xt(s),r(),e.$onReadyResolve$(s),i||Ie()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&V(()=>ne(e,!1)),e.$flags$&=-517},Ie=e=>{V(()=>xe(A,"appload",{detail:{namespace:Fe}}))},M=(e,t,s,r)=>{if(e&&e[t])try{return e[t](s)}catch(n){x(n,r)}},xt=e=>{var t;return e.classList.add((t=I.hydratedSelectorName)!=null?t:"hydrated")},bt=(e,t)=>L(e).$instanceValues$.get(t),Y=(e,t,s,r)=>{const n=L(e);if(!n)throw new Error(`Couldn't find host element for "${r.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=n.$hostElement$,a=n.$instanceValues$.get(t),l=n.$flags$,$=n.$lazyInstance$;s=Q(s,r.$members$[t][0]);const c=Number.isNaN(a)&&Number.isNaN(s),f=s!==a&&!c;if((!(l&8)||a===void 0)&&f&&(n.$instanceValues$.set(t,s),$)){if(r.$watchers$&&l&128){const d=r.$watchers$[t];d&&d.map(o=>{try{$[o](s,a,t)}catch(u){x(u,i)}})}(l&18)===2&&ne(n,!1)}},He=(e,t,s)=>{var r,n;const i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const a=Object.entries((r=t.$members$)!=null?r:{});if(a.map(([l,[$]])=>{if($&31||s&2&&$&32){const{get:c,set:f}=Object.getOwnPropertyDescriptor(i,l)||{};c&&(t.$members$[l][0]|=2048),f&&(t.$members$[l][0]|=4096),(s&1||!c)&&Object.defineProperty(i,l,{get(){{if(!(t.$members$[l][0]&2048))return bt(this,l);const d=L(this),o=d?d.$lazyInstance$:i;return o?o[l]:void 0}},configurable:!0,enumerable:!0}),Object.defineProperty(i,l,{set(d){const o=L(this);if(f){const u=$&32?this[l]:o.$hostElement$[l];typeof u=="undefined"&&o.$instanceValues$.get(l)?d=o.$instanceValues$.get(l):!o.$instanceValues$.get(l)&&u&&o.$instanceValues$.set(l,u),f.apply(this,[Q(d,$)]),d=$&32?this[l]:o.$hostElement$[l],Y(this,l,d,t);return}{if(!(s&1)||!(t.$members$[l][0]&4096)){Y(this,l,d,t),s&1&&!o.$lazyInstance$&&o.$onReadyPromise$.then(()=>{t.$members$[l][0]&4096&&o.$lazyInstance$[l]!==o.$instanceValues$.get(l)&&(o.$lazyInstance$[l]=d)});return}const u=()=>{const h=o.$lazyInstance$[l];!o.$instanceValues$.get(l)&&h&&o.$instanceValues$.set(l,h),o.$lazyInstance$[l]=Q(d,$),Y(this,l,o.$lazyInstance$[l],t)};o.$lazyInstance$?u():o.$onReadyPromise$.then(()=>u())}}})}}),s&1){const l=new Map;i.attributeChangedCallback=function($,c,f){v.jmp(()=>{var d;const o=l.get($);if(this.hasOwnProperty(o)&&I.lazyLoad)f=this[o],delete this[o];else{if(i.hasOwnProperty(o)&&typeof this[o]=="number"&&this[o]==f)return;if(o==null){const h=L(this),p=h==null?void 0:h.$flags$;if(p&&!(p&8)&&p&128&&f!==c){const S=h.$lazyInstance$,g=(d=t.$watchers$)==null?void 0:d[$];g==null||g.forEach(_=>{S[_]!=null&&S[_].call(S,f,c,$)})}return}}const u=Object.getOwnPropertyDescriptor(i,o);f=f===null&&typeof this[o]=="boolean"?!1:f,f!==this[o]&&(!u.get||u.set)&&(this[o]=f)})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...a.filter(([$,c])=>c[0]&15).map(([$,c])=>{var f;const d=c[1]||$;return l.set(d,$),c[0]&512&&((f=t.$attrsToReflect$)==null||f.push([$,d])),d})]))}}return e},wt=(e,t,s,r)=>z(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const $=Ke(s,t);if($&&"then"in $){const f=it();n=yield $,f()}else n=$;if(!n)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(s.$watchers$=n.watchers,He(n,s,2),n.isProxied=!0);const c=w("createInstance",s.$tagName$);t.$flags$|=8;try{new n(t)}catch(f){x(f,e)}t.$flags$&=-9,t.$flags$|=128,c()}else{n=e.constructor;const $=e.localName;customElements.whenDefined($).then(()=>t.$flags$|=128)}if(n&&n.style){let $;typeof n.style=="string"&&($=n.style);const c=be(s);if(!q.has(c)){const f=w("registerStyles",s.$tagName$);dt(c,$,!!(s.$flags$&1)),f()}}}const i=t.$ancestorComponent$,a=()=>ne(t,!0);i&&i["s-rc"]?i["s-rc"].push(a):a()}),Pt=(e,t)=>{},Ot=e=>{if(!(v.$flags$&1)){const t=L(e),s=t.$cmpMeta$,r=w("connectedCallback",s.$tagName$);if(t.$flags$&1)ze(e,t,s.$listeners$),t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Pt());else{t.$flags$|=1,s.$flags$&12&&mt(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Re(t,t.$ancestorComponent$=n);break}}s.$members$&&Object.entries(s.$members$).map(([n,[i]])=>{if(i&31&&e.hasOwnProperty(n)){const a=e[n];delete e[n],e[n]=a}}),wt(e,t,s)}r()}},mt=e=>{const t=e["s-cr"]=k.createComment("");t["s-cn"]=!0,P(e,t,e.firstChild)},At=(e,t)=>{},jt=e=>z(exports,null,function*(){if(!(v.$flags$&1)){const t=L(e);t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>At())}m.has(e)&&m.delete(e),e.shadowRoot&&m.has(e.shadowRoot)&&m.delete(e.shadowRoot)}),Rt=(e,t={})=>{var s;const r=w(),n=[],i=t.exclude||[],a=A.customElements,l=k.head,$=l.querySelector("meta[charset]"),c=k.createElement("style"),f=[];let d,o=!0;Object.assign(v,t),v.$resourcesUrl$=new URL(t.resourcesUrl||"./",k.baseURI).href;let u=!1;if(e.map(h=>{h[1].map(p=>{var S;const g={$flags$:p[0],$tagName$:p[1],$members$:p[2],$listeners$:p[3]};g.$flags$&4&&(u=!0),g.$members$=p[2],g.$listeners$=p[3],g.$attrsToReflect$=[],g.$watchers$=(S=p[4])!=null?S:{};const _=g.$tagName$,y=class extends HTMLElement{constructor(T){if(super(T),this.hasRegisteredEventListeners=!1,T=this,Je(T,g),g.$flags$&1){if(!T.shadowRoot)T.attachShadow({mode:"open"});else if(T.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${T.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const T=L(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ze(this,T,g.$listeners$)),d&&(clearTimeout(d),d=null),o?f.push(this):v.jmp(()=>Ot(this))}disconnectedCallback(){v.jmp(()=>jt(this)),v.raf(()=>{var T;const H=L(this),re=f.findIndex(Ue=>Ue===this);re>-1&&f.splice(re,1),((T=H==null?void 0:H.$vnode$)==null?void 0:T.$elm$)instanceof Node&&!H.$vnode$.$elm$.isConnected&&delete H.$vnode$.$elm$})}componentOnReady(){return L(this).$onReadyPromise$}};g.$lazyBundleId$=h[0],!i.includes(_)&&!a.get(_)&&(n.push(_),a.define(_,He(y,g,1)))})}),n.length>0&&(u&&(c.textContent+=pe),c.textContent+=n.sort()+Ze,c.innerHTML.length)){c.setAttribute("data-styles","");const h=(s=v.$nonce$)!=null?s:Ee(k);h!=null&&c.setAttribute("nonce",h),l.insertBefore(c,$?$.nextSibling:l.firstChild)}o=!1,f.length?f.map(h=>h.connectedCallback()):v.jmp(()=>d=setTimeout(Ie,30)),r()},It=(e,t)=>t,ze=(e,t,s,r)=>{s&&s.map(([n,i,a])=>{const l=zt(e,n),$=Ht(t,a),c=Ut(n);v.ael(l,i,$,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>v.rel(l,i,$,c))})},Ht=(e,t)=>s=>{var r;try{e.$flags$&256?(r=e.$lazyInstance$)==null||r[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s])}catch(n){x(n,e.$hostElement$)}},zt=(e,t)=>t&8?A:e,Ut=e=>Me?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;exports.Fragment=It;exports.bootstrapLazy=Rt;exports.createEvent=ft;exports.getAssetPath=et;exports.getElement=Le;exports.h=te;exports.promiseResolve=ge;exports.registerInstance=Xe;
|