@everymatrix/casino-header-controller 1.45.8 → 1.45.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ "use strict";var at=Object.defineProperty,rt=Object.defineProperties;var ot=Object.getOwnPropertyDescriptors;var He=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable;var ze=(o,e,n)=>e in o?at(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,Ue=(o,e)=>{for(var n in e||(e={}))it.call(e,n)&&ze(o,n,e[n]);if(He)for(var n of He(e))st.call(e,n)&&ze(o,n,e[n]);return o},Pe=(o,e)=>rt(o,ot(e));var Ge=(o,e,n)=>new Promise((i,d)=>{var u=g=>{try{p(n.next(g))}catch(v){d(v)}},y=g=>{try{p(n.throw(g))}catch(v){d(v)}},p=g=>g.done?i(g.value):Promise.resolve(g.value).then(u,y);p((n=n.apply(o,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-B0MV4RSB.cjs");function Xe(o,e){t.addMessages(o,e)}function lt(o){t.$locale.set(o)}const qe={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen",Loading:"Wird geladen ..."},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita",Loading:"Caricamento ..."},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt",Loading:"Chargement ..."},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit",Loading:"Se încarcă ..."},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit",Loading:"Učitavanje ..."},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés",Loading:"Betöltés ..."},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać",Loading:"Ładowanie ..."},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit",Loading:"Učitavanje ..."},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."}};var Ie={exports:{}};/** @license
2
+ * eventsource.js
3
+ * Available under MIT License (MIT)
4
+ * https://github.com/Yaffle/EventSource/
5
+ */(function(o,e){(function(n){var i=n.setTimeout,d=n.clearTimeout,u=n.XMLHttpRequest,y=n.XDomainRequest,p=n.ActiveXObject,g=n.EventSource,v=n.document,x=n.Promise,F=n.fetch,C=n.Response,B=n.TextDecoder,A=n.TextEncoder,H=n.AbortController;if(typeof window!="undefined"&&typeof v!="undefined"&&!("readyState"in v)&&v.body==null&&(v.readyState="loading",window.addEventListener("load",function(a){v.readyState="complete"},!1)),u==null&&p!=null&&(u=function(){return new p("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(a){function r(){}return r.prototype=a,new r}),Date.now||(Date.now=function(){return new Date().getTime()}),H==null){var M=F;F=function(a,r){var c=r.signal;return M(a,{headers:r.headers,credentials:r.credentials,cache:r.cache}).then(function(s){var l=s.body.getReader();return c._reader=l,c._aborted&&c._reader.cancel(),{status:s.status,statusText:s.statusText,headers:s.headers,body:{getReader:function(){return l}}}})},H=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function V(){this.bitsNeeded=0,this.codePoint=0}V.prototype.decode=function(a){function r(E,L,w){if(w===1)return E>=128>>L&&E<<L<=2047;if(w===2)return E>=2048>>L&&E<<L<=55295||E>=57344>>L&&E<<L<=65535;if(w===3)return E>=65536>>L&&E<<L<=1114111;throw new Error}function c(E,L){if(E===6*1)return L>>6>15?3:L>31?2:1;if(E===6*2)return L>15?3:2;if(E===6*3)return 3;throw new Error}for(var s=65533,l="",m=this.bitsNeeded,b=this.codePoint,k=0;k<a.length;k+=1){var _=a[k];m!==0&&(_<128||_>191||!r(b<<6|_&63,m-6,c(m,b)))&&(m=0,b=s,l+=String.fromCharCode(b)),m===0?(_>=0&&_<=127?(m=0,b=_):_>=192&&_<=223?(m=6*1,b=_&31):_>=224&&_<=239?(m=6*2,b=_&15):_>=240&&_<=247?(m=6*3,b=_&7):(m=0,b=s),m!==0&&!r(b,m,c(m,b))&&(m=0,b=s)):(m-=6,b=b<<6|_&63),m===0&&(b<=65535?l+=String.fromCharCode(b):(l+=String.fromCharCode(55296+(b-65535-1>>10)),l+=String.fromCharCode(56320+(b-65535-1&1023))))}return this.bitsNeeded=m,this.codePoint=b,l};var z=function(){try{return new B().decode(new A().encode("test"),{stream:!0})==="test"}catch(a){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+a)}return!1};(B==null||A==null||!z())&&(B=V);var S=function(){};function R(a){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=a,this._sendTimeout=0,this._abort=S}R.prototype.open=function(a,r){this._abort(!0);var c=this,s=this._xhr,l=1,m=0;this._abort=function(w){c._sendTimeout!==0&&(d(c._sendTimeout),c._sendTimeout=0),(l===1||l===2||l===3)&&(l=4,s.onload=S,s.onerror=S,s.onabort=S,s.onprogress=S,s.onreadystatechange=S,s.abort(),m!==0&&(d(m),m=0),w||(c.readyState=4,c.onabort(null),c.onreadystatechange())),l=0};var b=function(){if(l===1){var w=0,O="",ne=void 0;if("contentType"in s)w=200,O="OK",ne=s.contentType;else try{w=s.status,O=s.statusText,ne=s.getResponseHeader("Content-Type")}catch(Be){w=0,O="",ne=void 0}w!==0&&(l=2,c.readyState=2,c.status=w,c.statusText=O,c._contentType=ne,c.onreadystatechange())}},k=function(){if(b(),l===2||l===3){l=3;var w="";try{w=s.responseText}catch(O){}c.readyState=3,c.responseText=w,c.onprogress()}},_=function(w,O){if((O==null||O.preventDefault==null)&&(O={preventDefault:S}),k(),l===1||l===2||l===3){if(l=4,m!==0&&(d(m),m=0),c.readyState=4,w==="load")c.onload(O);else if(w==="error")c.onerror(O);else if(w==="abort")c.onabort(O);else throw new TypeError;c.onreadystatechange()}},E=function(w){s!=null&&(s.readyState===4?(!("onload"in s)||!("onerror"in s)||!("onabort"in s))&&_(s.responseText===""?"error":"load",w):s.readyState===3?"onprogress"in s||k():s.readyState===2&&b())},L=function(){m=i(function(){L()},500),s.readyState===3&&k()};"onload"in s&&(s.onload=function(w){_("load",w)}),"onerror"in s&&(s.onerror=function(w){_("error",w)}),"onabort"in s&&(s.onabort=function(w){_("abort",w)}),"onprogress"in s&&(s.onprogress=k),"onreadystatechange"in s&&(s.onreadystatechange=function(w){E(w)}),("contentType"in s||!("ontimeout"in u.prototype))&&(r+=(r.indexOf("?")===-1?"?":"&")+"padding=true"),s.open(a,r,!0),"readyState"in s&&(m=i(function(){L()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(a){return this._contentType},R.prototype.setRequestHeader=function(a,r){var c=this._xhr;"setRequestHeader"in c&&c.setRequestHeader(a,r)},R.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&v!=null&&v.readyState!=null&&v.readyState!=="complete"){var a=this;a._sendTimeout=i(function(){a._sendTimeout=0,a.send()},4);return}var r=this._xhr;"withCredentials"in r&&(r.withCredentials=this.withCredentials);try{r.send(void 0)}catch(c){throw c}};function U(a){return a.replace(/[A-Z]/g,function(r){return String.fromCharCode(r.charCodeAt(0)+32)})}function D(a){for(var r=Object.create(null),c=a.split(`\r
6
+ `),s=0;s<c.length;s+=1){var l=c[s],m=l.split(": "),b=m.shift(),k=m.join(": ");r[U(b)]=k}this._map=r}D.prototype.get=function(a){return this._map[U(a)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function q(){}q.prototype.open=function(a,r,c,s,l,m,b){a.open("GET",l);var k=0;a.onprogress=function(){var E=a.responseText,L=E.slice(k);k+=L.length,c(L)},a.onerror=function(E){E.preventDefault(),s(new Error("NetworkError"))},a.onload=function(){s(null)},a.onabort=function(){s(null)},a.onreadystatechange=function(){if(a.readyState===u.HEADERS_RECEIVED){var E=a.status,L=a.statusText,w=a.getResponseHeader("Content-Type"),O=a.getAllResponseHeaders();r(E,L,w,new D(O))}},a.withCredentials=m;for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&a.setRequestHeader(_,b[_]);return a.send(),a};function ie(a){this._headers=a}ie.prototype.get=function(a){return this._headers.get(a)};function se(){}se.prototype.open=function(a,r,c,s,l,m,b){var k=null,_=new H,E=_.signal,L=new B;return F(l,{headers:b,credentials:m?"include":"same-origin",signal:E,cache:"no-store"}).then(function(w){return k=w.body.getReader(),r(w.status,w.statusText,w.headers.get("Content-Type"),new ie(w.headers)),new x(function(O,ne){var Be=function(){k.read().then(function(W){if(W.done)O(void 0);else{var P=L.decode(W.value,{stream:!0});c(P),Be()}}).catch(function(W){ne(W)})};Be()})}).catch(function(w){if(w.name!=="AbortError")return w}).then(function(w){s(w)}),{abort:function(){k!=null&&k.cancel(),_.abort()}}};function h(){this._listeners=Object.create(null)}function le(a){i(function(){throw a},0)}h.prototype.dispatchEvent=function(a){a.target=this;var r=this._listeners[a.type];if(r!=null)for(var c=r.length,s=0;s<c;s+=1){var l=r[s];try{typeof l.handleEvent=="function"?l.handleEvent(a):l.call(this,a)}catch(m){le(m)}}},h.prototype.addEventListener=function(a,r){a=String(a);var c=this._listeners,s=c[a];s==null&&(s=[],c[a]=s);for(var l=!1,m=0;m<s.length;m+=1)s[m]===r&&(l=!0);l||s.push(r)},h.prototype.removeEventListener=function(a,r){a=String(a);var c=this._listeners,s=c[a];if(s!=null){for(var l=[],m=0;m<s.length;m+=1)s[m]!==r&&l.push(s[m]);l.length===0?delete c[a]:c[a]=l}};function ce(a){this.type=a,this.target=void 0}function ge(a,r){ce.call(this,a),this.data=r.data,this.lastEventId=r.lastEventId}ge.prototype=Object.create(ce.prototype);function ye(a,r){ce.call(this,a),this.status=r.status,this.statusText=r.statusText,this.headers=r.headers}ye.prototype=Object.create(ce.prototype);function _e(a,r){ce.call(this,a),this.error=r.error}_e.prototype=Object.create(ce.prototype);var ve=-1,Q=0,te=1,ue=2,fe=-1,Z=0,we=1,be=2,De=3,Le=/^text\/event\-stream(;.*)?$/i,Ae=1e3,Me=18e6,Te=function(a,r){var c=a==null?r:parseInt(a,10);return c!==c&&(c=r),Ce(c)},Ce=function(a){return Math.min(Math.max(a,Ae),Me)},de=function(a,r,c){try{typeof r=="function"&&r.call(a,c)}catch(s){le(s)}};function K(a,r){h.call(this),r=r||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,f(this,a,r)}function Fe(){return u!=null&&"withCredentials"in u.prototype||y==null?new u:new y}var ke=F!=null&&C!=null&&"body"in C.prototype;function f(a,r,c){r=String(r);var s=!!c.withCredentials,l=c.lastEventIdQueryParameterName||"lastEventId",m=Ce(1e3),b=Te(c.heartbeatTimeout,45e3),k="",_=m,E=!1,L=0,w=c.headers||{},O=c.Transport,ne=ke&&O==null?void 0:new R(O!=null?new O:Fe()),Be=O!=null&&typeof O!="string"?new O:ne==null?new se:new q,W=void 0,P=0,$=ve,he="",Re="",ae="",Ee="",G=Z,Oe=0,pe=0,tt=function(I,N,J,Y){if($===Q)if(I===200&&J!=null&&Le.test(J)){$=te,E=Date.now(),_=m,a.readyState=te;var X=new ye("open",{status:I,statusText:N,headers:Y});a.dispatchEvent(X),de(a,a.onopen,X)}else{var j="";I!==200?(N&&(N=N.replace(/\s+/g," ")),j="EventSource's response has a status "+I+" "+N+" that is not 200. Aborting the connection."):j="EventSource's response has a Content-Type specifying an unsupported type: "+(J==null?"-":J.replace(/\s+/g," "))+". Aborting the connection.",Ne();var X=new ye("error",{status:I,statusText:N,headers:Y});a.dispatchEvent(X),de(a,a.onerror,X),console.error(j)}},nt=function(I){if($===te){for(var N=-1,J=0;J<I.length;J+=1){var Y=I.charCodeAt(J);(Y===10||Y===13)&&(N=J)}var X=(N!==-1?Ee:"")+I.slice(0,N+1);Ee=(N===-1?Ee:"")+I.slice(N+1),I!==""&&(E=Date.now(),L+=I.length);for(var j=0;j<X.length;j+=1){var Y=X.charCodeAt(j);if(G===fe&&Y===10)G=Z;else if(G===fe&&(G=Z),Y===13||Y===10){if(G!==Z){G===we&&(pe=j+1);var re=X.slice(Oe,pe-1),oe=X.slice(pe+(pe<j&&X.charCodeAt(pe)===32?1:0),j);re==="data"?(he+=`
7
+ `,he+=oe):re==="id"?Re=oe:re==="event"?ae=oe:re==="retry"?(m=Te(oe,m),_=m):re==="heartbeatTimeout"&&(b=Te(oe,b),P!==0&&(d(P),P=i(function(){Se()},b)))}if(G===Z){if(he!==""){k=Re,ae===""&&(ae="message");var me=new ge(ae,{data:he.slice(1),lastEventId:Re});if(a.dispatchEvent(me),ae==="open"?de(a,a.onopen,me):ae==="message"?de(a,a.onmessage,me):ae==="error"&&de(a,a.onerror,me),$===ue)return}he="",ae=""}G=Y===13?fe:Z}else G===Z&&(Oe=j,G=we),G===we?Y===58&&(pe=j+1,G=be):G===be&&(G=De)}}},je=function(I){if($===te||$===Q){$=ve,P!==0&&(d(P),P=0),P=i(function(){Se()},_),_=Ce(Math.min(m*16,_*2)),a.readyState=Q;var N=new _e("error",{error:I});a.dispatchEvent(N),de(a,a.onerror,N),I!=null&&console.error(I)}},Ne=function(){$=ue,W!=null&&(W.abort(),W=void 0),P!==0&&(d(P),P=0),a.readyState=ue},Se=function(){if(P=0,$!==ve){if(!E&&W!=null)je(new Error("No activity within "+b+" milliseconds. "+($===Q?"No response received.":L+" chars received.")+" Reconnecting.")),W!=null&&(W.abort(),W=void 0);else{var I=Math.max((E||Date.now())+b-Date.now(),1);E=!1,P=i(function(){Se()},I)}return}E=!1,L=0,P=i(function(){Se()},b),$=Q,he="",ae="",Re=k,Ee="",Oe=0,pe=0,G=Z;var N=r;if(r.slice(0,5)!=="data:"&&r.slice(0,5)!=="blob:"&&k!==""){var J=r.indexOf("?");N=J===-1?r:r.slice(0,J+1)+r.slice(J+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(oe,me){return me===l?"":oe}),N+=(r.indexOf("?")===-1?"?":"&")+l+"="+encodeURIComponent(k)}var Y=a.withCredentials,X={};X.Accept="text/event-stream";var j=a.headers;if(j!=null)for(var re in j)Object.prototype.hasOwnProperty.call(j,re)&&(X[re]=j[re]);try{W=Be.open(ne,tt,nt,je,N,Y,X)}catch(oe){throw Ne(),oe}};a.url=r,a.readyState=Q,a.withCredentials=s,a.headers=w,a._close=Ne,Se()}K.prototype=Object.create(h.prototype),K.prototype.CONNECTING=Q,K.prototype.OPEN=te,K.prototype.CLOSED=ue,K.prototype.close=function(){this._close()},K.CONNECTING=Q,K.OPEN=te,K.CLOSED=ue,K.prototype.withCredentials=void 0;var T=g;u!=null&&(g==null||!("withCredentials"in g.prototype))&&(T=K),function(a){{var r=a(e);r!==void 0&&(o.exports=r)}}(function(a){a.EventSourcePolyfill=K,a.NativeEventSource=g,a.EventSource=T})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:t.commonjsGlobal:globalThis)})(Ie,Ie.exports);var ct=Ie.exports;/*!
8
+ * currency.js - v2.0.4
9
+ * http://scurker.github.io/currency.js
10
+ *
11
+ * Copyright (c) 2021 Jason Wilson
12
+ * Released under MIT license
13
+ */var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(e){return Math.round(e)},Ve=function(e){return Math.pow(10,e)},ut=function(e,n){return $e(e/n)*n},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function ee(o,e){var n=this;if(!(n instanceof ee))return new ee(o,e);var i=Object.assign({},dt,e),d=Ve(i.precision),u=xe(o,i);n.intValue=u,n.value=u/d,i.increment=i.increment||1/d,i.useVedic?i.groups=pt:i.groups=ft,this.s=i,this.p=d}function xe(o,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=0,d=e.decimal,u=e.errorOnInvalid,y=e.precision,p=e.fromCents,g=Ve(y),v=typeof o=="number",x=o instanceof ee;if(x&&p)return o.intValue;if(v||x)i=x?o.value:o;else if(typeof o=="string"){var F=new RegExp("[^-\\d"+d+"]","g"),C=new RegExp("\\"+d,"g");i=o.replace(/\((.*)\)/,"-$1").replace(F,"").replace(C,"."),i=i||0}else{if(u)throw Error("Invalid Input");i=0}return p||(i*=g,i=i.toFixed(4)),n?$e(i):i}function ht(o,e){var n=e.pattern,i=e.negativePattern,d=e.symbol,u=e.separator,y=e.decimal,p=e.groups,g=(""+o).replace(/^-/,"").split("."),v=g[0],x=g[1];return(o.value>=0?n:i).replace("!",d).replace("#",v.replace(p,"$1"+u)+(x?y+x:""))}ee.prototype={add:function(e){var n=this.intValue,i=this.s,d=this.p;return ee((n+=xe(e,i))/(i.fromCents?1:d),i)},subtract:function(e){var n=this.intValue,i=this.s,d=this.p;return ee((n-=xe(e,i))/(i.fromCents?1:d),i)},multiply:function(e){var n=this.intValue,i=this.s;return ee((n*=e)/(i.fromCents?1:Ve(i.precision)),i)},divide:function(e){var n=this.intValue,i=this.s;return ee(n/=xe(e,i,!1),i)},distribute:function(e){for(var n=this.intValue,i=this.p,d=this.s,u=[],y=Math[n>=0?"floor":"ceil"](n/e),p=Math.abs(n-y*e),g=d.fromCents?1:i;e!==0;e--){var v=ee(y/g,d);p-- >0&&(v=v[n>=0?"add":"subtract"](1/g)),u.push(v)}return u},dollars:function(){return~~this.value},cents:function(){var e=this.intValue,n=this.p;return~~(e%n)},format:function(e){var n=this.s;return typeof e=="function"?e(this,n):n.format(this,Object.assign({},n,e))},toString:function(){var e=this.intValue,n=this.p,i=this.s;return ut(e/n,i.increment).toFixed(i.precision)},toJSON:function(){return this.value}};function mt(o){t.append_styles(o,"svelte-1hc0yx4",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emfe-w-header-contrast, var(--emfe-w-color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}')}function Ke(o,e,n){const i=o.slice();return i[47]=e[n],i}function We(o,e,n){const i=o.slice();return i[50]=e[n],i}function gt(o){let e,n=(o[4].Total?o[6](o[4].Total[0].amount):"0")+"",i,d,u,y,p,g,v,x,F,C=o[2]&&Je(o);return{c(){e=t.element("p"),i=t.text(n),d=t.space(),u=t.text(o[3]),y=t.space(),p=t.element("span"),p.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',g=t.space(),C&&C.c(),v=t.empty(),t.attr(e,"class","BalanceValue"),t.attr(e,"part","BalanceValue")},m(B,A){t.insert(B,e,A),t.append(e,i),t.append(e,d),t.append(e,u),t.append(e,y),t.append(e,p),t.insert(B,g,A),C&&C.m(B,A),t.insert(B,v,A),x||(F=t.listen(e,"click",o[22]),x=!0)},p(B,A){A[0]&16&&n!==(n=(B[4].Total?B[6](B[4].Total[0].amount):"0")+"")&&t.set_data(i,n),A[0]&8&&t.set_data(u,B[3]),B[2]?C?C.p(B,A):(C=Je(B),C.c(),C.m(v.parentNode,v)):C&&(C.d(1),C=null)},d(B){B&&(t.detach(e),t.detach(g),t.detach(v)),C&&C.d(B),x=!1,F()}}}function yt(o){let e,n=o[5]("Loading")+"",i;return{c(){e=t.element("p"),i=t.text(n)},m(d,u){t.insert(d,e,u),t.append(e,i)},p(d,u){u[0]&32&&n!==(n=d[5]("Loading")+"")&&t.set_data(i,n)},d(d){d&&t.detach(e)}}}function Je(o){let e,n,i,d,u,y,p=o[5]("Title")+"",g,v,x,F,C,B,A=o[5]("DepositButton")+"",H,M,V,z=t.ensure_array_like(Object.keys(o[4])),S=[];for(let R=0;R<z.length;R+=1)S[R]=Qe(Ke(o,z,R));return{c(){e=t.element("div"),n=t.element("div"),i=t.space(),d=t.element("div"),u=t.element("div"),y=t.element("p"),g=t.text(p),v=t.space(),x=t.element("div");for(let R=0;R<S.length;R+=1)S[R].c();F=t.space(),C=t.element("div"),B=t.element("button"),H=t.text(A),t.attr(n,"class","BalanceModalClose"),t.attr(y,"class","BalanceModalTitle"),t.attr(u,"class","BalanceModalHeader"),t.attr(x,"class","BalanceModalBody"),t.attr(B,"class","BalanceModalAction"),t.attr(C,"class","BalanceModalFooter"),t.attr(d,"class","BalanceModal"),t.attr(e,"class","BalanceModalWrapper")},m(R,U){t.insert(R,e,U),t.append(e,n),t.append(e,i),t.append(e,d),t.append(d,u),t.append(u,y),t.append(y,g),t.append(d,v),t.append(d,x);for(let D=0;D<S.length;D+=1)S[D]&&S[D].m(x,null);t.append(d,F),t.append(d,C),t.append(C,B),t.append(B,H),M||(V=[t.listen(n,"click",o[23]),t.listen(B,"click",o[24])],M=!0)},p(R,U){if(U[0]&32&&p!==(p=R[5]("Title")+"")&&t.set_data(g,p),U[0]&120){z=t.ensure_array_like(Object.keys(R[4]));let D;for(D=0;D<z.length;D+=1){const q=Ke(R,z,D);S[D]?S[D].p(q,U):(S[D]=Qe(q),S[D].c(),S[D].m(x,null))}for(;D<S.length;D+=1)S[D].d(1);S.length=z.length}U[0]&32&&A!==(A=R[5]("DepositButton")+"")&&t.set_data(H,A)},d(R){R&&t.detach(e),t.destroy_each(S,R),M=!1,t.run_all(V)}}}function Ye(o){let e,n,i=o[5](o[47])+"",d,u,y=(o[50].productType?o[5](o[50].productType):"")+"",p,g,v,x,F=(o[50].amount?o[6](o[50].amount):"0")+"",C,B,A,H;return{c(){e=t.element("div"),n=t.element("p"),d=t.text(i),u=t.space(),p=t.text(y),g=t.space(),v=t.element("p"),x=t.element("span"),C=t.text(F),B=t.space(),A=t.element("span"),H=t.text(o[3]),t.attr(n,"class","BalanceModalText"),t.attr(x,"class","BalanceModalAmount"),t.attr(A,"class","BalanceModalCurrency"),t.attr(v,"class","BalanceModalValue"),t.attr(e,"class","BalanceModalRowLine")},m(M,V){t.insert(M,e,V),t.append(e,n),t.append(n,d),t.append(n,u),t.append(n,p),t.append(e,g),t.append(e,v),t.append(v,x),t.append(x,C),t.append(v,B),t.append(v,A),t.append(A,H)},p(M,V){V[0]&48&&i!==(i=M[5](M[47])+"")&&t.set_data(d,i),V[0]&48&&y!==(y=(M[50].productType?M[5](M[50].productType):"")+"")&&t.set_data(p,y),V[0]&16&&F!==(F=(M[50].amount?M[6](M[50].amount):"0")+"")&&t.set_data(C,F),V[0]&8&&t.set_data(H,M[3])},d(M){M&&t.detach(e)}}}function Qe(o){let e,n,i=t.ensure_array_like(o[4][o[47]]),d=[];for(let u=0;u<i.length;u+=1)d[u]=Ye(We(o,i,u));return{c(){e=t.element("div");for(let u=0;u<d.length;u+=1)d[u].c();n=t.space(),t.attr(e,"class","BalanceModalRowBoth")},m(u,y){t.insert(u,e,y);for(let p=0;p<d.length;p+=1)d[p]&&d[p].m(e,null);t.append(e,n)},p(u,y){if(y[0]&120){i=t.ensure_array_like(u[4][u[47]]);let p;for(p=0;p<i.length;p+=1){const g=We(u,i,p);d[p]?d[p].p(g,y):(d[p]=Ye(g),d[p].c(),d[p].m(e,n))}for(;p<d.length;p+=1)d[p].d(1);d.length=i.length}},d(u){u&&t.detach(e),t.destroy_each(d,u)}}}function Ze(o){let e,n,i;return{c(){e=t.element("div"),t.attr(e,"class","ShowBalanceModalOverlay")},m(d,u){t.insert(d,e,u),n||(i=t.listen(e,"click",o[25]),n=!0)},p:t.noop,d(d){d&&t.detach(e),n=!1,i()}}}function vt(o){let e,n,i;function d(g,v){return g[1]?yt:gt}let u=d(o),y=u(o),p=o[2]&&Ze(o);return{c(){e=t.element("div"),n=t.element("div"),y.c(),i=t.space(),p&&p.c(),t.attr(n,"class","ShowBalance"),t.attr(n,"part","ShowBalance")},m(g,v){t.insert(g,e,v),t.append(e,n),y.m(n,null),t.append(e,i),p&&p.m(e,null),o[26](e)},p(g,v){u===(u=d(g))&&y?y.p(g,v):(y.d(1),y=u(g),y&&(y.c(),y.m(n,null))),g[2]?p?p.p(g,v):(p=Ze(g),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:t.noop,o:t.noop,d(g){g&&t.detach(e),y.d(),p&&p.d(),o[26](null)}}}function wt(o,e,n){let i;t.component_subscribe(o,t.$format,f=>n(5,i=f));let{userid:d=""}=e,{session:u=""}=e,{endpoint:y=""}=e,{lang:p="en"}=e,{clientstyling:g=""}=e,{clientstylingurl:v=""}=e,{translationurl:x=""}=e,{customlocaleidentifier:F=""}=e,{gmversion:C="gm16"}=e,{displaybalanceoption:B="All"}=e,{totalcalculationmode:A="totalCashAmount"}=e,{currencyseparator:H=""}=e,{currencydecimal:M=""}=e,{currencyprecision:V=""}=e,z,S,R,U=!1,D="",q=[],ie,se=!1;const h={},le=["totalCashAmount","totalRealAmount"],ce=()=>{fetch(x).then(f=>f.json()).then(f=>Object.keys(f).forEach(T=>Xe(T,f[T]))).catch(f=>console.log(f))};Object.keys(qe).forEach(f=>Xe(f,qe[f]));const ge=()=>{if(F.includes(p))return F},ye=f=>F?new Intl.NumberFormat(ge(),{useGrouping:!0}).format(f):H&&M?ee(f,{separator:H,decimal:M,symbol:"",precision:parseInt(V||"2",10)}).format():ee(f,{separator:".",decimal:",",symbol:"",precision:parseInt(V||"2",10)}).format(),_e=()=>Ge(this,null,function*(){var T,a,r;n(1,z=!0);const f=new URL(`${y}/v1/player/${d}/account`);try{const c=yield fetch(f,{method:"GET",headers:{"X-SessionID":u}}),s=yield c.json();if(c.ok)q=s.items,n(3,D=(T=q.find(l=>l.displayName==="Casino"))==null?void 0:T.currency),n(4,h.Total=[{amount:s.totalAmount[D]}],h),n(4,h.Real=[{amount:(a=q.find(l=>l.displayName==="Casino"))==null?void 0:a.balanceAmount}],h),n(4,h.Bonus=[{amount:(r=q.find(l=>l.displayName==="UBS"))==null?void 0:r.balanceAmount}],h);else throw new Error("Failed to fetch balance data !")}catch(c){console.log("Balance error: ",c)}finally{n(1,z=!1)}}),ve=()=>{n(1,z=!0);const f=new URL(`${y}/v2/player/${d}/balance`),T=new Headers;T.append("X-SessionID",u),fetch(f,{method:"GET",headers:T}).then(r=>r.json()).then(r=>{r[A]||n(8,A=le[0]);const c=r.items.find(l=>l.type==="Real"&&l.walletAccountType==="Ordinary");if(n(3,D=c.currency),se=!!c.productType,n(4,h.Total=[{amount:0}],h),n(4,h.Real=[],h),n(4,h.Bonus=[],h),n(4,h.Credit=[],h),!se){ie={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},n(4,h.Total[0].amount=r[A][D],h);for(const l of r.items)switch(l.type){case"Bonus":h.Bonus.length===0?h.Bonus.push({amount:l.amount}):n(4,h.Bonus[0].amount+=l.amount,h);break;case"Real":if(l.creditLine&&h.Credit.length===0&&h.Credit.push({amount:l.creditLine}),A==="totalRealAmount")continue;h.Real.length===0?h.Real.push({amount:l.amount}):n(4,h.Real[0].amount+=l.amount,h);break}for(const[l,m]of Object.entries(h))m.length<1&&delete h[l];n(1,z=!1);return}ie={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let s=r.items;B&&B!=="All"&&(s=r.items.filter(l=>l.productType===B));for(const l of s){let m;switch(l.type){case"Bonus":m=h.Bonus.findIndex(b=>b.productType===l.productType),m>0?n(4,h.Bonus[m].amount+=l.amount,h):h.Bonus.push({amount:l.amount,productType:l.productType});break;case"Real":l.creditLine&&h.Credit.push({amount:l.creditLine,productType:l.productType}),m=h.Real.findIndex(b=>b.productType===l.productType),m>0?n(4,h.Real[m].amount+=l.amount,h):h.Real.push({amount:l.amount,productType:l.productType});break}}Z();for(const[l,m]of Object.entries(h))m.length<1&&delete h[l];n(1,z=!1)}).catch(r=>{throw n(1,z=!1),new Error("Failed to fetch balance data !")})},Q=()=>{if(R&&R.close(),u.length<1)return;let f,T;switch(C){case"gm16":f=new URL(`${y}/v2/player/${d}/information/updates`),T=c=>we(c);break;case"gmcore":f=new URL(`${y}/v1/player/${d}/balance/updates`),T=c=>ue(c);break}const a={accept:"text/event-stream","X-SessionId":u},r=new ct.EventSourcePolyfill(f,{headers:a});R=r,r.addEventListener("message",T)},te=f=>{let T;try{T=JSON.parse(f)}catch(a){console.log("Balance stream failed: ",a);return}return T},ue=f=>{var c,s;const T=te(f.data);if(!T){Q();return}let a="0";const r=T.balanceChange;q=q.map(l=>(r&&r[l.id]&&(l=Pe(Ue({},l),{balanceAmount:r[l.id].afterAmount})),a=(parseFloat(l==null?void 0:l.balanceAmount)+parseFloat(a)).toString(),l)),n(4,h.Real=[{amount:(c=q[0])==null?void 0:c.balanceAmount}],h),n(4,h.Bonus=[{amount:(s=q[1])==null?void 0:s.balanceAmount}],h),n(4,h.Total=[{amount:Number(a)}],h)},fe=(f,T,a)=>{let r=null;switch(a.walletAccountType){case"Ordinary":a.afterAmount!==a.affectedAmount&&(T.lastOrdinaryAfterAmount=a.afterAmount,T.showCreditLineAfterAmount||(r=a.afterAmount));break;case"CreditLine":a.afterAmount!==0?(r=a.afterAmount,T.showCreditLineAfterAmount=!0):(r=T.lastOrdinaryAfterAmount,T.showCreditLineAfterAmount=!1);break;default:r=a.afterAmount}return r===null?f:r},Z=()=>{switch(A){case"totalCashAmount":let f=0;for(const a of["Real","Bonus"])for(const r of h[a])f+=Math.max(r.amount,0);n(4,h.Total[0].amount=f,h);break;case"totalRealAmount":if(!se)return;let T=0;for(const a of h.Real)T+=a.amount;n(4,h.Total[0].amount=T,h)}},we=f=>{const T=te(f.data);if(!T){Q();return}if(T.type!=="BALANCE_UPDATE_V2")return;const a=T.body.balanceChange;for(const[r,c]of Object.entries(a))if(A==="totalRealAmount"&&r==="Real"&&!se&&n(4,h.Total[0].amount=fe(h.Total[0].amount,ie,c),h),!!h[r])for(const s of h[r]){if(!se){s.amount=r==="Real"?fe(s.amount,ie,c):c.afterAmount;continue}c.productType===s.productType&&(s.amount=r==="Real"?fe(s.amount,ie[s.productType],c):c.afterAmount)}Z()},be=()=>{n(2,U=!1),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},De=()=>{le.includes(A)||(console.error(`Unsupported value ('${A}') for totalcalculationmode parameter. Only the following values are supported ${le}. Using default value ('${le[0]}').`),n(8,A=le[0]))},Le=()=>{switch(lt(p),De(),C){case"gmcore":_e();break;case"gm16":ve();break;default:throw Error(`Invalid apiversion attribute: ${C}`)}},Ae=f=>f.data&&f.data.type==="LogoutSuccessfull"&&R.close(),Me=()=>{const f=document.createElement("style");f.innerHTML=g,S.appendChild(f)},Te=()=>{const f=new URL(v),T=document.createElement("style");fetch(f.href).then(a=>a.text()).then(a=>{T.innerHTML=a,setTimeout(()=>{S.appendChild(T)},1)})};t.onMount(()=>(window.addEventListener("message",Ae,!1),()=>{window.removeEventListener("message",Ae),R&&R.close()}));const Ce=()=>n(2,U=!0),de=()=>n(2,U=!1),K=()=>be(),Fe=()=>n(2,U=!1);function ke(f){t.binding_callbacks[f?"unshift":"push"](()=>{S=f,n(0,S)})}return o.$$set=f=>{"userid"in f&&n(9,d=f.userid),"session"in f&&n(10,u=f.session),"endpoint"in f&&n(11,y=f.endpoint),"lang"in f&&n(12,p=f.lang),"clientstyling"in f&&n(13,g=f.clientstyling),"clientstylingurl"in f&&n(14,v=f.clientstylingurl),"translationurl"in f&&n(15,x=f.translationurl),"customlocaleidentifier"in f&&n(16,F=f.customlocaleidentifier),"gmversion"in f&&n(17,C=f.gmversion),"displaybalanceoption"in f&&n(18,B=f.displaybalanceoption),"totalcalculationmode"in f&&n(8,A=f.totalcalculationmode),"currencyseparator"in f&&n(19,H=f.currencyseparator),"currencydecimal"in f&&n(20,M=f.currencydecimal),"currencyprecision"in f&&n(21,V=f.currencyprecision)},o.$$.update=()=>{o.$$.dirty[0]&4096&&p&&ge(),o.$$.dirty[0]&400896&&y&&d&&u&&p&&C&&B&&Le(),o.$$.dirty[0]&134656&&y&&d&&u&&C&&Q(),o.$$.dirty[0]&8193&&g&&S&&Me(),o.$$.dirty[0]&16385&&v&&S&&Te(),o.$$.dirty[0]&32768&&x&&ce()},[S,z,U,D,h,i,ye,be,A,d,u,y,p,g,v,x,F,C,B,H,M,V,Ce,de,K,Fe,ke]}class et extends t.SvelteComponent{constructor(e){super(),t.init(this,e,wt,vt,t.safe_not_equal,{userid:9,session:10,endpoint:11,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,customlocaleidentifier:16,gmversion:17,displaybalanceoption:18,totalcalculationmode:8,currencyseparator:19,currencydecimal:20,currencyprecision:21},mt,[-1,-1])}get userid(){return this.$$.ctx[9]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[10]}set session(e){this.$$set({session:e}),t.flush()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get customlocaleidentifier(){return this.$$.ctx[16]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),t.flush()}get gmversion(){return this.$$.ctx[17]}set gmversion(e){this.$$set({gmversion:e}),t.flush()}get displaybalanceoption(){return this.$$.ctx[18]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),t.flush()}get totalcalculationmode(){return this.$$.ctx[8]}set totalcalculationmode(e){this.$$set({totalcalculationmode:e}),t.flush()}get currencyseparator(){return this.$$.ctx[19]}set currencyseparator(e){this.$$set({currencyseparator:e}),t.flush()}get currencydecimal(){return this.$$.ctx[20]}set currencydecimal(e){this.$$set({currencydecimal:e}),t.flush()}get currencyprecision(){return this.$$.ctx[21]}set currencyprecision(e){this.$$set({currencyprecision:e}),t.flush()}}t.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;
@@ -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/CasinoHeaderController-ZXDtahtb.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller")&&customElements.define("casino-header-controller",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderController-BNRLOF6n.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller")&&customElements.define("casino-header-controller",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoHeaderController-DXkH7S0F.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoHeaderController-BVr_q9Vp.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-header-controller") && customElements.define("casino-header-controller", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller",
3
- "version": "1.45.8",
3
+ "version": "1.45.10",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-header-controller.cjs",
6
6
  "module": "es2015/casino-header-controller.js",
@@ -19,10 +19,10 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@everymatrix/casino-slider": "1.45.8",
23
- "@everymatrix/casino-hamburger-menu": "1.45.8",
24
- "@everymatrix/player-account-balance-modal": "1.45.8",
25
- "@everymatrix/player-deposit": "1.45.8",
22
+ "@everymatrix/casino-slider": "1.45.7",
23
+ "@everymatrix/casino-hamburger-menu": "1.45.7",
24
+ "@everymatrix/player-account-balance-modal": "1.45.7",
25
+ "@everymatrix/player-deposit": "1.45.7",
26
26
  "@everymatrix/user-deposit-withdrawal": "*"
27
27
  }
28
28
  }
@@ -1,17 +0,0 @@
1
- "use strict";var at=Object.defineProperty,rt=Object.defineProperties;var ot=Object.getOwnPropertyDescriptors;var je=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable;var ze=(r,e,a)=>e in r?at(r,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[e]=a,Ue=(r,e)=>{for(var a in e||(e={}))it.call(e,a)&&ze(r,a,e[a]);if(je)for(var a of je(e))st.call(e,a)&&ze(r,a,e[a]);return r},Pe=(r,e)=>rt(r,ot(e));var Ge=(r,e,a)=>new Promise((i,c)=>{var u=b=>{try{h(a.next(b))}catch(g){c(g)}},T=b=>{try{h(a.throw(b))}catch(g){c(g)}},h=b=>b.done?i(b.value):Promise.resolve(b.value).then(u,T);h((a=a.apply(r,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-B0MV4RSB.cjs");function Xe(r,e){t.addMessages(r,e)}function lt(r){t.$locale.set(r)}const qe={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit"},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款"},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen"},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita"},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt"},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito"},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır"},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит"},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit"},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit"},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés"},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać"},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar"},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit"},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit"},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar"},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito"}};var Ne={exports:{}};/** @license
2
- * eventsource.js
3
- * Available under MIT License (MIT)
4
- * https://github.com/Yaffle/EventSource/
5
- */(function(r,e){(function(a){var i=a.setTimeout,c=a.clearTimeout,u=a.XMLHttpRequest,T=a.XDomainRequest,h=a.ActiveXObject,b=a.EventSource,g=a.document,M=a.Promise,I=a.fetch,L=a.Response,N=a.TextDecoder,S=a.TextEncoder,x=a.AbortController;if(typeof window!="undefined"&&typeof g!="undefined"&&!("readyState"in g)&&g.body==null&&(g.readyState="loading",window.addEventListener("load",function(n){g.readyState="complete"},!1)),u==null&&h!=null&&(u=function(){return new h("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(n){function l(){}return l.prototype=n,new l}),Date.now||(Date.now=function(){return new Date().getTime()}),x==null){var w=I;I=function(n,l){var d=l.signal;return w(n,{headers:l.headers,credentials:l.credentials,cache:l.cache}).then(function(o){var f=o.body.getReader();return d._reader=f,d._aborted&&d._reader.cancel(),{status:o.status,statusText:o.statusText,headers:o.headers,body:{getReader:function(){return f}}}})},x=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function k(){this.bitsNeeded=0,this.codePoint=0}k.prototype.decode=function(n){function l(A,O,v){if(v===1)return A>=128>>O&&A<<O<=2047;if(v===2)return A>=2048>>O&&A<<O<=55295||A>=57344>>O&&A<<O<=65535;if(v===3)return A>=65536>>O&&A<<O<=1114111;throw new Error}function d(A,O){if(A===6*1)return O>>6>15?3:O>31?2:1;if(A===6*2)return O>15?3:2;if(A===6*3)return 3;throw new Error}for(var o=65533,f="",p=this.bitsNeeded,C=this.codePoint,V=0;V<n.length;V+=1){var R=n[V];p!==0&&(R<128||R>191||!l(C<<6|R&63,p-6,d(p,C)))&&(p=0,C=o,f+=String.fromCharCode(C)),p===0?(R>=0&&R<=127?(p=0,C=R):R>=192&&R<=223?(p=6*1,C=R&31):R>=224&&R<=239?(p=6*2,C=R&15):R>=240&&R<=247?(p=6*3,C=R&7):(p=0,C=o),p!==0&&!l(C,p,d(p,C))&&(p=0,C=o)):(p-=6,C=C<<6|R&63),p===0&&(C<=65535?f+=String.fromCharCode(C):(f+=String.fromCharCode(55296+(C-65535-1>>10)),f+=String.fromCharCode(56320+(C-65535-1&1023))))}return this.bitsNeeded=p,this.codePoint=C,f};var Z=function(){try{return new N().decode(new S().encode("test"),{stream:!0})==="test"}catch(n){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+n)}return!1};(N==null||S==null||!Z())&&(N=k);var _=function(){};function E(n){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=_,this.onload=_,this.onerror=_,this.onreadystatechange=_,this._contentType="",this._xhr=n,this._sendTimeout=0,this._abort=_}E.prototype.open=function(n,l){this._abort(!0);var d=this,o=this._xhr,f=1,p=0;this._abort=function(v){d._sendTimeout!==0&&(c(d._sendTimeout),d._sendTimeout=0),(f===1||f===2||f===3)&&(f=4,o.onload=_,o.onerror=_,o.onabort=_,o.onprogress=_,o.onreadystatechange=_,o.abort(),p!==0&&(c(p),p=0),v||(d.readyState=4,d.onabort(null),d.onreadystatechange())),f=0};var C=function(){if(f===1){var v=0,H="",ie=void 0;if("contentType"in o)v=200,H="OK",ie=o.contentType;else try{v=o.status,H=o.statusText,ie=o.getResponseHeader("Content-Type")}catch(Se){v=0,H="",ie=void 0}v!==0&&(f=2,d.readyState=2,d.status=v,d.statusText=H,d._contentType=ie,d.onreadystatechange())}},V=function(){if(C(),f===2||f===3){f=3;var v="";try{v=o.responseText}catch(H){}d.readyState=3,d.responseText=v,d.onprogress()}},R=function(v,H){if((H==null||H.preventDefault==null)&&(H={preventDefault:_}),V(),f===1||f===2||f===3){if(f=4,p!==0&&(c(p),p=0),d.readyState=4,v==="load")d.onload(H);else if(v==="error")d.onerror(H);else if(v==="abort")d.onabort(H);else throw new TypeError;d.onreadystatechange()}},A=function(v){o!=null&&(o.readyState===4?(!("onload"in o)||!("onerror"in o)||!("onabort"in o))&&R(o.responseText===""?"error":"load",v):o.readyState===3?"onprogress"in o||V():o.readyState===2&&C())},O=function(){p=i(function(){O()},500),o.readyState===3&&V()};"onload"in o&&(o.onload=function(v){R("load",v)}),"onerror"in o&&(o.onerror=function(v){R("error",v)}),"onabort"in o&&(o.onabort=function(v){R("abort",v)}),"onprogress"in o&&(o.onprogress=V),"onreadystatechange"in o&&(o.onreadystatechange=function(v){A(v)}),("contentType"in o||!("ontimeout"in u.prototype))&&(l+=(l.indexOf("?")===-1?"?":"&")+"padding=true"),o.open(n,l,!0),"readyState"in o&&(p=i(function(){O()},0))},E.prototype.abort=function(){this._abort(!1)},E.prototype.getResponseHeader=function(n){return this._contentType},E.prototype.setRequestHeader=function(n,l){var d=this._xhr;"setRequestHeader"in d&&d.setRequestHeader(n,l)},E.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},E.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&g!=null&&g.readyState!=null&&g.readyState!=="complete"){var n=this;n._sendTimeout=i(function(){n._sendTimeout=0,n.send()},4);return}var l=this._xhr;"withCredentials"in l&&(l.withCredentials=this.withCredentials);try{l.send(void 0)}catch(d){throw d}};function z(n){return n.replace(/[A-Z]/g,function(l){return String.fromCharCode(l.charCodeAt(0)+32)})}function F(n){for(var l=Object.create(null),d=n.split(`\r
6
- `),o=0;o<d.length;o+=1){var f=d[o],p=f.split(": "),C=p.shift(),V=p.join(": ");l[z(C)]=V}this._map=l}F.prototype.get=function(n){return this._map[z(n)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function ne(){}ne.prototype.open=function(n,l,d,o,f,p,C){n.open("GET",f);var V=0;n.onprogress=function(){var A=n.responseText,O=A.slice(V);V+=O.length,d(O)},n.onerror=function(A){A.preventDefault(),o(new Error("NetworkError"))},n.onload=function(){o(null)},n.onabort=function(){o(null)},n.onreadystatechange=function(){if(n.readyState===u.HEADERS_RECEIVED){var A=n.status,O=n.statusText,v=n.getResponseHeader("Content-Type"),H=n.getAllResponseHeaders();l(A,O,v,new F(H))}},n.withCredentials=p;for(var R in C)Object.prototype.hasOwnProperty.call(C,R)&&n.setRequestHeader(R,C[R]);return n.send(),n};function ae(n){this._headers=n}ae.prototype.get=function(n){return this._headers.get(n)};function m(){}m.prototype.open=function(n,l,d,o,f,p,C){var V=null,R=new x,A=R.signal,O=new N;return I(f,{headers:C,credentials:p?"include":"same-origin",signal:A,cache:"no-store"}).then(function(v){return V=v.body.getReader(),l(v.status,v.statusText,v.headers.get("Content-Type"),new ae(v.headers)),new M(function(H,ie){var Se=function(){V.read().then(function(W){if(W.done)H(void 0);else{var G=O.decode(W.value,{stream:!0});d(G),Se()}}).catch(function(W){ie(W)})};Se()})}).catch(function(v){if(v.name!=="AbortError")return v}).then(function(v){o(v)}),{abort:function(){V!=null&&V.cancel(),R.abort()}}};function re(){this._listeners=Object.create(null)}function _e(n){i(function(){throw n},0)}re.prototype.dispatchEvent=function(n){n.target=this;var l=this._listeners[n.type];if(l!=null)for(var d=l.length,o=0;o<d;o+=1){var f=l[o];try{typeof f.handleEvent=="function"?f.handleEvent(n):f.call(this,n)}catch(p){_e(p)}}},re.prototype.addEventListener=function(n,l){n=String(n);var d=this._listeners,o=d[n];o==null&&(o=[],d[n]=o);for(var f=!1,p=0;p<o.length;p+=1)o[p]===l&&(f=!0);f||o.push(l)},re.prototype.removeEventListener=function(n,l){n=String(n);var d=this._listeners,o=d[n];if(o!=null){for(var f=[],p=0;p<o.length;p+=1)o[p]!==l&&f.push(o[p]);f.length===0?delete d[n]:d[n]=f}};function de(n){this.type=n,this.target=void 0}function ve(n,l){de.call(this,n),this.data=l.data,this.lastEventId=l.lastEventId}ve.prototype=Object.create(de.prototype);function ye(n,l){de.call(this,n),this.status=l.status,this.statusText=l.statusText,this.headers=l.headers}ye.prototype=Object.create(de.prototype);function Re(n,l){de.call(this,n),this.error=l.error}Re.prototype=Object.create(de.prototype);var ge=-1,Y=0,oe=1,fe=2,we=-1,$=0,Te=1,Ee=2,xe=3,Fe=/^text\/event\-stream(;.*)?$/i,Oe=1e3,Le=18e6,be=function(n,l){var d=n==null?l:parseInt(n,10);return d!==d&&(d=l),Be(d)},Be=function(n){return Math.min(Math.max(n,Oe),Le)},ue=function(n,l,d){try{typeof l=="function"&&l.call(n,d)}catch(o){_e(o)}};function K(n,l){re.call(this),l=l||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,y(this,n,l)}function s(){return u!=null&&"withCredentials"in u.prototype||T==null?new u:new T}var B=I!=null&&L!=null&&"body"in L.prototype;function y(n,l,d){l=String(l);var o=!!d.withCredentials,f=d.lastEventIdQueryParameterName||"lastEventId",p=Be(1e3),C=be(d.heartbeatTimeout,45e3),V="",R=p,A=!1,O=0,v=d.headers||{},H=d.Transport,ie=B&&H==null?void 0:new E(H!=null?new H:s()),Se=H!=null&&typeof H!="string"?new H:ie==null?new m:new ne,W=void 0,G=0,ee=ge,he="",Ae="",se="",De="",X=$,ke=0,pe=0,tt=function(U,j,J,Q){if(ee===Y)if(U===200&&J!=null&&Fe.test(J)){ee=oe,A=Date.now(),R=p,n.readyState=oe;var q=new ye("open",{status:U,statusText:j,headers:Q});n.dispatchEvent(q),ue(n,n.onopen,q)}else{var P="";U!==200?(j&&(j=j.replace(/\s+/g," ")),P="EventSource's response has a status "+U+" "+j+" that is not 200. Aborting the connection."):P="EventSource's response has a Content-Type specifying an unsupported type: "+(J==null?"-":J.replace(/\s+/g," "))+". Aborting the connection.",Ie();var q=new ye("error",{status:U,statusText:j,headers:Q});n.dispatchEvent(q),ue(n,n.onerror,q),console.error(P)}},nt=function(U){if(ee===oe){for(var j=-1,J=0;J<U.length;J+=1){var Q=U.charCodeAt(J);(Q===10||Q===13)&&(j=J)}var q=(j!==-1?De:"")+U.slice(0,j+1);De=(j===-1?De:"")+U.slice(j+1),U!==""&&(A=Date.now(),O+=U.length);for(var P=0;P<q.length;P+=1){var Q=q.charCodeAt(P);if(X===we&&Q===10)X=$;else if(X===we&&(X=$),Q===13||Q===10){if(X!==$){X===Te&&(pe=P+1);var le=q.slice(ke,pe-1),ce=q.slice(pe+(pe<P&&q.charCodeAt(pe)===32?1:0),P);le==="data"?(he+=`
7
- `,he+=ce):le==="id"?Ae=ce:le==="event"?se=ce:le==="retry"?(p=be(ce,p),R=p):le==="heartbeatTimeout"&&(C=be(ce,C),G!==0&&(c(G),G=i(function(){Ce()},C)))}if(X===$){if(he!==""){V=Ae,se===""&&(se="message");var me=new ve(se,{data:he.slice(1),lastEventId:Ae});if(n.dispatchEvent(me),se==="open"?ue(n,n.onopen,me):se==="message"?ue(n,n.onmessage,me):se==="error"&&ue(n,n.onerror,me),ee===fe)return}he="",se=""}X=Q===13?we:$}else X===$&&(ke=P,X=Te),X===Te?Q===58&&(pe=P+1,X=Ee):X===Ee&&(X=xe)}}},He=function(U){if(ee===oe||ee===Y){ee=ge,G!==0&&(c(G),G=0),G=i(function(){Ce()},R),R=Be(Math.min(p*16,R*2)),n.readyState=Y;var j=new Re("error",{error:U});n.dispatchEvent(j),ue(n,n.onerror,j),U!=null&&console.error(U)}},Ie=function(){ee=fe,W!=null&&(W.abort(),W=void 0),G!==0&&(c(G),G=0),n.readyState=fe},Ce=function(){if(G=0,ee!==ge){if(!A&&W!=null)He(new Error("No activity within "+C+" milliseconds. "+(ee===Y?"No response received.":O+" chars received.")+" Reconnecting.")),W!=null&&(W.abort(),W=void 0);else{var U=Math.max((A||Date.now())+C-Date.now(),1);A=!1,G=i(function(){Ce()},U)}return}A=!1,O=0,G=i(function(){Ce()},C),ee=Y,he="",se="",Ae=V,De="",ke=0,pe=0,X=$;var j=l;if(l.slice(0,5)!=="data:"&&l.slice(0,5)!=="blob:"&&V!==""){var J=l.indexOf("?");j=J===-1?l:l.slice(0,J+1)+l.slice(J+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ce,me){return me===f?"":ce}),j+=(l.indexOf("?")===-1?"?":"&")+f+"="+encodeURIComponent(V)}var Q=n.withCredentials,q={};q.Accept="text/event-stream";var P=n.headers;if(P!=null)for(var le in P)Object.prototype.hasOwnProperty.call(P,le)&&(q[le]=P[le]);try{W=Se.open(ie,tt,nt,He,j,Q,q)}catch(ce){throw Ie(),ce}};n.url=l,n.readyState=Y,n.withCredentials=o,n.headers=v,n._close=Ie,Ce()}K.prototype=Object.create(re.prototype),K.prototype.CONNECTING=Y,K.prototype.OPEN=oe,K.prototype.CLOSED=fe,K.prototype.close=function(){this._close()},K.CONNECTING=Y,K.OPEN=oe,K.CLOSED=fe,K.prototype.withCredentials=void 0;var D=b;u!=null&&(b==null||!("withCredentials"in b.prototype))&&(D=K),function(n){{var l=n(e);l!==void 0&&(r.exports=l)}}(function(n){n.EventSourcePolyfill=K,n.NativeEventSource=b,n.EventSource=D})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:t.commonjsGlobal:globalThis)})(Ne,Ne.exports);var ct=Ne.exports;/*!
8
- * currency.js - v2.0.4
9
- * http://scurker.github.io/currency.js
10
- *
11
- * Copyright (c) 2021 Jason Wilson
12
- * Released under MIT license
13
- */var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(e){return Math.round(e)},Ve=function(e){return Math.pow(10,e)},ut=function(e,a){return $e(e/a)*a},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function te(r,e){var a=this;if(!(a instanceof te))return new te(r,e);var i=Object.assign({},dt,e),c=Ve(i.precision),u=Me(r,i);a.intValue=u,a.value=u/c,i.increment=i.increment||1/c,i.useVedic?i.groups=pt:i.groups=ft,this.s=i,this.p=c}function Me(r,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=0,c=e.decimal,u=e.errorOnInvalid,T=e.precision,h=e.fromCents,b=Ve(T),g=typeof r=="number",M=r instanceof te;if(M&&h)return r.intValue;if(g||M)i=M?r.value:r;else if(typeof r=="string"){var I=new RegExp("[^-\\d"+c+"]","g"),L=new RegExp("\\"+c,"g");i=r.replace(/\((.*)\)/,"-$1").replace(I,"").replace(L,"."),i=i||0}else{if(u)throw Error("Invalid Input");i=0}return h||(i*=b,i=i.toFixed(4)),a?$e(i):i}function ht(r,e){var a=e.pattern,i=e.negativePattern,c=e.symbol,u=e.separator,T=e.decimal,h=e.groups,b=(""+r).replace(/^-/,"").split("."),g=b[0],M=b[1];return(r.value>=0?a:i).replace("!",c).replace("#",g.replace(h,"$1"+u)+(M?T+M:""))}te.prototype={add:function(e){var a=this.intValue,i=this.s,c=this.p;return te((a+=Me(e,i))/(i.fromCents?1:c),i)},subtract:function(e){var a=this.intValue,i=this.s,c=this.p;return te((a-=Me(e,i))/(i.fromCents?1:c),i)},multiply:function(e){var a=this.intValue,i=this.s;return te((a*=e)/(i.fromCents?1:Ve(i.precision)),i)},divide:function(e){var a=this.intValue,i=this.s;return te(a/=Me(e,i,!1),i)},distribute:function(e){for(var a=this.intValue,i=this.p,c=this.s,u=[],T=Math[a>=0?"floor":"ceil"](a/e),h=Math.abs(a-T*e),b=c.fromCents?1:i;e!==0;e--){var g=te(T/b,c);h-- >0&&(g=g[a>=0?"add":"subtract"](1/b)),u.push(g)}return u},dollars:function(){return~~this.value},cents:function(){var e=this.intValue,a=this.p;return~~(e%a)},format:function(e){var a=this.s;return typeof e=="function"?e(this,a):a.format(this,Object.assign({},a,e))},toString:function(){var e=this.intValue,a=this.p,i=this.s;return ut(e/a,i.increment).toFixed(i.precision)},toJSON:function(){return this.value}};function mt(r){t.append_styles(r,"svelte-139zio6",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emfe-w-header-contrast, var(--emfe-w-color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}')}function Ke(r,e,a){const i=r.slice();return i[45]=e[a],i}function We(r,e,a){const i=r.slice();return i[48]=e[a],i}function Je(r){let e,a,i,c,u,T,h=r[4]("Title")+"",b,g,M,I,L,N,S=r[4]("DepositButton")+"",x,w,k,Z=t.ensure_array_like(Object.keys(r[3])),_=[];for(let E=0;E<Z.length;E+=1)_[E]=Ye(Ke(r,Z,E));return{c(){e=t.element("div"),a=t.element("div"),i=t.space(),c=t.element("div"),u=t.element("div"),T=t.element("p"),b=t.text(h),g=t.space(),M=t.element("div");for(let E=0;E<_.length;E+=1)_[E].c();I=t.space(),L=t.element("div"),N=t.element("button"),x=t.text(S),t.attr(a,"class","BalanceModalClose"),t.attr(T,"class","BalanceModalTitle"),t.attr(u,"class","BalanceModalHeader"),t.attr(M,"class","BalanceModalBody"),t.attr(N,"class","BalanceModalAction"),t.attr(L,"class","BalanceModalFooter"),t.attr(c,"class","BalanceModal"),t.attr(e,"class","BalanceModalWrapper")},m(E,z){t.insert(E,e,z),t.append(e,a),t.append(e,i),t.append(e,c),t.append(c,u),t.append(u,T),t.append(T,b),t.append(c,g),t.append(c,M);for(let F=0;F<_.length;F+=1)_[F]&&_[F].m(M,null);t.append(c,I),t.append(c,L),t.append(L,N),t.append(N,x),w||(k=[t.listen(a,"click",r[22]),t.listen(N,"click",r[23])],w=!0)},p(E,z){if(z[0]&16&&h!==(h=E[4]("Title")+"")&&t.set_data(b,h),z[0]&60){Z=t.ensure_array_like(Object.keys(E[3]));let F;for(F=0;F<Z.length;F+=1){const ne=Ke(E,Z,F);_[F]?_[F].p(ne,z):(_[F]=Ye(ne),_[F].c(),_[F].m(M,null))}for(;F<_.length;F+=1)_[F].d(1);_.length=Z.length}z[0]&16&&S!==(S=E[4]("DepositButton")+"")&&t.set_data(x,S)},d(E){E&&t.detach(e),t.destroy_each(_,E),w=!1,t.run_all(k)}}}function Qe(r){let e,a,i=r[4](r[45])+"",c,u,T=(r[48].productType?r[4](r[48].productType):"")+"",h,b,g,M,I=(r[48].amount?r[5](r[48].amount):"0")+"",L,N,S,x;return{c(){e=t.element("div"),a=t.element("p"),c=t.text(i),u=t.space(),h=t.text(T),b=t.space(),g=t.element("p"),M=t.element("span"),L=t.text(I),N=t.space(),S=t.element("span"),x=t.text(r[2]),t.attr(a,"class","BalanceModalText"),t.attr(M,"class","BalanceModalAmount"),t.attr(S,"class","BalanceModalCurrency"),t.attr(g,"class","BalanceModalValue"),t.attr(e,"class","BalanceModalRowLine")},m(w,k){t.insert(w,e,k),t.append(e,a),t.append(a,c),t.append(a,u),t.append(a,h),t.append(e,b),t.append(e,g),t.append(g,M),t.append(M,L),t.append(g,N),t.append(g,S),t.append(S,x)},p(w,k){k[0]&24&&i!==(i=w[4](w[45])+"")&&t.set_data(c,i),k[0]&24&&T!==(T=(w[48].productType?w[4](w[48].productType):"")+"")&&t.set_data(h,T),k[0]&8&&I!==(I=(w[48].amount?w[5](w[48].amount):"0")+"")&&t.set_data(L,I),k[0]&4&&t.set_data(x,w[2])},d(w){w&&t.detach(e)}}}function Ye(r){let e,a,i=t.ensure_array_like(r[3][r[45]]),c=[];for(let u=0;u<i.length;u+=1)c[u]=Qe(We(r,i,u));return{c(){e=t.element("div");for(let u=0;u<c.length;u+=1)c[u].c();a=t.space(),t.attr(e,"class","BalanceModalRowBoth")},m(u,T){t.insert(u,e,T);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(e,null);t.append(e,a)},p(u,T){if(T[0]&60){i=t.ensure_array_like(u[3][u[45]]);let h;for(h=0;h<i.length;h+=1){const b=We(u,i,h);c[h]?c[h].p(b,T):(c[h]=Qe(b),c[h].c(),c[h].m(e,a))}for(;h<c.length;h+=1)c[h].d(1);c.length=i.length}},d(u){u&&t.detach(e),t.destroy_each(c,u)}}}function Ze(r){let e,a,i;return{c(){e=t.element("div"),t.attr(e,"class","ShowBalanceModalOverlay")},m(c,u){t.insert(c,e,u),a||(i=t.listen(e,"click",r[24]),a=!0)},p:t.noop,d(c){c&&t.detach(e),a=!1,i()}}}function vt(r){let e,a,i,c=(r[3].Total?r[5](r[3].Total[0].amount):"0")+"",u,T,h,b,g,M,I,L,N,S=r[1]&&Je(r),x=r[1]&&Ze(r);return{c(){e=t.element("div"),a=t.element("div"),i=t.element("p"),u=t.text(c),T=t.space(),h=t.text(r[2]),b=t.space(),g=t.element("span"),g.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',M=t.space(),S&&S.c(),I=t.space(),x&&x.c(),t.attr(i,"class","BalanceValue"),t.attr(i,"part","BalanceValue"),t.attr(a,"class","ShowBalance"),t.attr(a,"part","ShowBalance")},m(w,k){t.insert(w,e,k),t.append(e,a),t.append(a,i),t.append(i,u),t.append(i,T),t.append(i,h),t.append(i,b),t.append(i,g),t.append(a,M),S&&S.m(a,null),t.append(e,I),x&&x.m(e,null),r[25](e),L||(N=t.listen(i,"click",r[21]),L=!0)},p(w,k){k[0]&8&&c!==(c=(w[3].Total?w[5](w[3].Total[0].amount):"0")+"")&&t.set_data(u,c),k[0]&4&&t.set_data(h,w[2]),w[1]?S?S.p(w,k):(S=Je(w),S.c(),S.m(a,null)):S&&(S.d(1),S=null),w[1]?x?x.p(w,k):(x=Ze(w),x.c(),x.m(e,null)):x&&(x.d(1),x=null)},i:t.noop,o:t.noop,d(w){w&&t.detach(e),S&&S.d(),x&&x.d(),r[25](null),L=!1,N()}}}function yt(r,e,a){let i;t.component_subscribe(r,t.$format,s=>a(4,i=s));let{userid:c=""}=e,{session:u=""}=e,{endpoint:T=""}=e,{lang:h="en"}=e,{clientstyling:b=""}=e,{clientstylingurl:g=""}=e,{translationurl:M=""}=e,{customlocaleidentifier:I=""}=e,{gmversion:L="gmcore"}=e,{displaybalanceoption:N="All"}=e,{totalcalculationmode:S=""}=e,{currencyseparator:x=""}=e,{currencydecimal:w=""}=e,{currencyprecision:k=""}=e,Z,_,E,z=!1,F=!1,ne="",ae=[];const m={},re=["totalAmount","totalCashAmount","totalRealAmount","totalWithdrawableAmount"],_e=()=>{fetch(M).then(s=>s.json()).then(s=>Object.keys(s).forEach(B=>Xe(B,s[B]))).catch(s=>console.log(s))};Object.keys(qe).forEach(s=>Xe(s,qe[s]));const de=()=>{switch(S){case"totalAmount":return(s,B,y)=>y.walletType!=="CreditLine"&&y.affectedAmount?s+y.affectedAmount:s;case"totalCashAmount":return(s,B,y)=>y.walletType!=="CreditLine"&&(B==="Bonus"||B==="Real")&&y.affectedAmount?s+y.affectedAmount:s;case"totalRealAmount":return(s,B,y)=>y.walletType!=="CreditLine"&&B==="Real"&&y.affectedAmount?s+y.affectedAmount:y.walletType==="CreditLine"&&B==="Real"&&y.affectedAmount?s-Math.abs(y.affectedAmount):s;case"totalWithdrawableAmount":return(s,B,y)=>y.walletType!=="CreditLine"&&(B==="Real"||B==="RealNegativeRemainder")&&y.affectedAmount?s+y.affectedAmount:B==="DepositWagering"&&y.affectedAmount?s-y.affectedAmount:s}},ve=()=>{if(I.includes(h))return I},ye=s=>I?new Intl.NumberFormat(ve(),{useGrouping:!0}).format(s):x&&w?te(s,{separator:x,decimal:w,symbol:"",precision:parseInt(k||"2",10)}).format():te(s,{separator:".",decimal:",",symbol:"",precision:parseInt(k||"2",10)}).format(),Re=()=>Ge(this,null,function*(){var B,y;const s=new URL(`${T}/v1/player/${c}/account`);try{z=!0;const D=yield fetch(s,{method:"GET",headers:{"X-SessionID":u}}),n=yield D.json();if(D.ok)z=!1,ae=n.items,a(2,ne=Object.keys(n.totalAmount)[0]),a(3,m.Total=[{amount:n.totalAmount[ne]}],m),a(3,m.Real=[{amount:(B=ae.find(l=>l.displayName==="Casino"))==null?void 0:B.balanceAmount}],m),a(3,m.Bonus=[{amount:(y=ae.find(l=>l.displayName==="UBS"))==null?void 0:y.balanceAmount}],m);else throw z=!1,new Error("Failed to fetch balance data !")}catch(D){z=!1,console.log("Balance error: ",D)}finally{z=!1}}),ge=()=>{z=!0;const s=new URL(`${T}/v2/player/${c}/balance`),B=new Headers;B.append("X-SessionID",u),fetch(s,{method:"GET",headers:B}).then(D=>D.json()).then(D=>{z=!1;const[n,l]=Object.entries(D[S])[0];if(a(2,ne=n),a(3,m.Total=[{amount:l}],m),a(3,m.Real=[],m),a(3,m.Bonus=[],m),a(3,m.Credit=[],m),!D.items[0].productType){S==="totalRealAmount"&&delete m.Real;const o=Object.values(D.totalBonusAmount)[0];m.Bonus.push({amount:o});for(const f of D.items)f.type==="Real"&&(f.creditLine&&m.Credit.length===0&&m.Credit.push({amount:f.creditLine}),S!=="totalRealAmount"&&(m.Real.length===0?m.Real.push({amount:f.amount}):a(3,m.Real[0].amount+=f.amount,m)));return}let d=D.items;N&&N!=="All"&&(d=D.items.filter(o=>o.productType===N));for(const o of d){if(o.type==="Real"){o.creditLine&&m.Credit.push({amount:o.creditLine,productType:o.productType});const f=m.Real.findIndex(p=>p.productType===o.productType);f>0?a(3,m.Real[f].amount+=o.amount,m):m.Real.push({amount:o.amount,productType:o.productType});continue}if(o.type==="Bonus"){const f=m.Bonus.findIndex(p=>p.productType===o.productType);f>0?a(3,m.Bonus[f].amount+=o.amount,m):m.Bonus.push({amount:o.amount,productType:o.productType})}}}).catch(D=>{throw z=!1,new Error("Failed to fetch balance data !")})},Y=()=>{if(E&&E.close(),u.length<1)return;let s,B;switch(L){case"gm16":s=new URL(`${T}/v2/player/${c}/information/updates`),B=n=>we(n.data);break;case"gmcore":s=new URL(`${T}/v1/player/${c}/balance/updates`),B=n=>fe(n.data);break}const y={accept:"text/event-stream","X-SessionId":u},D=new ct.EventSourcePolyfill(s,{headers:y});E=D,D.addEventListener("message",B)},oe=s=>{let B;try{B=JSON.parse(s)}catch(y){console.log("Balance stream failed: ",y);return}return B},fe=s=>{var n,l;const B=oe(s);B||Y();let y="0";const D=B.balanceChange;ae=ae.map(d=>(D&&D[d.id]&&(d=Pe(Ue({},d),{balanceAmount:D[d.id].afterAmount})),y=(parseFloat(d==null?void 0:d.balanceAmount)+parseFloat(y)).toString(),d)),a(3,m.Real=[{amount:(n=ae[0])==null?void 0:n.balanceAmount}],m),a(3,m.Bonus=[{amount:(l=ae[1])==null?void 0:l.balanceAmount}],m),a(3,m.Total=[{amount:Number(y)}],m)},we=s=>{const B=oe(s);(!B||B.type!=="BALANCE_UPDATE_V2")&&Y();const y=B.body.balanceChange;for(const[D,n]of Object.entries(y))if(a(3,m.Total[0].amount=Z(m.Total[0].amount,D,n),m),!!m[D])for(const l of m[D])(!l.productType||n.productType&&n.productType===l.productType)&&(l.amount=n.afterAmount)},$=()=>{a(1,F=!1),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Te=()=>{re.includes(S)||(console.error(`
14
- Unsupported value ('${S}') for totalcalculationmode parameter.
15
- Only the following values are supported ${re}.
16
- Using default value ('${re[0]}').
17
- `),a(7,S=re[2]))},Ee=()=>{switch(lt(h),Te(),Z=de(),L){case"gmcore":Re();break;case"gm16":ge();break;default:throw Error(`Invalid apiversion attribute: ${L}`)}},xe=s=>s.data&&s.data.type==="LogoutSuccessfull"&&E.close(),Fe=()=>{const s=document.createElement("style");s.innerHTML=b,_.appendChild(s)},Oe=()=>{const s=new URL(g),B=document.createElement("style");fetch(s.href).then(y=>y.text()).then(y=>{B.innerHTML=y,setTimeout(()=>{_.appendChild(B)},1)})};t.onMount(()=>(window.addEventListener("message",xe,!1),()=>{window.removeEventListener("message",xe),E&&E.close()}));const Le=()=>a(1,F=!0),be=()=>a(1,F=!1),Be=()=>$(),ue=()=>a(1,F=!1);function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{_=s,a(0,_)})}return r.$$set=s=>{"userid"in s&&a(8,c=s.userid),"session"in s&&a(9,u=s.session),"endpoint"in s&&a(10,T=s.endpoint),"lang"in s&&a(11,h=s.lang),"clientstyling"in s&&a(12,b=s.clientstyling),"clientstylingurl"in s&&a(13,g=s.clientstylingurl),"translationurl"in s&&a(14,M=s.translationurl),"customlocaleidentifier"in s&&a(15,I=s.customlocaleidentifier),"gmversion"in s&&a(16,L=s.gmversion),"displaybalanceoption"in s&&a(17,N=s.displaybalanceoption),"totalcalculationmode"in s&&a(7,S=s.totalcalculationmode),"currencyseparator"in s&&a(18,x=s.currencyseparator),"currencydecimal"in s&&a(19,w=s.currencydecimal),"currencyprecision"in s&&a(20,k=s.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&2048&&h&&ve(),r.$$.dirty[0]&200448&&T&&c&&u&&h&&L&&N&&Ee(),r.$$.dirty[0]&67328&&T&&c&&u&&L&&Y(),r.$$.dirty[0]&4097&&b&&_&&Fe(),r.$$.dirty[0]&8193&&g&&_&&Oe(),r.$$.dirty[0]&16384&&M&&_e()},[_,F,ne,m,i,ye,$,S,c,u,T,h,b,g,M,I,L,N,x,w,k,Le,be,Be,ue,K]}class et extends t.SvelteComponent{constructor(e){super(),t.init(this,e,yt,vt,t.safe_not_equal,{userid:8,session:9,endpoint:10,lang:11,clientstyling:12,clientstylingurl:13,translationurl:14,customlocaleidentifier:15,gmversion:16,displaybalanceoption:17,totalcalculationmode:7,currencyseparator:18,currencydecimal:19,currencyprecision:20},mt,[-1,-1])}get userid(){return this.$$.ctx[8]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[9]}set session(e){this.$$set({session:e}),t.flush()}get endpoint(){return this.$$.ctx[10]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get customlocaleidentifier(){return this.$$.ctx[15]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),t.flush()}get gmversion(){return this.$$.ctx[16]}set gmversion(e){this.$$set({gmversion:e}),t.flush()}get displaybalanceoption(){return this.$$.ctx[17]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),t.flush()}get totalcalculationmode(){return this.$$.ctx[7]}set totalcalculationmode(e){this.$$set({totalcalculationmode:e}),t.flush()}get currencyseparator(){return this.$$.ctx[18]}set currencyseparator(e){this.$$set({currencyseparator:e}),t.flush()}get currencydecimal(){return this.$$.ctx[19]}set currencydecimal(e){this.$$set({currencydecimal:e}),t.flush()}get currencyprecision(){return this.$$.ctx[20]}set currencyprecision(e){this.$$set({currencyprecision:e}),t.flush()}}t.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;