@everymatrix/casino-wagering-bonus-slider-controller 1.99.57 → 1.99.59

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.
@@ -41,8 +41,7 @@ function Hn(e, t, r) {
41
41
  }
42
42
  }
43
43
  function An(e) {
44
- if (!e)
45
- return document;
44
+ if (!e) return document;
46
45
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
47
46
  return t && /** @type {ShadowRoot} */
48
47
  t.host ? (
@@ -110,8 +109,7 @@ function et(e) {
110
109
  rt = e;
111
110
  }
112
111
  function Cn() {
113
- if (!rt)
114
- throw new Error("Function called outside component initialization");
112
+ if (!rt) throw new Error("Function called outside component initialization");
115
113
  return rt;
116
114
  }
117
115
  function Pn(e) {
@@ -142,8 +140,7 @@ function oe() {
142
140
  } catch (t) {
143
141
  throw Me.length = 0, Pe = 0, t;
144
142
  }
145
- for (et(null), Me.length = 0, Pe = 0; tt.length; )
146
- tt.pop()();
143
+ for (et(null), Me.length = 0, Pe = 0; tt.length; ) tt.pop()();
147
144
  for (let t = 0; t < Re.length; t += 1) {
148
145
  const r = Re[t];
149
146
  Rt.has(r) || (Rt.add(r), r());
@@ -465,8 +462,7 @@ var Vt = function(e, t) {
465
462
  return Vt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
466
463
  r.__proto__ = n;
467
464
  } || function(r, n) {
468
- for (var i in n)
469
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
465
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
470
466
  }, Vt(e, t);
471
467
  };
472
468
  function ot(e, t) {
@@ -480,40 +476,34 @@ function ot(e, t) {
480
476
  }
481
477
  function zt(e) {
482
478
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
483
- if (r)
484
- return r.call(e);
485
- if (e && typeof e.length == "number")
486
- return {
487
- next: function() {
488
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
489
- }
490
- };
479
+ if (r) return r.call(e);
480
+ if (e && typeof e.length == "number") return {
481
+ next: function() {
482
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
483
+ }
484
+ };
491
485
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
492
486
  }
493
487
  function Zt(e, t) {
494
488
  var r = typeof Symbol == "function" && e[Symbol.iterator];
495
- if (!r)
496
- return e;
489
+ if (!r) return e;
497
490
  var n = r.call(e), i, o = [], s;
498
491
  try {
499
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
500
- o.push(i.value);
492
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
501
493
  } catch (a) {
502
494
  s = { error: a };
503
495
  } finally {
504
496
  try {
505
497
  i && !i.done && (r = n.return) && r.call(n);
506
498
  } finally {
507
- if (s)
508
- throw s.error;
499
+ if (s) throw s.error;
509
500
  }
510
501
  }
511
502
  return o;
512
503
  }
513
504
  function qt(e, t, r) {
514
- if (arguments.length === 2)
515
- for (var n = 0, i = t.length, o; n < i; n++)
516
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
505
+ if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
506
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
517
507
  return e.concat(o || t);
518
508
  }
519
509
  function _e(e) {
@@ -562,8 +552,7 @@ var Tt = function() {
562
552
  try {
563
553
  h && !h.done && (r = a.return) && r.call(a);
564
554
  } finally {
565
- if (t)
566
- throw t.error;
555
+ if (t) throw t.error;
567
556
  }
568
557
  }
569
558
  else
@@ -593,8 +582,7 @@ var Tt = function() {
593
582
  try {
594
583
  y && !y.done && (i = m.return) && i.call(m);
595
584
  } finally {
596
- if (n)
597
- throw n.error;
585
+ if (n) throw n.error;
598
586
  }
599
587
  }
600
588
  }
@@ -861,8 +849,7 @@ var ii = kr(function(e) {
861
849
  try {
862
850
  a && !a.done && (o = s.return) && o.call(s);
863
851
  } finally {
864
- if (i)
865
- throw i.error;
852
+ if (i) throw i.error;
866
853
  }
867
854
  }
868
855
  }
@@ -1108,8 +1095,7 @@ var Jt = function(e, t) {
1108
1095
  return Jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1109
1096
  r.__proto__ = n;
1110
1097
  } || function(r, n) {
1111
- for (var i in n)
1112
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1098
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1113
1099
  }, Jt(e, t);
1114
1100
  };
1115
1101
  function At(e, t) {
@@ -1125,25 +1111,22 @@ var le = function() {
1125
1111
  return le = Object.assign || function(t) {
1126
1112
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1127
1113
  r = arguments[n];
1128
- for (var o in r)
1129
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1114
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1130
1115
  }
1131
1116
  return t;
1132
1117
  }, le.apply(this, arguments);
1133
1118
  };
1134
1119
  function Ti(e, t) {
1135
1120
  var r = {};
1136
- for (var n in e)
1137
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1121
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1138
1122
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
1139
1123
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1140
1124
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1141
1125
  return r;
1142
1126
  }
1143
1127
  function Ft(e, t, r) {
1144
- if (r || arguments.length === 2)
1145
- for (var n = 0, i = t.length, o; n < i; n++)
1146
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1128
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
1129
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1147
1130
  return e.concat(o || Array.prototype.slice.call(t));
1148
1131
  }
1149
1132
  function Ut(e, t) {
@@ -1198,8 +1181,7 @@ var Li = function() {
1198
1181
  return Et = Object.assign || function(t) {
1199
1182
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1200
1183
  r = arguments[n];
1201
- for (var o in r)
1202
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1184
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1203
1185
  }
1204
1186
  return t;
1205
1187
  }, Et.apply(this, arguments);
@@ -1345,8 +1327,7 @@ var j = function() {
1345
1327
  return j = Object.assign || function(t) {
1346
1328
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1347
1329
  r = arguments[n];
1348
- for (var o in r)
1349
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1330
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1350
1331
  }
1351
1332
  return t;
1352
1333
  }, j.apply(this, arguments);
@@ -2988,8 +2969,7 @@ function Wi(e, t) {
2988
2969
  r += h;
2989
2970
  for (; s-- > 0; )
2990
2971
  r = l + r;
2991
- } else
2992
- i === "J" ? r += "H" : r += i;
2972
+ } else i === "J" ? r += "H" : r += i;
2993
2973
  }
2994
2974
  return r;
2995
2975
  }
@@ -3592,8 +3572,7 @@ function ir(e) {
3592
3572
  if (delete t.location, rn(t) || nn(t))
3593
3573
  for (var r in t.options)
3594
3574
  delete t.options[r].location, ir(t.options[r].value);
3595
- else
3596
- Kr(t) && sn(t.style) || (en(t) || tn(t)) && Kt(t.style) ? delete t.style.location : on(t) && ir(t.children);
3575
+ else Kr(t) && sn(t.style) || (en(t) || tn(t)) && Kt(t.style) ? delete t.style.location : on(t) && ir(t.children);
3597
3576
  });
3598
3577
  }
3599
3578
  function uo(e, t) {
@@ -4767,7 +4746,7 @@ if (typeof window < "u") {
4767
4746
  }
4768
4747
  };
4769
4748
  };
4770
- customElements.define = e(customElements.define), import("./GeneralIconProgressBar-Bwedgyas.js").then(({ default: t }) => {
4749
+ customElements.define = e(customElements.define), import("./GeneralIconProgressBar-CcZOS3Tq.js").then(({ default: t }) => {
4771
4750
  !customElements.get("general-icon-progress-bar") && customElements.define("general-icon-progress-bar", t.element);
4772
4751
  });
4773
4752
  }
@@ -4955,14 +4934,12 @@ function us(e) {
4955
4934
  /*wageringList*/
4956
4935
  P[2] && /*wageringList*/
4957
4936
  P[2].length > 0
4958
- )
4959
- return as;
4937
+ ) return as;
4960
4938
  if (
4961
4939
  /*wageringList*/
4962
4940
  P[2] && /*wageringList*/
4963
4941
  P[2].length == 0
4964
- )
4965
- return ss;
4942
+ ) return ss;
4966
4943
  }
4967
4944
  let w = H(e), C = w && w(e);
