@everymatrix/casino-header-controller 1.14.7 → 1.14.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function v(){}const C=e=>e;function p(e){return e()}function f(){return Object.create(null)}function P(e){e.forEach(p)}function M(e){return"function"==typeof e}function T(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let H;function m(e,t){return(H=H||document.createElement("a")).href=t,e===H.href}function A(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function te(e,t,n){e.$$.on_destroy.push(A(t,n))}function _(e){return e&&M(e.destroy)?e.destroy:v}var e="undefined"!=typeof window;let I=e?()=>window.performance.now():()=>Date.now(),L=e?e=>requestAnimationFrame(e):v;const F=new Set;function k(t){F.forEach(e=>{e.c(t)||(F.delete(e),e.f())}),0!==F.size&&L(k)}function ie(e,t){e.appendChild(t)}function O(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function ae(e,t,n){e.insertBefore(t,n||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function S(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function le(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ce(e){return document.createTextNode(e)}function ue(){return ce(" ")}function N(){return ce("")}function R(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function he(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function $(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:he(e,t,n)}function de(e,t){e.data!==(t=""+t)&&(e.data=t)}function D(t,n,e){for(let e=0;e<t.options.length;e+=1){var r=t.options[e];if(r.__value===n)return r.selected=!0}e&&void 0===n||(t.selectedIndex=-1)}function ne(e){e=e.querySelector(":checked");return e&&e.__value}function U(e){var t={};for(const n of e)t[n.name]=n.value;return t}const G=new Map;let j,z=0;function V(e,t,n,r,o,i,a,s=0){var l=16.666/r;let c="{\n";for(let e=0;e<=1;e+=l){const r=t+(n-t)*i(e);c+=100*e+`%{${a(r,1-r)}}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function v(){}const C=e=>e;function p(e){return e()}function f(){return Object.create(null)}function P(e){e.forEach(p)}function M(e){return"function"==typeof e}function T(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let H;function m(e,t){return(H=H||document.createElement("a")).href=t,e===H.href}function A(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Q(e,t,n){e.$$.on_destroy.push(A(t,n))}function _(e){return e&&M(e.destroy)?e.destroy:v}var e="undefined"!=typeof window;let $=e?()=>window.performance.now():()=>Date.now(),L=e?e=>requestAnimationFrame(e):v;const F=new Set;function k(t){F.forEach(e=>{e.c(t)||(F.delete(e),e.f())}),0!==F.size&&L(k)}function ie(e,t){e.appendChild(t)}function O(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function ae(e,t,n){e.insertBefore(t,n||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function S(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function le(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ce(e){return document.createTextNode(e)}function ue(){return ce(" ")}function N(){return ce("")}function R(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function he(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function I(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:he(e,t,n)}function de(e,t){e.data!==(t=""+t)&&(e.data=t)}function D(t,n,e){for(let e=0;e<t.options.length;e+=1){var r=t.options[e];if(r.__value===n)return r.selected=!0}e&&void 0===n||(t.selectedIndex=-1)}function q(e){e=e.querySelector(":checked");return e&&e.__value}function U(e){var t={};for(const n of e)t[n.name]=n.value;return t}const G=new Map;let j,z=0;function V(e,t,n,r,o,i,a,s=0){var l=16.666/r;let c="{\n";for(let e=0;e<=1;e+=l){const r=t+(n-t)*i(e);c+=100*e+`%{${a(r,1-r)}}
2
2
  `}var u,h=c+`100% {${a(n,1-n)}}
3
- }`,s=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(h)}_`+s,d=O(e),{stylesheet:p,rules:f}=G.get(d)||(d=d,u={stylesheet:(u=e,f=le("style"),u=O(u),p=f,ie(u.head||u,p),p.sheet,f.sheet),rules:{}},G.set(d,u),u),d=(f[s]||(f[s]=!0,p.insertRule(`@keyframes ${s} `+h,p.cssRules.length)),e.style.animation||"");return e.style.animation=(d?d+", ":"")+s+` ${r}ms linear ${o}ms 1 both`,z+=1,s}function W(e){j=e}function re(e){!function(){if(j)return j;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const X=[],q=[];let Z=[];const Y=[],K=Promise.resolve();let J=!1;function x(e){Z.push(e)}const Q=new Set;let oe,pe=0;function d(){if(0===pe){const r=j;do{try{for(;pe<X.length;){const r=X[pe];pe++,W(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),P(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(x))}}catch(r){throw X.length=0,pe=0,r}for(W(null),X.length=0,pe=0;q.length;)q.pop()();for(let e=0;e<Z.length;e+=1){var n=Z[e];Q.has(n)||(Q.add(n),n())}}while(Z.length=0,X.length);for(;Y.length;)Y.pop()();J=!1,Q.clear(),W(r)}}function fe(e,t,n){var r;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:n=!1}={}]=[(t?"intro":"outro")+n],(r=document.createEvent("CustomEvent")).initCustomEvent(e,t,n,void 0),r))}const me=new Set;let g;function ge(e,t){e&&e.i&&(me.delete(e),e.i(t))}function ye(e,t,n,r){e&&e.o?me.has(e)||(me.add(e),g.c.push(()=>{me.delete(e),r&&(n&&e.d(1),r())}),e.o(t)):r&&r()}const be={duration:0};function ve(l,e,t,n){const r={direction:"both"};let c=e(l,t,r),u=n?0:1,h=null,d=null,p=null;function f(){var e,t,n,r;p&&(e=l,t=p,n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(n=n.length-r.length)||(e.style.animation=r.join(", "),z-=n)||L(()=>{z||(G.forEach(e=>{e=e.stylesheet.ownerNode;e&&se(e)}),G.clear())}))}function m(e,t){var n=e.b-u;return t*=Math.abs(n),{a:u,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function o(e){const{delay:t=0,duration:n=300,easing:r=C,tick:o=v,css:i}=c||be,a={start:I()+t,b:e};if(e||((a.group=g).r+=1),h||d)d=a;else{i&&(f(),p=V(l,u,e,n,t,r,i)),e&&o(0,1),h=m(a,n),x(()=>fe(l,e,"start"));{var s=e=>{return d&&e>d.start&&(h=m(d,n),d=null,fe(l,h.b,"start"),i)&&(f(),p=V(l,u,h.b,h.duration,0,r,c.css)),h&&(e>=h.end?(o(u=h.b,1-u),fe(l,h.b,"end"),d||(h.b?f():--h.group.r||P(h.group.c)),h=null):e>=h.start&&(e=e-h.start,u=h.a+h.d*r(e/h.duration),o(u,1-u))),!(!h&&!d)};let t;0===F.size&&L(k),new Promise(e=>{F.add(t={c:s,f:e})})}}}return{run(e){M(c)?(oe||(oe=Promise.resolve()).then(()=>{oe=null}),oe.then(()=>{c=c(r),o(e)})):o(e)},end(){f(),h=d=null}}}function we(e,t){e.d(1),t.delete(e.key)}function Ee(t,n,r,o,i,a,s,l,e,c,u,h){let d=t.length,p=a.length,f=d;for(var m={};f--;)m[t[f].key]=f;var g=[],y=new Map,b=new Map,v=[];for(f=p;f--;){const t=h(i,a,f),P=r(t);let e=s.get(P);e?o&&v.push(()=>e.p(t,n)):(e=c(P,t)).c(),y.set(P,g[f]=e),P in m&&b.set(P,Math.abs(f-m[P]))}var w=new Set,E=new Set;function B(e){ge(e,1),e.m(l,u),s.set(e.key,e),u=e.first,p--}for(;d&&p;){const n=g[p-1],r=t[d-1],o=n.key,P=r.key;n===r?(u=n.first,d--,p--):y.has(P)?!s.has(o)||w.has(o)?B(n):E.has(P)?d--:b.get(o)>b.get(P)?(E.add(o),B(n)):(w.add(P),d--):(e(r,s),d--)}for(;d--;){const n=t[d];y.has(n.key)||e(n,s)}for(;p;)B(g[p-1]);return P(v),g}function Be(r,e,t,n,o,i,a,s=[-1]){var l=j;W(r);const c=r.$$={fragment:null,ctx:[],props:i,update:v,not_equal:o,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:f(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&o(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u)&&(n=e,-1===(e=r).$$.dirty[0]&&(X.push(e),J||(J=!0,K.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),u=!0,P(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){i=e.target;const v=Array.from(i.childNodes);c.fragment&&c.fragment.l(v),v.forEach(se)}else c.fragment&&c.fragment.c();e.intro&&ge(r.$$.fragment);var h=r,s=e.target,a=e.anchor,t=e.customElement,{fragment:n,after_update:i}=h.$$;n&&n.m(s,a),t||x(()=>{var e=h.$$.on_mount.map(p).filter(M);h.$$.on_destroy?h.$$.on_destroy.push(...e):P(e),h.$$.on_mount=[]}),i.forEach(x),d()}W(l)}let Ce;"function"==typeof HTMLElement&&(Ce=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(p).filter(M);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){P(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],o=[];Z.forEach(e=>(-1===n.indexOf(e)?r:o).push(e)),o.forEach(e=>e()),Z=r}P(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=v}$on(e,t){if(!M(t))return v;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var xe,Me,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Te="URLSearchParams"in l,He="Symbol"in l&&"iterator"in Symbol,Ae="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),_e="FormData"in l,Se="ArrayBuffer"in l;function $e(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Ie(e){return e="string"!=typeof e?String(e):e}function Le(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return He&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function Fe(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Pe(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function Re(e){var t=new FileReader,n=Pe(t);return t.readAsArrayBuffer(e),n}function ke(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Oe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Ae&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:_e&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Te&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Se&&Ae&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=ke(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Se&&(ArrayBuffer.prototype.isPrototypeOf(e)||Me(e))?this._bodyArrayBuffer=ke(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Te&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ae&&(this.blob=function(){var e=Fe(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return Fe(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(Ae)return this.blob().then(Re);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=Fe(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=Pe(e),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},_e&&(this.formData=function(){return this.text().then(Ue)}),this.json=function(){return this.text().then(JSON.parse)},this}Se&&(xe=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Me=ArrayBuffer.isView||function(e){return e&&-1<xe.indexOf(Object.prototype.toString.call(e))}),c.prototype.append=function(e,t){e=$e(e),t=Ie(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[$e(e)]},c.prototype.get=function(e){return e=$e(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty($e(e))},c.prototype.set=function(e,t){this.map[$e(e)]=Ie(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),Le(n)},c.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Le(t)},c.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),Le(n)},He&&(c.prototype[Symbol.iterator]=c.prototype.entries);var Ne=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function De(e,t){if(!(this instanceof De))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof De){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<Ne.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ue(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}De.prototype.clone=function(){return new De(this,{body:this._bodyInit})},Oe.call(De.prototype),Oe.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ge=[301,302,303,307,308],je=(u.redirect=function(e,t){if(-1===Ge.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},l.DOMException);try{new je}catch(v){(je=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),je.prototype.constructor=je}function ze(a,s){return new Promise(function(o,e){var t=new De(a,s);if(t.signal&&t.signal.aborted)return e(new je("Aborted","AbortError"));var n,i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL"),"response"in i?i.response:i.responseText);setTimeout(function(){o(new u(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new je("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(Ae?i.responseType="blob":Se&&(i.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof c||l.Headers&&s.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){n.push($e(e)),i.setRequestHeader(e,Ie(s.headers[e]))}),t.headers.forEach(function(e,t){-1===n.indexOf(t)&&i.setRequestHeader(t,e)})):t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}ze.polyfill=!0,l.fetch||(l.fetch=ze,l.Headers=c,l.Request=De,l.Response=u);var Ve="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function We(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}self.fetch.bind(self);var Xe=function(e,t){return(Xe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Ye(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ke(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Je(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Qe(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var qe=Qe(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function et(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}n.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=Ye(i),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(h(i))try{i()}catch(e){o=e instanceof qe?e.errors:[e]}i=this._finalizers;if(i){this._finalizers=null;try{for(var l=Ye(i),c=l.next();!c.done;c=l.next()){var u=c.value;try{ot(u)}catch(e){o=null!=o?o:[],e instanceof qe?o=Je(Je([],Ke(o)),Ke(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new qe(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ot(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&et(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&et(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((e=new n).closed=!0,e);var tt=n,nt=tt.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function rt(e){return e instanceof tt||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function ot(e){h(e)?e():e.unsubscribe()}var it=void 0,at=!1,st=!1,lt={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=lt.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,Je([e,t],Ke(n))):setTimeout.apply(void 0,Je([e,t],Ke(n)))},clearTimeout:function(e){var t=lt.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ct(){}var ut=null;function ht(e){if(at){var t=!ut;if(t&&(ut={errorThrown:!1,error:null}),e(),t){var t=ut,n=t.errorThrown,t=t.error;if(ut=null,n)throw t}}else e()}Ze(r,dt=tt),r.create=function(e,t,n){return new bt(e,t,n)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,dt.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var dt,pt=r,ft=Function.prototype.bind;function r(e){var t=dt.call(this)||this;return t.isStopped=!1,e?rt(t.destination=e)&&e.add(t):t.destination=Bt,t}function mt(e,t){return ft.call(e,t)}wt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Et(e)}},wt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Et(e)}else Et(e)},wt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Et(e)}};var gt,yt=wt,bt=(Ze(vt,gt=pt),vt);function vt(e,t,n){var r=gt.call(this)||this,n=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&st?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&mt(e.next,t),error:e.error&&mt(e.error,t),complete:e.complete&&mt(e.complete,t)}):e;return r.destination=new yt(n),r}function wt(e){this.partialObserver=e}function Et(e){var t=e;lt.setTimeout(function(){throw t})}var Bt={closed:!0,next:ct,error:function(e){throw e},complete:ct},e="function"==typeof Symbol&&Symbol.observable||"@@observable";o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,n){var r,o=this,i=(r=e)&&r instanceof pt||r&&h(r.next)&&h(r.error)&&h(r.complete)&&rt(r)?e:new bt(e,t,n);return ht(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(r,e){var o=this;return new(e=xt(e))(function(e,t){var n=new bt({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});o.subscribe(n)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[e]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var r=this;return new(e=xt(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)};var Ct=o;function o(e){e&&(this._subscribe=e)}function xt(e){return null!=(e=null!=e?e:it)?e:Promise}var Mt,Tt,Ht,At=Qe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Ze(i,Ht=Ct),i.prototype.lift=function(e){var t=new _t(this,this);return t.operator=e,t},i.prototype._throwIfClosed=function(){if(this.closed)throw new At},i.prototype.next=function(o){var i=this;ht(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=Ye(i.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(o)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},i.prototype.error=function(t){var n=this;ht(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},i.prototype.complete=function(){var t=this;ht(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ht.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,o=this.observers;return n||r?nt:(this.currentObservers=null,o.push(e),new tt(function(){t.currentObservers=null,et(o,e)}))},i.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},i.prototype.asObservable=function(){var e=new Ct;return e.source=this,e},i.create=function(e,t){return new _t(e,t)},i),_t=(Ze(Lt,Tt=e),Lt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},Lt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},Lt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Lt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:nt},Lt),St={now:function(){return(St.delegate||Date).now()},delegate:void 0},$t=(Ze(It,Mt=e),It.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;n||(r.push(e),o)||r.push(i.now()+t),this._trimBuffer(),Mt.prototype.next.call(this,e)},It.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},It.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var i=t.now(),a=0,s=1;s<n.length&&n[s]<=i;s+=2)a=s;a&&n.splice(0,a+1)}},It);function It(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=St);var r=Mt.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function Lt(e,t){var n=Tt.call(this)||this;return n.destination=e,n.source=t,n}function i(){var e=Ht.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Ft=[],Pt={};const Rt=[];function kt(r,o=v){let i;const a=new Set;function s(e){if(T(r,e)&&(r=e,i)){const e=!Rt.length;for(const e of a)e[1](),Rt.push(e,r);if(e){for(let e=0;e<Rt.length;e+=2)Rt[e][0](Rt[e+1]);Rt.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=v){const n=[e,t];return a.add(n),1===a.size&&(i=o(s)||v),e(r),()=>{a.delete(n),0===a.size&&i&&(i(),i=null)}}}}function Ot(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:kt(t,t=>{let n=!1;const r=[];let o=0,i=v;const a=()=>{var e;o||(i(),e=s(l?r[0]:r,t),u?t(e):i=M(e)?e:v)},e=c.map((e,t)=>A(e,e=>{r[t]=e,o&=~(1<<t),n&&a()},()=>{o|=1<<t}));return n=!0,a(),function(){P(e),i(),n=!1}}).subscribe}}function Nt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Dt);var t}var Dt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ut(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Wt(Array.isArray(e)?[]:{},e,t):e}function Gt(e,t,n){return e.concat(t).map(function(e){return Ut(e,n)})}function jt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function zt(e,t){try{return t in e}catch(e){return!1}}function Vt(r,o,i){var a={};return i.isMergeableObject(r)&&jt(r).forEach(function(e){a[e]=Ut(r[e],i)}),jt(o).forEach(function(e){var t,n;(!zt(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(zt(r,e)&&i.isMergeableObject(o[e])?a[e]=((t=i).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Wt)(r[e],o[e],i):a[e]=Ut(o[e],i))}),a}function Wt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Gt,n.isMergeableObject=n.isMergeableObject||Nt,n.cloneUnlessOtherwiseSpecified=Ut;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Vt(e,t,n):Ut(t,n)}Wt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Wt(e,t,n)},{});throw new Error("first argument should be an array")};var Xt=Wt,Zt=function(e,t){return(Zt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Yt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Zt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var y,b,Kt,w=function(){return(w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Jt(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Qt(e){return e.type===b.literal}function qt(e){return e.type===b.number}function en(e){return e.type===b.date}function tn(e){return e.type===b.time}function nn(e){return e.type===b.select}function rn(e){return e.type===b.plural}function on(e){return e.type===b.tag}function an(e){return e&&"object"==typeof e&&e.type===Kt.number}function sn(e){return e&&"object"==typeof e&&e.type===Kt.dateTime}(e=y=y||{})[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",(e=b=b||{})[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",(e=Kt=Kt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ln=/(?:[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;var cn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,un=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hn=/^(@+)?(\+|#+)?[rs]?$/g,dn=/(\*)(0+)|(#+)(0+)|(0+)/g,pn=/^(0+)$/;function fn(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(hn,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function mn(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 gn(e){return mn(e)||{}}function yn(e){for(var a={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=o.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=w(w(w({},a),{notation:"scientific"}),o.options.reduce(function(e,t){return w(w({},e),gn(t))},{}));continue;case"engineering":a=w(w(w({},a),{notation:"engineering"}),o.options.reduce(function(e,t){return w(w({},e),gn(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(dn,function(e,t,n,r,o,i){if(t)a.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pn.test(o.stem))a.minimumIntegerDigits=o.stem.length;else if(un.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(un,function(e,t,n,r,o,i){return"*"===n?a.minimumFractionDigits=t.length:r&&"#"===r[0]?a.maximumFractionDigits=r.length:o&&i?(a.minimumFractionDigits=o.length,a.maximumFractionDigits=o.length+i.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var i=o.options[0];"w"===i?a=w(w({},a),{trailingZeroDisplay:"stripIfInteger"}):i&&(a=w(w({},a),fn(i)))}else hn.test(o.stem)?a=w(w({},a),fn(o.stem)):((i=mn(o.stem))&&(a=w(w({},a),i)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(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)),!pn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(a=w(w({},a),r)))}return a}var bn={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var vn=new RegExp("^".concat(e.source,"*")),wn=new RegExp("".concat(e.source,"*$"));function E(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,En=!!String.fromCodePoint,Bn=!!Object.fromEntries,Cn=!!String.prototype.codePointAt,xn=!!String.prototype.trimStart,Mn=!!String.prototype.trimEnd,Tn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Hn=!0;try{Hn="a"===(null==(Zn=Rn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Zn[0])}catch(v){Hn=!1}var An,_n,Sn=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},$n=En?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;i<o;){if(1114111<(n=e[i++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},In=Bn?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],o=o[1];t[i]=o}return t},Ln=Cn?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},Fn=xn?function(e){return e.trimStart()}:function(e){return e.replace(vn,"")},Pn=Mn?function(e){return e.trimEnd()}:function(e){return e.replace(wn,"")};function Rn(e,t){return new RegExp(e,t)}_n=Hn?(An=Rn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return An.lastIndex=t,null!=(t=An.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=Ln(e,t);if(void 0===o||Nn(o)||33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;r.push(o),t+=65536<=o?2:1}return $n.apply(void 0,r)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(y.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&On(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o}else if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}else{i=this.clonePosition();this.bump(),r.push({type:b.pound,location:E(i,this.clonePosition())})}}}return{val:r,err:null}},a.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),o=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(o,"/>"),location:E(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!On(this.char())?this.error(y.INVALID_TAG,E(e,this.clonePosition())):(n=this.clonePosition(),o!==this.parseTagName()?this.error(y.UNMATCHED_CLOSING_TAG,E(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:o,children:t,location:E(r,this.clonePosition())},err:null}:this.error(y.INVALID_TAG,E(e,this.clonePosition())))):this.error(y.UNCLOSED_TAG,E(r,this.clonePosition()))):this.error(y.INVALID_TAG,E(r,this.clonePosition()))},a.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},a.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=E(n,this.clonePosition());return{val:{type:b.literal,value:r,location:n},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(On(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return $n.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),$n(n))},a.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(y.EMPTY_ARGUMENT,E(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(y.MALFORMED_ARGUMENT,E(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:r,location:E(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(y.MALFORMED_ARGUMENT,E(n,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=_n(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:E(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(y.EXPECT_ARGUMENT_TYPE,E(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=Pn(h.val)).length)return this.error(y.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:E(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(p=E(r,this.clonePosition()),l&&Sn(null==l?void 0:l.style,"::",0)?(f=Fn(l.style.slice(2)),"number"===a?(h=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:p,style:h.val},err:null}:0===f.length?this.error(y.EXPECT_DATE_TIME_SKELETON,p):(u=f,this.locale&&(u=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(bn[t||""]||bn[n||""]||bn["".concat(n,"-001")]||bn["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<a--;)n=l+n}else n+="J"===o?"H":o}return n}(f,this.locale)),d={type:Kt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(ln,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"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":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<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""}),o):{}},{val:{type:"date"===a?b.date:b.time,value:n,location:p,style:d},err:null})):{val:{type:"number"===a?b.number:"date"===a?b.date:b.time,value:n,location:p,style:null!=(f=null==l?void 0:l.style)?f:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,E(u,w({},u)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),p=0;if("select"!==a&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=h.val}var f,l=this.tryParsePluralOrSelectOptions(e,a,t,d);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(f=E(r,this.clonePosition()),"select"===a?{val:{type:b.select,value:n,options:In(l.val),location:f},err:null}:{val:{type:b.plural,value:n,options:In(l.val),offset:p,pluralType:"plural"===a?"cardinal":"ordinal",location:f},err:null});default:return this.error(y.INVALID_ARGUMENT_TYPE,E(i,s))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},a.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(cn).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),a=0,s=o;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(y.INVALID_NUMBER_SKELETON,t)}return{val:{type:Kt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?yn(n):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,i=[],a=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR,y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=E(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(a.has(s))return this.error("select"===t?y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;var h=this.tryParseArgumentClose(u);if(h.err)return h;i.push([s,{value:c.val,location:E(u,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===i.length?this.error("select"===t?y.EXPECT_SELECT_ARGUMENT_SELECTOR:y.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(y.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:i,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}r=E(r,this.clonePosition());return o?Tn(i*=n)?{val:i,err:null}:this.error(t,r):this.error(e,r)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ln(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},a.prototype.bumpIf=function(e){if(Sn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},a.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&Nn(this.char());)this.bump()},a.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var kn=a;function a(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function On(e){return 97<=e&&e<=122||65<=e&&e<=90}function Nn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Dn(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new kn(e,t).parse();if(e.err)throw(n=SyntaxError(y[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,nn(e)||rn(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else qt(e)&&an(e.style)||(en(e)||tn(e))&&sn(e.style)?delete e.style.location:on(e)&&n(e.children)})}(e.val),e.val}function Un(e,t){var n=t&&t.cache?t.cache:Yn,r=t&&t.serializer?t.serializer:Vn;return(t&&t.strategy?t.strategy:function(e,t){return zn(e,this,1===e.length?Gn:jn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Gn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function jn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function zn(e,t,n,r,o){return n.bind(t,e,r,o)}var Vn=function(){return JSON.stringify(arguments)};function Wn(){this.cache=Object.create(null)}Wn.prototype.get=function(e){return this.cache[e]},Wn.prototype.set=function(e,t){this.cache[e]=t};var Xn,Zn,Yn={create:function(){return new Wn}},Kn={variadic:function(e,t){return zn(e,this,jn,t.cache.create(),t.serializer)},monadic:function(e,t){return zn(e,this,Gn,t.cache.create(),t.serializer)}};(Zn=Xn=Xn||{}).MISSING_VALUE="MISSING_VALUE",Zn.INVALID_VALUE="INVALID_VALUE",Zn.MISSING_INTL_API="MISSING_INTL_API";Yt(lr,er=Error),lr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var B,Jn,Qn,qn,er,tr=lr,nr=(Yt(sr,qn=tr),sr),rr=(Yt(ar,Qn=tr),ar),or=(Yt(ir,Jn=tr),ir);function ir(e,t){return Jn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Xn.MISSING_VALUE,t)||this}function ar(e,t,n){return Qn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Xn.INVALID_VALUE,n)||this}function sr(e,t,n,r){return qn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Xn.INVALID_VALUE,r)||this}function lr(e,t,n){e=er.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function cr(e,t,n,r,o,i,a){if(1===e.length&&Qt(e[0]))return[{type:B.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Qt(u))s.push({type:B.literal,value:u.value});else if(u.type===b.pound)"number"==typeof i&&s.push({type:B.literal,value:n.getNumberFormat(t).format(i)});else{var h=u.value;if(!(o&&h in o))throw new or(h,a);h=o[h];if(u.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?B.literal:B.object,value:h});else if(en(u)){var d="string"==typeof u.style?r.date[u.style]:sn(u.style)?u.style.parsedOptions:void 0;s.push({type:B.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(tn(u))d="string"==typeof u.style?r.time[u.style]:sn(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:B.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(qt(u))(d="string"==typeof u.style?r.number[u.style]:an(u.style)?u.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),s.push({type:B.literal,value:n.getNumberFormat(t,d).format(h)});else{if(on(u)){var p=u.children,f=u.value,m=o[f];if("function"!=typeof m)throw new rr(f,"function",a);f=m(cr(p,t,n,r,o,i).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?B.literal:B.object,value:e}}))}if(nn(u)){if(!(g=u.options[h]||u.options.other))throw new nr(u.value,h,Object.keys(u.options),a);s.push.apply(s,cr(g.value,t,n,r,o))}else if(rn(u)){if(!(g=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new tr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Xn.MISSING_INTL_API,a);var m=n.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[m]||u.options.other}if(!g)throw new nr(u.value,h,Object.keys(u.options),a);s.push.apply(s,cr(g.value,t,n,r,o,h-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===B.literal&&t.type===B.literal?n.value+=t.value:e.push(t),e},[])}function ur(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=B=B||{})[e.literal=0]="literal",e[e.object=1]="object",Object.defineProperty(s,"defaultLocale",{get:function(){return s.memoizedDefaultLocale||(s.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),s.memoizedDefaultLocale},enumerable:!1,configurable:!0}),s.memoizedDefaultLocale=null,s.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},s.__parse=Dn,s.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"}}};var hr=s;function s(e,t,n,r){var o,i,a=this;if(void 0===t&&(t=s.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=a.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===B.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return cr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=t,this.resolvedLocale=s.resolveLocale(t),"string"==typeof e){if(this.message=e,!s.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=s.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=s.formats,(i=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=i[t])?w(w(w({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=w(w({},n[t]),r[t]||{}),e},{})):n),e},w({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:Un(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Jt([void 0],t,!1)))},{cache:ur((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Kn.variadic}),getDateTimeFormat:Un(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Jt([void 0],t,!1)))},{cache:ur(t.dateTime),strategy:Kn.variadic}),getPluralRules:Un(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Jt([void 0],t,!1)))},{cache:ur(t.pluralRules),strategy:Kn.variadic})}}const dr={},pr=(e,t,n)=>n&&(t in dr||(dr[t]={}),e in dr[t]||(dr[t][e]=n),n),fr=(t,n)=>{if(null!=n){if(n in dr&&t in dr[n])return dr[n][t];var r=_r(n);for(let e=0;e<r.length;e++){var o=function(e,t){if(!yr(e))return null;e=function(e){return mr[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(o)return pr(t,n,o)}}};let mr;const gr=kt({});function yr(e){return e in mr}function br(t,...n){delete dr[t],gr.update(e=>(e[t]=Xt.all([e[t]||{},...n]),e))}Ot([gr],([e])=>Object.keys(e)),gr.subscribe(e=>mr=e);const vr={};function wr(e){return vr[e]}function Er(e){return null!=e&&_r(e).some(e=>{return null==(e=wr(e))?void 0:e.size})}const Br={};function Cr(e){var t;return Er(e)?(t=_r(e).map(e=>{var t=wr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Br[e]=Promise.all(t.map(([e,t])=>{return r=e,Promise.all(t.map(e=>{return t=r,n=e,vr[t].delete(n),0===vr[t].size&&delete vr[t],e().then(e=>e.default||e);var t,n})).then(e=>br(r,...e));var r})).then(()=>{if(Er(e))return Cr(e);delete Br[e]}),Br[e]):e in Br?Br[e]:Promise.resolve()}const xr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Mr=kt(!1);let Tr;const Hr=kt(null);function Ar(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function _r(e,t=xr.fallbackLocale){e=Ar(e);return t?[...new Set([...e,...Ar(t)])]:e}function Sr(){return null!=Tr?Tr:void 0}Hr.subscribe(e=>{Tr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const ee={...Hr,set:t=>{if(t&&function(e){if(null!=e){var t=_r(e);for(let e=0;e<t.length;e++){var n=t[e];if(yr(n))return n}}}(t)&&Er(t)){var n=xr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Sr()&&n?e=window.setTimeout(()=>Mr.set(!0),n):Mr.set(!0),Cr(t).then(()=>{Hr.set(t)}).finally(()=>{clearTimeout(e),Mr.set(!1)})}return Hr.set(t)}},$r=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},Ir=(e,t)=>{var n=xr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Lr=$r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=Ir("number",t)),new Intl.NumberFormat(e,n)}),Fr=$r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=Ir("date",t):0===Object.keys(n).length&&(n=Ir("date","short")),new Intl.DateTimeFormat(e,n)}),Pr=$r(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=Ir("time",t):0===Object.keys(n).length&&(n=Ir("time","short")),new Intl.DateTimeFormat(e,n)}),Rr=$r((e,t=Sr())=>new hr(e,t,xr.formats,{ignoreTag:xr.ignoreTag})),kr=Ot([ee,gr],()=>(e,t={})=>{var n,r;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:i,locale:a=Sr(),default:s}=o;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=fr(e,a);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=xr).handleMissingMessage)?void 0:n.call(r,{locale:a,id:e,defaultValue:s}))?n:s)?r:e;if(!i)return l;let c=l;try{c=Rr(l,a).format(i)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),Or=(Ot([ee],()=>(e,t)=>{return[{locale:t=Sr(),...n}={}]=[t],Pr({locale:t,...n}).format(e);var n}),Ot([ee],()=>(e,t)=>{return[{locale:t=Sr(),...n}={}]=[t],Fr({locale:t,...n}).format(e);var n}),Ot([ee],()=>(e,t)=>{return[{locale:t=Sr(),...n}={}]=[t],Lr({locale:t,...n}).format(e);var n}),Ot([ee,gr],()=>(e,t=Sr())=>fr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Ft.indexOf(e)&&(t=new $t(t),Pt[e]=t,Ft.push(e)),Pt[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),Nr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Dr(e,t){br(e,t)}const Ur={en:{login:"Login",register:"Register",deposit:"Deposit",promotions:"Promotions"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金",promotions:"促销活动"},fr:{login:"Connexion",register:"Enregistrer",deposit:"Dépôt",promotions:"Promotions"},tr:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito",promotions:"Promosyonlar"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit",promotions:"Promotii"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita",promotions:"Promociones"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito",promotions:"Promoções"},hr:{login:"Prijava",register:"Registracija",deposit:"Depozit",promotions:"Promocije"}};function Gr(e,t){br(e,t)}const jr={en:{login:"Login",register:"Register",deposit:"Deposit"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金"},fr:{login:"Connexion",register:"Registre",deposit:"Dépôt"},tr:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito"},hr:{login:"prijava",register:"registracija",deposit:"uplata"}};function zr(e,t,n){e=e.slice();return e[47]=t[n],e[49]=n,e}function Vr(e,t,n){e=e.slice();return e[50]=t[n],e}function Wr(e,t,n){e=e.slice();return e[53]=t[n],e[55]=n,e}function Xr(t){let r,o=[],n=new Map,i=t[9];const a=e=>e[47].id;for(let e=0;e<i.length;e+=1){var s=zr(t,i,e),l=a(s);n.set(l,o[e]=to(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=N()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);ae(t,r,n)},p(e,t){12237&t[0]&&(i=e[9],o=Ee(o,t,a,1,e,i,n,r.parentNode,we,to,r,zr))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&se(r)}}}function Zr(e){let n,r,o=e[47].name+"";return{c(){n=le("a"),r=ce(o),he(n,"href","#")},m(e,t){ae(e,n,t),ie(n,r)},p(e,t){512&t[0]&&o!==(o=e[47].name+"")&&de(r,o)},d(e){e&&se(n)}}}function Yr(e){let n,r,o=e[47].label+"";return{c(){n=le("a"),r=ce(o),he(n,"href","#")},m(e,t){ae(e,n,t),ie(n,r)},p(e,t){512&t[0]&&o!==(o=e[47].label+"")&&de(r,o)},d(e){e&&se(n)}}}function Kr(e){let n,r=0<e[10].length&&"true"==e[3]&&Jr(e);return{c(){r&&r.c(),n=N()},m(e,t){r&&r.m(e,t),ae(e,n,t)},p(e,t){0<e[10].length&&"true"==e[3]?r?r.p(e,t):((r=Jr(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&se(n)}}}function Jr(t){let o,i=t[10],a=[];for(let e=0;e<i.length;e+=1)a[e]=eo(Vr(t,i,e));return{c(){o=le("ul");for(let e=0;e<a.length;e+=1)a[e].c();he(o,"class","DropDown")},m(e,t){ae(e,o,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(o,null)},p(t,n){if(10176&n[0]){let e;for(i=t[10],e=0;e<i.length;e+=1){var r=Vr(t,i,e);a[e]?a[e].p(r,n):(a[e]=eo(r),a[e].c(),a[e].m(o,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=i.length}},d(e){e&&se(o),S(a,e)}}}function Qr(n){let r,o,i,a,s,l,c,u=n[53]?.name+"";function h(...e){return n[29](n[47],n[49],n[53],n[55],...e)}return{c(){r=le("li"),o=le("a"),i=ce(u),s=ue(),he(o,"class",a="SubDropDown "+(n[49]!=n[6]||n[7]!=n[55]&&n[8]!=n[55]?"":"active"))},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(r,s),l||(c=R(r,"click",h),l=!0)},p(e,t){n=e,1024&t[0]&&u!==(u=n[53]?.name+"")&&de(i,u),1984&t[0]&&a!==(a="SubDropDown "+(n[49]!=n[6]||n[7]!=n[55]&&n[8]!=n[55]?"":"active"))&&he(o,"class",a)},d(e){e&&se(r),l=!1,c()}}}function qr(e,n){let r,o,i=n[49]==n[50].index&&Qr(n);return{key:e,first:null,c(){r=N(),i&&i.c(),o=N(),this.first=r},m(e,t){ae(e,r,t),i&&i.m(e,t),ae(e,o,t)},p(e,t){(n=e)[49]==n[50].index?i?i.p(n,t):((i=Qr(n)).c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},d(e){e&&se(r),i&&i.d(e),e&&se(o)}}}function eo(t){let r,o=[],n=new Map,i=t[50].items;const a=e=>e[53].id;for(let e=0;e<i.length;e+=1){var s=Wr(t,i,e),l=a(s);n.set(l,o[e]=qr(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=N()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);ae(t,r,n)},p(e,t){10176&t[0]&&(i=e[50].items,o=Ee(o,t,a,1,e,i,n,r.parentNode,we,qr,r,Wr))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&se(r)}}}function to(e,n){let r,o,i,a,s,l;function c(e){return"headerMain"===e[0]?Yr:Zr}let u=c(n),h=u(n),d=1==n[11][n[49]]&&Kr(n);function p(...e){return n[30](n[47],n[49],...e)}return{key:e,first:null,c(){r=le("li"),h.c(),o=ue(),d&&d.c(),i=ue(),he(r,"class",a="CarouselItem "+(-1<n[2]?.toString().indexOf("$")?n[2]?.split("$").pop()==n[47].id.split("$").pop()?"active":"":n[2]==n[47].id?"active":"")+" "+("headerMain"==n[0]?"":"SecondaryMenu")),he(r,"part","CarouselItem"),this.first=r},m(e,t){ae(e,r,t),h.m(r,null),ie(r,o),d&&d.m(r,null),ie(r,i),s||(l=R(r,"click",p),s=!0)},p(e,t){u===(u=c(n=e))&&h?h.p(n,t):(h.d(1),(h=u(n))&&(h.c(),h.m(r,o))),1==n[11][n[49]]?d?d.p(n,t):((d=Kr(n)).c(),d.m(r,i)):d&&(d.d(1),d=null),517&t[0]&&a!==(a="CarouselItem "+(-1<n[2]?.toString().indexOf("$")?n[2]?.split("$").pop()==n[47].id.split("$").pop()?"active":"":n[2]==n[47].id?"active":"")+" "+("headerMain"==n[0]?"":"SecondaryMenu"))&&he(r,"class",a)},d(e){e&&se(r),h.d(),d&&d.d(),s=!1,l()}}}function no(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b=0<n[9].length&&Xr(n);return{c(){r=le("div"),o=le("div"),(i=le("div")).innerHTML='<svg fill="none" stroke="var(--emfe-w-categories-arrows, var( --emfe-w-color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',a=ue(),s=le("div"),l=le("ul"),(c=le("li")).innerHTML='<a href="#CarouselNav">Close Subs</a>',u=ue(),b&&b.c(),h=ue(),(d=le("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',this.c=v,he(i,"class","CarouselLeftArrow"),he(c,"class","TouchOnly"),he(l,"id","CarouselNav"),he(l,"class","CarouselItems"),he(s,"class","CarouselNavWrap"),he(d,"class","CarouselRightArrow"),he(o,"class",p="CarouselContainer CarouselContainerMobile} "+("headerMain"===n[0]?"CarouselContainerHeaderMain":"")),he(o,"style",f="headerMain"===n[0]?"max-width: auto":`max-width: ${n[1]}px`),he(r,"class",m="CarouselWrapper "+("headerMain"===n[0]?"CarouselWrapperHeaderMain":""))},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(o,a),ie(o,s),ie(s,l),ie(l,c),ie(l,u),b&&b.m(l,null),n[31](l),n[32](s),ie(o,h),ie(o,d),n[34](r),g||(y=[R(i,"click",n[28]),R(d,"click",n[33])],g=!0)},p(e,t){0<e[9].length?b?b.p(e,t):((b=Xr(e)).c(),b.m(l,null)):b&&(b.d(1),b=null),1&t[0]&&p!==(p="CarouselContainer CarouselContainerMobile} "+("headerMain"===e[0]?"CarouselContainerHeaderMain":""))&&he(o,"class",p),3&t[0]&&f!==(f="headerMain"===e[0]?"max-width: auto":`max-width: ${e[1]}px`)&&he(o,"style",f),1&t[0]&&m!==(m="CarouselWrapper "+("headerMain"===e[0]?"CarouselWrapperHeaderMain":""))&&he(r,"class",m)},i:v,o:v,d(e){e&&se(r),b&&b.d(),n[31](null),n[32](null),n[34](null),g=!1,P(y)}}}function ro(t,e,i){let{endpoint:a=""}=e,{datasource:s=""}=e,{onclickeventname:n="defaultEvent"}=e,{actionevent:l="defaultEvent"}=e,{favoritesnumber:r="0"}=e,{location:c=""}=e,{clientstyling:o=""}=e,{clientstylingurl:u=""}=e,{identity:h=""}=e,{translationurl:d=""}=e,{containermaxwidth:p=""}=e,{isprimarymenu:f=!1}=e,{issecondarymenu:m=!1}=e,{lang:g=""}=e,{activeindex:y="0"}=e,{showsubgroups:b="false"}=e;var v,w;({withLocale:v,translations:w}={withLocale:"en",translations:{}}),ee.subscribe(e=>{null==e&&(gr.set(w),ee.set(v))}),Object.keys(jr).forEach(e=>{Gr(e,jr[e])});let E,B,C,x,M,T=window.navigator.userAgent;Nr(T);let H,A=[],_=[],S=[],$=(e,t,n,r,o)=>{e.subGroups&&null===r||(P(),i(6,B=t),i(6,B),"secondary"!=o?(window.postMessage({type:l,itemId:e.id,index:t,item:e,externalLink:e.externalLink||!1,target:(null==(o=e.attrs)?void 0:o.target)||null},window.location.href),i(7,C=null),i(8,x=null)):(i(7,C=r),i(7,C),i(8,x=C),window.postMessage({type:l,itemId:n.id,subIndex:r,subItem:n},window.location.href)))},I=()=>{H.scrollBy({left:-250,behavior:"smooth"})},L=()=>{H.scrollBy({left:250,behavior:"smooth"})};const F=e=>{"SliderData"==e.data.type&&e.data.identity==h&&(i(9,A=e.data.data),i(11,S=new Array(A.length).fill(!1)),"true"==b)&&A.forEach((e,t)=>{var r,o,n;0<(null==(n=null==e?void 0:e.subGroups)?void 0:n.count)&&(i(11,S[t]=!0,S),r=e,o=t,"secondaryMenu"==c&&a&&s&&g&&r.id&&(n=new URL(`${a}/casino/groups/${s}/${r.id}/subGroups?language=`+g),fetch(n.href).then(e=>e.json()).then(e=>{e.index=o,i(10,_=_.concat(e)),"false"==b&&window.postMessage({type:l,itemId:r.id,index:o,item:r},window.location.href);const n=[];_.map(e=>(e.items.forEach(t=>{n.find(e=>t.id==e)||n.push(t.id)}),n.flat())),window.postMessage({type:"SubgroupsIds",subGroupsIds:n},window.location.href)}).then(()=>{E.querySelectorAll(".DropDown")&&P()})),"headerMain"==c)&&window.postMessage({type:l,item:r},window.location.href)}),"GoToHomepage"==e.data.type&&A.forEach((e,t)=>{e.path.endsWith("/casino")&&(i(6,B=t),i(6,B))})},P=()=>{var t=E.querySelectorAll(".DropDown");document.activeElement.blur(),H.classList.add("isScrolling");for(let e=0;e<t.length;e++)t[e].style.transform="translateX(-"+H.scrollLeft+"px)";H.classList.remove("isScrolling")};return re(()=>("ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),window.addEventListener("message",F,!1),setTimeout(()=>{H.addEventListener("scroll",P)},500),()=>{window.removeEventListener("message",F),E.removeEventListener("scroll",P)})),t.$$set=e=>{"endpoint"in e&&i(16,a=e.endpoint),"datasource"in e&&i(17,s=e.datasource),"onclickeventname"in e&&i(18,n=e.onclickeventname),"actionevent"in e&&i(19,l=e.actionevent),"favoritesnumber"in e&&i(20,r=e.favoritesnumber),"location"in e&&i(0,c=e.location),"clientstyling"in e&&i(21,o=e.clientstyling),"clientstylingurl"in e&&i(22,u=e.clientstylingurl),"identity"in e&&i(23,h=e.identity),"translationurl"in e&&i(24,d=e.translationurl),"containermaxwidth"in e&&i(1,p=e.containermaxwidth),"isprimarymenu"in e&&i(25,f=e.isprimarymenu),"issecondarymenu"in e&&i(26,m=e.issecondarymenu),"lang"in e&&i(27,g=e.lang),"activeindex"in e&&i(2,y=e.activeindex),"showsubgroups"in e&&i(3,b=e.showsubgroups)},t.$$.update=()=>{if(t.$$.dirty[0],16777216&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Gr(e,t[e])})}).catch(e=>{console.log(e)}),2097168&t.$$.dirty[0]&&o&&M&&((e=document.createElement("style")).innerHTML=o,M.appendChild(e)),4194320&t.$$.dirty[0]&&u&&M){let t=document.createElement("style"),e=new URL(u);fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{M.appendChild(t)},1)})}var e;134217728&t.$$.dirty[0]&&g&&(e=g,ee.set(e))},[c,p,y,b,M,E,B,C,x,A,_,S,H,$,I,L,a,s,n,l,r,o,u,h,d,f,m,g,()=>I(),(e,t,n,r,o)=>{$(e,t,n,r,"secondary"),o.stopPropagation()},(e,t,n)=>{$(e,t,null,null,"main"),n.preventDefault()},function(e){q[e?"unshift":"push"](()=>{E=e,i(5,E)})},function(e){q[e?"unshift":"push"](()=>{H=e,i(12,H)})},()=>L(),function(e){q[e?"unshift":"push"](()=>{M=e,i(4,M)})}]}function oo(e,{delay:t=0,duration:n=400,easing:r=C}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*o}}function io(e,t){br(e,t)}customElements.get("casino-slider")||customElements.define("casino-slider",class extends Ce{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-orange-500, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-pink-500, #D0046C)));background:linear-gradient(to left, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-orange-500, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-pink-500, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));margin:0 auto}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-dunkel, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emfe-w-categories-arrows-bg, var(--emfe-w-color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emfe-w-categories-arrows, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems a{display:block;padding:7px 10px;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-dunkel, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emfe-w-categories-color-secondary, var(--emfe-w-color-orange-500, #FD2839));background:-webkit-linear-gradient(var(--emfe-w-categories-color-secondary, var(--emfe-w-color-orange-500, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-pink-500, #D0046C)));background:linear-gradient(var(--emfe-w-categories-color-secondary, var(--emfe-w-color-orange-500, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-pink-500, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-dunkel, #07072A));color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emfe-w-categories-contrast, var(--emfe-w-color-dunkel, #07072A));background:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));color:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emfe-w-color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}',this.shadowRoot.appendChild(t),Be(this,{target:this.shadowRoot,props:U(this.attributes),customElement:!0},ro,no,T,{endpoint:16,datasource:17,onclickeventname:18,actionevent:19,favoritesnumber:20,location:0,clientstyling:21,clientstylingurl:22,identity:23,translationurl:24,containermaxwidth:1,isprimarymenu:25,issecondarymenu:26,lang:27,activeindex:2,showsubgroups:3},null,[-1,-1]),e&&(e.target&&ae(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["endpoint","datasource","onclickeventname","actionevent","favoritesnumber","location","clientstyling","clientstylingurl","identity","translationurl","containermaxwidth","isprimarymenu","issecondarymenu","lang","activeindex","showsubgroups"]}get endpoint(){return this.$$.ctx[16]}set endpoint(e){this.$$set({endpoint:e}),d()}get datasource(){return this.$$.ctx[17]}set datasource(e){this.$$set({datasource:e}),d()}get onclickeventname(){return this.$$.ctx[18]}set onclickeventname(e){this.$$set({onclickeventname:e}),d()}get actionevent(){return this.$$.ctx[19]}set actionevent(e){this.$$set({actionevent:e}),d()}get favoritesnumber(){return this.$$.ctx[20]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),d()}get location(){return this.$$.ctx[0]}set location(e){this.$$set({location:e}),d()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get identity(){return this.$$.ctx[23]}set identity(e){this.$$set({identity:e}),d()}get translationurl(){return this.$$.ctx[24]}set translationurl(e){this.$$set({translationurl:e}),d()}get containermaxwidth(){return this.$$.ctx[1]}set containermaxwidth(e){this.$$set({containermaxwidth:e}),d()}get isprimarymenu(){return this.$$.ctx[25]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),d()}get issecondarymenu(){return this.$$.ctx[26]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),d()}get lang(){return this.$$.ctx[27]}set lang(e){this.$$set({lang:e}),d()}get activeindex(){return this.$$.ctx[2]}set activeindex(e){this.$$set({activeindex:e}),d()}get showsubgroups(){return this.$$.ctx[3]}set showsubgroups(e){this.$$set({showsubgroups:e}),d()}});const ao={en:{language:"Select Language"},"zh-hk":{language:"選擇語言"},fr:{language:"Sélectionner la langue"},tr:{language:"Dil Seçin"},ro:{language:"Selecteaza limba"},es:{language:"Seleccionar idioma"},pt:{language:"Selecione o idioma"},hr:{language:"Izaberite jezik"}};function so(e,t,n){e=e.slice();return e[0]=t[n],e}function lo(e,t,n){e=e.slice();return e[43]=t[n],e}function co(e,t,n){e=e.slice();return e[46]=t[n],e}function uo(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,t,g,y,b,v=n[3],w=[];for(let e=0;e<v.length;e+=1)w[e]=ho(co(n,v,e));let E=n[5],B=[];for(let e=0;e<E.length;e+=1)B[e]=po(lo(n,E,e));let C=1<n[9].length&&fo(n);return{c(){r=le("div"),o=le("span"),(i=le("slot")).innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',s=ue(),l=le("div"),c=le("ul");for(let e=0;e<w.length;e+=1)w[e].c();h=ue(),d=le("ul");for(let e=0;e<B.length;e+=1)B[e].c();f=ue(),C&&C.c(),he(i,"name","close"),he(o,"class",a=n[6]?"ModalCloseBtn":""),he(o,"role","button"),he(c,"class",u="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")),he(d,"class",p="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")),he(l,"class",m="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")),he(r,"class","HamburgerModalWindow"),he(r,"part","HamburgerModalWindow")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(r,s),ie(r,l),ie(l,c);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(c,null);ie(l,h),ie(l,d);for(let e=0;e<B.length;e+=1)B[e]&&B[e].m(d,null);ie(l,f),C&&C.m(l,null),n[27](r),g=!0,y||(b=R(o,"click",n[12]),y=!0)},p(e,t){if(n=e,(!g||64&t[0]&&a!==(a=n[6]?"ModalCloseBtn":""))&&he(o,"class",a),8216&t[0]){let e;for(v=n[3],e=0;e<v.length;e+=1){const o=co(n,v,e);w[e]?w[e].p(o,t):(w[e]=ho(o),w[e].c(),w[e].m(c,null))}for(;e<w.length;e+=1)w[e].d(1);w.length=v.length}if((!g||128&t[0]&&u!==(u="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")))&&he(c,"class",u),16416&t[0]){let e;for(E=n[5],e=0;e<E.length;e+=1){const o=lo(n,E,e);B[e]?B[e].p(o,t):(B[e]=po(o),B[e].c(),B[e].m(d,null))}for(;e<B.length;e+=1)B[e].d(1);B.length=E.length}(!g||128&t[0]&&p!==(p="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")))&&he(d,"class",p),1<n[9].length?C?C.p(n,t):((C=fo(n)).c(),C.m(l,null)):C&&(C.d(1),C=null),(!g||64&t[0]&&m!==(m="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")))&&he(l,"class",m)},i(e){g||(x(()=>{g&&(t=t||ve(r,oo,{transitionDuration:yo},!0)).run(1)}),g=!0)},o(e){(t=t||ve(r,oo,{transitionDuration:yo},!1)).run(0),g=!1},d(e){e&&se(r),S(w,e),S(B,e),C&&C.d(),n[27](null),e&&t&&t.end(),y=!1,b()}}}function ho(n){let r,o,i,a,s,l,c,u,h,d,p=n[46].label+"";function f(){return n[23](n[46])}return{c(){r=le("li"),o=le("div"),i=le("img"),s=ue(),l=ce(p),c=ue(),m(i.src,a=n[46].img)||he(i,"src",a),he(i,"alt","menu icon"),he(o,"class","HamburgerItemContainer"),he(r,"class",u=n[4]===n[46].id?"ActiveItem":"")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(o,s),ie(o,l),ie(r,c),h||(d=R(r,"click",f),h=!0)},p(e,t){n=e,8&t[0]&&!m(i.src,a=n[46].img)&&he(i,"src",a),8&t[0]&&p!==(p=n[46].label+"")&&de(l,p),24&t[0]&&u!==(u=n[4]===n[46].id?"ActiveItem":"")&&he(r,"class",u)},d(e){e&&se(r),h=!1,d()}}}function po(n){let r,o,i,a,s,l,c,u,h=n[43].label+"";function d(...e){return n[24](n[43],...e)}return{c(){r=le("li"),o=le("img"),a=ue(),s=ce(h),l=ue(),m(o.src,i=n[43].img)||he(o,"src",i),he(o,"alt","menu icon")},m(e,t){ae(e,r,t),ie(r,o),ie(r,a),ie(r,s),ie(r,l),c||(u=R(r,"click",d),c=!0)},p(e,t){n=e,32&t[0]&&!m(o.src,i=n[43].img)&&he(o,"src",i),32&t[0]&&h!==(h=n[43].label+"")&&de(s,h)},d(e){e&&se(r),c=!1,u()}}}function fo(n){let r,o,i,a,s,l,c,e=n[11]("language")+"",u=n[9],h=[];for(let e=0;e<u.length;e+=1)h[e]=mo(so(n,u,e));return{c(){r=le("div"),o=le("span"),i=ce(e),a=ue(),s=le("select");for(let e=0;e<h.length;e+=1)h[e].c();he(s,"class","Item ItemLanguage"),void 0===n[10]&&x(()=>n[25].call(s)),he(r,"class","LanguageSelectorTitle")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(r,a),ie(r,s);for(let e=0;e<h.length;e+=1)h[e]&&h[e].m(s,null);D(s,n[10],!0),l||(c=[R(s,"change",n[25]),R(s,"change",n[26])],l=!0)},p(t,n){if(2048&n[0]&&e!==(e=t[11]("language")+"")&&de(i,e),512&n[0]){let e;for(u=t[9],e=0;e<u.length;e+=1){const i=so(t,u,e);h[e]?h[e].p(i,n):(h[e]=mo(i),h[e].c(),h[e].m(s,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=u.length}1536&n[0]&&D(s,t[10])},d(e){e&&se(r),S(h,e),l=!1,P(c)}}}function mo(e){let n,r,o,i=e[0]+"";return{c(){n=le("option"),r=ce(i),n.__value=o=e[0],n.value=n.__value,n.selected=!0},m(e,t){ae(e,n,t),ie(n,r)},p(e,t){512&t[0]&&i!==(i=e[0]+"")&&de(r,i),512&t[0]&&o!==(o=e[0])&&(n.__value=o,n.value=n.__value)},d(e){e&&se(n)}}}function go(n){let r,o,i=!0===n[8]&&uo(n);return{c(){r=le("div"),i&&i.c(),this.c=v},m(e,t){ae(e,r,t),i&&i.m(r,null),n[28](r),o=!0},p(e,t){!0===e[8]?i?(i.p(e,t),256&t[0]&&ge(i,1)):((i=uo(e)).c(),ge(i,1),i.m(r,null)):i&&(g={r:0,c:[],p:g},ye(i,1,1,()=>{i=null}),g.r||P(g.c),g=g.p)},i(e){o||(ge(i),o=!0)},o(e){ye(i),o=!1},d(e){e&&se(r),i&&i.d(),n[28](null)}}}let yo=350;function bo(t,e,r){let n;te(t,kr,e=>r(11,n=e));let o,i,a,{menuitemsurl:s=""}=e,{lang:l="en"}=e,{activecategory:c=""}=e,{languageslist:u=""}=e,{translationurl:h=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,f=window.navigator.userAgent,m=[],g="",y=[],b=!1,v=!1,w=!1,E=!0,B=[],C=!1,x="";Object.keys(ao).forEach(e=>{io(e,ao[e])});const M=()=>{r(8,w=!1),r(6,b=!1),r(7,v=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href)},T=e=>{var n;"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),r(8,w=!0),setTimeout(()=>{r(6,b=!0)},500),setTimeout(()=>{r(7,v=!0)},1500),n=s,new Promise((e,t)=>{i&&!C?e(i):_(n)}))},H=(e,t)=>{r(4,g=e),r(5,y=t||[]),"function"==typeof gtag&&gtag("event","ChangeMenu",{context:"HamburgerMenu",menuItem:""+g})},A=()=>{var e=m.filter(e=>{let t=!1;return null!=(e=e.children)&&e.forEach(e=>{e.path.includes(c)&&(t=!0)}),t});0<e.length&&H(e[0].id,e[0].children)},_=e=>{fetch(e).then(e=>e.json()).then(e=>{r(3,m=e.filter(e=>"banner"!==(null==e?void 0:e.type))),A(),r(22,E=!1),i=e,C=!1},e=>{console.error(e)})};let S=e=>{window.postMessage({type:"HamburgerItemClicked",item:e,externalLink:e.externalLink||!1,target:e.attrs.target||null},window.location.href),M()};const $=()=>{C=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:x},window.location.href)};return re(()=>(window.addEventListener("message",T,!1),Or(f),()=>{window.removeEventListener("message",T)})),t.$$set=e=>{"menuitemsurl"in e&&r(16,s=e.menuitemsurl),"lang"in e&&r(0,l=e.lang),"activecategory"in e&&r(17,c=e.activecategory),"languageslist"in e&&r(18,u=e.languageslist),"translationurl"in e&&r(19,h=e.translationurl),"clientstyling"in e&&r(20,d=e.clientstyling),"clientstylingurl"in e&&r(21,p=e.clientstylingurl)},t.$$.update=()=>{if(262145&t.$$.dirty[0]&&l&&u&&(e=l,ee.set(e),C&&_(s),r(9,B=u.replace(/ /g,"").split(",")),r(9,B=B.map(e=>e.toUpperCase())),r(10,x=l.toUpperCase())),4325376&t.$$.dirty[0]&&c&&!E&&A(),524288&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{io(e,t[e])})}).catch(e=>{console.log(e)}),1048578&t.$$.dirty[0]&&d&&a&&((e=document.createElement("style")).innerHTML=d,a.appendChild(e)),2097154&t.$$.dirty[0]&&p&&a){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1)})}var e},[l,a,void 0,m,g,y,b,v,w,B,x,n,M,H,S,$,s,c,u,h,d,p,E,e=>H(e.id,e.children),(e,t)=>{S(e),t.preventDefault()},function(){x=ne(this),r(10,x),r(9,B)},()=>$(),function(e){q[e?"unshift":"push"](()=>{o=e,r(2,o)})},function(e){q[e?"unshift":"push"](()=>{a=e,r(1,a)})}]}function vo(e,t){br(e,t)}customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",class extends Ce{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}.LanguageSelectorTitle{width:90vw;padding:5px 0;position:fixed;bottom:0;background:var(--emfe-w-header-color-secondary-menu-bg, var(--emfe-w-color-darkest-blue, #050518))}.LanguageSelectorTitle span{display:inline;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));margin:0 20px;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:12px}.ItemLanguage{height:34px;width:88%;margin:0 20px;text-align:left;line-height:34px;background:transparent;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));border:none}.ItemLanguage option{color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A))}.HamburgerModalWindow{display:block;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.7)}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emfe-w-header-color-secondary-menu-bg, var(--emfe-w-color-darkest-blue, #050518));width:0vw;height:100%;padding:0;border-top:0;border-radius:0;transition:width 0.4s ease-in-out;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{width:90vw}.HamburgerModalWindow .ModalCloseBtn{position:absolute;top:9px;right:9px;width:20px;height:20px;border-radius:100%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.2);opacity:1;cursor:pointer;transition:all 150ms ease-in-out;transition:opacity 500ms ease-in-out}.HamburgerModalWindow .ModalCloseBtn svg{width:20px;height:20px;padding:2px}.HamburgerModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF))}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:all 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emfe-w-header-color-menu-bg, var(--emfe-w-color-darkest-blue, #050518));white-space:nowrap;overflow:scroll;list-style:none;border-bottom:2px solid var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));width:90vw}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:100px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.HamburgerModalWindow .HamburgerPrimaryMenu.HamburgerPrimaryMenuFixed{position:fixed}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.HamburgerSecondaryMenuFixed{margin-top:106px;margin-bottom:70px}.HamburgerModalWindow .HamburgerSecondaryMenu li{margin:0 20px;padding:20px 0;display:flex;align-items:center;gap:15px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B)}",this.shadowRoot.appendChild(t),Be(this,{target:this.shadowRoot,props:U(this.attributes),customElement:!0},bo,go,T,{menuitemsurl:16,lang:0,activecategory:17,languageslist:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),e&&(e.target&&ae(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["menuitemsurl","lang","activecategory","languageslist","translationurl","clientstyling","clientstylingurl"]}get menuitemsurl(){return this.$$.ctx[16]}set menuitemsurl(e){this.$$set({menuitemsurl:e}),d()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d()}get activecategory(){return this.$$.ctx[17]}set activecategory(e){this.$$set({activecategory:e}),d()}get languageslist(){return this.$$.ctx[18]}set languageslist(e){this.$$set({languageslist:e}),d()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),d()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}});const wo={en:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"},"zh-hk":{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"},de:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"},it:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"},fr:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"},es:{balanceTitle:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"},tr:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"},ru:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"},ro:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"},hr:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"},hu:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"},pl:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"},pt:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"},sl:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"},sr:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}};var Eo=We(function(E,e){var r,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Ve:globalThis,$=t.setTimeout,I=t.clearTimeout,L=t.XMLHttpRequest,o=t.XDomainRequest,n=t.ActiveXObject,i=t.EventSource,a=t.document,h=t.Promise,d=t.fetch,s=t.Response,p=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;function c(){this.bitsNeeded=0,this.codePoint=0}function u(){}function F(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=u,this.onload=u,this.onerror=u,this.onreadystatechange=u,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=u}function m(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function g(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),i=o.shift(),o=o.join(": ");t[m(i)]=o}this._map=t}function P(){}function y(e){this._headers=e}function R(){}function k(){this._listeners=Object.create(null)}function b(e){$(function(){throw e},0)}function v(e){this.type=e,this.target=void 0}function O(e,t){v.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function N(e,t){v.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){v.call(this,e),this.error=t.error}function U(e,t){return e=null==e?t:parseInt(e,10),z(e=e!=e?t:e)}function G(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){b(e)}}"undefined"==typeof window||void 0===a||"readyState"in a||null!=a.body||(a.readyState="loading",window.addEventListener("load",function(e){a.readyState="complete"},!1)),null==L&&null!=n&&(L=function(){return new n("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(r=d,d=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),c.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",o=this.bitsNeeded,i=this.codePoint,a=0;a<e.length;a+=1){var s=e[a];0!==o&&(s<128||191<s||!t(i<<6|63&s,o-6,n(o,i)))&&(o=0,i=65533,r+=String.fromCharCode(i)),0===o?(i=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||t(i,o,n(o,i))||(o=0,i=65533)):(o-=6,i=i<<6|63&s),0===o&&(i<=65535?r+=String.fromCharCode(i):r=(r+=String.fromCharCode(55296+(i-65535-1>>10)))+String.fromCharCode(56320+(i-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=i,r},null!=p&&null!=l&&function(){try{return"test"===(new p).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(p=c),F.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:u}),l(),1===a||2===a||3===a){if(a=4,0!==r&&(I(r),r=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}}var o=this,i=this._xhr,a=1,r=0,s=(this._abort=function(e){0!==o._sendTimeout&&(I(o._sendTimeout),o._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,i.onload=u,i.onerror=u,i.onabort=u,i.onprogress=u,i.onreadystatechange=u,i.abort(),0!==r&&(I(r),r=0),e)||(o.readyState=4,o.onabort(null),o.onreadystatechange()),a=0},function(){if(1===a){var t=0,n="",r=void 0;if("contentType"in i)t=200,n="OK",r=i.contentType;else try{t=i.status,n=i.statusText,r=i.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(a=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}),l=function(){if(s(),2===a||3===a){a=3;var e="";try{e=i.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(){r=$(function(){c()},500),3===i.readyState&&l()};"onload"in i&&(i.onload=function(e){n("load",e)}),"onerror"in i&&(i.onerror=function(e){n("error",e)}),"onabort"in i&&(i.onabort=function(e){n("abort",e)}),"onprogress"in i&&(i.onprogress=l),"onreadystatechange"in i&&(i.onreadystatechange=function(e){e=e,null!=i&&(4===i.readyState?"onload"in i&&"onerror"in i&&"onabort"in i||n(""===i.responseText?"error":"load",e):3===i.readyState?"onprogress"in i||l():2===i.readyState&&s())}),!("contentType"in i)&&"ontimeout"in L.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),i.open(e,t,!0),"readyState"in i&&(r=$(function(){c()},0))},F.prototype.abort=function(){this._abort(!1)},F.prototype.getResponseHeader=function(e){return this._contentType},F.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},F.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},F.prototype.send=function(){if("ontimeout"in L.prototype&&("sendAsBinary"in L.prototype||"mozAnon"in L.prototype)||null==a||null==a.readyState||"complete"===a.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=$(function(){t._sendTimeout=0,t.send()},4)}},g.prototype.get=function(e){return this._map[m(e)]},null!=L&&null==L.HEADERS_RECEIVED&&(L.HEADERS_RECEIVED=2),P.prototype.open=function(o,i,t,n,e,r,a){o.open("GET",e);var s,l=0;for(s in o.onprogress=function(){var e=o.responseText.slice(l);l+=e.length,t(e)},o.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var e,t,n,r;o.readyState===L.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),i(e,t,n,new g(r)))},o.withCredentials=r,a)Object.prototype.hasOwnProperty.call(a,s)&&o.setRequestHeader(s,a[s]);return o.send(),o},y.prototype.get=function(e){return this._headers.get(e)},R.prototype.open=function(e,t,o,n,r,i,a){var s=null,l=new f,c=l.signal,u=new p;return d(r,{headers:a,credentials:i?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new y(e.headers)),new h(function(t,n){function r(){s.read().then(function(e){e.done?t(void 0):(e=u.decode(e.value,{stream:!0}),o(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},k.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){b(e)}}},k.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var o=!1,i=0;i<r.length;i+=1)r[i]===t&&(o=!0);o||r.push(t)},k.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],i=0;i<r.length;i+=1)r[i]!==t&&o.push(r[i]);0===o.length?delete n[e]:n[e]=o}},O.prototype=Object.create(v.prototype),N.prototype=Object.create(v.prototype),D.prototype=Object.create(v.prototype);var j=/^text\/event\-stream(;.*)?$/i,z=function(e){return Math.min(Math.max(e,1e3),18e6)};function w(e,t){var l,i,a,c,u,h,d,p,f,n,s,m,g,y,b,v,w,E,B,C,x,M,T,H,A,_,S;k.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,i=e,e=t,i=String(i),t=Boolean(e.withCredentials),a=e.lastEventIdQueryParameterName||"lastEventId",c=z(1e3),u=U(e.heartbeatTimeout,45e3),h="",d=c,p=!1,f=0,n=e.headers||{},e=e.Transport,s=V&&null==e?void 0:new F(new(null!=e?e:null!=L&&"withCredentials"in L.prototype||null==o?L:o)),m=new(null!=e&&"string"!=typeof e?e:null==s?R:P),g=void 0,b=-1,B=E=w=v="",M=x=C=y=0,T=function(e,t,n,r){var o,i;0===b&&(200===e&&null!=n&&j.test(n)?(b=1,p=Date.now(),d=c,l.readyState=1,o=new N("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),G(l,l.onopen,o)):(i="",i=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",_(),o=new N("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),G(l,l.onerror,o),console.error(i)))},H=function(e){if(1===b){for(var t=-1,n=0;n<e.length;n+=1)(a=e.charCodeAt(n))!=="\n".charCodeAt(0)&&a!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?B:"")+e.slice(0,t+1);B=(-1===t?B:"")+e.slice(t+1),""!==e&&(p=Date.now(),f+=e.length);for(var o=0;o<r.length;o+=1){var i,a=r.charCodeAt(o);if(-1===C&&a==="\n".charCodeAt(0))C=0;else if(-1===C&&(C=0),a==="\r".charCodeAt(0)||a==="\n".charCodeAt(0)){if(0!==C&&(1===C&&(M=o+1),s=r.slice(x,M-1),i=r.slice(M+(M<o&&r.charCodeAt(M)===" ".charCodeAt(0)?1:0),o),"data"===s?v=v+"\n"+i:"id"===s?w=i:"event"===s?E=i:"retry"===s?(c=U(i,c),d=c):"heartbeatTimeout"===s&&(u=U(i,u),0!==y)&&(I(y),y=$(function(){S()},u))),0===C){if(""!==v){h=w;var s=new O(E=""===E?"message":E,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(s),"open"===E?G(l,l.onopen,s):"message"===E?G(l,l.onmessage,s):"error"===E&&G(l,l.onerror,s),2===b)return}E=v=""}C=a==="\r".charCodeAt(0)?-1:0}else 0===C&&(x=o,C=1),1===C?a===":".charCodeAt(0)&&(M=o+1,C=2):2===C&&(C=3)}}},A=function(e){var t;1!==b&&0!==b||(b=-1,0!==y&&(I(y),y=0),y=$(function(){S()},d),d=z(Math.min(16*c,2*d)),l.readyState=0,t=new D("error",{error:e}),l.dispatchEvent(t),G(l,l.onerror,t),null!=e&&console.error(e))},_=function(){b=2,null!=g&&(g.abort(),g=void 0),0!==y&&(I(y),y=0),l.readyState=2},S=function(){if(y=0,-1===b){p=!1,f=0,y=$(function(){S()},u),w=h,B=E=v="",C=M=x=b=0;var e=i,t=("data:"!==i.slice(0,5)&&"blob:"!==i.slice(0,5)&&""!==h&&(e=-1===(t=i.indexOf("?"))?i:i.slice(0,t+1)+i.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===a?"":e}),e+=(-1===i.indexOf("?")?"?":"&")+a+"="+encodeURIComponent(h)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{g=m.open(s,T,H,A,e,t,n)}catch(e){throw _(),e}}else p||null==g?(e=Math.max((p||Date.now())+u-Date.now(),1),p=!1,y=$(function(){S()},e)):(A(new Error("No activity within "+u+" milliseconds. "+(0===b?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=i,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=_,S()}var V=null!=d&&null!=s&&"body"in s.prototype;(w.prototype=Object.create(k.prototype)).CONNECTING=0,w.prototype.OPEN=1,w.prototype.CLOSED=2,w.prototype.close=function(){this._close()},w.CONNECTING=0,w.OPEN=1,w.CLOSED=2,w.prototype.withCredentials=void 0,t=i,null==L||null!=i&&"withCredentials"in i.prototype||(t=w),(s=e).EventSourcePolyfill=w,s.NativeEventSource=i,s.EventSource=t}),Bo=We(function(e,t){function l(e,t){if(!(this instanceof l))return new l(e,t);t=Object.assign({},o,t);var n=Math.pow(10,t.precision);this.intValue=e=r(e,t),this.value=e/n,t.increment=t.increment||1/n,t.groups=t.useVedic?a:i,this.s=t,this.p=n}function r(e,t,n){var n=!(2<arguments.length&&void 0!==n)||n,r=t.decimal,o=t.errorOnInvalid,i=t.fromCents,t=Math.pow(10,t.precision),a=e instanceof l;if(a&&i)return e.intValue;if("number"==typeof e||a)r=a?e.value:e;else if("string"==typeof e)o=new RegExp("[^-\\d"+r+"]","g"),r=new RegExp("\\"+r,"g"),r=e.replace(/\((.*)\)/,"-$1").replace(o,"").replace(r,".")||0;else{if(o)throw Error("Invalid Input");r=0}return i||(r=(r*t).toFixed(4)),n?Math.round(r):r}var o,i,a;e.exports=(o={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(e,t){var n=t.pattern,r=t.negativePattern,o=t.symbol,i=t.separator,a=t.decimal;t=t.groups;var s=(l=(""+e).replace(/^-/,"").split("."))[0],l=l[1];return(0<=e.value?n:r).replace("!",o).replace("#",s.replace(t,"$1"+i)+(l?a+l:""))},fromCents:!1},i=/(\d)(?=(\d{3})+\b)/g,a=/(\d)(?=(\d\d)+\d\b)/g,l.prototype={add:function(e){var t=this.s,n=this.p;return l((this.intValue+r(e,t))/(t.fromCents?1:n),t)},subtract:function(e){var t=this.s,n=this.p;return l((this.intValue-r(e,t))/(t.fromCents?1:n),t)},multiply:function(e){var t=this.s;return l(this.intValue*e/(t.fromCents?1:Math.pow(10,t.precision)),t)},divide:function(e){var t=this.s;return l(this.intValue/r(e,t,!1),t)},distribute:function(e){for(var t=this.intValue,n=this.p,r=this.s,o=[],i=Math[0<=t?"floor":"ceil"](t/e),a=Math.abs(t-i*e),n=r.fromCents?1:n;0!==e;e--){var s=l(i/n,r);0<a--&&(s=s[0<=t?"add":"subtract"](1/n)),o.push(s)}return o},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(e){var t=this.s;return"function"==typeof e?e(this,t):t.format(this,Object.assign({},t,e))},toString:function(){var e=this.s,t=e.increment;return(Math.round(this.intValue/this.p/t)*t).toFixed(e.precision)},toJSON:function(){return this.value}},l)});function Co(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,B,C,x,M,T,H,A,_=n[8]("balanceTitle")+"",S=n[8]("totalBalance")+"",$=n[8]("depositButton")+"";function I(e){return"gm16"==e[0]?Mo:xo}let L=I(n),F=L(n);return{c(){r=le("div"),o=le("div"),i=ue(),a=le("div"),s=le("div"),l=le("p"),c=ce(_),u=ue(),h=le("div"),d=le("div"),p=le("p"),f=ce(S),m=ue(),g=le("p"),y=le("span"),b=ce(n[4]),v=ue(),w=le("span"),E=ce(n[5]),B=ue(),F.c(),C=ue(),x=le("div"),M=le("button"),T=ce($),he(o,"class","BalanceModalClose"),he(l,"class","BalanceModalTitle"),he(s,"class","BalanceModalHeader"),he(p,"class","BalanceModalText"),he(y,"class","BalanceModalAmount"),he(w,"class","BalanceModalCurrency"),he(g,"class","BalanceModalValue"),he(d,"class","BalanceModalRow"),he(h,"class","BalanceModalBody"),he(M,"class","BalanceModalAction"),he(x,"class","BalanceModalFooter"),he(a,"class","BalanceModal"),he(r,"class","BalanceModalWrapper")},m(e,t){ae(e,r,t),ie(r,o),ie(r,i),ie(r,a),ie(a,s),ie(s,l),ie(l,c),ie(a,u),ie(a,h),ie(h,d),ie(d,p),ie(p,f),ie(d,m),ie(d,g),ie(g,y),ie(y,b),ie(g,v),ie(g,w),ie(w,E),ie(h,B),F.m(h,null),ie(a,C),ie(a,x),ie(x,M),ie(M,T),H||(A=[R(o,"click",n[24]),R(M,"click",n[25])],H=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("balanceTitle")+"")&&de(c,_),256&t[0]&&S!==(S=e[8]("totalBalance")+"")&&de(f,S),16&t[0]&&de(b,e[4]),32&t[0]&&de(E,e[5]),L===(L=I(e))&&F?F.p(e,t):(F.d(1),(F=L(e))&&(F.c(),F.m(h,null))),256&t[0]&&$!==($=e[8]("depositButton")+"")&&de(T,$)},d(e){e&&se(r),F.d(),H=!1,P(A)}}}function xo(e){let n,r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,B,C=e[8]("cashBalance")+"",x=e[11](e[6][0].balanceAmount)+"",M=e[8]("bonusBalance")+"",T=e[11](e[6][1].balanceAmount)+"";return{c(){n=le("div"),r=le("p"),o=ce(C),i=ue(),a=le("p"),s=le("span"),l=ce(x),c=ue(),u=le("span"),h=ce(e[5]),d=ue(),p=le("div"),f=le("p"),m=ce(M),g=ue(),y=le("p"),b=le("span"),v=ce(T),w=ue(),E=le("span"),B=ce(e[5]),he(r,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(u,"class","BalanceModalCurrency"),he(a,"class","BalanceModalValue"),he(n,"class","BalanceModalRow"),he(f,"class","BalanceModalText"),he(b,"class","BalanceModalAmount"),he(E,"class","BalanceModalCurrency"),he(y,"class","BalanceModalValue"),he(p,"class","BalanceModalRow")},m(e,t){ae(e,n,t),ie(n,r),ie(r,o),ie(n,i),ie(n,a),ie(a,s),ie(s,l),ie(a,c),ie(a,u),ie(u,h),ae(e,d,t),ae(e,p,t),ie(p,f),ie(f,m),ie(p,g),ie(p,y),ie(y,b),ie(b,v),ie(y,w),ie(y,E),ie(E,B)},p(e,t){256&t[0]&&C!==(C=e[8]("cashBalance")+"")&&de(o,C),64&t[0]&&x!==(x=e[11](e[6][0].balanceAmount)+"")&&de(l,x),32&t[0]&&de(h,e[5]),256&t[0]&&M!==(M=e[8]("bonusBalance")+"")&&de(m,M),64&t[0]&&T!==(T=e[11](e[6][1].balanceAmount)+"")&&de(v,T),32&t[0]&&de(B,e[5])},d(e){e&&se(n),e&&se(d),e&&se(p)}}}function Mo(e){let n;function r(e){return"Casino"===e[1]||"Sports"===e[1]||""===e[1]?Ho:"All"==e[1]?To:void 0}let o=r(e),i=o&&o(e);return{c(){i&&i.c(),n=N()},m(e,t){i&&i.m(e,t),ae(e,n,t)},p(e,t){o===(o=r(e))&&i?i.p(e,t):(i&&i.d(1),(i=o&&o(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i&&i.d(e),e&&se(n)}}}function To(e){let n,r,o,i,k,O,a,s,l,N,c,u,D,h,d,p,U,G,f,m,g,j,y,z,V,b,v,w,W,X,Z,E,B,Y,K,C,J,Q,x,M,q,ee,te,T,H,ne,re,A,oe,_=e[8]("cashBalance")+"",S=e[7].Casino.Real+"",$=e[8]("cashBalance")+"",I=e[7].Sports.Real+"",L=e[8]("bonusBalance")+"",F=e[7].Casino.Bonus+"",P=e[8]("bonusBalance")+"",R=e[7].Sports.Bonus+"";return{c(){n=le("div"),r=le("div"),o=le("p"),i=ce(_),k=ce(" Casino"),O=ue(),a=le("p"),s=le("span"),l=ce(S),N=ue(),c=le("span"),u=ce(e[5]),D=ue(),h=le("div"),d=le("p"),p=ce($),U=ce(" Sports"),G=ue(),f=le("p"),m=le("span"),g=ce(I),j=ue(),y=le("span"),z=ce(e[5]),V=ue(),b=le("div"),v=le("div"),w=le("p"),W=ce(L),X=ce(" Casino"),Z=ue(),E=le("p"),B=le("span"),Y=ce(F),K=ue(),C=le("span"),J=ce(e[5]),Q=ue(),x=le("div"),M=le("p"),q=ce(P),ee=ce(" Sports"),te=ue(),T=le("p"),H=le("span"),ne=ce(R),re=ue(),A=le("span"),oe=ce(e[5]),he(o,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(c,"class","BalanceModalCurrency"),he(a,"class","BalanceModalValue"),he(r,"class","BalanceModalRowLine"),he(d,"class","BalanceModalText"),he(m,"class","BalanceModalAmount"),he(y,"class","BalanceModalCurrency"),he(f,"class","BalanceModalValue"),he(h,"class","BalanceModalRowLine"),he(n,"class","BalanceModalRowBoth"),he(w,"class","BalanceModalText"),he(B,"class","BalanceModalAmount"),he(C,"class","BalanceModalCurrency"),he(E,"class","BalanceModalValue"),he(v,"class","BalanceModalRowLine"),he(M,"class","BalanceModalText"),he(H,"class","BalanceModalAmount"),he(A,"class","BalanceModalCurrency"),he(T,"class","BalanceModalValue"),he(x,"class","BalanceModalRowLine"),he(b,"class","BalanceModalRowBoth")},m(e,t){ae(e,n,t),ie(n,r),ie(r,o),ie(o,i),ie(o,k),ie(r,O),ie(r,a),ie(a,s),ie(s,l),ie(a,N),ie(a,c),ie(c,u),ie(n,D),ie(n,h),ie(h,d),ie(d,p),ie(d,U),ie(h,G),ie(h,f),ie(f,m),ie(m,g),ie(f,j),ie(f,y),ie(y,z),ae(e,V,t),ae(e,b,t),ie(b,v),ie(v,w),ie(w,W),ie(w,X),ie(v,Z),ie(v,E),ie(E,B),ie(B,Y),ie(E,K),ie(E,C),ie(C,J),ie(b,Q),ie(b,x),ie(x,M),ie(M,q),ie(M,ee),ie(x,te),ie(x,T),ie(T,H),ie(H,ne),ie(T,re),ie(T,A),ie(A,oe)},p(e,t){256&t[0]&&_!==(_=e[8]("cashBalance")+"")&&de(i,_),128&t[0]&&S!==(S=e[7].Casino.Real+"")&&de(l,S),32&t[0]&&de(u,e[5]),256&t[0]&&$!==($=e[8]("cashBalance")+"")&&de(p,$),128&t[0]&&I!==(I=e[7].Sports.Real+"")&&de(g,I),32&t[0]&&de(z,e[5]),256&t[0]&&L!==(L=e[8]("bonusBalance")+"")&&de(W,L),128&t[0]&&F!==(F=e[7].Casino.Bonus+"")&&de(Y,F),32&t[0]&&de(J,e[5]),256&t[0]&&P!==(P=e[8]("bonusBalance")+"")&&de(q,P),128&t[0]&&R!==(R=e[7].Sports.Bonus+"")&&de(ne,R),32&t[0]&&de(oe,e[5])},d(e){e&&se(n),e&&se(V),e&&se(b)}}}function Ho(e){let n,r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,B,C=e[8]("cashBalance")+"",x=e[7][e[1]||"Casino"].Real+"",M=e[8]("bonusBalance")+"",T=e[7][e[1]||"Casino"].Bonus+"";return{c(){n=le("div"),r=le("p"),o=ce(C),i=ue(),a=le("p"),s=le("span"),l=ce(x),c=ue(),u=le("span"),h=ce(e[5]),d=ue(),p=le("div"),f=le("p"),m=ce(M),g=ue(),y=le("p"),b=le("span"),v=ce(T),w=ue(),E=le("span"),B=ce(e[5]),he(r,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(u,"class","BalanceModalCurrency"),he(a,"class","BalanceModalValue"),he(n,"class","BalanceModalRow"),he(f,"class","BalanceModalText"),he(b,"class","BalanceModalAmount"),he(E,"class","BalanceModalCurrency"),he(y,"class","BalanceModalValue"),he(p,"class","BalanceModalRow")},m(e,t){ae(e,n,t),ie(n,r),ie(r,o),ie(n,i),ie(n,a),ie(a,s),ie(s,l),ie(a,c),ie(a,u),ie(u,h),ae(e,d,t),ae(e,p,t),ie(p,f),ie(f,m),ie(p,g),ie(p,y),ie(y,b),ie(b,v),ie(y,w),ie(y,E),ie(E,B)},p(e,t){256&t[0]&&C!==(C=e[8]("cashBalance")+"")&&de(o,C),130&t[0]&&x!==(x=e[7][e[1]||"Casino"].Real+"")&&de(l,x),32&t[0]&&de(h,e[5]),256&t[0]&&M!==(M=e[8]("bonusBalance")+"")&&de(m,M),130&t[0]&&T!==(T=e[7][e[1]||"Casino"].Bonus+"")&&de(v,T),32&t[0]&&de(B,e[5])},d(e){e&&se(n),e&&se(d),e&&se(p)}}}function Ao(n){let r,o,i;return{c(){he(r=le("div"),"class","ShowBalanceModalOverlay")},m(e,t){ae(e,r,t),o||(i=R(r,"click",n[26]),o=!0)},p:v,d(e){e&&se(r),o=!1,i()}}}function _o(n){let r,o,i,a,s,l,c,u,h,d,p,f,m=n[3]&&Co(n),g=n[3]&&Ao(n);return{c(){r=le("div"),o=le("div"),i=le("p"),a=ce(n[4]),s=ue(),l=ce(n[5]),c=ue(),(u=le("span")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',h=ue(),m&&m.c(),d=ue(),g&&g.c(),this.c=v,he(i,"class","BalanceValue"),he(i,"part","BalanceValue"),he(o,"class","ShowBalance"),he(o,"part","ShowBalance")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(i,a),ie(i,s),ie(i,l),ie(i,c),ie(i,u),ie(o,h),m&&m.m(o,null),ie(r,d),g&&g.m(r,null),n[27](r),p||(f=R(i,"click",n[23]),p=!0)},p(e,t){16&t[0]&&de(a,e[4]),32&t[0]&&de(l,e[5]),e[3]?m?m.p(e,t):((m=Co(e)).c(),m.m(o,null)):m&&(m.d(1),m=null),e[3]?g?g.p(e,t):((g=Ao(e)).c(),g.m(r,null)):g&&(g.d(1),g=null)},i:v,o:v,d(e){e&&se(r),m&&m.d(),g&&g.d(),n[27](null),p=!1,f()}}}function So(t,e,a){let n;te(t,kr,e=>a(8,n=e));let r,o,{userid:i=""}=e,{session:s=""}=e,{endpoint:l=""}=e,{lang:c="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{customlocaleidentifier:p=""}=e,{gmversion:f=""}=e,{displaybalanceoption:m=""}=e,{currencyseparator:g=""}=e,{currencydecimal:y=""}=e,{currencyprecision:b=""}=e,v=!1,w="",E="",B=[],C="0",x=!1;const M={Casino:{Real:0,Bonus:0},Sports:{Real:0,Bonus:0}},T=(Object.keys(wo).forEach(e=>{vo(e,wo[e])}),e=>{switch(e){case"balance":a(3,v=!0);break;case"closebalance":a(3,v=!1)}}),H=(e,t)=>{e=new Eo.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});o&&o.close(),(o=e).addEventListener("message",e=>{C="0";try{let r=JSON.parse(e.data)["balanceChange"];if("gmcore"===f)a(6,B=B.map(e=>{var t,n;return r&&r[e.id]&&(t=e,n=r[e.id].afterAmount,e=Object.assign(Object.assign({},t),{balanceAmount:n})),C=(parseFloat(e.balanceAmount)+parseFloat(C)).toString(),e}));else if("gm16"===f)for(var t in r)a(7,M.Casino[t]=r[t].afterAmount,M),C=M.Casino[t]+C;a(4,w=S(Number(C)))}catch(e){console.log("Balance stream failed: ",e),H(`${l}/player/${i}/balance/updates`,s)}})},A=()=>{T("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},_=()=>{let e;return e=p.includes(c)?p:e},S=e=>{return p?new Intl.NumberFormat(_(),{useGrouping:!0}).format(e):(g&&y?Bo(e,{separator:g,decimal:y,symbol:"",precision:parseInt(b||"2",10)}):Bo(e,{separator:".",decimal:",",symbol:"",precision:parseInt(b||"2",10)})).format()},$=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&o.close()};return re(()=>(window.addEventListener("message",$,!1),()=>{window.removeEventListener("message",$),o&&o.close()})),t.$$set=e=>{"userid"in e&&a(12,i=e.userid),"session"in e&&a(13,s=e.session),"endpoint"in e&&a(14,l=e.endpoint),"lang"in e&&a(15,c=e.lang),"clientstyling"in e&&a(16,u=e.clientstyling),"clientstylingurl"in e&&a(17,h=e.clientstylingurl),"translationurl"in e&&a(18,d=e.translationurl),"customlocaleidentifier"in e&&a(19,p=e.customlocaleidentifier),"gmversion"in e&&a(0,f=e.gmversion),"displaybalanceoption"in e&&a(1,m=e.displaybalanceoption),"currencyseparator"in e&&a(20,g=e.currencyseparator),"currencydecimal"in e&&a(21,y=e.currencydecimal),"currencyprecision"in e&&a(22,b=e.currencyprecision)},t.$$.update=()=>{if(32768&t.$$.dirty[0]&&c&&_(),61441&t.$$.dirty[0]&&l&&i&&s&&c&&f){var e=c;switch(ee.set(e),f){case"gmcore":(async e=>{try{x=!0;var t=await fetch(e,{method:"GET",headers:{"X-SessionID":s}}),n=await t.json();if(!t.ok)throw x=!1,new Error("Failed to fetch balance data !");x=!1,a(6,B=n.items),a(5,E=Object.keys(n.totalAmount)[0]),a(4,w=S(n.totalAmount[E]))}catch(e){x=!1,console.log("Balance error: ",e)}finally{x=!1}})(new URL(`${l}/player/${i}/account`));break;case"gm16":(async e=>{try{x=!0,"Casino"==m&&e.searchParams.append("productType","Casino"),"Sports"==m&&e.searchParams.append("productType","Sports"),"All"===m&&(e.searchParams.append("productType","Casino"),e.searchParams.append("productType","Sports"));var t=await fetch(e,{method:"GET",headers:{"X-SessionID":s}}),n=await t.json();if(!t.ok)throw x=!1,new Error("Failed to fetch balance data !");x=!1;for(const e of n.items){var{type:r,amount:o,productType:i}=e;"Casino"===m&&"Casino"===i?a(7,M.Casino[r]+=o,M):"Sports"===m&&"Sports"===i?a(7,M.Sports[r]+=o,M):"All"===m?a(7,M[i][r]+=o,M):""===m&&a(7,M.Casino[r]+=o,M)}a(5,E=Object.keys(n.totalAmount)[0]),a(4,w=n.totalAmount[E])}catch(e){x=!1,console.log("Balance error: ",e)}finally{x=!1}})(new URL(`${l}/player/${i}/balance`));break;default:throw Error("Invalid apiversion attribute: "+f)}}if(28672&t.$$.dirty[0]&&l&&i&&s&&H(`${l}/player/${i}/balance/updates`,s),65540&t.$$.dirty[0]&&u&&r&&((e=document.createElement("style")).innerHTML=u,r.appendChild(e)),131076&t.$$.dirty[0]&&h&&r){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}262144&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{vo(e,t[e])})}).catch(e=>{console.log(e)})},[f,m,r,v,w,E,B,M,n,T,A,S,i,s,l,c,u,h,d,p,g,y,b,()=>T("balance"),()=>T("closebalance"),()=>A(),()=>T("closebalance"),function(e){q[e?"unshift":"push"](()=>{r=e,a(2,r)})}]}customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",class extends Ce{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{font-family:inherit}:host{font-family:inherit}button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-orange-500, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-orange-500, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A))}.BalanceModalRow{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRow:last-child{border-bottom:none}.BalanceModalRow .BalanceModalText{color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}',this.shadowRoot.appendChild(t),Be(this,{target:this.shadowRoot,props:U(this.attributes),customElement:!0},So,_o,T,{userid:12,session:13,endpoint:14,lang:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:0,displaybalanceoption:1,currencyseparator:20,currencydecimal:21,currencyprecision:22},null,[-1,-1]),e&&(e.target&&ae(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["userid","session","endpoint","lang","clientstyling","clientstylingurl","translationurl","customlocaleidentifier","gmversion","displaybalanceoption","currencyseparator","currencydecimal","currencyprecision"]}get userid(){return this.$$.ctx[12]}set userid(e){this.$$set({userid:e}),d()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),d()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),d()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),d()}get customlocaleidentifier(){return this.$$.ctx[19]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),d()}get gmversion(){return this.$$.ctx[0]}set gmversion(e){this.$$set({gmversion:e}),d()}get displaybalanceoption(){return this.$$.ctx[1]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),d()}get currencyseparator(){return this.$$.ctx[20]}set currencyseparator(e){this.$$set({currencyseparator:e}),d()}get currencydecimal(){return this.$$.ctx[21]}set currencydecimal(e){this.$$set({currencydecimal:e}),d()}get currencyprecision(){return this.$$.ctx[22]}set currencyprecision(e){this.$$set({currencyprecision:e}),d()}});var $o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function Io(e,t,n){e=e.slice();return e[85]=t[n],e}function Lo(e,t,n){e=e.slice();return e[88]=t[n],e}function Fo(e,t,n){e=e.slice();return e[85]=t[n],e}function Po(e,t,n){e=e.slice();return e[88]=t[n],e}function Ro(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,e=n[29]("login")+"",B=n[29]("register")+"";function C(e){return e[23]?Do:No}let x=C(n),M=x(n),T=!n[17]&&Uo(n),H=1<n[26].length&&Go(n),A=n[20],_=[];for(let e=0;e<A.length;e+=1)_[e]=zo(Io(n,A,e));return{c(){r=le("header"),o=le("div"),i=le("div"),M.c(),a=ue(),s=le("nav"),T&&T.c(),l=ue(),c=le("div"),u=le("div"),h=le("div"),d=ce(e),p=ue(),f=le("div"),m=ce(B),g=ue(),H&&H.c(),y=ue(),b=le("nav"),v=le("ul");for(let e=0;e<_.length;e+=1)_[e].c();he(i,"class","HeaderBranding"),he(s,"class","HeaderMainNav"),he(h,"class","Item ItemLogin"),he(h,"tabindex","0"),he(f,"class","Item ItemRegister"),he(f,"tabindex","0"),he(u,"class","HeaderItemsMenu"),he(c,"class","HeaderTopActions"),he(o,"class","HeaderContainer"),he(v,"class","HeaderItemsMenuSecondary"),he(b,"class","HeaderSecondaryNav"),he(r,"class","HeaderWrapper")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),M.m(i,null),ie(o,a),ie(o,s),T&&T.m(s,null),ie(o,l),ie(o,c),ie(c,u),ie(u,h),ie(h,d),ie(u,p),ie(u,f),ie(f,m),ie(u,g),H&&H.m(u,null),ie(r,y),ie(r,b),ie(b,v);for(let e=0;e<_.length;e+=1)_[e]&&_[e].m(v,null);n[64](r),w||(E=[R(i,"click",n[58]),R(h,"click",n[59]),R(f,"click",n[60])],w=!0)},p(t,n){if(x===(x=C(t))&&M?M.p(t,n):(M.d(1),(M=x(t))&&(M.c(),M.m(i,null))),t[17]?T&&(T.d(1),T=null):T?T.p(t,n):((T=Uo(t)).c(),T.m(s,null)),536870912&n[0]&&e!==(e=t[29]("login")+"")&&de(d,e),536870912&n[0]&&B!==(B=t[29]("register")+"")&&de(m,B),1<t[26].length?H?H.p(t,n):((H=Go(t)).c(),H.m(u,null)):H&&(H.d(1),H=null),1572864&n[0]|4&n[1]){let e;for(A=t[20],e=0;e<A.length;e+=1){const i=Io(t,A,e);_[e]?_[e].p(i,n):(_[e]=zo(i),_[e].c(),_[e].m(v,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=A.length}},d(e){e&&se(r),M.d(),T&&T.d(),H&&H.d(),S(_,e),n[64](null),w=!1,P(E)}}}function ko(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,B,C,x,M,T=n[29]("login")+"",H=n[29]("register")+"";function A(e){return e[23]?Wo:Vo}let _=A(n),S=_(n);return{c(){r=le("header"),o=le("div"),i=le("div"),a=t("svg"),s=t("defs"),l=t("style"),c=ce(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),u=t("g"),h=t("rect"),d=t("rect"),p=t("rect"),f=ue(),m=le("div"),S.c(),g=ue(),y=le("div"),b=le("div"),v=le("div"),w=ce(T),E=ue(),B=le("div"),C=ce(H),he(h,"class","a"),he(h,"width","18"),he(h,"height","2"),he(h,"transform","translate(14 13)"),he(d,"class","a"),he(d,"width","22"),he(d,"height","2"),he(d,"transform","translate(14 20)"),he(p,"class","a"),he(p,"width","22"),he(p,"height","2"),he(p,"transform","translate(14 27)"),he(u,"transform","translate(-14 -13)"),he(a,"xmlns","http://www.w3.org/2000/svg"),he(a,"width","22"),he(a,"height","16"),he(a,"viewBox","0 0 22 16"),he(i,"class","HeaderMobileMainNav"),he(m,"class","HeaderBranding"),he(v,"class","Item ItemLogin"),he(B,"class","Item ItemRegister"),he(b,"class","HeaderItemsMenu"),he(y,"class","HeaderTopActions"),he(o,"class","HeaderContainer"),he(r,"class","HeaderWrapper HeaderMobileWrapper")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(i,a),ie(a,s),ie(s,l),ie(l,c),ie(a,u),ie(u,h),ie(u,d),ie(u,p),ie(o,f),ie(o,m),S.m(m,null),ie(o,g),ie(o,y),ie(y,b),ie(b,v),ie(v,w),ie(b,E),ie(b,B),ie(B,C),n[57](r),x||(M=[R(a,"click",n[53]),R(m,"click",n[54]),R(v,"click",n[55]),R(B,"click",n[56])],x=!0)},p(e,t){_===(_=A(e))&&S?S.p(e,t):(S.d(1),(S=_(e))&&(S.c(),S.m(m,null))),536870912&t[0]&&T!==(T=e[29]("login")+"")&&de(w,T),536870912&t[0]&&H!==(H=e[29]("register")+"")&&de(C,H)},d(e){e&&se(r),S.d(),n[57](null),x=!1,P(M)}}}function Oo(e){let n;function r(e){return e[24]?Zo:Xo}let o=r(e),i=o(e);return{c(){i.c(),n=N()},m(e,t){i.m(e,t),ae(e,n,t)},p(e,t){o===(o=r(e))&&i?i.p(e,t):(i.d(1),(i=o(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&se(n)}}}function No(e){let n,t;return{c(){m((n=le("img")).src,t=$o)||he(n,"src",t),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p:v,d(e){e&&se(n)}}}function Do(e){let n,r;return{c(){m((n=le("img")).src,r=e[28])||he(n,"src",r),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p(e,t){268435456&t[0]&&!m(n.src,r=e[28])&&he(n,"src",r)},d(e){e&&se(n)}}}function Uo(n){let r,o,i;return{c(){$(r=le("casino-slider"),"class","HeaderItemsMenu"),$(r,"part","HeaderItemsMenu"),$(r,"identity",ii),$(r,"isprimarymenu","true"),$(r,"actionevent",n[9]),$(r,"activeindex",n[18]),$(r,"location","headerMain"),$(r,"endpoint",n[2]),$(r,"lang",n[3]),$(r,"clientstyling",n[11]),$(r,"clientstylingurl",n[12])},m(e,t){ae(e,r,t),o||(i=_(n[32].call(null,r)),o=!0)},p(e,t){512&t[0]&&$(r,"actionevent",e[9]),262144&t[0]&&$(r,"activeindex",e[18]),4&t[0]&&$(r,"endpoint",e[2]),8&t[0]&&$(r,"lang",e[3]),2048&t[0]&&$(r,"clientstyling",e[11]),4096&t[0]&&$(r,"clientstylingurl",e[12])},d(e){e&&se(r),o=!1,i()}}}function Go(n){let o,r,i,a=n[26],s=[];for(let e=0;e<a.length;e+=1)s[e]=jo(Lo(n,a,e));return{c(){o=le("select");for(let e=0;e<s.length;e+=1)s[e].c();he(o,"class","Item ItemLanguage"),void 0===n[21]&&x(()=>n[61].call(o))},m(e,t){ae(e,o,t);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(o,null);D(o,n[21],!0),r||(i=[R(o,"change",n[61]),R(o,"change",n[62])],r=!0)},p(t,n){if(67108864&n[0]){let e;for(a=t[26],e=0;e<a.length;e+=1){var r=Lo(t,a,e);s[e]?s[e].p(r,n):(s[e]=jo(r),s[e].c(),s[e].m(o,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=a.length}69206016&n[0]&&D(o,t[21])},d(e){e&&se(o),S(s,e),r=!1,P(i)}}}function jo(e){let n,r,o,i=e[88]+"";return{c(){n=le("option"),r=ce(i),n.__value=o=e[88],n.value=n.__value},m(e,t){ae(e,n,t),ie(n,r)},p(e,t){67108864&t[0]&&i!==(i=e[88]+"")&&de(r,i),67108864&t[0]&&o!==(o=e[88])&&(n.__value=o,n.value=n.__value)},d(e){e&&se(n)}}}function zo(n){let r,o,i,a,s,l,c,u=n[85].label+"";function h(){return n[63](n[85])}return{c(){r=le("li"),o=le("button"),i=ce(u),a=ue(),he(r,"class",s="ItemSecondary "+(-1<n[19]?.toString().indexOf("$")?n[19]?.split("$").pop()==n[85].id.split("$").pop()?"active":"":n[19]==n[85].id?"active":"")),he(r,"part","ItemSecondary")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(r,a),l||(c=R(o,"click",h),l=!0)},p(e,t){n=e,1048576&t[0]&&u!==(u=n[85].label+"")&&de(i,u),1572864&t[0]&&s!==(s="ItemSecondary "+(-1<n[19]?.toString().indexOf("$")?n[19]?.split("$").pop()==n[85].id.split("$").pop()?"active":"":n[19]==n[85].id?"active":""))&&he(r,"class",s)},d(e){e&&se(r),l=!1,c()}}}function Vo(e){let n,t;return{c(){m((n=le("img")).src,t=$o)||he(n,"src",t),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p:v,d(e){e&&se(n)}}}function Wo(e){let n,r;return{c(){m((n=le("img")).src,r=e[28])||he(n,"src",r),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p(e,t){268435456&t[0]&&!m(n.src,r=e[28])&&he(n,"src",r)},d(e){e&&se(n)}}}function Xo(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,B,e=n[29]("deposit")+"";function C(e){return e[23]?Ko:Yo}let x=C(n),M=x(n),T=!n[17]&&Jo(n),H=1<n[26].length&&Qo(n),A=n[20],_=[];for(let e=0;e<A.length;e+=1)_[e]=ei(Fo(n,A,e));return{c(){r=le("header"),o=le("div"),i=le("div"),M.c(),a=ue(),s=le("nav"),T&&T.c(),l=ue(),c=le("div"),u=le("div"),h=le("player-account-balance-modal"),d=ue(),p=le("div"),f=ce(e),m=ue(),(g=le("div")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429"><defs><style>.a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n </style></defs><g transform="translate(-8 -4)"><path class="a" d="M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z" transform="translate(0 0)"></path></g></svg>',y=ue(),H&&H.c(),b=ue(),v=le("nav"),w=le("ul");for(let e=0;e<_.length;e+=1)_[e].c();he(i,"class","HeaderBranding"),he(s,"class","HeaderMainNav"),$(h,"session",n[0]),$(h,"userid",n[1]),$(h,"endpoint",n[2]),$(h,"lang",n[3]),$(h,"clientstyling",n[11]),$(h,"clientstylingurl",n[12]),$(h,"customlocaleidentifier",n[6]),$(h,"gmversion",n[7]),$(h,"displaybalanceoption",n[8]),$(h,"currencyseparator",n[13]),$(h,"currencydecimal",n[14]),$(h,"currencyprecision",n[15]),he(p,"class","Item ItemDeposit"),he(p,"part","Item ItemDeposit"),he(g,"class","Item ItemAccount"),he(g,"part","Item ItemAccount"),he(u,"class","HeaderItemsMenu PrimaryMenu"),he(c,"class","HeaderTopActions"),he(o,"class","HeaderContainer"),he(w,"class","HeaderItemsMenuSecondary"),he(v,"class","HeaderSecondaryNav"),he(r,"class","HeaderWrapper")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),M.m(i,null),ie(o,a),ie(o,s),T&&T.m(s,null),ie(o,l),ie(o,c),ie(c,u),ie(u,h),ie(u,d),ie(u,p),ie(p,f),ie(u,m),ie(u,g),ie(u,y),H&&H.m(u,null),ie(r,b),ie(r,v),ie(v,w);for(let e=0;e<_.length;e+=1)_[e]&&_[e].m(w,null);n[52](r),E||(B=[R(i,"click",n[46]),R(p,"click",n[47]),R(g,"click",n[48])],E=!0)},p(t,n){if(x===(x=C(t))&&M?M.p(t,n):(M.d(1),(M=x(t))&&(M.c(),M.m(i,null))),t[17]?T&&(T.d(1),T=null):T?T.p(t,n):((T=Jo(t)).c(),T.m(s,null)),1&n[0]&&$(h,"session",t[0]),2&n[0]&&$(h,"userid",t[1]),4&n[0]&&$(h,"endpoint",t[2]),8&n[0]&&$(h,"lang",t[3]),2048&n[0]&&$(h,"clientstyling",t[11]),4096&n[0]&&$(h,"clientstylingurl",t[12]),64&n[0]&&$(h,"customlocaleidentifier",t[6]),128&n[0]&&$(h,"gmversion",t[7]),256&n[0]&&$(h,"displaybalanceoption",t[8]),8192&n[0]&&$(h,"currencyseparator",t[13]),16384&n[0]&&$(h,"currencydecimal",t[14]),32768&n[0]&&$(h,"currencyprecision",t[15]),536870912&n[0]&&e!==(e=t[29]("deposit")+"")&&de(f,e),1<t[26].length?H?H.p(t,n):((H=Qo(t)).c(),H.m(u,null)):H&&(H.d(1),H=null),1572864&n[0]|4&n[1]){let e;for(A=t[20],e=0;e<A.length;e+=1){const i=Fo(t,A,e);_[e]?_[e].p(i,n):(_[e]=ei(i),_[e].c(),_[e].m(w,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=A.length}},d(e){e&&se(r),M.d(),T&&T.d(),H&&H.d(),S(_,e),n[52](null),E=!1,P(B)}}}function Zo(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v=n[29]("deposit")+"",w=!n[27]&&ti(n);function E(e){return e[23]?ri:ni}let B=E(n),C=B(n);return{c(){r=le("header"),o=le("div"),i=le("div"),w&&w.c(),a=ue(),s=le("div"),C.c(),l=ue(),c=le("div"),u=le("div"),h=le("player-account-balance-modal"),d=ue(),p=le("div"),f=ce(v),m=ue(),(g=le("div")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429"><defs><style>.a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n </style></defs><g transform="translate(-8 -4)"><path class="a" d="M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z" transform="translate(0 0)"></path></g></svg>',he(i,"class","HeaderMobileMainNav"),he(s,"class","HeaderBranding"),$(h,"session",n[0]),$(h,"userid",n[1]),$(h,"endpoint",n[2]),$(h,"lang",n[3]),$(h,"clientstyling",n[11]),$(h,"clientstylingurl",n[12]),$(h,"customlocaleidentifier",n[6]),$(h,"gmversion",n[7]),$(h,"displaybalanceoption",n[8]),$(h,"currencyseparator",n[13]),$(h,"currencydecimal",n[14]),$(h,"currencyprecision",n[15]),he(p,"class","Item ItemDeposit"),he(p,"part","Item ItemDeposit"),he(g,"class","Item ItemAccount"),he(g,"part","Item ItemAccount"),he(u,"class","HeaderItemsMenu PrimaryMenu"),he(u,"part","HeaderItemsMenu PrimaryMenu"),he(c,"class","HeaderTopActions"),he(c,"part","HeaderTopActions"),he(o,"class","HeaderContainer"),he(r,"class","HeaderWrapper HeaderMobileWrapper")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),w&&w.m(i,null),ie(o,a),ie(o,s),C.m(s,null),ie(o,l),ie(o,c),ie(c,u),ie(u,h),ie(u,d),ie(u,p),ie(p,f),ie(u,m),ie(u,g),n[45](r),y||(b=[R(s,"click",n[42]),R(p,"click",n[43]),R(g,"click",n[44])],y=!0)},p(e,t){e[27]?w&&(w.d(1),w=null):w?w.p(e,t):((w=ti(e)).c(),w.m(i,null)),B===(B=E(e))&&C?C.p(e,t):(C.d(1),(C=B(e))&&(C.c(),C.m(s,null))),1&t[0]&&$(h,"session",e[0]),2&t[0]&&$(h,"userid",e[1]),4&t[0]&&$(h,"endpoint",e[2]),8&t[0]&&$(h,"lang",e[3]),2048&t[0]&&$(h,"clientstyling",e[11]),4096&t[0]&&$(h,"clientstylingurl",e[12]),64&t[0]&&$(h,"customlocaleidentifier",e[6]),128&t[0]&&$(h,"gmversion",e[7]),256&t[0]&&$(h,"displaybalanceoption",e[8]),8192&t[0]&&$(h,"currencyseparator",e[13]),16384&t[0]&&$(h,"currencydecimal",e[14]),32768&t[0]&&$(h,"currencyprecision",e[15]),536870912&t[0]&&v!==(v=e[29]("deposit")+"")&&de(f,v)},d(e){e&&se(r),w&&w.d(),C.d(),n[45](null),y=!1,P(b)}}}function Yo(e){let n,t;return{c(){m((n=le("img")).src,t=$o)||he(n,"src",t),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p:v,d(e){e&&se(n)}}}function Ko(e){let n,r;return{c(){m((n=le("img")).src,r=e[28])||he(n,"src",r),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p(e,t){268435456&t[0]&&!m(n.src,r=e[28])&&he(n,"src",r)},d(e){e&&se(n)}}}function Jo(n){let r,o,i;return{c(){$(r=le("casino-slider"),"class","HeaderItemsMenu"),$(r,"part","HeaderItemsMenu"),$(r,"identity",ii),$(r,"isprimarymenu","true"),$(r,"actionevent",n[9]),$(r,"activeindex",n[18]),$(r,"endpoint",n[2]),$(r,"lang",n[3]),$(r,"location","headerMain"),$(r,"showsubgroups",n[10]),$(r,"clientstyling",n[11]),$(r,"clientstylingurl",n[12])},m(e,t){ae(e,r,t),o||(i=_(n[32].call(null,r)),o=!0)},p(e,t){512&t[0]&&$(r,"actionevent",e[9]),262144&t[0]&&$(r,"activeindex",e[18]),4&t[0]&&$(r,"endpoint",e[2]),8&t[0]&&$(r,"lang",e[3]),1024&t[0]&&$(r,"showsubgroups",e[10]),2048&t[0]&&$(r,"clientstyling",e[11]),4096&t[0]&&$(r,"clientstylingurl",e[12])},d(e){e&&se(r),o=!1,i()}}}function Qo(n){let o,r,i,a=n[26],s=[];for(let e=0;e<a.length;e+=1)s[e]=qo(Po(n,a,e));return{c(){o=le("select");for(let e=0;e<s.length;e+=1)s[e].c();he(o,"class","Item ItemLanguage"),void 0===n[21]&&x(()=>n[49].call(o))},m(e,t){ae(e,o,t);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(o,null);D(o,n[21],!0),r||(i=[R(o,"change",n[49]),R(o,"change",n[50])],r=!0)},p(t,n){if(67108864&n[0]){let e;for(a=t[26],e=0;e<a.length;e+=1){var r=Po(t,a,e);s[e]?s[e].p(r,n):(s[e]=qo(r),s[e].c(),s[e].m(o,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=a.length}69206016&n[0]&&D(o,t[21])},d(e){e&&se(o),S(s,e),r=!1,P(i)}}}function qo(e){let n,r,o,i=e[88]+"";return{c(){n=le("option"),r=ce(i),n.__value=o=e[88],n.value=n.__value,n.selected=!0},m(e,t){ae(e,n,t),ie(n,r)},p(e,t){67108864&t[0]&&i!==(i=e[88]+"")&&de(r,i),67108864&t[0]&&o!==(o=e[88])&&(n.__value=o,n.value=n.__value)},d(e){e&&se(n)}}}function ei(n){let r,o,i,a,s,l,c,u=n[85].label+"";function h(){return n[51](n[85])}return{c(){r=le("li"),o=le("button"),i=ce(u),a=ue(),he(r,"class",s="ItemSecondary "+(-1<n[19]?.toString().indexOf("$")?n[19]?.split("$").pop()==n[85].id.split("$").pop()?"active":"":n[19]==n[85].id?"active":"")),he(r,"part","ItemSecondary")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(r,a),l||(c=R(o,"click",h),l=!0)},p(e,t){n=e,1048576&t[0]&&u!==(u=n[85].label+"")&&de(i,u),1572864&t[0]&&s!==(s="ItemSecondary "+(-1<n[19]?.toString().indexOf("$")?n[19]?.split("$").pop()==n[85].id.split("$").pop()?"active":"":n[19]==n[85].id?"active":""))&&he(r,"class",s)},d(e){e&&se(r),l=!1,c()}}}function ti(n){let r,o,i,a,s,l,c,u,h,d;return{c(){r=t("svg"),o=t("defs"),i=t("style"),a=ce(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),s=t("g"),l=t("rect"),c=t("rect"),u=t("rect"),he(l,"class","a"),he(l,"width","18"),he(l,"height","2"),he(l,"transform","translate(14 13)"),he(c,"class","a"),he(c,"width","22"),he(c,"height","2"),he(c,"transform","translate(14 20)"),he(u,"class","a"),he(u,"width","22"),he(u,"height","2"),he(u,"transform","translate(14 27)"),he(s,"transform","translate(-14 -13)"),he(r,"xmlns","http://www.w3.org/2000/svg"),he(r,"width","22"),he(r,"height","16"),he(r,"viewBox","0 0 22 16")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(i,a),ie(r,s),ie(s,l),ie(s,c),ie(s,u),h||(d=R(r,"click",n[41]),h=!0)},p:v,d(e){e&&se(r),h=!1,d()}}}function ni(e){let n,t;return{c(){m((n=le("img")).src,t=$o)||he(n,"src",t),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p:v,d(e){e&&se(n)}}}function ri(e){let n,r;return{c(){m((n=le("img")).src,r=e[28])||he(n,"src",r),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p(e,t){268435456&t[0]&&!m(n.src,r=e[28])&&he(n,"src",r)},d(e){e&&se(n)}}}function oi(e){let n,r;function o(e){return e[25]?Oo:e[24]?ko:Ro}let i=o(e),a=i(e);return{c(){a.c(),n=ue(),r=le("casino-hamburger-menu"),this.c=v,$(r,"menuitemsurl",e[22]),$(r,"activecategory",e[5]),$(r,"lang",e[3]),$(r,"languageslist",e[4]),$(r,"clientstyling",e[11]),$(r,"clientstylingurl",e[12])},m(e,t){a.m(e,t),ae(e,n,t),ae(e,r,t)},p(e,t){i===(i=o(e))&&a?a.p(e,t):(a.d(1),(a=i(e))&&(a.c(),a.m(n.parentNode,n))),4194304&t[0]&&$(r,"menuitemsurl",e[22]),32&t[0]&&$(r,"activecategory",e[5]),8&t[0]&&$(r,"lang",e[3]),16&t[0]&&$(r,"languageslist",e[4]),2048&t[0]&&$(r,"clientstyling",e[11]),4096&t[0]&&$(r,"clientstylingurl",e[12])},i:v,o:v,d(e){a.d(e),e&&se(n),e&&se(r)}}}let ii="HeaderMenu";function ai(n,e,r){let t;te(n,kr,e=>r(29,t=e));let o,i,a,{session:s=""}=e,{userid:l=""}=e,{endpoint:c=""}=e,{cmsendpoint:u=""}=e,{cmsenv:h="stage"}=e,{lang:d="en"}=e,{languageslist:p="en, ro"}=e,{activecategory:f=""}=e,{translationurl:m=""}=e,{customlocaleidentifier:g=""}=e,{gmversion:y=""}=e,{displaybalanceoption:R=""}=e,{operatorid:k=""}=e,{pagetag:O=""}=e,{positiontag:N=""}=e,{actionevent:b=""}=e,{userroles:v=""}=e,{showsubgroups:D="false"}=e,{clientstyling:w=""}=e,{clientstylingurl:E=""}=e,{currencyseparator:U=""}=e,{currencydecimal:G=""}=e,{currencyprecision:j=""}=e;var z,V;({withLocale:z,translations:V}={withLocale:"en",translations:{}}),ee.subscribe(e=>{null==e&&(gr.set(V),ee.set(z))}),Object.keys(Ur).forEach(e=>{Dr(e,Ur[e])});let B,C,W,x=[],M=[],T="",H=!0,A=!1,X=!1,_=window.navigator.userAgent,S=!1,$=[],I=!1,Z="";const L=e=>{switch(e){case"login":window.postMessage({type:"OpenLoginRegisterModal",transition:"Login"},window.location.href),"function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"HeaderController"});break;case"register":window.postMessage({type:"OpenLoginRegisterModal",transition:"Register"},window.location.href),"function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"HeaderController"});break;case"lobby":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"myaccount":window.postMessage({type:"PlayerAccountMenuActive",isMobile:Or(_)},window.location.href);break;case"deposit":window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"HeaderController"});break;case"language":window.postMessage({type:"LanguageChanged",selectedLanguage:T},window.location.href)}},F=()=>{r(27,I=!0),window.postMessage({type:"OpenHamburgerMenuModal"},window.location.href)},Y=e=>{if(e.data)switch(e.data.type){case"UserSessionID":e.data.userid,e.data.session,r(25,S=!0);break;case"CloseHamburgerMenu":window.postMessage({type:"EnableScroll"},window.location.href),e.data.showhamburger&&r(27,I=!1);break;case"LogoutSuccessfull":r(25,S=!1);break;case"LanguageChanged":K(),Q(C)}},K=()=>{C=new URL(`${u}/${T.toLowerCase()}/menu`),r(22,B=new URL(`${u}/${T.toLowerCase()}/hamburger-menu`)),W=new URL(`${u}/${T.toLowerCase()}/op-options/style`);var e=Nr(_);C.searchParams.append("env",h),C.searchParams.append("language",T.toLowerCase()),C.searchParams.append("userRoles",v),e&&("PC"===e?(B.searchParams.append("device","dk"),C.searchParams.append("device","dk")):(B.searchParams.append("device","mtWeb"),C.searchParams.append("device","mtWeb"))),B.searchParams.append("env",h),B.searchParams.append("language",T.toLowerCase()),B.searchParams.append("userRoles",v)},J=(t,e)=>{let n=e.find(e=>-1<t.indexOf("/sport")?-1<e.path.indexOf(t):!!e.path.includes(t)||void 0);return(n=n||e.find(e=>-1<e.path.split("/").indexOf(t.split("/")[1])))?n.id:-1},Q=e=>(r(17,H=!0),new Promise((t,n)=>{fetch(e).then(e=>e.json()).then(e=>{x=e.desktop.primary,r(20,M=e.desktop.secondary),r(17,H=!1),t(e)},e=>{r(17,H=!1),console.error(e),n(e)})})),P=e=>{window.postMessage({type:b,itemId:e.id,item:e,externalLink:e.externalLink||!1,target:(null==(e=e.attrs)?void 0:e.target)||null},window.location.href)};return re(async()=>(window.addEventListener("message",Y,!1),Or(_)&&r(24,X=!0),()=>{window.removeEventListener("message",Y)})),n.$$set=e=>{"session"in e&&r(0,s=e.session),"userid"in e&&r(1,l=e.userid),"endpoint"in e&&r(2,c=e.endpoint),"cmsendpoint"in e&&r(34,u=e.cmsendpoint),"cmsenv"in e&&r(35,h=e.cmsenv),"lang"in e&&r(3,d=e.lang),"languageslist"in e&&r(4,p=e.languageslist),"activecategory"in e&&r(5,f=e.activecategory),"translationurl"in e&&r(36,m=e.translationurl),"customlocaleidentifier"in e&&r(6,g=e.customlocaleidentifier),"gmversion"in e&&r(7,y=e.gmversion),"displaybalanceoption"in e&&r(8,R=e.displaybalanceoption),"operatorid"in e&&r(37,k=e.operatorid),"pagetag"in e&&r(38,O=e.pagetag),"positiontag"in e&&r(39,N=e.positiontag),"actionevent"in e&&r(9,b=e.actionevent),"userroles"in e&&r(40,v=e.userroles),"showsubgroups"in e&&r(10,D=e.showsubgroups),"clientstyling"in e&&r(11,w=e.clientstyling),"clientstylingurl"in e&&r(12,E=e.clientstylingurl),"currencyseparator"in e&&r(13,U=e.currencyseparator),"currencydecimal"in e&&r(14,G=e.currencydecimal),"currencyprecision"in e&&r(15,j=e.currencyprecision)},n.$$.update=()=>{if(131104&n.$$.dirty[0]&&f&&!H&&(r(18,o=J(f,x)),r(19,i=J(f,M))),1&n.$$.dirty[0]&&s&&r(25,S=!0),8&n.$$.dirty[0]&&d&&(t=d,ee.set(t)),24&n.$$.dirty[0]|520&n.$$.dirty[1]&&u&&d&&p&&v&&(r(26,$=p.replace(/ /g,"").split(",")),r(26,$=$.map(e=>e.toUpperCase())),r(21,T=d.toUpperCase()),K(),e=W,r(23,A=!1),new Promise((t,n)=>{fetch(e).then(e=>e.json()).then(e=>{0<e.logoUrl.length&&("null"!=e.logoUrl||"false"!=e.logoUrl)?(r(28,Z=e.logoUrl),r(23,A=!0)):r(23,A=!1),t(e)},e=>{r(23,A=!1),console.error(e),n(e)})}),setTimeout(()=>{Q(C)})),32&n.$$.dirty[1]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Dr(e,t[e])})}).catch(e=>{console.log(e)}),67584&n.$$.dirty[0]&&w&&a&&((t=document.createElement("style")).innerHTML=w,a.appendChild(t)),69632&n.$$.dirty[0]&&E&&a){let e=new URL(E),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1)})}var e,t},[s,l,c,d,p,f,g,y,R,b,D,w,E,U,G,j,a,H,o,i,M,T,B,A,X,S,$,I,Z,t,L,F,()=>{window.postMessage({type:"SliderData",identity:ii,data:x},window.location.href)},P,u,h,m,k,O,N,v,()=>F(),()=>L("lobby"),()=>L("deposit"),()=>L("myaccount"),function(e){q[e?"unshift":"push"](()=>{a=e,r(16,a)})},()=>L("lobby"),()=>L("deposit"),()=>L("myaccount"),function(){T=ne(this),r(21,T),r(26,$)},()=>L("language"),e=>P(e),function(e){q[e?"unshift":"push"](()=>{a=e,r(16,a)})},()=>F(),()=>L("lobby"),()=>L("login"),()=>L("register"),function(e){q[e?"unshift":"push"](()=>{a=e,r(16,a)})},()=>L("lobby"),()=>L("login"),()=>L("register"),function(){T=ne(this),r(21,T),r(26,$)},()=>L("language"),e=>P(e),function(e){q[e?"unshift":"push"](()=>{a=e,r(16,a)})}]}class si extends Ce{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{font-family:inherit}:host{font-family:inherit}button{font-family:inherit}.HeaderWrapper{background:var(--emfe-w-header-color-menu-bg, var(--emfe-w-color-darkest-blue, #050518))}.HeaderContainer{max-width:1300px;display:flex;flex-direction:row;align-items:center;height:84px;margin:0 auto}.HeaderMobileMainNav{display:flex;align-items:center}.HeaderBranding{width:140px;margin-right:15px;cursor:pointer}.HeaderBranding img{width:100%}@media only screen and (max-width: 360px){.HeaderBranding{margin-right:0}}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:var(--emfe-w-header-color-secondary-menu-bg, var(--emfe-w-color-darkest-blue, #050518));border-top:1px solid var(--emfe-w-color-gray-300, #58586B)}.HeaderItemsMenu{display:flex;align-content:flex-start;list-style:none;text-transform:uppercase;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));font-size:16px;align-items:center}.HeaderItemsMenu .Item{padding:0 12px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.ItemLogin{border-radius:5px;background:transparent;font-size:14px;font-weight:600;border:solid 1px var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));height:44px;text-align:center;line-height:44px;margin-right:10px;cursor:pointer}.ItemRegister,.ItemDeposit{border-radius:5px;background:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-size:14px;height:44px;text-align:center;line-height:44px;cursor:pointer}.ItemDeposit{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.ItemLanguage{height:44px;width:90px;text-align:center;line-height:44px;background:transparent;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));border:none;cursor:pointer;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-header-color-menu-bg, var(--emfe-w-color-darkest-blue, #050518));background-position:calc(100% - 0.75rem) center}.ItemLanguage option{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF))}.ItemAccount{cursor:pointer}.ItemAccount svg{width:20px;height:20px}.HeaderItemsMenuSecondary{display:flex;flex-direction:row;align-content:flex-start;align-items:center;height:60px;list-style:none;text-transform:uppercase;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;max-width:1280px;margin:0 auto;overflow-y:hidden;overflow-x:auto;padding:0}.HeaderItemsMenuSecondary .ItemSecondary{width:auto;height:100%;display:flex;justify-content:center;padding:0 15px;font-weight:600;transition-duration:0.15s}.HeaderItemsMenuSecondary .ItemSecondary button{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none;border:none;background:none;font-size:14px;font-weight:600;text-transform:uppercase;cursor:pointer}.HeaderItemsMenuSecondary .ItemSecondary button:hover{color:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.HeaderItemsMenuSecondary .ItemSecondary button:focus{color:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.HeaderItemsMenuSecondary .ItemSecondary button:visited{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF))}.HeaderItemsMenuSecondary .ItemSecondary button:focus-visible{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));outline:none}.HeaderItemsMenuSecondary .ItemSecondary.active{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.HeaderMobileWrapper .HeaderContainer{height:55px;padding:0 15px;gap:10px}@media only screen and (max-width: 360px){.HeaderMobileWrapper .HeaderContainer{padding:0 5px}}.HeaderMobileWrapper .HeaderBranding{width:110px;display:flex;align-items:center}.HeaderMobileWrapper .HeaderItemsMenu .Item{padding:0 10px;display:block;width:unset}.HeaderMobileWrapper .HeaderItemsMenu .ItemAccount{padding:0}.HeaderMobileWrapper .ItemRegister,.HeaderMobileWrapper .ItemDeposit,.HeaderMobileWrapper .ItemLogin{height:30px;line-height:30px;font-size:12px}.HeaderMobileWrapper .ItemLogin{margin-right:10px}",this.shadowRoot.appendChild(t),Be(this,{target:this.shadowRoot,props:U(this.attributes),customElement:!0},ai,oi,T,{session:0,userid:1,endpoint:2,cmsendpoint:34,cmsenv:35,lang:3,languageslist:4,activecategory:5,translationurl:36,customlocaleidentifier:6,gmversion:7,displaybalanceoption:8,operatorid:37,pagetag:38,positiontag:39,actionevent:9,userroles:40,showsubgroups:10,clientstyling:11,clientstylingurl:12,currencyseparator:13,currencydecimal:14,currencyprecision:15},null,[-1,-1,-1,-1]),e&&(e.target&&ae(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","endpoint","cmsendpoint","cmsenv","lang","languageslist","activecategory","translationurl","customlocaleidentifier","gmversion","displaybalanceoption","operatorid","pagetag","positiontag","actionevent","userroles","showsubgroups","clientstyling","clientstylingurl","currencyseparator","currencydecimal","currencyprecision"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),d()}get cmsendpoint(){return this.$$.ctx[34]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),d()}get cmsenv(){return this.$$.ctx[35]}set cmsenv(e){this.$$set({cmsenv:e}),d()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),d()}get languageslist(){return this.$$.ctx[4]}set languageslist(e){this.$$set({languageslist:e}),d()}get activecategory(){return this.$$.ctx[5]}set activecategory(e){this.$$set({activecategory:e}),d()}get translationurl(){return this.$$.ctx[36]}set translationurl(e){this.$$set({translationurl:e}),d()}get customlocaleidentifier(){return this.$$.ctx[6]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),d()}get gmversion(){return this.$$.ctx[7]}set gmversion(e){this.$$set({gmversion:e}),d()}get displaybalanceoption(){return this.$$.ctx[8]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),d()}get operatorid(){return this.$$.ctx[37]}set operatorid(e){this.$$set({operatorid:e}),d()}get pagetag(){return this.$$.ctx[38]}set pagetag(e){this.$$set({pagetag:e}),d()}get positiontag(){return this.$$.ctx[39]}set positiontag(e){this.$$set({positiontag:e}),d()}get actionevent(){return this.$$.ctx[9]}set actionevent(e){this.$$set({actionevent:e}),d()}get userroles(){return this.$$.ctx[40]}set userroles(e){this.$$set({userroles:e}),d()}get showsubgroups(){return this.$$.ctx[10]}set showsubgroups(e){this.$$set({showsubgroups:e}),d()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get currencyseparator(){return this.$$.ctx[13]}set currencyseparator(e){this.$$set({currencyseparator:e}),d()}get currencydecimal(){return this.$$.ctx[14]}set currencydecimal(e){this.$$set({currencydecimal:e}),d()}get currencyprecision(){return this.$$.ctx[15]}set currencyprecision(e){this.$$set({currencyprecision:e}),d()}}return customElements.get("casino-header-controller")||customElements.define("casino-header-controller",si),si});
3
+ }`,s=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(h)}_`+s,d=O(e),{stylesheet:p,rules:f}=G.get(d)||(d=d,u={stylesheet:(u=e,f=le("style"),u=O(u),p=f,ie(u.head||u,p),p.sheet,f.sheet),rules:{}},G.set(d,u),u),d=(f[s]||(f[s]=!0,p.insertRule(`@keyframes ${s} `+h,p.cssRules.length)),e.style.animation||"");return e.style.animation=(d?d+", ":"")+s+` ${r}ms linear ${o}ms 1 both`,z+=1,s}function W(e){j=e}function ee(e){!function(){if(j)return j;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const X=[],K=[];let Z=[];const Y=[],te=Promise.resolve();let ne=!1;function x(e){Z.push(e)}const re=new Set;let oe,pe=0;function d(){if(0===pe){const r=j;do{try{for(;pe<X.length;){const r=X[pe];pe++,W(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),P(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(x))}}catch(r){throw X.length=0,pe=0,r}for(W(null),X.length=0,pe=0;K.length;)K.pop()();for(let e=0;e<Z.length;e+=1){var n=Z[e];re.has(n)||(re.add(n),n())}}while(Z.length=0,X.length);for(;Y.length;)Y.pop()();ne=!1,re.clear(),W(r)}}function fe(e,t,n){var r;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:n=!1}={}]=[(t?"intro":"outro")+n],(r=document.createEvent("CustomEvent")).initCustomEvent(e,t,n,void 0),r))}const me=new Set;let g;function ge(e,t){e&&e.i&&(me.delete(e),e.i(t))}function ye(e,t,n,r){e&&e.o?me.has(e)||(me.add(e),g.c.push(()=>{me.delete(e),r&&(n&&e.d(1),r())}),e.o(t)):r&&r()}const be={duration:0};function ve(l,e,t,n){const r={direction:"both"};let c=e(l,t,r),u=n?0:1,h=null,d=null,p=null;function f(){var e,t,n,r;p&&(e=l,t=p,n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(n=n.length-r.length)||(e.style.animation=r.join(", "),z-=n)||L(()=>{z||(G.forEach(e=>{e=e.stylesheet.ownerNode;e&&se(e)}),G.clear())}))}function m(e,t){var n=e.b-u;return t*=Math.abs(n),{a:u,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function o(e){const{delay:t=0,duration:n=300,easing:r=C,tick:o=v,css:i}=c||be,a={start:$()+t,b:e};if(e||((a.group=g).r+=1),h||d)d=a;else{i&&(f(),p=V(l,u,e,n,t,r,i)),e&&o(0,1),h=m(a,n),x(()=>fe(l,e,"start"));{var s=e=>{return d&&e>d.start&&(h=m(d,n),d=null,fe(l,h.b,"start"),i)&&(f(),p=V(l,u,h.b,h.duration,0,r,c.css)),h&&(e>=h.end?(o(u=h.b,1-u),fe(l,h.b,"end"),d||(h.b?f():--h.group.r||P(h.group.c)),h=null):e>=h.start&&(e=e-h.start,u=h.a+h.d*r(e/h.duration),o(u,1-u))),!(!h&&!d)};let t;0===F.size&&L(k),new Promise(e=>{F.add(t={c:s,f:e})})}}}return{run(e){M(c)?(oe||(oe=Promise.resolve()).then(()=>{oe=null}),oe.then(()=>{c=c(r),o(e)})):o(e)},end(){f(),h=d=null}}}function we(e,t){e.d(1),t.delete(e.key)}function Ee(t,n,r,o,i,a,s,l,e,c,u,h){let d=t.length,p=a.length,f=d;for(var m={};f--;)m[t[f].key]=f;var g=[],y=new Map,b=new Map,v=[];for(f=p;f--;){const t=h(i,a,f),P=r(t);let e=s.get(P);e?o&&v.push(()=>e.p(t,n)):(e=c(P,t)).c(),y.set(P,g[f]=e),P in m&&b.set(P,Math.abs(f-m[P]))}var w=new Set,E=new Set;function B(e){ge(e,1),e.m(l,u),s.set(e.key,e),u=e.first,p--}for(;d&&p;){const n=g[p-1],r=t[d-1],o=n.key,P=r.key;n===r?(u=n.first,d--,p--):y.has(P)?!s.has(o)||w.has(o)?B(n):E.has(P)?d--:b.get(o)>b.get(P)?(E.add(o),B(n)):(w.add(P),d--):(e(r,s),d--)}for(;d--;){const n=t[d];y.has(n.key)||e(n,s)}for(;p;)B(g[p-1]);return P(v),g}function Be(r,e,t,n,o,i,a,s=[-1]){var l=j;W(r);const c=r.$$={fragment:null,ctx:[],props:i,update:v,not_equal:o,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:f(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&o(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u)&&(n=e,-1===(e=r).$$.dirty[0]&&(X.push(e),ne||(ne=!0,te.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),u=!0,P(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){i=e.target;const v=Array.from(i.childNodes);c.fragment&&c.fragment.l(v),v.forEach(se)}else c.fragment&&c.fragment.c();e.intro&&ge(r.$$.fragment);var h=r,s=e.target,a=e.anchor,t=e.customElement,{fragment:n,after_update:i}=h.$$;n&&n.m(s,a),t||x(()=>{var e=h.$$.on_mount.map(p).filter(M);h.$$.on_destroy?h.$$.on_destroy.push(...e):P(e),h.$$.on_mount=[]}),i.forEach(x),d()}W(l)}let Ce;"function"==typeof HTMLElement&&(Ce=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(p).filter(M);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){P(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],o=[];Z.forEach(e=>(-1===n.indexOf(e)?r:o).push(e)),o.forEach(e=>e()),Z=r}P(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=v}$on(e,t){if(!M(t))return v;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var xe,Me,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Te="URLSearchParams"in l,He="Symbol"in l&&"iterator"in Symbol,Ae="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),_e="FormData"in l,Se="ArrayBuffer"in l;function Ie(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function $e(e){return e="string"!=typeof e?String(e):e}function Le(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return He&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function Fe(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Pe(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function Re(e){var t=new FileReader,n=Pe(t);return t.readAsArrayBuffer(e),n}function ke(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Oe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Ae&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:_e&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Te&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Se&&Ae&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=ke(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Se&&(ArrayBuffer.prototype.isPrototypeOf(e)||Me(e))?this._bodyArrayBuffer=ke(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Te&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ae&&(this.blob=function(){var e=Fe(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return Fe(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(Ae)return this.blob().then(Re);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=Fe(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=Pe(e),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},_e&&(this.formData=function(){return this.text().then(Ue)}),this.json=function(){return this.text().then(JSON.parse)},this}Se&&(xe=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Me=ArrayBuffer.isView||function(e){return e&&-1<xe.indexOf(Object.prototype.toString.call(e))}),c.prototype.append=function(e,t){e=Ie(e),t=$e(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[Ie(e)]},c.prototype.get=function(e){return e=Ie(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(Ie(e))},c.prototype.set=function(e,t){this.map[Ie(e)]=$e(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),Le(n)},c.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Le(t)},c.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),Le(n)},He&&(c.prototype[Symbol.iterator]=c.prototype.entries);var Ne=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function De(e,t){if(!(this instanceof De))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof De){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<Ne.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ue(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}De.prototype.clone=function(){return new De(this,{body:this._bodyInit})},Oe.call(De.prototype),Oe.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ge=[301,302,303,307,308],je=(u.redirect=function(e,t){if(-1===Ge.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},l.DOMException);try{new je}catch(v){(je=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),je.prototype.constructor=je}function ze(a,s){return new Promise(function(o,e){var t=new De(a,s);if(t.signal&&t.signal.aborted)return e(new je("Aborted","AbortError"));var n,i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var e,r,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",r=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL"),"response"in i?i.response:i.responseText);setTimeout(function(){o(new u(n,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new je("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(Ae?i.responseType="blob":Se&&(i.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof c||l.Headers&&s.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){n.push(Ie(e)),i.setRequestHeader(e,$e(s.headers[e]))}),t.headers.forEach(function(e,t){-1===n.indexOf(t)&&i.setRequestHeader(t,e)})):t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),t.signal&&(t.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",r)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}ze.polyfill=!0,l.fetch||(l.fetch=ze,l.Headers=c,l.Request=De,l.Response=u);var Ve="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function We(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}self.fetch.bind(self);var Xe=function(e,t){return(Xe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Ye(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ke(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Je(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Qe(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var qe=Qe(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function et(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}n.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=Ye(i),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(h(i))try{i()}catch(e){o=e instanceof qe?e.errors:[e]}i=this._finalizers;if(i){this._finalizers=null;try{for(var l=Ye(i),c=l.next();!c.done;c=l.next()){var u=c.value;try{ot(u)}catch(e){o=null!=o?o:[],e instanceof qe?o=Je(Je([],Ke(o)),Ke(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new qe(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ot(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&et(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&et(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((e=new n).closed=!0,e);var tt=n,nt=tt.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function rt(e){return e instanceof tt||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function ot(e){h(e)?e():e.unsubscribe()}var it=void 0,at=!1,st=!1,lt={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=lt.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,Je([e,t],Ke(n))):setTimeout.apply(void 0,Je([e,t],Ke(n)))},clearTimeout:function(e){var t=lt.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ct(){}var ut=null;function ht(e){if(at){var t=!ut;if(t&&(ut={errorThrown:!1,error:null}),e(),t){var t=ut,n=t.errorThrown,t=t.error;if(ut=null,n)throw t}}else e()}Ze(r,dt=tt),r.create=function(e,t,n){return new bt(e,t,n)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,dt.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var dt,pt=r,ft=Function.prototype.bind;function r(e){var t=dt.call(this)||this;return t.isStopped=!1,e?rt(t.destination=e)&&e.add(t):t.destination=Bt,t}function mt(e,t){return ft.call(e,t)}wt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Et(e)}},wt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Et(e)}else Et(e)},wt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Et(e)}};var gt,yt=wt,bt=(Ze(vt,gt=pt),vt);function vt(e,t,n){var r=gt.call(this)||this,n=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&st?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&mt(e.next,t),error:e.error&&mt(e.error,t),complete:e.complete&&mt(e.complete,t)}):e;return r.destination=new yt(n),r}function wt(e){this.partialObserver=e}function Et(e){var t=e;lt.setTimeout(function(){throw t})}var Bt={closed:!0,next:ct,error:function(e){throw e},complete:ct},e="function"==typeof Symbol&&Symbol.observable||"@@observable";o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,n){var r,o=this,i=(r=e)&&r instanceof pt||r&&h(r.next)&&h(r.error)&&h(r.complete)&&rt(r)?e:new bt(e,t,n);return ht(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(r,e){var o=this;return new(e=xt(e))(function(e,t){var n=new bt({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});o.subscribe(n)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[e]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var r=this;return new(e=xt(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)};var Ct=o;function o(e){e&&(this._subscribe=e)}function xt(e){return null!=(e=null!=e?e:it)?e:Promise}var Mt,Tt,Ht,At=Qe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Ze(i,Ht=Ct),i.prototype.lift=function(e){var t=new _t(this,this);return t.operator=e,t},i.prototype._throwIfClosed=function(){if(this.closed)throw new At},i.prototype.next=function(o){var i=this;ht(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=Ye(i.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(o)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},i.prototype.error=function(t){var n=this;ht(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},i.prototype.complete=function(){var t=this;ht(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ht.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,o=this.observers;return n||r?nt:(this.currentObservers=null,o.push(e),new tt(function(){t.currentObservers=null,et(o,e)}))},i.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},i.prototype.asObservable=function(){var e=new Ct;return e.source=this,e},i.create=function(e,t){return new _t(e,t)},i),_t=(Ze(Lt,Tt=e),Lt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},Lt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},Lt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Lt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:nt},Lt),St={now:function(){return(St.delegate||Date).now()},delegate:void 0},It=(Ze($t,Mt=e),$t.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,o=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;n||(r.push(e),o)||r.push(i.now()+t),this._trimBuffer(),Mt.prototype.next.call(this,e)},$t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!e.closed;o+=n?1:2)e.next(r[o]);return this._checkFinalizedStatuses(e),t},$t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var i=t.now(),a=0,s=1;s<n.length&&n[s]<=i;s+=2)a=s;a&&n.splice(0,a+1)}},$t);function $t(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=St);var r=Mt.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function Lt(e,t){var n=Tt.call(this)||this;return n.destination=e,n.source=t,n}function i(){var e=Ht.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Ft=[],Pt={};const Rt=[];function kt(r,o=v){let i;const a=new Set;function s(e){if(T(r,e)&&(r=e,i)){const e=!Rt.length;for(const e of a)e[1](),Rt.push(e,r);if(e){for(let e=0;e<Rt.length;e+=2)Rt[e][0](Rt[e+1]);Rt.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=v){const n=[e,t];return a.add(n),1===a.size&&(i=o(s)||v),e(r),()=>{a.delete(n),0===a.size&&i&&(i(),i=null)}}}}function Ot(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:kt(t,t=>{let n=!1;const r=[];let o=0,i=v;const a=()=>{var e;o||(i(),e=s(l?r[0]:r,t),u?t(e):i=M(e)?e:v)},e=c.map((e,t)=>A(e,e=>{r[t]=e,o&=~(1<<t),n&&a()},()=>{o|=1<<t}));return n=!0,a(),function(){P(e),i(),n=!1}}).subscribe}}function Nt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Dt);var t}var Dt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ut(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Wt(Array.isArray(e)?[]:{},e,t):e}function Gt(e,t,n){return e.concat(t).map(function(e){return Ut(e,n)})}function jt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function zt(e,t){try{return t in e}catch(e){return!1}}function Vt(r,o,i){var a={};return i.isMergeableObject(r)&&jt(r).forEach(function(e){a[e]=Ut(r[e],i)}),jt(o).forEach(function(e){var t,n;(!zt(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(zt(r,e)&&i.isMergeableObject(o[e])?a[e]=((t=i).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Wt)(r[e],o[e],i):a[e]=Ut(o[e],i))}),a}function Wt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Gt,n.isMergeableObject=n.isMergeableObject||Nt,n.cloneUnlessOtherwiseSpecified=Ut;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Vt(e,t,n):Ut(t,n)}Wt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Wt(e,t,n)},{});throw new Error("first argument should be an array")};var Xt=Wt,Zt=function(e,t){return(Zt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Yt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Zt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var y,b,Kt,w=function(){return(w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Jt(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Qt(e){return e.type===b.literal}function qt(e){return e.type===b.number}function en(e){return e.type===b.date}function tn(e){return e.type===b.time}function nn(e){return e.type===b.select}function rn(e){return e.type===b.plural}function on(e){return e.type===b.tag}function an(e){return e&&"object"==typeof e&&e.type===Kt.number}function sn(e){return e&&"object"==typeof e&&e.type===Kt.dateTime}(e=y=y||{})[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",(e=b=b||{})[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",(e=Kt=Kt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ln=/(?:[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;var cn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,un=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hn=/^(@+)?(\+|#+)?[rs]?$/g,dn=/(\*)(0+)|(#+)(0+)|(0+)/g,pn=/^(0+)$/;function fn(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(hn,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function mn(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 gn(e){return mn(e)||{}}function yn(e){for(var a={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=o.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=w(w(w({},a),{notation:"scientific"}),o.options.reduce(function(e,t){return w(w({},e),gn(t))},{}));continue;case"engineering":a=w(w(w({},a),{notation:"engineering"}),o.options.reduce(function(e,t){return w(w({},e),gn(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(dn,function(e,t,n,r,o,i){if(t)a.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pn.test(o.stem))a.minimumIntegerDigits=o.stem.length;else if(un.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(un,function(e,t,n,r,o,i){return"*"===n?a.minimumFractionDigits=t.length:r&&"#"===r[0]?a.maximumFractionDigits=r.length:o&&i?(a.minimumFractionDigits=o.length,a.maximumFractionDigits=o.length+i.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var i=o.options[0];"w"===i?a=w(w({},a),{trailingZeroDisplay:"stripIfInteger"}):i&&(a=w(w({},a),fn(i)))}else hn.test(o.stem)?a=w(w({},a),fn(o.stem)):((i=mn(o.stem))&&(a=w(w({},a),i)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(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)),!pn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(a=w(w({},a),r)))}return a}var bn={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var vn=new RegExp("^".concat(e.source,"*")),wn=new RegExp("".concat(e.source,"*$"));function E(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,En=!!String.fromCodePoint,Bn=!!Object.fromEntries,Cn=!!String.prototype.codePointAt,xn=!!String.prototype.trimStart,Mn=!!String.prototype.trimEnd,Tn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Hn=!0;try{Hn="a"===(null==(Zn=Rn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Zn[0])}catch(v){Hn=!1}var An,_n,Sn=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},In=En?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;i<o;){if(1114111<(n=e[i++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},$n=Bn?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],o=o[1];t[i]=o}return t},Ln=Cn?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},Fn=xn?function(e){return e.trimStart()}:function(e){return e.replace(vn,"")},Pn=Mn?function(e){return e.trimEnd()}:function(e){return e.replace(wn,"")};function Rn(e,t){return new RegExp(e,t)}_n=Hn?(An=Rn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return An.lastIndex=t,null!=(t=An.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=Ln(e,t);if(void 0===o||Nn(o)||33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;r.push(o),t+=65536<=o?2:1}return In.apply(void 0,r)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(y.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&On(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o}else if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}else{i=this.clonePosition();this.bump(),r.push({type:b.pound,location:E(i,this.clonePosition())})}}}return{val:r,err:null}},a.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),o=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(o,"/>"),location:E(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!On(this.char())?this.error(y.INVALID_TAG,E(e,this.clonePosition())):(n=this.clonePosition(),o!==this.parseTagName()?this.error(y.UNMATCHED_CLOSING_TAG,E(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:o,children:t,location:E(r,this.clonePosition())},err:null}:this.error(y.INVALID_TAG,E(e,this.clonePosition())))):this.error(y.UNCLOSED_TAG,E(r,this.clonePosition()))):this.error(y.INVALID_TAG,E(r,this.clonePosition()))},a.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},a.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=E(n,this.clonePosition());return{val:{type:b.literal,value:r,location:n},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(On(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return In.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),In(n))},a.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(y.EMPTY_ARGUMENT,E(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(y.MALFORMED_ARGUMENT,E(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:r,location:E(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(y.MALFORMED_ARGUMENT,E(n,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=_n(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:E(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(y.EXPECT_ARGUMENT_TYPE,E(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=Pn(h.val)).length)return this.error(y.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:E(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(p=E(r,this.clonePosition()),l&&Sn(null==l?void 0:l.style,"::",0)?(f=Fn(l.style.slice(2)),"number"===a?(h=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:p,style:h.val},err:null}:0===f.length?this.error(y.EXPECT_DATE_TIME_SKELETON,p):(u=f,this.locale&&(u=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(bn[t||""]||bn[n||""]||bn["".concat(n,"-001")]||bn["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<a--;)n=l+n}else n+="J"===o?"H":o}return n}(f,this.locale)),d={type:Kt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(ln,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"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":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<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""}),o):{}},{val:{type:"date"===a?b.date:b.time,value:n,location:p,style:d},err:null})):{val:{type:"number"===a?b.number:"date"===a?b.date:b.time,value:n,location:p,style:null!=(f=null==l?void 0:l.style)?f:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS,E(u,w({},u)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),p=0;if("select"!==a&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=h.val}var f,l=this.tryParsePluralOrSelectOptions(e,a,t,d);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(f=E(r,this.clonePosition()),"select"===a?{val:{type:b.select,value:n,options:$n(l.val),location:f},err:null}:{val:{type:b.plural,value:n,options:$n(l.val),offset:p,pluralType:"plural"===a?"cardinal":"ordinal",location:f},err:null});default:return this.error(y.INVALID_ARGUMENT_TYPE,E(i,s))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},a.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(cn).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),a=0,s=o;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:o})}return t}(e)}catch(e){return this.error(y.INVALID_NUMBER_SKELETON,t)}return{val:{type:Kt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?yn(n):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,i=[],a=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR,y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=E(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(a.has(s))return this.error("select"===t?y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;var h=this.tryParseArgumentClose(u);if(h.err)return h;i.push([s,{value:c.val,location:E(u,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===i.length?this.error("select"===t?y.EXPECT_SELECT_ARGUMENT_SELECTOR:y.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(y.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:i,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}r=E(r,this.clonePosition());return o?Tn(i*=n)?{val:i,err:null}:this.error(t,r):this.error(e,r)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ln(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},a.prototype.bumpIf=function(e){if(Sn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},a.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&Nn(this.char());)this.bump()},a.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var kn=a;function a(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function On(e){return 97<=e&&e<=122||65<=e&&e<=90}function Nn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Dn(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new kn(e,t).parse();if(e.err)throw(n=SyntaxError(y[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,nn(e)||rn(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else qt(e)&&an(e.style)||(en(e)||tn(e))&&sn(e.style)?delete e.style.location:on(e)&&n(e.children)})}(e.val),e.val}function Un(e,t){var n=t&&t.cache?t.cache:Yn,r=t&&t.serializer?t.serializer:Vn;return(t&&t.strategy?t.strategy:function(e,t){return zn(e,this,1===e.length?Gn:jn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Gn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function jn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function zn(e,t,n,r,o){return n.bind(t,e,r,o)}var Vn=function(){return JSON.stringify(arguments)};function Wn(){this.cache=Object.create(null)}Wn.prototype.get=function(e){return this.cache[e]},Wn.prototype.set=function(e,t){this.cache[e]=t};var Xn,Zn,Yn={create:function(){return new Wn}},Kn={variadic:function(e,t){return zn(e,this,jn,t.cache.create(),t.serializer)},monadic:function(e,t){return zn(e,this,Gn,t.cache.create(),t.serializer)}};(Zn=Xn=Xn||{}).MISSING_VALUE="MISSING_VALUE",Zn.INVALID_VALUE="INVALID_VALUE",Zn.MISSING_INTL_API="MISSING_INTL_API";Yt(lr,er=Error),lr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var B,Jn,Qn,qn,er,tr=lr,nr=(Yt(sr,qn=tr),sr),rr=(Yt(ar,Qn=tr),ar),or=(Yt(ir,Jn=tr),ir);function ir(e,t){return Jn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Xn.MISSING_VALUE,t)||this}function ar(e,t,n){return Qn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Xn.INVALID_VALUE,n)||this}function sr(e,t,n,r){return qn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Xn.INVALID_VALUE,r)||this}function lr(e,t,n){e=er.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function cr(e,t,n,r,o,i,a){if(1===e.length&&Qt(e[0]))return[{type:B.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Qt(u))s.push({type:B.literal,value:u.value});else if(u.type===b.pound)"number"==typeof i&&s.push({type:B.literal,value:n.getNumberFormat(t).format(i)});else{var h=u.value;if(!(o&&h in o))throw new or(h,a);h=o[h];if(u.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?B.literal:B.object,value:h});else if(en(u)){var d="string"==typeof u.style?r.date[u.style]:sn(u.style)?u.style.parsedOptions:void 0;s.push({type:B.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(tn(u))d="string"==typeof u.style?r.time[u.style]:sn(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:B.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(qt(u))(d="string"==typeof u.style?r.number[u.style]:an(u.style)?u.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),s.push({type:B.literal,value:n.getNumberFormat(t,d).format(h)});else{if(on(u)){var p=u.children,f=u.value,m=o[f];if("function"!=typeof m)throw new rr(f,"function",a);f=m(cr(p,t,n,r,o,i).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?B.literal:B.object,value:e}}))}if(nn(u)){if(!(g=u.options[h]||u.options.other))throw new nr(u.value,h,Object.keys(u.options),a);s.push.apply(s,cr(g.value,t,n,r,o))}else if(rn(u)){if(!(g=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new tr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Xn.MISSING_INTL_API,a);var m=n.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[m]||u.options.other}if(!g)throw new nr(u.value,h,Object.keys(u.options),a);s.push.apply(s,cr(g.value,t,n,r,o,h-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===B.literal&&t.type===B.literal?n.value+=t.value:e.push(t),e},[])}function ur(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=B=B||{})[e.literal=0]="literal",e[e.object=1]="object",Object.defineProperty(s,"defaultLocale",{get:function(){return s.memoizedDefaultLocale||(s.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),s.memoizedDefaultLocale},enumerable:!1,configurable:!0}),s.memoizedDefaultLocale=null,s.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},s.__parse=Dn,s.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"}}};var hr=s;function s(e,t,n,r){var o,i,a=this;if(void 0===t&&(t=s.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=a.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===B.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return cr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=t,this.resolvedLocale=s.resolveLocale(t),"string"==typeof e){if(this.message=e,!s.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=s.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=s.formats,(i=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=i[t])?w(w(w({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=w(w({},n[t]),r[t]||{}),e},{})):n),e},w({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:Un(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Jt([void 0],t,!1)))},{cache:ur((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Kn.variadic}),getDateTimeFormat:Un(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Jt([void 0],t,!1)))},{cache:ur(t.dateTime),strategy:Kn.variadic}),getPluralRules:Un(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Jt([void 0],t,!1)))},{cache:ur(t.pluralRules),strategy:Kn.variadic})}}const dr={},pr=(e,t,n)=>n&&(t in dr||(dr[t]={}),e in dr[t]||(dr[t][e]=n),n),fr=(t,n)=>{if(null!=n){if(n in dr&&t in dr[n])return dr[n][t];var r=_r(n);for(let e=0;e<r.length;e++){var o=function(e,t){if(!yr(e))return null;e=function(e){return mr[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(o)return pr(t,n,o)}}};let mr;const gr=kt({});function yr(e){return e in mr}function br(t,...n){delete dr[t],gr.update(e=>(e[t]=Xt.all([e[t]||{},...n]),e))}Ot([gr],([e])=>Object.keys(e)),gr.subscribe(e=>mr=e);const vr={};function wr(e){return vr[e]}function Er(e){return null!=e&&_r(e).some(e=>{return null==(e=wr(e))?void 0:e.size})}const Br={};function Cr(e){var t;return Er(e)?(t=_r(e).map(e=>{var t=wr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Br[e]=Promise.all(t.map(([e,t])=>{return r=e,Promise.all(t.map(e=>{return t=r,n=e,vr[t].delete(n),0===vr[t].size&&delete vr[t],e().then(e=>e.default||e);var t,n})).then(e=>br(r,...e));var r})).then(()=>{if(Er(e))return Cr(e);delete Br[e]}),Br[e]):e in Br?Br[e]:Promise.resolve()}const xr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Mr=kt(!1);let Tr;const Hr=kt(null);function Ar(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function _r(e,t=xr.fallbackLocale){e=Ar(e);return t?[...new Set([...e,...Ar(t)])]:e}function Sr(){return null!=Tr?Tr:void 0}Hr.subscribe(e=>{Tr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const J={...Hr,set:t=>{if(t&&function(e){if(null!=e){var t=_r(e);for(let e=0;e<t.length;e++){var n=t[e];if(yr(n))return n}}}(t)&&Er(t)){var n=xr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Sr()&&n?e=window.setTimeout(()=>Mr.set(!0),n):Mr.set(!0),Cr(t).then(()=>{Hr.set(t)}).finally(()=>{clearTimeout(e),Mr.set(!1)})}return Hr.set(t)}},Ir=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},$r=(e,t)=>{var n=xr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Lr=Ir(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=$r("number",t)),new Intl.NumberFormat(e,n)}),Fr=Ir(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=$r("date",t):0===Object.keys(n).length&&(n=$r("date","short")),new Intl.DateTimeFormat(e,n)}),Pr=Ir(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=$r("time",t):0===Object.keys(n).length&&(n=$r("time","short")),new Intl.DateTimeFormat(e,n)}),Rr=Ir((e,t=Sr())=>new hr(e,t,xr.formats,{ignoreTag:xr.ignoreTag})),kr=Ot([J,gr],()=>(e,t={})=>{var n,r;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:i,locale:a=Sr(),default:s}=o;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=fr(e,a);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=xr).handleMissingMessage)?void 0:n.call(r,{locale:a,id:e,defaultValue:s}))?n:s)?r:e;if(!i)return l;let c=l;try{c=Rr(l,a).format(i)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),Or=(Ot([J],()=>(e,t)=>{return[{locale:t=Sr(),...n}={}]=[t],Pr({locale:t,...n}).format(e);var n}),Ot([J],()=>(e,t)=>{return[{locale:t=Sr(),...n}={}]=[t],Fr({locale:t,...n}).format(e);var n}),Ot([J],()=>(e,t)=>{return[{locale:t=Sr(),...n}={}]=[t],Lr({locale:t,...n}).format(e);var n}),Ot([J,gr],()=>(e,t=Sr())=>fr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Ft.indexOf(e)&&(t=new It(t),Pt[e]=t,Ft.push(e)),Pt[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),Nr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Dr(e,t){br(e,t)}const Ur={en:{login:"Login",register:"Register",deposit:"Deposit",promotions:"Promotions"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金",promotions:"促销活动"},fr:{login:"Connexion",register:"Enregistrer",deposit:"Dépôt",promotions:"Promotions"},tr:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito",promotions:"Promosyonlar"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit",promotions:"Promotii"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita",promotions:"Promociones"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito",promotions:"Promoções"},hr:{login:"Prijava",register:"Registracija",deposit:"Depozit",promotions:"Promocije"}};function Gr(e,t){br(e,t)}const jr={en:{login:"Login",register:"Register",deposit:"Deposit"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金"},fr:{login:"Connexion",register:"Registre",deposit:"Dépôt"},tr:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito"},hr:{login:"prijava",register:"registracija",deposit:"uplata"}};function zr(e,t,n){e=e.slice();return e[47]=t[n],e[49]=n,e}function Vr(e,t,n){e=e.slice();return e[50]=t[n],e}function Wr(e,t,n){e=e.slice();return e[53]=t[n],e[55]=n,e}function Xr(t){let r,o=[],n=new Map,i=t[9];const a=e=>e[47].id;for(let e=0;e<i.length;e+=1){var s=zr(t,i,e),l=a(s);n.set(l,o[e]=to(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=N()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);ae(t,r,n)},p(e,t){12237&t[0]&&(i=e[9],o=Ee(o,t,a,1,e,i,n,r.parentNode,we,to,r,zr))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&se(r)}}}function Zr(e){let n,r,o=e[47].name+"";return{c(){n=le("a"),r=ce(o),he(n,"href","#")},m(e,t){ae(e,n,t),ie(n,r)},p(e,t){512&t[0]&&o!==(o=e[47].name+"")&&de(r,o)},d(e){e&&se(n)}}}function Yr(e){let n,r,o=e[47].label+"";return{c(){n=le("a"),r=ce(o),he(n,"href","#")},m(e,t){ae(e,n,t),ie(n,r)},p(e,t){512&t[0]&&o!==(o=e[47].label+"")&&de(r,o)},d(e){e&&se(n)}}}function Kr(e){let n,r=0<e[10].length&&"true"==e[3]&&Jr(e);return{c(){r&&r.c(),n=N()},m(e,t){r&&r.m(e,t),ae(e,n,t)},p(e,t){0<e[10].length&&"true"==e[3]?r?r.p(e,t):((r=Jr(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&se(n)}}}function Jr(t){let o,i=t[10],a=[];for(let e=0;e<i.length;e+=1)a[e]=eo(Vr(t,i,e));return{c(){o=le("ul");for(let e=0;e<a.length;e+=1)a[e].c();he(o,"class","DropDown")},m(e,t){ae(e,o,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(o,null)},p(t,n){if(10176&n[0]){let e;for(i=t[10],e=0;e<i.length;e+=1){var r=Vr(t,i,e);a[e]?a[e].p(r,n):(a[e]=eo(r),a[e].c(),a[e].m(o,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=i.length}},d(e){e&&se(o),S(a,e)}}}function Qr(n){let r,o,i,a,s,l,c,u=n[53]?.name+"";function h(...e){return n[29](n[47],n[49],n[53],n[55],...e)}return{c(){r=le("li"),o=le("a"),i=ce(u),s=ue(),he(o,"class",a="SubDropDown "+(n[49]!=n[6]||n[7]!=n[55]&&n[8]!=n[55]?"":"active"))},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(r,s),l||(c=R(r,"click",h),l=!0)},p(e,t){n=e,1024&t[0]&&u!==(u=n[53]?.name+"")&&de(i,u),1984&t[0]&&a!==(a="SubDropDown "+(n[49]!=n[6]||n[7]!=n[55]&&n[8]!=n[55]?"":"active"))&&he(o,"class",a)},d(e){e&&se(r),l=!1,c()}}}function qr(e,n){let r,o,i=n[49]==n[50].index&&Qr(n);return{key:e,first:null,c(){r=N(),i&&i.c(),o=N(),this.first=r},m(e,t){ae(e,r,t),i&&i.m(e,t),ae(e,o,t)},p(e,t){(n=e)[49]==n[50].index?i?i.p(n,t):((i=Qr(n)).c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},d(e){e&&se(r),i&&i.d(e),e&&se(o)}}}function eo(t){let r,o=[],n=new Map,i=t[50].items;const a=e=>e[53].id;for(let e=0;e<i.length;e+=1){var s=Wr(t,i,e),l=a(s);n.set(l,o[e]=qr(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=N()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);ae(t,r,n)},p(e,t){10176&t[0]&&(i=e[50].items,o=Ee(o,t,a,1,e,i,n,r.parentNode,we,qr,r,Wr))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&se(r)}}}function to(e,n){let r,o,i,a,s,l;function c(e){return"headerMain"===e[0]?Yr:Zr}let u=c(n),h=u(n),d=1==n[11][n[49]]&&Kr(n);function p(...e){return n[30](n[47],n[49],...e)}return{key:e,first:null,c(){r=le("li"),h.c(),o=ue(),d&&d.c(),i=ue(),he(r,"class",a="CarouselItem "+(-1<n[2]?.toString().indexOf("$")?n[2]?.split("$").pop()==n[47].id.split("$").pop()?"active":"":n[2]==n[47].id?"active":"")+" "+("headerMain"==n[0]?"":"SecondaryMenu")),he(r,"part","CarouselItem"),this.first=r},m(e,t){ae(e,r,t),h.m(r,null),ie(r,o),d&&d.m(r,null),ie(r,i),s||(l=R(r,"click",p),s=!0)},p(e,t){u===(u=c(n=e))&&h?h.p(n,t):(h.d(1),(h=u(n))&&(h.c(),h.m(r,o))),1==n[11][n[49]]?d?d.p(n,t):((d=Kr(n)).c(),d.m(r,i)):d&&(d.d(1),d=null),517&t[0]&&a!==(a="CarouselItem "+(-1<n[2]?.toString().indexOf("$")?n[2]?.split("$").pop()==n[47].id.split("$").pop()?"active":"":n[2]==n[47].id?"active":"")+" "+("headerMain"==n[0]?"":"SecondaryMenu"))&&he(r,"class",a)},d(e){e&&se(r),h.d(),d&&d.d(),s=!1,l()}}}function no(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b=0<n[9].length&&Xr(n);return{c(){r=le("div"),o=le("div"),(i=le("div")).innerHTML='<svg fill="none" stroke="var(--emfe-w-categories-arrows, var( --emfe-w-color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',a=ue(),s=le("div"),l=le("ul"),(c=le("li")).innerHTML='<a href="#CarouselNav">Close Subs</a>',u=ue(),b&&b.c(),h=ue(),(d=le("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',this.c=v,he(i,"class","CarouselLeftArrow"),he(c,"class","TouchOnly"),he(l,"id","CarouselNav"),he(l,"class","CarouselItems"),he(s,"class","CarouselNavWrap"),he(d,"class","CarouselRightArrow"),he(o,"class",p="CarouselContainer CarouselContainerMobile} "+("headerMain"===n[0]?"CarouselContainerHeaderMain":"")),he(o,"style",f="headerMain"===n[0]?"max-width: auto":`max-width: ${n[1]}px`),he(r,"class",m="CarouselWrapper "+("headerMain"===n[0]?"CarouselWrapperHeaderMain":""))},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(o,a),ie(o,s),ie(s,l),ie(l,c),ie(l,u),b&&b.m(l,null),n[31](l),n[32](s),ie(o,h),ie(o,d),n[34](r),g||(y=[R(i,"click",n[28]),R(d,"click",n[33])],g=!0)},p(e,t){0<e[9].length?b?b.p(e,t):((b=Xr(e)).c(),b.m(l,null)):b&&(b.d(1),b=null),1&t[0]&&p!==(p="CarouselContainer CarouselContainerMobile} "+("headerMain"===e[0]?"CarouselContainerHeaderMain":""))&&he(o,"class",p),3&t[0]&&f!==(f="headerMain"===e[0]?"max-width: auto":`max-width: ${e[1]}px`)&&he(o,"style",f),1&t[0]&&m!==(m="CarouselWrapper "+("headerMain"===e[0]?"CarouselWrapperHeaderMain":""))&&he(r,"class",m)},i:v,o:v,d(e){e&&se(r),b&&b.d(),n[31](null),n[32](null),n[34](null),g=!1,P(y)}}}function ro(t,e,i){let{endpoint:a=""}=e,{datasource:s=""}=e,{onclickeventname:n="defaultEvent"}=e,{actionevent:l="defaultEvent"}=e,{favoritesnumber:r="0"}=e,{location:c=""}=e,{clientstyling:o=""}=e,{clientstylingurl:u=""}=e,{identity:h=""}=e,{translationurl:d=""}=e,{containermaxwidth:p=""}=e,{isprimarymenu:f=!1}=e,{issecondarymenu:m=!1}=e,{lang:g=""}=e,{activeindex:y="0"}=e,{showsubgroups:b="false"}=e;var v,w;({withLocale:v,translations:w}={withLocale:"en",translations:{}}),J.subscribe(e=>{null==e&&(gr.set(w),J.set(v))}),Object.keys(jr).forEach(e=>{Gr(e,jr[e])});let E,B,C,x,M,T=window.navigator.userAgent;Nr(T);let H,A=[],_=[],S=[],I=(e,t,n,r,o)=>{e.subGroups&&null===r||(P(),i(6,B=t),i(6,B),"secondary"!=o?(window.postMessage({type:l,itemId:e.id,index:t,item:e,externalLink:e.externalLink||!1,target:(null==(o=e.attrs)?void 0:o.target)||null},window.location.href),i(7,C=null),i(8,x=null)):(i(7,C=r),i(7,C),i(8,x=C),window.postMessage({type:l,itemId:n.id,subIndex:r,subItem:n},window.location.href)))},$=()=>{H.scrollBy({left:-250,behavior:"smooth"})},L=()=>{H.scrollBy({left:250,behavior:"smooth"})};const F=e=>{"SliderData"==e.data.type&&e.data.identity==h&&(i(9,A=e.data.data),i(11,S=new Array(A.length).fill(!1)),"true"==b)&&A.forEach((e,t)=>{var r,o,n;0<(null==(n=null==e?void 0:e.subGroups)?void 0:n.count)&&(i(11,S[t]=!0,S),r=e,o=t,"secondaryMenu"==c&&a&&s&&g&&r.id&&(n=new URL(`${a}/casino/groups/${s}/${r.id}/subGroups?language=`+g),fetch(n.href).then(e=>e.json()).then(e=>{e.index=o,i(10,_=_.concat(e)),"false"==b&&window.postMessage({type:l,itemId:r.id,index:o,item:r},window.location.href);const n=[];_.map(e=>(e.items.forEach(t=>{n.find(e=>t.id==e)||n.push(t.id)}),n.flat())),window.postMessage({type:"SubgroupsIds",subGroupsIds:n},window.location.href)}).then(()=>{E.querySelectorAll(".DropDown")&&P()})),"headerMain"==c)&&window.postMessage({type:l,item:r},window.location.href)}),"GoToHomepage"==e.data.type&&A.forEach((e,t)=>{e.path.endsWith("/casino")&&(i(6,B=t),i(6,B))})},P=()=>{var t=E.querySelectorAll(".DropDown");document.activeElement.blur(),H.classList.add("isScrolling");for(let e=0;e<t.length;e++)t[e].style.transform="translateX(-"+H.scrollLeft+"px)";H.classList.remove("isScrolling")};return ee(()=>("ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),window.addEventListener("message",F,!1),setTimeout(()=>{H.addEventListener("scroll",P)},500),()=>{window.removeEventListener("message",F),E.removeEventListener("scroll",P)})),t.$$set=e=>{"endpoint"in e&&i(16,a=e.endpoint),"datasource"in e&&i(17,s=e.datasource),"onclickeventname"in e&&i(18,n=e.onclickeventname),"actionevent"in e&&i(19,l=e.actionevent),"favoritesnumber"in e&&i(20,r=e.favoritesnumber),"location"in e&&i(0,c=e.location),"clientstyling"in e&&i(21,o=e.clientstyling),"clientstylingurl"in e&&i(22,u=e.clientstylingurl),"identity"in e&&i(23,h=e.identity),"translationurl"in e&&i(24,d=e.translationurl),"containermaxwidth"in e&&i(1,p=e.containermaxwidth),"isprimarymenu"in e&&i(25,f=e.isprimarymenu),"issecondarymenu"in e&&i(26,m=e.issecondarymenu),"lang"in e&&i(27,g=e.lang),"activeindex"in e&&i(2,y=e.activeindex),"showsubgroups"in e&&i(3,b=e.showsubgroups)},t.$$.update=()=>{if(t.$$.dirty[0],16777216&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Gr(e,t[e])})}).catch(e=>{console.log(e)}),2097168&t.$$.dirty[0]&&o&&M&&((e=document.createElement("style")).innerHTML=o,M.appendChild(e)),4194320&t.$$.dirty[0]&&u&&M){let t=document.createElement("style"),e=new URL(u);fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{M.appendChild(t)},1)})}var e;134217728&t.$$.dirty[0]&&g&&(e=g,J.set(e))},[c,p,y,b,M,E,B,C,x,A,_,S,H,I,$,L,a,s,n,l,r,o,u,h,d,f,m,g,()=>$(),(e,t,n,r,o)=>{I(e,t,n,r,"secondary"),o.stopPropagation()},(e,t,n)=>{I(e,t,null,null,"main"),n.preventDefault()},function(e){K[e?"unshift":"push"](()=>{E=e,i(5,E)})},function(e){K[e?"unshift":"push"](()=>{H=e,i(12,H)})},()=>L(),function(e){K[e?"unshift":"push"](()=>{M=e,i(4,M)})}]}function oo(e,{delay:t=0,duration:n=400,easing:r=C}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*o}}function io(e,t){br(e,t)}customElements.get("casino-slider")||customElements.define("casino-slider",class extends Ce{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-orange-500, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-pink-500, #D0046C)));background:linear-gradient(to left, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-orange-500, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-pink-500, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));margin:0 auto}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-dunkel, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emfe-w-categories-arrows-bg, var(--emfe-w-color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emfe-w-categories-arrows, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems a{display:block;padding:7px 10px;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-dunkel, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emfe-w-categories-color-secondary, var(--emfe-w-color-orange-500, #FD2839));background:-webkit-linear-gradient(var(--emfe-w-categories-color-secondary, var(--emfe-w-color-orange-500, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-pink-500, #D0046C)));background:linear-gradient(var(--emfe-w-categories-color-secondary, var(--emfe-w-color-orange-500, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-pink-500, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-dunkel, #07072A));color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emfe-w-categories-contrast, var(--emfe-w-color-dunkel, #07072A));background:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));color:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emfe-w-color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}',this.shadowRoot.appendChild(t),Be(this,{target:this.shadowRoot,props:U(this.attributes),customElement:!0},ro,no,T,{endpoint:16,datasource:17,onclickeventname:18,actionevent:19,favoritesnumber:20,location:0,clientstyling:21,clientstylingurl:22,identity:23,translationurl:24,containermaxwidth:1,isprimarymenu:25,issecondarymenu:26,lang:27,activeindex:2,showsubgroups:3},null,[-1,-1]),e&&(e.target&&ae(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["endpoint","datasource","onclickeventname","actionevent","favoritesnumber","location","clientstyling","clientstylingurl","identity","translationurl","containermaxwidth","isprimarymenu","issecondarymenu","lang","activeindex","showsubgroups"]}get endpoint(){return this.$$.ctx[16]}set endpoint(e){this.$$set({endpoint:e}),d()}get datasource(){return this.$$.ctx[17]}set datasource(e){this.$$set({datasource:e}),d()}get onclickeventname(){return this.$$.ctx[18]}set onclickeventname(e){this.$$set({onclickeventname:e}),d()}get actionevent(){return this.$$.ctx[19]}set actionevent(e){this.$$set({actionevent:e}),d()}get favoritesnumber(){return this.$$.ctx[20]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),d()}get location(){return this.$$.ctx[0]}set location(e){this.$$set({location:e}),d()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get identity(){return this.$$.ctx[23]}set identity(e){this.$$set({identity:e}),d()}get translationurl(){return this.$$.ctx[24]}set translationurl(e){this.$$set({translationurl:e}),d()}get containermaxwidth(){return this.$$.ctx[1]}set containermaxwidth(e){this.$$set({containermaxwidth:e}),d()}get isprimarymenu(){return this.$$.ctx[25]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),d()}get issecondarymenu(){return this.$$.ctx[26]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),d()}get lang(){return this.$$.ctx[27]}set lang(e){this.$$set({lang:e}),d()}get activeindex(){return this.$$.ctx[2]}set activeindex(e){this.$$set({activeindex:e}),d()}get showsubgroups(){return this.$$.ctx[3]}set showsubgroups(e){this.$$set({showsubgroups:e}),d()}});const ao={en:{language:"Select Language"},"zh-hk":{language:"選擇語言"},fr:{language:"Sélectionner la langue"},tr:{language:"Dil Seçin"},ro:{language:"Selecteaza limba"},es:{language:"Seleccionar idioma"},pt:{language:"Selecione o idioma"},hr:{language:"Izaberite jezik"}};function so(e,t,n){e=e.slice();return e[0]=t[n],e}function lo(e,t,n){e=e.slice();return e[43]=t[n],e}function co(e,t,n){e=e.slice();return e[46]=t[n],e}function uo(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,t,g,y,b,v=n[3],w=[];for(let e=0;e<v.length;e+=1)w[e]=ho(co(n,v,e));let E=n[5],B=[];for(let e=0;e<E.length;e+=1)B[e]=po(lo(n,E,e));let C=1<n[9].length&&fo(n);return{c(){r=le("div"),o=le("span"),(i=le("slot")).innerHTML='<svg class="w-6 h-6" part="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',s=ue(),l=le("div"),c=le("ul");for(let e=0;e<w.length;e+=1)w[e].c();h=ue(),d=le("ul");for(let e=0;e<B.length;e+=1)B[e].c();f=ue(),C&&C.c(),he(i,"name","close"),he(o,"class",a=n[6]?"ModalCloseBtn":""),he(o,"role","button"),he(c,"class",u="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")),he(d,"class",p="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")),he(l,"class",m="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")),he(r,"class","HamburgerModalWindow"),he(r,"part","HamburgerModalWindow")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(r,s),ie(r,l),ie(l,c);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(c,null);ie(l,h),ie(l,d);for(let e=0;e<B.length;e+=1)B[e]&&B[e].m(d,null);ie(l,f),C&&C.m(l,null),n[27](r),g=!0,y||(b=R(o,"click",n[12]),y=!0)},p(e,t){if(n=e,(!g||64&t[0]&&a!==(a=n[6]?"ModalCloseBtn":""))&&he(o,"class",a),8216&t[0]){let e;for(v=n[3],e=0;e<v.length;e+=1){const o=co(n,v,e);w[e]?w[e].p(o,t):(w[e]=ho(o),w[e].c(),w[e].m(c,null))}for(;e<w.length;e+=1)w[e].d(1);w.length=v.length}if((!g||128&t[0]&&u!==(u="HamburgerPrimaryMenu "+(n[7]?"HamburgerPrimaryMenuFixed":"")))&&he(c,"class",u),16416&t[0]){let e;for(E=n[5],e=0;e<E.length;e+=1){const o=lo(n,E,e);B[e]?B[e].p(o,t):(B[e]=po(o),B[e].c(),B[e].m(d,null))}for(;e<B.length;e+=1)B[e].d(1);B.length=E.length}(!g||128&t[0]&&p!==(p="HamburgerSecondaryMenu "+(n[7]?"HamburgerSecondaryMenuFixed":"")))&&he(d,"class",p),1<n[9].length?C?C.p(n,t):((C=fo(n)).c(),C.m(l,null)):C&&(C.d(1),C=null),(!g||64&t[0]&&m!==(m="HamburgerModalContainer "+(n[6]?"ActiveHamburgerMenu":"")))&&he(l,"class",m)},i(e){g||(x(()=>{g&&(t=t||ve(r,oo,{transitionDuration:yo},!0)).run(1)}),g=!0)},o(e){(t=t||ve(r,oo,{transitionDuration:yo},!1)).run(0),g=!1},d(e){e&&se(r),S(w,e),S(B,e),C&&C.d(),n[27](null),e&&t&&t.end(),y=!1,b()}}}function ho(n){let r,o,i,a,s,l,c,u,h,d,p=n[46].label+"";function f(){return n[23](n[46])}return{c(){r=le("li"),o=le("div"),i=le("img"),s=ue(),l=ce(p),c=ue(),m(i.src,a=n[46].img)||he(i,"src",a),he(i,"alt","menu icon"),he(o,"class","HamburgerItemContainer"),he(r,"class",u=n[4]===n[46].id?"ActiveItem":"")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(o,s),ie(o,l),ie(r,c),h||(d=R(r,"click",f),h=!0)},p(e,t){n=e,8&t[0]&&!m(i.src,a=n[46].img)&&he(i,"src",a),8&t[0]&&p!==(p=n[46].label+"")&&de(l,p),24&t[0]&&u!==(u=n[4]===n[46].id?"ActiveItem":"")&&he(r,"class",u)},d(e){e&&se(r),h=!1,d()}}}function po(n){let r,o,i,a,s,l,c,u,h=n[43].label+"";function d(...e){return n[24](n[43],...e)}return{c(){r=le("li"),o=le("img"),a=ue(),s=ce(h),l=ue(),m(o.src,i=n[43].img)||he(o,"src",i),he(o,"alt","menu icon")},m(e,t){ae(e,r,t),ie(r,o),ie(r,a),ie(r,s),ie(r,l),c||(u=R(r,"click",d),c=!0)},p(e,t){n=e,32&t[0]&&!m(o.src,i=n[43].img)&&he(o,"src",i),32&t[0]&&h!==(h=n[43].label+"")&&de(s,h)},d(e){e&&se(r),c=!1,u()}}}function fo(n){let r,o,i,a,s,l,c,e=n[11]("language")+"",u=n[9],h=[];for(let e=0;e<u.length;e+=1)h[e]=mo(so(n,u,e));return{c(){r=le("div"),o=le("span"),i=ce(e),a=ue(),s=le("select");for(let e=0;e<h.length;e+=1)h[e].c();he(s,"class","Item ItemLanguage"),void 0===n[10]&&x(()=>n[25].call(s)),he(r,"class","LanguageSelectorTitle")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(r,a),ie(r,s);for(let e=0;e<h.length;e+=1)h[e]&&h[e].m(s,null);D(s,n[10],!0),l||(c=[R(s,"change",n[25]),R(s,"change",n[26])],l=!0)},p(t,n){if(2048&n[0]&&e!==(e=t[11]("language")+"")&&de(i,e),512&n[0]){let e;for(u=t[9],e=0;e<u.length;e+=1){const i=so(t,u,e);h[e]?h[e].p(i,n):(h[e]=mo(i),h[e].c(),h[e].m(s,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=u.length}1536&n[0]&&D(s,t[10])},d(e){e&&se(r),S(h,e),l=!1,P(c)}}}function mo(e){let n,r,o,i=e[0]+"";return{c(){n=le("option"),r=ce(i),n.__value=o=e[0],n.value=n.__value,n.selected=!0},m(e,t){ae(e,n,t),ie(n,r)},p(e,t){512&t[0]&&i!==(i=e[0]+"")&&de(r,i),512&t[0]&&o!==(o=e[0])&&(n.__value=o,n.value=n.__value)},d(e){e&&se(n)}}}function go(n){let r,o,i=!0===n[8]&&uo(n);return{c(){r=le("div"),i&&i.c(),this.c=v},m(e,t){ae(e,r,t),i&&i.m(r,null),n[28](r),o=!0},p(e,t){!0===e[8]?i?(i.p(e,t),256&t[0]&&ge(i,1)):((i=uo(e)).c(),ge(i,1),i.m(r,null)):i&&(g={r:0,c:[],p:g},ye(i,1,1,()=>{i=null}),g.r||P(g.c),g=g.p)},i(e){o||(ge(i),o=!0)},o(e){ye(i),o=!1},d(e){e&&se(r),i&&i.d(),n[28](null)}}}let yo=350;function bo(t,e,r){let n;Q(t,kr,e=>r(11,n=e));let o,i,a,{menuitemsurl:s=""}=e,{lang:l="en"}=e,{activecategory:c=""}=e,{languageslist:u=""}=e,{translationurl:h=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,f=window.navigator.userAgent,m=[],g="",y=[],b=!1,v=!1,w=!1,E=!0,B=[],C=!1,x="";Object.keys(ao).forEach(e=>{io(e,ao[e])});const M=()=>{r(8,w=!1),r(6,b=!1),r(7,v=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href)},T=e=>{var n;"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),r(8,w=!0),setTimeout(()=>{r(6,b=!0)},500),setTimeout(()=>{r(7,v=!0)},1500),n=s,new Promise((e,t)=>{i&&!C?e(i):_(n)}))},H=(e,t)=>{r(4,g=e),r(5,y=t||[]),"function"==typeof gtag&&gtag("event","ChangeMenu",{context:"HamburgerMenu",menuItem:""+g})},A=()=>{var e=m.filter(e=>{let t=!1;return null!=(e=e.children)&&e.forEach(e=>{e.path.includes(c)&&(t=!0)}),t});0<e.length&&H(e[0].id,e[0].children)},_=e=>{fetch(e).then(e=>e.json()).then(e=>{r(3,m=e.filter(e=>"banner"!==(null==e?void 0:e.type))),A(),r(22,E=!1),i=e,C=!1},e=>{console.error(e)})};let S=e=>{window.postMessage({type:"HamburgerItemClicked",item:e,externalLink:e.externalLink||!1,target:e.attrs.target||null},window.location.href),M()};const I=()=>{C=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:x},window.location.href)};return ee(()=>(window.addEventListener("message",T,!1),Or(f),()=>{window.removeEventListener("message",T)})),t.$$set=e=>{"menuitemsurl"in e&&r(16,s=e.menuitemsurl),"lang"in e&&r(0,l=e.lang),"activecategory"in e&&r(17,c=e.activecategory),"languageslist"in e&&r(18,u=e.languageslist),"translationurl"in e&&r(19,h=e.translationurl),"clientstyling"in e&&r(20,d=e.clientstyling),"clientstylingurl"in e&&r(21,p=e.clientstylingurl)},t.$$.update=()=>{if(262145&t.$$.dirty[0]&&l&&u&&(e=l,J.set(e),C&&_(s),r(9,B=u.replace(/ /g,"").split(",")),r(9,B=B.map(e=>e.toUpperCase())),r(10,x=l.toUpperCase())),4325376&t.$$.dirty[0]&&c&&!E&&A(),524288&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{io(e,t[e])})}).catch(e=>{console.log(e)}),1048578&t.$$.dirty[0]&&d&&a&&((e=document.createElement("style")).innerHTML=d,a.appendChild(e)),2097154&t.$$.dirty[0]&&p&&a){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1)})}var e},[l,a,void 0,m,g,y,b,v,w,B,x,n,M,H,S,I,s,c,u,h,d,p,E,e=>H(e.id,e.children),(e,t)=>{S(e),t.preventDefault()},function(){x=q(this),r(10,x),r(9,B)},()=>I(),function(e){K[e?"unshift":"push"](()=>{o=e,r(2,o)})},function(e){K[e?"unshift":"push"](()=>{a=e,r(1,a)})}]}function vo(e,t){br(e,t)}customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",class extends Ce{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}.LanguageSelectorTitle{width:90vw;padding:5px 0;position:fixed;bottom:0;background:var(--emfe-w-header-color-secondary-menu-bg, var(--emfe-w-color-darkest-blue, #050518))}.LanguageSelectorTitle span{display:inline;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));margin:0 20px;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:12px}.ItemLanguage{height:34px;width:88%;margin:0 20px;text-align:left;line-height:34px;background:transparent;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));border:none}.ItemLanguage option{color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A))}.HamburgerModalWindow{display:block;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.7)}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emfe-w-header-color-secondary-menu-bg, var(--emfe-w-color-darkest-blue, #050518));width:0vw;height:100%;padding:0;border-top:0;border-radius:0;transition:width 0.4s ease-in-out;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{width:90vw}.HamburgerModalWindow .ModalCloseBtn{position:absolute;top:9px;right:9px;width:20px;height:20px;border-radius:100%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.2);opacity:1;cursor:pointer;transition:all 150ms ease-in-out;transition:opacity 500ms ease-in-out}.HamburgerModalWindow .ModalCloseBtn svg{width:20px;height:20px;padding:2px}.HamburgerModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF))}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:all 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emfe-w-header-color-menu-bg, var(--emfe-w-color-darkest-blue, #050518));white-space:nowrap;overflow:scroll;list-style:none;border-bottom:2px solid var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));width:90vw}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:100px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.HamburgerModalWindow .HamburgerPrimaryMenu.HamburgerPrimaryMenuFixed{position:fixed}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.HamburgerSecondaryMenuFixed{margin-top:106px;margin-bottom:70px}.HamburgerModalWindow .HamburgerSecondaryMenu li{margin:0 20px;padding:20px 0;display:flex;align-items:center;gap:15px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B)}",this.shadowRoot.appendChild(t),Be(this,{target:this.shadowRoot,props:U(this.attributes),customElement:!0},bo,go,T,{menuitemsurl:16,lang:0,activecategory:17,languageslist:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),e&&(e.target&&ae(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["menuitemsurl","lang","activecategory","languageslist","translationurl","clientstyling","clientstylingurl"]}get menuitemsurl(){return this.$$.ctx[16]}set menuitemsurl(e){this.$$set({menuitemsurl:e}),d()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d()}get activecategory(){return this.$$.ctx[17]}set activecategory(e){this.$$set({activecategory:e}),d()}get languageslist(){return this.$$.ctx[18]}set languageslist(e){this.$$set({languageslist:e}),d()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),d()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}});const wo={en:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"},"zh-hk":{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"},de:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"},it:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"},fr:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"},es:{balanceTitle:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"},tr:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"},ru:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"},ro:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"},hr:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"},hu:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"},pl:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"},pt:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"},sl:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"},sr:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}};var Eo=We(function(E,e){var r,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Ve:globalThis,I=t.setTimeout,$=t.clearTimeout,L=t.XMLHttpRequest,o=t.XDomainRequest,n=t.ActiveXObject,i=t.EventSource,a=t.document,h=t.Promise,d=t.fetch,s=t.Response,p=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;function c(){this.bitsNeeded=0,this.codePoint=0}function u(){}function F(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=u,this.onload=u,this.onerror=u,this.onreadystatechange=u,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=u}function m(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function g(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),i=o.shift(),o=o.join(": ");t[m(i)]=o}this._map=t}function P(){}function y(e){this._headers=e}function R(){}function k(){this._listeners=Object.create(null)}function b(e){I(function(){throw e},0)}function v(e){this.type=e,this.target=void 0}function O(e,t){v.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function N(e,t){v.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){v.call(this,e),this.error=t.error}function U(e,t){return e=null==e?t:parseInt(e,10),z(e=e!=e?t:e)}function G(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){b(e)}}"undefined"==typeof window||void 0===a||"readyState"in a||null!=a.body||(a.readyState="loading",window.addEventListener("load",function(e){a.readyState="complete"},!1)),null==L&&null!=n&&(L=function(){return new n("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(r=d,d=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),c.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",o=this.bitsNeeded,i=this.codePoint,a=0;a<e.length;a+=1){var s=e[a];0!==o&&(s<128||191<s||!t(i<<6|63&s,o-6,n(o,i)))&&(o=0,i=65533,r+=String.fromCharCode(i)),0===o?(i=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||t(i,o,n(o,i))||(o=0,i=65533)):(o-=6,i=i<<6|63&s),0===o&&(i<=65535?r+=String.fromCharCode(i):r=(r+=String.fromCharCode(55296+(i-65535-1>>10)))+String.fromCharCode(56320+(i-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=i,r},null!=p&&null!=l&&function(){try{return"test"===(new p).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(p=c),F.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:u}),l(),1===a||2===a||3===a){if(a=4,0!==r&&($(r),r=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}}var o=this,i=this._xhr,a=1,r=0,s=(this._abort=function(e){0!==o._sendTimeout&&($(o._sendTimeout),o._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,i.onload=u,i.onerror=u,i.onabort=u,i.onprogress=u,i.onreadystatechange=u,i.abort(),0!==r&&($(r),r=0),e)||(o.readyState=4,o.onabort(null),o.onreadystatechange()),a=0},function(){if(1===a){var t=0,n="",r=void 0;if("contentType"in i)t=200,n="OK",r=i.contentType;else try{t=i.status,n=i.statusText,r=i.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(a=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}),l=function(){if(s(),2===a||3===a){a=3;var e="";try{e=i.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(){r=I(function(){c()},500),3===i.readyState&&l()};"onload"in i&&(i.onload=function(e){n("load",e)}),"onerror"in i&&(i.onerror=function(e){n("error",e)}),"onabort"in i&&(i.onabort=function(e){n("abort",e)}),"onprogress"in i&&(i.onprogress=l),"onreadystatechange"in i&&(i.onreadystatechange=function(e){e=e,null!=i&&(4===i.readyState?"onload"in i&&"onerror"in i&&"onabort"in i||n(""===i.responseText?"error":"load",e):3===i.readyState?"onprogress"in i||l():2===i.readyState&&s())}),!("contentType"in i)&&"ontimeout"in L.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),i.open(e,t,!0),"readyState"in i&&(r=I(function(){c()},0))},F.prototype.abort=function(){this._abort(!1)},F.prototype.getResponseHeader=function(e){return this._contentType},F.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},F.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},F.prototype.send=function(){if("ontimeout"in L.prototype&&("sendAsBinary"in L.prototype||"mozAnon"in L.prototype)||null==a||null==a.readyState||"complete"===a.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=I(function(){t._sendTimeout=0,t.send()},4)}},g.prototype.get=function(e){return this._map[m(e)]},null!=L&&null==L.HEADERS_RECEIVED&&(L.HEADERS_RECEIVED=2),P.prototype.open=function(o,i,t,n,e,r,a){o.open("GET",e);var s,l=0;for(s in o.onprogress=function(){var e=o.responseText.slice(l);l+=e.length,t(e)},o.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var e,t,n,r;o.readyState===L.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),i(e,t,n,new g(r)))},o.withCredentials=r,a)Object.prototype.hasOwnProperty.call(a,s)&&o.setRequestHeader(s,a[s]);return o.send(),o},y.prototype.get=function(e){return this._headers.get(e)},R.prototype.open=function(e,t,o,n,r,i,a){var s=null,l=new f,c=l.signal,u=new p;return d(r,{headers:a,credentials:i?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new y(e.headers)),new h(function(t,n){function r(){s.read().then(function(e){e.done?t(void 0):(e=u.decode(e.value,{stream:!0}),o(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},k.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){b(e)}}},k.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var o=!1,i=0;i<r.length;i+=1)r[i]===t&&(o=!0);o||r.push(t)},k.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],i=0;i<r.length;i+=1)r[i]!==t&&o.push(r[i]);0===o.length?delete n[e]:n[e]=o}},O.prototype=Object.create(v.prototype),N.prototype=Object.create(v.prototype),D.prototype=Object.create(v.prototype);var j=/^text\/event\-stream(;.*)?$/i,z=function(e){return Math.min(Math.max(e,1e3),18e6)};function w(e,t){var l,i,a,c,u,h,d,p,f,n,s,m,g,y,b,v,w,E,B,C,x,M,T,H,A,_,S;k.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,i=e,e=t,i=String(i),t=Boolean(e.withCredentials),a=e.lastEventIdQueryParameterName||"lastEventId",c=z(1e3),u=U(e.heartbeatTimeout,45e3),h="",d=c,p=!1,f=0,n=e.headers||{},e=e.Transport,s=V&&null==e?void 0:new F(new(null!=e?e:null!=L&&"withCredentials"in L.prototype||null==o?L:o)),m=new(null!=e&&"string"!=typeof e?e:null==s?R:P),g=void 0,b=-1,B=E=w=v="",M=x=C=y=0,T=function(e,t,n,r){var o,i;0===b&&(200===e&&null!=n&&j.test(n)?(b=1,p=Date.now(),d=c,l.readyState=1,o=new N("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),G(l,l.onopen,o)):(i="",i=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",_(),o=new N("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),G(l,l.onerror,o),console.error(i)))},H=function(e){if(1===b){for(var t=-1,n=0;n<e.length;n+=1)(a=e.charCodeAt(n))!=="\n".charCodeAt(0)&&a!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?B:"")+e.slice(0,t+1);B=(-1===t?B:"")+e.slice(t+1),""!==e&&(p=Date.now(),f+=e.length);for(var o=0;o<r.length;o+=1){var i,a=r.charCodeAt(o);if(-1===C&&a==="\n".charCodeAt(0))C=0;else if(-1===C&&(C=0),a==="\r".charCodeAt(0)||a==="\n".charCodeAt(0)){if(0!==C&&(1===C&&(M=o+1),s=r.slice(x,M-1),i=r.slice(M+(M<o&&r.charCodeAt(M)===" ".charCodeAt(0)?1:0),o),"data"===s?v=v+"\n"+i:"id"===s?w=i:"event"===s?E=i:"retry"===s?(c=U(i,c),d=c):"heartbeatTimeout"===s&&(u=U(i,u),0!==y)&&($(y),y=I(function(){S()},u))),0===C){if(""!==v){h=w;var s=new O(E=""===E?"message":E,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(s),"open"===E?G(l,l.onopen,s):"message"===E?G(l,l.onmessage,s):"error"===E&&G(l,l.onerror,s),2===b)return}E=v=""}C=a==="\r".charCodeAt(0)?-1:0}else 0===C&&(x=o,C=1),1===C?a===":".charCodeAt(0)&&(M=o+1,C=2):2===C&&(C=3)}}},A=function(e){var t;1!==b&&0!==b||(b=-1,0!==y&&($(y),y=0),y=I(function(){S()},d),d=z(Math.min(16*c,2*d)),l.readyState=0,t=new D("error",{error:e}),l.dispatchEvent(t),G(l,l.onerror,t),null!=e&&console.error(e))},_=function(){b=2,null!=g&&(g.abort(),g=void 0),0!==y&&($(y),y=0),l.readyState=2},S=function(){if(y=0,-1===b){p=!1,f=0,y=I(function(){S()},u),w=h,B=E=v="",C=M=x=b=0;var e=i,t=("data:"!==i.slice(0,5)&&"blob:"!==i.slice(0,5)&&""!==h&&(e=-1===(t=i.indexOf("?"))?i:i.slice(0,t+1)+i.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===a?"":e}),e+=(-1===i.indexOf("?")?"?":"&")+a+"="+encodeURIComponent(h)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{g=m.open(s,T,H,A,e,t,n)}catch(e){throw _(),e}}else p||null==g?(e=Math.max((p||Date.now())+u-Date.now(),1),p=!1,y=I(function(){S()},e)):(A(new Error("No activity within "+u+" milliseconds. "+(0===b?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=i,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=_,S()}var V=null!=d&&null!=s&&"body"in s.prototype;(w.prototype=Object.create(k.prototype)).CONNECTING=0,w.prototype.OPEN=1,w.prototype.CLOSED=2,w.prototype.close=function(){this._close()},w.CONNECTING=0,w.OPEN=1,w.CLOSED=2,w.prototype.withCredentials=void 0,t=i,null==L||null!=i&&"withCredentials"in i.prototype||(t=w),(s=e).EventSourcePolyfill=w,s.NativeEventSource=i,s.EventSource=t}),Bo=We(function(e,t){function l(e,t){if(!(this instanceof l))return new l(e,t);t=Object.assign({},o,t);var n=Math.pow(10,t.precision);this.intValue=e=r(e,t),this.value=e/n,t.increment=t.increment||1/n,t.groups=t.useVedic?a:i,this.s=t,this.p=n}function r(e,t,n){var n=!(2<arguments.length&&void 0!==n)||n,r=t.decimal,o=t.errorOnInvalid,i=t.fromCents,t=Math.pow(10,t.precision),a=e instanceof l;if(a&&i)return e.intValue;if("number"==typeof e||a)r=a?e.value:e;else if("string"==typeof e)o=new RegExp("[^-\\d"+r+"]","g"),r=new RegExp("\\"+r,"g"),r=e.replace(/\((.*)\)/,"-$1").replace(o,"").replace(r,".")||0;else{if(o)throw Error("Invalid Input");r=0}return i||(r=(r*t).toFixed(4)),n?Math.round(r):r}var o,i,a;e.exports=(o={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(e,t){var n=t.pattern,r=t.negativePattern,o=t.symbol,i=t.separator,a=t.decimal;t=t.groups;var s=(l=(""+e).replace(/^-/,"").split("."))[0],l=l[1];return(0<=e.value?n:r).replace("!",o).replace("#",s.replace(t,"$1"+i)+(l?a+l:""))},fromCents:!1},i=/(\d)(?=(\d{3})+\b)/g,a=/(\d)(?=(\d\d)+\d\b)/g,l.prototype={add:function(e){var t=this.s,n=this.p;return l((this.intValue+r(e,t))/(t.fromCents?1:n),t)},subtract:function(e){var t=this.s,n=this.p;return l((this.intValue-r(e,t))/(t.fromCents?1:n),t)},multiply:function(e){var t=this.s;return l(this.intValue*e/(t.fromCents?1:Math.pow(10,t.precision)),t)},divide:function(e){var t=this.s;return l(this.intValue/r(e,t,!1),t)},distribute:function(e){for(var t=this.intValue,n=this.p,r=this.s,o=[],i=Math[0<=t?"floor":"ceil"](t/e),a=Math.abs(t-i*e),n=r.fromCents?1:n;0!==e;e--){var s=l(i/n,r);0<a--&&(s=s[0<=t?"add":"subtract"](1/n)),o.push(s)}return o},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(e){var t=this.s;return"function"==typeof e?e(this,t):t.format(this,Object.assign({},t,e))},toString:function(){var e=this.s,t=e.increment;return(Math.round(this.intValue/this.p/t)*t).toFixed(e.precision)},toJSON:function(){return this.value}},l)});function Co(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,B,C,x,M,T,H,A,_=n[8]("balanceTitle")+"",S=n[8]("totalBalance")+"",I=n[8]("depositButton")+"";function $(e){return"gm16"==e[0]?Mo:xo}let L=$(n),F=L(n);return{c(){r=le("div"),o=le("div"),i=ue(),a=le("div"),s=le("div"),l=le("p"),c=ce(_),u=ue(),h=le("div"),d=le("div"),p=le("p"),f=ce(S),m=ue(),g=le("p"),y=le("span"),b=ce(n[4]),v=ue(),w=le("span"),E=ce(n[5]),B=ue(),F.c(),C=ue(),x=le("div"),M=le("button"),T=ce(I),he(o,"class","BalanceModalClose"),he(l,"class","BalanceModalTitle"),he(s,"class","BalanceModalHeader"),he(p,"class","BalanceModalText"),he(y,"class","BalanceModalAmount"),he(w,"class","BalanceModalCurrency"),he(g,"class","BalanceModalValue"),he(d,"class","BalanceModalRow"),he(h,"class","BalanceModalBody"),he(M,"class","BalanceModalAction"),he(x,"class","BalanceModalFooter"),he(a,"class","BalanceModal"),he(r,"class","BalanceModalWrapper")},m(e,t){ae(e,r,t),ie(r,o),ie(r,i),ie(r,a),ie(a,s),ie(s,l),ie(l,c),ie(a,u),ie(a,h),ie(h,d),ie(d,p),ie(p,f),ie(d,m),ie(d,g),ie(g,y),ie(y,b),ie(g,v),ie(g,w),ie(w,E),ie(h,B),F.m(h,null),ie(a,C),ie(a,x),ie(x,M),ie(M,T),H||(A=[R(o,"click",n[24]),R(M,"click",n[25])],H=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("balanceTitle")+"")&&de(c,_),256&t[0]&&S!==(S=e[8]("totalBalance")+"")&&de(f,S),16&t[0]&&de(b,e[4]),32&t[0]&&de(E,e[5]),L===(L=$(e))&&F?F.p(e,t):(F.d(1),(F=L(e))&&(F.c(),F.m(h,null))),256&t[0]&&I!==(I=e[8]("depositButton")+"")&&de(T,I)},d(e){e&&se(r),F.d(),H=!1,P(A)}}}function xo(e){let n,r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,B,C=e[8]("cashBalance")+"",x=e[11](e[6][0]?.balanceAmount)+"",M=e[8]("bonusBalance")+"",T=e[11](e[6][1]?.balanceAmount)+"";return{c(){n=le("div"),r=le("p"),o=ce(C),i=ue(),a=le("p"),s=le("span"),l=ce(x),c=ue(),u=le("span"),h=ce(e[5]),d=ue(),p=le("div"),f=le("p"),m=ce(M),g=ue(),y=le("p"),b=le("span"),v=ce(T),w=ue(),E=le("span"),B=ce(e[5]),he(r,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(u,"class","BalanceModalCurrency"),he(a,"class","BalanceModalValue"),he(n,"class","BalanceModalRow"),he(f,"class","BalanceModalText"),he(b,"class","BalanceModalAmount"),he(E,"class","BalanceModalCurrency"),he(y,"class","BalanceModalValue"),he(p,"class","BalanceModalRow")},m(e,t){ae(e,n,t),ie(n,r),ie(r,o),ie(n,i),ie(n,a),ie(a,s),ie(s,l),ie(a,c),ie(a,u),ie(u,h),ae(e,d,t),ae(e,p,t),ie(p,f),ie(f,m),ie(p,g),ie(p,y),ie(y,b),ie(b,v),ie(y,w),ie(y,E),ie(E,B)},p(e,t){256&t[0]&&C!==(C=e[8]("cashBalance")+"")&&de(o,C),64&t[0]&&x!==(x=e[11](e[6][0]?.balanceAmount)+"")&&de(l,x),32&t[0]&&de(h,e[5]),256&t[0]&&M!==(M=e[8]("bonusBalance")+"")&&de(m,M),64&t[0]&&T!==(T=e[11](e[6][1]?.balanceAmount)+"")&&de(v,T),32&t[0]&&de(B,e[5])},d(e){e&&se(n),e&&se(d),e&&se(p)}}}function Mo(e){let n;function r(e){return"Casino"===e[1]||"Sports"===e[1]||""===e[1]?Ho:"All"==e[1]?To:void 0}let o=r(e),i=o&&o(e);return{c(){i&&i.c(),n=N()},m(e,t){i&&i.m(e,t),ae(e,n,t)},p(e,t){o===(o=r(e))&&i?i.p(e,t):(i&&i.d(1),(i=o&&o(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i&&i.d(e),e&&se(n)}}}function To(e){let n,r,o,i,k,O,a,s,l,N,c,u,D,h,d,p,U,G,f,m,g,j,y,z,V,b,v,w,W,X,Z,E,B,Y,K,C,J,Q,x,M,q,ee,te,T,H,ne,re,A,oe,_=e[8]("cashBalance")+"",S=e[7].Casino.Real+"",I=e[8]("cashBalance")+"",$=e[7].Sports.Real+"",L=e[8]("bonusBalance")+"",F=e[7].Casino.Bonus+"",P=e[8]("bonusBalance")+"",R=e[7].Sports.Bonus+"";return{c(){n=le("div"),r=le("div"),o=le("p"),i=ce(_),k=ce(" Casino"),O=ue(),a=le("p"),s=le("span"),l=ce(S),N=ue(),c=le("span"),u=ce(e[5]),D=ue(),h=le("div"),d=le("p"),p=ce(I),U=ce(" Sports"),G=ue(),f=le("p"),m=le("span"),g=ce($),j=ue(),y=le("span"),z=ce(e[5]),V=ue(),b=le("div"),v=le("div"),w=le("p"),W=ce(L),X=ce(" Casino"),Z=ue(),E=le("p"),B=le("span"),Y=ce(F),K=ue(),C=le("span"),J=ce(e[5]),Q=ue(),x=le("div"),M=le("p"),q=ce(P),ee=ce(" Sports"),te=ue(),T=le("p"),H=le("span"),ne=ce(R),re=ue(),A=le("span"),oe=ce(e[5]),he(o,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(c,"class","BalanceModalCurrency"),he(a,"class","BalanceModalValue"),he(r,"class","BalanceModalRowLine"),he(d,"class","BalanceModalText"),he(m,"class","BalanceModalAmount"),he(y,"class","BalanceModalCurrency"),he(f,"class","BalanceModalValue"),he(h,"class","BalanceModalRowLine"),he(n,"class","BalanceModalRowBoth"),he(w,"class","BalanceModalText"),he(B,"class","BalanceModalAmount"),he(C,"class","BalanceModalCurrency"),he(E,"class","BalanceModalValue"),he(v,"class","BalanceModalRowLine"),he(M,"class","BalanceModalText"),he(H,"class","BalanceModalAmount"),he(A,"class","BalanceModalCurrency"),he(T,"class","BalanceModalValue"),he(x,"class","BalanceModalRowLine"),he(b,"class","BalanceModalRowBoth")},m(e,t){ae(e,n,t),ie(n,r),ie(r,o),ie(o,i),ie(o,k),ie(r,O),ie(r,a),ie(a,s),ie(s,l),ie(a,N),ie(a,c),ie(c,u),ie(n,D),ie(n,h),ie(h,d),ie(d,p),ie(d,U),ie(h,G),ie(h,f),ie(f,m),ie(m,g),ie(f,j),ie(f,y),ie(y,z),ae(e,V,t),ae(e,b,t),ie(b,v),ie(v,w),ie(w,W),ie(w,X),ie(v,Z),ie(v,E),ie(E,B),ie(B,Y),ie(E,K),ie(E,C),ie(C,J),ie(b,Q),ie(b,x),ie(x,M),ie(M,q),ie(M,ee),ie(x,te),ie(x,T),ie(T,H),ie(H,ne),ie(T,re),ie(T,A),ie(A,oe)},p(e,t){256&t[0]&&_!==(_=e[8]("cashBalance")+"")&&de(i,_),128&t[0]&&S!==(S=e[7].Casino.Real+"")&&de(l,S),32&t[0]&&de(u,e[5]),256&t[0]&&I!==(I=e[8]("cashBalance")+"")&&de(p,I),128&t[0]&&$!==($=e[7].Sports.Real+"")&&de(g,$),32&t[0]&&de(z,e[5]),256&t[0]&&L!==(L=e[8]("bonusBalance")+"")&&de(W,L),128&t[0]&&F!==(F=e[7].Casino.Bonus+"")&&de(Y,F),32&t[0]&&de(J,e[5]),256&t[0]&&P!==(P=e[8]("bonusBalance")+"")&&de(q,P),128&t[0]&&R!==(R=e[7].Sports.Bonus+"")&&de(ne,R),32&t[0]&&de(oe,e[5])},d(e){e&&se(n),e&&se(V),e&&se(b)}}}function Ho(e){let n,r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,B,C=e[8]("cashBalance")+"",x=e[7][e[1]||"Casino"].Real+"",M=e[8]("bonusBalance")+"",T=e[7][e[1]||"Casino"].Bonus+"";return{c(){n=le("div"),r=le("p"),o=ce(C),i=ue(),a=le("p"),s=le("span"),l=ce(x),c=ue(),u=le("span"),h=ce(e[5]),d=ue(),p=le("div"),f=le("p"),m=ce(M),g=ue(),y=le("p"),b=le("span"),v=ce(T),w=ue(),E=le("span"),B=ce(e[5]),he(r,"class","BalanceModalText"),he(s,"class","BalanceModalAmount"),he(u,"class","BalanceModalCurrency"),he(a,"class","BalanceModalValue"),he(n,"class","BalanceModalRow"),he(f,"class","BalanceModalText"),he(b,"class","BalanceModalAmount"),he(E,"class","BalanceModalCurrency"),he(y,"class","BalanceModalValue"),he(p,"class","BalanceModalRow")},m(e,t){ae(e,n,t),ie(n,r),ie(r,o),ie(n,i),ie(n,a),ie(a,s),ie(s,l),ie(a,c),ie(a,u),ie(u,h),ae(e,d,t),ae(e,p,t),ie(p,f),ie(f,m),ie(p,g),ie(p,y),ie(y,b),ie(b,v),ie(y,w),ie(y,E),ie(E,B)},p(e,t){256&t[0]&&C!==(C=e[8]("cashBalance")+"")&&de(o,C),130&t[0]&&x!==(x=e[7][e[1]||"Casino"].Real+"")&&de(l,x),32&t[0]&&de(h,e[5]),256&t[0]&&M!==(M=e[8]("bonusBalance")+"")&&de(m,M),130&t[0]&&T!==(T=e[7][e[1]||"Casino"].Bonus+"")&&de(v,T),32&t[0]&&de(B,e[5])},d(e){e&&se(n),e&&se(d),e&&se(p)}}}function Ao(n){let r,o,i;return{c(){he(r=le("div"),"class","ShowBalanceModalOverlay")},m(e,t){ae(e,r,t),o||(i=R(r,"click",n[26]),o=!0)},p:v,d(e){e&&se(r),o=!1,i()}}}function _o(n){let r,o,i,a,s,l,c,u,h,d,p,f,m=n[3]&&Co(n),g=n[3]&&Ao(n);return{c(){r=le("div"),o=le("div"),i=le("p"),a=ce(n[4]),s=ue(),l=ce(n[5]),c=ue(),(u=le("span")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',h=ue(),m&&m.c(),d=ue(),g&&g.c(),this.c=v,he(i,"class","BalanceValue"),he(i,"part","BalanceValue"),he(o,"class","ShowBalance"),he(o,"part","ShowBalance")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(i,a),ie(i,s),ie(i,l),ie(i,c),ie(i,u),ie(o,h),m&&m.m(o,null),ie(r,d),g&&g.m(r,null),n[27](r),p||(f=R(i,"click",n[23]),p=!0)},p(e,t){16&t[0]&&de(a,e[4]),32&t[0]&&de(l,e[5]),e[3]?m?m.p(e,t):((m=Co(e)).c(),m.m(o,null)):m&&(m.d(1),m=null),e[3]?g?g.p(e,t):((g=Ao(e)).c(),g.m(r,null)):g&&(g.d(1),g=null)},i:v,o:v,d(e){e&&se(r),m&&m.d(),g&&g.d(),n[27](null),p=!1,f()}}}function So(t,e,a){let n;Q(t,kr,e=>a(8,n=e));let r,o,{userid:i=""}=e,{session:s=""}=e,{endpoint:l=""}=e,{lang:c="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,{customlocaleidentifier:p=""}=e,{gmversion:f=""}=e,{displaybalanceoption:m=""}=e,{currencyseparator:g=""}=e,{currencydecimal:y=""}=e,{currencyprecision:b=""}=e,v=!1,w="",E="",B=[],C="0",x=!1;const M={Casino:{Real:0,Bonus:0},Sports:{Real:0,Bonus:0}},T=(Object.keys(wo).forEach(e=>{vo(e,wo[e])}),e=>{switch(e){case"balance":a(3,v=!0);break;case"closebalance":a(3,v=!1)}}),H=(e,t)=>{e=new Eo.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});o&&o.close(),(o=e).addEventListener("message",e=>{C="0";try{let r=JSON.parse(e.data)["balanceChange"];if("gmcore"===f)a(6,B=B.map(e=>{var t,n;return r&&r[e.id]&&(t=e,n=r[e.id].afterAmount,e=Object.assign(Object.assign({},t),{balanceAmount:n})),C=(parseFloat(null==e?void 0:e.balanceAmount)+parseFloat(C)).toString(),e}));else if("gm16"===f)for(var t in r)a(7,M.Casino[t]=r[t].afterAmount,M),C=M.Casino[t]+C;a(4,w=S(Number(C)))}catch(e){console.log("Balance stream failed: ",e),H(`${l}/player/${i}/balance/updates`,s)}})},A=()=>{T("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},_=()=>{let e;return e=p.includes(c)?p:e},S=e=>{return p?new Intl.NumberFormat(_(),{useGrouping:!0}).format(e):(g&&y?Bo(e,{separator:g,decimal:y,symbol:"",precision:parseInt(b||"2",10)}):Bo(e,{separator:".",decimal:",",symbol:"",precision:parseInt(b||"2",10)})).format()},I=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&o.close()};return ee(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I),o&&o.close()})),t.$$set=e=>{"userid"in e&&a(12,i=e.userid),"session"in e&&a(13,s=e.session),"endpoint"in e&&a(14,l=e.endpoint),"lang"in e&&a(15,c=e.lang),"clientstyling"in e&&a(16,u=e.clientstyling),"clientstylingurl"in e&&a(17,h=e.clientstylingurl),"translationurl"in e&&a(18,d=e.translationurl),"customlocaleidentifier"in e&&a(19,p=e.customlocaleidentifier),"gmversion"in e&&a(0,f=e.gmversion),"displaybalanceoption"in e&&a(1,m=e.displaybalanceoption),"currencyseparator"in e&&a(20,g=e.currencyseparator),"currencydecimal"in e&&a(21,y=e.currencydecimal),"currencyprecision"in e&&a(22,b=e.currencyprecision)},t.$$.update=()=>{if(32768&t.$$.dirty[0]&&c&&_(),61441&t.$$.dirty[0]&&l&&i&&s&&c&&f){var e=c;switch(J.set(e),f){case"gmcore":(async e=>{try{x=!0;var t=await fetch(e,{method:"GET",headers:{"X-SessionID":s}}),n=await t.json();if(!t.ok)throw x=!1,new Error("Failed to fetch balance data !");x=!1,a(6,B=n.items),a(5,E=Object.keys(n.totalAmount)[0]),a(4,w=S(n.totalAmount[E]))}catch(e){x=!1,console.log("Balance error: ",e)}finally{x=!1}})(new URL(`${l}/player/${i}/account`));break;case"gm16":(async e=>{try{x=!0,"Casino"==m&&e.searchParams.append("productType","Casino"),"Sports"==m&&e.searchParams.append("productType","Sports"),"All"===m&&(e.searchParams.append("productType","Casino"),e.searchParams.append("productType","Sports"));var t=await fetch(e,{method:"GET",headers:{"X-SessionID":s}}),n=await t.json();if(!t.ok)throw x=!1,new Error("Failed to fetch balance data !");x=!1;for(const e of n.items){var{type:r,amount:o,productType:i}=e;"Casino"===m&&"Casino"===i?a(7,M.Casino[r]+=o,M):"Sports"===m&&"Sports"===i?a(7,M.Sports[r]+=o,M):"All"===m?a(7,M[i][r]+=o,M):""===m&&a(7,M.Casino[r]+=o,M)}a(5,E=Object.keys(n.totalAmount)[0]),a(4,w=S(n.totalAmount[E]))}catch(e){x=!1,console.log("Balance error: ",e)}finally{x=!1}})(new URL(`${l}/player/${i}/balance`));break;default:throw Error("Invalid apiversion attribute: "+f)}}if(28672&t.$$.dirty[0]&&l&&i&&s&&H(`${l}/player/${i}/balance/updates`,s),65540&t.$$.dirty[0]&&u&&r&&((e=document.createElement("style")).innerHTML=u,r.appendChild(e)),131076&t.$$.dirty[0]&&h&&r){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}262144&t.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{vo(e,t[e])})}).catch(e=>{console.log(e)})},[f,m,r,v,w,E,B,M,n,T,A,S,i,s,l,c,u,h,d,p,g,y,b,()=>T("balance"),()=>T("closebalance"),()=>A(),()=>T("closebalance"),function(e){K[e?"unshift":"push"](()=>{r=e,a(2,r)})}]}customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",class extends Ce{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{font-family:inherit}:host{font-family:inherit}button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-orange-500, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-orange-500, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A))}.BalanceModalRow{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRow:last-child{border-bottom:none}.BalanceModalRow .BalanceModalText{color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-header-contrast, var(--emfe-w-color-dunkel, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}',this.shadowRoot.appendChild(t),Be(this,{target:this.shadowRoot,props:U(this.attributes),customElement:!0},So,_o,T,{userid:12,session:13,endpoint:14,lang:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:0,displaybalanceoption:1,currencyseparator:20,currencydecimal:21,currencyprecision:22},null,[-1,-1]),e&&(e.target&&ae(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["userid","session","endpoint","lang","clientstyling","clientstylingurl","translationurl","customlocaleidentifier","gmversion","displaybalanceoption","currencyseparator","currencydecimal","currencyprecision"]}get userid(){return this.$$.ctx[12]}set userid(e){this.$$set({userid:e}),d()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),d()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),d()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),d()}get customlocaleidentifier(){return this.$$.ctx[19]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),d()}get gmversion(){return this.$$.ctx[0]}set gmversion(e){this.$$set({gmversion:e}),d()}get displaybalanceoption(){return this.$$.ctx[1]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),d()}get currencyseparator(){return this.$$.ctx[20]}set currencyseparator(e){this.$$set({currencyseparator:e}),d()}get currencydecimal(){return this.$$.ctx[21]}set currencydecimal(e){this.$$set({currencydecimal:e}),d()}get currencyprecision(){return this.$$.ctx[22]}set currencyprecision(e){this.$$set({currencyprecision:e}),d()}});var Io="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function $o(e,t,n){e=e.slice();return e[82]=t[n],e}function Lo(e,t,n){e=e.slice();return e[85]=t[n],e}function Fo(e,t,n){e=e.slice();return e[82]=t[n],e}function Po(e,t,n){e=e.slice();return e[85]=t[n],e}function Ro(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,e=n[29]("login")+"",B=n[29]("register")+"";function C(e){return e[23]?Do:No}let x=C(n),M=x(n),T=!n[17]&&Uo(n),H=1<n[26].length&&Go(n),A=n[20],_=[];for(let e=0;e<A.length;e+=1)_[e]=zo($o(n,A,e));return{c(){r=le("header"),o=le("div"),i=le("div"),M.c(),a=ue(),s=le("nav"),T&&T.c(),l=ue(),c=le("div"),u=le("div"),h=le("div"),d=ce(e),p=ue(),f=le("div"),m=ce(B),g=ue(),H&&H.c(),y=ue(),b=le("nav"),v=le("ul");for(let e=0;e<_.length;e+=1)_[e].c();he(i,"class","HeaderBranding"),he(s,"class","HeaderMainNav"),he(h,"class","Item ItemLogin"),he(h,"tabindex","0"),he(f,"class","Item ItemRegister"),he(f,"tabindex","0"),he(u,"class","HeaderItemsMenu"),he(c,"class","HeaderTopActions"),he(o,"class","HeaderContainer"),he(v,"class","HeaderItemsMenuSecondary"),he(b,"class","HeaderSecondaryNav"),he(r,"class","HeaderWrapper")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),M.m(i,null),ie(o,a),ie(o,s),T&&T.m(s,null),ie(o,l),ie(o,c),ie(c,u),ie(u,h),ie(h,d),ie(u,p),ie(u,f),ie(f,m),ie(u,g),H&&H.m(u,null),ie(r,y),ie(r,b),ie(b,v);for(let e=0;e<_.length;e+=1)_[e]&&_[e].m(v,null);n[61](r),w||(E=[R(i,"click",n[55]),R(h,"click",n[56]),R(f,"click",n[57])],w=!0)},p(t,n){if(x===(x=C(t))&&M?M.p(t,n):(M.d(1),(M=x(t))&&(M.c(),M.m(i,null))),t[17]?T&&(T.d(1),T=null):T?T.p(t,n):((T=Uo(t)).c(),T.m(s,null)),536870912&n[0]&&e!==(e=t[29]("login")+"")&&de(d,e),536870912&n[0]&&B!==(B=t[29]("register")+"")&&de(m,B),1<t[26].length?H?H.p(t,n):((H=Go(t)).c(),H.m(u,null)):H&&(H.d(1),H=null),1572864&n[0]|4&n[1]){let e;for(A=t[20],e=0;e<A.length;e+=1){const i=$o(t,A,e);_[e]?_[e].p(i,n):(_[e]=zo(i),_[e].c(),_[e].m(v,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=A.length}},d(e){e&&se(r),M.d(),T&&T.d(),H&&H.d(),S(_,e),n[61](null),w=!1,P(E)}}}function ko(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,B,C,x,M,T=n[29]("login")+"",H=n[29]("register")+"";function A(e){return e[23]?Wo:Vo}let _=A(n),S=_(n);return{c(){r=le("header"),o=le("div"),i=le("div"),a=t("svg"),s=t("defs"),l=t("style"),c=ce(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),u=t("g"),h=t("rect"),d=t("rect"),p=t("rect"),f=ue(),m=le("div"),S.c(),g=ue(),y=le("div"),b=le("div"),v=le("div"),w=ce(T),E=ue(),B=le("div"),C=ce(H),he(h,"class","a"),he(h,"width","18"),he(h,"height","2"),he(h,"transform","translate(14 13)"),he(d,"class","a"),he(d,"width","22"),he(d,"height","2"),he(d,"transform","translate(14 20)"),he(p,"class","a"),he(p,"width","22"),he(p,"height","2"),he(p,"transform","translate(14 27)"),he(u,"transform","translate(-14 -13)"),he(a,"xmlns","http://www.w3.org/2000/svg"),he(a,"width","22"),he(a,"height","16"),he(a,"viewBox","0 0 22 16"),he(i,"class","HeaderMobileMainNav"),he(m,"class","HeaderBranding"),he(v,"class","Item ItemLogin"),he(B,"class","Item ItemRegister"),he(b,"class","HeaderItemsMenu"),he(y,"class","HeaderTopActions"),he(o,"class","HeaderContainer"),he(r,"class","HeaderWrapper HeaderMobileWrapper")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(i,a),ie(a,s),ie(s,l),ie(l,c),ie(a,u),ie(u,h),ie(u,d),ie(u,p),ie(o,f),ie(o,m),S.m(m,null),ie(o,g),ie(o,y),ie(y,b),ie(b,v),ie(v,w),ie(b,E),ie(b,B),ie(B,C),n[54](r),x||(M=[R(a,"click",n[50]),R(m,"click",n[51]),R(v,"click",n[52]),R(B,"click",n[53])],x=!0)},p(e,t){_===(_=A(e))&&S?S.p(e,t):(S.d(1),(S=_(e))&&(S.c(),S.m(m,null))),536870912&t[0]&&T!==(T=e[29]("login")+"")&&de(w,T),536870912&t[0]&&H!==(H=e[29]("register")+"")&&de(C,H)},d(e){e&&se(r),S.d(),n[54](null),x=!1,P(M)}}}function Oo(e){let n;function r(e){return e[24]?Zo:Xo}let o=r(e),i=o(e);return{c(){i.c(),n=N()},m(e,t){i.m(e,t),ae(e,n,t)},p(e,t){o===(o=r(e))&&i?i.p(e,t):(i.d(1),(i=o(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&se(n)}}}function No(e){let n,t;return{c(){m((n=le("img")).src,t=Io)||he(n,"src",t),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p:v,d(e){e&&se(n)}}}function Do(e){let n,r;return{c(){m((n=le("img")).src,r=e[28])||he(n,"src",r),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p(e,t){268435456&t[0]&&!m(n.src,r=e[28])&&he(n,"src",r)},d(e){e&&se(n)}}}function Uo(n){let r,o,i;return{c(){I(r=le("casino-slider"),"class","HeaderItemsMenu"),I(r,"part","HeaderItemsMenu"),I(r,"identity",ii),I(r,"isprimarymenu","true"),I(r,"actionevent",n[9]),I(r,"activeindex",n[18]),I(r,"location","headerMain"),I(r,"endpoint",n[2]),I(r,"lang",n[3]),I(r,"clientstyling",n[11]),I(r,"clientstylingurl",n[12])},m(e,t){ae(e,r,t),o||(i=_(n[32].call(null,r)),o=!0)},p(e,t){512&t[0]&&I(r,"actionevent",e[9]),262144&t[0]&&I(r,"activeindex",e[18]),4&t[0]&&I(r,"endpoint",e[2]),8&t[0]&&I(r,"lang",e[3]),2048&t[0]&&I(r,"clientstyling",e[11]),4096&t[0]&&I(r,"clientstylingurl",e[12])},d(e){e&&se(r),o=!1,i()}}}function Go(n){let o,r,i,a=n[26],s=[];for(let e=0;e<a.length;e+=1)s[e]=jo(Lo(n,a,e));return{c(){o=le("select");for(let e=0;e<s.length;e+=1)s[e].c();he(o,"class","Item ItemLanguage"),void 0===n[21]&&x(()=>n[58].call(o))},m(e,t){ae(e,o,t);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(o,null);D(o,n[21],!0),r||(i=[R(o,"change",n[58]),R(o,"change",n[59])],r=!0)},p(t,n){if(67108864&n[0]){let e;for(a=t[26],e=0;e<a.length;e+=1){var r=Lo(t,a,e);s[e]?s[e].p(r,n):(s[e]=jo(r),s[e].c(),s[e].m(o,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=a.length}69206016&n[0]&&D(o,t[21])},d(e){e&&se(o),S(s,e),r=!1,P(i)}}}function jo(e){let n,r,o,i=e[85]+"";return{c(){n=le("option"),r=ce(i),n.__value=o=e[85],n.value=n.__value},m(e,t){ae(e,n,t),ie(n,r)},p(e,t){67108864&t[0]&&i!==(i=e[85]+"")&&de(r,i),67108864&t[0]&&o!==(o=e[85])&&(n.__value=o,n.value=n.__value)},d(e){e&&se(n)}}}function zo(n){let r,o,i,a,s,l,c,u=n[82].label+"";function h(){return n[60](n[82])}return{c(){r=le("li"),o=le("button"),i=ce(u),a=ue(),he(r,"class",s="ItemSecondary "+(-1<n[19]?.toString().indexOf("$")?n[19]?.split("$").pop()==n[82].id.split("$").pop()?"active":"":n[19]==n[82].id?"active":"")),he(r,"part","ItemSecondary")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(r,a),l||(c=R(o,"click",h),l=!0)},p(e,t){n=e,1048576&t[0]&&u!==(u=n[82].label+"")&&de(i,u),1572864&t[0]&&s!==(s="ItemSecondary "+(-1<n[19]?.toString().indexOf("$")?n[19]?.split("$").pop()==n[82].id.split("$").pop()?"active":"":n[19]==n[82].id?"active":""))&&he(r,"class",s)},d(e){e&&se(r),l=!1,c()}}}function Vo(e){let n,t;return{c(){m((n=le("img")).src,t=Io)||he(n,"src",t),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p:v,d(e){e&&se(n)}}}function Wo(e){let n,r;return{c(){m((n=le("img")).src,r=e[28])||he(n,"src",r),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p(e,t){268435456&t[0]&&!m(n.src,r=e[28])&&he(n,"src",r)},d(e){e&&se(n)}}}function Xo(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v,w,E,B,e=n[29]("deposit")+"";function C(e){return e[23]?Ko:Yo}let x=C(n),M=x(n),T=!n[17]&&Jo(n),H=1<n[26].length&&Qo(n),A=n[20],_=[];for(let e=0;e<A.length;e+=1)_[e]=ei(Fo(n,A,e));return{c(){r=le("header"),o=le("div"),i=le("div"),M.c(),a=ue(),s=le("nav"),T&&T.c(),l=ue(),c=le("div"),u=le("div"),h=le("player-account-balance-modal"),d=ue(),p=le("div"),f=ce(e),m=ue(),(g=le("div")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429"><defs><style>.a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n </style></defs><g transform="translate(-8 -4)"><path class="a" d="M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z" transform="translate(0 0)"></path></g></svg>',y=ue(),H&&H.c(),b=ue(),v=le("nav"),w=le("ul");for(let e=0;e<_.length;e+=1)_[e].c();he(i,"class","HeaderBranding"),he(s,"class","HeaderMainNav"),I(h,"session",n[0]),I(h,"userid",n[1]),I(h,"endpoint",n[2]),I(h,"lang",n[3]),I(h,"clientstyling",n[11]),I(h,"clientstylingurl",n[12]),I(h,"customlocaleidentifier",n[6]),I(h,"gmversion",n[7]),I(h,"displaybalanceoption",n[8]),I(h,"currencyseparator",n[13]),I(h,"currencydecimal",n[14]),I(h,"currencyprecision",n[15]),he(p,"class","Item ItemDeposit"),he(p,"part","Item ItemDeposit"),he(g,"class","Item ItemAccount"),he(g,"part","Item ItemAccount"),he(u,"class","HeaderItemsMenu PrimaryMenu"),he(c,"class","HeaderTopActions"),he(o,"class","HeaderContainer"),he(w,"class","HeaderItemsMenuSecondary"),he(v,"class","HeaderSecondaryNav"),he(r,"class","HeaderWrapper")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),M.m(i,null),ie(o,a),ie(o,s),T&&T.m(s,null),ie(o,l),ie(o,c),ie(c,u),ie(u,h),ie(u,d),ie(u,p),ie(p,f),ie(u,m),ie(u,g),ie(u,y),H&&H.m(u,null),ie(r,b),ie(r,v),ie(v,w);for(let e=0;e<_.length;e+=1)_[e]&&_[e].m(w,null);n[49](r),E||(B=[R(i,"click",n[43]),R(p,"click",n[44]),R(g,"click",n[45])],E=!0)},p(t,n){if(x===(x=C(t))&&M?M.p(t,n):(M.d(1),(M=x(t))&&(M.c(),M.m(i,null))),t[17]?T&&(T.d(1),T=null):T?T.p(t,n):((T=Jo(t)).c(),T.m(s,null)),1&n[0]&&I(h,"session",t[0]),2&n[0]&&I(h,"userid",t[1]),4&n[0]&&I(h,"endpoint",t[2]),8&n[0]&&I(h,"lang",t[3]),2048&n[0]&&I(h,"clientstyling",t[11]),4096&n[0]&&I(h,"clientstylingurl",t[12]),64&n[0]&&I(h,"customlocaleidentifier",t[6]),128&n[0]&&I(h,"gmversion",t[7]),256&n[0]&&I(h,"displaybalanceoption",t[8]),8192&n[0]&&I(h,"currencyseparator",t[13]),16384&n[0]&&I(h,"currencydecimal",t[14]),32768&n[0]&&I(h,"currencyprecision",t[15]),536870912&n[0]&&e!==(e=t[29]("deposit")+"")&&de(f,e),1<t[26].length?H?H.p(t,n):((H=Qo(t)).c(),H.m(u,null)):H&&(H.d(1),H=null),1572864&n[0]|4&n[1]){let e;for(A=t[20],e=0;e<A.length;e+=1){const i=Fo(t,A,e);_[e]?_[e].p(i,n):(_[e]=ei(i),_[e].c(),_[e].m(w,null))}for(;e<_.length;e+=1)_[e].d(1);_.length=A.length}},d(e){e&&se(r),M.d(),T&&T.d(),H&&H.d(),S(_,e),n[49](null),E=!1,P(B)}}}function Zo(n){let r,o,i,a,s,l,c,u,h,d,p,f,m,g,y,b,v=n[29]("deposit")+"",w=!n[27]&&ti(n);function E(e){return e[23]?ri:ni}let B=E(n),C=B(n);return{c(){r=le("header"),o=le("div"),i=le("div"),w&&w.c(),a=ue(),s=le("div"),C.c(),l=ue(),c=le("div"),u=le("div"),h=le("player-account-balance-modal"),d=ue(),p=le("div"),f=ce(v),m=ue(),(g=le("div")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429"><defs><style>.a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n </style></defs><g transform="translate(-8 -4)"><path class="a" d="M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z" transform="translate(0 0)"></path></g></svg>',he(i,"class","HeaderMobileMainNav"),he(s,"class","HeaderBranding"),I(h,"session",n[0]),I(h,"userid",n[1]),I(h,"endpoint",n[2]),I(h,"lang",n[3]),I(h,"clientstyling",n[11]),I(h,"clientstylingurl",n[12]),I(h,"customlocaleidentifier",n[6]),I(h,"gmversion",n[7]),I(h,"displaybalanceoption",n[8]),I(h,"currencyseparator",n[13]),I(h,"currencydecimal",n[14]),I(h,"currencyprecision",n[15]),he(p,"class","Item ItemDeposit"),he(p,"part","Item ItemDeposit"),he(g,"class","Item ItemAccount"),he(g,"part","Item ItemAccount"),he(u,"class","HeaderItemsMenu PrimaryMenu"),he(u,"part","HeaderItemsMenu PrimaryMenu"),he(c,"class","HeaderTopActions"),he(c,"part","HeaderTopActions"),he(o,"class","HeaderContainer"),he(r,"class","HeaderWrapper HeaderMobileWrapper")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),w&&w.m(i,null),ie(o,a),ie(o,s),C.m(s,null),ie(o,l),ie(o,c),ie(c,u),ie(u,h),ie(u,d),ie(u,p),ie(p,f),ie(u,m),ie(u,g),n[42](r),y||(b=[R(s,"click",n[39]),R(p,"click",n[40]),R(g,"click",n[41])],y=!0)},p(e,t){e[27]?w&&(w.d(1),w=null):w?w.p(e,t):((w=ti(e)).c(),w.m(i,null)),B===(B=E(e))&&C?C.p(e,t):(C.d(1),(C=B(e))&&(C.c(),C.m(s,null))),1&t[0]&&I(h,"session",e[0]),2&t[0]&&I(h,"userid",e[1]),4&t[0]&&I(h,"endpoint",e[2]),8&t[0]&&I(h,"lang",e[3]),2048&t[0]&&I(h,"clientstyling",e[11]),4096&t[0]&&I(h,"clientstylingurl",e[12]),64&t[0]&&I(h,"customlocaleidentifier",e[6]),128&t[0]&&I(h,"gmversion",e[7]),256&t[0]&&I(h,"displaybalanceoption",e[8]),8192&t[0]&&I(h,"currencyseparator",e[13]),16384&t[0]&&I(h,"currencydecimal",e[14]),32768&t[0]&&I(h,"currencyprecision",e[15]),536870912&t[0]&&v!==(v=e[29]("deposit")+"")&&de(f,v)},d(e){e&&se(r),w&&w.d(),C.d(),n[42](null),y=!1,P(b)}}}function Yo(e){let n,t;return{c(){m((n=le("img")).src,t=Io)||he(n,"src",t),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p:v,d(e){e&&se(n)}}}function Ko(e){let n,r;return{c(){m((n=le("img")).src,r=e[28])||he(n,"src",r),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p(e,t){268435456&t[0]&&!m(n.src,r=e[28])&&he(n,"src",r)},d(e){e&&se(n)}}}function Jo(n){let r,o,i;return{c(){I(r=le("casino-slider"),"class","HeaderItemsMenu"),I(r,"part","HeaderItemsMenu"),I(r,"identity",ii),I(r,"isprimarymenu","true"),I(r,"actionevent",n[9]),I(r,"activeindex",n[18]),I(r,"endpoint",n[2]),I(r,"lang",n[3]),I(r,"location","headerMain"),I(r,"showsubgroups",n[10]),I(r,"clientstyling",n[11]),I(r,"clientstylingurl",n[12])},m(e,t){ae(e,r,t),o||(i=_(n[32].call(null,r)),o=!0)},p(e,t){512&t[0]&&I(r,"actionevent",e[9]),262144&t[0]&&I(r,"activeindex",e[18]),4&t[0]&&I(r,"endpoint",e[2]),8&t[0]&&I(r,"lang",e[3]),1024&t[0]&&I(r,"showsubgroups",e[10]),2048&t[0]&&I(r,"clientstyling",e[11]),4096&t[0]&&I(r,"clientstylingurl",e[12])},d(e){e&&se(r),o=!1,i()}}}function Qo(n){let o,r,i,a=n[26],s=[];for(let e=0;e<a.length;e+=1)s[e]=qo(Po(n,a,e));return{c(){o=le("select");for(let e=0;e<s.length;e+=1)s[e].c();he(o,"class","Item ItemLanguage"),void 0===n[21]&&x(()=>n[46].call(o))},m(e,t){ae(e,o,t);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(o,null);D(o,n[21],!0),r||(i=[R(o,"change",n[46]),R(o,"change",n[47])],r=!0)},p(t,n){if(67108864&n[0]){let e;for(a=t[26],e=0;e<a.length;e+=1){var r=Po(t,a,e);s[e]?s[e].p(r,n):(s[e]=qo(r),s[e].c(),s[e].m(o,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=a.length}69206016&n[0]&&D(o,t[21])},d(e){e&&se(o),S(s,e),r=!1,P(i)}}}function qo(e){let n,r,o,i=e[85]+"";return{c(){n=le("option"),r=ce(i),n.__value=o=e[85],n.value=n.__value,n.selected=!0},m(e,t){ae(e,n,t),ie(n,r)},p(e,t){67108864&t[0]&&i!==(i=e[85]+"")&&de(r,i),67108864&t[0]&&o!==(o=e[85])&&(n.__value=o,n.value=n.__value)},d(e){e&&se(n)}}}function ei(n){let r,o,i,a,s,l,c,u=n[82].label+"";function h(){return n[48](n[82])}return{c(){r=le("li"),o=le("button"),i=ce(u),a=ue(),he(r,"class",s="ItemSecondary "+(-1<n[19]?.toString().indexOf("$")?n[19]?.split("$").pop()==n[82].id.split("$").pop()?"active":"":n[19]==n[82].id?"active":"")),he(r,"part","ItemSecondary")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(r,a),l||(c=R(o,"click",h),l=!0)},p(e,t){n=e,1048576&t[0]&&u!==(u=n[82].label+"")&&de(i,u),1572864&t[0]&&s!==(s="ItemSecondary "+(-1<n[19]?.toString().indexOf("$")?n[19]?.split("$").pop()==n[82].id.split("$").pop()?"active":"":n[19]==n[82].id?"active":""))&&he(r,"class",s)},d(e){e&&se(r),l=!1,c()}}}function ti(n){let r,o,i,a,s,l,c,u,h,d;return{c(){r=t("svg"),o=t("defs"),i=t("style"),a=ce(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),s=t("g"),l=t("rect"),c=t("rect"),u=t("rect"),he(l,"class","a"),he(l,"width","18"),he(l,"height","2"),he(l,"transform","translate(14 13)"),he(c,"class","a"),he(c,"width","22"),he(c,"height","2"),he(c,"transform","translate(14 20)"),he(u,"class","a"),he(u,"width","22"),he(u,"height","2"),he(u,"transform","translate(14 27)"),he(s,"transform","translate(-14 -13)"),he(r,"xmlns","http://www.w3.org/2000/svg"),he(r,"width","22"),he(r,"height","16"),he(r,"viewBox","0 0 22 16")},m(e,t){ae(e,r,t),ie(r,o),ie(o,i),ie(i,a),ie(r,s),ie(s,l),ie(s,c),ie(s,u),h||(d=R(r,"click",n[38]),h=!0)},p:v,d(e){e&&se(r),h=!1,d()}}}function ni(e){let n,t;return{c(){m((n=le("img")).src,t=Io)||he(n,"src",t),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p:v,d(e){e&&se(n)}}}function ri(e){let n,r;return{c(){m((n=le("img")).src,r=e[28])||he(n,"src",r),he(n,"alt","Logo")},m(e,t){ae(e,n,t)},p(e,t){268435456&t[0]&&!m(n.src,r=e[28])&&he(n,"src",r)},d(e){e&&se(n)}}}function oi(e){let n,r;function o(e){return e[25]?Oo:e[24]?ko:Ro}let i=o(e),a=i(e);return{c(){a.c(),n=ue(),r=le("casino-hamburger-menu"),this.c=v,I(r,"menuitemsurl",e[22]),I(r,"activecategory",e[5]),I(r,"lang",e[3]),I(r,"languageslist",e[4]),I(r,"clientstyling",e[11]),I(r,"clientstylingurl",e[12])},m(e,t){a.m(e,t),ae(e,n,t),ae(e,r,t)},p(e,t){i===(i=o(e))&&a?a.p(e,t):(a.d(1),(a=i(e))&&(a.c(),a.m(n.parentNode,n))),4194304&t[0]&&I(r,"menuitemsurl",e[22]),32&t[0]&&I(r,"activecategory",e[5]),8&t[0]&&I(r,"lang",e[3]),16&t[0]&&I(r,"languageslist",e[4]),2048&t[0]&&I(r,"clientstyling",e[11]),4096&t[0]&&I(r,"clientstylingurl",e[12])},i:v,o:v,d(e){a.d(e),e&&se(n),e&&se(r)}}}let ii="HeaderMenu";function ai(n,e,r){let t;Q(n,kr,e=>r(29,t=e));let o,i,a,{session:s=""}=e,{userid:l=""}=e,{endpoint:c=""}=e,{cmsendpoint:u=""}=e,{cmsenv:h="stage"}=e,{lang:d="en"}=e,{languageslist:p="en, ro"}=e,{activecategory:f=""}=e,{translationurl:m=""}=e,{customlocaleidentifier:g=""}=e,{gmversion:y=""}=e,{displaybalanceoption:R=""}=e,{actionevent:b=""}=e,{userroles:v=""}=e,{showsubgroups:k="false"}=e,{clientstyling:w=""}=e,{clientstylingurl:E=""}=e,{currencyseparator:O=""}=e,{currencydecimal:N=""}=e,{currencyprecision:D=""}=e;var U,G;({withLocale:U,translations:G}={withLocale:"en",translations:{}}),J.subscribe(e=>{null==e&&(gr.set(G),J.set(U))}),Object.keys(Ur).forEach(e=>{Dr(e,Ur[e])});let B,C,j,x=[],M=[],T="",H=!0,A=!1,z=!1,_=window.navigator.userAgent,S=!1,I=[],$=!1,V="";const L=e=>{switch(e){case"login":window.postMessage({type:"OpenLoginRegisterModal",transition:"Login"},window.location.href),"function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"HeaderController"});break;case"register":window.postMessage({type:"OpenLoginRegisterModal",transition:"Register"},window.location.href),"function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"HeaderController"});break;case"lobby":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"myaccount":window.postMessage({type:"PlayerAccountMenuActive",isMobile:Or(_)},window.location.href);break;case"deposit":window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"HeaderController"});break;case"language":window.postMessage({type:"LanguageChanged",selectedLanguage:T},window.location.href)}},F=()=>{r(27,$=!0),window.postMessage({type:"OpenHamburgerMenuModal"},window.location.href)},W=e=>{if(e.data)switch(e.data.type){case"UserSessionID":e.data.userid,e.data.session,r(25,S=!0);break;case"CloseHamburgerMenu":window.postMessage({type:"EnableScroll"},window.location.href),e.data.showhamburger&&r(27,$=!1);break;case"LogoutSuccessfull":r(25,S=!1);break;case"LanguageChanged":X(),Y(C)}},X=()=>{C=new URL(`${u}/${T.toLowerCase()}/menu`),r(22,B=new URL(`${u}/${T.toLowerCase()}/hamburger-menu`)),j=new URL(`${u}/${T.toLowerCase()}/op-options/style`);var e=Nr(_);C.searchParams.append("env",h),C.searchParams.append("language",T.toLowerCase()),C.searchParams.append("userRoles",v),e&&("PC"===e?(B.searchParams.append("device","dk"),C.searchParams.append("device","dk")):(B.searchParams.append("device","mtWeb"),C.searchParams.append("device","mtWeb"))),B.searchParams.append("env",h),B.searchParams.append("language",T.toLowerCase()),B.searchParams.append("userRoles",v)},Z=(t,e)=>{let n=e.find(e=>-1<t.indexOf("/sport")?-1<e.path.indexOf(t):!!e.path.includes(t)||void 0);return(n=n||e.find(e=>-1<e.path.split("/").indexOf(t.split("/")[1])))?n.id:-1},Y=e=>(r(17,H=!0),new Promise((t,n)=>{fetch(e).then(e=>e.json()).then(e=>{x=e.desktop.primary,r(20,M=e.desktop.secondary),r(17,H=!1),t(e)},e=>{r(17,H=!1),console.error(e),n(e)})})),P=e=>{window.postMessage({type:b,itemId:e.id,item:e,externalLink:e.externalLink||!1,target:(null==(e=e.attrs)?void 0:e.target)||null},window.location.href)};return ee(async()=>(window.addEventListener("message",W,!1),Or(_)&&r(24,z=!0),()=>{window.removeEventListener("message",W)})),n.$$set=e=>{"session"in e&&r(0,s=e.session),"userid"in e&&r(1,l=e.userid),"endpoint"in e&&r(2,c=e.endpoint),"cmsendpoint"in e&&r(34,u=e.cmsendpoint),"cmsenv"in e&&r(35,h=e.cmsenv),"lang"in e&&r(3,d=e.lang),"languageslist"in e&&r(4,p=e.languageslist),"activecategory"in e&&r(5,f=e.activecategory),"translationurl"in e&&r(36,m=e.translationurl),"customlocaleidentifier"in e&&r(6,g=e.customlocaleidentifier),"gmversion"in e&&r(7,y=e.gmversion),"displaybalanceoption"in e&&r(8,R=e.displaybalanceoption),"actionevent"in e&&r(9,b=e.actionevent),"userroles"in e&&r(37,v=e.userroles),"showsubgroups"in e&&r(10,k=e.showsubgroups),"clientstyling"in e&&r(11,w=e.clientstyling),"clientstylingurl"in e&&r(12,E=e.clientstylingurl),"currencyseparator"in e&&r(13,O=e.currencyseparator),"currencydecimal"in e&&r(14,N=e.currencydecimal),"currencyprecision"in e&&r(15,D=e.currencyprecision)},n.$$.update=()=>{if(131104&n.$$.dirty[0]&&f&&!H&&(r(18,o=Z(f,x)),r(19,i=Z(f,M))),1&n.$$.dirty[0]&&s&&r(25,S=!0),8&n.$$.dirty[0]&&d&&(t=d,J.set(t)),24&n.$$.dirty[0]|72&n.$$.dirty[1]&&u&&d&&p&&v&&(r(26,I=p.replace(/ /g,"").split(",")),r(26,I=I.map(e=>e.toUpperCase())),r(21,T=d.toUpperCase()),X(),e=j,r(23,A=!1),new Promise((t,n)=>{fetch(e).then(e=>e.json()).then(e=>{0<e.logoUrl.length&&("null"!=e.logoUrl||"false"!=e.logoUrl)?(r(28,V=e.logoUrl),r(23,A=!0)):r(23,A=!1),t(e)},e=>{r(23,A=!1),console.error(e),n(e)})}),setTimeout(()=>{Y(C)})),32&n.$$.dirty[1]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Dr(e,t[e])})}).catch(e=>{console.log(e)}),67584&n.$$.dirty[0]&&w&&a&&((t=document.createElement("style")).innerHTML=w,a.appendChild(t)),69632&n.$$.dirty[0]&&E&&a){let e=new URL(E),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{a.appendChild(t)},1)})}var e,t},[s,l,c,d,p,f,g,y,R,b,k,w,E,O,N,D,a,H,o,i,M,T,B,A,z,S,I,$,V,t,L,F,()=>{window.postMessage({type:"SliderData",identity:ii,data:x},window.location.href)},P,u,h,m,v,()=>F(),()=>L("lobby"),()=>L("deposit"),()=>L("myaccount"),function(e){K[e?"unshift":"push"](()=>{a=e,r(16,a)})},()=>L("lobby"),()=>L("deposit"),()=>L("myaccount"),function(){T=q(this),r(21,T),r(26,I)},()=>L("language"),e=>P(e),function(e){K[e?"unshift":"push"](()=>{a=e,r(16,a)})},()=>F(),()=>L("lobby"),()=>L("login"),()=>L("register"),function(e){K[e?"unshift":"push"](()=>{a=e,r(16,a)})},()=>L("lobby"),()=>L("login"),()=>L("register"),function(){T=q(this),r(21,T),r(26,I)},()=>L("language"),e=>P(e),function(e){K[e?"unshift":"push"](()=>{a=e,r(16,a)})}]}class si extends Ce{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{font-family:inherit}:host{font-family:inherit}button{font-family:inherit}.HeaderWrapper{background:var(--emfe-w-header-color-menu-bg, var(--emfe-w-color-darkest-blue, #050518))}.HeaderContainer{max-width:1300px;display:flex;flex-direction:row;align-items:center;height:84px;margin:0 auto}.HeaderMobileMainNav{display:flex;align-items:center}.HeaderBranding{width:140px;margin-right:15px;cursor:pointer}.HeaderBranding img{width:100%}@media only screen and (max-width: 360px){.HeaderBranding{margin-right:0}}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:var(--emfe-w-header-color-secondary-menu-bg, var(--emfe-w-color-darkest-blue, #050518));border-top:1px solid var(--emfe-w-color-gray-300, #58586B)}.HeaderItemsMenu{display:flex;align-content:flex-start;list-style:none;text-transform:uppercase;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));font-size:16px;align-items:center}.HeaderItemsMenu .Item{padding:0 12px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.ItemLogin{border-radius:5px;background:transparent;font-size:14px;font-weight:600;border:solid 1px var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));height:44px;text-align:center;line-height:44px;margin-right:10px;cursor:pointer}.ItemRegister,.ItemDeposit{border-radius:5px;background:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-size:14px;height:44px;text-align:center;line-height:44px;cursor:pointer}.ItemDeposit{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.ItemLanguage{height:44px;width:90px;text-align:center;line-height:44px;background:transparent;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));border:none;cursor:pointer;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-header-color-menu-bg, var(--emfe-w-color-darkest-blue, #050518));background-position:calc(100% - 0.75rem) center}.ItemLanguage option{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF))}.ItemAccount{cursor:pointer}.ItemAccount svg{width:20px;height:20px}.HeaderItemsMenuSecondary{display:flex;flex-direction:row;align-content:flex-start;align-items:center;height:60px;list-style:none;text-transform:uppercase;color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;max-width:1280px;margin:0 auto;overflow-y:hidden;overflow-x:auto;padding:0}.HeaderItemsMenuSecondary .ItemSecondary{width:auto;height:100%;display:flex;justify-content:center;padding:0 15px;font-weight:600;transition-duration:0.15s}.HeaderItemsMenuSecondary .ItemSecondary button{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none;border:none;background:none;font-size:14px;font-weight:600;text-transform:uppercase;cursor:pointer}.HeaderItemsMenuSecondary .ItemSecondary button:hover{color:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.HeaderItemsMenuSecondary .ItemSecondary button:focus{color:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.HeaderItemsMenuSecondary .ItemSecondary button:visited{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF))}.HeaderItemsMenuSecondary .ItemSecondary button:focus-visible{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));outline:none}.HeaderItemsMenuSecondary .ItemSecondary.active{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.HeaderMobileWrapper .HeaderContainer{height:55px;padding:0 15px;gap:10px}@media only screen and (max-width: 360px){.HeaderMobileWrapper .HeaderContainer{padding:0 5px}}.HeaderMobileWrapper .HeaderBranding{width:110px;display:flex;align-items:center}.HeaderMobileWrapper .HeaderItemsMenu .Item{padding:0 10px;display:block;width:unset}.HeaderMobileWrapper .HeaderItemsMenu .ItemAccount{padding:0}.HeaderMobileWrapper .ItemRegister,.HeaderMobileWrapper .ItemDeposit,.HeaderMobileWrapper .ItemLogin{height:30px;line-height:30px;font-size:12px}.HeaderMobileWrapper .ItemLogin{margin-right:10px}",this.shadowRoot.appendChild(t),Be(this,{target:this.shadowRoot,props:U(this.attributes),customElement:!0},ai,oi,T,{session:0,userid:1,endpoint:2,cmsendpoint:34,cmsenv:35,lang:3,languageslist:4,activecategory:5,translationurl:36,customlocaleidentifier:6,gmversion:7,displaybalanceoption:8,actionevent:9,userroles:37,showsubgroups:10,clientstyling:11,clientstylingurl:12,currencyseparator:13,currencydecimal:14,currencyprecision:15},null,[-1,-1,-1]),e&&(e.target&&ae(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","endpoint","cmsendpoint","cmsenv","lang","languageslist","activecategory","translationurl","customlocaleidentifier","gmversion","displaybalanceoption","actionevent","userroles","showsubgroups","clientstyling","clientstylingurl","currencyseparator","currencydecimal","currencyprecision"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),d()}get cmsendpoint(){return this.$$.ctx[34]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),d()}get cmsenv(){return this.$$.ctx[35]}set cmsenv(e){this.$$set({cmsenv:e}),d()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),d()}get languageslist(){return this.$$.ctx[4]}set languageslist(e){this.$$set({languageslist:e}),d()}get activecategory(){return this.$$.ctx[5]}set activecategory(e){this.$$set({activecategory:e}),d()}get translationurl(){return this.$$.ctx[36]}set translationurl(e){this.$$set({translationurl:e}),d()}get customlocaleidentifier(){return this.$$.ctx[6]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),d()}get gmversion(){return this.$$.ctx[7]}set gmversion(e){this.$$set({gmversion:e}),d()}get displaybalanceoption(){return this.$$.ctx[8]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),d()}get actionevent(){return this.$$.ctx[9]}set actionevent(e){this.$$set({actionevent:e}),d()}get userroles(){return this.$$.ctx[37]}set userroles(e){this.$$set({userroles:e}),d()}get showsubgroups(){return this.$$.ctx[10]}set showsubgroups(e){this.$$set({showsubgroups:e}),d()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get currencyseparator(){return this.$$.ctx[13]}set currencyseparator(e){this.$$set({currencyseparator:e}),d()}get currencydecimal(){return this.$$.ctx[14]}set currencydecimal(e){this.$$set({currencydecimal:e}),d()}get currencyprecision(){return this.$$.ctx[15]}set currencyprecision(e){this.$$set({currencyprecision:e}),d()}}return customElements.get("casino-header-controller")||customElements.define("casino-header-controller",si),si});
4
4
  //# sourceMappingURL=casino-header-controller.js.map