@everymatrix/player-account-modal 1.87.26 → 1.87.28
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/PlayerAccountModal-CumyGEtx.js +914 -0
- package/components/PlayerAccountModal-DHxDgaZO.js +876 -0
- package/components/PlayerAccountModal-DbPNk-oG.cjs +4 -0
- package/es2015/player-account-modal.cjs +1 -1
- package/es2015/player-account-modal.js +1 -1
- package/esnext/player-account-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountModal-DT8MNsTk.js +0 -848
- package/components/PlayerAccountModal-DeiXIrVF.cjs +0 -4
- package/components/PlayerAccountModal-aE3-QMgL.js +0 -885
|
@@ -0,0 +1,914 @@
|
|
|
1
|
+
var pt = Object.defineProperty, wt = Object.defineProperties;
|
|
2
|
+
var bt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var St = Object.prototype.hasOwnProperty, xt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var G = (e, t, n) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nt = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
St.call(t, n) && G(e, n, t[n]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var n of et(t))
|
|
10
|
+
xt.call(t, n) && G(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, st = (e, t) => wt(e, bt(t));
|
|
13
|
+
var g = (e, t, n) => (G(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var it = (e, t, n) => new Promise((s, r) => {
|
|
15
|
+
var i = (c) => {
|
|
16
|
+
try {
|
|
17
|
+
o(n.next(c));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
r(l);
|
|
20
|
+
}
|
|
21
|
+
}, u = (c) => {
|
|
22
|
+
try {
|
|
23
|
+
o(n.throw(c));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
r(l);
|
|
26
|
+
}
|
|
27
|
+
}, o = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(i, u);
|
|
28
|
+
o((n = n.apply(e, t)).next());
|
|
29
|
+
});
|
|
30
|
+
function O() {
|
|
31
|
+
}
|
|
32
|
+
const at = (e) => e;
|
|
33
|
+
function Et(e, t) {
|
|
34
|
+
for (const n in t)
|
|
35
|
+
e[n] = t[n];
|
|
36
|
+
return (
|
|
37
|
+
/** @type {T & S} */
|
|
38
|
+
e
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function dt(e) {
|
|
42
|
+
return e();
|
|
43
|
+
}
|
|
44
|
+
function rt() {
|
|
45
|
+
return /* @__PURE__ */ Object.create(null);
|
|
46
|
+
}
|
|
47
|
+
function M(e) {
|
|
48
|
+
e.forEach(dt);
|
|
49
|
+
}
|
|
50
|
+
function Q(e) {
|
|
51
|
+
return typeof e == "function";
|
|
52
|
+
}
|
|
53
|
+
function Ct(e, t) {
|
|
54
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
|
+
}
|
|
56
|
+
function Lt(e) {
|
|
57
|
+
return Object.keys(e).length === 0;
|
|
58
|
+
}
|
|
59
|
+
function Mt(e, t, n, s) {
|
|
60
|
+
if (e) {
|
|
61
|
+
const r = ht(e, t, n, s);
|
|
62
|
+
return e[0](r);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function ht(e, t, n, s) {
|
|
66
|
+
return e[1] && s ? Et(n.ctx.slice(), e[1](s(t))) : n.ctx;
|
|
67
|
+
}
|
|
68
|
+
function kt(e, t, n, s) {
|
|
69
|
+
return e[2], t.dirty;
|
|
70
|
+
}
|
|
71
|
+
function vt(e, t, n, s, r, i) {
|
|
72
|
+
if (r) {
|
|
73
|
+
const u = ht(t, n, s, i);
|
|
74
|
+
e.p(u, r);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function At(e) {
|
|
78
|
+
if (e.ctx.length > 32) {
|
|
79
|
+
const t = [], n = e.ctx.length / 32;
|
|
80
|
+
for (let s = 0; s < n; s++)
|
|
81
|
+
t[s] = -1;
|
|
82
|
+
return t;
|
|
83
|
+
}
|
|
84
|
+
return -1;
|
|
85
|
+
}
|
|
86
|
+
const $t = typeof window != "undefined";
|
|
87
|
+
let Ot = $t ? () => window.performance.now() : () => Date.now(), X = $t ? (e) => requestAnimationFrame(e) : O;
|
|
88
|
+
const E = /* @__PURE__ */ new Set();
|
|
89
|
+
function _t(e) {
|
|
90
|
+
E.forEach((t) => {
|
|
91
|
+
t.c(e) || (E.delete(t), t.f());
|
|
92
|
+
}), E.size !== 0 && X(_t);
|
|
93
|
+
}
|
|
94
|
+
function jt(e) {
|
|
95
|
+
let t;
|
|
96
|
+
return E.size === 0 && X(_t), {
|
|
97
|
+
promise: new Promise((n) => {
|
|
98
|
+
E.add(t = { c: e, f: n });
|
|
99
|
+
}),
|
|
100
|
+
abort() {
|
|
101
|
+
E.delete(t);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function q(e, t) {
|
|
106
|
+
e.appendChild(t);
|
|
107
|
+
}
|
|
108
|
+
function Nt(e, t, n) {
|
|
109
|
+
const s = Z(e);
|
|
110
|
+
if (!s.getElementById(t)) {
|
|
111
|
+
const r = C("style");
|
|
112
|
+
r.id = t, r.textContent = n, mt(s, r);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function Z(e) {
|
|
116
|
+
if (!e)
|
|
117
|
+
return document;
|
|
118
|
+
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
119
|
+
return t && /** @type {ShadowRoot} */
|
|
120
|
+
t.host ? (
|
|
121
|
+
/** @type {ShadowRoot} */
|
|
122
|
+
t
|
|
123
|
+
) : e.ownerDocument;
|
|
124
|
+
}
|
|
125
|
+
function Bt(e) {
|
|
126
|
+
const t = C("style");
|
|
127
|
+
return t.textContent = "/* empty */", mt(Z(e), t), t.sheet;
|
|
128
|
+
}
|
|
129
|
+
function mt(e, t) {
|
|
130
|
+
return q(
|
|
131
|
+
/** @type {Document} */
|
|
132
|
+
e.head || e,
|
|
133
|
+
t
|
|
134
|
+
), t.sheet;
|
|
135
|
+
}
|
|
136
|
+
function tt(e, t, n) {
|
|
137
|
+
e.insertBefore(t, n || null);
|
|
138
|
+
}
|
|
139
|
+
function B(e) {
|
|
140
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
141
|
+
}
|
|
142
|
+
function C(e) {
|
|
143
|
+
return document.createElement(e);
|
|
144
|
+
}
|
|
145
|
+
function Pt(e) {
|
|
146
|
+
return document.createTextNode(e);
|
|
147
|
+
}
|
|
148
|
+
function Rt() {
|
|
149
|
+
return Pt("");
|
|
150
|
+
}
|
|
151
|
+
function R(e, t, n) {
|
|
152
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
153
|
+
}
|
|
154
|
+
function Tt(e) {
|
|
155
|
+
return Array.from(e.childNodes);
|
|
156
|
+
}
|
|
157
|
+
function Dt(e, t, { bubbles: n = !1, cancelable: s = !1 } = {}) {
|
|
158
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: s });
|
|
159
|
+
}
|
|
160
|
+
function Ht(e) {
|
|
161
|
+
const t = {};
|
|
162
|
+
return e.childNodes.forEach(
|
|
163
|
+
/** @param {Element} node */
|
|
164
|
+
(n) => {
|
|
165
|
+
t[n.slot || "default"] = !0;
|
|
166
|
+
}
|
|
167
|
+
), t;
|
|
168
|
+
}
|
|
169
|
+
const H = /* @__PURE__ */ new Map();
|
|
170
|
+
let z = 0;
|
|
171
|
+
function zt(e) {
|
|
172
|
+
let t = 5381, n = e.length;
|
|
173
|
+
for (; n--; )
|
|
174
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
175
|
+
return t >>> 0;
|
|
176
|
+
}
|
|
177
|
+
function Ut(e, t) {
|
|
178
|
+
const n = { stylesheet: Bt(t), rules: {} };
|
|
179
|
+
return H.set(e, n), n;
|
|
180
|
+
}
|
|
181
|
+
function ot(e, t, n, s, r, i, u, o = 0) {
|
|
182
|
+
const c = 16.666 / s;
|
|
183
|
+
let l = `{
|
|
184
|
+
`;
|
|
185
|
+
for (let $ = 0; $ <= 1; $ += c) {
|
|
186
|
+
const a = t + (n - t) * i($);
|
|
187
|
+
l += $ * 100 + `%{${u(a, 1 - a)}}
|
|
188
|
+
`;
|
|
189
|
+
}
|
|
190
|
+
const h = l + `100% {${u(n, 1 - n)}}
|
|
191
|
+
}`, f = `__svelte_${zt(h)}_${o}`, y = Z(e), { stylesheet: _, rules: d } = H.get(y) || Ut(y, e);
|
|
192
|
+
d[f] || (d[f] = !0, _.insertRule(`@keyframes ${f} ${h}`, _.cssRules.length));
|
|
193
|
+
const m = e.style.animation || "";
|
|
194
|
+
return e.style.animation = `${m ? `${m}, ` : ""}${f} ${s}ms linear ${r}ms 1 both`, z += 1, f;
|
|
195
|
+
}
|
|
196
|
+
function It(e, t) {
|
|
197
|
+
const n = (e.style.animation || "").split(", "), s = n.filter(
|
|
198
|
+
t ? (i) => i.indexOf(t) < 0 : (i) => i.indexOf("__svelte") === -1
|
|
199
|
+
// remove all Svelte animations
|
|
200
|
+
), r = n.length - s.length;
|
|
201
|
+
r && (e.style.animation = s.join(", "), z -= r, z || Ft());
|
|
202
|
+
}
|
|
203
|
+
function Ft() {
|
|
204
|
+
X(() => {
|
|
205
|
+
z || (H.forEach((e) => {
|
|
206
|
+
const { ownerNode: t } = e.stylesheet;
|
|
207
|
+
t && B(t);
|
|
208
|
+
}), H.clear());
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
let j;
|
|
212
|
+
function v(e) {
|
|
213
|
+
j = e;
|
|
214
|
+
}
|
|
215
|
+
function Wt() {
|
|
216
|
+
if (!j)
|
|
217
|
+
throw new Error("Function called outside component initialization");
|
|
218
|
+
return j;
|
|
219
|
+
}
|
|
220
|
+
function Gt(e) {
|
|
221
|
+
Wt().$$.on_mount.push(e);
|
|
222
|
+
}
|
|
223
|
+
const S = [], U = [];
|
|
224
|
+
let L = [];
|
|
225
|
+
const ct = [], Jt = /* @__PURE__ */ Promise.resolve();
|
|
226
|
+
let K = !1;
|
|
227
|
+
function Vt() {
|
|
228
|
+
K || (K = !0, Jt.then(w));
|
|
229
|
+
}
|
|
230
|
+
function N(e) {
|
|
231
|
+
L.push(e);
|
|
232
|
+
}
|
|
233
|
+
const J = /* @__PURE__ */ new Set();
|
|
234
|
+
let b = 0;
|
|
235
|
+
function w() {
|
|
236
|
+
if (b !== 0)
|
|
237
|
+
return;
|
|
238
|
+
const e = j;
|
|
239
|
+
do {
|
|
240
|
+
try {
|
|
241
|
+
for (; b < S.length; ) {
|
|
242
|
+
const t = S[b];
|
|
243
|
+
b++, v(t), qt(t.$$);
|
|
244
|
+
}
|
|
245
|
+
} catch (t) {
|
|
246
|
+
throw S.length = 0, b = 0, t;
|
|
247
|
+
}
|
|
248
|
+
for (v(null), S.length = 0, b = 0; U.length; )
|
|
249
|
+
U.pop()();
|
|
250
|
+
for (let t = 0; t < L.length; t += 1) {
|
|
251
|
+
const n = L[t];
|
|
252
|
+
J.has(n) || (J.add(n), n());
|
|
253
|
+
}
|
|
254
|
+
L.length = 0;
|
|
255
|
+
} while (S.length);
|
|
256
|
+
for (; ct.length; )
|
|
257
|
+
ct.pop()();
|
|
258
|
+
K = !1, J.clear(), v(e);
|
|
259
|
+
}
|
|
260
|
+
function qt(e) {
|
|
261
|
+
if (e.fragment !== null) {
|
|
262
|
+
e.update(), M(e.before_update);
|
|
263
|
+
const t = e.dirty;
|
|
264
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(N);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function Kt(e) {
|
|
268
|
+
const t = [], n = [];
|
|
269
|
+
L.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), L = t;
|
|
270
|
+
}
|
|
271
|
+
let k;
|
|
272
|
+
function Yt() {
|
|
273
|
+
return k || (k = Promise.resolve(), k.then(() => {
|
|
274
|
+
k = null;
|
|
275
|
+
})), k;
|
|
276
|
+
}
|
|
277
|
+
function V(e, t, n) {
|
|
278
|
+
e.dispatchEvent(Dt(`${t ? "intro" : "outro"}${n}`));
|
|
279
|
+
}
|
|
280
|
+
const T = /* @__PURE__ */ new Set();
|
|
281
|
+
let p;
|
|
282
|
+
function Qt() {
|
|
283
|
+
p = {
|
|
284
|
+
r: 0,
|
|
285
|
+
c: [],
|
|
286
|
+
p
|
|
287
|
+
// parent group
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function Xt() {
|
|
291
|
+
p.r || M(p.c), p = p.p;
|
|
292
|
+
}
|
|
293
|
+
function A(e, t) {
|
|
294
|
+
e && e.i && (T.delete(e), e.i(t));
|
|
295
|
+
}
|
|
296
|
+
function Y(e, t, n, s) {
|
|
297
|
+
if (e && e.o) {
|
|
298
|
+
if (T.has(e))
|
|
299
|
+
return;
|
|
300
|
+
T.add(e), p.c.push(() => {
|
|
301
|
+
T.delete(e), s && (n && e.d(1), s());
|
|
302
|
+
}), e.o(t);
|
|
303
|
+
} else
|
|
304
|
+
s && s();
|
|
305
|
+
}
|
|
306
|
+
const Zt = { duration: 0 };
|
|
307
|
+
function ut(e, t, n, s) {
|
|
308
|
+
let i = t(e, n, { direction: "both" }), u = s ? 0 : 1, o = null, c = null, l = null, h;
|
|
309
|
+
function f() {
|
|
310
|
+
l && It(e, l);
|
|
311
|
+
}
|
|
312
|
+
function y(d, m) {
|
|
313
|
+
const $ = (
|
|
314
|
+
/** @type {Program['d']} */
|
|
315
|
+
d.b - u
|
|
316
|
+
);
|
|
317
|
+
return m *= Math.abs($), {
|
|
318
|
+
a: u,
|
|
319
|
+
b: d.b,
|
|
320
|
+
d: $,
|
|
321
|
+
duration: m,
|
|
322
|
+
start: d.start,
|
|
323
|
+
end: d.start + m,
|
|
324
|
+
group: d.group
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
function _(d) {
|
|
328
|
+
const {
|
|
329
|
+
delay: m = 0,
|
|
330
|
+
duration: $ = 300,
|
|
331
|
+
easing: a = at,
|
|
332
|
+
tick: I = O,
|
|
333
|
+
css: F
|
|
334
|
+
} = i || Zt, W = {
|
|
335
|
+
start: Ot() + m,
|
|
336
|
+
b: d
|
|
337
|
+
};
|
|
338
|
+
d || (W.group = p, p.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
339
|
+
e.inert, e.inert = !0)), o || c ? c = W : (F && (f(), l = ot(e, u, d, $, m, a, F)), d && I(0, 1), o = y(W, $), N(() => V(e, d, "start")), jt((P) => {
|
|
340
|
+
if (c && P > c.start && (o = y(c, $), c = null, V(e, o.b, "start"), F && (f(), l = ot(
|
|
341
|
+
e,
|
|
342
|
+
u,
|
|
343
|
+
o.b,
|
|
344
|
+
o.duration,
|
|
345
|
+
0,
|
|
346
|
+
a,
|
|
347
|
+
i.css
|
|
348
|
+
))), o) {
|
|
349
|
+
if (P >= o.end)
|
|
350
|
+
I(u = o.b, 1 - u), V(e, o.b, "end"), c || (o.b ? f() : --o.group.r || M(o.group.c)), o = null;
|
|
351
|
+
else if (P >= o.start) {
|
|
352
|
+
const yt = P - o.start;
|
|
353
|
+
u = o.a + o.d * a(yt / o.duration), I(u, 1 - u);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return !!(o || c);
|
|
357
|
+
}));
|
|
358
|
+
}
|
|
359
|
+
return {
|
|
360
|
+
run(d) {
|
|
361
|
+
Q(i) ? Yt().then(() => {
|
|
362
|
+
i = i({ direction: d ? "in" : "out" }), _(d);
|
|
363
|
+
}) : _(d);
|
|
364
|
+
},
|
|
365
|
+
end() {
|
|
366
|
+
f(), o = c = null;
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
function te(e, t, n) {
|
|
371
|
+
const { fragment: s, after_update: r } = e.$$;
|
|
372
|
+
s && s.m(t, n), N(() => {
|
|
373
|
+
const i = e.$$.on_mount.map(dt).filter(Q);
|
|
374
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...i) : M(i), e.$$.on_mount = [];
|
|
375
|
+
}), r.forEach(N);
|
|
376
|
+
}
|
|
377
|
+
function ee(e, t) {
|
|
378
|
+
const n = e.$$;
|
|
379
|
+
n.fragment !== null && (Kt(n.after_update), M(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
380
|
+
}
|
|
381
|
+
function ne(e, t) {
|
|
382
|
+
e.$$.dirty[0] === -1 && (S.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
383
|
+
}
|
|
384
|
+
function se(e, t, n, s, r, i, u = null, o = [-1]) {
|
|
385
|
+
const c = j;
|
|
386
|
+
v(e);
|
|
387
|
+
const l = e.$$ = {
|
|
388
|
+
fragment: null,
|
|
389
|
+
ctx: [],
|
|
390
|
+
// state
|
|
391
|
+
props: i,
|
|
392
|
+
update: O,
|
|
393
|
+
not_equal: r,
|
|
394
|
+
bound: rt(),
|
|
395
|
+
// lifecycle
|
|
396
|
+
on_mount: [],
|
|
397
|
+
on_destroy: [],
|
|
398
|
+
on_disconnect: [],
|
|
399
|
+
before_update: [],
|
|
400
|
+
after_update: [],
|
|
401
|
+
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
402
|
+
// everything else
|
|
403
|
+
callbacks: rt(),
|
|
404
|
+
dirty: o,
|
|
405
|
+
skip_bound: !1,
|
|
406
|
+
root: t.target || c.$$.root
|
|
407
|
+
};
|
|
408
|
+
u && u(l.root);
|
|
409
|
+
let h = !1;
|
|
410
|
+
if (l.ctx = n ? n(e, t.props || {}, (f, y, ..._) => {
|
|
411
|
+
const d = _.length ? _[0] : y;
|
|
412
|
+
return l.ctx && r(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), h && ne(e, f)), y;
|
|
413
|
+
}) : [], l.update(), h = !0, M(l.before_update), l.fragment = s ? s(l.ctx) : !1, t.target) {
|
|
414
|
+
if (t.hydrate) {
|
|
415
|
+
const f = Tt(t.target);
|
|
416
|
+
l.fragment && l.fragment.l(f), f.forEach(B);
|
|
417
|
+
} else
|
|
418
|
+
l.fragment && l.fragment.c();
|
|
419
|
+
t.intro && A(e.$$.fragment), te(e, t.target, t.anchor), w();
|
|
420
|
+
}
|
|
421
|
+
v(c);
|
|
422
|
+
}
|
|
423
|
+
let gt;
|
|
424
|
+
typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
425
|
+
constructor(t, n, s) {
|
|
426
|
+
super();
|
|
427
|
+
/** The Svelte component constructor */
|
|
428
|
+
g(this, "$$ctor");
|
|
429
|
+
/** Slots */
|
|
430
|
+
g(this, "$$s");
|
|
431
|
+
/** The Svelte component instance */
|
|
432
|
+
g(this, "$$c");
|
|
433
|
+
/** Whether or not the custom element is connected */
|
|
434
|
+
g(this, "$$cn", !1);
|
|
435
|
+
/** Component props data */
|
|
436
|
+
g(this, "$$d", {});
|
|
437
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
438
|
+
g(this, "$$r", !1);
|
|
439
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
440
|
+
g(this, "$$p_d", {});
|
|
441
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
442
|
+
g(this, "$$l", {});
|
|
443
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
444
|
+
g(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
445
|
+
this.$$ctor = t, this.$$s = n, s && this.attachShadow({ mode: "open" });
|
|
446
|
+
}
|
|
447
|
+
addEventListener(t, n, s) {
|
|
448
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
449
|
+
const r = this.$$c.$on(t, n);
|
|
450
|
+
this.$$l_u.set(n, r);
|
|
451
|
+
}
|
|
452
|
+
super.addEventListener(t, n, s);
|
|
453
|
+
}
|
|
454
|
+
removeEventListener(t, n, s) {
|
|
455
|
+
if (super.removeEventListener(t, n, s), this.$$c) {
|
|
456
|
+
const r = this.$$l_u.get(n);
|
|
457
|
+
r && (r(), this.$$l_u.delete(n));
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
connectedCallback() {
|
|
461
|
+
return it(this, null, function* () {
|
|
462
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
463
|
+
let t = function(i) {
|
|
464
|
+
return () => {
|
|
465
|
+
let u;
|
|
466
|
+
return {
|
|
467
|
+
c: function() {
|
|
468
|
+
u = C("slot"), i !== "default" && R(u, "name", i);
|
|
469
|
+
},
|
|
470
|
+
/**
|
|
471
|
+
* @param {HTMLElement} target
|
|
472
|
+
* @param {HTMLElement} [anchor]
|
|
473
|
+
*/
|
|
474
|
+
m: function(l, h) {
|
|
475
|
+
tt(l, u, h);
|
|
476
|
+
},
|
|
477
|
+
d: function(l) {
|
|
478
|
+
l && B(u);
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
484
|
+
return;
|
|
485
|
+
const n = {}, s = Ht(this);
|
|
486
|
+
for (const i of this.$$s)
|
|
487
|
+
i in s && (n[i] = [t(i)]);
|
|
488
|
+
for (const i of this.attributes) {
|
|
489
|
+
const u = this.$$g_p(i.name);
|
|
490
|
+
u in this.$$d || (this.$$d[u] = D(u, i.value, this.$$p_d, "toProp"));
|
|
491
|
+
}
|
|
492
|
+
for (const i in this.$$p_d)
|
|
493
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
494
|
+
this.$$c = new this.$$ctor({
|
|
495
|
+
target: this.shadowRoot || this,
|
|
496
|
+
props: st(nt({}, this.$$d), {
|
|
497
|
+
$$slots: n,
|
|
498
|
+
$$scope: {
|
|
499
|
+
ctx: []
|
|
500
|
+
}
|
|
501
|
+
})
|
|
502
|
+
});
|
|
503
|
+
const r = () => {
|
|
504
|
+
this.$$r = !0;
|
|
505
|
+
for (const i in this.$$p_d)
|
|
506
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
507
|
+
const u = D(
|
|
508
|
+
i,
|
|
509
|
+
this.$$d[i],
|
|
510
|
+
this.$$p_d,
|
|
511
|
+
"toAttribute"
|
|
512
|
+
);
|
|
513
|
+
u == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, u);
|
|
514
|
+
}
|
|
515
|
+
this.$$r = !1;
|
|
516
|
+
};
|
|
517
|
+
this.$$c.$$.after_update.push(r), r();
|
|
518
|
+
for (const i in this.$$l)
|
|
519
|
+
for (const u of this.$$l[i]) {
|
|
520
|
+
const o = this.$$c.$on(i, u);
|
|
521
|
+
this.$$l_u.set(u, o);
|
|
522
|
+
}
|
|
523
|
+
this.$$l = {};
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
528
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
529
|
+
attributeChangedCallback(t, n, s) {
|
|
530
|
+
var r;
|
|
531
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = D(t, s, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
|
|
532
|
+
}
|
|
533
|
+
disconnectedCallback() {
|
|
534
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
535
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
$$g_p(t) {
|
|
539
|
+
return Object.keys(this.$$p_d).find(
|
|
540
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
541
|
+
) || t;
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
function D(e, t, n, s) {
|
|
545
|
+
var i;
|
|
546
|
+
const r = (i = n[e]) == null ? void 0 : i.type;
|
|
547
|
+
if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !n[e])
|
|
548
|
+
return t;
|
|
549
|
+
if (s === "toAttribute")
|
|
550
|
+
switch (r) {
|
|
551
|
+
case "Object":
|
|
552
|
+
case "Array":
|
|
553
|
+
return t == null ? null : JSON.stringify(t);
|
|
554
|
+
case "Boolean":
|
|
555
|
+
return t ? "" : null;
|
|
556
|
+
case "Number":
|
|
557
|
+
return t == null ? null : t;
|
|
558
|
+
default:
|
|
559
|
+
return t;
|
|
560
|
+
}
|
|
561
|
+
else
|
|
562
|
+
switch (r) {
|
|
563
|
+
case "Object":
|
|
564
|
+
case "Array":
|
|
565
|
+
return t && JSON.parse(t);
|
|
566
|
+
case "Boolean":
|
|
567
|
+
return t;
|
|
568
|
+
case "Number":
|
|
569
|
+
return t != null ? +t : t;
|
|
570
|
+
default:
|
|
571
|
+
return t;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
function ie(e, t, n, s, r, i) {
|
|
575
|
+
let u = class extends gt {
|
|
576
|
+
constructor() {
|
|
577
|
+
super(e, n, r), this.$$p_d = t;
|
|
578
|
+
}
|
|
579
|
+
static get observedAttributes() {
|
|
580
|
+
return Object.keys(t).map(
|
|
581
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
582
|
+
);
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
return Object.keys(t).forEach((o) => {
|
|
586
|
+
Object.defineProperty(u.prototype, o, {
|
|
587
|
+
get() {
|
|
588
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
589
|
+
},
|
|
590
|
+
set(c) {
|
|
591
|
+
var l;
|
|
592
|
+
c = D(o, c, t), this.$$d[o] = c, (l = this.$$c) == null || l.$set({ [o]: c });
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
}), s.forEach((o) => {
|
|
596
|
+
Object.defineProperty(u.prototype, o, {
|
|
597
|
+
get() {
|
|
598
|
+
var c;
|
|
599
|
+
return (c = this.$$c) == null ? void 0 : c[o];
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
}), e.element = /** @type {any} */
|
|
603
|
+
u, u;
|
|
604
|
+
}
|
|
605
|
+
class re {
|
|
606
|
+
constructor() {
|
|
607
|
+
/**
|
|
608
|
+
* ### PRIVATE API
|
|
609
|
+
*
|
|
610
|
+
* Do not use, may change at any time
|
|
611
|
+
*
|
|
612
|
+
* @type {any}
|
|
613
|
+
*/
|
|
614
|
+
g(this, "$$");
|
|
615
|
+
/**
|
|
616
|
+
* ### PRIVATE API
|
|
617
|
+
*
|
|
618
|
+
* Do not use, may change at any time
|
|
619
|
+
*
|
|
620
|
+
* @type {any}
|
|
621
|
+
*/
|
|
622
|
+
g(this, "$$set");
|
|
623
|
+
}
|
|
624
|
+
/** @returns {void} */
|
|
625
|
+
$destroy() {
|
|
626
|
+
ee(this, 1), this.$destroy = O;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* @template {Extract<keyof Events, string>} K
|
|
630
|
+
* @param {K} type
|
|
631
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
632
|
+
* @returns {() => void}
|
|
633
|
+
*/
|
|
634
|
+
$on(t, n) {
|
|
635
|
+
if (!Q(n))
|
|
636
|
+
return O;
|
|
637
|
+
const s = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
638
|
+
return s.push(n), () => {
|
|
639
|
+
const r = s.indexOf(n);
|
|
640
|
+
r !== -1 && s.splice(r, 1);
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* @param {Partial<Props>} props
|
|
645
|
+
* @returns {void}
|
|
646
|
+
*/
|
|
647
|
+
$set(t) {
|
|
648
|
+
this.$$set && !Lt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
const oe = "4";
|
|
652
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(oe);
|
|
653
|
+
function lt(e, { delay: t = 0, duration: n = 400, easing: s = at } = {}) {
|
|
654
|
+
const r = +getComputedStyle(e).opacity;
|
|
655
|
+
return {
|
|
656
|
+
delay: t,
|
|
657
|
+
duration: n,
|
|
658
|
+
easing: s,
|
|
659
|
+
css: (i) => `opacity: ${i * r}`
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
const x = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
663
|
+
function ce(e, t) {
|
|
664
|
+
if (e) {
|
|
665
|
+
const n = document.createElement("style");
|
|
666
|
+
n.innerHTML = t, e.appendChild(n);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
function ue(e, t) {
|
|
670
|
+
if (!e || !t)
|
|
671
|
+
return;
|
|
672
|
+
const n = new URL(t);
|
|
673
|
+
fetch(n.href).then((s) => s.text()).then((s) => {
|
|
674
|
+
const r = document.createElement("style");
|
|
675
|
+
r.innerHTML = s, e && e.appendChild(r);
|
|
676
|
+
}).catch((s) => {
|
|
677
|
+
console.error("There was an error while trying to load client styling from URL", s);
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
function le(e, t, n, s = !1) {
|
|
681
|
+
if (!window.emMessageBus)
|
|
682
|
+
return;
|
|
683
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !s)
|
|
684
|
+
return n = fe(e, t), n;
|
|
685
|
+
window[x] || (window[x] = {}), n = ae(e, t);
|
|
686
|
+
const i = n.unsubscribe.bind(n), u = () => {
|
|
687
|
+
if (window[x][t]) {
|
|
688
|
+
const o = window[x][t];
|
|
689
|
+
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[x][t];
|
|
690
|
+
}
|
|
691
|
+
i();
|
|
692
|
+
};
|
|
693
|
+
return n.unsubscribe = u, n;
|
|
694
|
+
}
|
|
695
|
+
function fe(e, t) {
|
|
696
|
+
const n = document.createElement("style");
|
|
697
|
+
return window.emMessageBus.subscribe(t, (s) => {
|
|
698
|
+
e && (n.innerHTML = s, e.appendChild(n));
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
function ae(e, t) {
|
|
702
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
703
|
+
var o;
|
|
704
|
+
if (!e)
|
|
705
|
+
return;
|
|
706
|
+
const s = e.getRootNode(), r = window[x];
|
|
707
|
+
let i = (o = r[t]) == null ? void 0 : o.sheet;
|
|
708
|
+
i ? r[t].refCount = r[t].refCount + 1 : (i = new CSSStyleSheet(), i.replaceSync(n), r[t] = {
|
|
709
|
+
sheet: i,
|
|
710
|
+
refCount: 1
|
|
711
|
+
});
|
|
712
|
+
const u = s.adoptedStyleSheets || [];
|
|
713
|
+
u.includes(i) || (s.adoptedStyleSheets = [...u, i]);
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
function de(e) {
|
|
717
|
+
Nt(e, "svelte-126fglp", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}");
|
|
718
|
+
}
|
|
719
|
+
function ft(e) {
|
|
720
|
+
let t, n, s, r, i;
|
|
721
|
+
const u = (
|
|
722
|
+
/*#slots*/
|
|
723
|
+
e[9].default
|
|
724
|
+
), o = Mt(
|
|
725
|
+
u,
|
|
726
|
+
e,
|
|
727
|
+
/*$$scope*/
|
|
728
|
+
e[8],
|
|
729
|
+
null
|
|
730
|
+
);
|
|
731
|
+
return {
|
|
732
|
+
c() {
|
|
733
|
+
t = C("div"), n = C("div"), s = C("div"), o && o.c(), R(s, "class", "ModalContainer"), R(n, "class", "ModalWindow"), R(n, "id", "Modal");
|
|
734
|
+
},
|
|
735
|
+
m(c, l) {
|
|
736
|
+
tt(c, t, l), q(t, n), q(n, s), o && o.m(s, null), e[10](n), e[11](t), i = !0;
|
|
737
|
+
},
|
|
738
|
+
p(c, l) {
|
|
739
|
+
e = c, o && o.p && (!i || l & /*$$scope*/
|
|
740
|
+
256) && vt(
|
|
741
|
+
o,
|
|
742
|
+
u,
|
|
743
|
+
e,
|
|
744
|
+
/*$$scope*/
|
|
745
|
+
e[8],
|
|
746
|
+
i ? kt(
|
|
747
|
+
u,
|
|
748
|
+
/*$$scope*/
|
|
749
|
+
e[8],
|
|
750
|
+
l,
|
|
751
|
+
null
|
|
752
|
+
) : At(
|
|
753
|
+
/*$$scope*/
|
|
754
|
+
e[8]
|
|
755
|
+
),
|
|
756
|
+
null
|
|
757
|
+
);
|
|
758
|
+
},
|
|
759
|
+
i(c) {
|
|
760
|
+
i || (A(o, c), c && N(() => {
|
|
761
|
+
i && (r || (r = ut(n, lt, { transitionDuration: (
|
|
762
|
+
/*duration*/
|
|
763
|
+
e[1]
|
|
764
|
+
) }, !0)), r.run(1));
|
|
765
|
+
}), i = !0);
|
|
766
|
+
},
|
|
767
|
+
o(c) {
|
|
768
|
+
Y(o, c), c && (r || (r = ut(n, lt, { transitionDuration: (
|
|
769
|
+
/*duration*/
|
|
770
|
+
e[1]
|
|
771
|
+
) }, !1)), r.run(0)), i = !1;
|
|
772
|
+
},
|
|
773
|
+
d(c) {
|
|
774
|
+
c && B(t), o && o.d(c), e[10](null), c && r && r.end(), e[11](null);
|
|
775
|
+
}
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
function he(e) {
|
|
779
|
+
let t, n, s = (
|
|
780
|
+
/*show*/
|
|
781
|
+
e[0] && ft(e)
|
|
782
|
+
);
|
|
783
|
+
return {
|
|
784
|
+
c() {
|
|
785
|
+
s && s.c(), t = Rt();
|
|
786
|
+
},
|
|
787
|
+
m(r, i) {
|
|
788
|
+
s && s.m(r, i), tt(r, t, i), n = !0;
|
|
789
|
+
},
|
|
790
|
+
p(r, [i]) {
|
|
791
|
+
/*show*/
|
|
792
|
+
r[0] ? s ? (s.p(r, i), i & /*show*/
|
|
793
|
+
1 && A(s, 1)) : (s = ft(r), s.c(), A(s, 1), s.m(t.parentNode, t)) : s && (Qt(), Y(s, 1, 1, () => {
|
|
794
|
+
s = null;
|
|
795
|
+
}), Xt());
|
|
796
|
+
},
|
|
797
|
+
i(r) {
|
|
798
|
+
n || (A(s), n = !0);
|
|
799
|
+
},
|
|
800
|
+
o(r) {
|
|
801
|
+
Y(s), n = !1;
|
|
802
|
+
},
|
|
803
|
+
d(r) {
|
|
804
|
+
r && B(t), s && s.d(r);
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
function $e(e, t, n) {
|
|
809
|
+
let { $$slots: s = {}, $$scope: r } = t, { show: i = !1 } = t, { duration: u = 350 } = t, { clientstyling: o = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: l } = t, { showmodaleventname: h = "ShowLimitsConfirmationModal" } = t, f, y, _;
|
|
810
|
+
const d = (a) => {
|
|
811
|
+
switch (a.data.type) {
|
|
812
|
+
case "ModalClosed":
|
|
813
|
+
n(0, i = !1);
|
|
814
|
+
break;
|
|
815
|
+
case h:
|
|
816
|
+
n(0, i = !0), window.postMessage({ type: "DisableScroll" }, window.location.href);
|
|
817
|
+
break;
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
Gt(() => (window.addEventListener("message", d, !1), () => {
|
|
821
|
+
window.removeEventListener("message", d);
|
|
822
|
+
}));
|
|
823
|
+
function m(a) {
|
|
824
|
+
U[a ? "unshift" : "push"](() => {
|
|
825
|
+
_ = a, n(3, _);
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
function $(a) {
|
|
829
|
+
U[a ? "unshift" : "push"](() => {
|
|
830
|
+
f = a, n(2, f);
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
return e.$$set = (a) => {
|
|
834
|
+
"show" in a && n(0, i = a.show), "duration" in a && n(1, u = a.duration), "clientstyling" in a && n(4, o = a.clientstyling), "clientstylingurl" in a && n(5, c = a.clientstylingurl), "mbsource" in a && n(6, l = a.mbsource), "showmodaleventname" in a && n(7, h = a.showmodaleventname), "$$scope" in a && n(8, r = a.$$scope);
|
|
835
|
+
}, e.$$.update = () => {
|
|
836
|
+
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
837
|
+
20 && o && f && ce(f, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
838
|
+
36 && c && f && ue(f, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
839
|
+
68 && l && f && le(f, `${l}.Style`, y);
|
|
840
|
+
}, [
|
|
841
|
+
i,
|
|
842
|
+
u,
|
|
843
|
+
f,
|
|
844
|
+
_,
|
|
845
|
+
o,
|
|
846
|
+
c,
|
|
847
|
+
l,
|
|
848
|
+
h,
|
|
849
|
+
r,
|
|
850
|
+
s,
|
|
851
|
+
m,
|
|
852
|
+
$
|
|
853
|
+
];
|
|
854
|
+
}
|
|
855
|
+
class _e extends re {
|
|
856
|
+
constructor(t) {
|
|
857
|
+
super(), se(
|
|
858
|
+
this,
|
|
859
|
+
t,
|
|
860
|
+
$e,
|
|
861
|
+
he,
|
|
862
|
+
Ct,
|
|
863
|
+
{
|
|
864
|
+
show: 0,
|
|
865
|
+
duration: 1,
|
|
866
|
+
clientstyling: 4,
|
|
867
|
+
clientstylingurl: 5,
|
|
868
|
+
mbsource: 6,
|
|
869
|
+
showmodaleventname: 7
|
|
870
|
+
},
|
|
871
|
+
de
|
|
872
|
+
);
|
|
873
|
+
}
|
|
874
|
+
get show() {
|
|
875
|
+
return this.$$.ctx[0];
|
|
876
|
+
}
|
|
877
|
+
set show(t) {
|
|
878
|
+
this.$$set({ show: t }), w();
|
|
879
|
+
}
|
|
880
|
+
get duration() {
|
|
881
|
+
return this.$$.ctx[1];
|
|
882
|
+
}
|
|
883
|
+
set duration(t) {
|
|
884
|
+
this.$$set({ duration: t }), w();
|
|
885
|
+
}
|
|
886
|
+
get clientstyling() {
|
|
887
|
+
return this.$$.ctx[4];
|
|
888
|
+
}
|
|
889
|
+
set clientstyling(t) {
|
|
890
|
+
this.$$set({ clientstyling: t }), w();
|
|
891
|
+
}
|
|
892
|
+
get clientstylingurl() {
|
|
893
|
+
return this.$$.ctx[5];
|
|
894
|
+
}
|
|
895
|
+
set clientstylingurl(t) {
|
|
896
|
+
this.$$set({ clientstylingurl: t }), w();
|
|
897
|
+
}
|
|
898
|
+
get mbsource() {
|
|
899
|
+
return this.$$.ctx[6];
|
|
900
|
+
}
|
|
901
|
+
set mbsource(t) {
|
|
902
|
+
this.$$set({ mbsource: t }), w();
|
|
903
|
+
}
|
|
904
|
+
get showmodaleventname() {
|
|
905
|
+
return this.$$.ctx[7];
|
|
906
|
+
}
|
|
907
|
+
set showmodaleventname(t) {
|
|
908
|
+
this.$$set({ showmodaleventname: t }), w();
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
ie(_e, { show: { type: "Boolean" }, duration: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, showmodaleventname: {} }, ["default"], [], !0);
|
|
912
|
+
export {
|
|
913
|
+
_e as default
|
|
914
|
+
};
|