@everymatrix/player-account-modal 1.86.3 → 1.86.5

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