@everymatrix/casino-header-controller 0.0.291 → 0.0.294

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +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 b(){}const m=e=>e;function u(e){return e()}function d(){return Object.create(null)}function J(e){e.forEach(u)}function g(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function p(e,...t){if(null==e)return b;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function $(e,t,n){e.$$.on_destroy.push(p(t,n))}function i(e){return e&&g(e.destroy)?e.destroy:b}var e="undefined"!=typeof window;let y=e?()=>window.performance.now():()=>Date.now(),v=e?e=>requestAnimationFrame(e):b;const w=new Set;function E(t){w.forEach(e=>{e.c(t)||(w.delete(e),e.f())}),0!==w.size&&v(E)}function ee(e,t){e.appendChild(t)}function te(e,t,n){e.insertBefore(t,n||null)}function ne(e){e.parentNode.removeChild(e)}function R(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function re(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function oe(e){return document.createTextNode(e)}function ae(){return oe(" ")}function _(){return oe("")}function ie(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function se(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function P(e,t,n){t in e?e[t]=n:se(e,t,n)}function le(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function F(t,n){for(let e=0;e<t.options.length;e+=1){const r=t.options[e];if(r.__value===n)return r.selected=!0,0}}function N(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}function h(e,t,n){e.classList[n?"add":"remove"](t)}function r(e){const t={};for(const n of e)t[n.name]=n.value;return t}const M=new Set;let f,T=0;function x(e,t,n,r,o,a,i,s=0){var l=16.666/r;let c="{\n";for(let e=0;e<=1;e+=l){const r=t+(n-t)*a(e);c+=100*e+`%{${i(r,1-r)}}\n`}const u=c+`100% {${i(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(u)}_${s}`,p=e.ownerDocument;M.add(p);const h=p.__svelte_stylesheet||(p.__svelte_stylesheet=p.head.appendChild(re("style")).sheet),f=p.__svelte_rules||(p.__svelte_rules={});f[d]||(f[d]=!0,h.insertRule(`@keyframes ${d} ${u}`,h.cssRules.length));s=e.style.animation||"";return e.style.animation=`${s?`${s}, `:""}${d} ${r}ms linear ${o}ms 1 both`,T+=1,d}function C(e){f=e}function D(e){!function(){if(!f)throw new Error("Function called outside component initialization");return f}().$$.on_mount.push(e)}const S=[],A=[],o=[],a=[],I=Promise.resolve();let L=!1;function k(e){o.push(e)}let s=!1;const l=new Set;function B(){if(!s){s=!0;do{for(let e=0;e<S.length;e+=1){var t=S[e];C(t),function(e){{var t;null!==e.fragment&&(e.update(),J(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(k))}}(t.$$)}for(C(null),S.length=0;A.length;)A.pop()();for(let e=0;e<o.length;e+=1){const n=o[e];l.has(n)||(l.add(n),n())}}while(o.length=0,S.length);for(;a.length;)a.pop()();L=!1,s=!1,l.clear()}}let O;function H(e,t,n){e.dispatchEvent(function(e){const t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}(`${t?"intro":"outro"}${n}`))}const c=new Set;let U;function j(e,t){e&&e.i&&(c.delete(e),e.i(t))}function G(e,t,n,r){e&&e.o&&(c.has(e)||(c.add(e),U.c.push(()=>{c.delete(e),r&&(n&&e.d(1),r())}),e.o(t)))}const W={duration:0};function V(s,e,t,n){let l=e(s,t),c=n?0:1,u=null,d=null,p=null;function h(){p&&function(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=n.length-r.length;o&&(e.style.animation=r.join(", "),T-=o,T||v(()=>{T||(M.forEach(e=>{const t=e.__svelte_stylesheet;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.__svelte_rules={}}),M.clear())}))}(s,p)}function f(e,t){var n=e.b-c;return t*=Math.abs(n),{a:c,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function r(e){const{delay:t=0,duration:n=300,easing:r=m,tick:o=b,css:a}=l||W,i={start:y()+t,b:e};e||(i.group=U,U.r+=1),u||d?d=i:(a&&(h(),p=x(s,c,e,n,t,r,a)),e&&o(0,1),u=f(i,n),k(()=>H(s,e,"start")),function(t){let n;0===w.size&&v(E),new Promise(e=>{w.add(n={c:t,f:e})})}(e=>{return d&&e>d.start&&(u=f(d,n),d=null,H(s,u.b,"start"),a&&(h(),p=x(s,c,u.b,u.duration,0,r,l.css))),u&&(e>=u.end?(o(c=u.b,1-c),H(s,u.b,"end"),d||(u.b?h():--u.group.r||J(u.group.c)),u=null):e>=u.start&&(e=e-u.start,c=u.a+u.d*r(e/u.duration),o(c,1-c))),!(!u&&!d)}))}return{run(e){g(l)?(O||(O=Promise.resolve(),O.then(()=>{O=null})),O.then(()=>{l=l(),r(e)})):r(e)},end(){h(),u=d=null}}}function z(e,t){e.d(1),t.delete(e.key)}function X(r,e,t,n,o,a,i=[-1]){var s=f;C(r);const l=r.$$={fragment:null,ctx:null,props:a,update:b,not_equal:o,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:e.context||[]),callbacks:d(),dirty:i,skip_bound:!1};let c=!1;if(l.ctx=t?t(r,e.props||{},(e,t,...n)=>{n=n.length?n[0]:t;return l.ctx&&o(l.ctx[e],l.ctx[e]=n)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](n),c&&(n=e,-1===(e=r).$$.dirty[0]&&(S.push(e),L||(L=!0,I.then(B)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],l.update(),c=!0,J(l.before_update),l.fragment=!!n&&n(l.ctx),e.target){if(e.hydrate){const b=(n=e.target,Array.from(n.childNodes));l.fragment&&l.fragment.l(b),b.forEach(ne)}else l.fragment&&l.fragment.c();e.intro&&j(r.$$.fragment),function(t,e,n,r){const{fragment:o,on_mount:a,on_destroy:i,after_update:s}=t.$$;o&&o.m(e,n),r||k(()=>{var e=a.map(u).filter(g);i?i.push(...e):J(e),t.$$.on_mount=[]}),s.forEach(k)}(r,e.target,e.anchor,e.customElement),B()}C(s)}let q;"function"==typeof HTMLElement&&(q=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(u).filter(g);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){J(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(J(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=b}$on(e,t){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 Z,K,Y="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==Y&&Y,Q="URLSearchParams"in Y,ce="Symbol"in Y&&"iterator"in Symbol,ue="FileReader"in Y&&"Blob"in Y&&function(){try{return new Blob,!0}catch(e){return!1}}(),de="FormData"in Y,pe="ArrayBuffer"in Y;function he(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 fe(e){return e="string"!=typeof e?String(e):e}function me(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ce&&(e[Symbol.iterator]=function(){return e}),e}function ge(t){this.map={},t instanceof ge?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ye(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function be(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function ve(e){var t=new FileReader,n=be(t);return t.readAsArrayBuffer(e),n}function we(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ee(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:ue&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:de&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Q&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():pe&&ue&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):pe&&(ArrayBuffer.prototype.isPrototypeOf(e)||K(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):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):Q&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ue&&(this.blob=function(){var e=ye(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(){return this._bodyArrayBuffer?ye(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(ve)}),this.text=function(){var e,t,n=ye(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=be(t),t.readAsText(e),n;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)},de&&(this.formData=function(){return this.text().then(Te)}),this.json=function(){return this.text().then(JSON.parse)},this}pe&&(Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],K=ArrayBuffer.isView||function(e){return e&&-1<Z.indexOf(Object.prototype.toString.call(e))}),ge.prototype.append=function(e,t){e=he(e),t=fe(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},ge.prototype.delete=function(e){delete this.map[he(e)]},ge.prototype.get=function(e){return e=he(e),this.has(e)?this.map[e]:null},ge.prototype.has=function(e){return this.map.hasOwnProperty(he(e))},ge.prototype.set=function(e,t){this.map[he(e)]=fe(t)},ge.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},ge.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),me(n)},ge.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),me(t)},ge.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),me(n)},ce&&(ge.prototype[Symbol.iterator]=ge.prototype.entries);var _e=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Me(e,t){if(!(this instanceof Me))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 Me){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ge(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 ge(t.headers)),this.method=(e=(n=t.method||this.method||"GET").toUpperCase(),-1<_e.indexOf(e)?e:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.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||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Te(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),n.append(decodeURIComponent(e),decodeURIComponent(t)))}),n}function xe(e,t){if(!(this instanceof xe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ge(t.headers),this.url=t.url||"",this._initBody(e)}Me.prototype.clone=function(){return new Me(this,{body:this._bodyInit})},Ee.call(Me.prototype),Ee.call(xe.prototype),xe.prototype.clone=function(){return new xe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ge(this.headers),url:this.url})},xe.error=function(){var e=new xe(null,{status:0,statusText:""});return e.type="error",e};var Ce=[301,302,303,307,308];xe.redirect=function(e,t){if(-1===Ce.indexOf(t))throw new RangeError("Invalid status code");return new xe(null,{status:t,headers:{location:e}})};var Se=Y.DOMException;try{new Se}catch(b){(Se=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),Se.prototype.constructor=Se}function Ae(r,i){return new Promise(function(o,e){var t=new Me(r,i);if(t.signal&&t.signal.aborted)return e(new Se("Aborted","AbortError"));var a=new XMLHttpRequest;function n(){a.abort()}a.onload=function(){var e,n,t={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",n=new ge,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(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),n.append(e,t))}),n)};t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;setTimeout(function(){o(new xe(r,t))},0)},a.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){e(new Se("Aborted","AbortError"))},0)},a.open(t.method,function(t){try{return""===t&&Y.location.href?Y.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?a.withCredentials=!0:"omit"===t.credentials&&(a.withCredentials=!1),"responseType"in a&&(ue?a.responseType="blob":pe&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof ge?t.headers.forEach(function(e,t){a.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){a.setRequestHeader(e,fe(i.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),a.onreadystatechange=function(){4===a.readyState&&t.signal.removeEventListener("abort",n)}),a.send(void 0===t._bodyInit?null:t._bodyInit)})}Ae.polyfill=!0,Y.fetch||(Y.fetch=Ae,Y.Headers=ge,Y.Request=Me,Y.Response=xe);var Ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};self.fetch.bind(self);var Le=function(e,t){return(Le=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 Pe(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}Le(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Be(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 Oe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||0<t--)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function He(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function Re(e){return"function"==typeof e}function Fe(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 ke=Fe(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 $e(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var Ne=(Ue.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var i=Be(a),s=i.next();!s.done;s=i.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else a.remove(this);a=this.initialTeardown;if(Re(a))try{a()}catch(e){o=e instanceof ke?e.errors:[e]}a=this._teardowns;if(a){this._teardowns=null;try{for(var l=Be(a),c=l.next();!c.done;c=l.next()){var u=c.value;try{Ge(u)}catch(e){o=null!=o?o:[],e instanceof ke?o=He(He([],Oe(o)),Oe(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 ke(o)}},Ue.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ge(e);else{if(e instanceof Ue){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},Ue.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ue.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ue.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&$e(t,e)},Ue.prototype.remove=function(e){var t=this._teardowns;t&&$e(t,e),e instanceof Ue&&e._removeParent(this)},Ue.EMPTY=((dn=new Ue).closed=!0,dn),Ue),De=Ne.EMPTY;function Ue(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function je(e){return e instanceof Ne||e&&"closed"in e&&Re(e.remove)&&Re(e.add)&&Re(e.unsubscribe)}function Ge(e){Re(e)?e():e.unsubscribe()}var We=void 0,Ve=!1,ze=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,He([],Oe(e)))};function Xe(){}function qe(e){e()}var Ze,Ke,Ye=(Pe(et,Ke=Ne),et.create=function(e,t,n){return new Qe(e,t,n)},et.prototype.next=function(e){this.isStopped||this._next(e)},et.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},et.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},et.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ke.prototype.unsubscribe.call(this),this.destination=null)},et.prototype._next=function(e){this.destination.next(e)},et.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},et.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},et),Qe=(Pe(Je,Ze=Ye),Je);function Je(e,t,n){var r,o,a=Ze.call(this)||this;return Re(e)?o=e:e&&(o=e.next,t=e.error,n=e.complete,a&&Ve?(r=Object.create(e)).unsubscribe=function(){return a.unsubscribe()}:r=e,o=null==o?void 0:o.bind(r),t=null==t?void 0:t.bind(r),n=null==n?void 0:n.bind(r)),a.destination={next:o?tt(o):Xe,error:tt(null!=t?t:nt),complete:n?tt(n):Xe},a}function et(e){var t=Ke.call(this)||this;return t.isStopped=!1,e?je(t.destination=e)&&e.add(t):t.destination=rt,t}function tt(r){return function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{r.apply(void 0,He([],Oe(e)))}catch(e){t=e,ze(function(){throw t})}}}function nt(e){throw e}var rt={closed:!0,next:Xe,error:nt,complete:Xe},ot="function"==typeof Symbol&&Symbol.observable||"@@observable";function at(e){return e}var it=(st.prototype.lift=function(e){var t=new st;return t.source=this,t.operator=e,t},st.prototype.subscribe=function(e,t,n){var r,o=this,a=(r=e)&&r instanceof Ye||r&&Re(r.next)&&Re(r.error)&&Re(r.complete)&&je(r)?e:new Qe(e,t,n);return qe(function(){var e=o.operator,t=o.source;a.add(e?e.call(a,t):t?o._subscribe(a):o._trySubscribe(a))}),a},st.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},st.prototype.forEach=function(r,e){var o=this;return new(e=lt(e))(function(e,t){var n=o.subscribe(function(e){try{r(e)}catch(e){t(e),null==n||n.unsubscribe()}},t,e)})},st.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},st.prototype[ot]=function(){return this},st.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?at:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},st.prototype.toPromise=function(e){var r=this;return new(e=lt(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},st.create=function(e){return new st(e)},st);function st(e){e&&(this._subscribe=e)}function lt(e){return null!==(e=null!=e?e:We)&&void 0!==e?e:Promise}var ct,ut,dt,pt=Fe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ht=(Pe(vt,dt=it),vt.prototype.lift=function(e){var t=new ft(this,this);return t.operator=e,t},vt.prototype._throwIfClosed=function(){if(this.closed)throw new pt},vt.prototype.next=function(a){var i=this;qe(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){var n=i.observers.slice();try{for(var r=Be(n),o=r.next();!o.done;o=r.next())o.value.next(a)}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},vt.prototype.error=function(t){var n=this;qe(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)}})},vt.prototype.complete=function(){var t=this;qe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},vt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(vt.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),vt.prototype._trySubscribe=function(e){return this._throwIfClosed(),dt.prototype._trySubscribe.call(this,e)},vt.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},vt.prototype._innerSubscribe=function(e){var t=this.hasError,n=this.isStopped,r=this.observers;return t||n?De:(r.push(e),new Ne(function(){return $e(r,e)}))},vt.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},vt.prototype.asObservable=function(){var e=new it;return e.source=this,e},vt.create=function(e,t){return new ft(e,t)},vt),ft=(Pe(bt,ut=ht),bt.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},bt.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},bt.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},bt.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:De},bt),mt={now:function(){return(mt.delegate||Date).now()},delegate:void 0},gt=(Pe(yt,ct=ht),yt.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,o=t._infiniteTimeWindow,a=t._timestampProvider,t=t._windowTime;n||(r.push(e),o||r.push(a.now()+t)),this._trimBuffer(),ct.prototype.next.call(this,e)},yt.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},yt.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 a=t.now(),i=0,s=1;s<n.length&&n[s]<=a;s+=2)i=s;i&&n.splice(0,i+1)}},yt);function yt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=mt);var r=ct.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 bt(e,t){var n=ut.call(this)||this;return n.destination=e,n.source=t,n}function vt(){var e=dt.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let wt=[],Et={};const _t=[];function Mt(r,o=b){let a;const i=[];function s(e){if(n(r,e)&&(r=e,a)){const e=!_t.length;for(let e=0;e<i.length;e+=1){const t=i[e];t[1](),_t.push(t,r)}if(e){for(let e=0;e<_t.length;e+=2)_t[e][0](_t[e+1]);_t.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=b){const n=[e,t];return i.push(n),1===i.length&&(a=o(s)||b),e(r),()=>{var e=i.indexOf(n);-1!==e&&i.splice(e,1),0===i.length&&(a(),a=null)}}}}function Tt(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:Mt(t,t=>{let n=!1;const r=[];let o=0,a=b;const i=()=>{var e;o||(a(),e=s(l?r[0]:r,t),u?t(e):a=g(e)?e:b)},e=c.map((e,t)=>p(e,e=>{r[t]=e,o&=~(1<<t),n&&i()},()=>{o|=1<<t}));return n=!0,i(),function(){J(e),a()}}).subscribe}}var xt=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===Ct));var t},Ct="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function St(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Bt(Array.isArray(e)?[]:{},e,t):e}function At(e,t,n){return e.concat(t).map(function(e){return St(e,n)})}function It(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Lt(e,t){try{return t in e}catch(e){return!1}}function Pt(r,o,a){var i={};return a.isMergeableObject(r)&&It(r).forEach(function(e){i[e]=St(r[e],a)}),It(o).forEach(function(t){var e,n;(!Lt(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(Lt(r,t)&&a.isMergeableObject(o[t])?i[t]=function(){if(!a.customMerge)return Bt;var e=a.customMerge(t);return"function"==typeof e?e:Bt}()(r[t],o[t],a):i[t]=St(o[t],a))}),i}function Bt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||At,n.isMergeableObject=n.isMergeableObject||xt,n.cloneUnlessOtherwiseSpecified=St;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Pt(e,t,n):St(t,n)}Bt.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return Bt(e,t,n)},{})};var Ot=Bt,Ht=function(e,t){return(Ht=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 Rt(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}Ht(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ft,kt,$t,Nt=function(){return(Nt=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 Dt(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function Ut(e){return e.type===kt.literal}function jt(e){return e.type===kt.number}function Gt(e){return e.type===kt.date}function Wt(e){return e.type===kt.time}function Vt(e){return e.type===kt.select}function zt(e){return e.type===kt.plural}function Xt(e){return e.type===kt.tag}function qt(e){return e&&"object"==typeof e&&e.type===$t.number}function Zt(e){return e&&"object"==typeof e&&e.type===$t.dateTime}(pn=Ft=Ft||{})[pn.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",pn[pn.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",pn[pn.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",pn[pn.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",pn[pn.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",pn[pn.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",pn[pn.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",pn[pn.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",pn[pn.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",pn[pn.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",pn[pn.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",pn[pn.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",pn[pn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",pn[pn.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",pn[pn.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",pn[pn.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",pn[pn.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",pn[pn.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",pn[pn.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",pn[pn.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",pn[pn.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",pn[pn.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",pn[pn.INVALID_TAG=23]="INVALID_TAG",pn[pn.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",pn[pn.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",pn[pn.UNCLOSED_TAG=27]="UNCLOSED_TAG",(hn=kt=kt||{})[hn.literal=0]="literal",hn[hn.argument=1]="argument",hn[hn.number=2]="number",hn[hn.date=3]="date",hn[hn.time=4]="time",hn[hn.select=5]="select",hn[hn.plural=6]="plural",hn[hn.pound=7]="pound",hn[hn.tag=8]="tag",(fn=$t=$t||{})[fn.number=0]="number",fn[fn.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Kt=/(?:[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 Yt,Qt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,en=/^(@+)?(\+|#+)?$/g,tn=/(\*)(0+)|(#+)(0+)|(0+)/g,nn=/^(0+)$/;function rn(e){var r={};return e.replace(en,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 on(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 an(e){return on(e)||{}}function sn(e){for(var i={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=Nt(Nt(Nt({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return Nt(Nt({},e),an(t))},{}));continue;case"engineering":i=Nt(Nt(Nt({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return Nt(Nt({},e),an(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.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(tn,function(e,t,n,r,o,a){if(t)i.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(nn.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(Jt.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Jt,function(e,t,n,r,o,a){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""}),o.options.length&&(i=Nt(Nt({},i),rn(o.options[0])))}else en.test(o.stem)?i=Nt(Nt({},i),rn(o.stem)):((r=on(o.stem))&&(i=Nt(Nt({},i),r)),(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)),!nn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=Nt(Nt({},i),r)))}return i}var ln=new RegExp("^"+e.source+"*"),cn=new RegExp(e.source+"*$");function un(e,t){return{start:e,end:t}}var dn=!!String.prototype.startsWith,ot=!!String.fromCodePoint,ht=!!Object.fromEntries,pn=!!String.prototype.codePointAt,hn=!!String.prototype.trimStart,fn=!!String.prototype.trimEnd,mn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},e=!0;try{e="a"===(null===(Yt=Tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Yt?void 0:Yt[0])}catch(b){e=!1}var gn,yn,bn=dn?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},vn=ot?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;a<o;){if(1114111<(n=e[a++]))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},wn=ht?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],o=o[1];t[a]=o}return t},En=pn?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||n<=t)){var r,o=e.charCodeAt(t);return o<55296||56319<o||t+1===n||(r=e.charCodeAt(t+1))<56320||57343<r?o:r-56320+(o-55296<<10)+65536}},_n=hn?function(e){return e.trimStart()}:function(e){return e.replace(ln,"")},Mn=fn?function(e){return e.trimEnd()}:function(e){return e.replace(cn,"")};function Tn(e,t){return new RegExp(e,t)}yn=e?(gn=Tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return gn.lastIndex=t,null!==(e=gn.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var n,r=[];;){var o=En(e,t);if(void 0===o||An(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 vn.apply(void 0,r)};var xn=(Cn.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Cn.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,a=this.char();if(123===a){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===a&&0<e)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Ft.UNMATCHED_CLOSING_TAG,un(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&Sn(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{a=this.clonePosition();this.bump(),r.push({type:kt.pound,location:un(a,this.clonePosition())})}}}return{val:r,err:null}},Cn.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:kt.literal,value:"<"+r+"/>",location:un(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;e=o.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Sn(this.char()))return this.error(Ft.INVALID_TAG,un(t,this.clonePosition()));o=this.clonePosition();return r!==this.parseTagName()?this.error(Ft.UNMATCHED_CLOSING_TAG,un(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:kt.tag,value:r,children:e,location:un(n,this.clonePosition())},err:null}:this.error(Ft.INVALID_TAG,un(t,this.clonePosition())))}return this.error(Ft.UNCLOSED_TAG,un(n,this.clonePosition()))}return this.error(Ft.INVALID_TAG,un(n,this.clonePosition()))},Cn.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())},Cn.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=un(n,this.clonePosition());return{val:{type:kt.literal,value:r,location:n},err:null}},Cn.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Sn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},Cn.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 vn.apply(void 0,t)},Cn.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),vn(n))},Cn.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ft.EXPECT_ARGUMENT_CLOSING_BRACE,un(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Ft.EMPTY_ARGUMENT,un(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Ft.MALFORMED_ARGUMENT,un(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ft.EXPECT_ARGUMENT_CLOSING_BRACE,un(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:kt.argument,value:r,location:un(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ft.EXPECT_ARGUMENT_CLOSING_BRACE,un(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Ft.MALFORMED_ARGUMENT,un(n,this.clonePosition()))}},Cn.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=yn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:un(e,this.clonePosition())}},Cn.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(Ft.EXPECT_ARGUMENT_TYPE,un(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(d=Mn(p.val)).length)return this.error(Ft.EXPECT_ARGUMENT_STYLE,un(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:un(c,this.clonePosition())}}if((h=this.tryParseArgumentClose(r)).err)return h;var u=un(r,this.clonePosition());if(l&&bn(null==l?void 0:l.style,"::",0)){c=_n(l.style.slice(2));if("number"===i)return(p=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?p:{val:{type:kt.number,value:n,location:u,style:p.val},err:null};if(0===c.length)return this.error(Ft.EXPECT_DATE_TIME_SKELETON,u);var d={type:$t.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},c.replace(Kt,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):{}};return{val:{type:"date"===i?kt.date:kt.time,value:n,location:u,style:d},err:null}}return{val:{type:"number"===i?kt.number:"date"===i?kt.date:kt.time,value:n,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ft.EXPECT_SELECT_ARGUMENT_OPTIONS,un(l,Nt({},l)));this.bumpSpace();var p,u=this.parseIdentifierIfPossible(),l=0;if("select"!==i&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(Ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,un(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(Ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=p.val}u=this.tryParsePluralOrSelectOptions(e,i,t,u);if(u.err)return u;if((h=this.tryParseArgumentClose(r)).err)return h;var h=un(r,this.clonePosition());return"select"===i?{val:{type:kt.select,value:n,options:wn(u.val),location:h},err:null}:{val:{type:kt.plural,value:n,options:wn(u.val),offset:l,pluralType:"plural"===i?"cardinal":"ordinal",location:h},err:null};default:return this.error(Ft.INVALID_ARGUMENT_TYPE,un(a,s))}},Cn.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Ft.EXPECT_ARGUMENT_CLOSING_BRACE,un(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},Cn.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(Ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,un(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}},Cn.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(Qt).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 a=o[0],o=o.slice(1),i=0,s=o;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(Ft.INVALID_NUMBER_SKELETON,t)}return{val:{type:$t.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?sn(n):{}},err:null}},Cn.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,a=[],i=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(Ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ft.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=un(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?Ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,un(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,n);if(u.err)return u;c=this.tryParseArgumentClose(d);if(c.err)return c;a.push([s,{value:u.val,location:un(d,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===a.length?this.error("select"===t?Ft.EXPECT_SELECT_ARGUMENT_SELECTOR:Ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,un(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Ft.MISSING_OTHER_CLAUSE,un(this.clonePosition(),this.clonePosition())):{val:a,err:null}},Cn.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}r=un(r,this.clonePosition());return o?mn(a*=n)?{val:a,err:null}:this.error(t,r):this.error(e,r)},Cn.prototype.offset=function(){return this.position.offset},Cn.prototype.isEOF=function(){return this.offset()===this.message.length},Cn.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Cn.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=En(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},Cn.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},Cn.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))},Cn.prototype.bumpIf=function(e){if(bn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},Cn.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},Cn.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},Cn.prototype.bumpSpace=function(){for(;!this.isEOF()&&An(this.char());)this.bump()},Cn.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},Cn);function Cn(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Sn(e){return 97<=e&&e<=122||65<=e&&e<=90}function An(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function In(e,t){t=Nt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n=new xn(e,t).parse();if(n.err){e=SyntaxError(Ft[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Vt(e)||zt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else jt(e)&&qt(e.style)||(Gt(e)||Wt(e))&&Zt(e.style)?delete e.style.location:Xt(e)&&n(e.children)})}(n.val),n.val}function Ln(e,t){var n=t&&t.cache?t.cache:kn,r=t&&t.serializer?t.serializer:Hn;return(t&&t.strategy?t.strategy:function(e,t){return On(e,this,1===e.length?Pn:Bn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Pn(e,t,n,r){var o=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=t.get(o);return void 0===n&&(n=e.call(this,r),t.set(o,n)),n}function Bn(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),n=t.get(o);return void 0===n&&(n=e.apply(this,r),t.set(o,n)),n}function On(e,t,n,r,o){return n.bind(t,e,r,o)}var Hn=function(){return JSON.stringify(arguments)};function Rn(){this.cache=Object.create(null)}Rn.prototype.has=function(e){return e in this.cache},Rn.prototype.get=function(e){return this.cache[e]},Rn.prototype.set=function(e,t){this.cache[e]=t};var Fn,kn={create:function(){return new Rn}},$n={variadic:function(e,t){return On(e,this,Bn,t.cache.create(),t.serializer)},monadic:function(e,t){return On(e,this,Pn,t.cache.create(),t.serializer)}};(e=Fn=Fn||{}).MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";var Nn,Dn,Un,jn,Gn,Wn=(Rt(Yn,Gn=Error),Yn.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Yn),Vn=(Rt(Kn,jn=Wn),Kn),zn=(Rt(Zn,Un=Wn),Zn),Xn=(Rt(qn,Dn=Wn),qn);function qn(e,t){return Dn.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Fn.MISSING_VALUE,t)||this}function Zn(e,t,n){return Un.call(this,'Value for "'+e+'" must be of type '+t,Fn.INVALID_VALUE,n)||this}function Kn(e,t,n,r){return jn.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(n).join('", "')+'"',Fn.INVALID_VALUE,r)||this}function Yn(e,t,n){e=Gn.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Qn(e,t,n,r,o,a,i){if(1===e.length&&Ut(e[0]))return[{type:Nn.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Ut(u))s.push({type:Nn.literal,value:u.value});else if(u.type===kt.pound)"number"==typeof a&&s.push({type:Nn.literal,value:n.getNumberFormat(t).format(a)});else{var d=u.value;if(!(o&&d in o))throw new Xn(d,i);var p=o[d];if(u.type===kt.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?Nn.literal:Nn.object,value:p});else if(Gt(u)){var h="string"==typeof u.style?r.date[u.style]:Zt(u.style)?u.style.parsedOptions:void 0;s.push({type:Nn.literal,value:n.getDateTimeFormat(t,h).format(p)})}else if(Wt(u))h="string"==typeof u.style?r.time[u.style]:Zt(u.style)?u.style.parsedOptions:void 0,s.push({type:Nn.literal,value:n.getDateTimeFormat(t,h).format(p)});else if(jt(u))(h="string"==typeof u.style?r.number[u.style]:qt(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:Nn.literal,value:n.getNumberFormat(t,h).format(p)});else{if(Xt(u)){var f=u.children,m=u.value,d=o[m];if("function"!=typeof d)throw new zn(m,"function",i);f=d(Qn(f,t,n,r,o,a).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?Nn.literal:Nn.object,value:e}}))}if(Vt(u)){if(!(g=u.options[p]||u.options.other))throw new Vn(u.value,p,Object.keys(u.options),i);s.push.apply(s,Qn(g.value,t,n,r,o))}else if(zt(u)){if(!(g=u.options["="+p])){if(!Intl.PluralRules)throw new Wn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Fn.MISSING_INTL_API,i);var f=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new Vn(u.value,p,Object.keys(u.options),i);s.push.apply(s,Qn(g.value,t,n,r,o,p-(u.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===Nn.literal&&t.type===Nn.literal?n.value+=t.value:e.push(t),e},[])}function Jn(n){return{create:function(){return{has:function(e){return e in n},get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=Nn=Nn||{})[e.literal=0]="literal",e[e.object=1]="object";var er=(Object.defineProperty(tr,"defaultLocale",{get:function(){return tr.memoizedDefaultLocale||(tr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),tr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),tr.memoizedDefaultLocale=null,tr.__parse=In,tr.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"}}},tr);function tr(e,t,n,r){var o,a,i=this;if(void 0===t&&(t=tr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=i.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===Nn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Qn(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},"string"==typeof e){if(this.message=e,!tr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=tr.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag})}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=tr.formats,(a=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=a[t])?Nt(Nt(Nt({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=Nt(Nt({},n[t]),r[t]||{}),e},{})):n),e},Nt({},o)):o),this.locales=t,this.formatters=r&&r.formatters||{getNumberFormat:Ln(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Dt([void 0],t)))},{cache:Jn((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:$n.variadic}),getDateTimeFormat:Ln(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Dt([void 0],t)))},{cache:Jn(r.dateTime),strategy:$n.variadic}),getPluralRules:Ln(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Dt([void 0],t)))},{cache:Jn(r.pluralRules),strategy:$n.variadic})}}const nr={},rr=(t,n)=>{if(null!=n){if(n in nr&&t in nr[n])return nr[n][t];var r,o,a=vr(n);for(let e=0;e<a.length;e++){var i=(r=a[e],o=t,ir(r)?function(e,t){if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(0<e){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(function(e){return or[e]||null}(r),o):null);if(i)return r=t,o=n,(i=i)&&(o in nr||(nr[o]={}),r in nr[o]||(nr[o][r]=i),i)}}};let or;const ar=Mt({});function ir(e){return e in or}function sr(t,...n){delete nr[t],ar.update(e=>(e[t]=Ot.all([e[t]||{},...n]),e))}Tt([ar],([e])=>Object.keys(e)),ar.subscribe(e=>or=e);const lr={};function cr(e){return lr[e]}function ur(e){return vr(e).some(e=>{return null===(e=cr(e))||void 0===e?void 0:e.size})}const dr={};function pr(e){if(!ur(e))return e in dr?dr[e]:void 0;const t=vr(e).map(e=>{var t=cr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return dr[e]=Promise.all(t.map(([e,n])=>function(t){return Promise.all(n.map(e=>(function(e,t){lr[e].delete(t),0===lr[e].size&&delete lr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>sr(t,...e))}(e))).then(()=>ur(e)?pr(e):void delete dr[e]),dr[e]}function hr(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}const fr={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const mr=Mt(!1);let gr;const yr=Mt(null);function br(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function vr(e,t=fr.fallbackLocale){e=br(e);return t?[...new Set([...e,...br(t)])]:e}yr.subscribe(e=>{gr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const wr=yr.set;yr.set=t=>{if(function(e){if(null!=e){var t=vr(e);for(let e=0;e<t.length;e++){var n=t[e];if(ir(n))return n}}}(t)&&ur(t)){var{loadingDelay:n}=fr;let e;return"undefined"!=typeof window&&null!=gr&&n?e=window.setTimeout(()=>mr.set(!0),n):mr.set(!0),pr(t).then(()=>{wr(t)}).finally(()=>{clearTimeout(e),mr.set(!1)})}return wr(t)},yr.update=e=>wr(e(gr));const Er=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{formats:n}=fr;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Mr=Er(e=>{var{locale:t,format:n}=e,e=hr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=_r("number",n)),new Intl.NumberFormat(t,e)}),Tr=Er(e=>{var{locale:t,format:n}=e,e=hr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=_r("date",n):0===Object.keys(e).length&&(e=_r("date","short")),new Intl.DateTimeFormat(t,e)}),xr=Er(e=>{var{locale:t,format:n}=e,e=hr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=_r("time",n):0===Object.keys(e).length&&(e=_r("time","short")),new Intl.DateTimeFormat(t,e)}),Cr=Er((e,t=gr)=>new er(e,t,fr.formats,{ignoreTag:fr.ignoreTag})),Sr=Tt([yr,ar],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:n,locale:r=gr,default:o}=t;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let a=rr(e,r);if(a){if("string"!=typeof a)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof a}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),a}else fr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${vr(r).join('", "')}".${ur(gr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),a=o||e;if(!n)return a;let i=a;try{i=Cr(a,r).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return i});Tt([yr],()=>(e,t)=>((e={})=>{var{locale:t=gr}=e,e=hr(e,["locale"]);return xr(Object.assign({locale:t},e))})(t).format(e)),Tt([yr],()=>(e,t)=>((e={})=>{var{locale:t=gr}=e,e=hr(e,["locale"]);return Tr(Object.assign({locale:t},e))})(t).format(e)),Tt([yr],()=>(e,t)=>((e={})=>{var{locale:t=gr}=e,e=hr(e,["locale"]);return Mr(Object.assign({locale:t},e))})(t).format(e)),Tt([yr,ar],()=>(e,t=gr)=>rr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==wt.indexOf(e)&&(t=new gt(t),Et[e]=t,wt.push(e)),Et[e]}};const Ar=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)),Ir={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"},fallbackSecondaryMenu:{promotions:"Promotions"}},fr:{headerItem:{login:"Connexion",register:"Enregistrer",deposit:"Dépôt"},fallbackSecondaryMenu:{promotions:"Promotions"}},tr:{headerItem:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito"},fallbackSecondaryMenu:{promotions:"Promosyonlar"}},ro:{headerItem:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},fallbackSecondaryMenu:{promotions:"Promotii"}},es:{headerItem:{login:"Iniciar sesión",register:"Registro",deposit:"Depósito"},fallbackSecondaryMenu:{promotions:"Promociones"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"},fallbackSecondaryMenu:{promotions:"Promoções"}}},Lr={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"},fallbackMainMenu:{sports:"Sports",casino:"Casino",liveCasino:"Live Casino",virtualSports:"Virtual Sports",tournaments:"Tournaments"}},fr:{headerItem:{login:"Connexion",register:"Registre",deposit:"Dépôt"},fallbackMainMenu:{sports:"Sports",casino:"Casino",liveCasino:"Live Casino",virtualSports:"Virtual Sports",tournaments:"Tournaments"}},tr:{headerItem:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito"},fallbackMainMenu:{sports:"Spor Dalları",casino:"Kumarhane",liveCasino:"Canlı kumarhane",virtualSports:"Sanal Sporlar",tournaments:"Turnuvalar"}},ro:{headerItem:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},fallbackMainMenu:{sports:"Sport",casino:"Cazino",liveCasino:"Cazinou live",virtualSports:"Sport virtual",tournaments:"Turnee"}},es:{headerItem:{login:"Iniciar sesión",register:"Registro",deposit:"Depósito"},fallbackMainMenu:{sports:"Sports",casino:"Casino",liveCasino:"Live Casino",virtualSports:"Virtual Sports",tournaments:"Tournaments"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"},fallbackMainMenu:{sports:"Sports",casino:"Casino",liveCasino:"Live Casino",virtualSports:"Virtual Sports",tournaments:"Tournaments"}}};function Pr(e,t,n){const r=e.slice();return r[33]=t[n],r[35]=n,r}function Br(t){let r,o=[],n=new Map,a=t[0];const i=e=>e[33].id;for(let e=0;e<a.length;e+=1){var s=Pr(t,a,e),l=i(s);n.set(l,o[e]=Rr(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=_()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);te(t,r,n)},p(e,t){295&t[0]&&(a=e[0],o=function(t,n,r,o,a,i,s,l,e,c,u,d){let p=t.length,h=i.length,f=p;const m={};for(;f--;)m[t[f].key]=f;const g=[],y=new Map,b=new Map;for(f=h;f--;){const t=d(a,i,f),l=r(t);let e=s.get(l);e?o&&e.p(t,n):(e=c(l,t),e.c()),y.set(l,g[f]=e),l in m&&b.set(l,Math.abs(f-m[l]))}const v=new Set,w=new Set;function E(e){j(e,1),e.m(l,u),s.set(e.key,e),u=e.first,h--}for(;p&&h;){const n=g[h-1],r=t[p-1],o=n.key,a=r.key;n===r?(u=n.first,p--,h--):y.has(a)?!s.has(o)||v.has(o)?E(n):w.has(a)?p--:b.get(o)>b.get(a)?(w.add(o),E(n)):(v.add(a),p--):(e(r,s),p--)}for(;p--;){const n=t[p];y.has(n.key)||e(n,s)}for(;h;)E(g[h-1]);return g}(o,t,i,1,e,a,n,r.parentNode,z,Rr,r,Pr))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&ne(r)}}}function Or(e){let n,r,o,a=e[33].name+"",i="FAVORITES"===e[33].id?"("+e[1]+")":"";return{c(){n=oe(a),r=ae(),o=oe(i)},m(e,t){te(e,n,t),te(e,r,t),te(e,o,t)},p(e,t){1&t[0]&&a!==(a=e[33].name+"")&&le(n,a),3&t[0]&&i!==(i="FAVORITES"===e[33].id?"("+e[1]+")":"")&&le(o,i)},d(e){e&&ne(n),e&&ne(r),e&&ne(o)}}}function Hr(e){let n,r,o=e[33].label+"";return{c(){n=re("a"),r=oe(o)},m(e,t){te(e,n,t),ee(n,r)},p(e,t){1&t[0]&&o!==(o=e[33].label+"")&&le(r,o)},d(e){e&&ne(n)}}}function Rr(e,n){let r,o,a,i;function s(e){return"headerMain"===e[2]?Hr:Or}let l=s(n),c=l(n);function u(...e){return n[21](n[33],n[35],...e)}return{key:e,first:null,c(){r=re("li"),c.c(),o=ae(),se(r,"class","CarouselItem"),se(r,"part","CarouselItem"),h(r,"active",n[5]==n[35]),this.first=r},m(e,t){te(e,r,t),c.m(r,null),ee(r,o),a||(i=ie(r,"click",u),a=!0)},p(e,t){l===(l=s(n=e))&&c?c.p(n,t):(c.d(1),c=l(n),c&&(c.c(),c.m(r,o))),33&t[0]&&h(r,"active",n[5]==n[35])},d(e){e&&ne(r),c.d(),a=!1,i()}}}function Fr(n){let r,o,a,i,s,l,c,u,d,p,h,f,m,g,y=0<n[0].length&&Br(n);return{c(){r=re("div"),o=re("div"),a=re("div"),a.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="M15 19l-7-7 7-7"></path></svg>',i=ae(),s=re("ul"),y&&y.c(),l=ae(),c=re("div"),c.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=b,se(a,"class","CarouselLeftArrow"),se(a,"part","CarouselLeftArrow"),se(s,"class","CarouselItems"),se(s,"part","CarouselItems"),se(c,"class","CarouselRightArrow"),se(c,"part","CarouselRightArrow"),se(o,"class",u="CarouselContainer "+(n[7]?"CarouselContainerMobile":"")+" "+("headerMain"===n[2]?"CarouselContainerHeaderMain":"")),se(o,"part",d="CarouselContainer "+(n[7]?"CarouselContainerMobile":"")+" "+("headerMain"===n[2]?"CarouselContainerHeaderMain":"")),se(o,"style",p="headerMain"===n[2]?"max-width: auto":`max-width: ${n[3]}px`),se(r,"class",h="CarouselWrapper "+("headerMain"===n[2]?"CarouselWrapperHeaderMain":"")),se(r,"part",f="CarouselWrapper "+("headerMain"===n[2]?"CarouselWrapperHeaderMain":""))},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(o,i),ee(o,s),y&&y.m(s,null),n[22](s),ee(o,l),ee(o,c),n[24](r),m||(g=[ie(a,"click",n[20]),ie(c,"click",n[23])],m=!0)},p(e,t){0<e[0].length?y?y.p(e,t):(y=Br(e),y.c(),y.m(s,null)):y&&(y.d(1),y=null),4&t[0]&&u!==(u="CarouselContainer "+(e[7]?"CarouselContainerMobile":"")+" "+("headerMain"===e[2]?"CarouselContainerHeaderMain":""))&&se(o,"class",u),4&t[0]&&d!==(d="CarouselContainer "+(e[7]?"CarouselContainerMobile":"")+" "+("headerMain"===e[2]?"CarouselContainerHeaderMain":""))&&se(o,"part",d),12&t[0]&&p!==(p="headerMain"===e[2]?"max-width: auto":`max-width: ${e[3]}px`)&&se(o,"style",p),4&t[0]&&h!==(h="CarouselWrapper "+("headerMain"===e[2]?"CarouselWrapperHeaderMain":""))&&se(r,"class",h),4&t[0]&&f!==(f="CarouselWrapper "+("headerMain"===e[2]?"CarouselWrapperHeaderMain":""))&&se(r,"part",f)},i:b,o:b,d(e){e&&ne(r),y&&y.d(),n[22](null),n[24](null),m=!1,J(g)}}}function kr(t,e,n){let r;$(t,Sr,e=>n(25,r=e));let{sliderdata:o=[]}=e,{onclickeventname:a="defaultEvent"}=e,{actionevent:i="defaultEvent"}=e,{favoritesnumber:s="0"}=e,{location:l=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{identity:d=""}=e,{containermaxwidth:p=""}=e,{isprimarymenu:h=!1}=e,{issecondarymenu:f=!1}=e,{lang:m=""}=e,{activeindex:g=""}=e;var y,b;[{withLocale:y,translations:b}]=[{withLocale:"en",translations:{}}],yr.subscribe(e=>{null==e&&(ar.set(b),yr.set(y))}),Object.keys(Lr).forEach(e=>{sr(e,Lr[e])});let v,w,E,_="PC"!=((e=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),M=[{id:0,label:r("fallbackMainMenu.sports"),path:"/sports"},{id:1,label:r("fallbackMainMenu.casino"),path:"/casino"},{id:2,label:r("fallbackMainMenu.liveCasino"),path:"/live-casino"},{id:3,label:r("fallbackMainMenu.virtualSports"),path:"/virtual-sports"},{id:4,label:r("fallbackMainMenu.tournaments"),path:"/tournaments"}],T=(e,t)=>{n(5,w=t),window.postMessage({type:i,itemId:e.id,index:t,item:e},window.location.href)},x=()=>{v.scrollBy({left:-250,behavior:"smooth"})},C=()=>{v.scrollBy({left:250,behavior:"smooth"})};const S=e=>{"SliderData"==e.data.type&&e.data.identity==d&&n(0,o=e.data.data)};return D(()=>(h&&!o.length&&n(0,o=M),window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)})),t.$$set=e=>{"sliderdata"in e&&n(0,o=e.sliderdata),"onclickeventname"in e&&n(11,a=e.onclickeventname),"actionevent"in e&&n(12,i=e.actionevent),"favoritesnumber"in e&&n(1,s=e.favoritesnumber),"location"in e&&n(2,l=e.location),"clientstyling"in e&&n(13,c=e.clientstyling),"clientstylingurl"in e&&n(14,u=e.clientstylingurl),"identity"in e&&n(15,d=e.identity),"containermaxwidth"in e&&n(3,p=e.containermaxwidth),"isprimarymenu"in e&&n(16,h=e.isprimarymenu),"issecondarymenu"in e&&n(17,f=e.issecondarymenu),"lang"in e&&n(18,m=e.lang),"activeindex"in e&&n(19,g=e.activeindex)},t.$$.update=()=>{var e;524288&t.$$.dirty[0]&&(g||0==g)&&n(5,w=parseInt(g,10)),8192&t.$$.dirty[0]&&c&&(()=>{let e=document.createElement("style");e.innerHTML=c,setTimeout(()=>{E.appendChild(e)})})(),16384&t.$$.dirty[0]&&u&&(()=>{let t=document.createElement("style"),e=new URL(u);u&&fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{E.appendChild(t)},1)})})(),262144&t.$$.dirty[0]&&m&&(e=m,yr.set(e))},[o,s,l,p,v,w,E,_,T,x,C,a,i,c,u,d,h,f,m,g,()=>x(),(e,t,n)=>T(e,t),function(e){A[e?"unshift":"push"](()=>{v=e,n(4,v)})},()=>C(),function(e){A[e?"unshift":"push"](()=>{E=e,n(6,E)})}]}function $r(e,{delay:t=0,duration:n=400,easing:r=m}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*o}}customElements.get("casino-slider")||customElements.define("casino-slider",class extends q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:var(--emfe-w-color-primary, #D0046C);background:-webkit-linear-gradient(to left, var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C));background:linear-gradient(to left, var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emfe-w-color-white, #FFFFFF);margin:0 auto}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer .CarouselItems{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;overflow-x:scroll;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselItems::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems .CarouselItem{display:flex;height:100%;align-items:center;padding:13px 19px;font-size:16px;text-align:center;line-height:26px;transition:all 150ms ease-in-out;white-space:nowrap}.CarouselContainer .CarouselItems .CarouselItem:hover,.CarouselContainer .CarouselItems .CarouselItem.active{background:var(--emfe-w-color-contrast, #07072A);cursor:pointer}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:rgba(255, 255, 255, 0.3)}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px}.CarouselContainer .CarouselLeftArrow:hover,.CarouselContainer .CarouselRightArrow:hover{cursor:pointer}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active{background:transparent}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a{border-top:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary, #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-color-white, #FFFFFF);text-decoration:none}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}</style>",X(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},kr,Fr,n,{sliderdata:0,onclickeventname:11,actionevent:12,favoritesnumber:1,location:2,clientstyling:13,clientstylingurl:14,identity:15,containermaxwidth:3,isprimarymenu:16,issecondarymenu:17,lang:18,activeindex:19},[-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["sliderdata","onclickeventname","actionevent","favoritesnumber","location","clientstyling","clientstylingurl","identity","containermaxwidth","isprimarymenu","issecondarymenu","lang","activeindex"]}get sliderdata(){return this.$$.ctx[0]}set sliderdata(e){this.$set({sliderdata:e}),B()}get onclickeventname(){return this.$$.ctx[11]}set onclickeventname(e){this.$set({onclickeventname:e}),B()}get actionevent(){return this.$$.ctx[12]}set actionevent(e){this.$set({actionevent:e}),B()}get favoritesnumber(){return this.$$.ctx[1]}set favoritesnumber(e){this.$set({favoritesnumber:e}),B()}get location(){return this.$$.ctx[2]}set location(e){this.$set({location:e}),B()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$set({clientstyling:e}),B()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$set({clientstylingurl:e}),B()}get identity(){return this.$$.ctx[15]}set identity(e){this.$set({identity:e}),B()}get containermaxwidth(){return this.$$.ctx[3]}set containermaxwidth(e){this.$set({containermaxwidth:e}),B()}get isprimarymenu(){return this.$$.ctx[16]}set isprimarymenu(e){this.$set({isprimarymenu:e}),B()}get issecondarymenu(){return this.$$.ctx[17]}set issecondarymenu(e){this.$set({issecondarymenu:e}),B()}get lang(){return this.$$.ctx[18]}set lang(e){this.$set({lang:e}),B()}get activeindex(){return this.$$.ctx[19]}set activeindex(e){this.$set({activeindex:e}),B()}});const Nr={en:{languageSelector:{language:"Select Language"}},fr:{languageSelector:{language:"Sélectionner la langue"}},tr:{languageSelector:{language:"Dil Seçin"}},ro:{languageSelector:{language:"Selecteaza limba"}},es:{languageSelector:{language:"Seleccione el idioma"}},pt:{languageSelector:{language:"Selecione o idioma"}}};function Dr(e,t,n){const r=e.slice();return r[0]=t[n],r}function Ur(e,t,n){const r=e.slice();return r[33]=t[n],r}function jr(e,t,n){const r=e.slice();return r[36]=t[n],r}function Gr(n){let r,o,a,i,s,l,c,u,d,p,h,f,m,g,y,b,v,w,E,_,M,T,t,x,C,S,A=n[10]("languageSelector.language")+"",I=n[2],L=[];for(let e=0;e<I.length;e+=1)L[e]=Wr(jr(n,I,e));let P=n[4],B=[];for(let e=0;e<P.length;e+=1)B[e]=Vr(Ur(n,P,e));let O=n[8],H=[];for(let e=0;e<O.length;e+=1)H[e]=zr(Dr(n,O,e));return{c(){r=re("div"),o=re("span"),a=re("slot"),a.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>',l=ae(),c=re("div"),u=re("ul");for(let e=0;e<L.length;e+=1)L[e].c();h=ae(),f=re("ul");for(let e=0;e<B.length;e+=1)B[e].c();y=ae(),b=re("div"),v=re("span"),w=oe(A),E=ae(),_=re("select");for(let e=0;e<H.length;e+=1)H[e].c();se(a,"name","close"),se(o,"class",i=n[5]?"ModalCloseBtn":""),se(o,"part",s=n[5]?"ModalCloseBtn":""),se(o,"role","button"),se(u,"class",d="HamburgerPrimaryMenu "+(n[6]?"HamburgerPrimaryMenuFixed":"")),se(u,"part",p="HamburgerPrimaryMenu "+(n[6]?"HamburgerPrimaryMenuFixed":"")),se(f,"class",m="HamburgerSecondaryMenu "+(n[6]?"HamburgerSecondaryMenuFixed":"")),se(f,"part",g="HamburgerSecondaryMenu "+(n[6]?"HamburgerSecondaryMenuFixed":"")),se(_,"class","Item ItemLanguage"),se(_,"part","Item ItemLanguage"),void 0===n[9]&&k(()=>n[19].call(_)),se(b,"class","LanguageSelectorTitle"),se(b,"part","LanguageSelectorTitle"),se(c,"class",M="HamburgerModalContainer "+(n[5]?"ActiveHamburgerMenu":"")),se(c,"part",T="HamburgerModalContainer "+(n[5]?"ActiveHamburgerMenu":"")),se(r,"class","HamburgerModalWindow"),se(r,"part","HamburgerModalWindow")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(r,l),ee(r,c),ee(c,u);for(let e=0;e<L.length;e+=1)L[e].m(u,null);ee(c,h),ee(c,f);for(let e=0;e<B.length;e+=1)B[e].m(f,null);ee(c,y),ee(c,b),ee(b,v),ee(v,w),ee(b,E),ee(b,_);for(let e=0;e<H.length;e+=1)H[e].m(_,null);F(_,n[9]),n[21](r),x=!0,C||(S=[ie(o,"click",n[11]),ie(_,"change",n[19]),ie(_,"change",n[20])],C=!0)},p(e,t){if(n=e,(!x||32&t[0]&&i!==(i=n[5]?"ModalCloseBtn":""))&&se(o,"class",i),(!x||32&t[0]&&s!==(s=n[5]?"ModalCloseBtn":""))&&se(o,"part",s),4108&t[0]){let e;for(I=n[2],e=0;e<I.length;e+=1){const o=jr(n,I,e);L[e]?L[e].p(o,t):(L[e]=Wr(o),L[e].c(),L[e].m(u,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=I.length}if((!x||64&t[0]&&d!==(d="HamburgerPrimaryMenu "+(n[6]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"class",d),(!x||64&t[0]&&p!==(p="HamburgerPrimaryMenu "+(n[6]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"part",p),16&t[0]){let e;for(P=n[4],e=0;e<P.length;e+=1){const o=Ur(n,P,e);B[e]?B[e].p(o,t):(B[e]=Vr(o),B[e].c(),B[e].m(f,null))}for(;e<B.length;e+=1)B[e].d(1);B.length=P.length}if((!x||64&t[0]&&m!==(m="HamburgerSecondaryMenu "+(n[6]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"class",m),(!x||64&t[0]&&g!==(g="HamburgerSecondaryMenu "+(n[6]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"part",g),(!x||1024&t[0])&&A!==(A=n[10]("languageSelector.language")+"")&&le(w,A),256&t[0]){let e;for(O=n[8],e=0;e<O.length;e+=1){const o=Dr(n,O,e);H[e]?H[e].p(o,t):(H[e]=zr(o),H[e].c(),H[e].m(_,null))}for(;e<H.length;e+=1)H[e].d(1);H.length=O.length}768&t[0]&&F(_,n[9]),(!x||32&t[0]&&M!==(M="HamburgerModalContainer "+(n[5]?"ActiveHamburgerMenu":"")))&&se(c,"class",M),(!x||32&t[0]&&T!==(T="HamburgerModalContainer "+(n[5]?"ActiveHamburgerMenu":"")))&&se(c,"part",T)},i(e){x||(k(()=>{t=t||V(r,$r,{transitionDuration:qr},!0),t.run(1)}),x=!0)},o(e){t=t||V(r,$r,{transitionDuration:qr},!1),t.run(0),x=!1},d(e){e&&ne(r),R(L,e),R(B,e),R(H,e),n[21](null),e&&t&&t.end(),C=!1,J(S)}}}function Wr(n){let r,o,a,i,s,l,c,u,d,p,h,f=n[36].label+"";function m(){return n[18](n[36])}return{c(){r=re("li"),o=re("div"),a=re("img"),s=ae(),l=oe(f),c=ae(),a.src!==(i=n[36].img)&&se(a,"src",i),se(a,"alt","menu icon"),se(o,"class","HamburgerItemContainer"),se(o,"part","HamburgerItemContainer"),se(r,"class",u=n[3]===n[36].id?"ActiveItem":""),se(r,"part",d=n[3]===n[36].id?"ActiveItem":"")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(o,s),ee(o,l),ee(r,c),p||(h=ie(r,"click",m),p=!0)},p(e,t){n=e,4&t[0]&&a.src!==(i=n[36].img)&&se(a,"src",i),4&t[0]&&f!==(f=n[36].label+"")&&le(l,f),12&t[0]&&u!==(u=n[3]===n[36].id?"ActiveItem":"")&&se(r,"class",u),12&t[0]&&d!==(d=n[3]===n[36].id?"ActiveItem":"")&&se(r,"part",d)},d(e){e&&ne(r),p=!1,h()}}}function Vr(e){let n,r,o,a,i,s,l,c,u=e[33].label+"";return{c(){n=re("li"),r=re("a"),o=re("img"),i=ae(),s=oe(u),c=ae(),o.src!==(a=e[33].img)&&se(o,"src",a),se(o,"alt","menu icon"),se(r,"href",l=e[33].path)},m(e,t){te(e,n,t),ee(n,r),ee(r,o),ee(r,i),ee(r,s),ee(n,c)},p(e,t){16&t[0]&&o.src!==(a=e[33].img)&&se(o,"src",a),16&t[0]&&u!==(u=e[33].label+"")&&le(s,u),16&t[0]&&l!==(l=e[33].path)&&se(r,"href",l)},d(e){e&&ne(n)}}}function zr(e){let n,r,o,a=e[0]+"";return{c(){n=re("option"),r=oe(a),n.__value=o=e[0],n.value=n.__value,n.selected=!0},m(e,t){te(e,n,t),ee(n,r)},p(e,t){256&t[0]&&a!==(a=e[0]+"")&&le(r,a),256&t[0]&&o!==(o=e[0])&&(n.__value=o,n.value=n.__value)},d(e){e&&ne(n)}}}function Xr(e){let n,r,o=!0===e[7]&&Gr(e);return{c(){o&&o.c(),n=_(),this.c=b},m(e,t){o&&o.m(e,t),te(e,n,t),r=!0},p(e,t){!0===e[7]?o?(o.p(e,t),128&t[0]&&j(o,1)):(o=Gr(e),o.c(),j(o,1),o.m(n.parentNode,n)):o&&(U={r:0,c:[],p:U},G(o,1,1,()=>{o=null}),U.r||J(U.c),U=U.p)},i(e){r||(j(o),r=!0)},o(e){G(o),r=!1},d(e){o&&o.d(e),e&&ne(n)}}}let qr=350;function Zr(t,e,n){let r;$(t,Sr,e=>n(10,r=e));let o,a,{menuitemsurl:i=""}=e,{lang:s="en"}=e,{activecategory:l=""}=e,{languageslist:c=""}=e,u=window.navigator.userAgent,d=[],p="",h=[],f=!1,m=!1,g=!1,y=!0,b=[],v=!1,w="";Object.keys(Nr).forEach(e=>{sr(e,Nr[e])});const E=e=>{"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),n(7,g=!0),setTimeout(()=>{n(5,f=!0)},500),setTimeout(()=>{n(6,m=!0)},1500),M(i))},_=(e,t)=>{n(3,p=e),n(4,h=t||[])},M=n=>new Promise((e,t)=>{a&&!v?e(a):T(n)}),T=e=>{fetch(e).then(e=>e.json()).then(e=>{n(2,d=e),d.length&&_(d[0].id,d[0].children),n(17,y=!1),a=e,v=!1},e=>{console.error(e)})},x=()=>{v=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:w},window.location.href)};return D(()=>(window.addEventListener("message",E,!1),Ar(u),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"menuitemsurl"in e&&n(14,i=e.menuitemsurl),"lang"in e&&n(0,s=e.lang),"activecategory"in e&&n(15,l=e.activecategory),"languageslist"in e&&n(16,c=e.languageslist)},t.$$.update=()=>{var e;65537&t.$$.dirty[0]&&s&&c&&(e=s,yr.set(e),v&&T(i),n(8,b=c.replace(/ /g,"").split(",")),n(8,b=b.map(e=>e.toUpperCase())),n(9,w=s.toUpperCase())),163840&t.$$.dirty[0]&&l&&!y&&(0<(e=d.filter(e=>e.path==l)).length&&_(e[0].id,e[0].children))},[s,void 0,d,p,h,f,m,g,b,w,r,()=>{n(7,g=!1),n(5,f=!1),n(6,m=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},_,x,i,l,c,y,e=>_(e.id,e.children),function(){w=N(this),n(9,w),n(8,b)},()=>x(),function(e){A[e?"unshift":"push"](()=>{o=e,n(1,o)})}]}customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",class extends q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LanguageSelectorTitle{width:94%;position:absolute;bottom:3%}.LanguageSelectorTitle span{display:inline;color:var(--emfe-w-color-gray-150, #828282);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-color-white, #FFFFFF);border:none}.ItemLanguage option{color:var(--emfe-w-color-contrast, #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-color-black, #000000);width:0vw;height:100%;padding:0;border-top:0;border-radius:0;transition:width .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-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-color-contrast, #07072A);white-space:nowrap;overflow:scroll;list-style:none;border-bottom:2px solid var(--emfe-w-color-primary, #D0046C);width:90vw}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:100px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emfe-w-color-primary, #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}.HamburgerModalWindow .HamburgerSecondaryMenu li{margin:0 20px;padding:20px 0;display:flex;align-items:center;gap:15px}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emfe-w-color-white, #FFFFFF);font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emfe-w-color-primary, #D0046C)}</style>",X(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Zr,Xr,n,{menuitemsurl:14,lang:0,activecategory:15,languageslist:16},[-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["menuitemsurl","lang","activecategory","languageslist"]}get menuitemsurl(){return this.$$.ctx[14]}set menuitemsurl(e){this.$set({menuitemsurl:e}),B()}get lang(){return this.$$.ctx[0]}set lang(e){this.$set({lang:e}),B()}get activecategory(){return this.$$.ctx[15]}set activecategory(e){this.$set({activecategory:e}),B()}get languageslist(){return this.$$.ctx[16]}set languageslist(e){this.$set({languageslist:e}),B()}});const Kr={en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},de:{balanceModal:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"}},it:{balanceModal:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"}},fr:{balanceModal:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"}},es:{balanceModal:{balanceTitle:"Tu saldo",totalBalance:"Saldo total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo de bonificación",depositButton:"Depositar"}},tr:{balanceModal:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"}},ru:{balanceModal:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"}},ro:{balanceModal:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"}},hr:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"}},hu:{balanceModal:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"}},pl:{balanceModal:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"}},pt:{balanceModal:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"}},sl:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"}},sr:{balanceModal:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}}};var Yr,Qr,Jr=(Qr=(Yr={path:void 0,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&Yr.path)}}).exports,function(e){var r,P=e.setTimeout,B=e.clearTimeout,O=e.XMLHttpRequest,o=e.XDomainRequest,t=e.ActiveXObject,n=e.EventSource,a=e.document,d=e.Promise,p=e.fetch,i=e.Response,h=e.TextDecoder,s=e.TextEncoder,f=e.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}"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==O&&null!=t&&(O=function(){return new t("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=p,p=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}}),l.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,a=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==o&&(s<128||191<s||!t(a<<6|63&s,o-6,n(o,a)))&&(o=0,a=65533,r+=String.fromCharCode(a)),0===o?(a=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(a,o,n(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?r+=String.fromCharCode(a):(r+=String.fromCharCode(55296+(a-65535-1>>10)),r+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,r},null!=h&&null!=s&&function(){try{return"test"===(new h).decode((new s).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(h=l);var u=function(){};function H(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 c(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function m(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),a=o.shift(),o=o.join(": ");t[c(a)]=o}this._map=t}function R(){}function g(e){this._headers=e}function F(){}function y(){this._listeners=Object.create(null)}function b(e){P(function(){throw e},0)}function v(e){this.type=e,this.target=void 0}function k(e,t){v.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function $(e,t){v.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function N(e,t){v.call(this,e),this.error=t.error}H.prototype.open=function(e,t){this._abort(!0);var o=this,a=this._xhr,i=1,n=0;this._abort=function(e){0!==o._sendTimeout&&(B(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=u,a.onerror=u,a.onabort=u,a.onprogress=u,a.onreadystatechange=u,a.abort(),0!==n&&(B(n),n=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),i=0};function r(){if(1===i){var t=0,n="",r=void 0;if("contentType"in a)t=200,n="OK",r=a.contentType;else try{t=a.status,n=a.statusText,r=a.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}function s(){if(r(),2===i||3===i){i=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}}function l(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:u}),s(),1===i||2===i||3===i){if(i=4,0!==n&&(B(n),n=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 c=function(){n=P(function(){c()},500),3===a.readyState&&s()};"onload"in a&&(a.onload=function(e){l("load",e)}),"onerror"in a&&(a.onerror=function(e){l("error",e)}),"onabort"in a&&(a.onabort=function(e){l("abort",e)}),"onprogress"in a&&(a.onprogress=s),"onreadystatechange"in a&&(a.onreadystatechange=function(e){e=e,null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||l(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||s():2===a.readyState&&r())}),!("contentType"in a)&&"ontimeout"in O.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(n=P(function(){c()},0))},H.prototype.abort=function(){this._abort(!1)},H.prototype.getResponseHeader=function(e){return this._contentType},H.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},H.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},H.prototype.send=function(){if("ontimeout"in O.prototype&&("sendAsBinary"in O.prototype||"mozAnon"in O.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=P(function(){t._sendTimeout=0,t.send()},4)}},m.prototype.get=function(e){return this._map[c(e)]},null!=O&&null==O.HEADERS_RECEIVED&&(O.HEADERS_RECEIVED=2),R.prototype.open=function(o,a,t,n,e,r,i){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===O.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),a(e,t,n,new m(r)))},o.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},g.prototype.get=function(e){return this._headers.get(e)},F.prototype.open=function(e,t,o,n,r,a,i){var s=null,l=new f,c=l.signal,u=new h;return p(r,{headers:i,credentials:a?"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 g(e.headers)),new d(function(t,n){var r=function(){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()}}},y.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)}}},y.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var o=!1,a=0;a<r.length;a+=1)r[a]===t&&(o=!0);o||r.push(t)},y.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],a=0;a<r.length;a+=1)r[a]!==t&&o.push(r[a]);0===o.length?delete n[e]:n[e]=o}},k.prototype=Object.create(v.prototype),$.prototype=Object.create(v.prototype),N.prototype=Object.create(v.prototype);function D(e,t){return e=null==e?t:parseInt(e,10),G(e=e!=e?t:e)}function U(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){b(e)}}var j=/^text\/event\-stream(;.*)?$/i,G=function(e){return Math.min(Math.max(e,1e3),18e6)};function w(e,t){y.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,function(l,a,e){a=String(a);function i(e,t,n,r){var o,a;0===E&&(200===e&&null!=n&&j.test(n)?(E=1,m=Date.now(),f=d,l.readyState=1,o=new $("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),U(l,l.onopen,o)):(a="",a=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.",I(),o=new $("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),U(l,l.onerror,o),console.error(a)))}function s(e){if(1===E){for(var t=-1,n=0;n<e.length;n+=1)(i=e.charCodeAt(n))!=="\n".charCodeAt(0)&&i!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?x:"")+e.slice(0,t+1);x=(-1===t?x:"")+e.slice(t+1),""!==e&&(m=Date.now(),g+=e.length);for(var o=0;o<r.length;o+=1){var a,i=r.charCodeAt(o);if(-1===C&&i==="\n".charCodeAt(0))C=0;else if(-1===C&&(C=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==C&&(1===C&&(A=o+1),a=r.slice(S,A-1),s=r.slice(A+(A<o&&r.charCodeAt(A)===" ".charCodeAt(0)?1:0),o),"data"===a?(_+="\n",_+=s):"id"===a?M=s:"event"===a?T=s:"retry"===a?(d=D(s,d),f=d):"heartbeatTimeout"===a&&(p=D(s,p),0!==w&&(B(w),w=P(function(){L()},p)))),0===C){if(""!==_){h=M;var s=new k(T=""===T?"message":T,{data:_.slice(1),lastEventId:M});if(l.dispatchEvent(s),"open"===T?U(l,l.onopen,s):"message"===T?U(l,l.onmessage,s):"error"===T&&U(l,l.onerror,s),2===E)return}T=_=""}C=i==="\r".charCodeAt(0)?-1:0}else 0===C&&(S=o,C=1),1===C?i===":".charCodeAt(0)&&(A=o+1,C=2):2===C&&(C=3)}}}function c(e){var t;1!==E&&0!==E||(E=-1,0!==w&&(B(w),w=0),w=P(function(){L()},f),f=G(Math.min(16*d,2*f)),l.readyState=0,t=new N("error",{error:e}),l.dispatchEvent(t),U(l,l.onerror,t),null!=e&&console.error(e))}var t=Boolean(e.withCredentials),u=e.lastEventIdQueryParameterName||"lastEventId",d=G(1e3),p=D(e.heartbeatTimeout,45e3),h="",f=d,m=!1,g=0,n=e.headers||{},e=e.Transport,y=W&&null==e?void 0:new H(new(null!=e?e:null!=O&&"withCredentials"in O.prototype||null==o?O:o)),b=new(null!=e&&"string"!=typeof e?e:null==y?F:R),v=void 0,w=0,E=-1,_="",M="",T="",x="",C=0,S=0,A=0,I=function(){E=2,null!=v&&(v.abort(),v=void 0),0!==w&&(B(w),w=0),l.readyState=2},L=function(){if(w=0,-1===E){m=!1,g=0,w=P(function(){L()},p),M=h,x=T=_="",C=A=S=E=0;var e=a;"data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==h&&(e=-1===(t=a.indexOf("?"))?a:a.slice(0,t+1)+a.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===u?"":e}),e+=(-1===a.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(h));var t=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{v=b.open(y,i,s,c,e,t,n)}catch(e){throw I(),e}}else m||null==v?(t=Math.max((m||Date.now())+p-Date.now(),1),m=!1,w=P(function(){L()},t)):(c(new Error("No activity within "+p+" milliseconds. "+(0===E?"No response received.":g+" chars received.")+" Reconnecting.")),null!=v&&(v.abort(),v=void 0))};l.url=a,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=I,L()}(this,e,t)}var W=null!=p&&null!=i&&"body"in i.prototype;(w.prototype=Object.create(y.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;e=n;null==O||null!=n&&"withCredentials"in n.prototype||(e=w),(i=Qr).EventSourcePolyfill=w,i.NativeEventSource=n,i.EventSource=e}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Ie:globalThis),Yr.exports);function eo(n){let r,o,a,i,s,l,c,u,d,p,h,f,m,g,y,b,v,w,E,_,M,T,x,C,S,A,I,L,P,B,O,H,R,F,k,$,N,D,U,j,G,W,V,z,X,q=n[3]("balanceModal.balanceTitle")+"",Z=n[3]("balanceModal.totalBalance")+"",K=n[3]("balanceModal.cashBalance")+"",Y=n[3]("balanceModal.bonusBalance")+"",Q=n[3]("balanceModal.depositButton")+"";return{c(){r=re("div"),o=re("div"),a=ae(),i=re("div"),s=re("div"),l=re("p"),c=oe(q),u=ae(),d=re("div"),p=re("div"),h=re("p"),f=oe(Z),m=ae(),g=re("p"),y=re("span"),b=oe(n[1]),v=ae(),w=re("span"),E=oe(n[2]),_=ae(),M=re("div"),T=re("p"),x=oe(K),C=ae(),S=re("p"),A=re("span"),A.textContent=`${n[4].get("Casino").balanceAmount}`,I=ae(),L=re("span"),P=oe(n[2]),B=ae(),O=re("div"),H=re("p"),R=oe(Y),F=ae(),k=re("p"),$=re("span"),$.textContent=`${n[4].get("UBS").balanceAmount}`,N=ae(),D=re("span"),U=oe(n[2]),j=ae(),G=re("div"),W=re("button"),V=oe(Q),se(o,"class","BalanceModalClose"),se(l,"class","BalanceModalTitle"),se(l,"part","BalanceModalTitle"),se(s,"class","BalanceModalHeader"),se(s,"part","BalanceModalHeader"),se(h,"class","BalanceModalText"),se(h,"part","BalanceModalText"),se(y,"class","BalanceModalAmount"),se(y,"part","BalanceModalAmount"),se(w,"class","BalanceModalCurrency"),se(w,"part","BalanceModalCurrency"),se(g,"class","BalanceModalValue"),se(g,"part","BalanceModalValue"),se(p,"class","BalanceModalRow"),se(p,"part","BalanceModalRow"),se(T,"class","BalanceModalText"),se(T,"part","BalanceModalText"),se(A,"class","BalanceModalAmount"),se(A,"part","BalanceModalAmount"),se(L,"class","BalanceModalCurrency"),se(L,"part","BalanceModalCurrency"),se(S,"class","BalanceModalValue"),se(S,"part","BalanceModalValue"),se(M,"class","BalanceModalRow"),se(M,"part","BalanceModalRow"),se(H,"class","BalanceModalText"),se(H,"part","BalanceModalText"),se($,"class","BalanceModalAmount"),se($,"part","BalanceModalAmount"),se(D,"class","BalanceModalCurrency"),se(D,"part","BalanceModalCurrency"),se(k,"class","BalanceModalValue"),se(k,"part","BalanceModalValue"),se(O,"class","BalanceModalRow"),se(O,"part","BalanceModalRow"),se(d,"class","BalanceModalBody"),se(d,"part","BalanceModalBody"),se(W,"class","BalanceModalAction"),se(W,"part","BalanceModalAction"),se(G,"class","BalanceModalFooter"),se(G,"part","BalanceModalFooter"),se(i,"class","BalanceModal"),se(i,"part","BalanceModal"),se(r,"class","BalanceModalWrapper"),se(r,"part","BalanceModalWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(r,a),ee(r,i),ee(i,s),ee(s,l),ee(l,c),ee(i,u),ee(i,d),ee(d,p),ee(p,h),ee(h,f),ee(p,m),ee(p,g),ee(g,y),ee(y,b),ee(g,v),ee(g,w),ee(w,E),ee(d,_),ee(d,M),ee(M,T),ee(T,x),ee(M,C),ee(M,S),ee(S,A),ee(S,I),ee(S,L),ee(L,P),ee(d,B),ee(d,O),ee(O,H),ee(H,R),ee(O,F),ee(O,k),ee(k,$),ee(k,N),ee(k,D),ee(D,U),ee(i,j),ee(i,G),ee(G,W),ee(W,V),z||(X=[ie(o,"click",n[12]),ie(W,"click",n[13])],z=!0)},p(e,t){8&t&&q!==(q=e[3]("balanceModal.balanceTitle")+"")&&le(c,q),8&t&&Z!==(Z=e[3]("balanceModal.totalBalance")+"")&&le(f,Z),2&t&&le(b,e[1]),4&t&&le(E,e[2]),8&t&&K!==(K=e[3]("balanceModal.cashBalance")+"")&&le(x,K),4&t&&le(P,e[2]),8&t&&Y!==(Y=e[3]("balanceModal.bonusBalance")+"")&&le(R,Y),4&t&&le(U,e[2]),8&t&&Q!==(Q=e[3]("balanceModal.depositButton")+"")&&le(V,Q)},d(e){e&&ne(r),z=!1,J(X)}}}function to(n){let r,o,a;return{c(){r=re("div"),se(r,"class","ShowBalanceModalOverlay"),se(r,"part","ShowBalanceModalOverlay")},m(e,t){te(e,r,t),o||(a=ie(r,"click",n[14]),o=!0)},p:b,d(e){e&&ne(r),o=!1,a()}}}function no(n){let r,o,a,i,s,l,c,u,d,p,h,f,m=n[0]&&eo(n),g=n[0]&&to(n);return{c(){r=re("div"),o=re("p"),a=oe(n[1]),i=ae(),s=oe(n[2]),l=ae(),c=re("span"),c.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>',u=ae(),m&&m.c(),d=ae(),g&&g.c(),p=_(),this.c=b,se(o,"class","BalanceValue"),se(o,"part","BalanceValue"),se(r,"class","ShowBalance"),se(r,"part","ShowBalance")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(o,i),ee(o,s),ee(o,l),ee(o,c),ee(r,u),m&&m.m(r,null),te(e,d,t),g&&g.m(e,t),te(e,p,t),h||(f=ie(o,"click",n[11]),h=!0)},p(e,[t]){2&t&&le(a,e[1]),4&t&&le(s,e[2]),e[0]?m?m.p(e,t):(m=eo(e),m.c(),m.m(r,null)):m&&(m.d(1),m=null),e[0]?g?g.p(e,t):(g=to(e),g.c(),g.m(p.parentNode,p)):g&&(g.d(1),g=null)},i:b,o:b,d(e){e&&ne(r),m&&m.d(),e&&ne(d),g&&g.d(e),e&&ne(p),h=!1,f()}}}function ro(t,e,o){let n;$(t,Sr,e=>o(3,n=e));var a=this&&this.__awaiter||function(e,i,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{a(l.next(e))}catch(e){t(e)}}function o(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((l=l.apply(e,i||[])).next())})};let i,{userid:s=""}=e,{session:l=""}=e,{endpoint:c=""}=e,{lang:u="en"}=e,r=!1,d="",p="",h=!1,f=new Map;Object.keys(Kr).forEach(e=>{sr(e,Kr[e])});const m=e=>{switch(e){case"balance":o(0,r=!0);break;case"closebalance":o(0,r=!1)}},g=()=>{m("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href)};return D(()=>()=>{i&&i.close()}),t.$$set=e=>{"userid"in e&&o(7,s=e.userid),"session"in e&&o(8,l=e.session),"endpoint"in e&&o(9,c=e.endpoint),"lang"in e&&o(10,u=e.lang)},t.$$.update=()=>{var r,e;1920&t.$$.dirty&&c&&s&&l&&u&&(e=u,yr.set(e),r=`${c}/player/${s}/account`,a(void 0,void 0,void 0,function*(){try{h=!0;const e=yield fetch(r,{method:"GET",headers:{"X-SessionID":l}}),t=yield e.json();if(!e.ok)throw h=!1,new Error("Failed to fetch balance data !");{h=!1,t.items.map(e=>f.set(e.displayName,e));const n=f.get("Casino"),r=f.get("UBS");o(2,p=n.currency),o(1,d=(parseFloat(n.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))}}catch(e){h=!1,console.log("Balance error: ",e)}finally{h=!1}})),896&t.$$.dirty&&c&&s&&l&&((e,t)=>{let n=new Jr.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});i&&i.close(),i=n,n.addEventListener("message",e=>{try{var{balanceChange:t}=JSON.parse(e.data),n=f.get("Casino"),r=f.get("UBS");t&&t[n.id]&&f.set("Casino",Object.assign(Object.assign({},n),{balanceAmount:t[n.id].afterAmount})),t&&t[r.id]&&f.set("UBS",Object.assign(Object.assign({},n),{balanceAmount:t[r.id].afterAmount})),o(1,d=(parseFloat(n.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))}catch(e){console.log("Balance stream failed: ",e)}})})(`${c}/player/${s}/balance/updates`,l)},[r,d,p,n,f,m,g,s,l,c,u,()=>m("balance"),()=>m("closebalance"),()=>g(),()=>m("closebalance")]}function oo(e,t,n){const r=e.slice();return r[61]=t[n],r}function ao(e,t,n){const r=e.slice();return r[64]=t[n],r}function io(e,t,n){const r=e.slice();return r[61]=t[n],r}function so(e,t,n){const r=e.slice();return r[64]=t[n],r}function lo(n){let r,o,a,i,e,s,l,c,u,d,p,h,f,m,g,y,b,v,w,E,_,M,T=n[17]("headerItem.login")+"",x=n[17]("headerItem.register")+"",C=!n[7]&&po(n),S=n[14],A=[];for(let e=0;e<S.length;e+=1)A[e]=ho(ao(n,S,e));let I=n[9],L=[];for(let e=0;e<I.length;e+=1)L[e]=fo(oo(n,I,e));return{c(){r=re("header"),o=re("div"),a=re("div"),i=re("img"),s=ae(),l=re("nav"),C&&C.c(),c=ae(),u=re("div"),d=re("div"),p=re("div"),h=oe(T),f=ae(),m=re("div"),g=oe(x),y=ae(),b=re("select");for(let e=0;e<A.length;e+=1)A[e].c();v=ae(),w=re("nav"),E=re("ul");for(let e=0;e<L.length;e+=1)L[e].c();i.src!==(e=n[16])&&se(i,"src",e),se(i,"alt","Logo"),se(a,"class","HeaderBranding"),se(a,"part","HeaderBranding"),se(l,"class","HeaderMainNav"),se(l,"part","HeaderMainNav"),se(p,"class","Item ItemLogin"),se(p,"part","Item ItemLogin"),se(p,"tabindex","0"),se(m,"class","Item ItemRegister"),se(m,"part","Item ItemRegister"),se(m,"tabindex","0"),se(b,"class","Item ItemLanguage"),se(b,"part","Item ItemLanguage"),void 0===n[10]&&k(()=>n[42].call(b)),se(d,"class","HeaderItemsMenu"),se(d,"part","HeaderItemsMenu"),se(u,"class","HeaderTopActions"),se(u,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(E,"class","HeaderItemsMenuSecondary"),se(E,"part","HeaderItemsMenuSecondary"),se(w,"class","HeaderSecondaryNav"),se(w,"part","HeaderSecondaryNav"),se(r,"class","HeaderWrapper"),se(r,"part","HeaderWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(o,s),ee(o,l),C&&C.m(l,null),ee(o,c),ee(o,u),ee(u,d),ee(d,p),ee(p,h),ee(d,f),ee(d,m),ee(m,g),ee(d,y),ee(d,b);for(let e=0;e<A.length;e+=1)A[e].m(b,null);F(b,n[10]),ee(r,v),ee(r,w),ee(w,E);for(let e=0;e<L.length;e+=1)L[e].m(E,null);_||(M=[ie(a,"click",n[39]),ie(p,"click",n[40]),ie(m,"click",n[41]),ie(b,"change",n[42]),ie(b,"change",n[43])],_=!0)},p(t,n){if(65536&n[0]&&i.src!==(e=t[16])&&se(i,"src",e),t[7]?C&&(C.d(1),C=null):C?C.p(t,n):(C=po(t),C.c(),C.m(l,null)),131072&n[0]&&T!==(T=t[17]("headerItem.login")+"")&&le(h,T),131072&n[0]&&x!==(x=t[17]("headerItem.register")+"")&&le(g,x),16384&n[0]){let e;for(S=t[14],e=0;e<S.length;e+=1){var r=ao(t,S,e);A[e]?A[e].p(r,n):(A[e]=ho(r),A[e].c(),A[e].m(b,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=S.length}if(17408&n[0]&&F(b,t[10]),512&n[0]){let e;for(I=t[9],e=0;e<I.length;e+=1){var o=oo(t,I,e);L[e]?L[e].p(o,n):(L[e]=fo(o),L[e].c(),L[e].m(E,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=I.length}},d(e){e&&ne(r),C&&C.d(),R(A,e),R(L,e),_=!1,J(M)}}}function co(n){let r,o,a,i,s,l,c,u,d,p,h,f,m,g,y,b,v,w,E,_,M,T,x,C,S,A=n[17]("headerItem.login")+"",I=n[17]("headerItem.register")+"";return{c(){r=re("header"),o=re("div"),a=re("div"),i=t("svg"),s=t("defs"),l=t("style"),c=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),u=t("g"),d=t("rect"),p=t("rect"),h=t("rect"),f=ae(),m=re("div"),g=re("img"),b=ae(),v=re("div"),w=re("div"),E=re("div"),_=oe(A),M=ae(),T=re("div"),x=oe(I),se(d,"class","a"),se(d,"width","18"),se(d,"height","2"),se(d,"transform","translate(14 13)"),se(p,"class","a"),se(p,"width","22"),se(p,"height","2"),se(p,"transform","translate(14 20)"),se(h,"class","a"),se(h,"width","22"),se(h,"height","2"),se(h,"transform","translate(14 27)"),se(u,"transform","translate(-14 -13)"),se(i,"xmlns","http://www.w3.org/2000/svg"),se(i,"width","22"),se(i,"height","16"),se(i,"viewBox","0 0 22 16"),se(a,"class","HeaderMobileMainNav"),se(a,"part","HeaderMobileMainNav"),g.src!==(y=n[16])&&se(g,"src",y),se(g,"alt","Logo"),se(m,"class","HeaderBranding"),se(m,"part","HeaderBranding"),se(E,"class","Item ItemLogin"),se(E,"part","Item ItemLogin"),se(T,"class","Item ItemRegister"),se(T,"part","Item ItemRegister"),se(w,"class","HeaderItemsMenu"),se(w,"part","HeaderItemsMenu"),se(v,"class","HeaderTopActions"),se(v,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(r,"class","HeaderWrapper HeaderMobileWrapper"),se(r,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(i,s),ee(s,l),ee(l,c),ee(i,u),ee(u,d),ee(u,p),ee(u,h),ee(o,f),ee(o,m),ee(m,g),ee(o,b),ee(o,v),ee(v,w),ee(w,E),ee(E,_),ee(w,M),ee(w,T),ee(T,x),C||(S=[ie(i,"click",n[35]),ie(m,"click",n[36]),ie(E,"click",n[37]),ie(T,"click",n[38])],C=!0)},p(e,t){65536&t[0]&&g.src!==(y=e[16])&&se(g,"src",y),131072&t[0]&&A!==(A=e[17]("headerItem.login")+"")&&le(_,A),131072&t[0]&&I!==(I=e[17]("headerItem.register")+"")&&le(x,I)},d(e){e&&ne(r),C=!1,J(S)}}}function uo(e){let n;function r(e){return e[12]?go:mo}let o=r(e),a=o(e);return{c(){a.c(),n=_()},m(e,t){a.m(e,t),te(e,n,t)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(n.parentNode,n)))},d(e){a.d(e),e&&ne(n)}}}function po(n){let r,o,a;return{c(){r=re("casino-slider"),P(r,"class","HeaderItemsMenu"),P(r,"part","HeaderItemsMenu"),P(r,"identity",_o),P(r,"isprimarymenu","true"),P(r,"actionevent",n[6]),P(r,"activeindex",n[8]),P(r,"location","headerMain")},m(e,t){te(e,r,t),o||(a=i(n[20].call(null,r)),o=!0)},p(e,t){64&t[0]&&P(r,"actionevent",e[6]),256&t[0]&&P(r,"activeindex",e[8])},d(e){e&&ne(r),o=!1,a()}}}function ho(e){let n,r,o,a=e[64]+"";return{c(){n=re("option"),r=oe(a),n.__value=o=e[64],n.value=n.__value},m(e,t){te(e,n,t),ee(n,r)},p(e,t){16384&t[0]&&a!==(a=e[64]+"")&&le(r,a),16384&t[0]&&o!==(o=e[64])&&(n.__value=o,n.value=n.__value)},d(e){e&&ne(n)}}}function fo(e){let n,r,o,a,i=e[61].label+"";return{c(){n=re("li"),r=re("a"),o=oe(i),se(r,"href",a=e[61].path),se(n,"class","ItemSecondary"),se(n,"part","ItemSecondary")},m(e,t){te(e,n,t),ee(n,r),ee(r,o)},p(e,t){512&t[0]&&i!==(i=e[61].label+"")&&le(o,i),512&t[0]&&a!==(a=e[61].path)&&se(r,"href",a)},d(e){e&&ne(n)}}}function mo(n){let r,o,a,i,e,s,l,c,u,d,p,h,f,m,g,y,b,v,w,E,_,M,T,x=n[17]("headerItem.deposit")+"",C=!n[7]&&yo(n),S=n[14],A=[];for(let e=0;e<S.length;e+=1)A[e]=bo(so(n,S,e));let I=n[9],L=[];for(let e=0;e<I.length;e+=1)L[e]=vo(io(n,I,e));return{c(){r=re("header"),o=re("div"),a=re("div"),i=re("img"),s=ae(),l=re("nav"),C&&C.c(),c=ae(),u=re("div"),d=re("div"),p=re("player-account-balance-modal"),h=ae(),f=re("div"),m=oe(x),g=ae(),y=re("div"),y.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>',b=ae(),v=re("select");for(let e=0;e<A.length;e+=1)A[e].c();w=ae(),E=re("nav"),_=re("ul");for(let e=0;e<L.length;e+=1)L[e].c();i.src!==(e=n[16])&&se(i,"src",e),se(i,"alt","Logo"),se(a,"class","HeaderBranding"),se(a,"part","HeaderBranding"),se(l,"class","HeaderMainNav"),se(l,"part","HeaderMainNav"),P(p,"session",n[0]),P(p,"userid",n[1]),P(p,"endpoint",n[2]),P(p,"lang",n[3]),se(f,"class","Item ItemDeposit"),se(f,"part","Item ItemDeposit"),se(y,"class","Item ItemAccount"),se(y,"part","Item ItemAccount"),se(v,"class","Item ItemLanguage"),se(v,"part","Item ItemLanguage"),void 0===n[10]&&k(()=>n[33].call(v)),se(d,"class","HeaderItemsMenu PrimaryMenu"),se(d,"part","HeaderItemsMenu PrimaryMenu"),se(u,"class","HeaderTopActions"),se(u,"part","HeaderItemsMenu"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(_,"class","HeaderItemsMenuSecondary"),se(_,"part","HeaderItemsMenuSecondary"),se(E,"class","HeaderSecondaryNav"),se(E,"part","HeaderSecondaryNav"),se(r,"class","HeaderWrapper"),se(r,"part","HeaderWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(o,s),ee(o,l),C&&C.m(l,null),ee(o,c),ee(o,u),ee(u,d),ee(d,p),ee(d,h),ee(d,f),ee(f,m),ee(d,g),ee(d,y),ee(d,b),ee(d,v);for(let e=0;e<A.length;e+=1)A[e].m(v,null);F(v,n[10]),ee(r,w),ee(r,E),ee(E,_);for(let e=0;e<L.length;e+=1)L[e].m(_,null);M||(T=[ie(a,"click",n[30]),ie(f,"click",n[31]),ie(y,"click",n[32]),ie(v,"change",n[33]),ie(v,"change",n[34])],M=!0)},p(t,n){if(65536&n[0]&&i.src!==(e=t[16])&&se(i,"src",e),t[7]?C&&(C.d(1),C=null):C?C.p(t,n):(C=yo(t),C.c(),C.m(l,null)),1&n[0]&&P(p,"session",t[0]),2&n[0]&&P(p,"userid",t[1]),4&n[0]&&P(p,"endpoint",t[2]),8&n[0]&&P(p,"lang",t[3]),131072&n[0]&&x!==(x=t[17]("headerItem.deposit")+"")&&le(m,x),16384&n[0]){let e;for(S=t[14],e=0;e<S.length;e+=1){var r=so(t,S,e);A[e]?A[e].p(r,n):(A[e]=bo(r),A[e].c(),A[e].m(v,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=S.length}if(17408&n[0]&&F(v,t[10]),512&n[0]){let e;for(I=t[9],e=0;e<I.length;e+=1){var o=io(t,I,e);L[e]?L[e].p(o,n):(L[e]=vo(o),L[e].c(),L[e].m(_,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=I.length}},d(e){e&&ne(r),C&&C.d(),R(A,e),R(L,e),M=!1,J(T)}}}function go(n){let r,o,a,i,s,l,c,u,d,p,h,f,m,g,y,b,v,w=!n[15]&&wo(n);return{c(){r=re("header"),o=re("div"),a=re("div"),w&&w.c(),i=ae(),s=re("div"),l=re("img"),u=ae(),d=re("div"),p=re("div"),h=re("player-account-balance-modal"),f=ae(),m=re("div"),m.textContent="Deposit",g=ae(),y=re("div"),y.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>',se(a,"class","HeaderMobileMainNav"),se(a,"part","HeaderMobileMainNav"),l.src!==(c=n[16])&&se(l,"src",c),se(l,"alt","Logo"),se(s,"class","HeaderBranding"),se(s,"part","HeaderBranding"),P(h,"session",n[0]),P(h,"userid",n[1]),P(h,"endpoint",n[2]),P(h,"lang",n[3]),se(m,"class","Item ItemDeposit"),se(m,"part","Item ItemDeposit"),se(y,"class","Item ItemAccount"),se(y,"part","Item ItemAccount"),se(p,"class","HeaderItemsMenu PrimaryMenu"),se(p,"part","HeaderItemsMenu PrimaryMenu"),se(d,"class","HeaderTopActions"),se(d,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(r,"class","HeaderWrapper HeaderMobileWrapper"),se(r,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),w&&w.m(a,null),ee(o,i),ee(o,s),ee(s,l),ee(o,u),ee(o,d),ee(d,p),ee(p,h),ee(p,f),ee(p,m),ee(p,g),ee(p,y),b||(v=[ie(s,"click",n[27]),ie(m,"click",n[28]),ie(y,"click",n[29])],b=!0)},p(e,t){e[15]?w&&(w.d(1),w=null):w?w.p(e,t):(w=wo(e),w.c(),w.m(a,null)),65536&t[0]&&l.src!==(c=e[16])&&se(l,"src",c),1&t[0]&&P(h,"session",e[0]),2&t[0]&&P(h,"userid",e[1]),4&t[0]&&P(h,"endpoint",e[2]),8&t[0]&&P(h,"lang",e[3])},d(e){e&&ne(r),w&&w.d(),b=!1,J(v)}}}function yo(n){let r,o,a;return{c(){r=re("casino-slider"),P(r,"class","HeaderItemsMenu"),P(r,"part","HeaderItemsMenu"),P(r,"identity",_o),P(r,"isprimarymenu","true"),P(r,"actionevent",n[6]),P(r,"activeindex",n[8]),P(r,"location","headerMain")},m(e,t){te(e,r,t),o||(a=i(n[20].call(null,r)),o=!0)},p(e,t){64&t[0]&&P(r,"actionevent",e[6]),256&t[0]&&P(r,"activeindex",e[8])},d(e){e&&ne(r),o=!1,a()}}}function bo(e){let n,r,o,a=e[64]+"";return{c(){n=re("option"),r=oe(a),n.__value=o=e[64],n.value=n.__value,n.selected=!0},m(e,t){te(e,n,t),ee(n,r)},p(e,t){16384&t[0]&&a!==(a=e[64]+"")&&le(r,a),16384&t[0]&&o!==(o=e[64])&&(n.__value=o,n.value=n.__value)},d(e){e&&ne(n)}}}function vo(e){let n,r,o,a,i=e[61].label+"";return{c(){n=re("li"),r=re("a"),o=oe(i),se(r,"href",a=e[61].path),se(n,"class","ItemSecondary"),se(n,"part","ItemSecondary")},m(e,t){te(e,n,t),ee(n,r),ee(r,o)},p(e,t){512&t[0]&&i!==(i=e[61].label+"")&&le(o,i),512&t[0]&&a!==(a=e[61].path)&&se(r,"href",a)},d(e){e&&ne(n)}}}function wo(n){let r,o,a,i,s,l,c,u,d,p;return{c(){r=t("svg"),o=t("defs"),a=t("style"),i=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),s=t("g"),l=t("rect"),c=t("rect"),u=t("rect"),se(l,"class","a"),se(l,"width","18"),se(l,"height","2"),se(l,"transform","translate(14 13)"),se(c,"class","a"),se(c,"width","22"),se(c,"height","2"),se(c,"transform","translate(14 20)"),se(u,"class","a"),se(u,"width","22"),se(u,"height","2"),se(u,"transform","translate(14 27)"),se(s,"transform","translate(-14 -13)"),se(r,"xmlns","http://www.w3.org/2000/svg"),se(r,"width","22"),se(r,"height","16"),se(r,"viewBox","0 0 22 16")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(a,i),ee(r,s),ee(s,l),ee(s,c),ee(s,u),d||(p=ie(r,"click",n[26]),d=!0)},p:b,d(e){e&&ne(r),d=!1,p()}}}function Eo(e){let n,r;function o(e){return e[13]?uo:e[12]?co:lo}let a=o(e),i=a(e);return{c(){i.c(),n=ae(),r=re("casino-hamburger-menu"),this.c=b,P(r,"menuitemsurl",e[11]),P(r,"activecategory",e[5]),P(r,"lang",e[3]),P(r,"languageslist",e[4])},m(e,t){i.m(e,t),te(e,n,t),te(e,r,t)},p(e,t){a===(a=o(e))&&i?i.p(e,t):(i.d(1),i=a(e),i&&(i.c(),i.m(n.parentNode,n))),2048&t[0]&&P(r,"menuitemsurl",e[11]),32&t[0]&&P(r,"activecategory",e[5]),8&t[0]&&P(r,"lang",e[3]),16&t[0]&&P(r,"languageslist",e[4])},i:b,o:b,d(e){i.d(e),e&&ne(n),e&&ne(r)}}}customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",class extends q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer}.ShowBalance .BalanceValue svg{width:16px}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-50%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-color-primary, #D0046C) 1A;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:50%;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, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:\"\";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-color-contrast, #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-color-gray-300, #58586B);font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-color-primary, #D0046C);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-color-primary-600, #99034F)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}</style>",X(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ro,no,n,{userid:7,session:8,endpoint:9,lang:10}),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["userid","session","endpoint","lang"]}get userid(){return this.$$.ctx[7]}set userid(e){this.$set({userid:e}),B()}get session(){return this.$$.ctx[8]}set session(e){this.$set({session:e}),B()}get endpoint(){return this.$$.ctx[9]}set endpoint(e){this.$set({endpoint:e}),B()}get lang(){return this.$$.ctx[10]}set lang(e){this.$set({lang:e}),B()}});let _o="HeaderMenu";function Mo(n,e,r){let t;$(n,Sr,e=>r(17,t=e));var o,a,i=this&&this.__awaiter||function(e,i,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{a(l.next(e))}catch(e){t(e)}}function o(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((l=l.apply(e,i||[])).next())})};let{session:s=""}=e,{userid:l=""}=e,{endpoint:c=""}=e,{cmsendpoint:u=""}=e,{cmsenv:d="stage"}=e,{lang:p="en"}=e,{languageslist:h="en, ro"}=e,{activecategory:f=""}=e,{operatorid:m=""}=e,{pagetag:g=""}=e,{positiontag:y=""}=e,{actionevent:b=""}=e,v=0;[{withLocale:o,translations:a}]=[{withLocale:"en",translations:{}}],yr.subscribe(e=>{null==e&&(ar.set(a),yr.set(o))}),Object.keys(Ir).forEach(e=>{sr(e,Ir[e])});let w,E,_,M=[],T=[],x="",C=!0,S=!1,A=window.navigator.userAgent,I=!1,L=[],P=!1,B="";const O=e=>{switch(e){case"login":window.postMessage({type:"OpenLoginRegisterModal",transition:"Login"},window.location.href);break;case"register":window.postMessage({type:"OpenLoginRegisterModal",transition:"Register"},window.location.href);break;case"lobby":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"myaccount":window.postMessage({type:"PlayerAccountMenuActive",isMobile:Ar(A)},window.location.href);break;case"deposit":window.postMessage({type:"GoToDeposit"},window.location.href);break;case"language":window.postMessage({type:"LanguageChanged",selectedLanguage:x},window.location.href)}},H=()=>{r(15,P=!0),window.postMessage({type:"OpenHamburgerMenuModal"},window.location.href)},R=e=>{if(e.data)switch(e.data.type){case"UserSessionID":e.data.userid,e.data.session,r(13,I=!0);break;case"CloseHamburgerMenu":e.data.showhamburger&&r(15,P=!1);break;case"LogoutSuccessfull":r(13,I=!1);break;case"LanguageChanged":F(),k(E)}},F=()=>{E=new URL(`${u}/${x.toLowerCase()}/menu`),r(11,w=new URL(`${u}/${x.toLowerCase()}/hamburger-menu`)),_=new URL(`${u}/${x.toLowerCase()}/op-options/style`),E.searchParams.append("device","dk"),E.searchParams.append("env",d),E.searchParams.append("language",x.toLowerCase()),E.searchParams.append("platform","dk"),w.searchParams.append("device","dk"),w.searchParams.append("env",d),w.searchParams.append("language",x.toLowerCase()),w.searchParams.append("platform","dk")},k=e=>(r(7,C=!0),new Promise((t,n)=>{fetch(e).then(e=>e.json()).then(e=>{M=e.desktop.primary,r(9,T=e.desktop.secondary),r(7,C=!1),t(e)},e=>{r(7,C=!1),console.error(e),n(e)})}));return D(()=>i(void 0,void 0,void 0,function*(){return window.addEventListener("message",R,!1),Ar(A)&&r(12,S=!0),()=>{window.removeEventListener("message",R)}})),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(21,u=e.cmsendpoint),"cmsenv"in e&&r(22,d=e.cmsenv),"lang"in e&&r(3,p=e.lang),"languageslist"in e&&r(4,h=e.languageslist),"activecategory"in e&&r(5,f=e.activecategory),"operatorid"in e&&r(23,m=e.operatorid),"pagetag"in e&&r(24,g=e.pagetag),"positiontag"in e&&r(25,y=e.positiontag),"actionevent"in e&&r(6,b=e.actionevent)},n.$$.update=()=>{var e,t;160&n.$$.dirty[0]&&f&&!C&&r(8,v=M.findIndex(e=>-1<e.path.indexOf(f))),1&n.$$.dirty[0]&&s&&r(13,I=!0),8&n.$$.dirty[0]&&p&&(t=p,yr.set(t)),2097176&n.$$.dirty[0]&&u&&p&&h&&(r(14,L=h.replace(/ /g,"").split(",")),r(14,L=L.map(e=>e.toUpperCase())),r(10,x=p.toUpperCase()),F(),e=_,new Promise((t,n)=>{fetch(e).then(e=>e.json()).then(e=>{0<e.logoUrl.length&&("null"!=e.logoUrl||"false"!=e.logoUrl)&&r(16,B=e.logoUrl),t(e)},e=>{console.error(e),n(e)})}),setTimeout(()=>{k(E)}))},[s,l,c,p,h,f,b,C,v,T,x,w,S,I,L,P,B,t,O,H,e=>{window.postMessage({type:"SliderData",identity:_o,data:M},window.location.href)},u,d,m,g,y,()=>H(),()=>O("lobby"),()=>O("deposit"),()=>O("myaccount"),()=>O("lobby"),()=>O("deposit"),()=>O("myaccount"),function(){x=N(this),r(10,x),r(14,L)},()=>O("language"),()=>H(),()=>O("lobby"),()=>O("login"),()=>O("register"),()=>O("lobby"),()=>O("login"),()=>O("register"),function(){x=N(this),r(10,x),r(14,L)},()=>O("language")]}class To extends q{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.HeaderWrapper{background:var(--emfe-w-color-header-bg, #050518)}.HeaderContainer{max-width:1300px;display:flex;flex-direction:row;align-items:center;height:84px;margin:0 auto}.HeaderBranding{width:150px;cursor:pointer}.HeaderBranding img{width:100%}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:var(--emfe-w-color-header-bg, #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-color-white, #FFFFFF);font-size:16px;align-items:center}.HeaderItemsMenu .Item{padding:0 15px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.ItemLogin{border-radius:5px;background:transparent;font-size:14px;border:solid 1px var(--emfe-w-color-white, #FFFFFF);height:44px;text-align:center;line-height:44px;margin-right:20px;cursor:pointer}.ItemRegister,.ItemDeposit{border-radius:5px;background:var(--emfe-w-color-primary, #D0046C);font-size:14px;height:44px;text-align:center;line-height:44px;cursor:pointer}.ItemDeposit{background:var(--emfe-w-color-primary, #D0046C)}.ItemLanguage{height:44px;width:76px;text-align:center;line-height:44px;background:transparent;color: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-color-header-bg, #050518);background-position:calc(100% - 0.75rem) center}.ItemLanguage option{color: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-color-white, #FFFFFF);font-size:14px;max-width:1280px;margin:0 auto;overflow-y:hidden;overflow-x:auto;padding:0}.HeaderItemsMenuSecondary .ItemSecondary{padding:0 15px;cursor:pointer;transition-duration:0.15s}.HeaderItemsMenuSecondary .ItemSecondary a{color:var(--emfe-w-color-white, #FFFFFF);text-decoration:none}.HeaderItemsMenuSecondary .ItemSecondary:hover a{color:var(--emfe-w-color-primary, #D0046C)}.HeaderMobileWrapper .HeaderContainer{height:55px;padding:0 15px;gap:10px}.HeaderMobileWrapper .HeaderBranding{width:110px}.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}</style>",X(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Mo,Eo,n,{session:0,userid:1,endpoint:2,cmsendpoint:21,cmsenv:22,lang:3,languageslist:4,activecategory:5,operatorid:23,pagetag:24,positiontag:25,actionevent:6},[-1,-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["session","userid","endpoint","cmsendpoint","cmsenv","lang","languageslist","activecategory","operatorid","pagetag","positiontag","actionevent"]}get session(){return this.$$.ctx[0]}set session(e){this.$set({session:e}),B()}get userid(){return this.$$.ctx[1]}set userid(e){this.$set({userid:e}),B()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$set({endpoint:e}),B()}get cmsendpoint(){return this.$$.ctx[21]}set cmsendpoint(e){this.$set({cmsendpoint:e}),B()}get cmsenv(){return this.$$.ctx[22]}set cmsenv(e){this.$set({cmsenv:e}),B()}get lang(){return this.$$.ctx[3]}set lang(e){this.$set({lang:e}),B()}get languageslist(){return this.$$.ctx[4]}set languageslist(e){this.$set({languageslist:e}),B()}get activecategory(){return this.$$.ctx[5]}set activecategory(e){this.$set({activecategory:e}),B()}get operatorid(){return this.$$.ctx[23]}set operatorid(e){this.$set({operatorid:e}),B()}get pagetag(){return this.$$.ctx[24]}set pagetag(e){this.$set({pagetag:e}),B()}get positiontag(){return this.$$.ctx[25]}set positiontag(e){this.$set({positiontag:e}),B()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$set({actionevent:e}),B()}}return customElements.get("casino-header-controller")||customElements.define("casino-header-controller",To),To});
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 y(){}const H=e=>e;function B(e){return e()}function T(){return Object.create(null)}function Q(e){e.forEach(B)}function C(e){return"function"==typeof e}function p(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let f;function I(e,t){return(f=f||document.createElement("a")).href=t,e===f.href}function _(e,...t){if(null==e)return y;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function $(e,t,r){e.$$.on_destroy.push(_(t,r))}function A(e){return e&&C(e.destroy)?e.destroy:y}var e="undefined"!=typeof window;let S=e?()=>window.performance.now():()=>Date.now(),x=e?e=>requestAnimationFrame(e):y;const P=new Set;function O(t){P.forEach(e=>{e.c(t)||(P.delete(e),e.f())}),0!==P.size&&x(O)}function ee(e,t){e.appendChild(t)}function N(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function te(e,t,r){e.insertBefore(t,r||null)}function re(e){e.parentNode.removeChild(e)}function R(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function ne(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function oe(e){return document.createTextNode(e)}function ae(){return oe(" ")}function D(){return oe("")}function ie(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function se(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function L(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:se(e,t,r)}function le(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function U(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0}t.selectedIndex=-1}function j(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}function G(e,t,r){e.classList[r?"add":"remove"](t)}function W(e){const t={};for(const r of e)t[r.name]=r.value;return t}const V=new Map;let z,X=0;function K(e,t,r,n,o,a,i,s=0){var l,c=16.666/n;let u="{\n";for(let e=0;e<=1;e+=c){const n=t+(r-t)*a(e);u+=100*e+`%{${i(n,1-n)}}
2
+ `}const h=u+`100% {${i(r,1-r)}}
3
+ }`,d=`__svelte_${function(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}(h)}_`+s,p=N(e),{stylesheet:f,rules:m}=V.get(p)||(s=p,l={stylesheet:(l=e,g=ne("style"),ee((l=N(l)).head||l,g),g.sheet),rules:{}},V.set(s,l),l);m[d]||(m[d]=!0,f.insertRule(`@keyframes ${d} `+h,f.cssRules.length));var g=e.style.animation||"";return e.style.animation=(g?g+", ":"")+d+` ${n}ms linear ${o}ms 1 both`,X+=1,d}function Z(e){z=e}function Y(e){!function(){if(z)return z;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const q=[],J=[],ce=[],ue=[],he=Promise.resolve();let de=!1;function k(e){ce.push(e)}const pe=new Set;let fe,me=0;function g(){const e=z;do{for(;me<q.length;){const e=q[me];me++,Z(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),Q(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(k))}for(Z(null),q.length=0,me=0;J.length;)J.pop()();for(let e=0;e<ce.length;e+=1){const n=ce[e];pe.has(n)||(pe.add(n),n())}}while(ce.length=0,q.length);for(;ue.length;)ue.pop()();de=!1,pe.clear(),Z(e)}function ge(e,t,r){e.dispatchEvent(function(e,{bubbles:t=!1,cancelable:r=!1}={}){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t,r,void 0),n}((t?"intro":"outro")+r))}const be=new Set;let b;function ye(e,t){e&&e.i&&(be.delete(e),e.i(t))}function ve(e,t,r,n){e&&e.o&&(be.has(e)||(be.add(e),b.c.push(()=>{be.delete(e),n&&(r&&e.d(1),n())}),e.o(t)))}const we={duration:0};function Ee(l,e,t,r){let c=e(l,t),u=r?0:1,h=null,d=null,p=null;function f(){if(p){var e=l,t=p;const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=r.length-n.length;o&&(e.style.animation=n.join(", "),(X-=o)||x(()=>{X||(V.forEach(e=>{const t=e["stylesheet"];let r=t.cssRules.length;for(;r--;)t.deleteRule(r);e.rules={}}),V.clear())}))}}function m(e,t){var r=e.b-u;return t*=Math.abs(r),{a:u,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:r=300,easing:n=H,tick:o=y,css:a}=c||we,i={start:S()+t,b:e};if(e||((i.group=b).r+=1),!h&&!d){a&&(f(),p=K(l,u,e,r,t,n,a)),e&&o(0,1),h=m(i,r),k(()=>ge(l,e,"start"));{var s=e=>{return d&&e>d.start&&(h=m(d,r),d=null,ge(l,h.b,"start"),a&&(f(),p=K(l,u,h.b,h.duration,0,n,c.css))),h&&(e>=h.end?(o(u=h.b,1-u),ge(l,h.b,"end"),d||(h.b?f():--h.group.r||Q(h.group.c)),h=null):e>=h.start&&(e=e-h.start,u=h.a+h.d*n(e/h.duration),o(u,1-u))),!(!h&&!d)};let t;return 0===P.size&&x(O),void new Promise(e=>{P.add(t={c:s,f:e})})}}d=i}return{run(e){C(c)?(fe||(fe=Promise.resolve()).then(()=>{fe=null}),fe.then(()=>{c=c(),n(e)})):n(e)},end(){f(),h=d=null}}}function Me(e,t){e.d(1),t.delete(e.key)}function He(n,e,t,r,o,a,i,s=[-1]){var l=z;Z(n);const c=n.$$={fragment:null,ctx:null,props:a,update:y,not_equal:o,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:T(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return c.ctx&&o(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(q.push(e),de||(de=!0,he.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,Q(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){a=e.target;const y=Array.from(a.childNodes);c.fragment&&c.fragment.l(y),y.forEach(re)}else c.fragment&&c.fragment.c();e.intro&&ye(n.$$.fragment);{var h=n;s=e.target;i=e.anchor;t=e.customElement;const{fragment:d,on_mount:p,on_destroy:f,after_update:m}=h.$$;d&&d.m(s,i),t||k(()=>{var e=p.map(B).filter(C);f?f.push(...e):Q(e),h.$$.on_mount=[]}),m.forEach(k)}g()}Z(l)}let Be;"function"==typeof HTMLElement&&(Be=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(B).filter(C);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){Q(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(Q(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=y}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var Te,Ce,s="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==s&&s,_e="URLSearchParams"in s,Ae="Symbol"in s&&"iterator"in Symbol,Se="FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch(e){return!1}}(),xe="FormData"in s,Ie="ArrayBuffer"in s;function Le(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 Pe(e){return e="string"!=typeof e?String(e):e}function Oe(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Ae&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function Re(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ke(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Fe(e){var t=new FileReader,r=ke(t);return t.readAsArrayBuffer(e),r}function $e(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ne(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Se&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:xe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_e&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Ie&&Se&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=$e(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ie&&(ArrayBuffer.prototype.isPrototypeOf(e)||Ce(e))?this._bodyArrayBuffer=$e(e):this._bodyText=e=Object.prototype.toString.call(e):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):_e&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Se&&(this.blob=function(){var e=Re(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(){return this._bodyArrayBuffer?Re(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Fe)}),this.text=function(){var e,t,r=Re(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=ke(e),e.readAsText(r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},xe&&(this.formData=function(){return this.text().then(je)}),this.json=function(){return this.text().then(JSON.parse)},this}Ie&&(Te=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Ce=ArrayBuffer.isView||function(e){return e&&-1<Te.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=Le(e),t=Pe(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[Le(e)]},l.prototype.get=function(e){return e=Le(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(Le(e))},l.prototype.set=function(e,t){this.map[Le(e)]=Pe(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),Oe(r)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Oe(t)},l.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),Oe(r)},Ae&&(l.prototype[Symbol.iterator]=l.prototype.entries);var De=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ue(e,t){if(!(this instanceof Ue))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof Ue){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=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 l(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<De.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function je(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}Ue.prototype.clone=function(){return new Ue(this,{body:this._bodyInit})},Ne.call(Ue.prototype),Ne.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:0,statusText:""});return e.type="error",e};var Ge=[301,302,303,307,308],We=(c.redirect=function(e,t){if(-1===Ge.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},s.DOMException);try{new We}catch(y){(We=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),We.prototype.constructor=We}function Ve(n,i){return new Promise(function(o,e){var t=new Ue(n,i);if(t.signal&&t.signal.aborted)return e(new We("Aborted","AbortError"));var a=new XMLHttpRequest;function r(){a.abort()}a.onload=function(){var e,r,t={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",r=new l,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 e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)},n=(t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL"),"response"in a?a.response:a.responseText);setTimeout(function(){o(new c(n,t))},0)},a.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){e(new We("Aborted","AbortError"))},0)},a.open(t.method,function(t){try{return""===t&&s.location.href?s.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?a.withCredentials=!0:"omit"===t.credentials&&(a.withCredentials=!1),"responseType"in a&&(Se?a.responseType="blob":Ie&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof l?t.headers.forEach(function(e,t){a.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){a.setRequestHeader(e,Pe(i.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),a.onreadystatechange=function(){4===a.readyState&&t.signal.removeEventListener("abort",r)}),a.send(void 0===t._bodyInit?null:t._bodyInit)})}Ve.polyfill=!0,s.fetch||(s.fetch=Ve,s.Headers=l,s.Request=Ue,s.Response=c);var ze="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Xe=(self.fetch.bind(self),function(e,t){return(Xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)});function Ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Ze(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ye(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||0<t--)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function qe(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Je(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=Je(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)}r.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var i=Ze(a),s=i.next();!s.done;s=i.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else a.remove(this);a=this.initialTeardown;if(h(a))try{a()}catch(e){o=e instanceof Qe?e.errors:[e]}a=this._finalizers;if(a){this._finalizers=null;try{for(var l=Ze(a),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=qe(qe([],Ye(o)),Ye(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new Qe(o)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ot(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&et(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&et(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((e=new r).closed=!0,e);var tt=r,rt=tt.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function nt(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 at=void 0,it=!1,st=!1,lt={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=lt.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,qe([e,t],Ye(r))):setTimeout.apply(void 0,qe([e,t],Ye(r)))},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(it){var t=!ut;if(t&&(ut={errorThrown:!1,error:null}),e(),t){var t=ut,r=t.errorThrown,t=t.error;if(ut=null,r)throw t}}else e()}Ke(n,dt=tt),n.create=function(e,t,r){return new yt(e,t,r)},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,dt.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var dt,pt=n,ft=Function.prototype.bind;function n(e){var t=dt.call(this)||this;return t.isStopped=!1,e?nt(t.destination=e)&&e.add(t):t.destination=Mt,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,bt=wt,yt=(Ke(vt,gt=pt),vt);function vt(e,t,r){var n=gt.call(this)||this,r=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&st?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&mt(e.next,t),error:e.error&&mt(e.error,t),complete:e.complete&&mt(e.complete,t)}):e;return n.destination=new bt(r),n}function wt(e){this.partialObserver=e}function Et(e){var t=e;lt.setTimeout(function(){throw t})}var Mt={closed:!0,next:ct,error:function(e){throw e},complete:ct},e="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ht(e){return e}o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,r){var n,o=this,a=(n=e)&&n instanceof pt||n&&h(n.next)&&h(n.error)&&h(n.complete)&&nt(n)?e:new yt(e,t,r);return ht(function(){var e=o.operator,t=o.source;a.add(e?e.call(a,t):t?o._subscribe(a):o._trySubscribe(a))}),a},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(n,e){var o=this;return new(e=Tt(e))(function(e,t){var r=new yt({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});o.subscribe(r)})},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=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Ht:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var n=this;return new(e=Tt(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},o.create=function(e){return new o(e)};var Bt=o;function o(e){e&&(this._subscribe=e)}function Tt(e){return null!=(e=null!=e?e:at)?e:Promise}var Ct,_t,At,St=Je(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Ke(a,At=Bt),a.prototype.lift=function(e){var t=new xt(this,this);return t.operator=e,t},a.prototype._throwIfClosed=function(){if(this.closed)throw new St},a.prototype.next=function(o){var a=this;ht(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var r=Ze(a.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(o)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},a.prototype.error=function(t){var r=this;ht(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},a.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()}})},a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(a.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),a.prototype._trySubscribe=function(e){return this._throwIfClosed(),At.prototype._trySubscribe.call(this,e)},a.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},a.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,o=this.observers;return r||n?rt:(this.currentObservers=null,o.push(e),new tt(function(){t.currentObservers=null,et(o,e)}))},a.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},a.prototype.asObservable=function(){var e=new Bt;return e.source=this,e},a.create=function(e,t){return new xt(e,t)},a),xt=(Ke(Ot,_t=e),Ot.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},Ot.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},Ot.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Ot.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:rt},Ot),It={now:function(){return(It.delegate||Date).now()},delegate:void 0},Lt=(Ke(Pt,Ct=e),Pt.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,o=t._infiniteTimeWindow,a=t._timestampProvider,t=t._windowTime;r||(n.push(e),o||n.push(a.now()+t)),this._trimBuffer(),Ct.prototype.next.call(this,e)},Pt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},Pt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var a=t.now(),i=0,s=1;s<r.length&&r[s]<=a;s+=2)i=s;i&&r.splice(0,i+1)}},Pt);function Pt(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=It);var n=Ct.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Ot(e,t){var r=_t.call(this)||this;return r.destination=e,r.source=t,r}function a(){var e=At.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Rt=[],kt={};const Ft=[];function $t(n,o=y){let a;const i=new Set;function s(e){if(p(n,e)&&(n=e,a)){const e=!Ft.length;for(const e of i)e[1](),Ft.push(e,n);if(e){for(let e=0;e<Ft.length;e+=2)Ft[e][0](Ft[e+1]);Ft.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=y){const r=[e,t];return i.add(r),1===i.size&&(a=o(s)||y),e(n),()=>{i.delete(r),0===i.size&&(a(),a=null)}}}}function Nt(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:$t(t,t=>{let r=!1;const n=[];let o=0,a=y;const i=()=>{var e;o||(a(),e=s(l?n[0]:n,t),u?t(e):a=C(e)?e:y)},e=c.map((e,t)=>_(e,e=>{n[t]=e,o&=~(1<<t),r&&i()},()=>{o|=1<<t}));return r=!0,i(),function(){Q(e),a()}}).subscribe}}function Dt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===Ut));var t}var Ut="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function jt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Xt(Array.isArray(e)?[]:{},e,t):e}function Gt(e,t,r){return e.concat(t).map(function(e){return jt(e,r)})}function Wt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Vt(e,t){try{return t in e}catch(e){return!1}}function zt(n,o,a){var i={};return a.isMergeableObject(n)&&Wt(n).forEach(function(e){i[e]=jt(n[e],a)}),Wt(o).forEach(function(t){var e,r;(!Vt(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(Vt(n,t)&&a.isMergeableObject(o[t])?i[t]=function(e){if(!e.customMerge)return Xt;e=e.customMerge(t);return"function"==typeof e?e:Xt}(a)(n[t],o[t],a):i[t]=jt(o[t],a))}),i}function Xt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Gt,r.isMergeableObject=r.isMergeableObject||Dt,r.cloneUnlessOtherwiseSpecified=jt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):zt(e,t,r):jt(t,r)}Xt.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return Xt(e,t,r)},{});throw new Error("first argument should be an array")};var Kt=Xt,Zt=function(e,t){return(Zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(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 r(){this.constructor=e}Zt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var m,v,qt,w=function(){return(w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Jt(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Qt(e){return e.type===v.literal}function er(e){return e.type===v.number}function tr(e){return e.type===v.date}function rr(e){return e.type===v.time}function nr(e){return e.type===v.select}function or(e){return e.type===v.plural}function ar(e){return e.type===v.tag}function ir(e){return e&&"object"==typeof e&&e.type===qt.number}function sr(e){return e&&"object"==typeof e&&e.type===qt.dateTime}(e=m=m||{})[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=v=v||{})[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=qt=qt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,lr=/(?:[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 cr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ur=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hr=/^(@+)?(\+|#+)?[rs]?$/g,dr=/(\*)(0+)|(#+)(0+)|(0+)/g,pr=/^(0+)$/;function fr(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(hr,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function mr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function gr(e){return mr(e)||{}}function br(e){for(var i={},t=0,r=e;t<r.length;t++){var n,o=r[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=w(w(w({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return w(w({},e),gr(t))},{}));continue;case"engineering":i=w(w(w({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return w(w({},e),gr(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.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(dr,function(e,t,r,n,o,a){if(t)i.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pr.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(ur.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ur,function(e,t,r,n,o,a){return"*"===r?i.minimumFractionDigits=t.length:n&&"#"===n[0]?i.maximumFractionDigits=n.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var a=o.options[0];"w"===a?i=w(w({},i),{trailingZeroDisplay:"stripIfInteger"}):a&&(i=w(w({},i),fr(a)))}else hr.test(o.stem)?i=w(w({},i),fr(o.stem)):((a=mr(o.stem))&&(i=w(w({},i),a)),(n=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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!pr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=w(w({},i),n)))}return i}var yr={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 vr=new RegExp("^".concat(e.source,"*")),wr=new RegExp("".concat(e.source,"*$"));function E(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,Er=!!String.fromCodePoint,Mr=!!Object.fromEntries,Hr=!!String.prototype.codePointAt,Br=!!String.prototype.trimStart,Tr=!!String.prototype.trimEnd,Cr=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},_r=!0;try{_r="a"===(null==(Kr=kr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Kr[0])}catch(y){_r=!1}var Ar,Sr,xr=e?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ir=Er?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,a=0;a<o;){if(1114111<(r=e[a++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Lr=Mr?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],a=o[0],o=o[1];t[a]=o}return t},Pr=Hr?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},Or=Br?function(e){return e.trimStart()}:function(e){return e.replace(vr,"")},Rr=Tr?function(e){return e.trimEnd()}:function(e){return e.replace(wr,"")};function kr(e,t){return new RegExp(e,t)}Sr=_r?(Ar=kr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ar.lastIndex=t,null!=(t=Ar.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var o=Pr(e,t);if(void 0===o||Nr(o)||(33<=(r=o)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(o),t+=65536<=o?2:1}return Ir.apply(void 0,n)};i.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},i.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o,a=this.char();if(123===a){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===a&&0<e)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(m.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&$r(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{a=this.clonePosition();this.bump(),n.push({type:v.pound,location:E(a,this.clonePosition())})}}}return{val:n,err:null}},i.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:v.literal,value:"<".concat(n,"/>"),location:E(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$r(this.char()))return this.error(m.INVALID_TAG,E(e,this.clonePosition()));var o=this.clonePosition();return n!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,E(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:v.tag,value:n,children:t,location:E(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,E(e,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,E(r,this.clonePosition()))}return this.error(m.INVALID_TAG,E(r,this.clonePosition()))},i.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())},i.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{o=this.tryParseUnquoted(e,t);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=E(r,this.clonePosition());return{val:{type:v.literal,value:n,location:r},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&($r(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},i.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 r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ir.apply(void 0,t)},i.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Ir(r))},i.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,E(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(m.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:v.argument,value:n,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(m.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},i.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Sr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:E(e,this.clonePosition())}},i.prototype.parseArgumentOptions=function(e,t,r,n){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,E(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(p=Rr(f.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:E(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(n)).err)return c;var u=E(n,this.clonePosition());if(l&&xr(null==l?void 0:l.style,"::",0)){var h=Or(l.style.slice(2));if("number"===i)return(f=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?f:{val:{type:v.number,value:r,location:u,style:f.val},err:null};if(0===h.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,u);var d=h,p=(this.locale&&(d=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var a=0;n+1<e.length&&e.charAt(n+1)===o;)a++,n++;var i=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(yr[t||""]||yr[r||""]||yr["".concat(r,"-001")]||yr["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)r+="a";for(;0<i--;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale)),{type:qt.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},d.replace(lr,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):{}});return{val:{type:"date"===i?v.date:v.time,value:r,location:u,style:p},err:null}}return{val:{type:"number"===i?v.number:"date"===i?v.date:v.time,value:r,location:u,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,E(d,w({},d)));this.bumpSpace();var f,p=this.parseIdentifierIfPossible(),u=0;if("select"!==i&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),p=this.parseIdentifierIfPossible(),u=f.val}l=this.tryParsePluralOrSelectOptions(e,i,t,p);if(l.err)return l;if((c=this.tryParseArgumentClose(n)).err)return c;h=E(n,this.clonePosition());return"select"===i?{val:{type:v.select,value:r,options:Lr(l.val),location:h},err:null}:{val:{type:v.plural,value:r,options:Lr(l.val),offset:u,pluralType:"plural"===i?"cardinal":"ordinal",location:h},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,E(a,s))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},i.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(r,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}},i.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(cr).filter(function(e){return 0<e.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],o=o.slice(1),i=0,s=o;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:qt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?br(r):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o=!1,a=[],i=new Set,s=n.value,l=n.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=E(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;var h=this.tryParseArgumentClose(u);if(h.err)return h;a.push([s,{value:c.val,location:E(u,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===a.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(m.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:a,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}n=E(n,this.clonePosition());return o?Cr(a*=r)?{val:a,err:null}:this.error(t,n):this.error(e,n)},i.prototype.offset=function(){return this.position.offset},i.prototype.isEOF=function(){return this.offset()===this.message.length},i.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},i.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Pr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},i.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},i.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))},i.prototype.bumpIf=function(e){if(xr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},i.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)},i.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}},i.prototype.bumpSpace=function(){for(;!this.isEOF()&&Nr(this.char());)this.bump()},i.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var Fr=i;function i(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 $r(e){return 97<=e&&e<=122||65<=e&&e<=90}function Nr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Dr(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new Fr(e,t).parse();if(e.err)throw(r=SyntaxError(m[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,nr(e)||or(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else er(e)&&ir(e.style)||(tr(e)||rr(e))&&sr(e.style)?delete e.style.location:ar(e)&&r(e.children)})}(e.val),e.val}function Ur(e,t){var r=t&&t.cache?t.cache:Zr,n=t&&t.serializer?t.serializer:Vr;return(t&&t.strategy?t.strategy:function(e,t){return Wr(e,this,1===e.length?jr:Gr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function jr(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(r);return void 0===o&&(o=e.call(this,n),t.set(r,o)),o}function Gr(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),o=t.get(r);return void 0===o&&(o=e.apply(this,n),t.set(r,o)),o}function Wr(e,t,r,n,o){return r.bind(t,e,n,o)}var Vr=function(){return JSON.stringify(arguments)};function zr(){this.cache=Object.create(null)}zr.prototype.get=function(e){return this.cache[e]},zr.prototype.set=function(e,t){this.cache[e]=t};var Xr,Kr,Zr={create:function(){return new zr}},Yr={variadic:function(e,t){return Wr(e,this,Gr,t.cache.create(),t.serializer)},monadic:function(e,t){return Wr(e,this,jr,t.cache.create(),t.serializer)}};(Kr=Xr=Xr||{}).MISSING_VALUE="MISSING_VALUE",Kr.INVALID_VALUE="INVALID_VALUE",Kr.MISSING_INTL_API="MISSING_INTL_API";Yt(cn,en=Error),cn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var M,qr,Jr,Qr,en,tn=cn,rn=(Yt(ln,Qr=tn),ln),nn=(Yt(sn,Jr=tn),sn),on=(Yt(an,qr=tn),an);function an(e,t){return qr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Xr.MISSING_VALUE,t)||this}function sn(e,t,r){return Jr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Xr.INVALID_VALUE,r)||this}function ln(e,t,r,n){return Qr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Xr.INVALID_VALUE,n)||this}function cn(e,t,r){e=en.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function un(e,t,r,n,o,a,i){if(1===e.length&&Qt(e[0]))return[{type:M.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:M.literal,value:u.value});else if(u.type===v.pound)"number"==typeof a&&s.push({type:M.literal,value:r.getNumberFormat(t).format(a)});else{var h=u.value;if(!(o&&h in o))throw new on(h,i);h=o[h];if(u.type===v.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?M.literal:M.object,value:h});else if(tr(u)){var d="string"==typeof u.style?n.date[u.style]:sr(u.style)?u.style.parsedOptions:void 0;s.push({type:M.literal,value:r.getDateTimeFormat(t,d).format(h)})}else if(rr(u))d="string"==typeof u.style?n.time[u.style]:sr(u.style)?u.style.parsedOptions:n.time.medium,s.push({type:M.literal,value:r.getDateTimeFormat(t,d).format(h)});else if(er(u))(d="string"==typeof u.style?n.number[u.style]:ir(u.style)?u.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),s.push({type:M.literal,value:r.getNumberFormat(t,d).format(h)});else{if(ar(u)){var p=u.children,f=u.value,m=o[f];if("function"!=typeof m)throw new nn(f,"function",i);f=m(un(p,t,r,n,o,a).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),s.push.apply(s,f.map(function(e){return{type:"string"==typeof e?M.literal:M.object,value:e}}))}if(nr(u)){if(!(g=u.options[h]||u.options.other))throw new rn(u.value,h,Object.keys(u.options),i);s.push.apply(s,un(g.value,t,r,n,o))}else if(or(u)){if(!(g=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new tn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Xr.MISSING_INTL_API,i);var m=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[m]||u.options.other}if(!g)throw new rn(u.value,h,Object.keys(u.options),i);s.push.apply(s,un(g.value,t,r,n,o,h-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===M.literal&&t.type===M.literal?r.value+=t.value:e.push(t),e},[])}function hn(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(e=M=M||{})[e.literal=0]="literal",e[e.object=1]="object",Object.defineProperty(u,"defaultLocale",{get:function(){return u.memoizedDefaultLocale||(u.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),u.memoizedDefaultLocale},enumerable:!1,configurable:!0}),u.memoizedDefaultLocale=null,u.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])},u.__parse=Dr,u.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 dn=u;function u(e,t,r,n){var o,a,i=this;if(void 0===t&&(t=u.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=i.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===M.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return un(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=u.resolveLocale(t),"string"==typeof e){if(this.message=e,!u.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=u.__parse(e,{ignoreTag:null==n?void 0:n.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=u.formats,(a=r)?Object.keys(o).reduce(function(e,t){var r,n;return e[t]=(r=o[t],(n=a[t])?w(w(w({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=w(w({},r[t]),n[t]||{}),e},{})):r),e},w({},o)):o),this.formatters=n&&n.formatters||{getNumberFormat:Ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Jt([void 0],t,!1)))},{cache:hn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Yr.variadic}),getDateTimeFormat:Ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Jt([void 0],t,!1)))},{cache:hn(t.dateTime),strategy:Yr.variadic}),getPluralRules:Ur(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Jt([void 0],t,!1)))},{cache:hn(t.pluralRules),strategy:Yr.variadic})}}const d={},pn=(e,t,r)=>r&&(t in d||(d[t]={}),e in d[t]||(d[t][e]=r),r),fn=(t,r)=>{if(null!=r){if(r in d&&t in d[r])return d[r][t];var n=xn(r);for(let e=0;e<n.length;e++){var o=function(e,r){if(!bn(e))return null;e=function(e){return mn[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const o=n.split(".");let t=e;for(let e=0;e<o.length;e++)if("object"==typeof t){if(0<e){const n=o.slice(e,o.length).join(".");if(n in t){t=t[n];break}}t=t[o[e]]}else t=void 0;return t}}(n[e],t);if(o)return pn(t,r,o)}}};let mn;const gn=$t({});function bn(e){return e in mn}function yn(t,...r){delete d[t],gn.update(e=>(e[t]=Kt.all([e[t]||{},...r]),e))}Nt([gn],([e])=>Object.keys(e)),gn.subscribe(e=>mn=e);const vn={};function wn(e){return vn[e]}function En(e){return null!=e&&xn(e).some(e=>{return null==(e=wn(e))?void 0:e.size})}const Mn={};function Hn(e){if(!En(e))return e in Mn?Mn[e]:Promise.resolve();const t=xn(e).map(e=>{var t=wn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Mn[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return vn[t].delete(r),0===vn[t].size&&delete vn[t],e().then(e=>e.default||e)}));return r.then(e=>yn(n,...e))}})).then(()=>{if(En(e))return Hn(e);delete Mn[e]}),Mn[e]}function Bn(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}const Tn={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 Cn=$t(!1);let _n;const An=$t(null);function Sn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function xn(e,t=Tn.fallbackLocale){e=Sn(e);return t?[...new Set([...e,...Sn(t)])]:e}function In(){return null!=_n?_n:void 0}An.subscribe(e=>{_n=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const F=Object.assign(Object.assign({},An),{set:t=>{if(t&&function(e){if(null!=e){var t=xn(e);for(let e=0;e<t.length;e++){var r=t[e];if(bn(r))return r}}}(t)&&En(t)){var r=Tn["loadingDelay"];let e;return"undefined"!=typeof window&&null!=In()&&r?e=window.setTimeout(()=>Cn.set(!0),r):Cn.set(!0),Hn(t).then(()=>{An.set(t)}).finally(()=>{clearTimeout(e),Cn.set(!1)})}return An.set(t)}}),Ln=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Pn=(e,t)=>{var r=Tn["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},On=Ln(e=>{var{locale:t,format:r}=e,e=Bn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Pn("number",r)),new Intl.NumberFormat(t,e)}),Rn=Ln(e=>{var{locale:t,format:r}=e,e=Bn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Pn("date",r):0===Object.keys(e).length&&(e=Pn("date","short")),new Intl.DateTimeFormat(t,e)}),kn=Ln(e=>{var{locale:t,format:r}=e,e=Bn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Pn("time",r):0===Object.keys(e).length&&(e=Pn("time","short")),new Intl.DateTimeFormat(t,e)}),Fn=Ln((e,t=In())=>new dn(e,t,Tn.formats,{ignoreTag:Tn.ignoreTag})),$n=Nt([F,gn],()=>(e,t={})=>{var r,n;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:a,locale:i=In(),default:s}=o;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=fn(e,i);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!=(n=null!=(r=null==(r=(n=Tn).handleMissingMessage)?void 0:r.call(n,{locale:i,id:e,defaultValue:s}))?r:s)?n:e;if(!a)return l;let c=l;try{c=Fn(l,i).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),Nn=(Nt([F],()=>(e,t)=>((e={})=>{var{locale:t=In()}=e,e=Bn(e,["locale"]);return kn(Object.assign({locale:t},e))})(t).format(e)),Nt([F],()=>(e,t)=>((e={})=>{var{locale:t=In()}=e,e=Bn(e,["locale"]);return Rn(Object.assign({locale:t},e))})(t).format(e)),Nt([F],()=>(e,t)=>((e={})=>{var{locale:t=In()}=e,e=Bn(e,["locale"]);return On(Object.assign({locale:t},e))})(t).format(e)),Nt([F,gn],()=>(e,t=In())=>fn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Rt.indexOf(e)&&(t=new Lt(t),kt[e]=t,Rt.push(e)),kt[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))),Dn={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"},fallbackSecondaryMenu:{promotions:"Promotions"}},fr:{headerItem:{login:"Connexion",register:"Enregistrer",deposit:"Dépôt"},fallbackSecondaryMenu:{promotions:"Promotions"}},tr:{headerItem:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito"},fallbackSecondaryMenu:{promotions:"Promosyonlar"}},ro:{headerItem:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},fallbackSecondaryMenu:{promotions:"Promotii"}},es:{headerItem:{login:"Iniciar sesión",register:"Registro",deposit:"Depósito"},fallbackSecondaryMenu:{promotions:"Promociones"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"},fallbackSecondaryMenu:{promotions:"Promoções"}}},Un={en:{headerItem:{login:"Login",register:"Register",deposit:"Deposit"},fallbackMainMenu:{sports:"Sports",casino:"Casino",liveCasino:"Live Casino",virtualSports:"Virtual Sports",tournaments:"Tournaments"}},fr:{headerItem:{login:"Connexion",register:"Registre",deposit:"Dépôt"},fallbackMainMenu:{sports:"Sports",casino:"Casino",liveCasino:"Live Casino",virtualSports:"Virtual Sports",tournaments:"Tournaments"}},tr:{headerItem:{login:"Giriş yapmak",register:"Kayıt olmak",deposit:"Depozito"},fallbackMainMenu:{sports:"Spor Dalları",casino:"Kumarhane",liveCasino:"Canlı kumarhane",virtualSports:"Sanal Sporlar",tournaments:"Turnuvalar"}},ro:{headerItem:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},fallbackMainMenu:{sports:"Sport",casino:"Cazino",liveCasino:"Cazinou live",virtualSports:"Sport virtual",tournaments:"Turnee"}},es:{headerItem:{login:"Iniciar sesión",register:"Registro",deposit:"Depósito"},fallbackMainMenu:{sports:"Sports",casino:"Casino",liveCasino:"Live Casino",virtualSports:"Virtual Sports",tournaments:"Tournaments"}},pt:{headerItem:{login:"Entrar",register:"Registro",deposit:"Depósito"},fallbackMainMenu:{sports:"Sports",casino:"Casino",liveCasino:"Live Casino",virtualSports:"Virtual Sports",tournaments:"Tournaments"}}};function jn(e,t,r){const n=e.slice();return n[33]=t[r],n[35]=r,n}function Gn(t){let n,o=[],r=new Map,a=t[0];const i=e=>e[33].id;for(let e=0;e<a.length;e+=1){var s=jn(t,a,e),l=i(s);r.set(l,o[e]=zn(l,s))}return{c(){for(let e=0;e<o.length;e+=1)o[e].c();n=D()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);te(t,n,r)},p(e,t){295&t[0]&&(a=e[0],o=function(t,r,n,o,a,i,s,l,e,c,u,h){let d=t.length,p=i.length,f=d;const m={};for(;f--;)m[t[f].key]=f;const g=[],b=new Map,y=new Map;for(f=p;f--;){const t=h(a,i,f),l=n(t);let e=s.get(l);e?o&&e.p(t,r):(e=c(l,t)).c(),b.set(l,g[f]=e),l in m&&y.set(l,Math.abs(f-m[l]))}const v=new Set,w=new Set;function E(e){ye(e,1),e.m(l,u),s.set(e.key,e),u=e.first,p--}for(;d&&p;){const r=g[p-1],n=t[d-1],o=r.key,a=n.key;r===n?(u=r.first,d--,p--):b.has(a)?!s.has(o)||v.has(o)?E(r):w.has(a)?d--:y.get(o)>y.get(a)?(w.add(o),E(r)):(v.add(a),d--):(e(n,s),d--)}for(;d--;){const r=t[d];b.has(r.key)||e(r,s)}for(;p;)E(g[p-1]);return g}(o,t,i,1,e,a,r,n.parentNode,Me,zn,n,jn))},d(t){for(let e=0;e<o.length;e+=1)o[e].d(t);t&&re(n)}}}function Wn(e){let r,n,o,a=e[33].name+"",i="FAVORITES"===e[33].id?"("+e[1]+")":"";return{c(){r=oe(a),n=ae(),o=oe(i)},m(e,t){te(e,r,t),te(e,n,t),te(e,o,t)},p(e,t){1&t[0]&&a!==(a=e[33].name+"")&&le(r,a),3&t[0]&&i!==(i="FAVORITES"===e[33].id?"("+e[1]+")":"")&&le(o,i)},d(e){e&&re(r),e&&re(n),e&&re(o)}}}function Vn(e){let r,n,o=e[33].label+"";return{c(){r=ne("a"),n=oe(o)},m(e,t){te(e,r,t),ee(r,n)},p(e,t){1&t[0]&&o!==(o=e[33].label+"")&&le(n,o)},d(e){e&&re(r)}}}function zn(e,r){let n,o,a,i;function s(e){return"headerMain"===e[2]?Vn:Wn}let l=s(r),c=l(r);function u(...e){return r[21](r[33],r[35],...e)}return{key:e,first:null,c(){n=ne("li"),c.c(),o=ae(),se(n,"class","CarouselItem"),se(n,"part","CarouselItem"),G(n,"active",r[5]==r[35]),this.first=n},m(e,t){te(e,n,t),c.m(n,null),ee(n,o),a||(i=ie(n,"click",u),a=!0)},p(e,t){l===(l=s(r=e))&&c?c.p(r,t):(c.d(1),(c=l(r))&&(c.c(),c.m(n,o))),33&t[0]&&G(n,"active",r[5]==r[35])},d(e){e&&re(n),c.d(),a=!1,i()}}}function Xn(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b=0<r[0].length&&Gn(r);return{c(){n=ne("div"),o=ne("div"),(a=ne("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="M15 19l-7-7 7-7"></path></svg>',i=ae(),s=ne("ul"),b&&b.c(),l=ae(),(c=ne("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=y,se(a,"class","CarouselLeftArrow"),se(a,"part","CarouselLeftArrow"),se(s,"class","CarouselItems"),se(s,"part","CarouselItems"),se(c,"class","CarouselRightArrow"),se(c,"part","CarouselRightArrow"),se(o,"class",u="CarouselContainer "+(r[7]?"CarouselContainerMobile":"")+" "+("headerMain"===r[2]?"CarouselContainerHeaderMain":"")),se(o,"part",h="CarouselContainer "+(r[7]?"CarouselContainerMobile":"")+" "+("headerMain"===r[2]?"CarouselContainerHeaderMain":"")),se(o,"style",d="headerMain"===r[2]?"max-width: auto":`max-width: ${r[3]}px`),se(n,"class",p="CarouselWrapper "+("headerMain"===r[2]?"CarouselWrapperHeaderMain":"")),se(n,"part",f="CarouselWrapper "+("headerMain"===r[2]?"CarouselWrapperHeaderMain":""))},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(o,i),ee(o,s),b&&b.m(s,null),r[22](s),ee(o,l),ee(o,c),r[24](n),m||(g=[ie(a,"click",r[20]),ie(c,"click",r[23])],m=!0)},p(e,t){0<e[0].length?b?b.p(e,t):((b=Gn(e)).c(),b.m(s,null)):b&&(b.d(1),b=null),4&t[0]&&u!==(u="CarouselContainer "+(e[7]?"CarouselContainerMobile":"")+" "+("headerMain"===e[2]?"CarouselContainerHeaderMain":""))&&se(o,"class",u),4&t[0]&&h!==(h="CarouselContainer "+(e[7]?"CarouselContainerMobile":"")+" "+("headerMain"===e[2]?"CarouselContainerHeaderMain":""))&&se(o,"part",h),12&t[0]&&d!==(d="headerMain"===e[2]?"max-width: auto":`max-width: ${e[3]}px`)&&se(o,"style",d),4&t[0]&&p!==(p="CarouselWrapper "+("headerMain"===e[2]?"CarouselWrapperHeaderMain":""))&&se(n,"class",p),4&t[0]&&f!==(f="CarouselWrapper "+("headerMain"===e[2]?"CarouselWrapperHeaderMain":""))&&se(n,"part",f)},i:y,o:y,d(e){e&&re(n),b&&b.d(),r[22](null),r[24](null),m=!1,Q(g)}}}function Kn(t,e,r){let n,{sliderdata:o=[]}=($(t,$n,e=>r(25,n=e)),e),{onclickeventname:a="defaultEvent"}=e,{actionevent:i="defaultEvent"}=e,{favoritesnumber:s="0"}=e,{location:l=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{identity:h=""}=e,{containermaxwidth:d=""}=e,{isprimarymenu:p=!1}=e,{issecondarymenu:f=!1}=e,{lang:m=""}=e,{activeindex:g="0"}=e;var b,y;({withLocale:b,translations:y}={withLocale:"en",translations:{}}),F.subscribe(e=>{null==e&&(gn.set(y),F.set(b))}),Object.keys(Un).forEach(e=>{yn(e,Un[e])});let v,w,E,M="PC"!=((e=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),H=[{id:0,label:n("fallbackMainMenu.sports"),path:"/sports"},{id:1,label:n("fallbackMainMenu.casino"),path:"/casino"},{id:2,label:n("fallbackMainMenu.liveCasino"),path:"/live-casino"},{id:3,label:n("fallbackMainMenu.virtualSports"),path:"/virtual-sports"},{id:4,label:n("fallbackMainMenu.tournaments"),path:"/tournaments"}],B=(e,t)=>{r(5,w=t),window.postMessage({type:i,itemId:e.id,index:t,item:e},window.location.href)},T=()=>{v.scrollBy({left:-250,behavior:"smooth"})},C=()=>{v.scrollBy({left:250,behavior:"smooth"})};const _=e=>{"SliderData"==e.data.type&&e.data.identity==h&&r(0,o=e.data.data)};return Y(()=>(p&&!o.length&&r(0,o=H),window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)})),t.$$set=e=>{"sliderdata"in e&&r(0,o=e.sliderdata),"onclickeventname"in e&&r(11,a=e.onclickeventname),"actionevent"in e&&r(12,i=e.actionevent),"favoritesnumber"in e&&r(1,s=e.favoritesnumber),"location"in e&&r(2,l=e.location),"clientstyling"in e&&r(13,c=e.clientstyling),"clientstylingurl"in e&&r(14,u=e.clientstylingurl),"identity"in e&&r(15,h=e.identity),"containermaxwidth"in e&&r(3,d=e.containermaxwidth),"isprimarymenu"in e&&r(16,p=e.isprimarymenu),"issecondarymenu"in e&&r(17,f=e.issecondarymenu),"lang"in e&&r(18,m=e.lang),"activeindex"in e&&r(19,g=e.activeindex)},t.$$.update=()=>{if(524288&t.$$.dirty[0]&&(g||0==g)&&r(5,w=parseInt(g,10)),8192&t.$$.dirty[0]&&c){let e=document.createElement("style");e.innerHTML=c,setTimeout(()=>{E.appendChild(e)})}if(16384&t.$$.dirty[0]&&u){let t=document.createElement("style"),e=new URL(u);u&&fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{E.appendChild(t)},1)})}var e;262144&t.$$.dirty[0]&&m&&(e=m,F.set(e))},[o,s,l,d,v,w,E,M,B,T,C,a,i,c,u,h,p,f,m,g,()=>T(),(e,t,r)=>B(e,t),function(e){J[e?"unshift":"push"](()=>{v=e,r(4,v)})},()=>C(),function(e){J[e?"unshift":"push"](()=>{E=e,r(6,E)})}]}function Zn(e,{delay:t=0,duration:r=400,easing:n=H}={}){const o=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:e=>"opacity: "+e*o}}customElements.get("casino-slider")||customElements.define("casino-slider",class extends Be{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:var(--emfe-w-color-primary, #D0046C);background:-webkit-linear-gradient(to left, var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C));background:linear-gradient(to left, var(--emfe-w-color-secondary, #FD2839), var(--emfe-w-color-primary, #D0046C))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emfe-w-color-white, #FFFFFF);margin:0 auto}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer .CarouselItems{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;overflow-x:scroll;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselItems::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems .CarouselItem{display:flex;height:100%;align-items:center;padding:13px 19px;font-size:16px;text-align:center;line-height:26px;transition:all 150ms ease-in-out;white-space:nowrap}.CarouselContainer .CarouselItems .CarouselItem:hover,.CarouselContainer .CarouselItems .CarouselItem.active{background:var(--emfe-w-color-contrast, #07072A);cursor:pointer}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:rgba(255, 255, 255, 0.3)}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px}.CarouselContainer .CarouselLeftArrow:hover,.CarouselContainer .CarouselRightArrow:hover{cursor:pointer}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active{background:transparent}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a{border-top:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary, #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-color-white, #FFFFFF);text-decoration:none}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}</style>",He(this,{target:this.shadowRoot,props:W(this.attributes),customElement:!0},Kn,Xn,p,{sliderdata:0,onclickeventname:11,actionevent:12,favoritesnumber:1,location:2,clientstyling:13,clientstylingurl:14,identity:15,containermaxwidth:3,isprimarymenu:16,issecondarymenu:17,lang:18,activeindex:19},null,[-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["sliderdata","onclickeventname","actionevent","favoritesnumber","location","clientstyling","clientstylingurl","identity","containermaxwidth","isprimarymenu","issecondarymenu","lang","activeindex"]}get sliderdata(){return this.$$.ctx[0]}set sliderdata(e){this.$$set({sliderdata:e}),g()}get onclickeventname(){return this.$$.ctx[11]}set onclickeventname(e){this.$$set({onclickeventname:e}),g()}get actionevent(){return this.$$.ctx[12]}set actionevent(e){this.$$set({actionevent:e}),g()}get favoritesnumber(){return this.$$.ctx[1]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),g()}get location(){return this.$$.ctx[2]}set location(e){this.$$set({location:e}),g()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get identity(){return this.$$.ctx[15]}set identity(e){this.$$set({identity:e}),g()}get containermaxwidth(){return this.$$.ctx[3]}set containermaxwidth(e){this.$$set({containermaxwidth:e}),g()}get isprimarymenu(){return this.$$.ctx[16]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),g()}get issecondarymenu(){return this.$$.ctx[17]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),g()}get lang(){return this.$$.ctx[18]}set lang(e){this.$$set({lang:e}),g()}get activeindex(){return this.$$.ctx[19]}set activeindex(e){this.$$set({activeindex:e}),g()}});const Yn={en:{languageSelector:{language:"Select Language"}},fr:{languageSelector:{language:"Sélectionner la langue"}},tr:{languageSelector:{language:"Dil Seçin"}},ro:{languageSelector:{language:"Selecteaza limba"}},es:{languageSelector:{language:"Seleccione el idioma"}},pt:{languageSelector:{language:"Selecione o idioma"}}};function qn(e,t,r){const n=e.slice();return n[0]=t[r],n}function Jn(e,t,r){const n=e.slice();return n[33]=t[r],n}function Qn(e,t,r){const n=e.slice();return n[36]=t[r],n}function eo(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,M,H,B,t,T,C,_,A=r[10]("languageSelector.language")+"",S=r[2],x=[];for(let e=0;e<S.length;e+=1)x[e]=to(Qn(r,S,e));let I=r[4],L=[];for(let e=0;e<I.length;e+=1)L[e]=ro(Jn(r,I,e));let P=r[8],O=[];for(let e=0;e<P.length;e+=1)O[e]=no(qn(r,P,e));return{c(){n=ne("div"),o=ne("span"),(a=ne("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>',l=ae(),c=ne("div"),u=ne("ul");for(let e=0;e<x.length;e+=1)x[e].c();p=ae(),f=ne("ul");for(let e=0;e<L.length;e+=1)L[e].c();b=ae(),y=ne("div"),v=ne("span"),w=oe(A),E=ae(),M=ne("select");for(let e=0;e<O.length;e+=1)O[e].c();se(a,"name","close"),se(o,"class",i=r[5]?"ModalCloseBtn":""),se(o,"part",s=r[5]?"ModalCloseBtn":""),se(o,"role","button"),se(u,"class",h="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")),se(u,"part",d="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")),se(f,"class",m="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")),se(f,"part",g="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")),se(M,"class","Item ItemLanguage"),se(M,"part","Item ItemLanguage"),void 0===r[9]&&k(()=>r[19].call(M)),se(y,"class","LanguageSelectorTitle"),se(y,"part","LanguageSelectorTitle"),se(c,"class",H="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")),se(c,"part",B="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")),se(n,"class","HamburgerModalWindow"),se(n,"part","HamburgerModalWindow")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(n,l),ee(n,c),ee(c,u);for(let e=0;e<x.length;e+=1)x[e].m(u,null);ee(c,p),ee(c,f);for(let e=0;e<L.length;e+=1)L[e].m(f,null);ee(c,b),ee(c,y),ee(y,v),ee(v,w),ee(y,E),ee(y,M);for(let e=0;e<O.length;e+=1)O[e].m(M,null);U(M,r[9]),r[21](n),T=!0,C||(_=[ie(o,"click",r[11]),ie(M,"change",r[19]),ie(M,"change",r[20])],C=!0)},p(e,t){if(r=e,(!T||32&t[0]&&i!==(i=r[5]?"ModalCloseBtn":""))&&se(o,"class",i),(!T||32&t[0]&&s!==(s=r[5]?"ModalCloseBtn":""))&&se(o,"part",s),4108&t[0]){let e;for(S=r[2],e=0;e<S.length;e+=1){const o=Qn(r,S,e);x[e]?x[e].p(o,t):(x[e]=to(o),x[e].c(),x[e].m(u,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=S.length}if((!T||64&t[0]&&h!==(h="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"class",h),(!T||64&t[0]&&d!==(d="HamburgerPrimaryMenu "+(r[6]?"HamburgerPrimaryMenuFixed":"")))&&se(u,"part",d),16&t[0]){let e;for(I=r[4],e=0;e<I.length;e+=1){const o=Jn(r,I,e);L[e]?L[e].p(o,t):(L[e]=ro(o),L[e].c(),L[e].m(f,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=I.length}if((!T||64&t[0]&&m!==(m="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"class",m),(!T||64&t[0]&&g!==(g="HamburgerSecondaryMenu "+(r[6]?"HamburgerSecondaryMenuFixed":"")))&&se(f,"part",g),(!T||1024&t[0])&&A!==(A=r[10]("languageSelector.language")+"")&&le(w,A),256&t[0]){let e;for(P=r[8],e=0;e<P.length;e+=1){const o=qn(r,P,e);O[e]?O[e].p(o,t):(O[e]=no(o),O[e].c(),O[e].m(M,null))}for(;e<O.length;e+=1)O[e].d(1);O.length=P.length}768&t[0]&&U(M,r[9]),(!T||32&t[0]&&H!==(H="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")))&&se(c,"class",H),(!T||32&t[0]&&B!==(B="HamburgerModalContainer "+(r[5]?"ActiveHamburgerMenu":"")))&&se(c,"part",B)},i(e){T||(k(()=>{(t=t||Ee(n,Zn,{transitionDuration:ao},!0)).run(1)}),T=!0)},o(e){(t=t||Ee(n,Zn,{transitionDuration:ao},!1)).run(0),T=!1},d(e){e&&re(n),R(x,e),R(L,e),R(O,e),r[21](null),e&&t&&t.end(),C=!1,Q(_)}}}function to(r){let n,o,a,i,s,l,c,u,h,d,p,f=r[36].label+"";function m(){return r[18](r[36])}return{c(){n=ne("li"),o=ne("div"),a=ne("img"),s=ae(),l=oe(f),c=ae(),I(a.src,i=r[36].img)||se(a,"src",i),se(a,"alt","menu icon"),se(o,"class","HamburgerItemContainer"),se(o,"part","HamburgerItemContainer"),se(n,"class",u=r[3]===r[36].id?"ActiveItem":""),se(n,"part",h=r[3]===r[36].id?"ActiveItem":"")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(o,s),ee(o,l),ee(n,c),d||(p=ie(n,"click",m),d=!0)},p(e,t){r=e,4&t[0]&&!I(a.src,i=r[36].img)&&se(a,"src",i),4&t[0]&&f!==(f=r[36].label+"")&&le(l,f),12&t[0]&&u!==(u=r[3]===r[36].id?"ActiveItem":"")&&se(n,"class",u),12&t[0]&&h!==(h=r[3]===r[36].id?"ActiveItem":"")&&se(n,"part",h)},d(e){e&&re(n),d=!1,p()}}}function ro(e){let r,n,o,a,i,s,l,c,u=e[33].label+"";return{c(){r=ne("li"),n=ne("a"),o=ne("img"),i=ae(),s=oe(u),c=ae(),I(o.src,a=e[33].img)||se(o,"src",a),se(o,"alt","menu icon"),se(n,"href",l=e[33].path)},m(e,t){te(e,r,t),ee(r,n),ee(n,o),ee(n,i),ee(n,s),ee(r,c)},p(e,t){16&t[0]&&!I(o.src,a=e[33].img)&&se(o,"src",a),16&t[0]&&u!==(u=e[33].label+"")&&le(s,u),16&t[0]&&l!==(l=e[33].path)&&se(n,"href",l)},d(e){e&&re(r)}}}function no(e){let r,n,o,a=e[0]+"";return{c(){r=ne("option"),n=oe(a),r.__value=o=e[0],r.value=r.__value,r.selected=!0},m(e,t){te(e,r,t),ee(r,n)},p(e,t){256&t[0]&&a!==(a=e[0]+"")&&le(n,a),256&t[0]&&o!==(o=e[0])&&(r.__value=o,r.value=r.__value)},d(e){e&&re(r)}}}function oo(e){let r,n,o=!0===e[7]&&eo(e);return{c(){o&&o.c(),r=D(),this.c=y},m(e,t){o&&o.m(e,t),te(e,r,t),n=!0},p(e,t){!0===e[7]?o?(o.p(e,t),128&t[0]&&ye(o,1)):((o=eo(e)).c(),ye(o,1),o.m(r.parentNode,r)):o&&(b={r:0,c:[],p:b},ve(o,1,1,()=>{o=null}),b.r||Q(b.c),b=b.p)},i(e){n||(ye(o),n=!0)},o(e){ve(o),n=!1},d(e){o&&o.d(e),e&&re(r)}}}let ao=350;function io(t,e,n){let r;$(t,$n,e=>n(10,r=e));let o,a,{menuitemsurl:i=""}=e,{lang:s="en"}=e,{activecategory:l=""}=e,{languageslist:c=""}=e,u=window.navigator.userAgent,h=[],d="",p=[],f=!1,m=!1,g=!1,b=!0,y=[],v=!1,w="";Object.keys(Yn).forEach(e=>{yn(e,Yn[e])});const E=e=>{var r;"OpenHamburgerMenuModal"===e.data.type&&(window.postMessage({type:"DisableScroll"},window.location.href),n(7,g=!0),setTimeout(()=>{n(5,f=!0)},500),setTimeout(()=>{n(6,m=!0)},1500),r=i,new Promise((e,t)=>{a&&!v?e(a):H(r)}))},M=(e,t)=>{n(3,d=e),n(4,p=t||[])},H=e=>{fetch(e).then(e=>e.json()).then(e=>{n(2,h=e),h.length&&M(h[0].id,h[0].children),n(17,b=!1),a=e,v=!1},e=>{console.error(e)})},B=()=>{v=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:w},window.location.href)};return Y(()=>(window.addEventListener("message",E,!1),Nn(u),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"menuitemsurl"in e&&n(14,i=e.menuitemsurl),"lang"in e&&n(0,s=e.lang),"activecategory"in e&&n(15,l=e.activecategory),"languageslist"in e&&n(16,c=e.languageslist)},t.$$.update=()=>{var e;65537&t.$$.dirty[0]&&s&&c&&(e=s,F.set(e),v&&H(i),n(8,y=c.replace(/ /g,"").split(",")),n(8,y=y.map(e=>e.toUpperCase())),n(9,w=s.toUpperCase())),163840&t.$$.dirty[0]&&l&&!b&&(0<(e=h.filter(e=>e.path==l)).length&&M(e[0].id,e[0].children))},[s,void 0,h,d,p,f,m,g,y,w,r,()=>{n(7,g=!1),n(5,f=!1),n(6,m=!1),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)},M,B,i,l,c,b,e=>M(e.id,e.children),function(){w=j(this),n(9,w),n(8,y)},()=>B(),function(e){J[e?"unshift":"push"](()=>{o=e,n(1,o)})}]}customElements.get("casino-hamburger-menu")||customElements.define("casino-hamburger-menu",class extends Be{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LanguageSelectorTitle{width:94%;position:absolute;bottom:3%}.LanguageSelectorTitle span{display:inline;color:var(--emfe-w-color-gray-150, #828282);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-color-white, #FFFFFF);border:none}.ItemLanguage option{color:var(--emfe-w-color-contrast, #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-color-black, #000000);width:0vw;height:100%;padding:0;border-top:0;border-radius:0;transition:width .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-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-color-contrast, #07072A);white-space:nowrap;overflow:scroll;list-style:none;border-bottom:2px solid var(--emfe-w-color-primary, #D0046C);width:90vw}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:100px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emfe-w-color-primary, #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}.HamburgerModalWindow .HamburgerSecondaryMenu li{margin:0 20px;padding:20px 0;display:flex;align-items:center;gap:15px}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emfe-w-color-white, #FFFFFF);font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emfe-w-color-primary, #D0046C)}</style>",He(this,{target:this.shadowRoot,props:W(this.attributes),customElement:!0},io,oo,p,{menuitemsurl:14,lang:0,activecategory:15,languageslist:16},null,[-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["menuitemsurl","lang","activecategory","languageslist"]}get menuitemsurl(){return this.$$.ctx[14]}set menuitemsurl(e){this.$$set({menuitemsurl:e}),g()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),g()}get activecategory(){return this.$$.ctx[15]}set activecategory(e){this.$$set({activecategory:e}),g()}get languageslist(){return this.$$.ctx[16]}set languageslist(e){this.$$set({languageslist:e}),g()}});const so={en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},de:{balanceModal:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"}},it:{balanceModal:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"}},fr:{balanceModal:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"}},es:{balanceModal:{balanceTitle:"Tu saldo",totalBalance:"Saldo total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo de bonificación",depositButton:"Depositar"}},tr:{balanceModal:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"}},ru:{balanceModal:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"}},ro:{balanceModal:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"}},hr:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"}},hu:{balanceModal:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"}},pl:{balanceModal:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"}},pt:{balanceModal:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"}},sl:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"}},sr:{balanceModal:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}}};var lo=function(r){var H=r={path:void 0,exports:{},require:function(e,t){throw null==t&&r.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},e=r.exports,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:ze:globalThis,I=t.setTimeout,L=t.clearTimeout,P=t.XMLHttpRequest,n=t.XDomainRequest,o=t.ActiveXObject,a=t.EventSource,i=t.document,h=t.Promise,d=t.fetch,s=t.Response,p=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;{var c;"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(e){i.readyState="complete"},!1)),null==P&&null!=o&&(P=function(){return new o("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&&(c=d,d=function(e,t){var r=t.signal;return c(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return r._reader=t,r._aborted&&r._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}})}function u(){this.bitsNeeded=0,this.codePoint=0}u.prototype.decode=function(e){function t(e,t,r){if(1===r)return 128>>t<=e&&e<<t<=2047;if(2===r)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===r)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function r(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 n="",o=this.bitsNeeded,a=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==o&&(s<128||191<s||!t(a<<6|63&s,o-6,r(o,a)))&&(o=0,a=65533,n+=String.fromCharCode(a)),0===o?(a=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(a,o,r(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?n+=String.fromCharCode(a):n=(n+=String.fromCharCode(55296+(a-65535-1>>10)))+String.fromCharCode(56320+(a-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=a,n},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=u);function m(){}function O(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=m,this.onload=m,this.onerror=m,this.onreadystatechange=m,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=m}function g(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function b(e){for(var t=Object.create(null),r=e.split("\r\n"),n=0;n<r.length;n+=1){var o=r[n].split(": "),a=o.shift(),o=o.join(": ");t[g(a)]=o}this._map=t}function R(){}function y(e){this._headers=e}function k(){}function F(){this._listeners=Object.create(null)}function v(e){I(function(){throw e},0)}function w(e){this.type=e,this.target=void 0}function $(e,t){w.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function N(e,t){w.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){w.call(this,e),this.error=t.error}O.prototype.open=function(e,t){this._abort(!0);function r(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:m}),l(),1===i||2===i||3===i){if(i=4,0!==n&&(L(n),n=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,a=this._xhr,i=1,n=0,s=(this._abort=function(e){0!==o._sendTimeout&&(L(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=m,a.onerror=m,a.onabort=m,a.onprogress=m,a.onreadystatechange=m,a.abort(),0!==n&&(L(n),n=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),i=0},function(){if(1===i){var t=0,r="",n=void 0;if("contentType"in a)t=200,r="OK",n=a.contentType;else try{t=a.status,r=a.statusText,n=a.getResponseHeader("Content-Type")}catch(e){r="",n=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=r,o._contentType=n,o.onreadystatechange())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(){n=I(function(){c()},500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){r("load",e)}),"onerror"in a&&(a.onerror=function(e){r("error",e)}),"onabort"in a&&(a.onabort=function(e){r("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){e=e,null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||r(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&s())}),!("contentType"in a)&&"ontimeout"in P.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(n=I(function(){c()},0))},O.prototype.abort=function(){this._abort(!1)},O.prototype.getResponseHeader=function(e){return this._contentType},O.prototype.setRequestHeader=function(e,t){var r=this._xhr;"setRequestHeader"in r&&r.setRequestHeader(e,t)},O.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},O.prototype.send=function(){if("ontimeout"in P.prototype&&("sendAsBinary"in P.prototype||"mozAnon"in P.prototype)||null==i||null==i.readyState||"complete"===i.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)}},b.prototype.get=function(e){return this._map[g(e)]},null!=P&&null==P.HEADERS_RECEIVED&&(P.HEADERS_RECEIVED=2),R.prototype.open=function(o,a,t,r,e,n,i){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(),r(new Error("NetworkError"))},o.onload=function(){r(null)},o.onabort=function(){r(null)},o.onreadystatechange=function(){var e,t,r,n;o.readyState===P.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,r=o.getResponseHeader("Content-Type"),n=o.getAllResponseHeaders(),a(e,t,r,new b(n)))},o.withCredentials=n,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},y.prototype.get=function(e){return this._headers.get(e)},k.prototype.open=function(e,t,o,r,n,a,i){var s=null,l=new f,c=l.signal,u=new p;return d(n,{headers:i,credentials:a?"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,r){function n(){s.read().then(function(e){e.done?t(void 0):(e=u.decode(e.value,{stream:!0}),o(e),n())}).catch(function(e){r(e)})}n()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){r(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},F.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var r=t.length,n=0;n<r;n+=1){var o=t[n];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){v(e)}}},F.prototype.addEventListener=function(e,t){e=String(e);var r=this._listeners,n=r[e];null==n&&(r[e]=n=[]);for(var o=!1,a=0;a<n.length;a+=1)n[a]===t&&(o=!0);o||n.push(t)},F.prototype.removeEventListener=function(e,t){e=String(e);var r=this._listeners,n=r[e];if(null!=n){for(var o=[],a=0;a<n.length;a+=1)n[a]!==t&&o.push(n[a]);0===o.length?delete r[e]:r[e]=o}},$.prototype=Object.create(w.prototype),N.prototype=Object.create(w.prototype),D.prototype=Object.create(w.prototype);function U(e,t){e=null==e?t:parseInt(e,10);return G(e=e!=e?t:e)}function j(e,t,r){try{"function"==typeof t&&t.call(e,r)}catch(e){v(e)}}var B=-1,T=-1,W=/^text\/event\-stream(;.*)?$/i,G=function(e){return Math.min(Math.max(e,1e3),18e6)};function E(e,t){var l,a,i,c,u,h,d,p,f,r,s,m,g,b,y,v,w,E,M,H,B,T,C,_,A,S,x;F.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,a=e,e=t,a=String(a),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=G(1e3),u=U(e.heartbeatTimeout,45e3),h="",d=c,p=!1,f=0,r=e.headers||{},e=e.Transport,s=V&&null==e?void 0:new O(new(null!=e?e:null!=P&&"withCredentials"in P.prototype||null==n?P:n)),m=new(null!=e&&"string"!=typeof e?e:null==s?k:R),g=void 0,y=-1,M=E=w=v="",T=B=H=b=0,C=function(e,t,r,n){var o,a;0===y&&(200===e&&null!=r&&W.test(r)?(y=1,p=Date.now(),d=c,l.readyState=1,o=new N("open",{status:e,statusText:t,headers:n}),l.dispatchEvent(o),j(l,l.onopen,o)):(a="",a=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==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",S(),o=new N("error",{status:e,statusText:t,headers:n}),l.dispatchEvent(o),j(l,l.onerror,o),console.error(a)))},_=function(e){if(1===y){for(var t=-1,r=0;r<e.length;r+=1)(i=e.charCodeAt(r))!=="\n".charCodeAt(0)&&i!=="\r".charCodeAt(0)||(t=r);var n=(-1!==t?M:"")+e.slice(0,t+1);M=(-1===t?M:"")+e.slice(t+1),""!==e&&(p=Date.now(),f+=e.length);for(var o=0;o<n.length;o+=1){var a,i=n.charCodeAt(o);if(-1===H&&i==="\n".charCodeAt(0))H=0;else if(-1===H&&(H=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==H&&(1===H&&(T=o+1),s=n.slice(B,T-1),a=n.slice(T+(T<o&&n.charCodeAt(T)===" ".charCodeAt(0)?1:0),o),"data"===s?v=v+"\n"+a:"id"===s?w=a:"event"===s?E=a:"retry"===s?(c=U(a,c),d=c):"heartbeatTimeout"===s&&(u=U(a,u),0!==b&&(L(b),b=I(function(){x()},u)))),0===H){if(""!==v){h=w;var s=new $(E=""===E?"message":E,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(s),"open"===E?j(l,l.onopen,s):"message"===E?j(l,l.onmessage,s):"error"===E&&j(l,l.onerror,s),2===y)return}E=v=""}H=i==="\r".charCodeAt(0)?-1:0}else 0===H&&(B=o,H=1),1===H?i===":".charCodeAt(0)&&(T=o+1,H=2):2===H&&(H=3)}}},A=function(e){var t;1!==y&&0!==y||(y=-1,0!==b&&(L(b),b=0),b=I(function(){x()},d),d=G(Math.min(16*c,2*d)),l.readyState=0,t=new D("error",{error:e}),l.dispatchEvent(t),j(l,l.onerror,t),null!=e&&console.error(e))},S=function(){y=2,null!=g&&(g.abort(),g=void 0),0!==b&&(L(b),b=0),l.readyState=2},x=function(){if(b=0,-1===y){p=!1,f=0,b=I(function(){x()},u),w=h,M=E=v="",H=T=B=y=0;var e=a,t=("data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==h&&(e=-1===(t=a.indexOf("?"))?a:a.slice(0,t+1)+a.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===a.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(h)),l.withCredentials),r={Accept:"text/event-stream"},n=l.headers;if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o]);try{g=m.open(s,C,_,A,e,t,r)}catch(e){throw S(),e}}else p||null==g?(e=Math.max((p||Date.now())+u-Date.now(),1),p=!1,b=I(function(){x()},e)):(A(new Error("No activity within "+u+" milliseconds. "+(0===y?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=a,l.readyState=0,l.withCredentials=t,l.headers=r,l._close=S,x()}var V=null!=d&&null!=s&&"body"in s.prototype,M=((E.prototype=Object.create(F.prototype)).CONNECTING=0,E.prototype.OPEN=1,E.prototype.CLOSED=2,E.prototype.close=function(){this._close()},E.CONNECTING=0,E.OPEN=1,E.CLOSED=2,E.prototype.withCredentials=void 0,a),t=(null==P||null!=a&&"withCredentials"in a.prototype||(M=E),I(function(){var e;-1!==["Asia/Anadyr","Asia/Barnaul","Asia/Chita","Asia/Irkutsk","Asia/Kamchatka","Asia/Khandyga","Asia/Krasnoyarsk","Asia/Magadan","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Sakhalin","Asia/Srednekolymsk","Asia/Tomsk","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Europe/Astrakhan","Europe/Kaliningrad","Europe/Kirov","Europe/Moscow","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Ulyanovsk","Europe/Volgograd","W-SU"].indexOf((new Intl.DateTimeFormat).resolvedOptions().timeZone)&&(e=["","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","","24 февраля "+(e=function(e){return""+e+""})("Россия напала на Украину")+".","","Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского вторжения. "+e("91% украинцев полностью поддерживает своего президента Владимира Зеленского")+" и его ответные действия на нападение России.","","Весь мир осудил необоснованное вторжение и решил ввести "+e("невиданные ранее санкции против России")+". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных граждан.","","В то же время, "+e("российское правительство ограничивает доступ граждан к внешней информации")+", насаждая однобокие формулировки и версии происходящего.","","В качестве надежного источника информации загрузите безопасный браузер Tor:","",e("https://www.torproject.org/"),"","И посетите:","",e("https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian"),"","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","",e("Прекратите эту бессмысленную войну! Остановите военного преступника Путина!")+"","","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦",""].join("\n"),alert(e),window.open("http://www.change.org/NetVoyne"))},15e3),function(e){e.EventSourcePolyfill=E,e.NativeEventSource=a,e.EventSource=M}(e));return 0,r.exports}();function co(r){let n,o,$,a,i,s,l,N,c,u,h,d,D,p,f,m,U,g,b,j,y,v,w,G,E,M,W,H,B,V,T,C,_,z,A,S,X,x,K,Z,I,L,Y,q,J,P=r[3]("balanceModal.balanceTitle")+"",O=r[3]("balanceModal.totalBalance")+"",R=r[3]("balanceModal.cashBalance")+"",k=r[3]("balanceModal.bonusBalance")+"",F=r[3]("balanceModal.depositButton")+"";return{c(){n=ne("div"),o=ne("div"),$=ae(),a=ne("div"),i=ne("div"),s=ne("p"),l=oe(P),N=ae(),c=ne("div"),u=ne("div"),h=ne("p"),d=oe(O),D=ae(),p=ne("p"),f=ne("span"),m=oe(r[1]),U=ae(),g=ne("span"),b=oe(r[2]),j=ae(),y=ne("div"),v=ne("p"),w=oe(R),G=ae(),E=ne("p"),(M=ne("span")).textContent=""+r[4].get("Casino").balanceAmount,W=ae(),H=ne("span"),B=oe(r[2]),V=ae(),T=ne("div"),C=ne("p"),_=oe(k),z=ae(),A=ne("p"),(S=ne("span")).textContent=""+r[4].get("UBS").balanceAmount,X=ae(),x=ne("span"),K=oe(r[2]),Z=ae(),I=ne("div"),L=ne("button"),Y=oe(F),se(o,"class","BalanceModalClose"),se(s,"class","BalanceModalTitle"),se(s,"part","BalanceModalTitle"),se(i,"class","BalanceModalHeader"),se(i,"part","BalanceModalHeader"),se(h,"class","BalanceModalText"),se(h,"part","BalanceModalText"),se(f,"class","BalanceModalAmount"),se(f,"part","BalanceModalAmount"),se(g,"class","BalanceModalCurrency"),se(g,"part","BalanceModalCurrency"),se(p,"class","BalanceModalValue"),se(p,"part","BalanceModalValue"),se(u,"class","BalanceModalRow"),se(u,"part","BalanceModalRow"),se(v,"class","BalanceModalText"),se(v,"part","BalanceModalText"),se(M,"class","BalanceModalAmount"),se(M,"part","BalanceModalAmount"),se(H,"class","BalanceModalCurrency"),se(H,"part","BalanceModalCurrency"),se(E,"class","BalanceModalValue"),se(E,"part","BalanceModalValue"),se(y,"class","BalanceModalRow"),se(y,"part","BalanceModalRow"),se(C,"class","BalanceModalText"),se(C,"part","BalanceModalText"),se(S,"class","BalanceModalAmount"),se(S,"part","BalanceModalAmount"),se(x,"class","BalanceModalCurrency"),se(x,"part","BalanceModalCurrency"),se(A,"class","BalanceModalValue"),se(A,"part","BalanceModalValue"),se(T,"class","BalanceModalRow"),se(T,"part","BalanceModalRow"),se(c,"class","BalanceModalBody"),se(c,"part","BalanceModalBody"),se(L,"class","BalanceModalAction"),se(L,"part","BalanceModalAction"),se(I,"class","BalanceModalFooter"),se(I,"part","BalanceModalFooter"),se(a,"class","BalanceModal"),se(a,"part","BalanceModal"),se(n,"class","BalanceModalWrapper"),se(n,"part","BalanceModalWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(n,$),ee(n,a),ee(a,i),ee(i,s),ee(s,l),ee(a,N),ee(a,c),ee(c,u),ee(u,h),ee(h,d),ee(u,D),ee(u,p),ee(p,f),ee(f,m),ee(p,U),ee(p,g),ee(g,b),ee(c,j),ee(c,y),ee(y,v),ee(v,w),ee(y,G),ee(y,E),ee(E,M),ee(E,W),ee(E,H),ee(H,B),ee(c,V),ee(c,T),ee(T,C),ee(C,_),ee(T,z),ee(T,A),ee(A,S),ee(A,X),ee(A,x),ee(x,K),ee(a,Z),ee(a,I),ee(I,L),ee(L,Y),q||(J=[ie(o,"click",r[12]),ie(L,"click",r[13])],q=!0)},p(e,t){8&t&&P!==(P=e[3]("balanceModal.balanceTitle")+"")&&le(l,P),8&t&&O!==(O=e[3]("balanceModal.totalBalance")+"")&&le(d,O),2&t&&le(m,e[1]),4&t&&le(b,e[2]),8&t&&R!==(R=e[3]("balanceModal.cashBalance")+"")&&le(w,R),4&t&&le(B,e[2]),8&t&&k!==(k=e[3]("balanceModal.bonusBalance")+"")&&le(_,k),4&t&&le(K,e[2]),8&t&&F!==(F=e[3]("balanceModal.depositButton")+"")&&le(Y,F)},d(e){e&&re(n),q=!1,Q(J)}}}function uo(r){let n,o,a;return{c(){se(n=ne("div"),"class","ShowBalanceModalOverlay"),se(n,"part","ShowBalanceModalOverlay")},m(e,t){te(e,n,t),o||(a=ie(n,"click",r[14]),o=!0)},p:y,d(e){e&&re(n),o=!1,a()}}}function ho(r){let n,o,a,i,s,l,c,u,h,d,p,f,m=r[0]&&co(r),g=r[0]&&uo(r);return{c(){n=ne("div"),o=ne("p"),a=oe(r[1]),i=ae(),s=oe(r[2]),l=ae(),(c=ne("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>',u=ae(),m&&m.c(),h=ae(),g&&g.c(),d=D(),this.c=y,se(o,"class","BalanceValue"),se(o,"part","BalanceValue"),se(n,"class","ShowBalance"),se(n,"part","ShowBalance")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(o,i),ee(o,s),ee(o,l),ee(o,c),ee(n,u),m&&m.m(n,null),te(e,h,t),g&&g.m(e,t),te(e,d,t),p||(f=ie(o,"click",r[11]),p=!0)},p(e,[t]){2&t&&le(a,e[1]),4&t&&le(s,e[2]),e[0]?m?m.p(e,t):((m=co(e)).c(),m.m(n,null)):m&&(m.d(1),m=null),e[0]?g?g.p(e,t):((g=uo(e)).c(),g.m(d.parentNode,d)):g&&(g.d(1),g=null)},i:y,o:y,d(e){e&&re(n),m&&m.d(),e&&re(h),g&&g.d(e),e&&re(d),p=!1,f()}}}function po(e,t,o){let r;$(e,$n,e=>o(3,r=e));let n,{userid:a=""}=t,{session:i=""}=t,{endpoint:s=""}=t,{lang:l="en"}=t,c=!1,u="",h="",d=!1,p=new Map;Object.keys(so).forEach(e=>{yn(e,so[e])});const f=e=>{switch(e){case"balance":o(0,c=!0);break;case"closebalance":o(0,c=!1)}},m=()=>{f("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href)};return Y(()=>()=>{n&&n.close()}),e.$$set=e=>{"userid"in e&&o(7,a=e.userid),"session"in e&&o(8,i=e.session),"endpoint"in e&&o(9,s=e.endpoint),"lang"in e&&o(10,l=e.lang)},e.$$.update=()=>{if(1920&e.$$.dirty&&s&&a&&i&&l&&(r=l,F.set(r),(async e=>{try{d=!0;const t=await fetch(e,{method:"GET",headers:{"X-SessionID":i}}),r=await t.json();if(!t.ok)throw d=!1,new Error("Failed to fetch balance data !");{d=!1,r.items.map(e=>p.set(e.displayName,e));const e=p.get("Casino"),n=p.get("UBS");o(2,h=e.currency),o(1,u=(parseFloat(e.balanceAmount)+parseFloat(n.balanceAmount)).toFixed(2))}}catch(e){d=!1,console.log("Balance error: ",e)}finally{d=!1}})(`${s}/player/${a}/account`)),896&e.$$.dirty&&s&&a&&i){r=`${s}/player/${a}/balance/updates`;var t=i;let e=new lo.EventSourcePolyfill(r,{headers:{accept:"text/event-stream","X-SessionId":t}});n&&n.close(),(n=e).addEventListener("message",e=>{try{var t=JSON.parse(e.data)["balanceChange"],r=p.get("Casino"),n=p.get("UBS");t&&t[r.id]&&p.set("Casino",Object.assign(Object.assign({},r),{balanceAmount:t[r.id].afterAmount})),t&&t[n.id]&&p.set("UBS",Object.assign(Object.assign({},r),{balanceAmount:t[n.id].afterAmount})),o(1,u=(parseFloat(r.balanceAmount)+parseFloat(n.balanceAmount)).toFixed(2))}catch(e){console.log("Balance stream failed: ",e)}})}var r},[c,u,h,r,p,f,m,a,i,s,l,()=>f("balance"),()=>f("closebalance"),()=>m(),()=>f("closebalance")]}function fo(e,t,r){const n=e.slice();return n[60]=t[r],n}function mo(e,t,r){const n=e.slice();return n[63]=t[r],n}function go(e,t,r){const n=e.slice();return n[60]=t[r],n}function bo(e,t,r){const n=e.slice();return n[63]=t[r],n}function yo(r){let n,o,a,i,e,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,M,H,B=r[17]("headerItem.login")+"",T=r[17]("headerItem.register")+"",C=!r[7]&&Eo(r),_=r[14],A=[];for(let e=0;e<_.length;e+=1)A[e]=Mo(mo(r,_,e));let S=r[9],x=[];for(let e=0;e<S.length;e+=1)x[e]=Ho(fo(r,S,e));return{c(){n=ne("header"),o=ne("div"),a=ne("div"),i=ne("img"),s=ae(),l=ne("nav"),C&&C.c(),c=ae(),u=ne("div"),h=ne("div"),d=ne("div"),p=oe(B),f=ae(),m=ne("div"),g=oe(T),b=ae(),y=ne("select");for(let e=0;e<A.length;e+=1)A[e].c();v=ae(),w=ne("nav"),E=ne("ul");for(let e=0;e<x.length;e+=1)x[e].c();I(i.src,e=r[16])||se(i,"src",e),se(i,"alt","Logo"),se(a,"class","HeaderBranding"),se(a,"part","HeaderBranding"),se(l,"class","HeaderMainNav"),se(l,"part","HeaderMainNav"),se(d,"class","Item ItemLogin"),se(d,"part","Item ItemLogin"),se(d,"tabindex","0"),se(m,"class","Item ItemRegister"),se(m,"part","Item ItemRegister"),se(m,"tabindex","0"),se(y,"class","Item ItemLanguage"),se(y,"part","Item ItemLanguage"),void 0===r[10]&&k(()=>r[42].call(y)),se(h,"class","HeaderItemsMenu"),se(h,"part","HeaderItemsMenu"),se(u,"class","HeaderTopActions"),se(u,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(E,"class","HeaderItemsMenuSecondary"),se(E,"part","HeaderItemsMenuSecondary"),se(w,"class","HeaderSecondaryNav"),se(w,"part","HeaderSecondaryNav"),se(n,"class","HeaderWrapper"),se(n,"part","HeaderWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(a,i),ee(o,s),ee(o,l),C&&C.m(l,null),ee(o,c),ee(o,u),ee(u,h),ee(h,d),ee(d,p),ee(h,f),ee(h,m),ee(m,g),ee(h,b),ee(h,y);for(let e=0;e<A.length;e+=1)A[e].m(y,null);U(y,r[10]),ee(n,v),ee(n,w),ee(w,E);for(let e=0;e<x.length;e+=1)x[e].m(E,null);M||(H=[ie(a,"click",r[39]),ie(d,"click",r[40]),ie(m,"click",r[41]),ie(y,"change",r[42]),ie(y,"change",r[43])],M=!0)},p(t,r){if(65536&r[0]&&!I(i.src,e=t[16])&&se(i,"src",e),t[7]?C&&(C.d(1),C=null):C?C.p(t,r):((C=Eo(t)).c(),C.m(l,null)),131072&r[0]&&B!==(B=t[17]("headerItem.login")+"")&&le(p,B),131072&r[0]&&T!==(T=t[17]("headerItem.register")+"")&&le(g,T),16384&r[0]){let e;for(_=t[14],e=0;e<_.length;e+=1){var n=mo(t,_,e);A[e]?A[e].p(n,r):(A[e]=Mo(n),A[e].c(),A[e].m(y,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=_.length}if(17408&r[0]&&U(y,t[10]),512&r[0]){let e;for(S=t[9],e=0;e<S.length;e+=1){var o=fo(t,S,e);x[e]?x[e].p(o,r):(x[e]=Ho(o),x[e].c(),x[e].m(E,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=S.length}},d(e){e&&re(n),C&&C.d(),R(A,e),R(x,e),M=!1,Q(H)}}}function vo(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,M,H,B,T,C,_,A=r[17]("headerItem.login")+"",S=r[17]("headerItem.register")+"";return{c(){n=ne("header"),o=ne("div"),a=ne("div"),i=t("svg"),s=t("defs"),l=t("style"),c=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),u=t("g"),h=t("rect"),d=t("rect"),p=t("rect"),f=ae(),m=ne("div"),g=ne("img"),y=ae(),v=ne("div"),w=ne("div"),E=ne("div"),M=oe(A),H=ae(),B=ne("div"),T=oe(S),se(h,"class","a"),se(h,"width","18"),se(h,"height","2"),se(h,"transform","translate(14 13)"),se(d,"class","a"),se(d,"width","22"),se(d,"height","2"),se(d,"transform","translate(14 20)"),se(p,"class","a"),se(p,"width","22"),se(p,"height","2"),se(p,"transform","translate(14 27)"),se(u,"transform","translate(-14 -13)"),se(i,"xmlns","http://www.w3.org/2000/svg"),se(i,"width","22"),se(i,"height","16"),se(i,"viewBox","0 0 22 16"),se(a,"class","HeaderMobileMainNav"),se(a,"part","HeaderMobileMainNav"),I(g.src,b=r[16])||se(g,"src",b),se(g,"alt","Logo"),se(m,"class","HeaderBranding"),se(m,"part","HeaderBranding"),se(E,"class","Item ItemLogin"),se(E,"part","Item ItemLogin"),se(B,"class","Item ItemRegister"),se(B,"part","Item ItemRegister"),se(w,"class","HeaderItemsMenu"),se(w,"part","HeaderItemsMenu"),se(v,"class","HeaderTopActions"),se(v,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(n,"class","HeaderWrapper HeaderMobileWrapper"),se(n,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(a,i),ee(i,s),ee(s,l),ee(l,c),ee(i,u),ee(u,h),ee(u,d),ee(u,p),ee(o,f),ee(o,m),ee(m,g),ee(o,y),ee(o,v),ee(v,w),ee(w,E),ee(E,M),ee(w,H),ee(w,B),ee(B,T),C||(_=[ie(i,"click",r[35]),ie(m,"click",r[36]),ie(E,"click",r[37]),ie(B,"click",r[38])],C=!0)},p(e,t){65536&t[0]&&!I(g.src,b=e[16])&&se(g,"src",b),131072&t[0]&&A!==(A=e[17]("headerItem.login")+"")&&le(M,A),131072&t[0]&&S!==(S=e[17]("headerItem.register")+"")&&le(T,S)},d(e){e&&re(n),C=!1,Q(_)}}}function wo(e){let r;function n(e){return e[12]?To:Bo}let o=n(e),a=o(e);return{c(){a.c(),r=D()},m(e,t){a.m(e,t),te(e,r,t)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r.parentNode,r)))},d(e){a.d(e),e&&re(r)}}}function Eo(r){let n,o,a,i;return{c(){L(n=ne("casino-slider"),"class","HeaderItemsMenu"),L(n,"part","HeaderItemsMenu"),L(n,"identity",Io),L(n,"isprimarymenu","true"),L(n,"actionevent",r[6]),L(n,"activeindex",r[8]),L(n,"location","headerMain")},m(e,t){te(e,n,t),a||(i=A(o=r[20].call(null,n)),a=!0)},p(e,t){64&t[0]&&L(n,"actionevent",e[6]),256&t[0]&&L(n,"activeindex",e[8])},d(e){e&&re(n),a=!1,i()}}}function Mo(e){let r,n,o,a=e[63]+"";return{c(){r=ne("option"),n=oe(a),r.__value=o=e[63],r.value=r.__value},m(e,t){te(e,r,t),ee(r,n)},p(e,t){16384&t[0]&&a!==(a=e[63]+"")&&le(n,a),16384&t[0]&&o!==(o=e[63])&&(r.__value=o,r.value=r.__value)},d(e){e&&re(r)}}}function Ho(e){let r,n,o,a,i=e[60].label+"";return{c(){r=ne("li"),n=ne("a"),o=oe(i),se(n,"href",a=e[60].path),se(r,"class","ItemSecondary"),se(r,"part","ItemSecondary")},m(e,t){te(e,r,t),ee(r,n),ee(n,o)},p(e,t){512&t[0]&&i!==(i=e[60].label+"")&&le(o,i),512&t[0]&&a!==(a=e[60].path)&&se(n,"href",a)},d(e){e&&re(r)}}}function Bo(r){let n,o,a,i,e,s,l,c,u,h,d,p,f,m,g,b,y,v,w,E,M,H,B,T=r[17]("headerItem.deposit")+"",C=!r[7]&&Co(r),_=r[14],A=[];for(let e=0;e<_.length;e+=1)A[e]=_o(bo(r,_,e));let S=r[9],x=[];for(let e=0;e<S.length;e+=1)x[e]=Ao(go(r,S,e));return{c(){n=ne("header"),o=ne("div"),a=ne("div"),i=ne("img"),s=ae(),l=ne("nav"),C&&C.c(),c=ae(),u=ne("div"),h=ne("div"),d=ne("player-account-balance-modal"),p=ae(),f=ne("div"),m=oe(T),g=ae(),(b=ne("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=ae(),v=ne("select");for(let e=0;e<A.length;e+=1)A[e].c();w=ae(),E=ne("nav"),M=ne("ul");for(let e=0;e<x.length;e+=1)x[e].c();I(i.src,e=r[16])||se(i,"src",e),se(i,"alt","Logo"),se(a,"class","HeaderBranding"),se(a,"part","HeaderBranding"),se(l,"class","HeaderMainNav"),se(l,"part","HeaderMainNav"),L(d,"session",r[0]),L(d,"userid",r[1]),L(d,"endpoint",r[2]),L(d,"lang",r[3]),se(f,"class","Item ItemDeposit"),se(f,"part","Item ItemDeposit"),se(b,"class","Item ItemAccount"),se(b,"part","Item ItemAccount"),se(v,"class","Item ItemLanguage"),se(v,"part","Item ItemLanguage"),void 0===r[10]&&k(()=>r[33].call(v)),se(h,"class","HeaderItemsMenu PrimaryMenu"),se(h,"part","HeaderItemsMenu PrimaryMenu"),se(u,"class","HeaderTopActions"),se(u,"part","HeaderItemsMenu"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(M,"class","HeaderItemsMenuSecondary"),se(M,"part","HeaderItemsMenuSecondary"),se(E,"class","HeaderSecondaryNav"),se(E,"part","HeaderSecondaryNav"),se(n,"class","HeaderWrapper"),se(n,"part","HeaderWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(a,i),ee(o,s),ee(o,l),C&&C.m(l,null),ee(o,c),ee(o,u),ee(u,h),ee(h,d),ee(h,p),ee(h,f),ee(f,m),ee(h,g),ee(h,b),ee(h,y),ee(h,v);for(let e=0;e<A.length;e+=1)A[e].m(v,null);U(v,r[10]),ee(n,w),ee(n,E),ee(E,M);for(let e=0;e<x.length;e+=1)x[e].m(M,null);H||(B=[ie(a,"click",r[30]),ie(f,"click",r[31]),ie(b,"click",r[32]),ie(v,"change",r[33]),ie(v,"change",r[34])],H=!0)},p(t,r){if(65536&r[0]&&!I(i.src,e=t[16])&&se(i,"src",e),t[7]?C&&(C.d(1),C=null):C?C.p(t,r):((C=Co(t)).c(),C.m(l,null)),1&r[0]&&L(d,"session",t[0]),2&r[0]&&L(d,"userid",t[1]),4&r[0]&&L(d,"endpoint",t[2]),8&r[0]&&L(d,"lang",t[3]),131072&r[0]&&T!==(T=t[17]("headerItem.deposit")+"")&&le(m,T),16384&r[0]){let e;for(_=t[14],e=0;e<_.length;e+=1){var n=bo(t,_,e);A[e]?A[e].p(n,r):(A[e]=_o(n),A[e].c(),A[e].m(v,null))}for(;e<A.length;e+=1)A[e].d(1);A.length=_.length}if(17408&r[0]&&U(v,t[10]),512&r[0]){let e;for(S=t[9],e=0;e<S.length;e+=1){var o=go(t,S,e);x[e]?x[e].p(o,r):(x[e]=Ao(o),x[e].c(),x[e].m(M,null))}for(;e<x.length;e+=1)x[e].d(1);x.length=S.length}},d(e){e&&re(n),C&&C.d(),R(A,e),R(x,e),H=!1,Q(B)}}}function To(r){let n,o,a,i,s,l,c,u,h,d,p,f,m,g,b,y,v,w=!r[15]&&So(r);return{c(){n=ne("header"),o=ne("div"),a=ne("div"),w&&w.c(),i=ae(),s=ne("div"),l=ne("img"),u=ae(),h=ne("div"),d=ne("div"),p=ne("player-account-balance-modal"),f=ae(),(m=ne("div")).textContent="Deposit",g=ae(),(b=ne("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>',se(a,"class","HeaderMobileMainNav"),se(a,"part","HeaderMobileMainNav"),I(l.src,c=r[16])||se(l,"src",c),se(l,"alt","Logo"),se(s,"class","HeaderBranding"),se(s,"part","HeaderBranding"),L(p,"session",r[0]),L(p,"userid",r[1]),L(p,"endpoint",r[2]),L(p,"lang",r[3]),se(m,"class","Item ItemDeposit"),se(m,"part","Item ItemDeposit"),se(b,"class","Item ItemAccount"),se(b,"part","Item ItemAccount"),se(d,"class","HeaderItemsMenu PrimaryMenu"),se(d,"part","HeaderItemsMenu PrimaryMenu"),se(h,"class","HeaderTopActions"),se(h,"part","HeaderTopActions"),se(o,"class","HeaderContainer"),se(o,"part","HeaderContainer"),se(n,"class","HeaderWrapper HeaderMobileWrapper"),se(n,"part","HeaderWrapper HeaderMobileWrapper")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),w&&w.m(a,null),ee(o,i),ee(o,s),ee(s,l),ee(o,u),ee(o,h),ee(h,d),ee(d,p),ee(d,f),ee(d,m),ee(d,g),ee(d,b),y||(v=[ie(s,"click",r[27]),ie(m,"click",r[28]),ie(b,"click",r[29])],y=!0)},p(e,t){e[15]?w&&(w.d(1),w=null):w?w.p(e,t):((w=So(e)).c(),w.m(a,null)),65536&t[0]&&!I(l.src,c=e[16])&&se(l,"src",c),1&t[0]&&L(p,"session",e[0]),2&t[0]&&L(p,"userid",e[1]),4&t[0]&&L(p,"endpoint",e[2]),8&t[0]&&L(p,"lang",e[3])},d(e){e&&re(n),w&&w.d(),y=!1,Q(v)}}}function Co(r){let n,o,a,i;return{c(){L(n=ne("casino-slider"),"class","HeaderItemsMenu"),L(n,"part","HeaderItemsMenu"),L(n,"identity",Io),L(n,"isprimarymenu","true"),L(n,"actionevent",r[6]),L(n,"activeindex",r[8]),L(n,"location","headerMain")},m(e,t){te(e,n,t),a||(i=A(o=r[20].call(null,n)),a=!0)},p(e,t){64&t[0]&&L(n,"actionevent",e[6]),256&t[0]&&L(n,"activeindex",e[8])},d(e){e&&re(n),a=!1,i()}}}function _o(e){let r,n,o,a=e[63]+"";return{c(){r=ne("option"),n=oe(a),r.__value=o=e[63],r.value=r.__value,r.selected=!0},m(e,t){te(e,r,t),ee(r,n)},p(e,t){16384&t[0]&&a!==(a=e[63]+"")&&le(n,a),16384&t[0]&&o!==(o=e[63])&&(r.__value=o,r.value=r.__value)},d(e){e&&re(r)}}}function Ao(e){let r,n,o,a,i=e[60].label+"";return{c(){r=ne("li"),n=ne("a"),o=oe(i),se(n,"href",a=e[60].path),se(r,"class","ItemSecondary"),se(r,"part","ItemSecondary")},m(e,t){te(e,r,t),ee(r,n),ee(n,o)},p(e,t){512&t[0]&&i!==(i=e[60].label+"")&&le(o,i),512&t[0]&&a!==(a=e[60].path)&&se(n,"href",a)},d(e){e&&re(r)}}}function So(r){let n,o,a,i,s,l,c,u,h,d;return{c(){n=t("svg"),o=t("defs"),a=t("style"),i=oe(".a {\n fill: var(--emfe-w-color-white, #FFFFFF);\n }\n "),s=t("g"),l=t("rect"),c=t("rect"),u=t("rect"),se(l,"class","a"),se(l,"width","18"),se(l,"height","2"),se(l,"transform","translate(14 13)"),se(c,"class","a"),se(c,"width","22"),se(c,"height","2"),se(c,"transform","translate(14 20)"),se(u,"class","a"),se(u,"width","22"),se(u,"height","2"),se(u,"transform","translate(14 27)"),se(s,"transform","translate(-14 -13)"),se(n,"xmlns","http://www.w3.org/2000/svg"),se(n,"width","22"),se(n,"height","16"),se(n,"viewBox","0 0 22 16")},m(e,t){te(e,n,t),ee(n,o),ee(o,a),ee(a,i),ee(n,s),ee(s,l),ee(s,c),ee(s,u),h||(d=ie(n,"click",r[26]),h=!0)},p:y,d(e){e&&re(n),h=!1,d()}}}function xo(e){let r,n;function o(e){return e[13]?wo:e[12]?vo:yo}let a=o(e),i=a(e);return{c(){i.c(),r=ae(),n=ne("casino-hamburger-menu"),this.c=y,L(n,"menuitemsurl",e[11]),L(n,"activecategory",e[5]),L(n,"lang",e[3]),L(n,"languageslist",e[4])},m(e,t){i.m(e,t),te(e,r,t),te(e,n,t)},p(e,t){a===(a=o(e))&&i?i.p(e,t):(i.d(1),(i=a(e))&&(i.c(),i.m(r.parentNode,r))),2048&t[0]&&L(n,"menuitemsurl",e[11]),32&t[0]&&L(n,"activecategory",e[5]),8&t[0]&&L(n,"lang",e[3]),16&t[0]&&L(n,"languageslist",e[4])},i:y,o:y,d(e){i.d(e),e&&re(r),e&&re(n)}}}customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",class extends Be{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer}.ShowBalance .BalanceValue svg{width:16px}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-50%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-color-primary, #D0046C) 1A;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:50%;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, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:\"\";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-color-contrast, #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-color-gray-300, #58586B);font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-color-primary, #D0046C);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-color-primary-600, #99034F)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}</style>",He(this,{target:this.shadowRoot,props:W(this.attributes),customElement:!0},po,ho,p,{userid:7,session:8,endpoint:9,lang:10},null),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["userid","session","endpoint","lang"]}get userid(){return this.$$.ctx[7]}set userid(e){this.$$set({userid:e}),g()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),g()}get endpoint(){return this.$$.ctx[9]}set endpoint(e){this.$$set({endpoint:e}),g()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),g()}});let Io="HeaderMenu";function Lo(r,e,n){let t,{session:o=""}=($(r,$n,e=>n(17,t=e)),e),{userid:a=""}=e,{endpoint:i=""}=e,{cmsendpoint:s=""}=e,{cmsenv:l="stage"}=e,{lang:c="en"}=e,{languageslist:u="en, ro"}=e,{activecategory:h=""}=e,{operatorid:d=""}=e,{pagetag:p=""}=e,{positiontag:f=""}=e,{actionevent:m=""}=e,g=0;var b,y;({withLocale:b,translations:y}={withLocale:"en",translations:{}}),F.subscribe(e=>{null==e&&(gn.set(y),F.set(b))}),Object.keys(Dn).forEach(e=>{yn(e,Dn[e])});let v,w,E,M=[],H=[],B="",T=!0,C=!1,_=window.navigator.userAgent,A=!1,S=[],x=!1,I="";const L=e=>{switch(e){case"login":window.postMessage({type:"OpenLoginRegisterModal",transition:"Login"},window.location.href);break;case"register":window.postMessage({type:"OpenLoginRegisterModal",transition:"Register"},window.location.href);break;case"lobby":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"myaccount":window.postMessage({type:"PlayerAccountMenuActive",isMobile:Nn(_)},window.location.href);break;case"deposit":window.postMessage({type:"GoToDeposit"},window.location.href);break;case"language":window.postMessage({type:"LanguageChanged",selectedLanguage:B},window.location.href)}},P=()=>{n(15,x=!0),window.postMessage({type:"OpenHamburgerMenuModal"},window.location.href)},O=e=>{if(e.data)switch(e.data.type){case"UserSessionID":e.data.userid,e.data.session,n(13,A=!0);break;case"CloseHamburgerMenu":e.data.showhamburger&&n(15,x=!1);break;case"LogoutSuccessfull":n(13,A=!1);break;case"LanguageChanged":R(),k(w)}},R=()=>{w=new URL(`${s}/${B.toLowerCase()}/menu`),n(11,v=new URL(`${s}/${B.toLowerCase()}/hamburger-menu`)),E=new URL(`${s}/${B.toLowerCase()}/op-options/style`),w.searchParams.append("device","dk"),w.searchParams.append("env",l),w.searchParams.append("language",B.toLowerCase()),w.searchParams.append("platform","dk"),v.searchParams.append("device","dk"),v.searchParams.append("env",l),v.searchParams.append("language",B.toLowerCase()),v.searchParams.append("platform","dk")},k=e=>(n(7,T=!0),new Promise((t,r)=>{fetch(e).then(e=>e.json()).then(e=>{M=e.desktop.primary,n(9,H=e.desktop.secondary),n(7,T=!1),t(e)},e=>{n(7,T=!1),console.error(e),r(e)})}));return Y(async()=>(window.addEventListener("message",O,!1),Nn(_)&&n(12,C=!0),()=>{window.removeEventListener("message",O)})),r.$$set=e=>{"session"in e&&n(0,o=e.session),"userid"in e&&n(1,a=e.userid),"endpoint"in e&&n(2,i=e.endpoint),"cmsendpoint"in e&&n(21,s=e.cmsendpoint),"cmsenv"in e&&n(22,l=e.cmsenv),"lang"in e&&n(3,c=e.lang),"languageslist"in e&&n(4,u=e.languageslist),"activecategory"in e&&n(5,h=e.activecategory),"operatorid"in e&&n(23,d=e.operatorid),"pagetag"in e&&n(24,p=e.pagetag),"positiontag"in e&&n(25,f=e.positiontag),"actionevent"in e&&n(6,m=e.actionevent)},r.$$.update=()=>{var e,t;160&r.$$.dirty[0]&&h&&!T&&n(8,g=M.findIndex(e=>-1<e.path.indexOf(h))),1&r.$$.dirty[0]&&o&&n(13,A=!0),8&r.$$.dirty[0]&&c&&(t=c,F.set(t)),2097176&r.$$.dirty[0]&&s&&c&&u&&(n(14,S=u.replace(/ /g,"").split(",")),n(14,S=S.map(e=>e.toUpperCase())),n(10,B=c.toUpperCase()),R(),e=E,new Promise((t,r)=>{fetch(e).then(e=>e.json()).then(e=>{0<e.logoUrl.length&&("null"!=e.logoUrl||"false"!=e.logoUrl)&&n(16,I=e.logoUrl),t(e)},e=>{console.error(e),r(e)})}),setTimeout(()=>{k(w)}))},[o,a,i,c,u,h,m,T,g,H,B,v,C,A,S,x,I,t,L,P,e=>{window.postMessage({type:"SliderData",identity:Io,data:M},window.location.href)},s,l,d,p,f,()=>P(),()=>L("lobby"),()=>L("deposit"),()=>L("myaccount"),()=>L("lobby"),()=>L("deposit"),()=>L("myaccount"),function(){B=j(this),n(10,B),n(14,S)},()=>L("language"),()=>P(),()=>L("lobby"),()=>L("login"),()=>L("register"),()=>L("lobby"),()=>L("login"),()=>L("register"),function(){B=j(this),n(10,B),n(14,S)},()=>L("language")]}class Po extends Be{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.HeaderWrapper{background:var(--emfe-w-color-header-bg, #050518)}.HeaderContainer{max-width:1300px;display:flex;flex-direction:row;align-items:center;height:84px;margin:0 auto}.HeaderBranding{width:150px;cursor:pointer}.HeaderBranding img{width:100%}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:var(--emfe-w-color-header-bg, #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-color-white, #FFFFFF);font-size:16px;align-items:center}.HeaderItemsMenu .Item{padding:0 15px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.ItemLogin{border-radius:5px;background:transparent;font-size:14px;border:solid 1px var(--emfe-w-color-white, #FFFFFF);height:44px;text-align:center;line-height:44px;margin-right:20px;cursor:pointer}.ItemRegister,.ItemDeposit{border-radius:5px;background:var(--emfe-w-color-primary, #D0046C);font-size:14px;height:44px;text-align:center;line-height:44px;cursor:pointer}.ItemDeposit{background:var(--emfe-w-color-primary, #D0046C)}.ItemLanguage{height:44px;width:76px;text-align:center;line-height:44px;background:transparent;color: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-color-header-bg, #050518);background-position:calc(100% - 0.75rem) center}.ItemLanguage option{color: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-color-white, #FFFFFF);font-size:14px;max-width:1280px;margin:0 auto;overflow-y:hidden;overflow-x:auto;padding:0}.HeaderItemsMenuSecondary .ItemSecondary{padding:0 15px;cursor:pointer;transition-duration:0.15s}.HeaderItemsMenuSecondary .ItemSecondary a{color:var(--emfe-w-color-white, #FFFFFF);text-decoration:none}.HeaderItemsMenuSecondary .ItemSecondary:hover a{color:var(--emfe-w-color-primary, #D0046C)}.HeaderMobileWrapper .HeaderContainer{height:55px;padding:0 15px;gap:10px}.HeaderMobileWrapper .HeaderBranding{width:110px}.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}</style>",He(this,{target:this.shadowRoot,props:W(this.attributes),customElement:!0},Lo,xo,p,{session:0,userid:1,endpoint:2,cmsendpoint:21,cmsenv:22,lang:3,languageslist:4,activecategory:5,operatorid:23,pagetag:24,positiontag:25,actionevent:6},null,[-1,-1,-1]),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","endpoint","cmsendpoint","cmsenv","lang","languageslist","activecategory","operatorid","pagetag","positiontag","actionevent"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),g()}get cmsendpoint(){return this.$$.ctx[21]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),g()}get cmsenv(){return this.$$.ctx[22]}set cmsenv(e){this.$$set({cmsenv:e}),g()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),g()}get languageslist(){return this.$$.ctx[4]}set languageslist(e){this.$$set({languageslist:e}),g()}get activecategory(){return this.$$.ctx[5]}set activecategory(e){this.$$set({activecategory:e}),g()}get operatorid(){return this.$$.ctx[23]}set operatorid(e){this.$$set({operatorid:e}),g()}get pagetag(){return this.$$.ctx[24]}set pagetag(e){this.$$set({pagetag:e}),g()}get positiontag(){return this.$$.ctx[25]}set positiontag(e){this.$$set({positiontag:e}),g()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),g()}}return customElements.get("casino-header-controller")||customElements.define("casino-header-controller",Po),Po});
2
4
  //# sourceMappingURL=casino-header-controller.js.map