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