@everymatrix/player-account-modal 1.99.57 → 1.99.60

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.
@@ -2,8 +2,7 @@ function A() {
2
2
  }
3
3
  const rt = (t) => t;
4
4
  function ht(t, e) {
5
- for (const n in e)
6
- t[n] = e[n];
5
+ for (const n in e) t[n] = e[n];
7
6
  return (
8
7
  /** @type {T & S} */
9
8
  t
@@ -84,8 +83,7 @@ function St(t, e, n) {
84
83
  }
85
84
  }
86
85
  function Q(t) {
87
- if (!t)
88
- return document;
86
+ if (!t) return document;
89
87
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
90
88
  return e && /** @type {ShadowRoot} */
91
89
  e.host ? (
@@ -141,8 +139,7 @@ const D = /* @__PURE__ */ new Map();
141
139
  let H = 0;
142
140
  function vt(t) {
143
141
  let e = 5381, n = t.length;
144
- for (; n--; )
145
- e = (e << 5) - e ^ t.charCodeAt(n);
142
+ for (; n--; ) e = (e << 5) - e ^ t.charCodeAt(n);
146
143
  return e >>> 0;
147
144
  }
148
145
  function At(t, e) {
@@ -184,8 +181,7 @@ function k(t) {
184
181
  O = t;
185
182
  }
186
183
  function Nt() {
187
- if (!O)
188
- throw new Error("Function called outside component initialization");
184
+ if (!O) throw new Error("Function called outside component initialization");
189
185
  return O;
190
186
  }
191
187
  function Pt(t) {
@@ -216,8 +212,7 @@ function p() {
216
212
  } catch (e) {
217
213
  throw b.length = 0, w = 0, e;
218
214
  }
219
- for (k(null), b.length = 0, w = 0; z.length; )
220
- z.pop()();
215
+ for (k(null), b.length = 0, w = 0; z.length; ) z.pop()();
221
216
  for (let e = 0; e < C.length; e += 1) {
222
217
  const n = C[e];
223
218
  W.has(n) || (W.add(n), n());
@@ -266,13 +261,11 @@ function v(t, e) {
266
261
  }
267
262
  function q(t, e, n, s) {
268
263
  if (t && t.o) {
269
- if (R.has(t))
270
- return;
264
+ if (R.has(t)) return;
271
265
  R.add(t), y.c.push(() => {
272
266
  R.delete(t), s && (n && t.d(1), s());
273
267
  }), t.o(e);
274
- } else
275
- s && s();
268
+ } else s && s();
276
269
  }
277
270
  const It = { duration: 0 };
278
271
  function nt(t, e, n, s) {
@@ -630,8 +623,7 @@ function Yt(t, e) {
630
623
  }
631
624
  }
632
625
  function Qt(t, e) {
633
- if (!t || !e)
634
- return;
626
+ if (!t || !e) return;
635
627
  const n = new URL(e);
636
628
  fetch(n.href).then((s) => s.text()).then((s) => {
637
629
  const i = document.createElement("style");
@@ -641,8 +633,7 @@ function Qt(t, e) {
641
633
  });
642
634
  }
643
635
  function Xt(t, e, n, s = !1) {
644
- if (!window.emMessageBus)
645
- return;
636
+ if (!window.emMessageBus) return;
646
637
  if (!("adoptedStyleSheets" in Document.prototype) || !s)
647
638
  return n = Zt(t, e), n;
648
639
  window[S] || (window[S] = {}), n = te(t, e);
@@ -663,8 +654,7 @@ function Zt(t, e) {
663
654
  }
664
655
  function te(t, e) {
665
656
  return window.emMessageBus.subscribe(e, (n) => {
666
- if (!t)
667
- return;
657
+ if (!t) return;
668
658
  const s = t.getRootNode(), i = window[S];
669
659
  let r = i[e] && i[e].sheet;
670
660
  r ? i[e].refCount = i[e].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(n), i[e] = {
@@ -1,4 +1,4 @@
1
- "use strict";var wt=Object.defineProperty,bt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var Et=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable;var G=(e,t,n)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t)=>{for(var n in t||(t={}))Et.call(t,n)&&G(e,n,t[n]);if(et)for(var n of et(t))xt.call(t,n)&&G(e,n,t[n]);return e},st=(e,t)=>bt(e,St(t));var g=(e,t,n)=>(G(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((s,r)=>{var i=c=>{try{o(n.next(c))}catch(l){r(l)}},u=c=>{try{o(n.throw(c))}catch(l){r(l)}},o=c=>c.done?s(c.value):Promise.resolve(c.value).then(i,u);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function A(){}const at=e=>e;function Ct(e,t){for(const n in t)e[n]=t[n];return e}function dt(e){return e()}function rt(){return Object.create(null)}function v(e){e.forEach(dt)}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 vt(e){return Object.keys(e).length===0}function Lt(e,t,n,s){if(e){const r=ht(e,t,n,s);return e[0](r)}}function ht(e,t,n,s){return e[1]&&s?Ct(n.ctx.slice(),e[1](s(t))):n.ctx}function kt(e,t,n,s){return e[2],t.dirty}function Ot(e,t,n,s,r,i){if(r){const u=ht(t,n,s,i);e.p(u,r)}}function At(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let s=0;s<n;s++)t[s]=-1;return t}return-1}const $t=typeof window!="undefined";let jt=$t?()=>window.performance.now():()=>Date.now(),X=$t?e=>requestAnimationFrame(e):A;const x=new Set;function _t(e){x.forEach(t=>{t.c(e)||(x.delete(t),t.f())}),x.size!==0&&X(_t)}function Nt(e){let t;return x.size===0&&X(_t),{promise:new Promise(n=>{x.add(t={c:e,f:n})}),abort(){x.delete(t)}}}function q(e,t){e.appendChild(t)}function Pt(e,t,n){const s=Z(e);if(!s.getElementById(t)){const r=C("style");r.id=t,r.textContent=n,mt(s,r)}}function Z(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Bt(e){const t=C("style");return t.textContent="/* empty */",mt(Z(e),t),t.sheet}function mt(e,t){return q(e.head||e,t),t.sheet}function tt(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode&&e.parentNode.removeChild(e)}function C(e){return document.createElement(e)}function Rt(e){return document.createTextNode(e)}function Tt(){return Rt("")}function R(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Dt(e){return Array.from(e.childNodes)}function Ht(e,t,{bubbles:n=!1,cancelable:s=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:s})}function zt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const H=new Map;let z=0;function Ut(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function It(e,t){const n={stylesheet:Bt(t),rules:{}};return H.set(e,n),n}function ot(e,t,n,s,r,i,u,o=0){const c=16.666/s;let l=`{
1
+ "use strict";var wt=Object.defineProperty,bt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var Et=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable;var G=(e,t,n)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t)=>{for(var n in t||(t={}))Et.call(t,n)&&G(e,n,t[n]);if(et)for(var n of et(t))xt.call(t,n)&&G(e,n,t[n]);return e},st=(e,t)=>bt(e,St(t));var g=(e,t,n)=>G(e,typeof t!="symbol"?t+"":t,n);var it=(e,t,n)=>new Promise((s,r)=>{var i=c=>{try{o(n.next(c))}catch(l){r(l)}},u=c=>{try{o(n.throw(c))}catch(l){r(l)}},o=c=>c.done?s(c.value):Promise.resolve(c.value).then(i,u);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function A(){}const at=e=>e;function Ct(e,t){for(const n in t)e[n]=t[n];return e}function dt(e){return e()}function rt(){return Object.create(null)}function v(e){e.forEach(dt)}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 vt(e){return Object.keys(e).length===0}function Lt(e,t,n,s){if(e){const r=ht(e,t,n,s);return e[0](r)}}function ht(e,t,n,s){return e[1]&&s?Ct(n.ctx.slice(),e[1](s(t))):n.ctx}function kt(e,t,n,s){return e[2],t.dirty}function Ot(e,t,n,s,r,i){if(r){const u=ht(t,n,s,i);e.p(u,r)}}function At(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let s=0;s<n;s++)t[s]=-1;return t}return-1}const $t=typeof window!="undefined";let jt=$t?()=>window.performance.now():()=>Date.now(),X=$t?e=>requestAnimationFrame(e):A;const x=new Set;function _t(e){x.forEach(t=>{t.c(e)||(x.delete(t),t.f())}),x.size!==0&&X(_t)}function Nt(e){let t;return x.size===0&&X(_t),{promise:new Promise(n=>{x.add(t={c:e,f:n})}),abort(){x.delete(t)}}}function q(e,t){e.appendChild(t)}function Pt(e,t,n){const s=Z(e);if(!s.getElementById(t)){const r=C("style");r.id=t,r.textContent=n,mt(s,r)}}function Z(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Bt(e){const t=C("style");return t.textContent="/* empty */",mt(Z(e),t),t.sheet}function mt(e,t){return q(e.head||e,t),t.sheet}function tt(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode&&e.parentNode.removeChild(e)}function C(e){return document.createElement(e)}function Rt(e){return document.createTextNode(e)}function Tt(){return Rt("")}function R(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Dt(e){return Array.from(e.childNodes)}function Ht(e,t,{bubbles:n=!1,cancelable:s=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:s})}function zt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const H=new Map;let z=0;function Ut(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function It(e,t){const n={stylesheet:Bt(t),rules:{}};return H.set(e,n),n}function ot(e,t,n,s,r,i,u,o=0){const c=16.666/s;let l=`{
2
2
  `;for(let $=0;$<=1;$+=c){const a=t+(n-t)*i($);l+=$*100+`%{${u(a,1-a)}}
3
3
  `}const h=l+`100% {${u(n,1-n)}}
4
4
  }`,f=`__svelte_${Ut(h)}_${o}`,y=Z(e),{stylesheet:_,rules:d}=H.get(y)||It(y,e);d[f]||(d[f]=!0,_.insertRule(`@keyframes ${f} ${h}`,_.cssRules.length));const m=e.style.animation||"";return e.style.animation=`${m?`${m}, `:""}${f} ${s}ms linear ${r}ms 1 both`,z+=1,f}function Ft(e,t){const n=(e.style.animation||"").split(", "),s=n.filter(t?i=>i.indexOf(t)<0:i=>i.indexOf("__svelte")===-1),r=n.length-s.length;r&&(e.style.animation=s.join(", "),z-=r,z||Wt())}function Wt(){X(()=>{z||(H.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&P(t)}),H.clear())})}let j;function k(e){j=e}function Gt(){if(!j)throw new Error("Function called outside component initialization");return j}function Jt(e){Gt().$$.on_mount.push(e)}const S=[],U=[];let M=[];const ct=[],Vt=Promise.resolve();let K=!1;function qt(){K||(K=!0,Vt.then(w))}function N(e){M.push(e)}const J=new Set;let b=0;function w(){if(b!==0)return;const e=j;do{try{for(;b<S.length;){const t=S[b];b++,k(t),Kt(t.$$)}}catch(t){throw S.length=0,b=0,t}for(k(null),S.length=0,b=0;U.length;)U.pop()();for(let t=0;t<M.length;t+=1){const n=M[t];J.has(n)||(J.add(n),n())}M.length=0}while(S.length);for(;ct.length;)ct.pop()();K=!1,J.clear(),k(e)}function Kt(e){if(e.fragment!==null){e.update(),v(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(N)}}function Yt(e){const t=[],n=[];M.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),M=t}let L;function Qt(){return L||(L=Promise.resolve(),L.then(()=>{L=null})),L}function V(e,t,n){e.dispatchEvent(Ht(`${t?"intro":"outro"}${n}`))}const T=new Set;let p;function Xt(){p={r:0,c:[],p}}function Zt(){p.r||v(p.c),p=p.p}function O(e,t){e&&e.i&&(T.delete(e),e.i(t))}function Y(e,t,n,s){if(e&&e.o){if(T.has(e))return;T.add(e),p.c.push(()=>{T.delete(e),s&&(n&&e.d(1),s())}),e.o(t)}else s&&s()}const te={duration:0};function ut(e,t,n,s){let i=t(e,n,{direction:"both"}),u=s?0:1,o=null,c=null,l=null,h;function f(){l&&Ft(e,l)}function y(d,m){const $=d.b-u;return m*=Math.abs($),{a:u,b:d.b,d:$,duration:m,start:d.start,end:d.start+m,group:d.group}}function _(d){const{delay:m=0,duration:$=300,easing:a=at,tick:I=A,css:F}=i||te,W={start:jt()+m,b:d};d||(W.group=p,p.r+=1),"inert"in e&&(d?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||c?c=W:(F&&(f(),l=ot(e,u,d,$,m,a,F)),d&&I(0,1),o=y(W,$),N(()=>V(e,d,"start")),Nt(B=>{if(c&&B>c.start&&(o=y(c,$),c=null,V(e,o.b,"start"),F&&(f(),l=ot(e,u,o.b,o.duration,0,a,i.css))),o){if(B>=o.end)I(u=o.b,1-u),V(e,o.b,"end"),c||(o.b?f():--o.group.r||v(o.group.c)),o=null;else if(B>=o.start){const pt=B-o.start;u=o.a+o.d*a(pt/o.duration),I(u,1-u)}}return!!(o||c)}))}return{run(d){Q(i)?Qt().then(()=>{i=i({direction:d?"in":"out"}),_(d)}):_(d)},end(){f(),o=c=null}}}function ee(e,t,n){const{fragment:s,after_update:r}=e.$$;s&&s.m(t,n),N(()=>{const i=e.$$.on_mount.map(dt).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...i):v(i),e.$$.on_mount=[]}),r.forEach(N)}function ne(e,t){const n=e.$$;n.fragment!==null&&(Yt(n.after_update),v(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function se(e,t){e.$$.dirty[0]===-1&&(S.push(e),qt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,s,r,i,u=null,o=[-1]){const c=j;k(e);const l=e.$$={fragment:null,ctx:[],props:i,update:A,not_equal:r,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:rt(),dirty:o,skip_bound:!1,root:t.target||c.$$.root};u&&u(l.root);let h=!1;if(l.ctx=n?n(e,t.props||{},(f,y,..._)=>{const d=_.length?_[0]:y;return l.ctx&&r(l.ctx[f],l.ctx[f]=d)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](d),h&&se(e,f)),y}):[],l.update(),h=!0,v(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const f=Dt(t.target);l.fragment&&l.fragment.l(f),f.forEach(P)}else l.fragment&&l.fragment.c();t.intro&&O(e.$$.fragment),ee(e,t.target,t.anchor),w()}k(c)}let gt;typeof HTMLElement=="function"&&(gt=class extends HTMLElement{constructor(t,n,s){super();g(this,"$$ctor");g(this,"$$s");g(this,"$$c");g(this,"$$cn",!1);g(this,"$$d",{});g(this,"$$r",!1);g(this,"$$p_d",{});g(this,"$$l",{});g(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){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,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),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(i){return()=>{let u;return{c:function(){u=C("slot"),i!=="default"&&R(u,"name",i)},m:function(l,h){tt(l,u,h)},d:function(l){l&&P(u)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=zt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const u=this.$$g_p(i.name);u in this.$$d||(this.$$d[u]=D(u,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:st(nt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const u=D(i,this.$$d[i],this.$$p_d,"toAttribute");u==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,u)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const u of this.$$l[i]){const o=this.$$c.$on(i,u);this.$$l_u.set(u,o)}this.$$l={}}})}attributeChangedCallback(t,n,s){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=D(t,s,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}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 D(e,t,n,s){var i;const r=(i=n[e])==null?void 0:i.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="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 re(e,t,n,s,r,i){let u=class extends gt{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(u.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){var l;c=D(o,c,t),this.$$d[o]=c,(l=this.$$c)==null||l.$set({[o]:c})}})}),s.forEach(o=>{Object.defineProperty(u.prototype,o,{get(){var c;return(c=this.$$c)==null?void 0:c[o]}})}),e.element=u,u}class oe{constructor(){g(this,"$$");g(this,"$$set")}$destroy(){ne(this,1),this.$destroy=A}$on(t,n){if(!Q(n))return A;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const r=s.indexOf(n);r!==-1&&s.splice(r,1)}}$set(t){this.$$set&&!vt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ce="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ce);function lt(e,{delay:t=0,duration:n=400,easing:s=at}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:s,css:i=>`opacity: ${i*r}`}}const E="__WIDGET_GLOBAL_STYLE_CACHE__";function ue(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(s=>s.text()).then(s=>{const r=document.createElement("style");r.innerHTML=s,e&&e.appendChild(r)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function fe(e,t,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=ae(e,t),n;window[E]||(window[E]={}),n=de(e,t);const i=n.unsubscribe.bind(n),u=()=>{if(window[E][t]){const o=window[E][t];o.refCount>1?o.refCount=o.refCount-1:delete window[E][t]}i()};return n.unsubscribe=u,n}function ae(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,s=>{e&&(n.innerHTML=s,e.appendChild(n))})}function de(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const s=e.getRootNode(),r=window[E];let i=r[t]&&r[t].sheet;i?r[t].refCount=r[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(n),r[t]={sheet:i,refCount:1});const u=s.adoptedStyleSheets||[];u.includes(i)||(s.adoptedStyleSheets=[...u,i])})}function he(e){Pt(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 ft(e){let t,n,s,r,i;const u=e[9].default,o=Lt(u,e,e[8],null);return{c(){t=C("div"),n=C("div"),s=C("div"),o&&o.c(),R(s,"class","ModalContainer"),R(n,"class","ModalWindow"),R(n,"id","Modal")},m(c,l){tt(c,t,l),q(t,n),q(n,s),o&&o.m(s,null),e[10](n),e[11](t),i=!0},p(c,l){e=c,o&&o.p&&(!i||l&256)&&Ot(o,u,e,e[8],i?kt(u,e[8],l,null):At(e[8]),null)},i(c){i||(O(o,c),c&&N(()=>{i&&(r||(r=ut(n,lt,{transitionDuration:e[1]},!0)),r.run(1))}),i=!0)},o(c){Y(o,c),c&&(r||(r=ut(n,lt,{transitionDuration:e[1]},!1)),r.run(0)),i=!1},d(c){c&&P(t),o&&o.d(c),e[10](null),c&&r&&r.end(),e[11](null)}}}function $e(e){let t,n,s=e[0]&&ft(e);return{c(){s&&s.c(),t=Tt()},m(r,i){s&&s.m(r,i),tt(r,t,i),n=!0},p(r,[i]){r[0]?s?(s.p(r,i),i&1&&O(s,1)):(s=ft(r),s.c(),O(s,1),s.m(t.parentNode,t)):s&&(Xt(),Y(s,1,1,()=>{s=null}),Zt())},i(r){n||(O(s),n=!0)},o(r){Y(s),n=!1},d(r){r&&P(t),s&&s.d(r)}}}function _e(e,t,n){let{$$slots:s={},$$scope:r}=t,{show:i=!1}=t,{duration:u=350}=t,{clientstyling:o=""}=t,{clientstylingurl:c=""}=t,{mbsource:l}=t,{showmodaleventname:h="ShowLimitsConfirmationModal"}=t,f,y,_;const d=a=>{switch(a.data.type){case"ModalClosed":n(0,i=!1);break;case h:n(0,i=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}};Jt(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function m(a){U[a?"unshift":"push"](()=>{_=a,n(3,_)})}function $(a){U[a?"unshift":"push"](()=>{f=a,n(2,f)})}return e.$$set=a=>{"show"in a&&n(0,i=a.show),"duration"in a&&n(1,u=a.duration),"clientstyling"in a&&n(4,o=a.clientstyling),"clientstylingurl"in a&&n(5,c=a.clientstylingurl),"mbsource"in a&&n(6,l=a.mbsource),"showmodaleventname"in a&&n(7,h=a.showmodaleventname),"$$scope"in a&&n(8,r=a.$$scope)},e.$$.update=()=>{e.$$.dirty&20&&o&&f&&ue(f,o),e.$$.dirty&36&&c&&f&&le(f,c),e.$$.dirty&68&&l&&f&&fe(f,`${l}.Style`,y)},[i,u,f,_,o,c,l,h,r,s,m,$]}class yt extends oe{constructor(t){super(),ie(this,t,_e,$e,Mt,{show:0,duration:1,clientstyling:4,clientstylingurl:5,mbsource:6,showmodaleventname:7},he)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),w()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),w()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),w()}get showmodaleventname(){return this.$$.ctx[7]}set showmodaleventname(t){this.$$set({showmodaleventname:t}),w()}}re(yt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},mbsource:{},showmodaleventname:{}},["default"],[],!0);exports.default=yt;
@@ -10,7 +10,7 @@ var G = (e, t, n) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writa
10
10
  xt.call(t, n) && G(e, n, t[n]);
11
11
  return e;
12
12
  }, st = (e, t) => wt(e, bt(t));
13
- var g = (e, t, n) => (G(e, typeof t != "symbol" ? t + "" : t, n), n);
13
+ var g = (e, t, n) => G(e, typeof t != "symbol" ? t + "" : t, n);
14
14
  var it = (e, t, n) => new Promise((s, r) => {
15
15
  var i = (c) => {
16
16
  try {
@@ -31,8 +31,7 @@ function O() {
31
31
  }
32
32
  const at = (e) => e;
33
33
  function Et(e, t) {
34
- for (const n in t)
35
- e[n] = t[n];
34
+ for (const n in t) e[n] = t[n];
36
35
  return (
37
36
  /** @type {T & S} */
38
37
  e
@@ -113,8 +112,7 @@ function Nt(e, t, n) {
113
112
  }
114
113
  }
115
114
  function Z(e) {
116
- if (!e)
117
- return document;
115
+ if (!e) return document;
118
116
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
119
117
  return t && /** @type {ShadowRoot} */
120
118
  t.host ? (
@@ -170,8 +168,7 @@ const H = /* @__PURE__ */ new Map();
170
168
  let z = 0;
171
169
  function zt(e) {
172
170
  let t = 5381, n = e.length;
173
- for (; n--; )
174
- t = (t << 5) - t ^ e.charCodeAt(n);
171
+ for (; n--; ) t = (t << 5) - t ^ e.charCodeAt(n);
175
172
  return t >>> 0;
176
173
  }
177
174
  function Ut(e, t) {
@@ -213,8 +210,7 @@ function v(e) {
213
210
  j = e;
214
211
  }
215
212
  function Wt() {
216
- if (!j)
217
- throw new Error("Function called outside component initialization");
213
+ if (!j) throw new Error("Function called outside component initialization");
218
214
  return j;
219
215
  }
220
216
  function Gt(e) {
@@ -245,8 +241,7 @@ function w() {
245
241
  } catch (t) {
246
242
  throw S.length = 0, b = 0, t;
247
243
  }
248
- for (v(null), S.length = 0, b = 0; U.length; )
249
- U.pop()();
244
+ for (v(null), S.length = 0, b = 0; U.length; ) U.pop()();
250
245
  for (let t = 0; t < L.length; t += 1) {
251
246
  const n = L[t];
252
247
  J.has(n) || (J.add(n), n());
@@ -295,13 +290,11 @@ function A(e, t) {
295
290
  }
296
291
  function Y(e, t, n, s) {
297
292
  if (e && e.o) {
298
- if (T.has(e))
299
- return;
293
+ if (T.has(e)) return;
300
294
  T.add(e), p.c.push(() => {
301
295
  T.delete(e), s && (n && e.d(1), s());
302
296
  }), e.o(t);
303
- } else
304
- s && s();
297
+ } else s && s();
305
298
  }
306
299
  const Zt = { duration: 0 };
307
300
  function ut(e, t, n, s) {
@@ -667,8 +660,7 @@ function ce(e, t) {
667
660
  }
668
661
  }
669
662
  function ue(e, t) {
670
- if (!e || !t)
671
- return;
663
+ if (!e || !t) return;
672
664
  const n = new URL(t);
673
665
  fetch(n.href).then((s) => s.text()).then((s) => {
674
666
  const r = document.createElement("style");
@@ -678,8 +670,7 @@ function ue(e, t) {
678
670
  });
679
671
  }
680
672
  function le(e, t, n, s = !1) {
681
- if (!window.emMessageBus)
682
- return;
673
+ if (!window.emMessageBus) return;
683
674
  if (!("adoptedStyleSheets" in Document.prototype) || !s)
684
675
  return n = fe(e, t), n;
685
676
  window[x] || (window[x] = {}), n = ae(e, t);
@@ -700,8 +691,7 @@ function fe(e, t) {
700
691
  }
701
692
  function ae(e, t) {
702
693
  return window.emMessageBus.subscribe(t, (n) => {
703
- if (!e)
704
- return;
694
+ if (!e) return;
705
695
  const s = e.getRootNode(), r = window[x];
706
696
  let i = r[t] && r[t].sheet;
707
697
  i ? r[t].refCount = r[t].refCount + 1 : (i = new CSSStyleSheet(), i.replaceSync(n), r[t] = {
@@ -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-5OPOCZV0.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-BhgMI1Lo.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-iyapqBmS.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountModal-u7rLuFte.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-DLnS_odJ.js";
1
+ import { P as s } from "../components/PlayerAccountModal-BES3K7d7.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.99.57",
3
+ "version": "1.99.60",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-modal.cjs",
6
6
  "module": "esnext/player-account-modal.js",