@everymatrix/player-account-modal 1.54.12 → 1.56.0

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 j() {
1
+ function L() {
2
2
  }
3
3
  const st = (t) => t;
4
4
  function dt(t, e) {
@@ -8,14 +8,14 @@ function dt(t, e) {
8
8
  t
9
9
  );
10
10
  }
11
- function ot(t) {
11
+ function rt(t) {
12
12
  return t();
13
13
  }
14
14
  function Y() {
15
15
  return /* @__PURE__ */ Object.create(null);
16
16
  }
17
- function M(t) {
18
- t.forEach(ot);
17
+ function k(t) {
18
+ t.forEach(rt);
19
19
  }
20
20
  function G(t) {
21
21
  return typeof t == "function";
@@ -28,20 +28,20 @@ function $t(t) {
28
28
  }
29
29
  function _t(t, e, n, i) {
30
30
  if (t) {
31
- const s = rt(t, e, n, i);
31
+ const s = ot(t, e, n, i);
32
32
  return t[0](s);
33
33
  }
34
34
  }
35
- function rt(t, e, n, i) {
35
+ function ot(t, e, n, i) {
36
36
  return t[1] && i ? dt(n.ctx.slice(), t[1](i(e))) : n.ctx;
37
37
  }
38
38
  function mt(t, e, n, i) {
39
39
  return t[2], e.dirty;
40
40
  }
41
- function gt(t, e, n, i, s, r) {
41
+ function gt(t, e, n, i, s, o) {
42
42
  if (s) {
43
- const u = rt(e, n, i, r);
44
- t.p(u, s);
43
+ const f = ot(e, n, i, o);
44
+ t.p(f, s);
45
45
  }
46
46
  }
47
47
  function yt(t) {
@@ -53,22 +53,22 @@ function yt(t) {
53
53
  }
54
54
  return -1;
55
55
  }
56
- const lt = typeof window < "u";
57
- let pt = lt ? () => window.performance.now() : () => Date.now(), K = lt ? (t) => requestAnimationFrame(t) : j;
58
- const C = /* @__PURE__ */ new Set();
59
- function ct(t) {
60
- C.forEach((e) => {
61
- e.c(t) || (C.delete(e), e.f());
62
- }), C.size !== 0 && K(ct);
56
+ const ct = typeof window < "u";
57
+ let pt = ct ? () => window.performance.now() : () => Date.now(), K = ct ? (t) => requestAnimationFrame(t) : L;
58
+ const x = /* @__PURE__ */ new Set();
59
+ function lt(t) {
60
+ x.forEach((e) => {
61
+ e.c(t) || (x.delete(e), e.f());
62
+ }), x.size !== 0 && K(lt);
63
63
  }
64
64
  function wt(t) {
65
65
  let e;
66
- return C.size === 0 && K(ct), {
66
+ return x.size === 0 && K(lt), {
67
67
  promise: new Promise((n) => {
68
- C.add(e = { c: t, f: n });
68
+ x.add(e = { c: t, f: n });
69
69
  }),
70
70
  abort() {
71
- C.delete(e);
71
+ x.delete(e);
72
72
  }
73
73
  };
74
74
  }
@@ -78,7 +78,7 @@ function V(t, e) {
78
78
  function bt(t, e, n) {
79
79
  const i = Q(t);
80
80
  if (!i.getElementById(e)) {
81
- const s = v("style");
81
+ const s = E("style");
82
82
  s.id = e, s.textContent = n, ut(i, s);
83
83
  }
84
84
  }
@@ -92,7 +92,7 @@ function Q(t) {
92
92
  ) : t.ownerDocument;
93
93
  }
94
94
  function xt(t) {
95
- const e = v("style");
95
+ const e = E("style");
96
96
  return e.textContent = "/* empty */", ut(Q(t), e), e.sheet;
97
97
  }
98
98
  function ut(t, e) {
@@ -105,10 +105,10 @@ function ut(t, e) {
105
105
  function X(t, e, n) {
106
106
  t.insertBefore(e, n || null);
107
107
  }
108
- function P(t) {
108
+ function A(t) {
109
109
  t.parentNode && t.parentNode.removeChild(t);
110
110
  }
111
- function v(t) {
111
+ function E(t) {
112
112
  return document.createElement(t);
113
113
  }
114
114
  function Et(t) {
@@ -117,13 +117,13 @@ function Et(t) {
117
117
  function Ct() {
118
118
  return Et("");
119
119
  }
120
- function B(t, e, n) {
120
+ function P(t, e, n) {
121
121
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
122
122
  }
123
- function vt(t) {
123
+ function kt(t) {
124
124
  return Array.from(t.childNodes);
125
125
  }
126
- function kt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
126
+ function vt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
127
127
  return new CustomEvent(t, { detail: e, bubbles: n, cancelable: i });
128
128
  }
129
129
  function Mt(t) {
@@ -135,225 +135,225 @@ function Mt(t) {
135
135
  }
136
136
  ), e;
137
137
  }
138
- const z = /* @__PURE__ */ new Map();
139
- let H = 0;
140
- function Lt(t) {
138
+ const T = /* @__PURE__ */ new Map();
139
+ let D = 0;
140
+ function St(t) {
141
141
  let e = 5381, n = t.length;
142
142
  for (; n--; ) e = (e << 5) - e ^ t.charCodeAt(n);
143
143
  return e >>> 0;
144
144
  }
145
- function Ot(t, e) {
145
+ function Lt(t, e) {
146
146
  const n = { stylesheet: xt(e), rules: {} };
147
- return z.set(t, n), n;
147
+ return T.set(t, n), n;
148
148
  }
149
- function Z(t, e, n, i, s, r, u, o = 0) {
150
- const l = 16.666 / i;
151
- let c = `{
149
+ function Z(t, e, n, i, s, o, f, r = 0) {
150
+ const c = 16.666 / i;
151
+ let l = `{
152
152
  `;
153
- for (let $ = 0; $ <= 1; $ += l) {
154
- const f = e + (n - e) * r($);
155
- c += $ * 100 + `%{${u(f, 1 - f)}}
153
+ for (let u = 0; u <= 1; u += c) {
154
+ const p = e + (n - e) * o(u);
155
+ l += u * 100 + `%{${f(p, 1 - p)}}
156
156
  `;
157
157
  }
158
- const h = c + `100% {${u(n, 1 - n)}}
159
- }`, d = `__svelte_${Lt(h)}_${o}`, m = Q(t), { stylesheet: g, rules: a } = z.get(m) || Ot(m, t);
160
- a[d] || (a[d] = !0, g.insertRule(`@keyframes ${d} ${h}`, g.cssRules.length));
158
+ const h = l + `100% {${f(n, 1 - n)}}
159
+ }`, a = `__svelte_${St(h)}_${r}`, $ = Q(t), { stylesheet: m, rules: d } = T.get($) || Lt($, t);
160
+ d[a] || (d[a] = !0, m.insertRule(`@keyframes ${a} ${h}`, m.cssRules.length));
161
161
  const _ = t.style.animation || "";
162
- return t.style.animation = `${_ ? `${_}, ` : ""}${d} ${i}ms linear ${s}ms 1 both`, H += 1, d;
162
+ return t.style.animation = `${_ ? `${_}, ` : ""}${a} ${i}ms linear ${s}ms 1 both`, D += 1, a;
163
163
  }
164
- function St(t, e) {
164
+ function Ot(t, e) {
165
165
  const n = (t.style.animation || "").split(", "), i = n.filter(
166
- e ? (r) => r.indexOf(e) < 0 : (r) => r.indexOf("__svelte") === -1
166
+ e ? (o) => o.indexOf(e) < 0 : (o) => o.indexOf("__svelte") === -1
167
167
  // remove all Svelte animations
168
168
  ), s = n.length - i.length;
169
- s && (t.style.animation = i.join(", "), H -= s, H || jt());
169
+ s && (t.style.animation = i.join(", "), D -= s, D || jt());
170
170
  }
171
171
  function jt() {
172
172
  K(() => {
173
- H || (z.forEach((t) => {
173
+ D || (T.forEach((t) => {
174
174
  const { ownerNode: e } = t.stylesheet;
175
- e && P(e);
176
- }), z.clear());
175
+ e && A(e);
176
+ }), T.clear());
177
177
  });
178
178
  }
179
- let A;
180
- function O(t) {
181
- A = t;
179
+ let O;
180
+ function M(t) {
181
+ O = t;
182
182
  }
183
183
  function At() {
184
- if (!A) throw new Error("Function called outside component initialization");
185
- return A;
184
+ if (!O) throw new Error("Function called outside component initialization");
185
+ return O;
186
186
  }
187
187
  function Nt(t) {
188
188
  At().$$.on_mount.push(t);
189
189
  }
190
- const E = [], F = [];
191
- let k = [];
190
+ const b = [], H = [];
191
+ let C = [];
192
192
  const tt = [], Pt = /* @__PURE__ */ Promise.resolve();
193
193
  let W = !1;
194
- function Rt() {
195
- W || (W = !0, Pt.then(w));
194
+ function Bt() {
195
+ W || (W = !0, Pt.then(y));
196
196
  }
197
- function N(t) {
198
- k.push(t);
197
+ function j(t) {
198
+ C.push(t);
199
199
  }
200
- const U = /* @__PURE__ */ new Set();
201
- let x = 0;
202
- function w() {
203
- if (x !== 0)
200
+ const I = /* @__PURE__ */ new Set();
201
+ let w = 0;
202
+ function y() {
203
+ if (w !== 0)
204
204
  return;
205
- const t = A;
205
+ const t = O;
206
206
  do {
207
207
  try {
208
- for (; x < E.length; ) {
209
- const e = E[x];
210
- x++, O(e), Bt(e.$$);
208
+ for (; w < b.length; ) {
209
+ const e = b[w];
210
+ w++, M(e), Rt(e.$$);
211
211
  }
212
212
  } catch (e) {
213
- throw E.length = 0, x = 0, e;
213
+ throw b.length = 0, w = 0, e;
214
214
  }
215
- for (O(null), E.length = 0, x = 0; F.length; ) F.pop()();
216
- for (let e = 0; e < k.length; e += 1) {
217
- const n = k[e];
218
- U.has(n) || (U.add(n), n());
215
+ for (M(null), b.length = 0, w = 0; H.length; ) H.pop()();
216
+ for (let e = 0; e < C.length; e += 1) {
217
+ const n = C[e];
218
+ I.has(n) || (I.add(n), n());
219
219
  }
220
- k.length = 0;
221
- } while (E.length);
220
+ C.length = 0;
221
+ } while (b.length);
222
222
  for (; tt.length; )
223
223
  tt.pop()();
224
- W = !1, U.clear(), O(t);
224
+ W = !1, I.clear(), M(t);
225
225
  }
226
- function Bt(t) {
226
+ function Rt(t) {
227
227
  if (t.fragment !== null) {
228
- t.update(), M(t.before_update);
228
+ t.update(), k(t.before_update);
229
229
  const e = t.dirty;
230
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(N);
230
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(j);
231
231
  }
232
232
  }
233
- function Dt(t) {
233
+ function Tt(t) {
234
234
  const e = [], n = [];
235
- k.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), k = e;
235
+ C.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), C = e;
236
236
  }
237
- let L;
238
- function Tt() {
239
- return L || (L = Promise.resolve(), L.then(() => {
240
- L = null;
241
- })), L;
237
+ let v;
238
+ function Dt() {
239
+ return v || (v = Promise.resolve(), v.then(() => {
240
+ v = null;
241
+ })), v;
242
242
  }
243
243
  function J(t, e, n) {
244
- t.dispatchEvent(kt(`${e ? "intro" : "outro"}${n}`));
244
+ t.dispatchEvent(vt(`${e ? "intro" : "outro"}${n}`));
245
245
  }
246
- const D = /* @__PURE__ */ new Set();
247
- let y;
248
- function zt() {
249
- y = {
246
+ const B = /* @__PURE__ */ new Set();
247
+ let g;
248
+ function Ht() {
249
+ g = {
250
250
  r: 0,
251
251
  c: [],
252
- p: y
252
+ p: g
253
253
  // parent group
254
254
  };
255
255
  }
256
- function Ht() {
257
- y.r || M(y.c), y = y.p;
256
+ function zt() {
257
+ g.r || k(g.c), g = g.p;
258
258
  }
259
259
  function S(t, e) {
260
- t && t.i && (D.delete(t), t.i(e));
260
+ t && t.i && (B.delete(t), t.i(e));
261
261
  }
262
262
  function q(t, e, n, i) {
263
263
  if (t && t.o) {
264
- if (D.has(t)) return;
265
- D.add(t), y.c.push(() => {
266
- D.delete(t), i && (n && t.d(1), i());
264
+ if (B.has(t)) return;
265
+ B.add(t), g.c.push(() => {
266
+ B.delete(t), i && (n && t.d(1), i());
267
267
  }), t.o(e);
268
268
  } else i && i();
269
269
  }
270
- const Ft = { duration: 0 };
270
+ const Ut = { duration: 0 };
271
271
  function et(t, e, n, i) {
272
- let r = e(t, n, { direction: "both" }), u = i ? 0 : 1, o = null, l = null, c = null, h;
273
- function d() {
274
- c && St(t, c);
272
+ let o = e(t, n, { direction: "both" }), f = i ? 0 : 1, r = null, c = null, l = null, h;
273
+ function a() {
274
+ l && Ot(t, l);
275
275
  }
276
- function m(a, _) {
277
- const $ = (
276
+ function $(d, _) {
277
+ const u = (
278
278
  /** @type {Program['d']} */
279
- a.b - u
279
+ d.b - f
280
280
  );
281
- return _ *= Math.abs($), {
282
- a: u,
283
- b: a.b,
284
- d: $,
281
+ return _ *= Math.abs(u), {
282
+ a: f,
283
+ b: d.b,
284
+ d: u,
285
285
  duration: _,
286
- start: a.start,
287
- end: a.start + _,
288
- group: a.group
286
+ start: d.start,
287
+ end: d.start + _,
288
+ group: d.group
289
289
  };
290
290
  }
291
- function g(a) {
291
+ function m(d) {
292
292
  const {
293
293
  delay: _ = 0,
294
- duration: $ = 300,
295
- easing: f = st,
296
- tick: b = j,
297
- css: p
298
- } = r || Ft, I = {
294
+ duration: u = 300,
295
+ easing: p = st,
296
+ tick: z = L,
297
+ css: U
298
+ } = o || Ut, F = {
299
299
  start: pt() + _,
300
- b: a
300
+ b: d
301
301
  };
302
- a || (I.group = y, y.r += 1), "inert" in t && (a ? h !== void 0 && (t.inert = h) : (h = /** @type {HTMLElement} */
303
- t.inert, t.inert = !0)), o || l ? l = I : (p && (d(), c = Z(t, u, a, $, _, f, p)), a && b(0, 1), o = m(I, $), N(() => J(t, a, "start")), wt((R) => {
304
- if (l && R > l.start && (o = m(l, $), l = null, J(t, o.b, "start"), p && (d(), c = Z(
302
+ d || (F.group = g, g.r += 1), "inert" in t && (d ? h !== void 0 && (t.inert = h) : (h = /** @type {HTMLElement} */
303
+ 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) => {
304
+ if (c && N > c.start && (r = $(c, u), c = null, J(t, r.b, "start"), U && (a(), l = Z(
305
305
  t,
306
- u,
307
- o.b,
308
- o.duration,
309
- 0,
310
306
  f,
311
- r.css
312
- ))), o) {
313
- if (R >= o.end)
314
- b(u = o.b, 1 - u), J(t, o.b, "end"), l || (o.b ? d() : --o.group.r || M(o.group.c)), o = null;
315
- else if (R >= o.start) {
316
- const at = R - o.start;
317
- u = o.a + o.d * f(at / o.duration), b(u, 1 - u);
307
+ r.b,
308
+ r.duration,
309
+ 0,
310
+ p,
311
+ o.css
312
+ ))), r) {
313
+ if (N >= r.end)
314
+ z(f = r.b, 1 - f), J(t, r.b, "end"), c || (r.b ? a() : --r.group.r || k(r.group.c)), r = null;
315
+ else if (N >= r.start) {
316
+ const at = N - r.start;
317
+ f = r.a + r.d * p(at / r.duration), z(f, 1 - f);
318
318
  }
319
319
  }
320
- return !!(o || l);
320
+ return !!(r || c);
321
321
  }));
322
322
  }
323
323
  return {
324
- run(a) {
325
- G(r) ? Tt().then(() => {
326
- r = r({ direction: a ? "in" : "out" }), g(a);
327
- }) : g(a);
324
+ run(d) {
325
+ G(o) ? Dt().then(() => {
326
+ o = o({ direction: d ? "in" : "out" }), m(d);
327
+ }) : m(d);
328
328
  },
329
329
  end() {
330
- d(), o = l = null;
330
+ a(), r = c = null;
331
331
  }
332
332
  };
333
333
  }
334
- function It(t, e, n) {
334
+ function Ft(t, e, n) {
335
335
  const { fragment: i, after_update: s } = t.$$;
336
- i && i.m(e, n), N(() => {
337
- const r = t.$$.on_mount.map(ot).filter(G);
338
- t.$$.on_destroy ? t.$$.on_destroy.push(...r) : M(r), t.$$.on_mount = [];
339
- }), s.forEach(N);
336
+ i && i.m(e, n), j(() => {
337
+ const o = t.$$.on_mount.map(rt).filter(G);
338
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : k(o), t.$$.on_mount = [];
339
+ }), s.forEach(j);
340
340
  }
341
- function Ut(t, e) {
341
+ function It(t, e) {
342
342
  const n = t.$$;
343
- n.fragment !== null && (Dt(n.after_update), M(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
343
+ 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 = []);
344
344
  }
345
345
  function Jt(t, e) {
346
- t.$$.dirty[0] === -1 && (E.push(t), Rt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
346
+ t.$$.dirty[0] === -1 && (b.push(t), Bt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
347
347
  }
348
- function Vt(t, e, n, i, s, r, u = null, o = [-1]) {
349
- const l = A;
350
- O(t);
351
- const c = t.$$ = {
348
+ function Vt(t, e, n, i, s, o, f = null, r = [-1]) {
349
+ const c = O;
350
+ M(t);
351
+ const l = t.$$ = {
352
352
  fragment: null,
353
353
  ctx: [],
354
354
  // state
355
- props: r,
356
- update: j,
355
+ props: o,
356
+ update: L,
357
357
  not_equal: s,
358
358
  bound: Y(),
359
359
  // lifecycle
@@ -362,27 +362,27 @@ function Vt(t, e, n, i, s, r, u = null, o = [-1]) {
362
362
  on_disconnect: [],
363
363
  before_update: [],
364
364
  after_update: [],
365
- context: new Map(e.context || (l ? l.$$.context : [])),
365
+ context: new Map(e.context || (c ? c.$$.context : [])),
366
366
  // everything else
367
367
  callbacks: Y(),
368
- dirty: o,
368
+ dirty: r,
369
369
  skip_bound: !1,
370
- root: e.target || l.$$.root
370
+ root: e.target || c.$$.root
371
371
  };
372
- u && u(c.root);
372
+ f && f(l.root);
373
373
  let h = !1;
374
- if (c.ctx = n ? n(t, e.props || {}, (d, m, ...g) => {
375
- const a = g.length ? g[0] : m;
376
- return c.ctx && s(c.ctx[d], c.ctx[d] = a) && (!c.skip_bound && c.bound[d] && c.bound[d](a), h && Jt(t, d)), m;
377
- }) : [], c.update(), h = !0, M(c.before_update), c.fragment = i ? i(c.ctx) : !1, e.target) {
374
+ if (l.ctx = n ? n(t, e.props || {}, (a, $, ...m) => {
375
+ const d = m.length ? m[0] : $;
376
+ 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)), $;
377
+ }) : [], l.update(), h = !0, k(l.before_update), l.fragment = i ? i(l.ctx) : !1, e.target) {
378
378
  if (e.hydrate) {
379
- const d = vt(e.target);
380
- c.fragment && c.fragment.l(d), d.forEach(P);
379
+ const a = kt(e.target);
380
+ l.fragment && l.fragment.l(a), a.forEach(A);
381
381
  } else
382
- c.fragment && c.fragment.c();
383
- e.intro && S(t.$$.fragment), It(t, e.target, e.anchor), w();
382
+ l.fragment && l.fragment.c();
383
+ e.intro && S(t.$$.fragment), Ft(t, e.target, e.anchor), y();
384
384
  }
385
- O(l);
385
+ M(c);
386
386
  }
387
387
  let ft;
388
388
  typeof HTMLElement == "function" && (ft = class extends HTMLElement {
@@ -424,20 +424,20 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
424
424
  if (this.$$cn = !0, !this.$$c) {
425
425
  let t = function(s) {
426
426
  return () => {
427
- let r;
427
+ let o;
428
428
  return {
429
429
  c: function() {
430
- r = v("slot"), s !== "default" && B(r, "name", s);
430
+ o = E("slot"), s !== "default" && P(o, "name", s);
431
431
  },
432
432
  /**
433
433
  * @param {HTMLElement} target
434
434
  * @param {HTMLElement} [anchor]
435
435
  */
436
- m: function(l, c) {
437
- X(l, r, c);
436
+ m: function(c, l) {
437
+ X(c, o, l);
438
438
  },
439
- d: function(l) {
440
- l && P(r);
439
+ d: function(c) {
440
+ c && A(o);
441
441
  }
442
442
  };
443
443
  };
@@ -448,8 +448,8 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
448
448
  for (const s of this.$$s)
449
449
  s in n && (e[s] = [t(s)]);
450
450
  for (const s of this.attributes) {
451
- const r = this.$$g_p(s.name);
452
- r in this.$$d || (this.$$d[r] = T(r, s.value, this.$$p_d, "toProp"));
451
+ const o = this.$$g_p(s.name);
452
+ o in this.$$d || (this.$$d[o] = R(o, s.value, this.$$p_d, "toProp"));
453
453
  }
454
454
  for (const s in this.$$p_d)
455
455
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
@@ -467,21 +467,21 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
467
467
  this.$$r = !0;
468
468
  for (const s in this.$$p_d)
469
469
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
470
- const r = T(
470
+ const o = R(
471
471
  s,
472
472
  this.$$d[s],
473
473
  this.$$p_d,
474
474
  "toAttribute"
475
475
  );
476
- r == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, r);
476
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
477
477
  }
478
478
  this.$$r = !1;
479
479
  };
480
480
  this.$$c.$$.after_update.push(i), i();
481
481
  for (const s in this.$$l)
482
- for (const r of this.$$l[s]) {
483
- const u = this.$$c.$on(s, r);
484
- this.$$l_u.set(r, u);
482
+ for (const o of this.$$l[s]) {
483
+ const f = this.$$c.$on(s, o);
484
+ this.$$l_u.set(o, f);
485
485
  }
486
486
  this.$$l = {};
487
487
  }
@@ -489,7 +489,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
489
489
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
490
490
  // and setting attributes through setAttribute etc, this is helpful
491
491
  attributeChangedCallback(t, e, n) {
492
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = T(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
492
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = R(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
493
493
  }
494
494
  disconnectedCallback() {
495
495
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -502,7 +502,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
502
502
  ) || t;
503
503
  }
504
504
  });
505
- function T(t, e, n, i) {
505
+ function R(t, e, n, i) {
506
506
  const s = n[t]?.type;
507
507
  if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !n[t])
508
508
  return e;
@@ -531,34 +531,34 @@ function T(t, e, n, i) {
531
531
  return e;
532
532
  }
533
533
  }
534
- function Wt(t, e, n, i, s, r) {
535
- let u = class extends ft {
534
+ function Wt(t, e, n, i, s, o) {
535
+ let f = class extends ft {
536
536
  constructor() {
537
537
  super(t, n, s), this.$$p_d = e;
538
538
  }
539
539
  static get observedAttributes() {
540
540
  return Object.keys(e).map(
541
- (o) => (e[o].attribute || o).toLowerCase()
541
+ (r) => (e[r].attribute || r).toLowerCase()
542
542
  );
543
543
  }
544
544
  };
545
- return Object.keys(e).forEach((o) => {
546
- Object.defineProperty(u.prototype, o, {
545
+ return Object.keys(e).forEach((r) => {
546
+ Object.defineProperty(f.prototype, r, {
547
547
  get() {
548
- return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
548
+ return this.$$c && r in this.$$c ? this.$$c[r] : this.$$d[r];
549
549
  },
550
- set(l) {
551
- l = T(o, l, e), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
550
+ set(c) {
551
+ c = R(r, c, e), this.$$d[r] = c, this.$$c?.$set({ [r]: c });
552
552
  }
553
553
  });
554
- }), i.forEach((o) => {
555
- Object.defineProperty(u.prototype, o, {
554
+ }), i.forEach((r) => {
555
+ Object.defineProperty(f.prototype, r, {
556
556
  get() {
557
- return this.$$c?.[o];
557
+ return this.$$c?.[r];
558
558
  }
559
559
  });
560
560
  }), t.element = /** @type {any} */
561
- u, u;
561
+ f, f;
562
562
  }
563
563
  class qt {
564
564
  /**
@@ -579,7 +579,7 @@ class qt {
579
579
  $$set = void 0;
580
580
  /** @returns {void} */
581
581
  $destroy() {
582
- Ut(this, 1), this.$destroy = j;
582
+ It(this, 1), this.$destroy = L;
583
583
  }
584
584
  /**
585
585
  * @template {Extract<keyof Events, string>} K
@@ -589,7 +589,7 @@ class qt {
589
589
  */
590
590
  $on(e, n) {
591
591
  if (!G(n))
592
- return j;
592
+ return L;
593
593
  const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
594
594
  return i.push(n), () => {
595
595
  const s = i.indexOf(n);
@@ -612,72 +612,95 @@ function nt(t, { delay: e = 0, duration: n = 400, easing: i = st } = {}) {
612
612
  delay: e,
613
613
  duration: n,
614
614
  easing: i,
615
- css: (r) => `opacity: ${r * s}`
615
+ css: (o) => `opacity: ${o * s}`
616
616
  };
617
617
  }
618
- function Kt(t) {
618
+ function Kt(t, e) {
619
+ if (t) {
620
+ const n = document.createElement("style");
621
+ n.innerHTML = e, t.appendChild(n);
622
+ }
623
+ }
624
+ function Qt(t, e) {
625
+ const n = new URL(e);
626
+ fetch(n.href).then((i) => i.text()).then((i) => {
627
+ const s = document.createElement("style");
628
+ s.innerHTML = i, t && t.appendChild(s);
629
+ }).catch((i) => {
630
+ console.error("There was an error while trying to load client styling from URL", i);
631
+ });
632
+ }
633
+ function Xt(t, e, n) {
634
+ if (window.emMessageBus) {
635
+ const i = document.createElement("style");
636
+ window.emMessageBus.subscribe(e, (s) => {
637
+ i.innerHTML = s, t && t.appendChild(i);
638
+ });
639
+ }
640
+ }
641
+ function Yt(t) {
619
642
  bt(t, "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}");
620
643
  }
621
644
  function it(t) {
622
- let e, n, i, s, r;
623
- const u = (
645
+ let e, n, i, s, o;
646
+ const f = (
624
647
  /*#slots*/
625
- t[8].default
626
- ), o = _t(
627
- u,
648
+ t[9].default
649
+ ), r = _t(
650
+ f,
628
651
  t,
629
652
  /*$$scope*/
630
- t[7],
653
+ t[8],
631
654
  null
632
655
  );
633
656
  return {
634
657
  c() {
635
- e = v("div"), n = v("div"), i = v("div"), o && o.c(), B(i, "class", "ModalContainer"), B(n, "class", "ModalWindow"), B(n, "id", "Modal");
658
+ e = E("div"), n = E("div"), i = E("div"), r && r.c(), P(i, "class", "ModalContainer"), P(n, "class", "ModalWindow"), P(n, "id", "Modal");
636
659
  },
637
- m(l, c) {
638
- X(l, e, c), V(e, n), V(n, i), o && o.m(i, null), t[9](n), t[10](e), r = !0;
660
+ m(c, l) {
661
+ X(c, e, l), V(e, n), V(n, i), r && r.m(i, null), t[10](n), t[11](e), o = !0;
639
662
  },
640
- p(l, c) {
641
- t = l, o && o.p && (!r || c & /*$$scope*/
642
- 128) && gt(
643
- o,
644
- u,
663
+ p(c, l) {
664
+ t = c, r && r.p && (!o || l & /*$$scope*/
665
+ 256) && gt(
666
+ r,
667
+ f,
645
668
  t,
646
669
  /*$$scope*/
647
- t[7],
648
- r ? mt(
649
- u,
670
+ t[8],
671
+ o ? mt(
672
+ f,
650
673
  /*$$scope*/
651
- t[7],
652
- c,
674
+ t[8],
675
+ l,
653
676
  null
654
677
  ) : yt(
655
678
  /*$$scope*/
656
- t[7]
679
+ t[8]
657
680
  ),
658
681
  null
659
682
  );
660
683
  },
661
- i(l) {
662
- r || (S(o, l), l && N(() => {
663
- r && (s || (s = et(n, nt, { transitionDuration: (
684
+ i(c) {
685
+ o || (S(r, c), c && j(() => {
686
+ o && (s || (s = et(n, nt, { transitionDuration: (
664
687
  /*duration*/
665
688
  t[1]
666
689
  ) }, !0)), s.run(1));
667
- }), r = !0);
690
+ }), o = !0);
668
691
  },
669
- o(l) {
670
- q(o, l), l && (s || (s = et(n, nt, { transitionDuration: (
692
+ o(c) {
693
+ q(r, c), c && (s || (s = et(n, nt, { transitionDuration: (
671
694
  /*duration*/
672
695
  t[1]
673
- ) }, !1)), s.run(0)), r = !1;
696
+ ) }, !1)), s.run(0)), o = !1;
674
697
  },
675
- d(l) {
676
- l && P(e), o && o.d(l), t[9](null), l && s && s.end(), t[10](null);
698
+ d(c) {
699
+ c && A(e), r && r.d(c), t[10](null), c && s && s.end(), t[11](null);
677
700
  }
678
701
  };
679
702
  }
680
- function Qt(t) {
703
+ function Zt(t) {
681
704
  let e, n, i = (
682
705
  /*show*/
683
706
  t[0] && it(t)
@@ -686,15 +709,15 @@ function Qt(t) {
686
709
  c() {
687
710
  i && i.c(), e = Ct();
688
711
  },
689
- m(s, r) {
690
- i && i.m(s, r), X(s, e, r), n = !0;
712
+ m(s, o) {
713
+ i && i.m(s, o), X(s, e, o), n = !0;
691
714
  },
692
- p(s, [r]) {
715
+ p(s, [o]) {
693
716
  /*show*/
694
- s[0] ? i ? (i.p(s, r), r & /*show*/
695
- 1 && S(i, 1)) : (i = it(s), i.c(), S(i, 1), i.m(e.parentNode, e)) : i && (zt(), q(i, 1, 1, () => {
717
+ s[0] ? i ? (i.p(s, o), o & /*show*/
718
+ 1 && S(i, 1)) : (i = it(s), i.c(), S(i, 1), i.m(e.parentNode, e)) : i && (Ht(), q(i, 1, 1, () => {
696
719
  i = null;
697
- }), Ht());
720
+ }), zt());
698
721
  },
699
722
  i(s) {
700
723
  n || (S(i), n = !0);
@@ -703,118 +726,114 @@ function Qt(t) {
703
726
  q(i), n = !1;
704
727
  },
705
728
  d(s) {
706
- s && P(e), i && i.d(s);
729
+ s && A(e), i && i.d(s);
707
730
  }
708
731
  };
709
732
  }
710
- function Xt(t, e, n) {
711
- let { $$slots: i = {}, $$scope: s } = e, { show: r = !1 } = e, { duration: u = 350 } = e, { clientstyling: o = "" } = e, { clientstylingurl: l = "" } = e, { showmodaleventname: c = "ShowLimitsConfirmationModal" } = e, h, d;
712
- const m = (f) => {
713
- switch (f.data.type) {
733
+ function te(t, e, n) {
734
+ 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, $;
735
+ const m = (u) => {
736
+ switch (u.data.type) {
714
737
  case "ModalClosed":
715
- n(0, r = !1);
738
+ n(0, o = !1);
716
739
  break;
717
- case c:
718
- n(0, r = !0), window.postMessage({ type: "DisableScroll" }, window.location.href);
740
+ case h:
741
+ n(0, o = !0), window.postMessage({ type: "DisableScroll" }, window.location.href);
719
742
  break;
720
743
  }
721
- }, g = () => {
722
- let f = document.createElement("style");
723
- f.innerHTML = o, h.appendChild(f);
724
- }, a = () => {
725
- let f = new URL(l), b = document.createElement("style");
726
- fetch(f.href).then((p) => p.text()).then((p) => {
727
- b.innerHTML = p, setTimeout(
728
- () => {
729
- h.appendChild(b);
730
- },
731
- 1
732
- );
733
- });
734
744
  };
735
745
  Nt(() => (window.addEventListener("message", m, !1), () => {
736
746
  window.removeEventListener("message", m);
737
747
  }));
738
- function _(f) {
739
- F[f ? "unshift" : "push"](() => {
740
- d = f, n(3, d);
748
+ function d(u) {
749
+ H[u ? "unshift" : "push"](() => {
750
+ $ = u, n(3, $);
741
751
  });
742
752
  }
743
- function $(f) {
744
- F[f ? "unshift" : "push"](() => {
745
- h = f, n(2, h);
753
+ function _(u) {
754
+ H[u ? "unshift" : "push"](() => {
755
+ a = u, n(2, a);
746
756
  });
747
757
  }
748
- return t.$$set = (f) => {
749
- "show" in f && n(0, r = f.show), "duration" in f && n(1, u = f.duration), "clientstyling" in f && n(4, o = f.clientstyling), "clientstylingurl" in f && n(5, l = f.clientstylingurl), "showmodaleventname" in f && n(6, c = f.showmodaleventname), "$$scope" in f && n(7, s = f.$$scope);
758
+ return t.$$set = (u) => {
759
+ "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);
750
760
  }, t.$$.update = () => {
751
- t.$$.dirty & /*clientstylingurl, customStylingContainer*/
752
- 36 && l && h && a(), t.$$.dirty & /*clientstyling, customStylingContainer*/
753
- 20 && o && h && g();
761
+ t.$$.dirty & /*clientstyling, customStylingContainer*/
762
+ 20 && r && a && Kt(a, r), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
763
+ 36 && c && a && Qt(a, c), t.$$.dirty & /*mbsource, customStylingContainer*/
764
+ 68 && l && a && Xt(a, `${l}.Style`);
754
765
  }, [
755
- r,
756
- u,
757
- h,
758
- d,
759
766
  o,
760
- l,
767
+ f,
768
+ a,
769
+ $,
770
+ r,
761
771
  c,
772
+ l,
773
+ h,
762
774
  s,
763
775
  i,
764
- _,
765
- $
776
+ d,
777
+ _
766
778
  ];
767
779
  }
768
- class Yt extends qt {
780
+ class ee extends qt {
769
781
  constructor(e) {
770
782
  super(), Vt(
771
783
  this,
772
784
  e,
773
- Xt,
774
- Qt,
785
+ te,
786
+ Zt,
775
787
  ht,
776
788
  {
777
789
  show: 0,
778
790
  duration: 1,
779
791
  clientstyling: 4,
780
792
  clientstylingurl: 5,
781
- showmodaleventname: 6
793
+ mbsource: 6,
794
+ showmodaleventname: 7
782
795
  },
783
- Kt
796
+ Yt
784
797
  );
785
798
  }
786
799
  get show() {
787
800
  return this.$$.ctx[0];
788
801
  }
789
802
  set show(e) {
790
- this.$$set({ show: e }), w();
803
+ this.$$set({ show: e }), y();
791
804
  }
792
805
  get duration() {
793
806
  return this.$$.ctx[1];
794
807
  }
795
808
  set duration(e) {
796
- this.$$set({ duration: e }), w();
809
+ this.$$set({ duration: e }), y();
797
810
  }
798
811
  get clientstyling() {
799
812
  return this.$$.ctx[4];
800
813
  }
801
814
  set clientstyling(e) {
802
- this.$$set({ clientstyling: e }), w();
815
+ this.$$set({ clientstyling: e }), y();
803
816
  }
804
817
  get clientstylingurl() {
805
818
  return this.$$.ctx[5];
806
819
  }
807
820
  set clientstylingurl(e) {
808
- this.$$set({ clientstylingurl: e }), w();
821
+ this.$$set({ clientstylingurl: e }), y();
809
822
  }
810
- get showmodaleventname() {
823
+ get mbsource() {
811
824
  return this.$$.ctx[6];
812
825
  }
826
+ set mbsource(e) {
827
+ this.$$set({ mbsource: e }), y();
828
+ }
829
+ get showmodaleventname() {
830
+ return this.$$.ctx[7];
831
+ }
813
832
  set showmodaleventname(e) {
814
- this.$$set({ showmodaleventname: e }), w();
833
+ this.$$set({ showmodaleventname: e }), y();
815
834
  }
816
835
  }
817
- Wt(Yt, { show: { type: "Boolean" }, duration: {}, clientstyling: {}, clientstylingurl: {}, showmodaleventname: {} }, ["default"], [], !0);
836
+ Wt(ee, { show: { type: "Boolean" }, duration: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, showmodaleventname: {} }, ["default"], [], !0);
818
837
  export {
819
- Yt as P
838
+ ee as P
820
839
  };