@everymatrix/casino-wagering-bonus-slider-controller 1.28.8 → 1.29.3

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.
@@ -79,7 +79,7 @@ this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}d
79
79
  if(!o(r))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{const t=n.indexOf(r);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}})
80
80
  /* eslint-disable no-prototype-builtins */;var G="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
81
81
  // eslint-disable-next-line no-undef
82
- "undefined"!=typeof global&&global||{},k="URLSearchParams"in G,j="Symbol"in G&&"iterator"in Symbol,W="FileReader"in G&&"Blob"in G&&function(){try{return new Blob,!0}catch(t){return!1}}(),X="FormData"in G,V="ArrayBuffer"in G;if(V)var z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],K=ArrayBuffer.isView||function(t){return t&&z.indexOf(Object.prototype.toString.call(t))>-1};function Z(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function Y(t){return"string"!=typeof t&&(t=String(t)),t}
82
+ "undefined"!=typeof global&&global||{},k="URLSearchParams"in G,j="Symbol"in G&&"iterator"in Symbol,W="FileReader"in G&&"Blob"in G&&function(){try{return new Blob,!0}catch(t){return!1}}(),X="FormData"in G,V="ArrayBuffer"in G;if(V)var z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],K=ArrayBuffer.isView||function(t){return t&&z.indexOf(Object.prototype.toString.call(t))>-1};function Y(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function Z(t){return"string"!=typeof t&&(t=String(t)),t}
83
83
  // Build a destructive iterator for the value list
84
84
  function q(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return j&&(e[Symbol.iterator]=function(){return e}),e}function J(t){this.map={},t instanceof J?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function Q(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function tt(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function et(t){var e=new FileReader,r=tt(e);return e.readAsArrayBuffer(t),r}function rt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function nt(){return this.bodyUsed=!1,this._initBody=function(t){var e;
85
85
  /*
@@ -97,7 +97,7 @@ this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText
97
97
  // IE 10-11 can't handle a DataView body.
98
98
  this._bodyInit=new Blob([this._bodyArrayBuffer])):V&&(ArrayBuffer.prototype.isPrototypeOf(t)||K(t))?this._bodyArrayBuffer=rt(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):k&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},W&&(this.blob=function(){var t=Q(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=Q(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(W)return this.blob().then(et);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,o,i=Q(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=tt(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),o=n?n[1]:"utf-8",e.readAsText(t,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},X&&(this.formData=function(){return this.text().then(st)}),this.json=function(){return this.text().then(JSON.parse)},this}
99
99
  // HTTP methods whose capitalization should be normalized
100
- J.prototype.append=function(t,e){t=Z(t),e=Y(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},J.prototype.delete=function(t){delete this.map[Z(t)]},J.prototype.get=function(t){return t=Z(t),this.has(t)?this.map[t]:null},J.prototype.has=function(t){return this.map.hasOwnProperty(Z(t))},J.prototype.set=function(t,e){this.map[Z(t)]=Y(e)},J.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},J.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),q(t)},J.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),q(t)},J.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),q(t)},j&&(J.prototype[Symbol.iterator]=J.prototype.entries);var ot=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function it(t,e){if(!(this instanceof it))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof it){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new J(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new J(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),ot.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in G)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
100
+ J.prototype.append=function(t,e){t=Y(t),e=Z(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},J.prototype.delete=function(t){delete this.map[Y(t)]},J.prototype.get=function(t){return t=Y(t),this.has(t)?this.map[t]:null},J.prototype.has=function(t){return this.map.hasOwnProperty(Y(t))},J.prototype.set=function(t,e){this.map[Y(t)]=Z(e)},J.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},J.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),q(t)},J.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),q(t)},J.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),q(t)},j&&(J.prototype[Symbol.iterator]=J.prototype.entries);var ot=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function it(t,e){if(!(this instanceof it))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof it){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new J(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new J(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),ot.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in G)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
101
101
  // Search for a '_' parameter in the query string
102
102
  var i=/([?&])_=[^&]*/;if(i.test(this.url))
103
103
  // If it already exists then set the value with the current time
@@ -108,7 +108,7 @@ this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.te
108
108
  t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{e.append(n,o)}catch(t){console.warn("Response "+t.message)}}})),e)};
109
109
  // This check if specifically for when a user fetches a file locally from the file system
110
110
  // Only if the status is out of a normal range
111
- o.url.startsWith("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var s="response"in i?i.response:i.responseText;setTimeout((function(){r(new at(s,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){n(new ut("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&G.location.href?G.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(W?i.responseType="blob":V&&(i.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof J||G.Headers&&e.headers instanceof G.Headers)){var a=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){a.push(Z(t)),i.setRequestHeader(t,Y(e.headers[t]))})),o.headers.forEach((function(t,e){-1===a.indexOf(e)&&i.setRequestHeader(e,t)}))}else o.headers.forEach((function(t,e){i.setRequestHeader(e,t)}));o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){
111
+ o.url.startsWith("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var s="response"in i?i.response:i.responseText;setTimeout((function(){r(new at(s,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){n(new ut("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&G.location.href?G.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(W?i.responseType="blob":V&&(i.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof J||G.Headers&&e.headers instanceof G.Headers)){var a=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){a.push(Y(t)),i.setRequestHeader(t,Z(e.headers[t]))})),o.headers.forEach((function(t,e){-1===a.indexOf(e)&&i.setRequestHeader(e,t)}))}else o.headers.forEach((function(t,e){i.setRequestHeader(e,t)}));o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){
112
112
  // DONE (success or failure)
113
113
  4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}ct.polyfill=!0,G.fetch||(G.fetch=ct,G.Headers=J,G.Request=it,G.Response=at);var ht="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
114
114
  // the whatwg-fetch polyfill installs the fetch() function
@@ -144,12 +144,12 @@ const Kt=[];
144
144
  * @param {*=}value initial value
145
145
  * @param {StartStopNotifier=} start
146
146
  */