4968
4945
  return {
@@ -5073,8 +5050,7 @@ function ls(e, t, r) {
5073
5050
  }, Ve = (c) => {
5074
5051
  I.forEach((d) => {
5075
5052
  let x = c[d.bonusWalletID];
5076
- if (!x)
5077
- return;
5053
+ if (!x) return;
5078
5054
  const { maxIdObj: D, maxId: _ } = ts(x);
5079
5055
  ke[d.id] = _;
5080
5056
  let F = D;
@@ -5133,8 +5109,7 @@ function ls(e, t, r) {
5133
5109
  const d = Ye(c)[0];
5134
5110
  U = d.clientX, ae = d.clientY;
5135
5111
  }, de = (c) => {
5136
- if (!U || !ae)
5137
- return;
5112
+ if (!U || !ae) return;
5138
5113
  let d = c.touches[0].clientX, x = c.touches[0].clientY, D = U - d, _ = ae - x;
5139
5114
  Math.abs(D) > Math.abs(_) && (D > 0 ? z(1) : z(-1)), U = null, ae = null;
5140
5115
  }, J = () => {
@@ -1,4 +1,4 @@
1
- "use strict";var Dn=Object.defineProperty,Fn=Object.defineProperties;var Un=Object.getOwnPropertyDescriptors;var vr=Object.getOwnPropertySymbols;var $n=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable;var Ft=(e,t,r)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,br=(e,t)=>{for(var r in t||(t={}))$n.call(t,r)&&Ft(e,r,t[r]);if(vr)for(var r of vr(t))Gn.call(t,r)&&Ft(e,r,t[r]);return e},yr=(e,t)=>Fn(e,Un(t));var ne=(e,t,r)=>(Ft(e,typeof t!="symbol"?t+"":t,r),r);var _r=(e,t,r)=>new Promise((n,i)=>{var o=h=>{try{a(r.next(h))}catch(u){i(u)}},s=h=>{try{a(r.throw(h))}catch(u){i(u)}},a=h=>h.done?n(h.value):Promise.resolve(h.value).then(o,s);a((r=r.apply(e,t)).next())});function oe(){}function Zr(e){return e()}function Er(){return Object.create(null)}function Be(e){e.forEach(Zr)}function fr(e){return typeof e=="function"}function cr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function jn(e){return Object.keys(e).length===0}function qr(e,...t){if(e==null){for(const n of t)n(void 0);return oe}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Yr(e,t,r){e.$$.on_destroy.push(qr(t,r))}function $(e,t){e.appendChild(t)}function Qr(e,t,r){const n=Wn(e);if(!n.getElementById(t)){const i=W("style");i.id=t,i.textContent=r,kn(n,i)}}function Wn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function kn(e,t){return $(e.head||e,t),t.sheet}function he(e,t,r){e.insertBefore(t,r||null)}function ue(e){e.parentNode&&e.parentNode.removeChild(e)}function Xn(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function W(e){return document.createElement(e)}function mt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function st(e){return document.createTextNode(e)}function _e(){return st(" ")}function Ae(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function E(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function re(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:E(e,t,r)}function Vn(e){return Array.from(e.childNodes)}function Ht(e,t){t=""+t,e.data!==t&&(e.data=t)}function zn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let nt;function rt(e){nt=e}function Zn(){if(!nt)throw new Error("Function called outside component initialization");return nt}function qn(e){Zn().$$.on_mount.push(e)}const De=[],Fe=[];let Ue=[];const xr=[],Yn=Promise.resolve();let zt=!1;function Qn(){zt||(zt=!0,Yn.then(ie))}function Zt(e){Ue.push(e)}const Ut=new Set;let Me=0;function ie(){if(Me!==0)return;const e=nt;do{try{for(;Me<De.length;){const t=De[Me];Me++,rt(t),Jn(t.$$)}}catch(t){throw De.length=0,Me=0,t}for(rt(null),De.length=0,Me=0;Fe.length;)Fe.pop()();for(let t=0;t<Ue.length;t+=1){const r=Ue[t];Ut.has(r)||(Ut.add(r),r())}Ue.length=0}while(De.length);for(;xr.length;)xr.pop()();zt=!1,Ut.clear(),rt(e)}function Jn(e){if(e.fragment!==null){e.update(),Be(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Zt)}}function Kn(e){const t=[],r=[];Ue.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Ue=t}const ei=new Set;function ti(e,t){e&&e.i&&(ei.delete(e),e.i(t))}function wr(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ri(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Zt(()=>{const o=e.$$.on_mount.map(Zr).filter(fr);e.$$.on_destroy?e.$$.on_destroy.push(...o):Be(o),e.$$.on_mount=[]}),i.forEach(Zt)}function ni(e,t){const r=e.$$;r.fragment!==null&&(Kn(r.after_update),Be(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function ii(e,t){e.$$.dirty[0]===-1&&(De.push(e),Qn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Jr(e,t,r,n,i,o,s=null,a=[-1]){const h=nt;rt(e);const u=e.$$={fragment:null,ctx:[],props:o,update:oe,not_equal:i,bound:Er(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(h?h.$$.context:[])),callbacks:Er(),dirty:a,skip_bound:!1,root:t.target||h.$$.root};s&&s(u.root);let f=!1;if(u.ctx=r?r(e,t.props||{},(p,m,...y)=>{const H=y.length?y[0]:m;return u.ctx&&i(u.ctx[p],u.ctx[p]=H)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](H),f&&ii(e,p)),m}):[],u.update(),f=!0,Be(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const p=Vn(t.target);u.fragment&&u.fragment.l(p),p.forEach(ue)}else u.fragment&&u.fragment.c();t.intro&&ti(e.$$.fragment),ri(e,t.target,t.anchor),ie()}rt(h)}let Kr;typeof HTMLElement=="function"&&(Kr=class extends HTMLElement{constructor(t,r,n){super();ne(this,"$$ctor");ne(this,"$$s");ne(this,"$$c");ne(this,"$$cn",!1);ne(this,"$$d",{});ne(this,"$$r",!1);ne(this,"$$p_d",{});ne(this,"$$l",{});ne(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return _r(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=W("slot"),o!=="default"&&E(s,"name",o)},m:function(u,f){he(u,s,f)},d:function(u){u&&ue(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=zn(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=yt(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:yr(br({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=yt(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=yt(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function yt(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function en(e,t,r,n,i,o){let s=class extends Kr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(h){var u;h=yt(a,h,t),this.$$d[a]=h,(u=this.$$c)==null||u.$set({[a]:h})}})}),n.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var h;return(h=this.$$c)==null?void 0:h[a]}})}),e.element=s,s}class tn{constructor(){ne(this,"$$");ne(this,"$$set")}$destroy(){ni(this,1),this.$destroy=oe}$on(t,r){if(!fr(r))return oe;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!jn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const oi="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oi);/*! *****************************************************************************
1
+ "use strict";var Dn=Object.defineProperty,Fn=Object.defineProperties;var Un=Object.getOwnPropertyDescriptors;var vr=Object.getOwnPropertySymbols;var $n=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable;var Ft=(e,t,r)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,br=(e,t)=>{for(var r in t||(t={}))$n.call(t,r)&&Ft(e,r,t[r]);if(vr)for(var r of vr(t))Gn.call(t,r)&&Ft(e,r,t[r]);return e},yr=(e,t)=>Fn(e,Un(t));var ne=(e,t,r)=>Ft(e,typeof t!="symbol"?t+"":t,r);var _r=(e,t,r)=>new Promise((n,i)=>{var o=h=>{try{a(r.next(h))}catch(u){i(u)}},s=h=>{try{a(r.throw(h))}catch(u){i(u)}},a=h=>h.done?n(h.value):Promise.resolve(h.value).then(o,s);a((r=r.apply(e,t)).next())});function oe(){}function Zr(e){return e()}function Er(){return Object.create(null)}function Be(e){e.forEach(Zr)}function fr(e){return typeof e=="function"}function cr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function jn(e){return Object.keys(e).length===0}function qr(e,...t){if(e==null){for(const n of t)n(void 0);return oe}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Yr(e,t,r){e.$$.on_destroy.push(qr(t,r))}function $(e,t){e.appendChild(t)}function Qr(e,t,r){const n=Wn(e);if(!n.getElementById(t)){const i=W("style");i.id=t,i.textContent=r,kn(n,i)}}function Wn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function kn(e,t){return $(e.head||e,t),t.sheet}function he(e,t,r){e.insertBefore(t,r||null)}function ue(e){e.parentNode&&e.parentNode.removeChild(e)}function Xn(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function W(e){return document.createElement(e)}function mt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function st(e){return document.createTextNode(e)}function _e(){return st(" ")}function Ae(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function E(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function re(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:E(e,t,r)}function Vn(e){return Array.from(e.childNodes)}function Ht(e,t){t=""+t,e.data!==t&&(e.data=t)}function zn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let nt;function rt(e){nt=e}function Zn(){if(!nt)throw new Error("Function called outside component initialization");return nt}function qn(e){Zn().$$.on_mount.push(e)}const De=[],Fe=[];let Ue=[];const xr=[],Yn=Promise.resolve();let zt=!1;function Qn(){zt||(zt=!0,Yn.then(ie))}function Zt(e){Ue.push(e)}const Ut=new Set;let Me=0;function ie(){if(Me!==0)return;const e=nt;do{try{for(;Me<De.length;){const t=De[Me];Me++,rt(t),Jn(t.$$)}}catch(t){throw De.length=0,Me=0,t}for(rt(null),De.length=0,Me=0;Fe.length;)Fe.pop()();for(let t=0;t<Ue.length;t+=1){const r=Ue[t];Ut.has(r)||(Ut.add(r),r())}Ue.length=0}while(De.length);for(;xr.length;)xr.pop()();zt=!1,Ut.clear(),rt(e)}function Jn(e){if(e.fragment!==null){e.update(),Be(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Zt)}}function Kn(e){const t=[],r=[];Ue.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Ue=t}const ei=new Set;function ti(e,t){e&&e.i&&(ei.delete(e),e.i(t))}function wr(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ri(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Zt(()=>{const o=e.$$.on_mount.map(Zr).filter(fr);e.$$.on_destroy?e.$$.on_destroy.push(...o):Be(o),e.$$.on_mount=[]}),i.forEach(Zt)}function ni(e,t){const r=e.$$;r.fragment!==null&&(Kn(r.after_update),Be(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function ii(e,t){e.$$.dirty[0]===-1&&(De.push(e),Qn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Jr(e,t,r,n,i,o,s=null,a=[-1]){const h=nt;rt(e);const u=e.$$={fragment:null,ctx:[],props:o,update:oe,not_equal:i,bound:Er(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(h?h.$$.context:[])),callbacks:Er(),dirty:a,skip_bound:!1,root:t.target||h.$$.root};s&&s(u.root);let f=!1;if(u.ctx=r?r(e,t.props||{},(p,m,...y)=>{const H=y.length?y[0]:m;return u.ctx&&i(u.ctx[p],u.ctx[p]=H)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](H),f&&ii(e,p)),m}):[],u.update(),f=!0,Be(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const p=Vn(t.target);u.fragment&&u.fragment.l(p),p.forEach(ue)}else u.fragment&&u.fragment.c();t.intro&&ti(e.$$.fragment),ri(e,t.target,t.anchor),ie()}rt(h)}let Kr;typeof HTMLElement=="function"&&(Kr=class extends HTMLElement{constructor(t,r,n){super();ne(this,"$$ctor");ne(this,"$$s");ne(this,"$$c");ne(this,"$$cn",!1);ne(this,"$$d",{});ne(this,"$$r",!1);ne(this,"$$p_d",{});ne(this,"$$l",{});ne(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return _r(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=W("slot"),o!=="default"&&E(s,"name",o)},m:function(u,f){he(u,s,f)},d:function(u){u&&ue(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=zn(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=yt(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:yr(br({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=yt(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=yt(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function yt(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function en(e,t,r,n,i,o){let s=class extends Kr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(h){var u;h=yt(a,h,t),this.$$d[a]=h,(u=this.$$c)==null||u.$set({[a]:h})}})}),n.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var h;return(h=this.$$c)==null?void 0:h[a]}})}),e.element=s,s}class tn{constructor(){ne(this,"$$");ne(this,"$$set")}$destroy(){ni(this,1),this.$destroy=oe}$on(t,r){if(!fr(r))return oe;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!jn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const oi="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oi);/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -21,4 +21,4 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
21
21
  * https://github.com/Yaffle/EventSource/
22
22
  */(function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,o=r.XMLHttpRequest,s=r.XDomainRequest,a=r.ActiveXObject,h=r.EventSource,u=r.document,f=r.Promise,p=r.fetch,m=r.Response,y=r.TextDecoder,H=r.TextEncoder,w=r.AbortController;if(typeof window!="undefined"&&typeof u!="undefined"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(l){u.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(l){function v(){}return v.prototype=l,new v}),Date.now||(Date.now=function(){return new Date().getTime()}),w==null){var C=p;p=function(l,v){var b=v.signal;return C(l,{headers:v.headers,credentials:v.credentials,cache:v.cache}).then(function(g){var A=g.body.getReader();return b._reader=A,b._aborted&&b._reader.cancel(),{status:g.status,statusText:g.statusText,headers:g.headers,body:{getReader:function(){return A}}}})},w=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function P(){this.bitsNeeded=0,this.codePoint=0}P.prototype.decode=function(l){function v(x,D,_){if(_===1)return x>=128>>D&&x<<D<=2047;if(_===2)return x>=2048>>D&&x<<D<=55295||x>=57344>>D&&x<<D<=65535;if(_===3)return x>=65536>>D&&x<<D<=1114111;throw new Error}function b(x,D){if(x===6*1)return D>>6>15?3:D>31?2:1;if(x===6*2)return D>15?3:2;if(x===6*3)return 3;throw new Error}for(var g=65533,A="",S=this.bitsNeeded,O=this.codePoint,c=0;c<l.length;c+=1){var d=l[c];S!==0&&(d<128||d>191||!v(O<<6|d&63,S-6,b(S,O)))&&(S=0,O=g,A+=String.fromCharCode(O)),S===0?(d>=0&&d<=127?(S=0,O=d):d>=192&&d<=223?(S=6*1,O=d&31):d>=224&&d<=239?(S=6*2,O=d&15):d>=240&&d<=247?(S=6*3,O=d&7):(S=0,O=g),S!==0&&!v(O,S,b(S,O))&&(S=0,O=g)):(S-=6,O=O<<6|d&63),S===0&&(O<=65535?A+=String.fromCharCode(O):(A+=String.fromCharCode(55296+(O-65535-1>>10)),A+=String.fromCharCode(56320+(O-65535-1&1023))))}return this.bitsNeeded=S,this.codePoint=O,A};var I=function(){try{return new y().decode(new H().encode("test"),{stream:!0})==="test"}catch(l){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+l)}return!1};(y==null||H==null||!I())&&(y=P);var B=function(){};function L(l){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=B,this.onload=B,this.onerror=B,this.onreadystatechange=B,this._contentType="",this._xhr=l,this._sendTimeout=0,this._abort=B}L.prototype.open=function(l,v){this._abort(!0);var b=this,g=this._xhr,A=1,S=0;this._abort=function(_){b._sendTimeout!==0&&(i(b._sendTimeout),b._sendTimeout=0),(A===1||A===2||A===3)&&(A=4,g.onload=B,g.onerror=B,g.onabort=B,g.onprogress=B,g.onreadystatechange=B,g.abort(),S!==0&&(i(S),S=0),_||(b.readyState=4,b.onabort(null),b.onreadystatechange())),A=0};var O=function(){if(A===1){var _=0,F="",me=void 0;if("contentType"in g)_=200,F="OK",me=g.contentType;else try{_=g.status,F=g.statusText,me=g.getResponseHeader("Content-Type")}catch(Ke){_=0,F="",me=void 0}_!==0&&(A=2,b.readyState=2,b.status=_,b.statusText=F,b._contentType=me,b.onreadystatechange())}},c=function(){if(O(),A===2||A===3){A=3;var _="";try{_=g.responseText}catch(F){}b.readyState=3,b.responseText=_,b.onprogress()}},d=function(_,F){if((F==null||F.preventDefault==null)&&(F={preventDefault:B}),c(),A===1||A===2||A===3){if(A=4,S!==0&&(i(S),S=0),b.readyState=4,_==="load")b.onload(F);else if(_==="error")b.onerror(F);else if(_==="abort")b.onabort(F);else throw new TypeError;b.onreadystatechange()}},x=function(_){g!=null&&(g.readyState===4?(!("onload"in g)||!("onerror"in g)||!("onabort"in g))&&d(g.responseText===""?"error":"load",_):g.readyState===3?"onprogress"in g||c():g.readyState===2&&O())},D=function(){S=n(function(){D()},500),g.readyState===3&&c()};"onload"in g&&(g.onload=function(_){d("load",_)}),"onerror"in g&&(g.onerror=function(_){d("error",_)}),"onabort"in g&&(g.onabort=function(_){d("abort",_)}),"onprogress"in g&&(g.onprogress=c),"onreadystatechange"in g&&(g.onreadystatechange=function(_){x(_)}),("contentType"in g||!("ontimeout"in o.prototype))&&(v+=(v.indexOf("?")===-1?"?":"&")+"padding=true"),g.open(l,v,!0),"readyState"in g&&(S=n(function(){D()},0))},L.prototype.abort=function(){this._abort(!1)},L.prototype.getResponseHeader=function(l){return this._contentType},L.prototype.setRequestHeader=function(l,v){var b=this._xhr;"setRequestHeader"in b&&b.setRequestHeader(l,v)},L.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},L.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var l=this;l._sendTimeout=n(function(){l._sendTimeout=0,l.send()},4);return}var v=this._xhr;"withCredentials"in v&&(v.withCredentials=this.withCredentials);try{v.send(void 0)}catch(b){throw b}};function T(l){return l.replace(/[A-Z]/g,function(v){return String.fromCharCode(v.charCodeAt(0)+32)})}function M(l){for(var v=Object.create(null),b=l.split(`\r
23
23
  `),g=0;g<b.length;g+=1){var A=b[g],S=A.split(": "),O=S.shift(),c=S.join(": ");v[T(O)]=c}this._map=v}M.prototype.get=function(l){return this._map[T(l)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function U(){}U.prototype.open=function(l,v,b,g,A,S,O){l.open("GET",A);var c=0;l.onprogress=function(){var x=l.responseText,D=x.slice(c);c+=D.length,b(D)},l.onerror=function(x){x.preventDefault(),g(new Error("NetworkError"))},l.onload=function(){g(null)},l.onabort=function(){g(null)},l.onreadystatechange=function(){if(l.readyState===o.HEADERS_RECEIVED){var x=l.status,D=l.statusText,_=l.getResponseHeader("Content-Type"),F=l.getAllResponseHeaders();v(x,D,_,new M(F))}},l.withCredentials=S;for(var d in O)Object.prototype.hasOwnProperty.call(O,d)&&l.setRequestHeader(d,O[d]);return l.send(),l};function le(l){this._headers=l}le.prototype.get=function(l){return this._headers.get(l)};function Oe(){}Oe.prototype.open=function(l,v,b,g,A,S,O){var c=null,d=new w,x=d.signal,D=new y;return p(A,{headers:O,credentials:S?"include":"same-origin",signal:x,cache:"no-store"}).then(function(_){return c=_.body.getReader(),v(_.status,_.statusText,_.headers.get("Content-Type"),new le(_.headers)),new f(function(F,me){var Ke=function(){c.read().then(function(K){if(K.done)F(void 0);else{var Z=D.decode(K.value,{stream:!0});b(Z),Ke()}}).catch(function(K){me(K)})};Ke()})}).catch(function(_){if(_.name!=="AbortError")return _}).then(function(_){g(_)}),{abort:function(){c!=null&&c.cancel(),d.abort()}}};function ce(){this._listeners=Object.create(null)}function Ve(l){n(function(){throw l},0)}ce.prototype.dispatchEvent=function(l){l.target=this;var v=this._listeners[l.type];if(v!=null)for(var b=v.length,g=0;g<b;g+=1){var A=v[g];try{typeof A.handleEvent=="function"?A.handleEvent(l):A.call(this,l)}catch(S){Ve(S)}}},ce.prototype.addEventListener=function(l,v){l=String(l);var b=this._listeners,g=b[l];g==null&&(g=[],b[l]=g);for(var A=!1,S=0;S<g.length;S+=1)g[S]===v&&(A=!0);A||g.push(v)},ce.prototype.removeEventListener=function(l,v){l=String(l);var b=this._listeners,g=b[l];if(g!=null){for(var A=[],S=0;S<g.length;S+=1)g[S]!==v&&A.push(g[S]);A.length===0?delete b[l]:b[l]=A}};function we(l){this.type=l,this.target=void 0}function ut(l,v){we.call(this,l),this.data=v.data,this.lastEventId=v.lastEventId}ut.prototype=Object.create(we.prototype);function ze(l,v){we.call(this,l),this.status=v.status,this.statusText=v.statusText,this.headers=v.headers}ze.prototype=Object.create(we.prototype);function lt(l,v){we.call(this,l),this.error=v.error}lt.prototype=Object.create(we.prototype);var Se=-1,z=0,de=1,pe=2,Ze=-1,se=0,qe=1,Ye=2,ht=3,Pt=/^text\/event\-stream(;.*)?$/i,ft=1e3,Qe=18e6,Je=function(l,v){var b=l==null?v:parseInt(l,10);return b!==b&&(b=v),Ce(b)},Ce=function(l){return Math.min(Math.max(l,ft),Qe)},ge=function(l,v,b){try{typeof v=="function"&&v.call(l,b)}catch(g){Ve(g)}};function J(l,v){ce.call(this),v=v||{},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,Mt(this,l,v)}function ct(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var Nt=p!=null&&m!=null&&"body"in m.prototype;function Mt(l,v,b){v=String(v);var g=!!b.withCredentials,A=b.lastEventIdQueryParameterName||"lastEventId",S=Ce(1e3),O=Je(b.heartbeatTimeout,45e3),c="",d=S,x=!1,D=0,_=b.headers||{},F=b.Transport,me=Nt&&F==null?void 0:new L(F!=null?new F:ct()),Ke=F!=null&&typeof F!="string"?new F:me==null?new Oe:new U,K=void 0,Z=0,ae=Se,Pe="",pt="",ve="",gt="",q=se,Rt=0,He=0,Mn=function(X,k,ee,te){if(ae===z)if(X===200&&ee!=null&&Pt.test(ee)){ae=de,x=Date.now(),d=S,l.readyState=de;var Y=new ze("open",{status:X,statusText:k,headers:te});l.dispatchEvent(Y),ge(l,l.onopen,Y)}else{var V="";X!==200?(k&&(k=k.replace(/\s+/g," ")),V="EventSource's response has a status "+X+" "+k+" that is not 200. Aborting the connection."):V="EventSource's response has a Content-Type specifying an unsupported type: "+(ee==null?"-":ee.replace(/\s+/g," "))+". Aborting the connection.",Dt();var Y=new ze("error",{status:X,statusText:k,headers:te});l.dispatchEvent(Y),ge(l,l.onerror,Y),console.error(V)}},Rn=function(X){if(ae===de){for(var k=-1,ee=0;ee<X.length;ee+=1){var te=X.charCodeAt(ee);(te===10||te===13)&&(k=ee)}var Y=(k!==-1?gt:"")+X.slice(0,k+1);gt=(k===-1?gt:"")+X.slice(k+1),X!==""&&(x=Date.now(),D+=X.length);for(var V=0;V<Y.length;V+=1){var te=Y.charCodeAt(V);if(q===Ze&&te===10)q=se;else if(q===Ze&&(q=se),te===13||te===10){if(q!==se){q===qe&&(He=V+1);var be=Y.slice(Rt,He-1),ye=Y.slice(He+(He<V&&Y.charCodeAt(He)===32?1:0),V);be==="data"?(Pe+=`
24
- `,Pe+=ye):be==="id"?pt=ye:be==="event"?ve=ye:be==="retry"?(S=Je(ye,S),d=S):be==="heartbeatTimeout"&&(O=Je(ye,O),Z!==0&&(i(Z),Z=n(function(){et()},O)))}if(q===se){if(Pe!==""){c=pt,ve===""&&(ve="message");var Ne=new ut(ve,{data:Pe.slice(1),lastEventId:pt});if(l.dispatchEvent(Ne),ve==="open"?ge(l,l.onopen,Ne):ve==="message"?ge(l,l.onmessage,Ne):ve==="error"&&ge(l,l.onerror,Ne),ae===pe)return}Pe="",ve=""}q=te===13?Ze:se}else q===se&&(Rt=V,q=qe),q===qe?te===58&&(He=V+1,q=Ye):q===Ye&&(q=ht)}}},mr=function(X){if(ae===de||ae===z){ae=Se,Z!==0&&(i(Z),Z=0),Z=n(function(){et()},d),d=Ce(Math.min(S*16,d*2)),l.readyState=z;var k=new lt("error",{error:X});l.dispatchEvent(k),ge(l,l.onerror,k),X!=null&&console.error(X)}},Dt=function(){ae=pe,K!=null&&(K.abort(),K=void 0),Z!==0&&(i(Z),Z=0),l.readyState=pe},et=function(){if(Z=0,ae!==Se){if(!x&&K!=null)mr(new Error("No activity within "+O+" milliseconds. "+(ae===z?"No response received.":D+" chars received.")+" Reconnecting.")),K!=null&&(K.abort(),K=void 0);else{var X=Math.max((x||Date.now())+O-Date.now(),1);x=!1,Z=n(function(){et()},X)}return}x=!1,D=0,Z=n(function(){et()},O),ae=z,Pe="",ve="",pt=c,gt="",Rt=0,He=0,q=se;var k=v;if(v.slice(0,5)!=="data:"&&v.slice(0,5)!=="blob:"&&c!==""){var ee=v.indexOf("?");k=ee===-1?v:v.slice(0,ee+1)+v.slice(ee+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ye,Ne){return Ne===A?"":ye}),k+=(v.indexOf("?")===-1?"?":"&")+A+"="+encodeURIComponent(c)}var te=l.withCredentials,Y={};Y.Accept="text/event-stream";var V=l.headers;if(V!=null)for(var be in V)Object.prototype.hasOwnProperty.call(V,be)&&(Y[be]=V[be]);try{K=Ke.open(me,Mn,Rn,mr,k,te,Y)}catch(ye){throw Dt(),ye}};l.url=v,l.readyState=z,l.withCredentials=g,l.headers=_,l._close=Dt,et()}J.prototype=Object.create(ce.prototype),J.prototype.CONNECTING=z,J.prototype.OPEN=de,J.prototype.CLOSED=pe,J.prototype.close=function(){this._close()},J.CONNECTING=z,J.OPEN=de,J.CLOSED=pe,J.prototype.withCredentials=void 0;var dt=h;o!=null&&(h==null||!("withCredentials"in h.prototype))&&(dt=J),function(l){{var v=l(t);v!==void 0&&(e.exports=v)}}(function(l){l.EventSourcePolyfill=J,l.NativeEventSource=h,l.EventSource=dt})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ei:globalThis)})(hr,hr.exports);var hs=hr.exports;function fs({withLocale:e,translations:t}){xe.subscribe(r=>{r==null&&(Ie.set(t),xe.set(e))})}function kr(e,t){pr(e,t)}function cs(e){xe.set(e)}const Xr={en:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},tr:{wageringSlider:{title:"- Bahis Bonusu -",noWageringMsg:"Herhangi bir bahis bonusunuz bulunmamaktadır."}},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."}},"en-us":{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}}},ds=e=>{const t=window.BigInt;if(!e||e==null||e.length===0)return;let r=t(e[0].id);return{maxIdObj:e.reduce((i,o)=>{const s=t(o.id);return s>r?(r=s,o):i},e[0]),maxId:r.toString()}},ps=(e,t)=>JSON.stringify(e.map(r=>({bonusWalletID:r.id,progressID:t[r.id]||0}))),gs=(e,t)=>{let r=document.createElement("style");r.innerHTML=t,e.appendChild(r)},ms=(e,t)=>{let r=new URL(t),n=document.createElement("style");fetch(r.href).then(i=>i.text()).then(i=>{n.innerHTML=i,setTimeout(()=>{e.appendChild(n)},1)})};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./GeneralIconProgressBar-C7bWgUPp.cjs")).then(({default:t})=>{!customElements.get("general-icon-progress-bar")&&customElements.define("general-icon-progress-bar",t.element)})}const Pn="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.67757%202.5647L3.72412%20-1.25356e-07L5.77067%202.5647L3.72412%205.12939L1.67757%202.5647Z'%20fill='%23FF8B03'/%3e%3crect%20x='0.468506'%20y='6.1134'%20width='6.55827'%20height='0.936896'%20fill='%23FF8B03'/%3e%3cpath%20d='M7.49512%201.42889L0.4684%205.64492H7.02667L7.49512%201.42889Z'%20fill='%23FFB82E'/%3e%3cpath%20d='M0%201.42889L7.02672%205.64492H0.468448L0%201.42889Z'%20fill='%23FFD700'/%3e%3c/svg%3e";function vs(e){Qr(e,"svelte-l28bzx","*,*::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(--emw--color-black, #000000);color:var(--emw--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:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364))}.LeftArrow.Disabled,.RightArrow.Disabled{background:var(--emw--color-gray-300, #A9A8A8)}.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:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #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{display:table;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:var(--emw--casino-typography, var(--emw--color-white, #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:var(--emw--bonus-card-red, var(--emw--color-red, #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%))}}")}function Vr(e,t,r){const n=e.slice();return n[60]=t[r],n[62]=r,n}function bs(e){let t,r=e[10]("wageringSlider.noWageringMsg")+"",n;return{c(){t=W("div"),n=st(r),E(t,"class","NoWageringMsg")},m(i,o){he(i,t,o),$(t,n)},p(i,o){o[0]&1024&&r!==(r=i[10]("wageringSlider.noWageringMsg")+"")&&Ht(n,r)},d(i){i&&ue(t)}}}function ys(e){let t,r,n,i,o,s,a,h=e[10]("wageringSlider.title")+"",u,f,p,m,y,H,w,C,P,I,B=wr(e[2]),L=[];for(let T=0;T<B.length;T+=1)L[T]=zr(Vr(e,B,T));return{c(){t=W("div"),r=mt("svg"),n=mt("path"),o=_e(),s=W("div"),a=W("div"),u=st(h),f=_e(),p=W("div");for(let T=0;T<L.length;T+=1)L[T].c();m=_e(),y=W("div"),H=mt("svg"),w=mt("path"),E(n,"d","M3 7L1 4L3 1"),E(n,"stroke","currentColor"),E(n,"stroke-linecap","round"),E(n,"stroke-linejoin","round"),E(r,"width","6"),E(r,"height","14"),E(r,"viewBox","0 0 4 8"),E(r,"fill","none"),E(r,"xmlns","http://www.w3.org/2000/svg"),E(t,"class",i="LeftArrow "+(e[5]?"Disabled":"")),E(t,"role","button"),E(t,"tabindex","0"),E(a,"class","Title Top"),E(p,"class","WagerList"),E(s,"class","SliderCenter"),E(w,"d","M1 1L3 4L1 7"),E(w,"stroke","currentColor"),E(w,"stroke-linecap","round"),E(w,"stroke-linejoin","round"),E(H,"width","6"),E(H,"height","14"),E(H,"viewBox","0 0 4 8"),E(H,"fill","none"),E(H,"xmlns","http://www.w3.org/2000/svg"),E(y,"class",C="RightArrow "+(e[6]?"Disabled":"")),E(y,"role","button"),E(y,"tabindex","0")},m(T,M){he(T,t,M),$(t,r),$(r,n),he(T,o,M),he(T,s,M),$(s,a),$(a,u),$(s,f),$(s,p);for(let U=0;U<L.length;U+=1)L[U]&&L[U].m(p,null);he(T,m,M),he(T,y,M),$(y,H),$(H,w),P||(I=[Ae(t,"click",e[25]),Ae(t,"mouseenter",e[26]),Ae(t,"mouseleave",e[27]),Ae(y,"click",e[29])],P=!0)},p(T,M){if(M[0]&32&&i!==(i="LeftArrow "+(T[5]?"Disabled":""))&&E(t,"class",i),M[0]&1024&&h!==(h=T[10]("wageringSlider.title")+"")&&Ht(u,h),M[0]&16909){B=wr(T[2]);let U;for(U=0;U<B.length;U+=1){const le=Vr(T,B,U);L[U]?L[U].p(le,M):(L[U]=zr(le),L[U].c(),L[U].m(p,null))}for(;U<L.length;U+=1)L[U].d(1);L.length=B.length}M[0]&64&&C!==(C="RightArrow "+(T[6]?"Disabled":""))&&E(y,"class",C)},d(T){T&&(ue(t),ue(o),ue(s),ue(m),ue(y)),Xn(L,T),P=!1,Be(I)}}}function zr(e){let t,r,n,i,o,s=e[60].title+"",a,h,u,f,p,m,y,H,w,C,P,I,B;function L(){return e[28](e[60])}return{c(){t=W("div"),r=W("div"),n=W("div"),n.innerHTML=`<img alt="crown" class="MiniIcon" src="${Pn}"/>`,i=_e(),o=W("div"),a=st(s),h=_e(),u=W("div"),f=W("general-icon-progress-bar"),C=_e(),E(n,"class","trophy"),E(o,"class","gameInfo"),E(o,"role","button"),E(o,"tabindex","0"),E(r,"class","BonusName"),re(f,"currentstep",p=e[60].currentStep),re(f,"status",m=e[60].status),re(f,"triggerreset",y=e[60].triggerreset),re(f,"total",H=e[60].levelIncrement),re(f,"progressfractiondigit",e[0]),re(f,"showaspercent",w=e[60].type=="money"),re(f,"lang",""),E(u,"class","ProgressBar bottom"),E(t,"class",P="WageringBonusInfo "+(e[3]!=e[62]?e[9]:"shownDiv"))},m(T,M){he(T,t,M),$(t,r),$(r,n),$(r,i),$(r,o),$(o,a),$(t,h),$(t,u),$(u,f),$(t,C),I||(B=Ae(o,"click",L),I=!0)},p(T,M){e=T,M[0]&4&&s!==(s=e[60].title+"")&&Ht(a,s),M[0]&4&&p!==(p=e[60].currentStep)&&re(f,"currentstep",p),M[0]&4&&m!==(m=e[60].status)&&re(f,"status",m),M[0]&4&&y!==(y=e[60].triggerreset)&&re(f,"triggerreset",y),M[0]&4&&H!==(H=e[60].levelIncrement)&&re(f,"total",H),M[0]&1&&re(f,"progressfractiondigit",e[0]),M[0]&4&&w!==(w=e[60].type=="money")&&re(f,"showaspercent",w),M[0]&520&&P!==(P="WageringBonusInfo "+(e[3]!=e[62]?e[9]:"shownDiv"))&&E(t,"class",P)},d(T){T&&ue(t),I=!1,B()}}}function _s(e){let t,r,n,i,o,s,a,h,u,f,p,m,y;function H(P,I){if(P[2]&&P[2].length>0)return ys;if(P[2]&&P[2].length==0)return bs}let w=H(e),C=w&&w(e);return{c(){t=W("div"),r=W("div"),n=W("div"),n.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> <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>',i=_e(),C&&C.c(),s=_e(),a=W("section"),h=W("div"),h.innerHTML=`<img alt="crown" part="Icon" class="MiniIcon" src="${Pn}"/>`,u=_e(),f=W("div"),f.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> <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>',E(n,"class","hideButton"),E(n,"role","button"),E(n,"tabindex","0"),E(r,"class",o="SliderWrapper "+(e[8]?"HiddenWidget":"ShowWidget")),E(h,"class","svg"),E(h,"part","AnimatorIconWrapper"),E(f,"class","restoreButton"),E(f,"part","RestoreButton"),E(a,"id","animator"),E(a,"class",p="SliderIcon "+(e[8]?"ShowWidget":"HiddenWidget")),E(a,"role","button"),E(a,"tabindex","0"),E(t,"class","WageringBonusWrapper")},m(P,I){he(P,t,I),$(t,r),$(r,n),$(r,i),C&&C.m(r,null),e[30](r),$(t,s),$(t,a),$(a,h),$(a,u),$(a,f),e[31](a),e[33](t),m||(y=[Ae(n,"click",e[24]),Ae(a,"click",e[32])],m=!0)},p(P,I){w===(w=H(P))&&C?C.p(P,I):(C&&C.d(1),C=w&&w(P),C&&(C.c(),C.m(r,null))),I[0]&256&&o!==(o="SliderWrapper "+(P[8]?"HiddenWidget":"ShowWidget"))&&E(r,"class",o),I[0]&256&&p!==(p="SliderIcon "+(P[8]?"ShowWidget":"HiddenWidget"))&&E(a,"class",p)},i:oe,o:oe,d(P){P&&ue(t),C&&C.d(),e[30](null),e[31](null),e[33](null),m=!1,Be(y)}}}function Es(e,t,r){let n;Yr(e,Cn,c=>r(10,n=c));let{endpoint:i}=t,{session:o}=t,{lang:s="en"}=t,{numberofrecords:a="5"}=t,{looptime:h="5"}=t,{translationurl:u=""}=t,{progressfractiondigit:f="1"}=t,{clientstyling:p=""}=t,{clientstylingurl:m=""}=t,y,H=window.navigator.userAgent,w=!0,C=!1,P,I,B=0,L,T,M,U=null,le=null,Oe=!1,ce="Hidden",Ve={};fs({withLocale:"en",translations:{}});const we=()=>{fetch(u).then(d=>d.json()).then(d=>{Object.keys(d).forEach(x=>{kr(x,d[x])})}).catch(d=>{console.error(d)})};Object.keys(Xr).forEach(c=>{kr(c,Xr[c])});const ut=()=>{cs(s)},ze=c=>{let d=0;for(let _ of c.levels||[]){let F=_.maxRepeats||1;d+=F}let x=c.wageringProgress;return{maxLevel:d,id:c.id,bonusWalletID:c.bonusWalletID,levelIncrement:x.currentLevelIncrement,gap:x.gap,currentStep:x.currentLevelIncrement-x.gap,title:c.name,description:c.description,type:c.wageringType,status:c.status,triggerreset:c.bonusWalletID}},lt=c=>{let d=[];for(let x of c.items)d.push(ze(x));r(3,B=0),r(2,I=d)},Se=()=>{h!="0"&&(clearInterval(P),P=setInterval(()=>{if(I){r(9,ce="hiddenDiv");let c=B+1;if(c>=I.length){pe();return}r(3,B=c),z(B)}},Number(h)*1e3))},z=c=>{if(r(9,ce="hiddenDiv"),c>0&&C||c<0&&w)return;Se(),T.style.setProperty("--transformFromValue",c>0?"100%":"-100%"),T.style.setProperty("--transformToValue",c>0?"-100%":"100%");let d=B+c;d=d<0?0:d,d=d==I.length?I.length-1:d,r(3,B=d)},de=()=>{r(8,Oe=!1),r(3,B=0),Se()},pe=()=>{r(8,Oe=!0),clearInterval(P),window.postMessage({type:"onWagingBonusSliderHide"},window.location.href)},Ze=c=>{I.forEach(d=>{let x=c[d.bonusWalletID];if(!x)return;const{maxIdObj:D,maxId:_}=ds(x);Ve[d.id]=_;let F=D;d.status=F.status,F.levelIncrement==0&&(F.levelIncrement=1,F.gap==0),d.gap=F.gap,d.levelIncrement=F.levelIncrement,d.currentStep=d.levelIncrement-d.gap,d.triggerreset+=1}),r(2,I)},se=c=>{if(!c.data)return;let d=c.data;try{let x=JSON.parse(d);if(!x||!x.items)return;x.messageType==="WageringProgressUpdate"&&Ze(x.items)}catch(x){console.log(x)}},qe=c=>{if(!c||c=="false"||c=="undefined")return!0},Ye=()=>{L&&(L.removeEventListener("message",se),L.close())},ht=()=>{if(qe(o))return;Ye();let c=`${i}/v1/bonus/wagering/updates?walletFilter=${ps(I,Ve)}&XSessionId=${o}`;L=new hs.EventSourcePolyfill(c,{headers:{accept:"text/event-stream"}}),typeof L!="undefined"&&L.addEventListener("message",se),L.onerror=()=>ht()},Pt=c=>{if(!i||!o)return;let d=new URL(`${c}/v1/bonus/granted`),x=new Headers;d.searchParams.append("language",s),d.searchParams.append("platform",ls(H)),d.searchParams.append("status","active"),d.searchParams.append("type","wagering"),d.searchParams.append("pagination",`limit=${a},offset=0`),o&&x.append("X-SessionID",o),fetch(d,{method:"GET",headers:x}).then(_=>_.json()).then(_=>{if(d.searchParams.toString(),r(2,I=[]),_.items&&lt(_),_.errorMessage&&console.error(_.errorMessage),!I||I.length==0){r(2,I=[...I]),Ye();return}ht()})},ft=c=>{window.postMessage({type:"onWageringBonusClick",bonusWalletID:c},window.location.href)},Qe=c=>{parseInt(h)>0&&(c?clearInterval(P):Se())},Je=c=>c.touches||c.originalEvent.touches,Ce=c=>{const d=Je(c)[0];U=d.clientX,le=d.clientY},ge=c=>{if(!U||!le)return;let d=c.touches[0].clientX,x=c.touches[0].clientY,D=U-d,_=le-x;Math.abs(D)>Math.abs(_)&&(D>0?z(1):z(-1)),U=null,le=null},J=()=>{T.addEventListener("touchstart",Ce,{passive:!0}),T.addEventListener("touchmove",ge,{passive:!0})},ct=c=>{c.data&&c.data.type};qn(()=>(Se(),window.addEventListener("message",ct,!1),()=>{window.removeEventListener("message",ct,!1),T.removeEventListener("touchstart",Ce),T.removeEventListener("touchmove",ge)}));const Nt=()=>{pe()},Mt=()=>z(-1),dt=()=>{Qe(!0)},l=()=>{Qe(!1)},v=c=>ft(c.bonusWalletID),b=()=>z(1);function g(c){Fe[c?"unshift":"push"](()=>{T=c,r(4,T)})}function A(c){Fe[c?"unshift":"push"](()=>{M=c,r(7,M)})}const S=()=>de();function O(c){Fe[c?"unshift":"push"](()=>{y=c,r(1,y)})}return e.$$set=c=>{"endpoint"in c&&r(16,i=c.endpoint),"session"in c&&r(17,o=c.session),"lang"in c&&r(18,s=c.lang),"numberofrecords"in c&&r(19,a=c.numberofrecords),"looptime"in c&&r(20,h=c.looptime),"translationurl"in c&&r(21,u=c.translationurl),"progressfractiondigit"in c&&r(0,f=c.progressfractiondigit),"clientstyling"in c&&r(22,p=c.clientstyling),"clientstylingurl"in c&&r(23,m=c.clientstylingurl)},e.$$.update=()=>{e.$$.dirty[0]&4194306&&y&&p&&gs(y,p),e.$$.dirty[0]&8388610&&y&&m&&ms(y,m),e.$$.dirty[0]&458752&&s&&i&&o&&Pt(i),e.$$.dirty[0]&262144&&s&&ut(),e.$$.dirty[0]&16&&T&&J(),e.$$.dirty[0]&2097152&&u&&we(),e.$$.dirty[0]&8&&r(5,w=B==0),e.$$.dirty[0]&12&&r(6,C=I?B==I.length-1:!0)},[f,y,I,B,T,w,C,M,Oe,ce,n,z,de,pe,ft,Qe,i,o,s,a,h,u,p,m,Nt,Mt,dt,l,v,b,g,A,S,O]}class Nn extends tn{constructor(t){super(),Jr(this,t,Es,_s,cr,{endpoint:16,session:17,lang:18,numberofrecords:19,looptime:20,translationurl:21,progressfractiondigit:0,clientstyling:22,clientstylingurl:23},vs,[-1,-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),ie()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),ie()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),ie()}get numberofrecords(){return this.$$.ctx[19]}set numberofrecords(t){this.$$set({numberofrecords:t}),ie()}get looptime(){return this.$$.ctx[20]}set looptime(t){this.$$set({looptime:t}),ie()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),ie()}get progressfractiondigit(){return this.$$.ctx[0]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),ie()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(t){this.$$set({clientstyling:t}),ie()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),ie()}}en(Nn,{endpoint:{},session:{},lang:{},numberofrecords:{},looptime:{},translationurl:{},progressfractiondigit:{},clientstyling:{},clientstylingurl:{}},[],[],!0);const xs=Object.freeze(Object.defineProperty({__proto__:null,default:Nn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Ie;exports.$format=Cn;exports.$locale=xe;exports.CasinoWageringBonusSliderController_ce=xs;exports.SvelteComponent=tn;exports.addMessages=pr;exports.append=$;exports.append_styles=Qr;exports.attr=E;exports.binding_callbacks=Fe;exports.component_subscribe=Yr;exports.create_custom_element=en;exports.detach=ue;exports.element=W;exports.flush=ie;exports.init=Jr;exports.insert=he;exports.noop=oe;exports.safe_not_equal=cr;exports.set_data=Ht;exports.text=st;
24
+ `,Pe+=ye):be==="id"?pt=ye:be==="event"?ve=ye:be==="retry"?(S=Je(ye,S),d=S):be==="heartbeatTimeout"&&(O=Je(ye,O),Z!==0&&(i(Z),Z=n(function(){et()},O)))}if(q===se){if(Pe!==""){c=pt,ve===""&&(ve="message");var Ne=new ut(ve,{data:Pe.slice(1),lastEventId:pt});if(l.dispatchEvent(Ne),ve==="open"?ge(l,l.onopen,Ne):ve==="message"?ge(l,l.onmessage,Ne):ve==="error"&&ge(l,l.onerror,Ne),ae===pe)return}Pe="",ve=""}q=te===13?Ze:se}else q===se&&(Rt=V,q=qe),q===qe?te===58&&(He=V+1,q=Ye):q===Ye&&(q=ht)}}},mr=function(X){if(ae===de||ae===z){ae=Se,Z!==0&&(i(Z),Z=0),Z=n(function(){et()},d),d=Ce(Math.min(S*16,d*2)),l.readyState=z;var k=new lt("error",{error:X});l.dispatchEvent(k),ge(l,l.onerror,k),X!=null&&console.error(X)}},Dt=function(){ae=pe,K!=null&&(K.abort(),K=void 0),Z!==0&&(i(Z),Z=0),l.readyState=pe},et=function(){if(Z=0,ae!==Se){if(!x&&K!=null)mr(new Error("No activity within "+O+" milliseconds. "+(ae===z?"No response received.":D+" chars received.")+" Reconnecting.")),K!=null&&(K.abort(),K=void 0);else{var X=Math.max((x||Date.now())+O-Date.now(),1);x=!1,Z=n(function(){et()},X)}return}x=!1,D=0,Z=n(function(){et()},O),ae=z,Pe="",ve="",pt=c,gt="",Rt=0,He=0,q=se;var k=v;if(v.slice(0,5)!=="data:"&&v.slice(0,5)!=="blob:"&&c!==""){var ee=v.indexOf("?");k=ee===-1?v:v.slice(0,ee+1)+v.slice(ee+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ye,Ne){return Ne===A?"":ye}),k+=(v.indexOf("?")===-1?"?":"&")+A+"="+encodeURIComponent(c)}var te=l.withCredentials,Y={};Y.Accept="text/event-stream";var V=l.headers;if(V!=null)for(var be in V)Object.prototype.hasOwnProperty.call(V,be)&&(Y[be]=V[be]);try{K=Ke.open(me,Mn,Rn,mr,k,te,Y)}catch(ye){throw Dt(),ye}};l.url=v,l.readyState=z,l.withCredentials=g,l.headers=_,l._close=Dt,et()}J.prototype=Object.create(ce.prototype),J.prototype.CONNECTING=z,J.prototype.OPEN=de,J.prototype.CLOSED=pe,J.prototype.close=function(){this._close()},J.CONNECTING=z,J.OPEN=de,J.CLOSED=pe,J.prototype.withCredentials=void 0;var dt=h;o!=null&&(h==null||!("withCredentials"in h.prototype))&&(dt=J),function(l){{var v=l(t);v!==void 0&&(e.exports=v)}}(function(l){l.EventSourcePolyfill=J,l.NativeEventSource=h,l.EventSource=dt})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ei:globalThis)})(hr,hr.exports);var hs=hr.exports;function fs({withLocale:e,translations:t}){xe.subscribe(r=>{r==null&&(Ie.set(t),xe.set(e))})}function kr(e,t){pr(e,t)}function cs(e){xe.set(e)}const Xr={en:{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}},tr:{wageringSlider:{title:"- Bahis Bonusu -",noWageringMsg:"Herhangi bir bahis bonusunuz bulunmamaktadır."}},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."}},"en-us":{wageringSlider:{title:"- Wagering Bonus -",noWageringMsg:"You don't have any wagering bonus."}}},ds=e=>{const t=window.BigInt;if(!e||e==null||e.length===0)return;let r=t(e[0].id);return{maxIdObj:e.reduce((i,o)=>{const s=t(o.id);return s>r?(r=s,o):i},e[0]),maxId:r.toString()}},ps=(e,t)=>JSON.stringify(e.map(r=>({bonusWalletID:r.id,progressID:t[r.id]||0}))),gs=(e,t)=>{let r=document.createElement("style");r.innerHTML=t,e.appendChild(r)},ms=(e,t)=>{let r=new URL(t),n=document.createElement("style");fetch(r.href).then(i=>i.text()).then(i=>{n.innerHTML=i,setTimeout(()=>{e.appendChild(n)},1)})};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./GeneralIconProgressBar-DaqNP0o9.cjs")).then(({default:t})=>{!customElements.get("general-icon-progress-bar")&&customElements.define("general-icon-progress-bar",t.element)})}const Pn="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.67757%202.5647L3.72412%20-1.25356e-07L5.77067%202.5647L3.72412%205.12939L1.67757%202.5647Z'%20fill='%23FF8B03'/%3e%3crect%20x='0.468506'%20y='6.1134'%20width='6.55827'%20height='0.936896'%20fill='%23FF8B03'/%3e%3cpath%20d='M7.49512%201.42889L0.4684%205.64492H7.02667L7.49512%201.42889Z'%20fill='%23FFB82E'/%3e%3cpath%20d='M0%201.42889L7.02672%205.64492H0.468448L0%201.42889Z'%20fill='%23FFD700'/%3e%3c/svg%3e";function vs(e){Qr(e,"svelte-l28bzx","*,*::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(--emw--color-black, #000000);color:var(--emw--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:var(--emw--bonus-card-red, var(--emw--color-red, #FF8364))}.LeftArrow.Disabled,.RightArrow.Disabled{background:var(--emw--color-gray-300, #A9A8A8)}.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:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #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{display:table;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:var(--emw--casino-typography, var(--emw--color-white, #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:var(--emw--bonus-card-red, var(--emw--color-red, #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%))}}")}function Vr(e,t,r){const n=e.slice();return n[60]=t[r],n[62]=r,n}function bs(e){let t,r=e[10]("wageringSlider.noWageringMsg")+"",n;return{c(){t=W("div"),n=st(r),E(t,"class","NoWageringMsg")},m(i,o){he(i,t,o),$(t,n)},p(i,o){o[0]&1024&&r!==(r=i[10]("wageringSlider.noWageringMsg")+"")&&Ht(n,r)},d(i){i&&ue(t)}}}function ys(e){let t,r,n,i,o,s,a,h=e[10]("wageringSlider.title")+"",u,f,p,m,y,H,w,C,P,I,B=wr(e[2]),L=[];for(let T=0;T<B.length;T+=1)L[T]=zr(Vr(e,B,T));return{c(){t=W("div"),r=mt("svg"),n=mt("path"),o=_e(),s=W("div"),a=W("div"),u=st(h),f=_e(),p=W("div");for(let T=0;T<L.length;T+=1)L[T].c();m=_e(),y=W("div"),H=mt("svg"),w=mt("path"),E(n,"d","M3 7L1 4L3 1"),E(n,"stroke","currentColor"),E(n,"stroke-linecap","round"),E(n,"stroke-linejoin","round"),E(r,"width","6"),E(r,"height","14"),E(r,"viewBox","0 0 4 8"),E(r,"fill","none"),E(r,"xmlns","http://www.w3.org/2000/svg"),E(t,"class",i="LeftArrow "+(e[5]?"Disabled":"")),E(t,"role","button"),E(t,"tabindex","0"),E(a,"class","Title Top"),E(p,"class","WagerList"),E(s,"class","SliderCenter"),E(w,"d","M1 1L3 4L1 7"),E(w,"stroke","currentColor"),E(w,"stroke-linecap","round"),E(w,"stroke-linejoin","round"),E(H,"width","6"),E(H,"height","14"),E(H,"viewBox","0 0 4 8"),E(H,"fill","none"),E(H,"xmlns","http://www.w3.org/2000/svg"),E(y,"class",C="RightArrow "+(e[6]?"Disabled":"")),E(y,"role","button"),E(y,"tabindex","0")},m(T,M){he(T,t,M),$(t,r),$(r,n),he(T,o,M),he(T,s,M),$(s,a),$(a,u),$(s,f),$(s,p);for(let U=0;U<L.length;U+=1)L[U]&&L[U].m(p,null);he(T,m,M),he(T,y,M),$(y,H),$(H,w),P||(I=[Ae(t,"click",e[25]),Ae(t,"mouseenter",e[26]),Ae(t,"mouseleave",e[27]),Ae(y,"click",e[29])],P=!0)},p(T,M){if(M[0]&32&&i!==(i="LeftArrow "+(T[5]?"Disabled":""))&&E(t,"class",i),M[0]&1024&&h!==(h=T[10]("wageringSlider.title")+"")&&Ht(u,h),M[0]&16909){B=wr(T[2]);let U;for(U=0;U<B.length;U+=1){const le=Vr(T,B,U);L[U]?L[U].p(le,M):(L[U]=zr(le),L[U].c(),L[U].m(p,null))}for(;U<L.length;U+=1)L[U].d(1);L.length=B.length}M[0]&64&&C!==(C="RightArrow "+(T[6]?"Disabled":""))&&E(y,"class",C)},d(T){T&&(ue(t),ue(o),ue(s),ue(m),ue(y)),Xn(L,T),P=!1,Be(I)}}}function zr(e){let t,r,n,i,o,s=e[60].title+"",a,h,u,f,p,m,y,H,w,C,P,I,B;function L(){return e[28](e[60])}return{c(){t=W("div"),r=W("div"),n=W("div"),n.innerHTML=`<img alt="crown" class="MiniIcon" src="${Pn}"/>`,i=_e(),o=W("div"),a=st(s),h=_e(),u=W("div"),f=W("general-icon-progress-bar"),C=_e(),E(n,"class","trophy"),E(o,"class","gameInfo"),E(o,"role","button"),E(o,"tabindex","0"),E(r,"class","BonusName"),re(f,"currentstep",p=e[60].currentStep),re(f,"status",m=e[60].status),re(f,"triggerreset",y=e[60].triggerreset),re(f,"total",H=e[60].levelIncrement),re(f,"progressfractiondigit",e[0]),re(f,"showaspercent",w=e[60].type=="money"),re(f,"lang",""),E(u,"class","ProgressBar bottom"),E(t,"class",P="WageringBonusInfo "+(e[3]!=e[62]?e[9]:"shownDiv"))},m(T,M){he(T,t,M),$(t,r),$(r,n),$(r,i),$(r,o),$(o,a),$(t,h),$(t,u),$(u,f),$(t,C),I||(B=Ae(o,"click",L),I=!0)},p(T,M){e=T,M[0]&4&&s!==(s=e[60].title+"")&&Ht(a,s),M[0]&4&&p!==(p=e[60].currentStep)&&re(f,"currentstep",p),M[0]&4&&m!==(m=e[60].status)&&re(f,"status",m),M[0]&4&&y!==(y=e[60].triggerreset)&&re(f,"triggerreset",y),M[0]&4&&H!==(H=e[60].levelIncrement)&&re(f,"total",H),M[0]&1&&re(f,"progressfractiondigit",e[0]),M[0]&4&&w!==(w=e[60].type=="money")&&re(f,"showaspercent",w),M[0]&520&&P!==(P="WageringBonusInfo "+(e[3]!=e[62]?e[9]:"shownDiv"))&&E(t,"class",P)},d(T){T&&ue(t),I=!1,B()}}}function _s(e){let t,r,n,i,o,s,a,h,u,f,p,m,y;function H(P,I){if(P[2]&&P[2].length>0)return ys;if(P[2]&&P[2].length==0)return bs}let w=H(e),C=w&&w(e);return{c(){t=W("div"),r=W("div"),n=W("div"),n.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> <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>',i=_e(),C&&C.c(),s=_e(),a=W("section"),h=W("div"),h.innerHTML=`<img alt="crown" part="Icon" class="MiniIcon" src="${Pn}"/>`,u=_e(),f=W("div"),f.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> <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>',E(n,"class","hideButton"),E(n,"role","button"),E(n,"tabindex","0"),E(r,"class",o="SliderWrapper "+(e[8]?"HiddenWidget":"ShowWidget")),E(h,"class","svg"),E(h,"part","AnimatorIconWrapper"),E(f,"class","restoreButton"),E(f,"part","RestoreButton"),E(a,"id","animator"),E(a,"class",p="SliderIcon "+(e[8]?"ShowWidget":"HiddenWidget")),E(a,"role","button"),E(a,"tabindex","0"),E(t,"class","WageringBonusWrapper")},m(P,I){he(P,t,I),$(t,r),$(r,n),$(r,i),C&&C.m(r,null),e[30](r),$(t,s),$(t,a),$(a,h),$(a,u),$(a,f),e[31](a),e[33](t),m||(y=[Ae(n,"click",e[24]),Ae(a,"click",e[32])],m=!0)},p(P,I){w===(w=H(P))&&C?C.p(P,I):(C&&C.d(1),C=w&&w(P),C&&(C.c(),C.m(r,null))),I[0]&256&&o!==(o="SliderWrapper "+(P[8]?"HiddenWidget":"ShowWidget"))&&E(r,"class",o),I[0]&256&&p!==(p="SliderIcon "+(P[8]?"ShowWidget":"HiddenWidget"))&&E(a,"class",p)},i:oe,o:oe,d(P){P&&ue(t),C&&C.d(),e[30](null),e[31](null),e[33](null),m=!1,Be(y)}}}function Es(e,t,r){let n;Yr(e,Cn,c=>r(10,n=c));let{endpoint:i}=t,{session:o}=t,{lang:s="en"}=t,{numberofrecords:a="5"}=t,{looptime:h="5"}=t,{translationurl:u=""}=t,{progressfractiondigit:f="1"}=t,{clientstyling:p=""}=t,{clientstylingurl:m=""}=t,y,H=window.navigator.userAgent,w=!0,C=!1,P,I,B=0,L,T,M,U=null,le=null,Oe=!1,ce="Hidden",Ve={};fs({withLocale:"en",translations:{}});const we=()=>{fetch(u).then(d=>d.json()).then(d=>{Object.keys(d).forEach(x=>{kr(x,d[x])})}).catch(d=>{console.error(d)})};Object.keys(Xr).forEach(c=>{kr(c,Xr[c])});const ut=()=>{cs(s)},ze=c=>{let d=0;for(let _ of c.levels||[]){let F=_.maxRepeats||1;d+=F}let x=c.wageringProgress;return{maxLevel:d,id:c.id,bonusWalletID:c.bonusWalletID,levelIncrement:x.currentLevelIncrement,gap:x.gap,currentStep:x.currentLevelIncrement-x.gap,title:c.name,description:c.description,type:c.wageringType,status:c.status,triggerreset:c.bonusWalletID}},lt=c=>{let d=[];for(let x of c.items)d.push(ze(x));r(3,B=0),r(2,I=d)},Se=()=>{h!="0"&&(clearInterval(P),P=setInterval(()=>{if(I){r(9,ce="hiddenDiv");let c=B+1;if(c>=I.length){pe();return}r(3,B=c),z(B)}},Number(h)*1e3))},z=c=>{if(r(9,ce="hiddenDiv"),c>0&&C||c<0&&w)return;Se(),T.style.setProperty("--transformFromValue",c>0?"100%":"-100%"),T.style.setProperty("--transformToValue",c>0?"-100%":"100%");let d=B+c;d=d<0?0:d,d=d==I.length?I.length-1:d,r(3,B=d)},de=()=>{r(8,Oe=!1),r(3,B=0),Se()},pe=()=>{r(8,Oe=!0),clearInterval(P),window.postMessage({type:"onWagingBonusSliderHide"},window.location.href)},Ze=c=>{I.forEach(d=>{let x=c[d.bonusWalletID];if(!x)return;const{maxIdObj:D,maxId:_}=ds(x);Ve[d.id]=_;let F=D;d.status=F.status,F.levelIncrement==0&&(F.levelIncrement=1,F.gap==0),d.gap=F.gap,d.levelIncrement=F.levelIncrement,d.currentStep=d.levelIncrement-d.gap,d.triggerreset+=1}),r(2,I)},se=c=>{if(!c.data)return;let d=c.data;try{let x=JSON.parse(d);if(!x||!x.items)return;x.messageType==="WageringProgressUpdate"&&Ze(x.items)}catch(x){console.log(x)}},qe=c=>{if(!c||c=="false"||c=="undefined")return!0},Ye=()=>{L&&(L.removeEventListener("message",se),L.close())},ht=()=>{if(qe(o))return;Ye();let c=`${i}/v1/bonus/wagering/updates?walletFilter=${ps(I,Ve)}&XSessionId=${o}`;L=new hs.EventSourcePolyfill(c,{headers:{accept:"text/event-stream"}}),typeof L!="undefined"&&L.addEventListener("message",se),L.onerror=()=>ht()},Pt=c=>{if(!i||!o)return;let d=new URL(`${c}/v1/bonus/granted`),x=new Headers;d.searchParams.append("language",s),d.searchParams.append("platform",ls(H)),d.searchParams.append("status","active"),d.searchParams.append("type","wagering"),d.searchParams.append("pagination",`limit=${a},offset=0`),o&&x.append("X-SessionID",o),fetch(d,{method:"GET",headers:x}).then(_=>_.json()).then(_=>{if(d.searchParams.toString(),r(2,I=[]),_.items&&lt(_),_.errorMessage&&console.error(_.errorMessage),!I||I.length==0){r(2,I=[...I]),Ye();return}ht()})},ft=c=>{window.postMessage({type:"onWageringBonusClick",bonusWalletID:c},window.location.href)},Qe=c=>{parseInt(h)>0&&(c?clearInterval(P):Se())},Je=c=>c.touches||c.originalEvent.touches,Ce=c=>{const d=Je(c)[0];U=d.clientX,le=d.clientY},ge=c=>{if(!U||!le)return;let d=c.touches[0].clientX,x=c.touches[0].clientY,D=U-d,_=le-x;Math.abs(D)>Math.abs(_)&&(D>0?z(1):z(-1)),U=null,le=null},J=()=>{T.addEventListener("touchstart",Ce,{passive:!0}),T.addEventListener("touchmove",ge,{passive:!0})},ct=c=>{c.data&&c.data.type};qn(()=>(Se(),window.addEventListener("message",ct,!1),()=>{window.removeEventListener("message",ct,!1),T.removeEventListener("touchstart",Ce),T.removeEventListener("touchmove",ge)}));const Nt=()=>{pe()},Mt=()=>z(-1),dt=()=>{Qe(!0)},l=()=>{Qe(!1)},v=c=>ft(c.bonusWalletID),b=()=>z(1);function g(c){Fe[c?"unshift":"push"](()=>{T=c,r(4,T)})}function A(c){Fe[c?"unshift":"push"](()=>{M=c,r(7,M)})}const S=()=>de();function O(c){Fe[c?"unshift":"push"](()=>{y=c,r(1,y)})}return e.$$set=c=>{"endpoint"in c&&r(16,i=c.endpoint),"session"in c&&r(17,o=c.session),"lang"in c&&r(18,s=c.lang),"numberofrecords"in c&&r(19,a=c.numberofrecords),"looptime"in c&&r(20,h=c.looptime),"translationurl"in c&&r(21,u=c.translationurl),"progressfractiondigit"in c&&r(0,f=c.progressfractiondigit),"clientstyling"in c&&r(22,p=c.clientstyling),"clientstylingurl"in c&&r(23,m=c.clientstylingurl)},e.$$.update=()=>{e.$$.dirty[0]&4194306&&y&&p&&gs(y,p),e.$$.dirty[0]&8388610&&y&&m&&ms(y,m),e.$$.dirty[0]&458752&&s&&i&&o&&Pt(i),e.$$.dirty[0]&262144&&s&&ut(),e.$$.dirty[0]&16&&T&&J(),e.$$.dirty[0]&2097152&&u&&we(),e.$$.dirty[0]&8&&r(5,w=B==0),e.$$.dirty[0]&12&&r(6,C=I?B==I.length-1:!0)},[f,y,I,B,T,w,C,M,Oe,ce,n,z,de,pe,ft,Qe,i,o,s,a,h,u,p,m,Nt,Mt,dt,l,v,b,g,A,S,O]}class Nn extends tn{constructor(t){super(),Jr(this,t,Es,_s,cr,{endpoint:16,session:17,lang:18,numberofrecords:19,looptime:20,translationurl:21,progressfractiondigit:0,clientstyling:22,clientstylingurl:23},vs,[-1,-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),ie()}get session(){return this.$$.ctx[17]}set session(t){this.$$set({session:t}),ie()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),ie()}get numberofrecords(){return this.$$.ctx[19]}set numberofrecords(t){this.$$set({numberofrecords:t}),ie()}get looptime(){return this.$$.ctx[20]}set looptime(t){this.$$set({looptime:t}),ie()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),ie()}get progressfractiondigit(){return this.$$.ctx[0]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),ie()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(t){this.$$set({clientstyling:t}),ie()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),ie()}}en(Nn,{endpoint:{},session:{},lang:{},numberofrecords:{},looptime:{},translationurl:{},progressfractiondigit:{},clientstyling:{},clientstylingurl:{}},[],[],!0);const xs=Object.freeze(Object.defineProperty({__proto__:null,default:Nn},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Ie;exports.$format=Cn;exports.$locale=xe;exports.CasinoWageringBonusSliderController_ce=xs;exports.SvelteComponent=tn;exports.addMessages=pr;exports.append=$;exports.append_styles=Qr;exports.attr=E;exports.binding_callbacks=Fe;exports.component_subscribe=Yr;exports.create_custom_element=en;exports.detach=ue;exports.element=W;exports.flush=ie;exports.init=Jr;exports.insert=he;exports.noop=oe;exports.safe_not_equal=cr;exports.set_data=Ht;exports.text=st;
@@ -10,7 +10,7 @@ var Dt = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writ
10
10
  Mn.call(t, r) && Dt(e, r, t[r]);
11
11
  return e;
12
12
  }, vr = (e, t) => Cn(e, Pn(t));
13
- var ne = (e, t, r) => (Dt(e, typeof t != "symbol" ? t + "" : t, r), r);
13
+ var ne = (e, t, r) => Dt(e, typeof t != "symbol" ? t + "" : t, r);
14
14
  var br = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (h) => {
16
16
  try {
@@ -70,8 +70,7 @@ function Fn(e, t, r) {
70
70
  }
71
71
  }
72
72
  function Un(e) {
73
- if (!e)
74
- return document;
73
+ if (!e) return document;
75
74
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
76
75
  return t && /** @type {ShadowRoot} */
77
76
  t.host ? (
@@ -139,8 +138,7 @@ function tt(e) {
139
138
  nt = e;
140
139
  }
141
140
  function kn() {
142
- if (!nt)
143
- throw new Error("Function called outside component initialization");
141
+ if (!nt) throw new Error("Function called outside component initialization");
144
142
  return nt;
145
143
  }
146
144
  function Xn(e) {
@@ -171,8 +169,7 @@ function se() {
171
169
  } catch (t) {
172
170
  throw Re.length = 0, Ne = 0, t;
173
171
  }
174
- for (tt(null), Re.length = 0, Ne = 0; rt.length; )
175
- rt.pop()();
172
+ for (tt(null), Re.length = 0, Ne = 0; rt.length; ) rt.pop()();
176
173
  for (let t = 0; t < De.length; t += 1) {
177
174
  const r = De[t];
178
175
  Ft.has(r) || (Ft.add(r), r());
@@ -502,8 +499,7 @@ var Zt = function(e, t) {
502
499
  return Zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
503
500
  r.__proto__ = n;
504
501
  } || function(r, n) {
505
- for (var i in n)
506
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
502
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
507
503
  }, Zt(e, t);
508
504
  };
509
505
  function st(e, t) {
@@ -517,40 +513,34 @@ function st(e, t) {
517
513
  }
518
514
  function qt(e) {
519
515
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
520
- if (r)
521
- return r.call(e);
522
- if (e && typeof e.length == "number")
523
- return {
524
- next: function() {
525
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
526
- }
527
- };
516
+ if (r) return r.call(e);
517
+ if (e && typeof e.length == "number") return {
518
+ next: function() {
519
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
520
+ }
521
+ };
528
522
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
529
523
  }
530
524
  function Yt(e, t) {
531
525
  var r = typeof Symbol == "function" && e[Symbol.iterator];
532
- if (!r)
533
- return e;
526
+ if (!r) return e;
534
527
  var n = r.call(e), i, o = [], s;
535
528
  try {
536
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
537
- o.push(i.value);
529
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
538
530
  } catch (a) {
539
531
  s = { error: a };
540
532
  } finally {
541
533
  try {
542
534
  i && !i.done && (r = n.return) && r.call(n);
543
535
  } finally {
544
- if (s)
545
- throw s.error;
536
+ if (s) throw s.error;
546
537
  }
547
538
  }
548
539
  return o;
549
540
  }
550
541
  function Qt(e, t, r) {
551
- if (arguments.length === 2)
552
- for (var n = 0, i = t.length, o; n < i; n++)
553
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
542
+ if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
543
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
554
544
  return e.concat(o || t);
555
545
  }
556
546
  function Ee(e) {
@@ -599,8 +589,7 @@ var Ht = function() {
599
589
  try {
600
590
  h && !h.done && (r = a.return) && r.call(a);
601
591
  } finally {
602
- if (t)
603
- throw t.error;
592
+ if (t) throw t.error;
604
593
  }
605
594
  }
606
595
  else
@@ -630,8 +619,7 @@ var Ht = function() {
630
619
  try {
631
620
  y && !y.done && (i = m.return) && i.call(m);
632
621
  } finally {
633
- if (n)
634
- throw n.error;
622
+ if (n) throw n.error;
635
623
  }
636
624
  }
637
625
  }
@@ -898,8 +886,7 @@ var mi = Yr(function(e) {
898
886
  try {
899
887
  a && !a.done && (o = s.return) && o.call(s);
900
888
  } finally {
901
- if (i)
902
- throw i.error;
889
+ if (i) throw i.error;
903
890
  }
904
891
  }
905
892
  }
@@ -1145,8 +1132,7 @@ var er = function(e, t) {
1145
1132
  return er = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1146
1133
  r.__proto__ = n;
1147
1134
  } || function(r, n) {
1148
- for (var i in n)
1149
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1135
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1150
1136
  }, er(e, t);
1151
1137
  };
1152
1138
  function Bt(e, t) {
@@ -1162,25 +1148,22 @@ var he = function() {
1162
1148
  return he = Object.assign || function(t) {
1163
1149
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1164
1150
  r = arguments[n];
1165
- for (var o in r)
1166
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1151
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1167
1152
  }
1168
1153
  return t;
1169
1154
  }, he.apply(this, arguments);
1170
1155
  };
1171
1156
  function Di(e, t) {
1172
1157
  var r = {};
1173
- for (var n in e)
1174
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1158
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1175
1159
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
1176
1160
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1177
1161
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1178
1162
  return r;
1179
1163
  }
1180
1164
  function $t(e, t, r) {
1181
- if (r || arguments.length === 2)
1182
- for (var n = 0, i = t.length, o; n < i; n++)
1183
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1165
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
1166
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1184
1167
  return e.concat(o || Array.prototype.slice.call(t));
1185
1168
  }
1186
1169
  function Gt(e, t) {
@@ -1235,8 +1218,7 @@ var ji = function() {
1235
1218
  return xt = Object.assign || function(t) {
1236
1219
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1237
1220
  r = arguments[n];
1238
- for (var o in r)
1239
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1221
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1240
1222
  }
1241
1223
  return t;
1242
1224
  }, xt.apply(this, arguments);
@@ -1382,8 +1364,7 @@ var j = function() {
1382
1364
  return j = Object.assign || function(t) {
1383
1365
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1384
1366
  r = arguments[n];
1385
- for (var o in r)
1386
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1367
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1387
1368
  }
1388
1369
  return t;
1389
1370
  }, j.apply(this, arguments);
@@ -3025,8 +3006,7 @@ function to(e, t) {
3025
3006
  r += h;
3026
3007
  for (; s-- > 0; )
3027
3008
  r = u + r;
3028
- } else
3029
- i === "J" ? r += "H" : r += i;
3009
+ } else i === "J" ? r += "H" : r += i;
3030
3010
  }
3031
3011
  return r;
3032
3012
  }
@@ -3629,8 +3609,7 @@ function sr(e) {
3629
3609
  if (delete t.location, ln(t) || hn(t))
3630
3610
  for (var r in t.options)
3631
3611
  delete t.options[r].location, sr(t.options[r].value);
3632
- else
3633
- sn(t) && cn(t.style) || (an(t) || un(t)) && tr(t.style) ? delete t.style.location : fn(t) && sr(t.children);
3612
+ else sn(t) && cn(t.style) || (an(t) || un(t)) && tr(t.style) ? delete t.style.location : fn(t) && sr(t.children);
3634
3613
  });
3635
3614
  }
3636
3615
  function Eo(e, t) {
@@ -4804,7 +4783,7 @@ if (typeof window != "undefined") {
4804
4783
  }
4805
4784
  };
4806
4785
  };
4807
- customElements.define = e(customElements.define), import("./GeneralIconProgressBar-Bbqg9dC8.js").then(({ default: t }) => {
4786
+ customElements.define = e(customElements.define), import("./GeneralIconProgressBar-Cl4KLj3h.js").then(({ default: t }) => {
4808
4787
  !customElements.get("general-icon-progress-bar") && customElements.define("general-icon-progress-bar", t.element);
4809
4788
  });
4810
4789
  }
@@ -4992,14 +4971,12 @@ function _s(e) {
4992
4971
  /*wageringList*/
4993
4972
  P[2] && /*wageringList*/
4994
4973
  P[2].length > 0
4995
- )
4996
- return ys;
4974
+ ) return ys;
4997
4975
  if (
4998
4976
  /*wageringList*/
4999
4977
  P[2] && /*wageringList*/
5000
4978
  P[2].length == 0
5001
- )
5002
- return bs;
4979
+ ) return bs;
5003
4980
  }
5004
4981
  let w = H(e), C = w && w(e);
5005
4982
  return {
@@ -5110,8 +5087,7 @@ function Es(e, t, r) {
5110
5087
  }, ze = (c) => {
5111
5088
  I.forEach((d) => {
5112
5089
  let x = c[d.bonusWalletID];
5113
- if (!x)
5114
- return;
5090
+ if (!x) return;
5115
5091
  const { maxIdObj: D, maxId: _ } = ds(x);
5116
5092
  Xe[d.id] = _;
5117
5093
  let F = D;
@@ -5170,8 +5146,7 @@ function Es(e, t, r) {
5170
5146
  const d = Qe(c)[0];
5171
5147
  U = d.clientX, ue = d.clientY;
5172
5148
  }, pe = (c) => {
5173
- if (!U || !ue)
5174
- return;
5149
+ if (!U || !ue) return;
5175
5150
  let d = c.touches[0].clientX, x = c.touches[0].clientY, D = U - d, _ = ue - x;
5176
5151
  Math.abs(D) > Math.abs(_) && (D > 0 ? z(1) : z(-1)), U = null, ue = null;
5177
5152
  }, J = () => {
@@ -1,4 +1,4 @@
1
- import { $ as k, a as M, b as V, S as q, i as G, f as g, s as U, c as D, d as J, n as O, e as K, g as Q, h, j as W, k as H, l as T, t as X, m as Y, o as v, p as Z } from "./CasinoWageringBonusSliderController-AK_U0zNx.js";
1
+ import { $ as k, a as M, b as V, S as q, i as G, f as g, s as U, c as D, d as J, n as O, e as K, g as Q, h, j as W, k as H, l as T, t as X, m as Y, o as v, p as Z } from "./CasinoWageringBonusSliderController-BLzMbBgc.js";
2
2
  function $({ withLocale: r, translations: t }) {
3
3
  k.subscribe((s) => {
4
4
  s == null && (M.set(t), k.set(r));
@@ -1,4 +1,4 @@
1
- import { $ as k, a as M, b as V, S as q, i as G, s as U, f as g, c as D, n as O, d as J, e as K, g as h, h as Q, j as H, k as T, t as W, l as X, m as v, o as Y, p as Z } from "./CasinoWageringBonusSliderController-DAoW2Pf9.js";
1
+ import { $ as k, a as M, b as V, S as q, i as G, s as U, f as g, c as D, n as O, d as J, e as K, g as h, h as Q, j as H, k as T, t as W, l as X, m as v, o as Y, p as Z } from "./CasinoWageringBonusSliderController-vhWln9bk.js";
2
2
  function $({ withLocale: r, translations: t }) {
3
3
  k.subscribe((s) => {
4
4
  s == null && (M.set(t), k.set(r));
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoWageringBonusSliderController-DNqreYrK.cjs");function L({withLocale:s,translations:e}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(e),t.$locale.set(s))})}function H(s,e){t.addMessages(s,e)}function R(s){t.$locale.set(s)}const k={en:{bets:"bets"},tr:{bets:"bahisler"},es:{bets:"apuestas"},el:{bets:"bets"},hr:{bets:"ulozi"},"pt-br":{bets:"apostas"},"es-mx":{bets:"apuestas"},"en-us":{bets:"bets"}};function j(s){t.append_styles(s,"svelte-6dosur",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--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}')}function I(s){let e,n,l,g,i;return{c(){e=t.element("div"),n=t.element("div"),l=t.element("span"),g=t.text(s[3]),t.attr(l,"part","progressText"),t.attr(n,"class",i="stepBar "+s[4]),t.attr(n,"part","stepBar"),t.attr(e,"class","general-icon-progress-bar"),t.attr(e,"part","totalBar")},m(a,o){t.insert(a,e,o),t.append(e,n),t.append(n,l),t.append(l,g),s[13](l),s[14](n),s[15](e)},p(a,[o]){o&8&&t.set_data(g,a[3]),o&16&&i!==(i="stepBar "+a[4])&&t.attr(n,"class",i)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s[13](null),s[14](null),s[15](null)}}}function M(s,e,n){let l;t.component_subscribe(s,t.$format,r=>n(20,l=r));let{currentstep:g=0}=e,{total:i=1}=e,{showaspercent:a}=e,{lang:o="en"}=e,{status:d}=e,{translationurl:p=""}=e,{progressfractiondigit:m=1}=e,{triggerreset:y}=e,h,f,c,b,_,x,w,B="0px",T="active";L({withLocale:"en",translations:{}});const F=()=>{fetch(p).then(u=>u.json()).then(u=>{Object.keys(u).forEach(v=>{H(v,u[v])})}).catch(u=>{console.log(u)})};Object.keys(k).forEach(r=>{H(r,k[r])});const E=()=>{R(o)},O=()=>{let r=(g/i*100).toFixed(m);setTimeout(()=>{a||a==="true"?n(3,b=`${r}%`):n(3,b=`${g}/${i} ${l("bets")}`)},b?573:0),r==0||r==100?(x="0px",w="0px",B=r==100?"3px":"0px"):(x=`${h.offsetHeight}px`,_=x,w=`${h.offsetHeight/3}px`,B="0px"),f.style.setProperty("--parentElementHeight",_),c.style.setProperty("--currentStep",r+"%"),c.style.setProperty("--triangleHeight",x),c.style.setProperty("--halfOfTriangleHeight",w),c.style.setProperty("--stepBarBorderRadius",B)},P=()=>{n(4,T=d=="active"?"":"inactive")};function C(r){t.binding_callbacks[r?"unshift":"push"](()=>{f=r,n(1,f)})}function z(r){t.binding_callbacks[r?"unshift":"push"](()=>{c=r,n(2,c)})}function A(r){t.binding_callbacks[r?"unshift":"push"](()=>{h=r,n(0,h)})}return s.$$set=r=>{"currentstep"in r&&n(5,g=r.currentstep),"total"in r&&n(6,i=r.total),"showaspercent"in r&&n(7,a=r.showaspercent),"lang"in r&&n(8,o=r.lang),"status"in r&&n(9,d=r.status),"translationurl"in r&&n(10,p=r.translationurl),"progressfractiondigit"in r&&n(11,m=r.progressfractiondigit),"triggerreset"in r&&n(12,y=r.triggerreset)},s.$$.update=()=>{s.$$.dirty&4160&&y&&i&&setTimeout(()=>{O()}),s.$$.dirty&256&&o&&E(),s.$$.dirty&512&&d&&P(),s.$$.dirty&1024&&p&&F()},[h,f,c,b,T,g,i,a,o,d,p,m,y,C,z,A]}class S extends t.SvelteComponent{constructor(e){super(),t.init(this,e,M,I,t.safe_not_equal,{currentstep:5,total:6,showaspercent:7,lang:8,status:9,translationurl:10,progressfractiondigit:11,triggerreset:12},j)}get currentstep(){return this.$$.ctx[5]}set currentstep(e){this.$$set({currentstep:e}),t.flush()}get total(){return this.$$.ctx[6]}set total(e){this.$$set({total:e}),t.flush()}get showaspercent(){return this.$$.ctx[7]}set showaspercent(e){this.$$set({showaspercent:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get status(){return this.$$.ctx[9]}set status(e){this.$$set({status:e}),t.flush()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get progressfractiondigit(){return this.$$.ctx[11]}set progressfractiondigit(e){this.$$set({progressfractiondigit:e}),t.flush()}get triggerreset(){return this.$$.ctx[12]}set triggerreset(e){this.$$set({triggerreset:e}),t.flush()}}t.create_custom_element(S,{currentstep:{},total:{},showaspercent:{},lang:{},status:{},translationurl:{},progressfractiondigit:{},triggerreset:{}},[],[],!0);exports.default=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoWageringBonusSliderController-J-U_5syu.cjs");function L({withLocale:s,translations:e}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(e),t.$locale.set(s))})}function H(s,e){t.addMessages(s,e)}function R(s){t.$locale.set(s)}const k={en:{bets:"bets"},tr:{bets:"bahisler"},es:{bets:"apuestas"},el:{bets:"bets"},hr:{bets:"ulozi"},"pt-br":{bets:"apostas"},"es-mx":{bets:"apuestas"},"en-us":{bets:"bets"}};function j(s){t.append_styles(s,"svelte-6dosur",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--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}')}function I(s){let e,n,l,g,i;return{c(){e=t.element("div"),n=t.element("div"),l=t.element("span"),g=t.text(s[3]),t.attr(l,"part","progressText"),t.attr(n,"class",i="stepBar "+s[4]),t.attr(n,"part","stepBar"),t.attr(e,"class","general-icon-progress-bar"),t.attr(e,"part","totalBar")},m(a,o){t.insert(a,e,o),t.append(e,n),t.append(n,l),t.append(l,g),s[13](l),s[14](n),s[15](e)},p(a,[o]){o&8&&t.set_data(g,a[3]),o&16&&i!==(i="stepBar "+a[4])&&t.attr(n,"class",i)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s[13](null),s[14](null),s[15](null)}}}function M(s,e,n){let l;t.component_subscribe(s,t.$format,r=>n(20,l=r));let{currentstep:g=0}=e,{total:i=1}=e,{showaspercent:a}=e,{lang:o="en"}=e,{status:d}=e,{translationurl:p=""}=e,{progressfractiondigit:m=1}=e,{triggerreset:y}=e,h,f,c,b,_,x,w,B="0px",T="active";L({withLocale:"en",translations:{}});const F=()=>{fetch(p).then(u=>u.json()).then(u=>{Object.keys(u).forEach(v=>{H(v,u[v])})}).catch(u=>{console.log(u)})};Object.keys(k).forEach(r=>{H(r,k[r])});const E=()=>{R(o)},O=()=>{let r=(g/i*100).toFixed(m);setTimeout(()=>{a||a==="true"?n(3,b=`${r}%`):n(3,b=`${g}/${i} ${l("bets")}`)},b?573:0),r==0||r==100?(x="0px",w="0px",B=r==100?"3px":"0px"):(x=`${h.offsetHeight}px`,_=x,w=`${h.offsetHeight/3}px`,B="0px"),f.style.setProperty("--parentElementHeight",_),c.style.setProperty("--currentStep",r+"%"),c.style.setProperty("--triangleHeight",x),c.style.setProperty("--halfOfTriangleHeight",w),c.style.setProperty("--stepBarBorderRadius",B)},P=()=>{n(4,T=d=="active"?"":"inactive")};function C(r){t.binding_callbacks[r?"unshift":"push"](()=>{f=r,n(1,f)})}function z(r){t.binding_callbacks[r?"unshift":"push"](()=>{c=r,n(2,c)})}function A(r){t.binding_callbacks[r?"unshift":"push"](()=>{h=r,n(0,h)})}return s.$$set=r=>{"currentstep"in r&&n(5,g=r.currentstep),"total"in r&&n(6,i=r.total),"showaspercent"in r&&n(7,a=r.showaspercent),"lang"in r&&n(8,o=r.lang),"status"in r&&n(9,d=r.status),"translationurl"in r&&n(10,p=r.translationurl),"progressfractiondigit"in r&&n(11,m=r.progressfractiondigit),"triggerreset"in r&&n(12,y=r.triggerreset)},s.$$.update=()=>{s.$$.dirty&4160&&y&&i&&setTimeout(()=>{O()}),s.$$.dirty&256&&o&&E(),s.$$.dirty&512&&d&&P(),s.$$.dirty&1024&&p&&F()},[h,f,c,b,T,g,i,a,o,d,p,m,y,C,z,A]}class S extends t.SvelteComponent{constructor(e){super(),t.init(this,e,M,I,t.safe_not_equal,{currentstep:5,total:6,showaspercent:7,lang:8,status:9,translationurl:10,progressfractiondigit:11,triggerreset:12},j)}get currentstep(){return this.$$.ctx[5]}set currentstep(e){this.$$set({currentstep:e}),t.flush()}get total(){return this.$$.ctx[6]}set total(e){this.$$set({total:e}),t.flush()}get showaspercent(){return this.$$.ctx[7]}set showaspercent(e){this.$$set({showaspercent:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get status(){return this.$$.ctx[9]}set status(e){this.$$set({status:e}),t.flush()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get progressfractiondigit(){return this.$$.ctx[11]}set progressfractiondigit(e){this.$$set({progressfractiondigit:e}),t.flush()}get triggerreset(){return this.$$.ctx[12]}set triggerreset(e){this.$$set({triggerreset:e}),t.flush()}}t.create_custom_element(S,{currentstep:{},total:{},showaspercent:{},lang:{},status:{},translationurl:{},progressfractiondigit:{},triggerreset:{}},[],[],!0);exports.default=S;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let t=function(e){return function(...s){try{return e.apply(this,s)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusSliderController-DNqreYrK.cjs")).then(e=>e.CasinoWageringBonusSliderController_ce).then(({default:e})=>{!customElements.get("casino-wagering-bonus-slider-controller")&&customElements.define("casino-wagering-bonus-slider-controller",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let t=function(e){return function(...s){try{return e.apply(this,s)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusSliderController-J-U_5syu.cjs")).then(e=>e.CasinoWageringBonusSliderController_ce).then(({default:e})=>{!customElements.get("casino-wagering-bonus-slider-controller")&&customElements.define("casino-wagering-bonus-slider-controller",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoWageringBonusSliderController-DAoW2Pf9.js").then((e) => e.C).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoWageringBonusSliderController-vhWln9bk.js").then((e) => e.C).then(({ default: e }) => {
14
14
  !customElements.get("casino-wagering-bonus-slider-controller") && customElements.define(
15
15
  "casino-wagering-bonus-slider-controller",
16
16
  e.element
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoWageringBonusSliderController-AK_U0zNx.js";
1
+ import { C as s } from "../components/CasinoWageringBonusSliderController-BLzMbBgc.js";
2
2
  function r(n) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-wagering-bonus-slider-controller",
3
- "version": "1.99.57",
3
+ "version": "1.99.59",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-wagering-bonus-slider-controller.cjs",
6
6
  "module": "esnext/casino-wagering-bonus-slider-controller.js",