@everymatrix/casino-wagering-bonuses-controller 1.85.17 → 1.85.18

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.
@@ -5952,7 +5952,7 @@ if (typeof window < "u") {
5952
5952
  }
5953
5953
  };
5954
5954
  };
5955
- customElements.define = e(customElements.define), import("./GeneralAnimationLoading-C8bUHowA.js").then(({ default: t }) => {
5955
+ customElements.define = e(customElements.define), import("./GeneralAnimationLoading-BmA8W4eN.js").then(({ default: t }) => {
5956
5956
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
5957
5957
  });
5958
5958
  }
@@ -7,4 +7,4 @@
7
7
  `,Ge+=He):Ie==="id"?it=He:Ie==="event"?Ae=He:Ie==="retry"?(I=Se(He,I),m=I):Ie==="heartbeatTimeout"&&(P=Se(He,P),ge!==0&&(a(ge),ge=i(function(){Qe()},P)))}if(_e===ae){if(Ge!==""){Y=it,Ae===""&&(Ae="message");var je=new W(Ae,{data:Ge.slice(1),lastEventId:it});if(_.dispatchEvent(je),Ae==="open"?Be(_,_.onopen,je):Ae==="message"?Be(_,_.onmessage,je):Ae==="error"&&Be(_,_.onerror,je),Te===C)return}Ge="",Ae=""}_e=we===13?F:ae}else _e===ae&&(yt=he,_e=ce),_e===ce?we===58&&(De=he+1,_e=S):_e===S&&(_e=X)}}},Vt=function(le){if(Te===T||Te===E){Te=ie,ge!==0&&(a(ge),ge=0),ge=i(function(){Qe()},m),m=Le(Math.min(I*16,m*2)),_.readyState=E;var oe=new se("error",{error:le});_.dispatchEvent(oe),Be(_,_.onerror,oe),le!=null&&console.error(le)}},Et=function(){Te=C,ye!=null&&(ye.abort(),ye=void 0),ge!==0&&(a(ge),ge=0),_.readyState=C},Qe=function(){if(ge=0,Te!==ie){if(!H&&ye!=null)Vt(new Error("No activity within "+P+" milliseconds. "+(Te===E?"No response received.":U+" chars received.")+" Reconnecting.")),ye!=null&&(ye.abort(),ye=void 0);else{var le=Math.max((H||Date.now())+P-Date.now(),1);H=!1,ge=i(function(){Qe()},le)}return}H=!1,U=0,ge=i(function(){Qe()},P),Te=E,Ge="",Ae="",it=Y,at="",yt=0,De=0,_e=ae;var oe=B;if(B.slice(0,5)!=="data:"&&B.slice(0,5)!=="blob:"&&Y!==""){var Ee=B.indexOf("?");oe=Ee===-1?B:B.slice(0,Ee+1)+B.slice(Ee+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(He,je){return je===L?"":He}),oe+=(B.indexOf("?")===-1?"?":"&")+L+"="+encodeURIComponent(Y)}var we=_.withCredentials,be={};be.Accept="text/event-stream";var he=_.headers;if(he!=null)for(var Ie in he)Object.prototype.hasOwnProperty.call(he,Ie)&&(be[Ie]=he[Ie]);try{ye=Ye.open(xe,Ir,Hr,Vt,oe,we,be)}catch(He){throw Et(),He}};_.url=B,_.readyState=E,_.withCredentials=w,_.headers=A,_._close=Et,Qe()}ue.prototype=Object.create(z.prototype),ue.prototype.CONNECTING=E,ue.prototype.OPEN=T,ue.prototype.CLOSED=C,ue.prototype.close=function(){this._close()},ue.CONNECTING=E,ue.OPEN=T,ue.CLOSED=C,ue.prototype.withCredentials=void 0;var Ue=h;s!=null&&(h==null||!("withCredentials"in h.prototype))&&(Ue=ue),function(_){{var B=_(t);B!==void 0&&(e.exports=B)}}(function(_){_.EventSourcePolyfill=ue,_.NativeEventSource=h,_.EventSource=Ue})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:jr:globalThis)})(Ht,Ht.exports);var Vr=Ht.exports;const Pe=e=>window.postMessage(e,window.location.href),Xr=e=>n=>{Object.keys(e).map(i=>{if(n.data&&n.data.type==i){const a=n.data,{type:s}=a,o=$e(a,["type"]);e[i](o)}})},Yn=e=>{const t=Xr(e);r.onMount(()=>(window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}))},wt=(e,t)=>{e&&(e.removeEventListener("message",t),e.close())},Zr=(e,t,n)=>{let i;return EventSource?i=new EventSource(e,t):i=new Vr.EventSourcePolyfill(e,t),i.addEventListener("message",n),i},zr=e=>n=>{const i=n.data;if(i)try{const a=JSON.parse(i);if(!a)return;Object.keys(e).map(s=>{if(a.messageType==s){const o=a,{messageType:f}=o,h=$e(o,["messageType"]);e[s](h)}})}catch(a){console.error(a)}},Qn=e=>Jr[e],Jr={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"},qr=e=>{const t=window.BigInt;if(!e||e==null||e.length===0)return;let n=t(e[0].id);return{maxIdObj:e.reduce((a,s)=>{const o=t(s.id);return o>n?(n=o,s):a},e[0]),maxId:n.toString()}},Kr=(e,t)=>JSON.stringify(e.map(n=>({bonusWalletID:n.id,progressID:t[n.id]||0}))),Yr=(e,t,n,i,a)=>{const s=n.filter(l=>Qr(l));if(!s.length)return;const o={walletFilter:Kr(s,a),XSessionId:t,HeartBeat:!0},f=`${e}/v1/bonus/wagering/updates?${Pr(o)}`;return Zr(f,{headers:{accept:"text/event-stream"}},i)},ht=(e,t)=>{switch(e){case q.completed:case q.released:case q.expired:case q.closed:case q.forfeited:return t.other();case q.active:return t.active();case void 0:return t.active();default:throw new Error(`unknown Bonus Status: ${e}`)}},$n=(e,t)=>{switch(e){case q.completed:case q.released:return t.completed();case q.active:case q.expired:case q.closed:case q.forfeited:return t.current();default:throw new Error(`unknown Bonus Status: ${e}`)}},er={list:(a,s,o,...f)=>ke(exports,[a,s,o,...f],function*(e,t,n,i={}){const g=i,{limit:h,lang:l,status:u}=g,d=$e(g,["limit","lang","status"]),c=pe(pe({type:"wagering",pagination:`limit=${h||50},offset=0`,language:l},!u||u===q.claimable?{}:{status:u}),d),v=(()=>{switch(u){case q.claimable:return"claimable";default:return"granted"}})(),b=new URL(`${t}/v1/bonus/${v}`);return Object.keys(c).map(p=>{b.searchParams.append(p,c[p])}),yield qt(e,b,{headers:pe({},n?{"x-SessionId":n}:{})})}),start:(e,t,n,i,a)=>ke(exports,null,function*(){return yield qt(e,t+"/v1/bonus/claim",{method:"PUT",body:JSON.stringify({bonusCode:i,currency:a}),headers:{"x-SessionId":n,accept:"text/plain","Content-Type":"application/json-patch+json"}})})},Qr=e=>e.bonusWalletID?ht(e.status,{active:()=>!0,other:()=>!1}):!1,Rt=(e,t,n)=>{switch(t.type){case It.standard:case It.freeBet:{const i=Re(pe({},t),{currency:Qn(Object.keys(e.increment)[0])});return t.mode==="percentage"&&(i.bonusAmount=i.bonusAmount*100),t.type==="freeBet"&&t.mode==="fixed"&&(i.currency=""),n(`reward.${t.mode}`,i)+" "+n(`reward.${t.type}`)}default:return n(`reward.${t.type}`,t)}},en=(e,t,n)=>{var o;const i=((o=e.wageringProgress)==null?void 0:o.currentLevel)-1,a=t.length-1,s=f=>f.filter(h=>h.index>=0&&h.index<=a).map(h=>{const l=t[h.index];return{key:h.key,descriptions:l.bonuses.map(u=>Rt(l,u,n))}});return ht(e.status,{active:()=>{if(e.status)return s([{key:"current",index:i},{key:"next",index:i+1}]);if(!e.status)return s([{key:"first",index:0},{key:"next",index:1}])},other:()=>s([{key:"last",index:a},{key:"previous",index:a-1}])})},$r=e=>{const t=[];return e.map(n=>{const s=n,{maxRepeats:i}=s,a=$e(s,["maxRepeats"]);if(i>0)for(let o=0;o<i;o++)t.push(pe({},a));else t.push(pe({},a))}),t},tn=(e,t)=>{if(!e.wageringProgress)return;const{currency:n,currentLevelIncrement:i,gap:a,currentLevel:s}=e.wageringProgress,o=Qn(n),f=t[s-1];return{currencySymbol:o,levelInfo:f,currency:n,currentLevelIncrement:i,gap:a,currentLevel:s}},nn=e=>{if(!e.wageringProgress)return 0;const{currentLevelIncrement:t,gap:n}=e.wageringProgress;return(t-n).toFixed(2)},rn=e=>$n(e.status,{completed:()=>"100",current:()=>{if(!e.wageringProgress)return"0";const{currentLevelIncrement:t,gap:n}=e.wageringProgress,i=Number(Or(t,n));return String(Math.ceil(i/t*100))}}),tr=(e,t,n)=>e.levels.find(i=>i.maxRepeats===0)?t:n,ei=(e,t)=>{const n=tr(e,"∞",t.length);return $n(e.status,{completed:()=>({text:t.length,textWithLength:`${t.length}/${t.length}`}),current:()=>{if(!e.wageringProgress)return{current:"0",textWithLength:`0/${n}`};const{currentLevel:i}=e.wageringProgress;return{text:i,textWithLength:`${i}/${n}`}}})},an=(e,t,n,i)=>{if(!e)return;const a=Kn(e);a<0?n():(i(Nr(e)),a<t&&setTimeout(()=>{Pe({type:"OnWageringBonusExpired"})},a))},ti=e=>{switch(e){case"active":return q.active;case"completed":return[q.expired,q.forfeited,q.released,q.completed,q.closed].join(",")}},sn=(e,t,n)=>{const i=e===0?0:n.levels[e-1].maxRepeats-1;return t.maxRepeats>1?`${e+1+i}-${e+1+i+t.maxRepeats-1}`:e+1+i},We=[];function ni(e,t){return{subscribe:mt(e,t).subscribe}}function mt(e,t=r.noop){let n;const i=new Set;function a(f){if(r.safe_not_equal(e,f)&&(e=f,n)){const h=!We.length;for(const l of i)l[1](),We.push(l,e);if(h){for(let l=0;l<We.length;l+=2)We[l][0](We[l+1]);We.length=0}}}function s(f){a(f(e))}function o(f,h=r.noop){const l=[f,h];return i.add(l),i.size===1&&(n=t(a,s)||r.noop),f(e),()=>{i.delete(l),i.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:o}}function Je(e,t,n){const i=!Array.isArray(e),a=i?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return ni(n,(o,f)=>{let h=!1;const l=[];let u=0,d=r.noop;const c=()=>{if(u)return;d();const b=t(i?l[0]:l,o,f);s?o(b):d=r.is_function(b)?b:r.noop},v=a.map((b,g)=>r.subscribe(b,p=>{l[g]=p,u&=~(1<<g),h&&c()},()=>{u|=1<<g}));return h=!0,c(),function(){r.run_all(v),d(),h=!1}})}var ri=function(t){return ii(t)&&!ai(t)};function ii(e){return!!e&&typeof e=="object"}function ai(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||li(e)}var si=typeof Symbol=="function"&&Symbol.for,oi=si?Symbol.for("react.element"):60103;function li(e){return e.$$typeof===oi}function ui(e){return Array.isArray(e)?[]:{}}function nt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ve(ui(e),e,t):e}function fi(e,t,n){return e.concat(t).map(function(i){return nt(i,n)})}function hi(e,t){if(!t.customMerge)return Ve;var n=t.customMerge(e);return typeof n=="function"?n:Ve}function ci(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function on(e){return Object.keys(e).concat(ci(e))}function nr(e,t){try{return t in e}catch(n){return!1}}function di(e,t){return nr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function pi(e,t,n){var i={};return n.isMergeableObject(e)&&on(e).forEach(function(a){i[a]=nt(e[a],n)}),on(t).forEach(function(a){di(e,a)||(nr(e,a)&&n.isMergeableObject(t[a])?i[a]=hi(a,n)(e[a],t[a],n):i[a]=nt(t[a],n))}),i}function Ve(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||fi,n.isMergeableObject=n.isMergeableObject||ri,n.cloneUnlessOtherwiseSpecified=nt;var i=Array.isArray(t),a=Array.isArray(e),s=i===a;return s?i?n.arrayMerge(e,t,n):pi(e,t,n):nt(t,n)}Ve.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,a){return Ve(i,a,n)},{})};var mi=Ve,gi=mi;const _i=Wr(gi);var Lt=function(e,t){return Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},Lt(e,t)};function gt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ce=function(){return Ce=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ce.apply(this,arguments)};function bi(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n}function Tt(e,t,n){if(n||arguments.length===2)for(var i=0,a=t.length,s;i<a;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function St(e,t){var n=t&&t.cache?t.cache:Bi,i=t&&t.serializer?t.serializer:Ti,a=t&&t.strategy?t.strategy:Ei;return a(e,{cache:n,serializer:i})}function vi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function yi(e,t,n,i){var a=vi(i)?i:n(i),s=t.get(a);return typeof s=="undefined"&&(s=e.call(this,i),t.set(a,s)),s}function rr(e,t,n){var i=Array.prototype.slice.call(arguments,3),a=n(i),s=t.get(a);return typeof s=="undefined"&&(s=e.apply(this,i),t.set(a,s)),s}function ir(e,t,n,i,a){return n.bind(t,e,i,a)}function Ei(e,t){var n=e.length===1?yi:rr;return ir(e,this,n,t.cache.create(),t.serializer)}function wi(e,t){return ir(e,this,rr,t.cache.create(),t.serializer)}var Ti=function(){return JSON.stringify(arguments)},Si=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Bi={create:function(){return new Si}},Bt={variadic:wi},ct=function(){return ct=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ct.apply(this,arguments)};var k;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(k||(k={}));var ee;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(ee||(ee={}));var Xe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Xe||(Xe={}));function ln(e){return e.type===ee.literal}function Ci(e){return e.type===ee.argument}function ar(e){return e.type===ee.number}function sr(e){return e.type===ee.date}function or(e){return e.type===ee.time}function lr(e){return e.type===ee.select}function ur(e){return e.type===ee.plural}function xi(e){return e.type===ee.pound}function fr(e){return e.type===ee.tag}function hr(e){return!!(e&&typeof e=="object"&&e.type===Xe.number)}function Mt(e){return!!(e&&typeof e=="object"&&e.type===Xe.dateTime)}var cr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ai=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Ii(e){var t={};return e.replace(Ai,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var re=function(){return re=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},re.apply(this,arguments)};var Hi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ri(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Hi).filter(function(c){return c.length>0}),n=[],i=0,a=t;i<a.length;i++){var s=a[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var f=o[0],h=o.slice(1),l=0,u=h;l<u.length;l++){var d=u[l];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:f,options:h})}return n}function Li(e){return e.replace(/^(.*?)-/,"")}var un=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,dr=/^(@+)?(\+|#+)?[rs]?$/g,Mi=/(\*)(0+)|(#+)(0+)|(0+)/g,pr=/^(0+)$/;function fn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(dr,function(n,i,a){return typeof a!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):a==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof a=="string"?a.length:0)),""}),t}function mr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Pi(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!pr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function hn(e){var t={},n=mr(e);return n||t}function Oi(e){for(var t={},n=0,i=e;n<i.length;n++){var a=i[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Li(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=re(re(re({},t),{notation:"scientific"}),a.options.reduce(function(h,l){return re(re({},h),hn(l))},{}));continue;case"engineering":t=re(re(re({},t),{notation:"engineering"}),a.options.reduce(function(h,l){return re(re({},h),hn(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Mi,function(h,l,u,d,c,v){if(l)t.minimumIntegerDigits=u.length;else{if(d&&c)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pr.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(un.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(un,function(h,l,u,d,c,v){return u==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:c&&v?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+v.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=a.options[0];s==="w"?t=re(re({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=re(re({},t),fn(s)));continue}if(dr.test(a.stem)){t=re(re({},t),fn(a.stem));continue}var o=mr(a.stem);o&&(t=re(re({},t),o));var f=Pi(a.stem);f&&(t=re(re({},t),f))}return t}var ot={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Ni(e,t){for(var n="",i=0;i<e.length;i++){var a=e.charAt(i);if(a==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===a;)s++,i++;var o=1+(s&1),f=s<2?1:3+(s>>1),h="a",l=Di(t);for((l=="H"||l=="k")&&(f=0);f-- >0;)n+=h;for(;o-- >0;)n=l+n}else a==="J"?n+="H":n+=a}return n}function Di(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var a=ot[i||""]||ot[n||""]||ot["".concat(n,"-001")]||ot["001"];return a[0]}var Ct,ki=new RegExp("^".concat(cr.source,"*")),Fi=new RegExp("".concat(cr.source,"*$"));function G(e,t){return{start:e,end:t}}var Ui=!!String.prototype.startsWith&&"_a".startsWith("a",1),Gi=!!String.fromCodePoint,ji=!!Object.fromEntries,Wi=!!String.prototype.codePointAt,Vi=!!String.prototype.trimStart,Xi=!!String.prototype.trimEnd,Zi=!!Number.isSafeInteger,zi=Zi?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pt=!0;try{var Ji=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pt=((Ct=Ji.exec("a"))===null||Ct===void 0?void 0:Ct[0])==="a"}catch(e){Pt=!1}var cn=Ui?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},Ot=Gi?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",a=t.length,s=0,o;a>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},dn=ji?Object.fromEntries:function(t){for(var n={},i=0,a=t;i<a.length;i++){var s=a[i],o=s[0],f=s[1];n[o]=f}return n},gr=Wi?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var a=t.charCodeAt(n),s;return a<55296||a>56319||n+1===i||(s=t.charCodeAt(n+1))<56320||s>57343?a:(a-55296<<10)+(s-56320)+65536}},qi=Vi?function(t){return t.trimStart()}:function(t){return t.replace(ki,"")},Ki=Xi?function(t){return t.trimEnd()}:function(t){return t.replace(Fi,"")};function _r(e,t){return new RegExp(e,t)}var Nt;if(Pt){var pn=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Nt=function(t,n){var i;pn.lastIndex=n;var a=pn.exec(t);return(i=a[1])!==null&&i!==void 0?i:""}}else Nt=function(t,n){for(var i=[];;){var a=gr(t,n);if(a===void 0||br(a)||ea(a))break;i.push(a),n+=a>=65536?2:1}return Ot.apply(void 0,i)};var Yi=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var a=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;a.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var f=this.clonePosition();this.bump(),a.push({type:ee.pound,location:G(f,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(k.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Dt(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;a.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;a.push(o.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ee.literal,value:"<".concat(a,"/>"),location:G(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var o=s.val,f=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Dt(this.char()))return this.error(k.INVALID_TAG,G(f,this.clonePosition()));var h=this.clonePosition(),l=this.parseTagName();return a!==l?this.error(k.UNMATCHED_CLOSING_TAG,G(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ee.tag,value:a,children:o,location:G(i,this.clonePosition())},err:null}:this.error(k.INVALID_TAG,G(f,this.clonePosition())))}else return this.error(k.UNCLOSED_TAG,G(i,this.clonePosition()))}else return this.error(k.INVALID_TAG,G(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&$i(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),a="";;){var s=this.tryParseQuote(n);if(s){a+=s;continue}var o=this.tryParseUnquoted(t,n);if(o){a+=o;continue}var f=this.tryParseLeftAngleBracket();if(f){a+=f;continue}break}var h=G(i,this.clonePosition());return{val:{type:ee.literal,value:a,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Qi(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return Ot.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),Ot(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,G(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(k.EMPTY_ARGUMENT,G(i,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(k.MALFORMED_ARGUMENT,G(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,G(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ee.argument,value:a,location:G(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,G(i,this.clonePosition())):this.parseArgumentOptions(t,n,a,i);default:return this.error(k.MALFORMED_ARGUMENT,G(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=Nt(this.message,n),a=n+i.length;this.bumpTo(a);var s=this.clonePosition(),o=G(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,n,i,a){var s,o=this.clonePosition(),f=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(f){case"":return this.error(k.EXPECT_ARGUMENT_TYPE,G(o,h));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var c=Ki(d.val);if(c.length===0)return this.error(k.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));var v=G(u,this.clonePosition());l={style:c,styleLocation:v}}var b=this.tryParseArgumentClose(a);if(b.err)return b;var g=G(a,this.clonePosition());if(l&&cn(l==null?void 0:l.style,"::",0)){var p=qi(l.style.slice(2));if(f==="number"){var d=this.parseNumberSkeletonFromString(p,l.styleLocation);return d.err?d:{val:{type:ee.number,value:i,location:g,style:d.val},err:null}}else{if(p.length===0)return this.error(k.EXPECT_DATE_TIME_SKELETON,g);var y=p;this.locale&&(y=Ni(p,this.locale));var c={type:Xe.dateTime,pattern:y,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ii(y):{}},M=f==="date"?ee.date:ee.time;return{val:{type:M,value:i,location:g,style:c},err:null}}}return{val:{type:f==="number"?ee.number:f==="date"?ee.date:ee.time,value:i,location:g,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS,G(R,ct({},R)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),N=0;if(f!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),O=this.parseIdentifierIfPossible(),N=d.val}var Z=this.tryParsePluralOrSelectOptions(t,f,n,O);if(Z.err)return Z;var b=this.tryParseArgumentClose(a);if(b.err)return b;var D=G(a,this.clonePosition());return f==="select"?{val:{type:ee.select,value:i,options:dn(Z.val),location:D},err:null}:{val:{type:ee.plural,value:i,options:dn(Z.val),offset:N,pluralType:f==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(k.INVALID_ARGUMENT_TYPE,G(o,h))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,G(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(k.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,G(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=Ri(t)}catch(a){return this.error(k.INVALID_NUMBER_SKELETON,n)}return{val:{type:Xe.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?Oi(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,a){for(var s,o=!1,f=[],h=new Set,l=a.value,u=a.location;;){if(l.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_SELECTOR,k.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=G(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(h.has(l))return this.error(n==="select"?k.DUPLICATE_SELECT_ARGUMENT_SELECTOR:k.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(o=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:k.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(t+1,n,i);if(b.err)return b;var g=this.tryParseArgumentClose(v);if(g.err)return g;f.push([l,{value:b.val,location:G(v,this.clonePosition())}]),h.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,u=s.location}return f.length===0?this.error(n==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR:k.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(k.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:f,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var f=this.char();if(f>=48&&f<=57)s=!0,o=o*10+(f-48),this.bump();else break}var h=G(a,this.clonePosition());return s?(o*=i,zi(o)?{val:o,err:null}:this.error(n,h)):this.error(t,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=gr(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(cn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&br(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i!=null?i:null},e}();function Dt(e){return e>=97&&e<=122||e>=65&&e<=90}function Qi(e){return Dt(e)||e===47}function $i(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function br(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ea(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function kt(e){e.forEach(function(t){if(delete t.location,lr(t)||ur(t))for(var n in t.options)delete t.options[n].location,kt(t.options[n].value);else ar(t)&&hr(t.style)||(sr(t)||or(t))&&Mt(t.style)?delete t.style.location:fr(t)&&kt(t.children)})}function ta(e,t){t===void 0&&(t={}),t=ct({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Yi(e,t).parse();if(n.err){var i=SyntaxError(k[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t!=null&&t.captureLocation||kt(n.val),n.val}var Ze;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ze||(Ze={}));var _t=function(e){gt(t,e);function t(n,i,a){var s=e.call(this,n)||this;return s.code=i,s.originalMessage=a,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),mn=function(e){gt(t,e);function t(n,i,a,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Ze.INVALID_VALUE,s)||this}return t}(_t),na=function(e){gt(t,e);function t(n,i,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),Ze.INVALID_VALUE,a)||this}return t}(_t),ra=function(e){gt(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),Ze.MISSING_VALUE,i)||this}return t}(_t),ve;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ve||(ve={}));function ia(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==ve.literal||n.type!==ve.literal?t.push(n):i.value+=n.value,t},[])}function aa(e){return typeof e=="function"}function lt(e,t,n,i,a,s,o){if(e.length===1&&ln(e[0]))return[{type:ve.literal,value:e[0].value}];for(var f=[],h=0,l=e;h<l.length;h++){var u=l[h];if(ln(u)){f.push({type:ve.literal,value:u.value});continue}if(xi(u)){typeof s=="number"&&f.push({type:ve.literal,value:n.getNumberFormat(t).format(s)});continue}var d=u.value;if(!(a&&d in a))throw new ra(d,o);var c=a[d];if(Ci(u)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),f.push({type:typeof c=="string"?ve.literal:ve.object,value:c});continue}if(sr(u)){var v=typeof u.style=="string"?i.date[u.style]:Mt(u.style)?u.style.parsedOptions:void 0;f.push({type:ve.literal,value:n.getDateTimeFormat(t,v).format(c)});continue}if(or(u)){var v=typeof u.style=="string"?i.time[u.style]:Mt(u.style)?u.style.parsedOptions:i.time.medium;f.push({type:ve.literal,value:n.getDateTimeFormat(t,v).format(c)});continue}if(ar(u)){var v=typeof u.style=="string"?i.number[u.style]:hr(u.style)?u.style.parsedOptions:void 0;v&&v.scale&&(c=c*(v.scale||1)),f.push({type:ve.literal,value:n.getNumberFormat(t,v).format(c)});continue}if(fr(u)){var b=u.children,g=u.value,p=a[g];if(!aa(p))throw new na(g,"function",o);var y=lt(b,t,n,i,a,s),M=p(y.map(function(N){return N.value}));Array.isArray(M)||(M=[M]),f.push.apply(f,M.map(function(N){return{type:typeof N=="string"?ve.literal:ve.object,value:N}}))}if(lr(u)){var R=u.options[c]||u.options.other;if(!R)throw new mn(u.value,c,Object.keys(u.options),o);f.push.apply(f,lt(R.value,t,n,i,a));continue}if(ur(u)){var R=u.options["=".concat(c)];if(!R){if(!Intl.PluralRules)throw new _t(`Intl.PluralRules is not available in this environment.
8
8
  Try polyfilling it using "@formatjs/intl-pluralrules"
9
9
  `,Ze.MISSING_INTL_API,o);var O=n.getPluralRules(t,{type:u.pluralType}).select(c-(u.offset||0));R=u.options[O]||u.options.other}if(!R)throw new mn(u.value,c,Object.keys(u.options),o);f.push.apply(f,lt(R.value,t,n,i,a,c-(u.offset||0)));continue}}return ia(f)}function sa(e,t){return t?Ce(Ce(Ce({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=Ce(Ce({},e[i]),t[i]||{}),n},{})):e}function oa(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=sa(e[i],t[i]),n},Ce({},e)):e}function xt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function la(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:St(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Tt([void 0],n,!1)))},{cache:xt(e.number),strategy:Bt.variadic}),getDateTimeFormat:St(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Tt([void 0],n,!1)))},{cache:xt(e.dateTime),strategy:Bt.variadic}),getPluralRules:St(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Tt([void 0],n,!1)))},{cache:xt(e.pluralRules),strategy:Bt.variadic})}}var ua=function(){function e(t,n,i,a){n===void 0&&(n=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(h){var l=s.formatToParts(h);if(l.length===1)return l[0].value;var u=l.reduce(function(d,c){return!d.length||c.type!==ve.literal||typeof d[d.length-1]!="string"?d.push(c.value):d[d.length-1]+=c.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(h){return lt(s.ast,s.locales,s.formatters,s.formats,h,void 0,s.message)},this.resolvedOptions=function(){var h;return{locale:((h=s.resolvedLocale)===null||h===void 0?void 0:h.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=a||{};o.formatters;var f=bi(o,["formatters"]);this.ast=e.__parse(t,Ce(Ce({},f),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=oa(e.formats,i),this.formatters=a&&a.formatters||la(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ta,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function fa(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let i=e;for(let a=0;a<n.length;a++)if(typeof i=="object"){if(a>0){const s=n.slice(a,n.length).join(".");if(s in i){i=i[s];break}}i=i[n[a]]}else i=void 0;return i}const Oe={},ha=(e,t,n)=>n&&(t in Oe||(Oe[t]={}),e in Oe[t]||(Oe[t][e]=n),n),vr=(e,t)=>{if(t==null)return;if(t in Oe&&e in Oe[t])return Oe[t][e];const n=bt(t);for(let i=0;i<n.length;i++){const a=n[i],s=da(a,e);if(s)return ha(e,t,s)}};let jt;const qe=mt({});function ca(e){return jt[e]||null}function yr(e){return e in jt}function da(e,t){if(!yr(e))return null;const n=ca(e);return fa(n,t)}function pa(e){if(e==null)return;const t=bt(e);for(let n=0;n<t.length;n++){const i=t[n];if(yr(i))return i}}function Er(e,...t){delete Oe[e],qe.update(n=>(n[e]=_i.all([n[e]||{},...t]),n))}Je([qe],([e])=>Object.keys(e));qe.subscribe(e=>jt=e);const ut={};function ma(e,t){ut[e].delete(t),ut[e].size===0&&delete ut[e]}function wr(e){return ut[e]}function ga(e){return bt(e).map(t=>{const n=wr(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Ft(e){return e==null?!1:bt(e).some(t=>{var n;return(n=wr(t))==null?void 0:n.size})}function _a(e,t){return Promise.all(t.map(i=>(ma(e,i),i().then(a=>a.default||a)))).then(i=>Er(e,...i))}const et={};function Tr(e){if(!Ft(e))return e in et?et[e]:Promise.resolve();const t=ga(e);return et[e]=Promise.all(t.map(([n,i])=>_a(n,i))).then(()=>{if(Ft(e))return Tr(e);delete et[e]}),et[e]}const ba={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},va={fallbackLocale:null,loadingDelay:200,formats:ba,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ya=va;function ze(){return ya}const At=mt(!1);var Ea=Object.defineProperty,wa=Object.defineProperties,Ta=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,Sa=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable,_n=(e,t,n)=>t in e?Ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ca=(e,t)=>{for(var n in t||(t={}))Sa.call(t,n)&&_n(e,n,t[n]);if(gn)for(var n of gn(t))Ba.call(t,n)&&_n(e,n,t[n]);return e},xa=(e,t)=>wa(e,Ta(t));let Ut;const dt=mt(null);function bn(e){return e.split("-").map((t,n,i)=>i.slice(0,n+1).join("-")).reverse()}function bt(e,t=ze().fallbackLocale){const n=bn(e);return t?[...new Set([...n,...bn(t)])]:n}function Fe(){return Ut!=null?Ut:void 0}dt.subscribe(e=>{Ut=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Aa=e=>{if(e&&pa(e)&&Ft(e)){const{loadingDelay:t}=ze();let n;return typeof window!="undefined"&&Fe()!=null&&t?n=window.setTimeout(()=>At.set(!0),t):At.set(!0),Tr(e).then(()=>{dt.set(e)}).finally(()=>{clearTimeout(n),At.set(!1)})}return dt.set(e)},Ne=xa(Ca({},dt),{set:Aa}),vt=e=>{const t=Object.create(null);return i=>{const a=JSON.stringify(i);return a in t?t[a]:t[a]=e(i)}};var Ia=Object.defineProperty,pt=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,vn=(e,t,n)=>t in e?Ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t)=>{for(var n in t||(t={}))Sr.call(t,n)&&vn(e,n,t[n]);if(pt)for(var n of pt(t))Br.call(t,n)&&vn(e,n,t[n]);return e},Ke=(e,t)=>{var n={};for(var i in e)Sr.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&pt)for(var i of pt(e))t.indexOf(i)<0&&Br.call(e,i)&&(n[i]=e[i]);return n};const rt=(e,t)=>{const{formats:n}=ze();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ha=vt(e=>{var t=e,{locale:n,format:i}=t,a=Ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(a=rt("number",i)),new Intl.NumberFormat(n,a)}),Ra=vt(e=>{var t=e,{locale:n,format:i}=t,a=Ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?a=rt("date",i):Object.keys(a).length===0&&(a=rt("date","short")),new Intl.DateTimeFormat(n,a)}),La=vt(e=>{var t=e,{locale:n,format:i}=t,a=Ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?a=rt("time",i):Object.keys(a).length===0&&(a=rt("time","short")),new Intl.DateTimeFormat(n,a)}),Ma=(e={})=>{var t=e,{locale:n=Fe()}=t,i=Ke(t,["locale"]);return Ha(Wt({locale:n},i))},Pa=(e={})=>{var t=e,{locale:n=Fe()}=t,i=Ke(t,["locale"]);return Ra(Wt({locale:n},i))},Oa=(e={})=>{var t=e,{locale:n=Fe()}=t,i=Ke(t,["locale"]);return La(Wt({locale:n},i))},Na=vt((e,t=Fe())=>new ua(e,t,ze().formats,{ignoreTag:ze().ignoreTag})),Da=(e,t={})=>{var n,i,a,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:f,locale:h=Fe(),default:l}=o;if(h==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=vr(e,h);if(!u)u=(s=(a=(i=(n=ze()).handleMissingMessage)==null?void 0:i.call(n,{locale:h,id:e,defaultValue:l}))!=null?a:l)!=null?s:e;else if(typeof u!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u;if(!f)return u;let d=u;try{d=Na(u,h).format(f)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return d},ka=(e,t)=>Oa(t).format(e),Fa=(e,t)=>Pa(t).format(e),Ua=(e,t)=>Ma(t).format(e),Ga=(e,t=Fe())=>vr(e,t),Cr=Je([Ne,qe],()=>Da);Je([Ne],()=>ka);Je([Ne],()=>Fa);Je([Ne],()=>Ua);Je([Ne,qe],()=>Ga);const ja=({withLocale:e,translations:t})=>{Ne.subscribe(n=>{n==null&&(qe.set(t),Ne.set(e))})},xr=(e,t)=>{Er(e,t)},Wa=e=>{Ne.set(e)},Va=e=>{ja({withLocale:"en",translations:{}}),Object.keys(e).forEach(t=>{xr(t,e[t])})};function Xa(e){r.append_styles(e,"svelte-1akw4n4",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-family:"Roboto";font-style:normal}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}private-casino-wagering-bonus-info::part(ExpiryTimeInfo){margin:0}private-casino-wagering-bonus-info::part(ExpiryTimeInfoText){color:#DC0D1F}hr{margin:11.0175975516px 0;border-top:1px solid #00AEEF}.BonusTerms{font-size:11.0175975516px;line-height:12.8538638103px;max-width:180px}.BonusTermsMobile{font-size:3.0769230769vw;line-height:3.6051282051vw;max-width:unset}.ShowMore{cursor:pointer;color:#00AEEF;text-align:right}.ShowMore.NoCursorTip{cursor:unset}.Root{display:flex;flex-direction:row;justify-content:space-between;width:648px;border:1px solid #00AEEF;padding:17.1384850803px 0;font-size:14.6901300689px;line-height:17.1384850803px}.Root>div{width:100%}.RootMobile{font-size:4.1025641026vw;line-height:4.8076923077vw;font-weight:400;width:inherit;flex-direction:column;padding:3.5897435897vw 0.7692307692vw;border-radius:1.0256410256vw}.BonusInfo{padding:0 17.1384850803px}.BonusInfoMobile{padding:0 6px}.BonusInfoWrapper,.AfterClaimedWrapper,.RewardsTopBar,.StatusClaimable{display:flex;flex-direction:row;justify-content:space-between}.BonusTypeTarget{max-width:180px;font-weight:400;padding:6.1208875287px 0;font-weight:700}.BonusTypeTargetMobile{max-width:unset}.SupportsTitle{font-weight:700}.BonusInfoWrapperMobile{margin-bottom:3.0769230769vw}.BonusInfoMobile{padding-bottom:4.6153846154vw}.BonusRewards{padding:0 17.1384850803px;border-left:1px solid #00AEEF}.BonusRewardsMobile{border-left:none;border-top:1px solid #00AEEF;padding-top:4.6153846154vw}.BonusInfoTitle{font-weight:700;color:#59CA00}.BonusInfoDescription{margin-top:12.2417750574px}.StatusClaimableCommand{margin-left:18.3626625861px}.StatusClaimableCommandMobile{margin-left:0}.StatusClaimableCommandButton{background:#00AEEF;border:1px solid #00AEEF;color:#FFFFFF;cursor:pointer;transition:0.6s;transition-property:opacity;font-size:12.2417750574px;line-height:14.7697016067px;font-weight:400;padding:14.6901300689px}.StatusClaimableCommandButton:disabled{opacity:0.3}.StatusClaimableCommandButtonMobile{font-size:4.1025641026vw;line-height:4.8076923077vw;font-weight:700;padding:4.6153846154vw 5.8974358974vw}.StatusClaimableCommandTerms{font-size:11px;font-weight:400;margin-top:6.1208875287px;text-align:center}.StatusClaimableCommandTerms a{color:#000000}.StatusClaimableCommandTermsMobile{margin:2.0512820513vw 0;font-size:3.0769230769vw;line-height:3.6051282051vw}.LevelStatus{text-align:center;margin-top:6.1208875287px}.BonusTypeWrapper{margin-left:18.3626625861px}.BonusTypeRemaining{font-weight:400;padding:6.1208875287px 0;color:#00AEEF}.BonusTypeTargetMobile,.BonusTypeRemainingMobile{padding:2.0512820513vw 0}.BonusTypeGot{font-weight:400;padding:6.1208875287px 0;color:#7884A0}.BonusTypeGotMobile{padding:2.0512820513vw 0}.RewardsTopBarTitle{font-weight:700;color:#252631}.BonusRewardsLevels{margin-top:3.0604437643px}.BonusRewardsLevelsMobile{margin-top:3.0769230769vw}.BonusRewardsLevelsItem{display:flex;margin-bottom:3.0604437643px;padding:7.3450650344px 0}.BonusRewardsLevelsItemMobile{margin-bottom:1.2820512821vw;padding:0}.BonusRewardsLevelsItemPosition{margin-right:3.0604437643px}.SupportsWrapper{margin-top:21.4231063504px}.SupportsWrapper div{margin-top:9.181331293px}.SupportsWrapperMobile{margin-top:6.1538461538vw}.SupportsWrapperMobile div{margin-top:2.0512820513vw}')}function yn(e,t,n){const i=e.slice();return i[31]=t[n],i[33]=n,i}function En(e,t,n){const i=e.slice();return i[34]=t[n],i[36]=n,i}function wn(e,t,n){const i=e.slice();return i[37]=t[n],i}function Tn(e,t,n){const i=e.slice();return i[40]=t[n],i}function Sn(e,t,n){const i=e.slice();return i[43]=t[n],i}function Bn(e,t,n){const i=e.slice();return i[43]=t[n],i}function Cn(e,t,n){const i=e.slice();return i[48]=t[n],i}function xn(e){var Y;let t,n,i,a,s=(e[0].name||((Y=e[0].presentation)==null?void 0:Y.name.content))+"",o,f,h,l,u,d,c,v,b=e[4]("rewards")+"",g,p,y,M,R,O,N,Z,D=e[4]("includeBets")+"",$,te,z,ne,j=[e[12]("BonusInfoTitle")],W={};for(let m=0;m<j.length;m+=1)W=r.assign(W,j[m]);let V=e[0].status===q.active&&e[8]&&An(e),se=[e[12]("BonusInfoWrapper")],ie={};for(let m=0;m<se.length;m+=1)ie=r.assign(ie,se[m]);let E=!e[0].status&&In(e),T=e[0].status&&Hn(e),C=[e[12]("BonusInfo")],F={};for(let m=0;m<C.length;m+=1)F=r.assign(F,C[m]);let ae=[e[12]("RewardsTopBarTitle")],ce={};for(let m=0;m<ae.length;m+=1)ce=r.assign(ce,ae[m]);let S=e[0].status&&Pn(e),X=[e[12]("RewardsTopBar")],de={};for(let m=0;m<X.length;m+=1)de=r.assign(de,X[m]);let K=e[0].status&&On(e),J=!e[0].status&&Fn(e),Se=[e[12]("BonusRewardsLevels")],Le={};for(let m=0;m<Se.length;m+=1)Le=r.assign(Le,Se[m]);let Be=[e[12]("SupportsTitle")],ue={};for(let m=0;m<Be.length;m+=1)ue=r.assign(ue,Be[m]);let Me=r.ensure_array_like(e[11]),fe=[];for(let m=0;m<Me.length;m+=1)fe[m]=Vn(yn(e,Me,m));let me=e[11].length===1&&Xn(),Ue=[e[12]("SupportsList")],_={};for(let m=0;m<Ue.length;m+=1)_=r.assign(_,Ue[m]);let B=[e[12]("SupportsWrapper")],x={};for(let m=0;m<B.length;m+=1)x=r.assign(x,B[m]);let w=[e[12]("BonusRewards")],L={};for(let m=0;m<w.length;m+=1)L=r.assign(L,w[m]);let I=[e[12]("Root")],P={};for(let m=0;m<I.length;m+=1)P=r.assign(P,I[m]);return{c(){t=r.element("section"),n=r.element("div"),i=r.element("section"),a=r.element("section"),o=r.text(s),f=r.space(),V&&V.c(),h=r.space(),E&&E.c(),l=r.space(),T&&T.c(),u=r.space(),d=r.element("div"),c=r.element("section"),v=r.element("div"),g=r.text(b),p=r.space(),S&&S.c(),y=r.space(),M=r.element("div"),K&&K.c(),R=r.space(),J&&J.c(),O=r.space(),N=r.element("div"),Z=r.element("div"),$=r.text(D),te=r.space(),z=r.element("div");for(let m=0;m<fe.length;m+=1)fe[m].c();ne=r.space(),me&&me.c(),r.set_attributes(a,W),r.set_attributes(i,ie),r.set_attributes(n,F),r.set_attributes(v,ce),r.set_attributes(c,de),r.set_attributes(M,Le),r.set_attributes(Z,ue),r.set_attributes(z,_),r.set_attributes(N,x),r.set_attributes(d,L),r.set_attributes(t,P)},m(m,H){r.insert(m,t,H),r.append(t,n),r.append(n,i),r.append(i,a),r.append(a,o),r.append(i,f),V&&V.m(i,null),r.append(n,h),E&&E.m(n,null),r.append(n,l),T&&T.m(n,null),r.append(t,u),r.append(t,d),r.append(d,c),r.append(c,v),r.append(v,g),r.append(c,p),S&&S.m(c,null),r.append(d,y),r.append(d,M),K&&K.m(M,null),r.append(M,R),J&&J.m(M,null),r.append(d,O),r.append(d,N),r.append(N,Z),r.append(Z,$),r.append(N,te),r.append(N,z);for(let U=0;U<fe.length;U+=1)fe[U]&&fe[U].m(z,null);r.append(z,ne),me&&me.m(z,null)},p(m,H){var U;if(H[0]&1&&s!==(s=(m[0].name||((U=m[0].presentation)==null?void 0:U.name.content))+"")&&r.set_data_maybe_contenteditable(o,s,W.contenteditable),r.set_attributes(a,W=r.get_spread_update(j,[H[0]&4096&&m[12]("BonusInfoTitle")])),m[0].status===q.active&&m[8]?V?V.p(m,H):(V=An(m),V.c(),V.m(i,null)):V&&(V.d(1),V=null),r.set_attributes(i,ie=r.get_spread_update(se,[H[0]&4096&&m[12]("BonusInfoWrapper")])),m[0].status?E&&(E.d(1),E=null):E?E.p(m,H):(E=In(m),E.c(),E.m(n,l)),m[0].status?T?T.p(m,H):(T=Hn(m),T.c(),T.m(n,null)):T&&(T.d(1),T=null),r.set_attributes(n,F=r.get_spread_update(C,[H[0]&4096&&m[12]("BonusInfo")])),H[0]&16&&b!==(b=m[4]("rewards")+"")&&r.set_data_maybe_contenteditable(g,b,ce.contenteditable),r.set_attributes(v,ce=r.get_spread_update(ae,[H[0]&4096&&m[12]("RewardsTopBarTitle")])),m[0].status?S?S.p(m,H):(S=Pn(m),S.c(),S.m(c,null)):S&&(S.d(1),S=null),r.set_attributes(c,de=r.get_spread_update(X,[H[0]&4096&&m[12]("RewardsTopBar")])),m[0].status?K?K.p(m,H):(K=On(m),K.c(),K.m(M,R)):K&&(K.d(1),K=null),m[0].status?J&&(J.d(1),J=null):J?J.p(m,H):(J=Fn(m),J.c(),J.m(M,null)),r.set_attributes(M,Le=r.get_spread_update(Se,[H[0]&4096&&m[12]("BonusRewardsLevels")])),H[0]&16&&D!==(D=m[4]("includeBets")+"")&&r.set_data_maybe_contenteditable($,D,ue.contenteditable),r.set_attributes(Z,ue=r.get_spread_update(Be,[H[0]&4096&&m[12]("SupportsTitle")])),H[0]&2048){Me=r.ensure_array_like(m[11]);let A;for(A=0;A<Me.length;A+=1){const Q=yn(m,Me,A);fe[A]?fe[A].p(Q,H):(fe[A]=Vn(Q),fe[A].c(),fe[A].m(z,ne))}for(;A<fe.length;A+=1)fe[A].d(1);fe.length=Me.length}m[11].length===1?me||(me=Xn(),me.c(),me.m(z,null)):me&&(me.d(1),me=null),r.set_attributes(z,_=r.get_spread_update(Ue,[H[0]&4096&&m[12]("SupportsList")])),r.set_attributes(N,x=r.get_spread_update(B,[H[0]&4096&&m[12]("SupportsWrapper")])),r.set_attributes(d,L=r.get_spread_update(w,[H[0]&4096&&m[12]("BonusRewards")])),r.set_attributes(t,P=r.get_spread_update(I,[H[0]&4096&&m[12]("Root")]))},d(m){m&&r.detach(t),V&&V.d(),E&&E.d(),T&&T.d(),S&&S.d(),K&&K.d(),J&&J.d(),r.destroy_each(fe,m),me&&me.d()}}}function An(e){let t,n=[{infos:JSON.stringify(e[8])}],i={};for(let a=0;a<n.length;a+=1)i=r.assign(i,n[a]);return{c(){t=r.element("private-casino-wagering-bonus-info"),r.set_attributes(t,i)},m(a,s){r.insert(a,t,s)},p(a,s){r.set_attributes(t,i=r.get_spread_update(n,[s[0]&256&&{infos:JSON.stringify(a[8])}]))},d(a){a&&r.detach(t)}}}function In(e){let t,n=(e[0].description||"")+"",i,a,s,o,f,h,l,u,d,c=e[4]("startChallenge")+"",v,b,g,p,y,M=e[4]("terms")+"",R,O,N,Z,D=[e[12]("BonusInfoDescription")],$={};for(let C=0;C<D.length;C+=1)$=r.assign($,D[C]);let te=[{infos:JSON.stringify(e[10])}],z={};for(let C=0;C<te.length;C+=1)z=r.assign(z,te[C]);let ne=[e[12]("StatusClaimableCommandButton"),{type:"button"},{disabled:b=!e[6]}],j={};for(let C=0;C<ne.length;C+=1)j=r.assign(j,ne[C]);let W=[e[12]("StatusClaimableCommandTerms","terms")],V={};for(let C=0;C<W.length;C+=1)V=r.assign(V,W[C]);let se=[e[12]("StatusClaimableCommand")],ie={};for(let C=0;C<se.length;C+=1)ie=r.assign(ie,se[C]);let E=[e[12]("StatusClaimable")],T={};for(let C=0;C<E.length;C+=1)T=r.assign(T,E[C]);return{c(){t=r.element("div"),i=r.text(n),a=r.space(),s=r.element("hr"),o=r.space(),f=r.element("section"),h=r.element("private-casino-wagering-bonus-info"),l=r.space(),u=r.element("div"),d=r.element("button"),v=r.text(c),g=r.space(),p=r.element("div"),y=r.element("a"),R=r.text(M),r.set_attributes(t,$),r.set_attributes(h,z),r.set_attributes(d,j),r.attr(y,"href",O=e[0].termsUrl),r.attr(y,"target","__blank"),r.set_attributes(p,V),r.set_attributes(u,ie),r.set_attributes(f,T)},m(C,F){r.insert(C,t,F),r.append(t,i),r.insert(C,a,F),r.insert(C,s,F),r.insert(C,o,F),r.insert(C,f,F),r.append(f,h),r.append(f,l),r.append(f,u),r.append(u,d),r.append(d,v),d.autofocus&&d.focus(),r.append(u,g),r.append(u,p),r.append(p,y),r.append(y,R),N||(Z=r.listen(d,"click",e[13]),N=!0)},p(C,F){F[0]&1&&n!==(n=(C[0].description||"")+"")&&r.set_data_maybe_contenteditable(i,n,$.contenteditable),r.set_attributes(t,$=r.get_spread_update(D,[F[0]&4096&&C[12]("BonusInfoDescription")])),r.set_attributes(h,z=r.get_spread_update(te,[F[0]&1024&&{infos:JSON.stringify(C[10])}])),F[0]&16&&c!==(c=C[4]("startChallenge")+"")&&r.set_data_maybe_contenteditable(v,c,j.contenteditable),r.set_attributes(d,j=r.get_spread_update(ne,[F[0]&4096&&C[12]("StatusClaimableCommandButton"),{type:"button"},F[0]&64&&b!==(b=!C[6])&&{disabled:b}])),F[0]&16&&M!==(M=C[4]("terms")+"")&&r.set_data(R,M),F[0]&1&&O!==(O=C[0].termsUrl)&&r.attr(y,"href",O),r.set_attributes(p,V=r.get_spread_update(W,[F[0]&4096&&C[12]("StatusClaimableCommandTerms","terms")])),r.set_attributes(u,ie=r.get_spread_update(se,[F[0]&4096&&C[12]("StatusClaimableCommand")])),r.set_attributes(f,T=r.get_spread_update(E,[F[0]&4096&&C[12]("StatusClaimable")]))},d(C){C&&(r.detach(t),r.detach(a),r.detach(s),r.detach(o),r.detach(f)),N=!1,Z()}}}function Hn(e){var ce;let t,n,i,a,s,o,f,h,l=e[4]("level")+"",u,d,c=e[2].textWithLength+"",v,b,g,p,y,M,R,O,N,Z=e[4]("termsTip",{tcUrl:(ce=e[0])==null?void 0:ce.url})+"",D=!e[5]&&Rn(),$=[e[12]("LevelStatus")],te={};for(let S=0;S<$.length;S+=1)te=r.assign(te,$[S]);let z=[e[12]("LevelStatusWrapper")],ne={};for(let S=0;S<z.length;S+=1)ne=r.assign(ne,z[S]);let j=r.ensure_array_like([tn(e[0],e[1])]),W=[];for(let S=0;S<1;S+=1)W[S]=Mn(Cn(e,j,S));let V=[e[12]("BonusType")],se={};for(let S=0;S<V.length;S+=1)se=r.assign(se,V[S]);let ie=[e[12]("BonusTerms")],E={};for(let S=0;S<ie.length;S+=1)E=r.assign(E,ie[S]);let T=[e[12]("BonusTypeWrapper")],C={};for(let S=0;S<T.length;S+=1)C=r.assign(C,T[S]);let F=[e[12]("AfterClaimedWrapper")],ae={};for(let S=0;S<F.length;S+=1)ae=r.assign(ae,F[S]);return{c(){var S;D&&D.c(),t=r.space(),n=r.element("section"),i=r.element("div"),a=r.element("casino-wagering-bonus-progress"),f=r.space(),h=r.element("div"),u=r.text(l),d=r.space(),v=r.text(c),b=r.space(),g=r.element("div"),p=r.element("div");for(let X=0;X<1;X+=1)W[X].c();y=r.space(),M=r.element("private-casino-wagering-bonus-info"),O=r.space(),N=r.element("div"),r.set_custom_element_data(a,"percent",s=rn(e[0])),r.set_custom_element_data(a,"status",o=(S=e[0])==null?void 0:S.status),r.set_attributes(h,te),r.set_attributes(i,ne),r.set_custom_element_data(M,"infos",R=JSON.stringify(e[9])),r.set_attributes(p,se),r.set_attributes(N,E),r.set_attributes(g,C),r.set_attributes(n,ae)},m(S,X){D&&D.m(S,X),r.insert(S,t,X),r.insert(S,n,X),r.append(n,i),r.append(i,a),r.append(i,f),r.append(i,h),r.append(h,u),r.append(h,d),r.append(h,v),r.append(n,b),r.append(n,g),r.append(g,p);for(let de=0;de<1;de+=1)W[de]&&W[de].m(p,null);r.append(p,y),r.append(p,M),r.append(g,O),r.append(g,N),N.innerHTML=Z},p(S,X){var de,K;if(S[5]?D&&(D.d(1),D=null):D||(D=Rn(),D.c(),D.m(t.parentNode,t)),X[0]&1&&s!==(s=rn(S[0]))&&r.set_custom_element_data(a,"percent",s),X[0]&1&&o!==(o=(de=S[0])==null?void 0:de.status)&&r.set_custom_element_data(a,"status",o),X[0]&16&&l!==(l=S[4]("level")+"")&&r.set_data_maybe_contenteditable(u,l,te.contenteditable),X[0]&4&&c!==(c=S[2].textWithLength+"")&&r.set_data_maybe_contenteditable(v,c,te.contenteditable),r.set_attributes(h,te=r.get_spread_update($,[X[0]&4096&&S[12]("LevelStatus")])),r.set_attributes(i,ne=r.get_spread_update(z,[X[0]&4096&&S[12]("LevelStatusWrapper")])),X[0]&4115){j=r.ensure_array_like([tn(S[0],S[1])]);let J;for(J=0;J<1;J+=1){const Se=Cn(S,j,J);W[J]?W[J].p(Se,X):(W[J]=Mn(Se),W[J].c(),W[J].m(p,y))}for(;J<1;J+=1)W[J].d(1)}X[0]&512&&R!==(R=JSON.stringify(S[9]))&&r.set_custom_element_data(M,"infos",R),r.set_attributes(p,se=r.get_spread_update(V,[X[0]&4096&&S[12]("BonusType")])),X[0]&17&&Z!==(Z=S[4]("termsTip",{tcUrl:(K=S[0])==null?void 0:K.url})+"")&&(N.innerHTML=Z),r.set_attributes(N,E=r.get_spread_update(ie,[X[0]&4096&&S[12]("BonusTerms")])),r.set_attributes(g,C=r.get_spread_update(T,[X[0]&4096&&S[12]("BonusTypeWrapper")])),r.set_attributes(n,ae=r.get_spread_update(F,[X[0]&4096&&S[12]("AfterClaimedWrapper")]))},d(S){S&&(r.detach(t),r.detach(n)),D&&D.d(S),r.destroy_each(W,S)}}}function Rn(e){let t;return{c(){t=r.element("hr")},m(n,i){r.insert(n,t,i)},d(n){n&&r.detach(t)}}}function Ln(e){let t,n=e[4](`${e[0].wageringType}.remaining`,e[48])+"",i,a,s,o=e[4](`${e[0].wageringType}.wagered`,Re(pe({},e[48]),{wagered:nn(e[0])}))+"",f,h=[e[12]("BonusTypeRemaining")],l={};for(let c=0;c<h.length;c+=1)l=r.assign(l,h[c]);let u=[e[12]("BonusTypeGot")],d={};for(let c=0;c<u.length;c+=1)d=r.assign(d,u[c]);return{c(){t=r.element("div"),i=r.text(n),a=r.space(),s=r.element("div"),f=r.text(o),r.set_attributes(t,l),r.set_attributes(s,d)},m(c,v){r.insert(c,t,v),r.append(t,i),r.insert(c,a,v),r.insert(c,s,v),r.append(s,f)},p(c,v){v[0]&19&&n!==(n=c[4](`${c[0].wageringType}.remaining`,c[48])+"")&&r.set_data_maybe_contenteditable(i,n,l.contenteditable),r.set_attributes(t,l=r.get_spread_update(h,[v[0]&4096&&c[12]("BonusTypeRemaining")])),v[0]&19&&o!==(o=c[4](`${c[0].wageringType}.wagered`,Re(pe({},c[48]),{wagered:nn(c[0])}))+"")&&r.set_data_maybe_contenteditable(f,o,d.contenteditable),r.set_attributes(s,d=r.get_spread_update(u,[v[0]&4096&&c[12]("BonusTypeGot")]))},d(c){c&&(r.detach(t),r.detach(a),r.detach(s))}}}function Mn(e){let t,n=ht(e[0].status,{active:o,other:e[24]})+"",i,a,s;function o(){return e[23](e[48])}let f=[e[12]("BonusTypeTarget")],h={};for(let u=0;u<f.length;u+=1)h=r.assign(h,f[u]);let l=e[0].status===q.active&&Ln(e);return{c(){t=r.element("div"),i=r.text(n),a=r.space(),l&&l.c(),s=r.empty(),r.set_attributes(t,h)},m(u,d){r.insert(u,t,d),r.append(t,i),r.insert(u,a,d),l&&l.m(u,d),r.insert(u,s,d)},p(u,d){e=u,d[0]&19&&n!==(n=ht(e[0].status,{active:o,other:e[24]})+"")&&r.set_data_maybe_contenteditable(i,n,h.contenteditable),r.set_attributes(t,h=r.get_spread_update(f,[d[0]&4096&&e[12]("BonusTypeTarget")])),e[0].status===q.active?l?l.p(e,d):(l=Ln(e),l.c(),l.m(s.parentNode,s)):l&&(l.d(1),l=null)},d(u){u&&(r.detach(t),r.detach(a),r.detach(s)),l&&l.d(u)}}}function Pn(e){let t,n,i=e[4]("allRewards")+"",a,s,o,f=[e[12]("RewardsTopBarLinkToDetail")],h={};for(let l=0;l<f.length;l+=1)h=r.assign(h,f[l]);return{c(){t=r.element("div"),n=r.element("a"),a=r.text(i),r.attr(n,"href","javascript:void(0)"),r.set_attributes(t,h)},m(l,u){r.insert(l,t,u),r.append(t,n),r.append(n,a),s||(o=r.listen(n,"click",e[25]),s=!0)},p(l,u){u[0]&16&&i!==(i=l[4]("allRewards")+"")&&r.set_data(a,i),r.set_attributes(t,h=r.get_spread_update(f,[u[0]&4096&&l[12]("RewardsTopBarLinkToDetail")]))},d(l){l&&r.detach(t),s=!1,o()}}}function On(e){let t,n=r.ensure_array_like(en(e[0],e[1],e[4])),i=[];for(let a=0;a<n.length;a+=1)i[a]=kn(Tn(e,n,a));return{c(){for(let a=0;a<i.length;a+=1)i[a].c();t=r.empty()},m(a,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(a,s);r.insert(a,t,s)},p(a,s){if(s[0]&4115){n=r.ensure_array_like(en(a[0],a[1],a[4]));let o;for(o=0;o<n.length;o+=1){const f=Tn(a,n,o);i[o]?i[o].p(f,s):(i[o]=kn(f),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(a){a&&r.detach(t),r.destroy_each(i,a)}}}function Za(e){let t,n=e[4](e[40].key)+"",i,a,s=e[4]("level")+"",o,f,h=r.ensure_array_like(e[40].descriptions),l=[];for(let c=0;c<h.length;c+=1)l[c]=Nn(Sn(e,h,c));let u=[e[12]("BonusRewardsLevelsItemPosition")],d={};for(let c=0;c<u.length;c+=1)d=r.assign(d,u[c]);return{c(){t=r.element("div"),i=r.text(n),a=r.space(),o=r.text(s),f=r.text(`:
10
- `);for(let c=0;c<l.length;c+=1)l[c].c();r.set_attributes(t,d)},m(c,v){r.insert(c,t,v),r.append(t,i),r.append(t,a),r.append(t,o),r.append(t,f);for(let b=0;b<l.length;b+=1)l[b]&&l[b].m(t,null)},p(c,v){if(v[0]&19&&n!==(n=c[4](c[40].key)+"")&&r.set_data_maybe_contenteditable(i,n,d.contenteditable),v[0]&16&&s!==(s=c[4]("level")+"")&&r.set_data_maybe_contenteditable(o,s,d.contenteditable),v[0]&19){h=r.ensure_array_like(c[40].descriptions);let b;for(b=0;b<h.length;b+=1){const g=Sn(c,h,b);l[b]?l[b].p(g,v):(l[b]=Nn(g),l[b].c(),l[b].m(t,null))}for(;b<l.length;b+=1)l[b].d(1);l.length=h.length}r.set_attributes(t,d=r.get_spread_update(u,[v[0]&4096&&c[12]("BonusRewardsLevelsItemPosition")]))},d(c){c&&r.detach(t),r.destroy_each(l,c)}}}function za(e){let t,n=e[4](e[40].key)+"",i,a,s=e[4]("level")+"",o,f,h,l,u=[e[12]("BonusRewardsLevelsItemPosition")],d={};for(let b=0;b<u.length;b+=1)d=r.assign(d,u[b]);let c=r.ensure_array_like(e[40].descriptions),v=[];for(let b=0;b<c.length;b+=1)v[b]=Dn(Bn(e,c,b));return{c(){t=r.element("div"),i=r.text(n),a=r.space(),o=r.text(s),f=r.text(":"),h=r.space(),l=r.element("div");for(let b=0;b<v.length;b+=1)v[b].c();r.set_attributes(t,d)},m(b,g){r.insert(b,t,g),r.append(t,i),r.append(t,a),r.append(t,o),r.append(t,f),r.insert(b,h,g),r.insert(b,l,g);for(let p=0;p<v.length;p+=1)v[p]&&v[p].m(l,null)},p(b,g){if(g[0]&19&&n!==(n=b[4](b[40].key)+"")&&r.set_data_maybe_contenteditable(i,n,d.contenteditable),g[0]&16&&s!==(s=b[4]("level")+"")&&r.set_data_maybe_contenteditable(o,s,d.contenteditable),r.set_attributes(t,d=r.get_spread_update(u,[g[0]&4096&&b[12]("BonusRewardsLevelsItemPosition")])),g[0]&19){c=r.ensure_array_like(b[40].descriptions);let p;for(p=0;p<c.length;p+=1){const y=Bn(b,c,p);v[p]?v[p].p(y,g):(v[p]=Dn(y),v[p].c(),v[p].m(l,null))}for(;p<v.length;p+=1)v[p].d(1);v.length=c.length}},d(b){b&&(r.detach(t),r.detach(h),r.detach(l)),r.destroy_each(v,b)}}}function Nn(e){let t=e[43]+"",n;return{c(){n=r.text(t)},m(i,a){r.insert(i,n,a)},p(i,a){a[0]&19&&t!==(t=i[43]+"")&&r.set_data(n,t)},d(i){i&&r.detach(n)}}}function Dn(e){let t,n=e[43]+"",i;return{c(){t=r.element("p"),i=r.text(n)},m(a,s){r.insert(a,t,s),r.append(t,i)},p(a,s){s[0]&19&&n!==(n=a[43]+"")&&r.set_data(i,n)},d(a){a&&r.detach(t)}}}function kn(e){let t,n;function i(h,l){return h[40].descriptions.length>1?za:Za}let a=i(e),s=a(e),o=[e[12]("BonusRewardsLevelsItem")],f={};for(let h=0;h<o.length;h+=1)f=r.assign(f,o[h]);return{c(){t=r.element("div"),s.c(),n=r.space(),r.set_attributes(t,f)},m(h,l){r.insert(h,t,l),s.m(t,null),r.append(t,n)},p(h,l){a===(a=i(h))&&s?s.p(h,l):(s.d(1),s=a(h),s&&(s.c(),s.m(t,n))),r.set_attributes(t,f=r.get_spread_update(o,[l[0]&4096&&h[12]("BonusRewardsLevelsItem")]))},d(h){h&&r.detach(t),s.d()}}}function Fn(e){let t,n,i,a=r.ensure_array_like(e[0].levels),s=[];for(let u=0;u<a.length;u+=1)s[u]=jn(En(e,a,u));let o=e[0].levels.length===1&&Wn(e);function f(u,d){return u[0].levels.length>=3?Ya:Ka}let h=f(e),l=h(e);return{c(){for(let u=0;u<s.length;u+=1)s[u].c();t=r.space(),o&&o.c(),n=r.space(),l.c(),i=r.empty()},m(u,d){for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(u,d);r.insert(u,t,d),o&&o.m(u,d),r.insert(u,n,d),l.m(u,d),r.insert(u,i,d)},p(u,d){if(d[0]&4241){a=r.ensure_array_like(u[0].levels);let c;for(c=0;c<a.length;c+=1){const v=En(u,a,c);s[c]?s[c].p(v,d):(s[c]=jn(v),s[c].c(),s[c].m(t.parentNode,t))}for(;c<s.length;c+=1)s[c].d(1);s.length=a.length}u[0].levels.length===1?o?o.p(u,d):(o=Wn(u),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),h===(h=f(u))&&l?l.p(u,d):(l.d(1),l=h(u),l&&(l.c(),l.m(i.parentNode,i)))},d(u){u&&(r.detach(t),r.detach(n),r.detach(i)),r.destroy_each(s,u),o&&o.d(u),l.d(u)}}}function Un(e){let t,n,i,a,s;function o(g,p){return g[34].maxRepeats>0?qa:Ja}let f=o(e),h=f(e),l=[e[12]("BonusRewardsLevelsItemPosition")],u={};for(let g=0;g<l.length;g+=1)u=r.assign(u,l[g]);let d=r.ensure_array_like(e[34].bonuses),c=[];for(let g=0;g<d.length;g+=1)c[g]=Gn(wn(e,d,g));let v=[e[12]("BonusRewardsLevelsItem")],b={};for(let g=0;g<v.length;g+=1)b=r.assign(b,v[g]);return{c(){t=r.element("div"),n=r.element("div"),h.c(),i=r.space(),a=r.element("div");for(let g=0;g<c.length;g+=1)c[g].c();s=r.space(),r.set_attributes(n,u),r.set_attributes(t,b)},m(g,p){r.insert(g,t,p),r.append(t,n),h.m(n,null),r.append(t,i),r.append(t,a);for(let y=0;y<c.length;y+=1)c[y]&&c[y].m(a,null);r.append(t,s)},p(g,p){if(f===(f=o(g))&&h?h.p(g,p):(h.d(1),h=f(g),h&&(h.c(),h.m(n,null))),r.set_attributes(n,u=r.get_spread_update(l,[p[0]&4096&&g[12]("BonusRewardsLevelsItemPosition")])),p[0]&17){d=r.ensure_array_like(g[34].bonuses);let y;for(y=0;y<d.length;y+=1){const M=wn(g,d,y);c[y]?c[y].p(M,p):(c[y]=Gn(M),c[y].c(),c[y].m(a,null))}for(;y<c.length;y+=1)c[y].d(1);c.length=d.length}r.set_attributes(t,b=r.get_spread_update(v,[p[0]&4096&&g[12]("BonusRewardsLevelsItem")]))},d(g){g&&r.detach(t),h.d(),r.destroy_each(c,g)}}}function Ja(e){let t=e[4]("eachLevel")+"",n,i;return{c(){n=r.text(t),i=r.text(":")},m(a,s){r.insert(a,n,s),r.insert(a,i,s)},p(a,s){s[0]&16&&t!==(t=a[4]("eachLevel")+"")&&r.set_data(n,t)},d(a){a&&(r.detach(n),r.detach(i))}}}function qa(e){let t=`${e[4]("level")} ${sn(e[36],e[34],e[0])}`,n,i;return{c(){n=r.text(t),i=r.text(":")},m(a,s){r.insert(a,n,s),r.insert(a,i,s)},p(a,s){s[0]&17&&t!==(t=`${a[4]("level")} ${sn(a[36],a[34],a[0])}`)&&r.set_data(n,t)},d(a){a&&(r.detach(n),r.detach(i))}}}function Gn(e){let t,n=Rt(e[34],e[37],e[4])+"",i;return{c(){t=r.element("p"),i=r.text(n)},m(a,s){r.insert(a,t,s),r.append(t,i)},p(a,s){s[0]&17&&n!==(n=Rt(a[34],a[37],a[4])+"")&&r.set_data(i,n)},d(a){a&&r.detach(t)}}}function jn(e){let t,n=(e[7]?!0:e[36]<2)&&Un(e);return{c(){n&&n.c(),t=r.empty()},m(i,a){n&&n.m(i,a),r.insert(i,t,a)},p(i,a){i[7]||i[36]<2?n?n.p(i,a):(n=Un(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(i){i&&r.detach(t),n&&n.d(i)}}}function Wn(e){let t,n,i=[e[12]("BonusRewardsLevelsItem")],a={};for(let s=0;s<i.length;s+=1)a=r.assign(a,i[s]);return{c(){t=r.element("div"),n=r.element("p"),n.textContent=" ",r.set_attributes(t,a)},m(s,o){r.insert(s,t,o),r.append(t,n)},p(s,o){r.set_attributes(t,a=r.get_spread_update(i,[o[0]&4096&&s[12]("BonusRewardsLevelsItem")]))},d(s){s&&r.detach(t)}}}function Ka(e){let t;return{c(){t=r.element("div"),t.textContent=" ",r.attr(t,"class","ShowMore NoCursorTip")},m(n,i){r.insert(n,t,i)},p:r.noop,d(n){n&&r.detach(t)}}}function Ya(e){let t,n=(e[7]?e[4]("collapse"):e[4]("showMore"))+"",i,a,s;return{c(){t=r.element("div"),i=r.text(n),r.attr(t,"class","ShowMore")},m(o,f){r.insert(o,t,f),r.append(t,i),a||(s=r.listen(t,"click",e[26]),a=!0)},p(o,f){f[0]&144&&n!==(n=(o[7]?o[4]("collapse"):o[4]("showMore"))+"")&&r.set_data(i,n)},d(o){o&&r.detach(t),a=!1,s()}}}function Vn(e){let t,n,i=e[31]+"",a,s,o,f;function h(){return e[27](e[31])}return{c(){t=r.element("div"),n=r.element("a"),a=r.text(i),s=r.space(),r.attr(n,"href","javascript:void(0)")},m(l,u){r.insert(l,t,u),r.append(t,n),r.append(n,a),r.append(t,s),o||(f=r.listen(n,"click",h),o=!0)},p(l,u){e=l,u[0]&2048&&i!==(i=e[31]+"")&&r.set_data(a,i)},d(l){l&&r.detach(t),o=!1,f()}}}function Xn(e){let t;return{c(){t=r.element("div"),t.textContent=" "},m(n,i){r.insert(n,t,i)},d(n){n&&r.detach(t)}}}function Qa(e){let t,n,i;r.add_render_callback(e[22]);let a=e[0]&&xn(e);return{c(){a&&a.c(),t=r.empty()},m(s,o){a&&a.m(s,o),r.insert(s,t,o),n||(i=r.listen(window,"resize",e[22]),n=!0)},p(s,o){s[0]?a?a.p(s,o):(a=xn(s),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},i:r.noop,o:r.noop,d(s){s&&r.detach(t),a&&a.d(s),n=!1,i()}}}function $a(e,t,n){let i,a,s,o,f,h,l,u;r.component_subscribe(e,Cr,T=>n(21,u=T));let{rawbonus:d=""}=t,{endpoint:c=""}=t,{currency:v="EUR"}=t,{lang:b=Gt.en}=t,{session:g=""}=t,p,y=[],M,R,O="",N=!0,Z=1e3*30,D=!1;const $=()=>{try{n(0,p=pe({},JSON.parse(d)))}catch(T){console.error(T)}p&&(n(1,y=$r(p.levels)),z())},te=()=>ke(this,null,function*(){if(!g)return;Pe({type:"OnWageringBonusJoinRequest",bonusID:p.bonusID}),Pe({type:"OnWageringBonusButtonStateChanged",clickable:!1}),(yield er.start(new AbortController,c,g,p.code,v)).success&&Pe({type:"OnWageringBonusClaimed"}),Pe({type:"OnWageringBonusButtonStateChanged",clickable:!0})}),z=()=>{p&&(an(p.expiryDate,Z,()=>n(19,R="Expired"),T=>n(19,R=T)),an(p.endTime||p.trigger.endTime,Z,()=>n(20,O="Ended"),T=>n(20,O=T)))};r.onMount(()=>{const T=setInterval(()=>{z()},Z);return()=>{clearInterval(T)}}),Yn({OnWageringBonusButtonStateChanged:T=>n(6,N=T.clickable)});let ne;function j(){n(3,ne=window.innerWidth)}const W=T=>{const{maxContribution:C="undefined",minStake:F="undefined"}=T.levelInfo,ae=Re(pe({},T),{maxContribution:C,minStake:F});return l(`${p.wageringType}.target`,ae)},V=()=>l("targetOther",{status:p.status}),se=()=>Pe({type:"OnWageringBonusAllRewardsClick",bonusWalletID:p.id}),ie=()=>n(7,D=!D),E=T=>Pe({type:"OnWageringBonusSupportClicked",support:T});return e.$$set=T=>{"rawbonus"in T&&n(14,d=T.rawbonus),"endpoint"in T&&n(15,c=T.endpoint),"currency"in T&&n(16,v=T.currency),"lang"in T&&n(17,b=T.lang),"session"in T&&n(18,g=T.session)},e.$$.update=()=>{e.$$.dirty[0]&16384&&d&&$(),e.$$.dirty[0]&131072&&b&&Wa(b),e.$$.dirty[0]&8&&n(5,i=ne<=648),e.$$.dirty[0]&32&&n(12,a=(T,C="")=>ft(`${T}${i?` ${T}Mobile`:""}`,C)),e.$$.dirty[0]&3&&n(2,M=(p==null?void 0:p.bonusWalletID)&&ei(p,y)),e.$$.dirty[0]&1&&n(11,s=p?p.status?p.products||[]:p.wallet?Object.keys(p.wallet).filter(T=>["sports","casino"].includes(T)):[]:[]),e.$$.dirty[0]&2097152&&n(4,l=(T,C={})=>u("wageringBonuses."+T,{values:C})),e.$$.dirty[0]&1048595&&n(10,o=p&&!p.status?[{key:"Levels",svg:$t,text:tr(p,`${l("infinite")} ${l("levels")}`,`${y.length} ${y.length>1?l("levels"):l("level")}`)},{key:"Period",svg:Qt,text:O}]:[]),e.$$.dirty[0]&5&&n(9,f=(()=>{const T=[q.completed,q.released].includes(p==null?void 0:p.status);return p&&T?[{key:"Status",svg:Qt,text:"Completed"},{key:"Levels",svg:$t,text:`Levels finished: ${M.textWithLength}`}]:[]})()),e.$$.dirty[0]&524288&&n(8,h=R&&[{key:"ExpiryTime",svg:Gr,text:R}]),e.$$.dirty[0]&524289&&R&&p.status===q.active&&["Expired","Ended"].includes(R)&&setTimeout(()=>Pe({type:"OnWageringBonusExpired"}),5e3)},[p,y,M,ne,l,i,N,D,h,f,o,s,a,te,d,c,v,b,g,R,O,u,j,W,V,se,ie,E]}class es extends r.SvelteComponent{constructor(t){super(),r.init(this,t,$a,Qa,r.safe_not_equal,{rawbonus:14,endpoint:15,currency:16,lang:17,session:18},Xa,[-1,-1])}get rawbonus(){return this.$$.ctx[14]}set rawbonus(t){this.$$set({rawbonus:t}),r.flush()}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),r.flush()}get currency(){return this.$$.ctx[16]}set currency(t){this.$$set({currency:t}),r.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),r.flush()}get session(){return this.$$.ctx[18]}set session(t){this.$$set({session:t}),r.flush()}}customElements.define("private-casino-wagering-bonus",r.create_custom_element(es,{rawbonus:{},endpoint:{},currency:{},lang:{},session:{}},[],[],!0));if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./GeneralAnimationLoading-Cfg5j6wN.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}const ts={en:{wageringBonuses:{wageringBonus:"Wagering Bonus",levels:"Levels",level:"Level",eachLevel:"Each Level",infinite:"Infinite",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",terms:"Terms and Conditions",termsTip:'Learn more about the challenge rules and included games or events in <a target="__blank" href={tcUrl} > Terms and Conditions </a> section',rewards:"Rewards",allRewards:"All Rewards",includeBets:"Include bets",showMore:"Show More",collapse:"Collapse",claimable:"Claimable",active:"Active",completed:"Completed",locked:"Locked",inProgress:"InProgress",noBonuses:"No wagering bonuses found",status:"Status",target:"Target",targetOther:"This bonus is {status}",money:{target:"Play for {currencySymbol}{currentLevelIncrement} in total",remaining:"Remaining: {currencySymbol}{gap}",wagered:"Wagered: {currencySymbol}{wagered}"},betCount:{target:"Place {currentLevelIncrement}/{maxContribution} bets of at least {minStake} each",remaining:"Bets Remaining: {gap} bets",wagered:"Bets Placed: {wagered} bets"},reward:{cashBack:"Enroll to Cash Back",tournamentTicket:"Enroll to Tournament Ticket",oddsBoost:"Enroll to Odds Boost",freeRound:"{freespinNumber} Free Spins",percentage:"{bonusAmount}% up to {currency}{capAmount}",fixed:"{currency}{bonusAmount}",standard:"Bonus Money",freeBet:"Free Bet"},forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyWageringBonuses:"See My Wagering Bonuses"}},tr:{wageringBonuses:{wageringBonus:"Bahis Bonusu",levels:"Seviyeler",level:"Seviye",eachLevel:"Her Seviye",infinite:"Sonsuz",current:"Akım",next:"Sonraki",first:"Birinci",last:"Son",previous:"Öncesi",startChallenge:"MEYDAN OKUMAYA BAŞLA",terms:"Şartlar ve koşullar",termsTip:"<a target=__blank href={tcUrl} > Şartlar ve Koşullar </a> bölümünde yarışma kuralları ve dahil edilen oyunlar veya etkinlikler hakkında daha fazla bilgi edinin.",rewards:"Ödüller",allRewards:"Tüm Ödüller",includeBets:"Bahisleri dahil et",showMore:"Daha fazla göster",collapse:"Yıkılmak",claimable:"Hak talebinde bulunulabilir",active:"Aktif",completed:"Tamamlanmış",locked:"Kilitli",inProgress:"Devam etmekte",noBonuses:"Bahis bonusu bulunamadı",status:"Durum",target:"Hedef",targetOther:"Bu bonus: {status}",money:{target:"Toplamda {currencySymbol}{currentLevelIncrement} kadar oynayın",remaining:"Kalan: {currencySymbol}{gap}",wagered:"Bahis: {currencySymbol}{wagered}"},betCount:{target:"Her biri en az {minStake} tutarında {currentLevelIncrement}/{maxContribution} bahis yapın",remaining:"Kalan Bahisler: {gap} bahis",wagered:"Yapılan Bahisler: {wagered} bahis"},reward:{cashBack:"Nakit İadesine Kaydolun",tournamentTicket:"Turnuva Biletine Kayıt Olun",oddsBoost:"Odds Boost'a kaydolun",freeRound:"{freespinNumber} Ücretsiz Döndürme",percentage:"{currency}{capAmount}'a kadar %{bonusAmount}",fixed:"{currency}{bonusAmount}",standard:"Bonus Para",freeBet:"Ücretsiz Bahis"},forwardCasino:"Dahil edilen casino oyunlarına bakın",forwardSports:"Dahil edilen sporları görün",forwardMyWageringBonuses:"Bahis Bonuslarımı Görün"}}},ns=(e,t)=>{const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)},rs=(e,t)=>{const n=new URL(t),i=document.createElement("style");fetch(n.href).then(a=>a.text()).then(a=>{i.innerHTML=a,setTimeout(()=>{e.appendChild(i)},1)})},is=(e,t)=>{fetch(e).then(i=>i.json()).then(i=>{Object.keys(i).forEach(a=>{t(a,i[a])})}).catch(i=>{console.log(i)})};function as(e){r.append_styles(e,"svelte-y8n14r","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}casino-wagering-bonus::part(Root){margin-bottom:30px}.Root{background:var(--emw--color-white, #FFFFFF);padding:20px;color:var(--emw--color-black, #000000)}.Bonuses{display:flex;flex-wrap:wrap;justify-content:left;margin-top:10px;column-gap:10px}.BonusesMobile>casino-wagering-bonus{width:100%}.WageringTabs{margin:20px 0;font-size:16px}.WageringTab{display:inline;padding:8px;cursor:pointer;color:#000000;border-bottom:1px solid #00AEEF}.WageringTab.active{color:#00AEEF;border-bottom-width:3px;padding-bottom:6px;font-weight:700}.WageringTabsMobile{display:flex;justify-content:space-around}.WageringTabMobile{width:100%;text-align:center}.Error{color:red}")}function Zn(e,t,n){const i=e.slice();return i[30]=t[n],i}function zn(e,t,n){const i=e.slice();return i[33]=t[n],i}function Jn(e){let t,n=e[10](e[33])+"",i,a,s,o,f=[e[11]("WageringTab")],h={};for(let u=0;u<f.length;u+=1)h=r.assign(h,f[u]);function l(){return e[21](e[33])}return{c(){t=r.element("div"),i=r.text(n),a=r.space(),r.set_attributes(t,h),r.toggle_class(t,"active",e[0]===e[33])},m(u,d){r.insert(u,t,d),r.append(t,i),r.append(t,a),s||(o=r.listen(t,"click",l),s=!0)},p(u,d){e=u,d[0]&1024&&n!==(n=e[10](e[33])+"")&&r.set_data_maybe_contenteditable(i,n,h.contenteditable),r.set_attributes(t,h=r.get_spread_update(f,[d[0]&2048&&e[11]("WageringTab")])),r.toggle_class(t,"active",e[0]===e[33])},d(u){u&&r.detach(t),s=!1,o()}}}function ss(e){let t;function n(f,h){return f[7].length>0?fs:f[9]?us:ls}let i=n(e),a=i(e),s=[e[11]("Bonuses")],o={};for(let f=0;f<s.length;f+=1)o=r.assign(o,s[f]);return{c(){t=r.element("div"),a.c(),r.set_attributes(t,o)},m(f,h){r.insert(f,t,h),a.m(t,null)},p(f,h){i===(i=n(f))&&a?a.p(f,h):(a.d(1),a=i(f),a&&(a.c(),a.m(t,null))),r.set_attributes(t,o=r.get_spread_update(s,[h[0]&2048&&f[11]("Bonuses")]))},d(f){f&&r.detach(t),a.d()}}}function os(e){let t;return{c(){t=r.element("general-animation-loading")},m(n,i){r.insert(n,t,i)},p:r.noop,d(n){n&&r.detach(t)}}}function ls(e){let t=e[10]("noBonuses")+"",n;return{c(){n=r.text(t)},m(i,a){r.insert(i,n,a)},p(i,a){a[0]&1024&&t!==(t=i[10]("noBonuses")+"")&&r.set_data(n,t)},d(i){i&&r.detach(n)}}}function us(e){let t,n,i;return{c(){t=r.element("div"),n=r.text("Error: "),i=r.text(e[9]),r.attr(t,"class","Error")},m(a,s){r.insert(a,t,s),r.append(t,n),r.append(t,i)},p(a,s){s[0]&512&&r.set_data(i,a[9])},d(a){a&&r.detach(t)}}}function fs(e){let t,n=r.ensure_array_like(e[7]),i=[];for(let a=0;a<n.length;a+=1)i[a]=qn(Zn(e,n,a));return{c(){for(let a=0;a<i.length;a+=1)i[a].c();t=r.empty()},m(a,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(a,s);r.insert(a,t,s)},p(a,s){if(s[0]&158){n=r.ensure_array_like(a[7]);let o;for(o=0;o<n.length;o+=1){const f=Zn(a,n,o);i[o]?i[o].p(f,s):(i[o]=qn(f),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(a){a&&r.detach(t),r.destroy_each(i,a)}}}function qn(e){let t,n=[{endpoint:e[1],session:e[3],lang:e[2],currency:e[4],rawbonus:JSON.stringify(e[30])}],i={};for(let a=0;a<n.length;a+=1)i=r.assign(i,n[a]);return{c(){t=r.element("private-casino-wagering-bonus"),r.set_attributes(t,i)},m(a,s){r.insert(a,t,s)},p(a,s){r.set_attributes(t,i=r.get_spread_update(n,[s[0]&158&&{endpoint:a[1],session:a[3],lang:a[2],currency:a[4],rawbonus:JSON.stringify(a[30])}]))},d(a){a&&r.detach(t)}}}function hs(e){let t,n,i,a,s,o=r.ensure_array_like(Object.values(tt)),f=[];for(let g=0;g<o.length;g+=1)f[g]=Jn(zn(e,o,g));let h=[e[11]("WageringTabs")],l={};for(let g=0;g<h.length;g+=1)l=r.assign(l,h[g]);function u(g,p){return g[8]?os:ss}let d=u(e),c=d(e),v=[e[11]("Root")],b={};for(let g=0;g<v.length;g+=1)b=r.assign(b,v[g]);return{c(){t=r.element("div"),n=r.element("section");for(let g=0;g<f.length;g+=1)f[g].c();i=r.space(),a=r.element("div"),c.c(),r.set_attributes(n,l),r.set_attributes(t,b),r.add_render_callback(()=>e[23].call(t))},m(g,p){r.insert(g,t,p),r.append(t,n);for(let y=0;y<f.length;y+=1)f[y]&&f[y].m(n,null);r.append(t,i),r.append(t,a),c.m(a,null),e[22](t),s=r.add_iframe_resize_listener(t,e[23].bind(t))},p(g,p){if(p[0]&7169){o=r.ensure_array_like(Object.values(tt));let y;for(y=0;y<o.length;y+=1){const M=zn(g,o,y);f[y]?f[y].p(M,p):(f[y]=Jn(M),f[y].c(),f[y].m(n,null))}for(;y<f.length;y+=1)f[y].d(1);f.length=o.length}r.set_attributes(n,l=r.get_spread_update(h,[p[0]&2048&&g[11]("WageringTabs")])),d===(d=u(g))&&c?c.p(g,p):(c.d(1),c=d(g),c&&(c.c(),c.m(a,null))),r.set_attributes(t,b=r.get_spread_update(v,[p[0]&2048&&g[11]("Root")]))},i:r.noop,o:r.noop,d(g){g&&r.detach(t),r.destroy_each(f,g),c.d(),e[22](null),s()}}}function cs(e,t,n){let i,a,s,o;r.component_subscribe(e,Cr,E=>n(20,o=E));let{endpoint:f=""}=t,{lang:h=Gt.en}=t,{session:l=""}=t,{currency:u="EUR"}=t,{filter:d=tt.claimable}=t,{limit:c=""}=t,{sortorder:v="desc"}=t,{clientstyling:b=""}=t,{clientstylingurl:g=""}=t,{translationurl:p=""}=t,y,M=!1;r.onMount(()=>(n(18,M=!0),()=>{n(18,M=!1)}));let R=[],O,N={},Z=!0,D="",$;Va(ts);const te=zr({WageringProgressUpdate:E=>{n(7,R=R.map(T=>{let C=E==null?void 0:E.items[T.bonusWalletID];if(!C)return T;const{maxIdObj:F,maxId:ae}=qr(C);let{status:ce,level:S,levelIncrement:X,gap:de}=F;N[T.id]=ae;let K=pe({},T);return K=Re(pe({},K),{wageringProgress:Re(pe({},K.wageringProgress),{currentLevel:S,currentLevelIncrement:X,gap:de})}),ce&&(K=Re(pe({},K),{status:ce}),setTimeout(()=>j(),500),ce!==d)?null:K}).filter(T=>T))}}),z=()=>ke(this,null,function*(){$==null||$.abort(),$=new AbortController;try{const E=yield er.list($,f,l,{lang:h,status:d==="claimable"?"claimable":ti(d),limit:c,sortOrder:v||"desc"});E.success?(n(7,R=E.items||E.bonuses),wt(O,te),d===tt.active&&ne()):n(9,D=E.errorMessage)}catch(E){if(E.name=="AbortError")return;console.error(E)}}),ne=()=>{wt(O,te),O=Yr(f,l,R,te,N),O==null||O.onerror.bind(null,()=>{ne()})},j=()=>ke(this,null,function*(){!M||!d||!h||!l||!f||(n(8,Z=!0),yield z(),n(8,Z=!1))});Yn({OnWageringBonusClaimed:()=>j(),OnWageringBonusExpired:()=>j()}),r.onMount(()=>()=>wt(O,te));let W;const V=E=>{d!==E&&(n(0,d=E),j())};function se(E){r.binding_callbacks[E?"unshift":"push"](()=>{y=E,n(5,y)})}function ie(){W=this.clientWidth,n(6,W)}return e.$$set=E=>{"endpoint"in E&&n(1,f=E.endpoint),"lang"in E&&n(2,h=E.lang),"session"in E&&n(3,l=E.session),"currency"in E&&n(4,u=E.currency),"filter"in E&&n(0,d=E.filter),"limit"in E&&n(13,c=E.limit),"sortorder"in E&&n(14,v=E.sortorder),"clientstyling"in E&&n(15,b=E.clientstyling),"clientstylingurl"in E&&n(16,g=E.clientstylingurl),"translationurl"in E&&n(17,p=E.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&32800&&y&&b&&ns(y,b),e.$$.dirty[0]&65568&&y&&g&&rs(y,g),e.$$.dirty[0]&131072&&p&&is(p,xr),e.$$.dirty[0]&262144&&M&&j(),e.$$.dirty[0]&2&&f&&j(),e.$$.dirty[0]&4&&h&&j(),e.$$.dirty[0]&8&&l&&j(),e.$$.dirty[0]&16384&&v&&j(),e.$$.dirty[0]&64&&n(19,i=W<=648),e.$$.dirty[0]&524288&&n(11,a=E=>ft(`${E}${i?` ${E}Mobile`:""}`)),e.$$.dirty[0]&1048576&&n(10,s=(E,T={})=>o("wageringBonuses."+E,{values:T}))},[d,f,h,l,u,y,W,R,Z,D,s,a,j,c,v,b,g,p,M,i,o,V,se,ie]}class Ar extends r.SvelteComponent{constructor(t){super(),r.init(this,t,cs,hs,r.safe_not_equal,{endpoint:1,lang:2,session:3,currency:4,filter:0,limit:13,sortorder:14,clientstyling:15,clientstylingurl:16,translationurl:17},as,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),r.flush()}get lang(){return this.$$.ctx[2]}set lang(t){this.$$set({lang:t}),r.flush()}get session(){return this.$$.ctx[3]}set session(t){this.$$set({session:t}),r.flush()}get currency(){return this.$$.ctx[4]}set currency(t){this.$$set({currency:t}),r.flush()}get filter(){return this.$$.ctx[0]}set filter(t){this.$$set({filter:t}),r.flush()}get limit(){return this.$$.ctx[13]}set limit(t){this.$$set({limit:t}),r.flush()}get sortorder(){return this.$$.ctx[14]}set sortorder(t){this.$$set({sortorder:t}),r.flush()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),r.flush()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),r.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),r.flush()}}r.create_custom_element(Ar,{endpoint:{},lang:{},session:{},currency:{},filter:{},limit:{},sortorder:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Ar;
10
+ `);for(let c=0;c<l.length;c+=1)l[c].c();r.set_attributes(t,d)},m(c,v){r.insert(c,t,v),r.append(t,i),r.append(t,a),r.append(t,o),r.append(t,f);for(let b=0;b<l.length;b+=1)l[b]&&l[b].m(t,null)},p(c,v){if(v[0]&19&&n!==(n=c[4](c[40].key)+"")&&r.set_data_maybe_contenteditable(i,n,d.contenteditable),v[0]&16&&s!==(s=c[4]("level")+"")&&r.set_data_maybe_contenteditable(o,s,d.contenteditable),v[0]&19){h=r.ensure_array_like(c[40].descriptions);let b;for(b=0;b<h.length;b+=1){const g=Sn(c,h,b);l[b]?l[b].p(g,v):(l[b]=Nn(g),l[b].c(),l[b].m(t,null))}for(;b<l.length;b+=1)l[b].d(1);l.length=h.length}r.set_attributes(t,d=r.get_spread_update(u,[v[0]&4096&&c[12]("BonusRewardsLevelsItemPosition")]))},d(c){c&&r.detach(t),r.destroy_each(l,c)}}}function za(e){let t,n=e[4](e[40].key)+"",i,a,s=e[4]("level")+"",o,f,h,l,u=[e[12]("BonusRewardsLevelsItemPosition")],d={};for(let b=0;b<u.length;b+=1)d=r.assign(d,u[b]);let c=r.ensure_array_like(e[40].descriptions),v=[];for(let b=0;b<c.length;b+=1)v[b]=Dn(Bn(e,c,b));return{c(){t=r.element("div"),i=r.text(n),a=r.space(),o=r.text(s),f=r.text(":"),h=r.space(),l=r.element("div");for(let b=0;b<v.length;b+=1)v[b].c();r.set_attributes(t,d)},m(b,g){r.insert(b,t,g),r.append(t,i),r.append(t,a),r.append(t,o),r.append(t,f),r.insert(b,h,g),r.insert(b,l,g);for(let p=0;p<v.length;p+=1)v[p]&&v[p].m(l,null)},p(b,g){if(g[0]&19&&n!==(n=b[4](b[40].key)+"")&&r.set_data_maybe_contenteditable(i,n,d.contenteditable),g[0]&16&&s!==(s=b[4]("level")+"")&&r.set_data_maybe_contenteditable(o,s,d.contenteditable),r.set_attributes(t,d=r.get_spread_update(u,[g[0]&4096&&b[12]("BonusRewardsLevelsItemPosition")])),g[0]&19){c=r.ensure_array_like(b[40].descriptions);let p;for(p=0;p<c.length;p+=1){const y=Bn(b,c,p);v[p]?v[p].p(y,g):(v[p]=Dn(y),v[p].c(),v[p].m(l,null))}for(;p<v.length;p+=1)v[p].d(1);v.length=c.length}},d(b){b&&(r.detach(t),r.detach(h),r.detach(l)),r.destroy_each(v,b)}}}function Nn(e){let t=e[43]+"",n;return{c(){n=r.text(t)},m(i,a){r.insert(i,n,a)},p(i,a){a[0]&19&&t!==(t=i[43]+"")&&r.set_data(n,t)},d(i){i&&r.detach(n)}}}function Dn(e){let t,n=e[43]+"",i;return{c(){t=r.element("p"),i=r.text(n)},m(a,s){r.insert(a,t,s),r.append(t,i)},p(a,s){s[0]&19&&n!==(n=a[43]+"")&&r.set_data(i,n)},d(a){a&&r.detach(t)}}}function kn(e){let t,n;function i(h,l){return h[40].descriptions.length>1?za:Za}let a=i(e),s=a(e),o=[e[12]("BonusRewardsLevelsItem")],f={};for(let h=0;h<o.length;h+=1)f=r.assign(f,o[h]);return{c(){t=r.element("div"),s.c(),n=r.space(),r.set_attributes(t,f)},m(h,l){r.insert(h,t,l),s.m(t,null),r.append(t,n)},p(h,l){a===(a=i(h))&&s?s.p(h,l):(s.d(1),s=a(h),s&&(s.c(),s.m(t,n))),r.set_attributes(t,f=r.get_spread_update(o,[l[0]&4096&&h[12]("BonusRewardsLevelsItem")]))},d(h){h&&r.detach(t),s.d()}}}function Fn(e){let t,n,i,a=r.ensure_array_like(e[0].levels),s=[];for(let u=0;u<a.length;u+=1)s[u]=jn(En(e,a,u));let o=e[0].levels.length===1&&Wn(e);function f(u,d){return u[0].levels.length>=3?Ya:Ka}let h=f(e),l=h(e);return{c(){for(let u=0;u<s.length;u+=1)s[u].c();t=r.space(),o&&o.c(),n=r.space(),l.c(),i=r.empty()},m(u,d){for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(u,d);r.insert(u,t,d),o&&o.m(u,d),r.insert(u,n,d),l.m(u,d),r.insert(u,i,d)},p(u,d){if(d[0]&4241){a=r.ensure_array_like(u[0].levels);let c;for(c=0;c<a.length;c+=1){const v=En(u,a,c);s[c]?s[c].p(v,d):(s[c]=jn(v),s[c].c(),s[c].m(t.parentNode,t))}for(;c<s.length;c+=1)s[c].d(1);s.length=a.length}u[0].levels.length===1?o?o.p(u,d):(o=Wn(u),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),h===(h=f(u))&&l?l.p(u,d):(l.d(1),l=h(u),l&&(l.c(),l.m(i.parentNode,i)))},d(u){u&&(r.detach(t),r.detach(n),r.detach(i)),r.destroy_each(s,u),o&&o.d(u),l.d(u)}}}function Un(e){let t,n,i,a,s;function o(g,p){return g[34].maxRepeats>0?qa:Ja}let f=o(e),h=f(e),l=[e[12]("BonusRewardsLevelsItemPosition")],u={};for(let g=0;g<l.length;g+=1)u=r.assign(u,l[g]);let d=r.ensure_array_like(e[34].bonuses),c=[];for(let g=0;g<d.length;g+=1)c[g]=Gn(wn(e,d,g));let v=[e[12]("BonusRewardsLevelsItem")],b={};for(let g=0;g<v.length;g+=1)b=r.assign(b,v[g]);return{c(){t=r.element("div"),n=r.element("div"),h.c(),i=r.space(),a=r.element("div");for(let g=0;g<c.length;g+=1)c[g].c();s=r.space(),r.set_attributes(n,u),r.set_attributes(t,b)},m(g,p){r.insert(g,t,p),r.append(t,n),h.m(n,null),r.append(t,i),r.append(t,a);for(let y=0;y<c.length;y+=1)c[y]&&c[y].m(a,null);r.append(t,s)},p(g,p){if(f===(f=o(g))&&h?h.p(g,p):(h.d(1),h=f(g),h&&(h.c(),h.m(n,null))),r.set_attributes(n,u=r.get_spread_update(l,[p[0]&4096&&g[12]("BonusRewardsLevelsItemPosition")])),p[0]&17){d=r.ensure_array_like(g[34].bonuses);let y;for(y=0;y<d.length;y+=1){const M=wn(g,d,y);c[y]?c[y].p(M,p):(c[y]=Gn(M),c[y].c(),c[y].m(a,null))}for(;y<c.length;y+=1)c[y].d(1);c.length=d.length}r.set_attributes(t,b=r.get_spread_update(v,[p[0]&4096&&g[12]("BonusRewardsLevelsItem")]))},d(g){g&&r.detach(t),h.d(),r.destroy_each(c,g)}}}function Ja(e){let t=e[4]("eachLevel")+"",n,i;return{c(){n=r.text(t),i=r.text(":")},m(a,s){r.insert(a,n,s),r.insert(a,i,s)},p(a,s){s[0]&16&&t!==(t=a[4]("eachLevel")+"")&&r.set_data(n,t)},d(a){a&&(r.detach(n),r.detach(i))}}}function qa(e){let t=`${e[4]("level")} ${sn(e[36],e[34],e[0])}`,n,i;return{c(){n=r.text(t),i=r.text(":")},m(a,s){r.insert(a,n,s),r.insert(a,i,s)},p(a,s){s[0]&17&&t!==(t=`${a[4]("level")} ${sn(a[36],a[34],a[0])}`)&&r.set_data(n,t)},d(a){a&&(r.detach(n),r.detach(i))}}}function Gn(e){let t,n=Rt(e[34],e[37],e[4])+"",i;return{c(){t=r.element("p"),i=r.text(n)},m(a,s){r.insert(a,t,s),r.append(t,i)},p(a,s){s[0]&17&&n!==(n=Rt(a[34],a[37],a[4])+"")&&r.set_data(i,n)},d(a){a&&r.detach(t)}}}function jn(e){let t,n=(e[7]?!0:e[36]<2)&&Un(e);return{c(){n&&n.c(),t=r.empty()},m(i,a){n&&n.m(i,a),r.insert(i,t,a)},p(i,a){i[7]||i[36]<2?n?n.p(i,a):(n=Un(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(i){i&&r.detach(t),n&&n.d(i)}}}function Wn(e){let t,n,i=[e[12]("BonusRewardsLevelsItem")],a={};for(let s=0;s<i.length;s+=1)a=r.assign(a,i[s]);return{c(){t=r.element("div"),n=r.element("p"),n.textContent=" ",r.set_attributes(t,a)},m(s,o){r.insert(s,t,o),r.append(t,n)},p(s,o){r.set_attributes(t,a=r.get_spread_update(i,[o[0]&4096&&s[12]("BonusRewardsLevelsItem")]))},d(s){s&&r.detach(t)}}}function Ka(e){let t;return{c(){t=r.element("div"),t.textContent=" ",r.attr(t,"class","ShowMore NoCursorTip")},m(n,i){r.insert(n,t,i)},p:r.noop,d(n){n&&r.detach(t)}}}function Ya(e){let t,n=(e[7]?e[4]("collapse"):e[4]("showMore"))+"",i,a,s;return{c(){t=r.element("div"),i=r.text(n),r.attr(t,"class","ShowMore")},m(o,f){r.insert(o,t,f),r.append(t,i),a||(s=r.listen(t,"click",e[26]),a=!0)},p(o,f){f[0]&144&&n!==(n=(o[7]?o[4]("collapse"):o[4]("showMore"))+"")&&r.set_data(i,n)},d(o){o&&r.detach(t),a=!1,s()}}}function Vn(e){let t,n,i=e[31]+"",a,s,o,f;function h(){return e[27](e[31])}return{c(){t=r.element("div"),n=r.element("a"),a=r.text(i),s=r.space(),r.attr(n,"href","javascript:void(0)")},m(l,u){r.insert(l,t,u),r.append(t,n),r.append(n,a),r.append(t,s),o||(f=r.listen(n,"click",h),o=!0)},p(l,u){e=l,u[0]&2048&&i!==(i=e[31]+"")&&r.set_data(a,i)},d(l){l&&r.detach(t),o=!1,f()}}}function Xn(e){let t;return{c(){t=r.element("div"),t.textContent=" "},m(n,i){r.insert(n,t,i)},d(n){n&&r.detach(t)}}}function Qa(e){let t,n,i;r.add_render_callback(e[22]);let a=e[0]&&xn(e);return{c(){a&&a.c(),t=r.empty()},m(s,o){a&&a.m(s,o),r.insert(s,t,o),n||(i=r.listen(window,"resize",e[22]),n=!0)},p(s,o){s[0]?a?a.p(s,o):(a=xn(s),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},i:r.noop,o:r.noop,d(s){s&&r.detach(t),a&&a.d(s),n=!1,i()}}}function $a(e,t,n){let i,a,s,o,f,h,l,u;r.component_subscribe(e,Cr,T=>n(21,u=T));let{rawbonus:d=""}=t,{endpoint:c=""}=t,{currency:v="EUR"}=t,{lang:b=Gt.en}=t,{session:g=""}=t,p,y=[],M,R,O="",N=!0,Z=1e3*30,D=!1;const $=()=>{try{n(0,p=pe({},JSON.parse(d)))}catch(T){console.error(T)}p&&(n(1,y=$r(p.levels)),z())},te=()=>ke(this,null,function*(){if(!g)return;Pe({type:"OnWageringBonusJoinRequest",bonusID:p.bonusID}),Pe({type:"OnWageringBonusButtonStateChanged",clickable:!1}),(yield er.start(new AbortController,c,g,p.code,v)).success&&Pe({type:"OnWageringBonusClaimed"}),Pe({type:"OnWageringBonusButtonStateChanged",clickable:!0})}),z=()=>{p&&(an(p.expiryDate,Z,()=>n(19,R="Expired"),T=>n(19,R=T)),an(p.endTime||p.trigger.endTime,Z,()=>n(20,O="Ended"),T=>n(20,O=T)))};r.onMount(()=>{const T=setInterval(()=>{z()},Z);return()=>{clearInterval(T)}}),Yn({OnWageringBonusButtonStateChanged:T=>n(6,N=T.clickable)});let ne;function j(){n(3,ne=window.innerWidth)}const W=T=>{const{maxContribution:C="undefined",minStake:F="undefined"}=T.levelInfo,ae=Re(pe({},T),{maxContribution:C,minStake:F});return l(`${p.wageringType}.target`,ae)},V=()=>l("targetOther",{status:p.status}),se=()=>Pe({type:"OnWageringBonusAllRewardsClick",bonusWalletID:p.id}),ie=()=>n(7,D=!D),E=T=>Pe({type:"OnWageringBonusSupportClicked",support:T});return e.$$set=T=>{"rawbonus"in T&&n(14,d=T.rawbonus),"endpoint"in T&&n(15,c=T.endpoint),"currency"in T&&n(16,v=T.currency),"lang"in T&&n(17,b=T.lang),"session"in T&&n(18,g=T.session)},e.$$.update=()=>{e.$$.dirty[0]&16384&&d&&$(),e.$$.dirty[0]&131072&&b&&Wa(b),e.$$.dirty[0]&8&&n(5,i=ne<=648),e.$$.dirty[0]&32&&n(12,a=(T,C="")=>ft(`${T}${i?` ${T}Mobile`:""}`,C)),e.$$.dirty[0]&3&&n(2,M=(p==null?void 0:p.bonusWalletID)&&ei(p,y)),e.$$.dirty[0]&1&&n(11,s=p?p.status?p.products||[]:p.wallet?Object.keys(p.wallet).filter(T=>["sports","casino"].includes(T)):[]:[]),e.$$.dirty[0]&2097152&&n(4,l=(T,C={})=>u("wageringBonuses."+T,{values:C})),e.$$.dirty[0]&1048595&&n(10,o=p&&!p.status?[{key:"Levels",svg:$t,text:tr(p,`${l("infinite")} ${l("levels")}`,`${y.length} ${y.length>1?l("levels"):l("level")}`)},{key:"Period",svg:Qt,text:O}]:[]),e.$$.dirty[0]&5&&n(9,f=(()=>{const T=[q.completed,q.released].includes(p==null?void 0:p.status);return p&&T?[{key:"Status",svg:Qt,text:"Completed"},{key:"Levels",svg:$t,text:`Levels finished: ${M.textWithLength}`}]:[]})()),e.$$.dirty[0]&524288&&n(8,h=R&&[{key:"ExpiryTime",svg:Gr,text:R}]),e.$$.dirty[0]&524289&&R&&p.status===q.active&&["Expired","Ended"].includes(R)&&setTimeout(()=>Pe({type:"OnWageringBonusExpired"}),5e3)},[p,y,M,ne,l,i,N,D,h,f,o,s,a,te,d,c,v,b,g,R,O,u,j,W,V,se,ie,E]}class es extends r.SvelteComponent{constructor(t){super(),r.init(this,t,$a,Qa,r.safe_not_equal,{rawbonus:14,endpoint:15,currency:16,lang:17,session:18},Xa,[-1,-1])}get rawbonus(){return this.$$.ctx[14]}set rawbonus(t){this.$$set({rawbonus:t}),r.flush()}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),r.flush()}get currency(){return this.$$.ctx[16]}set currency(t){this.$$set({currency:t}),r.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),r.flush()}get session(){return this.$$.ctx[18]}set session(t){this.$$set({session:t}),r.flush()}}customElements.define("private-casino-wagering-bonus",r.create_custom_element(es,{rawbonus:{},endpoint:{},currency:{},lang:{},session:{}},[],[],!0));if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./GeneralAnimationLoading--FAmIapk.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}const ts={en:{wageringBonuses:{wageringBonus:"Wagering Bonus",levels:"Levels",level:"Level",eachLevel:"Each Level",infinite:"Infinite",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",terms:"Terms and Conditions",termsTip:'Learn more about the challenge rules and included games or events in <a target="__blank" href={tcUrl} > Terms and Conditions </a> section',rewards:"Rewards",allRewards:"All Rewards",includeBets:"Include bets",showMore:"Show More",collapse:"Collapse",claimable:"Claimable",active:"Active",completed:"Completed",locked:"Locked",inProgress:"InProgress",noBonuses:"No wagering bonuses found",status:"Status",target:"Target",targetOther:"This bonus is {status}",money:{target:"Play for {currencySymbol}{currentLevelIncrement} in total",remaining:"Remaining: {currencySymbol}{gap}",wagered:"Wagered: {currencySymbol}{wagered}"},betCount:{target:"Place {currentLevelIncrement}/{maxContribution} bets of at least {minStake} each",remaining:"Bets Remaining: {gap} bets",wagered:"Bets Placed: {wagered} bets"},reward:{cashBack:"Enroll to Cash Back",tournamentTicket:"Enroll to Tournament Ticket",oddsBoost:"Enroll to Odds Boost",freeRound:"{freespinNumber} Free Spins",percentage:"{bonusAmount}% up to {currency}{capAmount}",fixed:"{currency}{bonusAmount}",standard:"Bonus Money",freeBet:"Free Bet"},forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyWageringBonuses:"See My Wagering Bonuses"}},tr:{wageringBonuses:{wageringBonus:"Bahis Bonusu",levels:"Seviyeler",level:"Seviye",eachLevel:"Her Seviye",infinite:"Sonsuz",current:"Akım",next:"Sonraki",first:"Birinci",last:"Son",previous:"Öncesi",startChallenge:"MEYDAN OKUMAYA BAŞLA",terms:"Şartlar ve koşullar",termsTip:"<a target=__blank href={tcUrl} > Şartlar ve Koşullar </a> bölümünde yarışma kuralları ve dahil edilen oyunlar veya etkinlikler hakkında daha fazla bilgi edinin.",rewards:"Ödüller",allRewards:"Tüm Ödüller",includeBets:"Bahisleri dahil et",showMore:"Daha fazla göster",collapse:"Yıkılmak",claimable:"Hak talebinde bulunulabilir",active:"Aktif",completed:"Tamamlanmış",locked:"Kilitli",inProgress:"Devam etmekte",noBonuses:"Bahis bonusu bulunamadı",status:"Durum",target:"Hedef",targetOther:"Bu bonus: {status}",money:{target:"Toplamda {currencySymbol}{currentLevelIncrement} kadar oynayın",remaining:"Kalan: {currencySymbol}{gap}",wagered:"Bahis: {currencySymbol}{wagered}"},betCount:{target:"Her biri en az {minStake} tutarında {currentLevelIncrement}/{maxContribution} bahis yapın",remaining:"Kalan Bahisler: {gap} bahis",wagered:"Yapılan Bahisler: {wagered} bahis"},reward:{cashBack:"Nakit İadesine Kaydolun",tournamentTicket:"Turnuva Biletine Kayıt Olun",oddsBoost:"Odds Boost'a kaydolun",freeRound:"{freespinNumber} Ücretsiz Döndürme",percentage:"{currency}{capAmount}'a kadar %{bonusAmount}",fixed:"{currency}{bonusAmount}",standard:"Bonus Para",freeBet:"Ücretsiz Bahis"},forwardCasino:"Dahil edilen casino oyunlarına bakın",forwardSports:"Dahil edilen sporları görün",forwardMyWageringBonuses:"Bahis Bonuslarımı Görün"}}},ns=(e,t)=>{const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)},rs=(e,t)=>{const n=new URL(t),i=document.createElement("style");fetch(n.href).then(a=>a.text()).then(a=>{i.innerHTML=a,setTimeout(()=>{e.appendChild(i)},1)})},is=(e,t)=>{fetch(e).then(i=>i.json()).then(i=>{Object.keys(i).forEach(a=>{t(a,i[a])})}).catch(i=>{console.log(i)})};function as(e){r.append_styles(e,"svelte-y8n14r","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}casino-wagering-bonus::part(Root){margin-bottom:30px}.Root{background:var(--emw--color-white, #FFFFFF);padding:20px;color:var(--emw--color-black, #000000)}.Bonuses{display:flex;flex-wrap:wrap;justify-content:left;margin-top:10px;column-gap:10px}.BonusesMobile>casino-wagering-bonus{width:100%}.WageringTabs{margin:20px 0;font-size:16px}.WageringTab{display:inline;padding:8px;cursor:pointer;color:#000000;border-bottom:1px solid #00AEEF}.WageringTab.active{color:#00AEEF;border-bottom-width:3px;padding-bottom:6px;font-weight:700}.WageringTabsMobile{display:flex;justify-content:space-around}.WageringTabMobile{width:100%;text-align:center}.Error{color:red}")}function Zn(e,t,n){const i=e.slice();return i[30]=t[n],i}function zn(e,t,n){const i=e.slice();return i[33]=t[n],i}function Jn(e){let t,n=e[10](e[33])+"",i,a,s,o,f=[e[11]("WageringTab")],h={};for(let u=0;u<f.length;u+=1)h=r.assign(h,f[u]);function l(){return e[21](e[33])}return{c(){t=r.element("div"),i=r.text(n),a=r.space(),r.set_attributes(t,h),r.toggle_class(t,"active",e[0]===e[33])},m(u,d){r.insert(u,t,d),r.append(t,i),r.append(t,a),s||(o=r.listen(t,"click",l),s=!0)},p(u,d){e=u,d[0]&1024&&n!==(n=e[10](e[33])+"")&&r.set_data_maybe_contenteditable(i,n,h.contenteditable),r.set_attributes(t,h=r.get_spread_update(f,[d[0]&2048&&e[11]("WageringTab")])),r.toggle_class(t,"active",e[0]===e[33])},d(u){u&&r.detach(t),s=!1,o()}}}function ss(e){let t;function n(f,h){return f[7].length>0?fs:f[9]?us:ls}let i=n(e),a=i(e),s=[e[11]("Bonuses")],o={};for(let f=0;f<s.length;f+=1)o=r.assign(o,s[f]);return{c(){t=r.element("div"),a.c(),r.set_attributes(t,o)},m(f,h){r.insert(f,t,h),a.m(t,null)},p(f,h){i===(i=n(f))&&a?a.p(f,h):(a.d(1),a=i(f),a&&(a.c(),a.m(t,null))),r.set_attributes(t,o=r.get_spread_update(s,[h[0]&2048&&f[11]("Bonuses")]))},d(f){f&&r.detach(t),a.d()}}}function os(e){let t;return{c(){t=r.element("general-animation-loading")},m(n,i){r.insert(n,t,i)},p:r.noop,d(n){n&&r.detach(t)}}}function ls(e){let t=e[10]("noBonuses")+"",n;return{c(){n=r.text(t)},m(i,a){r.insert(i,n,a)},p(i,a){a[0]&1024&&t!==(t=i[10]("noBonuses")+"")&&r.set_data(n,t)},d(i){i&&r.detach(n)}}}function us(e){let t,n,i;return{c(){t=r.element("div"),n=r.text("Error: "),i=r.text(e[9]),r.attr(t,"class","Error")},m(a,s){r.insert(a,t,s),r.append(t,n),r.append(t,i)},p(a,s){s[0]&512&&r.set_data(i,a[9])},d(a){a&&r.detach(t)}}}function fs(e){let t,n=r.ensure_array_like(e[7]),i=[];for(let a=0;a<n.length;a+=1)i[a]=qn(Zn(e,n,a));return{c(){for(let a=0;a<i.length;a+=1)i[a].c();t=r.empty()},m(a,s){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(a,s);r.insert(a,t,s)},p(a,s){if(s[0]&158){n=r.ensure_array_like(a[7]);let o;for(o=0;o<n.length;o+=1){const f=Zn(a,n,o);i[o]?i[o].p(f,s):(i[o]=qn(f),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(a){a&&r.detach(t),r.destroy_each(i,a)}}}function qn(e){let t,n=[{endpoint:e[1],session:e[3],lang:e[2],currency:e[4],rawbonus:JSON.stringify(e[30])}],i={};for(let a=0;a<n.length;a+=1)i=r.assign(i,n[a]);return{c(){t=r.element("private-casino-wagering-bonus"),r.set_attributes(t,i)},m(a,s){r.insert(a,t,s)},p(a,s){r.set_attributes(t,i=r.get_spread_update(n,[s[0]&158&&{endpoint:a[1],session:a[3],lang:a[2],currency:a[4],rawbonus:JSON.stringify(a[30])}]))},d(a){a&&r.detach(t)}}}function hs(e){let t,n,i,a,s,o=r.ensure_array_like(Object.values(tt)),f=[];for(let g=0;g<o.length;g+=1)f[g]=Jn(zn(e,o,g));let h=[e[11]("WageringTabs")],l={};for(let g=0;g<h.length;g+=1)l=r.assign(l,h[g]);function u(g,p){return g[8]?os:ss}let d=u(e),c=d(e),v=[e[11]("Root")],b={};for(let g=0;g<v.length;g+=1)b=r.assign(b,v[g]);return{c(){t=r.element("div"),n=r.element("section");for(let g=0;g<f.length;g+=1)f[g].c();i=r.space(),a=r.element("div"),c.c(),r.set_attributes(n,l),r.set_attributes(t,b),r.add_render_callback(()=>e[23].call(t))},m(g,p){r.insert(g,t,p),r.append(t,n);for(let y=0;y<f.length;y+=1)f[y]&&f[y].m(n,null);r.append(t,i),r.append(t,a),c.m(a,null),e[22](t),s=r.add_iframe_resize_listener(t,e[23].bind(t))},p(g,p){if(p[0]&7169){o=r.ensure_array_like(Object.values(tt));let y;for(y=0;y<o.length;y+=1){const M=zn(g,o,y);f[y]?f[y].p(M,p):(f[y]=Jn(M),f[y].c(),f[y].m(n,null))}for(;y<f.length;y+=1)f[y].d(1);f.length=o.length}r.set_attributes(n,l=r.get_spread_update(h,[p[0]&2048&&g[11]("WageringTabs")])),d===(d=u(g))&&c?c.p(g,p):(c.d(1),c=d(g),c&&(c.c(),c.m(a,null))),r.set_attributes(t,b=r.get_spread_update(v,[p[0]&2048&&g[11]("Root")]))},i:r.noop,o:r.noop,d(g){g&&r.detach(t),r.destroy_each(f,g),c.d(),e[22](null),s()}}}function cs(e,t,n){let i,a,s,o;r.component_subscribe(e,Cr,E=>n(20,o=E));let{endpoint:f=""}=t,{lang:h=Gt.en}=t,{session:l=""}=t,{currency:u="EUR"}=t,{filter:d=tt.claimable}=t,{limit:c=""}=t,{sortorder:v="desc"}=t,{clientstyling:b=""}=t,{clientstylingurl:g=""}=t,{translationurl:p=""}=t,y,M=!1;r.onMount(()=>(n(18,M=!0),()=>{n(18,M=!1)}));let R=[],O,N={},Z=!0,D="",$;Va(ts);const te=zr({WageringProgressUpdate:E=>{n(7,R=R.map(T=>{let C=E==null?void 0:E.items[T.bonusWalletID];if(!C)return T;const{maxIdObj:F,maxId:ae}=qr(C);let{status:ce,level:S,levelIncrement:X,gap:de}=F;N[T.id]=ae;let K=pe({},T);return K=Re(pe({},K),{wageringProgress:Re(pe({},K.wageringProgress),{currentLevel:S,currentLevelIncrement:X,gap:de})}),ce&&(K=Re(pe({},K),{status:ce}),setTimeout(()=>j(),500),ce!==d)?null:K}).filter(T=>T))}}),z=()=>ke(this,null,function*(){$==null||$.abort(),$=new AbortController;try{const E=yield er.list($,f,l,{lang:h,status:d==="claimable"?"claimable":ti(d),limit:c,sortOrder:v||"desc"});E.success?(n(7,R=E.items||E.bonuses),wt(O,te),d===tt.active&&ne()):n(9,D=E.errorMessage)}catch(E){if(E.name=="AbortError")return;console.error(E)}}),ne=()=>{wt(O,te),O=Yr(f,l,R,te,N),O==null||O.onerror.bind(null,()=>{ne()})},j=()=>ke(this,null,function*(){!M||!d||!h||!l||!f||(n(8,Z=!0),yield z(),n(8,Z=!1))});Yn({OnWageringBonusClaimed:()=>j(),OnWageringBonusExpired:()=>j()}),r.onMount(()=>()=>wt(O,te));let W;const V=E=>{d!==E&&(n(0,d=E),j())};function se(E){r.binding_callbacks[E?"unshift":"push"](()=>{y=E,n(5,y)})}function ie(){W=this.clientWidth,n(6,W)}return e.$$set=E=>{"endpoint"in E&&n(1,f=E.endpoint),"lang"in E&&n(2,h=E.lang),"session"in E&&n(3,l=E.session),"currency"in E&&n(4,u=E.currency),"filter"in E&&n(0,d=E.filter),"limit"in E&&n(13,c=E.limit),"sortorder"in E&&n(14,v=E.sortorder),"clientstyling"in E&&n(15,b=E.clientstyling),"clientstylingurl"in E&&n(16,g=E.clientstylingurl),"translationurl"in E&&n(17,p=E.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&32800&&y&&b&&ns(y,b),e.$$.dirty[0]&65568&&y&&g&&rs(y,g),e.$$.dirty[0]&131072&&p&&is(p,xr),e.$$.dirty[0]&262144&&M&&j(),e.$$.dirty[0]&2&&f&&j(),e.$$.dirty[0]&4&&h&&j(),e.$$.dirty[0]&8&&l&&j(),e.$$.dirty[0]&16384&&v&&j(),e.$$.dirty[0]&64&&n(19,i=W<=648),e.$$.dirty[0]&524288&&n(11,a=E=>ft(`${E}${i?` ${E}Mobile`:""}`)),e.$$.dirty[0]&1048576&&n(10,s=(E,T={})=>o("wageringBonuses."+E,{values:T}))},[d,f,h,l,u,y,W,R,Z,D,s,a,j,c,v,b,g,p,M,i,o,V,se,ie]}class Ar extends r.SvelteComponent{constructor(t){super(),r.init(this,t,cs,hs,r.safe_not_equal,{endpoint:1,lang:2,session:3,currency:4,filter:0,limit:13,sortorder:14,clientstyling:15,clientstylingurl:16,translationurl:17},as,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),r.flush()}get lang(){return this.$$.ctx[2]}set lang(t){this.$$set({lang:t}),r.flush()}get session(){return this.$$.ctx[3]}set session(t){this.$$set({session:t}),r.flush()}get currency(){return this.$$.ctx[4]}set currency(t){this.$$set({currency:t}),r.flush()}get filter(){return this.$$.ctx[0]}set filter(t){this.$$set({filter:t}),r.flush()}get limit(){return this.$$.ctx[13]}set limit(t){this.$$set({limit:t}),r.flush()}get sortorder(){return this.$$.ctx[14]}set sortorder(t){this.$$set({sortorder:t}),r.flush()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),r.flush()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),r.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),r.flush()}}r.create_custom_element(Ar,{endpoint:{},lang:{},session:{},currency:{},filter:{},limit:{},sortorder:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Ar;
@@ -5994,7 +5994,7 @@ if (typeof window != "undefined") {
5994
5994
  }
5995
5995
  };
5996
5996
  };
5997
- customElements.define = e(customElements.define), import("./GeneralAnimationLoading-DMFOVCrC.js").then(({ default: t }) => {
5997
+ customElements.define = e(customElements.define), import("./GeneralAnimationLoading-Bt7M1q0t.js").then(({ default: t }) => {
5998
5998
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
5999
5999
  });
6000
6000
  }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoWageringBonusProgress-DbQfzojd.cjs");function u(i,e){if(i){const s=document.createElement("style");s.innerHTML=e,i.appendChild(s)}}function f(i,e){if(!i||!e)return;const s=new URL(e);fetch(s.href).then(n=>n.text()).then(n=>{const l=document.createElement("style");l.innerHTML=n,i&&i.appendChild(l)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function m(i,e,s){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(e,l=>{n.innerHTML=l,i&&i.appendChild(n)})}}function h(i){t.append_styles(i,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function g(i){let e;return{c(){e=t.element("div"),e.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(s,n){t.insert(s,e,n),i[4](e)},p:t.noop,i:t.noop,o:t.noop,d(s){s&&t.detach(e),i[4](null)}}}function p(i,e,s){let{clientstyling:n=""}=e,{clientstylingurl:l=""}=e,{mbsource:o}=e,r;t.onMount(()=>()=>{});function a(c){t.binding_callbacks[c?"unshift":"push"](()=>{r=c,s(0,r)})}return i.$$set=c=>{"clientstyling"in c&&s(1,n=c.clientstyling),"clientstylingurl"in c&&s(2,l=c.clientstylingurl),"mbsource"in c&&s(3,o=c.mbsource)},i.$$.update=()=>{i.$$.dirty&3&&n&&r&&u(r,n),i.$$.dirty&5&&l&&r&&f(r,l),i.$$.dirty&9&&o&&r&&m(r,`${o}.Style`)},[r,n,l,o,a]}class d extends t.SvelteComponent{constructor(e){super(),t.init(this,e,p,g,t.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},h)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(d,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=d;
@@ -1,4 +1,4 @@
1
- import { S as u, i as f, s as m, f as a, a as h, n as d, g, l as p, o as y, v as b, G as v, c as x } from "./CasinoWageringBonusProgress-CBM4uNV_.js";
1
+ import { S as u, i as f, s as m, f as a, a as h, n as d, g as p, l as g, o as y, v as b, G as v, c as x } from "./CasinoWageringBonusProgress-B7tIA3Nx.js";
2
2
  function L(e, i) {
3
3
  if (e) {
4
4
  const s = document.createElement("style");
@@ -6,6 +6,8 @@ function L(e, i) {
6
6
  }
7
7
  }
8
8
  function _(e, i) {
9
+ if (!e || !i)
10
+ return;
9
11
  const s = new URL(i);
10
12
  fetch(s.href).then((t) => t.text()).then((t) => {
11
13
  const n = document.createElement("style");
@@ -22,23 +24,23 @@ function w(e, i, s) {
22
24
  });
23
25
  }
24
26
  }
25
- function S(e) {
27
+ function M(e) {
26
28
  h(e, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
27
29
  }
28
- function M(e) {
30
+ function S(e) {
29
31
  let i;
30
32
  return {
31
33
  c() {
32
34
  i = y("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
33
35
  },
34
36
  m(s, t) {
35
- p(s, i, t), e[4](i);
37
+ g(s, i, t), e[4](i);
36
38
  },
37
39
  p: d,
38
40
  i: d,
39
41
  o: d,
40
42
  d(s) {
41
- s && g(i), e[4](null);
43
+ s && p(i), e[4](null);
42
44
  }
43
45
  };
44
46
  }
@@ -72,14 +74,14 @@ class C extends u {
72
74
  this,
73
75
  i,
74
76
  k,
75
- M,
77
+ S,
76
78
  m,
77
79
  {
78
80
  clientstyling: 1,
79
81
  clientstylingurl: 2,
80
82
  mbsource: 3
81
83
  },
82
- S
84
+ M
83
85
  );
84
86
  }
85
87
  get clientstyling() {
@@ -1,4 +1,4 @@
1
- import { S as u, i as f, s as m, f as a, a as h, n as d, g, l as p, o as y, v as b, G as v, c as x } from "./CasinoWageringBonusProgress-B7tIA3Nx.js";
1
+ import { S as u, i as f, s as m, f as a, a as h, n as d, g as p, l as g, o as y, v as b, G as v, c as x } from "./CasinoWageringBonusProgress-CBM4uNV_.js";
2
2
  function L(e, i) {
3
3
  if (e) {
4
4
  const s = document.createElement("style");
@@ -6,6 +6,8 @@ function L(e, i) {
6
6
  }
7
7
  }
8
8
  function _(e, i) {
9
+ if (!e || !i)
10
+ return;
9
11
  const s = new URL(i);
10
12
  fetch(s.href).then((t) => t.text()).then((t) => {
11
13
  const n = document.createElement("style");
@@ -22,23 +24,23 @@ function w(e, i, s) {
22
24
  });
23
25
  }
24
26
  }
25
- function S(e) {
27
+ function M(e) {
26
28
  h(e, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
27
29
  }
28
- function M(e) {
30
+ function S(e) {
29
31
  let i;
30
32
  return {
31
33
  c() {
32
34
  i = y("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
33
35
  },
34
36
  m(s, t) {
35
- p(s, i, t), e[4](i);
37
+ g(s, i, t), e[4](i);
36
38
  },
37
39
  p: d,
38
40
  i: d,
39
41
  o: d,
40
42
  d(s) {
41
- s && g(i), e[4](null);
43
+ s && p(i), e[4](null);
42
44
  }
43
45
  };
44
46
  }
@@ -72,14 +74,14 @@ class C extends u {
72
74
  this,
73
75
  i,
74
76
  k,
75
- M,
77
+ S,
76
78
  m,
77
79
  {
78
80
  clientstyling: 1,
79
81
  clientstylingurl: 2,
80
82
  mbsource: 3
81
83
  },
82
- S
84
+ M
83
85
  );
84
86
  }
85
87
  get clientstyling() {
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusesController-DN7tCtGk.cjs")).then(({default:t})=>{!customElements.get("casino-wagering-bonuses-controller")&&customElements.define("casino-wagering-bonuses-controller",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusesController-BzummzqC.cjs")).then(({default:t})=>{!customElements.get("casino-wagering-bonuses-controller")&&customElements.define("casino-wagering-bonuses-controller",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoWageringBonusesController-5T1xgXqK.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoWageringBonusesController-K_TAc4vJ.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-wagering-bonuses-controller") && customElements.define("casino-wagering-bonuses-controller", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoWageringBonusesController-DiAPHgsS.js";
1
+ import { C as s } from "../components/CasinoWageringBonusesController-BmKoBu7u.js";
2
2
  function o(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-bonuses-controller",
3
- "version": "1.85.17",
3
+ "version": "1.85.18",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-wagering-bonuses-controller.cjs",
6
6
  "module": "esnext/casino-wagering-bonuses-controller.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoWageringBonusProgress-DbQfzojd.cjs");function u(i,e){if(i){const s=document.createElement("style");s.innerHTML=e,i.appendChild(s)}}function f(i,e){const s=new URL(e);fetch(s.href).then(n=>n.text()).then(n=>{const l=document.createElement("style");l.innerHTML=n,i&&i.appendChild(l)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function m(i,e,s){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(e,l=>{n.innerHTML=l,i&&i.appendChild(n)})}}function h(i){t.append_styles(i,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function g(i){let e;return{c(){e=t.element("div"),e.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(s,n){t.insert(s,e,n),i[4](e)},p:t.noop,i:t.noop,o:t.noop,d(s){s&&t.detach(e),i[4](null)}}}function p(i,e,s){let{clientstyling:n=""}=e,{clientstylingurl:l=""}=e,{mbsource:o}=e,r;t.onMount(()=>()=>{});function a(c){t.binding_callbacks[c?"unshift":"push"](()=>{r=c,s(0,r)})}return i.$$set=c=>{"clientstyling"in c&&s(1,n=c.clientstyling),"clientstylingurl"in c&&s(2,l=c.clientstylingurl),"mbsource"in c&&s(3,o=c.mbsource)},i.$$.update=()=>{i.$$.dirty&3&&n&&r&&u(r,n),i.$$.dirty&5&&l&&r&&f(r,l),i.$$.dirty&9&&o&&r&&m(r,`${o}.Style`)},[r,n,l,o,a]}class d extends t.SvelteComponent{constructor(e){super(),t.init(this,e,p,g,t.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},h)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(d,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=d;