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