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