@everymatrix/player-account-modal 1.85.16 → 1.85.18

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.
@@ -1,4 +1,4 @@
1
- function L() {
1
+ function S() {
2
2
  }
3
3
  const st = (t) => t;
4
4
  function dt(t, e) {
@@ -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) {
@@ -55,7 +55,7 @@ function yt(t) {
55
55
  return -1;
56
56
  }
57
57
  const ct = typeof window < "u";
58
- let pt = ct ? () => window.performance.now() : () => Date.now(), K = ct ? (t) => requestAnimationFrame(t) : L;
58
+ let pt = ct ? () => window.performance.now() : () => Date.now(), K = ct ? (t) => requestAnimationFrame(t) : S;
59
59
  const x = /* @__PURE__ */ new Set();
60
60
  function lt(t) {
61
61
  x.forEach((e) => {
@@ -116,16 +116,16 @@ function E(t) {
116
116
  function Et(t) {
117
117
  return document.createTextNode(t);
118
118
  }
119
- function Ct() {
119
+ function kt() {
120
120
  return Et("");
121
121
  }
122
122
  function P(t, e, n) {
123
123
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
124
124
  }
125
- function kt(t) {
125
+ function vt(t) {
126
126
  return Array.from(t.childNodes);
127
127
  }
128
- function vt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
128
+ function Ct(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
129
129
  return new CustomEvent(t, { detail: e, bubbles: n, cancelable: i });
130
130
  }
131
131
  function Mt(t) {
@@ -139,13 +139,13 @@ function Mt(t) {
139
139
  }
140
140
  const T = /* @__PURE__ */ new Map();
141
141
  let D = 0;
142
- function St(t) {
142
+ function Lt(t) {
143
143
  let e = 5381, n = t.length;
144
144
  for (; n--; )
145
145
  e = (e << 5) - e ^ t.charCodeAt(n);
146
146
  return e >>> 0;
147
147
  }
148
- function Lt(t, e) {
148
+ function St(t, e) {
149
149
  const n = { stylesheet: xt(e), rules: {} };
150
150
  return T.set(t, n), n;
151
151
  }
@@ -159,7 +159,7 @@ function Z(t, e, n, i, s, o, f, r = 0) {
159
159
  `;
160
160
  }
161
161
  const h = l + `100% {${f(n, 1 - n)}}
162
- }`, a = `__svelte_${St(h)}_${r}`, $ = Q(t), { stylesheet: m, rules: d } = T.get($) || Lt($, t);
162
+ }`, a = `__svelte_${Lt(h)}_${r}`, $ = Q(t), { stylesheet: m, rules: d } = T.get($) || St($, t);
163
163
  d[a] || (d[a] = !0, m.insertRule(`@keyframes ${a} ${h}`, m.cssRules.length));
164
164
  const _ = t.style.animation || "";
165
165
  return t.style.animation = `${_ ? `${_}, ` : ""}${a} ${i}ms linear ${s}ms 1 both`, D += 1, a;
@@ -192,16 +192,16 @@ function Nt(t) {
192
192
  At().$$.on_mount.push(t);
193
193
  }
194
194
  const b = [], H = [];
195
- let C = [];
195
+ let k = [];
196
196
  const tt = [], Pt = /* @__PURE__ */ Promise.resolve();
197
197
  let W = !1;
198
198
  function Bt() {
199
199
  W || (W = !0, Pt.then(y));
200
200
  }
201
201
  function j(t) {
202
- C.push(t);
202
+ k.push(t);
203
203
  }
204
- const I = /* @__PURE__ */ new Set();
204
+ const U = /* @__PURE__ */ new Set();
205
205
  let w = 0;
206
206
  function y() {
207
207
  if (w !== 0)
@@ -218,35 +218,35 @@ function y() {
218
218
  }
219
219
  for (M(null), b.length = 0, w = 0; H.length; )
220
220
  H.pop()();
221
- for (let e = 0; e < C.length; e += 1) {
222
- const n = C[e];
223
- I.has(n) || (I.add(n), n());
221
+ for (let e = 0; e < k.length; e += 1) {
222
+ const n = k[e];
223
+ U.has(n) || (U.add(n), n());
224
224
  }
225
- C.length = 0;
225
+ k.length = 0;
226
226
  } while (b.length);
227
227
  for (; tt.length; )
228
228
  tt.pop()();
229
- W = !1, I.clear(), M(t);
229
+ W = !1, U.clear(), M(t);
230
230
  }
231
231
  function Rt(t) {
232
232
  if (t.fragment !== null) {
233
- t.update(), k(t.before_update);
233
+ t.update(), v(t.before_update);
234
234
  const e = t.dirty;
235
235
  t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(j);
236
236
  }
237
237
  }
238
238
  function Tt(t) {
239
239
  const e = [], n = [];
240
- C.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), C = e;
240
+ k.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), k = e;
241
241
  }
242
- let v;
242
+ let C;
243
243
  function Dt() {
244
- return v || (v = Promise.resolve(), v.then(() => {
245
- v = null;
246
- })), v;
244
+ return C || (C = Promise.resolve(), C.then(() => {
245
+ C = null;
246
+ })), C;
247
247
  }
248
248
  function J(t, e, n) {
249
- t.dispatchEvent(vt(`${e ? "intro" : "outro"}${n}`));
249
+ t.dispatchEvent(Ct(`${e ? "intro" : "outro"}${n}`));
250
250
  }
251
251
  const B = /* @__PURE__ */ new Set();
252
252
  let g;
@@ -259,9 +259,9 @@ function Ht() {
259
259
  };
260
260
  }
261
261
  function zt() {
262
- g.r || k(g.c), g = g.p;
262
+ g.r || v(g.c), g = g.p;
263
263
  }
264
- function S(t, e) {
264
+ function L(t, e) {
265
265
  t && t.i && (B.delete(t), t.i(e));
266
266
  }
267
267
  function q(t, e, n, i) {
@@ -274,7 +274,7 @@ function q(t, e, n, i) {
274
274
  } else
275
275
  i && i();
276
276
  }
277
- const Ut = { duration: 0 };
277
+ const Ft = { duration: 0 };
278
278
  function et(t, e, n, i) {
279
279
  let o = e(t, n, { direction: "both" }), f = i ? 0 : 1, r = null, c = null, l = null, h;
280
280
  function a() {
@@ -300,15 +300,15 @@ function et(t, e, n, i) {
300
300
  delay: _ = 0,
301
301
  duration: u = 300,
302
302
  easing: p = st,
303
- tick: z = L,
304
- css: U
305
- } = o || Ut, F = {
303
+ tick: z = S,
304
+ css: F
305
+ } = o || Ft, I = {
306
306
  start: pt() + _,
307
307
  b: d
308
308
  };
309
- 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, f, d, u, _, p, U)), d && z(0, 1), r = $(F, u), j(() => J(t, d, "start")), wt((N) => {
311
- if (c && N > c.start && (r = $(c, u), c = null, J(t, r.b, "start"), U && (a(), l = Z(
309
+ d || (I.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 = 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(
312
312
  t,
313
313
  f,
314
314
  r.b,
@@ -318,7 +318,7 @@ function et(t, e, n, i) {
318
318
  o.css
319
319
  ))), r) {
320
320
  if (N >= r.end)
321
- z(f = r.b, 1 - f), 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;
322
322
  else if (N >= r.start) {
323
323
  const at = N - r.start;
324
324
  f = r.a + r.d * p(at / r.duration), z(f, 1 - f);
@@ -338,16 +338,16 @@ function et(t, e, n, i) {
338
338
  }
339
339
  };
340
340
  }
341
- function Ft(t, e, n) {
341
+ function It(t, e, n) {
342
342
  const { fragment: i, after_update: s } = t.$$;
343
343
  i && i.m(e, n), j(() => {
344
344
  const o = t.$$.on_mount.map(rt).filter(G);
345
- t.$$.on_destroy ? t.$$.on_destroy.push(...o) : k(o), t.$$.on_mount = [];
345
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : v(o), t.$$.on_mount = [];
346
346
  }), s.forEach(j);
347
347
  }
348
- function It(t, e) {
348
+ function Ut(t, e) {
349
349
  const n = t.$$;
350
- 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 = []);
351
351
  }
352
352
  function Jt(t, e) {
353
353
  t.$$.dirty[0] === -1 && (b.push(t), Bt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
@@ -360,7 +360,7 @@ function Vt(t, e, n, i, s, o, f = null, r = [-1]) {
360
360
  ctx: [],
361
361
  // state
362
362
  props: o,
363
- update: L,
363
+ update: S,
364
364
  not_equal: s,
365
365
  bound: Y(),
366
366
  // lifecycle
@@ -381,13 +381,13 @@ function Vt(t, e, n, i, s, o, f = null, r = [-1]) {
381
381
  if (l.ctx = n ? n(t, e.props || {}, (a, $, ...m) => {
382
382
  const d = m.length ? m[0] : $;
383
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)), $;
384
- }) : [], 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) {
385
385
  if (e.hydrate) {
386
- const a = kt(e.target);
386
+ const a = vt(e.target);
387
387
  l.fragment && l.fragment.l(a), a.forEach(A);
388
388
  } else
389
389
  l.fragment && l.fragment.c();
390
- e.intro && S(t.$$.fragment), Ft(t, e.target, e.anchor), y();
390
+ e.intro && L(t.$$.fragment), It(t, e.target, e.anchor), y();
391
391
  }
392
392
  M(c);
393
393
  }
@@ -586,7 +586,7 @@ class qt {
586
586
  $$set = void 0;
587
587
  /** @returns {void} */
588
588
  $destroy() {
589
- It(this, 1), this.$destroy = L;
589
+ Ut(this, 1), this.$destroy = S;
590
590
  }
591
591
  /**
592
592
  * @template {Extract<keyof Events, string>} K
@@ -596,7 +596,7 @@ class qt {
596
596
  */
597
597
  $on(e, n) {
598
598
  if (!G(n))
599
- return L;
599
+ return S;
600
600
  const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
601
601
  return i.push(n), () => {
602
602
  const s = i.indexOf(n);
@@ -629,6 +629,8 @@ function Kt(t, e) {
629
629
  }
630
630
  }
631
631
  function Qt(t, e) {
632
+ if (!t || !e)
633
+ return;
632
634
  const n = new URL(e);
633
635
  fetch(n.href).then((i) => i.text()).then((i) => {
634
636
  const s = document.createElement("style");
@@ -689,7 +691,7 @@ function it(t) {
689
691
  );
690
692
  },
691
693
  i(c) {
692
- o || (S(r, c), c && j(() => {
694
+ o || (L(r, c), c && j(() => {
693
695
  o && (s || (s = et(n, nt, { transitionDuration: (
694
696
  /*duration*/
695
697
  t[1]
@@ -714,7 +716,7 @@ function Zt(t) {
714
716
  );
715
717
  return {
716
718
  c() {
717
- i && i.c(), e = Ct();
719
+ i && i.c(), e = kt();
718
720
  },
719
721
  m(s, o) {
720
722
  i && i.m(s, o), X(s, e, o), n = !0;
@@ -722,12 +724,12 @@ function Zt(t) {
722
724
  p(s, [o]) {
723
725
  /*show*/
724
726
  s[0] ? i ? (i.p(s, o), o & /*show*/
725
- 1 && S(i, 1)) : (i = it(s), i.c(), S(i, 1), i.m(e.parentNode, e)) : i && (Ht(), q(i, 1, 1, () => {
727
+ 1 && L(i, 1)) : (i = it(s), i.c(), L(i, 1), i.m(e.parentNode, e)) : i && (Ht(), q(i, 1, 1, () => {
726
728
  i = null;
727
729
  }), zt());
728
730
  },
729
731
  i(s) {
730
- n || (S(i), n = !0);
732
+ n || (L(i), n = !0);
731
733
  },
732
734
  o(s) {
733
735
  q(i), n = !1;
@@ -1,4 +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 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=`{
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
2
  `;for(let f=0;f<=1;f+=c){const w=t+(n-t)*s(f);u+=f*100+`%{${l(w,1-w)}}
3
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;
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;
@@ -44,19 +44,19 @@ 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 Ct(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
61
  const r = dt(e, t, n, i);
62
62
  return e[0](r);
@@ -68,13 +68,13 @@ function dt(e, t, n, i) {
68
68
  function Mt(e, t, n, i) {
69
69
  return e[2], t.dirty;
70
70
  }
71
- function St(e, t, n, i, r, s) {
71
+ function Lt(e, t, n, i, r, s) {
72
72
  if (r) {
73
73
  const l = dt(t, n, i, s);
74
74
  e.p(l, r);
75
75
  }
76
76
  }
77
- function Lt(e) {
77
+ function St(e) {
78
78
  if (e.ctx.length > 32) {
79
79
  const t = [], n = e.ctx.length / 32;
80
80
  for (let i = 0; i < n; i++)
@@ -108,7 +108,7 @@ function q(e, t) {
108
108
  function At(e, t, n) {
109
109
  const i = Y(e);
110
110
  if (!i.getElementById(t)) {
111
- const r = C("style");
111
+ const r = k("style");
112
112
  r.id = t, r.textContent = n, _t(i, r);
113
113
  }
114
114
  }
@@ -123,7 +123,7 @@ function Y(e) {
123
123
  ) : e.ownerDocument;
124
124
  }
125
125
  function Nt(e) {
126
- const t = C("style");
126
+ const t = k("style");
127
127
  return t.textContent = "/* empty */", _t(Y(e), t), t.sheet;
128
128
  }
129
129
  function _t(e, t) {
@@ -139,7 +139,7 @@ function Z(e, t, n) {
139
139
  function N(e) {
140
140
  e.parentNode && e.parentNode.removeChild(e);
141
141
  }
142
- function C(e) {
142
+ function k(e) {
143
143
  return document.createElement(e);
144
144
  }
145
145
  function Pt(e) {
@@ -193,14 +193,14 @@ function rt(e, t, n, i, r, s, l, o = 0) {
193
193
  const _ = e.style.animation || "";
194
194
  return e.style.animation = `${_ ? `${_}, ` : ""}${a} ${i}ms linear ${r}ms 1 both`, H += 1, a;
195
195
  }
196
- function Ut(e, t) {
196
+ function Ft(e, t) {
197
197
  const n = (e.style.animation || "").split(", "), i = n.filter(
198
198
  t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
199
199
  // remove all Svelte animations
200
200
  ), r = n.length - i.length;
201
- r && (e.style.animation = i.join(", "), H -= r, H || Ft());
201
+ r && (e.style.animation = i.join(", "), H -= r, H || It());
202
202
  }
203
- function Ft() {
203
+ function It() {
204
204
  X(() => {
205
205
  H || (D.forEach((e) => {
206
206
  const { ownerNode: t } = e.stylesheet;
@@ -209,26 +209,26 @@ function Ft() {
209
209
  });
210
210
  }
211
211
  let j;
212
- function S(e) {
212
+ function L(e) {
213
213
  j = e;
214
214
  }
215
- function It() {
215
+ function Ut() {
216
216
  if (!j)
217
217
  throw new Error("Function called outside component initialization");
218
218
  return j;
219
219
  }
220
220
  function Jt(e) {
221
- It().$$.on_mount.push(e);
221
+ Ut().$$.on_mount.push(e);
222
222
  }
223
223
  const x = [], z = [];
224
- let k = [];
224
+ let v = [];
225
225
  const ot = [], Vt = /* @__PURE__ */ Promise.resolve();
226
226
  let G = !1;
227
227
  function Wt() {
228
228
  G || (G = !0, Vt.then(p));
229
229
  }
230
230
  function A(e) {
231
- k.push(e);
231
+ v.push(e);
232
232
  }
233
233
  const V = /* @__PURE__ */ new Set();
234
234
  let b = 0;
@@ -240,33 +240,33 @@ function p() {
240
240
  try {
241
241
  for (; b < x.length; ) {
242
242
  const t = x[b];
243
- b++, S(t), qt(t.$$);
243
+ b++, L(t), qt(t.$$);
244
244
  }
245
245
  } catch (t) {
246
246
  throw x.length = 0, b = 0, t;
247
247
  }
248
- for (S(null), x.length = 0, b = 0; z.length; )
248
+ for (L(null), x.length = 0, b = 0; z.length; )
249
249
  z.pop()();
250
- for (let t = 0; t < k.length; t += 1) {
251
- const n = k[t];
250
+ for (let t = 0; t < v.length; t += 1) {
251
+ const n = v[t];
252
252
  V.has(n) || (V.add(n), n());
253
253
  }
254
- k.length = 0;
254
+ v.length = 0;
255
255
  } while (x.length);
256
256
  for (; ot.length; )
257
257
  ot.pop()();
258
- G = !1, V.clear(), S(e);
258
+ G = !1, V.clear(), L(e);
259
259
  }
260
260
  function qt(e) {
261
261
  if (e.fragment !== null) {
262
- e.update(), v(e.before_update);
262
+ e.update(), C(e.before_update);
263
263
  const t = e.dirty;
264
264
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(A);
265
265
  }
266
266
  }
267
267
  function Gt(e) {
268
268
  const t = [], n = [];
269
- 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;
270
270
  }
271
271
  let M;
272
272
  function Kt() {
@@ -288,9 +288,9 @@ function Qt() {
288
288
  };
289
289
  }
290
290
  function Xt() {
291
- y.r || v(y.c), y = y.p;
291
+ y.r || C(y.c), y = y.p;
292
292
  }
293
- function L(e, t) {
293
+ function S(e, t) {
294
294
  e && e.i && (R.delete(e), e.i(t));
295
295
  }
296
296
  function K(e, t, n, i) {
@@ -307,7 +307,7 @@ const Yt = { duration: 0 };
307
307
  function ct(e, t, n, i) {
308
308
  let s = t(e, n, { direction: "both" }), l = i ? 0 : 1, o = null, c = null, u = null, h;
309
309
  function a() {
310
- u && Ut(e, u);
310
+ u && Ft(e, u);
311
311
  }
312
312
  function $(d, _) {
313
313
  const f = (
@@ -329,15 +329,15 @@ function ct(e, t, n, i) {
329
329
  delay: _ = 0,
330
330
  duration: f = 300,
331
331
  easing: w = ft,
332
- tick: U = O,
333
- css: F
334
- } = s || Yt, I = {
332
+ tick: F = O,
333
+ css: I
334
+ } = s || Yt, U = {
335
335
  start: Ot() + _,
336
336
  b: d
337
337
  };
338
- 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")), jt((P) => {
340
- if (c && P > c.start && (o = $(c, f), c = null, W(e, o.b, "start"), F && (a(), u = rt(
338
+ d || (U.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 = 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) => {
340
+ if (c && P > c.start && (o = $(c, f), c = null, W(e, o.b, "start"), I && (a(), u = rt(
341
341
  e,
342
342
  l,
343
343
  o.b,
@@ -347,10 +347,10 @@ function ct(e, t, n, i) {
347
347
  s.css
348
348
  ))), o) {
349
349
  if (P >= o.end)
350
- U(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;
351
351
  else if (P >= o.start) {
352
352
  const gt = P - o.start;
353
- l = o.a + o.d * w(gt / o.duration), U(l, 1 - l);
353
+ l = o.a + o.d * w(gt / o.duration), F(l, 1 - l);
354
354
  }
355
355
  }
356
356
  return !!(o || c);
@@ -371,19 +371,19 @@ function Zt(e, t, n) {
371
371
  const { fragment: i, after_update: r } = e.$$;
372
372
  i && i.m(t, n), A(() => {
373
373
  const s = e.$$.on_mount.map(at).filter(Q);
374
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : v(s), e.$$.on_mount = [];
374
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : C(s), e.$$.on_mount = [];
375
375
  }), r.forEach(A);
376
376
  }
377
377
  function te(e, t) {
378
378
  const n = e.$$;
379
- 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 = []);
380
380
  }
381
381
  function ee(e, t) {
382
382
  e.$$.dirty[0] === -1 && (x.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
383
383
  }
384
384
  function ne(e, t, n, i, r, s, l = null, o = [-1]) {
385
385
  const c = j;
386
- S(e);
386
+ L(e);
387
387
  const u = e.$$ = {
388
388
  fragment: null,
389
389
  ctx: [],
@@ -410,15 +410,15 @@ function ne(e, t, n, i, r, s, l = null, o = [-1]) {
410
410
  if (u.ctx = n ? n(e, t.props || {}, (a, $, ...g) => {
411
411
  const d = g.length ? g[0] : $;
412
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, v(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
413
+ }) : [], u.update(), h = !0, C(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
414
414
  if (t.hydrate) {
415
415
  const a = Rt(t.target);
416
416
  u.fragment && u.fragment.l(a), a.forEach(N);
417
417
  } else
418
418
  u.fragment && u.fragment.c();
419
- t.intro && L(e.$$.fragment), Zt(e, t.target, t.anchor), p();
419
+ t.intro && S(e.$$.fragment), Zt(e, t.target, t.anchor), p();
420
420
  }
421
- S(c);
421
+ L(c);
422
422
  }
423
423
  let mt;
424
424
  typeof HTMLElement == "function" && (mt = class extends HTMLElement {
@@ -465,7 +465,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
465
465
  let l;
466
466
  return {
467
467
  c: function() {
468
- l = C("slot"), s !== "default" && B(l, "name", s);
468
+ l = k("slot"), s !== "default" && B(l, "name", s);
469
469
  },
470
470
  /**
471
471
  * @param {HTMLElement} target
@@ -645,7 +645,7 @@ class se {
645
645
  * @returns {void}
646
646
  */
647
647
  $set(t) {
648
- 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);
649
649
  }
650
650
  }
651
651
  const re = "4";
@@ -666,6 +666,8 @@ function oe(e, t) {
666
666
  }
667
667
  }
668
668
  function ce(e, t) {
669
+ if (!e || !t)
670
+ return;
669
671
  const n = new URL(t);
670
672
  fetch(n.href).then((i) => i.text()).then((i) => {
671
673
  const r = document.createElement("style");
@@ -690,7 +692,7 @@ function ut(e) {
690
692
  const l = (
691
693
  /*#slots*/
692
694
  e[9].default
693
- ), o = vt(
695
+ ), o = Ct(
694
696
  l,
695
697
  e,
696
698
  /*$$scope*/
@@ -699,14 +701,14 @@ function ut(e) {
699
701
  );
700
702
  return {
701
703
  c() {
702
- t = C("div"), n = C("div"), i = C("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");
703
705
  },
704
706
  m(c, u) {
705
707
  Z(c, t, u), q(t, n), q(n, i), o && o.m(i, null), e[10](n), e[11](t), s = !0;
706
708
  },
707
709
  p(c, u) {
708
710
  e = c, o && o.p && (!s || u & /*$$scope*/
709
- 256) && St(
711
+ 256) && Lt(
710
712
  o,
711
713
  l,
712
714
  e,
@@ -718,7 +720,7 @@ function ut(e) {
718
720
  e[8],
719
721
  u,
720
722
  null
721
- ) : Lt(
723
+ ) : St(
722
724
  /*$$scope*/
723
725
  e[8]
724
726
  ),
@@ -726,7 +728,7 @@ function ut(e) {
726
728
  );
727
729
  },
728
730
  i(c) {
729
- s || (L(o, c), c && A(() => {
731
+ s || (S(o, c), c && A(() => {
730
732
  s && (r || (r = ct(n, lt, { transitionDuration: (
731
733
  /*duration*/
732
734
  e[1]
@@ -759,12 +761,12 @@ function fe(e) {
759
761
  p(r, [s]) {
760
762
  /*show*/
761
763
  r[0] ? i ? (i.p(r, s), s & /*show*/
762
- 1 && L(i, 1)) : (i = ut(r), i.c(), L(i, 1), i.m(t.parentNode, t)) : i && (Qt(), K(i, 1, 1, () => {
764
+ 1 && S(i, 1)) : (i = ut(r), i.c(), S(i, 1), i.m(t.parentNode, t)) : i && (Qt(), K(i, 1, 1, () => {
763
765
  i = null;
764
766
  }), Xt());
765
767
  },
766
768
  i(r) {
767
- n || (L(i), n = !0);
769
+ n || (S(i), n = !0);
768
770
  },
769
771
  o(r) {
770
772
  K(i), n = !1;
@@ -828,7 +830,7 @@ class de extends se {
828
830
  t,
829
831
  ae,
830
832
  fe,
831
- Ct,
833
+ kt,
832
834
  {
833
835
  show: 0,
834
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-DIlV8iKU.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-usxS-XYb.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-DuSTuYsh.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.85.16",
3
+ "version": "1.85.18",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-modal.cjs",
6
6
  "module": "esnext/player-account-modal.js",