147
- function Zt(e,r=t){let n;const o=new Set;function s(t){if(i(e,t)&&(e=t,n)){// store is ready
148
- const t=!Kt.length;for(const t of o)t[1](),Kt.push(t,e);if(t){for(let t=0;t<Kt.length;t+=2)Kt[t][0](Kt[t+1]);Kt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||t),i(e),()=>{o.delete(l),0===o.size&&n&&(n(),n=null)}}}}function Yt(e,r,i){const s=!Array.isArray(e),a=s?[e]:e,l=r.length<2;return c=e=>{let i=!1;const c=[];let h=0,f=t;const p=()=>{if(h)return;f();const n=r(s?c[0]:c,e);l?e(n):f=o(n)?n:t},d=a.map(((t,e)=>u(t,(t=>{c[e]=t,h&=~(1<<e),i&&p()}),(()=>{h|=1<<e}))));return i=!0,p(),function(){n(d),f(),
147
+ function Yt(e,r=t){let n;const o=new Set;function s(t){if(i(e,t)&&(e=t,n)){// store is ready
148
+ const t=!Kt.length;for(const t of o)t[1](),Kt.push(t,e);if(t){for(let t=0;t<Kt.length;t+=2)Kt[t][0](Kt[t+1]);Kt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||t),i(e),()=>{o.delete(l),0===o.size&&n&&(n(),n=null)}}}}function Zt(e,r,i){const s=!Array.isArray(e),a=s?[e]:e,l=r.length<2;return c=e=>{let i=!1;const c=[];let h=0,f=t;const p=()=>{if(h)return;f();const n=r(s?c[0]:c,e);l?e(n):f=o(n)?n:t},d=a.map(((t,e)=>u(t,(t=>{c[e]=t,h&=~(1<<e),i&&p()}),(()=>{h|=1<<e}))));return i=!0,p(),function(){n(d),f(),
149
149
  // We need to set this to false because callbacks can still happen despite having unsubscribed:
150
150
  // Callbacks might already be placed in the queue which doesn't know it should no longer
151
151
  // invoke this derived store.
152
- i=!1}},{subscribe:Zt(i,c).subscribe};
152
+ i=!1}},{subscribe:Yt(i,c).subscribe};
153
153
  /**
154
154
  * Creates a `Readable` store that allows reading by subscription.
155
155
  * @param value initial value
@@ -362,14 +362,14 @@ e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12"
362
362
  var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(Ue[r||""]||Ue[n||""]||Ue["".concat(n,"-001")]||Ue["001"])[0]}var Fe=new RegExp("^".concat(Be.source,"*")),Ge=new RegExp("".concat(Be.source,"*$"));function ke(t,e){return{start:t,end:e}}
363
363
  // #region Ponyfills
364
364
  // Consolidate these variables up top for easier toggling during debugging
365
- var je=!!String.prototype.startsWith,We=!!String.fromCodePoint,Xe=!!Object.fromEntries,Ve=!!String.prototype.codePointAt,ze=!!String.prototype.trimStart,Ke=!!String.prototype.trimEnd,Ze=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ye=!0;try{
365
+ var je=!!String.prototype.startsWith,We=!!String.fromCodePoint,Xe=!!Object.fromEntries,Ve=!!String.prototype.codePointAt,ze=!!String.prototype.trimStart,Ke=!!String.prototype.trimEnd,Ye=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ze=!0;try{
366
366
  /**
367
367
  * legacy Edge or Xbox One browser
368
368
  * Unicode flag support: supported
369
369
  * Pattern_Syntax support: not supported
370
370
  * See https://github.com/formatjs/formatjs/issues/2822
371
371
  */
372
- Ye="a"===(null===(De=or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===De?void 0:De[0])}catch(t){Ye=!1}var qe,Je=je?// Native
372
+ Ze="a"===(null===(De=or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===De?void 0:De[0])}catch(t){Ze=!1}var qe,Je=je?// Native
373
373
  function(t,e,r){return t.startsWith(e,r)}:// For IE11
374
374
  function(t,e,r){return t.slice(r,r+e.length)===e},Qe=We?String.fromCodePoint:// IE11
375
375
  function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},tr=
@@ -385,7 +385,7 @@ function(t){return t.replace(Ge,"")};
385
385
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
386
386
  function or(t,e){return new RegExp(t,e)}
387
387
  // #endregion
388
- if(Ye){
388
+ if(Ze){
389
389
  // Native
390
390
  var ir=or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qe=function(t,e){var r;return ir.lastIndex=e,null!==(r=ir.exec(t)[1])&&void 0!==r?r:""}}else
391
391
  // IE11
@@ -527,7 +527,7 @@ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.err
527
527
  // Keep track of the existing selectors
528
528
  a.add(l),
529
529
  // Prep next selector clause.
530
- this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===s.length?this.error("select"===e?le.EXPECT_SELECT_ARGUMENT_SELECTOR:le.EXPECT_PLURAL_ARGUMENT_SELECTOR,ke(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(le.MISSING_OTHER_CLAUSE,ke(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=ke(n,this.clonePosition());return o?Ze(i*=r)?{val:i,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
530
+ this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===s.length?this.error("select"===e?le.EXPECT_SELECT_ARGUMENT_SELECTOR:le.EXPECT_PLURAL_ARGUMENT_SELECTOR,ke(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(le.MISSING_OTHER_CLAUSE,ke(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;o=!0,i=10*i+(s-48),this.bump()}var a=ke(n,this.clonePosition());return o?Ye(i*=r)?{val:i,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
531
531
  // This is much faster than `Object.assign` or spread.
532
532
  return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
533
533
  /**
@@ -639,9 +639,9 @@ this.formats=Pr(t.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.
639
639
  // Default format options used as the prototype of the `formats` provided to the
640
640
  // constructor. These are used when constructing the internal Intl.NumberFormat
641
641
  // and Intl.DateTimeFormat instances.
642
- t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const Ir={},xr=(t,e,r)=>r?(e in Ir||(Ir[e]={}),t in Ir[e]||(Ir[e][t]=r),r):r,Rr=(t,e)=>{if(null==e)return;if(e in Ir&&t in Ir[e])return Ir[e][t];const r=sn(e);for(let n=0;n<r.length;n++){const o=Ur(r[n],t);if(o)return xr(t,e,o)}};let Nr;const Mr=Zt({});function Dr(t){return t in Nr}function Ur(t,e){if(!Dr(t))return null;const r=function(t){return Nr[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function $r(t,...e){delete Ir[t],Mr.update((r=>(r[t]=ie.all([r[t]||{},...e]),r)))}Yt([Mr],(([t])=>Object.keys(t))),Mr.subscribe((t=>Nr=t));const Fr={};function Gr(t){return Fr[t]}function kr(t){return null!=t&&sn(t).some((t=>{var e;return null==(e=Gr(t))?void 0:e.size}))}function jr(t,e){const r=Promise.all(e.map((e=>(function(t,e){Fr[t].delete(e),0===Fr[t].size&&delete Fr[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>$r(t,...e)))}const Wr={};function Xr(t){if(!kr(t))return t in Wr?Wr[t]:Promise.resolve();const e=function(t){return sn(t).map((t=>{const e=Gr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Wr[t]=Promise.all(e.map((([t,e])=>jr(t,e)))).then((()=>{if(kr(t))return Xr(t);delete Wr[t]})),Wr[t]}const Vr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function zr(){return Vr}const Kr=Zt(!1);var Zr=Object.defineProperty,Yr=Object.defineProperties,qr=Object.getOwnPropertyDescriptors,Jr=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,en=(t,e,r)=>e in t?Zr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let rn;const nn=Zt(null);function on(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function sn(t,e=zr().fallbackLocale){const r=on(t);return e?[...new Set([...r,...on(e)])]:r}function an(){return null!=rn?rn:void 0}nn.subscribe((t=>{rn=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const ln=(un=((t,e)=>{for(var r in e||(e={}))Qr.call(e,r)&&en(t,r,e[r]);if(Jr)for(var r of Jr(e))tn.call(e,r)&&en(t,r,e[r]);return t})({},nn),Yr(un,qr({set:t=>{if(t&&function(t){if(null==t)return;const e=sn(t);for(let t=0;t<e.length;t++){const r=e[t];if(Dr(r))return r}}(t)&&kr(t)){const{loadingDelay:e}=zr();let r;return"undefined"!=typeof window&&null!=an()&&e?r=window.setTimeout((()=>Kr.set(!0)),e):Kr.set(!0),Xr(t).then((()=>{nn.set(t)})).finally((()=>{clearTimeout(r),Kr.set(!1)}))}return nn.set(t)}})));var un;const cn=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var hn=Object.defineProperty,fn=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,gn=(t,e,r)=>e in t?hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mn=(t,e)=>{for(var r in e||(e={}))pn.call(e,r)&&gn(t,r,e[r]);if(fn)for(var r of fn(e))dn.call(e,r)&&gn(t,r,e[r]);return t},yn=(t,e)=>{var r={};for(var n in t)pn.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&fn)for(var n of fn(t))e.indexOf(n)<0&&dn.call(t,n)&&(r[n]=t[n]);return r};const bn=(t,e)=>{const{formats:r}=zr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},vn=cn((t=>{var e=t,{locale:r,format:n}=e,o=yn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(o=bn("number",n)),new Intl.NumberFormat(r,o)})),En=cn((t=>{var e=t,{locale:r,format:n}=e,o=yn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?o=bn("date",n):0===Object.keys(o).length&&(o=bn("date","short")),new Intl.DateTimeFormat(r,o)})),wn=cn((t=>{var e=t,{locale:r,format:n}=e,o=yn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?o=bn("time",n):0===Object.keys(o).length&&(o=bn("time","short")),new Intl.DateTimeFormat(r,o)})),_n=cn((
642
+ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const Ir={},xr=(t,e,r)=>r?(e in Ir||(Ir[e]={}),t in Ir[e]||(Ir[e][t]=r),r):r,Rr=(t,e)=>{if(null==e)return;if(e in Ir&&t in Ir[e])return Ir[e][t];const r=sn(e);for(let n=0;n<r.length;n++){const o=Ur(r[n],t);if(o)return xr(t,e,o)}};let Nr;const Mr=Yt({});function Dr(t){return t in Nr}function Ur(t,e){if(!Dr(t))return null;const r=function(t){return Nr[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function $r(t,...e){delete Ir[t],Mr.update((r=>(r[t]=ie.all([r[t]||{},...e]),r)))}Zt([Mr],(([t])=>Object.keys(t))),Mr.subscribe((t=>Nr=t));const Fr={};function Gr(t){return Fr[t]}function kr(t){return null!=t&&sn(t).some((t=>{var e;return null==(e=Gr(t))?void 0:e.size}))}function jr(t,e){const r=Promise.all(e.map((e=>(function(t,e){Fr[t].delete(e),0===Fr[t].size&&delete Fr[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>$r(t,...e)))}const Wr={};function Xr(t){if(!kr(t))return t in Wr?Wr[t]:Promise.resolve();const e=function(t){return sn(t).map((t=>{const e=Gr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Wr[t]=Promise.all(e.map((([t,e])=>jr(t,e)))).then((()=>{if(kr(t))return Xr(t);delete Wr[t]})),Wr[t]}const Vr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function zr(){return Vr}const Kr=Yt(!1);var Yr=Object.defineProperty,Zr=Object.defineProperties,qr=Object.getOwnPropertyDescriptors,Jr=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,en=(t,e,r)=>e in t?Yr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let rn;const nn=Yt(null);function on(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function sn(t,e=zr().fallbackLocale){const r=on(t);return e?[...new Set([...r,...on(e)])]:r}function an(){return null!=rn?rn:void 0}nn.subscribe((t=>{rn=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const ln=(un=((t,e)=>{for(var r in e||(e={}))Qr.call(e,r)&&en(t,r,e[r]);if(Jr)for(var r of Jr(e))tn.call(e,r)&&en(t,r,e[r]);return t})({},nn),Zr(un,qr({set:t=>{if(t&&function(t){if(null==t)return;const e=sn(t);for(let t=0;t<e.length;t++){const r=e[t];if(Dr(r))return r}}(t)&&kr(t)){const{loadingDelay:e}=zr();let r;return"undefined"!=typeof window&&null!=an()&&e?r=window.setTimeout((()=>Kr.set(!0)),e):Kr.set(!0),Xr(t).then((()=>{nn.set(t)})).finally((()=>{clearTimeout(r),Kr.set(!1)}))}return nn.set(t)}})));var un;const cn=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var hn=Object.defineProperty,fn=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,gn=(t,e,r)=>e in t?hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mn=(t,e)=>{for(var r in e||(e={}))pn.call(e,r)&&gn(t,r,e[r]);if(fn)for(var r of fn(e))dn.call(e,r)&&gn(t,r,e[r]);return t},yn=(t,e)=>{var r={};for(var n in t)pn.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&fn)for(var n of fn(t))e.indexOf(n)<0&&dn.call(t,n)&&(r[n]=t[n]);return r};const bn=(t,e)=>{const{formats:r}=zr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},vn=cn((t=>{var e=t,{locale:r,format:n}=e,o=yn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(o=bn("number",n)),new Intl.NumberFormat(r,o)})),En=cn((t=>{var e=t,{locale:r,format:n}=e,o=yn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?o=bn("date",n):0===Object.keys(o).length&&(o=bn("date","short")),new Intl.DateTimeFormat(r,o)})),wn=cn((t=>{var e=t,{locale:r,format:n}=e,o=yn(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?o=bn("time",n):0===Object.keys(o).length&&(o=bn("time","short")),new Intl.DateTimeFormat(r,o)})),_n=cn((
643
643
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
644
- (t,e=an())=>new Or(t,e,zr().formats,{ignoreTag:zr().ignoreTag}))),Tn=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=an(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Rr(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(i=null!=(o=null==(n=(r=zr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:t,defaultValue:u}))?o:u)?i:t;if(!a)return c;let h=c;try{h=_n(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},Bn=(t,e)=>((t={})=>{var e=t,{locale:r=an()}=e,n=yn(e,["locale"]);return wn(mn({locale:r},n))})(e).format(t),An=(t,e)=>((t={})=>{var e=t,{locale:r=an()}=e,n=yn(e,["locale"]);return En(mn({locale:r},n))})(e).format(t),Sn=(t,e)=>((t={})=>{var e=t,{locale:r=an()}=e,n=yn(e,["locale"]);return vn(mn({locale:r},n))})(e).format(t),Hn=(t,e=an())=>Rr(t,e),Ln=Yt([ln,Mr],(()=>Tn));Yt([ln],(()=>Bn)),Yt([ln],(()=>An)),Yt([ln],(()=>Sn)),Yt([ln,Mr],(()=>Hn)),window.emWidgets={topic:(t,e=0)=>{if(-1==Vt.indexOf(t)){let r=new Xt(e);zt[t]=r,Vt.push(t)}return zt[t]}};function Pn(t,e){$r(t,e)}const Cn={en:{wageringSlider:{title:"- Wagering Bonus -"}},tr:{wageringSlider:{title:"- Wagering Bonus -"}},es:{wageringSlider:{title:"Bono de Apuesta"}},el:{wageringSlider:{title:"- Wagering Bonus -"}},ro:{wageringSlider:{title:"- Wagering Bonus -"}}};var On=function(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}((function(t,e){
644
+ (t,e=an())=>new Or(t,e,zr().formats,{ignoreTag:zr().ignoreTag}))),Tn=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=an(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Rr(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(i=null!=(o=null==(n=(r=zr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:t,defaultValue:u}))?o:u)?i:t;if(!a)return c;let h=c;try{h=_n(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},Bn=(t,e)=>((t={})=>{var e=t,{locale:r=an()}=e,n=yn(e,["locale"]);return wn(mn({locale:r},n))})(e).format(t),An=(t,e)=>((t={})=>{var e=t,{locale:r=an()}=e,n=yn(e,["locale"]);return En(mn({locale:r},n))})(e).format(t),Sn=(t,e)=>((t={})=>{var e=t,{locale:r=an()}=e,n=yn(e,["locale"]);return vn(mn({locale:r},n))})(e).format(t),Hn=(t,e=an())=>Rr(t,e),Ln=Zt([ln,Mr],(()=>Tn));Zt([ln],(()=>Bn)),Zt([ln],(()=>An)),Zt([ln],(()=>Sn)),Zt([ln,Mr],(()=>Hn)),window.emWidgets={topic:(t,e=0)=>{if(-1==Vt.indexOf(t)){let r=new Xt(e);zt[t]=r,Vt.push(t)}return zt[t]}};function Pn(t,e){$r(t,e)}const Cn={en:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},tr:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},es:{wageringSlider:{title:"Bono de Apuesta",noWageringMsg:"You don't have any wagering bonus."}},el:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},ro:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}}};var On=function(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}((function(t,e){
645
645
  /** @license
646
646
  * eventsource.js
647
647
  * Available under MIT License (MIT)
@@ -712,21 +712,21 @@ i.HEADERS_RECEIVED=2),_.prototype.open=function(t,e,r,n,o,s,a){t.open("GET",o);v
712
712
  // see https://github.com/promises-aplus/promises-spec/issues/179
713
713
  return a=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new T(t.headers)),new c((function(t,e){var n=function(){a.read().then((function(e){if(e.done)
714
714
  //Note: bytes in textDecoder are ignored
715
- t(void 0);else{var o=f.decode(e.value,{stream:!0});r(o),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=a&&a.cancel(),l.abort()}}},A.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var r=e.length,n=0;n<r;n+=1){var o=e[n];try{"function"==typeof o.handleEvent?o.handleEvent(t):o.call(this,t)}catch(t){S(t)}}},A.prototype.addEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];null==n&&(n=[],r[t]=n);for(var o=!1,i=0;i<n.length;i+=1)n[i]===e&&(o=!0);o||n.push(e)},A.prototype.removeEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];if(null!=n){for(var o=[],i=0;i<n.length;i+=1)n[i]!==e&&o.push(n[i]);0===o.length?delete r[t]:r[t]=o}},L.prototype=Object.create(H.prototype),P.prototype=Object.create(H.prototype),C.prototype=Object.create(H.prototype);var O=-1,I=0,x=1,R=2,N=-1,M=0,D=1,U=2,$=3,F=/^text\/event\-stream(;.*)?$/i,G=function(t,e){var r=null==t?e:parseInt(t,10);return r!=r&&(r=e),k(r)},k=function(t){return Math.min(Math.max(t,1e3),18e6)},j=function(t,e,r){try{"function"==typeof e&&e.call(t,r)}catch(t){S(t)}};function W(t,e){A.call(this),e=e||{},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,function(t,e,r){e=String(e);var a=Boolean(r.withCredentials),l=r.lastEventIdQueryParameterName||"lastEventId",u=k(1e3),c=G(r.heartbeatTimeout,45e3),h="",f=u,p=!1,d=0,g=r.headers||{},m=r.Transport,y=X&&null==m?void 0:new v(null!=m?new m:null!=i&&"withCredentials"in i.prototype||null==s?new i:new s),b=null!=m&&"string"!=typeof m?new m:null==y?new B:new _,E=void 0,w=0,T=O,A="",S="",H="",W="",V=M,z=0,K=0,Z=function(e,r,n,o){if(T===I)if(200===e&&null!=n&&F.test(n)){T=x,p=Date.now(),f=u,t.readyState=x;var i=new P("open",{status:e,statusText:r,headers:o});t.dispatchEvent(i),j(t,t.onopen,i)}else{var s="";200!==e?(r&&(r=r.replace(/\s+/g," ")),s="EventSource's response has a status "+e+" "+r+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",J();i=new P("error",{status:e,statusText:r,headers:o});t.dispatchEvent(i),j(t,t.onerror,i),console.error(s)}},Y=function(e){if(T===x){for(var r=-1,i=0;i<e.length;i+=1){(l=e.charCodeAt(i))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(r=i)}var s=(-1!==r?W:"")+e.slice(0,r+1);W=(-1===r?W:"")+e.slice(r+1),""!==e&&(p=Date.now(),d+=e.length);for(var a=0;a<s.length;a+=1){var l=s.charCodeAt(a);if(V===N&&l==="\n".charCodeAt(0))V=M;else if(V===N&&(V=M),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(V!==M){V===D&&(K=a+1);var g=s.slice(z,K-1),m=s.slice(K+(K<a&&s.charCodeAt(K)===" ".charCodeAt(0)?1:0),a);"data"===g?(A+="\n",A+=m):"id"===g?S=m:"event"===g?H=m:"retry"===g?(u=G(m,u),f=u):"heartbeatTimeout"===g&&(c=G(m,c),0!==w&&(o(w),w=n((function(){Q()}),c)))}if(V===M){if(""!==A){h=S,""===H&&(H="message");var y=new L(H,{data:A.slice(1),lastEventId:S});if(t.dispatchEvent(y),"open"===H?j(t,t.onopen,y):"message"===H?j(t,t.onmessage,y):"error"===H&&j(t,t.onerror,y),T===R)return}A="",H=""}V=l==="\r".charCodeAt(0)?N:M}else V===M&&(z=a,V=D),V===D?l===":".charCodeAt(0)&&(K=a+1,V=U):V===U&&(V=$)}}},q=function(e){if(T===x||T===I){T=O,0!==w&&(o(w),w=0),w=n((function(){Q()}),f),f=k(Math.min(16*u,2*f)),t.readyState=I;var r=new C("error",{error:e});t.dispatchEvent(r),j(t,t.onerror,r),null!=e&&console.error(e)}},J=function(){T=R,null!=E&&(E.abort(),E=void 0),0!==w&&(o(w),w=0),t.readyState=R},Q=function(){if(w=0,T===O){p=!1,d=0,w=n((function(){Q()}),c),T=I,A="",H="",S=h,W="",z=0,K=0,V=M;
715
+ t(void 0);else{var o=f.decode(e.value,{stream:!0});r(o),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=a&&a.cancel(),l.abort()}}},A.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var r=e.length,n=0;n<r;n+=1){var o=e[n];try{"function"==typeof o.handleEvent?o.handleEvent(t):o.call(this,t)}catch(t){S(t)}}},A.prototype.addEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];null==n&&(n=[],r[t]=n);for(var o=!1,i=0;i<n.length;i+=1)n[i]===e&&(o=!0);o||n.push(e)},A.prototype.removeEventListener=function(t,e){t=String(t);var r=this._listeners,n=r[t];if(null!=n){for(var o=[],i=0;i<n.length;i+=1)n[i]!==e&&o.push(n[i]);0===o.length?delete r[t]:r[t]=o}},L.prototype=Object.create(H.prototype),P.prototype=Object.create(H.prototype),C.prototype=Object.create(H.prototype);var O=-1,I=0,x=1,R=2,N=-1,M=0,D=1,U=2,$=3,F=/^text\/event\-stream(;.*)?$/i,G=function(t,e){var r=null==t?e:parseInt(t,10);return r!=r&&(r=e),k(r)},k=function(t){return Math.min(Math.max(t,1e3),18e6)},j=function(t,e,r){try{"function"==typeof e&&e.call(t,r)}catch(t){S(t)}};function W(t,e){A.call(this),e=e||{},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,function(t,e,r){e=String(e);var a=Boolean(r.withCredentials),l=r.lastEventIdQueryParameterName||"lastEventId",u=k(1e3),c=G(r.heartbeatTimeout,45e3),h="",f=u,p=!1,d=0,g=r.headers||{},m=r.Transport,y=X&&null==m?void 0:new v(null!=m?new m:null!=i&&"withCredentials"in i.prototype||null==s?new i:new s),b=null!=m&&"string"!=typeof m?new m:null==y?new B:new _,E=void 0,w=0,T=O,A="",S="",H="",W="",V=M,z=0,K=0,Y=function(e,r,n,o){if(T===I)if(200===e&&null!=n&&F.test(n)){T=x,p=Date.now(),f=u,t.readyState=x;var i=new P("open",{status:e,statusText:r,headers:o});t.dispatchEvent(i),j(t,t.onopen,i)}else{var s="";200!==e?(r&&(r=r.replace(/\s+/g," ")),s="EventSource's response has a status "+e+" "+r+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",J();i=new P("error",{status:e,statusText:r,headers:o});t.dispatchEvent(i),j(t,t.onerror,i),console.error(s)}},Z=function(e){if(T===x){for(var r=-1,i=0;i<e.length;i+=1){(l=e.charCodeAt(i))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(r=i)}var s=(-1!==r?W:"")+e.slice(0,r+1);W=(-1===r?W:"")+e.slice(r+1),""!==e&&(p=Date.now(),d+=e.length);for(var a=0;a<s.length;a+=1){var l=s.charCodeAt(a);if(V===N&&l==="\n".charCodeAt(0))V=M;else if(V===N&&(V=M),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(V!==M){V===D&&(K=a+1);var g=s.slice(z,K-1),m=s.slice(K+(K<a&&s.charCodeAt(K)===" ".charCodeAt(0)?1:0),a);"data"===g?(A+="\n",A+=m):"id"===g?S=m:"event"===g?H=m:"retry"===g?(u=G(m,u),f=u):"heartbeatTimeout"===g&&(c=G(m,c),0!==w&&(o(w),w=n((function(){Q()}),c)))}if(V===M){if(""!==A){h=S,""===H&&(H="message");var y=new L(H,{data:A.slice(1),lastEventId:S});if(t.dispatchEvent(y),"open"===H?j(t,t.onopen,y):"message"===H?j(t,t.onmessage,y):"error"===H&&j(t,t.onerror,y),T===R)return}A="",H=""}V=l==="\r".charCodeAt(0)?N:M}else V===M&&(z=a,V=D),V===D?l===":".charCodeAt(0)&&(K=a+1,V=U):V===U&&(V=$)}}},q=function(e){if(T===x||T===I){T=O,0!==w&&(o(w),w=0),w=n((function(){Q()}),f),f=k(Math.min(16*u,2*f)),t.readyState=I;var r=new C("error",{error:e});t.dispatchEvent(r),j(t,t.onerror,r),null!=e&&console.error(e)}},J=function(){T=R,null!=E&&(E.abort(),E=void 0),0!==w&&(o(w),w=0),t.readyState=R},Q=function(){if(w=0,T===O){p=!1,d=0,w=n((function(){Q()}),c),T=I,A="",H="",S=h,W="",z=0,K=0,V=M;
716
716
  // https://bugzilla.mozilla.org/show_bug.cgi?id=428916
717
717
  // Request header field Last-Event-ID is not allowed by Access-Control-Allow-Headers.
718
718
  var r=e;if("data:"!==e.slice(0,5)&&"blob:"!==e.slice(0,5)&&""!==h){
719
719
  // Remove the lastEventId parameter if it's already part of the request URL.
720
720
  var o=e.indexOf("?");r=-1===o?e:e.slice(0,o+1)+e.slice(o+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,e){return e===l?"":t})),
721
721
  // Append the current lastEventId to the request URL.
722
- r+=(-1===e.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(h)}var i=t.withCredentials,s={Accept:"text/event-stream"},a=t.headers;if(null!=a)for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u]);try{E=b.open(y,Z,Y,q,r,i,s)}catch(t){throw J(),t}}else if(p||null==E){var f=Math.max((p||Date.now())+c-Date.now(),1);p=!1,w=n((function(){Q()}),f)}else q(new Error("No activity within "+c+" milliseconds. "+(T===I?"No response received.":d+" chars received.")+" Reconnecting.")),null!=E&&(E.abort(),E=void 0)};t.url=e,t.readyState=I,t.withCredentials=a,t.headers=g,t._close=J,Q()}(this,t,e)}var X=null!=h&&null!=f&&"body"in f.prototype;W.prototype=Object.create(A.prototype),W.prototype.CONNECTING=I,W.prototype.OPEN=x,W.prototype.CLOSED=R,W.prototype.close=function(){this._close()},W.CONNECTING=I,W.OPEN=x,W.CLOSED=R,W.prototype.withCredentials=void 0;var V,z=l;null==i||null!=l&&"withCredentials"in l.prototype||(
722
+ r+=(-1===e.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(h)}var i=t.withCredentials,s={Accept:"text/event-stream"},a=t.headers;if(null!=a)for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=a[u]);try{E=b.open(y,Y,Z,q,r,i,s)}catch(t){throw J(),t}}else if(p||null==E){var f=Math.max((p||Date.now())+c-Date.now(),1);p=!1,w=n((function(){Q()}),f)}else q(new Error("No activity within "+c+" milliseconds. "+(T===I?"No response received.":d+" chars received.")+" Reconnecting.")),null!=E&&(E.abort(),E=void 0)};t.url=e,t.readyState=I,t.withCredentials=a,t.headers=g,t._close=J,Q()}(this,t,e)}var X=null!=h&&null!=f&&"body"in f.prototype;W.prototype=Object.create(A.prototype),W.prototype.CONNECTING=I,W.prototype.OPEN=x,W.prototype.CLOSED=R,W.prototype.close=function(){this._close()},W.CONNECTING=I,W.OPEN=x,W.CLOSED=R,W.prototype.withCredentials=void 0;var V,z=l;null==i||null!=l&&"withCredentials"in l.prototype||(
723
723
  // Why replace a native EventSource ?
724
724
  // https://bugzilla.mozilla.org/show_bug.cgi?id=444328
725
725
  // https://bugzilla.mozilla.org/show_bug.cgi?id=831392
726
726
  // https://code.google.com/p/chromium/issues/detail?id=260144
727
727
  // https://code.google.com/p/chromium/issues/detail?id=225654
728
728
  // ...
729
- z=W),V=function(t){t.EventSourcePolyfill=W,t.NativeEventSource=l,t.EventSource=z}(e),void 0!==V&&(t.exports=V)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:ht:globalThis)})),In="data:image/svg+xml,%3csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M1.67757 2.5647L3.72412 -1.25356e-07L5.77067 2.5647L3.72412 5.12939L1.67757 2.5647Z' fill='%23FF8B03'/%3e %3crect x='0.468506' y='6.1134' width='6.55827' height='0.936896' fill='%23FF8B03'/%3e %3cpath d='M7.49512 1.42889L0.4684 5.64492H7.02667L7.49512 1.42889Z' fill='%23FFB82E'/%3e %3cpath d='M0 1.42889L7.02672 5.64492H0.468448L0 1.42889Z' fill='gold'/%3e%3c/svg%3e";function xn(t,e){$r(t,e)}const Rn={en:{bets:"bets"},tr:{bets:"bets"},es:{bets:"apuestas"},el:{bets:"bets"},hr:{bets:"ulozi"}};
729
+ z=W),V=function(t){t.EventSourcePolyfill=W,t.NativeEventSource=l,t.EventSource=z}(e),void 0!==V&&(t.exports=V)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:ht:globalThis)})),In="data:image/svg+xml,%3csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M1.67757 2.5647L3.72412 -1.25356e-07L5.77067 2.5647L3.72412 5.12939L1.67757 2.5647Z' fill='%23FF8B03'/%3e %3crect x='0.468506' y='6.1134' width='6.55827' height='0.936896' fill='%23FF8B03'/%3e %3cpath d='M7.49512 1.42889L0.4684 5.64492H7.02667L7.49512 1.42889Z' fill='%23FFB82E'/%3e %3cpath d='M0 1.42889L7.02672 5.64492H0.468448L0 1.42889Z' fill='gold'/%3e%3c/svg%3e";function xn(t,e){$r(t,e)}const Rn={en:{bets:"bets"},tr:{bets:"bets"},es:{bets:"apuestas"},el:{bets:"bets"},hr:{bets:"ulozi"},"pt-br":{bets:"apostas"},"es-mx":{bets:"apuestas"}};
730
730
  /* ../general-icon-progress-bar/src/GeneralIconProgressBar.svelte generated by Svelte v3.59.2 */function Nn(e){let r,n,o,i,s;return{c(){r=d("div"),n=d("div"),o=d("span"),i=m(/*progressText*/e[3]),this.c=t,v(o,"part","progressText"),v(n,"class",s="stepBar "+/*curTatus*/e[4]),v(n,"part","stepBar"),v(r,"class","general-icon-progress-bar"),v(r,"part","totalBar")},m(t,s){f(t,r,s),h(r,n),h(n,o),h(o,i),
731
731
  /*span_binding*/e[13](o),
732
732
  /*div0_binding*/e[14](n),
@@ -735,25 +735,25 @@ z=W),V=function(t){t.EventSourcePolyfill=W,t.NativeEventSource=l,t.EventSource=z
735
735
  /*div0_binding*/e[14](null),
736
736
  /*div1_binding*/e[15](null)}}}function Mn(t,e,r){let n;c(t,Ln,(t=>r(20,n=t)));let o,i,s,a,l,u,h,{currentstep:f=0}=e,{total:p=1}=e,{showaspercent:d}=e,{lang:g="en"}=e,{status:m}=e,{translationurl:y=""}=e,{progressfractiondigit:b=1}=e,{triggerreset:v}=e,E="0px",w="active";!function({withLocale:t,translations:e}){ln.subscribe((r=>{null==r&&(Mr.set(e),ln.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
737
737
  /*dictionary.set(translations);
738
- locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Rn).forEach((t=>{xn(t,Rn[t])}));const _=()=>{var t;t=g,ln.set(t)},T=()=>{let t=(f/p*100).toFixed(b);setTimeout((()=>{r(3,a=d||"true"===d?`${t}%`:`${f}/${p} ${n("bets")}`)}),a?573:0),0==t||100==t?(u="0px",h="0px",E=100==t?"3px":"0px"):(u=`${o.offsetHeight}px`,l=u,h=o.offsetHeight/3+"px",E="0px"),i.style.setProperty("--parentElementHeight",l),s.style.setProperty("--currentStep",t+"%"),s.style.setProperty("--triangleHeight",u),s.style.setProperty("--halfOfTriangleHeight",h),s.style.setProperty("--stepBarBorderRadius",E)};return B((()=>{T()})),t.$$set=t=>{"currentstep"in t&&r(5,f=t.currentstep),"total"in t&&r(6,p=t.total),"showaspercent"in t&&r(7,d=t.showaspercent),"lang"in t&&r(8,g=t.lang),"status"in t&&r(9,m=t.status),"translationurl"in t&&r(10,y=t.translationurl),"progressfractiondigit"in t&&r(11,b=t.progressfractiondigit),"triggerreset"in t&&r(12,v=t.triggerreset)},t.$$.update=()=>{/*triggerreset, total*/4160&t.$$.dirty&&v&&p&&T(),/*lang*/256&t.$$.dirty&&g&&_(),/*status*/512&t.$$.dirty&&m&&r(4,w="active"==m?"":"inactive"),/*translationurl*/1024&t.$$.dirty&&y&&fetch(y).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{xn(e,t[e])}))})).catch((t=>{console.log(t)}))},[o,i,s,a,w,f,p,d,g,m,y,b,v,function(t){S[t?"unshift":"push"]((()=>{i=t,r(1,i)}))},function(t){S[t?"unshift":"push"]((()=>{s=t,r(2,s)}))},function(t){S[t?"unshift":"push"]((()=>{o=t,r(0,o)}))}]}
738
+ locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Rn).forEach((t=>{xn(t,Rn[t])}));const _=()=>{var t;t=g,ln.set(t)};return t.$$set=t=>{"currentstep"in t&&r(5,f=t.currentstep),"total"in t&&r(6,p=t.total),"showaspercent"in t&&r(7,d=t.showaspercent),"lang"in t&&r(8,g=t.lang),"status"in t&&r(9,m=t.status),"translationurl"in t&&r(10,y=t.translationurl),"progressfractiondigit"in t&&r(11,b=t.progressfractiondigit),"triggerreset"in t&&r(12,v=t.triggerreset)},t.$$.update=()=>{/*triggerreset, total*/4160&t.$$.dirty&&v&&p&&setTimeout((()=>{(()=>{let t=(f/p*100).toFixed(b);setTimeout((()=>{r(3,a=d||"true"===d?`${t}%`:`${f}/${p} ${n("bets")}`)}),a?573:0),0==t||100==t?(u="0px",h="0px",E=100==t?"3px":"0px"):(u=`${o.offsetHeight}px`,l=u,h=o.offsetHeight/3+"px",E="0px"),i.style.setProperty("--parentElementHeight",l),s.style.setProperty("--currentStep",t+"%"),s.style.setProperty("--triangleHeight",u),s.style.setProperty("--halfOfTriangleHeight",h),s.style.setProperty("--stepBarBorderRadius",E)})()})),/*lang*/256&t.$$.dirty&&g&&_(),/*status*/512&t.$$.dirty&&m&&r(4,w="active"==m?"":"inactive"),/*translationurl*/1024&t.$$.dirty&&y&&fetch(y).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{xn(e,t[e])}))})).catch((t=>{console.log(t)}))},[o,i,s,a,w,f,p,d,g,m,y,b,v,function(t){S[t?"unshift":"push"]((()=>{i=t,r(1,i)}))},function(t){S[t?"unshift":"push"]((()=>{s=t,r(2,s)}))},function(t){S[t?"unshift":"push"]((()=>{o=t,r(0,o)}))}]}
739
739
  /* src/CasinoWageringBonusSliderController.svelte generated by Svelte v3.59.2 */
740
- function Dn(t,e,r){const n=t.slice();return n[56]=e[r],n[58]=r,n}
741
- // (362:8) {:else}
742
- function Un(e){let r;return{c(){r=d("div"),r.textContent=" "},m(t,e){f(t,r,e)},p:t,d(t){t&&p(r)}}}
743
- // (341:6) {#if wageringList && wageringList.length > 0}
744
- function $n(t){let e,r=/*wageringList*/t[1],n=[];for(let e=0;e<r.length;e+=1)n[e]=Fn(Dn(t,r,e));return{c(){e=d("div");for(let t=0;t<n.length;t+=1)n[t].c();v(e,"class","WagerList"),v(e,"part","WageringBonusList")},m(t,r){f(t,e,r);for(let t=0;t<n.length;t+=1)n[t]&&n[t].m(e,null)},p(t,o){if(/*currentWagerIdx, hiddenDivClass, wageringList, progressfractiondigit, onWagingBonusTitleClick*/8455&o[0]){let i;for(r=/*wageringList*/t[1],i=0;i<r.length;i+=1){const s=Dn(t,r,i);n[i]?n[i].p(s,o):(n[i]=Fn(s),n[i].c(),n[i].m(e,null))}for(;i<n.length;i+=1)n[i].d(1);n.length=r.length}},d(t){t&&p(e),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(n,t)}}}
745
- // (343:8) {#each wageringList as wagerInfo, index}
746
- function Fn(t){let e,r,n,o,i,s,a,u,c,g,_,T,B,A,S,H,L,P,C,O,I=/*wagerInfo*/t[56].title+"";function x(){/*click_handler_2*/
747
- return t[25](/*wagerInfo*/t[56])}return{c(){var h,f,p,b;e=d("div"),r=d("div"),n=d("div"),o=d("img"),s=y(),a=d("div"),u=m(I),c=y(),g=d("div"),_=d("general-icon-progress-bar"),L=y(),v(o,"alt","crown"),v(o,"part","Icon"),v(o,"class","MiniIcon"),l(o.src,i=In)||v(o,"src",i),v(n,"class","trophy"),v(a,"class","gameInfo"),v(a,"part","WageringBonusTitleRow Title"),v(r,"class","bonusName"),h=r,f="display",null==(p="table")?h.style.removeProperty(f):h.style.setProperty(f,p,b?"important":""),v(r,"part","WageringBonusTitleRow"),E(_,"currentstep",T=/*wagerInfo*/t[56].currentStep),E(_,"status",B=/*wagerInfo*/t[56].status),E(_,"triggerreset",A=/*wagerInfo*/t[56].triggerreset),E(_,"total",S=/*wagerInfo*/t[56].levelIncrement),E(_,"progressfractiondigit",/*progressfractiondigit*/t[0]),E(_,"showaspercent",H=/*wagerInfo*/"money"==t[56].type),E(_,"lang",""),v(g,"class","ProgressBar bottom"),v(g,"part","ProgressBar"),v(e,"class",P="WageringBonusInfo "+(/*currentWagerIdx*/t[2]!=/*index*/t[58]?/*hiddenDivClass*/t[8]:"shownDiv")),v(e,"part","WageringBonusInfo")},m(t,i){f(t,e,i),h(e,r),h(r,n),h(n,o),h(r,s),h(r,a),h(a,u),h(e,c),h(e,g),h(g,_),h(e,L),C||(O=b(a,"click",x),C=!0)},p(r,n){t=r,/*wageringList*/2&n[0]&&I!==(I=/*wagerInfo*/t[56].title+"")&&w(u,I),/*wageringList*/2&n[0]&&T!==(T=/*wagerInfo*/t[56].currentStep)&&E(_,"currentstep",T),/*wageringList*/2&n[0]&&B!==(B=/*wagerInfo*/t[56].status)&&E(_,"status",B),/*wageringList*/2&n[0]&&A!==(A=/*wagerInfo*/t[56].triggerreset)&&E(_,"triggerreset",A),/*wageringList*/2&n[0]&&S!==(S=/*wagerInfo*/t[56].levelIncrement)&&E(_,"total",S),/*progressfractiondigit*/1&n[0]&&E(_,"progressfractiondigit",/*progressfractiondigit*/t[0]),/*wageringList*/2&n[0]&&H!==(H=/*wagerInfo*/"money"==t[56].type)&&E(_,"showaspercent",H),/*currentWagerIdx, hiddenDivClass*/260&n[0]&&P!==(P="WageringBonusInfo "+(/*currentWagerIdx*/t[2]!=/*index*/t[58]?/*hiddenDivClass*/t[8]:"shownDiv"))&&v(e,"class",P)},d(t){t&&p(e),C=!1,O()}}}function Gn(e){let r,o,i,s,a,u,c,E,_,T,B,A,S,H,L,P,C,O,I,x,R,N,M,D,U,$,F,G,k,j=/*$_*/e[9]("wageringSlider.title")+"";function W(t,e){/*wageringList*/
748
- return t[1]&&/*wageringList*/t[1].length>0?$n:Un}let X=W(e),V=X(e);return{c(){r=d("div"),o=d("div"),i=d("div"),i.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> \n <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',s=y(),a=d("div"),u=g("svg"),c=g("path"),_=y(),T=d("div"),B=d("div"),A=m(j),S=y(),V.c(),H=y(),L=d("div"),P=g("svg"),C=g("path"),x=y(),R=d("section"),N=d("div"),M=d("img"),U=y(),$=d("div"),$.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> \n <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',this.c=t,v(i,"class","hideButton"),v(i,"part","HideWidgetButton"),v(c,"d","M3 7L1 4L3 1"),v(c,"stroke","currentColor"),v(c,"stroke-linecap","round"),v(c,"stroke-linejoin","round"),v(u,"part","LeftArrowSvg"),v(u,"width","6"),v(u,"height","14"),v(u,"viewBox","0 0 4 8"),v(u,"fill","none"),v(u,"xmlns","http://www.w3.org/2000/svg"),v(a,"class",E="LeftArrow "+(/*isFirst*/e[4]?"Disabled":"")),v(a,"part","LeftArrow"),v(B,"class","Title Top"),v(B,"part","WageringBonusTitle"),v(T,"class","SliderCenter"),v(T,"part","WageringBonusContent"),v(C,"d","M1 1L3 4L1 7"),v(C,"stroke","currentColor"),v(C,"stroke-linecap","round"),v(C,"stroke-linejoin","round"),v(P,"width","6"),v(P,"height","14"),v(P,"viewBox","0 0 4 8"),v(P,"fill","none"),v(P,"xmlns","http://www.w3.org/2000/svg"),v(L,"part","RightRow"),v(L,"class",O="RightArrow "+(/*isLast*/e[5]?"Disabled":"")),v(o,"part","SliderWrapper"),v(o,"class",I="SliderWrapper "+(/*isIconMode*/e[7]?"HiddenWidget":"ShowWidget")),v(M,"alt","crown"),v(M,"part","Icon"),v(M,"class","MiniIcon"),l(M.src,D=In)||v(M,"src",D),v(N,"class","svg"),v(N,"part","AnimatorIconWrapper"),v($,"class","restoreButton"),v($,"part","RestoreButton"),v(R,"id","animator"),v(R,"part","Animator"),v(R,"class",F="SliderIcon "+(/*isIconMode*/e[7]?"ShowWidget":"HiddenWidget")),v(r,"class","WageringBonusWrapper"),v(r,"part","WageringBonusWrapper")},m(t,n){f(t,r,n),h(r,o),h(o,i),h(o,s),h(o,a),h(a,u),h(u,c),h(o,_),h(o,T),h(T,B),h(B,A),h(T,S),V.m(T,null),h(o,H),h(o,L),h(L,P),h(P,C),
749
- /*div5_binding*/e[27](o),h(r,x),h(r,R),h(R,N),h(N,M),h(R,U),h(R,$),
750
- /*section_binding*/e[28](R),G||(k=[b(i,"click",/*click_handler*/e[21]),b(a,"click",/*click_handler_1*/e[22]),b(a,"mouseenter",/*mouseenter_handler*/e[23]),b(a,"mouseleave",/*mouseleave_handler*/e[24]),b(L,"click",/*click_handler_3*/e[26]),b(R,"click",/*click_handler_4*/e[29])],G=!0)},p(t,e){/*isFirst*/16&e[0]&&E!==(E="LeftArrow "+(/*isFirst*/t[4]?"Disabled":""))&&v(a,"class",E),/*$_*/512&e[0]&&j!==(j=/*$_*/t[9]("wageringSlider.title")+"")&&w(A,j),X===(X=W(t))&&V?V.p(t,e):(V.d(1),V=X(t),V&&(V.c(),V.m(T,null))),/*isLast*/32&e[0]&&O!==(O="RightArrow "+(/*isLast*/t[5]?"Disabled":""))&&v(L,"class",O),/*isIconMode*/128&e[0]&&I!==(I="SliderWrapper "+(/*isIconMode*/t[7]?"HiddenWidget":"ShowWidget"))&&v(o,"class",I),/*isIconMode*/128&e[0]&&F!==(F="SliderIcon "+(/*isIconMode*/t[7]?"ShowWidget":"HiddenWidget"))&&v(R,"class",F)},i:t,o:t,d(t){t&&p(r),V.d(),
751
- /*div5_binding*/e[27](null),
752
- /*section_binding*/e[28](null),G=!1,n(k)}}}function kn(t,e,r){let n;c(t,Ln,(t=>r(9,n=t)));let o,i,s,a,l,{endpoint:u}=e,{session:h}=e,{lang:f="en"}=e,{numberofrecords:p="5"}=e,{looptime:d="5"}=e,{translationurl:g=""}=e,{progressfractiondigit:m=1}=e,y=window.navigator.userAgent,b=!0,v=!1,E=0,w=null,_=null,T=!1,A="Hidden";!function({withLocale:t,translations:e}){ln.subscribe((r=>{null==r&&(Mr.set(e),ln.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
740
+ function Dn(t,e,r){const n=t.slice();return n[55]=e[r],n[57]=r,n}
741
+ // (360:55)
742
+ function Un(t){let e,r,n=/*$_*/t[9]("wageringSlider.noWageringMsg")+"";return{c(){e=d("div"),r=m(n),v(e,"class","NoWageringMsg")},m(t,n){f(t,e,n),h(e,r)},p(t,e){/*$_*/512&e[0]&&n!==(n=/*$_*/t[9]("wageringSlider.noWageringMsg")+"")&&w(r,n)},d(t){t&&p(e)}}}
743
+ // (325:4) {#if wageringList && wageringList.length > 0}
744
+ function $n(t){let e,r,o,i,s,a,l,u,c,E,_,T,B,A,S,H,L,P=/*$_*/t[9]("wageringSlider.title")+"",C=/*wageringList*/t[1],O=[];for(let e=0;e<C.length;e+=1)O[e]=Fn(Dn(t,C,e));return{c(){e=d("div"),r=g("svg"),o=g("path"),s=y(),a=d("div"),l=d("div"),u=m(P),c=y(),E=d("div");for(let t=0;t<O.length;t+=1)O[t].c();_=y(),T=d("div"),B=g("svg"),A=g("path"),v(o,"d","M3 7L1 4L3 1"),v(o,"stroke","currentColor"),v(o,"stroke-linecap","round"),v(o,"stroke-linejoin","round"),v(r,"part","LeftArrowSvg"),v(r,"width","6"),v(r,"height","14"),v(r,"viewBox","0 0 4 8"),v(r,"fill","none"),v(r,"xmlns","http://www.w3.org/2000/svg"),v(e,"class",i="LeftArrow "+(/*isFirst*/t[4]?"Disabled":"")),v(e,"part","LeftArrow"),v(l,"class","Title Top"),v(l,"part","WageringBonusTitle"),v(E,"class","WagerList"),v(E,"part","WageringBonusList"),v(a,"class","SliderCenter"),v(a,"part","WageringBonusContent"),v(A,"d","M1 1L3 4L1 7"),v(A,"stroke","currentColor"),v(A,"stroke-linecap","round"),v(A,"stroke-linejoin","round"),v(B,"width","6"),v(B,"height","14"),v(B,"viewBox","0 0 4 8"),v(B,"fill","none"),v(B,"xmlns","http://www.w3.org/2000/svg"),v(T,"part","RightRow"),v(T,"class",S="RightArrow "+(/*isLast*/t[5]?"Disabled":""))},m(n,i){f(n,e,i),h(e,r),h(r,o),f(n,s,i),f(n,a,i),h(a,l),h(l,u),h(a,c),h(a,E);for(let t=0;t<O.length;t+=1)O[t]&&O[t].m(E,null);f(n,_,i),f(n,T,i),h(T,B),h(B,A),H||(L=[b(e,"click",/*click_handler_1*/t[22]),b(e,"mouseenter",/*mouseenter_handler*/t[23]),b(e,"mouseleave",/*mouseleave_handler*/t[24]),b(T,"click",/*click_handler_3*/t[26])],H=!0)},p(t,r){if(/*isFirst*/16&r[0]&&i!==(i="LeftArrow "+(/*isFirst*/t[4]?"Disabled":""))&&v(e,"class",i),/*$_*/512&r[0]&&P!==(P=/*$_*/t[9]("wageringSlider.title")+"")&&w(u,P),/*currentWagerIdx, hiddenDivClass, wageringList, progressfractiondigit, onWagingBonusTitleClick*/8455&r[0]){let e;for(C=/*wageringList*/t[1],e=0;e<C.length;e+=1){const n=Dn(t,C,e);O[e]?O[e].p(n,r):(O[e]=Fn(n),O[e].c(),O[e].m(E,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=C.length}/*isLast*/32&r[0]&&S!==(S="RightArrow "+(/*isLast*/t[5]?"Disabled":""))&&v(T,"class",S)},d(t){t&&p(e),t&&p(s),t&&p(a),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(O,t),t&&p(_),t&&p(T),H=!1,n(L)}}}
745
+ // (335:8) {#each wageringList as wagerInfo, index}
746
+ function Fn(t){let e,r,n,o,i,s,a,u,c,g,_,T,B,A,S,H,L,P,C,O,I=/*wagerInfo*/t[55].title+"";function x(){/*click_handler_2*/
747
+ return t[25](/*wagerInfo*/t[55])}return{c(){var h,f,p,b;e=d("div"),r=d("div"),n=d("div"),o=d("img"),s=y(),a=d("div"),u=m(I),c=y(),g=d("div"),_=d("general-icon-progress-bar"),L=y(),v(o,"alt","crown"),v(o,"part","Icon"),v(o,"class","MiniIcon"),l(o.src,i=In)||v(o,"src",i),v(n,"class","trophy"),v(a,"class","gameInfo"),v(a,"part","WageringBonusTitleRow Title"),v(r,"class","bonusName"),h=r,f="display",null==(p="table")?h.style.removeProperty(f):h.style.setProperty(f,p,b?"important":""),v(r,"part","WageringBonusTitleRow"),E(_,"currentstep",T=/*wagerInfo*/t[55].currentStep),E(_,"status",B=/*wagerInfo*/t[55].status),E(_,"triggerreset",A=/*wagerInfo*/t[55].triggerreset),E(_,"total",S=/*wagerInfo*/t[55].levelIncrement),E(_,"progressfractiondigit",/*progressfractiondigit*/t[0]),E(_,"showaspercent",H=/*wagerInfo*/"money"==t[55].type),E(_,"lang",""),v(g,"class","ProgressBar bottom"),v(g,"part","ProgressBar"),v(e,"class",P="WageringBonusInfo "+(/*currentWagerIdx*/t[2]!=/*index*/t[57]?/*hiddenDivClass*/t[8]:"shownDiv")),v(e,"part","WageringBonusInfo")},m(t,i){f(t,e,i),h(e,r),h(r,n),h(n,o),h(r,s),h(r,a),h(a,u),h(e,c),h(e,g),h(g,_),h(e,L),C||(O=b(a,"click",x),C=!0)},p(r,n){t=r,/*wageringList*/2&n[0]&&I!==(I=/*wagerInfo*/t[55].title+"")&&w(u,I),/*wageringList*/2&n[0]&&T!==(T=/*wagerInfo*/t[55].currentStep)&&E(_,"currentstep",T),/*wageringList*/2&n[0]&&B!==(B=/*wagerInfo*/t[55].status)&&E(_,"status",B),/*wageringList*/2&n[0]&&A!==(A=/*wagerInfo*/t[55].triggerreset)&&E(_,"triggerreset",A),/*wageringList*/2&n[0]&&S!==(S=/*wagerInfo*/t[55].levelIncrement)&&E(_,"total",S),/*progressfractiondigit*/1&n[0]&&E(_,"progressfractiondigit",/*progressfractiondigit*/t[0]),/*wageringList*/2&n[0]&&H!==(H=/*wagerInfo*/"money"==t[55].type)&&E(_,"showaspercent",H),/*currentWagerIdx, hiddenDivClass*/260&n[0]&&P!==(P="WageringBonusInfo "+(/*currentWagerIdx*/t[2]!=/*index*/t[57]?/*hiddenDivClass*/t[8]:"shownDiv"))&&v(e,"class",P)},d(t){t&&p(e),C=!1,O()}}}function Gn(e){let r,o,i,s,a,u,c,g,m,E,w,_,T,B,A;function S(t,e){/*wageringList*/
748
+ return t[1]&&/*wageringList*/t[1].length>0?$n:/*wageringList*/t[1]&&/*wageringList*/0==t[1].length?Un:void 0}let H=S(e),L=H&&H(e);return{c(){r=d("div"),o=d("div"),i=d("div"),i.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> \n <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',s=y(),L&&L.c(),u=y(),c=d("section"),g=d("div"),m=d("img"),w=y(),_=d("div"),_.innerHTML='<svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg> \n <svg width="6" height="10" viewBox="0 0 6 10" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.861997 5.75848L0 4.89648L4.30998 0.586501L5.17198 1.4485L1.7241 4.89638L5.17255 8.34484L4.31055 9.20683L0.862099 5.75838L0.861997 5.75848Z"></path></svg>',this.c=t,v(i,"class","hideButton"),v(i,"part","HideWidgetButton"),v(o,"part","SliderWrapper"),v(o,"class",a="SliderWrapper "+(/*isIconMode*/e[7]?"HiddenWidget":"ShowWidget")),v(m,"alt","crown"),v(m,"part","Icon"),v(m,"class","MiniIcon"),l(m.src,E=In)||v(m,"src",E),v(g,"class","svg"),v(g,"part","AnimatorIconWrapper"),v(_,"class","restoreButton"),v(_,"part","RestoreButton"),v(c,"id","animator"),v(c,"part","Animator"),v(c,"class",T="SliderIcon "+(/*isIconMode*/e[7]?"ShowWidget":"HiddenWidget")),v(r,"class","WageringBonusWrapper"),v(r,"part","WageringBonusWrapper")},m(t,n){f(t,r,n),h(r,o),h(o,i),h(o,s),L&&L.m(o,null)
749
+ /*div1_binding*/,e[27](o),h(r,u),h(r,c),h(c,g),h(g,m),h(c,w),h(c,_),
750
+ /*section_binding*/e[28](c),B||(A=[b(i,"click",/*click_handler*/e[21]),b(c,"click",/*click_handler_4*/e[29])],B=!0)},p(t,e){H===(H=S(t))&&L?L.p(t,e):(L&&L.d(1),L=H&&H(t),L&&(L.c(),L.m(o,null))),/*isIconMode*/128&e[0]&&a!==(a="SliderWrapper "+(/*isIconMode*/t[7]?"HiddenWidget":"ShowWidget"))&&v(o,"class",a),/*isIconMode*/128&e[0]&&T!==(T="SliderIcon "+(/*isIconMode*/t[7]?"ShowWidget":"HiddenWidget"))&&v(c,"class",T)},i:t,o:t,d(t){t&&p(r),L&&L.d()
751
+ /*div1_binding*/,e[27](null),
752
+ /*section_binding*/e[28](null),B=!1,n(A)}}}function kn(t,e,r){let n;c(t,Ln,(t=>r(9,n=t)));let o,i,s,a,l,{endpoint:u}=e,{session:h}=e,{lang:f="en"}=e,{numberofrecords:p="5"}=e,{looptime:d="5"}=e,{translationurl:g=""}=e,{progressfractiondigit:m=1}=e,y=window.navigator.userAgent,b=!0,v=!1,E=0,w=null,_=null,T=!1,A="Hidden";!function({withLocale:t,translations:e}){ln.subscribe((r=>{null==r&&(Mr.set(e),ln.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
753
753
  /*dictionary.set(translations);
754
754
  locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Cn).forEach((t=>{Pn(t,Cn[t])}));const H=()=>{var t;t=f,ln.set(t)},L=t=>{let e=0;for(let r of t.levels||[]){e+=r.maxRepeats||1}let r=t.wageringProgress;return{maxLevel:e,id:t.id,bonusWalletID:t.bonusWalletID,levelIncrement:r.currentLevelIncrement,gap:r.gap,currentStep:r.currentLevelIncrement-r.gap,title:t.name,description:t.description,type:t.wageringType,status:t.status,triggerreset:t.bonusWalletID}},P=()=>{"0"!=d&&(clearInterval(o),o=setInterval((()=>{if(i){
755
755
  //slideAuto();
756
- r(8,A="hiddenDiv");let t=E+1;if(t>=i.length)return void I();r(2,E=t),C(E)}}),1e3*Number(d)))},C=t=>{if(r(8,A="hiddenDiv"),t>0&&v||t<0&&b)return;P(),a.style.setProperty("--transformFromValue",t>0?"100%":"-100%"),a.style.setProperty("--transformToValue",t>0?"-100%":"100%");let e=E+t;e=e<0?0:e,e=e==i.length?i.length-1:e,r(2,E=e)},O=()=>{r(7,T=!1),r(2,E=0),P()},I=()=>{r(7,T=!0),clearInterval(o),window.postMessage({type:"onWagingBonusSliderHide"},window.location.href)},x=t=>{if(!t.data)return;let e=t.data;var n;if(e)try{let t=JSON.parse(e);if(!t||!t.items)return;"WageringProgressUpdate"===t.messageType&&(n=t.items,i.forEach((t=>{let e=n[t.bonusWalletID];e&&(t.status=e.status,0==e.levelIncrement&&(e.levelIncrement=1,e.gap),t.gap=e.gap,t.levelIncrement=e.levelIncrement,t.currentStep=t.levelIncrement-t.gap,t.triggerreset+=1)})),r(1,i))}catch(t){console.log(t)}},R=()=>{s&&(s.removeEventListener("message",x),s.close())},N=t=>{if(!u||!h)return;let e=new URL(`${t}/v1/bonus/granted`),n=new Headers;e.searchParams.append("language",f),e.searchParams.append("platform",(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(y)),e.searchParams.append("status","active"),e.searchParams.append("type","wagering"),e.searchParams.append("pagination",`limit=${p},offset=0`),h&&n.append("X-SessionID",h),fetch(e,{method:"GET",headers:n}).then((t=>t.json())).then((t=>{if(e.searchParams.toString(),r(1,i=[]),t.items&&(t=>{let e=[];for(let r of t.items)e.push(L(r));r(2,E=0),r(1,i=e)})(t),t.errorMessage&&console.error(t.errorMessage),!i||0==i.length)return r(1,i=[...i]),void R();(t=>{if((t=>{if(!t||"false"==t||"undefined"==t)return!0})(h))return;setTimeout((()=>{}),1e3),R();let e=`${u}/v1/bonus/wagering/updates?bonusWalletIDs=${t}`;s=new On.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":h}}),void 0!==s&&s.addEventListener("message",x)})(i.map((t=>t.bonusWalletID)).toString())}))},M=t=>{window.postMessage({type:"onWageringBonusClick",bonusWalletID:t},window.location.href)},D=t=>{parseInt(d)>0&&(t?clearInterval(o):P())},U=t=>{const e=(t=>t.touches||t.originalEvent.touches)(t)[0];w=e.clientX,_=e.clientY},$=t=>{if(!w||!_)return;let e=t.touches[0].clientX,r=t.touches[0].clientY,n=w-e,o=_-r;Math.abs(n)>Math.abs(o)&&C(n>0?1:-1),w=null,_=null},F=t=>{t.data&&t.data.type}//TODO
756
+ r(8,A="hiddenDiv");let t=E+1;if(t>=i.length)return void I();r(2,E=t),C(E)}}),1e3*Number(d)))},C=t=>{if(r(8,A="hiddenDiv"),t>0&&v||t<0&&b)return;P(),a.style.setProperty("--transformFromValue",t>0?"100%":"-100%"),a.style.setProperty("--transformToValue",t>0?"-100%":"100%");let e=E+t;e=e<0?0:e,e=e==i.length?i.length-1:e,r(2,E=e)},O=()=>{r(7,T=!1),r(2,E=0),P()},I=()=>{r(7,T=!0),clearInterval(o),window.postMessage({type:"onWagingBonusSliderHide"},window.location.href)},x=t=>{if(!t.data)return;let e=t.data;var n;if(e)try{let t=JSON.parse(e);if(!t||!t.items)return;"WageringProgressUpdate"===t.messageType&&(n=t.items,i.forEach((t=>{let e=n[t.bonusWalletID];e&&(t.status=e.status,0==e.levelIncrement&&(e.levelIncrement=1,e.gap),t.gap=e.gap,t.levelIncrement=e.levelIncrement,t.currentStep=t.levelIncrement-t.gap,t.triggerreset+=1)})),r(1,i))}catch(t){console.log(t)}},R=()=>{s&&(s.removeEventListener("message",x),s.close())},N=t=>{if(!u||!h)return;let e=new URL(`${t}/v1/bonus/granted`),n=new Headers;e.searchParams.append("language",f),e.searchParams.append("platform",(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(y)),e.searchParams.append("status","active"),e.searchParams.append("type","wagering"),e.searchParams.append("pagination",`limit=${p},offset=0`),h&&n.append("X-SessionID",h),fetch(e,{method:"GET",headers:n}).then((t=>t.json())).then((t=>{if(e.searchParams.toString(),r(1,i=[]),t.items&&(t=>{let e=[];for(let r of t.items)e.push(L(r));r(2,E=0),r(1,i=e)})(t),t.errorMessage&&console.error(t.errorMessage),!i||0==i.length)return r(1,i=[...i]),void R();(t=>{if((t=>{if(!t||"false"==t||"undefined"==t)return!0})(h))return;R();let e=`${u}/v1/bonus/wagering/updates?bonusWalletIDs=${t}`;s=new On.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":h}}),void 0!==s&&s.addEventListener("message",x)})(i.map((t=>t.bonusWalletID)).toString())}))},M=t=>{window.postMessage({type:"onWageringBonusClick",bonusWalletID:t},window.location.href)},D=t=>{parseInt(d)>0&&(t?clearInterval(o):P())},U=t=>{const e=(t=>t.touches||t.originalEvent.touches)(t)[0];w=e.clientX,_=e.clientY},$=t=>{if(!w||!_)return;let e=t.touches[0].clientX,r=t.touches[0].clientY,n=w-e,o=_-r;Math.abs(n)>Math.abs(o)&&C(n>0?1:-1),w=null,_=null},F=t=>{t.data&&t.data.type}//TODO
757
757
  //getData(endpoint, 0, tournamentsShownNumber);
758
- B((()=>(P(),window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F,!1),a.removeEventListener("touchstart",U),a.removeEventListener("touchmove",$)})));return t.$$set=t=>{"endpoint"in t&&r(15,u=t.endpoint),"session"in t&&r(16,h=t.session),"lang"in t&&r(17,f=t.lang),"numberofrecords"in t&&r(18,p=t.numberofrecords),"looptime"in t&&r(19,d=t.looptime),"translationurl"in t&&r(20,g=t.translationurl),"progressfractiondigit"in t&&r(0,m=t.progressfractiondigit)},t.$$.update=()=>{/*lang, endpoint, session*/229376&t.$$.dirty[0]&&f&&u&&h&&N(u),/*lang*/131072&t.$$.dirty[0]&&f&&H(),/*wagerSlider*/8&t.$$.dirty[0]&&a&&(a.addEventListener("touchstart",U,{passive:!0}),a.addEventListener("touchmove",$,{passive:!0})),/*translationurl*/1048576&t.$$.dirty[0]&&g&&fetch(g).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Pn(e,t[e])}))})).catch((t=>{console.log(t)})),/*currentWagerIdx*/4&t.$$.dirty[0]&&r(4,b=0==E),/*wageringList, currentWagerIdx*/6&t.$$.dirty[0]&&r(5,v=!i||E==i.length-1)},[m,i,E,a,b,v,l,T,A,n,C,O,I,M,D,u,h,f,p,d,g,()=>{I()},()=>C(-1),()=>{D(!0)},()=>{D(!1)},t=>M(t.bonusWalletID),()=>C(1),function(t){S[t?"unshift":"push"]((()=>{a=t,r(3,a)}))},function(t){S[t?"unshift":"push"]((()=>{l=t,r(6,l)}))},()=>O()]}!customElements.get("general-icon-progress-bar")&&customElements.define("general-icon-progress-bar",class extends F{constructor(t){super();const e=document.createElement("style");e.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}',this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Mn,Nn,i,{currentstep:5,total:6,showaspercent:7,lang:8,status:9,translationurl:10,progressfractiondigit:11,triggerreset:12},null),t&&(t.target&&f(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["currentstep","total","showaspercent","lang","status","translationurl","progressfractiondigit","triggerreset"]}get currentstep(){return this.$$.ctx[5]}set currentstep(t){this.$$set({currentstep:t}),R()}get total(){return this.$$.ctx[6]}set total(t){this.$$set({total:t}),R()}get showaspercent(){return this.$$.ctx[7]}set showaspercent(t){this.$$set({showaspercent:t}),R()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),R()}get status(){return this.$$.ctx[9]}set status(t){this.$$set({status:t}),R()}get translationurl(){return this.$$.ctx[10]}set translationurl(t){this.$$set({translationurl:t}),R()}get progressfractiondigit(){return this.$$.ctx[11]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),R()}get triggerreset(){return this.$$.ctx[12]}set triggerreset(t){this.$$set({triggerreset:t}),R()}});class jn extends F{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:100%;display:table-cell;vertical-align:middle;cursor:pointer;color:#FF8364}.LeftArrow.Disabled,.RightArrow.Disabled{color:darkgrey}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:100%;overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:#FFD700;margin:5px auto 3px}.SliderCenter .Hidden{opacity:0;transition:opacity;animation:0.2s}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .bonusName{height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .bonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:#FFFFFF;vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}.hideButton{transform:rotate(180deg);position:absolute;top:0px;right:2px;display:table;color:#FF8364;cursor:pointer}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}",this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},kn,Gn,i,{endpoint:15,session:16,lang:17,numberofrecords:18,looptime:19,translationurl:20,progressfractiondigit:0},null,[-1,-1]),t&&(t.target&&f(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["endpoint","session","lang","numberofrecords","looptime","translationurl","progressfractiondigit"]}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),R()}get session(){return this.$$.ctx[16]}set session(t){this.$$set({session:t}),R()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),R()}get numberofrecords(){return this.$$.ctx[18]}set numberofrecords(t){this.$$set({numberofrecords:t}),R()}get looptime(){return this.$$.ctx[19]}set looptime(t){this.$$set({looptime:t}),R()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),R()}get progressfractiondigit(){return this.$$.ctx[0]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),R()}}return!customElements.get("casino-wagering-bonus-slider-controller")&&customElements.define("casino-wagering-bonus-slider-controller",jn),jn}));
758
+ B((()=>(P(),window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F,!1),a.removeEventListener("touchstart",U),a.removeEventListener("touchmove",$)})));return t.$$set=t=>{"endpoint"in t&&r(15,u=t.endpoint),"session"in t&&r(16,h=t.session),"lang"in t&&r(17,f=t.lang),"numberofrecords"in t&&r(18,p=t.numberofrecords),"looptime"in t&&r(19,d=t.looptime),"translationurl"in t&&r(20,g=t.translationurl),"progressfractiondigit"in t&&r(0,m=t.progressfractiondigit)},t.$$.update=()=>{/*lang, endpoint, session*/229376&t.$$.dirty[0]&&f&&u&&h&&N(u),/*lang*/131072&t.$$.dirty[0]&&f&&H(),/*wagerSlider*/8&t.$$.dirty[0]&&a&&(a.addEventListener("touchstart",U,{passive:!0}),a.addEventListener("touchmove",$,{passive:!0})),/*translationurl*/1048576&t.$$.dirty[0]&&g&&fetch(g).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Pn(e,t[e])}))})).catch((t=>{console.log(t)})),/*currentWagerIdx*/4&t.$$.dirty[0]&&r(4,b=0==E),/*wageringList, currentWagerIdx*/6&t.$$.dirty[0]&&r(5,v=!i||E==i.length-1)},[m,i,E,a,b,v,l,T,A,n,C,O,I,M,D,u,h,f,p,d,g,()=>{I()},()=>C(-1),()=>{D(!0)},()=>{D(!1)},t=>M(t.bonusWalletID),()=>C(1),function(t){S[t?"unshift":"push"]((()=>{a=t,r(3,a)}))},function(t){S[t?"unshift":"push"]((()=>{l=t,r(6,l)}))},()=>O()]}!customElements.get("general-icon-progress-bar")&&customElements.define("general-icon-progress-bar",class extends F{constructor(t){super();const e=document.createElement("style");e.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}',this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Mn,Nn,i,{currentstep:5,total:6,showaspercent:7,lang:8,status:9,translationurl:10,progressfractiondigit:11,triggerreset:12},null),t&&(t.target&&f(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["currentstep","total","showaspercent","lang","status","translationurl","progressfractiondigit","triggerreset"]}get currentstep(){return this.$$.ctx[5]}set currentstep(t){this.$$set({currentstep:t}),R()}get total(){return this.$$.ctx[6]}set total(t){this.$$set({total:t}),R()}get showaspercent(){return this.$$.ctx[7]}set showaspercent(t){this.$$set({showaspercent:t}),R()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),R()}get status(){return this.$$.ctx[9]}set status(t){this.$$set({status:t}),R()}get translationurl(){return this.$$.ctx[10]}set translationurl(t){this.$$set({translationurl:t}),R()}get progressfractiondigit(){return this.$$.ctx[11]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),R()}get triggerreset(){return this.$$.ctx[12]}set triggerreset(t){this.$$set({triggerreset:t}),R()}});class jn extends F{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}div{vertical-align:middle}.WageringBonusWrapper,.SliderWrapper{overflow:hidden;width:100%;height:100%;min-width:150px;min-height:92px;max-width:188px;max-height:108px}.WageringBonusWrapper{position:relative}.SliderIcon{position:absolute;top:0px;right:0;cursor:pointer}.ShowWidget{transition:all 1s ease-in-out;transform:translateX(0);display:table;opacity:1}.HiddenWidget{transition:all 1s ease-in-out;transform:translateX(100%);opacity:0}.SliderWrapper{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;border:1px solid #FF8364;background:linear-gradient(90deg, rgba(40, 40, 40, 0.7) 0%, #847c7c 26.06%, #847c7c 72.19%, rgba(40, 40, 40, 0.7) 100%);border-radius:4px;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);display:table}.LeftArrow,.RightArrow{padding:3px;height:100%;display:table-cell;vertical-align:middle;cursor:pointer;color:#FF8364}.LeftArrow.Disabled,.RightArrow.Disabled{color:darkgrey}.LeftArrow{padding-right:0px}.RightArrow{padding-left:0px}.SliderCenter{height:100%;overflow:hidden}.SliderCenter .Title{font-style:normal;font-weight:700;font-size:12px;line-height:12px;text-align:center;color:#FFD700;margin:5px auto 3px}.SliderCenter .Hidden{opacity:0;transition:opacity;animation:0.2s}.SliderCenter .WagerList{height:calc(100% - 20px);display:block;position:relative}.SliderCenter .WagerList .hiddenDiv{transform:translateX(var(--transformToValue, 100%));animation:slideOut 1s;-moz-animation:slideOut 1s;-webkit-animation:slideOut 1s;-o-animation:slideOut 1s}.SliderCenter .WagerList .shownDiv{animation:slideIn 1.5s;-moz-animation:slideIn 1.5s;-webkit-animation:slideIn 1.5s;-o-animation:slideIn 1.5s}.SliderCenter .WagerList .WageringBonusInfo{overflow:hidden;display:block;height:100%;width:100%;position:absolute;top:0}.SliderCenter .WagerList .WageringBonusInfo .trophy{display:table-cell;vertical-align:middle;padding:3px}.SliderCenter .WagerList .WageringBonusInfo .trophy img.MiniIcon{width:18px;height:18px}.SliderCenter .WagerList .WageringBonusInfo .bonusName{height:calc(100% - 25px)}.SliderCenter .WagerList .WageringBonusInfo .bonusName .gameInfo{cursor:pointer;font-style:normal;font-weight:400;font-size:11px;line-height:13px;display:table-cell;align-items:center;color:#FFFFFF;vertical-align:middle;overflow:hidden}.SliderCenter .bottom{width:100%;height:20px;vertical-align:bottom;margin-bottom:5px}.svg{height:12px}.svg img.MiniIcon{width:14px;height:14px}.restoreButton{display:table}.hideButton{transform:rotate(180deg);position:absolute;top:0px;right:2px;display:table;color:#FF8364;cursor:pointer}.NoWageringMsg{text-align:center;display:flex;align-items:center;height:100%;font-size:0.8rem;padding:10px}@keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue))}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-moz-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 100%))}to{opacity:1;transform:translateX(0)}}@-moz-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-webkit-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}@-o-keyframes slideIn{from{opacity:0;transform:translateX(var(--transformFromValue, 0))}to{opacity:1;transform:translateX(0)}}@-o-keyframes slideOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(var(--transformToValue, 100%))}}",this.shadowRoot.appendChild(e),$(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},kn,Gn,i,{endpoint:15,session:16,lang:17,numberofrecords:18,looptime:19,translationurl:20,progressfractiondigit:0},null,[-1,-1]),t&&(t.target&&f(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["endpoint","session","lang","numberofrecords","looptime","translationurl","progressfractiondigit"]}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),R()}get session(){return this.$$.ctx[16]}set session(t){this.$$set({session:t}),R()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),R()}get numberofrecords(){return this.$$.ctx[18]}set numberofrecords(t){this.$$set({numberofrecords:t}),R()}get looptime(){return this.$$.ctx[19]}set looptime(t){this.$$set({looptime:t}),R()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),R()}get progressfractiondigit(){return this.$$.ctx[0]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),R()}}return!customElements.get("casino-wagering-bonus-slider-controller")&&customElements.define("casino-wagering-bonus-slider-controller",jn),jn}));
759
759
  //# sourceMappingURL=casino-wagering-bonus-slider-controller.js.map