@everymatrix/casino-page 1.4.0 → 1.5.2

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,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function W(){}function _(e){return e()}function k(){return Object.create(null)}function V(e){e.forEach(_)}function T(e){return"function"==typeof e}function t(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,G;function ce(e,t){return(s=s||document.createElement("a")).href=t,e===s.href}function u(e,...t){if(null==e)return W;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Ve(e,t,n){e.$$.on_destroy.push(u(t,n))}function E(e){return e&&T(e.destroy)?e.destroy:W}function de(e,t){e.appendChild(t)}function ue(e,t,n){e.insertBefore(t,n||null)}function me(e){e.parentNode.removeChild(e)}function C(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function he(e){return document.createElement(e)}function M(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ge(e){return document.createTextNode(e)}function pe(){return ge(" ")}function l(){return ge("")}function z(e,t,n,a){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)}function fe(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function x(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:fe(e,t,n)}function ye(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function L(e,t){e.value=null==t?"":t}function S(e,t,n,a){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,a?"important":"")}function m(e,t,n){e.classList[n?"add":"remove"](t)}class P{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=M(t.nodeName):this.e=he(t.nodeName),this.t=t,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)ue(this.t,this.n[e],t)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(me)}}function n(e){const t={};for(const n of e)t[n.name]=n.value;return t}function F(e){G=e}function Ze(e){!function(){if(G)return G;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const R=[],Ue=[],h=[],g=[],I=Promise.resolve();let A=!1;function O(){A||(A=!0,I.then(f))}function _e(){return O(),I}function N(e){h.push(e)}const D=new Set;let B=0;function f(){const e=G;do{for(;B<R.length;){const e=R[B];B++,F(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),V(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(N))}for(F(null),R.length=0,B=0;Ue.length;)Ue.pop()();for(let e=0;e<h.length;e+=1){const a=h[e];D.has(a)||(D.add(a),a())}}while(h.length=0,R.length);for(;g.length;)g.pop()();A=!1,D.clear(),F(e)}const H=new Set;function j(a,e,t,n,r,i,s,o=[-1]){var l=G;F(a);const c=a.$$={fragment:null,ctx:null,props:i,update:W,not_equal:r,bound:k(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:k(),dirty:o,skip_bound:!1,root:e.target||l.$$.root};s&&s(c.root);let d=!1;if(c.ctx=t?t(a,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&r(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),d&&(n=e,-1===(e=a).$$.dirty[0]&&(R.push(e),O(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],c.update(),d=!0,V(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){i=e.target;const W=Array.from(i.childNodes);c.fragment&&c.fragment.l(W),W.forEach(me)}else c.fragment&&c.fragment.c();e.intro&&(o=a.$$.fragment)&&o.i&&(H.delete(o),o.i(void 0));{var u=a;s=e.target;t=e.anchor;n=e.customElement;const{fragment:m,on_mount:h,on_destroy:g,after_update:p}=u.$$;m&&m.m(s,t),n||N(()=>{var e=h.map(_).filter(T);g?g.push(...e):V(e),u.$$.on_mount=[]}),p.forEach(N)}f()}F(l)}let e;"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(_).filter(T);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){V(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(V(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=W}$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 U,Y,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==o&&o,Z="URLSearchParams"in o,K="Symbol"in o&&"iterator"in Symbol,X="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),J="FormData"in o,q="ArrayBuffer"in o;function Q(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 ee(e){return e="string"!=typeof e?String(e):e}function te(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return K&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ne(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ae(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function re(e){var t=new FileReader,n=ae(t);return t.readAsArrayBuffer(e),n}function ie(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:X&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:J&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Z&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():q&&X&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=ie(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):q&&(ArrayBuffer.prototype.isPrototypeOf(e)||Y(e))?this._bodyArrayBuffer=ie(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):Z&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},X&&(this.blob=function(){var e=ne(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?ne(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(re)}),this.text=function(){var e,t,n=ne(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,t=ae(e=new FileReader),e.readAsText(n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),a=0;a<t.length;a++)n[a]=String.fromCharCode(t[a]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},J&&(this.formData=function(){return this.text().then(be)}),this.json=function(){return this.text().then(JSON.parse)},this}q&&(U=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Y=ArrayBuffer.isView||function(e){return e&&-1<U.indexOf(Object.prototype.toString.call(e))}),c.prototype.append=function(e,t){e=Q(e),t=ee(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[Q(e)]},c.prototype.get=function(e){return e=Q(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(Q(e))},c.prototype.set=function(e,t){this.map[Q(e)]=ee(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),te(n)},c.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),te(t)},c.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),te(n)},K&&(c.prototype[Symbol.iterator]=c.prototype.entries);var oe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function le(e,t){if(!(this instanceof le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,a=(t=t||{}).body;if(e instanceof le){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<oe.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function be(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function ve(e,t){if(!(this instanceof ve))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 c(t.headers),this.url=t.url||"",this._initBody(e)}le.prototype.clone=function(){return new le(this,{body:this._bodyInit})},se.call(le.prototype),se.call(ve.prototype),ve.prototype.clone=function(){return new ve(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},ve.error=function(){var e=new ve(null,{status:0,statusText:""});return e.type="error",e};var we=[301,302,303,307,308],$e=(ve.redirect=function(e,t){if(-1===we.indexOf(t))throw new RangeError("Invalid status code");return new ve(null,{status:t,headers:{location:e}})},o.DOMException);try{new $e}catch(W){($e=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),$e.prototype.constructor=$e}function xe(a,s){return new Promise(function(r,e){var t=new le(a,s);if(t.signal&&t.signal.aborted)return e(new $e("Aborted","AbortError"));var i=new XMLHttpRequest;function n(){i.abort()}i.onload=function(){var e,n,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",n=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)},a=(t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL"),"response"in i?i.response:i.responseText);setTimeout(function(){r(new ve(a,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new $e("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&o.location.href?o.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(X?i.responseType="blob":q&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof c?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,ee(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",n)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}function Ln(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}xe.polyfill=!0,o.fetch||(o.fetch=xe,o.Headers=c,o.Request=le,o.Response=ve),self.fetch.bind(self);var Se=function(e,t){return(Se=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 ke(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}Se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Ce(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&a>=e.length?void 0:e)&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Te(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function Ge(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||((a=a||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Me(e){return"function"==typeof e}function Ee(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 Le=Ee(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 Pe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}Ie.prototype.unsubscribe=function(){var e,t,n,a,r;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Ce(i),o=s.next();!o.done;o=s.next())o.value.remove(this)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(Me(i))try{i()}catch(e){r=e instanceof Le?e.errors:[e]}i=this._finalizers;if(i){this._finalizers=null;try{for(var l=Ce(i),c=l.next();!c.done;c=l.next()){var d=c.value;try{Oe(d)}catch(e){r=null!=r?r:[],e instanceof Le?r=Ge(Ge([],Te(r)),Te(e.errors)):r.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}}if(r)throw new Le(r)}},Ie.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Oe(e);else{if(e instanceof Ie){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Ie.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ie.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ie.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Pe(t,e)},Ie.prototype.remove=function(e){var t=this._finalizers;t&&Pe(t,e),e instanceof Ie&&e._removeParent(this)},Ie.EMPTY=((a=new Ie).closed=!0,a);var Fe=Ie,Re=Fe.EMPTY;function Ie(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ae(e){return e instanceof Fe||e&&"closed"in e&&Me(e.remove)&&Me(e.add)&&Me(e.unsubscribe)}function Oe(e){Me(e)?e():e.unsubscribe()}var Ne=void 0,De=!1,Be=!1,He={setTimeout:function(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var r=He.delegate;return null!=r&&r.setTimeout?r.setTimeout.apply(r,Ge([e,t],Te(n))):setTimeout.apply(void 0,Ge([e,t],Te(n)))},clearTimeout:function(e){var t=He.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function je(){}var Ke=null;function Xe(e){if(De){var t=!Ke;if(t&&(Ke={errorThrown:!1,error:null}),e(),t){var t=Ke,n=t.errorThrown,t=t.error;if(Ke=null,n)throw t}}else e()}ke(et,Je=Fe),et.create=function(e,t,n){return new rt(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,Je.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()}};var Je,qe=et,Qe=Function.prototype.bind;function et(e){var t=Je.call(this)||this;return t.isStopped=!1,e?Ae(t.destination=e)&&e.add(t):t.destination=lt,t}function tt(e,t){return Qe.call(e,t)}st.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ot(e)}},st.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ot(e)}else ot(e)},st.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ot(e)}};var nt,at=st,rt=(ke(it,nt=qe),it);function it(e,t,n){var a=nt.call(this)||this,n=Me(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:a&&Be?((t=Object.create(e)).unsubscribe=function(){return a.unsubscribe()},{next:e.next&&tt(e.next,t),error:e.error&&tt(e.error,t),complete:e.complete&&tt(e.complete,t)}):e;return a.destination=new at(n),a}function st(e){this.partialObserver=e}function ot(e){var t=e;He.setTimeout(function(){throw t})}var lt={closed:!0,next:je,error:function(e){throw e},complete:je},a="function"==typeof Symbol&&Symbol.observable||"@@observable";function ct(e){return e}ut.prototype.lift=function(e){var t=new ut;return t.source=this,t.operator=e,t},ut.prototype.subscribe=function(e,t,n){var a,r=this,i=(a=e)&&a instanceof qe||a&&Me(a.next)&&Me(a.error)&&Me(a.complete)&&Ae(a)?e:new rt(e,t,n);return Xe(function(){var e=r.operator,t=r.source;i.add(e?e.call(i,t):t?r._subscribe(i):r._trySubscribe(i))}),i},ut.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},ut.prototype.forEach=function(a,e){var r=this;return new(e=mt(e))(function(e,t){var n=new rt({next:function(e){try{a(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});r.subscribe(n)})},ut.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},ut.prototype[a]=function(){return this},ut.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?ct:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},ut.prototype.toPromise=function(e){var a=this;return new(e=mt(e))(function(e,t){var n;a.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},ut.create=function(e){return new ut(e)};var dt=ut;function ut(e){e&&(this._subscribe=e)}function mt(e){return null!=(e=null!=e?e:Ne)?e:Promise}var ht,gt,pt,ft=Ee(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),a=(ke(r,pt=dt),r.prototype.lift=function(e){var t=new yt(this,this);return t.operator=e,t},r.prototype._throwIfClosed=function(){if(this.closed)throw new ft},r.prototype.next=function(r){var i=this;Xe(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=Ce(i.currentObservers),a=n.next();!a.done;a=n.next())a.value.next(r)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},r.prototype.error=function(t){var n=this;Xe(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)}})},r.prototype.complete=function(){var t=this;Xe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),pt.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,a=this.isStopped,r=this.observers;return n||a?Re:(this.currentObservers=null,r.push(e),new Fe(function(){t.currentObservers=null,Pe(r,e)}))},r.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,a=this.isStopped;t?e.error(n):a&&e.complete()},r.prototype.asObservable=function(){var e=new dt;return e.source=this,e},r.create=function(e,t){return new yt(e,t)},r),yt=(ke($t,gt=a),$t.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},$t.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},$t.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},$t.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Re},$t),bt={now:function(){return(bt.delegate||Date).now()},delegate:void 0},vt=(ke(wt,ht=a),wt.prototype.next=function(e){var t=this,n=t.isStopped,a=t._buffer,r=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;n||(a.push(e),r||a.push(i.now()+t)),this._trimBuffer(),ht.prototype.next.call(this,e)},wt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,a=this._buffer.slice(),r=0;r<a.length&&!e.closed;r+=n?1:2)e.next(a[r]);return this._checkFinalizedStatuses(e),t},wt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,a=this._infiniteTimeWindow,r=(a?1:2)*e;if(e<1/0&&r<n.length&&n.splice(0,n.length-r),!a){for(var i=t.now(),s=0,o=1;o<n.length&&n[o]<=i;o+=2)s=o;s&&n.splice(0,s+1)}},wt);function wt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=bt);var a=ht.call(this)||this;return a._bufferSize=e,a._windowTime=t,a._timestampProvider=n,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=t===1/0,a._bufferSize=Math.max(1,e),a._windowTime=Math.max(1,t),a}function $t(e,t){var n=gt.call(this)||this;return n.destination=e,n.source=t,n}function r(){var e=pt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let xt=[],St={};const _t=[];function kt(a,r=W){let i;const s=new Set;function o(e){if(t(a,e)&&(a=e,i)){const e=!_t.length;for(const e of s)e[1](),_t.push(e,a);if(e){for(let e=0;e<_t.length;e+=2)_t[e][0](_t[e+1]);_t.length=0}}}return{set:o,update:function(e){o(e(a))},subscribe:function(e,t=W){const n=[e,t];return s.add(n),1===s.size&&(i=r(o)||W),e(a),()=>{s.delete(n),0===s.size&&(i(),i=null)}}}}function Ct(e,o,t){const l=!Array.isArray(e),c=l?[e]:e,d=o.length<2;return{subscribe:kt(t,t=>{let n=!1;const a=[];let r=0,i=W;const s=()=>{var e;r||(i(),e=o(l?a[0]:a,t),d?t(e):i=T(e)?e:W)},e=c.map((e,t)=>u(e,e=>{a[t]=e,r&=~(1<<t),n&&s()},()=>{r|=1<<t}));return n=!0,s(),function(){V(e),i()}}).subscribe}}function Tt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===Gt));var t}var Gt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Mt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Rt(Array.isArray(e)?[]:{},e,t):e}function Et(e,t,n){return e.concat(t).map(function(e){return Mt(e,n)})}function Lt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Pt(e,t){try{return t in e}catch(e){return!1}}function Ft(a,r,i){var s={};return i.isMergeableObject(a)&&Lt(a).forEach(function(e){s[e]=Mt(a[e],i)}),Lt(r).forEach(function(t){var e,n;(!Pt(e=a,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(Pt(a,t)&&i.isMergeableObject(r[t])?s[t]=function(e){if(!e.customMerge)return Rt;e=e.customMerge(t);return"function"==typeof e?e:Rt}(i)(a[t],r[t],i):s[t]=Mt(r[t],i))}),s}function Rt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Et,n.isMergeableObject=n.isMergeableObject||Tt,n.cloneUnlessOtherwiseSpecified=Mt;var a=Array.isArray(t);return a===Array.isArray(e)?a?n.arrayMerge(e,t,n):Ft(e,t,n):Mt(t,n)}Rt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Rt(e,t,n)},{});throw new Error("first argument should be an array")};var It=Rt,At=function(e,t){return(At=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 Ot(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}At(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p,y,Nt,b=function(){return(b=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Dt(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||((a=a||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Bt(e){return e.type===y.literal}function Ht(e){return e.type===y.number}function jt(e){return e.type===y.date}function Ut(e){return e.type===y.time}function Yt(e){return e.type===y.select}function Wt(e){return e.type===y.plural}function zt(e){return e.type===y.tag}function Vt(e){return e&&"object"==typeof e&&e.type===Nt.number}function Zt(e){return e&&"object"==typeof e&&e.type===Nt.dateTime}(a=p=p||{})[a.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",a[a.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",a[a.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",a[a.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",a[a.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",a[a.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",a[a.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",a[a.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",a[a.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",a[a.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",a[a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",a[a.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",a[a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",a[a.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",a[a.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",a[a.INVALID_TAG=23]="INVALID_TAG",a[a.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",a[a.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",a[a.UNCLOSED_TAG=27]="UNCLOSED_TAG",(a=y=y||{})[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound",a[a.tag=8]="tag",(a=Nt=Nt||{})[a.number=0]="number",a[a.dateTime=1]="dateTime";var a=/[ \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 Xt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,qt=/^(@+)?(\+|#+)?[rs]?$/g,Qt=/(\*)(0+)|(#+)(0+)|(0+)/g,en=/^(0+)$/;function tn(e){var a={};return"r"===e[e.length-1]?a.roundingPriority="morePrecision":"s"===e[e.length-1]&&(a.roundingPriority="lessPrecision"),e.replace(qt,function(e,t,n){return"string"!=typeof n?(a.minimumSignificantDigits=t.length,a.maximumSignificantDigits=t.length):"+"===n?a.minimumSignificantDigits=t.length:"#"===t[0]?a.maximumSignificantDigits=t.length:(a.minimumSignificantDigits=t.length,a.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),a}function nn(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 nn(e)||{}}function rn(e){for(var s={},t=0,n=e;t<n.length;t++){var a,r=n[t];switch(r.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=r.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=b(b(b({},s),{notation:"scientific"}),r.options.reduce(function(e,t){return b(b({},e),an(t))},{}));continue;case"engineering":s=b(b(b({},s),{notation:"engineering"}),r.options.reduce(function(e,t){return b(b({},e),an(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(r.options[0]);continue;case"integer-width":if(1<r.options.length)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Qt,function(e,t,n,a,r,i){if(t)s.minimumIntegerDigits=n.length;else{if(a&&r)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(en.test(r.stem))s.minimumIntegerDigits=r.stem.length;else if(Jt.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Jt,function(e,t,n,a,r,i){return"*"===n?s.minimumFractionDigits=t.length:a&&"#"===a[0]?s.maximumFractionDigits=a.length:r&&i?(s.minimumFractionDigits=r.length,s.maximumFractionDigits=r.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var i=r.options[0];"w"===i?s=b(b({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=b(b({},s),tn(i)))}else qt.test(r.stem)?s=b(b({},s),tn(r.stem)):((i=nn(r.stem))&&(s=b(b({},s),i)),(a=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)),!en.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem))&&(s=b(b({},s),a)))}return s}var sn={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 on=new RegExp("^".concat(a.source,"*")),ln=new RegExp("".concat(a.source,"*$"));function v(e,t){return{start:e,end:t}}var a=!!String.prototype.startsWith,cn=!!String.fromCodePoint,dn=!!Object.fromEntries,un=!!String.prototype.codePointAt,mn=!!String.prototype.trimStart,hn=!!String.prototype.trimEnd,gn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pn=!0;try{pn="a"===(null==(On=_n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:On[0])}catch(W){pn=!1}var fn,yn,bn=a?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},vn=cn?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,a="",r=e.length,i=0;i<r;){if(1114111<(n=e[i++]))throw RangeError(n+" is not a valid code point");a+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return a},wn=dn?Object.fromEntries:function(e){for(var t={},n=0,a=e;n<a.length;n++){var r=a[n],i=r[0],r=r[1];t[i]=r}return t},$n=un?function(e,t){return e.codePointAt(t)}:function(e,t){var n,a=e.length;if(!(t<0||a<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===a||(a=e.charCodeAt(t+1))<56320||57343<a?n:a-56320+(n-55296<<10)+65536},xn=mn?function(e){return e.trimStart()}:function(e){return e.replace(on,"")},Sn=hn?function(e){return e.trimEnd()}:function(e){return e.replace(ln,"")};function _n(e,t){return new RegExp(e,t)}yn=pn?(fn=_n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return fn.lastIndex=t,null!=(t=fn.exec(e)[1])?t:""}):function(e,t){for(var n,a=[];;){var r=$n(e,t);if(void 0===r||Tn(r)||(33<=(n=r)&&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;a.push(r),t+=65536<=r?2:1}return vn.apply(void 0,a)};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,n){for(var a=[];!this.isEOF();){var r,i=this.char();if(123===i){if((r=this.parseArgument(e,n)).err)return r;a.push(r.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(p.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Cn(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r;a.push(r.val)}else{if((r=this.parseLiteral(e,t)).err)return r;a.push(r.val)}}else{i=this.clonePosition();this.bump(),a.push({type:y.pound,location:v(i,this.clonePosition())})}}}return{val:a,err:null}},i.prototype.parseTag=function(e,t){var n=this.clonePosition(),a=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(a,"/>"),location:v(n,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()||!Cn(this.char()))return this.error(p.INVALID_TAG,v(e,this.clonePosition()));var r=this.clonePosition();return a!==this.parseTagName()?this.error(p.UNMATCHED_CLOSING_TAG,v(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:a,children:t,location:v(n,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,v(e,this.clonePosition())))}return this.error(p.UNCLOSED_TAG,v(n,this.clonePosition()))}return this.error(p.INVALID_TAG,v(n,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 n=this.clonePosition(),a="";;){var r=this.tryParseQuote(t);if(r)a+=r;else{r=this.tryParseUnquoted(e,t);if(r)a+=r;else{r=this.tryParseLeftAngleBracket();if(!r)break;a+=r}}}n=v(n,this.clonePosition());return{val:{type:y.literal,value:a,location:n},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Cn(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 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)},i.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))},i.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(p.EMPTY_ARGUMENT,v(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(p.MALFORMED_ARGUMENT,v(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:a,location:v(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition())):this.parseArgumentOptions(e,t,a,n);default:return this.error(p.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},i.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:v(e,this.clonePosition())}},i.prototype.parseArgumentOptions=function(e,t,n,a){var r,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(s){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,v(i,o));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(h=Sn(g.val)).length)return this.error(p.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:v(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(a)).err)return c;var d=v(a,this.clonePosition());if(l&&bn(null==l?void 0:l.style,"::",0)){var u=xn(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?g:{val:{type:y.number,value:n,location:d,style:g.val},err:null};if(0===u.length)return this.error(p.EXPECT_DATE_TIME_SKELETON,d);var m=u,h=(this.locale&&(m=function(e,t){for(var n="",a=0;a<e.length;a++){var r=e.charAt(a);if("j"===r){for(var i=0;a+1<e.length&&e.charAt(a+1)===r;)i++,a++;var s=1+(1&i),o=i<2?1:3+(i>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(sn[t||""]||sn[n||""]||sn["".concat(n,"-001")]||sn["001"])[0]}(t);for("H"!=l&&"k"!=l||(o=0);0<o--;)n+="a";for(;0<s--;)n=l+n}else n+="J"===r?"H":r}return n}(u,this.locale)),{type:Nt.dateTime,pattern:m,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},m.replace(Kt,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.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":r.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":r.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":r.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.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":r.minute=["numeric","2-digit"][t-1];break;case"s":r.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":r.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""}),r):{}});return{val:{type:"date"===s?y.date:y.time,value:n,location:d,style:h},err:null}}return{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:n,location:d,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,v(m,b({},m)));this.bumpSpace();var g,h=this.parseIdentifierIfPossible(),d=0;if("select"!==s&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(g=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),h=this.parseIdentifierIfPossible(),d=g.val}l=this.tryParsePluralOrSelectOptions(e,s,t,h);if(l.err)return l;if((c=this.tryParseArgumentClose(a)).err)return c;u=v(a,this.clonePosition());return"select"===s?{val:{type:y.select,value:n,options:wn(l.val),location:u},err:null}:{val:{type:y.plural,value:n,options:wn(l.val),offset:d,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null};default:return this.error(p.INVALID_ARGUMENT_TYPE,v(i,o))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(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 n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(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}},i.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,a=e.split(Xt).filter(function(e){return 0<e.length});n<a.length;n++){var r=a[n].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var i=r[0],r=r.slice(1),s=0,o=r;s<o.length;s++)if(0===o[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:r})}return t}(e)}catch(e){return this.error(p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Nt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?rn(n):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,n,a){for(var r=!1,i=[],s=new Set,o=a.value,l=a.location;;){if(0===o.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=v(c,this.clonePosition()),o=this.message.slice(c.offset,this.offset())}if(s.has(o))return this.error("select"===t?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===o&&(r=!0),this.bumpSpace();d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;var u=this.tryParseArgumentClose(d);if(u.err)return u;i.push([o,{value:c.val,location:v(d,this.clonePosition())}]),s.add(o),this.bumpSpace(),o=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===i.length?this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(p.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:i,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;r=!0,i=10*i+(s-48),this.bump()}a=v(a,this.clonePosition());return r?gn(i*=n)?{val:i,err:null}:this.error(t,a):this.error(e,a)},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=$n(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(bn(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()&&Tn(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 kn=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 Cn(e){return 97<=e&&e<=122||65<=e&&e<=90}function Tn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Gn(e,t){t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new kn(e,t).parse();if(e.err)throw(n=SyntaxError(p[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Yt(e)||Wt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ht(e)&&Vt(e.style)||(jt(e)||Ut(e))&&Zt(e.style)?delete e.style.location:zt(e)&&n(e.children)})}(e.val),e.val}function Mn(e,t){var n=t&&t.cache?t.cache:Nn,a=t&&t.serializer?t.serializer:Rn;return(t&&t.strategy?t.strategy:function(e,t){return Fn(e,this,1===e.length?En:Pn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:a})}function En(e,t,n,a){var n=null==a||"number"==typeof a||"boolean"==typeof a?a:n(a),r=t.get(n);return void 0===r&&(r=e.call(this,a),t.set(n,r)),r}function Pn(e,t,n){var a=Array.prototype.slice.call(arguments,3),n=n(a),r=t.get(n);return void 0===r&&(r=e.apply(this,a),t.set(n,r)),r}function Fn(e,t,n,a,r){return n.bind(t,e,a,r)}var Rn=function(){return JSON.stringify(arguments)};function In(){this.cache=Object.create(null)}In.prototype.get=function(e){return this.cache[e]},In.prototype.set=function(e,t){this.cache[e]=t};var An,On,Nn={create:function(){return new In}},Dn={variadic:function(e,t){return Fn(e,this,Pn,t.cache.create(),t.serializer)},monadic:function(e,t){return Fn(e,this,En,t.cache.create(),t.serializer)}};(On=An=An||{}).MISSING_VALUE="MISSING_VALUE",On.INVALID_VALUE="INVALID_VALUE",On.MISSING_INTL_API="MISSING_INTL_API";Ot(Jn,Un=Error),Jn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var w,Bn,Hn,jn,Un,Yn=Jn,Wn=(Ot(Xn,jn=Yn),Xn),zn=(Ot(Kn,Hn=Yn),Kn),Vn=(Ot(Zn,Bn=Yn),Zn);function Zn(e,t){return Bn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),An.MISSING_VALUE,t)||this}function Kn(e,t,n){return Hn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),An.INVALID_VALUE,n)||this}function Xn(e,t,n,a){return jn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),An.INVALID_VALUE,a)||this}function Jn(e,t,n){e=Un.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function qn(e,t,n,a,r,i,s){if(1===e.length&&Bt(e[0]))return[{type:w.literal,value:e[0].value}];for(var o=[],l=0,c=e;l<c.length;l++){var d=c[l];if(Bt(d))o.push({type:w.literal,value:d.value});else if(d.type===y.pound)"number"==typeof i&&o.push({type:w.literal,value:n.getNumberFormat(t).format(i)});else{var u=d.value;if(!(r&&u in r))throw new Vn(u,s);u=r[u];if(d.type===y.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),o.push({type:"string"==typeof u?w.literal:w.object,value:u});else if(jt(d)){var m="string"==typeof d.style?a.date[d.style]:Zt(d.style)?d.style.parsedOptions:void 0;o.push({type:w.literal,value:n.getDateTimeFormat(t,m).format(u)})}else if(Ut(d))m="string"==typeof d.style?a.time[d.style]:Zt(d.style)?d.style.parsedOptions:a.time.medium,o.push({type:w.literal,value:n.getDateTimeFormat(t,m).format(u)});else if(Ht(d))(m="string"==typeof d.style?a.number[d.style]:Vt(d.style)?d.style.parsedOptions:void 0)&&m.scale&&(u*=m.scale||1),o.push({type:w.literal,value:n.getNumberFormat(t,m).format(u)});else{if(zt(d)){var h=d.children,g=d.value,p=r[g];if("function"!=typeof p)throw new zn(g,"function",s);g=p(qn(h,t,n,a,r,i).map(function(e){return e.value}));Array.isArray(g)||(g=[g]),o.push.apply(o,g.map(function(e){return{type:"string"==typeof e?w.literal:w.object,value:e}}))}if(Yt(d)){if(!(f=d.options[u]||d.options.other))throw new Wn(d.value,u,Object.keys(d.options),s);o.push.apply(o,qn(f.value,t,n,a,r))}else if(Wt(d)){if(!(f=d.options["=".concat(u)])){if(!Intl.PluralRules)throw new Yn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',An.MISSING_INTL_API,s);var p=n.getPluralRules(t,{type:d.pluralType}).select(u-(d.offset||0)),f=d.options[p]||d.options.other}if(!f)throw new Wn(d.value,u,Object.keys(d.options),s);o.push.apply(o,qn(f.value,t,n,a,r,u-(d.offset||0)))}}}}return(e=o).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===w.literal&&t.type===w.literal?n.value+=t.value:e.push(t),e},[])}function Qn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(a=w=w||{})[a.literal=0]="literal",a[a.object=1]="object",Object.defineProperty(d,"defaultLocale",{get:function(){return d.memoizedDefaultLocale||(d.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),d.memoizedDefaultLocale},enumerable:!1,configurable:!0}),d.memoizedDefaultLocale=null,d.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])},d.__parse=Gn,d.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 ea=d;function d(e,t,n,a){var r,i,s=this;if(void 0===t&&(t=d.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===w.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(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=d.resolveLocale(t),"string"==typeof e){if(this.message=e,!d.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=d.__parse(e,{ignoreTag:null==a?void 0:a.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=(r=d.formats,(i=n)?Object.keys(r).reduce(function(e,t){var n,a;return e[t]=(n=r[t],(a=i[t])?b(b(b({},n||{}),a||{}),Object.keys(n).reduce(function(e,t){return e[t]=b(b({},n[t]),a[t]||{}),e},{})):n),e},b({},r)):r),this.formatters=a&&a.formatters||{getNumberFormat:Mn(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,!1)))},{cache:Qn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Dn.variadic}),getDateTimeFormat:Mn(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,!1)))},{cache:Qn(t.dateTime),strategy:Dn.variadic}),getPluralRules:Mn(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,!1)))},{cache:Qn(t.pluralRules),strategy:Dn.variadic})}}const ta={},na=(e,t,n)=>n&&(t in ta||(ta[t]={}),e in ta[t]||(ta[t][e]=n),n),aa=(t,n)=>{if(null!=n){if(n in ta&&t in ta[n])return ta[n][t];var a=va(n);for(let e=0;e<a.length;e++){var r=function(e,n){if(!sa(e))return null;e=function(e){return ra[e]||null}(e);{var a=n;if(null==a)return;if(a in e)return e[a];const r=a.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const a=r.slice(e,r.length).join(".");if(a in t){t=t[a];break}}t=t[r[e]]}else t=void 0;return t}}(a[e],t);if(r)return na(t,n,r)}}};let ra;const ia=kt({});function sa(e){return e in ra}function oa(t,...n){delete ta[t],ia.update(e=>(e[t]=It.all([e[t]||{},...n]),e))}Ct([ia],([e])=>Object.keys(e)),ia.subscribe(e=>ra=e);const la={};function ca(e){return la[e]}function da(e){return null!=e&&va(e).some(e=>{return null==(e=ca(e))?void 0:e.size})}const ua={};function ma(e){if(!da(e))return e in ua?ua[e]:Promise.resolve();const t=va(e).map(e=>{var t=ca(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return ua[e]=Promise.all(t.map(([e,t])=>{{var a=e;e=t;const n=Promise.all(e.map(e=>{var t=a,n=e;return la[t].delete(n),0===la[t].size&&delete la[t],e().then(e=>e.default||e)}));return n.then(e=>oa(a,...e))}})).then(()=>{if(da(e))return ma(e);delete ua[e]}),ua[e]}function ha(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}const ga={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 pa=kt(!1);let fa;const ya=kt(null);function ba(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function va(e,t=ga.fallbackLocale){e=ba(e);return t?[...new Set([...e,...ba(t)])]:e}function wa(){return null!=fa?fa:void 0}ya.subscribe(e=>{fa=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const Ye=Object.assign(Object.assign({},ya),{set:t=>{if(t&&function(e){if(null!=e){var t=va(e);for(let e=0;e<t.length;e++){var n=t[e];if(sa(n))return n}}}(t)&&da(t)){var n=ga["loadingDelay"];let e;return"undefined"!=typeof window&&null!=wa()&&n?e=window.setTimeout(()=>pa.set(!0),n):pa.set(!0),ma(t).then(()=>{ya.set(t)}).finally(()=>{clearTimeout(e),pa.set(!1)})}return ya.set(t)}}),$a=n=>{const a=Object.create(null);return e=>{var t=JSON.stringify(e);return t in a?a[t]:a[t]=n(e)}},xa=(e,t)=>{var n=ga["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Sa=$a(e=>{var{locale:t,format:n}=e,e=ha(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=xa("number",n)),new Intl.NumberFormat(t,e)}),_a=$a(e=>{var{locale:t,format:n}=e,e=ha(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=xa("date",n):0===Object.keys(e).length&&(e=xa("date","short")),new Intl.DateTimeFormat(t,e)}),ka=$a(e=>{var{locale:t,format:n}=e,e=ha(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=xa("time",n):0===Object.keys(e).length&&(e=xa("time","short")),new Intl.DateTimeFormat(t,e)}),Ca=$a((e,t=wa())=>new ea(e,t,ga.formats,{ignoreTag:ga.ignoreTag})),Ta=Ct([Ye,ia],()=>(e,t={})=>{var n,a;let r=t;"object"==typeof e&&(e=(r=e).id);var{values:i,locale:s=wa(),default:o}=r;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=aa(e,s);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!=(a=null!=(n=null==(n=(a=ga).handleMissingMessage)?void 0:n.call(a,{locale:s,id:e,defaultValue:o}))?n:o)?a:e;if(!i)return l;let c=l;try{c=Ca(l,s).format(i)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),We=(Ct([Ye],()=>(e,t)=>((e={})=>{var{locale:t=wa()}=e,e=ha(e,["locale"]);return ka(Object.assign({locale:t},e))})(t).format(e)),Ct([Ye],()=>(e,t)=>((e={})=>{var{locale:t=wa()}=e,e=ha(e,["locale"]);return _a(Object.assign({locale:t},e))})(t).format(e)),Ct([Ye],()=>(e,t)=>((e={})=>{var{locale:t=wa()}=e,e=ha(e,["locale"]);return Sa(Object.assign({locale:t},e))})(t).format(e)),Ct([Ye,ia],()=>(e,t=wa())=>aa(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==xt.indexOf(e)&&(t=new vt(t),St[e]=t,xt.push(e)),St[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))),ze=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Ga(e,t){oa(e,t)}const Ma={en:{casinoPage:{500:"500 Error - Internal Server Error",search:"Search",loading:"Loading",searchMobile:"Search",break:"Take 1 day break from playing",breakButton:"Hold button for 3 seconds to take 24-hours instant lock",searchGames:"Search casino games",filters:"Filters",clear:"Clear",noGamesPlayed:"You have no games played!"}},zh:{casinoPage:{500:"500 錯誤 - 內部服務器錯誤",search:"搜索",loading:"正在加載",searchMobile:"搜索",break:"休息 1 天",breakButton:"24 小時冷卻",searchGames:"搜索賭場遊戲",filters:"過濾器",clear:"清除",noGamesPlayed:"你沒有玩過遊戲!"}},de:{casinoPage:{500:"500-Fehler – Interner Serverfehler",search:"Suche",loading:"Loading",searchMobile:"Suche",break:"Mach mal einen Tag Pause!",breakButton:"Für 24 Std. Games Sofortpause, 3 Sekunden drücken",searchGames:"Casinospiele suchen",filters:"Filter",clear:"Zurücksetzen",noGamesPlayed:"Sie haben keine Spiele gespielt!"}},it:{casinoPage:{500:"Errore 500 - Errore interno del server",search:"Cerca",loading:"Loading",searchMobile:"Cerca",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Cerca giochi da casinò",filters:"Filtri",clear:"Azzera",noGamesPlayed:"Non hai giochi giocati!"}},fr:{casinoPage:{500:"Erreur - erreur de serveur interne",search:"Recherche",loading:"Chargement",searchMobile:"Recherche",break:"Faire une pause d'un jour dans le jeu ",breakButton:"Refroidissement de 24 heures",searchGames:"Recherche de jeux de casino",filters:"Filtres",clear:"Clair",noGamesPlayed:"Vous n'avez aucune partie jouée"}},es:{casinoPage:{500:"Error 500 - Error Interno del Servidor",search:"Buscar ...",loading:"Cargando ...",searchMobile:"Buscar",break:"Tómate un descanso de 1 día del juego.",breakButton:"Tómese un descanso de 24 horas del juego",searchGames:"Buscar juegos de casino",filters:"Filtros",clear:"Limpio",noGamesPlayed:"No has probado ningún juego!"}},tr:{casinoPage:{500:"500 Hatası - Dahili Sunucu Hatası",search:"Oyun ara ...",loading:"Yükleniyor ...",searchMobile:"Arama",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Casino oyunları ara",filters:"Filtreler",clear:"Temizlemek",noGamesPlayed:"Oynadığın oyun yok!"}},ru:{casinoPage:{500:"Ошибка 500 — внутренняя ошибка сервера",search:"Искать игры ...",loading:"Загрузка ...",searchMobile:"Поиск",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Поиск игр казино",filters:"Фильтры",clear:"Прозрачный",noGamesPlayed:"У вас нет сыгранных игр!"}},ro:{casinoPage:{500:"500 Error - Internal Server Error",search:"Cautare jocuri...",loading:"Se incarca ...",searchMobile:"Cauta",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Cauta jocuri de casino",filters:"Filtrare",clear:"Sterge",noGamesPlayed:"Nu ai jucat niciun joc!"}},hr:{casinoPage:{500:"500 Error - Internal Server Error",search:"Pretraži",loading:"Učitavanje",searchMobile:"Pretraži",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Traži casino igre",filters:"Filtri",clear:"Resetiraj",noGamesPlayed:"Niste igrali nijednu igru!"}},hu:{casinoPage:{500:"500 Error - Internal Server Error",search:"Keresés",loading:"betöltés",searchMobile:"Keresés",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Kaszinó játékok keresése",filters:"Szűrők",clear:"Visszaállítás",noGamesPlayed:"Nincsenek lejátszott játékok!"}},pl:{casinoPage:{500:"500 Error - Internal Server Error",search:"Szukaj",loading:"Ładowanie",searchMobile:"Szukaj",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Wyszukaj gry kasynowe",filters:"Filtry",clear:"Przywróć",noGamesPlayed:"Nie grałeś w żadne gry!"}},pt:{casinoPage:{500:"Erro 500 - Erro interno do servidor",search:"Procurar ...",loading:"Carregando ...",searchMobile:"Procurar",break:"Faça uma pausa de 1 dia no jogo",breakButton:"Faça uma pausa de 24 horas no jogo",searchGames:"Pesquisar jogos de cassino",filters:"Filtros",clear:"Limpar",noGamesPlayed:"Você não experimentou nenhum jogo!"}},sl:{casinoPage:{500:"500 Error - Internal Server Error",search:"Iskanje",loading:"Loading",searchMobile:"Iskanje",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Search casino games",filters:"Filters",clear:"Ponastavitev",noGamesPlayed:"You have no games played!"}},sr:{casinoPage:{500:"500 Error - Internal Server Error",search:"Pretraži",loading:"Loading",searchMobile:"Pretraži",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Search casino games",filters:"Filters",clear:"Resetuj",noGamesPlayed:"You have no games played!"}}};function Ea(e,t){oa(e,t)}const La={en:{gamesCategorySection:{showMore:"More",viewAll:"Show all",searchedItems:"Search result",recentSearchedItems:"Recently searched",favorites:"Favorites",noRecentSearch:"No search started yet. Simply search for a game.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"You can now add games to favorites by tapping on the star icon located on the game page.",noFavorites:"You can now add games to favorites by clicking on the star icon located on the game thumbnail.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting"}},zh:{gamesCategorySection:{showMore:"更多的",viewAll:"顯示所有",searchedItems:"搜索結果",recentSearchedItems:"最近搜索過",favorites:"收藏夹",noRecentSearch:"尚未開始搜索。 只需搜索遊戲。",noResults:"抱歉,沒有找到結果。 請再試一次。",noFavoritesMobile:"您現在可以通過點擊遊戲頁面上的星形圖標將游戲添加到收藏夾。",noFavorites:"您現在可以通過單擊遊戲縮略圖上的星形圖標將游戲添加到收藏夾。",noFavoritesTitle:"您還沒有任何喜歡的遊戲。",waiting:"等待"}},de:{gamesCategorySection:{showMore:"Mehr",viewAll:"Alle anzeigen",searchedItems:"Ergebnis suchen",recentSearchedItems:"Zuletzt gesucht",noRecentSearch:"Noch keine Suche gestartet. Einfach nach einem Spiel suchen.",noResults:"Sorry, kein Treffer. Bitte erneut versuchen."}},it:{gamesCategorySection:{showMore:"Altro",viewAll:"Mostra tutto",searchedItems:"risultato",recentSearchedItems:"Ricerche recenti",noRecentSearch:"Non sono ancora state avviate ricerche. Esegui semplicemente la ricerca per un gioco.",noResults:"Spiacenti, nessun risultato. Si prega di riprovare."}},fr:{gamesCategorySection:{showMore:"Plus de",viewAll:"Afficher tous",searchedItems:"Recherche du resultat",recentSearchedItems:"Recherches récentes",favorites:"Favoris",noRecentSearch:"Aucune recherche n'a encore été lancée . il suffit de chercher un jeu.",noResults:"Désolé , aucun résultat trouvé.veuillez réessayer.",noFavoritesMobile:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone étoile située sur la page du jeu.",noFavorites:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone en forme d'etoile située sur la vignette du jeu",noFavoritesTitle:"Vous n'avez pas encore de jeux favoris.",waiting:"Attente"}},es:{gamesCategorySection:{showMore:"Más",viewAll:"Mostrar todo",searchedItems:"Resultado de búsqueda",recentSearchedItems:"Aún no se ha iniciado ninguna búsqueda. Simplemente busca un juego.",favorites:"Favorito",noRecentSearch:"Aún no se inició ninguna búsqueda. Simplemente busque un juego.",noResults:"Lo sentimos, no se encontraron resultados. Inténtalo de nuevo.",noFavoritesMobile:"Ahora puede agregar juegos a favoritos tocando el ícono de estrella ubicado en la página del juego.",noFavorites:"Ahora puede agregar juegos a favoritos haciendo clic en el ícono de estrella ubicado en la miniatura del juego.",noFavoritesTitle:"Aún no tienes ningún juego favorito.",waiting:"Esperando"}},tr:{gamesCategorySection:{showMore:"Daha fazla göster",viewAll:"Hepsini gör",searchedItems:"Aranan öğeler",recentSearchedItems:"Son Aranan Öğeler",noRecentSearch:"Henüz arama başlamadı. Sadece bir oyun arayın.",noResults:"Üzgünüz, sonuç bulunamadı. Lütfen tekrar deneyin"}},ru:{gamesCategorySection:{showMore:"Показать больше",viewAll:"Посмотреть все",searchedItems:"Искомые товары",recentSearchedItems:"Недавние поисковые запросы",noRecentSearch:"Поиск еще не начался. Просто найдите игру.",noResults:"Извините, результатов не найдено. Пожалуйста, попробуйте еще раз"}},ro:{gamesCategorySection:{showMore:"Arata mai mult",viewAll:"Vezi toate",searchedItems:"Rezultatele cautarii",recentSearchedItems:"Cautari recente",favorites:"Favorite",noRecentSearch:"Nici o căutare nu a început încă. Pur și simplu căutați un joc.",noResults:"Ne pare rau, nu s-au gasit rezultate. Va rugam sa incercati din nou",noFavoritesMobile:"Acum puteți adăuga jocuri la favorite atingând pictograma stea situată pe pagina jocului.",noFavorites:"Acum puteți adăuga jocuri la favorite făcând clic pe pictograma stea situată pe miniatura jocului.",noFavoritesTitle:"Nu aveți încă niciun joc preferat.",waiting:"Aşteptare"}},hr:{gamesCategorySection:{showMore:"Više",viewAll:"Pokaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnje pretrage",noRecentSearch:"Pretraživanje nije pokrenuto. Jednostavno potražite željenu igru.",noResults:"Žao nam je, nema rezultata. Molimo pokušajte ponovno."}},hu:{gamesCategorySection:{showMore:"Több",viewAll:"Az összes megjelenítése",searchedItems:"Keresés eredménye",recentSearchedItems:"Legutóbb keresett",noRecentSearch:"A keresés még nem kezdődött el. Egyszerűen keressen egy játékot.",noResults:"Sajnos nincs találat. Kérjük próbálja újra."}},pl:{gamesCategorySection:{showMore:"Więcej",viewAll:"Pokaż wszystkie",searchedItems:"Wynik wyszukiwania",recentSearchedItems:"Ostatnio wyszukiwane",noRecentSearch:"Nie rozpoczęto wyszukiwania. W prosty sposób wyszukaj grę.",noResults:"Przepraszamy, brak wyników. Prosimy spróbować ponownie."}},pt:{gamesCategorySection:{showMore:"Mais",viewAll:"Mostre tudo",searchedItems:"Resultado da pesquisa",recentSearchedItems:"Pesquisado recentemente",favorites:"Favorito",noRecentSearch:"Nenhuma pesquisa foi iniciada ainda. Simplesmente procure por um jogo.",noResults:"Desculpe, nenhum resultado encontrado. Por favor, tente novamente.",noFavoritesMobile:"Agora você pode adicionar jogos aos favoritos tocando no ícone da estrela localizado na página do jogo.",noFavorites:"Agora você pode adicionar jogos aos favoritos clicando no ícone da estrela localizado na miniatura do jogo.",noFavoritesTitle:"Você ainda não tem nenhum jogo favorito.",waiting:"Aguardando"}},sl:{gamesCategorySection:{showMore:"Več",viewAll:"Prikaži vse",searchedItems:"Rezultati iskanja",recentSearchedItems:"Nedavno iskanje",noRecentSearch:"Niste še začeli z iskanjem. Enostavno poiščite želeno igro.",noResults:"Oprostite, ni rezultata. Prosimo poizkusite ponovno."}},sr:{gamesCategorySection:{showMore:"Više",viewAll:"Prikaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnja pretraga",noRecentSearch:"Još nije pokrenuta pretraga. Jednostavno pretraži igre.",noResults:"Žao nam je, nema pogodaka. Pokušaj ponovo."}}};Fa=Pa={path:void 0,exports:{},require:function(e,t){return Ln(null==t&&Pa.path)}},Pa.exports,Fa.exports=function(){var A;function g(){return A.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function O(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function N(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function o(e){return void 0===e}function D(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function B(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function H(e,t){for(var n=[],a=e.length,r=0;r<a;++r)n.push(t(e[r],r));return n}function j(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,a){return Lt(e,t,n,a,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function U(e){if(null==e._isValid){var t=f(e),n=W.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function Y(e){var t=c(NaN);return null!=e?j(f(t),e):f(t).userInvalidated=!0,t}var W=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,a=0;a<n;a++)if(a in t&&e.call(this,t[a],a,t))return!0;return!1},z=g.momentProperties=[],V=!1;function Z(e,t){var n,a,r,i=z.length;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=f(t)),o(t._locale)||(e._locale=t._locale),0<i)for(n=0;n<i;n++)o(r=t[a=z[n]])||(e[a]=r);return e}function K(e){Z(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,g.updateOffset(this),V=!1)}function l(e){return e instanceof K||null!=e&&null!=e._isAMomentObject}function X(e){!1===g.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(i,s){var o=!0;return j(function(){if(null!=g.deprecationHandler&&g.deprecationHandler(null,i),o){for(var e,t,n=[],a=arguments.length,r=0;r<a;r++){if(e="","object"==typeof arguments[r]){for(t in e+="\n["+r+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[r];n.push(e)}X(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return s.apply(this,arguments)},s)}var J={};function q(e,t){null!=g.deprecationHandler&&g.deprecationHandler(e,t),J[e]||(X(t),J[e]=!0)}function d(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,a=j({},e);for(n in t)p(t,n)&&(O(e[n])&&O(t[n])?(a[n]={},j(a[n],e[n]),j(a[n],t[n])):null!=t[n]?a[n]=t[n]:delete a[n]);for(n in e)p(e,n)&&!p(t,n)&&O(e[n])&&(a[n]=j({},a[n]));return a}function ee(e){null!=e&&this.set(e)}g.suppressDeprecationWarnings=!1,g.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};function i(e,t,n){var a=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-a.length)).toString().substr(1)+a}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ae=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,re={},ie={};function a(e,t,n,a){var r="string"==typeof a?function(){return this[a]()}:a;e&&(ie[e]=r),t&&(ie[t[0]]=function(){return i(r.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=oe(t,e.localeData()),re[t]=re[t]||function(a){for(var e,r=a.match(ne),t=0,i=r.length;t<i;t++)ie[r[t]]?r[t]=ie[r[t]]:r[t]=(e=r[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<i;n++)t+=d(r[n])?r[n].call(e,a):r[n];return t}}(t),re[t](e)):e.localeData().invalidDate()}function oe(e,t){var n=5;function a(e){return t.longDateFormat(e)||e}for(ae.lastIndex=0;0<=n&&ae.test(e);)e=e.replace(ae,a),ae.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function u(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ce(e){var t,n,a={};for(n in e)p(e,n)&&(t=u(n))&&(a[t]=e[n]);return a}var de={};function n(e,t){de[e]=t}function ue(e){return e%4==0&&e%100!=0||e%400==0}function m(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function h(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?m(e):t}function me(t,n){return function(e){return null!=e?(ge(this,t,e),g.updateOffset(this,n),this):he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ge(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=h(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Re(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var r=/\d/,y=/\d\d/,pe=/\d{3}/,fe=/\d{4}/,ye=/[+-]?\d{6}/,b=/\d\d?/,be=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,we=/\d{1,3}/,$e=/\d{1,4}/,xe=/[+-]?\d{1,6}/,Se=/\d+/,_e=/[+-]?\d+/,ke=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function w(e,n,a){Ge[e]=d(n)?n:function(e,t){return e&&a?a:n}}function Te(e,t){return p(Ge,e)?Ge[e](t._strict,t._locale):new RegExp($(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,a,r){return t||n||a||r})))}function $(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ge={},Me={};function x(e,n){var t,a,r=n;for("string"==typeof e&&(e=[e]),D(n)&&(r=function(e,t){t[n]=h(e)}),a=e.length,t=0;t<a;t++)Me[e[t]]=r}function Ee(e,r){x(e,function(e,t,n,a){n._w=n._w||{},r(e,n._w,n,a)})}var S,_=0,k=1,C=2,T=3,G=4,M=5,Le=6,Pe=7,Fe=8;function Re(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?ue(e)?29:28:31-n%7%2}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},a("M",["MM",2],"Mo",function(){return this.month()+1}),a("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),a("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),w("M",b),w("MM",b,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),x(["M","MM"],function(e,t){t[k]=h(e)-1}),x(["MMM","MMMM"],function(e,t,n,a){a=n._locale.monthsParse(e,a,n._strict);null!=a?t[k]=a:f(n).invalidMonth=e});var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ae="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ne=v,De=v;function Be(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=h(t);else if(!D(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Re(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function He(e){return null!=e?(Be(this,e),g.updateOffset(this,!0),this):he(this,"Month")}function je(){function e(e,t){return t.length-e.length}for(var t,n=[],a=[],r=[],i=0;i<12;i++)t=c([2e3,i]),n.push(this.monthsShort(t,"")),a.push(this.months(t,"")),r.push(this.months(t,"")),r.push(this.monthsShort(t,""));for(n.sort(e),a.sort(e),r.sort(e),i=0;i<12;i++)n[i]=$(n[i]),a[i]=$(a[i]);for(i=0;i<24;i++)r[i]=$(r[i]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ue(e){return ue(e)?366:365}a("Y",0,0,function(){var e=this.year();return e<=9999?i(e,4):"+"+e}),a(0,["YY",2],0,function(){return this.year()%100}),a(0,["YYYY",4],0,"year"),a(0,["YYYYY",5],0,"year"),a(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),w("Y",_e),w("YY",b,y),w("YYYY",$e,fe),w("YYYYY",xe,ye),w("YYYYYY",xe,ye),x(["YYYYY","YYYYYY"],_),x("YYYY",function(e,t){t[_]=2===e.length?g.parseTwoDigitYear(e):h(e)}),x("YY",function(e,t){t[_]=g.parseTwoDigitYear(e)}),x("Y",function(e,t){t[_]=parseInt(e,10)}),g.parseTwoDigitYear=function(e){return h(e)+(68<h(e)?1900:2e3)};var Ye=me("FullYear",!0);function We(e,t,n,a,r,i,s){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,a,r,i,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,a,r,i,s),o}function ze(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ve(e,t,n){n=7+t-n;return-(7+ze(e,0,n).getUTCDay()-t)%7+n-1}function Ze(e,t,n,a,r){var i,t=1+7*(t-1)+(7+n-a)%7+Ve(e,a,r),n=t<=0?Ue(i=e-1)+t:t>Ue(e)?(i=e+1,t-Ue(e)):(i=e,t);return{year:i,dayOfYear:n}}function Ke(e,t,n){var a,r,i=Ve(e.year(),t,n),i=Math.floor((e.dayOfYear()-i-1)/7)+1;return i<1?a=i+E(r=e.year()-1,t,n):i>E(e.year(),t,n)?(a=i-E(e.year(),t,n),r=e.year()+1):(r=e.year(),a=i),{week:a,year:r}}function E(e,t,n){var a=Ve(e,t,n),t=Ve(e+1,t,n);return(Ue(e)-a+t)/7}a("w",["ww",2],"wo","week"),a("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),w("w",b),w("ww",b,y),w("W",b),w("WW",b,y),Ee(["w","ww","W","WW"],function(e,t,n,a){t[a.substr(0,1)]=h(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}a("d",0,"do","day"),a("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),a("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),a("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),a("e",0,0,"weekday"),a("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),w("d",b),w("e",b),w("E",b),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Ee(["dd","ddd","dddd"],function(e,t,n,a){a=n._locale.weekdaysParse(e,a,n._strict);null!=a?t.d=a:f(n).invalidWeekday=e}),Ee(["d","e","E"],function(e,t,n,a){t[a]=h(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,nt=v;function at(){function e(e,t){return t.length-e.length}for(var t,n,a,r=[],i=[],s=[],o=[],l=0;l<7;l++)a=c([2e3,1]).day(l),t=$(this.weekdaysMin(a,"")),n=$(this.weekdaysShort(a,"")),a=$(this.weekdays(a,"")),r.push(t),i.push(n),s.push(a),o.push(t),o.push(n),o.push(a);r.sort(e),i.sort(e),s.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function rt(){return this.hours()%12||12}function it(e,t){a(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}a("H",["HH",2],0,"hour"),a("h",["hh",2],0,rt),a("k",["kk",2],0,function(){return this.hours()||24}),a("hmm",0,0,function(){return""+rt.apply(this)+i(this.minutes(),2)}),a("hmmss",0,0,function(){return""+rt.apply(this)+i(this.minutes(),2)+i(this.seconds(),2)}),a("Hmm",0,0,function(){return""+this.hours()+i(this.minutes(),2)}),a("Hmmss",0,0,function(){return""+this.hours()+i(this.minutes(),2)+i(this.seconds(),2)}),it("a",!0),it("A",!1),t("hour","h"),n("hour",13),w("a",st),w("A",st),w("H",b),w("h",b),w("k",b),w("HH",b,y),w("hh",b,y),w("kk",b,y),w("hmm",be),w("hmmss",ve),w("Hmm",be),w("Hmmss",ve),x(["H","HH"],T),x(["k","kk"],function(e,t,n){e=h(e);t[T]=24===e?0:e}),x(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),x(["h","hh"],function(e,t,n){t[T]=h(e),f(n).bigHour=!0}),x("hmm",function(e,t,n){var a=e.length-2;t[T]=h(e.substr(0,a)),t[G]=h(e.substr(a)),f(n).bigHour=!0}),x("hmmss",function(e,t,n){var a=e.length-4,r=e.length-2;t[T]=h(e.substr(0,a)),t[G]=h(e.substr(a,2)),t[M]=h(e.substr(r)),f(n).bigHour=!0}),x("Hmm",function(e,t,n){var a=e.length-2;t[T]=h(e.substr(0,a)),t[G]=h(e.substr(a))}),x("Hmmss",function(e,t,n){var a=e.length-4,r=e.length-2;t[T]=h(e.substr(0,a)),t[G]=h(e.substr(a,2)),t[M]=h(e.substr(r))});v=me("Hours",!0);var ot,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Ae,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},L={},ct={};function dt(e){return e&&e.toLowerCase().replace("_","-")}function ut(e){for(var t,n,a,r,i=0;i<e.length;){for(t=(r=dt(e[i]).split("-")).length,n=(n=dt(e[i+1]))?n.split("-"):null;0<t;){if(a=mt(r.slice(0,t).join("-")))return a;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),a=0;a<n;a+=1)if(e[a]!==t[a])return a;return n}(r,n)>=t-1)break;t--}i++}return ot}function mt(t){var e;if(void 0===L[t]&&Fa&&Fa.exports&&null!=t.match("^[^/\\\\]*$"))try{e=ot._abbr,Ln(),ht(e)}catch(e){L[t]=null}return L[t]}function ht(e,t){return e&&((t=o(t)?P(e):gt(e,t))?ot=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function gt(e,t){if(null===t)return delete L[e],null;var n,a=lt;if(t.abbr=e,null!=L[e])q("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=L[e]._config;else if(null!=t.parentLocale)if(null!=L[t.parentLocale])a=L[t.parentLocale]._config;else{if(null==(n=mt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;a=n._config}return L[e]=new ee(Q(a,t)),ct[e]&&ct[e].forEach(function(e){gt(e.name,e.config)}),ht(e),L[e]}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ot;if(!s(e)){if(t=mt(e))return t;e=[e]}return ut(e)}function pt(e){var t=e._a;return t&&-2===f(e).overflow&&(t=t[k]<0||11<t[k]?k:t[C]<1||t[C]>Re(t[_],t[k])?C:t[T]<0||24<t[T]||24===t[T]&&(0!==t[G]||0!==t[M]||0!==t[Le])?T:t[G]<0||59<t[G]?G:t[M]<0||59<t[M]?M:t[Le]<0||999<t[Le]?Le:-1,f(e)._overflowDayOfYear&&(t<_||C<t)&&(t=C),f(e)._overflowWeeks&&-1===t&&(t=Pe),f(e)._overflowWeekday&&-1===t&&(t=Fe),f(e).overflow=t),e}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$t=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,a,r,i,s,o=e._i,l=ft.exec(o)||yt.exec(o),o=vt.length,c=wt.length;if(l){for(f(e).iso=!0,t=0,n=o;t<n;t++)if(vt[t][1].exec(l[1])){r=vt[t][0],a=!1!==vt[t][2];break}if(null==r)return e._isValid=!1;if(l[3]){for(t=0,n=c;t<n;t++)if(wt[t][1].exec(l[3])){i=(l[2]||" ")+wt[t][0];break}if(null==i)return e._isValid=!1}if(!a&&null!=i)return e._isValid=!1;if(l[4]){if(!bt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=r+(i||"")+(s||""),Mt(e)}else e._isValid=!1}function kt(e,t,n,a,r,i){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ae.indexOf(t),parseInt(n,10),parseInt(a,10),parseInt(r,10)];return i&&e.push(parseInt(i,10)),e}function Ct(e){var t,n,a,r,i=xt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(t=kt(i[4],i[3],i[2],i[5],i[6],i[7]),n=i[1],a=t,r=e,n&&qe.indexOf(n)!==new Date(a[0],a[1],a[2]).getDay()?(f(r).weekdayMismatch=!0,r._isValid=!1):(e._a=t,e._tzm=(n=i[8],a=i[9],r=i[10],n?St[n]:a?0:((n=parseInt(r,10))-(a=n%100))/100*60+a),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0)):e._isValid=!1}function Tt(e,t,n){return null!=e?e:null!=t?t:n}function Gt(e){var t,n,a,r,i,s,o,l,c,d,u,m=[];if(!e._d){for(d=e,u=new Date(g.now()),n=d._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[C]&&null==e._a[k]&&(null!=(u=(d=e)._w).GG||null!=u.W||null!=u.E?(s=1,o=4,a=Tt(u.GG,d._a[_],Ke(F(),1,4).year),r=Tt(u.W,1),((i=Tt(u.E,1))<1||7<i)&&(l=!0)):(s=d._locale._week.dow,o=d._locale._week.doy,c=Ke(F(),s,o),a=Tt(u.gg,d._a[_],c.year),r=Tt(u.w,c.week),null!=u.d?((i=u.d)<0||6<i)&&(l=!0):null!=u.e?(i=u.e+s,(u.e<0||6<u.e)&&(l=!0)):i=s),r<1||r>E(a,s,o)?f(d)._overflowWeeks=!0:null!=l?f(d)._overflowWeekday=!0:(c=Ze(a,r,i,s,o),d._a[_]=c.year,d._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(u=Tt(e._a[_],n[_]),(e._dayOfYear>Ue(u)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),l=ze(u,0,e._dayOfYear),e._a[k]=l.getUTCMonth(),e._a[C]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=m[t]=n[t];for(;t<7;t++)e._a[t]=m[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[T]&&0===e._a[G]&&0===e._a[M]&&0===e._a[Le]&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?ze:We).apply(null,m),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==g.ISO_8601)if(e._f!==g.RFC_2822){e._a=[],f(e).empty=!0;for(var t,n,a,r=""+e._i,i=r.length,s=0,o=(n=oe(e._f,e._locale).match(ne)||[]).length,l=0;l<o;l++)a=n[l],(t=(r.match(Te(a,e))||[])[0])&&(0<(u=r.substr(0,r.indexOf(t))).length&&f(e).unusedInput.push(u),r=r.slice(r.indexOf(t)+t.length),s+=t.length),ie[a]?(t?f(e).empty=!1:f(e).unusedTokens.push(a),u=a,h=e,null!=(m=t)&&p(Me,u)&&Me[u](m,h._a,h,u)):e._strict&&!t&&f(e).unusedTokens.push(a);f(e).charsLeftOver=i-s,0<r.length&&f(e).unusedInput.push(r),e._a[T]<=12&&!0===f(e).bigHour&&0<e._a[T]&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[T]=(i=e._locale,c=e._a[T],null==(d=e._meridiem)?c:null!=i.meridiemHour?i.meridiemHour(c,d):null!=i.isPM?((i=i.isPM(d))&&c<12&&(c+=12),c=i||12!==c?c:0):c),null!==(d=f(e).era)&&(e._a[_]=e._locale.erasConvertYear(d,e._a[_])),Gt(e),pt(e)}else Ct(e);else _t(e);var c,d,u,m,h}function Et(e){var t,n=e._i,a=e._f;{var r,i;if(e._locale=e._locale||P(e._l),null===n||void 0===a&&""===n)return Y({nullInput:!0});else return"string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new K(pt(n)):(B(n)?e._d=n:s(a)?function(e){var t,n,a,r,i,s,o=!1,l=e._f.length;if(0===l)return f(e).invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<l;r++)i=0,s=!1,t=Z({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Mt(t),U(t)&&(s=!0),i=(i+=f(t).charsLeftOver)+10*f(t).unusedTokens.length,f(t).score=i,o?i<a&&(a=i,n=t):(null==a||i<a||s)&&(a=i,n=t,s&&(o=!0));j(e,n||t)}(e):a?Mt(e):o(a=(n=e)._i)?n._d=new Date(g.now()):B(a)?n._d=new Date(a.valueOf()):"string"==typeof a?(r=n,null===(i=$t.exec(r._i))?(_t(r),!1===r._isValid&&(delete r._isValid,Ct(r),!1===r._isValid&&(delete r._isValid,r._strict?r._isValid=!1:g.createFromInputFallback(r)))):r._d=new Date(+i[1])):s(a)?(n._a=H(a.slice(0),function(e){return parseInt(e,10)}),Gt(n)):O(a)?(r=n)._d||(t=void 0===(i=ce(r._i)).day?i.date:i.day,r._a=H([i.year,i.month,t,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),Gt(r)):D(a)?n._d=new Date(a):g.createFromInputFallback(n),U(e)||(e._d=null),e)}}function Lt(e,t,n,a,r){var i={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==n&&!1!==n||(a=n,n=void 0),(O(e)&&N(e)||s(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=e,i._f=t,i._strict=a,(r=new K(pt(Et(r=i))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function F(e,t,n,a){return Lt(e,t,n,a,!1)}g.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),g.ISO_8601=function(){},g.RFC_2822=function(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Y()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:Y()});function Pt(e,t){var n,a;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return F();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}var Ft=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var e=ce(e),t=e.year||0,n=e.quarter||0,a=e.month||0,r=e.week||e.isoWeek||0,i=e.day||0,s=e.hour||0,o=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(e){var t,n,a=!1,r=Ft.length;for(t in e)if(p(e,t)&&(-1===S.call(Ft,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[Ft[n]]){if(a)return!1;parseFloat(e[Ft[n]])!==h(e[Ft[n]])&&(a=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*o+1e3*s*60*60,this._days=+i+7*r,this._months=+a+3*n+12*t,this._data={},this._locale=P(),this._bubble()}function It(e){return e instanceof Rt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ot(e,n){a(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+i(~~(e/60),2)+n+i(~~e%60,2)})}Ot("Z",":"),Ot("ZZ",""),w("Z",Ce),w("ZZ",Ce),x(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Dt(Ce,e)});var Nt=/([\+\-]|\d\d)/gi;function Dt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Nt)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function Bt(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||B(e)?e:F(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),g.updateOffset(t,!1),t):F(e).local()}function Ht(e){return-Math.round(e._d.getTimezoneOffset())}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}g.updateOffset=function(){};var Ut=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Yt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function R(e,t){var n,a,r=e,i=null;return It(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:D(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(i=Ut.exec(e))?(n="-"===i[1]?-1:1,r={y:0,d:h(i[C])*n,h:h(i[T])*n,m:h(i[G])*n,s:h(i[M])*n,ms:h(At(1e3*i[Le]))*n}):(i=Yt.exec(e))?(n="-"===i[1]?-1:1,r={y:Wt(i[2],n),M:Wt(i[3],n),w:Wt(i[4],n),d:Wt(i[5],n),h:Wt(i[6],n),m:Wt(i[7],n),s:Wt(i[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=F(r.from),i=F(r.to),n=t.isValid()&&i.isValid()?(i=Bt(i,t),t.isBefore(i)?a=zt(t,i):((a=zt(i,t)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(r={}).ms=n.milliseconds,r.M=n.months),i=new Rt(r),It(e)&&p(e,"_locale")&&(i._locale=e._locale),It(e)&&p(e,"_isValid")&&(i._isValid=e._isValid),i}function Wt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(a,r){return function(e,t){var n;return null===t||isNaN(+t)||(q(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Zt(this,R(e,t),a),this}}function Zt(e,t,n,a){var r=t._milliseconds,i=At(t._days),t=At(t._months);e.isValid()&&(a=null==a||a,t&&Be(e,he(e,"Month")+t*n),i&&ge(e,"Date",he(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),a&&g.updateOffset(e,i||t))}R.fn=Rt.prototype,R.invalid=function(){return R(NaN)};Ie=Vt(1,"add"),Je=Vt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||B(e)||Kt(e)||D(e)||(n=s(t=e),a=!1,n&&(a=0===t.filter(function(e){return!D(e)&&Kt(t)}).length),n&&a)||function(e){var t,n,a=O(e)&&!N(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=i.length;for(t=0;t<s;t+=1)n=i[t],r=r||p(e,n);return a&&r}(e)||null==e;var t,n,a}function Jt(e,t){if(e.date()<t.date())return-Jt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(n,"months");return-(n+(t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(1+n,"months")-a)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=P(e))&&(this._locale=e),this)}g.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",g.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e=[],t=[],n=[],a=[],r=this.eras(),i=0,s=r.length;i<s;++i)t.push($(r[i].name)),e.push($(r[i].abbr)),n.push($(r[i].narrow)),a.push($(r[i].name)),a.push($(r[i].abbr)),a.push($(r[i].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function on(e,t){a(0,[e,e.length],0,t)}function ln(e,t,n,a,r){var i;return null==e?Ke(this,a,r).year:(t>(i=E(e,a,r))&&(t=i),function(e,t,n,a,r){e=Ze(e,t,n,a,r),t=ze(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,a,r))}a("N",0,0,"eraAbbr"),a("NN",0,0,"eraAbbr"),a("NNN",0,0,"eraAbbr"),a("NNNN",0,0,"eraName"),a("NNNNN",0,0,"eraNarrow"),a("y",["y",1],"yo","eraYear"),a("y",["yy",2],0,"eraYear"),a("y",["yyy",3],0,"eraYear"),a("y",["yyyy",4],0,"eraYear"),w("N",rn),w("NN",rn),w("NNN",rn),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,a){a=n._locale.erasParse(e,a,n._strict);a?f(n).era=a:f(n).invalidEra=e}),w("y",Se),w("yy",Se),w("yyy",Se),w("yyyy",Se),w("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),x(["y","yy","yyy","yyyy"],_),x(["yo"],function(e,t,n,a){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_]=n._locale.eraYearOrdinalParse(e,r):t[_]=parseInt(e,10)}),a(0,["gg",2],0,function(){return this.weekYear()%100}),a(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),w("G",_e),w("g",_e),w("GG",b,y),w("gg",b,y),w("GGGG",$e,fe),w("gggg",$e,fe),w("GGGGG",xe,ye),w("ggggg",xe,ye),Ee(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,a){t[a.substr(0,2)]=h(e)}),Ee(["gg","GG"],function(e,t,n,a){t[a]=g.parseTwoDigitYear(e)}),a("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),w("Q",r),x("Q",function(e,t){t[k]=3*(h(e)-1)}),a("D",["DD",2],"Do","date"),t("date","D"),n("date",9),w("D",b),w("DD",b,y),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],C),x("Do",function(e,t){t[C]=h(e.match(b)[0])});$e=me("Date",!0);a("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),w("DDD",we),w("DDDD",pe),x(["DDD","DDDD"],function(e,t,n){n._dayOfYear=h(e)}),a("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),w("m",b),w("mm",b,y),x(["m","mm"],G);fe=me("Minutes",!1);a("s",["ss",2],0,"second"),t("second","s"),n("second",15),w("s",b),w("ss",b,y),x(["s","ss"],M);var cn,xe=me("Seconds",!1);for(a("S",0,0,function(){return~~(this.millisecond()/100)}),a(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),a(0,["SSS",3],0,"millisecond"),a(0,["SSSS",4],0,function(){return 10*this.millisecond()}),a(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),a(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),a(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),a(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),a(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),w("S",we,r),w("SS",we,y),w("SSS",we,pe),cn="SSSS";cn.length<=9;cn+="S")w(cn,Se);function dn(e,t){t[Le]=h(1e3*("0."+e))}for(cn="S";cn.length<=9;cn+="S")x(cn,dn);ye=me("Milliseconds",!1),a("z",0,0,"zoneAbbr"),a("zz",0,0,"zoneName");r=K.prototype;function un(e){return e}r.add=Ie,r.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=O(e)&&!N(e),n=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<a.length;r+=1)n=n||p(e,a[r]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||F(),n=Bt(e,this).startOf("day"),n=g.calendarFormat(this,n)||"sameElse",t=t&&(d(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,F(e)))},r.clone=function(){return new K(this)},r.diff=function(e,t,n){var a,r,i;if(!this.isValid())return NaN;if(!(a=Bt(e,this)).isValid())return NaN;switch(r=6e4*(a.utcOffset()-this.utcOffset()),t=u(t)){case"year":i=Jt(this,a)/12;break;case"month":i=Jt(this,a);break;case"quarter":i=Jt(this,a)/3;break;case"second":i=(this-a)/1e3;break;case"minute":i=(this-a)/6e4;break;case"hour":i=(this-a)/36e5;break;case"day":i=(this-a-r)/864e5;break;case"week":i=(this-a-r)/6048e5;break;default:i=this-a}return n?i:m(i)},r.endOf=function(e){var t,n;if(void 0===(e=u(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),g.updateOffset(this,!0),this},r.format=function(e){return e=e||(this.isUtc()?g.defaultFormatUtc:g.defaultFormat),e=se(this,e),this.localeData().postformat(e)},r.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||F(e).isValid())?R({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.fromNow=function(e){return this.from(F(),e)},r.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||F(e).isValid())?R({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.toNow=function(e){return this.to(F(),e)},r.get=function(e){return d(this[e=u(e)])?this[e]():this},r.invalidAt=function(){return f(this).overflow},r.isAfter=function(e,t){return e=l(e)?e:F(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=u(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},r.isBefore=function(e,t){return e=l(e)?e:F(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=u(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},r.isBetween=function(e,t,n,a){return e=l(e)?e:F(e),t=l(t)?t:F(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(a=a||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===a[1]?this.isBefore(t,n):!this.isAfter(t,n))},r.isSame=function(e,t){var e=l(e)?e:F(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=u(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},r.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},r.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},r.isValid=function(){return U(this)},r.lang=Qe,r.locale=qt,r.localeData=Qt,r.max=ve,r.min=be,r.parsingFlags=function(){return j({},f(this))},r.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)p(e,t)&&n.push({unit:t,priority:de[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ce(e)),a=n.length,r=0;r<a;r++)this[n[r].unit](e[n[r].unit]);else if(d(this[e=u(e)]))return this[e](t);return this},r.startOf=function(e){var t,n;if(void 0===(e=u(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),g.updateOffset(this,!0),this},r.subtract=Je,r.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},r.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},r.toDate=function(){return new Date(this.valueOf())},r.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):d(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},r.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(r[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},r.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},r.eraName=function(){for(var e,t=this.localeData().eras(),n=0,a=t.length;n<a;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},r.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,a=t.length;n<a;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},r.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,a=t.length;n<a;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},r.eraYear=function(){for(var e,t,n=this.localeData().eras(),a=0,r=n.length;a<r;++a)if(e=n[a].since<=n[a].until?1:-1,t=this.clone().startOf("day").valueOf(),n[a].since<=t&&t<=n[a].until||n[a].until<=t&&t<=n[a].since)return(this.year()-g(n[a].since).year())*e+n[a].offset;return this.year()},r.year=Ye,r.isLeapYear=function(){return ue(this.year())},r.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},r.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},r.quarter=r.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},r.month=He,r.daysInMonth=function(){return Re(this.year(),this.month())},r.week=r.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},r.isoWeek=r.isoWeeks=function(e){var t=Ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},r.weeksInYear=function(){var e=this.localeData()._week;return E(this.year(),e.dow,e.doy)},r.weeksInWeekYear=function(){var e=this.localeData()._week;return E(this.weekYear(),e.dow,e.doy)},r.isoWeeksInYear=function(){return E(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return E(this.isoWeekYear(),1,4)},r.date=$e,r.day=r.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-a,"d")):a},r.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},r.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN;var t,n},r.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},r.hour=r.hours=v,r.minute=r.minutes=fe,r.second=r.seconds=xe,r.millisecond=r.milliseconds=ye,r.utcOffset=function(e,t,n){var a,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Ht(this);if("string"==typeof e){if(null===(e=Dt(Ce,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=Ht(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?Zt(this,R(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,g.updateOffset(this,!0),this._changeInProgress=null)),this},r.utc=function(e){return this.utcOffset(0,e)},r.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ht(this),"m")),this},r.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Dt(ke,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},r.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?F(e).utcOffset():0,(this.utcOffset()-e)%60==0)},r.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},r.isLocal=function(){return!!this.isValid()&&!this._isUTC},r.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},r.isUtc=jt,r.isUTC=jt,r.zoneAbbr=function(){return this._isUTC?"UTC":""},r.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},r.dates=e("dates accessor is deprecated. Use date instead.",$e),r.months=e("months accessor is deprecated. Use month instead",He),r.years=e("years accessor is deprecated. Use year instead",Ye),r.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),r.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return Z(t,this),(t=Et(t))._a?(e=(t._isUTC?c:F)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0,s=0;s<a;s++)(n&&e[s]!==t[s]||!n&&h(e[s])!==h(t[s]))&&i++;return i+r}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});y=ee.prototype;function mn(e,t,n,a){var r=P(),a=c().set(a,t);return r[n](a,e)}function hn(e,t,n){if(D(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");for(var a=[],r=0;r<12;r++)a[r]=mn(e,r,n,"month");return a}function gn(e,t,n,a){t=("boolean"==typeof e||(n=t=e,e=!1),D(t)&&(n=t,t=void 0),t||"");var r,i=P(),s=e?i._week.dow:0,o=[];if(null!=n)return mn(t,(n+s)%7,a,"day");for(r=0;r<7;r++)o[r]=mn(t,(r+s)%7,a,"day");return o}y.calendar=function(e,t,n){return d(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=un,y.postformat=un,y.relativeTime=function(e,t,n,a){var r=this._relativeTime[n];return d(r)?r(e,t,n,a):r.replace(/%d/i,e)},y.pastFuture=function(e,t){return d(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,n;for(n in e)p(e,n)&&(d(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var n,a=this._eras||P("en")._eras,r=0,i=a.length;r<i;++r)switch("string"==typeof a[r].since&&(n=g(a[r].since).startOf("day"),a[r].since=n.valueOf()),typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=g(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf()}return a},y.erasParse=function(e,t,n){var a,r,i,s,o,l=this.eras();for(e=e.toUpperCase(),a=0,r=l.length;a<r;++a)if(i=l[a].name.toUpperCase(),s=l[a].abbr.toUpperCase(),o=l[a].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[a];break;case"NNNN":if(i===e)return l[a];break;case"NNNNN":if(o===e)return l[a]}else if(0<=[i,s,o].indexOf(e))return l[a]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?g(e.since).year():g(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return p(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Oe.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,n){var a,r;if(this._monthsParseExact)return function(e,t,n){var a,r,i,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)i=c([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=S.call(this._shortMonthsParse,e))?r:null:-1!==(r=S.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=S.call(this._shortMonthsParse,e))||-1!==(r=S.call(this._longMonthsParse,e))?r:null:-1!==(r=S.call(this._longMonthsParse,e))||-1!==(r=S.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(r=c([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}},y.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ke(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,n){var a,r;if(this._weekdaysParseExact)return function(e,t,n){var a,r,i,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)i=c([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=S.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=S.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=S.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=S.call(this._weekdaysParse,e))||-1!==(r=S.call(this._shortWeekdaysParse,e))||-1!==(r=S.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=S.call(this._shortWeekdaysParse,e))||-1!==(r=S.call(this._weekdaysParse,e))||-1!==(r=S.call(this._minWeekdaysParse,e))?r:null:-1!==(r=S.call(this._minWeekdaysParse,e))||-1!==(r=S.call(this._weekdaysParse,e))||-1!==(r=S.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(r=c([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[a]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||at.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||at.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||at.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ht("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===h(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),g.lang=e("moment.lang is deprecated. Use moment.locale instead.",ht),g.langData=e("moment.langData is deprecated. Use moment.localeData instead.",P);var pn=Math.abs;function fn(e,t,n,a){t=R(t,n);return e._milliseconds+=a*t._milliseconds,e._days+=a*t._days,e._months+=a*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}we=wn("ms"),pe=wn("s"),Ie=wn("m"),ve=wn("h"),be=wn("d"),Je=wn("w"),v=wn("M"),fe=wn("Q"),xe=wn("y");function $n(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=$n("milliseconds"),$e=$n("seconds"),Ye=$n("minutes"),y=$n("hours"),xn=$n("days"),Sn=$n("months"),_n=$n("years");var kn=Math.round,Cn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tn(e,t,n,a){var r=R(e).abs(),i=kn(r.as("s")),s=kn(r.as("m")),o=kn(r.as("h")),l=kn(r.as("d")),c=kn(r.as("M")),d=kn(r.as("w")),r=kn(r.as("y")),i=(i<=n.ss?["s",i]:i<n.s&&["ss",i])||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return(i=(i=null!=n.w?i||d<=1&&["w"]||d<n.w&&["ww",d]:i)||c<=1&&["M"]||c<n.M&&["MM",c]||r<=1&&["y"]||["yy",r])[2]=t,i[3]=0<+e,i[4]=a,function(e,t,n,a,r){return r.relativeTime(t||1,!!n,e,a)}.apply(null,i)}var Gn=Math.abs;function Mn(e){return(0<e)-(e<0)||+e}function En(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,a,r,i,s,o=Gn(this._milliseconds)/1e3,l=Gn(this._days),c=Gn(this._months),d=this.asSeconds();return d?(e=m(o/60),t=m(e/60),o%=60,e%=60,n=m(c/12),c%=12,a=o?o.toFixed(3).replace(/\.?0+$/,""):"",r=Mn(this._months)!==Mn(d)?"-":"",i=Mn(this._days)!==Mn(d)?"-":"",s=Mn(this._milliseconds)!==Mn(d)?"-":"",(d<0?"-":"")+"P"+(n?r+n+"Y":"")+(c?r+c+"M":"")+(l?i+l+"D":"")+(t||e||o?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(o?s+a+"S":"")):"P0D"}var I=Rt.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),e.milliseconds=pn(e.milliseconds),e.seconds=pn(e.seconds),e.minutes=pn(e.minutes),e.hours=pn(e.hours),e.months=pn(e.months),e.years=pn(e.years),this},I.add=function(e,t){return fn(this,e,t,1)},I.subtract=function(e,t){return fn(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=u(e))||"quarter"===e||"year"===e)switch(t=this._days+a/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=we,I.asSeconds=pe,I.asMinutes=Ie,I.asHours=ve,I.asDays=be,I.asWeeks=Je,I.asMonths=v,I.asQuarters=fe,I.asYears=xe,I.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*h(this._months/12):NaN},I._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,a=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(vn(n)+t),n=t=0),a.milliseconds=e%1e3,e=m(e/1e3),a.seconds=e%60,e=m(e/60),a.minutes=e%60,e=m(e/60),a.hours=e%24,t+=m(e/24),n+=e=m(bn(t)),t-=yn(vn(e)),e=m(n/12),n%=12,a.days=t,a.months=n,a.years=e,this},I.clone=function(){return R(this)},I.get=function(e){return e=u(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=$e,I.minutes=Ye,I.hours=y,I.days=xn,I.weeks=function(){return m(this.days()/7)},I.months=Sn,I.years=_n,I.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,a=Cn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(a=Object.assign({},Cn,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),t=Tn(this,!n,a,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)},I.toISOString=En,I.toString=En,I.toJSON=En,I.locale=qt,I.localeData=Qt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),I.lang=Qe,a("X",0,0,"unix"),a("x",0,0,"valueOf"),w("x",_e),w("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,n){n._d=new Date(h(e))}),g.version="2.29.3",A=F,g.fn=r,g.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},g.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},g.now=function(){return Date.now?Date.now():+new Date},g.utc=c,g.unix=function(e){return F(1e3*e)},g.months=function(e,t){return hn(e,t,"months")},g.isDate=B,g.locale=ht,g.invalid=Y,g.duration=R,g.isMoment=l,g.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},g.parseZone=function(){return F.apply(null,arguments).parseZone()},g.localeData=P,g.isDuration=It,g.monthsShort=function(e,t){return hn(e,t,"monthsShort")},g.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},g.defineLocale=gt,g.updateLocale=function(e,t){var n,a;return null!=t?(a=lt,null!=L[e]&&null!=L[e].parentLocale?L[e].set(Q(L[e]._config,t)):(t=Q(a=null!=(n=mt(e))?n._config:a,t),null==n&&(t.abbr=e),(a=new ee(t)).parentLocale=L[e],L[e]=a),ht(e)):null!=L[e]&&(null!=L[e].parentLocale?(L[e]=L[e].parentLocale,e===ht()&&ht(e)):null!=L[e]&&delete L[e]),L[e]},g.locales=function(){return te(L)},g.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},g.normalizeUnits=u,g.relativeTimeRounding=function(e){return void 0===e?kn:"function"==typeof e&&(kn=e,!0)},g.relativeTimeThreshold=function(e,t){return void 0!==Cn[e]&&(void 0===t?Cn[e]:(Cn[e]=t,"s"===e&&(Cn.ss=t-1),!0))},g.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},g.prototype=r,g.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},g}();var Pa,Fa,Ra=Pa.exports;function Ia(e,t){oa(e,t)}const Aa={en:{gameThumbnail:{playNow:"Start now!",new:"NEW",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},zh:{gameThumbnail:{playNow:"現在開始!",new:"新的",hot:"熱的",opens:"打開 ",full:"滿桌 - 下注",dealer:"經銷商"}},de:{gameThumbnail:{playNow:"Jetzt beginnen!",new:"NEU",hot:"Hot",opens:"Öffnet ",full:"full - bet behind",dealer:"Dealer"}},it:{gameThumbnail:{playNow:"Inizia ora!",new:"NOVITÀ",hot:"HOT",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},fr:{gameThumbnail:{playNow:"Commencez maintenant",new:"Nouveau",hot:"Chaud",opens:"Ouvre ",full:"Table pleine - pari derrière",dealer:"Concessionnaire"}},es:{gameThumbnail:{playNow:"Empezar ahora!",new:"NUEVO",hot:"Hot",opens:"Abierto ",full:"Mesa completa - apuesta detrás",dealer:"Dealer"}},tr:{gameThumbnail:{playNow:"Şimdi oyna",new:"YENİ",hot:"SICAK",opens:"Açılır ",full:"masa dolu - bet behind",dealer:"Dealer"}},ru:{gameThumbnail:{playNow:"Играть сейчас",new:"НОВАЯ",hot:"ГОРЯЧЕЙ",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},ro:{gameThumbnail:{playNow:"Joaca acum",new:"NOU",hot:"POPULAR",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hu:{gameThumbnail:{playNow:"Játsszon most!",new:"ÚJ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pl:{gameThumbnail:{playNow:"Rozpocznij teraz!",new:"NOWOŚĆ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pt:{gameThumbnail:{playNow:"Comece agora!",new:"NOVO",hot:"Hot",opens:"Abrir ",full:"Mesa cheia - aposta atrás",dealer:"Dealer"}},sl:{gameThumbnail:{playNow:"Začnite zdaj!",new:"NOVO",hot:"Vroče",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},sr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}}},Oa={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function Na(e,t,n){const a=e.slice();return a[109]=t[n],a[111]=n,a}function Da(e,t,n){const a=e.slice();return a[106]=t[n],a}function Ba(e){let n,a=!We(e[37])&&!e[0]&&e[15],r=a&&Ha(e);return{c(){r&&r.c(),n=l()},m(e,t){r&&r.m(e,t),ue(e,n,t)},p(e,t){(a=32769&t[0]?!We(e[37])&&!e[0]&&e[15]:a)?r?r.p(e,t):((r=Ha(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&me(n)}}}function Ha(n){let a,r,i;return{c(){(a=he("div")).innerHTML='<svg version="1.1" class="UnfavoredIcon" part="UnfavoredIcon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="20px" y="20px" viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><path style="fill: white" d="M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"></path></svg>',fe(a,"class","FavIconContainer"),fe(a,"part","FavIconContainer")},m(e,t){ue(e,a,t),r||(i=z(a,"click",n[67]),r=!0)},p:W,d(e){e&&me(a),r=!1,i()}}}function ja(n){let a,r,i,s,o=n[36]("gameThumbnail.playNow")+"";return{c(){a=he("button"),r=ge(o),fe(a,"class","GameInfoBtn"),fe(a,"part","GameInfoBtn")},m(e,t){ue(e,a,t),de(a,r),i||(s=z(a,"click",n[68]),i=!0)},p(e,t){32&t[1]&&o!==(o=e[36]("gameThumbnail.playNow")+"")&&ye(r,o)},d(e){e&&me(a),i=!1,s()}}}function Ua(e){let n;return{c(){(n=he("div")).innerHTML='<svg version="1.1" class="FavoredIcon" part="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',fe(n,"class","FavIconContainer"),fe(n,"part","FavIconContainer")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function Ya(n){let a,r,i;return{c(){(a=he("div")).innerHTML='<svg version="1.1" class="FavoredIcon" part="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',fe(a,"class","FavIconContainer"),fe(a,"part","FavIconContainer")},m(e,t){ue(e,a,t),r||(i=z(a,"click",n[69]),r=!0)},p:W,d(e){e&&me(a),r=!1,i()}}}function Wa(e){let n,a,r=e[36]("gameThumbnail.new")+"";return{c(){n=he("span"),a=ge(r),fe(n,"class","GameExtraInfoLabel NewGameTag"),fe(n,"part","GameExtraInfoLabel NewGameTag")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){32&t[1]&&r!==(r=e[36]("gameThumbnail.new")+"")&&ye(a,r)},d(e){e&&me(n)}}}function za(e){let n,a;return{c(){n=he("span"),a=ge(e[8]),fe(n,"class","GameExtraInfoLabel PopularGameTag"),fe(n,"part","GameExtraInfoLabel PopularGameTag")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){256&t[0]&&ye(a,e[8])},d(e){e&&me(n)}}}function Va(e){let n,a,r=!e[23]&&e[21]&&e[22]&&Za(e);function i(e){return e[23]&&e[20]&&e[20]===sr?Xa:e[23]&&e[20]&&e[20]===or?Ka:void 0}let s=i(e),o=s&&s(e);return{c(){r&&r.c(),n=pe(),o&&o.c(),a=l()},m(e,t){r&&r.m(e,t),ue(e,n,t),o&&o.m(e,t),ue(e,a,t)},p(e,t){!e[23]&&e[21]&&e[22]?r?r.p(e,t):((r=Za(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null),s===(s=i(e))&&o?o.p(e,t):(o&&o.d(1),(o=s&&s(e))&&(o.c(),o.m(a.parentNode,a)))},d(e){r&&r.d(e),e&&me(n),o&&o.d(e),e&&me(a)}}}function Za(e){let n,a,r,i,s,o,l,c,d,u,m=e[36]("gameThumbnail.opens")+"",h=Ra.utc(e[21]).local().format(e[22])+"",g=e[46](e[35])+"",p=e[45](e[27],e[28],e[26])+"";return{c(){n=he("div"),a=he("div"),r=ge(m),i=pe(),s=he("span"),o=ge(h),l=pe(),c=new P(!1),d=pe(),u=new P(!1),fe(a,"class","ClosedGame"),fe(a,"part","ClosedGame"),c.a=d,u.a=null,fe(n,"class","GameProp LiveProps"),fe(n,"part","GameProp LiveProps")},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(a,i),de(a,s),de(s,o),de(n,l),c.m(g,n),de(n,d),u.m(p,n)},p(e,t){32&t[1]&&m!==(m=e[36]("gameThumbnail.opens")+"")&&ye(r,m),6291456&t[0]&&h!==(h=Ra.utc(e[21]).local().format(e[22])+"")&&ye(o,h),16&t[1]&&g!==(g=e[46](e[35])+"")&&c.p(g),469762048&t[0]&&p!==(p=e[45](e[27],e[28],e[26])+"")&&u.p(p)},d(e){e&&me(n)}}}function Ka(n){let a,r,i,s,o,l,c=n[46](n[35])+"",d=n[45](n[27],n[28],n[26])+"",u=new Array(cr),m=[];for(let e=0;e<u.length;e+=1)m[e]=er(Na(n,u,e));return{c(){a=he("div"),r=he("div");for(let e=0;e<m.length;e+=1)m[e].c();i=pe(),s=new P(!1),o=pe(),l=new P(!1),fe(r,"class","LiveIcons"),fe(r,"part","LiveIcons"),s.a=o,l.a=null,fe(a,"class",n[31]),fe(a,"part",n[31])},m(e,t){ue(e,a,t),de(a,r);for(let e=0;e<m.length;e+=1)m[e].m(r,null);n[70](r),de(a,i),s.m(c,a),de(a,o),l.m(d,a)},p(t,n){if(1073750016&n[0]|65538&n[1]){let e;for(u=new Array(cr),e=0;e<u.length;e+=1){const s=Na(t,u,e);m[e]?m[e].p(s,n):(m[e]=er(s),m[e].c(),m[e].m(r,null))}for(;e<m.length;e+=1)m[e].d(1);m.length=u.length}16&n[1]&&c!==(c=t[46](t[35])+"")&&s.p(c),469762048&n[0]&&d!==(d=t[45](t[27],t[28],t[26])+"")&&l.p(d),1&n[1]&&fe(a,"class",t[31]),1&n[1]&&fe(a,"part",t[31])},d(e){e&&me(a),C(m,e),n[70](null)}}}function Xa(e){let n,a,r,i,s,o,l=e[46](e[35])+"",c=e[45](e[27],e[28],e[26])+"";function d(e){return e[33]?nr:tr}let u=d(e),m=u(e);return{c(){n=he("div"),a=he("div"),m.c(),r=pe(),i=new P(!1),s=pe(),o=new P(!1),fe(a,"class","LiveIcons"),fe(a,"part","LiveIcons"),i.a=s,o.a=null,fe(n,"class","GameProp LiveProps BlackjackDisplay"),fe(n,"part","GameProp LiveProps BlackjackDisplay")},m(e,t){ue(e,n,t),de(n,a),m.m(a,null),de(n,r),i.m(l,n),de(n,s),o.m(c,n)},p(e,t){u===(u=d(e))&&m?m.p(e,t):(m.d(1),(m=u(e))&&(m.c(),m.m(a,null))),16&t[1]&&l!==(l=e[46](e[35])+"")&&i.p(l),469762048&t[0]&&c!==(c=e[45](e[27],e[28],e[26])+"")&&o.p(c)},d(e){e&&me(n),m.d()}}}function Ja(e){let n;function a(e){return e[30]?Qa:qa}let r=a(e),i=r(e);return{c(){i.c(),n=l()},m(e,t){i.m(e,t),ue(e,n,t)},p(e,t){r===(r=a(e))&&i?i.p(e,t):(i.d(1),(i=r(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&me(n)}}}function qa(e){let n,a,r=e[47]("LatestResult "+(0===e[111]?"First":""),e[111],e[13][e[111]],e[32][e[13][e[111]]])+"";return{c(){n=new P(!1),a=l(),n.a=a},m(e,t){n.m(r,e,t),ue(e,a,t)},p(e,t){8192&t[0]|2&t[1]&&r!==(r=e[47]("LatestResult "+(0===e[111]?"First":""),e[111],e[13][e[111]],e[32][e[13][e[111]]])+"")&&n.p(r)},d(e){e&&me(a),e&&n.d()}}}function Qa(e){let n,a,r,i,s,o=e[47]("LatestResult "+(0===e[111]?"First":""),"first"+e[111]+e[13][e[111]][0],e[13][e[111]][0],e[32][e[13][e[111]][0]])+"",l=e[47]("LatestResult "+(0===e[111]?"First":""),"second"+e[111]+e[13][e[111]][1],e[13][e[111]][1],e[32][e[13][e[111]][1]])+"";return{c(){n=he("div"),a=new P(!1),r=pe(),i=new P(!1),s=pe(),a.a=r,i.a=s,fe(n,"class","Double"),fe(n,"part","Double")},m(e,t){ue(e,n,t),a.m(o,n),de(n,r),i.m(l,n),de(n,s)},p(e,t){8192&t[0]|2&t[1]&&o!==(o=e[47]("LatestResult "+(0===e[111]?"First":""),"first"+e[111]+e[13][e[111]][0],e[13][e[111]][0],e[32][e[13][e[111]][0]])+"")&&a.p(o),8192&t[0]|2&t[1]&&l!==(l=e[47]("LatestResult "+(0===e[111]?"First":""),"second"+e[111]+e[13][e[111]][1],e[13][e[111]][1],e[32][e[13][e[111]][1]])+"")&&i.p(l)},d(e){e&&me(n)}}}function er(e){let n,a=e[13]&&e[13][e[111]]&&Ja(e);return{c(){a&&a.c(),n=l()},m(e,t){a&&a.m(e,t),ue(e,n,t)},p(e,t){e[13]&&e[13][e[111]]?a?a.p(e,t):((a=Ja(e)).c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},d(e){a&&a.d(e),e&&me(n)}}}function tr(t){let r,i=t[25],s=[];for(let e=0;e<i.length;e+=1)s[e]=ar(Da(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);ue(t,r,n)},p(t,n){if(570425344&n[0]|8192&n[1]){let e;for(i=t[25],e=0;e<i.length;e+=1){var a=Da(t,i,e);s[e]?s[e].p(a,n):(s[e]=ar(a),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){C(s,e),e&&me(r)}}}function nr(e){let n,a,r=e[36]("gameThumbnail.full")+"";return{c(){n=he("span"),a=ge(r),fe(n,"class","FullTable"),fe(n,"part","FullTable")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){32&t[1]&&r!==(r=e[36]("gameThumbnail.full")+"")&&ye(a,r)},d(e){e&&me(n)}}}function ar(e){let n,a,r,i,s,o,l;return{c(){n=he("span"),a=M("svg"),r=M("path"),i=M("path"),s=pe(),fe(r,"d","M11.58 6c-1.17 0-2.13.95-2.13 2.12v.4a8.82 8.82 0 00-2.92-.4c-1.54 0-2.45.22-2.92.4v-.4A2.136 2.136 0 001.48 6a1.33 1.33 0 00-.5 2.55c.14.07.24.21.24.37l.26 1.06c0 .96.73 1.75 1.65 1.85a.65.65 0 00.28 1.23.65.65 0 00.3-1.22h5.64a.65.65 0 00.3 1.22.65.65 0 00.28-1.23c.93-.1 1.65-.9 1.65-1.85l.27-1.06c0-.16.1-.3.24-.37A1.33 1.33 0 0011.58 6z"),fe(i,"d","M4.34 7.5c.55-.1 1.27-.17 2.2-.17.91 0 1.63.07 2.18.17.21-.96.9-1.74 1.8-2.1V4a3.99 3.99 0 00-7.97 0v1.4c.9.36 1.58 1.14 1.79 2.1z"),fe(a,"xmlns","http://www.w3.org/2000/svg"),fe(a,"width","13"),fe(a,"height","14"),fe(a,"viewBox","0 0 13 14"),fe(n,"class",o=e[44](e[29],e[106].toString())?"ClosedSeat":"OpenSeat"),fe(n,"part",l=e[44](e[29],e[106].toString())?"ClosedSeat":"OpenSeat")},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(a,i),de(n,s)},p(e,t){570425344&t[0]&&o!==(o=e[44](e[29],e[106].toString())?"ClosedSeat":"OpenSeat")&&fe(n,"class",o),570425344&t[0]&&l!==(l=e[44](e[29],e[106].toString())?"ClosedSeat":"OpenSeat")&&fe(n,"part",l)},d(e){e&&me(n)}}}function rr(e){let n,a;return{c(){n=he("p"),a=ge(e[4]),fe(n,"class","GameNameBelow"),fe(n,"part","GameNameBelow"),fe(n,"title",e[4])},m(e,t){ue(e,n,t),de(n,a)},p(e,t){16&t[0]&&ye(a,e[4]),16&t[0]&&fe(n,"title",e[4])},d(e){e&&me(n)}}}function ir(n){let a,r,i,s,o,l,N,c,d,u,m,h,D,g,p,B,f,y,H,b,v,w,$,x,S,_,k,j,C,T,G,U,M=(n[5]||"-")+"",E=n[16]&&Ba(n),L=n[1]&&ja(n);function Y(e,t){return 32773&t[0]&&(b=null),32773&t[0]&&(v=null),(b=null==b?!(We(e[37])||!e[0]||!e[15]||!e[2]):b)?Ya:(v=null==v?!!(We(e[37])&&e[0]&&e[15]&&e[2]):v)?Ua:void 0}let P=Y(n,[-1,-1,-1,-1]),F=P&&P(n),R=n[7]&&Wa(n),I=n[8]&&za(n),A=n[12]&&Va(n),O=n[10]&&rr(n);return{c(){a=he("div"),r=he("div"),i=he("img"),N=pe(),c=he("div"),d=he("div"),E&&E.c(),u=pe(),m=he("p"),h=ge(n[4]),D=pe(),L&&L.c(),B=pe(),f=he("span"),y=ge(M),H=pe(),F&&F.c(),w=pe(),$=he("div"),R&&R.c(),x=pe(),I&&I.c(),S=pe(),A&&A.c(),j=pe(),O&&O.c(),this.c=W,ce(i.src,s=n[3])||fe(i,"src",s),fe(i,"class",o=`GameBg GameBg-${n[9]} ${n[17]?"GameContainerHovered":""} `+(n[18]?"Loaded":"")),fe(i,"part",l="GameBg "+(n[17]?"GameContainerHovered":"")+" "+(n[18]?"Loaded":"")),fe(i,"alt",""),fe(i,"loading","lazy"),fe(m,"class","GameInfoName"),fe(m,"part","GameInfoName"),fe(m,"title",n[4]),fe(d,"class",g="GameInfo "+(n[17]?"GameHovered":"")),fe(d,"part",p="GameInfo "+(n[17]?"GameHovered":"")),fe(f,"class","GameInfoVendor"),fe(f,"part","GameInfoVendor"),fe(c,"class","GameInfoWrapper"),fe(c,"part","GameInfoWrapper"),fe($,"class","GameExtraInfo"),fe($,"part","GameExtraInfo"),fe(r,"class",_="GameInnerContainer "+(n[12]&&!n[23]&&n[24].value||n[12]&&n[33]?"GameInnerContainerUnavailable":"")),fe(r,"part",k="GameInnerContainer "+(n[12]&&!n[23]||n[12]&&n[33]?"GameInnerContainerUnavailable":"")),fe(a,"class",C="GameContainer "+n[34]),fe(a,"part",T="GameContainer "+n[34])},m(e,t){ue(e,a,t),de(a,r),de(r,i),n[66](i),de(r,N),de(r,c),de(c,d),E&&E.m(d,null),de(d,u),de(d,m),de(m,h),de(d,D),L&&L.m(d,null),de(c,B),de(c,f),de(f,y),de(r,H),F&&F.m(r,null),de(r,w),de(r,$),R&&R.m($,null),de($,x),I&&I.m($,null),de($,S),A&&A.m($,null),de(a,j),O&&O.m(a,null),n[71](a),G||(U=[z(r,"mouseenter",n[42]),z(r,"mouseleave",n[43]),z(r,"touchstart",n[40],{passive:!0}),z(r,"touchend",n[41],{passive:!0})],G=!0)},p(e,t){8&t[0]&&!ce(i.src,s=e[3])&&fe(i,"src",s),393728&t[0]&&o!==(o=`GameBg GameBg-${e[9]} ${e[17]?"GameContainerHovered":""} `+(e[18]?"Loaded":""))&&fe(i,"class",o),393216&t[0]&&l!==(l="GameBg "+(e[17]?"GameContainerHovered":"")+" "+(e[18]?"Loaded":""))&&fe(i,"part",l),e[16]?E?E.p(e,t):((E=Ba(e)).c(),E.m(d,u)):E&&(E.d(1),E=null),16&t[0]&&ye(h,e[4]),16&t[0]&&fe(m,"title",e[4]),e[1]?L?L.p(e,t):((L=ja(e)).c(),L.m(d,null)):L&&(L.d(1),L=null),131072&t[0]&&g!==(g="GameInfo "+(e[17]?"GameHovered":""))&&fe(d,"class",g),131072&t[0]&&p!==(p="GameInfo "+(e[17]?"GameHovered":""))&&fe(d,"part",p),32&t[0]&&M!==(M=(e[5]||"-")+"")&&ye(y,M),P===(P=Y(e,t))&&F?F.p(e,t):(F&&F.d(1),(F=P&&P(e))&&(F.c(),F.m(r,w))),e[7]?R?R.p(e,t):((R=Wa(e)).c(),R.m($,x)):R&&(R.d(1),R=null),e[8]?I?I.p(e,t):((I=za(e)).c(),I.m($,S)):I&&(I.d(1),I=null),e[12]?A?A.p(e,t):((A=Va(e)).c(),A.m($,null)):A&&(A.d(1),A=null),25169920&t[0]|4&t[1]&&_!==(_="GameInnerContainer "+(e[12]&&!e[23]&&e[24].value||e[12]&&e[33]?"GameInnerContainerUnavailable":""))&&fe(r,"class",_),8392704&t[0]|4&t[1]&&k!==(k="GameInnerContainer "+(e[12]&&!e[23]||e[12]&&e[33]?"GameInnerContainerUnavailable":""))&&fe(r,"part",k),e[10]?O?O.p(e,t):((O=rr(e)).c(),O.m(a,null)):O&&(O.d(1),O=null),8&t[1]&&C!==(C="GameContainer "+e[34])&&fe(a,"class",C),8&t[1]&&T!==(T="GameContainer "+e[34])&&fe(a,"part",T)},i:W,o:W,d(e){e&&me(a),n[66](null),E&&E.d(),L&&L.d(),F&&F.d(),R&&R.d(),I&&I.d(),A&&A.d(),O&&O.d(),n[71](null),G=!1,V(U)}}}const sr="blackjack",or="roulette",lr="doubleballroulette",cr=5;function dr(r,e,s){let t;Ve(r,Ta,e=>s(36,t=e));let A,i,o,l,n,O,N,c,d,D,B,H,u,j,U,Y,m,W,z,V,h,Z,g,K,X,{session:J=""}=e,{userid:p=""}=e,{lang:f="en"}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,{translationurl:v=""}=e,{favorites:w=""}=e,{gamethumbnail:q=""}=e,{gamename:Q=""}=e,{gamevendor:a=""}=e,{gameid:$=""}=e,{gameisnew:ee=""}=e,{gametag:te=""}=e,{gamefunmode:x=!1}=e,{searchitem:ne=!1}=e,{gamefavorite:S=!1}=e,{gamecellsize:ae=""}=e,{showfavoredcategory:_=!1}=e,{showgamename:re=!1}=e,{currency:k=""}=e,{gamepagemodalurl:C="false"}=e,{endpoint:T=""}=e,{livelobbyendpoint:G=""}=e,{connectlive:M=""}=e,{visibilityconnect:E=""}=e,{integratedgameframedesktop:L="false"}=e,{integratedgameframemobile:P="false"}=e,ie=!1,se=!1,oe=!1,F=window.navigator.userAgent,le="HH:mm",ce,de=[],ue="EUR",R="";const me=[sr],he=[or,lr],ge={"01":"Yellow","02":"Blue",10:"Green",40:"Red","05":"Purple",20:"Orange",X7:"Gold",X2:"Gold"},pe={1:"Red",3:"Red",5:"Red",7:"Red",9:"Red",12:"Red",14:"Red",16:"Red",18:"Red",19:"Red",21:"Red",23:"Red",25:"Red",27:"Red",30:"Red",32:"Red",34:"Red",36:"Red",2:"Black",4:"Black",6:"Black",8:"Black",10:"Black",11:"Black",13:"Black",15:"Black",17:"Black",20:"Black",22:"Black",24:"Black",26:"Black",28:"Black",29:"Black",31:"Black",33:"Black",35:"Black",0:"Green","00":"Green"},fe=(Object.keys(Aa).forEach(e=>{Ia(e,Aa[e])}),e=>{e.data.type!=="AddFavoriteThumbnail_"+$||_||s(0,S=!0),e.data.type!=="RemoveFavoriteThumbnail_"+$||_||s(0,S=!1),"UserSessionID"===e.data.type&&(s(15,ie=!0),e.data.session,A=e.data.userID),"CategoryUpdate"===e.data.type&&s(12,l=null)}),ye=e=>{window.postMessage({type:"SearchedItemClicked",gameId:e},window.location.href),"function"==typeof gtag&&gtag("event","OpenGame",{context:"GameThumbnail--Searched",gameId:""+e,userId:""+(A||"Not logged in")}),We(F)&&"true"==P?window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:x,gamepagemodalurl:C,isMobile:We(F),source:"GameThumbnail"},window.location.href):We(F)&&"false"==P&&window.postMessage({type:"ShowGameModal",gameId:e,isMobile:We(F)},window.location.href),We(F)||"true"!=L?We(F)||"false"!=L||window.postMessage({type:"ShowGameModal",gameId:e,isMobile:We(F)},window.location.href):window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:x,gamepagemodalurl:C,isMobile:We(F)},window.location.href)},be=e=>{var t="thumbnail";S?window.postMessage({type:"SetUnfavoredGame",id:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",id:e,triggerFactor:t},window.location.href)},ve=()=>{G&&EventSource&&!n&&a&&$&&(n=new EventSource(`${T}/encoder/lobby/updates/${a}/`+$)).addEventListener("message",$e)},we=()=>{n&&(n.close(),n=void 0)},$e=async e=>{const{type:t,data:n}=e;let a;if("message"===t){if(n)try{a=JSON.parse(n)}catch(e){console.error("MESSAGE PARSING ERROR: ",e)}if(a){const{InternalTableId:e,MessageType:t,Results:n,Seats:r,Open:i}=a;if(e)switch(t){case"SeatsUpdated":r&&Array.isArray(r)&&(s(29,u=r),s(12,l.currentOccupiedSeats=r,l),await _e());break;case"RouletteResultsUpdated":n&&Array.isArray(n)&&(j=n,s(12,l.currentRouletteNumbers=n,l),await _e());break;case"DoubleBallRouletteResultsUpdated":n&&Array.isArray(n)&&(U=n,s(12,l.currentDoubleBallRouletteNumbers=n,l),await _e());break;case"TableOpened":case"TableClosed":s(23,c=i),s(12,l.isOpen=i,l),await _e()}}}},xe=(e,t=",")=>null!=e?(""+e).replace(/\B(?=(\d{3})+(?!\d))/g,t):"",I=(e,t)=>e.some(e=>e===t),Se=()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})};return Ze(()=>(window.addEventListener("message",fe,!1),()=>{window.removeEventListener("message",fe),n&&n.removeEventListener("message",$e)})),r.$$set=e=>{"session"in e&&s(48,J=e.session),"userid"in e&&s(49,p=e.userid),"lang"in e&&s(1,f=e.lang),"clientstyling"in e&&s(50,y=e.clientstyling),"clientstylingurl"in e&&s(51,b=e.clientstylingurl),"translationurl"in e&&s(52,v=e.translationurl),"favorites"in e&&s(2,w=e.favorites),"gamethumbnail"in e&&s(3,q=e.gamethumbnail),"gamename"in e&&s(4,Q=e.gamename),"gamevendor"in e&&s(5,a=e.gamevendor),"gameid"in e&&s(6,$=e.gameid),"gameisnew"in e&&s(7,ee=e.gameisnew),"gametag"in e&&s(8,te=e.gametag),"gamefunmode"in e&&s(53,x=e.gamefunmode),"searchitem"in e&&s(54,ne=e.searchitem),"gamefavorite"in e&&s(0,S=e.gamefavorite),"gamecellsize"in e&&s(9,ae=e.gamecellsize),"showfavoredcategory"in e&&s(55,_=e.showfavoredcategory),"showgamename"in e&&s(10,re=e.showgamename),"currency"in e&&s(56,k=e.currency),"gamepagemodalurl"in e&&s(57,C=e.gamepagemodalurl),"endpoint"in e&&s(58,T=e.endpoint),"livelobbyendpoint"in e&&s(59,G=e.livelobbyendpoint),"connectlive"in e&&s(60,M=e.connectlive),"visibilityconnect"in e&&s(61,E=e.visibilityconnect),"integratedgameframedesktop"in e&&s(62,L=e.integratedgameframedesktop),"integratedgameframemobile"in e&&s(63,P=e.integratedgameframemobile)},r.$$.update=()=>{if(536870912&r.$$.dirty[1]&&M&&("disconnect"===M?we():"connect"===M&&ve()),1073741824&r.$$.dirty[1]&&E&&("disconnect"===E?we():"connect"===E&&"connect"===M&&ve()),2&r.$$.dirty[0]&&f&&(t=f,Ye.set(t)),134610944&r.$$.dirty[1]&&J&&p&&T&&(s(15,ie=!0),A=p),8&r.$$.dirty[0]&&q&&i&&s(19,i.onload=()=>{s(18,oe=!0)},i),2048&r.$$.dirty[0]|524288&r.$$.dirty[1]&&y&&o){let e=document.createElement("style");e.innerHTML=y,o.appendChild(e)}if(2048&r.$$.dirty[0]|1048576&r.$$.dirty[1]&&b&&o&&Se(),4&r.$$.dirty[0]&&w&&"true"==w&&s(16,se=!0),2097152&r.$$.dirty[1]&&v&&fetch(v).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ia(e,t[e])})}).catch(e=>{console.log(e)}),512&r.$$.dirty[0]|1048576&r.$$.dirty[1]&&ae&&b&&Se(),402653184&r.$$.dirty[1]&&T&&G){let e=new URL(""+G.split("?")[0]);e.searchParams.append("platform",ze(F)),e.searchParams.append("language",f),fetch(e).then(e=>e.json()).then(e=>{e=e[0].details;s(12,l=e)})}if(4096&r.$$.dirty[0]&&l&&l&&(s(23,c=l.isOpen),ce=l.betLimit||{},s(24,d=l.openHours),s(25,de=(e=>{H=e.totalSeats||7,s(29,u=e.currentOccupiedSeats||[]);const t=[];for(let e=1;e<=H;e++)t.push(e);return{seats:t}})(l).seats),d&&d.value&&({startTime:t,originalTimeFormat:e}=d["value"],s(21,N=t),s(22,le=e||le)),c&&s(20,O=(e=>{let t=null;if(e){const n=e["vendorCategory"];if(n){const e=n.toLowerCase();I(me,e)?t=sr:I(he,e)&&(t=or)}}return t})(l)),s(26,ue=Oa[k]),s(27,D=(ce.min||{})[k]),s(28,B=(ce.max||{})[k]),j=l.currentRouletteNumbers,U=l.currentDoubleBallRouletteNumbers,Y=l.vendorCategory,s(30,m=Y.toLowerCase()===lr),s(13,W=(m?U:j)||[]),s(31,z="GameProp LiveProps RoulleteProps"),s(31,z+=m?" Double":""),s(32,V=I(he,Y.toLowerCase())?pe:ge),Z=h,s(33,h=Array.isArray(u)&&u.length===H),l.dealer&&s(35,K=l.dealer.DealerName),X=l.numberOfPlayers,s(34,R="ListGame"),l.isOpen&&l.currentRouletteNumbers&&s(34,R+=" GameBackdrop"),c&&h&&D&&B&&l.currentOccupiedSeats?s(34,R+=" GameContainerDimmed"):!1===c&&N&&s(34,R+=" GameContainerFullyDimmed"),o&&(!Z&&h?(s(34,R+=" PulsatingRedShadow"),s(34,R=R.replace(" PulsatingGreenShadow",""))):Z&&!h&&(s(34,R+=" PulsatingGreenShadow"),s(34,R=R.replace(" PulsatingRedShadow",""))))),24576&r.$$.dirty[0]&&g&&W){const n="FirstElementAnimated",a=g.getElementsByClassName("First")[0];a&&(a.classList.add(n),setTimeout(()=>{a.classList.remove(n)},2e3))}var e,t},[S,f,w,q,Q,a,$,ee,te,ae,re,o,l,W,g,ie,se,!1,oe,i,O,N,le,c,d,de,ue,D,B,u,m,z,V,h,R,K,t,F,ye,be,()=>{window.postMessage({type:"GameHoveredMobile"},window.location.href)},()=>{window.postMessage({type:"GameBlurMobile"},window.location.href)},()=>{window.postMessage({type:"GameHoveredPc"},window.location.href)},()=>{window.postMessage({type:"GameBlurPc"},window.location.href)},I,(e,t,n)=>{let a,r;return null!=e&&null!=t&&(r=`
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function W(){}function _(e){return e()}function C(){return Object.create(null)}function V(e){e.forEach(_)}function T(e){return"function"==typeof e}function t(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,G;function ce(e,t){return(s=s||document.createElement("a")).href=t,e===s.href}function u(e,...t){if(null==e)return W;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Ve(e,t,n){e.$$.on_destroy.push(u(t,n))}function E(e){return e&&T(e.destroy)?e.destroy:W}function de(e,t){e.appendChild(t)}function ue(e,t,n){e.insertBefore(t,n||null)}function me(e){e.parentNode.removeChild(e)}function k(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function he(e){return document.createElement(e)}function M(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ge(e){return document.createTextNode(e)}function pe(){return ge(" ")}function l(){return ge("")}function z(e,t,n,a){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)}function fe(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function x(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:fe(e,t,n)}function ye(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function L(e,t){e.value=null==t?"":t}function S(e,t,n,a){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,a?"important":"")}function m(e,t,n){e.classList[n?"add":"remove"](t)}class P{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=M(t.nodeName):this.e=he(t.nodeName),this.t=t,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)ue(this.t,this.n[e],t)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(me)}}function n(e){const t={};for(const n of e)t[n.name]=n.value;return t}function F(e){G=e}function Ze(e){!function(){if(G)return G;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const R=[],Ue=[],h=[],g=[],I=Promise.resolve();let A=!1;function O(){A||(A=!0,I.then(f))}function _e(){return O(),I}function N(e){h.push(e)}const D=new Set;let B=0;function f(){const e=G;do{for(;B<R.length;){const e=R[B];B++,F(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),V(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(N))}for(F(null),R.length=0,B=0;Ue.length;)Ue.pop()();for(let e=0;e<h.length;e+=1){const a=h[e];D.has(a)||(D.add(a),a())}}while(h.length=0,R.length);for(;g.length;)g.pop()();A=!1,D.clear(),F(e)}const H=new Set;function j(a,e,t,n,r,i,s,o=[-1]){var l=G;F(a);const c=a.$$={fragment:null,ctx:null,props:i,update:W,not_equal:r,bound:C(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:C(),dirty:o,skip_bound:!1,root:e.target||l.$$.root};s&&s(c.root);let d=!1;if(c.ctx=t?t(a,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&r(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),d&&(n=e,-1===(e=a).$$.dirty[0]&&(R.push(e),O(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],c.update(),d=!0,V(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){i=e.target;const W=Array.from(i.childNodes);c.fragment&&c.fragment.l(W),W.forEach(me)}else c.fragment&&c.fragment.c();e.intro&&(o=a.$$.fragment)&&o.i&&(H.delete(o),o.i(void 0));{var u=a;s=e.target;t=e.anchor;n=e.customElement;const{fragment:m,on_mount:h,on_destroy:g,after_update:p}=u.$$;m&&m.m(s,t),n||N(()=>{var e=h.map(_).filter(T);g?g.push(...e):V(e),u.$$.on_mount=[]}),p.forEach(N)}f()}F(l)}let e;"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(_).filter(T);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){V(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(V(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=W}$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 U,Y,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==o&&o,Z="URLSearchParams"in o,K="Symbol"in o&&"iterator"in Symbol,X="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),J="FormData"in o,q="ArrayBuffer"in o;function Q(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 ee(e){return e="string"!=typeof e?String(e):e}function te(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return K&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ne(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ae(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function re(e){var t=new FileReader,n=ae(t);return t.readAsArrayBuffer(e),n}function ie(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:X&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:J&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Z&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():q&&X&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=ie(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):q&&(ArrayBuffer.prototype.isPrototypeOf(e)||Y(e))?this._bodyArrayBuffer=ie(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):Z&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},X&&(this.blob=function(){var e=ne(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?ne(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(re)}),this.text=function(){var e,t,n=ne(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,t=ae(e=new FileReader),e.readAsText(n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),a=0;a<t.length;a++)n[a]=String.fromCharCode(t[a]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},J&&(this.formData=function(){return this.text().then(be)}),this.json=function(){return this.text().then(JSON.parse)},this}q&&(U=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Y=ArrayBuffer.isView||function(e){return e&&-1<U.indexOf(Object.prototype.toString.call(e))}),c.prototype.append=function(e,t){e=Q(e),t=ee(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[Q(e)]},c.prototype.get=function(e){return e=Q(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(Q(e))},c.prototype.set=function(e,t){this.map[Q(e)]=ee(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),te(n)},c.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),te(t)},c.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),te(n)},K&&(c.prototype[Symbol.iterator]=c.prototype.entries);var oe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function le(e,t){if(!(this instanceof le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,a=(t=t||{}).body;if(e instanceof le){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<oe.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function be(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function ve(e,t){if(!(this instanceof ve))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 c(t.headers),this.url=t.url||"",this._initBody(e)}le.prototype.clone=function(){return new le(this,{body:this._bodyInit})},se.call(le.prototype),se.call(ve.prototype),ve.prototype.clone=function(){return new ve(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},ve.error=function(){var e=new ve(null,{status:0,statusText:""});return e.type="error",e};var we=[301,302,303,307,308],$e=(ve.redirect=function(e,t){if(-1===we.indexOf(t))throw new RangeError("Invalid status code");return new ve(null,{status:t,headers:{location:e}})},o.DOMException);try{new $e}catch(W){($e=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),$e.prototype.constructor=$e}function xe(a,s){return new Promise(function(r,e){var t=new le(a,s);if(t.signal&&t.signal.aborted)return e(new $e("Aborted","AbortError"));var i=new XMLHttpRequest;function n(){i.abort()}i.onload=function(){var e,n,t={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",n=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)},a=(t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL"),"response"in i?i.response:i.responseText);setTimeout(function(){r(new ve(a,t))},0)},i.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){e(new $e("Aborted","AbortError"))},0)},i.open(t.method,function(t){try{return""===t&&o.location.href?o.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?i.withCredentials=!0:"omit"===t.credentials&&(i.withCredentials=!1),"responseType"in i&&(X?i.responseType="blob":q&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof c?t.headers.forEach(function(e,t){i.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){i.setRequestHeader(e,ee(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),i.onreadystatechange=function(){4===i.readyState&&t.signal.removeEventListener("abort",n)}),i.send(void 0===t._bodyInit?null:t._bodyInit)})}function Ln(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}xe.polyfill=!0,o.fetch||(o.fetch=xe,o.Headers=c,o.Request=le,o.Response=ve),self.fetch.bind(self);var Se=function(e,t){return(Se=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 Ce(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}Se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ke(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&a>=e.length?void 0:e)&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Te(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function Ge(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||((a=a||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Me(e){return"function"==typeof e}function Ee(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 Le=Ee(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 Pe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}Ie.prototype.unsubscribe=function(){var e,t,n,a,r;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ke(i),o=s.next();!o.done;o=s.next())o.value.remove(this)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);i=this.initialTeardown;if(Me(i))try{i()}catch(e){r=e instanceof Le?e.errors:[e]}i=this._finalizers;if(i){this._finalizers=null;try{for(var l=ke(i),c=l.next();!c.done;c=l.next()){var d=c.value;try{Oe(d)}catch(e){r=null!=r?r:[],e instanceof Le?r=Ge(Ge([],Te(r)),Te(e.errors)):r.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}}if(r)throw new Le(r)}},Ie.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Oe(e);else{if(e instanceof Ie){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Ie.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ie.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ie.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Pe(t,e)},Ie.prototype.remove=function(e){var t=this._finalizers;t&&Pe(t,e),e instanceof Ie&&e._removeParent(this)},Ie.EMPTY=((a=new Ie).closed=!0,a);var Fe=Ie,Re=Fe.EMPTY;function Ie(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ae(e){return e instanceof Fe||e&&"closed"in e&&Me(e.remove)&&Me(e.add)&&Me(e.unsubscribe)}function Oe(e){Me(e)?e():e.unsubscribe()}var Ne=void 0,De=!1,Be=!1,He={setTimeout:function(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var r=He.delegate;return null!=r&&r.setTimeout?r.setTimeout.apply(r,Ge([e,t],Te(n))):setTimeout.apply(void 0,Ge([e,t],Te(n)))},clearTimeout:function(e){var t=He.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function je(){}var Ke=null;function Xe(e){if(De){var t=!Ke;if(t&&(Ke={errorThrown:!1,error:null}),e(),t){var t=Ke,n=t.errorThrown,t=t.error;if(Ke=null,n)throw t}}else e()}Ce(et,Je=Fe),et.create=function(e,t,n){return new rt(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,Je.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()}};var Je,qe=et,Qe=Function.prototype.bind;function et(e){var t=Je.call(this)||this;return t.isStopped=!1,e?Ae(t.destination=e)&&e.add(t):t.destination=lt,t}function tt(e,t){return Qe.call(e,t)}st.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ot(e)}},st.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ot(e)}else ot(e)},st.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ot(e)}};var nt,at=st,rt=(Ce(it,nt=qe),it);function it(e,t,n){var a=nt.call(this)||this,n=Me(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:a&&Be?((t=Object.create(e)).unsubscribe=function(){return a.unsubscribe()},{next:e.next&&tt(e.next,t),error:e.error&&tt(e.error,t),complete:e.complete&&tt(e.complete,t)}):e;return a.destination=new at(n),a}function st(e){this.partialObserver=e}function ot(e){var t=e;He.setTimeout(function(){throw t})}var lt={closed:!0,next:je,error:function(e){throw e},complete:je},a="function"==typeof Symbol&&Symbol.observable||"@@observable";function ct(e){return e}ut.prototype.lift=function(e){var t=new ut;return t.source=this,t.operator=e,t},ut.prototype.subscribe=function(e,t,n){var a,r=this,i=(a=e)&&a instanceof qe||a&&Me(a.next)&&Me(a.error)&&Me(a.complete)&&Ae(a)?e:new rt(e,t,n);return Xe(function(){var e=r.operator,t=r.source;i.add(e?e.call(i,t):t?r._subscribe(i):r._trySubscribe(i))}),i},ut.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},ut.prototype.forEach=function(a,e){var r=this;return new(e=mt(e))(function(e,t){var n=new rt({next:function(e){try{a(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});r.subscribe(n)})},ut.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},ut.prototype[a]=function(){return this},ut.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?ct:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},ut.prototype.toPromise=function(e){var a=this;return new(e=mt(e))(function(e,t){var n;a.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},ut.create=function(e){return new ut(e)};var dt=ut;function ut(e){e&&(this._subscribe=e)}function mt(e){return null!=(e=null!=e?e:Ne)?e:Promise}var ht,gt,pt,ft=Ee(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),a=(Ce(r,pt=dt),r.prototype.lift=function(e){var t=new yt(this,this);return t.operator=e,t},r.prototype._throwIfClosed=function(){if(this.closed)throw new ft},r.prototype.next=function(r){var i=this;Xe(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=ke(i.currentObservers),a=n.next();!a.done;a=n.next())a.value.next(r)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},r.prototype.error=function(t){var n=this;Xe(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)}})},r.prototype.complete=function(){var t=this;Xe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),pt.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,a=this.isStopped,r=this.observers;return n||a?Re:(this.currentObservers=null,r.push(e),new Fe(function(){t.currentObservers=null,Pe(r,e)}))},r.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,a=this.isStopped;t?e.error(n):a&&e.complete()},r.prototype.asObservable=function(){var e=new dt;return e.source=this,e},r.create=function(e,t){return new yt(e,t)},r),yt=(Ce($t,gt=a),$t.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},$t.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},$t.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},$t.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Re},$t),bt={now:function(){return(bt.delegate||Date).now()},delegate:void 0},vt=(Ce(wt,ht=a),wt.prototype.next=function(e){var t=this,n=t.isStopped,a=t._buffer,r=t._infiniteTimeWindow,i=t._timestampProvider,t=t._windowTime;n||(a.push(e),r||a.push(i.now()+t)),this._trimBuffer(),ht.prototype.next.call(this,e)},wt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,a=this._buffer.slice(),r=0;r<a.length&&!e.closed;r+=n?1:2)e.next(a[r]);return this._checkFinalizedStatuses(e),t},wt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,a=this._infiniteTimeWindow,r=(a?1:2)*e;if(e<1/0&&r<n.length&&n.splice(0,n.length-r),!a){for(var i=t.now(),s=0,o=1;o<n.length&&n[o]<=i;o+=2)s=o;s&&n.splice(0,s+1)}},wt);function wt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=bt);var a=ht.call(this)||this;return a._bufferSize=e,a._windowTime=t,a._timestampProvider=n,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=t===1/0,a._bufferSize=Math.max(1,e),a._windowTime=Math.max(1,t),a}function $t(e,t){var n=gt.call(this)||this;return n.destination=e,n.source=t,n}function r(){var e=pt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let xt=[],St={};const _t=[];function Ct(a,r=W){let i;const s=new Set;function o(e){if(t(a,e)&&(a=e,i)){const e=!_t.length;for(const e of s)e[1](),_t.push(e,a);if(e){for(let e=0;e<_t.length;e+=2)_t[e][0](_t[e+1]);_t.length=0}}}return{set:o,update:function(e){o(e(a))},subscribe:function(e,t=W){const n=[e,t];return s.add(n),1===s.size&&(i=r(o)||W),e(a),()=>{s.delete(n),0===s.size&&(i(),i=null)}}}}function kt(e,o,t){const l=!Array.isArray(e),c=l?[e]:e,d=o.length<2;return{subscribe:Ct(t,t=>{let n=!1;const a=[];let r=0,i=W;const s=()=>{var e;r||(i(),e=o(l?a[0]:a,t),d?t(e):i=T(e)?e:W)},e=c.map((e,t)=>u(e,e=>{a[t]=e,r&=~(1<<t),n&&s()},()=>{r|=1<<t}));return n=!0,s(),function(){V(e),i()}}).subscribe}}function Tt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===Gt));var t}var Gt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Mt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Rt(Array.isArray(e)?[]:{},e,t):e}function Et(e,t,n){return e.concat(t).map(function(e){return Mt(e,n)})}function Lt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Pt(e,t){try{return t in e}catch(e){return!1}}function Ft(a,r,i){var s={};return i.isMergeableObject(a)&&Lt(a).forEach(function(e){s[e]=Mt(a[e],i)}),Lt(r).forEach(function(t){var e,n;(!Pt(e=a,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(Pt(a,t)&&i.isMergeableObject(r[t])?s[t]=function(e){if(!e.customMerge)return Rt;e=e.customMerge(t);return"function"==typeof e?e:Rt}(i)(a[t],r[t],i):s[t]=Mt(r[t],i))}),s}function Rt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Et,n.isMergeableObject=n.isMergeableObject||Tt,n.cloneUnlessOtherwiseSpecified=Mt;var a=Array.isArray(t);return a===Array.isArray(e)?a?n.arrayMerge(e,t,n):Ft(e,t,n):Mt(t,n)}Rt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Rt(e,t,n)},{});throw new Error("first argument should be an array")};var It=Rt,At=function(e,t){return(At=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 Ot(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}At(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p,y,Nt,b=function(){return(b=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Dt(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||((a=a||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Bt(e){return e.type===y.literal}function Ht(e){return e.type===y.number}function jt(e){return e.type===y.date}function Ut(e){return e.type===y.time}function Yt(e){return e.type===y.select}function Wt(e){return e.type===y.plural}function zt(e){return e.type===y.tag}function Vt(e){return e&&"object"==typeof e&&e.type===Nt.number}function Zt(e){return e&&"object"==typeof e&&e.type===Nt.dateTime}(a=p=p||{})[a.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",a[a.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",a[a.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",a[a.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",a[a.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",a[a.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",a[a.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",a[a.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",a[a.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",a[a.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",a[a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",a[a.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",a[a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",a[a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",a[a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",a[a.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",a[a.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",a[a.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",a[a.INVALID_TAG=23]="INVALID_TAG",a[a.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",a[a.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",a[a.UNCLOSED_TAG=27]="UNCLOSED_TAG",(a=y=y||{})[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound",a[a.tag=8]="tag",(a=Nt=Nt||{})[a.number=0]="number",a[a.dateTime=1]="dateTime";var a=/[ \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 Xt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,qt=/^(@+)?(\+|#+)?[rs]?$/g,Qt=/(\*)(0+)|(#+)(0+)|(0+)/g,en=/^(0+)$/;function tn(e){var a={};return"r"===e[e.length-1]?a.roundingPriority="morePrecision":"s"===e[e.length-1]&&(a.roundingPriority="lessPrecision"),e.replace(qt,function(e,t,n){return"string"!=typeof n?(a.minimumSignificantDigits=t.length,a.maximumSignificantDigits=t.length):"+"===n?a.minimumSignificantDigits=t.length:"#"===t[0]?a.maximumSignificantDigits=t.length:(a.minimumSignificantDigits=t.length,a.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),a}function nn(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 nn(e)||{}}function rn(e){for(var s={},t=0,n=e;t<n.length;t++){var a,r=n[t];switch(r.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=r.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=b(b(b({},s),{notation:"scientific"}),r.options.reduce(function(e,t){return b(b({},e),an(t))},{}));continue;case"engineering":s=b(b(b({},s),{notation:"engineering"}),r.options.reduce(function(e,t){return b(b({},e),an(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(r.options[0]);continue;case"integer-width":if(1<r.options.length)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Qt,function(e,t,n,a,r,i){if(t)s.minimumIntegerDigits=n.length;else{if(a&&r)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(en.test(r.stem))s.minimumIntegerDigits=r.stem.length;else if(Jt.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Jt,function(e,t,n,a,r,i){return"*"===n?s.minimumFractionDigits=t.length:a&&"#"===a[0]?s.maximumFractionDigits=a.length:r&&i?(s.minimumFractionDigits=r.length,s.maximumFractionDigits=r.length+i.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var i=r.options[0];"w"===i?s=b(b({},s),{trailingZeroDisplay:"stripIfInteger"}):i&&(s=b(b({},s),tn(i)))}else qt.test(r.stem)?s=b(b({},s),tn(r.stem)):((i=nn(r.stem))&&(s=b(b({},s),i)),(a=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)),!en.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem))&&(s=b(b({},s),a)))}return s}var sn={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 on=new RegExp("^".concat(a.source,"*")),ln=new RegExp("".concat(a.source,"*$"));function v(e,t){return{start:e,end:t}}var a=!!String.prototype.startsWith,cn=!!String.fromCodePoint,dn=!!Object.fromEntries,un=!!String.prototype.codePointAt,mn=!!String.prototype.trimStart,hn=!!String.prototype.trimEnd,gn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},pn=!0;try{pn="a"===(null==(On=_n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:On[0])}catch(W){pn=!1}var fn,yn,bn=a?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},vn=cn?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,a="",r=e.length,i=0;i<r;){if(1114111<(n=e[i++]))throw RangeError(n+" is not a valid code point");a+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return a},wn=dn?Object.fromEntries:function(e){for(var t={},n=0,a=e;n<a.length;n++){var r=a[n],i=r[0],r=r[1];t[i]=r}return t},$n=un?function(e,t){return e.codePointAt(t)}:function(e,t){var n,a=e.length;if(!(t<0||a<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===a||(a=e.charCodeAt(t+1))<56320||57343<a?n:a-56320+(n-55296<<10)+65536},xn=mn?function(e){return e.trimStart()}:function(e){return e.replace(on,"")},Sn=hn?function(e){return e.trimEnd()}:function(e){return e.replace(ln,"")};function _n(e,t){return new RegExp(e,t)}yn=pn?(fn=_n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return fn.lastIndex=t,null!=(t=fn.exec(e)[1])?t:""}):function(e,t){for(var n,a=[];;){var r=$n(e,t);if(void 0===r||Tn(r)||(33<=(n=r)&&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;a.push(r),t+=65536<=r?2:1}return vn.apply(void 0,a)};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,n){for(var a=[];!this.isEOF();){var r,i=this.char();if(123===i){if((r=this.parseArgument(e,n)).err)return r;a.push(r.val)}else{if(125===i&&0<e)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(p.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&kn(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r;a.push(r.val)}else{if((r=this.parseLiteral(e,t)).err)return r;a.push(r.val)}}else{i=this.clonePosition();this.bump(),a.push({type:y.pound,location:v(i,this.clonePosition())})}}}return{val:a,err:null}},i.prototype.parseTag=function(e,t){var n=this.clonePosition(),a=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(a,"/>"),location:v(n,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()||!kn(this.char()))return this.error(p.INVALID_TAG,v(e,this.clonePosition()));var r=this.clonePosition();return a!==this.parseTagName()?this.error(p.UNMATCHED_CLOSING_TAG,v(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:a,children:t,location:v(n,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,v(e,this.clonePosition())))}return this.error(p.UNCLOSED_TAG,v(n,this.clonePosition()))}return this.error(p.INVALID_TAG,v(n,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 n=this.clonePosition(),a="";;){var r=this.tryParseQuote(t);if(r)a+=r;else{r=this.tryParseUnquoted(e,t);if(r)a+=r;else{r=this.tryParseLeftAngleBracket();if(!r)break;a+=r}}}n=v(n,this.clonePosition());return{val:{type:y.literal,value:a,location:n},err:null}},i.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(kn(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 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)},i.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))},i.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(p.EMPTY_ARGUMENT,v(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(p.MALFORMED_ARGUMENT,v(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:a,location:v(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition())):this.parseArgumentOptions(e,t,a,n);default:return this.error(p.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},i.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:v(e,this.clonePosition())}},i.prototype.parseArgumentOptions=function(e,t,n,a){var r,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(s){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,v(i,o));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(h=Sn(g.val)).length)return this.error(p.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:v(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(a)).err)return c;var d=v(a,this.clonePosition());if(l&&bn(null==l?void 0:l.style,"::",0)){var u=xn(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?g:{val:{type:y.number,value:n,location:d,style:g.val},err:null};if(0===u.length)return this.error(p.EXPECT_DATE_TIME_SKELETON,d);var m=u,h=(this.locale&&(m=function(e,t){for(var n="",a=0;a<e.length;a++){var r=e.charAt(a);if("j"===r){for(var i=0;a+1<e.length&&e.charAt(a+1)===r;)i++,a++;var s=1+(1&i),o=i<2?1:3+(i>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(sn[t||""]||sn[n||""]||sn["".concat(n,"-001")]||sn["001"])[0]}(t);for("H"!=l&&"k"!=l||(o=0);0<o--;)n+="a";for(;0<s--;)n=l+n}else n+="J"===r?"H":r}return n}(u,this.locale)),{type:Nt.dateTime,pattern:m,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},m.replace(Kt,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.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":r.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":r.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":r.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.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":r.minute=["numeric","2-digit"][t-1];break;case"s":r.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":r.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""}),r):{}});return{val:{type:"date"===s?y.date:y.time,value:n,location:d,style:h},err:null}}return{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:n,location:d,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,v(m,b({},m)));this.bumpSpace();var g,h=this.parseIdentifierIfPossible(),d=0;if("select"!==s&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(g=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),h=this.parseIdentifierIfPossible(),d=g.val}l=this.tryParsePluralOrSelectOptions(e,s,t,h);if(l.err)return l;if((c=this.tryParseArgumentClose(a)).err)return c;u=v(a,this.clonePosition());return"select"===s?{val:{type:y.select,value:n,options:wn(l.val),location:u},err:null}:{val:{type:y.plural,value:n,options:wn(l.val),offset:d,pluralType:"plural"===s?"cardinal":"ordinal",location:u},err:null};default:return this.error(p.INVALID_ARGUMENT_TYPE,v(i,o))}},i.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,v(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 n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(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}},i.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,a=e.split(Xt).filter(function(e){return 0<e.length});n<a.length;n++){var r=a[n].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var i=r[0],r=r.slice(1),s=0,o=r;s<o.length;s++)if(0===o[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:r})}return t}(e)}catch(e){return this.error(p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Nt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?rn(n):{}},err:null}},i.prototype.tryParsePluralOrSelectOptions=function(e,t,n,a){for(var r=!1,i=[],s=new Set,o=a.value,l=a.location;;){if(0===o.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=v(c,this.clonePosition()),o=this.message.slice(c.offset,this.offset())}if(s.has(o))return this.error("select"===t?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===o&&(r=!0),this.bumpSpace();d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;var u=this.tryParseArgumentClose(d);if(u.err)return u;i.push([o,{value:c.val,location:v(d,this.clonePosition())}]),s.add(o),this.bumpSpace(),o=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===i.length?this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(p.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:i,err:null}},i.prototype.tryParseDecimalInteger=function(e,t){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;r=!0,i=10*i+(s-48),this.bump()}a=v(a,this.clonePosition());return r?gn(i*=n)?{val:i,err:null}:this.error(t,a):this.error(e,a)},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=$n(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(bn(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()&&Tn(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 Cn=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 kn(e){return 97<=e&&e<=122||65<=e&&e<=90}function Tn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Gn(e,t){t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new Cn(e,t).parse();if(e.err)throw(n=SyntaxError(p[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Yt(e)||Wt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ht(e)&&Vt(e.style)||(jt(e)||Ut(e))&&Zt(e.style)?delete e.style.location:zt(e)&&n(e.children)})}(e.val),e.val}function Mn(e,t){var n=t&&t.cache?t.cache:Nn,a=t&&t.serializer?t.serializer:Rn;return(t&&t.strategy?t.strategy:function(e,t){return Fn(e,this,1===e.length?En:Pn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:a})}function En(e,t,n,a){var n=null==a||"number"==typeof a||"boolean"==typeof a?a:n(a),r=t.get(n);return void 0===r&&(r=e.call(this,a),t.set(n,r)),r}function Pn(e,t,n){var a=Array.prototype.slice.call(arguments,3),n=n(a),r=t.get(n);return void 0===r&&(r=e.apply(this,a),t.set(n,r)),r}function Fn(e,t,n,a,r){return n.bind(t,e,a,r)}var Rn=function(){return JSON.stringify(arguments)};function In(){this.cache=Object.create(null)}In.prototype.get=function(e){return this.cache[e]},In.prototype.set=function(e,t){this.cache[e]=t};var An,On,Nn={create:function(){return new In}},Dn={variadic:function(e,t){return Fn(e,this,Pn,t.cache.create(),t.serializer)},monadic:function(e,t){return Fn(e,this,En,t.cache.create(),t.serializer)}};(On=An=An||{}).MISSING_VALUE="MISSING_VALUE",On.INVALID_VALUE="INVALID_VALUE",On.MISSING_INTL_API="MISSING_INTL_API";Ot(Jn,Un=Error),Jn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var w,Bn,Hn,jn,Un,Yn=Jn,Wn=(Ot(Xn,jn=Yn),Xn),zn=(Ot(Kn,Hn=Yn),Kn),Vn=(Ot(Zn,Bn=Yn),Zn);function Zn(e,t){return Bn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),An.MISSING_VALUE,t)||this}function Kn(e,t,n){return Hn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),An.INVALID_VALUE,n)||this}function Xn(e,t,n,a){return jn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),An.INVALID_VALUE,a)||this}function Jn(e,t,n){e=Un.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function qn(e,t,n,a,r,i,s){if(1===e.length&&Bt(e[0]))return[{type:w.literal,value:e[0].value}];for(var o=[],l=0,c=e;l<c.length;l++){var d=c[l];if(Bt(d))o.push({type:w.literal,value:d.value});else if(d.type===y.pound)"number"==typeof i&&o.push({type:w.literal,value:n.getNumberFormat(t).format(i)});else{var u=d.value;if(!(r&&u in r))throw new Vn(u,s);u=r[u];if(d.type===y.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),o.push({type:"string"==typeof u?w.literal:w.object,value:u});else if(jt(d)){var m="string"==typeof d.style?a.date[d.style]:Zt(d.style)?d.style.parsedOptions:void 0;o.push({type:w.literal,value:n.getDateTimeFormat(t,m).format(u)})}else if(Ut(d))m="string"==typeof d.style?a.time[d.style]:Zt(d.style)?d.style.parsedOptions:a.time.medium,o.push({type:w.literal,value:n.getDateTimeFormat(t,m).format(u)});else if(Ht(d))(m="string"==typeof d.style?a.number[d.style]:Vt(d.style)?d.style.parsedOptions:void 0)&&m.scale&&(u*=m.scale||1),o.push({type:w.literal,value:n.getNumberFormat(t,m).format(u)});else{if(zt(d)){var h=d.children,g=d.value,p=r[g];if("function"!=typeof p)throw new zn(g,"function",s);g=p(qn(h,t,n,a,r,i).map(function(e){return e.value}));Array.isArray(g)||(g=[g]),o.push.apply(o,g.map(function(e){return{type:"string"==typeof e?w.literal:w.object,value:e}}))}if(Yt(d)){if(!(f=d.options[u]||d.options.other))throw new Wn(d.value,u,Object.keys(d.options),s);o.push.apply(o,qn(f.value,t,n,a,r))}else if(Wt(d)){if(!(f=d.options["=".concat(u)])){if(!Intl.PluralRules)throw new Yn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',An.MISSING_INTL_API,s);var p=n.getPluralRules(t,{type:d.pluralType}).select(u-(d.offset||0)),f=d.options[p]||d.options.other}if(!f)throw new Wn(d.value,u,Object.keys(d.options),s);o.push.apply(o,qn(f.value,t,n,a,r,u-(d.offset||0)))}}}}return(e=o).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===w.literal&&t.type===w.literal?n.value+=t.value:e.push(t),e},[])}function Qn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(a=w=w||{})[a.literal=0]="literal",a[a.object=1]="object",Object.defineProperty(d,"defaultLocale",{get:function(){return d.memoizedDefaultLocale||(d.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),d.memoizedDefaultLocale},enumerable:!1,configurable:!0}),d.memoizedDefaultLocale=null,d.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])},d.__parse=Gn,d.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 ea=d;function d(e,t,n,a){var r,i,s=this;if(void 0===t&&(t=d.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===w.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(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=d.resolveLocale(t),"string"==typeof e){if(this.message=e,!d.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=d.__parse(e,{ignoreTag:null==a?void 0:a.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=(r=d.formats,(i=n)?Object.keys(r).reduce(function(e,t){var n,a;return e[t]=(n=r[t],(a=i[t])?b(b(b({},n||{}),a||{}),Object.keys(n).reduce(function(e,t){return e[t]=b(b({},n[t]),a[t]||{}),e},{})):n),e},b({},r)):r),this.formatters=a&&a.formatters||{getNumberFormat:Mn(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,!1)))},{cache:Qn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Dn.variadic}),getDateTimeFormat:Mn(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,!1)))},{cache:Qn(t.dateTime),strategy:Dn.variadic}),getPluralRules:Mn(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,!1)))},{cache:Qn(t.pluralRules),strategy:Dn.variadic})}}const ta={},na=(e,t,n)=>n&&(t in ta||(ta[t]={}),e in ta[t]||(ta[t][e]=n),n),aa=(t,n)=>{if(null!=n){if(n in ta&&t in ta[n])return ta[n][t];var a=va(n);for(let e=0;e<a.length;e++){var r=function(e,n){if(!sa(e))return null;e=function(e){return ra[e]||null}(e);{var a=n;if(null==a)return;if(a in e)return e[a];const r=a.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const a=r.slice(e,r.length).join(".");if(a in t){t=t[a];break}}t=t[r[e]]}else t=void 0;return t}}(a[e],t);if(r)return na(t,n,r)}}};let ra;const ia=Ct({});function sa(e){return e in ra}function oa(t,...n){delete ta[t],ia.update(e=>(e[t]=It.all([e[t]||{},...n]),e))}kt([ia],([e])=>Object.keys(e)),ia.subscribe(e=>ra=e);const la={};function ca(e){return la[e]}function da(e){return null!=e&&va(e).some(e=>{return null==(e=ca(e))?void 0:e.size})}const ua={};function ma(e){if(!da(e))return e in ua?ua[e]:Promise.resolve();const t=va(e).map(e=>{var t=ca(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return ua[e]=Promise.all(t.map(([e,t])=>{{var a=e;e=t;const n=Promise.all(e.map(e=>{var t=a,n=e;return la[t].delete(n),0===la[t].size&&delete la[t],e().then(e=>e.default||e)}));return n.then(e=>oa(a,...e))}})).then(()=>{if(da(e))return ma(e);delete ua[e]}),ua[e]}function ha(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}const ga={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 pa=Ct(!1);let fa;const ya=Ct(null);function ba(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function va(e,t=ga.fallbackLocale){e=ba(e);return t?[...new Set([...e,...ba(t)])]:e}function wa(){return null!=fa?fa:void 0}ya.subscribe(e=>{fa=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const Ye=Object.assign(Object.assign({},ya),{set:t=>{if(t&&function(e){if(null!=e){var t=va(e);for(let e=0;e<t.length;e++){var n=t[e];if(sa(n))return n}}}(t)&&da(t)){var n=ga["loadingDelay"];let e;return"undefined"!=typeof window&&null!=wa()&&n?e=window.setTimeout(()=>pa.set(!0),n):pa.set(!0),ma(t).then(()=>{ya.set(t)}).finally(()=>{clearTimeout(e),pa.set(!1)})}return ya.set(t)}}),$a=n=>{const a=Object.create(null);return e=>{var t=JSON.stringify(e);return t in a?a[t]:a[t]=n(e)}},xa=(e,t)=>{var n=ga["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Sa=$a(e=>{var{locale:t,format:n}=e,e=ha(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=xa("number",n)),new Intl.NumberFormat(t,e)}),_a=$a(e=>{var{locale:t,format:n}=e,e=ha(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=xa("date",n):0===Object.keys(e).length&&(e=xa("date","short")),new Intl.DateTimeFormat(t,e)}),Ca=$a(e=>{var{locale:t,format:n}=e,e=ha(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=xa("time",n):0===Object.keys(e).length&&(e=xa("time","short")),new Intl.DateTimeFormat(t,e)}),ka=$a((e,t=wa())=>new ea(e,t,ga.formats,{ignoreTag:ga.ignoreTag})),Ta=kt([Ye,ia],()=>(e,t={})=>{var n,a;let r=t;"object"==typeof e&&(e=(r=e).id);var{values:i,locale:s=wa(),default:o}=r;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=aa(e,s);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!=(a=null!=(n=null==(n=(a=ga).handleMissingMessage)?void 0:n.call(a,{locale:s,id:e,defaultValue:o}))?n:o)?a:e;if(!i)return l;let c=l;try{c=ka(l,s).format(i)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),We=(kt([Ye],()=>(e,t)=>((e={})=>{var{locale:t=wa()}=e,e=ha(e,["locale"]);return Ca(Object.assign({locale:t},e))})(t).format(e)),kt([Ye],()=>(e,t)=>((e={})=>{var{locale:t=wa()}=e,e=ha(e,["locale"]);return _a(Object.assign({locale:t},e))})(t).format(e)),kt([Ye],()=>(e,t)=>((e={})=>{var{locale:t=wa()}=e,e=ha(e,["locale"]);return Sa(Object.assign({locale:t},e))})(t).format(e)),kt([Ye,ia],()=>(e,t=wa())=>aa(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==xt.indexOf(e)&&(t=new vt(t),St[e]=t,xt.push(e)),St[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))),ze=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Ga(e,t){oa(e,t)}const Ma={en:{casinoPage:{500:"500 Error - Internal Server Error",search:"Search",loading:"Loading",searchMobile:"Search",break:"Take 1 day break from playing",breakButton:"Hold button for 3 seconds to take 24-hours instant lock",searchGames:"Search casino games",filters:"Filters",clear:"Clear",noGamesPlayed:"You have no games played!"}},zh:{casinoPage:{500:"500 錯誤 - 內部服務器錯誤",search:"搜索",loading:"正在加載",searchMobile:"搜索",break:"休息 1 天",breakButton:"24 小時冷卻",searchGames:"搜索賭場遊戲",filters:"過濾器",clear:"清除",noGamesPlayed:"你沒有玩過遊戲!"}},de:{casinoPage:{500:"500-Fehler – Interner Serverfehler",search:"Suche",loading:"Loading",searchMobile:"Suche",break:"Mach mal einen Tag Pause!",breakButton:"Für 24 Std. Games Sofortpause, 3 Sekunden drücken",searchGames:"Casinospiele suchen",filters:"Filter",clear:"Zurücksetzen",noGamesPlayed:"Sie haben keine Spiele gespielt!"}},it:{casinoPage:{500:"Errore 500 - Errore interno del server",search:"Cerca",loading:"Loading",searchMobile:"Cerca",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Cerca giochi da casinò",filters:"Filtri",clear:"Azzera",noGamesPlayed:"Non hai giochi giocati!"}},fr:{casinoPage:{500:"Erreur - erreur de serveur interne",search:"Recherche",loading:"Chargement",searchMobile:"Recherche",break:"Faire une pause d'un jour dans le jeu ",breakButton:"Refroidissement de 24 heures",searchGames:"Recherche de jeux de casino",filters:"Filtres",clear:"Clair",noGamesPlayed:"Vous n'avez aucune partie jouée"}},es:{casinoPage:{500:"500 Error - Error Servidor Interno",search:"Buscar ...",loading:"Cargando ...",searchMobile:"Buscar",break:"Tomar 1 día de descanso de juego",breakButton:"Dar clic durante 3 segundos para bloquear instantaneamente tu cuenta por 24 horas",searchGames:"Buscar juegos de casino",filters:"Filtros",clear:"Borrar",noGamesPlayed:"No has jugado ningún juego! Juega Ya"}},tr:{casinoPage:{500:"500 Hatası - Dahili Sunucu Hatası",search:"Oyun ara ...",loading:"Yükleniyor ...",searchMobile:"Arama",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Casino oyunları ara",filters:"Filtreler",clear:"Temizlemek",noGamesPlayed:"Oynadığın oyun yok!"}},ru:{casinoPage:{500:"Ошибка 500 — внутренняя ошибка сервера",search:"Искать игры ...",loading:"Загрузка ...",searchMobile:"Поиск",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Поиск игр казино",filters:"Фильтры",clear:"Прозрачный",noGamesPlayed:"У вас нет сыгранных игр!"}},ro:{casinoPage:{500:"500 Error - Internal Server Error",search:"Cautare jocuri...",loading:"Se incarca ...",searchMobile:"Cauta",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Cauta jocuri de casino",filters:"Filtrare",clear:"Sterge",noGamesPlayed:"Nu ai jucat niciun joc!"}},hr:{casinoPage:{500:"500 Error - Internal Server Error",search:"Pretraži",loading:"Učitavanje",searchMobile:"Pretraži",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Traži casino igre",filters:"Filtri",clear:"Resetiraj",noGamesPlayed:"Niste igrali nijednu igru!"}},hu:{casinoPage:{500:"500 Error - Internal Server Error",search:"Keresés",loading:"betöltés",searchMobile:"Keresés",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Kaszinó játékok keresése",filters:"Szűrők",clear:"Visszaállítás",noGamesPlayed:"Nincsenek lejátszott játékok!"}},pl:{casinoPage:{500:"500 Error - Internal Server Error",search:"Szukaj",loading:"Ładowanie",searchMobile:"Szukaj",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Wyszukaj gry kasynowe",filters:"Filtry",clear:"Przywróć",noGamesPlayed:"Nie grałeś w żadne gry!"}},pt:{casinoPage:{500:"Erro 500 - Erro interno do servidor",search:"Procurar ...",loading:"Carregando ...",searchMobile:"Procurar",break:"Faça uma pausa de 1 dia no jogo",breakButton:"Faça uma pausa de 24 horas no jogo",searchGames:"Pesquisar jogos de cassino",filters:"Filtros",clear:"Limpar",noGamesPlayed:"Você não experimentou nenhum jogo!"}},sl:{casinoPage:{500:"500 Error - Internal Server Error",search:"Iskanje",loading:"Loading",searchMobile:"Iskanje",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Search casino games",filters:"Filters",clear:"Ponastavitev",noGamesPlayed:"You have no games played!"}},sr:{casinoPage:{500:"500 Error - Internal Server Error",search:"Pretraži",loading:"Loading",searchMobile:"Pretraži",break:"Take 1 day break from playing",breakButton:"24-hour Cool Off",searchGames:"Search casino games",filters:"Filters",clear:"Resetuj",noGamesPlayed:"You have no games played!"}}};function Ea(e,t){oa(e,t)}const La={en:{gamesCategorySection:{showMore:"More",viewAll:"Show all",searchedItems:"Search result",recentSearchedItems:"Recently searched",favorites:"Favorites",noRecentSearch:"No search started yet. Simply search for a game.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavorites:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting"}},zh:{gamesCategorySection:{showMore:"更多的",viewAll:"顯示所有",searchedItems:"搜索結果",recentSearchedItems:"最近搜索過",favorites:"收藏夹",noRecentSearch:"尚未開始搜索。 只需搜索遊戲。",noResults:"抱歉,沒有找到結果。 請再試一次。",noFavoritesMobile:"您現在可以通過點擊遊戲頁面上的星形圖標將游戲添加到收藏夾。",noFavorites:"您現在可以通過單擊遊戲縮略圖上的星形圖標將游戲添加到收藏夾。",noFavoritesTitle:"您還沒有任何喜歡的遊戲。",waiting:"等待"}},de:{gamesCategorySection:{showMore:"Mehr",viewAll:"Alle anzeigen",searchedItems:"Ergebnis suchen",recentSearchedItems:"Zuletzt gesucht",noRecentSearch:"Noch keine Suche gestartet. Einfach nach einem Spiel suchen.",noResults:"Sorry, kein Treffer. Bitte erneut versuchen.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Klicke auf das Sternsymbol in der oberen rechten Ecke eines Spiels, um es als Favorit zu speichern.",noFavorites:"Klicke auf das Sternsymbol in der oberen rechten Ecke eines Spiels, um es als Favorit zu speichern.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting"}},it:{gamesCategorySection:{showMore:"Altro",viewAll:"Mostra tutto",searchedItems:"risultato",recentSearchedItems:"Ricerche recenti",noRecentSearch:"Non sono ancora state avviate ricerche. Esegui semplicemente la ricerca per un gioco.",noResults:"Spiacenti, nessun risultato. Si prega di riprovare."}},fr:{gamesCategorySection:{showMore:"Plus de",viewAll:"Afficher tous",searchedItems:"Recherche du resultat",recentSearchedItems:"Recherches récentes",favorites:"Favoris",noRecentSearch:"Aucune recherche n'a encore été lancée . il suffit de chercher un jeu.",noResults:"Désolé , aucun résultat trouvé.veuillez réessayer.",noFavoritesMobile:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone étoile située sur la page du jeu.",noFavorites:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone en forme d'etoile située sur la vignette du jeu",noFavoritesTitle:"Vous n'avez pas encore de jeux favoris.",waiting:"Attente"}},es:{gamesCategorySection:{showMore:"Más",viewAll:"Mostrar todas",searchedItems:"Resultado de busqueda",recentSearchedItems:"Buscado recientemente",favorites:"Favoritos",noRecentSearch:"Aún no inicia busqueda. Solo busque un juego",noResults:"Disculpe",noFavoritesMobile:"Ahora puede agregar juegos a sus Favoritos dando clic al ícono de estrella en esta página",noFavorites:"Ahora puede agregar juegos a sus Favoritos dando click al ícono de la miniatura del juego.",noFavoritesTitle:"No tiene juegos Favoritos aún",waiting:"Cargando"}},tr:{gamesCategorySection:{showMore:"Daha fazla göster",viewAll:"Hepsini gör",searchedItems:"Aranan öğeler",recentSearchedItems:"Son Aranan Öğeler",noRecentSearch:"Henüz arama başlamadı. Sadece bir oyun arayın.",noResults:"Üzgünüz, sonuç bulunamadı. Lütfen tekrar deneyin"}},ru:{gamesCategorySection:{showMore:"Показать больше",viewAll:"Посмотреть все",searchedItems:"Искомые товары",recentSearchedItems:"Недавние поисковые запросы",noRecentSearch:"Поиск еще не начался. Просто найдите игру.",noResults:"Извините, результатов не найдено. Пожалуйста, попробуйте еще раз"}},ro:{gamesCategorySection:{showMore:"Arata mai mult",viewAll:"Vezi toate",searchedItems:"Rezultatele cautarii",recentSearchedItems:"Cautari recente",favorites:"Favorite",noRecentSearch:"Nici o căutare nu a început încă. Pur și simplu căutați un joc.",noResults:"Ne pare rau, nu s-au gasit rezultate. Va rugam sa incercati din nou",noFavoritesMobile:"Acum puteți adăuga jocuri la favorite atingând pictograma stea situată pe pagina jocului.",noFavorites:"Acum puteți adăuga jocuri la favorite făcând clic pe pictograma stea situată pe miniatura jocului.",noFavoritesTitle:"Nu aveți încă niciun joc preferat.",waiting:"Aşteptare"}},hr:{gamesCategorySection:{showMore:"Više",viewAll:"Pokaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnje pretrage",noRecentSearch:"Pretraživanje nije pokrenuto. Jednostavno potražite željenu igru.",noResults:"Žao nam je, nema rezultata. Molimo pokušajte ponovno."}},hu:{gamesCategorySection:{showMore:"Több",viewAll:"Az összes megjelenítése",searchedItems:"Keresés eredménye",recentSearchedItems:"Legutóbb keresett",noRecentSearch:"A keresés még nem kezdődött el. Egyszerűen keressen egy játékot.",noResults:"Sajnos nincs találat. Kérjük próbálja újra."}},pl:{gamesCategorySection:{showMore:"Więcej",viewAll:"Pokaż wszystkie",searchedItems:"Wynik wyszukiwania",recentSearchedItems:"Ostatnio wyszukiwane",noRecentSearch:"Nie rozpoczęto wyszukiwania. W prosty sposób wyszukaj grę.",noResults:"Przepraszamy, brak wyników. Prosimy spróbować ponownie."}},pt:{gamesCategorySection:{showMore:"Mais",viewAll:"Mostre tudo",searchedItems:"Resultado da pesquisa",recentSearchedItems:"Pesquisado recentemente",favorites:"Favorito",noRecentSearch:"Nenhuma pesquisa foi iniciada ainda. Simplesmente procure por um jogo.",noResults:"Desculpe, nenhum resultado encontrado. Por favor, tente novamente.",noFavoritesMobile:"Agora você pode adicionar jogos aos favoritos tocando no ícone da estrela localizado na página do jogo.",noFavorites:"Agora você pode adicionar jogos aos favoritos clicando no ícone da estrela localizado na miniatura do jogo.",noFavoritesTitle:"Você ainda não tem nenhum jogo favorito.",waiting:"Aguardando"}},sl:{gamesCategorySection:{showMore:"Več",viewAll:"Prikaži vse",searchedItems:"Rezultati iskanja",recentSearchedItems:"Nedavno iskanje",noRecentSearch:"Niste še začeli z iskanjem. Enostavno poiščite želeno igro.",noResults:"Oprostite, ni rezultata. Prosimo poizkusite ponovno."}},sr:{gamesCategorySection:{showMore:"Više",viewAll:"Prikaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnja pretraga",noRecentSearch:"Još nije pokrenuta pretraga. Jednostavno pretraži igre.",noResults:"Žao nam je, nema pogodaka. Pokušaj ponovo."}}};Fa=Pa={path:void 0,exports:{},require:function(e,t){return Ln(null==t&&Pa.path)}},Pa.exports,Fa.exports=function(){var A;function g(){return A.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function O(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function N(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function o(e){return void 0===e}function D(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function B(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function H(e,t){for(var n=[],a=e.length,r=0;r<a;++r)n.push(t(e[r],r));return n}function j(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,a){return Lt(e,t,n,a,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function U(e){if(null==e._isValid){var t=f(e),n=W.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function Y(e){var t=c(NaN);return null!=e?j(f(t),e):f(t).userInvalidated=!0,t}var W=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,a=0;a<n;a++)if(a in t&&e.call(this,t[a],a,t))return!0;return!1},z=g.momentProperties=[],V=!1;function Z(e,t){var n,a,r,i=z.length;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=f(t)),o(t._locale)||(e._locale=t._locale),0<i)for(n=0;n<i;n++)o(r=t[a=z[n]])||(e[a]=r);return e}function K(e){Z(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,g.updateOffset(this),V=!1)}function l(e){return e instanceof K||null!=e&&null!=e._isAMomentObject}function X(e){!1===g.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(i,s){var o=!0;return j(function(){if(null!=g.deprecationHandler&&g.deprecationHandler(null,i),o){for(var e,t,n=[],a=arguments.length,r=0;r<a;r++){if(e="","object"==typeof arguments[r]){for(t in e+="\n["+r+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[r];n.push(e)}X(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return s.apply(this,arguments)},s)}var J={};function q(e,t){null!=g.deprecationHandler&&g.deprecationHandler(e,t),J[e]||(X(t),J[e]=!0)}function d(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,a=j({},e);for(n in t)p(t,n)&&(O(e[n])&&O(t[n])?(a[n]={},j(a[n],e[n]),j(a[n],t[n])):null!=t[n]?a[n]=t[n]:delete a[n]);for(n in e)p(e,n)&&!p(t,n)&&O(e[n])&&(a[n]=j({},a[n]));return a}function ee(e){null!=e&&this.set(e)}g.suppressDeprecationWarnings=!1,g.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};function i(e,t,n){var a=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-a.length)).toString().substr(1)+a}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ae=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,re={},ie={};function a(e,t,n,a){var r="string"==typeof a?function(){return this[a]()}:a;e&&(ie[e]=r),t&&(ie[t[0]]=function(){return i(r.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=oe(t,e.localeData()),re[t]=re[t]||function(a){for(var e,r=a.match(ne),t=0,i=r.length;t<i;t++)ie[r[t]]?r[t]=ie[r[t]]:r[t]=(e=r[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<i;n++)t+=d(r[n])?r[n].call(e,a):r[n];return t}}(t),re[t](e)):e.localeData().invalidDate()}function oe(e,t){var n=5;function a(e){return t.longDateFormat(e)||e}for(ae.lastIndex=0;0<=n&&ae.test(e);)e=e.replace(ae,a),ae.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function u(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ce(e){var t,n,a={};for(n in e)p(e,n)&&(t=u(n))&&(a[t]=e[n]);return a}var de={};function n(e,t){de[e]=t}function ue(e){return e%4==0&&e%100!=0||e%400==0}function m(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function h(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?m(e):t}function me(t,n){return function(e){return null!=e?(ge(this,t,e),g.updateOffset(this,n),this):he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ge(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=h(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Re(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var r=/\d/,y=/\d\d/,pe=/\d{3}/,fe=/\d{4}/,ye=/[+-]?\d{6}/,b=/\d\d?/,be=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,we=/\d{1,3}/,$e=/\d{1,4}/,xe=/[+-]?\d{1,6}/,Se=/\d+/,_e=/[+-]?\d+/,Ce=/Z|[+-]\d\d:?\d\d/gi,ke=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function w(e,n,a){Ge[e]=d(n)?n:function(e,t){return e&&a?a:n}}function Te(e,t){return p(Ge,e)?Ge[e](t._strict,t._locale):new RegExp($(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,a,r){return t||n||a||r})))}function $(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ge={},Me={};function x(e,n){var t,a,r=n;for("string"==typeof e&&(e=[e]),D(n)&&(r=function(e,t){t[n]=h(e)}),a=e.length,t=0;t<a;t++)Me[e[t]]=r}function Ee(e,r){x(e,function(e,t,n,a){n._w=n._w||{},r(e,n._w,n,a)})}var S,_=0,C=1,k=2,T=3,G=4,M=5,Le=6,Pe=7,Fe=8;function Re(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?ue(e)?29:28:31-n%7%2}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},a("M",["MM",2],"Mo",function(){return this.month()+1}),a("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),a("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),w("M",b),w("MM",b,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),x(["M","MM"],function(e,t){t[C]=h(e)-1}),x(["MMM","MMMM"],function(e,t,n,a){a=n._locale.monthsParse(e,a,n._strict);null!=a?t[C]=a:f(n).invalidMonth=e});var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ae="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ne=v,De=v;function Be(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=h(t);else if(!D(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Re(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function He(e){return null!=e?(Be(this,e),g.updateOffset(this,!0),this):he(this,"Month")}function je(){function e(e,t){return t.length-e.length}for(var t,n=[],a=[],r=[],i=0;i<12;i++)t=c([2e3,i]),n.push(this.monthsShort(t,"")),a.push(this.months(t,"")),r.push(this.months(t,"")),r.push(this.monthsShort(t,""));for(n.sort(e),a.sort(e),r.sort(e),i=0;i<12;i++)n[i]=$(n[i]),a[i]=$(a[i]);for(i=0;i<24;i++)r[i]=$(r[i]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ue(e){return ue(e)?366:365}a("Y",0,0,function(){var e=this.year();return e<=9999?i(e,4):"+"+e}),a(0,["YY",2],0,function(){return this.year()%100}),a(0,["YYYY",4],0,"year"),a(0,["YYYYY",5],0,"year"),a(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),w("Y",_e),w("YY",b,y),w("YYYY",$e,fe),w("YYYYY",xe,ye),w("YYYYYY",xe,ye),x(["YYYYY","YYYYYY"],_),x("YYYY",function(e,t){t[_]=2===e.length?g.parseTwoDigitYear(e):h(e)}),x("YY",function(e,t){t[_]=g.parseTwoDigitYear(e)}),x("Y",function(e,t){t[_]=parseInt(e,10)}),g.parseTwoDigitYear=function(e){return h(e)+(68<h(e)?1900:2e3)};var Ye=me("FullYear",!0);function We(e,t,n,a,r,i,s){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,a,r,i,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,a,r,i,s),o}function ze(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ve(e,t,n){n=7+t-n;return-(7+ze(e,0,n).getUTCDay()-t)%7+n-1}function Ze(e,t,n,a,r){var i,t=1+7*(t-1)+(7+n-a)%7+Ve(e,a,r),n=t<=0?Ue(i=e-1)+t:t>Ue(e)?(i=e+1,t-Ue(e)):(i=e,t);return{year:i,dayOfYear:n}}function Ke(e,t,n){var a,r,i=Ve(e.year(),t,n),i=Math.floor((e.dayOfYear()-i-1)/7)+1;return i<1?a=i+E(r=e.year()-1,t,n):i>E(e.year(),t,n)?(a=i-E(e.year(),t,n),r=e.year()+1):(r=e.year(),a=i),{week:a,year:r}}function E(e,t,n){var a=Ve(e,t,n),t=Ve(e+1,t,n);return(Ue(e)-a+t)/7}a("w",["ww",2],"wo","week"),a("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),w("w",b),w("ww",b,y),w("W",b),w("WW",b,y),Ee(["w","ww","W","WW"],function(e,t,n,a){t[a.substr(0,1)]=h(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}a("d",0,"do","day"),a("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),a("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),a("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),a("e",0,0,"weekday"),a("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),w("d",b),w("e",b),w("E",b),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Ee(["dd","ddd","dddd"],function(e,t,n,a){a=n._locale.weekdaysParse(e,a,n._strict);null!=a?t.d=a:f(n).invalidWeekday=e}),Ee(["d","e","E"],function(e,t,n,a){t[a]=h(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,nt=v;function at(){function e(e,t){return t.length-e.length}for(var t,n,a,r=[],i=[],s=[],o=[],l=0;l<7;l++)a=c([2e3,1]).day(l),t=$(this.weekdaysMin(a,"")),n=$(this.weekdaysShort(a,"")),a=$(this.weekdays(a,"")),r.push(t),i.push(n),s.push(a),o.push(t),o.push(n),o.push(a);r.sort(e),i.sort(e),s.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function rt(){return this.hours()%12||12}function it(e,t){a(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}a("H",["HH",2],0,"hour"),a("h",["hh",2],0,rt),a("k",["kk",2],0,function(){return this.hours()||24}),a("hmm",0,0,function(){return""+rt.apply(this)+i(this.minutes(),2)}),a("hmmss",0,0,function(){return""+rt.apply(this)+i(this.minutes(),2)+i(this.seconds(),2)}),a("Hmm",0,0,function(){return""+this.hours()+i(this.minutes(),2)}),a("Hmmss",0,0,function(){return""+this.hours()+i(this.minutes(),2)+i(this.seconds(),2)}),it("a",!0),it("A",!1),t("hour","h"),n("hour",13),w("a",st),w("A",st),w("H",b),w("h",b),w("k",b),w("HH",b,y),w("hh",b,y),w("kk",b,y),w("hmm",be),w("hmmss",ve),w("Hmm",be),w("Hmmss",ve),x(["H","HH"],T),x(["k","kk"],function(e,t,n){e=h(e);t[T]=24===e?0:e}),x(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),x(["h","hh"],function(e,t,n){t[T]=h(e),f(n).bigHour=!0}),x("hmm",function(e,t,n){var a=e.length-2;t[T]=h(e.substr(0,a)),t[G]=h(e.substr(a)),f(n).bigHour=!0}),x("hmmss",function(e,t,n){var a=e.length-4,r=e.length-2;t[T]=h(e.substr(0,a)),t[G]=h(e.substr(a,2)),t[M]=h(e.substr(r)),f(n).bigHour=!0}),x("Hmm",function(e,t,n){var a=e.length-2;t[T]=h(e.substr(0,a)),t[G]=h(e.substr(a))}),x("Hmmss",function(e,t,n){var a=e.length-4,r=e.length-2;t[T]=h(e.substr(0,a)),t[G]=h(e.substr(a,2)),t[M]=h(e.substr(r))});v=me("Hours",!0);var ot,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Ae,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},L={},ct={};function dt(e){return e&&e.toLowerCase().replace("_","-")}function ut(e){for(var t,n,a,r,i=0;i<e.length;){for(t=(r=dt(e[i]).split("-")).length,n=(n=dt(e[i+1]))?n.split("-"):null;0<t;){if(a=mt(r.slice(0,t).join("-")))return a;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),a=0;a<n;a+=1)if(e[a]!==t[a])return a;return n}(r,n)>=t-1)break;t--}i++}return ot}function mt(t){var e;if(void 0===L[t]&&Fa&&Fa.exports&&null!=t.match("^[^/\\\\]*$"))try{e=ot._abbr,Ln(),ht(e)}catch(e){L[t]=null}return L[t]}function ht(e,t){return e&&((t=o(t)?P(e):gt(e,t))?ot=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function gt(e,t){if(null===t)return delete L[e],null;var n,a=lt;if(t.abbr=e,null!=L[e])q("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=L[e]._config;else if(null!=t.parentLocale)if(null!=L[t.parentLocale])a=L[t.parentLocale]._config;else{if(null==(n=mt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;a=n._config}return L[e]=new ee(Q(a,t)),ct[e]&&ct[e].forEach(function(e){gt(e.name,e.config)}),ht(e),L[e]}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ot;if(!s(e)){if(t=mt(e))return t;e=[e]}return ut(e)}function pt(e){var t=e._a;return t&&-2===f(e).overflow&&(t=t[C]<0||11<t[C]?C:t[k]<1||t[k]>Re(t[_],t[C])?k:t[T]<0||24<t[T]||24===t[T]&&(0!==t[G]||0!==t[M]||0!==t[Le])?T:t[G]<0||59<t[G]?G:t[M]<0||59<t[M]?M:t[Le]<0||999<t[Le]?Le:-1,f(e)._overflowDayOfYear&&(t<_||k<t)&&(t=k),f(e)._overflowWeeks&&-1===t&&(t=Pe),f(e)._overflowWeekday&&-1===t&&(t=Fe),f(e).overflow=t),e}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$t=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,a,r,i,s,o=e._i,l=ft.exec(o)||yt.exec(o),o=vt.length,c=wt.length;if(l){for(f(e).iso=!0,t=0,n=o;t<n;t++)if(vt[t][1].exec(l[1])){r=vt[t][0],a=!1!==vt[t][2];break}if(null==r)return e._isValid=!1;if(l[3]){for(t=0,n=c;t<n;t++)if(wt[t][1].exec(l[3])){i=(l[2]||" ")+wt[t][0];break}if(null==i)return e._isValid=!1}if(!a&&null!=i)return e._isValid=!1;if(l[4]){if(!bt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=r+(i||"")+(s||""),Mt(e)}else e._isValid=!1}function Ct(e,t,n,a,r,i){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ae.indexOf(t),parseInt(n,10),parseInt(a,10),parseInt(r,10)];return i&&e.push(parseInt(i,10)),e}function kt(e){var t,n,a,r,i=xt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(t=Ct(i[4],i[3],i[2],i[5],i[6],i[7]),n=i[1],a=t,r=e,n&&qe.indexOf(n)!==new Date(a[0],a[1],a[2]).getDay()?(f(r).weekdayMismatch=!0,r._isValid=!1):(e._a=t,e._tzm=(n=i[8],a=i[9],r=i[10],n?St[n]:a?0:((n=parseInt(r,10))-(a=n%100))/100*60+a),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0)):e._isValid=!1}function Tt(e,t,n){return null!=e?e:null!=t?t:n}function Gt(e){var t,n,a,r,i,s,o,l,c,d,u,m=[];if(!e._d){for(d=e,u=new Date(g.now()),n=d._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[k]&&null==e._a[C]&&(null!=(u=(d=e)._w).GG||null!=u.W||null!=u.E?(s=1,o=4,a=Tt(u.GG,d._a[_],Ke(F(),1,4).year),r=Tt(u.W,1),((i=Tt(u.E,1))<1||7<i)&&(l=!0)):(s=d._locale._week.dow,o=d._locale._week.doy,c=Ke(F(),s,o),a=Tt(u.gg,d._a[_],c.year),r=Tt(u.w,c.week),null!=u.d?((i=u.d)<0||6<i)&&(l=!0):null!=u.e?(i=u.e+s,(u.e<0||6<u.e)&&(l=!0)):i=s),r<1||r>E(a,s,o)?f(d)._overflowWeeks=!0:null!=l?f(d)._overflowWeekday=!0:(c=Ze(a,r,i,s,o),d._a[_]=c.year,d._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(u=Tt(e._a[_],n[_]),(e._dayOfYear>Ue(u)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),l=ze(u,0,e._dayOfYear),e._a[C]=l.getUTCMonth(),e._a[k]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=m[t]=n[t];for(;t<7;t++)e._a[t]=m[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[T]&&0===e._a[G]&&0===e._a[M]&&0===e._a[Le]&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?ze:We).apply(null,m),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==g.ISO_8601)if(e._f!==g.RFC_2822){e._a=[],f(e).empty=!0;for(var t,n,a,r=""+e._i,i=r.length,s=0,o=(n=oe(e._f,e._locale).match(ne)||[]).length,l=0;l<o;l++)a=n[l],(t=(r.match(Te(a,e))||[])[0])&&(0<(u=r.substr(0,r.indexOf(t))).length&&f(e).unusedInput.push(u),r=r.slice(r.indexOf(t)+t.length),s+=t.length),ie[a]?(t?f(e).empty=!1:f(e).unusedTokens.push(a),u=a,h=e,null!=(m=t)&&p(Me,u)&&Me[u](m,h._a,h,u)):e._strict&&!t&&f(e).unusedTokens.push(a);f(e).charsLeftOver=i-s,0<r.length&&f(e).unusedInput.push(r),e._a[T]<=12&&!0===f(e).bigHour&&0<e._a[T]&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[T]=(i=e._locale,c=e._a[T],null==(d=e._meridiem)?c:null!=i.meridiemHour?i.meridiemHour(c,d):null!=i.isPM?((i=i.isPM(d))&&c<12&&(c+=12),c=i||12!==c?c:0):c),null!==(d=f(e).era)&&(e._a[_]=e._locale.erasConvertYear(d,e._a[_])),Gt(e),pt(e)}else kt(e);else _t(e);var c,d,u,m,h}function Et(e){var t,n=e._i,a=e._f;{var r,i;if(e._locale=e._locale||P(e._l),null===n||void 0===a&&""===n)return Y({nullInput:!0});else return"string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new K(pt(n)):(B(n)?e._d=n:s(a)?function(e){var t,n,a,r,i,s,o=!1,l=e._f.length;if(0===l)return f(e).invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<l;r++)i=0,s=!1,t=Z({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Mt(t),U(t)&&(s=!0),i=(i+=f(t).charsLeftOver)+10*f(t).unusedTokens.length,f(t).score=i,o?i<a&&(a=i,n=t):(null==a||i<a||s)&&(a=i,n=t,s&&(o=!0));j(e,n||t)}(e):a?Mt(e):o(a=(n=e)._i)?n._d=new Date(g.now()):B(a)?n._d=new Date(a.valueOf()):"string"==typeof a?(r=n,null===(i=$t.exec(r._i))?(_t(r),!1===r._isValid&&(delete r._isValid,kt(r),!1===r._isValid&&(delete r._isValid,r._strict?r._isValid=!1:g.createFromInputFallback(r)))):r._d=new Date(+i[1])):s(a)?(n._a=H(a.slice(0),function(e){return parseInt(e,10)}),Gt(n)):O(a)?(r=n)._d||(t=void 0===(i=ce(r._i)).day?i.date:i.day,r._a=H([i.year,i.month,t,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),Gt(r)):D(a)?n._d=new Date(a):g.createFromInputFallback(n),U(e)||(e._d=null),e)}}function Lt(e,t,n,a,r){var i={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==n&&!1!==n||(a=n,n=void 0),(O(e)&&N(e)||s(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=e,i._f=t,i._strict=a,(r=new K(pt(Et(r=i))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function F(e,t,n,a){return Lt(e,t,n,a,!1)}g.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),g.ISO_8601=function(){},g.RFC_2822=function(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Y()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:Y()});function Pt(e,t){var n,a;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return F();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}var Ft=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var e=ce(e),t=e.year||0,n=e.quarter||0,a=e.month||0,r=e.week||e.isoWeek||0,i=e.day||0,s=e.hour||0,o=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(e){var t,n,a=!1,r=Ft.length;for(t in e)if(p(e,t)&&(-1===S.call(Ft,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[Ft[n]]){if(a)return!1;parseFloat(e[Ft[n]])!==h(e[Ft[n]])&&(a=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*o+1e3*s*60*60,this._days=+i+7*r,this._months=+a+3*n+12*t,this._data={},this._locale=P(),this._bubble()}function It(e){return e instanceof Rt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ot(e,n){a(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+i(~~(e/60),2)+n+i(~~e%60,2)})}Ot("Z",":"),Ot("ZZ",""),w("Z",ke),w("ZZ",ke),x(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Dt(ke,e)});var Nt=/([\+\-]|\d\d)/gi;function Dt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Nt)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function Bt(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||B(e)?e:F(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),g.updateOffset(t,!1),t):F(e).local()}function Ht(e){return-Math.round(e._d.getTimezoneOffset())}function jt(){return!!this.isValid()&&this._isUTC&&0===this._offset}g.updateOffset=function(){};var Ut=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Yt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function R(e,t){var n,a,r=e,i=null;return It(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:D(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(i=Ut.exec(e))?(n="-"===i[1]?-1:1,r={y:0,d:h(i[k])*n,h:h(i[T])*n,m:h(i[G])*n,s:h(i[M])*n,ms:h(At(1e3*i[Le]))*n}):(i=Yt.exec(e))?(n="-"===i[1]?-1:1,r={y:Wt(i[2],n),M:Wt(i[3],n),w:Wt(i[4],n),d:Wt(i[5],n),h:Wt(i[6],n),m:Wt(i[7],n),s:Wt(i[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=F(r.from),i=F(r.to),n=t.isValid()&&i.isValid()?(i=Bt(i,t),t.isBefore(i)?a=zt(t,i):((a=zt(i,t)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(r={}).ms=n.milliseconds,r.M=n.months),i=new Rt(r),It(e)&&p(e,"_locale")&&(i._locale=e._locale),It(e)&&p(e,"_isValid")&&(i._isValid=e._isValid),i}function Wt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(a,r){return function(e,t){var n;return null===t||isNaN(+t)||(q(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Zt(this,R(e,t),a),this}}function Zt(e,t,n,a){var r=t._milliseconds,i=At(t._days),t=At(t._months);e.isValid()&&(a=null==a||a,t&&Be(e,he(e,"Month")+t*n),i&&ge(e,"Date",he(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),a&&g.updateOffset(e,i||t))}R.fn=Rt.prototype,R.invalid=function(){return R(NaN)};Ie=Vt(1,"add"),Je=Vt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||B(e)||Kt(e)||D(e)||(n=s(t=e),a=!1,n&&(a=0===t.filter(function(e){return!D(e)&&Kt(t)}).length),n&&a)||function(e){var t,n,a=O(e)&&!N(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=i.length;for(t=0;t<s;t+=1)n=i[t],r=r||p(e,n);return a&&r}(e)||null==e;var t,n,a}function Jt(e,t){if(e.date()<t.date())return-Jt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(n,"months");return-(n+(t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(1+n,"months")-a)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=P(e))&&(this._locale=e),this)}g.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",g.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e=[],t=[],n=[],a=[],r=this.eras(),i=0,s=r.length;i<s;++i)t.push($(r[i].name)),e.push($(r[i].abbr)),n.push($(r[i].narrow)),a.push($(r[i].name)),a.push($(r[i].abbr)),a.push($(r[i].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function on(e,t){a(0,[e,e.length],0,t)}function ln(e,t,n,a,r){var i;return null==e?Ke(this,a,r).year:(t>(i=E(e,a,r))&&(t=i),function(e,t,n,a,r){e=Ze(e,t,n,a,r),t=ze(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,a,r))}a("N",0,0,"eraAbbr"),a("NN",0,0,"eraAbbr"),a("NNN",0,0,"eraAbbr"),a("NNNN",0,0,"eraName"),a("NNNNN",0,0,"eraNarrow"),a("y",["y",1],"yo","eraYear"),a("y",["yy",2],0,"eraYear"),a("y",["yyy",3],0,"eraYear"),a("y",["yyyy",4],0,"eraYear"),w("N",rn),w("NN",rn),w("NNN",rn),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,a){a=n._locale.erasParse(e,a,n._strict);a?f(n).era=a:f(n).invalidEra=e}),w("y",Se),w("yy",Se),w("yyy",Se),w("yyyy",Se),w("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),x(["y","yy","yyy","yyyy"],_),x(["yo"],function(e,t,n,a){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_]=n._locale.eraYearOrdinalParse(e,r):t[_]=parseInt(e,10)}),a(0,["gg",2],0,function(){return this.weekYear()%100}),a(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),w("G",_e),w("g",_e),w("GG",b,y),w("gg",b,y),w("GGGG",$e,fe),w("gggg",$e,fe),w("GGGGG",xe,ye),w("ggggg",xe,ye),Ee(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,a){t[a.substr(0,2)]=h(e)}),Ee(["gg","GG"],function(e,t,n,a){t[a]=g.parseTwoDigitYear(e)}),a("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),w("Q",r),x("Q",function(e,t){t[C]=3*(h(e)-1)}),a("D",["DD",2],"Do","date"),t("date","D"),n("date",9),w("D",b),w("DD",b,y),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],k),x("Do",function(e,t){t[k]=h(e.match(b)[0])});$e=me("Date",!0);a("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),w("DDD",we),w("DDDD",pe),x(["DDD","DDDD"],function(e,t,n){n._dayOfYear=h(e)}),a("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),w("m",b),w("mm",b,y),x(["m","mm"],G);fe=me("Minutes",!1);a("s",["ss",2],0,"second"),t("second","s"),n("second",15),w("s",b),w("ss",b,y),x(["s","ss"],M);var cn,xe=me("Seconds",!1);for(a("S",0,0,function(){return~~(this.millisecond()/100)}),a(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),a(0,["SSS",3],0,"millisecond"),a(0,["SSSS",4],0,function(){return 10*this.millisecond()}),a(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),a(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),a(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),a(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),a(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),w("S",we,r),w("SS",we,y),w("SSS",we,pe),cn="SSSS";cn.length<=9;cn+="S")w(cn,Se);function dn(e,t){t[Le]=h(1e3*("0."+e))}for(cn="S";cn.length<=9;cn+="S")x(cn,dn);ye=me("Milliseconds",!1),a("z",0,0,"zoneAbbr"),a("zz",0,0,"zoneName");r=K.prototype;function un(e){return e}r.add=Ie,r.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=O(e)&&!N(e),n=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<a.length;r+=1)n=n||p(e,a[r]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||F(),n=Bt(e,this).startOf("day"),n=g.calendarFormat(this,n)||"sameElse",t=t&&(d(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,F(e)))},r.clone=function(){return new K(this)},r.diff=function(e,t,n){var a,r,i;if(!this.isValid())return NaN;if(!(a=Bt(e,this)).isValid())return NaN;switch(r=6e4*(a.utcOffset()-this.utcOffset()),t=u(t)){case"year":i=Jt(this,a)/12;break;case"month":i=Jt(this,a);break;case"quarter":i=Jt(this,a)/3;break;case"second":i=(this-a)/1e3;break;case"minute":i=(this-a)/6e4;break;case"hour":i=(this-a)/36e5;break;case"day":i=(this-a-r)/864e5;break;case"week":i=(this-a-r)/6048e5;break;default:i=this-a}return n?i:m(i)},r.endOf=function(e){var t,n;if(void 0===(e=u(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),g.updateOffset(this,!0),this},r.format=function(e){return e=e||(this.isUtc()?g.defaultFormatUtc:g.defaultFormat),e=se(this,e),this.localeData().postformat(e)},r.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||F(e).isValid())?R({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.fromNow=function(e){return this.from(F(),e)},r.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||F(e).isValid())?R({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.toNow=function(e){return this.to(F(),e)},r.get=function(e){return d(this[e=u(e)])?this[e]():this},r.invalidAt=function(){return f(this).overflow},r.isAfter=function(e,t){return e=l(e)?e:F(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=u(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},r.isBefore=function(e,t){return e=l(e)?e:F(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=u(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},r.isBetween=function(e,t,n,a){return e=l(e)?e:F(e),t=l(t)?t:F(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(a=a||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===a[1]?this.isBefore(t,n):!this.isAfter(t,n))},r.isSame=function(e,t){var e=l(e)?e:F(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=u(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},r.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},r.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},r.isValid=function(){return U(this)},r.lang=Qe,r.locale=qt,r.localeData=Qt,r.max=ve,r.min=be,r.parsingFlags=function(){return j({},f(this))},r.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)p(e,t)&&n.push({unit:t,priority:de[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ce(e)),a=n.length,r=0;r<a;r++)this[n[r].unit](e[n[r].unit]);else if(d(this[e=u(e)]))return this[e](t);return this},r.startOf=function(e){var t,n;if(void 0===(e=u(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),g.updateOffset(this,!0),this},r.subtract=Je,r.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},r.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},r.toDate=function(){return new Date(this.valueOf())},r.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):d(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},r.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(r[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},r.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},r.eraName=function(){for(var e,t=this.localeData().eras(),n=0,a=t.length;n<a;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},r.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,a=t.length;n<a;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},r.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,a=t.length;n<a;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},r.eraYear=function(){for(var e,t,n=this.localeData().eras(),a=0,r=n.length;a<r;++a)if(e=n[a].since<=n[a].until?1:-1,t=this.clone().startOf("day").valueOf(),n[a].since<=t&&t<=n[a].until||n[a].until<=t&&t<=n[a].since)return(this.year()-g(n[a].since).year())*e+n[a].offset;return this.year()},r.year=Ye,r.isLeapYear=function(){return ue(this.year())},r.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},r.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},r.quarter=r.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},r.month=He,r.daysInMonth=function(){return Re(this.year(),this.month())},r.week=r.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},r.isoWeek=r.isoWeeks=function(e){var t=Ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},r.weeksInYear=function(){var e=this.localeData()._week;return E(this.year(),e.dow,e.doy)},r.weeksInWeekYear=function(){var e=this.localeData()._week;return E(this.weekYear(),e.dow,e.doy)},r.isoWeeksInYear=function(){return E(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return E(this.isoWeekYear(),1,4)},r.date=$e,r.day=r.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-a,"d")):a},r.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},r.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN;var t,n},r.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},r.hour=r.hours=v,r.minute=r.minutes=fe,r.second=r.seconds=xe,r.millisecond=r.milliseconds=ye,r.utcOffset=function(e,t,n){var a,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Ht(this);if("string"==typeof e){if(null===(e=Dt(ke,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=Ht(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?Zt(this,R(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,g.updateOffset(this,!0),this._changeInProgress=null)),this},r.utc=function(e){return this.utcOffset(0,e)},r.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ht(this),"m")),this},r.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Dt(Ce,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},r.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?F(e).utcOffset():0,(this.utcOffset()-e)%60==0)},r.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},r.isLocal=function(){return!!this.isValid()&&!this._isUTC},r.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},r.isUtc=jt,r.isUTC=jt,r.zoneAbbr=function(){return this._isUTC?"UTC":""},r.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},r.dates=e("dates accessor is deprecated. Use date instead.",$e),r.months=e("months accessor is deprecated. Use month instead",He),r.years=e("years accessor is deprecated. Use year instead",Ye),r.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),r.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return Z(t,this),(t=Et(t))._a?(e=(t._isUTC?c:F)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0,s=0;s<a;s++)(n&&e[s]!==t[s]||!n&&h(e[s])!==h(t[s]))&&i++;return i+r}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});y=ee.prototype;function mn(e,t,n,a){var r=P(),a=c().set(a,t);return r[n](a,e)}function hn(e,t,n){if(D(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");for(var a=[],r=0;r<12;r++)a[r]=mn(e,r,n,"month");return a}function gn(e,t,n,a){t=("boolean"==typeof e||(n=t=e,e=!1),D(t)&&(n=t,t=void 0),t||"");var r,i=P(),s=e?i._week.dow:0,o=[];if(null!=n)return mn(t,(n+s)%7,a,"day");for(r=0;r<7;r++)o[r]=mn(t,(r+s)%7,a,"day");return o}y.calendar=function(e,t,n){return d(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=un,y.postformat=un,y.relativeTime=function(e,t,n,a){var r=this._relativeTime[n];return d(r)?r(e,t,n,a):r.replace(/%d/i,e)},y.pastFuture=function(e,t){return d(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,n;for(n in e)p(e,n)&&(d(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var n,a=this._eras||P("en")._eras,r=0,i=a.length;r<i;++r)switch("string"==typeof a[r].since&&(n=g(a[r].since).startOf("day"),a[r].since=n.valueOf()),typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=g(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf()}return a},y.erasParse=function(e,t,n){var a,r,i,s,o,l=this.eras();for(e=e.toUpperCase(),a=0,r=l.length;a<r;++a)if(i=l[a].name.toUpperCase(),s=l[a].abbr.toUpperCase(),o=l[a].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[a];break;case"NNNN":if(i===e)return l[a];break;case"NNNNN":if(o===e)return l[a]}else if(0<=[i,s,o].indexOf(e))return l[a]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?g(e.since).year():g(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return p(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Oe.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,n){var a,r;if(this._monthsParseExact)return function(e,t,n){var a,r,i,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)i=c([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=S.call(this._shortMonthsParse,e))?r:null:-1!==(r=S.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=S.call(this._shortMonthsParse,e))||-1!==(r=S.call(this._longMonthsParse,e))?r:null:-1!==(r=S.call(this._longMonthsParse,e))||-1!==(r=S.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(r=c([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}},y.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ke(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,n){var a,r;if(this._weekdaysParseExact)return function(e,t,n){var a,r,i,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)i=c([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=S.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=S.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=S.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=S.call(this._weekdaysParse,e))||-1!==(r=S.call(this._shortWeekdaysParse,e))||-1!==(r=S.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=S.call(this._shortWeekdaysParse,e))||-1!==(r=S.call(this._weekdaysParse,e))||-1!==(r=S.call(this._minWeekdaysParse,e))?r:null:-1!==(r=S.call(this._minWeekdaysParse,e))||-1!==(r=S.call(this._weekdaysParse,e))||-1!==(r=S.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(r=c([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[a]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||at.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||at.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||at.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ht("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===h(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),g.lang=e("moment.lang is deprecated. Use moment.locale instead.",ht),g.langData=e("moment.langData is deprecated. Use moment.localeData instead.",P);var pn=Math.abs;function fn(e,t,n,a){t=R(t,n);return e._milliseconds+=a*t._milliseconds,e._days+=a*t._days,e._months+=a*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}we=wn("ms"),pe=wn("s"),Ie=wn("m"),ve=wn("h"),be=wn("d"),Je=wn("w"),v=wn("M"),fe=wn("Q"),xe=wn("y");function $n(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=$n("milliseconds"),$e=$n("seconds"),Ye=$n("minutes"),y=$n("hours"),xn=$n("days"),Sn=$n("months"),_n=$n("years");var Cn=Math.round,kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tn(e,t,n,a){var r=R(e).abs(),i=Cn(r.as("s")),s=Cn(r.as("m")),o=Cn(r.as("h")),l=Cn(r.as("d")),c=Cn(r.as("M")),d=Cn(r.as("w")),r=Cn(r.as("y")),i=(i<=n.ss?["s",i]:i<n.s&&["ss",i])||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return(i=(i=null!=n.w?i||d<=1&&["w"]||d<n.w&&["ww",d]:i)||c<=1&&["M"]||c<n.M&&["MM",c]||r<=1&&["y"]||["yy",r])[2]=t,i[3]=0<+e,i[4]=a,function(e,t,n,a,r){return r.relativeTime(t||1,!!n,e,a)}.apply(null,i)}var Gn=Math.abs;function Mn(e){return(0<e)-(e<0)||+e}function En(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,a,r,i,s,o=Gn(this._milliseconds)/1e3,l=Gn(this._days),c=Gn(this._months),d=this.asSeconds();return d?(e=m(o/60),t=m(e/60),o%=60,e%=60,n=m(c/12),c%=12,a=o?o.toFixed(3).replace(/\.?0+$/,""):"",r=Mn(this._months)!==Mn(d)?"-":"",i=Mn(this._days)!==Mn(d)?"-":"",s=Mn(this._milliseconds)!==Mn(d)?"-":"",(d<0?"-":"")+"P"+(n?r+n+"Y":"")+(c?r+c+"M":"")+(l?i+l+"D":"")+(t||e||o?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(o?s+a+"S":"")):"P0D"}var I=Rt.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),e.milliseconds=pn(e.milliseconds),e.seconds=pn(e.seconds),e.minutes=pn(e.minutes),e.hours=pn(e.hours),e.months=pn(e.months),e.years=pn(e.years),this},I.add=function(e,t){return fn(this,e,t,1)},I.subtract=function(e,t){return fn(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=u(e))||"quarter"===e||"year"===e)switch(t=this._days+a/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=we,I.asSeconds=pe,I.asMinutes=Ie,I.asHours=ve,I.asDays=be,I.asWeeks=Je,I.asMonths=v,I.asQuarters=fe,I.asYears=xe,I.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*h(this._months/12):NaN},I._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,a=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(vn(n)+t),n=t=0),a.milliseconds=e%1e3,e=m(e/1e3),a.seconds=e%60,e=m(e/60),a.minutes=e%60,e=m(e/60),a.hours=e%24,t+=m(e/24),n+=e=m(bn(t)),t-=yn(vn(e)),e=m(n/12),n%=12,a.days=t,a.months=n,a.years=e,this},I.clone=function(){return R(this)},I.get=function(e){return e=u(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=$e,I.minutes=Ye,I.hours=y,I.days=xn,I.weeks=function(){return m(this.days()/7)},I.months=Sn,I.years=_n,I.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,a=kn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(a=Object.assign({},kn,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),t=Tn(this,!n,a,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)},I.toISOString=En,I.toString=En,I.toJSON=En,I.locale=qt,I.localeData=Qt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),I.lang=Qe,a("X",0,0,"unix"),a("x",0,0,"valueOf"),w("x",_e),w("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,n){n._d=new Date(h(e))}),g.version="2.29.3",A=F,g.fn=r,g.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},g.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},g.now=function(){return Date.now?Date.now():+new Date},g.utc=c,g.unix=function(e){return F(1e3*e)},g.months=function(e,t){return hn(e,t,"months")},g.isDate=B,g.locale=ht,g.invalid=Y,g.duration=R,g.isMoment=l,g.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},g.parseZone=function(){return F.apply(null,arguments).parseZone()},g.localeData=P,g.isDuration=It,g.monthsShort=function(e,t){return hn(e,t,"monthsShort")},g.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},g.defineLocale=gt,g.updateLocale=function(e,t){var n,a;return null!=t?(a=lt,null!=L[e]&&null!=L[e].parentLocale?L[e].set(Q(L[e]._config,t)):(t=Q(a=null!=(n=mt(e))?n._config:a,t),null==n&&(t.abbr=e),(a=new ee(t)).parentLocale=L[e],L[e]=a),ht(e)):null!=L[e]&&(null!=L[e].parentLocale?(L[e]=L[e].parentLocale,e===ht()&&ht(e)):null!=L[e]&&delete L[e]),L[e]},g.locales=function(){return te(L)},g.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},g.normalizeUnits=u,g.relativeTimeRounding=function(e){return void 0===e?Cn:"function"==typeof e&&(Cn=e,!0)},g.relativeTimeThreshold=function(e,t){return void 0!==kn[e]&&(void 0===t?kn[e]:(kn[e]=t,"s"===e&&(kn.ss=t-1),!0))},g.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},g.prototype=r,g.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},g}();var Pa,Fa,Ra=Pa.exports;function Ia(e,t){oa(e,t)}const Aa={en:{gameThumbnail:{playNow:"Start now!",new:"NEW",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},zh:{gameThumbnail:{playNow:"現在開始!",new:"新的",hot:"熱的",opens:"打開 ",full:"滿桌 - 下注",dealer:"經銷商"}},de:{gameThumbnail:{playNow:"Jetzt beginnen!",new:"NEU",hot:"Hot",opens:"Öffnet ",full:"full - bet behind",dealer:"Dealer"}},it:{gameThumbnail:{playNow:"Inizia ora!",new:"NOVITÀ",hot:"HOT",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},fr:{gameThumbnail:{playNow:"Commencez maintenant",new:"Nouveau",hot:"Chaud",opens:"Ouvre ",full:"Table pleine - pari derrière",dealer:"Concessionnaire"}},es:{gameThumbnail:{playNow:"Juega ahora!",new:"NUEVO",hot:"HOT",opens:"Abiertas",full:"Mesa llena - Apostar de pie",dealer:"Dealer"}},tr:{gameThumbnail:{playNow:"Şimdi oyna",new:"YENİ",hot:"SICAK",opens:"Açılır ",full:"masa dolu - bet behind",dealer:"Dealer"}},ru:{gameThumbnail:{playNow:"Играть сейчас",new:"НОВАЯ",hot:"ГОРЯЧЕЙ",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},ro:{gameThumbnail:{playNow:"Joaca acum",new:"NOU",hot:"POPULAR",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},hu:{gameThumbnail:{playNow:"Játsszon most!",new:"ÚJ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pl:{gameThumbnail:{playNow:"Rozpocznij teraz!",new:"NOWOŚĆ",hot:"Hot",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},pt:{gameThumbnail:{playNow:"Comece agora!",new:"NOVO",hot:"Hot",opens:"Abrir ",full:"Mesa cheia - aposta atrás",dealer:"Dealer"}},sl:{gameThumbnail:{playNow:"Začnite zdaj!",new:"NOVO",hot:"Vroče",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},sr:{gameThumbnail:{playNow:"Započnite sada!",new:"NOVO",hot:"Vruće",opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}}},Oa={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function Na(e,t,n){const a=e.slice();return a[109]=t[n],a[111]=n,a}function Da(e,t,n){const a=e.slice();return a[106]=t[n],a}function Ba(e){let n,a=!We(e[37])&&!e[0]&&e[15],r=a&&Ha(e);return{c(){r&&r.c(),n=l()},m(e,t){r&&r.m(e,t),ue(e,n,t)},p(e,t){(a=32769&t[0]?!We(e[37])&&!e[0]&&e[15]:a)?r?r.p(e,t):((r=Ha(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&me(n)}}}function Ha(n){let a,r,i;return{c(){(a=he("div")).innerHTML='<svg version="1.1" class="UnfavoredIcon" part="UnfavoredIcon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="20px" y="20px" viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><path style="fill: white" d="M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"></path></svg>',fe(a,"class","FavIconContainer"),fe(a,"part","FavIconContainer")},m(e,t){ue(e,a,t),r||(i=z(a,"click",n[67]),r=!0)},p:W,d(e){e&&me(a),r=!1,i()}}}function ja(n){let a,r,i,s,o=n[36]("gameThumbnail.playNow")+"";return{c(){a=he("button"),r=ge(o),fe(a,"class","GameInfoBtn"),fe(a,"part","GameInfoBtn")},m(e,t){ue(e,a,t),de(a,r),i||(s=z(a,"click",n[68]),i=!0)},p(e,t){32&t[1]&&o!==(o=e[36]("gameThumbnail.playNow")+"")&&ye(r,o)},d(e){e&&me(a),i=!1,s()}}}function Ua(e){let n;return{c(){(n=he("div")).innerHTML='<svg version="1.1" class="FavoredIcon" part="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',fe(n,"class","FavIconContainer"),fe(n,"part","FavIconContainer")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function Ya(n){let a,r,i;return{c(){(a=he("div")).innerHTML='<svg version="1.1" class="FavoredIcon" part="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',fe(a,"class","FavIconContainer"),fe(a,"part","FavIconContainer")},m(e,t){ue(e,a,t),r||(i=z(a,"click",n[69]),r=!0)},p:W,d(e){e&&me(a),r=!1,i()}}}function Wa(e){let n,a,r=e[36]("gameThumbnail.new")+"";return{c(){n=he("span"),a=ge(r),fe(n,"class","GameExtraInfoLabel NewGameTag"),fe(n,"part","GameExtraInfoLabel NewGameTag")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){32&t[1]&&r!==(r=e[36]("gameThumbnail.new")+"")&&ye(a,r)},d(e){e&&me(n)}}}function za(e){let n,a;return{c(){n=he("span"),a=ge(e[8]),fe(n,"class","GameExtraInfoLabel PopularGameTag"),fe(n,"part","GameExtraInfoLabel PopularGameTag")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){256&t[0]&&ye(a,e[8])},d(e){e&&me(n)}}}function Va(e){let n,a,r=!e[23]&&e[21]&&e[22]&&Za(e);function i(e){return e[23]&&e[20]&&e[20]===sr?Xa:e[23]&&e[20]&&e[20]===or?Ka:void 0}let s=i(e),o=s&&s(e);return{c(){r&&r.c(),n=pe(),o&&o.c(),a=l()},m(e,t){r&&r.m(e,t),ue(e,n,t),o&&o.m(e,t),ue(e,a,t)},p(e,t){!e[23]&&e[21]&&e[22]?r?r.p(e,t):((r=Za(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null),s===(s=i(e))&&o?o.p(e,t):(o&&o.d(1),(o=s&&s(e))&&(o.c(),o.m(a.parentNode,a)))},d(e){r&&r.d(e),e&&me(n),o&&o.d(e),e&&me(a)}}}function Za(e){let n,a,r,i,s,o,l,c,d,u,m=e[36]("gameThumbnail.opens")+"",h=Ra.utc(e[21]).local().format(e[22])+"",g=e[46](e[35])+"",p=e[45](e[27],e[28],e[26])+"";return{c(){n=he("div"),a=he("div"),r=ge(m),i=pe(),s=he("span"),o=ge(h),l=pe(),c=new P(!1),d=pe(),u=new P(!1),fe(a,"class","ClosedGame"),fe(a,"part","ClosedGame"),c.a=d,u.a=null,fe(n,"class","GameProp LiveProps"),fe(n,"part","GameProp LiveProps")},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(a,i),de(a,s),de(s,o),de(n,l),c.m(g,n),de(n,d),u.m(p,n)},p(e,t){32&t[1]&&m!==(m=e[36]("gameThumbnail.opens")+"")&&ye(r,m),6291456&t[0]&&h!==(h=Ra.utc(e[21]).local().format(e[22])+"")&&ye(o,h),16&t[1]&&g!==(g=e[46](e[35])+"")&&c.p(g),469762048&t[0]&&p!==(p=e[45](e[27],e[28],e[26])+"")&&u.p(p)},d(e){e&&me(n)}}}function Ka(n){let a,r,i,s,o,l,c=n[46](n[35])+"",d=n[45](n[27],n[28],n[26])+"",u=new Array(cr),m=[];for(let e=0;e<u.length;e+=1)m[e]=er(Na(n,u,e));return{c(){a=he("div"),r=he("div");for(let e=0;e<m.length;e+=1)m[e].c();i=pe(),s=new P(!1),o=pe(),l=new P(!1),fe(r,"class","LiveIcons"),fe(r,"part","LiveIcons"),s.a=o,l.a=null,fe(a,"class",n[31]),fe(a,"part",n[31])},m(e,t){ue(e,a,t),de(a,r);for(let e=0;e<m.length;e+=1)m[e].m(r,null);n[70](r),de(a,i),s.m(c,a),de(a,o),l.m(d,a)},p(t,n){if(1073750016&n[0]|65538&n[1]){let e;for(u=new Array(cr),e=0;e<u.length;e+=1){const s=Na(t,u,e);m[e]?m[e].p(s,n):(m[e]=er(s),m[e].c(),m[e].m(r,null))}for(;e<m.length;e+=1)m[e].d(1);m.length=u.length}16&n[1]&&c!==(c=t[46](t[35])+"")&&s.p(c),469762048&n[0]&&d!==(d=t[45](t[27],t[28],t[26])+"")&&l.p(d),1&n[1]&&fe(a,"class",t[31]),1&n[1]&&fe(a,"part",t[31])},d(e){e&&me(a),k(m,e),n[70](null)}}}function Xa(e){let n,a,r,i,s,o,l=e[46](e[35])+"",c=e[45](e[27],e[28],e[26])+"";function d(e){return e[33]?nr:tr}let u=d(e),m=u(e);return{c(){n=he("div"),a=he("div"),m.c(),r=pe(),i=new P(!1),s=pe(),o=new P(!1),fe(a,"class","LiveIcons"),fe(a,"part","LiveIcons"),i.a=s,o.a=null,fe(n,"class","GameProp LiveProps BlackjackDisplay"),fe(n,"part","GameProp LiveProps BlackjackDisplay")},m(e,t){ue(e,n,t),de(n,a),m.m(a,null),de(n,r),i.m(l,n),de(n,s),o.m(c,n)},p(e,t){u===(u=d(e))&&m?m.p(e,t):(m.d(1),(m=u(e))&&(m.c(),m.m(a,null))),16&t[1]&&l!==(l=e[46](e[35])+"")&&i.p(l),469762048&t[0]&&c!==(c=e[45](e[27],e[28],e[26])+"")&&o.p(c)},d(e){e&&me(n),m.d()}}}function Ja(e){let n;function a(e){return e[30]?Qa:qa}let r=a(e),i=r(e);return{c(){i.c(),n=l()},m(e,t){i.m(e,t),ue(e,n,t)},p(e,t){r===(r=a(e))&&i?i.p(e,t):(i.d(1),(i=r(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&me(n)}}}function qa(e){let n,a,r=e[47]("LatestResult "+(0===e[111]?"First":""),e[111],e[13][e[111]],e[32][e[13][e[111]]])+"";return{c(){n=new P(!1),a=l(),n.a=a},m(e,t){n.m(r,e,t),ue(e,a,t)},p(e,t){8192&t[0]|2&t[1]&&r!==(r=e[47]("LatestResult "+(0===e[111]?"First":""),e[111],e[13][e[111]],e[32][e[13][e[111]]])+"")&&n.p(r)},d(e){e&&me(a),e&&n.d()}}}function Qa(e){let n,a,r,i,s,o=e[47]("LatestResult "+(0===e[111]?"First":""),"first"+e[111]+e[13][e[111]][0],e[13][e[111]][0],e[32][e[13][e[111]][0]])+"",l=e[47]("LatestResult "+(0===e[111]?"First":""),"second"+e[111]+e[13][e[111]][1],e[13][e[111]][1],e[32][e[13][e[111]][1]])+"";return{c(){n=he("div"),a=new P(!1),r=pe(),i=new P(!1),s=pe(),a.a=r,i.a=s,fe(n,"class","Double"),fe(n,"part","Double")},m(e,t){ue(e,n,t),a.m(o,n),de(n,r),i.m(l,n),de(n,s)},p(e,t){8192&t[0]|2&t[1]&&o!==(o=e[47]("LatestResult "+(0===e[111]?"First":""),"first"+e[111]+e[13][e[111]][0],e[13][e[111]][0],e[32][e[13][e[111]][0]])+"")&&a.p(o),8192&t[0]|2&t[1]&&l!==(l=e[47]("LatestResult "+(0===e[111]?"First":""),"second"+e[111]+e[13][e[111]][1],e[13][e[111]][1],e[32][e[13][e[111]][1]])+"")&&i.p(l)},d(e){e&&me(n)}}}function er(e){let n,a=e[13]&&e[13][e[111]]&&Ja(e);return{c(){a&&a.c(),n=l()},m(e,t){a&&a.m(e,t),ue(e,n,t)},p(e,t){e[13]&&e[13][e[111]]?a?a.p(e,t):((a=Ja(e)).c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},d(e){a&&a.d(e),e&&me(n)}}}function tr(t){let r,i=t[25],s=[];for(let e=0;e<i.length;e+=1)s[e]=ar(Da(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);ue(t,r,n)},p(t,n){if(570425344&n[0]|8192&n[1]){let e;for(i=t[25],e=0;e<i.length;e+=1){var a=Da(t,i,e);s[e]?s[e].p(a,n):(s[e]=ar(a),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){k(s,e),e&&me(r)}}}function nr(e){let n,a,r=e[36]("gameThumbnail.full")+"";return{c(){n=he("span"),a=ge(r),fe(n,"class","FullTable"),fe(n,"part","FullTable")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){32&t[1]&&r!==(r=e[36]("gameThumbnail.full")+"")&&ye(a,r)},d(e){e&&me(n)}}}function ar(e){let n,a,r,i,s,o,l;return{c(){n=he("span"),a=M("svg"),r=M("path"),i=M("path"),s=pe(),fe(r,"d","M11.58 6c-1.17 0-2.13.95-2.13 2.12v.4a8.82 8.82 0 00-2.92-.4c-1.54 0-2.45.22-2.92.4v-.4A2.136 2.136 0 001.48 6a1.33 1.33 0 00-.5 2.55c.14.07.24.21.24.37l.26 1.06c0 .96.73 1.75 1.65 1.85a.65.65 0 00.28 1.23.65.65 0 00.3-1.22h5.64a.65.65 0 00.3 1.22.65.65 0 00.28-1.23c.93-.1 1.65-.9 1.65-1.85l.27-1.06c0-.16.1-.3.24-.37A1.33 1.33 0 0011.58 6z"),fe(i,"d","M4.34 7.5c.55-.1 1.27-.17 2.2-.17.91 0 1.63.07 2.18.17.21-.96.9-1.74 1.8-2.1V4a3.99 3.99 0 00-7.97 0v1.4c.9.36 1.58 1.14 1.79 2.1z"),fe(a,"xmlns","http://www.w3.org/2000/svg"),fe(a,"width","13"),fe(a,"height","14"),fe(a,"viewBox","0 0 13 14"),fe(n,"class",o=e[44](e[29],e[106].toString())?"ClosedSeat":"OpenSeat"),fe(n,"part",l=e[44](e[29],e[106].toString())?"ClosedSeat":"OpenSeat")},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(a,i),de(n,s)},p(e,t){570425344&t[0]&&o!==(o=e[44](e[29],e[106].toString())?"ClosedSeat":"OpenSeat")&&fe(n,"class",o),570425344&t[0]&&l!==(l=e[44](e[29],e[106].toString())?"ClosedSeat":"OpenSeat")&&fe(n,"part",l)},d(e){e&&me(n)}}}function rr(e){let n,a;return{c(){n=he("p"),a=ge(e[4]),fe(n,"class","GameNameBelow"),fe(n,"part","GameNameBelow"),fe(n,"title",e[4])},m(e,t){ue(e,n,t),de(n,a)},p(e,t){16&t[0]&&ye(a,e[4]),16&t[0]&&fe(n,"title",e[4])},d(e){e&&me(n)}}}function ir(n){let a,r,i,s,o,l,N,c,d,u,m,h,D,g,p,B,f,y,H,b,v,w,$,x,S,_,C,j,k,T,G,U,M=(n[5]||"-")+"",E=n[16]&&Ba(n),L=n[1]&&ja(n);function Y(e,t){return 32773&t[0]&&(b=null),32773&t[0]&&(v=null),(b=null==b?!(We(e[37])||!e[0]||!e[15]||!e[2]):b)?Ya:(v=null==v?!!(We(e[37])&&e[0]&&e[15]&&e[2]):v)?Ua:void 0}let P=Y(n,[-1,-1,-1,-1]),F=P&&P(n),R=n[7]&&Wa(n),I=n[8]&&za(n),A=n[12]&&Va(n),O=n[10]&&rr(n);return{c(){a=he("div"),r=he("div"),i=he("img"),N=pe(),c=he("div"),d=he("div"),E&&E.c(),u=pe(),m=he("p"),h=ge(n[4]),D=pe(),L&&L.c(),B=pe(),f=he("span"),y=ge(M),H=pe(),F&&F.c(),w=pe(),$=he("div"),R&&R.c(),x=pe(),I&&I.c(),S=pe(),A&&A.c(),j=pe(),O&&O.c(),this.c=W,ce(i.src,s=n[3])||fe(i,"src",s),fe(i,"class",o=`GameBg GameBg-${n[9]} ${n[17]?"GameContainerHovered":""} `+(n[18]?"Loaded":"")),fe(i,"part",l="GameBg "+(n[17]?"GameContainerHovered":"")+" "+(n[18]?"Loaded":"")),fe(i,"alt",""),fe(i,"loading","lazy"),fe(m,"class","GameInfoName"),fe(m,"part","GameInfoName"),fe(m,"title",n[4]),fe(d,"class",g="GameInfo "+(n[17]?"GameHovered":"")),fe(d,"part",p="GameInfo "+(n[17]?"GameHovered":"")),fe(f,"class","GameInfoVendor"),fe(f,"part","GameInfoVendor"),fe(c,"class","GameInfoWrapper"),fe(c,"part","GameInfoWrapper"),fe($,"class","GameExtraInfo"),fe($,"part","GameExtraInfo"),fe(r,"class",_="GameInnerContainer "+(n[12]&&!n[23]&&n[24].value||n[12]&&n[33]?"GameInnerContainerUnavailable":"")),fe(r,"part",C="GameInnerContainer "+(n[12]&&!n[23]||n[12]&&n[33]?"GameInnerContainerUnavailable":"")),fe(a,"class",k="GameContainer "+n[34]),fe(a,"part",T="GameContainer "+n[34])},m(e,t){ue(e,a,t),de(a,r),de(r,i),n[66](i),de(r,N),de(r,c),de(c,d),E&&E.m(d,null),de(d,u),de(d,m),de(m,h),de(d,D),L&&L.m(d,null),de(c,B),de(c,f),de(f,y),de(r,H),F&&F.m(r,null),de(r,w),de(r,$),R&&R.m($,null),de($,x),I&&I.m($,null),de($,S),A&&A.m($,null),de(a,j),O&&O.m(a,null),n[71](a),G||(U=[z(r,"mouseenter",n[42]),z(r,"mouseleave",n[43]),z(r,"touchstart",n[40],{passive:!0}),z(r,"touchend",n[41],{passive:!0})],G=!0)},p(e,t){8&t[0]&&!ce(i.src,s=e[3])&&fe(i,"src",s),393728&t[0]&&o!==(o=`GameBg GameBg-${e[9]} ${e[17]?"GameContainerHovered":""} `+(e[18]?"Loaded":""))&&fe(i,"class",o),393216&t[0]&&l!==(l="GameBg "+(e[17]?"GameContainerHovered":"")+" "+(e[18]?"Loaded":""))&&fe(i,"part",l),e[16]?E?E.p(e,t):((E=Ba(e)).c(),E.m(d,u)):E&&(E.d(1),E=null),16&t[0]&&ye(h,e[4]),16&t[0]&&fe(m,"title",e[4]),e[1]?L?L.p(e,t):((L=ja(e)).c(),L.m(d,null)):L&&(L.d(1),L=null),131072&t[0]&&g!==(g="GameInfo "+(e[17]?"GameHovered":""))&&fe(d,"class",g),131072&t[0]&&p!==(p="GameInfo "+(e[17]?"GameHovered":""))&&fe(d,"part",p),32&t[0]&&M!==(M=(e[5]||"-")+"")&&ye(y,M),P===(P=Y(e,t))&&F?F.p(e,t):(F&&F.d(1),(F=P&&P(e))&&(F.c(),F.m(r,w))),e[7]?R?R.p(e,t):((R=Wa(e)).c(),R.m($,x)):R&&(R.d(1),R=null),e[8]?I?I.p(e,t):((I=za(e)).c(),I.m($,S)):I&&(I.d(1),I=null),e[12]?A?A.p(e,t):((A=Va(e)).c(),A.m($,null)):A&&(A.d(1),A=null),25169920&t[0]|4&t[1]&&_!==(_="GameInnerContainer "+(e[12]&&!e[23]&&e[24].value||e[12]&&e[33]?"GameInnerContainerUnavailable":""))&&fe(r,"class",_),8392704&t[0]|4&t[1]&&C!==(C="GameInnerContainer "+(e[12]&&!e[23]||e[12]&&e[33]?"GameInnerContainerUnavailable":""))&&fe(r,"part",C),e[10]?O?O.p(e,t):((O=rr(e)).c(),O.m(a,null)):O&&(O.d(1),O=null),8&t[1]&&k!==(k="GameContainer "+e[34])&&fe(a,"class",k),8&t[1]&&T!==(T="GameContainer "+e[34])&&fe(a,"part",T)},i:W,o:W,d(e){e&&me(a),n[66](null),E&&E.d(),L&&L.d(),F&&F.d(),R&&R.d(),I&&I.d(),A&&A.d(),O&&O.d(),n[71](null),G=!1,V(U)}}}const sr="blackjack",or="roulette",lr="doubleballroulette",cr=5;function dr(r,e,s){let t;Ve(r,Ta,e=>s(36,t=e));let A,i,o,l,n,O,N,c,d,D,B,H,u,j,U,Y,m,W,z,V,h,Z,g,K,X,{session:J=""}=e,{userid:p=""}=e,{lang:f="en"}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,{translationurl:v=""}=e,{favorites:w=""}=e,{gamethumbnail:q=""}=e,{gamename:Q=""}=e,{gamevendor:a=""}=e,{gameid:$=""}=e,{gameisnew:ee=""}=e,{gametag:te=""}=e,{gamefunmode:x=!1}=e,{searchitem:ne=!1}=e,{gamefavorite:S=!1}=e,{gamecellsize:ae=""}=e,{showfavoredcategory:_=!1}=e,{showgamename:re=!1}=e,{currency:C=""}=e,{gamepagemodalurl:k="false"}=e,{endpoint:T=""}=e,{livelobbyendpoint:G=""}=e,{connectlive:M=""}=e,{visibilityconnect:E=""}=e,{integratedgameframedesktop:L="false"}=e,{integratedgameframemobile:P="false"}=e,ie=!1,se=!1,oe=!1,F=window.navigator.userAgent,le="HH:mm",ce,de=[],ue="EUR",R="";const me=[sr],he=[or,lr],ge={"01":"Yellow","02":"Blue",10:"Green",40:"Red","05":"Purple",20:"Orange",X7:"Gold",X2:"Gold"},pe={1:"Red",3:"Red",5:"Red",7:"Red",9:"Red",12:"Red",14:"Red",16:"Red",18:"Red",19:"Red",21:"Red",23:"Red",25:"Red",27:"Red",30:"Red",32:"Red",34:"Red",36:"Red",2:"Black",4:"Black",6:"Black",8:"Black",10:"Black",11:"Black",13:"Black",15:"Black",17:"Black",20:"Black",22:"Black",24:"Black",26:"Black",28:"Black",29:"Black",31:"Black",33:"Black",35:"Black",0:"Green","00":"Green"},fe=(Object.keys(Aa).forEach(e=>{Ia(e,Aa[e])}),e=>{e.data.type!=="AddFavoriteThumbnail_"+$||_||s(0,S=!0),e.data.type!=="RemoveFavoriteThumbnail_"+$||_||s(0,S=!1),"UserSessionID"===e.data.type&&(s(15,ie=!0),e.data.session,A=e.data.userID),"CategoryUpdate"===e.data.type&&s(12,l=null)}),ye=e=>{window.postMessage({type:"SearchedItemClicked",gameId:e},window.location.href),"function"==typeof gtag&&gtag("event","OpenGame",{context:"GameThumbnail--Searched",gameId:""+e,userId:""+(A||"Not logged in")}),We(F)&&"true"==P?window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:x,gamepagemodalurl:k,isMobile:We(F),source:"GameThumbnail"},window.location.href):We(F)&&"false"==P&&window.postMessage({type:"ShowGameModal",gameId:e,isMobile:We(F)},window.location.href),We(F)||"true"!=L?We(F)||"false"!=L||window.postMessage({type:"ShowGameModal",gameId:e,isMobile:We(F)},window.location.href):window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:x,gamepagemodalurl:k,isMobile:We(F)},window.location.href)},be=e=>{var t="thumbnail";S?window.postMessage({type:"SetUnfavoredGame",id:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",id:e,triggerFactor:t},window.location.href)},ve=()=>{G&&EventSource&&!n&&a&&$&&(n=new EventSource(`${T}/encoder/lobby/updates/${a}/`+$)).addEventListener("message",$e)},we=()=>{n&&(n.close(),n=void 0)},$e=async e=>{const{type:t,data:n}=e;let a;if("message"===t){if(n)try{a=JSON.parse(n)}catch(e){console.error("MESSAGE PARSING ERROR: ",e)}if(a){const{InternalTableId:e,MessageType:t,Results:n,Seats:r,Open:i}=a;if(e)switch(t){case"SeatsUpdated":r&&Array.isArray(r)&&(s(29,u=r),s(12,l.currentOccupiedSeats=r,l),await _e());break;case"RouletteResultsUpdated":n&&Array.isArray(n)&&(j=n,s(12,l.currentRouletteNumbers=n,l),await _e());break;case"DoubleBallRouletteResultsUpdated":n&&Array.isArray(n)&&(U=n,s(12,l.currentDoubleBallRouletteNumbers=n,l),await _e());break;case"TableOpened":case"TableClosed":s(23,c=i),s(12,l.isOpen=i,l),await _e()}}}},xe=(e,t=",")=>null!=e?(""+e).replace(/\B(?=(\d{3})+(?!\d))/g,t):"",I=(e,t)=>e.some(e=>e===t),Se=()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})};return Ze(()=>(window.addEventListener("message",fe,!1),()=>{window.removeEventListener("message",fe),n&&n.removeEventListener("message",$e)})),r.$$set=e=>{"session"in e&&s(48,J=e.session),"userid"in e&&s(49,p=e.userid),"lang"in e&&s(1,f=e.lang),"clientstyling"in e&&s(50,y=e.clientstyling),"clientstylingurl"in e&&s(51,b=e.clientstylingurl),"translationurl"in e&&s(52,v=e.translationurl),"favorites"in e&&s(2,w=e.favorites),"gamethumbnail"in e&&s(3,q=e.gamethumbnail),"gamename"in e&&s(4,Q=e.gamename),"gamevendor"in e&&s(5,a=e.gamevendor),"gameid"in e&&s(6,$=e.gameid),"gameisnew"in e&&s(7,ee=e.gameisnew),"gametag"in e&&s(8,te=e.gametag),"gamefunmode"in e&&s(53,x=e.gamefunmode),"searchitem"in e&&s(54,ne=e.searchitem),"gamefavorite"in e&&s(0,S=e.gamefavorite),"gamecellsize"in e&&s(9,ae=e.gamecellsize),"showfavoredcategory"in e&&s(55,_=e.showfavoredcategory),"showgamename"in e&&s(10,re=e.showgamename),"currency"in e&&s(56,C=e.currency),"gamepagemodalurl"in e&&s(57,k=e.gamepagemodalurl),"endpoint"in e&&s(58,T=e.endpoint),"livelobbyendpoint"in e&&s(59,G=e.livelobbyendpoint),"connectlive"in e&&s(60,M=e.connectlive),"visibilityconnect"in e&&s(61,E=e.visibilityconnect),"integratedgameframedesktop"in e&&s(62,L=e.integratedgameframedesktop),"integratedgameframemobile"in e&&s(63,P=e.integratedgameframemobile)},r.$$.update=()=>{if(536870912&r.$$.dirty[1]&&M&&("disconnect"===M?we():"connect"===M&&ve()),1073741824&r.$$.dirty[1]&&E&&("disconnect"===E?we():"connect"===E&&"connect"===M&&ve()),2&r.$$.dirty[0]&&f&&(t=f,Ye.set(t)),134610944&r.$$.dirty[1]&&J&&p&&T&&(s(15,ie=!0),A=p),8&r.$$.dirty[0]&&q&&i&&s(19,i.onload=()=>{s(18,oe=!0)},i),2048&r.$$.dirty[0]|524288&r.$$.dirty[1]&&y&&o){let e=document.createElement("style");e.innerHTML=y,o.appendChild(e)}if(2048&r.$$.dirty[0]|1048576&r.$$.dirty[1]&&b&&o&&Se(),4&r.$$.dirty[0]&&w&&"true"==w&&s(16,se=!0),2097152&r.$$.dirty[1]&&v&&fetch(v).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ia(e,t[e])})}).catch(e=>{console.log(e)}),512&r.$$.dirty[0]|1048576&r.$$.dirty[1]&&ae&&b&&Se(),402653184&r.$$.dirty[1]&&T&&G){let e=new URL(""+G.split("?")[0]);e.searchParams.append("platform",ze(F)),e.searchParams.append("language",f),fetch(e).then(e=>e.json()).then(e=>{e=e[0].details;s(12,l=e)})}if(4096&r.$$.dirty[0]&&l&&l&&(s(23,c=l.isOpen),ce=l.betLimit||{},s(24,d=l.openHours),s(25,de=(e=>{H=e.totalSeats||7,s(29,u=e.currentOccupiedSeats||[]);const t=[];for(let e=1;e<=H;e++)t.push(e);return{seats:t}})(l).seats),d&&d.value&&({startTime:t,originalTimeFormat:e}=d["value"],s(21,N=t),s(22,le=e||le)),c&&s(20,O=(e=>{let t=null;if(e){const n=e["vendorCategory"];if(n){const e=n.toLowerCase();I(me,e)?t=sr:I(he,e)&&(t=or)}}return t})(l)),s(26,ue=Oa[C]),s(27,D=(ce.min||{})[C]),s(28,B=(ce.max||{})[C]),j=l.currentRouletteNumbers,U=l.currentDoubleBallRouletteNumbers,Y=l.vendorCategory,s(30,m=Y.toLowerCase()===lr),s(13,W=(m?U:j)||[]),s(31,z="GameProp LiveProps RoulleteProps"),s(31,z+=m?" Double":""),s(32,V=I(he,Y.toLowerCase())?pe:ge),Z=h,s(33,h=Array.isArray(u)&&u.length===H),l.dealer&&s(35,K=l.dealer.DealerName),X=l.numberOfPlayers,s(34,R="ListGame"),l.isOpen&&l.currentRouletteNumbers&&s(34,R+=" GameBackdrop"),c&&h&&D&&B&&l.currentOccupiedSeats?s(34,R+=" GameContainerDimmed"):!1===c&&N&&s(34,R+=" GameContainerFullyDimmed"),o&&(!Z&&h?(s(34,R+=" PulsatingRedShadow"),s(34,R=R.replace(" PulsatingGreenShadow",""))):Z&&!h&&(s(34,R+=" PulsatingGreenShadow"),s(34,R=R.replace(" PulsatingRedShadow",""))))),24576&r.$$.dirty[0]&&g&&W){const n="FirstElementAnimated",a=g.getElementsByClassName("First")[0];a&&(a.classList.add(n),setTimeout(()=>{a.classList.remove(n)},2e3))}var e,t},[S,f,w,q,Q,a,$,ee,te,ae,re,o,l,W,g,ie,se,!1,oe,i,O,N,le,c,d,de,ue,D,B,u,m,z,V,h,R,K,t,F,ye,be,()=>{window.postMessage({type:"GameHoveredMobile"},window.location.href)},()=>{window.postMessage({type:"GameBlurMobile"},window.location.href)},()=>{window.postMessage({type:"GameHoveredPc"},window.location.href)},()=>{window.postMessage({type:"GameBlurPc"},window.location.href)},I,(e,t,n)=>{let a,r;return null!=e&&null!=t&&(r=`
2
2
  <span>
3
3
  ${n}
4
4
  </span>
@@ -27,5 +27,5 @@
27
27
  <span id=${t} class="${e}">
28
28
  ${n}
29
29
  </span>
30
- `},J,p,y,b,v,x,ne,_,k,C,T,G,M,E,L,P,ge,pe,function(e){Ue[e?"unshift":"push"](()=>{i=e,s(19,i)})},()=>be($),()=>ye($),()=>be($),function(e){Ue[e?"unshift":"push"](()=>{g=e,s(14,g)})},function(e){Ue[e?"unshift":"push"](()=>{o=e,s(11,o)})}]}function ur(e,t,n){const a=e.slice();return a[77]=t[n],a[79]=n,a}function mr(e,t,n){const a=e.slice();return a[77]=t[n],a[80]=t,a[79]=n,a}function hr(e,t,n){const a=e.slice();return a[77]=t[n],a[79]=n,a}function gr(e){let n;function a(e){return e[17]?br:e[27]?yr:void 0}let r=a(e),i=r&&r(e);return{c(){n=he("div"),i&&i.c()},m(e,t){ue(e,n,t),i&&i.m(n,null)},p(e,t){r===(r=a(e))&&i?i.p(e,t):(i&&i.d(1),(i=r&&r(e))&&(i.c(),i.m(n,null)))},d(e){e&&me(n),i&&i.d()}}}function pr(e){let n,a,r;function i(e){return e[21]?Br:e[18].length?Nr:Dr}let s=i(e),o=s(e);function l(e){return e[18]?jr:Hr}let c=l(e),d=c(e);return{c(){n=he("div"),a=he("div"),o.c(),r=pe(),d.c(),fe(a,"class","CasinoGamesHeader Searched "+(We(e[32])?"CasinoGamesHeaderMobile":"")),fe(a,"part","CasinoGamesHeader Searched "+(We(e[32])?"CasinoGamesHeaderMobile":"")),fe(n,"class","CasinoGamesContainer"),fe(n,"part","CasinoGamesContainer")},m(e,t){ue(e,n,t),de(n,a),o.m(a,null),de(n,r),d.m(n,null)},p(e,t){s===(s=i(e))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(a,null))),c===(c=l(e))&&d?d.p(e,t):(d.d(1),(d=c(e))&&(d.c(),d.m(n,null)))},d(e){e&&me(n),o.d(),d.d()}}}function fr(e){let n;function a(e){return e[23]?zr:Wr}let r=a(e),i=r(e);return{c(){i.c(),n=l()},m(e,t){i.m(e,t),ue(e,n,t)},p(e,t){r!==(r=a(e))&&(i.d(1),(i=r(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&me(n)}}}function yr(n){let a,r,i,s,o,l="true"!==n[12]&&vr(n);function c(e){return e[15]?xr:e[30]?$r:wr}let d=c(n),u=d(n);return{c(){a=he("div"),l&&l.c(),r=pe(),i=he("ul"),u.c(),fe(i,"class",s=(0!=n[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),fe(i,"part",o=(0!=n[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),fe(a,"class","CasinoGamesContainer"),fe(a,"part","CasinoGamesContainer")},m(e,t){ue(e,a,t),l&&l.m(a,null),de(a,r),de(a,i),u.m(i,null),n[52](i)},p(e,t){"true"!==e[12]?l?l.p(e,t):((l=vr(e)).c(),l.m(a,r)):l&&(l.d(1),l=null),d===(d=c(e))&&u?u.p(e,t):(u.d(1),(u=d(e))&&(u.c(),u.m(i,null))),1073741824&t[0]&&s!==(s=(0!=e[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&fe(i,"class",s),1073741824&t[0]&&o!==(o=(0!=e[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&fe(i,"part",o)},d(e){e&&me(a),l&&l.d(),u.d(),n[52](null)}}}function br(e){let n,a,r="true"!==e[12]&&Pr(e);function i(e){return e[15]?Ar:0!==e[18].length?Ir:Rr}let s=i(e),o=s(e);return{c(){n=he("div"),r&&r.c(),a=pe(),o.c(),fe(n,"class","CasinoGamesContainer"),fe(n,"part","CasinoGamesContainer")},m(e,t){ue(e,n,t),r&&r.m(n,null),de(n,a),o.m(n,null)},p(e,t){"true"!==e[12]?r?r.p(e,t):((r=Pr(e)).c(),r.m(n,a)):r&&(r.d(1),r=null),s===(s=i(e))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(n,null)))},d(e){e&&me(n),r&&r.d(),o.d()}}}function vr(n){let a,r,i,s,o,l,c,d,u=n[31]("gamesCategorySection.favorites")+"",m=n[30].items.length+"";return{c(){a=he("div"),r=he("h3"),i=ge(u),s=pe(),o=he("span"),l=ge("("),c=ge(m),d=ge(")"),fe(o,"class","CategoryFavName"),fe(r,"class","CategoryName"),fe(r,"part","CategoryName"),fe(a,"class","CasinoGamesHeader"),fe(a,"part","CasinoGamesHeader")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(r,s),de(r,o),de(o,l),de(o,c),de(o,d),n[51](r)},p(e,t){1&t[1]&&u!==(u=e[31]("gamesCategorySection.favorites")+"")&&ye(i,u),1073741824&t[0]&&m!==(m=e[30].items.length+"")&&ye(c,m)},d(e){e&&me(a),n[51](null)}}}function wr(e){let n,a,r=e[31]("gamesCategorySection.waiting")+"";return{c(){n=he("p"),a=ge(r)},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.waiting")+"")&&ye(a,r)},d(e){e&&me(n)}}}function $r(t){let a,r=t[30].items,i=[];for(let e=0;e<r.length;e+=1)i[e]=Lr(ur(t,r,e));let s=null;return r.length||(s=Sr(t)),{c(){for(let e=0;e<i.length;e+=1)i[e].c();a=l(),s&&s.c()},m(t,n){for(let e=0;e<i.length;e+=1)i[e].m(t,n);ue(t,a,n),s&&s.m(t,n)},p(t,n){if(2013270015&n[0]|7&n[1]){let e;for(r=t[30].items,e=0;e<r.length;e+=1){const s=ur(t,r,e);i[e]?i[e].p(s,n):(i[e]=Lr(s),i[e].c(),i[e].m(a.parentNode,a))}for(;e<i.length;e+=1)i[e].d(1);i.length=r.length,!r.length&&s?s.p(t,n):r.length?s&&(s.d(1),s=null):((s=Sr(t)).c(),s.m(a.parentNode,a))}},d(e){C(i,e),e&&me(a),s&&s.d(e)}}}function xr(e){let n;return{c(){fe(n=he("div"),"class","lds-dual-ring"),fe(n,"part","lds-dual-ring")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function Sr(e){let n,a,r,i,s,o,l,c,t,d,u=e[31]("gamesCategorySection.noFavoritesTitle")+"",m=(g=e,We(g[32])?kr:_r),h=m(e);var g;return{c(){n=he("p"),a=M("svg"),r=M("path"),i=pe(),s=he("span"),o=ge(u),l=pe(),h.c(),c=pe(),S(r,"fill","white"),fe(r,"d","M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"),fe(a,"version","1.1"),fe(a,"class","UnfavoredIcon"),fe(a,"part","UnfavoredIcon"),fe(a,"xmlns","http://www.w3.org/2000/svg"),fe(a,"xmlns:xlink","http://www.w3.org/1999/xlink"),fe(a,"x","50px"),fe(a,"y","50px"),fe(a,"viewBox","0 0 512.001 512.001"),S(a,"enable-background","new 0 0 512.001 512.001"),fe(a,"xml:space","preserve"),fe(s,"class","NoFavoriteText NoFavoriteTextHighlight"),fe(s,"part","NoFavoriteText NoFavoriteTextHighlight"),fe(n,"class",t="NoFavoriteGames "+(We(e[32])?"NoFavoriteGamesMobile":"")),fe(n,"part",d="NoFavoriteGames "+(We(e[32])?"NoFavoriteGamesMobile":""))},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(n,i),de(n,s),de(s,o),de(n,l),h.m(n,null),de(n,c)},p(e,t){1&t[1]&&u!==(u=e[31]("gamesCategorySection.noFavoritesTitle")+"")&&ye(o,u),h.p(e,t)},d(e){e&&me(n),h.d()}}}function _r(e){let n,a,r=e[31]("gamesCategorySection.noFavorites")+"";return{c(){n=he("span"),a=ge(r),fe(n,"class","NoFavoriteText"),fe(n,"part","NoFavoriteText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.noFavorites")+"")&&ye(a,r)},d(e){e&&me(n)}}}function kr(e){let n,a,r=e[31]("gamesCategorySection.noFavoritesMobile")+"";return{c(){n=he("span"),a=ge(r),fe(n,"class","NoFavoriteText"),fe(n,"part","NoFavoriteText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.noFavoritesMobile")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Cr(e){let n,a=e[77].gameModel.isFavorite&&Tr(e);return{c(){a&&a.c(),n=l()},m(e,t){a&&a.m(e,t),ue(e,n,t)},p(e,t){e[77].gameModel.isFavorite?a?a.p(e,t):((a=Tr(e)).c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},d(e){a&&a.d(e),e&&me(n)}}}function Tr(e){let n,a=function(e){let n,a,r;function i(e,t){return 1073741824&t[0]&&(a=null),(n=null==n?!!We(e[32]):n)?Mr:(a=null==a?!!e[77].gameModel.platform.includes("PC"):a)?Gr:void 0}let s=i(e,[-1,-1,-1]),o=s&&s(e);return{c(){o&&o.c(),r=l()},m(e,t){o&&o.m(e,t),ue(e,r,t)},p(e,t){s===(s=i(e,t))&&o?o.p(e,t):(o&&o.d(1),(o=s&&s(e))&&(o.c(),o.m(r.parentNode,r)))},d(e){o&&o.d(e),e&&me(r)}}}(e);return{c(){a&&a.c(),n=l()},m(e,t){a&&a.m(e,t),ue(e,n,t)},p(e,t){a.p(e,t)},d(e){a&&a.d(e),e&&me(n)}}}function Gr(e){let n,a,r,i,s,o,l,c,d,u,m,h,g,p;return{c(){x(n=he("casino-game-thumbnail"),"class",a=""+($+(e[77].cellSize||"1x1"))),x(n,"part",r=""+($+(e[77].cellSize||"1x1"))),x(n,"session",e[2]),x(n,"userid",e[3]),x(n,"lang",e[1]),x(n,"favorites",e[4]),x(n,"gamethumbnail",i=e[77].gameModel.thumbnail),x(n,"gamename",s=e[77].gameModel.name),x(n,"gamevendor",o=e[77].gameModel.vendor.name),x(n,"gameisnew",l=e[77].gameModel.isNew),x(n,"gametag",c=0<e[77].gameModel.advancedTags?.length&&e[33](e[77].advancedTags)),x(n,"gamecellsize",d=e[77].cellSize),x(n,"gameid",u=e[77].gameModel.id),x(n,"gamefunmode",m=e[77].gameModel.hasFunMode),x(n,"gamefavorite",h=e[77].gameModel.isFavorite),x(n,"showfavoredcategory",e[27]),x(n,"connectlive",g=1==e[28][e[77].id]?"connect":"disconnect"),x(n,"visibilityconnect",e[29]),x(n,"currency",e[7]),x(n,"livelobbyendpoint",p=e[77].gameModel.details?e[77].gameModel.launchUrl:""),x(n,"clientstyling",e[5]),x(n,"clientstylingurl",e[6]),x(n,"endpoint",e[0]),x(n,"livecasino",e[8]),x(n,"gamepagemodalurl",e[9]),x(n,"integratedgameframedesktop",e[10]),x(n,"integratedgameframemobile",e[11])},m(e,t){ue(e,n,t)},p(e,t){1073741824&t[0]&&a!==(a=""+($+(e[77].cellSize||"1x1")))&&x(n,"class",a),1073741824&t[0]&&r!==(r=""+($+(e[77].cellSize||"1x1")))&&x(n,"part",r),4&t[0]&&x(n,"session",e[2]),8&t[0]&&x(n,"userid",e[3]),2&t[0]&&x(n,"lang",e[1]),16&t[0]&&x(n,"favorites",e[4]),1073741824&t[0]&&i!==(i=e[77].gameModel.thumbnail)&&x(n,"gamethumbnail",i),1073741824&t[0]&&s!==(s=e[77].gameModel.name)&&x(n,"gamename",s),1073741824&t[0]&&o!==(o=e[77].gameModel.vendor.name)&&x(n,"gamevendor",o),1073741824&t[0]&&l!==(l=e[77].gameModel.isNew)&&x(n,"gameisnew",l),1073741824&t[0]&&c!==(c=0<e[77].gameModel.advancedTags?.length&&e[33](e[77].advancedTags))&&x(n,"gametag",c),1073741824&t[0]&&d!==(d=e[77].cellSize)&&x(n,"gamecellsize",d),1073741824&t[0]&&u!==(u=e[77].gameModel.id)&&x(n,"gameid",u),1073741824&t[0]&&m!==(m=e[77].gameModel.hasFunMode)&&x(n,"gamefunmode",m),1073741824&t[0]&&h!==(h=e[77].gameModel.isFavorite)&&x(n,"gamefavorite",h),134217728&t[0]&&x(n,"showfavoredcategory",e[27]),1342177280&t[0]&&g!==(g=1==e[28][e[77].id]?"connect":"disconnect")&&x(n,"connectlive",g),536870912&t[0]&&x(n,"visibilityconnect",e[29]),128&t[0]&&x(n,"currency",e[7]),1073741824&t[0]&&p!==(p=e[77].gameModel.details?e[77].gameModel.launchUrl:"")&&x(n,"livelobbyendpoint",p),32&t[0]&&x(n,"clientstyling",e[5]),64&t[0]&&x(n,"clientstylingurl",e[6]),1&t[0]&&x(n,"endpoint",e[0]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"gamepagemodalurl",e[9]),1024&t[0]&&x(n,"integratedgameframedesktop",e[10]),2048&t[0]&&x(n,"integratedgameframemobile",e[11])},d(e){e&&me(n)}}}function Mr(e){let n,a=e[77].gameModel.platform.includes("iPad")||e[77].gameModel.platform.includes("iPhone")||e[77].gameModel.platform.includes("Android"),r=a&&Er(e);return{c(){r&&r.c(),n=l()},m(e,t){r&&r.m(e,t),ue(e,n,t)},p(e,t){(a=1073741824&t[0]?e[77].gameModel.platform.includes("iPad")||e[77].gameModel.platform.includes("iPhone")||e[77].gameModel.platform.includes("Android"):a)?r?r.p(e,t):((r=Er(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&me(n)}}}function Er(e){let n,a,r,i,s,o,l,c,d,u,m,h,g,p;return{c(){x(n=he("casino-game-thumbnail"),"class",a=""+($+(e[77].cellSize||"1x1"))),x(n,"part",r=""+($+(e[77].cellSize||"1x1"))),x(n,"session",e[2]),x(n,"userid",e[3]),x(n,"lang",e[1]),x(n,"favorites",e[4]),x(n,"gamethumbnail",i=e[77].gameModel.thumbnail),x(n,"gamename",s=e[77].gameModel.name),x(n,"gamevendor",o=e[77].gameModel.vendor.name),x(n,"gameisnew",l=e[77].gameModel.isNew),x(n,"gametag",c=0<e[77].gameModel.advancedTags?.length&&e[33](e[77].advancedTags)),x(n,"gamecellsize",d=e[77].cellSize),x(n,"gameid",u=e[77].gameModel.id),x(n,"gamefunmode",m=e[77].gameModel.hasFunMode),x(n,"gamefavorite",h=e[77].gameModel.isFavorite),x(n,"showfavoredcategory",e[27]),x(n,"connectlive",g=1==e[28][e[77].id]?"connect":"disconnect"),x(n,"visibilityconnect",e[29]),x(n,"currency",e[7]),x(n,"livelobbyendpoint",p=e[77].gameModel.details?e[77].gameModel.launchUrl:""),x(n,"clientstyling",e[5]),x(n,"clientstylingurl",e[6]),x(n,"endpoint",e[0]),x(n,"livecasino",e[8]),x(n,"gamepagemodalurl",e[9]),x(n,"integratedgameframedesktop",e[10]),x(n,"integratedgameframemobile",e[11])},m(e,t){ue(e,n,t)},p(e,t){1073741824&t[0]&&a!==(a=""+($+(e[77].cellSize||"1x1")))&&x(n,"class",a),1073741824&t[0]&&r!==(r=""+($+(e[77].cellSize||"1x1")))&&x(n,"part",r),4&t[0]&&x(n,"session",e[2]),8&t[0]&&x(n,"userid",e[3]),2&t[0]&&x(n,"lang",e[1]),16&t[0]&&x(n,"favorites",e[4]),1073741824&t[0]&&i!==(i=e[77].gameModel.thumbnail)&&x(n,"gamethumbnail",i),1073741824&t[0]&&s!==(s=e[77].gameModel.name)&&x(n,"gamename",s),1073741824&t[0]&&o!==(o=e[77].gameModel.vendor.name)&&x(n,"gamevendor",o),1073741824&t[0]&&l!==(l=e[77].gameModel.isNew)&&x(n,"gameisnew",l),1073741824&t[0]&&c!==(c=0<e[77].gameModel.advancedTags?.length&&e[33](e[77].advancedTags))&&x(n,"gametag",c),1073741824&t[0]&&d!==(d=e[77].cellSize)&&x(n,"gamecellsize",d),1073741824&t[0]&&u!==(u=e[77].gameModel.id)&&x(n,"gameid",u),1073741824&t[0]&&m!==(m=e[77].gameModel.hasFunMode)&&x(n,"gamefunmode",m),1073741824&t[0]&&h!==(h=e[77].gameModel.isFavorite)&&x(n,"gamefavorite",h),134217728&t[0]&&x(n,"showfavoredcategory",e[27]),1342177280&t[0]&&g!==(g=1==e[28][e[77].id]?"connect":"disconnect")&&x(n,"connectlive",g),536870912&t[0]&&x(n,"visibilityconnect",e[29]),128&t[0]&&x(n,"currency",e[7]),1073741824&t[0]&&p!==(p=e[77].gameModel.details?e[77].gameModel.launchUrl:"")&&x(n,"livelobbyendpoint",p),32&t[0]&&x(n,"clientstyling",e[5]),64&t[0]&&x(n,"clientstylingurl",e[6]),1&t[0]&&x(n,"endpoint",e[0]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"gamepagemodalurl",e[9]),1024&t[0]&&x(n,"integratedgameframedesktop",e[10]),2048&t[0]&&x(n,"integratedgameframemobile",e[11])},d(e){e&&me(n)}}}function Lr(e){let n,a=e[77].gameModel&&Cr(e);return{c(){a&&a.c(),n=l()},m(e,t){a&&a.m(e,t),ue(e,n,t)},p(e,t){e[77].gameModel?a?a.p(e,t):((a=Cr(e)).c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},d(e){a&&a.d(e),e&&me(n)}}}function Pr(n){let a,r,i,s,o=n[17].name+"",l=n[19]&&Fr(n);return{c(){a=he("div"),r=he("h3"),i=ge(o),s=pe(),l&&l.c(),fe(r,"class","CategoryName"),fe(r,"part","CategoryName"),fe(a,"class","CasinoGamesHeader"),fe(a,"part","CasinoGamesHeader")},m(e,t){ue(e,a,t),de(a,r),de(r,i),n[47](r),de(a,s),l&&l.m(a,null)},p(e,t){131072&t[0]&&o!==(o=e[17].name+"")&&ye(i,o),e[19]?l?l.p(e,t):((l=Fr(e)).c(),l.m(a,null)):l&&(l.d(1),l=null)},d(e){e&&me(a),n[47](null),l&&l.d()}}}function Fr(n){let a,r,i,s,o,l,c,d,u=n[31]("gamesCategorySection.viewAll")+"",m=n[17].games.total+"";return{c(){a=he("a"),r=he("span"),i=ge(u),s=ge(" ("),o=ge(m),l=ge(")"),fe(r,"class","CategoryLoadMore"),fe(r,"part","CategoryLoadMore"),fe(a,"class","CategoryNameLink"),fe(a,"part","CategoryNameLink")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(r,s),de(r,o),de(r,l),c||(d=z(a,"click",n[48]),c=!0)},p(e,t){1&t[1]&&u!==(u=e[31]("gamesCategorySection.viewAll")+"")&&ye(i,u),131072&t[0]&&m!==(m=e[17].games.total+"")&&ye(o,m)},d(e){e&&me(a),c=!1,d()}}}function Rr(e){let n;return{c(){(n=he("p")).textContent="You don't have any games in this category.",fe(n,"class","NoSearchResults"),fe(n,"part","NoSearchResults")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function Ir(n){let a,e,r,i=n[18],s=[];for(let e=0;e<i.length;e+=1)s[e]=Or(mr(n,i,e));return{c(){a=he("ul");for(let e=0;e<s.length;e+=1)s[e].c();fe(a,"class",e=(0===n[30].items.length&&n[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap"),fe(a,"part",r=(0===n[30].items.length&&n[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")},m(e,t){ue(e,a,t);for(let e=0;e<s.length;e+=1)s[e].m(a,null);n[50](a)},p(t,n){if(805588991&n[0]|4&n[1]){let e;for(i=t[18],e=0;e<i.length;e+=1){const r=mr(t,i,e);s[e]?s[e].p(r,n):(s[e]=Or(r),s[e].c(),s[e].m(a,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}1207959552&n[0]&&e!==(e=(0===t[30].items.length&&t[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&fe(a,"class",e),1207959552&n[0]&&r!==(r=(0===t[30].items.length&&t[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&fe(a,"part",r)},d(e){e&&me(a),C(s,e),n[50](null)}}}function Ar(e){let n;return{c(){fe(n=he("div"),"class","lds-dual-ring"),fe(n,"part","lds-dual-ring")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function Or(e){let n,a=function(n){let a,r,i,s,o,l,c,d,u,m,h,g,p,f,y=n[79];const b=()=>n[49](a,y),v=()=>n[49](null,y);return{c(){x(a=he("casino-game-thumbnail"),"session",n[2]),x(a,"userid",n[3]),x(a,"lang",n[1]),x(a,"class",r=""+($+(n[77].cellSize||"1x1"))),x(a,"part",i=""+($+(n[77].cellSize||"1x1"))),x(a,"favorites",n[4]),x(a,"gamethumbnail",s=n[77].thumbnail),x(a,"gamename",o=n[77].name),x(a,"gamevendor",l=n[77].vendor.name),x(a,"gameisnew",c=n[77].isNew),x(a,"gametag",d=0<n[77].advancedTags?.length&&n[33](n[77].advancedTags)),x(a,"gamecellsize",u=n[77].cellSize),x(a,"gameid",m=n[77].id),x(a,"gamefunmode",h=n[77].hasFunMode),x(a,"gamefavorite",g=n[77].isFavorite),x(a,"connectlive",p=1==n[28][n[77].id]?"connect":"disconnect"),x(a,"visibilityconnect",n[29]),x(a,"currency",n[7]),x(a,"livelobbyendpoint",f=n[77].details?n[77].href:""),x(a,"clientstyling",n[5]),x(a,"clientstylingurl",n[6]),x(a,"endpoint",n[0]),x(a,"livecasino",n[8]),x(a,"gamepagemodalurl",n[9]),x(a,"integratedgameframedesktop",n[10]),x(a,"integratedgameframemobile",n[11])},m(e,t){ue(e,a,t),b()},p(e,t){n=e,4&t[0]&&x(a,"session",n[2]),8&t[0]&&x(a,"userid",n[3]),2&t[0]&&x(a,"lang",n[1]),262144&t[0]&&r!==(r=""+($+(n[77].cellSize||"1x1")))&&x(a,"class",r),262144&t[0]&&i!==(i=""+($+(n[77].cellSize||"1x1")))&&x(a,"part",i),16&t[0]&&x(a,"favorites",n[4]),262144&t[0]&&s!==(s=n[77].thumbnail)&&x(a,"gamethumbnail",s),262144&t[0]&&o!==(o=n[77].name)&&x(a,"gamename",o),262144&t[0]&&l!==(l=n[77].vendor.name)&&x(a,"gamevendor",l),262144&t[0]&&c!==(c=n[77].isNew)&&x(a,"gameisnew",c),262144&t[0]&&d!==(d=0<n[77].advancedTags?.length&&n[33](n[77].advancedTags))&&x(a,"gametag",d),262144&t[0]&&u!==(u=n[77].cellSize)&&x(a,"gamecellsize",u),262144&t[0]&&m!==(m=n[77].id)&&x(a,"gameid",m),262144&t[0]&&h!==(h=n[77].hasFunMode)&&x(a,"gamefunmode",h),262144&t[0]&&g!==(g=n[77].isFavorite)&&x(a,"gamefavorite",g),268697600&t[0]&&p!==(p=1==n[28][n[77].id]?"connect":"disconnect")&&x(a,"connectlive",p),536870912&t[0]&&x(a,"visibilityconnect",n[29]),128&t[0]&&x(a,"currency",n[7]),262144&t[0]&&f!==(f=n[77].details?n[77].href:"")&&x(a,"livelobbyendpoint",f),32&t[0]&&x(a,"clientstyling",n[5]),64&t[0]&&x(a,"clientstylingurl",n[6]),1&t[0]&&x(a,"endpoint",n[0]),256&t[0]&&x(a,"livecasino",n[8]),512&t[0]&&x(a,"gamepagemodalurl",n[9]),1024&t[0]&&x(a,"integratedgameframedesktop",n[10]),2048&t[0]&&x(a,"integratedgameframemobile",n[11]),y!==n[79]&&(v(),y=n[79],b())},d(e){e&&me(a),v()}}}(e);return{c(){a&&a.c(),n=l()},m(e,t){a&&a.m(e,t),ue(e,n,t)},p(e,t){a.p(e,t)},d(e){a&&a.d(e),e&&me(n)}}}function Nr(e){let n,a,r=e[31]("gamesCategorySection.searchedItems")+"";return{c(){n=he("h3"),a=ge(r),fe(n,"class","StatusText"),fe(n,"part","StatusText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.searchedItems")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Dr(e){let n,a,r=e[31]("gamesCategorySection.noResults")+"";return{c(){n=he("h3"),a=ge(r),fe(n,"class","StatusText"),fe(n,"part","StatusText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.noResults")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Br(e){let n,a,r=e[31]("gamesCategorySection.recentSearchedItems")+"";return{c(){n=he("h3"),a=ge(r),fe(n,"class","StatusText"),fe(n,"part","StatusText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.recentSearchedItems")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Hr(e){let n;return{c(){(n=he("p")).textContent="Waiting",fe(n,"class","SearchWaiting"),fe(n,"part","SearchWaiting")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function jr(t){let a,r,i=!t[24]&&Ur(t),s=t[18],o=[];for(let e=0;e<s.length;e+=1)o[e]=Yr(hr(t,s,e));return{c(){i&&i.c(),a=pe(),r=he("ul");for(let e=0;e<o.length;e+=1)o[e].c();fe(r,"class","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap"),fe(r,"part","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap")},m(e,t){i&&i.m(e,t),ue(e,a,t),ue(e,r,t);for(let e=0;e<o.length;e+=1)o[e].m(r,null)},p(t,n){if(t[24]?i&&(i.d(1),i=null):i?i.p(t,n):((i=Ur(t)).c(),i.m(a.parentNode,a)),4460543&n[0]|4&n[1]){let e;for(s=t[18],e=0;e<s.length;e+=1){const i=hr(t,s,e);o[e]?o[e].p(i,n):(o[e]=Yr(i),o[e].c(),o[e].m(r,null))}for(;e<o.length;e+=1)o[e].d(1);o.length=s.length}},d(e){i&&i.d(e),e&&me(a),e&&me(r),C(o,e)}}}function Ur(e){let n,a,t,r,i=e[31]("gamesCategorySection.noRecentSearch")+"";return{c(){n=he("p"),a=ge(i),fe(n,"class",t="NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(We(e[32])?"NoRecentSearchesMobile":"")),fe(n,"part",r="NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(We(e[32])?"NoRecentSearchesMobile":""))},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&i!==(i=e[31]("gamesCategorySection.noRecentSearch")+"")&&ye(a,i)},d(e){e&&me(n)}}}function Yr(e){let n,a,r,i,s,o,l,c,d,u,m,h,g;return{c(){x(n=he("casino-game-thumbnail"),"class",a=""+($+(e[77].cellSize||"1x1"))),x(n,"part",r=""+($+(e[77].cellSize||"1x1"))),x(n,"session",e[2]),x(n,"userid",e[3]),x(n,"lang",e[1]),x(n,"searchitem",e[22]),x(n,"favorites",e[4]),x(n,"gamethumbnail",i=e[77].thumbnail),x(n,"gamename",s=e[77].name),x(n,"gamevendor",o=e[77].vendor.name),x(n,"gameisnew",l=e[77].isNew),x(n,"gametag",c=0<e[77].advancedTags?.length&&e[33](e[77].advancedTags)),x(n,"gamecellsize",d=e[77].cellSize),x(n,"gameid",u=e[77].id),x(n,"gamefunmode",m=e[77].hasFunMode),x(n,"gamefavorite",h=e[77].isFavorite),x(n,"currency",e[7]),x(n,"livelobbyendpoint",g=e[77].details?e[77].href:""),x(n,"clientstyling",e[5]),x(n,"clientstylingurl",e[6]),x(n,"endpoint",e[0]),x(n,"livecasino",e[8]),x(n,"gamepagemodalurl",e[9]),x(n,"integratedgameframedesktop",e[10]),x(n,"integratedgameframemobile",e[11])},m(e,t){ue(e,n,t)},p(e,t){262144&t[0]&&a!==(a=""+($+(e[77].cellSize||"1x1")))&&x(n,"class",a),262144&t[0]&&r!==(r=""+($+(e[77].cellSize||"1x1")))&&x(n,"part",r),4&t[0]&&x(n,"session",e[2]),8&t[0]&&x(n,"userid",e[3]),2&t[0]&&x(n,"lang",e[1]),4194304&t[0]&&x(n,"searchitem",e[22]),16&t[0]&&x(n,"favorites",e[4]),262144&t[0]&&i!==(i=e[77].thumbnail)&&x(n,"gamethumbnail",i),262144&t[0]&&s!==(s=e[77].name)&&x(n,"gamename",s),262144&t[0]&&o!==(o=e[77].vendor.name)&&x(n,"gamevendor",o),262144&t[0]&&l!==(l=e[77].isNew)&&x(n,"gameisnew",l),262144&t[0]&&c!==(c=0<e[77].advancedTags?.length&&e[33](e[77].advancedTags))&&x(n,"gametag",c),262144&t[0]&&d!==(d=e[77].cellSize)&&x(n,"gamecellsize",d),262144&t[0]&&u!==(u=e[77].id)&&x(n,"gameid",u),262144&t[0]&&m!==(m=e[77].hasFunMode)&&x(n,"gamefunmode",m),262144&t[0]&&h!==(h=e[77].isFavorite)&&x(n,"gamefavorite",h),128&t[0]&&x(n,"currency",e[7]),262144&t[0]&&g!==(g=e[77].details?e[77].href:"")&&x(n,"livelobbyendpoint",g),32&t[0]&&x(n,"clientstyling",e[5]),64&t[0]&&x(n,"clientstylingurl",e[6]),1&t[0]&&x(n,"endpoint",e[0]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"gamepagemodalurl",e[9]),1024&t[0]&&x(n,"integratedgameframedesktop",e[10]),2048&t[0]&&x(n,"integratedgameframemobile",e[11])},d(e){e&&me(n)}}}function Wr(e){let n;return{c(){(n=he("p")).textContent="500 Error - Internal Server Error.",fe(n,"class","SearchLoading"),fe(n,"part","SearchLoading")},m(e,t){ue(e,n,t)},d(e){e&&me(n)}}}function zr(e){let n;return{c(){(n=he("p")).textContent="404 Error - No result found.",fe(n,"class","SearchLoading"),fe(n,"part","SearchLoading")},m(e,t){ue(e,n,t)},d(e){e&&me(n)}}}function Vr(n){let a;function r(e){return e[16]?fr:e[20]?pr:gr}let i=r(n),s=i(n);return{c(){a=he("div"),s.c(),this.c=W,fe(a,"class","CasinoGamesCategorySectionContainer"),fe(a,"part","CasinoGamesCategorySectionContainer")},m(e,t){ue(e,a,t),s.m(a,null),n[53](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s.d(),n[53](null)}}}customElements.get("casino-game-thumbnail")||customElements.define("casino-game-thumbnail",class extends e{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}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameInnerContainer .GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:15}@media(min-width: 1100px){.GamesWrapper .ListGame:hover .GamePlayNowText{z-index:4}}.ListGame:hover .OpenSeat,.ListGame:hover .ClosedSeat,.ListGame:hover .LiveLimits,.ListGame:hover .LatestResult,.ListGame:hover .FullTable,.ListGame:active .OpenSeat,.ListGame:active .ClosedSeat,.ListGame:active .LiveLimits,.ListGame:active .LatestResult,.ListGame:active .FullTable{opacity:.2}.ListGame.GameBackdrop .GameInnerContainer::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, black 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:' ';width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:' ';width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow,.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{overflow:auto}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 16px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons{min-height:auto}}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 1px;margin-right:6px;font-size:14px;text-align:center}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;font-size:14px;margin:0 2px;margin-right:5px;padding:2px}}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{padding:4px}}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}@media(min-width: 768px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}@media(min-width: 1100px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}.ListGame .GameInnerContainer .OpenSeat svg,.ListGame .GameInnerContainer .ClosedSeat svg{width:100%;height:100%}.ListGame .GameInnerContainer .OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .OpenSeat svg{fill:transparent;stroke:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .ClosedSeat svg{fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.ListGame .GameInnerContainer .FullTable svg{width:100%;height:100%;fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable.ClosedSeat{margin-right:-3px}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}@media(min-width: 1100px){.ListGame .GameInnerContainer .PlayersDisplay{padding:2px 16px}}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}@media(min-width: 1100px){.ListGame .GameInnerContainer .ClosedGame{padding:8px 16px}}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 20px 5px 20px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveLimits{padding:2px 18px 5px 18px}}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},dr,ir,t,{session:48,userid:49,lang:1,clientstyling:50,clientstylingurl:51,translationurl:52,favorites:2,gamethumbnail:3,gamename:4,gamevendor:5,gameid:6,gameisnew:7,gametag:8,gamefunmode:53,searchitem:54,gamefavorite:0,gamecellsize:9,showfavoredcategory:55,showgamename:10,currency:56,gamepagemodalurl:57,endpoint:58,livelobbyendpoint:59,connectlive:60,visibilityconnect:61,integratedgameframedesktop:62,integratedgameframemobile:63,MONEY_WHEEL_COLOR_MAP:64,ROULETTE_COLOR_MAP:65},null,[-1,-1,-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","translationurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gametag","gamefunmode","searchitem","gamefavorite","gamecellsize","showfavoredcategory","showgamename","currency","gamepagemodalurl","endpoint","livelobbyendpoint","connectlive","visibilityconnect","integratedgameframedesktop","integratedgameframemobile","MONEY_WHEEL_COLOR_MAP","ROULETTE_COLOR_MAP"]}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),f()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[50]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[51]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[52]}set translationurl(e){this.$$set({translationurl:e}),f()}get favorites(){return this.$$.ctx[2]}set favorites(e){this.$$set({favorites:e}),f()}get gamethumbnail(){return this.$$.ctx[3]}set gamethumbnail(e){this.$$set({gamethumbnail:e}),f()}get gamename(){return this.$$.ctx[4]}set gamename(e){this.$$set({gamename:e}),f()}get gamevendor(){return this.$$.ctx[5]}set gamevendor(e){this.$$set({gamevendor:e}),f()}get gameid(){return this.$$.ctx[6]}set gameid(e){this.$$set({gameid:e}),f()}get gameisnew(){return this.$$.ctx[7]}set gameisnew(e){this.$$set({gameisnew:e}),f()}get gametag(){return this.$$.ctx[8]}set gametag(e){this.$$set({gametag:e}),f()}get gamefunmode(){return this.$$.ctx[53]}set gamefunmode(e){this.$$set({gamefunmode:e}),f()}get searchitem(){return this.$$.ctx[54]}set searchitem(e){this.$$set({searchitem:e}),f()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$$set({gamefavorite:e}),f()}get gamecellsize(){return this.$$.ctx[9]}set gamecellsize(e){this.$$set({gamecellsize:e}),f()}get showfavoredcategory(){return this.$$.ctx[55]}set showfavoredcategory(e){this.$$set({showfavoredcategory:e}),f()}get showgamename(){return this.$$.ctx[10]}set showgamename(e){this.$$set({showgamename:e}),f()}get currency(){return this.$$.ctx[56]}set currency(e){this.$$set({currency:e}),f()}get gamepagemodalurl(){return this.$$.ctx[57]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get endpoint(){return this.$$.ctx[58]}set endpoint(e){this.$$set({endpoint:e}),f()}get livelobbyendpoint(){return this.$$.ctx[59]}set livelobbyendpoint(e){this.$$set({livelobbyendpoint:e}),f()}get connectlive(){return this.$$.ctx[60]}set connectlive(e){this.$$set({connectlive:e}),f()}get visibilityconnect(){return this.$$.ctx[61]}set visibilityconnect(e){this.$$set({visibilityconnect:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[62]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get integratedgameframemobile(){return this.$$.ctx[63]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get MONEY_WHEEL_COLOR_MAP(){return this.$$.ctx[64]}get ROULETTE_COLOR_MAP(){return this.$$.ctx[65]}});const $="game-tile-";function Zr(e,t,o){let A;Ve(e,Ta,e=>o(31,A=e));let i,s,l,n,O,a,c,r,d,u,{categoryindex:N=""}=t,{endpoint:m=""}=t,{datasource:h=""}=t,{lang:g=""}=t,{session:D=""}=t,{userid:B=""}=t,{favorites:p=""}=t,{clientstyling:f=""}=t,{clientstylingurl:y=""}=t,{translationurl:b=""}=t,{currency:H=""}=t,{categoryid:v=""}=t,{categorygames:j=0}=t,{livecasino:U="false"}=t,{visiblegames:Y=""}=t,{gamepagemodalurl:W="false"}=t,{integratedgameframedesktop:z="false"}=t,{integratedgameframemobile:V="false"}=t,{casinomygames:w="false"}=t,{once:Z=!0}=t,{top:K=0}=t,{bottom:X=0}=t,{left:J=0}=t,{right:q=0}=t,$=!0,x=!1,S=!0,Q=window.navigator.userAgent,_=[],k=!0,C=40,T=!1,G=!1,ee=!1,M=!1,E=!1,te=!0,L=!1,ne=!1,P=new Array(1e4),F={},ae="",R={items:[],count:0,name:""},re=(Object.keys(La).forEach(e=>{Ea(e,La[e])}),void 0!==document.hidden?d="hidden":void 0!==document.msHidden?d="msHidden":void 0!==document.webkitHidden&&(d="webkitHidden"),new IntersectionObserver(e=>{e.forEach(async e=>{var t=e.target.gameid,n=e.target.elems_index;e.isIntersecting?(1.2*n>C&&oe(v),o(28,F[t]=1,F)):o(28,F[t]=0,F)})}));const ie=(e,a,r,t=0)=>{let n,i="",s=(o(15,$=!0),i=1<(v.match(/\$/g)||[]).length?(n=v.split("$").slice(0,2).join("$"),new URL(`${m}/casino/groups/${h}/${n}/subGroups`)):new URL(`${m}/casino/groups/${h}/`+v),JSON.parse(sessionStorage.getItem("vendorFiltersByCategory")));return new Promise((t,n)=>{if(i.searchParams.delete("pagination"),i.searchParams.append("expand","games(vendor)"),i.searchParams.append("fields","id,name,games"),i.searchParams.append("platform",ze(Q)),i.searchParams.append("pagination",`games(offset=${a},limit=${r})`),i.searchParams.append("language",g),window.postMessage({type:"CategoryVendors",categoryid:v},window.location.href),s&&s[v])if(s[v].length&&!1===S&&!1===L){let t="";o(23,E=!0),s[v].forEach(e=>{t+=t?", id="+e:"id="+e}),i.searchParams.append("filter",`games(vendor(${t}))`)}else o(23,E=!1);fetch(i).then(e=>e.json()).then(e=>{o(15,$=!1),1<(v.match(/\$/g)||[]).length&&(e=e.items.filter(e=>{if(e.id==v)return e})[0]),o(46,u=!0),o(16,x=!1),O=e.games.total,t(e)},e=>{o(16,x=!0),console.error(e),n(e)})})},se=t=>{if(t.data)switch(t.data.type){case"MostPlayedData":"MOSTPLAYED"==v&&(o(20,T=!1),S=!1,o(19,k=!1),o(18,_=t.data.mostPlayedGames),o(17,l={id:"MOSTPLAYED",name:"Most Played Games",games:{count:t.data.mostPlayedGames.length,total:t.data.mostPlayedGames.length,items:t.data.mostPlayedGames}})),o(15,$=!1);break;case"LastPlayedData":"LASTPLAYED"==v&&(o(20,T=!1),S=!1,o(19,k=!1),o(18,_=t.data.lastPlayedGames),o(17,l={id:"LASTPLAYED",name:"Last Played Games",games:{count:t.data.lastPlayedGames.length,total:t.data.lastPlayedGames.length,items:t.data.lastPlayedGames}})),o(15,$=!1);break;case"CustomOperatorData":t.data.operatordetail;break;case"RecentSearchData":o(20,T=!0),o(21,G=!0),0<t.data.searchData.length?(o(18,_=t.data.searchData),o(24,te=!0),_&&_.forEach(e=>{e.isFavorite=I(e.id)})):(o(18,_=[]),o(24,te=!1));break;case"OutOfRecentSearches":o(20,T=!1),o(21,G=!1);break;case"SearchData":o(20,T=!0),o(21,G=!1),o(18,_=t.data.searchData.items||[]),o(22,M=!0),t.data.receivedFavoriteResults&&(c=t.data.receivedFavoriteResults.items),_&&_.forEach(e=>{e.isFavorite=I(e.id)});break;case"CategoryData_"+v:o(20,T=!1),S=!0,o(19,k=!0),o(22,M=!1),ne=!1,t.data.receivedFavoriteResults&&(c=t.data.receivedFavoriteResults.items),ie(t.data.categoryId,0,t.data.visiblegames).then(e=>{o(17,l=e),o(18,_=l.games.items),_&&_.forEach(e=>{e.isFavorite=I(e.id)})});break;case"CategoryChange":C=20;break;case"CategoryUpdate":o(20,T=!1),S=!1,o(22,M=!1),ne=!0,o(35,v=t.data.itemId),"MOSTPLAYED"!==v&&o(19,k=!1),"true"!==w&&ie(0,0,C).then(e=>{o(17,l=e),l.games.items.forEach(e=>{e.isFavorite=I(e.id)}),o(18,_=l.games.items),o(19,k=!1),_.length<10&&(ee=!0,setTimeout(()=>{window.postMessage({type:"WidgetTopReference",scrollTop:ee},window.location.href)},500))});break;case"FavoriteUpdate":S=!0,o(18,_=l.games.items),_.forEach(e=>{e.isFavorite=I(e.id)});break;case"UpdateCategoryFavoriteGames":if(t.data.receivedFavoriteResults){if(c=t.data.receivedFavoriteResults.items,t.data.favStadalone)return;L?S||window.postMessage({type:"CategoryUpdate",itemId:v},window.location.href):window.postMessage({type:"FavoriteUpdate"},window.location.href)}break;case"ShowFavoriteSection":let e;S=!1,t.data&&((e=t.data.receivedFavoriteResults.items).length&&e.forEach(e=>{e.gameModel&&(e.gameModel.isFavorite=!!e.gameModel)}),o(30,R.items=(n=e,R.items,r=window.navigator.userAgent,We(r)?n.filter(e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad")||e.gameModel.platform.includes("iPhone")||e.gameModel.platform.includes("Android")))return e}):n.filter(e=>{if(e.gameModel&&e.gameModel.platform.includes("PC"))return e})),R),o(30,R.name="Favorites",R),o(27,L=!0),o(15,$=!1));break;case"UserSessionID":if(i=t.data.session,s=t.data.userID,"true"==p&&s&&s.length&&i&&0<i.length){var a=`${m}/player/${s}/favorites/`;r=i;o(15,$=!0);let e={method:"GET",headers:{"X-SessionID":r}};new Promise((t,n)=>{fetch(a,e).then(e=>e.json()).then(e=>{o(15,$=!1),c=e?e.items:[],_.forEach(e=>{e.isFavorite=I(e.id)});e=_;o(18,_=void 0),o(18,_=e),t(c)}).catch(e=>{console.error(e),n(e)})})}}var n,r},oe=e=>{(C+=1)<=O&&ie(0,0,C).then(e=>{o(17,l=e),l.games.items.length>_.length&&(o(18,_=l.games.items),_.forEach(e=>{e.isFavorite=I(e.id)}))})},I=t=>!!c&&-1!==c.findIndex(e=>e.id==t),le=e=>{window.postMessage({type:"CategoryChange",itemId:e},window.location.href)};return Ze(()=>(window.addEventListener("visibilitychange",e=>{document[d]?o(29,ae="disconnect"):o(29,ae="connect")}),window.addEventListener("message",se,!1),"FAVORITES"===v&&window.postMessage({type:"GetFavoredGame"},window.location.href),()=>{window.removeEventListener("message",se),window.removeEventListener("visibilitychange",se)})),e.$$set=e=>{"categoryindex"in e&&o(36,N=e.categoryindex),"endpoint"in e&&o(0,m=e.endpoint),"datasource"in e&&o(37,h=e.datasource),"lang"in e&&o(1,g=e.lang),"session"in e&&o(2,D=e.session),"userid"in e&&o(3,B=e.userid),"favorites"in e&&o(4,p=e.favorites),"clientstyling"in e&&o(5,f=e.clientstyling),"clientstylingurl"in e&&o(6,y=e.clientstylingurl),"translationurl"in e&&o(38,b=e.translationurl),"currency"in e&&o(7,H=e.currency),"categoryid"in e&&o(35,v=e.categoryid),"categorygames"in e&&o(39,j=e.categorygames),"livecasino"in e&&o(8,U=e.livecasino),"visiblegames"in e&&o(40,Y=e.visiblegames),"gamepagemodalurl"in e&&o(9,W=e.gamepagemodalurl),"integratedgameframedesktop"in e&&o(10,z=e.integratedgameframedesktop),"integratedgameframemobile"in e&&o(11,V=e.integratedgameframemobile),"casinomygames"in e&&o(12,w=e.casinomygames),"once"in e&&o(41,Z=e.once),"top"in e&&o(42,K=e.top),"bottom"in e&&o(43,X=e.bottom),"left"in e&&o(44,J=e.left),"right"in e&&o(45,q=e.right)},e.$$.update=()=>{if(16384&e.$$.dirty[0]|32768&e.$$.dirty[1]&&u&&P&&ne&&P.forEach((e,t)=>{e&&(e.elems_index=t,re.observe(e))}),2&e.$$.dirty[0]|16&e.$$.dirty[1]&&g&&v)switch(v){case"FAVORITES":o(27,L=!0);break;case"MOSTPLAYED":case"LASTPLAYED":"false"===w&&o(27,L=!1)}if(128&e.$$.dirty[1]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ea(e,t[e])})}).catch(e=>{console.log(e)}),8224&e.$$.dirty[0]&&f&&r){let e=document.createElement("style");e.innerHTML=f,r.appendChild(e)}if(8256&e.$$.dirty[0]&&y&&r){let e=new URL(y),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}},[m,g,D,B,p,f,y,H,U,W,z,V,w,r,P,$,x,l,_,k,T,G,M,E,te,n,a,L,F,ae,R,A,Q,a=>{if(0===(null==a?void 0:a.length))return"";let r,i,s=99999999999;const o=new Date(Date.now());return a.forEach((e,t)=>{var n=new Date(e.schedules[0].startTime),e=new Date(e.schedules[0].endTime);Ra(e).diff(o)<s&&(s=Ra(e).diff(o),i=t),Ra(o).isAfter(n)&&Ra(o).isBefore(e)&&(r=a[i].name)}),r},le,v,N,h,b,j,Y,Z,K,X,J,q,u,function(e){Ue[e?"unshift":"push"](()=>{a=e,o(26,a)})},e=>le(l.id),function(e,t){Ue[e?"unshift":"push"](()=>{P[t]=e,o(14,P)})},function(e){Ue[e?"unshift":"push"](()=>{n=e,o(25,n)})},function(e){Ue[e?"unshift":"push"](()=>{a=e,o(26,a)})},function(e){Ue[e?"unshift":"push"](()=>{n=e,o(25,n)})},function(e){Ue[e?"unshift":"push"](()=>{r=e,o(13,r)})}]}function Kr(e,t){oa(e,t)}customElements.get("casino-games-category-section")||customElements.define("casino-games-category-section",class extends e{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}.CategoryName,.StatusText{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-color-white, #FFFFFF)}.NoSearchResults{color:var(--emfe-w-color-white, #FFFFFF);text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .UnfavoredIcon{width:50px;height:50px}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-color-white, #FFFFFF);font-size:13px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 5px 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(Min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}@media screen and (max-width: 385px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(Min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (max-width: 480px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(Min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (min-width: 1100px){.CasinoGamesGrid{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-color-white, #FFFFFF)}.lds-dual-ring{display:block;width:80px;height:80px;margin:0 auto}.lds-dual-ring:after{content:\" \";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Zr,Vr,t,{categoryindex:36,endpoint:0,datasource:37,lang:1,session:2,userid:3,favorites:4,clientstyling:5,clientstylingurl:6,translationurl:38,currency:7,categoryid:35,categorygames:39,livecasino:8,visiblegames:40,gamepagemodalurl:9,integratedgameframedesktop:10,integratedgameframemobile:11,casinomygames:12,once:41,top:42,bottom:43,left:44,right:45},null,[-1,-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["categoryindex","endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","translationurl","currency","categoryid","categorygames","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","casinomygames","once","top","bottom","left","right"]}get categoryindex(){return this.$$.ctx[36]}set categoryindex(e){this.$$set({categoryindex:e}),f()}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[37]}set datasource(e){this.$$set({datasource:e}),f()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),f()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[3]}set userid(e){this.$$set({userid:e}),f()}get favorites(){return this.$$.ctx[4]}set favorites(e){this.$$set({favorites:e}),f()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[38]}set translationurl(e){this.$$set({translationurl:e}),f()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),f()}get categoryid(){return this.$$.ctx[35]}set categoryid(e){this.$$set({categoryid:e}),f()}get categorygames(){return this.$$.ctx[39]}set categorygames(e){this.$$set({categorygames:e}),f()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),f()}get visiblegames(){return this.$$.ctx[40]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get gamepagemodalurl(){return this.$$.ctx[9]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get integratedgameframemobile(){return this.$$.ctx[11]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get casinomygames(){return this.$$.ctx[12]}set casinomygames(e){this.$$set({casinomygames:e}),f()}get once(){return this.$$.ctx[41]}set once(e){this.$$set({once:e}),f()}get top(){return this.$$.ctx[42]}set top(e){this.$$set({top:e}),f()}get bottom(){return this.$$.ctx[43]}set bottom(e){this.$$set({bottom:e}),f()}get left(){return this.$$.ctx[44]}set left(e){this.$$set({left:e}),f()}get right(){return this.$$.ctx[45]}set right(e){this.$$set({right:e}),f()}});const Xr={en:{randomGame:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now"}},zh:{randomGame:{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放"}},de:{randomGame:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuf",playNowRandomGame:"Jetzt spielen"}},fr:{randomGame:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant"}},ro:{randomGame:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum"}},tr:{randomGame:{playRandomGame:"Rastgele Bir Oyun Oyna",randomGameLoading:"Oyun Seçiliyor",playNowRandomGame:"Şimdi Oyna"}},es:{randomGame:{playRandomGame:"Juega un juego aleatorio",randomGameLoading:"Lütfen bekleyin ...",playNowRandomGame:"Şimdi Oyna"}},pt:{randomGame:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora"}}};function Jr(e,t,n){const a=e.slice();return a[34]=t[n],a[36]=n,a}function qr(n){let a,r,i,s,o,l,c,d=!n[7]&&Qr(n),u=n[7]&&ti(n);return{c(){a=he("div"),r=he("div"),(i=he("span")).innerHTML='<slot name="close"><svg class="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></slot>',s=pe(),d&&d.c(),o=pe(),u&&u.c(),fe(i,"class","ModalCloseBtn"),fe(i,"part","ModalCloseBtn"),fe(i,"role","button"),fe(r,"class","ModalContainer"),fe(r,"part","ModalContainer"),fe(a,"class","ModalWindow"),fe(a,"part","ModalWindow")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(r,s),d&&d.m(r,null),de(r,o),u&&u.m(r,null),l||(c=z(i,"click",n[11]),l=!0)},p(e,t){e[7]?d&&(d.d(1),d=null):d?d.p(e,t):((d=Qr(e)).c(),d.m(r,o)),e[7]?u?u.p(e,t):((u=ti(e)).c(),u.m(r,null)):u&&(u.d(1),u=null)},d(e){e&&me(a),d&&d.d(),u&&u.d(),l=!1,c()}}}function Qr(t){let n,a,r,i,s,o,e=t[8]("randomGame.randomGameLoading")+"",l=t[4],c=[];for(let e=0;e<l.length;e+=1)c[e]=ei(Jr(t,l,e));return{c(){n=he("div"),a=he("main"),r=he("div");for(let e=0;e<c.length;e+=1)c[e].c();i=pe(),s=he("p"),o=ge(e),fe(r,"class","items"),fe(r,"part","items"),S(r,"transform","translateY("+t[6]+"px)"),fe(a,"class","RandomGamesSliderWrapper"),fe(a,"part","RandomGamesSliderWrapper"),fe(s,"class","RandomGameLoading"),fe(s,"part","RandomGameLoading"),fe(n,"class","RandomGameWrapper"),fe(n,"part","RandomGameWrapper")},m(e,t){ue(e,n,t),de(n,a),de(a,r);for(let e=0;e<c.length;e+=1)c[e].m(r,null);de(n,i),de(n,s),de(s,o)},p(t,n){if(16&n[0]){let e;for(l=t[4],e=0;e<l.length;e+=1){var a=Jr(t,l,e);c[e]?c[e].p(a,n):(c[e]=ei(a),c[e].c(),c[e].m(r,null))}for(;e<c.length;e+=1)c[e].d(1);c.length=l.length}64&n[0]&&S(r,"transform","translateY("+t[6]+"px)"),256&n[0]&&e!==(e=t[8]("randomGame.randomGameLoading")+"")&&ye(o,e)},d(e){e&&me(n),C(c,e)}}}function ei(e){let n,a,r,i,s,o;return{c(){n=he("div"),a=he("img"),o=pe(),fe(a,"class","RandomGameImage"),fe(a,"part","RandomGameImage"),ce(a.src,r=e[34].thumbnail)||fe(a,"src",r),fe(a,"alt",i=e[34].name),fe(a,"title",s=e[34].name),fe(n,"class","item"),fe(n,"part","item")},m(e,t){ue(e,n,t),de(n,a),de(n,o)},p(e,t){16&t[0]&&!ce(a.src,r=e[34].thumbnail)&&fe(a,"src",r),16&t[0]&&i!==(i=e[34].name)&&fe(a,"alt",i),16&t[0]&&s!==(s=e[34].name)&&fe(a,"title",s)},d(e){e&&me(n)}}}function ti(n){let a,r,i,s,o,l,c,d,u,m,h,g,p,f,y,b,v,w,$,x,S=n[3].name+"",_=n[3].vendor.name+"",k=n[8]("randomGame.playNowRandomGame")+"";return{c(){a=he("div"),r=he("div"),i=he("img"),c=pe(),(d=he("button")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-color-white, #FFFFFF);;}\n </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>',u=pe(),m=he("div"),h=he("p"),g=ge(S),p=pe(),f=he("p"),y=ge(_),b=pe(),v=he("button"),w=ge(k),fe(i,"class","RandomGameImage"),fe(i,"part","RandomGameImage"),ce(i.src,s=n[3].thumbnail)||fe(i,"src",s),fe(i,"alt",o=n[3].name),fe(i,"title",l=n[3].name),fe(d,"class","RandomTryAgain"),fe(d,"part","RandomTryAgain"),fe(r,"class","item"),fe(r,"part","item"),fe(h,"class","RandomGameTitle"),fe(h,"part","RandomGameTitle"),fe(f,"class","RandomGameVendor"),fe(f,"part","RandomGameVendor"),fe(v,"class","RandomGamePlay"),fe(v,"part","RandomGamePlay"),fe(m,"class","RandomGameDetails"),fe(m,"part","RandomGameDetails"),fe(a,"class","RandomGameWrapper"),fe(a,"part","RandomGameWrapper")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(r,c),de(r,d),de(a,u),de(a,m),de(m,h),de(h,g),de(m,p),de(m,f),de(f,y),de(m,b),de(m,v),de(v,w),$||(x=[z(d,"click",n[20]),z(v,"click",n[21])],$=!0)},p(e,t){8&t[0]&&!ce(i.src,s=e[3].thumbnail)&&fe(i,"src",s),8&t[0]&&o!==(o=e[3].name)&&fe(i,"alt",o),8&t[0]&&l!==(l=e[3].name)&&fe(i,"title",l),8&t[0]&&S!==(S=e[3].name+"")&&ye(g,S),8&t[0]&&_!==(_=e[3].vendor.name+"")&&ye(y,_),256&t[0]&&k!==(k=e[8]("randomGame.playNowRandomGame")+"")&&ye(w,k)},d(e){e&&me(a),$=!1,V(x)}}}function ni(e){let n,a,r=e[8]("randomGame.playRandomGame")+"";return{c(){n=he("span"),a=ge(r),fe(n,"class","RandomButtonText"),fe(n,"part","RandomButtonText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){256&t[0]&&r!==(r=e[8]("randomGame.playRandomGame")+"")&&ye(a,r)},d(e){e&&me(n)}}}function ai(e){let n,a;return{c(){n=he("span"),a=ge(e[1]),fe(n,"class","RandomButtonText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){2&t[0]&&ye(a,e[1])},d(e){e&&me(n)}}}function ri(n){let a,r,i,s,o,l,c,d,u=n[5]&&qr(n);function m(e){return e[1]?ai:e[1]?void 0:ni}let h=m(n),g=h&&h(n);return{c(){a=he("div"),u&&u.c(),r=pe(),i=he("div"),s=he("button"),g&&g.c(),o=pe(),l=he("span"),this.c=W,fe(l,"class","RandomButtonIcon"),fe(l,"part","RandomButtonIcon"),fe(s,"class","RandomButton"),fe(s,"part","RandomButton"),fe(i,"class","RandomButtonWrapper"),fe(i,"part","RandomButtonWrapper"),fe(a,"part","CustomStylingContainer")},m(e,t){ue(e,a,t),u&&u.m(a,null),de(a,r),de(a,i),de(i,s),g&&g.m(s,null),de(s,o),de(s,l),l.innerHTML=n[0],n[23](a),c||(d=z(s,"click",n[22]),c=!0)},p(e,t){e[5]?u?u.p(e,t):((u=qr(e)).c(),u.m(a,r)):u&&(u.d(1),u=null),h===(h=m(e))&&g?g.p(e,t):(g&&g.d(1),(g=h&&h(e))&&(g.c(),g.m(s,o))),1&t[0]&&(l.innerHTML=e[0])},i:W,o:W,d(e){e&&me(a),u&&u.d(),g&&g.d(),n[23](null),c=!1,d()}}}function ii(t,e,n){let a;Ve(t,Ta,e=>n(8,a=e));let r,i,{endpoint:s=""}=e,{datasource:o=""}=e,{gameevent:l=""}=e,{lang:c=""}=e,{randombuttonicon:d=""}=e,{buttontext:u=""}=e,{translationurl:m=""}=e,{clientstyling:h=""}=e,{clientstylingurl:g=""}=e,{filteredrandomgamecategories:p=""}=e,f=[],y="",b=!1,v=0,w=0,$=!1,x=window.navigator.userAgent;var S,_;({withLocale:S,translations:_}={withLocale:"en",translations:{}}),Ye.subscribe(e=>{null==e&&(ia.set(_),Ye.set(S))}),Object.keys(Xr).forEach(e=>{Kr(e,Xr[e])});const k=()=>{n(4,r=T(r)),n(6,v=0),w=0,n(7,$=!1),n(3,y=f[Math.floor(Math.random()*f.length)]),n(5,b=!0)},C=e=>{if(p)for(;k(),!p.includes(y.vendor.name););else k();let t=setInterval(()=>{n(6,v-=100),20==++w&&(n(7,$=!0),clearInterval(t))},100);e&&"function"==typeof gtag&&gtag("event","RefreshRandomGame",{context:"RandomGameWidget",gameId:""+(y.gId||y.id)})},T=e=>{let t,n=e.length;for(;0!=n;)t=Math.floor(Math.random()*n),n--,[e[n],e[t]]=[e[t],e[n]];return e},G=()=>{window.postMessage({type:l,gameId:y.gId||y.id},window.location.href),n(5,b=!1),"function"==typeof gtag&&gtag("event","OpenGame",{context:"RandomGameWidget",gameId:""+(y.gId||y.id)})};return t.$$set=e=>{"endpoint"in e&&n(12,s=e.endpoint),"datasource"in e&&n(13,o=e.datasource),"gameevent"in e&&n(14,l=e.gameevent),"lang"in e&&n(15,c=e.lang),"randombuttonicon"in e&&n(0,d=e.randombuttonicon),"buttontext"in e&&n(1,u=e.buttontext),"translationurl"in e&&n(16,m=e.translationurl),"clientstyling"in e&&n(17,h=e.clientstyling),"clientstylingurl"in e&&n(18,g=e.clientstylingurl),"filteredrandomgamecategories"in e&&n(19,p=e.filteredrandomgamecategories)},t.$$.update=()=>{if(32768&t.$$.dirty[0]&&c&&(e=c,Ye.set(e)),65536&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Kr(e,t[e])})}).catch(e=>{console.log(e)}),12288&t.$$.dirty[0]&&s&&o){let e=new URL(s+"/casino/games");e.searchParams.append("platform",ze(x)),e.searchParams.append("datasource",o),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=1000"),fetch(e.href).then(e=>e.json()).then(e=>{f=e.items,n(4,r=f.slice(0,19))})}if(131076&t.$$.dirty[0]&&h&&i){let e=document.createElement("style");e.innerHTML=h,i.appendChild(e)}if(262148&t.$$.dirty[0]&&g&&i){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e},[d,u,i,y,r,b,v,$,a,C,G,()=>{n(5,b=!1)},s,o,l,c,m,h,g,p,()=>C(!0),()=>G(),()=>C(),function(e){Ue[e?"unshift":"push"](()=>{i=e,n(2,i)})}]}function si(e,t){oa(e,t)}customElements.get("casino-random-game")||customElements.define("casino-random-game",class extends e{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;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.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, #FD2839);border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, #FD2839);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper{height:170px;overflow:hidden}.items{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading{padding:30px 0}.RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:-10px;right:-10px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ii,ri,t,{endpoint:12,datasource:13,gameevent:14,lang:15,randombuttonicon:0,buttontext:1,translationurl:16,clientstyling:17,clientstylingurl:18,filteredrandomgamecategories:19},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","gameevent","lang","randombuttonicon","buttontext","translationurl","clientstyling","clientstylingurl","filteredrandomgamecategories"]}get endpoint(){return this.$$.ctx[12]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[13]}set datasource(e){this.$$set({datasource:e}),f()}get gameevent(){return this.$$.ctx[14]}set gameevent(e){this.$$set({gameevent:e}),f()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),f()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(e){this.$$set({randombuttonicon:e}),f()}get buttontext(){return this.$$.ctx[1]}set buttontext(e){this.$$set({buttontext:e}),f()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),f()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get filteredrandomgamecategories(){return this.$$.ctx[19]}set filteredrandomgamecategories(e){this.$$set({filteredrandomgamecategories:e}),f()}});const oi={en:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},zh:{Translations:{recentWinners:"最近的获奖者",topWinners:"最佳获奖者",won:"刚赢"}},de:{Translations:{recentWinners:"Kürzliche Gewinner",topWinners:"Top Gewinner",won:"Eben gewonnen"}},it:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},fr:{Translations:{recentWinners:"Gagnants récents",topWinners:"Meilleurs gagnants",won:"vient de gagner"}},es:{Translations:{recentWinners:"Ganadores recientes",topWinners:"Top Ganadores",won:"acaba de ganar"}},el:{Translations:{recentWinners:"Πρόσφατοι νικητές",topWinners:"Κορυφαίοι νικητές",won:"μόλις κέρδισε"}},tr:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},ru:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},ro:{Translations:{recentWinners:"Ultimii câștigători",topWinners:"Câștigători de top",won:"tocmai a câștigat"}},hr:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},hu:{Translations:{recentWinners:"Legutóbbi nyertesek",topWinners:"Top nyertesek",won:"Nyert"}},pl:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},pt:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},sl:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},sr:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}}};function li(e,t,n){const a=e.slice();return a[60]=t[n],a}function ci(e,t,n){const a=e.slice();return a[63]=t[n],a}function di(n){let i,a,s,r,o,l,c,d,e,u,m,h,g,p,f,y,b,v,w,$,x=n[14],S=[];for(let e=0;e<x.length;e+=1)S[e]=gi(ci(n,x,e));let _=n[8],k=[];for(let e=0;e<_.length;e+=1)k[e]=pi(li(n,_,e));return{c(){i=he("div"),a=he("div"),s=he("div");for(let e=0;e<S.length;e+=1)S[e].c();r=pe(),o=he("div"),l=he("button"),c=M("svg"),d=M("path"),u=pe(),m=he("button"),h=M("svg"),g=M("path"),y=pe(),b=he("div");for(let e=0;e<k.length;e+=1)k[e].c();fe(s,"class","WinnerButtonsContainer"),fe(d,"style",e=n[9]>=n[8].length?"fill:#F6F6F62E":""),fe(d,"id","Path_36"),fe(d,"data-name","Path 36"),fe(d,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),fe(d,"transform","translate(14.656 0) rotate(90)"),fe(d,"fill","#fff"),fe(c,"id","Component_46_2"),fe(c,"data-name","Component 46 – 2"),fe(c,"xmlns","http://www.w3.org/2000/svg"),fe(c,"width","15"),fe(c,"height","15"),fe(c,"viewBox","0 0 16 24.656"),fe(l,"class","SliderButton"),fe(g,"style",p=n[9]>=n[8].length?"fill:#F6F6F62E":""),fe(g,"id","Path_36"),fe(g,"data-name","Path 36"),fe(g,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),fe(g,"transform","translate(0 24.656) rotate(-90)"),fe(g,"fill","#fff"),fe(h,"id","Component_46_2"),fe(h,"data-name","Component 46 – 2"),fe(h,"xmlns","http://www.w3.org/2000/svg"),fe(h,"width","15"),fe(h,"height","15"),fe(h,"viewBox","0 0 16 24.656"),fe(m,"class","SliderButton"),fe(o,"class",f="ButtonsContainer "+("true"==n[4]?"ButtonsContainerNone":"")),fe(a,"class","WinnersHeader"),fe(b,"class","WinnersSlider"),fe(i,"class",v="CasinoWinners "+(n[10]?"Mobile":""))},m(e,t){ue(e,i,t),de(i,a),de(a,s);for(let e=0;e<S.length;e+=1)S[e].m(s,null);de(a,r),de(a,o),de(o,l),de(l,c),de(c,d),de(o,u),de(o,m),de(m,h),de(h,g),de(i,y),de(i,b);for(let e=0;e<k.length;e+=1)k[e].m(b,null);n[40](b),w||($=[z(l,"click",n[37]),z(m,"click",n[38])],w=!0)},p(t,n){if(114819&n[0]){let e;for(x=t[14],e=0;e<x.length;e+=1){var a=ci(t,x,e);S[e]?S[e].p(a,n):(S[e]=gi(a),S[e].c(),S[e].m(s,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=x.length}if(768&n[0]&&e!==(e=t[9]>=t[8].length?"fill:#F6F6F62E":"")&&fe(d,"style",e),768&n[0]&&p!==(p=t[9]>=t[8].length?"fill:#F6F6F62E":"")&&fe(g,"style",p),16&n[0]&&f!==(f="ButtonsContainer "+("true"==t[4]?"ButtonsContainerNone":""))&&fe(o,"class",f),436492&n[0]){let e;for(_=t[8],e=0;e<_.length;e+=1){var r=li(t,_,e);k[e]?k[e].p(r,n):(k[e]=pi(r),k[e].c(),k[e].m(b,null))}for(;e<k.length;e+=1)k[e].d(1);k.length=_.length}1024&n[0]&&v!==(v="CasinoWinners "+(t[10]?"Mobile":""))&&fe(i,"class",v)},d(e){e&&me(i),C(S,e),C(k,e),n[40](null),w=!1,V($)}}}function ui(e){let n;return{c(){(n=he("p")).textContent="Loading, please wait ..."},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function mi(n){let a,r,i,s,o,l=n[15]("Translations.recentWinners")+"";return{c(){a=he("button"),r=ge(l),fe(a,"class",i="WinnersButton "+("recent"==n[7]?"Active":"")+" "+("false"==n[0]?"Off":""))},m(e,t){ue(e,a,t),de(a,r),s||(o=z(a,"click",n[35]),s=!0)},p(e,t){32768&t[0]&&l!==(l=e[15]("Translations.recentWinners")+"")&&ye(r,l),129&t[0]&&i!==(i="WinnersButton "+("recent"==e[7]?"Active":"")+" "+("false"==e[0]?"Off":""))&&fe(a,"class",i)},d(e){e&&me(a),s=!1,o()}}}function hi(n){let a,r,i,s,o,l,c=n[15]("Translations.topWinners")+"";return{c(){a=he("button"),r=ge(c),i=pe(),fe(a,"class",s="WinnersButton "+("top"==n[7]?"Active":"")+" "+("false"==n[1]?"Off":""))},m(e,t){ue(e,a,t),de(a,r),de(a,i),o||(l=z(a,"click",n[36]),o=!0)},p(e,t){32768&t[0]&&c!==(c=e[15]("Translations.topWinners")+"")&&ye(r,c),130&t[0]&&s!==(s="WinnersButton "+("top"==e[7]?"Active":"")+" "+("false"==e[1]?"Off":""))&&fe(a,"class",s)},d(e){e&&me(a),o=!1,l()}}}function gi(e){let n,a,r="recent"==e[63]&&mi(e),i="top"==e[63]&&hi(e);return{c(){r&&r.c(),n=pe(),i&&i.c(),a=l()},m(e,t){r&&r.m(e,t),ue(e,n,t),i&&i.m(e,t),ue(e,a,t)},p(e,t){"recent"==e[63]?r?r.p(e,t):((r=mi(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null),"top"==e[63]?i?i.p(e,t):((i=hi(e)).c(),i.m(a.parentNode,a)):i&&(i.d(1),i=null)},d(e){r&&r.d(e),e&&me(n),i&&i.d(e),e&&me(a)}}}function pi(n){let a,r,i,s,o,l,c,d,u,m,h,g,p,f,y,b,v,w,$,x,S,_,k,C,T=n[60].gameName+"",G=n[17](n[60].username)+"",M=n[15]("Translations.won")+"",E=n[60].specifiedCurrencyAmount.toFixed(2)+"",L=(n[11]?n[3]:n[2])+"";function P(){return n[39](n[60])}return{c(){a=he("div"),r=he("div"),i=he("img"),l=pe(),c=he("p"),d=ge(T),u=pe(),m=he("p"),h=ge(G),g=pe(),p=he("p"),f=ge(M),y=pe(),b=he("p"),v=ge(E),w=pe(),$=he("span"),x=ge(L),S=pe(),ce(i.src,s=n[60]?.gameModel?.thumbnail)||fe(i,"src",s),fe(i,"alt",o=n[60]?.gameModel?.thumbnail),fe(i,"class","WinnersImage"),fe(p,"class","WinnerUsername"),fe(r,"class","WinnerCard"),fe(a,"class",_="CardWrapper "+(n[13]?"CardWrapperAnimation":""))},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(r,l),de(r,c),de(c,d),de(r,u),de(r,m),de(m,h),de(r,g),de(r,p),de(p,f),de(r,y),de(r,b),de(b,v),de(b,w),de(b,$),de($,x),de(a,S),k||(C=z(i,"click",P),k=!0)},p(e,t){n=e,256&t[0]&&!ce(i.src,s=n[60]?.gameModel?.thumbnail)&&fe(i,"src",s),256&t[0]&&o!==(o=n[60]?.gameModel?.thumbnail)&&fe(i,"alt",o),256&t[0]&&T!==(T=n[60].gameName+"")&&ye(d,T),256&t[0]&&G!==(G=n[17](n[60].username)+"")&&ye(h,G),32768&t[0]&&M!==(M=n[15]("Translations.won")+"")&&ye(f,M),256&t[0]&&E!==(E=n[60].specifiedCurrencyAmount.toFixed(2)+"")&&ye(v,E),2060&t[0]&&L!==(L=(n[11]?n[3]:n[2])+"")&&ye(x,L),8192&t[0]&&_!==(_="CardWrapper "+(n[13]?"CardWrapperAnimation":""))&&fe(a,"class",_)},d(e){e&&me(a),k=!1,C()}}}function fi(n){let a;function r(e){return e[12]?ui:di}let i=r(n),s=i(n);return{c(){a=he("div"),s.c(),this.c=W},m(e,t){ue(e,a,t),s.m(a,null),n[41](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s.d(),n[41](null)}}}function yi(t,e,a){let n;Ve(t,Ta,e=>a(15,n=e));let r,i,s,o,A,l,O,c,d,u,{endpoint:m=""}=e,{session:h=""}=e,{userid:g=""}=e,{periodrecent:p="Today"}=e,{periodtop:f="Last7Days"}=e,{numberusersrecent:y="20"}=e,{numberuserstop:b="20"}=e,{amountlimit:v="1"}=e,{lang:w="en"}=e,{isrecentavailable:$="true"}=e,{istopavailable:x="true"}=e,{defaultcurrency:S=""}=e,{usercurrency:_=""}=e,{clientstyling:k=""}=e,{clientstylingurl:C=""}=e,{enableautoscroll:T=""}=e,{tabsorder:G=""}=e,{translationurl:M=""}=e,E=[],L=0,P=0,N=window.navigator.userAgent,D=!0,F=!1;Object.keys(oi).forEach(e=>{si(e,oi[e])});const B=()=>{const e=new URL(`${m}/casino/${i}-winners`);e.searchParams.append("limit","recent"==i?y:b),e.searchParams.append("specifiedCurrency",u),e.searchParams.append("period","recent"==i?p:f),e.searchParams.append("language",w),e.searchParams.append("amountLimit",v),fetch(e.href).then(e=>e.json()).then(e=>{a(8,E=[]),a(8,E=e.items.map(e=>e)),a(12,D=!1),setTimeout(()=>{a(9,P=Math.round(r.offsetWidth/225)),j(),"true"==T&&(L=0,P<O?c=setInterval(()=>{I()},3e3):clearInterval(c))})})},R=e=>{i!==e&&(a(7,i=e),a(8,E=[]),B())},H=(e,t,n)=>{window.postMessage({type:"OpenCasinoWinnersGame",gameId:e,launchUrl:t,gameName:n},window.location.href),"function"==typeof gtag&&gtag("event","OpenGame",{context:"WinnersWidget",gameId:""+e,userId:""+(A||"Not logged in")})},j=n=>{const e=[...r.children];O=e.length,e.forEach((e,t)=>{e.style.transform=`translateX(${100*(n?t-n:t)}%)`}),"top"==i?setTimeout(()=>{a(13,F=!0)},10):a(13,F=!1)},U=()=>{j(L)},Y=()=>{var e=E.length;P>=E.length||(0===L?L=e-P:L-P<0?L=0:L-=P,U())},I=()=>{var e=E.length;P>=E.length||("true"==T&&(L===e-P?L=0:L++),"false"==T&&(L===e-P?L=0:e-P<L+P?L=e-P:L+=P),U())},W=()=>{a(34,u=o?_:S)};return Ze(()=>(a(10,s=We(N)),()=>{clearInterval(c)})),t.$$set=e=>{"endpoint"in e&&a(22,m=e.endpoint),"session"in e&&a(23,h=e.session),"userid"in e&&a(24,g=e.userid),"periodrecent"in e&&a(25,p=e.periodrecent),"periodtop"in e&&a(26,f=e.periodtop),"numberusersrecent"in e&&a(27,y=e.numberusersrecent),"numberuserstop"in e&&a(28,b=e.numberuserstop),"amountlimit"in e&&a(21,v=e.amountlimit),"lang"in e&&a(29,w=e.lang),"isrecentavailable"in e&&a(0,$=e.isrecentavailable),"istopavailable"in e&&a(1,x=e.istopavailable),"defaultcurrency"in e&&a(2,S=e.defaultcurrency),"usercurrency"in e&&a(3,_=e.usercurrency),"clientstyling"in e&&a(30,k=e.clientstyling),"clientstylingurl"in e&&a(31,C=e.clientstylingurl),"enableautoscroll"in e&&a(4,T=e.enableautoscroll),"tabsorder"in e&&a(32,G=e.tabsorder),"translationurl"in e&&a(33,M=e.translationurl)},t.$$.update=()=>{if(1042284547&t.$$.dirty[0]|2&t.$$.dirty[1]&&$&&x&&p&&f&&y&&b&&v&&w&&G&&(a(14,d=G.split(",")),a(7,i=d[0]),"false"==$&&a(21,v=""),W()),12582912&t.$$.dirty[0]&&h&&m&&(a(11,o=!0),A=g,W()),4194320&t.$$.dirty[0]|8&t.$$.dirty[1]&&m&&u&&T&&B(),536870912&t.$$.dirty[0]&&w&&(e=w,Ye.set(e)),4&t.$$.dirty[1]&&M&&fetch(M).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{si(e,t[e])})}).catch(e=>{console.log(e)}),1073741856&t.$$.dirty[0]&&k&&l){let e=document.createElement("style");e.innerHTML=k,l.appendChild(e)}if(32&t.$$.dirty[0]|1&t.$$.dirty[1]&&C&&l){let e=new URL(C),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{l.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[$,x,S,_,T,l,r,i,E,P,s,o,D,F,d,n,R,e=>e.slice(0,2)+e.slice(2,-2).replace(/./g,"*")+e.slice(-2),H,Y,I,v,m,h,g,p,f,y,b,w,k,C,G,M,u,()=>R("recent"),()=>R("top"),()=>Y(),()=>I(),e=>H(e.gameId,e.gameModel.launchUrl,e.gameModel.name),function(e){Ue[e?"unshift":"push"](()=>{r=e,a(6,r)})},function(e){Ue[e?"unshift":"push"](()=>{l=e,a(5,l)})}]}function bi(e,t){oa(e,t)}customElements.get("casino-winners")||customElements.define("casino-winners",class extends e{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}.Off{display:none}.CasinoWinners{background-color:var(--emfe-w-color-contrast, #07072A);width:100%;height:320px;margin:0 auto}.CasinoWinners.Mobile{padding:25px 10px;height:250px}.WinnersHeader{display:flex;justify-content:space-between}.SliderButton{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px}.SliderButton.SliderButton:active{transform:translateY(1px)}.WinnerButtonsContainer{display:flex;margin-bottom:42px}.WinnersButton{border:none;background:none;color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);line-height:40px}.WinnersButton:focus{color:var(--emfe-w-color-primary, #D0046C);line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-color-primary, #D0046C)}.WinnersButton.Active{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary, #D0046C);line-height:40px}.ButtonsContainerNone{display:none}.WinnersSlider{display:flex;justify-content:flex-start;position:relative;height:180px;overflow:hidden}.CardWrapper{position:absolute;top:0;left:0}.CardWrapperAnimation{transition:transform 2s}.WinnerCard{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;height:180px;min-width:191px;margin-bottom:30px;margin-right:30px}.WinnerCard p:first-of-type{color:var(--emfe-w-color-gray-150, #828282);font-size:14px;inline-size:189px;overflow-wrap:break-word;text-align:center}.WinnerCard p:nth-child(3){text-align:center;color:var(--emfe-w-color-gray-100, #E6E6E6);font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emfe-w-color-gray-100, #E6E6E6);font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emfe-w-color-primary, #D0046C);font-size:16px}.WinnerCard:hover{border:1px solid rgba(255, 255, 255, 0.4)}.WinnersImage{border-radius:5px;height:54px;margin-bottom:10px;width:80px;cursor:pointer}.Mobile .WinnersHeader{justify-content:flex-start}.Mobile .WinnersButton{font-size:18px;white-space:nowrap;margin-right:40px}.Mobile .WinnersButton.Active{padding-bottom:4px}.Mobile .WinnersSlider{overflow:scroll;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.Mobile .WinnersSlider::-webkit-scrollbar{display:none}.Mobile .SliderButton{display:none}.Mobile .WinnerCard{width:140px;height:150px;min-width:140px;margin-right:12px}.Mobile .WinnerCard p:first-of-type{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;width:100px}.Mobile .WinnerCard p:nth-child(3){font-size:10px}.Mobile .WinnerCard p:nth-child(4){font-size:8px;font-weight:300;text-align:center}.Mobile .WinnerCard p:last-of-type{font-size:11px}.Mobile .WinnerButtonsContainer{margin-bottom:20px}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},yi,fi,t,{endpoint:22,session:23,userid:24,periodrecent:25,periodtop:26,numberusersrecent:27,numberuserstop:28,amountlimit:21,lang:29,isrecentavailable:0,istopavailable:1,defaultcurrency:2,usercurrency:3,clientstyling:30,clientstylingurl:31,enableautoscroll:4,tabsorder:32,translationurl:33},null,[-1,-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","session","userid","periodrecent","periodtop","numberusersrecent","numberuserstop","amountlimit","lang","isrecentavailable","istopavailable","defaultcurrency","usercurrency","clientstyling","clientstylingurl","enableautoscroll","tabsorder","translationurl"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$$set({endpoint:e}),f()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[24]}set userid(e){this.$$set({userid:e}),f()}get periodrecent(){return this.$$.ctx[25]}set periodrecent(e){this.$$set({periodrecent:e}),f()}get periodtop(){return this.$$.ctx[26]}set periodtop(e){this.$$set({periodtop:e}),f()}get numberusersrecent(){return this.$$.ctx[27]}set numberusersrecent(e){this.$$set({numberusersrecent:e}),f()}get numberuserstop(){return this.$$.ctx[28]}set numberuserstop(e){this.$$set({numberuserstop:e}),f()}get amountlimit(){return this.$$.ctx[21]}set amountlimit(e){this.$$set({amountlimit:e}),f()}get lang(){return this.$$.ctx[29]}set lang(e){this.$$set({lang:e}),f()}get isrecentavailable(){return this.$$.ctx[0]}set isrecentavailable(e){this.$$set({isrecentavailable:e}),f()}get istopavailable(){return this.$$.ctx[1]}set istopavailable(e){this.$$set({istopavailable:e}),f()}get defaultcurrency(){return this.$$.ctx[2]}set defaultcurrency(e){this.$$set({defaultcurrency:e}),f()}get usercurrency(){return this.$$.ctx[3]}set usercurrency(e){this.$$set({usercurrency:e}),f()}get clientstyling(){return this.$$.ctx[30]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[31]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get enableautoscroll(){return this.$$.ctx[4]}set enableautoscroll(e){this.$$set({enableautoscroll:e}),f()}get tabsorder(){return this.$$.ctx[32]}set tabsorder(e){this.$$set({tabsorder:e}),f()}get translationurl(){return this.$$.ctx[33]}set translationurl(e){this.$$set({translationurl:e}),f()}});const vi={en:{jackpotBanners:{loadingText:"Loading, please wait..."}},zh:{jackpotBanners:{loadingText:"加载请稍候 ..."}},fr:{jackpotBanners:{loadingText:"Chargement, veuillez patienter..."}},ro:{jackpotBanners:{loadingText:"Se incarca, va rugam asteptati..."}},es:{jackpotBanners:{loadingText:"Cargando por favor espere..."}},pt:{jackpotBanners:{loadingText:"Carregando, por favor espere..."}},de:{jackpotBanners:{loadingText:"Laden, bitte warten..."}}};function wi(e,t,n){const a=e.slice();return a[49]=t[n],a[51]=n,a}function $i(n){let a,r,i,s,o,l,c,d,u,m,h,g,p,f,y,b,v;function w(e){return e[5]?_i:ki}let $=w(n),x=$(n);return{c(){a=he("div"),r=he("div"),i=he("div"),s=he("div"),o=he("img"),c=pe(),d=he("div"),x.c(),u=pe(),m=he("div"),h=he("img"),ce(o.src,l=n[6])||fe(o,"src",l),fe(o,"alt",""),fe(s,"class","vendorLogo"),fe(d,"class","displayContainer"),ce(h.src,g=n[11])||fe(h,"src",g),fe(h,"alt",""),fe(m,"class","title"),fe(i,"class",p="mainWrapper "+n[0]+" "+(n[4]&&!n[5]?"mobile":n[5]?"tablet":"")),S(i,"background","url("+n[10]+")"),fe(r,"class","jackpotBanner"),fe(a,"class",f=n[12]?"DisplayNone":""),fe(a,"part",y=n[12]?"DisplayNone":"")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(i,s),de(s,o),de(i,c),de(i,d),x.m(d,null),de(i,u),de(i,m),de(m,h),b||(v=z(r,"click",n[32]),b=!0)},p(e,t){64&t[0]&&!ce(o.src,l=e[6])&&fe(o,"src",l),$===($=w(e))&&x?x.p(e,t):(x.d(1),(x=$(e))&&(x.c(),x.m(d,null))),2048&t[0]&&!ce(h.src,g=e[11])&&fe(h,"src",g),49&t[0]&&p!==(p="mainWrapper "+e[0]+" "+(e[4]&&!e[5]?"mobile":e[5]?"tablet":""))&&fe(i,"class",p),1024&t[0]&&S(i,"background","url("+e[10]+")"),4096&t[0]&&f!==(f=e[12]?"DisplayNone":"")&&fe(a,"class",f),4096&t[0]&&y!==(y=e[12]?"DisplayNone":"")&&fe(a,"part",y)},d(e){e&&me(a),x.d(),b=!1,v()}}}function xi(e){let n,a,r=e[14]("jackpotBanners.loadingText")+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","loadingPrompt")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){16384&t[0]&&r!==(r=e[14]("jackpotBanners.loadingText")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Si(e){let n;return{c(){(n=he("p")).textContent="500 Server error"},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function _i(e){let n,a,r,i,s,o,O,l,c,N,D,d,B,H,u,m,h,g,p,j,f,y,U,Y,b,W,z,v,w,$,x,S,_,V,k,C,Z,K,T,X,J,G,M,E,L,P,q,F,R,Q,ee,I,te,A=e[8][0]+"",ne=e[7][0]+"",ae=e[8][1]+"",re=e[7][1]+"",ie=e[8][2]+"",se=e[7][2]+"",oe=e[8][3]+"",le=e[7][3]+"";return{c(){n=he("div"),a=he("div"),r=he("div"),i=he("img"),o=he("span"),O=ge(A),l=he("span"),c=he("span"),N=ge(ne),D=pe(),d=he("span"),B=ge(e[1]),H=pe(),u=he("div"),m=he("div"),h=he("img"),p=he("span"),j=ge(ae),f=he("span"),y=he("span"),U=ge(re),Y=pe(),b=he("span"),W=ge(e[1]),z=pe(),v=he("div"),w=he("div"),$=he("div"),x=he("img"),_=he("span"),V=ge(ie),k=he("span"),C=he("span"),Z=ge(se),K=pe(),T=he("span"),X=ge(e[1]),J=pe(),G=he("div"),M=he("div"),E=he("img"),P=he("span"),q=ge(oe),F=he("span"),R=he("span"),Q=ge(le),ee=pe(),I=he("span"),te=ge(e[1]),fe(i,"class","displayCardIcon"),ce(i.src,s=e[9][0])||fe(i,"src",s),fe(i,"alt",""),fe(o,"class","cardLabel"),fe(r,"class","iconWrapper"),fe(c,"class","jackpotValue"),fe(d,"class","jackpot-currency"),fe(l,"class","cardTextWrapper"),fe(a,"class","displayCard"),fe(h,"class","displayCardIcon"),ce(h.src,g=e[9][1])||fe(h,"src",g),fe(h,"alt",""),fe(p,"class","cardLabel"),fe(m,"class","iconWrapper"),fe(y,"class","jackpotValue"),fe(b,"class","jackpot-currency"),fe(f,"class","cardTextWrapper"),fe(u,"class","displayCard"),fe(n,"class","pairWrapper"),fe(x,"class","displayCardIcon"),ce(x.src,S=e[9][2])||fe(x,"src",S),fe(x,"alt",""),fe(_,"class","cardLabel"),fe($,"class","iconWrapper"),fe(C,"class","jackpotValue"),fe(T,"class","jackpot-currency"),fe(k,"class","cardTextWrapper"),fe(w,"class","displayCard"),fe(E,"class","displayCardIcon"),ce(E.src,L=e[9][3])||fe(E,"src",L),fe(E,"alt",""),fe(P,"class","cardLabel"),fe(M,"class","iconWrapper"),fe(R,"class","jackpotValue"),fe(I,"class","jackpot-currency"),fe(F,"class","cardTextWrapper"),fe(G,"class","displayCard"),fe(v,"class","pairWrapper")},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(r,i),de(r,o),de(o,O),de(a,l),de(l,c),de(c,N),de(l,D),de(l,d),de(d,B),de(n,H),de(n,u),de(u,m),de(m,h),de(m,p),de(p,j),de(u,f),de(f,y),de(y,U),de(f,Y),de(f,b),de(b,W),ue(e,z,t),ue(e,v,t),de(v,w),de(w,$),de($,x),de($,_),de(_,V),de(w,k),de(k,C),de(C,Z),de(k,K),de(k,T),de(T,X),de(v,J),de(v,G),de(G,M),de(M,E),de(M,P),de(P,q),de(G,F),de(F,R),de(R,Q),de(F,ee),de(F,I),de(I,te)},p(e,t){512&t[0]&&!ce(i.src,s=e[9][0])&&fe(i,"src",s),256&t[0]&&A!==(A=e[8][0]+"")&&ye(O,A),128&t[0]&&ne!==(ne=e[7][0]+"")&&ye(N,ne),2&t[0]&&ye(B,e[1]),512&t[0]&&!ce(h.src,g=e[9][1])&&fe(h,"src",g),256&t[0]&&ae!==(ae=e[8][1]+"")&&ye(j,ae),128&t[0]&&re!==(re=e[7][1]+"")&&ye(U,re),2&t[0]&&ye(W,e[1]),512&t[0]&&!ce(x.src,S=e[9][2])&&fe(x,"src",S),256&t[0]&&ie!==(ie=e[8][2]+"")&&ye(V,ie),128&t[0]&&se!==(se=e[7][2]+"")&&ye(Z,se),2&t[0]&&ye(X,e[1]),512&t[0]&&!ce(E.src,L=e[9][3])&&fe(E,"src",L),256&t[0]&&oe!==(oe=e[8][3]+"")&&ye(q,oe),128&t[0]&&le!==(le=e[7][3]+"")&&ye(Q,le),2&t[0]&&ye(te,e[1])},d(e){e&&me(n),e&&me(z),e&&me(v)}}}function ki(t){let r,i=Array(4),s=[];for(let e=0;e<i.length;e+=1)s[e]=Ci(wi(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);ue(t,r,n)},p(t,n){if(898&n[0]){let e;for(i=Array(4),e=0;e<i.length;e+=1){var a=wi(t,i,e);s[e]?s[e].p(a,n):(s[e]=Ci(a),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){C(s,e),e&&me(r)}}}function Ci(e){let n,a,r,i,s,o,l,c,d,u,m,h,g=e[8][e[51]]+"",p=(e[7][e[51]]??"")+"";return{c(){n=he("div"),a=he("div"),r=he("img"),s=he("span"),o=ge(g),l=he("span"),c=he("span"),d=ge(p),u=pe(),m=he("span"),h=ge(e[1]),fe(r,"class","displayCardIcon"),ce(r.src,i=e[9][e[51]])||fe(r,"src",i),fe(r,"alt",""),fe(s,"class","cardLabel"),fe(a,"class","iconWrapper"),fe(c,"class","jackpotValue"),fe(m,"class","jackpot-currency"),fe(l,"class","cardTextWrapper"),fe(n,"class","displayCard")},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(a,s),de(s,o),de(n,l),de(l,c),de(c,d),de(l,u),de(l,m),de(m,h)},p(e,t){512&t[0]&&!ce(r.src,i=e[9][e[51]])&&fe(r,"src",i),256&t[0]&&g!==(g=e[8][e[51]]+"")&&ye(o,g),128&t[0]&&p!==(p=(e[7][e[51]]??"")+"")&&ye(d,p),2&t[0]&&ye(h,e[1])},d(e){e&&me(n)}}}function Ti(n){let a;function r(e){return e[13]?Si:e[3]?xi:$i}let i=r(n),s=i(n);return{c(){a=he("div"),s.c(),this.c=W},m(e,t){ue(e,a,t),s.m(a,null),n[33](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s.d(),n[33](null)}}}function Gi(n,e,a){let t;Ve(n,Ta,e=>a(14,t=e));let r,i,{visualstructure:s=""}=e,{title:o=""}=e,{caticon0:l=""}=e,{caticon1:c=""}=e,{caticon2:d=""}=e,{caticon3:u=""}=e,{iconlabels:m=""}=e,{backgroundsrc:h=""}=e,{currency:g=""}=e,{backgroundsrcmobile:p=""}=e,{titlelogopath:f=""}=e,{lang:y="en"}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{translationurl:w=""}=e,{endpoint:$=""}=e,{gameid:x=""}=e,A=window.navigator.userAgent,S=!1,_=!1,k="",C=[],T=[],G=[],M=[],E=[],L="",P="",F=!1,R=!0,O=!1;Object.keys(vi).forEach(e=>{bi(e,vi[e])});const I=["typeSpread","typeLeft"],N=()=>{window.postMessage({type:"JackpotBannerClicked",gameid:x},window.location.href),"function"==typeof gtag&&gtag("event","JackpotBannerClicked",{context:"JackpotBanner",gameId:""+x})};return n.$$set=e=>{"visualstructure"in e&&a(0,s=e.visualstructure),"title"in e&&a(16,o=e.title),"caticon0"in e&&a(17,l=e.caticon0),"caticon1"in e&&a(18,c=e.caticon1),"caticon2"in e&&a(19,d=e.caticon2),"caticon3"in e&&a(20,u=e.caticon3),"iconlabels"in e&&a(21,m=e.iconlabels),"backgroundsrc"in e&&a(22,h=e.backgroundsrc),"currency"in e&&a(1,g=e.currency),"backgroundsrcmobile"in e&&a(23,p=e.backgroundsrcmobile),"titlelogopath"in e&&a(24,f=e.titlelogopath),"lang"in e&&a(25,y=e.lang),"clientstyling"in e&&a(26,b=e.clientstyling),"clientstylingurl"in e&&a(27,v=e.clientstylingurl),"translationurl"in e&&a(28,w=e.translationurl),"endpoint"in e&&a(29,$=e.endpoint),"gameid"in e&&a(30,x=e.gameid)},n.$$.update=()=>{if(536870912&n.$$.dirty[0]&&$&&(t=new URL($+"/casino/jackpots/config"),fetch(t.href).then(e=>e.json()).then(e=>{a(31,T=e.egtJackpotIds.map(e=>e))})),67108868&n.$$.dirty[0]&&r&&b){let e=document.createElement("style");e.innerHTML=b,r.appendChild(e)}if(134217732&n.$$.dirty[0]&&r&&v){a(12,F=!0);let e=new URL(v),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{a(12,F=!1)},500)})}if(570425346&n.$$.dirty[0]|1&n.$$.dirty[1]&&$&&y&&g&&0<T.length&&($&&y&&g)){let e=new URL($+"/casino/jackpots");e.searchParams.append("filter","id="+x),e.searchParams.append("language",y),e.searchParams.append("additionalDataCurrency",g),fetch(e.href).then(e=>e.json().then(e=>{a(3,R=!1),i=e,T.includes(x)&&((e=null==(e=null==(e=i)?void 0:e.items[0])?void 0:e.additionalData)&&Object.values(e).forEach(e=>C.push(+e)),a(6,k=i.items[0].vendorLogo))}).catch(e=>{a(13,O=!0),a(3,R=!1),console.error(e)}))}var e,t;33554442&n.$$.dirty[0]&&g&&y&&!R&&(a(4,S=We(A)&&1<window.innerHeight/window.innerWidth),a(5,_=.75<(t=window.innerHeight/window.innerWidth)&&t<1.6),0!==C.length&&a(7,G=C.map(e=>Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(e))),a(8,M=m?m.split(",").map(e=>e.trim().toUpperCase()):new Array(4).fill("")),I.includes(s.trim())?a(0,s=s.trim()):(console.warn(`Invalid Attribute Value: "${s}" is not a valid value for the "visualstructure" attribute. Defaulting to "${I[0]}"`),a(0,s=I[0])),a(10,L=p&&S&&!_?p:h),a(11,P=f),a(9,E=[l,c,d,u])),33554432&n.$$.dirty[0]&&y&&(e=y,Ye.set(e)),268435456&n.$$.dirty[0]&&w&&fetch(w).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{bi(e,t[e])})}).catch(e=>{console.log(e)})},[s,g,r,R,S,_,k,G,M,E,L,P,F,O,t,N,o,l,c,d,u,m,h,p,f,y,b,v,w,$,x,T,()=>N(),function(e){Ue[e?"unshift":"push"](()=>{r=e,a(2,r)})}]}function Mi(e,t){oa(e,t)}customElements.get("jackpot-banner")||customElements.define("jackpot-banner",class extends e{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:24px;width:auto;display:flex;align-items:center}.vendorLogo img{height:100%;width:auto}.displayCard{position:relative;background:#1c2136;height:Max(0.5vw, 1rem);padding:10px 20px 10px 24px;margin:0 8px;box-sizing:content-box;border-radius:7px;display:flex;justify-content:center;align-items:center;border:1px solid #ffc052}.displayCard .iconWrapper{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard .displayCardIcon{height:100%;width:auto}.displayCard .cardLabel{font-size:0.8rem;font-style:italic}.displayCard .cardTextWrapper{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title{grid-area:title;display:flex;align-items:center}.title img{height:50px}.displayContainer{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer .jackpotValue{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer .jackpot-currency{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread .pairWrapper{justify-content:center}.typeSpread .vendorLogo{justify-content:flex-end}.typeSpread .title{justify-content:flex-start}.typeSpread .displayContainer{justify-content:space-evenly}.typeLeft{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile .displayContainer{margin-top:50px;gap:2.6rem}.typeLeft .displayContainer{padding-left:2rem;width:clamp(30vw, auto, 50vw);gap:2rem}.typeLeft .pairWrapper{justify-content:space-evenly}.typeLeft .title{align-items:flex-end}.typeLeft .vendorLogo{height:24px;width:auto}.mobile{grid-template-columns:1fr;grid-gap:1rem}.mobile .title{justify-content:center;align-items:center}.mobile .title img{height:80px}.mobile .displayContainer{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile .vendorLogo{justify-content:center;align-items:center}.mobile .displayCard{width:40vw}.tablet .displayContainer{flex-wrap:wrap}.DisplayNone{display:none}.loadingPrompt{color:#333}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Gi,Ti,t,{visualstructure:0,title:16,caticon0:17,caticon1:18,caticon2:19,caticon3:20,iconlabels:21,backgroundsrc:22,currency:1,backgroundsrcmobile:23,titlelogopath:24,lang:25,clientstyling:26,clientstylingurl:27,translationurl:28,endpoint:29,gameid:30},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["visualstructure","title","caticon0","caticon1","caticon2","caticon3","iconlabels","backgroundsrc","currency","backgroundsrcmobile","titlelogopath","lang","clientstyling","clientstylingurl","translationurl","endpoint","gameid"]}get visualstructure(){return this.$$.ctx[0]}set visualstructure(e){this.$$set({visualstructure:e}),f()}get title(){return this.$$.ctx[16]}set title(e){this.$$set({title:e}),f()}get caticon0(){return this.$$.ctx[17]}set caticon0(e){this.$$set({caticon0:e}),f()}get caticon1(){return this.$$.ctx[18]}set caticon1(e){this.$$set({caticon1:e}),f()}get caticon2(){return this.$$.ctx[19]}set caticon2(e){this.$$set({caticon2:e}),f()}get caticon3(){return this.$$.ctx[20]}set caticon3(e){this.$$set({caticon3:e}),f()}get iconlabels(){return this.$$.ctx[21]}set iconlabels(e){this.$$set({iconlabels:e}),f()}get backgroundsrc(){return this.$$.ctx[22]}set backgroundsrc(e){this.$$set({backgroundsrc:e}),f()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),f()}get backgroundsrcmobile(){return this.$$.ctx[23]}set backgroundsrcmobile(e){this.$$set({backgroundsrcmobile:e}),f()}get titlelogopath(){return this.$$.ctx[24]}set titlelogopath(e){this.$$set({titlelogopath:e}),f()}get lang(){return this.$$.ctx[25]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[28]}set translationurl(e){this.$$set({translationurl:e}),f()}get endpoint(){return this.$$.ctx[29]}set endpoint(e){this.$$set({endpoint:e}),f()}get gameid(){return this.$$.ctx[30]}set gameid(e){this.$$set({gameid:e}),f()}});const Ei={en:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},zh:{Translations:{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."}},de:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."}},it:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},fr:{Translations:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."}},es:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"cargando, por favor espere…"}},el:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."}},tr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Yükleniyor, lütfen bekleyin..."}},ru:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},ro:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Se încarcă, asteptati ..."}},hr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},hu:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."}},pl:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},pt:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."}},sl:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},sr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}}};function Li(e,t,n){const a=e.slice();return a[40]=t[n],a}function Pi(e,t,n){const a=e.slice();return a[43]=t[n],a}function Fi(n){let r,a,i,s,o,l,c,d,u,m,h,e,g,p,f=("vendor"==n[0]?n[8]("Translations.providers"):n[8]("Translations.collections"))+"",y=n[3],b=[];for(let e=0;e<y.length;e+=1)b[e]=Di(Li(n,y,e));return{c(){r=he("div"),a=he("div"),i=he("p"),s=ge(f),o=pe(),l=he("div"),(c=he("button")).innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',d=pe(),(u=he("button")).innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',m=pe(),h=he("div");for(let e=0;e<b.length;e+=1)b[e].c();fe(i,"class","Title"),fe(l,"class","ButtonsContainer"),fe(a,"class","CategoriesHeader"),fe(h,"class","CategoriesSlider"),fe(r,"class",e="CasinoCollectionsProviders "+(n[7]?"Mobile":""))},m(e,t){ue(e,r,t),de(r,a),de(a,i),de(i,s),de(a,o),de(a,l),de(l,c),de(l,d),de(l,u),de(r,m),de(r,h);for(let e=0;e<b.length;e+=1)b[e].m(h,null);n[23](h),g||(p=[z(c,"click",n[19]),z(u,"click",n[20])],g=!0)},p(t,n){if(257&n[0]&&f!==(f=("vendor"==t[0]?t[8]("Translations.providers"):t[8]("Translations.collections"))+"")&&ye(s,f),6158&n[0]){let e;for(y=t[3],e=0;e<y.length;e+=1){var a=Li(t,y,e);b[e]?b[e].p(a,n):(b[e]=Di(a),b[e].c(),b[e].m(h,null))}for(;e<b.length;e+=1)b[e].d(1);b.length=y.length}128&n[0]&&e!==(e="CasinoCollectionsProviders "+(t[7]?"Mobile":""))&&fe(r,"class",e)},d(e){e&&me(r),C(b,e),n[23](null),g=!1,V(p)}}}function Ri(e){let n,a,r=e[8]("Translations.loading")+"";return{c(){n=he("p"),a=ge(r)},m(e,t){ue(e,n,t),de(n,a)},p(e,t){256&t[0]&&r!==(r=e[8]("Translations.loading")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Ii(e){let n,a,r=e[40].name+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","CategorySlideTitle")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){8&t[0]&&r!==(r=e[40].name+"")&&ye(a,r)},d(e){e&&me(n)}}}function Ai(e){let n,a,r;return{c(){fe(n=he("img"),"class","CategorySlideLogo"),ce(n.src,a=e[40].icon)||fe(n,"src",a),fe(n,"alt",r=e[40].name+" icon")},m(e,t){ue(e,n,t)},p(e,t){8&t[0]&&!ce(n.src,a=e[40].icon)&&fe(n,"src",a),8&t[0]&&r!==(r=e[40].name+" icon")&&fe(n,"alt",r)},d(e){e&&me(n)}}}function Oi(e){let n,a,r,i=e[43].name+"";return{c(){n=he("p"),a=ge(i),fe(n,"title",r=e[43].name)},m(e,t){ue(e,n,t),de(n,a)},p(e,t){8&t[0]&&i!==(i=e[43].name+"")&&ye(a,i),8&t[0]&&r!==(r=e[43].name)&&fe(n,"title",r)},d(e){e&&me(n)}}}function Ni(n){let a,r,i,s,o,l,c,d;function u(){return n[21](n[43])}let m="true"==n[2]&&Oi(n);return{c(){a=he("div"),r=he("img"),o=pe(),m&&m.c(),l=pe(),fe(r,"class","CategorySlideGameImage"),ce(r.src,i=n[43].defaultThumbnail)||fe(r,"src",i),fe(r,"alt",s=n[43].name),fe(a,"class","CategorySlideGames")},m(e,t){var n;ue(e,a,t),de(a,r),de(a,o),m&&m.m(a,null),de(a,l),c||(d=z(r,"click",(n=u,function(e){return e.stopPropagation(),n.call(this,e)})),c=!0)},p(e,t){n=e,8&t[0]&&!ce(r.src,i=n[43].defaultThumbnail)&&fe(r,"src",i),8&t[0]&&s!==(s=n[43].name)&&fe(r,"alt",s),"true"==n[2]?m?m.p(n,t):((m=Oi(n)).c(),m.m(a,l)):m&&(m.d(1),m=null)},d(e){e&&me(a),m&&m.d(),c=!1,d()}}}function Di(n){let a,r,i,s,o,l,c,d,u;function m(e){return"logo"==e[1]?Ai:"title"==e[1]?Ii:void 0}let h=m(n),g=h&&h(n),p=n[40].games,f=[];for(let e=0;e<p.length;e+=1)f[e]=Ni(Pi(n,p,e));function y(){return n[22](n[40])}return{c(){a=he("div"),r=he("div"),i=he("div"),g&&g.c(),s=pe(),o=he("div");for(let e=0;e<f.length;e+=1)f[e].c();c=pe(),fe(i,"class","CategorySlideTopContainer"),fe(o,"class","CategorySlideGameContainer"),fe(r,"class",l="CategorySlide "+("vendor"==n[40]?.flag[0]?"CategorySlideNoHighlight":"")),S(r,"background-image","url("+n[40]?.background+")"),fe(a,"class","CategoriesSliderWrapper Animation")},m(e,t){ue(e,a,t),de(a,r),de(r,i),g&&g.m(i,null),de(r,s),de(r,o);for(let e=0;e<f.length;e+=1)f[e].m(o,null);de(a,c),d||(u=z(r,"click",y),d=!0)},p(e,t){if(h===(h=m(n=e))&&g?g.p(n,t):(g&&g.d(1),(g=h&&h(n))&&(g.c(),g.m(i,null))),2060&t[0]){let e;for(p=n[40].games,e=0;e<p.length;e+=1){const r=Pi(n,p,e);f[e]?f[e].p(r,t):(f[e]=Ni(r),f[e].c(),f[e].m(o,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=p.length}8&t[0]&&l!==(l="CategorySlide "+("vendor"==n[40]?.flag[0]?"CategorySlideNoHighlight":""))&&fe(r,"class",l),8&t[0]&&S(r,"background-image","url("+n[40]?.background+")")},d(e){e&&me(a),g&&g.d(),C(f,e),d=!1,u()}}}function Bi(n){let a;function r(e){return e[6]?Ri:Fi}let i=r(n),s=i(n);return{c(){a=he("div"),s.c(),this.c=W},m(e,t){ue(e,a,t),s.m(a,null),n[24](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s.d(),n[24](null)}}}function Hi(n,e,a){let t;Ve(n,Ta,e=>a(8,t=e));let r,i,s,o,l,{endpoint:c=""}=e,{datasource:d=""}=e,{lang:u=""}=e,{type:m=""}=e,{titletype:h=""}=e,{clientstyling:g=""}=e,{clientstylingurl:p=""}=e,{translationurl:f=""}=e,{collectionprovidersgamenames:y=""}=e,b=[],v=!0,w=0,$=0,x=0,S=window.navigator.userAgent;Object.keys(Ei).forEach(e=>{Mi(e,Ei[e])});const _=n=>{(s=[...r.children]).forEach((e,t)=>{e.style.transform=`translateX(${100*(n?t-n:t)}%)`}),s.map(e=>i=e.getBoundingClientRect().width),x=Math.round(r.offsetWidth/i)},k=()=>{_(w)},C=()=>{x>=$||(0===w?w=$-x:w-x<-1?w=0:w--,k())},T=()=>{x>=$||(w===$-x?w=0:$-x<w+1?w=$-x:w++,k())},G=(e,t,n)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:e,launchUrl:t,gameName:n},window.location.href),"function"==typeof gtag&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:""+n})},M=e=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:e},window.location.href)};return Ze(()=>{a(7,l=We(S))}),n.$$set=e=>{"endpoint"in e&&a(13,c=e.endpoint),"datasource"in e&&a(14,d=e.datasource),"lang"in e&&a(15,u=e.lang),"type"in e&&a(0,m=e.type),"titletype"in e&&a(1,h=e.titletype),"clientstyling"in e&&a(16,g=e.clientstyling),"clientstylingurl"in e&&a(17,p=e.clientstylingurl),"translationurl"in e&&a(18,f=e.translationurl),"collectionprovidersgamenames"in e&&a(2,y=e.collectionprovidersgamenames)},n.$$.update=()=>{if(57344&n.$$.dirty[0]&&c&&d&&u){const t=new URL(c+"/v2/casino/groups/"+d);t.searchParams.append("language",u),t.searchParams.append("expand","games"),fetch(t.href).then(e=>e.json()).then(e=>{a(6,v=!1);let t=e.items.filter(e=>e.flags==m);a(3,b=t.map(e=>{var t;return{id:e.id,name:e.name,icon:e.icon||(null==(t=null==(t=null==(t=e.vendors)?void 0:t.items[0])?void 0:t.subVendors[0])?void 0:t.logo),games:e.games.items.slice(0,4).map(e=>e),background:e.background,flag:e.flags}})),$=b.length})}if(24&n.$$.dirty[0]&&b&&r&&_(),32768&n.$$.dirty[0]&&u&&(e=u,Ye.set(e)),65568&n.$$.dirty[0]&&g&&o){let e=document.createElement("style");e.innerHTML=g,o.appendChild(e)}if(131104&n.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e;262144&n.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Mi(e,t[e])})}).catch(e=>{console.log(e)})},[m,h,y,b,r,o,v,l,t,C,T,G,M,c,d,u,g,p,f,()=>C(),()=>T(),e=>G(e.gameId,e.launchUrl,e.name),e=>M(e.id),function(e){Ue[e?"unshift":"push"](()=>{r=e,a(4,r)})},function(e){Ue[e?"unshift":"push"](()=>{o=e,a(5,o)})}]}function ji(n){let a,r,i,s,o;return{c(){a=he("div"),r=he("casino-games-category-section"),this.c=W,x(r,"session",n[0]),x(r,"userid",n[1]),x(r,"endpoint",n[2]),x(r,"datasource",n[3]),x(r,"lang",n[5]),x(r,"currency",n[4]),x(r,"favorites",n[13]),x(r,"categoryid","FAVORITES"),x(r,"class","CategoryContainer"),x(r,"clientstyling",n[6]),x(r,"clientstylingurl",n[7]),x(r,"livecasino",n[8]),x(r,"visiblegames",n[12]),x(r,"gamepagemodalurl",n[11]),x(r,"integratedgameframedesktop",n[10]),x(r,"integratedgameframemobile",n[9]),x(r,"casinomygames",n[14]),fe(a,"class","CasinoFavoritesSectionContainer")},m(e,t){ue(e,a,t),de(a,r),n[18](a),s||(o=E(i=n[16].call(null,r,(n[2],n[1],n[0],n[1]))),s=!0)},p(e,[t]){1&t&&x(r,"session",e[0]),2&t&&x(r,"userid",e[1]),4&t&&x(r,"endpoint",e[2]),8&t&&x(r,"datasource",e[3]),32&t&&x(r,"lang",e[5]),16&t&&x(r,"currency",e[4]),8192&t&&x(r,"favorites",e[13]),64&t&&x(r,"clientstyling",e[6]),128&t&&x(r,"clientstylingurl",e[7]),256&t&&x(r,"livecasino",e[8]),4096&t&&x(r,"visiblegames",e[12]),2048&t&&x(r,"gamepagemodalurl",e[11]),1024&t&&x(r,"integratedgameframedesktop",e[10]),512&t&&x(r,"integratedgameframemobile",e[9]),16384&t&&x(r,"casinomygames",e[14]),i&&T(i.update)&&7&t&&i.update.call(null,(e[2],e[1],e[0],e[1]))},i:W,o:W,d(e){e&&me(a),n[18](null),s=!1,o()}}}function Ui(e,t,o){let n,a,{endpoint:l=""}=t,{datasource:r=""}=t,{currency:i=""}=t,{lang:s=""}=t,{session:c=""}=t,{userid:d=""}=t,{clientstyling:u=""}=t,{clientstylingurl:m=""}=t,{livecasino:h="false"}=t,{integratedgameframemobile:g="false"}=t,{integratedgameframedesktop:p="false"}=t,{gamepagemodalurl:f="false"}=t,{visiblegames:y=""}=t,{favorites:b=""}=t,{categoryid:v=""}=t,{casinomygames:w="false"}=t,$=[];var x,S;({withLocale:x,translations:S}={withLocale:"en",translations:{}}),Ye.subscribe(e=>{null==e&&(ia.set(S),Ye.set(x))});const _=n=>{if(n.data)switch(n.data.type){case"UserSessionID":o(0,c=n.data.session),o(1,d=n.data.userID),d&&d.length&&c&&0<c.length&&k(l,c,d);break;case"SetUnfavoredGame":e=`${l}/player/${d}/favorites`,t=c,d,s=n.data.id,n.data.triggerFactor,$.includes(s)&&($=$.filter(e=>e!=s)),fetch(e+"/"+s,{method:"DELETE",headers:{"X-SessionID":t}}).then(e=>e.json()).then(()=>{window.postMessage({type:"RemoveFavoriteThumbnail_"+s},window.location.href),C(e,t)});break;case"SetFavoredGame":{var a=`${l}/player/${d}/favorites`;var r=c;d;var i=n.data.id;n.data.triggerFactor;$.includes(i)||$.push(i);let e={items:$},t={method:"POST",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(a,t).then(e=>e.json()).then(()=>{window.postMessage({type:`AddFavoriteThumbnail_${i}`},window.location.href),C(a,r)}).catch(e=>{console.error("Err",e)})}break;case"GetFavoredGame":d&&d.length&&c&&0<c.length&&k(l,c,d)}var e,t,s};let k=(e,t,n)=>{"true"==b&&c&&n&&fetch(e+`/player/${n}/favorites/`,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>((a=e)&&(T(),window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:a,favStadalone:!0},window.location.href),G(a.items)),a)).then(e=>e).catch(e=>{console.error(e)})};let C=(e,t)=>{fetch(e,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>(a=e,T(),a&&window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:a,favStadalone:!0},window.location.href),a)).catch(e=>{console.error(e)})};const T=()=>{window.postMessage({type:"ShowFavoriteSection",receivedFavoriteResults:a},window.location.href)},G=(e=[])=>($=[],0<e.length&&e.forEach(e=>{$.push(e.id)}),$);return Ze(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)})),e.$$set=e=>{"endpoint"in e&&o(2,l=e.endpoint),"datasource"in e&&o(3,r=e.datasource),"currency"in e&&o(4,i=e.currency),"lang"in e&&o(5,s=e.lang),"session"in e&&o(0,c=e.session),"userid"in e&&o(1,d=e.userid),"clientstyling"in e&&o(6,u=e.clientstyling),"clientstylingurl"in e&&o(7,m=e.clientstylingurl),"livecasino"in e&&o(8,h=e.livecasino),"integratedgameframemobile"in e&&o(9,g=e.integratedgameframemobile),"integratedgameframedesktop"in e&&o(10,p=e.integratedgameframedesktop),"gamepagemodalurl"in e&&o(11,f=e.gamepagemodalurl),"visiblegames"in e&&o(12,y=e.visiblegames),"favorites"in e&&o(13,b=e.favorites),"categoryid"in e&&o(17,v=e.categoryid),"casinomygames"in e&&o(14,w=e.casinomygames)},e.$$.update=()=>{if(8231&e.$$.dirty&&l&&d&&c&&s&&b&&"true"==b&&k(l,c,d),32832&e.$$.dirty&&u&&n){let e=document.createElement("style");e.innerHTML=u,n.appendChild(e)}if(32896&e.$$.dirty&&m&&n){let t=document.createElement("style");fetch(new URL(m)).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}},[c,d,l,r,i,s,u,m,h,g,p,f,y,b,w,n,k,v,function(e){Ue[e?"unshift":"push"](()=>{n=e,o(15,n)})}]}function Yi(e,t){oa(e,t)}customElements.get("casino-collections-providers")||customElements.define("casino-collections-providers",class extends e{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{max-height:100px;position:absolute;top:30%;left:50%;transform:translate(-50%, -50%)}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-color-white, #FFFFFF);font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;justify-content:center;gap:3%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:54px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:10px;text-overflow:ellipsis;overflow:hidden;height:20px;width:90px;white-space:nowrap}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:85vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Hi,Bi,t,{endpoint:13,datasource:14,lang:15,type:0,titletype:1,clientstyling:16,clientstylingurl:17,translationurl:18,collectionprovidersgamenames:2},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","lang","type","titletype","clientstyling","clientstylingurl","translationurl","collectionprovidersgamenames"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[14]}set datasource(e){this.$$set({datasource:e}),f()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),f()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),f()}get titletype(){return this.$$.ctx[1]}set titletype(e){this.$$set({titletype:e}),f()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),f()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),f()}}),customElements.get("casino-favorites-section")||customElements.define("casino-favorites-section",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>.CasinoFavoritesSectionContainer{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Ui,ji,t,{endpoint:2,datasource:3,currency:4,lang:5,session:0,userid:1,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,categoryid:17,casinomygames:14},null),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","categoryid","casinomygames"]}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),f()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),f()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),f()}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),f()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),f()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),f()}get categoryid(){return this.$$.ctx[17]}set categoryid(e){this.$$set({categoryid:e}),f()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),f()}});const Wi={en:{LastPlayedTranslations:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}},de:{LastPlayedTranslations:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."}}};function zi(e){let n;return{c(){x(n=he("casino-games-category-section"),"session",e[4]),x(n,"userid",e[5]),x(n,"endpoint",e[0]),x(n,"datasource",e[1]),x(n,"lang",e[3]),x(n,"currency",e[2]),x(n,"favorites",e[13]),x(n,"categoryid","LASTPLAYED"),x(n,"categoryindex","1"),x(n,"categorygames","9"),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[6]),x(n,"clientstylingurl",e[7]),x(n,"livecasino",e[8]),x(n,"visiblegames",e[12]),x(n,"gamepagemodalurl",e[11]),x(n,"integratedgameframedesktop",e[10]),x(n,"integratedgameframemobile",e[9]),x(n,"casinomygames",e[14])},m(e,t){ue(e,n,t)},p(e,t){16&t[0]&&x(n,"session",e[4]),32&t[0]&&x(n,"userid",e[5]),1&t[0]&&x(n,"endpoint",e[0]),2&t[0]&&x(n,"datasource",e[1]),8&t[0]&&x(n,"lang",e[3]),4&t[0]&&x(n,"currency",e[2]),8192&t[0]&&x(n,"favorites",e[13]),64&t[0]&&x(n,"clientstyling",e[6]),128&t[0]&&x(n,"clientstylingurl",e[7]),256&t[0]&&x(n,"livecasino",e[8]),4096&t[0]&&x(n,"visiblegames",e[12]),2048&t[0]&&x(n,"gamepagemodalurl",e[11]),1024&t[0]&&x(n,"integratedgameframedesktop",e[10]),512&t[0]&&x(n,"integratedgameframemobile",e[9]),16384&t[0]&&x(n,"casinomygames",e[14])},d(e){e&&me(n)}}}function Vi(e){let n,a,r=e[17]("LastPlayedTranslations.noRecentGames")+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","SearchLoading")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){131072&t[0]&&r!==(r=e[17]("LastPlayedTranslations.noRecentGames")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Zi(n){let a,r;function i(e){return e[16]?Vi:zi}let s=i(n),o=s(n);return{c(){a=he("div"),r=he("div"),o.c(),this.c=W,fe(r,"class","CasinoLastPlayedSection"),fe(a,"class","CasinoGamesCategorySectionContainer")},m(e,t){ue(e,a,t),de(a,r),o.m(r,null),n[20](a)},p(e,t){s===(s=i(e))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(r,null)))},i:W,o:W,d(e){e&&me(a),o.d(),n[20](null)}}}function Ki(t,e,n){let a;Ve(t,Ta,e=>n(17,a=e));let i,s,{endpoint:o=""}=e,{datasource:l=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:d=""}=e,{userid:u=""}=e,{clientstyling:m=""}=e,{clientstylingurl:h=""}=e,{translationurl:g=""}=e,{livecasino:p="false"}=e,{integratedgameframemobile:f="false"}=e,{integratedgameframedesktop:y="false"}=e,{gamepagemodalurl:b="false"}=e,{visiblegames:v=""}=e,{favorites:w=""}=e,{lastplayedperiod:$=""}=e,{casinomygames:x="false"}=e,S=window.navigator.userAgent,_=!1,k;Object.keys(Wi).forEach(e=>{Yi(e,Wi[e])});return t.$$set=e=>{"endpoint"in e&&n(0,o=e.endpoint),"datasource"in e&&n(1,l=e.datasource),"currency"in e&&n(2,r=e.currency),"lang"in e&&n(3,c=e.lang),"session"in e&&n(4,d=e.session),"userid"in e&&n(5,u=e.userid),"clientstyling"in e&&n(6,m=e.clientstyling),"clientstylingurl"in e&&n(7,h=e.clientstylingurl),"translationurl"in e&&n(18,g=e.translationurl),"livecasino"in e&&n(8,p=e.livecasino),"integratedgameframemobile"in e&&n(9,f=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,y=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,b=e.gamepagemodalurl),"visiblegames"in e&&n(12,v=e.visiblegames),"favorites"in e&&n(13,w=e.favorites),"lastplayedperiod"in e&&n(19,$=e.lastplayedperiod),"casinomygames"in e&&n(14,x=e.casinomygames)},t.$$.update=()=>{if(41&t.$$.dirty[0]&&o&&u&&c&&(r={device:ze(S),period:$||"Last30Days"},new Promise((e,t)=>{let n=new URL(`${o}/player/${u}/games/last-played`);r.limit&&n.searchParams.append("limit","10"),r.order&&n.searchParams.append("order",r.order);var a=r.device;a?"PC"===a?n.searchParams.append("device","Desktop"):n.searchParams.append("device","Mobile"):n.searchParams.append("device","All"),r.period&&n.searchParams.append("period","Last30Days"),i=p?n:n.href,fetch(i).then(e=>e.json()).then(n=>{n.items=n.items.filter(e=>{let t=!0;return"OddsMatrix2"==e.gameCode&&(n.count--,t=!1),t}),e(n),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:n},window.location.href)}).catch(e=>{console.error(e),t(e)})}).then(e=>{if(window.postMessage({type:"GetFavoredGame"},window.location.href),0<e.count){let n=[];e.items.forEach(e=>{let t=new URL(o+"/casino/games/"+e.gameId);t.searchParams.append("datasource",l),n.push(fetch(t.href).then(e=>e.json()))}),Promise.all(n).then(e=>{k=e.map(e=>e[0]),window.postMessage({type:"LastPlayedData",lastPlayedGames:k},window.location.href)})}else n(16,_=!0)})),262144&t.$$.dirty[0]&&g&&(e=translationUrl,fetch(e).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Yi(e,t[e])})}).catch(e=>{console.log(e)})),32832&t.$$.dirty[0]&&m&&s){let e=document.createElement("style");e.innerHTML=m,s.appendChild(e)}if(32896&t.$$.dirty[0]&&h&&s){let t=document.createElement("style");fetch(new URL(h)).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1)})}var e,r;8&t.$$.dirty[0]&&c&&(e=c,Ye.set(e))},[o,l,r,c,d,u,m,h,p,f,y,b,v,w,x,s,_,a,g,$,function(e){Ue[e?"unshift":"push"](()=>{s=e,n(15,s)})}]}function Xi(e){let n;return{c(){x(n=he("casino-games-category-section"),"session",e[4]),x(n,"userid",e[5]),x(n,"endpoint",e[0]),x(n,"datasource",e[1]),x(n,"lang",e[3]),x(n,"currency",e[2]),x(n,"favorites",e[13]),x(n,"categoryid","MOSTPLAYED"),x(n,"categoryindex","1"),x(n,"categorygames","9"),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[6]),x(n,"clientstylingurl",e[7]),x(n,"livecasino",e[8]),x(n,"visiblegames",e[12]),x(n,"gamepagemodalurl",e[11]),x(n,"integratedgameframedesktop",e[10]),x(n,"integratedgameframemobile",e[9]),x(n,"casinomygames",e[14])},m(e,t){ue(e,n,t)},p(e,t){16&t&&x(n,"session",e[4]),32&t&&x(n,"userid",e[5]),1&t&&x(n,"endpoint",e[0]),2&t&&x(n,"datasource",e[1]),8&t&&x(n,"lang",e[3]),4&t&&x(n,"currency",e[2]),8192&t&&x(n,"favorites",e[13]),64&t&&x(n,"clientstyling",e[6]),128&t&&x(n,"clientstylingurl",e[7]),256&t&&x(n,"livecasino",e[8]),4096&t&&x(n,"visiblegames",e[12]),2048&t&&x(n,"gamepagemodalurl",e[11]),1024&t&&x(n,"integratedgameframedesktop",e[10]),512&t&&x(n,"integratedgameframemobile",e[9]),16384&t&&x(n,"casinomygames",e[14])},d(e){e&&me(n)}}}function Ji(e){let n;return{c(){(n=he("p")).textContent="No games in most played",fe(n,"class","SearchLoading"),fe(n,"part","SearchLoading")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function qi(n){let a,r;function i(e){return e[16]?Ji:Xi}let s=i(n),o=s(n);return{c(){a=he("div"),r=he("div"),o.c(),this.c=W,fe(r,"class","casino-most-played-section"),fe(a,"class","CasinoGamesCategorySectionContainer"),fe(a,"part","CasinoGamesCategorySectionContainer")},m(e,t){ue(e,a,t),de(a,r),o.m(r,null),n[18](a)},p(e,[t]){s===(s=i(e))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(r,null)))},i:W,o:W,d(e){e&&me(a),o.d(),n[18](null)}}}function Qi(t,e,n){let a,r,{endpoint:i=""}=e,{datasource:s=""}=e,{currency:o=""}=e,{lang:l=""}=e,{session:c=""}=e,{userid:d=""}=e,{clientstyling:u=""}=e,{clientstylingurl:m=""}=e,{livecasino:h="false"}=e,{integratedgameframemobile:g="false"}=e,{integratedgameframedesktop:p="false"}=e,{gamepagemodalurl:f="false"}=e,y=e["visiblegames"],{favorites:b=""}=e,{lastPlayedEmpty:v=""}=e,{casinomygames:w="false"}=e,$=window.navigator.userAgent,x=[],S=!1;return t.$$set=e=>{"endpoint"in e&&n(0,i=e.endpoint),"datasource"in e&&n(1,s=e.datasource),"currency"in e&&n(2,o=e.currency),"lang"in e&&n(3,l=e.lang),"session"in e&&n(4,c=e.session),"userid"in e&&n(5,d=e.userid),"clientstyling"in e&&n(6,u=e.clientstyling),"clientstylingurl"in e&&n(7,m=e.clientstylingurl),"livecasino"in e&&n(8,h=e.livecasino),"integratedgameframemobile"in e&&n(9,g=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,p=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,f=e.gamepagemodalurl),"visiblegames"in e&&n(12,y=e.visiblegames),"favorites"in e&&n(13,b=e.favorites),"lastPlayedEmpty"in e&&n(17,v=e.lastPlayedEmpty),"casinomygames"in e&&n(14,w=e.casinomygames)},t.$$.update=()=>{if(41&t.$$.dirty&&i&&d&&l&&(e=>{let t=new URL(`${i}/player/${d}/games/most-played`);e.limit&&t.searchParams.append("limit",e.limit),e.order&&t.searchParams.append("order",e.order),t.searchParams.append("expand","games");var n=e.device;return n?"PC"===n?t.searchParams.append("device","Desktop"):t.searchParams.append("device","Mobile"):t.searchParams.append("device","All"),e.rounds&&t.searchParams.append("rounds",e.rounds),a=h?t:t.href,new Promise((e,t)=>{fetch(a).then(e=>e.json()).then(n=>{n.items=n.items.filter(e=>{let t=!0;return"OddsMatrix2"==e.gameCode&&(n.count--,t=!1),t}),e(n)}).catch(e=>{console.error(e),t(e)})})})({limit:100,device:ze($),rounds:10}).then(e=>{if(window.postMessage({type:"GetFavoredGame"},window.location.href),0<e.count){let n=[];e.items.forEach(e=>{let t=new URL(i+"/casino/games/"+e.gameId);t.searchParams.append("datasource",s),n.push(fetch(t.href).then(e=>e.json()))}),Promise.all(n).then(e=>{x=e.map(e=>e[0]),"true"===w&&(x=x.slice(0,JSON.parse(y))),window.postMessage({type:"MostPlayedData",mostPlayedGames:x},window.location.href)})}else n(16,S=!0)}),32832&t.$$.dirty&&u&&r){let e=document.createElement("style");e.innerHTML=u,r.appendChild(e)}if(32896&t.$$.dirty&&m&&r){let t=document.createElement("style");fetch(new URL(m)).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;8&t.$$.dirty&&l&&(e=l,Ye.set(e))},[i,s,o,l,c,d,u,m,h,g,p,f,y,b,w,r,S,v,function(e){Ue[e?"unshift":"push"](()=>{r=e,n(15,r)})}]}function es(e,t){oa(e,t)}customElements.get("casino-last-played-section")||customElements.define("casino-last-played-section",class extends e{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Ki,Zi,t,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:18,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastplayedperiod:19,casinomygames:14},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","translationurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastplayedperiod","casinomygames"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),f()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),f()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),f()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),f()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),f()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),f()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),f()}get lastplayedperiod(){return this.$$.ctx[19]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),f()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),f()}}),customElements.get("casino-most-played-section")||customElements.define("casino-most-played-section",class extends e{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Qi,qi,t,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastPlayedEmpty:17,casinomygames:14},null),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastPlayedEmpty","casinomygames"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),f()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),f()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),f()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),f()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),f()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),f()}get lastPlayedEmpty(){return this.$$.ctx[17]}set lastPlayedEmpty(e){this.$$set({lastPlayedEmpty:e}),f()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),f()}});const ts={en:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},zh:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},de:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},it:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},fr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},es:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},tr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},ru:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},ro:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},hr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},hu:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},pl:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},pt:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},sl:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},sr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}}};function ns(e,t,n){const a=e.slice();return a[36]=t[n],a}function as(t){let r,n,i,a,s,e,o=t[20],l=[];for(let e=0;e<o.length;e+=1)l[e]=os(ns(t,o,e));function c(e){return"Favorites"==e[18]?ds:"MostPlayed"==e[18]?cs:"LastPlayed"==e[18]?ls:void 0}let d=c(t),u=d&&d(t);return{c(){r=he("div"),n=he("div"),i=he("div");for(let e=0;e<l.length;e+=1)l[e].c();a=pe(),s=he("div"),u&&u.c(),fe(i,"class","MyGamesButtonsContainer"),fe(n,"class","MyGamesHeader"),fe(r,"class",e="CasinoMyGames "+(t[19]?"Mobile":""))},m(e,t){ue(e,r,t),de(r,n),de(n,i);for(let e=0;e<l.length;e+=1)l[e].m(i,null);de(r,a),de(r,s),u&&u.m(s,null)},p(t,n){if(7659520&n[0]){let e;for(o=t[20],e=0;e<o.length;e+=1){var a=ns(t,o,e);l[e]?l[e].p(a,n):(l[e]=os(a),l[e].c(),l[e].m(i,null))}for(;e<l.length;e+=1)l[e].d(1);l.length=o.length}d===(d=c(t))&&u?u.p(t,n):(u&&u.d(1),(u=d&&d(t))&&(u.c(),u.m(s,null))),524288&n[0]&&e!==(e="CasinoMyGames "+(t[19]?"Mobile":""))&&fe(r,"class",e)},d(e){e&&me(r),C(l,e),u&&u.d()}}}function rs(n){let a,r,i,s,o,l=n[21]("Translations.favorites")+"";return{c(){a=he("button"),r=ge(l),fe(a,"class",i="MyGamesButton "+("Favorites"==n[18]?"Active":"")+" "+("false"==n[13]?"Off":""))},m(e,t){ue(e,a,t),de(a,r),s||(o=z(a,"click",n[26]),s=!0)},p(e,t){2097152&t[0]&&l!==(l=e[21]("Translations.favorites")+"")&&ye(r,l),270336&t[0]&&i!==(i="MyGamesButton "+("Favorites"==e[18]?"Active":"")+" "+("false"==e[13]?"Off":""))&&fe(a,"class",i)},d(e){e&&me(a),s=!1,o()}}}function is(n){let a,r,i,s,o,l=n[21]("Translations.mostPlayed")+"";return{c(){a=he("button"),r=ge(l),fe(a,"class",i="MyGamesButton "+("MostPlayed"==n[18]?"Active":"")+" "+("false"==n[14]?"Off":""))},m(e,t){ue(e,a,t),de(a,r),s||(o=z(a,"click",n[27]),s=!0)},p(e,t){2097152&t[0]&&l!==(l=e[21]("Translations.mostPlayed")+"")&&ye(r,l),278528&t[0]&&i!==(i="MyGamesButton "+("MostPlayed"==e[18]?"Active":"")+" "+("false"==e[14]?"Off":""))&&fe(a,"class",i)},d(e){e&&me(a),s=!1,o()}}}function ss(n){let a,r,i,s,o,l,c=n[21]("Translations.recentlyPlayed")+"";return{c(){a=he("button"),r=ge(c),i=pe(),fe(a,"class",s="MyGamesButton "+("LastPlayed"==n[18]?"Active":"")+" "+("false"==n[15]?"Off":""))},m(e,t){ue(e,a,t),de(a,r),de(a,i),o||(l=z(a,"click",n[28]),o=!0)},p(e,t){2097152&t[0]&&c!==(c=e[21]("Translations.recentlyPlayed")+"")&&ye(r,c),294912&t[0]&&s!==(s="MyGamesButton "+("LastPlayed"==e[18]?"Active":"")+" "+("false"==e[15]?"Off":""))&&fe(a,"class",s)},d(e){e&&me(a),o=!1,l()}}}function os(e){let n,a,r,i="Favorites"==e[36]&&rs(e),s="MostPlayed"==e[36]&&is(e),o="LastPlayed"==e[36]&&ss(e);return{c(){i&&i.c(),n=pe(),s&&s.c(),a=pe(),o&&o.c(),r=l()},m(e,t){i&&i.m(e,t),ue(e,n,t),s&&s.m(e,t),ue(e,a,t),o&&o.m(e,t),ue(e,r,t)},p(e,t){"Favorites"==e[36]?i?i.p(e,t):((i=rs(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),"MostPlayed"==e[36]?s?s.p(e,t):((s=is(e)).c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null),"LastPlayed"==e[36]?o?o.p(e,t):((o=ss(e)).c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(e){i&&i.d(e),e&&me(n),s&&s.d(e),e&&me(a),o&&o.d(e),e&&me(r)}}}function ls(e){let n;return{c(){x(n=he("casino-last-played-section"),"userid",e[0]),x(n,"endpoint",e[2]),x(n,"datasource",e[3]),x(n,"favorites",e[13]),x(n,"lang",e[4]),x(n,"currency",e[5]),x(n,"session",e[1]),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[6]),x(n,"clientstylingurl",e[7]),x(n,"livecasino",e[8]),x(n,"visiblegames",e[9]),x(n,"gamepagemodalurl",e[10]),x(n,"integratedgameframedesktop",e[11]),x(n,"integratedgameframemobile",e[12]),x(n,"casinomygames",e[16])},m(e,t){ue(e,n,t)},p(e,t){1&t[0]&&x(n,"userid",e[0]),4&t[0]&&x(n,"endpoint",e[2]),8&t[0]&&x(n,"datasource",e[3]),8192&t[0]&&x(n,"favorites",e[13]),16&t[0]&&x(n,"lang",e[4]),32&t[0]&&x(n,"currency",e[5]),2&t[0]&&x(n,"session",e[1]),64&t[0]&&x(n,"clientstyling",e[6]),128&t[0]&&x(n,"clientstylingurl",e[7]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"visiblegames",e[9]),1024&t[0]&&x(n,"gamepagemodalurl",e[10]),2048&t[0]&&x(n,"integratedgameframedesktop",e[11]),4096&t[0]&&x(n,"integratedgameframemobile",e[12]),65536&t[0]&&x(n,"casinomygames",e[16])},d(e){e&&me(n)}}}function cs(e){let n;return{c(){x(n=he("casino-most-played-section"),"endpoint",e[2]),x(n,"datasource",e[3]),x(n,"lang",e[4]),x(n,"currency",e[5]),x(n,"session",e[1]),x(n,"userid",e[0]),x(n,"favorites",e[13]),x(n,"categoryindex","0"),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[6]),x(n,"clientstylingurl",e[7]),x(n,"livecasino",e[8]),x(n,"visiblegames",e[9]),x(n,"gamepagemodalurl",e[10]),x(n,"integratedgameframedesktop",e[11]),x(n,"integratedgameframemobile",e[12]),x(n,"casinomygames",e[16])},m(e,t){ue(e,n,t)},p(e,t){4&t[0]&&x(n,"endpoint",e[2]),8&t[0]&&x(n,"datasource",e[3]),16&t[0]&&x(n,"lang",e[4]),32&t[0]&&x(n,"currency",e[5]),2&t[0]&&x(n,"session",e[1]),1&t[0]&&x(n,"userid",e[0]),8192&t[0]&&x(n,"favorites",e[13]),64&t[0]&&x(n,"clientstyling",e[6]),128&t[0]&&x(n,"clientstylingurl",e[7]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"visiblegames",e[9]),1024&t[0]&&x(n,"gamepagemodalurl",e[10]),2048&t[0]&&x(n,"integratedgameframedesktop",e[11]),4096&t[0]&&x(n,"integratedgameframemobile",e[12]),65536&t[0]&&x(n,"casinomygames",e[16])},d(e){e&&me(n)}}}function ds(e){let n;return{c(){x(n=he("casino-favorites-section"),"session",e[1]),x(n,"userid",e[0]),x(n,"endpoint",e[2]),x(n,"datasource",e[3]),x(n,"lang",e[4]),x(n,"currency",e[5]),x(n,"favorites",e[13]),x(n,"categoryid","FAVORITES"),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[6]),x(n,"clientstylingurl",e[7]),x(n,"livecasino",e[8]),x(n,"visiblegames",e[9]),x(n,"gamepagemodalurl",e[10]),x(n,"integratedgameframedesktop",e[11]),x(n,"integratedgameframemobile",e[12]),x(n,"casinomygames",e[16])},m(e,t){ue(e,n,t)},p(e,t){2&t[0]&&x(n,"session",e[1]),1&t[0]&&x(n,"userid",e[0]),4&t[0]&&x(n,"endpoint",e[2]),8&t[0]&&x(n,"datasource",e[3]),16&t[0]&&x(n,"lang",e[4]),32&t[0]&&x(n,"currency",e[5]),8192&t[0]&&x(n,"favorites",e[13]),64&t[0]&&x(n,"clientstyling",e[6]),128&t[0]&&x(n,"clientstylingurl",e[7]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"visiblegames",e[9]),1024&t[0]&&x(n,"gamepagemodalurl",e[10]),2048&t[0]&&x(n,"integratedgameframedesktop",e[11]),4096&t[0]&&x(n,"integratedgameframemobile",e[12]),65536&t[0]&&x(n,"casinomygames",e[16])},d(e){e&&me(n)}}}function us(n){let a;function r(e){if(e[16])return as}let i=r(n),s=i&&i(n);return{c(){a=he("div"),s&&s.c(),this.c=W},m(e,t){ue(e,a,t),s&&s.m(a,null),n[29](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s&&s.d(1),(s=i&&i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s&&s.d(),n[29](null)}}}function ms(e,t,n){let a;Ve(e,Ta,e=>n(21,a=e));let r,{userid:i=""}=t,{session:s=""}=t,{endpoint:o=""}=t,{datasource:l=""}=t,{lang:c=""}=t,{currency:d=""}=t,{clientstyling:u=""}=t,{clientstylingurl:m=""}=t,{livecasino:h=""}=t,{visiblegames:g=""}=t,{gamepagemodalurl:p=""}=t,{integratedgameframedesktop:f=""}=t,{integratedgameframemobile:y=""}=t,{translationurl:b=""}=t,{favorites:v="false"}=t,{mostplayed:w="false"}=t,{lastplayed:$="false"}=t,{activecategory:x=""}=t,{categorybackground:S=""}=t,{casinomygames:_="false"}=t,k=window.navigator.userAgent,C="",T=!1,G=["","",""];var M,E;({withLocale:M,translations:E}={withLocale:"en",translations:{}}),Ye.subscribe(e=>{null==e&&(ia.set(E),Ye.set(M))}),Object.keys(ts).forEach(e=>{es(e,ts[e])});const L=e=>{C!==e&&n(18,C=e)},P=()=>{var e;n(18,C="true"===v?"Favorites":"true"===w?"MostPlayed":"true"===$?"LastPlayed":""),n(20,G[0]="true"===v?"Favorites":"",G),n(20,G[1]="true"===w?"MostPlayed":"",G),n(20,G[2]="true"===$?"LastPlayed":"",G),e=c,Ye.set(e)};return Ze(()=>{n(19,T=We(k))}),e.$$set=e=>{"userid"in e&&n(0,i=e.userid),"session"in e&&n(1,s=e.session),"endpoint"in e&&n(2,o=e.endpoint),"datasource"in e&&n(3,l=e.datasource),"lang"in e&&n(4,c=e.lang),"currency"in e&&n(5,d=e.currency),"clientstyling"in e&&n(6,u=e.clientstyling),"clientstylingurl"in e&&n(7,m=e.clientstylingurl),"livecasino"in e&&n(8,h=e.livecasino),"visiblegames"in e&&n(9,g=e.visiblegames),"gamepagemodalurl"in e&&n(10,p=e.gamepagemodalurl),"integratedgameframedesktop"in e&&n(11,f=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(12,y=e.integratedgameframemobile),"translationurl"in e&&n(23,b=e.translationurl),"favorites"in e&&n(13,v=e.favorites),"mostplayed"in e&&n(14,w=e.mostplayed),"lastplayed"in e&&n(15,$=e.lastplayed),"activecategory"in e&&n(24,x=e.activecategory),"categorybackground"in e&&n(25,S=e.categorybackground),"casinomygames"in e&&n(16,_=e.casinomygames)},e.$$.update=()=>{if(28&e.$$.dirty[0]&&o&&l&&c&&P(),57344&e.$$.dirty[0]&&v&&w&&$&&P(),8388608&e.$$.dirty[0]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{es(e,t[e])})}).catch(e=>{console.log(e)}),131136&e.$$.dirty[0]&&u&&r){let e=document.createElement("style");e.innerHTML=u,r.appendChild(e)}if(131200&e.$$.dirty[0]&&m&&r){let t=document.createElement("style");fetch(new URL(m)).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}},[i,s,o,l,c,d,u,m,h,g,p,f,y,v,w,$,_,r,C,T,G,a,L,b,x,S,()=>L("Favorites"),()=>L("MostPlayed"),()=>L("LastPlayed"),function(e){Ue[e?"unshift":"push"](()=>{r=e,n(17,r)})}]}function hs(e,t){oa(e,t)}customElements.get("casino-my-games")||customElements.define("casino-my-games",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>.CasinoMyGames{background-color:var(--emfe-w-color-contrast, #07072A);width:100%;margin:50px 0}.CasinoMyGames.Mobile{padding:25px 10px}.MyGamesHeader{display:flex;justify-content:space-between;margin-bottom:40px}.MyGamesButton{border:none;background:none;color:var(--emfe-w-color-white, #FFFFFF);font-size:20px;font-weight:500;margin-right:60px;transition:linear 100ms;cursor:pointer}.MyGamesButton:hover{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);line-height:36px}.MyGamesButton:focus{color:var(--emfe-w-color-primary, #D0046C);line-height:36px}.MyGamesButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-color-primary, #D0046C)}.MyGamesButton.Active{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary, #D0046C);line-height:36px}.Mobile .MyGamesHeader{justify-content:flex-start}.Mobile .MyGamesButton{font-size:16px;white-space:nowrap;margin-right:10px}.Mobile .MyGamesButton.Active{padding-bottom:4px}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ms,us,t,{userid:0,session:1,endpoint:2,datasource:3,lang:4,currency:5,clientstyling:6,clientstylingurl:7,livecasino:8,visiblegames:9,gamepagemodalurl:10,integratedgameframedesktop:11,integratedgameframemobile:12,translationurl:23,favorites:13,mostplayed:14,lastplayed:15,activecategory:24,categorybackground:25,casinomygames:16},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["userid","session","endpoint","datasource","lang","currency","clientstyling","clientstylingurl","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","translationurl","favorites","mostplayed","lastplayed","activecategory","categorybackground","casinomygames"]}get userid(){return this.$$.ctx[0]}set userid(e){this.$$set({userid:e}),f()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),f()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),f()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),f()}get currency(){return this.$$.ctx[5]}set currency(e){this.$$set({currency:e}),f()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),f()}get visiblegames(){return this.$$.ctx[9]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get gamepagemodalurl(){return this.$$.ctx[10]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get integratedgameframemobile(){return this.$$.ctx[12]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get translationurl(){return this.$$.ctx[23]}set translationurl(e){this.$$set({translationurl:e}),f()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),f()}get mostplayed(){return this.$$.ctx[14]}set mostplayed(e){this.$$set({mostplayed:e}),f()}get lastplayed(){return this.$$.ctx[15]}set lastplayed(e){this.$$set({lastplayed:e}),f()}get activecategory(){return this.$$.ctx[24]}set activecategory(e){this.$$set({activecategory:e}),f()}get categorybackground(){return this.$$.ctx[25]}set categorybackground(e){this.$$set({categorybackground:e}),f()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),f()}});const gs={en:{Translations:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},zh:{Translations:{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"}},de:{Translations:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"}},it:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},fr:{Translations:{recentSearch:"Recherche récente",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."}},es:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},gr:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},tr:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},ru:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."}},ro:{Translations:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului. ",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre."}},hr:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},hu:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},pl:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},pt:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},sl:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},sr:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}}};function ps(e,t,n){const a=e.slice();return a[48]=t[n],a}function fs(e){let n,a,r,i;function s(e){return 1==e[13]&&e[8].length<2?vs:0!=e[11].length?bs:void 0}let o=s(e),l=o&&o(e),c=!1===e[9]&&$s(e),d=2<=e[8].length&&0==e[11].length&&Ss(e);return{c(){l&&l.c(),n=pe(),a=he("div"),c&&c.c(),r=pe(),d&&d.c(),fe(a,"class",i="SearchResultsContainer "+(1==e[13]?"":"NotVisible"))},m(e,t){l&&l.m(e,t),ue(e,n,t),ue(e,a,t),c&&c.m(a,null),de(a,r),d&&d.m(a,null)},p(e,t){o===(o=s(e))&&l?l.p(e,t):(l&&l.d(1),(l=o&&o(e))&&(l.c(),l.m(n.parentNode,n))),!1===e[9]?c?c.p(e,t):((c=$s(e)).c(),c.m(a,r)):c&&(c.d(1),c=null),2<=e[8].length&&0==e[11].length?d?d.p(e,t):((d=Ss(e)).c(),d.m(a,null)):d&&(d.d(1),d=null),8192&t[0]&&i!==(i="SearchResultsContainer "+(1==e[13]?"":"NotVisible"))&&fe(a,"class",i)},d(e){l&&l.d(e),e&&me(n),e&&me(a),c&&c.d(),d&&d.d()}}}function ys(e){let n,a,r=e[17]("Translations.loading")+"";return{c(){n=he("p"),a=ge(r)},m(e,t){ue(e,n,t),de(n,a)},p(e,t){131072&t[0]&&r!==(r=e[17]("Translations.loading")+"")&&ye(a,r)},d(e){e&&me(n)}}}function bs(e){let n,a,r=e[17]("Translations.searchResult")+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","PC"!==ze(e[18])?"SearchMessage":"SearchMessagePc")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){131072&t[0]&&r!==(r=e[17]("Translations.searchResult")+"")&&ye(a,r)},d(e){e&&me(n)}}}function vs(e){let n,a,r,i,s=e[17]("Translations.recentSearch")+"",o=0==e[11].length&&ws(e);return{c(){n=he("p"),a=ge(s),r=pe(),o&&o.c(),i=l(),fe(n,"class","PC"!==ze(e[18])?"SearchMessage":"SearchMessagePc")},m(e,t){ue(e,n,t),de(n,a),ue(e,r,t),o&&o.m(e,t),ue(e,i,t)},p(e,t){131072&t[0]&&s!==(s=e[17]("Translations.recentSearch")+"")&&ye(a,s),0==e[11].length?o?o.p(e,t):((o=ws(e)).c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(e){e&&me(n),e&&me(r),o&&o.d(e),e&&me(i)}}}function ws(e){let n,a,r,t,i=e[17]("Translations.noRecentSearches")+"";return{c(){n=he("div"),a=he("p"),r=ge(i),fe(a,"class",t="PC"!==ze(e[18])?"SearchMessage":"SearchMessagePc"),fe(n,"class","ResultsContainerError")},m(e,t){ue(e,n,t),de(n,a),de(a,r)},p(e,t){131072&t[0]&&i!==(i=e[17]("Translations.noRecentSearches")+"")&&ye(r,i)},d(e){e&&me(n)}}}function $s(t){let r,i=t[11],s=[];for(let e=0;e<i.length;e+=1)s[e]=xs(ps(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);ue(t,r,n)},p(t,n){if(1149183&n[0]){let e;for(i=t[11],e=0;e<i.length;e+=1){var a=ps(t,i,e);s[e]?s[e].p(a,n):(s[e]=xs(a),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){C(s,e),e&&me(r)}}}function xs(e){let n,a,r,i,s,o,l,c,d,u,m;return{c(){x(n=he("casino-game-thumbnail"),"endpoint",e[0]),x(n,"session",e[15]),x(n,"userid",e[16]),x(n,"favorites",e[7]),x(n,"lang",e[1]),x(n,"gamethumbnail",a=e[48].thumbnail),x(n,"gamename",r=e[48].name),x(n,"gamevendor",i=e[48].vendor.name),x(n,"gameisnew",s=e[48].isNew),x(n,"gametag",o=0<e[48].advancedTags?.length&&e[20](e[48].advancedTags)),x(n,"gamecellsize",l=e[48].cellSize),x(n,"gameid",c=e[48].id),x(n,"gamefunmode",d=e[48].hasFunMode),x(n,"gamefavorite",u=e[48].isFavorite),x(n,"livelobbyendpoint",m=e[48].details?e[48].launchUrl:""),x(n,"integratedgameframedesktop",e[4]),x(n,"integratedgameframemobile",e[5]),x(n,"clientstyling",e[2]),x(n,"clientstylingurl",e[3]),x(n,"gamepagemodalurl",e[6])},m(e,t){ue(e,n,t)},p(e,t){1&t[0]&&x(n,"endpoint",e[0]),32768&t[0]&&x(n,"session",e[15]),65536&t[0]&&x(n,"userid",e[16]),128&t[0]&&x(n,"favorites",e[7]),2&t[0]&&x(n,"lang",e[1]),2048&t[0]&&a!==(a=e[48].thumbnail)&&x(n,"gamethumbnail",a),2048&t[0]&&r!==(r=e[48].name)&&x(n,"gamename",r),2048&t[0]&&i!==(i=e[48].vendor.name)&&x(n,"gamevendor",i),2048&t[0]&&s!==(s=e[48].isNew)&&x(n,"gameisnew",s),2048&t[0]&&o!==(o=0<e[48].advancedTags?.length&&e[20](e[48].advancedTags))&&x(n,"gametag",o),2048&t[0]&&l!==(l=e[48].cellSize)&&x(n,"gamecellsize",l),2048&t[0]&&c!==(c=e[48].id)&&x(n,"gameid",c),2048&t[0]&&d!==(d=e[48].hasFunMode)&&x(n,"gamefunmode",d),2048&t[0]&&u!==(u=e[48].isFavorite)&&x(n,"gamefavorite",u),2048&t[0]&&m!==(m=e[48].details?e[48].launchUrl:"")&&x(n,"livelobbyendpoint",m),16&t[0]&&x(n,"integratedgameframedesktop",e[4]),32&t[0]&&x(n,"integratedgameframemobile",e[5]),4&t[0]&&x(n,"clientstyling",e[2]),8&t[0]&&x(n,"clientstylingurl",e[3]),64&t[0]&&x(n,"gamepagemodalurl",e[6])},d(e){e&&me(n)}}}function Ss(e){let n,a,r,t,i,s,o,l=e[17]("Translations.notFound")+"",c=e[17]("Translations.notFoundText")+"";return{c(){n=he("div"),a=he("p"),r=ge(l),i=pe(),s=he("p"),o=ge(c),fe(a,"class",t="PC"!==ze(e[18])?"SearchMessage":"SearchMessagePc"),fe(n,"class","ResultsContainerError")},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(n,i),de(n,s),de(s,o)},p(e,t){131072&t[0]&&l!==(l=e[17]("Translations.notFound")+"")&&ye(r,l),131072&t[0]&&c!==(c=e[17]("Translations.notFoundText")+"")&&ye(o,c)},d(e){e&&me(n)}}}function _s(n){let a,r,i,s,o,l,c,d,u,m,h,g,p,f,y,b,v,w,$,x,S,_,k=n[17]("Translations.cancel")+"";function C(e){return e[14]?ys:fs}let T=C(n),G=T(n);return{c(){a=he("div"),r=he("div"),i=he("div"),s=M("svg"),o=M("path"),l=M("circle"),c=pe(),d=he("div"),u=he("input"),h=pe(),g=he("span"),p=M("svg"),f=M("path"),b=pe(),v=he("small"),w=ge(k),x=pe(),G.c(),this.c=W,fe(o,"stroke","#212121"),fe(o,"stroke-width","2"),fe(o,"stroke-linecap","round"),fe(o,"stroke-linejoin","round"),fe(o,"d","m10.48 10.985 2.21 2.373"),fe(l,"cx","6.5"),fe(l,"cy","6.5"),fe(l,"r","5.75"),fe(l,"stroke","#212121"),fe(l,"stroke-width","1.5"),fe(s,"width","14"),fe(s,"height","15"),fe(s,"fill","none"),fe(s,"xmlns","http://www.w3.org/2000/svg"),fe(i,"class","PC"!==ze(n[18])?"SearchIcon":"SearchIconPc"),fe(u,"class","SearchInput"),fe(u,"type","search"),fe(u,"placeholder",m=n[17]("Translations.placeHolderSearchGames")),fe(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),fe(f,"stroke","#717171"),fe(f,"stroke-width","2"),fe(f,"stroke-linecap","round"),fe(f,"stroke-linejoin","round"),fe(p,"width","11"),fe(p,"height","11"),fe(p,"fill","none"),fe(p,"xmlns","http://www.w3.org/2000/svg"),fe(g,"class",y="SearchClearButton "+(0!=n[8].length?"":"NotVisible")),fe(d,"class","PC"!==ze(n[18])?"SearchContainer":"SearchContainerPc"),fe(v,"class",$="SearchCancelButton "+(n[9]?"NotVisible":"")),fe(r,"class","PC"!==ze(n[18])?"Search":"SearchPc"),fe(a,"class","PC"!==ze(n[18])?"CasinoSearch":"CasinoSearchPc")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(i,s),de(s,o),de(s,l),de(r,c),de(r,d),de(d,u),L(u,n[8]),n[29](u),de(d,h),de(d,g),de(g,p),de(p,f),de(r,b),de(r,v),de(v,w),de(a,x),G.m(a,null),n[32](a),S||(_=[z(u,"input",n[28]),z(u,"focus",n[19]),z(g,"click",n[30]),z(v,"click",n[31])],S=!0)},p(e,t){131072&t[0]&&m!==(m=e[17]("Translations.placeHolderSearchGames"))&&fe(u,"placeholder",m),256&t[0]&&L(u,e[8]),256&t[0]&&y!==(y="SearchClearButton "+(0!=e[8].length?"":"NotVisible"))&&fe(g,"class",y),131072&t[0]&&k!==(k=e[17]("Translations.cancel")+"")&&ye(w,k),512&t[0]&&$!==($="SearchCancelButton "+(e[9]?"NotVisible":""))&&fe(v,"class",$),T===(T=C(e))&&G?G.p(e,t):(G.d(1),(G=T(e))&&(G.c(),G.m(a,null)))},i:W,o:W,d(e){e&&me(a),n[29](null),G.d(),n[32](null),S=!1,V(_)}}}function ks(a,e,i){let t;Ve(a,Ta,e=>i(17,t=e));let n,r,s,o,{endpoint:l=""}=e,{datasource:c=""}=e,{session:d=""}=e,{userid:u=""}=e,{lang:m="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:g=""}=e,{integratedgameframedesktop:p="false"}=e,{integratedgameframemobile:f="false"}=e,{gamepagemodalurl:y="true"}=e,{translationurl:b=""}=e,{showfavorites:v=""}=e,w=window.navigator.userAgent,$=[],x=[],S={},_="",k=!0,C=!1,T=!1,G=!1,M=[];Object.keys(gs).forEach(e=>{hs(e,gs[e])});const E=e=>{{var t,n;e.data&&"SearchedItemClicked"==e.data.type&&(t=e.data.gameId,-1===(x=(x=localStorage.getItem("searchedGamesWds_casino"))?x.split(","):[]).indexOf(t)&&(x.push(t),n=x.join(","),localStorage.setItem("searchedGamesWds_casino",n)))}"UserSessionID"==e.data.type&&(i(15,s=e.data.session),i(16,o=e.data.userid),i(27,G=!0))},L=()=>{if(i(9,k=!1),i(13,C=!0),l&&c&&m&&_.length<2){let e=localStorage.getItem("searchedGamesWds_casino"),t=[],n=[],a=0,r=(t=e?e.split(","):t).length;if(0<r){for(a=0;a<r;a++){let e=new URL(l+"/casino/games/"+t[a]);e.searchParams.append("language",m),e.searchParams.append("datasource",c),e.searchParams.append("platform",ze(w)),n.push(((e,a)=>new Promise((t,n)=>{i(14,T=!0),a&&Object.keys(S).indexOf(a)>=0?(i(14,T=!1),t(S[a])):fetch(e).then(e=>e.json()).then(e=>{i(14,T=!1),S[e[0].gameId]=e[0],t(e[0])}).catch(e=>{i(14,T=!1),console.error(e),n(e)})}))(e,t[a]))}Promise.all(n).then(e=>{i(11,$=e.map(e=>(e.isFavorite=P(e.id),e)))})}}I(C),"function"==typeof gtag&&gtag("event","SearchInitialized",{context:"SearchWidget"})},P=t=>-1!==M.findIndex(e=>e==t),F=()=>{i(8,_=""),i(9,k=!0),i(14,T=!1),i(11,$=[]),i(13,C=!1),I(C)},R=()=>{i(8,_=""),n.focus()},I=e=>{window.postMessage({type:!0===e?"searchActive":"searchCancelled",searchStatus:e})};return Ze(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),a.$$set=e=>{"endpoint"in e&&i(0,l=e.endpoint),"datasource"in e&&i(23,c=e.datasource),"session"in e&&i(24,d=e.session),"userid"in e&&i(25,u=e.userid),"lang"in e&&i(1,m=e.lang),"clientstyling"in e&&i(2,h=e.clientstyling),"clientstylingurl"in e&&i(3,g=e.clientstylingurl),"integratedgameframedesktop"in e&&i(4,p=e.integratedgameframedesktop),"integratedgameframemobile"in e&&i(5,f=e.integratedgameframemobile),"gamepagemodalurl"in e&&i(6,y=e.gamepagemodalurl),"translationurl"in e&&i(26,b=e.translationurl),"showfavorites"in e&&i(7,v=e.showfavorites)},a.$$.update=()=>{if(8389379&a.$$.dirty[0])if(2<=_.length){const a=new URL(l+"/casino/games");a.searchParams.append("datasource",c),a.searchParams.append("expand","vendor"),a.searchParams.append("platform",ze(w)),a.searchParams.append("language",m),a.searchParams.append("pagination","offset=0,limit=30"),a.searchParams.append("filter","name="+_),e=a,new Promise((t,n)=>{i(14,T=!0),fetch(e.href).then(e=>e.json()).then(e=>{i(14,T=!1),t(e)}).catch(e=>{i(14,T=!1),console.error(e),n(e)})}).then(e=>{i(11,$=e.items.map(e=>(e.isFavorite=P(e.id),e)))})}else k||L();var e,t,n;if(2&a.$$.dirty[0]&&m&&(n=m,Ye.set(n)),67108864&a.$$.dirty[0]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{hs(e,t[e])})}).catch(e=>{console.log(e)}),50331648&a.$$.dirty[0]&&d&&u&&(i(27,G=!0),i(15,s=d),i(16,o=u)),134217856&a.$$.dirty[0]&&v&&G&&(n=new URL(`${l}/player/${o}/favorites/`),i(14,T=!0),t={method:"GET",headers:{"X-SessionID":s}},fetch(n.href,t).then(e=>e.json()).then(e=>{i(14,T=!1),M=e.items.map(e=>e.id)})),1028&a.$$.dirty[0]&&h&&r){let e=document.createElement("style");e.innerHTML=h,r.appendChild(e)}if(1032&a.$$.dirty[0]&&g&&r){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}},[l,m,h,g,p,f,y,v,_,k,r,$,n,C,T,s,o,t,w,L,a=>{if(0===(null==a?void 0:a.length))return"";let r,i,s=99999999999;const o=new Date(Date.now());return a.forEach((e,t)=>{var n=new Date(e.schedules[0].startTime),e=new Date(e.schedules[0].endTime);Ra(e).diff(o)<s&&(s=Ra(e).diff(o),i=t),Ra(o).isAfter(n)&&Ra(o).isBefore(e)&&(r=a[i].name)}),r},F,R,c,d,u,b,G,function(){_=this.value,i(8,_)},function(e){Ue[e?"unshift":"push"](()=>{n=e,i(12,n)})},()=>R(),()=>F(),function(e){Ue[e?"unshift":"push"](()=>{r=e,i(10,r)})}]}function Cs(e,t,n){const a=e.slice();return a[129]=t[n],a[131]=n,a}function Ts(e,t,n){const a=e.slice();return a[129]=t[n],a[131]=n,a}function Gs(e){let n,a,r,i,s,o,l="PC"!==ze(e[65])&&"false"===e[12],c=l&&Es(),d="true"==e[21]&&0==qs&&!e[62]&&Ls(e);function u(e){return e[56]?Fs:e[62]?void 0:Ps}let m=u(e),h=m&&m(e),g=e[58]&&"true"==e[17]&&Xs(e);return{c(){n=he("section"),c&&c.c(),a=pe(),r=he("casino-search"),i=pe(),d&&d.c(),s=pe(),h&&h.c(),o=pe(),g&&g.c(),x(r,"endpoint",e[1]),x(r,"datasource",e[2]),x(r,"lang",e[4]),x(r,"clientstyling",e[7]),x(r,"clientstylingurl",e[8]),x(r,"integratedgameframedesktop",e[29]),x(r,"integratedgameframemobile",e[30]),x(r,"translationurl",e[9]),x(r,"showfavorites",e[13]),fe(n,"class","CategoriesLobby"),fe(n,"part","CategoriesLobby"),S(n,"max-width",e[16]+"px")},m(e,t){ue(e,n,t),c&&c.m(n,null),de(n,a),de(n,r),de(n,i),d&&d.m(n,null),de(n,s),h&&h.m(n,null),de(n,o),g&&g.m(n,null)},p(e,t){(l=4096&t[0]?"PC"!==ze(e[65])&&"false"===e[12]:l)?c||((c=Es()).c(),c.m(n,a)):c&&(c.d(1),c=null),2&t[0]&&x(r,"endpoint",e[1]),4&t[0]&&x(r,"datasource",e[2]),16&t[0]&&x(r,"lang",e[4]),128&t[0]&&x(r,"clientstyling",e[7]),256&t[0]&&x(r,"clientstylingurl",e[8]),536870912&t[0]&&x(r,"integratedgameframedesktop",e[29]),1073741824&t[0]&&x(r,"integratedgameframemobile",e[30]),512&t[0]&&x(r,"translationurl",e[9]),8192&t[0]&&x(r,"showfavorites",e[13]),"true"!=e[21]||0!=qs||e[62]?d&&(d.d(1),d=null):d?d.p(e,t):((d=Ls(e)).c(),d.m(n,s)),m===(m=u(e))&&h?h.p(e,t):(h&&h.d(1),(h=m&&m(e))&&(h.c(),h.m(n,o))),e[58]&&"true"==e[17]?g?g.p(e,t):((g=Xs(e)).c(),g.m(n,null)):g&&(g.d(1),g=null),65536&t[0]&&S(n,"max-width",e[16]+"px")},d(e){e&&me(n),c&&c.d(),d&&d.d(),h&&h.d(),g&&g.d()}}}function Ms(e){let n,a,r=e[64]("casinoPage.500")+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","SearchLoading"),fe(n,"part","SearchLoading")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){4&t[2]&&r!==(r=e[64]("casinoPage.500")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Es(){let n;return{c(){fe(n=he("div"),"class","SearchBarPlaceholder"),fe(n,"part","SearchBarPlaceholder")},m(e,t){ue(e,n,t)},d(e){e&&me(n)}}}function Ls(e){let n;return{c(){x(n=he("casino-random-game"),"datasource",e[2]),x(n,"filteredrandomgamecategories",e[22]),x(n,"endpoint",e[1]),x(n,"lang",e[4]),x(n,"gameevent",e[55]),x(n,"randombuttonicon",e[51]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8])},m(e,t){ue(e,n,t)},p(e,t){4&t[0]&&x(n,"datasource",e[2]),4194304&t[0]&&x(n,"filteredrandomgamecategories",e[22]),2&t[0]&&x(n,"endpoint",e[1]),16&t[0]&&x(n,"lang",e[4]),16777216&t[1]&&x(n,"gameevent",e[55]),1048576&t[1]&&x(n,"randombuttonicon",e[51]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8])},d(e){e&&me(n)}}}function Ps(e){let n;function a(e){return e[61]?Ns:e[60]?Os:e[61]?As:e[60]?Is:Rs}let r=a(e),i=r(e);return{c(){i.c(),n=l()},m(e,t){i.m(e,t),ue(e,n,t)},p(e,t){r===(r=a(e))&&i?i.p(e,t):(i.d(1),(i=r(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&me(n)}}}function Fs(e){let n,a,r=e[64]("casinoPage.loading")+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","SearchLoading"),fe(n,"part","SearchLoading")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){4&t[2]&&r!==(r=e[64]("casinoPage.loading")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Rs(e){let n;return{c(){x(n=he("casino-games-category-section"),"userid",e[6]),x(n,"endpoint",e[1]),x(n,"datasource",e[2]),x(n,"favorites",e[13]),x(n,"lang",e[4]),x(n,"currency",e[3]),x(n,"session",e[5]),x(n,"categoryid",e[53]),x(n,"categorygames","9"),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8]),x(n,"livecasino",e[20]),x(n,"visiblegames",e[11]),x(n,"gamepagemodalurl",e[23]),x(n,"integratedgameframedesktop",e[29]),x(n,"integratedgameframemobile",e[30]),x(n,"casinomygames",e[0])},m(e,t){ue(e,n,t)},p(e,t){64&t[0]&&x(n,"userid",e[6]),2&t[0]&&x(n,"endpoint",e[1]),4&t[0]&&x(n,"datasource",e[2]),8192&t[0]&&x(n,"favorites",e[13]),16&t[0]&&x(n,"lang",e[4]),8&t[0]&&x(n,"currency",e[3]),32&t[0]&&x(n,"session",e[5]),4194304&t[1]&&x(n,"categoryid",e[53]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8]),1048576&t[0]&&x(n,"livecasino",e[20]),2048&t[0]&&x(n,"visiblegames",e[11]),8388608&t[0]&&x(n,"gamepagemodalurl",e[23]),536870912&t[0]&&x(n,"integratedgameframedesktop",e[29]),1073741824&t[0]&&x(n,"integratedgameframemobile",e[30]),1&t[0]&&x(n,"casinomygames",e[0])},d(e){e&&me(n)}}}function Is(e){let n;return{c(){x(n=he("casino-my-games"),"userid",e[6]),x(n,"session",e[5]),x(n,"endpoint",e[1]),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"currency",e[3]),x(n,"favorites",e[13]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8]),x(n,"livecasino",e[20]),x(n,"visiblegames",e[11]),x(n,"gamepagemodalurl",e[23]),x(n,"integratedgameframedesktop",e[29]),x(n,"integratedgameframemobile",e[30]),x(n,"translationurl",e[9]),x(n,"mostplayed",e[14]),x(n,"lastplayed",e[15]),x(n,"filteredcategories",e[18]),x(n,"activecategory",e[19]),x(n,"categoryindex","0"),x(n,"categoryid","MYGAMES")},m(e,t){ue(e,n,t)},p(e,t){64&t[0]&&x(n,"userid",e[6]),32&t[0]&&x(n,"session",e[5]),2&t[0]&&x(n,"endpoint",e[1]),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),8&t[0]&&x(n,"currency",e[3]),8192&t[0]&&x(n,"favorites",e[13]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8]),1048576&t[0]&&x(n,"livecasino",e[20]),2048&t[0]&&x(n,"visiblegames",e[11]),8388608&t[0]&&x(n,"gamepagemodalurl",e[23]),536870912&t[0]&&x(n,"integratedgameframedesktop",e[29]),1073741824&t[0]&&x(n,"integratedgameframemobile",e[30]),512&t[0]&&x(n,"translationurl",e[9]),16384&t[0]&&x(n,"mostplayed",e[14]),32768&t[0]&&x(n,"lastplayed",e[15]),262144&t[0]&&x(n,"filteredcategories",e[18]),524288&t[0]&&x(n,"activecategory",e[19])},d(e){e&&me(n)}}}function As(t){let r,i=t[63],s=[];for(let e=0;e<i.length;e+=1)s[e]=Us(Cs(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);ue(t,r,n)},p(t,n){if(2123378175&n[0]|458687&n[1]|2&n[2]){let e;for(i=t[63],e=0;e<i.length;e+=1){var a=Cs(t,i,e);s[e]?s[e].p(a,n):(s[e]=Us(a),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){C(s,e),e&&me(r)}}}function Os(e){let n;return{c(){x(n=he("casino-my-games"),"userid",e[6]),x(n,"session",e[5]),x(n,"endpoint",e[1]),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"currency",e[3]),x(n,"favorites",e[13]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8]),x(n,"livecasino",e[20]),x(n,"visiblegames",e[11]),x(n,"gamepagemodalurl",e[23]),x(n,"integratedgameframedesktop",e[29]),x(n,"integratedgameframemobile",e[30]),x(n,"translationurl",""),x(n,"mostplayed",e[14]),x(n,"lastplayed",e[15]),x(n,"filteredcategories",e[18]),x(n,"activecategory",e[19]),x(n,"categoryindex","0"),x(n,"categoryid","MYGAMES"),x(n,"casinomygames",e[0])},m(e,t){ue(e,n,t)},p(e,t){64&t[0]&&x(n,"userid",e[6]),32&t[0]&&x(n,"session",e[5]),2&t[0]&&x(n,"endpoint",e[1]),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),8&t[0]&&x(n,"currency",e[3]),8192&t[0]&&x(n,"favorites",e[13]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8]),1048576&t[0]&&x(n,"livecasino",e[20]),2048&t[0]&&x(n,"visiblegames",e[11]),8388608&t[0]&&x(n,"gamepagemodalurl",e[23]),536870912&t[0]&&x(n,"integratedgameframedesktop",e[29]),1073741824&t[0]&&x(n,"integratedgameframemobile",e[30]),16384&t[0]&&x(n,"mostplayed",e[14]),32768&t[0]&&x(n,"lastplayed",e[15]),262144&t[0]&&x(n,"filteredcategories",e[18]),524288&t[0]&&x(n,"activecategory",e[19]),1&t[0]&&x(n,"casinomygames",e[0])},d(e){e&&me(n)}}}function Ns(t){let r,i=t[63],s=[];for(let e=0;e<i.length;e+=1)s[e]=Ks(Ts(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);ue(t,r,n)},p(t,n){if(2140155391&n[0]|1048575&n[1]|2&n[2]){let e;for(i=t[63],e=0;e<i.length;e+=1){var a=Ts(t,i,e);s[e]?s[e].p(a,n):(s[e]=Ks(a),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){C(s,e),e&&me(r)}}}function Ds(e){let n,a,r,i;return{c(){n=he("br"),a=pe(),x(r=he("jackpot-banner"),"title","Jackpot Cards"),x(r,"currency",i=e[3]||"RON"),x(r,"gameid","998"),x(r,"endpoint",e[1]),x(r,"lang",e[4]),x(r,"backgroundsrc","/assets/background0.jpg"),x(r,"backgroundsrcmobile","/assets/background0.jpg"),x(r,"titlelogopath","/assets/jackpots_logo.svg"),x(r,"caticon0","/assets/icon0.svg"),x(r,"caticon1","/assets/icon1.svg"),x(r,"caticon2","/assets/icon2.svg"),x(r,"caticon3","/assets/icon3.svg"),x(r,"iconlabels",e[45]),x(r,"visualstructure","typeSpread"),x(r,"clientstyling",e[7]),x(r,"clientstylingurl",e[8])},m(e,t){ue(e,n,t),ue(e,a,t),ue(e,r,t)},p(e,t){8&t[0]&&i!==(i=e[3]||"RON")&&x(r,"currency",i),2&t[0]&&x(r,"endpoint",e[1]),16&t[0]&&x(r,"lang",e[4]),16384&t[1]&&x(r,"iconlabels",e[45]),128&t[0]&&x(r,"clientstyling",e[7]),256&t[0]&&x(r,"clientstylingurl",e[8])},d(e){e&&me(n),e&&me(a),e&&me(r)}}}function Bs(e){let n,a,r,i;return{c(){n=he("br"),a=pe(),x(r=he("jackpot-banner"),"title","Egypt Quest"),x(r,"currency",i=e[3]||"RON"),x(r,"gameid","999"),x(r,"endpoint",e[1]),x(r,"lang",e[4]),x(r,"backgroundsrc",e[42]),x(r,"backgroundsrcmobile",e[43]),x(r,"titlelogopath",e[44]),x(r,"caticon0",e[38]),x(r,"caticon1",e[39]),x(r,"caticon2",e[40]),x(r,"caticon3",e[41]),x(r,"iconlabels",e[45]),x(r,"visualstructure",e[46]),x(r,"clientstyling",e[7]),x(r,"clientstylingurl",e[8])},m(e,t){ue(e,n,t),ue(e,a,t),ue(e,r,t)},p(e,t){8&t[0]&&i!==(i=e[3]||"RON")&&x(r,"currency",i),2&t[0]&&x(r,"endpoint",e[1]),16&t[0]&&x(r,"lang",e[4]),2048&t[1]&&x(r,"backgroundsrc",e[42]),4096&t[1]&&x(r,"backgroundsrcmobile",e[43]),8192&t[1]&&x(r,"titlelogopath",e[44]),128&t[1]&&x(r,"caticon0",e[38]),256&t[1]&&x(r,"caticon1",e[39]),512&t[1]&&x(r,"caticon2",e[40]),1024&t[1]&&x(r,"caticon3",e[41]),16384&t[1]&&x(r,"iconlabels",e[45]),32768&t[1]&&x(r,"visualstructure",e[46]),128&t[0]&&x(r,"clientstyling",e[7]),256&t[0]&&x(r,"clientstylingurl",e[8])},d(e){e&&me(n),e&&me(a),e&&me(r)}}}function Hs(e){let n,a;return{c(){x(n=he("casino-collections-providers"),"endpoint",a=e[1].slice(0,-2)),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"type","vendor"),x(n,"titletype","logo"),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8])},m(e,t){ue(e,n,t)},p(e,t){2&t[0]&&a!==(a=e[1].slice(0,-2))&&x(n,"endpoint",a),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8])},d(e){e&&me(n)}}}function js(e){let n,a;return{c(){x(n=he("casino-collections-providers"),"endpoint",a=e[1].slice(0,-2)),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"type",e[48]),x(n,"titletype",e[49]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8])},m(e,t){ue(e,n,t)},p(e,t){2&t[0]&&a!==(a=e[1].slice(0,-2))&&x(n,"endpoint",a),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),131072&t[1]&&x(n,"type",e[48]),262144&t[1]&&x(n,"titletype",e[49]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8])},d(e){e&&me(n)}}}function Us(n){let a,r,i,s,o,e,l,c,d,u="true"===enablecasinowinners&&1===n[131]&&function(e){let n,a;return{c(){n=he("div"),x(a=he("casino-winners"),"session",e[5]),x(a,"periodrecent",e[31]),x(a,"periodtop",e[32]),x(a,"numberusersrecent",e[33]),x(a,"numberuserstop",e[34]),x(a,"amountlimit",e[35]),x(a,"isrecentavailable",e[28]),x(a,"istopavailable",e[27]),x(a,"defaultcurrency",e[36]),x(a,"enableautoscroll",e[26]),x(a,"tabsorder",e[25]),x(a,"lang",e[4]),x(a,"clientstyling",e[7]),x(a,"clientstylingurl",e[8]),x(a,"endpoint",e[1]),fe(n,"class","CasinoWinners")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){32&t[0]&&x(a,"session",e[5]),1&t[1]&&x(a,"periodrecent",e[31]),2&t[1]&&x(a,"periodtop",e[32]),4&t[1]&&x(a,"numberusersrecent",e[33]),8&t[1]&&x(a,"numberuserstop",e[34]),16&t[1]&&x(a,"amountlimit",e[35]),268435456&t[0]&&x(a,"isrecentavailable",e[28]),134217728&t[0]&&x(a,"istopavailable",e[27]),32&t[1]&&x(a,"defaultcurrency",e[36]),67108864&t[0]&&x(a,"enableautoscroll",e[26]),33554432&t[0]&&x(a,"tabsorder",e[25]),16&t[0]&&x(a,"lang",e[4]),128&t[0]&&x(a,"clientstyling",e[7]),256&t[0]&&x(a,"clientstylingurl",e[8]),2&t[0]&&x(a,"endpoint",e[1])},d(e){e&&me(n)}}}(n),t=4===(h=n)[131]&&"true"==enablejackpotbanner?Bs:6===h[131]&&"true"==enablejackpotbanner?Ds:void 0,m=t&&t(n);var h;function g(e){return 7==e[131]&&"true"==enablecollections?js:e[131]==e[63].length-1&&"true"==enablecollections?Hs:void 0}let p=g(n),f=p&&p(n);return{c(){u&&u.c(),a=pe(),m&&m.c(),r=pe(),f&&f.c(),i=pe(),x(s=he("casino-games-category-section"),"session",n[5]),x(s,"userid",n[6]),x(s,"endpoint",n[1]),x(s,"datasource",n[2]),x(s,"lang",n[4]),x(s,"currency",n[3]),x(s,"categoryid",o=n[129]),x(s,"categoryindex",e=n[131]),x(s,"categorygames","9"),x(s,"favorites",n[13]),x(s,"class","CategoryContainer"),S(s,"background-color",n[131]%2!=0?n[10]:"transparent"),x(s,"clientstyling",n[7]),x(s,"clientstylingurl",n[8]),x(s,"livecasino",n[20]),x(s,"visiblegames",n[11]),x(s,"gamepagemodalurl",n[23]),x(s,"integratedgameframedesktop",n[29]),x(s,"integratedgameframemobile",n[30]),x(s,"casinomygames",n[0])},m(e,t){u&&u.m(e,t),ue(e,a,t),m&&m.m(e,t),ue(e,r,t),f&&f.m(e,t),ue(e,i,t),ue(e,s,t),c||(d=E(l=n[66].call(null,s,n[129])),c=!0)},p(e,t){n=e,"true"===enablecasinowinners&&1===n[131]&&u.p(n,t),m&&m.p(n,t),p===(p=g(n))&&f?f.p(n,t):(f&&f.d(1),(f=p&&p(n))&&(f.c(),f.m(i.parentNode,i))),32&t[0]&&x(s,"session",n[5]),64&t[0]&&x(s,"userid",n[6]),2&t[0]&&x(s,"endpoint",n[1]),4&t[0]&&x(s,"datasource",n[2]),16&t[0]&&x(s,"lang",n[4]),8&t[0]&&x(s,"currency",n[3]),2&t[2]&&o!==(o=n[129])&&x(s,"categoryid",o),8192&t[0]&&x(s,"favorites",n[13]),1024&t[0]&&S(s,"background-color",n[131]%2!=0?n[10]:"transparent"),128&t[0]&&x(s,"clientstyling",n[7]),256&t[0]&&x(s,"clientstylingurl",n[8]),1048576&t[0]&&x(s,"livecasino",n[20]),2048&t[0]&&x(s,"visiblegames",n[11]),8388608&t[0]&&x(s,"gamepagemodalurl",n[23]),536870912&t[0]&&x(s,"integratedgameframedesktop",n[29]),1073741824&t[0]&&x(s,"integratedgameframemobile",n[30]),1&t[0]&&x(s,"casinomygames",n[0]),l&&T(l.update)&&2&t[2]&&l.update.call(null,n[129])},d(e){u&&u.d(e),e&&me(a),m&&m.d(e),e&&me(r),f&&f.d(e),e&&me(i),e&&me(s),c=!1,d()}}}function Ys(e){let n,a;return{c(){n=he("div"),x(a=he("casino-winners"),"session",e[5]),x(a,"userid",e[6]),x(a,"periodrecent",e[31]),x(a,"periodtop",e[32]),x(a,"numberusersrecent",e[33]),x(a,"numberuserstop",e[34]),x(a,"amountlimit",e[35]),x(a,"isrecentavailable",e[28]),x(a,"istopavailable",e[27]),x(a,"defaultcurrency",e[36]),x(a,"usercurrency",e[3]),x(a,"enableautoscroll",e[26]),x(a,"tabsorder",e[25]),x(a,"lang",e[4]),x(a,"clientstyling",e[7]),x(a,"clientstylingurl",e[8]),x(a,"endpoint",e[1]),fe(n,"class","CasinoWinners")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){32&t[0]&&x(a,"session",e[5]),64&t[0]&&x(a,"userid",e[6]),1&t[1]&&x(a,"periodrecent",e[31]),2&t[1]&&x(a,"periodtop",e[32]),4&t[1]&&x(a,"numberusersrecent",e[33]),8&t[1]&&x(a,"numberuserstop",e[34]),16&t[1]&&x(a,"amountlimit",e[35]),268435456&t[0]&&x(a,"isrecentavailable",e[28]),134217728&t[0]&&x(a,"istopavailable",e[27]),32&t[1]&&x(a,"defaultcurrency",e[36]),8&t[0]&&x(a,"usercurrency",e[3]),67108864&t[0]&&x(a,"enableautoscroll",e[26]),33554432&t[0]&&x(a,"tabsorder",e[25]),16&t[0]&&x(a,"lang",e[4]),128&t[0]&&x(a,"clientstyling",e[7]),256&t[0]&&x(a,"clientstylingurl",e[8]),2&t[0]&&x(a,"endpoint",e[1])},d(e){e&&me(n)}}}function Ws(e){let n,a,r,i;return{c(){n=he("br"),a=pe(),x(r=he("jackpot-banner"),"title","Jackpot Cards"),x(r,"currency",i=e[3]||"RON"),x(r,"gameid","999"),x(r,"endpoint",e[1]),x(r,"lang",e[4]),x(r,"backgroundsrc","/assets/background0.jpg"),x(r,"backgroundsrcmobile","/assets/background0.jpg"),x(r,"titlelogopath","/assets/jackpots_logo.svg"),x(r,"caticon0","/assets/icon0.svg"),x(r,"caticon1","/assets/icon1.svg"),x(r,"caticon2","/assets/icon2.svg"),x(r,"caticon3","/assets/icon3.svg"),x(r,"iconlabels",e[45]),x(r,"visualstructure","typeSpread"),x(r,"clientstyling",e[7]),x(r,"clientstylingurl",e[8])},m(e,t){ue(e,n,t),ue(e,a,t),ue(e,r,t)},p(e,t){8&t[0]&&i!==(i=e[3]||"RON")&&x(r,"currency",i),2&t[0]&&x(r,"endpoint",e[1]),16&t[0]&&x(r,"lang",e[4]),16384&t[1]&&x(r,"iconlabels",e[45]),128&t[0]&&x(r,"clientstyling",e[7]),256&t[0]&&x(r,"clientstylingurl",e[8])},d(e){e&&me(n),e&&me(a),e&&me(r)}}}function zs(e){let n,a,r,i;return{c(){n=he("br"),a=pe(),x(r=he("jackpot-banner"),"title","Egypt Quest"),x(r,"currency",i=e[3]||"RON"),x(r,"gameid","998"),x(r,"endpoint",e[1]),x(r,"lang",e[4]),x(r,"backgroundsrc",e[42]),x(r,"backgroundsrcmobile",e[43]),x(r,"titlelogopath",e[44]),x(r,"caticon0",e[38]),x(r,"caticon1",e[39]),x(r,"caticon2",e[40]),x(r,"caticon3",e[41]),x(r,"iconlabels",e[45]),x(r,"visualstructure",e[46]),x(r,"clientstyling",e[7]),x(r,"clientstylingurl",e[8])},m(e,t){ue(e,n,t),ue(e,a,t),ue(e,r,t)},p(e,t){8&t[0]&&i!==(i=e[3]||"RON")&&x(r,"currency",i),2&t[0]&&x(r,"endpoint",e[1]),16&t[0]&&x(r,"lang",e[4]),2048&t[1]&&x(r,"backgroundsrc",e[42]),4096&t[1]&&x(r,"backgroundsrcmobile",e[43]),8192&t[1]&&x(r,"titlelogopath",e[44]),128&t[1]&&x(r,"caticon0",e[38]),256&t[1]&&x(r,"caticon1",e[39]),512&t[1]&&x(r,"caticon2",e[40]),1024&t[1]&&x(r,"caticon3",e[41]),16384&t[1]&&x(r,"iconlabels",e[45]),32768&t[1]&&x(r,"visualstructure",e[46]),128&t[0]&&x(r,"clientstyling",e[7]),256&t[0]&&x(r,"clientstylingurl",e[8])},d(e){e&&me(n),e&&me(a),e&&me(r)}}}function Vs(e){let n,a;return{c(){x(n=he("casino-collections-providers"),"endpoint",a=e[1].slice(0,-2)),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"type","vendor"),x(n,"titletype","logo"),x(n,"collectionprovidersgamenames",e[50]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8])},m(e,t){ue(e,n,t)},p(e,t){2&t[0]&&a!==(a=e[1].slice(0,-2))&&x(n,"endpoint",a),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),524288&t[1]&&x(n,"collectionprovidersgamenames",e[50]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8])},d(e){e&&me(n)}}}function Zs(e){let n,a;return{c(){x(n=he("casino-collections-providers"),"endpoint",a=e[1].slice(0,-2)),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"type",e[48]),x(n,"collectionprovidersgamenames",e[50]),x(n,"titletype",e[49]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8])},m(e,t){ue(e,n,t)},p(e,t){2&t[0]&&a!==(a=e[1].slice(0,-2))&&x(n,"endpoint",a),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),131072&t[1]&&x(n,"type",e[48]),524288&t[1]&&x(n,"collectionprovidersgamenames",e[50]),262144&t[1]&&x(n,"titletype",e[49]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8])},d(e){e&&me(n)}}}function Ks(n){let a,r,i,s,o,l,c,d,u,e,m,h,g,p=n[24]&&n[131]==+n[24]&&Ys(n);function f(e,t){return 64&t[1]|2&t[2]&&(r=null),64&t[1]|2&t[2]&&(i=null),(r=null==r?!(!e[37]||e[131]!=(""==e[37].split(",")[0]?e[63].length:+e[37].split(",")[0])):r)?zs:(i=null==i?!(!e[37]||e[131]!=(""==e[37].split(",")[1]?e[63].length:+e[37].split(",")[1])):i)?Ws:void 0}let y=f(n,[-1,-1,-1,-1,-1]),b=y&&y(n);function v(e,t){return 65536&t[1]|2&t[2]&&(o=null),65536&t[1]|2&t[2]&&(l=null),(o=null==o?!(!e[47]||e[131]!=(""==e[47].split(",")[0]?e[63].length:+e[47].split(",")[0])):o)?Zs:(l=null==l?!(!e[47]||e[131]!=(""==e[47].split(",")[1]?e[63].length:+e[47].split(",")[1])):l)?Vs:void 0}let w=v(n,[-1,-1,-1,-1,-1]),$=w&&w(n);return{c(){p&&p.c(),a=pe(),b&&b.c(),s=pe(),$&&$.c(),c=pe(),x(d=he("casino-games-category-section"),"session",n[5]),x(d,"userid",n[6]),x(d,"endpoint",n[1]),x(d,"datasource",n[2]),x(d,"lang",n[4]),x(d,"currency",n[3]),x(d,"categoryid",u=n[129]),x(d,"categoryindex",e=n[131]),x(d,"categorygames","9"),x(d,"favorites",n[13]),x(d,"class","CategoryContainer"),S(d,"background-color",n[131]%2!=0?n[10]:"transparent"),x(d,"clientstyling",n[7]),x(d,"clientstylingurl",n[8]),x(d,"livecasino",n[20]),x(d,"visiblegames",n[11]),x(d,"gamepagemodalurl",n[23]),x(d,"integratedgameframedesktop",n[29]),x(d,"integratedgameframemobile",n[30]),x(d,"casinomygames",n[0])},m(e,t){p&&p.m(e,t),ue(e,a,t),b&&b.m(e,t),ue(e,s,t),$&&$.m(e,t),ue(e,c,t),ue(e,d,t),h||(g=E(m=n[66].call(null,d,n[129])),h=!0)},p(e,t){(n=e)[24]&&n[131]==+n[24]?p?p.p(n,t):((p=Ys(n)).c(),p.m(a.parentNode,a)):p&&(p.d(1),p=null),y===(y=f(n,t))&&b?b.p(n,t):(b&&b.d(1),(b=y&&y(n))&&(b.c(),b.m(s.parentNode,s))),w===(w=v(n,t))&&$?$.p(n,t):($&&$.d(1),($=w&&w(n))&&($.c(),$.m(c.parentNode,c))),32&t[0]&&x(d,"session",n[5]),64&t[0]&&x(d,"userid",n[6]),2&t[0]&&x(d,"endpoint",n[1]),4&t[0]&&x(d,"datasource",n[2]),16&t[0]&&x(d,"lang",n[4]),8&t[0]&&x(d,"currency",n[3]),2&t[2]&&u!==(u=n[129])&&x(d,"categoryid",u),8192&t[0]&&x(d,"favorites",n[13]),1024&t[0]&&S(d,"background-color",n[131]%2!=0?n[10]:"transparent"),128&t[0]&&x(d,"clientstyling",n[7]),256&t[0]&&x(d,"clientstylingurl",n[8]),1048576&t[0]&&x(d,"livecasino",n[20]),2048&t[0]&&x(d,"visiblegames",n[11]),8388608&t[0]&&x(d,"gamepagemodalurl",n[23]),536870912&t[0]&&x(d,"integratedgameframedesktop",n[29]),1073741824&t[0]&&x(d,"integratedgameframemobile",n[30]),1&t[0]&&x(d,"casinomygames",n[0]),m&&T(m.update)&&2&t[2]&&m.update.call(null,n[129])},d(e){p&&p.d(e),e&&me(a),b&&b.d(e),e&&me(s),$&&$.d(e),e&&me(c),e&&me(d),h=!1,g()}}}function Xs(n){let a,r,i,e,t,s,o,l=n[64]("casinoPage.breakButton")+"";return{c(){a=he("div"),r=he("button"),i=ge(l),fe(r,"class",e="PanicButton "+("PC"!==ze(n[65])?"PanicButtonMobile ":"")),fe(r,"part",t="PanicButton "+("PC"!==ze(n[65])?"PanicButtonMobile":"")),m(r,"PanicButtonAnimation",n[59]),fe(a,"class",s="PanicSection "+("PC"!==ze(n[65])?"PanicSectionMobile":"")),fe(a,"part",o="PanicSection "+("PC"!==ze(n[65])?"PanicSectionMobile":""))},m(e,t){ue(e,a,t),de(a,r),de(r,i),n[71](r)},p(e,t){4&t[2]&&l!==(l=e[64]("casinoPage.breakButton")+"")&&ye(i,l),268435456&t[1]&&m(r,"PanicButtonAnimation",e[59])},d(e){e&&me(a),n[71](null)}}}function Js(n){let a;function r(e){return e[57]?Ms:Gs}let i=r(n),s=i(n);return{c(){a=he("div"),s.c(),this.c=W},m(e,t){ue(e,a,t),s.m(a,null),n[72](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s.d(),n[72](null)}}}customElements.get("casino-search")||customElements.define("casino-search",class extends e{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}.CasinoSearchPc{margin:16px}.CasinoSearch{margin:16px}.SearchPc{display:flex;align-items:center;position:relative;margin-bottom:20px;left:19%}.Search{display:flex;align-items:center;position:relative;justify-content:space-between;margin-bottom:20px}.SearchIconPc{position:absolute;left:20px;z-index:1}.SearchIconPc svg{height:14px;width:13px}.SearchIcon{position:absolute;left:5%;z-index:1}.SearchIcon svg{height:14px;width:13px}.SearchContainerPc{width:60%;position:relative}.SearchContainer{width:100%;position:relative}.SearchInput{border-radius:4px;border:1px solid #cacaca;color:#717171;display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%}.SearchInput::placeholder{color:#717171;font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid #d9d7d7}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:15px}.SearchCancelButton{color:#717171;font-weight:300;margin-left:8px}.SearchMessagePc{font-size:18px;font-weight:600;margin:24px 0;color:#FFFFFF;margin-top:90px}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:#212121}.SearchResultsContainer{display:grid;gap:8px;grid-template-columns:repeat(auto-fill, minmax(Min(167px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 167px);grid-auto-rows:167px;grid-auto-columns:167px;grid-auto-flow:row dense}.ResultsContainerError{text-align:center;width:300px;color:#717171;font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.NotVisible{display:none}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ks,_s,t,{endpoint:0,datasource:23,session:24,userid:25,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,gamepagemodalurl:6,translationurl:26,showfavorites:7},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","session","userid","lang","clientstyling","clientstylingurl","integratedgameframedesktop","integratedgameframemobile","gamepagemodalurl","translationurl","showfavorites"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[23]}set datasource(e){this.$$set({datasource:e}),f()}get session(){return this.$$.ctx[24]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[25]}set userid(e){this.$$set({userid:e}),f()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get gamepagemodalurl(){return this.$$.ctx[6]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),f()}get showfavorites(){return this.$$.ctx[7]}set showfavorites(e){this.$$set({showfavorites:e}),f()}});let qs=!1;function Qs(e,t,l){let A;Ve(e,Ta,e=>l(64,A=e));let O,{endpoint:c=""}=t,{datasource:n=""}=t,{currency:N=""}=t,{lang:r=""}=t,{session:i=""}=t,{userid:s=""}=t,{clientstyling:o=""}=t,{clientstylingurl:d=""}=t,{translationurl:u=""}=t,{categorybackground:D=""}=t,B=t["visiblegames"],{alternativesearch:H="false"}=t,{favorites:m=""}=t,{mostplayed:j=""}=t,{lastplayed:U=""}=t,{containermaxwidth:Y="1300"}=t,{lobbyid:W="casinodefault"}=t,{haspanicbutton:z="false"}=t,{mostplayedrounds:V=""}=t,{lastplayedperiod:Z=""}=t,{filteredcategories:h=""}=t,{activecategory:g=""}=t,{livecasino:K="false"}=t,{playrandomgame:X="false"}=t,{filteredrandomgamecategories:J=""}=t,{gamepagemodalurl:q="false"}=t,{positionwinnerswidget:Q=""}=t,{tabsorder:ee=""}=t,{enableautoscroll:te=""}=t,{istopavailable:ne=""}=t,{isrecentavailable:ae=""}=t,{integratedgameframedesktop:re="false"}=t,{integratedgameframemobile:ie="false"}=t,{periodrecent:se=""}=t,{periodtop:oe=""}=t,{numberusersrecent:le=""}=t,{numberuserstop:ce=""}=t,{amountlimit:de=""}=t,{defaultcurrency:ue=""}=t,{positionjackpotbanners:me=""}=t,{caticon0:he=""}=t,{caticon1:ge=""}=t,{caticon2:pe=""}=t,{caticon3:fe=""}=t,{backgroundsrc:ye=""}=t,{backgroundsrcmobile:be=""}=t,{titlelogopath:ve=""}=t,{iconlabels:we=""}=t,{visualstructure:$e=""}=t,{positioncollections:xe=""}=t,{type:Se=""}=t,{titletype:_e=""}=t,{casinomygames:p="false"}=t,{collectionprovidersgamenames:ke=""}=t,{randombuttonicon:Ce=""}=t,Te=window.navigator.userAgent;O=We(Te)?"OpenGameFrame":"ShowGameModal";let f,y,b,Ge,v,w,Me,Ee,a,$,x=!1,S=!1,Le=!1,_="",k=!1,C=0,T=!1,G=!0,Pe=!1,Fe=[],M=[],Re=!1,E=[],L="",Ie=!1;var Ae,Oe;({withLocale:Ae,translations:Oe}={withLocale:"en",translations:{}}),Ye.subscribe(e=>{null==e&&(ia.set(Oe),Ye.set(Ae))}),Object.keys(Ma).forEach(e=>{Ga(e,Ma[e])});const Ne=e=>{switch(Re=!0,l(0,p="false"),setTimeout(()=>{window.postMessage({type:"WidgetTopReference",scrollTop:Re},window.location.href)}),e.data.itemId){case"LOBBY":l(61,G=!0),l(60,T=!1),l(53,v="");break;case"MYGAMES":l(0,p="true"),l(61,G=!1),l(60,T=!0),l(53,v="");break;case"FAVORITES":l(61,G=!1),l(60,T=!0),l(53,v="");break;case"MOSTPLAYED":"true"==j&&(l(53,v=""),l(61,G=!1),l(60,T=!0));break;case"LASTPLAYED":"true"==U&&(l(53,v=""),l(61,G=!1),l(60,T=!0));break;default:l(61,G=!1),l(60,T=!1),l(53,v=e.data.itemId),setTimeout(()=>{window.postMessage({type:"CategoryUpdate",itemId:v},window.location.href)},500)}},De=n=>{if(n.data)switch(n.data.type){case"CategoryChange":Ne(n);break;case"UserSessionID":y=n.data.session,(f=n.data.userID)&&f.length&&y&&0<y.length&&P(c,y,f);break;case"SetUnfavoredGame":t=`${c}/player/${f}/favorites`,s=y,f,o=n.data.id,n.data.triggerFactor,E.includes(o)&&(E=E.filter(e=>e!=o)),fetch(t+"/"+o,{method:"DELETE",headers:{"X-SessionID":s}}).then(e=>e.json()).then(e=>{window.postMessage({type:"RemoveFavoriteThumbnail_"+o},window.location.href),Be(t,s)});break;case"SetFavoredGame":{var a=`${c}/player/${f}/favorites`;var r=y;f;var i=n.data.id;n.data.triggerFactor;E.includes(i)||E.push(i);let e={items:E},t={method:"POST",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(a,t).then(e=>e.json()).then(e=>{window.postMessage({type:`AddFavoriteThumbnail_${i}`},window.location.href),Be(a,r)}).catch(e=>{console.error("Err",e)})}break;case"GetFavoredGame":f&&f.length&&y&&0<y.length&&P(c,y,f);break;case"UpdateFilters":e=n.data.vendorsArray,window.postMessage({type:"UpdateSelectedVendorFilters",venArray:e},window.location.href),F();break;case"ClearFilters":e=n.data.vendorsArray,window.postMessage({type:"AvailableVendors",venArray:e},window.location.href),F();break;case"ApplyFilters":window.postMessage({type:"CategoryUpdate",itemId:L},window.location.href),F();break;case"CategoryVendors":L=n.data.categoryid,F();break;case"searchCancelled":l(62,Pe=!1);break;case"searchActive":l(62,Pe=!0);break;case"ModalClosed":break;case"SubgroupsIds":M.some(e=>n.data.subGroupsIds.includes(e))||M.push(...n.data.subGroupsIds)}var e,t,s,o};let P=(e,t,n)=>{"true"==m&&i&&n&&fetch(e+`/player/${n}/favorites/`,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>((a=e)&&(window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:a},window.location.href),He(a.items)),a)).then(e=>e).catch(e=>{console.error(e)})},Be=(e,t,n)=>{fetch(e,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>((a=e)&&window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:a},window.location.href),a)).catch(e=>{console.error(e)})};const He=(e=[])=>(E=[],0<e.length&&e.forEach(e=>{E.push(e.id)}),E);const F=()=>{var e=JSON.parse(sessionStorage.getItem("vendorFiltersByCategory"));e&&L&&e[L]&&e[L].length},je=()=>{w&&(Me=w.getBoundingClientRect().top+document.body.getBoundingClientRect().top),document.documentElement.scrollTop},R=e=>{C=0,Ge=setInterval(()=>{C+=1,l(59,k=!0),3<=C&&(window.postMessage({type:"PanicButtonClicked"},window.location.href),clearInterval(Ge))},1e3)},I=e=>{C<3&&l(59,k=!1),clearInterval(Ge)};return Ze(()=>(window.addEventListener("scroll",je,!1),window.addEventListener("message",De,!1),()=>{window.removeEventListener("scroll",je),window.removeEventListener("message",De),l(59,k=!1),null!=b&&b.removeEventListener("mousedown",R),null!=b&&b.removeEventListener("touchstart",R),null!=b&&b.removeEventListener("mouseup",I),null!=b&&b.removeEventListener("touchend",I)})),e.$$set=e=>{"endpoint"in e&&l(1,c=e.endpoint),"datasource"in e&&l(2,n=e.datasource),"currency"in e&&l(3,N=e.currency),"lang"in e&&l(4,r=e.lang),"session"in e&&l(5,i=e.session),"userid"in e&&l(6,s=e.userid),"clientstyling"in e&&l(7,o=e.clientstyling),"clientstylingurl"in e&&l(8,d=e.clientstylingurl),"translationurl"in e&&l(9,u=e.translationurl),"categorybackground"in e&&l(10,D=e.categorybackground),"visiblegames"in e&&l(11,B=e.visiblegames),"alternativesearch"in e&&l(12,H=e.alternativesearch),"favorites"in e&&l(13,m=e.favorites),"mostplayed"in e&&l(14,j=e.mostplayed),"lastplayed"in e&&l(15,U=e.lastplayed),"containermaxwidth"in e&&l(16,Y=e.containermaxwidth),"lobbyid"in e&&l(67,W=e.lobbyid),"haspanicbutton"in e&&l(17,z=e.haspanicbutton),"mostplayedrounds"in e&&l(68,V=e.mostplayedrounds),"lastplayedperiod"in e&&l(69,Z=e.lastplayedperiod),"filteredcategories"in e&&l(18,h=e.filteredcategories),"activecategory"in e&&l(19,g=e.activecategory),"livecasino"in e&&l(20,K=e.livecasino),"playrandomgame"in e&&l(21,X=e.playrandomgame),"filteredrandomgamecategories"in e&&l(22,J=e.filteredrandomgamecategories),"gamepagemodalurl"in e&&l(23,q=e.gamepagemodalurl),"positionwinnerswidget"in e&&l(24,Q=e.positionwinnerswidget),"tabsorder"in e&&l(25,ee=e.tabsorder),"enableautoscroll"in e&&l(26,te=e.enableautoscroll),"istopavailable"in e&&l(27,ne=e.istopavailable),"isrecentavailable"in e&&l(28,ae=e.isrecentavailable),"integratedgameframedesktop"in e&&l(29,re=e.integratedgameframedesktop),"integratedgameframemobile"in e&&l(30,ie=e.integratedgameframemobile),"periodrecent"in e&&l(31,se=e.periodrecent),"periodtop"in e&&l(32,oe=e.periodtop),"numberusersrecent"in e&&l(33,le=e.numberusersrecent),"numberuserstop"in e&&l(34,ce=e.numberuserstop),"amountlimit"in e&&l(35,de=e.amountlimit),"defaultcurrency"in e&&l(36,ue=e.defaultcurrency),"positionjackpotbanners"in e&&l(37,me=e.positionjackpotbanners),"caticon0"in e&&l(38,he=e.caticon0),"caticon1"in e&&l(39,ge=e.caticon1),"caticon2"in e&&l(40,pe=e.caticon2),"caticon3"in e&&l(41,fe=e.caticon3),"backgroundsrc"in e&&l(42,ye=e.backgroundsrc),"backgroundsrcmobile"in e&&l(43,be=e.backgroundsrcmobile),"titlelogopath"in e&&l(44,ve=e.titlelogopath),"iconlabels"in e&&l(45,we=e.iconlabels),"visualstructure"in e&&l(46,$e=e.visualstructure),"positioncollections"in e&&l(47,xe=e.positioncollections),"type"in e&&l(48,Se=e.type),"titletype"in e&&l(49,_e=e.titletype),"casinomygames"in e&&l(0,p=e.casinomygames),"collectionprovidersgamenames"in e&&l(50,ke=e.collectionprovidersgamenames),"randombuttonicon"in e&&l(51,Ce=e.randombuttonicon)},e.$$.update=()=>{var a,t;if((524304&e.$$.dirty[0]&&r&&g&&(l(53,v=g),Ne({data:{itemId:v}})),98&e.$$.dirty[0]&&i&&s&&c&&(l(58,Le=!0),y=i,(f=s)&&f.length&&y&&0<y.length&&"true"!=p&&P(c,y,f)),4194304&e.$$.dirty[1]|256&e.$$.dirty[2]&&v&&M&&M&&!M.includes(decodeURI(v))&&""!=v&&window.postMessage({type:"NonExistentCategory"},window.location.href),4118&e.$$.dirty[0]&&c&&n&&r&&H)&&(c||(_="Endpoint is missing! Please provide a valid endpointURL.",l(57,S=!0),l(56,x=!1),console.error(_)),n||(_="Datasource is missing! Please provide a valid datasource.",l(57,S=!0),l(56,x=!1),console.error(_)),(!r||r.length<2)&&(_="Language is missing! Please provide a valid language (alpha2code)",l(57,S=!0),l(56,x=!1),console.error(_)),!S)){l(56,x=!0),"true"==m&&P(c,y,f),t=r,Ye.set(t);let e=new URL(c+"/casino/groups/"+n);e.searchParams.append("language",r),e.searchParams.append("platform",ze(Te)),a=e,new Promise((t,n)=>{l(56,x=!0),fetch(a).then(e=>e.json()).then(e=>{l(56,x=!1),t(e)}).catch(e=>{l(57,S=!0),l(56,x=!1),console.error(e),n(e)})}).then(e=>{let a=h.split(",");e&&(Ee=e.items.filter(e=>{let t;if(0<e.games.total&&(t=!0,h))for(var n of a)e.flags==n&&(t=!1);return t}),l(63,Fe=Ee.map(e=>e.id)),l(70,M=e.items.map(e=>e.id.toString())),l(56,x=!1))}),F(),(w=void 0)&&(Me=w.getBoundingClientRect().top-document.body.getBoundingClientRect().top)}if(16&e.$$.dirty[0]&&r&&(Ie&&setTimeout(()=>{window.postMessage({type:"CategoryUpdate",itemId:v},window.location.href)},500),Ie=!1),512&e.$$.dirty[0]&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ga(e,t[e])})}).catch(e=>{console.log(e)}),128&e.$$.dirty[0]|8388608&e.$$.dirty[1]&&o&&$){let e=document.createElement("style");e.innerHTML=o,$.appendChild(e)}if(256&e.$$.dirty[0]|8388608&e.$$.dirty[1]&&d&&$){let t=document.createElement("style");fetch(new URL(d)).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{$.appendChild(t)},1)})}2097152&e.$$.dirty[1]&&b&&(null!=b&&b.addEventListener("mousedown",R,!1),null!=b&&b.addEventListener("touchstart",R,!1),null!=b&&b.addEventListener("mouseup",I,!1),null!=b&&b.addEventListener("touchend",I,!1))},[p,c,n,N,r,i,s,o,d,u,D,B,H,m,j,U,Y,z,h,g,K,X,J,q,Q,ee,te,ne,ae,re,ie,se,oe,le,ce,de,ue,me,he,ge,pe,fe,ye,be,ve,we,$e,xe,Se,_e,ke,Ce,b,v,$,O,x,S,Le,k,T,G,Pe,Fe,A,Te,(e,t)=>{L=t,window.postMessage({type:"CategoryData_"+t,categoryId:t,visiblegames:B,receivedFavoriteResults:a},window.location.href)},W,V,Z,M,function(e){Ue[e?"unshift":"push"](()=>{b=e,l(52,b)})},function(e){Ue[e?"unshift":"push"](()=>{$=e,l(54,$)})}]}class eo extends e{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}.CategoriesLobby{margin:0 auto;position:relative}.CasinoWinners{background:transparent;width:100%;min-height:200px}.PanicSectionMobile{flex-direction:column;margin:20px 0}.PanicSection{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:20px}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:48px;line-height:18px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}.PanicButtonMobile{width:280px;padding:0 5px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}[type=\"search\"]{appearance:none}.CategoryContainer{display:block}@media screen and (max-width: 1300px){.CategoryContainer{padding:0 2.4%}}.SearchLoading{color:var(--emfe-w-color-white, #FFFFFF);font-size:14px;margin-top:16px;text-align:center}@media screen and (max-width: 1300px){}@media(max-width: 768px){}.SearchBarPlaceholder{display:block;width:100%;height:46px}.SearchBarPlaceholder{display:block;width:100%;height:46px}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Qs,Js,t,{endpoint:1,datasource:2,currency:3,lang:4,session:5,userid:6,clientstyling:7,clientstylingurl:8,translationurl:9,categorybackground:10,visiblegames:11,alternativesearch:12,favorites:13,mostplayed:14,lastplayed:15,containermaxwidth:16,lobbyid:67,haspanicbutton:17,mostplayedrounds:68,lastplayedperiod:69,filteredcategories:18,activecategory:19,livecasino:20,playrandomgame:21,filteredrandomgamecategories:22,gamepagemodalurl:23,positionwinnerswidget:24,tabsorder:25,enableautoscroll:26,istopavailable:27,isrecentavailable:28,integratedgameframedesktop:29,integratedgameframemobile:30,periodrecent:31,periodtop:32,numberusersrecent:33,numberuserstop:34,amountlimit:35,defaultcurrency:36,positionjackpotbanners:37,caticon0:38,caticon1:39,caticon2:40,caticon3:41,backgroundsrc:42,backgroundsrcmobile:43,titlelogopath:44,iconlabels:45,visualstructure:46,positioncollections:47,type:48,titletype:49,casinomygames:0,collectionprovidersgamenames:50,randombuttonicon:51},null,[-1,-1,-1,-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","translationurl","categorybackground","visiblegames","alternativesearch","favorites","mostplayed","lastplayed","containermaxwidth","lobbyid","haspanicbutton","mostplayedrounds","lastplayedperiod","filteredcategories","activecategory","livecasino","playrandomgame","filteredrandomgamecategories","gamepagemodalurl","positionwinnerswidget","tabsorder","enableautoscroll","istopavailable","isrecentavailable","integratedgameframedesktop","integratedgameframemobile","periodrecent","periodtop","numberusersrecent","numberuserstop","amountlimit","defaultcurrency","positionjackpotbanners","caticon0","caticon1","caticon2","caticon3","backgroundsrc","backgroundsrcmobile","titlelogopath","iconlabels","visualstructure","positioncollections","type","titletype","casinomygames","collectionprovidersgamenames","randombuttonicon"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),f()}get currency(){return this.$$.ctx[3]}set currency(e){this.$$set({currency:e}),f()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),f()}get session(){return this.$$.ctx[5]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[6]}set userid(e){this.$$set({userid:e}),f()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),f()}get categorybackground(){return this.$$.ctx[10]}set categorybackground(e){this.$$set({categorybackground:e}),f()}get visiblegames(){return this.$$.ctx[11]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get alternativesearch(){return this.$$.ctx[12]}set alternativesearch(e){this.$$set({alternativesearch:e}),f()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),f()}get mostplayed(){return this.$$.ctx[14]}set mostplayed(e){this.$$set({mostplayed:e}),f()}get lastplayed(){return this.$$.ctx[15]}set lastplayed(e){this.$$set({lastplayed:e}),f()}get containermaxwidth(){return this.$$.ctx[16]}set containermaxwidth(e){this.$$set({containermaxwidth:e}),f()}get lobbyid(){return this.$$.ctx[67]}set lobbyid(e){this.$$set({lobbyid:e}),f()}get haspanicbutton(){return this.$$.ctx[17]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),f()}get mostplayedrounds(){return this.$$.ctx[68]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),f()}get lastplayedperiod(){return this.$$.ctx[69]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),f()}get filteredcategories(){return this.$$.ctx[18]}set filteredcategories(e){this.$$set({filteredcategories:e}),f()}get activecategory(){return this.$$.ctx[19]}set activecategory(e){this.$$set({activecategory:e}),f()}get livecasino(){return this.$$.ctx[20]}set livecasino(e){this.$$set({livecasino:e}),f()}get playrandomgame(){return this.$$.ctx[21]}set playrandomgame(e){this.$$set({playrandomgame:e}),f()}get filteredrandomgamecategories(){return this.$$.ctx[22]}set filteredrandomgamecategories(e){this.$$set({filteredrandomgamecategories:e}),f()}get gamepagemodalurl(){return this.$$.ctx[23]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get positionwinnerswidget(){return this.$$.ctx[24]}set positionwinnerswidget(e){this.$$set({positionwinnerswidget:e}),f()}get tabsorder(){return this.$$.ctx[25]}set tabsorder(e){this.$$set({tabsorder:e}),f()}get enableautoscroll(){return this.$$.ctx[26]}set enableautoscroll(e){this.$$set({enableautoscroll:e}),f()}get istopavailable(){return this.$$.ctx[27]}set istopavailable(e){this.$$set({istopavailable:e}),f()}get isrecentavailable(){return this.$$.ctx[28]}set isrecentavailable(e){this.$$set({isrecentavailable:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[29]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get integratedgameframemobile(){return this.$$.ctx[30]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get periodrecent(){return this.$$.ctx[31]}set periodrecent(e){this.$$set({periodrecent:e}),f()}get periodtop(){return this.$$.ctx[32]}set periodtop(e){this.$$set({periodtop:e}),f()}get numberusersrecent(){return this.$$.ctx[33]}set numberusersrecent(e){this.$$set({numberusersrecent:e}),f()}get numberuserstop(){return this.$$.ctx[34]}set numberuserstop(e){this.$$set({numberuserstop:e}),f()}get amountlimit(){return this.$$.ctx[35]}set amountlimit(e){this.$$set({amountlimit:e}),f()}get defaultcurrency(){return this.$$.ctx[36]}set defaultcurrency(e){this.$$set({defaultcurrency:e}),f()}get positionjackpotbanners(){return this.$$.ctx[37]}set positionjackpotbanners(e){this.$$set({positionjackpotbanners:e}),f()}get caticon0(){return this.$$.ctx[38]}set caticon0(e){this.$$set({caticon0:e}),f()}get caticon1(){return this.$$.ctx[39]}set caticon1(e){this.$$set({caticon1:e}),f()}get caticon2(){return this.$$.ctx[40]}set caticon2(e){this.$$set({caticon2:e}),f()}get caticon3(){return this.$$.ctx[41]}set caticon3(e){this.$$set({caticon3:e}),f()}get backgroundsrc(){return this.$$.ctx[42]}set backgroundsrc(e){this.$$set({backgroundsrc:e}),f()}get backgroundsrcmobile(){return this.$$.ctx[43]}set backgroundsrcmobile(e){this.$$set({backgroundsrcmobile:e}),f()}get titlelogopath(){return this.$$.ctx[44]}set titlelogopath(e){this.$$set({titlelogopath:e}),f()}get iconlabels(){return this.$$.ctx[45]}set iconlabels(e){this.$$set({iconlabels:e}),f()}get visualstructure(){return this.$$.ctx[46]}set visualstructure(e){this.$$set({visualstructure:e}),f()}get positioncollections(){return this.$$.ctx[47]}set positioncollections(e){this.$$set({positioncollections:e}),f()}get type(){return this.$$.ctx[48]}set type(e){this.$$set({type:e}),f()}get titletype(){return this.$$.ctx[49]}set titletype(e){this.$$set({titletype:e}),f()}get casinomygames(){return this.$$.ctx[0]}set casinomygames(e){this.$$set({casinomygames:e}),f()}get collectionprovidersgamenames(){return this.$$.ctx[50]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),f()}get randombuttonicon(){return this.$$.ctx[51]}set randombuttonicon(e){this.$$set({randombuttonicon:e}),f()}}return customElements.get("casino-page")||customElements.define("casino-page",eo),eo});
30
+ `},J,p,y,b,v,x,ne,_,C,k,T,G,M,E,L,P,ge,pe,function(e){Ue[e?"unshift":"push"](()=>{i=e,s(19,i)})},()=>be($),()=>ye($),()=>be($),function(e){Ue[e?"unshift":"push"](()=>{g=e,s(14,g)})},function(e){Ue[e?"unshift":"push"](()=>{o=e,s(11,o)})}]}function ur(e,t,n){const a=e.slice();return a[77]=t[n],a[79]=n,a}function mr(e,t,n){const a=e.slice();return a[77]=t[n],a[80]=t,a[79]=n,a}function hr(e,t,n){const a=e.slice();return a[77]=t[n],a[79]=n,a}function gr(e){let n;function a(e){return e[17]?br:e[27]?yr:void 0}let r=a(e),i=r&&r(e);return{c(){n=he("div"),i&&i.c()},m(e,t){ue(e,n,t),i&&i.m(n,null)},p(e,t){r===(r=a(e))&&i?i.p(e,t):(i&&i.d(1),(i=r&&r(e))&&(i.c(),i.m(n,null)))},d(e){e&&me(n),i&&i.d()}}}function pr(e){let n,a,r;function i(e){return e[21]?Br:e[18].length?Nr:Dr}let s=i(e),o=s(e);function l(e){return e[18]?jr:Hr}let c=l(e),d=c(e);return{c(){n=he("div"),a=he("div"),o.c(),r=pe(),d.c(),fe(a,"class","CasinoGamesHeader Searched "+(We(e[32])?"CasinoGamesHeaderMobile":"")),fe(a,"part","CasinoGamesHeader Searched "+(We(e[32])?"CasinoGamesHeaderMobile":"")),fe(n,"class","CasinoGamesContainer"),fe(n,"part","CasinoGamesContainer")},m(e,t){ue(e,n,t),de(n,a),o.m(a,null),de(n,r),d.m(n,null)},p(e,t){s===(s=i(e))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(a,null))),c===(c=l(e))&&d?d.p(e,t):(d.d(1),(d=c(e))&&(d.c(),d.m(n,null)))},d(e){e&&me(n),o.d(),d.d()}}}function fr(e){let n;function a(e){return e[23]?zr:Wr}let r=a(e),i=r(e);return{c(){i.c(),n=l()},m(e,t){i.m(e,t),ue(e,n,t)},p(e,t){r!==(r=a(e))&&(i.d(1),(i=r(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&me(n)}}}function yr(n){let a,r,i,s,o,l="true"!==n[12]&&vr(n);function c(e){return e[15]?xr:e[30]?$r:wr}let d=c(n),u=d(n);return{c(){a=he("div"),l&&l.c(),r=pe(),i=he("ul"),u.c(),fe(i,"class",s=(0!=n[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),fe(i,"part",o=(0!=n[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),fe(a,"class","CasinoGamesContainer"),fe(a,"part","CasinoGamesContainer")},m(e,t){ue(e,a,t),l&&l.m(a,null),de(a,r),de(a,i),u.m(i,null),n[52](i)},p(e,t){"true"!==e[12]?l?l.p(e,t):((l=vr(e)).c(),l.m(a,r)):l&&(l.d(1),l=null),d===(d=c(e))&&u?u.p(e,t):(u.d(1),(u=d(e))&&(u.c(),u.m(i,null))),1073741824&t[0]&&s!==(s=(0!=e[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&fe(i,"class",s),1073741824&t[0]&&o!==(o=(0!=e[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&fe(i,"part",o)},d(e){e&&me(a),l&&l.d(),u.d(),n[52](null)}}}function br(e){let n,a,r="true"!==e[12]&&Pr(e);function i(e){return e[15]?Ar:0!==e[18].length?Ir:Rr}let s=i(e),o=s(e);return{c(){n=he("div"),r&&r.c(),a=pe(),o.c(),fe(n,"class","CasinoGamesContainer"),fe(n,"part","CasinoGamesContainer")},m(e,t){ue(e,n,t),r&&r.m(n,null),de(n,a),o.m(n,null)},p(e,t){"true"!==e[12]?r?r.p(e,t):((r=Pr(e)).c(),r.m(n,a)):r&&(r.d(1),r=null),s===(s=i(e))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(n,null)))},d(e){e&&me(n),r&&r.d(),o.d()}}}function vr(n){let a,r,i,s,o,l,c,d,u=n[31]("gamesCategorySection.favorites")+"",m=n[30].items.length+"";return{c(){a=he("div"),r=he("h3"),i=ge(u),s=pe(),o=he("span"),l=ge("("),c=ge(m),d=ge(")"),fe(o,"class","CategoryFavName"),fe(r,"class","CategoryName"),fe(r,"part","CategoryName"),fe(a,"class","CasinoGamesHeader"),fe(a,"part","CasinoGamesHeader")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(r,s),de(r,o),de(o,l),de(o,c),de(o,d),n[51](r)},p(e,t){1&t[1]&&u!==(u=e[31]("gamesCategorySection.favorites")+"")&&ye(i,u),1073741824&t[0]&&m!==(m=e[30].items.length+"")&&ye(c,m)},d(e){e&&me(a),n[51](null)}}}function wr(e){let n,a,r=e[31]("gamesCategorySection.waiting")+"";return{c(){n=he("p"),a=ge(r)},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.waiting")+"")&&ye(a,r)},d(e){e&&me(n)}}}function $r(t){let a,r=t[30].items,i=[];for(let e=0;e<r.length;e+=1)i[e]=Lr(ur(t,r,e));let s=null;return r.length||(s=Sr(t)),{c(){for(let e=0;e<i.length;e+=1)i[e].c();a=l(),s&&s.c()},m(t,n){for(let e=0;e<i.length;e+=1)i[e].m(t,n);ue(t,a,n),s&&s.m(t,n)},p(t,n){if(2013270015&n[0]|7&n[1]){let e;for(r=t[30].items,e=0;e<r.length;e+=1){const s=ur(t,r,e);i[e]?i[e].p(s,n):(i[e]=Lr(s),i[e].c(),i[e].m(a.parentNode,a))}for(;e<i.length;e+=1)i[e].d(1);i.length=r.length,!r.length&&s?s.p(t,n):r.length?s&&(s.d(1),s=null):((s=Sr(t)).c(),s.m(a.parentNode,a))}},d(e){k(i,e),e&&me(a),s&&s.d(e)}}}function xr(e){let n;return{c(){fe(n=he("div"),"class","lds-dual-ring"),fe(n,"part","lds-dual-ring")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function Sr(e){let n,a,r,i,s,o,l,c,t,d,u=e[31]("gamesCategorySection.noFavoritesTitle")+"",m=(g=e,We(g[32])?Cr:_r),h=m(e);var g;return{c(){n=he("p"),a=M("svg"),r=M("path"),i=pe(),s=he("span"),o=ge(u),l=pe(),h.c(),c=pe(),S(r,"fill","white"),fe(r,"d","M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"),fe(a,"version","1.1"),fe(a,"class","UnfavoredIcon"),fe(a,"part","UnfavoredIcon"),fe(a,"xmlns","http://www.w3.org/2000/svg"),fe(a,"xmlns:xlink","http://www.w3.org/1999/xlink"),fe(a,"x","50px"),fe(a,"y","50px"),fe(a,"viewBox","0 0 512.001 512.001"),S(a,"enable-background","new 0 0 512.001 512.001"),fe(a,"xml:space","preserve"),fe(s,"class","NoFavoriteText NoFavoriteTextHighlight"),fe(s,"part","NoFavoriteText NoFavoriteTextHighlight"),fe(n,"class",t="NoFavoriteGames "+(We(e[32])?"NoFavoriteGamesMobile":"")),fe(n,"part",d="NoFavoriteGames "+(We(e[32])?"NoFavoriteGamesMobile":""))},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(n,i),de(n,s),de(s,o),de(n,l),h.m(n,null),de(n,c)},p(e,t){1&t[1]&&u!==(u=e[31]("gamesCategorySection.noFavoritesTitle")+"")&&ye(o,u),h.p(e,t)},d(e){e&&me(n),h.d()}}}function _r(e){let n,a,r=e[31]("gamesCategorySection.noFavorites")+"";return{c(){n=he("span"),a=ge(r),fe(n,"class","NoFavoriteText"),fe(n,"part","NoFavoriteText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.noFavorites")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Cr(e){let n,a,r=e[31]("gamesCategorySection.noFavoritesMobile")+"";return{c(){n=he("span"),a=ge(r),fe(n,"class","NoFavoriteText"),fe(n,"part","NoFavoriteText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.noFavoritesMobile")+"")&&ye(a,r)},d(e){e&&me(n)}}}function kr(e){let n,a=e[77].gameModel.isFavorite&&Tr(e);return{c(){a&&a.c(),n=l()},m(e,t){a&&a.m(e,t),ue(e,n,t)},p(e,t){e[77].gameModel.isFavorite?a?a.p(e,t):((a=Tr(e)).c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},d(e){a&&a.d(e),e&&me(n)}}}function Tr(e){let n,a=function(e){let n,a,r;function i(e,t){return 1073741824&t[0]&&(a=null),(n=null==n?!!We(e[32]):n)?Mr:(a=null==a?!!e[77].gameModel.platform.includes("PC"):a)?Gr:void 0}let s=i(e,[-1,-1,-1]),o=s&&s(e);return{c(){o&&o.c(),r=l()},m(e,t){o&&o.m(e,t),ue(e,r,t)},p(e,t){s===(s=i(e,t))&&o?o.p(e,t):(o&&o.d(1),(o=s&&s(e))&&(o.c(),o.m(r.parentNode,r)))},d(e){o&&o.d(e),e&&me(r)}}}(e);return{c(){a&&a.c(),n=l()},m(e,t){a&&a.m(e,t),ue(e,n,t)},p(e,t){a.p(e,t)},d(e){a&&a.d(e),e&&me(n)}}}function Gr(e){let n,a,r,i,s,o,l,c,d,u,m,h,g,p;return{c(){x(n=he("casino-game-thumbnail"),"class",a=""+($+(e[77].cellSize||"1x1"))),x(n,"part",r=""+($+(e[77].cellSize||"1x1"))),x(n,"session",e[2]),x(n,"userid",e[3]),x(n,"lang",e[1]),x(n,"favorites",e[4]),x(n,"gamethumbnail",i=e[77].gameModel.thumbnail),x(n,"gamename",s=e[77].gameModel.name),x(n,"gamevendor",o=e[77].gameModel.vendor.name),x(n,"gameisnew",l=e[77].gameModel.isNew),x(n,"gametag",c=0<e[77].gameModel.advancedTags?.length&&e[33](e[77].advancedTags)),x(n,"gamecellsize",d=e[77].cellSize),x(n,"gameid",u=e[77].gameModel.id),x(n,"gamefunmode",m=e[77].gameModel.hasFunMode),x(n,"gamefavorite",h=e[77].gameModel.isFavorite),x(n,"showfavoredcategory",e[27]),x(n,"connectlive",g=1==e[28][e[77].id]?"connect":"disconnect"),x(n,"visibilityconnect",e[29]),x(n,"currency",e[7]),x(n,"livelobbyendpoint",p=e[77].gameModel.details?e[77].gameModel.launchUrl:""),x(n,"clientstyling",e[5]),x(n,"clientstylingurl",e[6]),x(n,"endpoint",e[0]),x(n,"livecasino",e[8]),x(n,"gamepagemodalurl",e[9]),x(n,"integratedgameframedesktop",e[10]),x(n,"integratedgameframemobile",e[11])},m(e,t){ue(e,n,t)},p(e,t){1073741824&t[0]&&a!==(a=""+($+(e[77].cellSize||"1x1")))&&x(n,"class",a),1073741824&t[0]&&r!==(r=""+($+(e[77].cellSize||"1x1")))&&x(n,"part",r),4&t[0]&&x(n,"session",e[2]),8&t[0]&&x(n,"userid",e[3]),2&t[0]&&x(n,"lang",e[1]),16&t[0]&&x(n,"favorites",e[4]),1073741824&t[0]&&i!==(i=e[77].gameModel.thumbnail)&&x(n,"gamethumbnail",i),1073741824&t[0]&&s!==(s=e[77].gameModel.name)&&x(n,"gamename",s),1073741824&t[0]&&o!==(o=e[77].gameModel.vendor.name)&&x(n,"gamevendor",o),1073741824&t[0]&&l!==(l=e[77].gameModel.isNew)&&x(n,"gameisnew",l),1073741824&t[0]&&c!==(c=0<e[77].gameModel.advancedTags?.length&&e[33](e[77].advancedTags))&&x(n,"gametag",c),1073741824&t[0]&&d!==(d=e[77].cellSize)&&x(n,"gamecellsize",d),1073741824&t[0]&&u!==(u=e[77].gameModel.id)&&x(n,"gameid",u),1073741824&t[0]&&m!==(m=e[77].gameModel.hasFunMode)&&x(n,"gamefunmode",m),1073741824&t[0]&&h!==(h=e[77].gameModel.isFavorite)&&x(n,"gamefavorite",h),134217728&t[0]&&x(n,"showfavoredcategory",e[27]),1342177280&t[0]&&g!==(g=1==e[28][e[77].id]?"connect":"disconnect")&&x(n,"connectlive",g),536870912&t[0]&&x(n,"visibilityconnect",e[29]),128&t[0]&&x(n,"currency",e[7]),1073741824&t[0]&&p!==(p=e[77].gameModel.details?e[77].gameModel.launchUrl:"")&&x(n,"livelobbyendpoint",p),32&t[0]&&x(n,"clientstyling",e[5]),64&t[0]&&x(n,"clientstylingurl",e[6]),1&t[0]&&x(n,"endpoint",e[0]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"gamepagemodalurl",e[9]),1024&t[0]&&x(n,"integratedgameframedesktop",e[10]),2048&t[0]&&x(n,"integratedgameframemobile",e[11])},d(e){e&&me(n)}}}function Mr(e){let n,a=e[77].gameModel.platform.includes("iPad")||e[77].gameModel.platform.includes("iPhone")||e[77].gameModel.platform.includes("Android"),r=a&&Er(e);return{c(){r&&r.c(),n=l()},m(e,t){r&&r.m(e,t),ue(e,n,t)},p(e,t){(a=1073741824&t[0]?e[77].gameModel.platform.includes("iPad")||e[77].gameModel.platform.includes("iPhone")||e[77].gameModel.platform.includes("Android"):a)?r?r.p(e,t):((r=Er(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&me(n)}}}function Er(e){let n,a,r,i,s,o,l,c,d,u,m,h,g,p;return{c(){x(n=he("casino-game-thumbnail"),"class",a=""+($+(e[77].cellSize||"1x1"))),x(n,"part",r=""+($+(e[77].cellSize||"1x1"))),x(n,"session",e[2]),x(n,"userid",e[3]),x(n,"lang",e[1]),x(n,"favorites",e[4]),x(n,"gamethumbnail",i=e[77].gameModel.thumbnail),x(n,"gamename",s=e[77].gameModel.name),x(n,"gamevendor",o=e[77].gameModel.vendor.name),x(n,"gameisnew",l=e[77].gameModel.isNew),x(n,"gametag",c=0<e[77].gameModel.advancedTags?.length&&e[33](e[77].advancedTags)),x(n,"gamecellsize",d=e[77].cellSize),x(n,"gameid",u=e[77].gameModel.id),x(n,"gamefunmode",m=e[77].gameModel.hasFunMode),x(n,"gamefavorite",h=e[77].gameModel.isFavorite),x(n,"showfavoredcategory",e[27]),x(n,"connectlive",g=1==e[28][e[77].id]?"connect":"disconnect"),x(n,"visibilityconnect",e[29]),x(n,"currency",e[7]),x(n,"livelobbyendpoint",p=e[77].gameModel.details?e[77].gameModel.launchUrl:""),x(n,"clientstyling",e[5]),x(n,"clientstylingurl",e[6]),x(n,"endpoint",e[0]),x(n,"livecasino",e[8]),x(n,"gamepagemodalurl",e[9]),x(n,"integratedgameframedesktop",e[10]),x(n,"integratedgameframemobile",e[11])},m(e,t){ue(e,n,t)},p(e,t){1073741824&t[0]&&a!==(a=""+($+(e[77].cellSize||"1x1")))&&x(n,"class",a),1073741824&t[0]&&r!==(r=""+($+(e[77].cellSize||"1x1")))&&x(n,"part",r),4&t[0]&&x(n,"session",e[2]),8&t[0]&&x(n,"userid",e[3]),2&t[0]&&x(n,"lang",e[1]),16&t[0]&&x(n,"favorites",e[4]),1073741824&t[0]&&i!==(i=e[77].gameModel.thumbnail)&&x(n,"gamethumbnail",i),1073741824&t[0]&&s!==(s=e[77].gameModel.name)&&x(n,"gamename",s),1073741824&t[0]&&o!==(o=e[77].gameModel.vendor.name)&&x(n,"gamevendor",o),1073741824&t[0]&&l!==(l=e[77].gameModel.isNew)&&x(n,"gameisnew",l),1073741824&t[0]&&c!==(c=0<e[77].gameModel.advancedTags?.length&&e[33](e[77].advancedTags))&&x(n,"gametag",c),1073741824&t[0]&&d!==(d=e[77].cellSize)&&x(n,"gamecellsize",d),1073741824&t[0]&&u!==(u=e[77].gameModel.id)&&x(n,"gameid",u),1073741824&t[0]&&m!==(m=e[77].gameModel.hasFunMode)&&x(n,"gamefunmode",m),1073741824&t[0]&&h!==(h=e[77].gameModel.isFavorite)&&x(n,"gamefavorite",h),134217728&t[0]&&x(n,"showfavoredcategory",e[27]),1342177280&t[0]&&g!==(g=1==e[28][e[77].id]?"connect":"disconnect")&&x(n,"connectlive",g),536870912&t[0]&&x(n,"visibilityconnect",e[29]),128&t[0]&&x(n,"currency",e[7]),1073741824&t[0]&&p!==(p=e[77].gameModel.details?e[77].gameModel.launchUrl:"")&&x(n,"livelobbyendpoint",p),32&t[0]&&x(n,"clientstyling",e[5]),64&t[0]&&x(n,"clientstylingurl",e[6]),1&t[0]&&x(n,"endpoint",e[0]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"gamepagemodalurl",e[9]),1024&t[0]&&x(n,"integratedgameframedesktop",e[10]),2048&t[0]&&x(n,"integratedgameframemobile",e[11])},d(e){e&&me(n)}}}function Lr(e){let n,a=e[77].gameModel&&kr(e);return{c(){a&&a.c(),n=l()},m(e,t){a&&a.m(e,t),ue(e,n,t)},p(e,t){e[77].gameModel?a?a.p(e,t):((a=kr(e)).c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},d(e){a&&a.d(e),e&&me(n)}}}function Pr(n){let a,r,i,s,o=n[17].name+"",l=n[19]&&Fr(n);return{c(){a=he("div"),r=he("h3"),i=ge(o),s=pe(),l&&l.c(),fe(r,"class","CategoryName"),fe(r,"part","CategoryName"),fe(a,"class","CasinoGamesHeader"),fe(a,"part","CasinoGamesHeader")},m(e,t){ue(e,a,t),de(a,r),de(r,i),n[47](r),de(a,s),l&&l.m(a,null)},p(e,t){131072&t[0]&&o!==(o=e[17].name+"")&&ye(i,o),e[19]?l?l.p(e,t):((l=Fr(e)).c(),l.m(a,null)):l&&(l.d(1),l=null)},d(e){e&&me(a),n[47](null),l&&l.d()}}}function Fr(n){let a,r,i,s,o,l,c,d,u=n[31]("gamesCategorySection.viewAll")+"",m=n[17].games.total+"";return{c(){a=he("a"),r=he("span"),i=ge(u),s=ge(" ("),o=ge(m),l=ge(")"),fe(r,"class","CategoryLoadMore"),fe(r,"part","CategoryLoadMore"),fe(a,"class","CategoryNameLink"),fe(a,"part","CategoryNameLink")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(r,s),de(r,o),de(r,l),c||(d=z(a,"click",n[48]),c=!0)},p(e,t){1&t[1]&&u!==(u=e[31]("gamesCategorySection.viewAll")+"")&&ye(i,u),131072&t[0]&&m!==(m=e[17].games.total+"")&&ye(o,m)},d(e){e&&me(a),c=!1,d()}}}function Rr(e){let n;return{c(){(n=he("p")).textContent="You don't have any games in this category.",fe(n,"class","NoSearchResults"),fe(n,"part","NoSearchResults")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function Ir(n){let a,e,r,i=n[18],s=[];for(let e=0;e<i.length;e+=1)s[e]=Or(mr(n,i,e));return{c(){a=he("ul");for(let e=0;e<s.length;e+=1)s[e].c();fe(a,"class",e=(0===n[30].items.length&&n[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap"),fe(a,"part",r=(0===n[30].items.length&&n[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")},m(e,t){ue(e,a,t);for(let e=0;e<s.length;e+=1)s[e].m(a,null);n[50](a)},p(t,n){if(805588991&n[0]|4&n[1]){let e;for(i=t[18],e=0;e<i.length;e+=1){const r=mr(t,i,e);s[e]?s[e].p(r,n):(s[e]=Or(r),s[e].c(),s[e].m(a,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}1207959552&n[0]&&e!==(e=(0===t[30].items.length&&t[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&fe(a,"class",e),1207959552&n[0]&&r!==(r=(0===t[30].items.length&&t[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&fe(a,"part",r)},d(e){e&&me(a),k(s,e),n[50](null)}}}function Ar(e){let n;return{c(){fe(n=he("div"),"class","lds-dual-ring"),fe(n,"part","lds-dual-ring")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function Or(e){let n,a=function(n){let a,r,i,s,o,l,c,d,u,m,h,g,p,f,y=n[79];const b=()=>n[49](a,y),v=()=>n[49](null,y);return{c(){x(a=he("casino-game-thumbnail"),"session",n[2]),x(a,"userid",n[3]),x(a,"lang",n[1]),x(a,"class",r=""+($+(n[77].cellSize||"1x1"))),x(a,"part",i=""+($+(n[77].cellSize||"1x1"))),x(a,"favorites",n[4]),x(a,"gamethumbnail",s=n[77].thumbnail),x(a,"gamename",o=n[77].name),x(a,"gamevendor",l=n[77].vendor.name),x(a,"gameisnew",c=n[77].isNew),x(a,"gametag",d=0<n[77].advancedTags?.length&&n[33](n[77].advancedTags)),x(a,"gamecellsize",u=n[77].cellSize),x(a,"gameid",m=n[77].id),x(a,"gamefunmode",h=n[77].hasFunMode),x(a,"gamefavorite",g=n[77].isFavorite),x(a,"connectlive",p=1==n[28][n[77].id]?"connect":"disconnect"),x(a,"visibilityconnect",n[29]),x(a,"currency",n[7]),x(a,"livelobbyendpoint",f=n[77].details?n[77].href:""),x(a,"clientstyling",n[5]),x(a,"clientstylingurl",n[6]),x(a,"endpoint",n[0]),x(a,"livecasino",n[8]),x(a,"gamepagemodalurl",n[9]),x(a,"integratedgameframedesktop",n[10]),x(a,"integratedgameframemobile",n[11])},m(e,t){ue(e,a,t),b()},p(e,t){n=e,4&t[0]&&x(a,"session",n[2]),8&t[0]&&x(a,"userid",n[3]),2&t[0]&&x(a,"lang",n[1]),262144&t[0]&&r!==(r=""+($+(n[77].cellSize||"1x1")))&&x(a,"class",r),262144&t[0]&&i!==(i=""+($+(n[77].cellSize||"1x1")))&&x(a,"part",i),16&t[0]&&x(a,"favorites",n[4]),262144&t[0]&&s!==(s=n[77].thumbnail)&&x(a,"gamethumbnail",s),262144&t[0]&&o!==(o=n[77].name)&&x(a,"gamename",o),262144&t[0]&&l!==(l=n[77].vendor.name)&&x(a,"gamevendor",l),262144&t[0]&&c!==(c=n[77].isNew)&&x(a,"gameisnew",c),262144&t[0]&&d!==(d=0<n[77].advancedTags?.length&&n[33](n[77].advancedTags))&&x(a,"gametag",d),262144&t[0]&&u!==(u=n[77].cellSize)&&x(a,"gamecellsize",u),262144&t[0]&&m!==(m=n[77].id)&&x(a,"gameid",m),262144&t[0]&&h!==(h=n[77].hasFunMode)&&x(a,"gamefunmode",h),262144&t[0]&&g!==(g=n[77].isFavorite)&&x(a,"gamefavorite",g),268697600&t[0]&&p!==(p=1==n[28][n[77].id]?"connect":"disconnect")&&x(a,"connectlive",p),536870912&t[0]&&x(a,"visibilityconnect",n[29]),128&t[0]&&x(a,"currency",n[7]),262144&t[0]&&f!==(f=n[77].details?n[77].href:"")&&x(a,"livelobbyendpoint",f),32&t[0]&&x(a,"clientstyling",n[5]),64&t[0]&&x(a,"clientstylingurl",n[6]),1&t[0]&&x(a,"endpoint",n[0]),256&t[0]&&x(a,"livecasino",n[8]),512&t[0]&&x(a,"gamepagemodalurl",n[9]),1024&t[0]&&x(a,"integratedgameframedesktop",n[10]),2048&t[0]&&x(a,"integratedgameframemobile",n[11]),y!==n[79]&&(v(),y=n[79],b())},d(e){e&&me(a),v()}}}(e);return{c(){a&&a.c(),n=l()},m(e,t){a&&a.m(e,t),ue(e,n,t)},p(e,t){a.p(e,t)},d(e){a&&a.d(e),e&&me(n)}}}function Nr(e){let n,a,r=e[31]("gamesCategorySection.searchedItems")+"";return{c(){n=he("h3"),a=ge(r),fe(n,"class","StatusText"),fe(n,"part","StatusText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.searchedItems")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Dr(e){let n,a,r=e[31]("gamesCategorySection.noResults")+"";return{c(){n=he("h3"),a=ge(r),fe(n,"class","StatusText"),fe(n,"part","StatusText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.noResults")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Br(e){let n,a,r=e[31]("gamesCategorySection.recentSearchedItems")+"";return{c(){n=he("h3"),a=ge(r),fe(n,"class","StatusText"),fe(n,"part","StatusText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&r!==(r=e[31]("gamesCategorySection.recentSearchedItems")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Hr(e){let n;return{c(){(n=he("p")).textContent="Waiting",fe(n,"class","SearchWaiting"),fe(n,"part","SearchWaiting")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function jr(t){let a,r,i=!t[24]&&Ur(t),s=t[18],o=[];for(let e=0;e<s.length;e+=1)o[e]=Yr(hr(t,s,e));return{c(){i&&i.c(),a=pe(),r=he("ul");for(let e=0;e<o.length;e+=1)o[e].c();fe(r,"class","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap"),fe(r,"part","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap")},m(e,t){i&&i.m(e,t),ue(e,a,t),ue(e,r,t);for(let e=0;e<o.length;e+=1)o[e].m(r,null)},p(t,n){if(t[24]?i&&(i.d(1),i=null):i?i.p(t,n):((i=Ur(t)).c(),i.m(a.parentNode,a)),4460543&n[0]|4&n[1]){let e;for(s=t[18],e=0;e<s.length;e+=1){const i=hr(t,s,e);o[e]?o[e].p(i,n):(o[e]=Yr(i),o[e].c(),o[e].m(r,null))}for(;e<o.length;e+=1)o[e].d(1);o.length=s.length}},d(e){i&&i.d(e),e&&me(a),e&&me(r),k(o,e)}}}function Ur(e){let n,a,t,r,i=e[31]("gamesCategorySection.noRecentSearch")+"";return{c(){n=he("p"),a=ge(i),fe(n,"class",t="NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(We(e[32])?"NoRecentSearchesMobile":"")),fe(n,"part",r="NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(We(e[32])?"NoRecentSearchesMobile":""))},m(e,t){ue(e,n,t),de(n,a)},p(e,t){1&t[1]&&i!==(i=e[31]("gamesCategorySection.noRecentSearch")+"")&&ye(a,i)},d(e){e&&me(n)}}}function Yr(e){let n,a,r,i,s,o,l,c,d,u,m,h,g;return{c(){x(n=he("casino-game-thumbnail"),"class",a=""+($+(e[77].cellSize||"1x1"))),x(n,"part",r=""+($+(e[77].cellSize||"1x1"))),x(n,"session",e[2]),x(n,"userid",e[3]),x(n,"lang",e[1]),x(n,"searchitem",e[22]),x(n,"favorites",e[4]),x(n,"gamethumbnail",i=e[77].thumbnail),x(n,"gamename",s=e[77].name),x(n,"gamevendor",o=e[77].vendor.name),x(n,"gameisnew",l=e[77].isNew),x(n,"gametag",c=0<e[77].advancedTags?.length&&e[33](e[77].advancedTags)),x(n,"gamecellsize",d=e[77].cellSize),x(n,"gameid",u=e[77].id),x(n,"gamefunmode",m=e[77].hasFunMode),x(n,"gamefavorite",h=e[77].isFavorite),x(n,"currency",e[7]),x(n,"livelobbyendpoint",g=e[77].details?e[77].href:""),x(n,"clientstyling",e[5]),x(n,"clientstylingurl",e[6]),x(n,"endpoint",e[0]),x(n,"livecasino",e[8]),x(n,"gamepagemodalurl",e[9]),x(n,"integratedgameframedesktop",e[10]),x(n,"integratedgameframemobile",e[11])},m(e,t){ue(e,n,t)},p(e,t){262144&t[0]&&a!==(a=""+($+(e[77].cellSize||"1x1")))&&x(n,"class",a),262144&t[0]&&r!==(r=""+($+(e[77].cellSize||"1x1")))&&x(n,"part",r),4&t[0]&&x(n,"session",e[2]),8&t[0]&&x(n,"userid",e[3]),2&t[0]&&x(n,"lang",e[1]),4194304&t[0]&&x(n,"searchitem",e[22]),16&t[0]&&x(n,"favorites",e[4]),262144&t[0]&&i!==(i=e[77].thumbnail)&&x(n,"gamethumbnail",i),262144&t[0]&&s!==(s=e[77].name)&&x(n,"gamename",s),262144&t[0]&&o!==(o=e[77].vendor.name)&&x(n,"gamevendor",o),262144&t[0]&&l!==(l=e[77].isNew)&&x(n,"gameisnew",l),262144&t[0]&&c!==(c=0<e[77].advancedTags?.length&&e[33](e[77].advancedTags))&&x(n,"gametag",c),262144&t[0]&&d!==(d=e[77].cellSize)&&x(n,"gamecellsize",d),262144&t[0]&&u!==(u=e[77].id)&&x(n,"gameid",u),262144&t[0]&&m!==(m=e[77].hasFunMode)&&x(n,"gamefunmode",m),262144&t[0]&&h!==(h=e[77].isFavorite)&&x(n,"gamefavorite",h),128&t[0]&&x(n,"currency",e[7]),262144&t[0]&&g!==(g=e[77].details?e[77].href:"")&&x(n,"livelobbyendpoint",g),32&t[0]&&x(n,"clientstyling",e[5]),64&t[0]&&x(n,"clientstylingurl",e[6]),1&t[0]&&x(n,"endpoint",e[0]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"gamepagemodalurl",e[9]),1024&t[0]&&x(n,"integratedgameframedesktop",e[10]),2048&t[0]&&x(n,"integratedgameframemobile",e[11])},d(e){e&&me(n)}}}function Wr(e){let n;return{c(){(n=he("p")).textContent="500 Error - Internal Server Error.",fe(n,"class","SearchLoading"),fe(n,"part","SearchLoading")},m(e,t){ue(e,n,t)},d(e){e&&me(n)}}}function zr(e){let n;return{c(){(n=he("p")).textContent="404 Error - No result found.",fe(n,"class","SearchLoading"),fe(n,"part","SearchLoading")},m(e,t){ue(e,n,t)},d(e){e&&me(n)}}}function Vr(n){let a;function r(e){return e[16]?fr:e[20]?pr:gr}let i=r(n),s=i(n);return{c(){a=he("div"),s.c(),this.c=W,fe(a,"class","CasinoGamesCategorySectionContainer"),fe(a,"part","CasinoGamesCategorySectionContainer")},m(e,t){ue(e,a,t),s.m(a,null),n[53](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s.d(),n[53](null)}}}customElements.get("casino-game-thumbnail")||customElements.define("casino-game-thumbnail",class extends e{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}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameInnerContainer .GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:15}@media(min-width: 1100px){.GamesWrapper .ListGame:hover .GamePlayNowText{z-index:4}}.ListGame:hover .OpenSeat,.ListGame:hover .ClosedSeat,.ListGame:hover .LiveLimits,.ListGame:hover .LatestResult,.ListGame:hover .FullTable,.ListGame:active .OpenSeat,.ListGame:active .ClosedSeat,.ListGame:active .LiveLimits,.ListGame:active .LatestResult,.ListGame:active .FullTable{opacity:0.2}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow,.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{overflow:auto}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 16px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons{min-height:auto}}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 1px;margin-right:6px;font-size:14px;text-align:center}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;font-size:14px;margin:0 2px;margin-right:5px;padding:2px}}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{padding:4px}}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}@media(min-width: 768px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}@media(min-width: 1100px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}.ListGame .GameInnerContainer .OpenSeat svg,.ListGame .GameInnerContainer .ClosedSeat svg{width:100%;height:100%}.ListGame .GameInnerContainer .OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .OpenSeat svg{fill:transparent;stroke:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .ClosedSeat svg{fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.ListGame .GameInnerContainer .FullTable svg{width:100%;height:100%;fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable.ClosedSeat{margin-right:-3px}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}@media(min-width: 1100px){.ListGame .GameInnerContainer .PlayersDisplay{padding:2px 16px}}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}@media(min-width: 1100px){.ListGame .GameInnerContainer .ClosedGame{padding:8px 16px}}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 20px 5px 20px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveLimits{padding:2px 18px 5px 18px}}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},dr,ir,t,{session:48,userid:49,lang:1,clientstyling:50,clientstylingurl:51,translationurl:52,favorites:2,gamethumbnail:3,gamename:4,gamevendor:5,gameid:6,gameisnew:7,gametag:8,gamefunmode:53,searchitem:54,gamefavorite:0,gamecellsize:9,showfavoredcategory:55,showgamename:10,currency:56,gamepagemodalurl:57,endpoint:58,livelobbyendpoint:59,connectlive:60,visibilityconnect:61,integratedgameframedesktop:62,integratedgameframemobile:63,MONEY_WHEEL_COLOR_MAP:64,ROULETTE_COLOR_MAP:65},null,[-1,-1,-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","translationurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gametag","gamefunmode","searchitem","gamefavorite","gamecellsize","showfavoredcategory","showgamename","currency","gamepagemodalurl","endpoint","livelobbyendpoint","connectlive","visibilityconnect","integratedgameframedesktop","integratedgameframemobile","MONEY_WHEEL_COLOR_MAP","ROULETTE_COLOR_MAP"]}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),f()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[50]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[51]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[52]}set translationurl(e){this.$$set({translationurl:e}),f()}get favorites(){return this.$$.ctx[2]}set favorites(e){this.$$set({favorites:e}),f()}get gamethumbnail(){return this.$$.ctx[3]}set gamethumbnail(e){this.$$set({gamethumbnail:e}),f()}get gamename(){return this.$$.ctx[4]}set gamename(e){this.$$set({gamename:e}),f()}get gamevendor(){return this.$$.ctx[5]}set gamevendor(e){this.$$set({gamevendor:e}),f()}get gameid(){return this.$$.ctx[6]}set gameid(e){this.$$set({gameid:e}),f()}get gameisnew(){return this.$$.ctx[7]}set gameisnew(e){this.$$set({gameisnew:e}),f()}get gametag(){return this.$$.ctx[8]}set gametag(e){this.$$set({gametag:e}),f()}get gamefunmode(){return this.$$.ctx[53]}set gamefunmode(e){this.$$set({gamefunmode:e}),f()}get searchitem(){return this.$$.ctx[54]}set searchitem(e){this.$$set({searchitem:e}),f()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$$set({gamefavorite:e}),f()}get gamecellsize(){return this.$$.ctx[9]}set gamecellsize(e){this.$$set({gamecellsize:e}),f()}get showfavoredcategory(){return this.$$.ctx[55]}set showfavoredcategory(e){this.$$set({showfavoredcategory:e}),f()}get showgamename(){return this.$$.ctx[10]}set showgamename(e){this.$$set({showgamename:e}),f()}get currency(){return this.$$.ctx[56]}set currency(e){this.$$set({currency:e}),f()}get gamepagemodalurl(){return this.$$.ctx[57]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get endpoint(){return this.$$.ctx[58]}set endpoint(e){this.$$set({endpoint:e}),f()}get livelobbyendpoint(){return this.$$.ctx[59]}set livelobbyendpoint(e){this.$$set({livelobbyendpoint:e}),f()}get connectlive(){return this.$$.ctx[60]}set connectlive(e){this.$$set({connectlive:e}),f()}get visibilityconnect(){return this.$$.ctx[61]}set visibilityconnect(e){this.$$set({visibilityconnect:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[62]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get integratedgameframemobile(){return this.$$.ctx[63]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get MONEY_WHEEL_COLOR_MAP(){return this.$$.ctx[64]}get ROULETTE_COLOR_MAP(){return this.$$.ctx[65]}});const $="game-tile-";function Zr(e,t,o){let A;Ve(e,Ta,e=>o(31,A=e));let i,s,l,n,O,a,c,r,d,u,{categoryindex:N=""}=t,{endpoint:m=""}=t,{datasource:h=""}=t,{lang:g=""}=t,{session:D=""}=t,{userid:B=""}=t,{favorites:p=""}=t,{clientstyling:f=""}=t,{clientstylingurl:y=""}=t,{translationurl:b=""}=t,{currency:H=""}=t,{categoryid:v=""}=t,{categorygames:j=0}=t,{livecasino:U="false"}=t,{visiblegames:Y=""}=t,{gamepagemodalurl:W="false"}=t,{integratedgameframedesktop:z="false"}=t,{integratedgameframemobile:V="false"}=t,{casinomygames:w="false"}=t,{once:Z=!0}=t,{top:K=0}=t,{bottom:X=0}=t,{left:J=0}=t,{right:q=0}=t,$=!0,x=!1,S=!0,Q=window.navigator.userAgent,_=[],C=!0,k=40,T=!1,G=!1,ee=!1,M=!1,E=!1,te=!0,L=!1,ne=!1,P=new Array(1e4),F={},ae="",R={items:[],count:0,name:""},re=(Object.keys(La).forEach(e=>{Ea(e,La[e])}),void 0!==document.hidden?d="hidden":void 0!==document.msHidden?d="msHidden":void 0!==document.webkitHidden&&(d="webkitHidden"),new IntersectionObserver(e=>{e.forEach(async e=>{var t=e.target.gameid,n=e.target.elems_index;e.isIntersecting?(1.2*n>k&&oe(v),o(28,F[t]=1,F)):o(28,F[t]=0,F)})}));const ie=(e,a,r,t=0)=>{let n,i="",s=(o(15,$=!0),i=1<(v.match(/\$/g)||[]).length?(n=v.split("$").slice(0,2).join("$"),new URL(`${m}/casino/groups/${h}/${n}/subGroups`)):new URL(`${m}/casino/groups/${h}/`+v),JSON.parse(sessionStorage.getItem("vendorFiltersByCategory")));return new Promise((t,n)=>{if(i.searchParams.delete("pagination"),i.searchParams.append("expand","games(vendor)"),i.searchParams.append("fields","id,name,games"),i.searchParams.append("platform",ze(Q)),i.searchParams.append("pagination",`games(offset=${a},limit=${r})`),i.searchParams.append("language",g),window.postMessage({type:"CategoryVendors",categoryid:v},window.location.href),s&&s[v])if(s[v].length&&!1===S&&!1===L){let t="";o(23,E=!0),s[v].forEach(e=>{t+=t?", id="+e:"id="+e}),i.searchParams.append("filter",`games(vendor(${t}))`)}else o(23,E=!1);fetch(i).then(e=>e.json()).then(e=>{o(15,$=!1),1<(v.match(/\$/g)||[]).length&&(e=e.items.filter(e=>{if(e.id==v)return e})[0]),o(46,u=!0),o(16,x=!1),O=e.games.total,t(e)},e=>{o(16,x=!0),console.error(e),n(e)})})},se=t=>{if(t.data)switch(t.data.type){case"MostPlayedData":"MOSTPLAYED"==v&&(o(20,T=!1),S=!1,o(19,C=!1),o(18,_=t.data.mostPlayedGames),o(17,l={id:"MOSTPLAYED",name:"Most Played Games",games:{count:t.data.mostPlayedGames.length,total:t.data.mostPlayedGames.length,items:t.data.mostPlayedGames}})),o(15,$=!1);break;case"LastPlayedData":"LASTPLAYED"==v&&(o(20,T=!1),S=!1,o(19,C=!1),o(18,_=t.data.lastPlayedGames),o(17,l={id:"LASTPLAYED",name:"Last Played Games",games:{count:t.data.lastPlayedGames.length,total:t.data.lastPlayedGames.length,items:t.data.lastPlayedGames}})),o(15,$=!1);break;case"CustomOperatorData":t.data.operatordetail;break;case"RecentSearchData":o(20,T=!0),o(21,G=!0),0<t.data.searchData.length?(o(18,_=t.data.searchData),o(24,te=!0),_&&_.forEach(e=>{e.isFavorite=I(e.id)})):(o(18,_=[]),o(24,te=!1));break;case"OutOfRecentSearches":o(20,T=!1),o(21,G=!1);break;case"SearchData":o(20,T=!0),o(21,G=!1),o(18,_=t.data.searchData.items||[]),o(22,M=!0),t.data.receivedFavoriteResults&&(c=t.data.receivedFavoriteResults.items),_&&_.forEach(e=>{e.isFavorite=I(e.id)});break;case"CategoryData_"+v:o(20,T=!1),S=!0,o(19,C=!0),o(22,M=!1),ne=!1,t.data.receivedFavoriteResults&&(c=t.data.receivedFavoriteResults.items),ie(t.data.categoryId,0,t.data.visiblegames).then(e=>{o(17,l=e),o(18,_=l.games.items),_&&_.forEach(e=>{e.isFavorite=I(e.id)})});break;case"CategoryChange":k=20;break;case"CategoryUpdate":o(20,T=!1),S=!1,o(22,M=!1),ne=!0,o(35,v=t.data.itemId),"MOSTPLAYED"!==v&&o(19,C=!1),"true"!==w&&ie(0,0,k).then(e=>{o(17,l=e),l.games.items.forEach(e=>{e.isFavorite=I(e.id)}),o(18,_=l.games.items),o(19,C=!1),_.length<10&&(ee=!0,setTimeout(()=>{window.postMessage({type:"WidgetTopReference",scrollTop:ee},window.location.href)},500))});break;case"FavoriteUpdate":S=!0,o(18,_=l.games.items),_.forEach(e=>{e.isFavorite=I(e.id)});break;case"UpdateCategoryFavoriteGames":if(t.data.receivedFavoriteResults){if(c=t.data.receivedFavoriteResults.items,t.data.favStadalone)return;L?S||window.postMessage({type:"CategoryUpdate",itemId:v},window.location.href):window.postMessage({type:"FavoriteUpdate"},window.location.href)}break;case"ShowFavoriteSection":let e;S=!1,t.data&&((e=t.data.receivedFavoriteResults.items).length&&e.forEach(e=>{e.gameModel&&(e.gameModel.isFavorite=!!e.gameModel)}),o(30,R.items=(n=e,R.items,r=window.navigator.userAgent,We(r)?n.filter(e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad")||e.gameModel.platform.includes("iPhone")||e.gameModel.platform.includes("Android")))return e}):n.filter(e=>{if(e.gameModel&&e.gameModel.platform.includes("PC"))return e})),R),o(30,R.name="Favorites",R),o(27,L=!0),o(15,$=!1));break;case"UserSessionID":if(i=t.data.session,s=t.data.userID,"true"==p&&s&&s.length&&i&&0<i.length){var a=`${m}/player/${s}/favorites/`;r=i;o(15,$=!0);let e={method:"GET",headers:{"X-SessionID":r}};new Promise((t,n)=>{fetch(a,e).then(e=>e.json()).then(e=>{o(15,$=!1),c=e?e.items:[],_.forEach(e=>{e.isFavorite=I(e.id)});e=_;o(18,_=void 0),o(18,_=e),t(c)}).catch(e=>{console.error(e),n(e)})})}}var n,r},oe=e=>{(k+=1)<=O&&ie(0,0,k).then(e=>{o(17,l=e),l.games.items.length>_.length&&(o(18,_=l.games.items),_.forEach(e=>{e.isFavorite=I(e.id)}))})},I=t=>!!c&&-1!==c.findIndex(e=>e.id==t),le=e=>{window.postMessage({type:"CategoryChange",itemId:e},window.location.href)};return Ze(()=>(window.addEventListener("visibilitychange",e=>{document[d]?o(29,ae="disconnect"):o(29,ae="connect")}),window.addEventListener("message",se,!1),"FAVORITES"===v&&window.postMessage({type:"GetFavoredGame"},window.location.href),()=>{window.removeEventListener("message",se),window.removeEventListener("visibilitychange",se)})),e.$$set=e=>{"categoryindex"in e&&o(36,N=e.categoryindex),"endpoint"in e&&o(0,m=e.endpoint),"datasource"in e&&o(37,h=e.datasource),"lang"in e&&o(1,g=e.lang),"session"in e&&o(2,D=e.session),"userid"in e&&o(3,B=e.userid),"favorites"in e&&o(4,p=e.favorites),"clientstyling"in e&&o(5,f=e.clientstyling),"clientstylingurl"in e&&o(6,y=e.clientstylingurl),"translationurl"in e&&o(38,b=e.translationurl),"currency"in e&&o(7,H=e.currency),"categoryid"in e&&o(35,v=e.categoryid),"categorygames"in e&&o(39,j=e.categorygames),"livecasino"in e&&o(8,U=e.livecasino),"visiblegames"in e&&o(40,Y=e.visiblegames),"gamepagemodalurl"in e&&o(9,W=e.gamepagemodalurl),"integratedgameframedesktop"in e&&o(10,z=e.integratedgameframedesktop),"integratedgameframemobile"in e&&o(11,V=e.integratedgameframemobile),"casinomygames"in e&&o(12,w=e.casinomygames),"once"in e&&o(41,Z=e.once),"top"in e&&o(42,K=e.top),"bottom"in e&&o(43,X=e.bottom),"left"in e&&o(44,J=e.left),"right"in e&&o(45,q=e.right)},e.$$.update=()=>{if(16384&e.$$.dirty[0]|32768&e.$$.dirty[1]&&u&&P&&ne&&P.forEach((e,t)=>{e&&(e.elems_index=t,re.observe(e))}),2&e.$$.dirty[0]|16&e.$$.dirty[1]&&g&&v)switch(v){case"FAVORITES":o(27,L=!0);break;case"MOSTPLAYED":case"LASTPLAYED":"false"===w&&o(27,L=!1)}if(128&e.$$.dirty[1]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ea(e,t[e])})}).catch(e=>{console.log(e)}),8224&e.$$.dirty[0]&&f&&r){let e=document.createElement("style");e.innerHTML=f,r.appendChild(e)}if(8256&e.$$.dirty[0]&&y&&r){let e=new URL(y),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}},[m,g,D,B,p,f,y,H,U,W,z,V,w,r,P,$,x,l,_,C,T,G,M,E,te,n,a,L,F,ae,R,A,Q,a=>{if(0===(null==a?void 0:a.length))return"";let r,i,s=99999999999;const o=new Date(Date.now());return a.forEach((e,t)=>{var n=new Date(e.schedules[0].startTime),e=new Date(e.schedules[0].endTime);Ra(e).diff(o)<s&&(s=Ra(e).diff(o),i=t),Ra(o).isAfter(n)&&Ra(o).isBefore(e)&&(r=a[i].name)}),r},le,v,N,h,b,j,Y,Z,K,X,J,q,u,function(e){Ue[e?"unshift":"push"](()=>{a=e,o(26,a)})},e=>le(l.id),function(e,t){Ue[e?"unshift":"push"](()=>{P[t]=e,o(14,P)})},function(e){Ue[e?"unshift":"push"](()=>{n=e,o(25,n)})},function(e){Ue[e?"unshift":"push"](()=>{a=e,o(26,a)})},function(e){Ue[e?"unshift":"push"](()=>{n=e,o(25,n)})},function(e){Ue[e?"unshift":"push"](()=>{r=e,o(13,r)})}]}function Kr(e,t){oa(e,t)}customElements.get("casino-games-category-section")||customElements.define("casino-games-category-section",class extends e{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}.CategoryName,.StatusText{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-color-white, #FFFFFF)}.NoSearchResults{color:var(--emfe-w-color-white, #FFFFFF);text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .UnfavoredIcon{width:50px;height:50px}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-color-white, #FFFFFF);font-size:13px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 5px 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}@media screen and (max-width: 385px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (max-width: 480px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (min-width: 1100px){.CasinoGamesGrid{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-color-white, #FFFFFF)}.lds-dual-ring{display:block;width:80px;height:80px;margin:0 auto}.lds-dual-ring:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Zr,Vr,t,{categoryindex:36,endpoint:0,datasource:37,lang:1,session:2,userid:3,favorites:4,clientstyling:5,clientstylingurl:6,translationurl:38,currency:7,categoryid:35,categorygames:39,livecasino:8,visiblegames:40,gamepagemodalurl:9,integratedgameframedesktop:10,integratedgameframemobile:11,casinomygames:12,once:41,top:42,bottom:43,left:44,right:45},null,[-1,-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["categoryindex","endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","translationurl","currency","categoryid","categorygames","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","casinomygames","once","top","bottom","left","right"]}get categoryindex(){return this.$$.ctx[36]}set categoryindex(e){this.$$set({categoryindex:e}),f()}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[37]}set datasource(e){this.$$set({datasource:e}),f()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),f()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[3]}set userid(e){this.$$set({userid:e}),f()}get favorites(){return this.$$.ctx[4]}set favorites(e){this.$$set({favorites:e}),f()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[38]}set translationurl(e){this.$$set({translationurl:e}),f()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),f()}get categoryid(){return this.$$.ctx[35]}set categoryid(e){this.$$set({categoryid:e}),f()}get categorygames(){return this.$$.ctx[39]}set categorygames(e){this.$$set({categorygames:e}),f()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),f()}get visiblegames(){return this.$$.ctx[40]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get gamepagemodalurl(){return this.$$.ctx[9]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get integratedgameframemobile(){return this.$$.ctx[11]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get casinomygames(){return this.$$.ctx[12]}set casinomygames(e){this.$$set({casinomygames:e}),f()}get once(){return this.$$.ctx[41]}set once(e){this.$$set({once:e}),f()}get top(){return this.$$.ctx[42]}set top(e){this.$$set({top:e}),f()}get bottom(){return this.$$.ctx[43]}set bottom(e){this.$$set({bottom:e}),f()}get left(){return this.$$.ctx[44]}set left(e){this.$$set({left:e}),f()}get right(){return this.$$.ctx[45]}set right(e){this.$$set({right:e}),f()}});const Xr={en:{randomGame:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now"}},zh:{randomGame:{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放"}},de:{randomGame:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuf",playNowRandomGame:"Jetzt spielen"}},fr:{randomGame:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant"}},ro:{randomGame:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum"}},tr:{randomGame:{playRandomGame:"Rastgele Bir Oyun Oyna",randomGameLoading:"Oyun Seçiliyor",playNowRandomGame:"Şimdi Oyna"}},es:{randomGame:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya"}},pt:{randomGame:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora"}}};function Jr(e,t,n){const a=e.slice();return a[34]=t[n],a[36]=n,a}function qr(n){let a,r,i,s,o,l,c,d=!n[7]&&Qr(n),u=n[7]&&ti(n);return{c(){a=he("div"),r=he("div"),(i=he("span")).innerHTML='<slot name="close"><svg class="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></slot>',s=pe(),d&&d.c(),o=pe(),u&&u.c(),fe(i,"class","ModalCloseBtn"),fe(i,"part","ModalCloseBtn"),fe(i,"role","button"),fe(r,"class","ModalContainer"),fe(r,"part","ModalContainer"),fe(a,"class","ModalWindow"),fe(a,"part","ModalWindow")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(r,s),d&&d.m(r,null),de(r,o),u&&u.m(r,null),l||(c=z(i,"click",n[11]),l=!0)},p(e,t){e[7]?d&&(d.d(1),d=null):d?d.p(e,t):((d=Qr(e)).c(),d.m(r,o)),e[7]?u?u.p(e,t):((u=ti(e)).c(),u.m(r,null)):u&&(u.d(1),u=null)},d(e){e&&me(a),d&&d.d(),u&&u.d(),l=!1,c()}}}function Qr(t){let n,a,r,i,s,o,e=t[8]("randomGame.randomGameLoading")+"",l=t[4],c=[];for(let e=0;e<l.length;e+=1)c[e]=ei(Jr(t,l,e));return{c(){n=he("div"),a=he("main"),r=he("div");for(let e=0;e<c.length;e+=1)c[e].c();i=pe(),s=he("p"),o=ge(e),fe(r,"class","items"),fe(r,"part","items"),S(r,"transform","translateY("+t[6]+"px)"),fe(a,"class","RandomGamesSliderWrapper"),fe(a,"part","RandomGamesSliderWrapper"),fe(s,"class","RandomGameLoading"),fe(s,"part","RandomGameLoading"),fe(n,"class","RandomGameWrapper"),fe(n,"part","RandomGameWrapper")},m(e,t){ue(e,n,t),de(n,a),de(a,r);for(let e=0;e<c.length;e+=1)c[e].m(r,null);de(n,i),de(n,s),de(s,o)},p(t,n){if(16&n[0]){let e;for(l=t[4],e=0;e<l.length;e+=1){var a=Jr(t,l,e);c[e]?c[e].p(a,n):(c[e]=ei(a),c[e].c(),c[e].m(r,null))}for(;e<c.length;e+=1)c[e].d(1);c.length=l.length}64&n[0]&&S(r,"transform","translateY("+t[6]+"px)"),256&n[0]&&e!==(e=t[8]("randomGame.randomGameLoading")+"")&&ye(o,e)},d(e){e&&me(n),k(c,e)}}}function ei(e){let n,a,r,i,s,o;return{c(){n=he("div"),a=he("img"),o=pe(),fe(a,"class","RandomGameImage"),fe(a,"part","RandomGameImage"),ce(a.src,r=e[34].thumbnail)||fe(a,"src",r),fe(a,"alt",i=e[34].name),fe(a,"title",s=e[34].name),fe(n,"class","item"),fe(n,"part","item")},m(e,t){ue(e,n,t),de(n,a),de(n,o)},p(e,t){16&t[0]&&!ce(a.src,r=e[34].thumbnail)&&fe(a,"src",r),16&t[0]&&i!==(i=e[34].name)&&fe(a,"alt",i),16&t[0]&&s!==(s=e[34].name)&&fe(a,"title",s)},d(e){e&&me(n)}}}function ti(n){let a,r,i,s,o,l,c,d,u,m,h,g,p,f,y,b,v,w,$,x,S=n[3].name+"",_=n[3].vendor.name+"",C=n[8]("randomGame.playNowRandomGame")+"";return{c(){a=he("div"),r=he("div"),i=he("img"),c=pe(),(d=he("button")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-color-white, #FFFFFF);;}\n </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>',u=pe(),m=he("div"),h=he("p"),g=ge(S),p=pe(),f=he("p"),y=ge(_),b=pe(),v=he("button"),w=ge(C),fe(i,"class","RandomGameImage"),fe(i,"part","RandomGameImage"),ce(i.src,s=n[3].thumbnail)||fe(i,"src",s),fe(i,"alt",o=n[3].name),fe(i,"title",l=n[3].name),fe(d,"class","RandomTryAgain"),fe(d,"part","RandomTryAgain"),fe(r,"class","item"),fe(r,"part","item"),fe(h,"class","RandomGameTitle"),fe(h,"part","RandomGameTitle"),fe(f,"class","RandomGameVendor"),fe(f,"part","RandomGameVendor"),fe(v,"class","RandomGamePlay"),fe(v,"part","RandomGamePlay"),fe(m,"class","RandomGameDetails"),fe(m,"part","RandomGameDetails"),fe(a,"class","RandomGameWrapper"),fe(a,"part","RandomGameWrapper")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(r,c),de(r,d),de(a,u),de(a,m),de(m,h),de(h,g),de(m,p),de(m,f),de(f,y),de(m,b),de(m,v),de(v,w),$||(x=[z(d,"click",n[20]),z(v,"click",n[21])],$=!0)},p(e,t){8&t[0]&&!ce(i.src,s=e[3].thumbnail)&&fe(i,"src",s),8&t[0]&&o!==(o=e[3].name)&&fe(i,"alt",o),8&t[0]&&l!==(l=e[3].name)&&fe(i,"title",l),8&t[0]&&S!==(S=e[3].name+"")&&ye(g,S),8&t[0]&&_!==(_=e[3].vendor.name+"")&&ye(y,_),256&t[0]&&C!==(C=e[8]("randomGame.playNowRandomGame")+"")&&ye(w,C)},d(e){e&&me(a),$=!1,V(x)}}}function ni(e){let n,a,r=e[8]("randomGame.playRandomGame")+"";return{c(){n=he("span"),a=ge(r),fe(n,"class","RandomButtonText"),fe(n,"part","RandomButtonText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){256&t[0]&&r!==(r=e[8]("randomGame.playRandomGame")+"")&&ye(a,r)},d(e){e&&me(n)}}}function ai(e){let n,a;return{c(){n=he("span"),a=ge(e[1]),fe(n,"class","RandomButtonText")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){2&t[0]&&ye(a,e[1])},d(e){e&&me(n)}}}function ri(n){let a,r,i,s,o,l,c,d,u=n[5]&&qr(n);function m(e){return e[1]?ai:e[1]?void 0:ni}let h=m(n),g=h&&h(n);return{c(){a=he("div"),u&&u.c(),r=pe(),i=he("div"),s=he("button"),g&&g.c(),o=pe(),l=he("span"),this.c=W,fe(l,"class","RandomButtonIcon"),fe(l,"part","RandomButtonIcon"),fe(s,"class","RandomButton"),fe(s,"part","RandomButton"),fe(i,"class","RandomButtonWrapper"),fe(i,"part","RandomButtonWrapper"),fe(a,"part","CustomStylingContainer")},m(e,t){ue(e,a,t),u&&u.m(a,null),de(a,r),de(a,i),de(i,s),g&&g.m(s,null),de(s,o),de(s,l),l.innerHTML=n[0],n[23](a),c||(d=z(s,"click",n[22]),c=!0)},p(e,t){e[5]?u?u.p(e,t):((u=qr(e)).c(),u.m(a,r)):u&&(u.d(1),u=null),h===(h=m(e))&&g?g.p(e,t):(g&&g.d(1),(g=h&&h(e))&&(g.c(),g.m(s,o))),1&t[0]&&(l.innerHTML=e[0])},i:W,o:W,d(e){e&&me(a),u&&u.d(),g&&g.d(),n[23](null),c=!1,d()}}}function ii(t,e,n){let a;Ve(t,Ta,e=>n(8,a=e));let r,i,{endpoint:s=""}=e,{datasource:o=""}=e,{gameevent:l=""}=e,{lang:c=""}=e,{randombuttonicon:d=""}=e,{buttontext:u=""}=e,{translationurl:m=""}=e,{clientstyling:h=""}=e,{clientstylingurl:g=""}=e,{filteredrandomgamecategories:p=""}=e,f=[],y="",b=!1,v=0,w=0,$=!1,x=window.navigator.userAgent;var S,_;({withLocale:S,translations:_}={withLocale:"en",translations:{}}),Ye.subscribe(e=>{null==e&&(ia.set(_),Ye.set(S))}),Object.keys(Xr).forEach(e=>{Kr(e,Xr[e])});const C=()=>{n(4,r=T(r)),n(6,v=0),w=0,n(7,$=!1),n(3,y=f[Math.floor(Math.random()*f.length)]),n(5,b=!0)},k=e=>{if(p)for(;C(),!p.includes(y.vendor.name););else C();let t=setInterval(()=>{n(6,v-=100),20==++w&&(n(7,$=!0),clearInterval(t))},100);e&&"function"==typeof gtag&&gtag("event","RefreshRandomGame",{context:"RandomGameWidget",gameId:""+(y.gId||y.id)})},T=e=>{let t,n=e.length;for(;0!=n;)t=Math.floor(Math.random()*n),n--,[e[n],e[t]]=[e[t],e[n]];return e},G=()=>{window.postMessage({type:l,gameId:y.gId||y.id},window.location.href),n(5,b=!1),"function"==typeof gtag&&gtag("event","OpenGame",{context:"RandomGameWidget",gameId:""+(y.gId||y.id)})};return t.$$set=e=>{"endpoint"in e&&n(12,s=e.endpoint),"datasource"in e&&n(13,o=e.datasource),"gameevent"in e&&n(14,l=e.gameevent),"lang"in e&&n(15,c=e.lang),"randombuttonicon"in e&&n(0,d=e.randombuttonicon),"buttontext"in e&&n(1,u=e.buttontext),"translationurl"in e&&n(16,m=e.translationurl),"clientstyling"in e&&n(17,h=e.clientstyling),"clientstylingurl"in e&&n(18,g=e.clientstylingurl),"filteredrandomgamecategories"in e&&n(19,p=e.filteredrandomgamecategories)},t.$$.update=()=>{if(32768&t.$$.dirty[0]&&c&&(e=c,Ye.set(e)),65536&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Kr(e,t[e])})}).catch(e=>{console.log(e)}),12288&t.$$.dirty[0]&&s&&o){let e=new URL(s+"/casino/games");e.searchParams.append("platform",ze(x)),e.searchParams.append("datasource",o),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=1000"),fetch(e.href).then(e=>e.json()).then(e=>{f=e.items,n(4,r=f.slice(0,19))})}if(131076&t.$$.dirty[0]&&h&&i){let e=document.createElement("style");e.innerHTML=h,i.appendChild(e)}if(262148&t.$$.dirty[0]&&g&&i){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e},[d,u,i,y,r,b,v,$,a,k,G,()=>{n(5,b=!1)},s,o,l,c,m,h,g,p,()=>k(!0),()=>G(),()=>k(),function(e){Ue[e?"unshift":"push"](()=>{i=e,n(2,i)})}]}function si(e,t){oa(e,t)}customElements.get("casino-random-game")||customElements.define("casino-random-game",class extends e{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;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.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, #FD2839);border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, #FD2839);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper{height:170px;overflow:hidden}.items{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading{padding:30px 0}.RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:-10px;right:-10px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ii,ri,t,{endpoint:12,datasource:13,gameevent:14,lang:15,randombuttonicon:0,buttontext:1,translationurl:16,clientstyling:17,clientstylingurl:18,filteredrandomgamecategories:19},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","gameevent","lang","randombuttonicon","buttontext","translationurl","clientstyling","clientstylingurl","filteredrandomgamecategories"]}get endpoint(){return this.$$.ctx[12]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[13]}set datasource(e){this.$$set({datasource:e}),f()}get gameevent(){return this.$$.ctx[14]}set gameevent(e){this.$$set({gameevent:e}),f()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),f()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(e){this.$$set({randombuttonicon:e}),f()}get buttontext(){return this.$$.ctx[1]}set buttontext(e){this.$$set({buttontext:e}),f()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),f()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get filteredrandomgamecategories(){return this.$$.ctx[19]}set filteredrandomgamecategories(e){this.$$set({filteredrandomgamecategories:e}),f()}});const oi={en:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},zh:{Translations:{recentWinners:"最近的获奖者",topWinners:"最佳获奖者",won:"刚赢"}},de:{Translations:{recentWinners:"Kürzliche Gewinner",topWinners:"Top Gewinner",won:"Eben gewonnen"}},it:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},fr:{Translations:{recentWinners:"Gagnants récents",topWinners:"Meilleurs gagnants",won:"vient de gagner"}},es:{Translations:{recentWinners:"Ganadores Recientes",topWinners:"Ganadores Top",won:"Últimos Ganadores"}},el:{Translations:{recentWinners:"Πρόσφατοι νικητές",topWinners:"Κορυφαίοι νικητές",won:"μόλις κέρδισε"}},tr:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},ru:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},ro:{Translations:{recentWinners:"Ultimii câștigători",topWinners:"Câștigători de top",won:"tocmai a câștigat"}},hr:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},hu:{Translations:{recentWinners:"Legutóbbi nyertesek",topWinners:"Top nyertesek",won:"Nyert"}},pl:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},pt:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},sl:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}},sr:{Translations:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"}}};function li(e,t,n){const a=e.slice();return a[61]=t[n],a}function ci(e,t,n){const a=e.slice();return a[64]=t[n],a}function di(n){let i,a,s,r,o,l,c,d,e,u,m,h,g,p,f,y,b,v,w,$,x=n[14],S=[];for(let e=0;e<x.length;e+=1)S[e]=gi(ci(n,x,e));let _=n[8],C=[];for(let e=0;e<_.length;e+=1)C[e]=pi(li(n,_,e));return{c(){i=he("div"),a=he("div"),s=he("div");for(let e=0;e<S.length;e+=1)S[e].c();r=pe(),o=he("div"),l=he("button"),c=M("svg"),d=M("path"),u=pe(),m=he("button"),h=M("svg"),g=M("path"),y=pe(),b=he("div");for(let e=0;e<C.length;e+=1)C[e].c();fe(s,"class","WinnerButtonsContainer"),fe(d,"style",e=n[9]>=n[8].length?"fill:#F6F6F62E":""),fe(d,"id","Path_36"),fe(d,"data-name","Path 36"),fe(d,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),fe(d,"transform","translate(14.656 0) rotate(90)"),fe(d,"fill","#fff"),fe(c,"id","Component_46_2"),fe(c,"data-name","Component 46 – 2"),fe(c,"xmlns","http://www.w3.org/2000/svg"),fe(c,"width","15"),fe(c,"height","15"),fe(c,"viewBox","0 0 16 24.656"),fe(l,"class","SliderButton"),fe(g,"style",p=n[9]>=n[8].length?"fill:#F6F6F62E":""),fe(g,"id","Path_36"),fe(g,"data-name","Path 36"),fe(g,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),fe(g,"transform","translate(0 24.656) rotate(-90)"),fe(g,"fill","#fff"),fe(h,"id","Component_46_2"),fe(h,"data-name","Component 46 – 2"),fe(h,"xmlns","http://www.w3.org/2000/svg"),fe(h,"width","15"),fe(h,"height","15"),fe(h,"viewBox","0 0 16 24.656"),fe(m,"class","SliderButton"),fe(o,"class",f="ButtonsContainer "+("true"==n[4]?"ButtonsContainerNone":"")),fe(a,"class","WinnersHeader"),fe(b,"class","WinnersSlider"),fe(i,"class",v="CasinoWinners "+(n[10]?"Mobile":""))},m(e,t){ue(e,i,t),de(i,a),de(a,s);for(let e=0;e<S.length;e+=1)S[e].m(s,null);de(a,r),de(a,o),de(o,l),de(l,c),de(c,d),de(o,u),de(o,m),de(m,h),de(h,g),de(i,y),de(i,b);for(let e=0;e<C.length;e+=1)C[e].m(b,null);n[41](b),w||($=[z(l,"click",n[38]),z(m,"click",n[39])],w=!0)},p(t,n){if(114819&n[0]){let e;for(x=t[14],e=0;e<x.length;e+=1){var a=ci(t,x,e);S[e]?S[e].p(a,n):(S[e]=gi(a),S[e].c(),S[e].m(s,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=x.length}if(768&n[0]&&e!==(e=t[9]>=t[8].length?"fill:#F6F6F62E":"")&&fe(d,"style",e),768&n[0]&&p!==(p=t[9]>=t[8].length?"fill:#F6F6F62E":"")&&fe(g,"style",p),16&n[0]&&f!==(f="ButtonsContainer "+("true"==t[4]?"ButtonsContainerNone":""))&&fe(o,"class",f),436492&n[0]){let e;for(_=t[8],e=0;e<_.length;e+=1){var r=li(t,_,e);C[e]?C[e].p(r,n):(C[e]=pi(r),C[e].c(),C[e].m(b,null))}for(;e<C.length;e+=1)C[e].d(1);C.length=_.length}1024&n[0]&&v!==(v="CasinoWinners "+(t[10]?"Mobile":""))&&fe(i,"class",v)},d(e){e&&me(i),k(S,e),k(C,e),n[41](null),w=!1,V($)}}}function ui(e){let n;return{c(){(n=he("p")).textContent="Loading, please wait ..."},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function mi(n){let a,r,i,s,o,l=n[15]("Translations.recentWinners")+"";return{c(){a=he("button"),r=ge(l),fe(a,"class",i="WinnersButton "+("recent"==n[7]?"Active":"")+" "+("false"==n[0]?"Off":""))},m(e,t){ue(e,a,t),de(a,r),s||(o=z(a,"click",n[36]),s=!0)},p(e,t){32768&t[0]&&l!==(l=e[15]("Translations.recentWinners")+"")&&ye(r,l),129&t[0]&&i!==(i="WinnersButton "+("recent"==e[7]?"Active":"")+" "+("false"==e[0]?"Off":""))&&fe(a,"class",i)},d(e){e&&me(a),s=!1,o()}}}function hi(n){let a,r,i,s,o,l,c=n[15]("Translations.topWinners")+"";return{c(){a=he("button"),r=ge(c),i=pe(),fe(a,"class",s="WinnersButton "+("top"==n[7]?"Active":"")+" "+("false"==n[1]?"Off":""))},m(e,t){ue(e,a,t),de(a,r),de(a,i),o||(l=z(a,"click",n[37]),o=!0)},p(e,t){32768&t[0]&&c!==(c=e[15]("Translations.topWinners")+"")&&ye(r,c),130&t[0]&&s!==(s="WinnersButton "+("top"==e[7]?"Active":"")+" "+("false"==e[1]?"Off":""))&&fe(a,"class",s)},d(e){e&&me(a),o=!1,l()}}}function gi(e){let n,a,r="recent"==e[64]&&mi(e),i="top"==e[64]&&hi(e);return{c(){r&&r.c(),n=pe(),i&&i.c(),a=l()},m(e,t){r&&r.m(e,t),ue(e,n,t),i&&i.m(e,t),ue(e,a,t)},p(e,t){"recent"==e[64]?r?r.p(e,t):((r=mi(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null),"top"==e[64]?i?i.p(e,t):((i=hi(e)).c(),i.m(a.parentNode,a)):i&&(i.d(1),i=null)},d(e){r&&r.d(e),e&&me(n),i&&i.d(e),e&&me(a)}}}function pi(n){let a,r,i,s,o,l,c,d,u,m,h,g,p,f,y,b,v,w,$,x,S,_,C,k,T=n[61].gameName+"",G=n[17](n[61].username)+"",M=n[15]("Translations.won")+"",E=n[61].specifiedCurrencyAmount.toFixed(2)+"",L=(n[11]?n[3]:n[2])+"";function P(){return n[40](n[61])}return{c(){a=he("div"),r=he("div"),i=he("img"),l=pe(),c=he("p"),d=ge(T),u=pe(),m=he("p"),h=ge(G),g=pe(),p=he("p"),f=ge(M),y=pe(),b=he("p"),v=ge(E),w=pe(),$=he("span"),x=ge(L),S=pe(),ce(i.src,s=n[61]?.gameModel?.thumbnail)||fe(i,"src",s),fe(i,"alt",o=n[61]?.gameModel?.thumbnail),fe(i,"class","WinnersImage"),fe(p,"class","WinnerUsername"),fe(r,"class","WinnerCard"),fe(a,"class",_="CardWrapper "+(n[13]?"CardWrapperAnimation":""))},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(r,l),de(r,c),de(c,d),de(r,u),de(r,m),de(m,h),de(r,g),de(r,p),de(p,f),de(r,y),de(r,b),de(b,v),de(b,w),de(b,$),de($,x),de(a,S),C||(k=z(i,"click",P),C=!0)},p(e,t){n=e,256&t[0]&&!ce(i.src,s=n[61]?.gameModel?.thumbnail)&&fe(i,"src",s),256&t[0]&&o!==(o=n[61]?.gameModel?.thumbnail)&&fe(i,"alt",o),256&t[0]&&T!==(T=n[61].gameName+"")&&ye(d,T),256&t[0]&&G!==(G=n[17](n[61].username)+"")&&ye(h,G),32768&t[0]&&M!==(M=n[15]("Translations.won")+"")&&ye(f,M),256&t[0]&&E!==(E=n[61].specifiedCurrencyAmount.toFixed(2)+"")&&ye(v,E),2060&t[0]&&L!==(L=(n[11]?n[3]:n[2])+"")&&ye(x,L),8192&t[0]&&_!==(_="CardWrapper "+(n[13]?"CardWrapperAnimation":""))&&fe(a,"class",_)},d(e){e&&me(a),C=!1,k()}}}function fi(n){let a;function r(e){return e[12]?ui:di}let i=r(n),s=i(n);return{c(){a=he("div"),s.c(),this.c=W},m(e,t){ue(e,a,t),s.m(a,null),n[42](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s.d(),n[42](null)}}}function yi(t,e,a){let n;Ve(t,Ta,e=>a(15,n=e));let r,i,A,s,O,o,N,l,c,d,{endpoint:u=""}=e,{session:m=""}=e,{userid:h=""}=e,{periodrecent:g="Today"}=e,{periodtop:p="Last7Days"}=e,{numberusersrecent:f="20"}=e,{numberuserstop:y="20"}=e,{amountlimit:b="1"}=e,{vendorCategory:v="All"}=e,{lang:w="en"}=e,{isrecentavailable:$="true"}=e,{istopavailable:x="true"}=e,{defaultcurrency:S=""}=e,{usercurrency:_=""}=e,{clientstyling:C=""}=e,{clientstylingurl:k=""}=e,{enableautoscroll:T=""}=e,{tabsorder:G=""}=e,{translationurl:M=""}=e,E=[],L=0,P=0,D=window.navigator.userAgent,B=!0,F=!1;Object.keys(oi).forEach(e=>{si(e,oi[e])});const H=()=>{const e=new URL(`${u}/casino/${i}-winners`);e.searchParams.append("limit","recent"==i?f:y),e.searchParams.append("specifiedCurrency",d),e.searchParams.append("period","recent"==i?g:p),e.searchParams.append("language",w),e.searchParams.append("amountLimit",b),e.searchParams.append("vendorCategory",v),fetch(e.href).then(e=>e.json()).then(e=>{a(8,E=[]),a(8,E=e.items.map(e=>e)),a(12,B=!1),setTimeout(()=>{a(9,P=Math.round(r.offsetWidth/225)),U(),"true"==T&&(L=0,P<N?l=setInterval(()=>{I()},3e3):clearInterval(l))})})},R=e=>{i!==e&&(a(7,i=e),a(8,E=[]),H())},j=(e,t,n)=>{window.postMessage({type:"OpenCasinoWinnersGame",gameId:e,launchUrl:t,gameName:n},window.location.href),"function"==typeof gtag&&gtag("event","OpenGame",{context:"WinnersWidget",gameId:""+e,userId:""+(O||"Not logged in")})},U=n=>{const e=[...r.children];N=e.length,e.forEach((e,t)=>{e.style.transform=`translateX(${100*(n?t-n:t)}%)`}),"top"==i?setTimeout(()=>{a(13,F=!0)},10):a(13,F=!1)},Y=()=>{U(L)},W=()=>{var e=E.length;P>=E.length||(0===L?L=e-P:L-P<0?L=0:L-=P,Y())},I=()=>{var e=E.length;P>=E.length||("true"==T&&(L===e-P?L=0:L++),"false"==T&&(L===e-P?L=0:e-P<L+P?L=e-P:L+=P),Y())},z=()=>{a(35,d=s?_:S)};return Ze(()=>(a(10,A=We(D)),()=>{clearInterval(l)})),t.$$set=e=>{"endpoint"in e&&a(22,u=e.endpoint),"session"in e&&a(23,m=e.session),"userid"in e&&a(24,h=e.userid),"periodrecent"in e&&a(25,g=e.periodrecent),"periodtop"in e&&a(26,p=e.periodtop),"numberusersrecent"in e&&a(27,f=e.numberusersrecent),"numberuserstop"in e&&a(28,y=e.numberuserstop),"amountlimit"in e&&a(21,b=e.amountlimit),"vendorCategory"in e&&a(29,v=e.vendorCategory),"lang"in e&&a(30,w=e.lang),"isrecentavailable"in e&&a(0,$=e.isrecentavailable),"istopavailable"in e&&a(1,x=e.istopavailable),"defaultcurrency"in e&&a(2,S=e.defaultcurrency),"usercurrency"in e&&a(3,_=e.usercurrency),"clientstyling"in e&&a(31,C=e.clientstyling),"clientstylingurl"in e&&a(32,k=e.clientstylingurl),"enableautoscroll"in e&&a(4,T=e.enableautoscroll),"tabsorder"in e&&a(33,G=e.tabsorder),"translationurl"in e&&a(34,M=e.translationurl)},t.$$.update=()=>{if(2116026371&t.$$.dirty[0]|4&t.$$.dirty[1]&&$&&x&&g&&p&&f&&y&&b&&v&&w&&G&&(a(14,c=G.split(",")),a(7,i=c[0]),"false"==$&&a(21,b=""),z()),12582912&t.$$.dirty[0]&&m&&u&&(a(11,s=!0),O=h,z()),4194320&t.$$.dirty[0]|16&t.$$.dirty[1]&&u&&d&&T&&H(),1073741824&t.$$.dirty[0]&&w&&(e=w,Ye.set(e)),8&t.$$.dirty[1]&&M&&fetch(M).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{si(e,t[e])})}).catch(e=>{console.log(e)}),32&t.$$.dirty[0]|1&t.$$.dirty[1]&&C&&o){let e=document.createElement("style");e.innerHTML=C,o.appendChild(e)}if(32&t.$$.dirty[0]|2&t.$$.dirty[1]&&k&&o){let e=new URL(k),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[$,x,S,_,T,o,r,i,E,P,A,s,B,F,c,n,R,e=>e.slice(0,2)+e.slice(2,-2).replace(/./g,"*")+e.slice(-2),j,W,I,b,u,m,h,g,p,f,y,v,w,C,k,G,M,d,()=>R("recent"),()=>R("top"),()=>W(),()=>I(),e=>j(e.gameId,e.gameModel.launchUrl,e.gameModel.name),function(e){Ue[e?"unshift":"push"](()=>{r=e,a(6,r)})},function(e){Ue[e?"unshift":"push"](()=>{o=e,a(5,o)})}]}function bi(e,t){oa(e,t)}customElements.get("casino-winners")||customElements.define("casino-winners",class extends e{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}.Off{display:none}.CasinoWinners{background-color:var(--emfe-w-color-contrast, #07072A);width:100%;height:320px;margin:0 auto}.CasinoWinners.Mobile{padding:25px 10px;height:250px}.WinnersHeader{display:flex;justify-content:space-between}.SliderButton{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px}.SliderButton.SliderButton:active{transform:translateY(1px)}.WinnerButtonsContainer{display:flex;margin-bottom:42px}.WinnersButton{border:none;background:none;color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);line-height:40px}.WinnersButton:focus{color:var(--emfe-w-color-primary, #D0046C);line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-color-primary, #D0046C)}.WinnersButton.Active{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary, #D0046C);line-height:40px}.ButtonsContainerNone{display:none}.WinnersSlider{display:flex;justify-content:flex-start;position:relative;height:180px;overflow:hidden}.CardWrapper{position:absolute;top:0;left:0}.CardWrapperAnimation{transition:transform 2s}.WinnerCard{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;height:180px;min-width:191px;margin-bottom:30px;margin-right:30px}.WinnerCard p:first-of-type{color:var(--emfe-w-color-gray-150, #828282);font-size:14px;inline-size:189px;overflow-wrap:break-word;text-align:center}.WinnerCard p:nth-child(3){text-align:center;color:var(--emfe-w-color-gray-100, #E6E6E6);font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emfe-w-color-gray-100, #E6E6E6);font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emfe-w-color-primary, #D0046C);font-size:16px}.WinnerCard:hover{border:1px solid rgba(255, 255, 255, 0.4)}.WinnersImage{border-radius:5px;height:54px;margin-bottom:10px;width:80px;cursor:pointer}.Mobile .WinnersHeader{justify-content:flex-start}.Mobile .WinnersButton{font-size:18px;white-space:nowrap;margin-right:40px}.Mobile .WinnersButton.Active{padding-bottom:4px}.Mobile .WinnersSlider{overflow:scroll;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.Mobile .WinnersSlider::-webkit-scrollbar{display:none}.Mobile .SliderButton{display:none}.Mobile .WinnerCard{width:140px;height:150px;min-width:140px;margin-right:12px}.Mobile .WinnerCard p:first-of-type{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;width:100px}.Mobile .WinnerCard p:nth-child(3){font-size:10px}.Mobile .WinnerCard p:nth-child(4){font-size:8px;font-weight:300;text-align:center}.Mobile .WinnerCard p:last-of-type{font-size:11px}.Mobile .WinnerButtonsContainer{margin-bottom:20px}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},yi,fi,t,{endpoint:22,session:23,userid:24,periodrecent:25,periodtop:26,numberusersrecent:27,numberuserstop:28,amountlimit:21,vendorCategory:29,lang:30,isrecentavailable:0,istopavailable:1,defaultcurrency:2,usercurrency:3,clientstyling:31,clientstylingurl:32,enableautoscroll:4,tabsorder:33,translationurl:34},null,[-1,-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","session","userid","periodrecent","periodtop","numberusersrecent","numberuserstop","amountlimit","vendorCategory","lang","isrecentavailable","istopavailable","defaultcurrency","usercurrency","clientstyling","clientstylingurl","enableautoscroll","tabsorder","translationurl"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$$set({endpoint:e}),f()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[24]}set userid(e){this.$$set({userid:e}),f()}get periodrecent(){return this.$$.ctx[25]}set periodrecent(e){this.$$set({periodrecent:e}),f()}get periodtop(){return this.$$.ctx[26]}set periodtop(e){this.$$set({periodtop:e}),f()}get numberusersrecent(){return this.$$.ctx[27]}set numberusersrecent(e){this.$$set({numberusersrecent:e}),f()}get numberuserstop(){return this.$$.ctx[28]}set numberuserstop(e){this.$$set({numberuserstop:e}),f()}get amountlimit(){return this.$$.ctx[21]}set amountlimit(e){this.$$set({amountlimit:e}),f()}get vendorCategory(){return this.$$.ctx[29]}set vendorCategory(e){this.$$set({vendorCategory:e}),f()}get lang(){return this.$$.ctx[30]}set lang(e){this.$$set({lang:e}),f()}get isrecentavailable(){return this.$$.ctx[0]}set isrecentavailable(e){this.$$set({isrecentavailable:e}),f()}get istopavailable(){return this.$$.ctx[1]}set istopavailable(e){this.$$set({istopavailable:e}),f()}get defaultcurrency(){return this.$$.ctx[2]}set defaultcurrency(e){this.$$set({defaultcurrency:e}),f()}get usercurrency(){return this.$$.ctx[3]}set usercurrency(e){this.$$set({usercurrency:e}),f()}get clientstyling(){return this.$$.ctx[31]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[32]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get enableautoscroll(){return this.$$.ctx[4]}set enableautoscroll(e){this.$$set({enableautoscroll:e}),f()}get tabsorder(){return this.$$.ctx[33]}set tabsorder(e){this.$$set({tabsorder:e}),f()}get translationurl(){return this.$$.ctx[34]}set translationurl(e){this.$$set({translationurl:e}),f()}});const vi={en:{jackpotBanners:{loadingText:"Loading, please wait..."}},zh:{jackpotBanners:{loadingText:"加载请稍候 ..."}},fr:{jackpotBanners:{loadingText:"Chargement, veuillez patienter..."}},ro:{jackpotBanners:{loadingText:"Se incarca, va rugam asteptati..."}},es:{jackpotBanners:{loadingText:"Cargando"}},pt:{jackpotBanners:{loadingText:"Carregando, por favor espere..."}},de:{jackpotBanners:{loadingText:"Laden, bitte warten..."}}};function wi(e,t,n){const a=e.slice();return a[49]=t[n],a[51]=n,a}function $i(n){let a,r,i,s,o,l,c,d,u,m,h,g,p,f,y,b,v;function w(e){return e[5]?_i:Ci}let $=w(n),x=$(n);return{c(){a=he("div"),r=he("div"),i=he("div"),s=he("div"),o=he("img"),c=pe(),d=he("div"),x.c(),u=pe(),m=he("div"),h=he("img"),ce(o.src,l=n[6])||fe(o,"src",l),fe(o,"alt",""),fe(s,"class","vendorLogo"),fe(d,"class","displayContainer"),ce(h.src,g=n[11])||fe(h,"src",g),fe(h,"alt",""),fe(m,"class","title"),fe(i,"class",p="mainWrapper "+n[0]+" "+(n[4]&&!n[5]?"mobile":n[5]?"tablet":"")),S(i,"background","url("+n[10]+")"),fe(r,"class","jackpotBanner"),fe(a,"class",f=n[12]?"DisplayNone":""),fe(a,"part",y=n[12]?"DisplayNone":"")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(i,s),de(s,o),de(i,c),de(i,d),x.m(d,null),de(i,u),de(i,m),de(m,h),b||(v=z(r,"click",n[32]),b=!0)},p(e,t){64&t[0]&&!ce(o.src,l=e[6])&&fe(o,"src",l),$===($=w(e))&&x?x.p(e,t):(x.d(1),(x=$(e))&&(x.c(),x.m(d,null))),2048&t[0]&&!ce(h.src,g=e[11])&&fe(h,"src",g),49&t[0]&&p!==(p="mainWrapper "+e[0]+" "+(e[4]&&!e[5]?"mobile":e[5]?"tablet":""))&&fe(i,"class",p),1024&t[0]&&S(i,"background","url("+e[10]+")"),4096&t[0]&&f!==(f=e[12]?"DisplayNone":"")&&fe(a,"class",f),4096&t[0]&&y!==(y=e[12]?"DisplayNone":"")&&fe(a,"part",y)},d(e){e&&me(a),x.d(),b=!1,v()}}}function xi(e){let n,a,r=e[14]("jackpotBanners.loadingText")+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","loadingPrompt")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){16384&t[0]&&r!==(r=e[14]("jackpotBanners.loadingText")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Si(e){let n;return{c(){(n=he("p")).textContent="500 Server error"},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function _i(e){let n,a,r,i,s,o,O,l,c,N,D,d,B,H,u,m,h,g,p,j,f,y,U,Y,b,W,z,v,w,$,x,S,_,V,C,k,Z,K,T,X,J,G,M,E,L,P,q,F,R,Q,ee,I,te,A=e[8][0]+"",ne=e[7][0]+"",ae=e[8][1]+"",re=e[7][1]+"",ie=e[8][2]+"",se=e[7][2]+"",oe=e[8][3]+"",le=e[7][3]+"";return{c(){n=he("div"),a=he("div"),r=he("div"),i=he("img"),o=he("span"),O=ge(A),l=he("span"),c=he("span"),N=ge(ne),D=pe(),d=he("span"),B=ge(e[1]),H=pe(),u=he("div"),m=he("div"),h=he("img"),p=he("span"),j=ge(ae),f=he("span"),y=he("span"),U=ge(re),Y=pe(),b=he("span"),W=ge(e[1]),z=pe(),v=he("div"),w=he("div"),$=he("div"),x=he("img"),_=he("span"),V=ge(ie),C=he("span"),k=he("span"),Z=ge(se),K=pe(),T=he("span"),X=ge(e[1]),J=pe(),G=he("div"),M=he("div"),E=he("img"),P=he("span"),q=ge(oe),F=he("span"),R=he("span"),Q=ge(le),ee=pe(),I=he("span"),te=ge(e[1]),fe(i,"class","displayCardIcon"),ce(i.src,s=e[9][0])||fe(i,"src",s),fe(i,"alt",""),fe(o,"class","cardLabel"),fe(r,"class","iconWrapper"),fe(c,"class","jackpotValue"),fe(d,"class","jackpot-currency"),fe(l,"class","cardTextWrapper"),fe(a,"class","displayCard"),fe(h,"class","displayCardIcon"),ce(h.src,g=e[9][1])||fe(h,"src",g),fe(h,"alt",""),fe(p,"class","cardLabel"),fe(m,"class","iconWrapper"),fe(y,"class","jackpotValue"),fe(b,"class","jackpot-currency"),fe(f,"class","cardTextWrapper"),fe(u,"class","displayCard"),fe(n,"class","pairWrapper"),fe(x,"class","displayCardIcon"),ce(x.src,S=e[9][2])||fe(x,"src",S),fe(x,"alt",""),fe(_,"class","cardLabel"),fe($,"class","iconWrapper"),fe(k,"class","jackpotValue"),fe(T,"class","jackpot-currency"),fe(C,"class","cardTextWrapper"),fe(w,"class","displayCard"),fe(E,"class","displayCardIcon"),ce(E.src,L=e[9][3])||fe(E,"src",L),fe(E,"alt",""),fe(P,"class","cardLabel"),fe(M,"class","iconWrapper"),fe(R,"class","jackpotValue"),fe(I,"class","jackpot-currency"),fe(F,"class","cardTextWrapper"),fe(G,"class","displayCard"),fe(v,"class","pairWrapper")},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(r,i),de(r,o),de(o,O),de(a,l),de(l,c),de(c,N),de(l,D),de(l,d),de(d,B),de(n,H),de(n,u),de(u,m),de(m,h),de(m,p),de(p,j),de(u,f),de(f,y),de(y,U),de(f,Y),de(f,b),de(b,W),ue(e,z,t),ue(e,v,t),de(v,w),de(w,$),de($,x),de($,_),de(_,V),de(w,C),de(C,k),de(k,Z),de(C,K),de(C,T),de(T,X),de(v,J),de(v,G),de(G,M),de(M,E),de(M,P),de(P,q),de(G,F),de(F,R),de(R,Q),de(F,ee),de(F,I),de(I,te)},p(e,t){512&t[0]&&!ce(i.src,s=e[9][0])&&fe(i,"src",s),256&t[0]&&A!==(A=e[8][0]+"")&&ye(O,A),128&t[0]&&ne!==(ne=e[7][0]+"")&&ye(N,ne),2&t[0]&&ye(B,e[1]),512&t[0]&&!ce(h.src,g=e[9][1])&&fe(h,"src",g),256&t[0]&&ae!==(ae=e[8][1]+"")&&ye(j,ae),128&t[0]&&re!==(re=e[7][1]+"")&&ye(U,re),2&t[0]&&ye(W,e[1]),512&t[0]&&!ce(x.src,S=e[9][2])&&fe(x,"src",S),256&t[0]&&ie!==(ie=e[8][2]+"")&&ye(V,ie),128&t[0]&&se!==(se=e[7][2]+"")&&ye(Z,se),2&t[0]&&ye(X,e[1]),512&t[0]&&!ce(E.src,L=e[9][3])&&fe(E,"src",L),256&t[0]&&oe!==(oe=e[8][3]+"")&&ye(q,oe),128&t[0]&&le!==(le=e[7][3]+"")&&ye(Q,le),2&t[0]&&ye(te,e[1])},d(e){e&&me(n),e&&me(z),e&&me(v)}}}function Ci(t){let r,i=Array(4),s=[];for(let e=0;e<i.length;e+=1)s[e]=ki(wi(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);ue(t,r,n)},p(t,n){if(898&n[0]){let e;for(i=Array(4),e=0;e<i.length;e+=1){var a=wi(t,i,e);s[e]?s[e].p(a,n):(s[e]=ki(a),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){k(s,e),e&&me(r)}}}function ki(e){let n,a,r,i,s,o,l,c,d,u,m,h,g=e[8][e[51]]+"",p=(e[7][e[51]]??"")+"";return{c(){n=he("div"),a=he("div"),r=he("img"),s=he("span"),o=ge(g),l=he("span"),c=he("span"),d=ge(p),u=pe(),m=he("span"),h=ge(e[1]),fe(r,"class","displayCardIcon"),ce(r.src,i=e[9][e[51]])||fe(r,"src",i),fe(r,"alt",""),fe(s,"class","cardLabel"),fe(a,"class","iconWrapper"),fe(c,"class","jackpotValue"),fe(m,"class","jackpot-currency"),fe(l,"class","cardTextWrapper"),fe(n,"class","displayCard")},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(a,s),de(s,o),de(n,l),de(l,c),de(c,d),de(l,u),de(l,m),de(m,h)},p(e,t){512&t[0]&&!ce(r.src,i=e[9][e[51]])&&fe(r,"src",i),256&t[0]&&g!==(g=e[8][e[51]]+"")&&ye(o,g),128&t[0]&&p!==(p=(e[7][e[51]]??"")+"")&&ye(d,p),2&t[0]&&ye(h,e[1])},d(e){e&&me(n)}}}function Ti(n){let a;function r(e){return e[13]?Si:e[3]?xi:$i}let i=r(n),s=i(n);return{c(){a=he("div"),s.c(),this.c=W},m(e,t){ue(e,a,t),s.m(a,null),n[33](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s.d(),n[33](null)}}}function Gi(n,e,a){let t;Ve(n,Ta,e=>a(14,t=e));let r,i,{visualstructure:s=""}=e,{title:o=""}=e,{caticon0:l=""}=e,{caticon1:c=""}=e,{caticon2:d=""}=e,{caticon3:u=""}=e,{iconlabels:m=""}=e,{backgroundsrc:h=""}=e,{currency:g=""}=e,{backgroundsrcmobile:p=""}=e,{titlelogopath:f=""}=e,{lang:y="en"}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{translationurl:w=""}=e,{endpoint:$=""}=e,{gameid:x=""}=e,A=window.navigator.userAgent,S=!1,_=!1,C="",k=[],T=[],G=[],M=[],E=[],L="",P="",F=!1,R=!0,O=!1;Object.keys(vi).forEach(e=>{bi(e,vi[e])});const I=["typeSpread","typeLeft"],N=()=>{window.postMessage({type:"JackpotBannerClicked",gameid:x},window.location.href),"function"==typeof gtag&&gtag("event","JackpotBannerClicked",{context:"JackpotBanner",gameId:""+x})};return n.$$set=e=>{"visualstructure"in e&&a(0,s=e.visualstructure),"title"in e&&a(16,o=e.title),"caticon0"in e&&a(17,l=e.caticon0),"caticon1"in e&&a(18,c=e.caticon1),"caticon2"in e&&a(19,d=e.caticon2),"caticon3"in e&&a(20,u=e.caticon3),"iconlabels"in e&&a(21,m=e.iconlabels),"backgroundsrc"in e&&a(22,h=e.backgroundsrc),"currency"in e&&a(1,g=e.currency),"backgroundsrcmobile"in e&&a(23,p=e.backgroundsrcmobile),"titlelogopath"in e&&a(24,f=e.titlelogopath),"lang"in e&&a(25,y=e.lang),"clientstyling"in e&&a(26,b=e.clientstyling),"clientstylingurl"in e&&a(27,v=e.clientstylingurl),"translationurl"in e&&a(28,w=e.translationurl),"endpoint"in e&&a(29,$=e.endpoint),"gameid"in e&&a(30,x=e.gameid)},n.$$.update=()=>{if(536870912&n.$$.dirty[0]&&$&&(t=new URL($+"/casino/jackpots/config"),fetch(t.href).then(e=>e.json()).then(e=>{a(31,T=e.egtJackpotIds.map(e=>e))})),67108868&n.$$.dirty[0]&&r&&b){let e=document.createElement("style");e.innerHTML=b,r.appendChild(e)}if(134217732&n.$$.dirty[0]&&r&&v){a(12,F=!0);let e=new URL(v),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{a(12,F=!1)},500)})}if(570425346&n.$$.dirty[0]|1&n.$$.dirty[1]&&$&&y&&g&&0<T.length&&($&&y&&g)){let e=new URL($+"/casino/jackpots");e.searchParams.append("filter","id="+x),e.searchParams.append("language",y),e.searchParams.append("additionalDataCurrency",g),fetch(e.href).then(e=>e.json().then(e=>{a(3,R=!1),i=e,T.includes(x)&&((e=null==(e=null==(e=i)?void 0:e.items[0])?void 0:e.additionalData)&&Object.values(e).forEach(e=>k.push(+e)),a(6,C=i.items[0].vendorLogo))}).catch(e=>{a(13,O=!0),a(3,R=!1),console.error(e)}))}var e,t;33554442&n.$$.dirty[0]&&g&&y&&!R&&(a(4,S=We(A)&&1<window.innerHeight/window.innerWidth),a(5,_=.75<(t=window.innerHeight/window.innerWidth)&&t<1.6),0!==k.length&&a(7,G=k.map(e=>Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(e))),a(8,M=m?m.split(",").map(e=>e.trim().toUpperCase()):new Array(4).fill("")),I.includes(s.trim())?a(0,s=s.trim()):(console.warn(`Invalid Attribute Value: "${s}" is not a valid value for the "visualstructure" attribute. Defaulting to "${I[0]}"`),a(0,s=I[0])),a(10,L=p&&S&&!_?p:h),a(11,P=f),a(9,E=[l,c,d,u])),33554432&n.$$.dirty[0]&&y&&(e=y,Ye.set(e)),268435456&n.$$.dirty[0]&&w&&fetch(w).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{bi(e,t[e])})}).catch(e=>{console.log(e)})},[s,g,r,R,S,_,C,G,M,E,L,P,F,O,t,N,o,l,c,d,u,m,h,p,f,y,b,v,w,$,x,T,()=>N(),function(e){Ue[e?"unshift":"push"](()=>{r=e,a(2,r)})}]}function Mi(e,t){oa(e,t)}customElements.get("jackpot-banner")||customElements.define("jackpot-banner",class extends e{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:24px;width:auto;display:flex;align-items:center}.vendorLogo img{height:100%;width:auto}.displayCard{position:relative;background:#1c2136;height:max(0.5vw, 1rem);padding:10px 20px 10px 24px;margin:0 8px;box-sizing:content-box;border-radius:7px;display:flex;justify-content:center;align-items:center;border:1px solid #ffc052}.displayCard .iconWrapper{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard .displayCardIcon{height:100%;width:auto}.displayCard .cardLabel{font-size:0.8rem;font-style:italic}.displayCard .cardTextWrapper{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title{grid-area:title;display:flex;align-items:center}.title img{height:50px}.displayContainer{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer .jackpotValue{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer .jackpot-currency{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread .pairWrapper{justify-content:center}.typeSpread .vendorLogo{justify-content:flex-end}.typeSpread .title{justify-content:flex-start}.typeSpread .displayContainer{justify-content:space-evenly}.typeLeft{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile .displayContainer{margin-top:50px;gap:2.6rem}.typeLeft .displayContainer{padding-left:2rem;width:clamp(30vw, 100%, 50vw);gap:2rem}.typeLeft .pairWrapper{justify-content:space-evenly}.typeLeft .title{align-items:flex-end}.typeLeft .vendorLogo{height:24px;width:auto}.mobile{grid-template-columns:1fr;grid-gap:1rem}.mobile .title{justify-content:center;align-items:center}.mobile .title img{height:80px}.mobile .displayContainer{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile .vendorLogo{justify-content:center;align-items:center}.mobile .displayCard{width:40vw}.tablet .displayContainer{flex-wrap:wrap}.DisplayNone{display:none}.loadingPrompt{color:#333}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Gi,Ti,t,{visualstructure:0,title:16,caticon0:17,caticon1:18,caticon2:19,caticon3:20,iconlabels:21,backgroundsrc:22,currency:1,backgroundsrcmobile:23,titlelogopath:24,lang:25,clientstyling:26,clientstylingurl:27,translationurl:28,endpoint:29,gameid:30},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["visualstructure","title","caticon0","caticon1","caticon2","caticon3","iconlabels","backgroundsrc","currency","backgroundsrcmobile","titlelogopath","lang","clientstyling","clientstylingurl","translationurl","endpoint","gameid"]}get visualstructure(){return this.$$.ctx[0]}set visualstructure(e){this.$$set({visualstructure:e}),f()}get title(){return this.$$.ctx[16]}set title(e){this.$$set({title:e}),f()}get caticon0(){return this.$$.ctx[17]}set caticon0(e){this.$$set({caticon0:e}),f()}get caticon1(){return this.$$.ctx[18]}set caticon1(e){this.$$set({caticon1:e}),f()}get caticon2(){return this.$$.ctx[19]}set caticon2(e){this.$$set({caticon2:e}),f()}get caticon3(){return this.$$.ctx[20]}set caticon3(e){this.$$set({caticon3:e}),f()}get iconlabels(){return this.$$.ctx[21]}set iconlabels(e){this.$$set({iconlabels:e}),f()}get backgroundsrc(){return this.$$.ctx[22]}set backgroundsrc(e){this.$$set({backgroundsrc:e}),f()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),f()}get backgroundsrcmobile(){return this.$$.ctx[23]}set backgroundsrcmobile(e){this.$$set({backgroundsrcmobile:e}),f()}get titlelogopath(){return this.$$.ctx[24]}set titlelogopath(e){this.$$set({titlelogopath:e}),f()}get lang(){return this.$$.ctx[25]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[28]}set translationurl(e){this.$$set({translationurl:e}),f()}get endpoint(){return this.$$.ctx[29]}set endpoint(e){this.$$set({endpoint:e}),f()}get gameid(){return this.$$.ctx[30]}set gameid(e){this.$$set({gameid:e}),f()}});const Ei={en:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},zh:{Translations:{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."}},de:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."}},it:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},fr:{Translations:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."}},es:{Translations:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"}},el:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."}},tr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Yükleniyor, lütfen bekleyin..."}},ru:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},ro:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Se încarcă, asteptati ..."}},hr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},hu:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."}},pl:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},pt:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."}},sl:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}},sr:{Translations:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}}};function Li(e,t,n){const a=e.slice();return a[40]=t[n],a}function Pi(e,t,n){const a=e.slice();return a[43]=t[n],a}function Fi(n){let r,a,i,s,o,l,c,d,u,m,h,e,g,p,f=("vendor"==n[0]?n[8]("Translations.providers"):n[8]("Translations.collections"))+"",y=n[3],b=[];for(let e=0;e<y.length;e+=1)b[e]=Di(Li(n,y,e));return{c(){r=he("div"),a=he("div"),i=he("p"),s=ge(f),o=pe(),l=he("div"),(c=he("button")).innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',d=pe(),(u=he("button")).innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',m=pe(),h=he("div");for(let e=0;e<b.length;e+=1)b[e].c();fe(i,"class","Title"),fe(l,"class","ButtonsContainer"),fe(a,"class","CategoriesHeader"),fe(h,"class","CategoriesSlider"),fe(r,"class",e="CasinoCollectionsProviders "+(n[7]?"Mobile":""))},m(e,t){ue(e,r,t),de(r,a),de(a,i),de(i,s),de(a,o),de(a,l),de(l,c),de(l,d),de(l,u),de(r,m),de(r,h);for(let e=0;e<b.length;e+=1)b[e].m(h,null);n[23](h),g||(p=[z(c,"click",n[19]),z(u,"click",n[20])],g=!0)},p(t,n){if(257&n[0]&&f!==(f=("vendor"==t[0]?t[8]("Translations.providers"):t[8]("Translations.collections"))+"")&&ye(s,f),6158&n[0]){let e;for(y=t[3],e=0;e<y.length;e+=1){var a=Li(t,y,e);b[e]?b[e].p(a,n):(b[e]=Di(a),b[e].c(),b[e].m(h,null))}for(;e<b.length;e+=1)b[e].d(1);b.length=y.length}128&n[0]&&e!==(e="CasinoCollectionsProviders "+(t[7]?"Mobile":""))&&fe(r,"class",e)},d(e){e&&me(r),k(b,e),n[23](null),g=!1,V(p)}}}function Ri(e){let n,a,r=e[8]("Translations.loading")+"";return{c(){n=he("p"),a=ge(r)},m(e,t){ue(e,n,t),de(n,a)},p(e,t){256&t[0]&&r!==(r=e[8]("Translations.loading")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Ii(e){let n,a,r=e[40].name+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","CategorySlideTitle")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){8&t[0]&&r!==(r=e[40].name+"")&&ye(a,r)},d(e){e&&me(n)}}}function Ai(e){let n,a,r;return{c(){fe(n=he("img"),"class","CategorySlideLogo"),ce(n.src,a=e[40].icon)||fe(n,"src",a),fe(n,"alt",r=e[40].name+" icon")},m(e,t){ue(e,n,t)},p(e,t){8&t[0]&&!ce(n.src,a=e[40].icon)&&fe(n,"src",a),8&t[0]&&r!==(r=e[40].name+" icon")&&fe(n,"alt",r)},d(e){e&&me(n)}}}function Oi(e){let n,a,r,i=e[43].name+"";return{c(){n=he("p"),a=ge(i),fe(n,"title",r=e[43].name)},m(e,t){ue(e,n,t),de(n,a)},p(e,t){8&t[0]&&i!==(i=e[43].name+"")&&ye(a,i),8&t[0]&&r!==(r=e[43].name)&&fe(n,"title",r)},d(e){e&&me(n)}}}function Ni(n){let a,r,i,s,o,l,c,d;function u(){return n[21](n[43])}let m="true"==n[2]&&Oi(n);return{c(){a=he("div"),r=he("img"),o=pe(),m&&m.c(),l=pe(),fe(r,"class","CategorySlideGameImage"),ce(r.src,i=n[43].defaultThumbnail)||fe(r,"src",i),fe(r,"alt",s=n[43].name),fe(a,"class","CategorySlideGames")},m(e,t){var n;ue(e,a,t),de(a,r),de(a,o),m&&m.m(a,null),de(a,l),c||(d=z(r,"click",(n=u,function(e){return e.stopPropagation(),n.call(this,e)})),c=!0)},p(e,t){n=e,8&t[0]&&!ce(r.src,i=n[43].defaultThumbnail)&&fe(r,"src",i),8&t[0]&&s!==(s=n[43].name)&&fe(r,"alt",s),"true"==n[2]?m?m.p(n,t):((m=Oi(n)).c(),m.m(a,l)):m&&(m.d(1),m=null)},d(e){e&&me(a),m&&m.d(),c=!1,d()}}}function Di(n){let a,r,i,s,o,l,c,d,u;function m(e){return"logo"==e[1]?Ai:"title"==e[1]?Ii:void 0}let h=m(n),g=h&&h(n),p=n[40].games,f=[];for(let e=0;e<p.length;e+=1)f[e]=Ni(Pi(n,p,e));function y(){return n[22](n[40])}return{c(){a=he("div"),r=he("div"),i=he("div"),g&&g.c(),s=pe(),o=he("div");for(let e=0;e<f.length;e+=1)f[e].c();c=pe(),fe(i,"class","CategorySlideTopContainer"),fe(o,"class","CategorySlideGameContainer"),fe(r,"class",l="CategorySlide "+("vendor"==n[40]?.flag[0]?"CategorySlideNoHighlight":"")),S(r,"background-image","url("+n[40]?.background+")"),fe(a,"class","CategoriesSliderWrapper Animation")},m(e,t){ue(e,a,t),de(a,r),de(r,i),g&&g.m(i,null),de(r,s),de(r,o);for(let e=0;e<f.length;e+=1)f[e].m(o,null);de(a,c),d||(u=z(r,"click",y),d=!0)},p(e,t){if(h===(h=m(n=e))&&g?g.p(n,t):(g&&g.d(1),(g=h&&h(n))&&(g.c(),g.m(i,null))),2060&t[0]){let e;for(p=n[40].games,e=0;e<p.length;e+=1){const r=Pi(n,p,e);f[e]?f[e].p(r,t):(f[e]=Ni(r),f[e].c(),f[e].m(o,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=p.length}8&t[0]&&l!==(l="CategorySlide "+("vendor"==n[40]?.flag[0]?"CategorySlideNoHighlight":""))&&fe(r,"class",l),8&t[0]&&S(r,"background-image","url("+n[40]?.background+")")},d(e){e&&me(a),g&&g.d(),k(f,e),d=!1,u()}}}function Bi(n){let a;function r(e){return e[6]?Ri:Fi}let i=r(n),s=i(n);return{c(){a=he("div"),s.c(),this.c=W},m(e,t){ue(e,a,t),s.m(a,null),n[24](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s.d(),n[24](null)}}}function Hi(n,e,a){let t;Ve(n,Ta,e=>a(8,t=e));let r,i,s,o,l,{endpoint:c=""}=e,{datasource:d=""}=e,{lang:u=""}=e,{type:m=""}=e,{titletype:h=""}=e,{clientstyling:g=""}=e,{clientstylingurl:p=""}=e,{translationurl:f=""}=e,{collectionprovidersgamenames:y=""}=e,b=[],v=!0,w=0,$=0,x=0,S=window.navigator.userAgent;Object.keys(Ei).forEach(e=>{Mi(e,Ei[e])});const _=n=>{(s=[...r.children]).forEach((e,t)=>{e.style.transform=`translateX(${100*(n?t-n:t)}%)`}),s.map(e=>i=e.getBoundingClientRect().width),x=Math.round(r.offsetWidth/i)},C=()=>{_(w)},k=()=>{x>=$||(0===w?w=$-x:w-x<-1?w=0:w--,C())},T=()=>{x>=$||(w===$-x?w=0:$-x<w+1?w=$-x:w++,C())},G=(e,t,n)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:e,launchUrl:t,gameName:n},window.location.href),"function"==typeof gtag&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:""+n})},M=e=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:e},window.location.href)};return Ze(()=>{a(7,l=We(S))}),n.$$set=e=>{"endpoint"in e&&a(13,c=e.endpoint),"datasource"in e&&a(14,d=e.datasource),"lang"in e&&a(15,u=e.lang),"type"in e&&a(0,m=e.type),"titletype"in e&&a(1,h=e.titletype),"clientstyling"in e&&a(16,g=e.clientstyling),"clientstylingurl"in e&&a(17,p=e.clientstylingurl),"translationurl"in e&&a(18,f=e.translationurl),"collectionprovidersgamenames"in e&&a(2,y=e.collectionprovidersgamenames)},n.$$.update=()=>{if(57344&n.$$.dirty[0]&&c&&d&&u){const t=new URL(c+"/v2/casino/groups/"+d);t.searchParams.append("language",u),t.searchParams.append("expand","games"),fetch(t.href).then(e=>e.json()).then(e=>{a(6,v=!1);let t=e.items.filter(e=>e.flags==m);a(3,b=t.map(e=>{var t;return{id:e.id,name:e.name,icon:e.icon||(null==(t=null==(t=null==(t=e.vendors)?void 0:t.items[0])?void 0:t.subVendors[0])?void 0:t.logo),games:e.games.items.slice(0,4).map(e=>e),background:e.background,flag:e.flags}})),$=b.length})}if(24&n.$$.dirty[0]&&b&&r&&_(),32768&n.$$.dirty[0]&&u&&(e=u,Ye.set(e)),65568&n.$$.dirty[0]&&g&&o){let e=document.createElement("style");e.innerHTML=g,o.appendChild(e)}if(131104&n.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e;262144&n.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Mi(e,t[e])})}).catch(e=>{console.log(e)})},[m,h,y,b,r,o,v,l,t,k,T,G,M,c,d,u,g,p,f,()=>k(),()=>T(),e=>G(e.gameId,e.launchUrl,e.name),e=>M(e.id),function(e){Ue[e?"unshift":"push"](()=>{r=e,a(4,r)})},function(e){Ue[e?"unshift":"push"](()=>{o=e,a(5,o)})}]}function ji(n){let a,r,i,s,o;return{c(){a=he("div"),r=he("casino-games-category-section"),this.c=W,x(r,"session",n[0]),x(r,"userid",n[1]),x(r,"endpoint",n[2]),x(r,"datasource",n[3]),x(r,"lang",n[5]),x(r,"currency",n[4]),x(r,"favorites",n[13]),x(r,"categoryid","FAVORITES"),x(r,"class","CategoryContainer"),x(r,"clientstyling",n[6]),x(r,"clientstylingurl",n[7]),x(r,"livecasino",n[8]),x(r,"visiblegames",n[12]),x(r,"gamepagemodalurl",n[11]),x(r,"integratedgameframedesktop",n[10]),x(r,"integratedgameframemobile",n[9]),x(r,"casinomygames",n[14]),fe(a,"class","CasinoFavoritesSectionContainer")},m(e,t){ue(e,a,t),de(a,r),n[18](a),s||(o=E(i=n[16].call(null,r,(n[2],n[1],n[0],n[1]))),s=!0)},p(e,[t]){1&t&&x(r,"session",e[0]),2&t&&x(r,"userid",e[1]),4&t&&x(r,"endpoint",e[2]),8&t&&x(r,"datasource",e[3]),32&t&&x(r,"lang",e[5]),16&t&&x(r,"currency",e[4]),8192&t&&x(r,"favorites",e[13]),64&t&&x(r,"clientstyling",e[6]),128&t&&x(r,"clientstylingurl",e[7]),256&t&&x(r,"livecasino",e[8]),4096&t&&x(r,"visiblegames",e[12]),2048&t&&x(r,"gamepagemodalurl",e[11]),1024&t&&x(r,"integratedgameframedesktop",e[10]),512&t&&x(r,"integratedgameframemobile",e[9]),16384&t&&x(r,"casinomygames",e[14]),i&&T(i.update)&&7&t&&i.update.call(null,(e[2],e[1],e[0],e[1]))},i:W,o:W,d(e){e&&me(a),n[18](null),s=!1,o()}}}function Ui(e,t,o){let n,a,{endpoint:l=""}=t,{datasource:r=""}=t,{currency:i=""}=t,{lang:s=""}=t,{session:c=""}=t,{userid:d=""}=t,{clientstyling:u=""}=t,{clientstylingurl:m=""}=t,{livecasino:h="false"}=t,{integratedgameframemobile:g="false"}=t,{integratedgameframedesktop:p="false"}=t,{gamepagemodalurl:f="false"}=t,{visiblegames:y=""}=t,{favorites:b=""}=t,{categoryid:v=""}=t,{casinomygames:w="false"}=t,$=[];var x,S;({withLocale:x,translations:S}={withLocale:"en",translations:{}}),Ye.subscribe(e=>{null==e&&(ia.set(S),Ye.set(x))});const _=n=>{if(n.data)switch(n.data.type){case"UserSessionID":o(0,c=n.data.session),o(1,d=n.data.userID),d&&d.length&&c&&0<c.length&&C(l,c,d);break;case"SetUnfavoredGame":e=`${l}/player/${d}/favorites`,t=c,d,s=n.data.id,n.data.triggerFactor,$.includes(s)&&($=$.filter(e=>e!=s)),fetch(e+"/"+s,{method:"DELETE",headers:{"X-SessionID":t}}).then(e=>e.json()).then(()=>{window.postMessage({type:"RemoveFavoriteThumbnail_"+s},window.location.href),k(e,t)});break;case"SetFavoredGame":{var a=`${l}/player/${d}/favorites`;var r=c;d;var i=n.data.id;n.data.triggerFactor;$.includes(i)||$.push(i);let e={items:$},t={method:"POST",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(a,t).then(e=>e.json()).then(()=>{window.postMessage({type:`AddFavoriteThumbnail_${i}`},window.location.href),k(a,r)}).catch(e=>{console.error("Err",e)})}break;case"GetFavoredGame":d&&d.length&&c&&0<c.length&&C(l,c,d)}var e,t,s};let C=(e,t,n)=>{"true"==b&&c&&n&&fetch(e+`/player/${n}/favorites/`,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>((a=e)&&(T(),window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:a,favStadalone:!0},window.location.href),G(a.items)),a)).then(e=>e).catch(e=>{console.error(e)})};let k=(e,t)=>{fetch(e,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>(a=e,T(),a&&window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:a,favStadalone:!0},window.location.href),a)).catch(e=>{console.error(e)})};const T=()=>{window.postMessage({type:"ShowFavoriteSection",receivedFavoriteResults:a},window.location.href)},G=(e=[])=>($=[],0<e.length&&e.forEach(e=>{$.push(e.id)}),$);return Ze(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)})),e.$$set=e=>{"endpoint"in e&&o(2,l=e.endpoint),"datasource"in e&&o(3,r=e.datasource),"currency"in e&&o(4,i=e.currency),"lang"in e&&o(5,s=e.lang),"session"in e&&o(0,c=e.session),"userid"in e&&o(1,d=e.userid),"clientstyling"in e&&o(6,u=e.clientstyling),"clientstylingurl"in e&&o(7,m=e.clientstylingurl),"livecasino"in e&&o(8,h=e.livecasino),"integratedgameframemobile"in e&&o(9,g=e.integratedgameframemobile),"integratedgameframedesktop"in e&&o(10,p=e.integratedgameframedesktop),"gamepagemodalurl"in e&&o(11,f=e.gamepagemodalurl),"visiblegames"in e&&o(12,y=e.visiblegames),"favorites"in e&&o(13,b=e.favorites),"categoryid"in e&&o(17,v=e.categoryid),"casinomygames"in e&&o(14,w=e.casinomygames)},e.$$.update=()=>{if(8231&e.$$.dirty&&l&&d&&c&&s&&b&&"true"==b&&C(l,c,d),32832&e.$$.dirty&&u&&n){let e=document.createElement("style");e.innerHTML=u,n.appendChild(e)}if(32896&e.$$.dirty&&m&&n){let t=document.createElement("style");fetch(new URL(m)).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}},[c,d,l,r,i,s,u,m,h,g,p,f,y,b,w,n,C,v,function(e){Ue[e?"unshift":"push"](()=>{n=e,o(15,n)})}]}function Yi(e,t){oa(e,t)}customElements.get("casino-collections-providers")||customElements.define("casino-collections-providers",class extends e{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{max-height:100px;position:absolute;top:30%;left:50%;transform:translate(-50%, -50%)}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-color-white, #FFFFFF);font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;justify-content:center;gap:3%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:54px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:10px;text-overflow:ellipsis;overflow:hidden;height:20px;width:90px;white-space:nowrap}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:85vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Hi,Bi,t,{endpoint:13,datasource:14,lang:15,type:0,titletype:1,clientstyling:16,clientstylingurl:17,translationurl:18,collectionprovidersgamenames:2},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","lang","type","titletype","clientstyling","clientstylingurl","translationurl","collectionprovidersgamenames"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[14]}set datasource(e){this.$$set({datasource:e}),f()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),f()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),f()}get titletype(){return this.$$.ctx[1]}set titletype(e){this.$$set({titletype:e}),f()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),f()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),f()}}),customElements.get("casino-favorites-section")||customElements.define("casino-favorites-section",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>.CasinoFavoritesSectionContainer{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Ui,ji,t,{endpoint:2,datasource:3,currency:4,lang:5,session:0,userid:1,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,categoryid:17,casinomygames:14},null),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","categoryid","casinomygames"]}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),f()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),f()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),f()}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),f()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),f()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),f()}get categoryid(){return this.$$.ctx[17]}set categoryid(e){this.$$set({categoryid:e}),f()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),f()}});const Wi={en:{LastPlayedTranslations:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}},de:{LastPlayedTranslations:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."}}};function zi(e){let n;return{c(){x(n=he("casino-games-category-section"),"session",e[4]),x(n,"userid",e[5]),x(n,"endpoint",e[0]),x(n,"datasource",e[1]),x(n,"lang",e[3]),x(n,"currency",e[2]),x(n,"favorites",e[13]),x(n,"categoryid","LASTPLAYED"),x(n,"categoryindex","1"),x(n,"categorygames","9"),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[6]),x(n,"clientstylingurl",e[7]),x(n,"livecasino",e[8]),x(n,"visiblegames",e[12]),x(n,"gamepagemodalurl",e[11]),x(n,"integratedgameframedesktop",e[10]),x(n,"integratedgameframemobile",e[9]),x(n,"casinomygames",e[14])},m(e,t){ue(e,n,t)},p(e,t){16&t[0]&&x(n,"session",e[4]),32&t[0]&&x(n,"userid",e[5]),1&t[0]&&x(n,"endpoint",e[0]),2&t[0]&&x(n,"datasource",e[1]),8&t[0]&&x(n,"lang",e[3]),4&t[0]&&x(n,"currency",e[2]),8192&t[0]&&x(n,"favorites",e[13]),64&t[0]&&x(n,"clientstyling",e[6]),128&t[0]&&x(n,"clientstylingurl",e[7]),256&t[0]&&x(n,"livecasino",e[8]),4096&t[0]&&x(n,"visiblegames",e[12]),2048&t[0]&&x(n,"gamepagemodalurl",e[11]),1024&t[0]&&x(n,"integratedgameframedesktop",e[10]),512&t[0]&&x(n,"integratedgameframemobile",e[9]),16384&t[0]&&x(n,"casinomygames",e[14])},d(e){e&&me(n)}}}function Vi(e){let n,a,r=e[17]("LastPlayedTranslations.noRecentGames")+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","SearchLoading")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){131072&t[0]&&r!==(r=e[17]("LastPlayedTranslations.noRecentGames")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Zi(n){let a,r;function i(e){return e[16]?Vi:zi}let s=i(n),o=s(n);return{c(){a=he("div"),r=he("div"),o.c(),this.c=W,fe(r,"class","CasinoLastPlayedSection"),fe(a,"class","CasinoGamesCategorySectionContainer")},m(e,t){ue(e,a,t),de(a,r),o.m(r,null),n[20](a)},p(e,t){s===(s=i(e))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(r,null)))},i:W,o:W,d(e){e&&me(a),o.d(),n[20](null)}}}function Ki(t,e,n){let a;Ve(t,Ta,e=>n(17,a=e));let i,s,{endpoint:o=""}=e,{datasource:l=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:d=""}=e,{userid:u=""}=e,{clientstyling:m=""}=e,{clientstylingurl:h=""}=e,{translationurl:g=""}=e,{livecasino:p="false"}=e,{integratedgameframemobile:f="false"}=e,{integratedgameframedesktop:y="false"}=e,{gamepagemodalurl:b="false"}=e,{visiblegames:v=""}=e,{favorites:w=""}=e,{lastplayedperiod:$=""}=e,{casinomygames:x="false"}=e,S=window.navigator.userAgent,_=!1,C;Object.keys(Wi).forEach(e=>{Yi(e,Wi[e])});return t.$$set=e=>{"endpoint"in e&&n(0,o=e.endpoint),"datasource"in e&&n(1,l=e.datasource),"currency"in e&&n(2,r=e.currency),"lang"in e&&n(3,c=e.lang),"session"in e&&n(4,d=e.session),"userid"in e&&n(5,u=e.userid),"clientstyling"in e&&n(6,m=e.clientstyling),"clientstylingurl"in e&&n(7,h=e.clientstylingurl),"translationurl"in e&&n(18,g=e.translationurl),"livecasino"in e&&n(8,p=e.livecasino),"integratedgameframemobile"in e&&n(9,f=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,y=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,b=e.gamepagemodalurl),"visiblegames"in e&&n(12,v=e.visiblegames),"favorites"in e&&n(13,w=e.favorites),"lastplayedperiod"in e&&n(19,$=e.lastplayedperiod),"casinomygames"in e&&n(14,x=e.casinomygames)},t.$$.update=()=>{if(41&t.$$.dirty[0]&&o&&u&&c&&(r={device:ze(S),period:$||"Last30Days"},new Promise((e,t)=>{let n=new URL(`${o}/player/${u}/games/last-played`);r.limit&&n.searchParams.append("limit","10"),r.order&&n.searchParams.append("order",r.order);var a=r.device;a?"PC"===a?n.searchParams.append("device","Desktop"):n.searchParams.append("device","Mobile"):n.searchParams.append("device","All"),r.period&&n.searchParams.append("period","Last30Days"),i=p?n:n.href,fetch(i).then(e=>e.json()).then(n=>{n.items=n.items.filter(e=>{let t=!0;return"OddsMatrix2"==e.gameCode&&(n.count--,t=!1),t}),e(n),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:n},window.location.href)}).catch(e=>{console.error(e),t(e)})}).then(e=>{if(window.postMessage({type:"GetFavoredGame"},window.location.href),0<e.count){let n=[];e.items.forEach(e=>{let t=new URL(o+"/casino/games/"+e.gameId);t.searchParams.append("datasource",l),n.push(fetch(t.href).then(e=>e.json()))}),Promise.all(n).then(e=>{C=e.map(e=>e[0]),window.postMessage({type:"LastPlayedData",lastPlayedGames:C},window.location.href)})}else n(16,_=!0)})),262144&t.$$.dirty[0]&&g&&(e=translationUrl,fetch(e).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Yi(e,t[e])})}).catch(e=>{console.log(e)})),32832&t.$$.dirty[0]&&m&&s){let e=document.createElement("style");e.innerHTML=m,s.appendChild(e)}if(32896&t.$$.dirty[0]&&h&&s){let t=document.createElement("style");fetch(new URL(h)).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1)})}var e,r;8&t.$$.dirty[0]&&c&&(e=c,Ye.set(e))},[o,l,r,c,d,u,m,h,p,f,y,b,v,w,x,s,_,a,g,$,function(e){Ue[e?"unshift":"push"](()=>{s=e,n(15,s)})}]}function Xi(e){let n;return{c(){x(n=he("casino-games-category-section"),"session",e[4]),x(n,"userid",e[5]),x(n,"endpoint",e[0]),x(n,"datasource",e[1]),x(n,"lang",e[3]),x(n,"currency",e[2]),x(n,"favorites",e[13]),x(n,"categoryid","MOSTPLAYED"),x(n,"categoryindex","1"),x(n,"categorygames","9"),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[6]),x(n,"clientstylingurl",e[7]),x(n,"livecasino",e[8]),x(n,"visiblegames",e[12]),x(n,"gamepagemodalurl",e[11]),x(n,"integratedgameframedesktop",e[10]),x(n,"integratedgameframemobile",e[9]),x(n,"casinomygames",e[14])},m(e,t){ue(e,n,t)},p(e,t){16&t&&x(n,"session",e[4]),32&t&&x(n,"userid",e[5]),1&t&&x(n,"endpoint",e[0]),2&t&&x(n,"datasource",e[1]),8&t&&x(n,"lang",e[3]),4&t&&x(n,"currency",e[2]),8192&t&&x(n,"favorites",e[13]),64&t&&x(n,"clientstyling",e[6]),128&t&&x(n,"clientstylingurl",e[7]),256&t&&x(n,"livecasino",e[8]),4096&t&&x(n,"visiblegames",e[12]),2048&t&&x(n,"gamepagemodalurl",e[11]),1024&t&&x(n,"integratedgameframedesktop",e[10]),512&t&&x(n,"integratedgameframemobile",e[9]),16384&t&&x(n,"casinomygames",e[14])},d(e){e&&me(n)}}}function Ji(e){let n;return{c(){(n=he("p")).textContent="No games in most played",fe(n,"class","SearchLoading"),fe(n,"part","SearchLoading")},m(e,t){ue(e,n,t)},p:W,d(e){e&&me(n)}}}function qi(n){let a,r;function i(e){return e[16]?Ji:Xi}let s=i(n),o=s(n);return{c(){a=he("div"),r=he("div"),o.c(),this.c=W,fe(r,"class","casino-most-played-section"),fe(a,"class","CasinoGamesCategorySectionContainer"),fe(a,"part","CasinoGamesCategorySectionContainer")},m(e,t){ue(e,a,t),de(a,r),o.m(r,null),n[18](a)},p(e,[t]){s===(s=i(e))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(r,null)))},i:W,o:W,d(e){e&&me(a),o.d(),n[18](null)}}}function Qi(t,e,n){let a,r,{endpoint:i=""}=e,{datasource:s=""}=e,{currency:o=""}=e,{lang:l=""}=e,{session:c=""}=e,{userid:d=""}=e,{clientstyling:u=""}=e,{clientstylingurl:m=""}=e,{livecasino:h="false"}=e,{integratedgameframemobile:g="false"}=e,{integratedgameframedesktop:p="false"}=e,{gamepagemodalurl:f="false"}=e,y=e["visiblegames"],{favorites:b=""}=e,{lastPlayedEmpty:v=""}=e,{casinomygames:w="false"}=e,$=window.navigator.userAgent,x=[],S=!1;return t.$$set=e=>{"endpoint"in e&&n(0,i=e.endpoint),"datasource"in e&&n(1,s=e.datasource),"currency"in e&&n(2,o=e.currency),"lang"in e&&n(3,l=e.lang),"session"in e&&n(4,c=e.session),"userid"in e&&n(5,d=e.userid),"clientstyling"in e&&n(6,u=e.clientstyling),"clientstylingurl"in e&&n(7,m=e.clientstylingurl),"livecasino"in e&&n(8,h=e.livecasino),"integratedgameframemobile"in e&&n(9,g=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,p=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,f=e.gamepagemodalurl),"visiblegames"in e&&n(12,y=e.visiblegames),"favorites"in e&&n(13,b=e.favorites),"lastPlayedEmpty"in e&&n(17,v=e.lastPlayedEmpty),"casinomygames"in e&&n(14,w=e.casinomygames)},t.$$.update=()=>{if(41&t.$$.dirty&&i&&d&&l&&(e=>{let t=new URL(`${i}/player/${d}/games/most-played`);e.limit&&t.searchParams.append("limit",e.limit),e.order&&t.searchParams.append("order",e.order),t.searchParams.append("expand","games");var n=e.device;return n?"PC"===n?t.searchParams.append("device","Desktop"):t.searchParams.append("device","Mobile"):t.searchParams.append("device","All"),e.rounds&&t.searchParams.append("rounds",e.rounds),a=h?t:t.href,new Promise((e,t)=>{fetch(a).then(e=>e.json()).then(n=>{n.items=n.items.filter(e=>{let t=!0;return"OddsMatrix2"==e.gameCode&&(n.count--,t=!1),t}),e(n)}).catch(e=>{console.error(e),t(e)})})})({limit:100,device:ze($),rounds:10}).then(e=>{if(window.postMessage({type:"GetFavoredGame"},window.location.href),0<e.count){let n=[];e.items.forEach(e=>{let t=new URL(i+"/casino/games/"+e.gameId);t.searchParams.append("datasource",s),n.push(fetch(t.href).then(e=>e.json()))}),Promise.all(n).then(e=>{x=e.map(e=>e[0]),"true"===w&&(x=x.slice(0,JSON.parse(y))),window.postMessage({type:"MostPlayedData",mostPlayedGames:x},window.location.href)})}else n(16,S=!0)}),32832&t.$$.dirty&&u&&r){let e=document.createElement("style");e.innerHTML=u,r.appendChild(e)}if(32896&t.$$.dirty&&m&&r){let t=document.createElement("style");fetch(new URL(m)).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;8&t.$$.dirty&&l&&(e=l,Ye.set(e))},[i,s,o,l,c,d,u,m,h,g,p,f,y,b,w,r,S,v,function(e){Ue[e?"unshift":"push"](()=>{r=e,n(15,r)})}]}function es(e,t){oa(e,t)}customElements.get("casino-last-played-section")||customElements.define("casino-last-played-section",class extends e{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Ki,Zi,t,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:18,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastplayedperiod:19,casinomygames:14},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","translationurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastplayedperiod","casinomygames"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),f()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),f()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),f()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),f()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),f()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),f()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),f()}get lastplayedperiod(){return this.$$.ctx[19]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),f()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),f()}}),customElements.get("casino-most-played-section")||customElements.define("casino-most-played-section",class extends e{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;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Qi,qi,t,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastPlayedEmpty:17,casinomygames:14},null),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastPlayedEmpty","casinomygames"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),f()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),f()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),f()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),f()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),f()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),f()}get lastPlayedEmpty(){return this.$$.ctx[17]}set lastPlayedEmpty(e){this.$$set({lastPlayedEmpty:e}),f()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),f()}});const ts={en:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},zh:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},de:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},it:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},fr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},es:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},tr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},ru:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},ro:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},hr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},hu:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},pl:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},pt:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},sl:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}},sr:{Translations:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}}};function ns(e,t,n){const a=e.slice();return a[36]=t[n],a}function as(t){let r,n,i,a,s,e,o=t[20],l=[];for(let e=0;e<o.length;e+=1)l[e]=os(ns(t,o,e));function c(e){return"Favorites"==e[18]?ds:"MostPlayed"==e[18]?cs:"LastPlayed"==e[18]?ls:void 0}let d=c(t),u=d&&d(t);return{c(){r=he("div"),n=he("div"),i=he("div");for(let e=0;e<l.length;e+=1)l[e].c();a=pe(),s=he("div"),u&&u.c(),fe(i,"class","MyGamesButtonsContainer"),fe(n,"class","MyGamesHeader"),fe(r,"class",e="CasinoMyGames "+(t[19]?"Mobile":""))},m(e,t){ue(e,r,t),de(r,n),de(n,i);for(let e=0;e<l.length;e+=1)l[e].m(i,null);de(r,a),de(r,s),u&&u.m(s,null)},p(t,n){if(7659520&n[0]){let e;for(o=t[20],e=0;e<o.length;e+=1){var a=ns(t,o,e);l[e]?l[e].p(a,n):(l[e]=os(a),l[e].c(),l[e].m(i,null))}for(;e<l.length;e+=1)l[e].d(1);l.length=o.length}d===(d=c(t))&&u?u.p(t,n):(u&&u.d(1),(u=d&&d(t))&&(u.c(),u.m(s,null))),524288&n[0]&&e!==(e="CasinoMyGames "+(t[19]?"Mobile":""))&&fe(r,"class",e)},d(e){e&&me(r),k(l,e),u&&u.d()}}}function rs(n){let a,r,i,s,o,l=n[21]("Translations.favorites")+"";return{c(){a=he("button"),r=ge(l),fe(a,"class",i="MyGamesButton "+("Favorites"==n[18]?"Active":"")+" "+("false"==n[13]?"Off":""))},m(e,t){ue(e,a,t),de(a,r),s||(o=z(a,"click",n[26]),s=!0)},p(e,t){2097152&t[0]&&l!==(l=e[21]("Translations.favorites")+"")&&ye(r,l),270336&t[0]&&i!==(i="MyGamesButton "+("Favorites"==e[18]?"Active":"")+" "+("false"==e[13]?"Off":""))&&fe(a,"class",i)},d(e){e&&me(a),s=!1,o()}}}function is(n){let a,r,i,s,o,l=n[21]("Translations.mostPlayed")+"";return{c(){a=he("button"),r=ge(l),fe(a,"class",i="MyGamesButton "+("MostPlayed"==n[18]?"Active":"")+" "+("false"==n[14]?"Off":""))},m(e,t){ue(e,a,t),de(a,r),s||(o=z(a,"click",n[27]),s=!0)},p(e,t){2097152&t[0]&&l!==(l=e[21]("Translations.mostPlayed")+"")&&ye(r,l),278528&t[0]&&i!==(i="MyGamesButton "+("MostPlayed"==e[18]?"Active":"")+" "+("false"==e[14]?"Off":""))&&fe(a,"class",i)},d(e){e&&me(a),s=!1,o()}}}function ss(n){let a,r,i,s,o,l,c=n[21]("Translations.recentlyPlayed")+"";return{c(){a=he("button"),r=ge(c),i=pe(),fe(a,"class",s="MyGamesButton "+("LastPlayed"==n[18]?"Active":"")+" "+("false"==n[15]?"Off":""))},m(e,t){ue(e,a,t),de(a,r),de(a,i),o||(l=z(a,"click",n[28]),o=!0)},p(e,t){2097152&t[0]&&c!==(c=e[21]("Translations.recentlyPlayed")+"")&&ye(r,c),294912&t[0]&&s!==(s="MyGamesButton "+("LastPlayed"==e[18]?"Active":"")+" "+("false"==e[15]?"Off":""))&&fe(a,"class",s)},d(e){e&&me(a),o=!1,l()}}}function os(e){let n,a,r,i="Favorites"==e[36]&&rs(e),s="MostPlayed"==e[36]&&is(e),o="LastPlayed"==e[36]&&ss(e);return{c(){i&&i.c(),n=pe(),s&&s.c(),a=pe(),o&&o.c(),r=l()},m(e,t){i&&i.m(e,t),ue(e,n,t),s&&s.m(e,t),ue(e,a,t),o&&o.m(e,t),ue(e,r,t)},p(e,t){"Favorites"==e[36]?i?i.p(e,t):((i=rs(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),"MostPlayed"==e[36]?s?s.p(e,t):((s=is(e)).c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null),"LastPlayed"==e[36]?o?o.p(e,t):((o=ss(e)).c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},d(e){i&&i.d(e),e&&me(n),s&&s.d(e),e&&me(a),o&&o.d(e),e&&me(r)}}}function ls(e){let n;return{c(){x(n=he("casino-last-played-section"),"userid",e[0]),x(n,"endpoint",e[2]),x(n,"datasource",e[3]),x(n,"favorites",e[13]),x(n,"lang",e[4]),x(n,"currency",e[5]),x(n,"session",e[1]),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[6]),x(n,"clientstylingurl",e[7]),x(n,"livecasino",e[8]),x(n,"visiblegames",e[9]),x(n,"gamepagemodalurl",e[10]),x(n,"integratedgameframedesktop",e[11]),x(n,"integratedgameframemobile",e[12]),x(n,"casinomygames",e[16])},m(e,t){ue(e,n,t)},p(e,t){1&t[0]&&x(n,"userid",e[0]),4&t[0]&&x(n,"endpoint",e[2]),8&t[0]&&x(n,"datasource",e[3]),8192&t[0]&&x(n,"favorites",e[13]),16&t[0]&&x(n,"lang",e[4]),32&t[0]&&x(n,"currency",e[5]),2&t[0]&&x(n,"session",e[1]),64&t[0]&&x(n,"clientstyling",e[6]),128&t[0]&&x(n,"clientstylingurl",e[7]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"visiblegames",e[9]),1024&t[0]&&x(n,"gamepagemodalurl",e[10]),2048&t[0]&&x(n,"integratedgameframedesktop",e[11]),4096&t[0]&&x(n,"integratedgameframemobile",e[12]),65536&t[0]&&x(n,"casinomygames",e[16])},d(e){e&&me(n)}}}function cs(e){let n;return{c(){x(n=he("casino-most-played-section"),"endpoint",e[2]),x(n,"datasource",e[3]),x(n,"lang",e[4]),x(n,"currency",e[5]),x(n,"session",e[1]),x(n,"userid",e[0]),x(n,"favorites",e[13]),x(n,"categoryindex","0"),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[6]),x(n,"clientstylingurl",e[7]),x(n,"livecasino",e[8]),x(n,"visiblegames",e[9]),x(n,"gamepagemodalurl",e[10]),x(n,"integratedgameframedesktop",e[11]),x(n,"integratedgameframemobile",e[12]),x(n,"casinomygames",e[16])},m(e,t){ue(e,n,t)},p(e,t){4&t[0]&&x(n,"endpoint",e[2]),8&t[0]&&x(n,"datasource",e[3]),16&t[0]&&x(n,"lang",e[4]),32&t[0]&&x(n,"currency",e[5]),2&t[0]&&x(n,"session",e[1]),1&t[0]&&x(n,"userid",e[0]),8192&t[0]&&x(n,"favorites",e[13]),64&t[0]&&x(n,"clientstyling",e[6]),128&t[0]&&x(n,"clientstylingurl",e[7]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"visiblegames",e[9]),1024&t[0]&&x(n,"gamepagemodalurl",e[10]),2048&t[0]&&x(n,"integratedgameframedesktop",e[11]),4096&t[0]&&x(n,"integratedgameframemobile",e[12]),65536&t[0]&&x(n,"casinomygames",e[16])},d(e){e&&me(n)}}}function ds(e){let n;return{c(){x(n=he("casino-favorites-section"),"session",e[1]),x(n,"userid",e[0]),x(n,"endpoint",e[2]),x(n,"datasource",e[3]),x(n,"lang",e[4]),x(n,"currency",e[5]),x(n,"favorites",e[13]),x(n,"categoryid","FAVORITES"),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[6]),x(n,"clientstylingurl",e[7]),x(n,"livecasino",e[8]),x(n,"visiblegames",e[9]),x(n,"gamepagemodalurl",e[10]),x(n,"integratedgameframedesktop",e[11]),x(n,"integratedgameframemobile",e[12]),x(n,"casinomygames",e[16])},m(e,t){ue(e,n,t)},p(e,t){2&t[0]&&x(n,"session",e[1]),1&t[0]&&x(n,"userid",e[0]),4&t[0]&&x(n,"endpoint",e[2]),8&t[0]&&x(n,"datasource",e[3]),16&t[0]&&x(n,"lang",e[4]),32&t[0]&&x(n,"currency",e[5]),8192&t[0]&&x(n,"favorites",e[13]),64&t[0]&&x(n,"clientstyling",e[6]),128&t[0]&&x(n,"clientstylingurl",e[7]),256&t[0]&&x(n,"livecasino",e[8]),512&t[0]&&x(n,"visiblegames",e[9]),1024&t[0]&&x(n,"gamepagemodalurl",e[10]),2048&t[0]&&x(n,"integratedgameframedesktop",e[11]),4096&t[0]&&x(n,"integratedgameframemobile",e[12]),65536&t[0]&&x(n,"casinomygames",e[16])},d(e){e&&me(n)}}}function us(n){let a;function r(e){if(e[16])return as}let i=r(n),s=i&&i(n);return{c(){a=he("div"),s&&s.c(),this.c=W},m(e,t){ue(e,a,t),s&&s.m(a,null),n[29](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s&&s.d(1),(s=i&&i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s&&s.d(),n[29](null)}}}function ms(e,t,n){let a;Ve(e,Ta,e=>n(21,a=e));let r,{userid:i=""}=t,{session:s=""}=t,{endpoint:o=""}=t,{datasource:l=""}=t,{lang:c=""}=t,{currency:d=""}=t,{clientstyling:u=""}=t,{clientstylingurl:m=""}=t,{livecasino:h=""}=t,{visiblegames:g=""}=t,{gamepagemodalurl:p=""}=t,{integratedgameframedesktop:f=""}=t,{integratedgameframemobile:y=""}=t,{translationurl:b=""}=t,{favorites:v="false"}=t,{mostplayed:w="false"}=t,{lastplayed:$="false"}=t,{activecategory:x=""}=t,{categorybackground:S=""}=t,{casinomygames:_="false"}=t,C=window.navigator.userAgent,k="",T=!1,G=["","",""];var M,E;({withLocale:M,translations:E}={withLocale:"en",translations:{}}),Ye.subscribe(e=>{null==e&&(ia.set(E),Ye.set(M))}),Object.keys(ts).forEach(e=>{es(e,ts[e])});const L=e=>{k!==e&&n(18,k=e)},P=()=>{var e;n(18,k="true"===v?"Favorites":"true"===w?"MostPlayed":"true"===$?"LastPlayed":""),n(20,G[0]="true"===v?"Favorites":"",G),n(20,G[1]="true"===w?"MostPlayed":"",G),n(20,G[2]="true"===$?"LastPlayed":"",G),e=c,Ye.set(e)};return Ze(()=>{n(19,T=We(C))}),e.$$set=e=>{"userid"in e&&n(0,i=e.userid),"session"in e&&n(1,s=e.session),"endpoint"in e&&n(2,o=e.endpoint),"datasource"in e&&n(3,l=e.datasource),"lang"in e&&n(4,c=e.lang),"currency"in e&&n(5,d=e.currency),"clientstyling"in e&&n(6,u=e.clientstyling),"clientstylingurl"in e&&n(7,m=e.clientstylingurl),"livecasino"in e&&n(8,h=e.livecasino),"visiblegames"in e&&n(9,g=e.visiblegames),"gamepagemodalurl"in e&&n(10,p=e.gamepagemodalurl),"integratedgameframedesktop"in e&&n(11,f=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(12,y=e.integratedgameframemobile),"translationurl"in e&&n(23,b=e.translationurl),"favorites"in e&&n(13,v=e.favorites),"mostplayed"in e&&n(14,w=e.mostplayed),"lastplayed"in e&&n(15,$=e.lastplayed),"activecategory"in e&&n(24,x=e.activecategory),"categorybackground"in e&&n(25,S=e.categorybackground),"casinomygames"in e&&n(16,_=e.casinomygames)},e.$$.update=()=>{if(28&e.$$.dirty[0]&&o&&l&&c&&P(),57344&e.$$.dirty[0]&&v&&w&&$&&P(),8388608&e.$$.dirty[0]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{es(e,t[e])})}).catch(e=>{console.log(e)}),131136&e.$$.dirty[0]&&u&&r){let e=document.createElement("style");e.innerHTML=u,r.appendChild(e)}if(131200&e.$$.dirty[0]&&m&&r){let t=document.createElement("style");fetch(new URL(m)).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}},[i,s,o,l,c,d,u,m,h,g,p,f,y,v,w,$,_,r,k,T,G,a,L,b,x,S,()=>L("Favorites"),()=>L("MostPlayed"),()=>L("LastPlayed"),function(e){Ue[e?"unshift":"push"](()=>{r=e,n(17,r)})}]}function hs(e,t){oa(e,t)}customElements.get("casino-my-games")||customElements.define("casino-my-games",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>.CasinoMyGames{background-color:var(--emfe-w-color-contrast, #07072A);width:100%;margin:50px 0}.CasinoMyGames.Mobile{padding:25px 10px}.MyGamesHeader{display:flex;justify-content:space-between;margin-bottom:40px}.MyGamesButton{border:none;background:none;color:var(--emfe-w-color-white, #FFFFFF);font-size:20px;font-weight:500;margin-right:60px;transition:linear 100ms;cursor:pointer}.MyGamesButton:hover{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);line-height:36px}.MyGamesButton:focus{color:var(--emfe-w-color-primary, #D0046C);line-height:36px}.MyGamesButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-color-primary, #D0046C)}.MyGamesButton.Active{border-bottom:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary, #D0046C);line-height:36px}.Mobile .MyGamesHeader{justify-content:flex-start}.Mobile .MyGamesButton{font-size:16px;white-space:nowrap;margin-right:10px}.Mobile .MyGamesButton.Active{padding-bottom:4px}</style>",j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},ms,us,t,{userid:0,session:1,endpoint:2,datasource:3,lang:4,currency:5,clientstyling:6,clientstylingurl:7,livecasino:8,visiblegames:9,gamepagemodalurl:10,integratedgameframedesktop:11,integratedgameframemobile:12,translationurl:23,favorites:13,mostplayed:14,lastplayed:15,activecategory:24,categorybackground:25,casinomygames:16},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["userid","session","endpoint","datasource","lang","currency","clientstyling","clientstylingurl","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","translationurl","favorites","mostplayed","lastplayed","activecategory","categorybackground","casinomygames"]}get userid(){return this.$$.ctx[0]}set userid(e){this.$$set({userid:e}),f()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),f()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),f()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),f()}get currency(){return this.$$.ctx[5]}set currency(e){this.$$set({currency:e}),f()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),f()}get visiblegames(){return this.$$.ctx[9]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get gamepagemodalurl(){return this.$$.ctx[10]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get integratedgameframemobile(){return this.$$.ctx[12]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get translationurl(){return this.$$.ctx[23]}set translationurl(e){this.$$set({translationurl:e}),f()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),f()}get mostplayed(){return this.$$.ctx[14]}set mostplayed(e){this.$$set({mostplayed:e}),f()}get lastplayed(){return this.$$.ctx[15]}set lastplayed(e){this.$$set({lastplayed:e}),f()}get activecategory(){return this.$$.ctx[24]}set activecategory(e){this.$$set({activecategory:e}),f()}get categorybackground(){return this.$$.ctx[25]}set categorybackground(e){this.$$set({categorybackground:e}),f()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),f()}});const gs={en:{Translations:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},zh:{Translations:{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"}},de:{Translations:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"}},it:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},fr:{Translations:{recentSearch:"Recherche récente",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."}},es:{Translations:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"}},gr:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},tr:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},ru:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."}},ro:{Translations:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului. ",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre."}},hr:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},hu:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},pl:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},pt:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},sl:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},sr:{Translations:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}}};function ps(e,t,n){const a=e.slice();return a[48]=t[n],a}function fs(e){let n,a,r,i;function s(e){return 1==e[13]&&e[8].length<2?vs:0!=e[11].length?bs:void 0}let o=s(e),l=o&&o(e),c=!1===e[9]&&$s(e),d=2<=e[8].length&&0==e[11].length&&Ss(e);return{c(){l&&l.c(),n=pe(),a=he("div"),c&&c.c(),r=pe(),d&&d.c(),fe(a,"class",i="SearchResultsContainer "+(1==e[13]?"":"NotVisible"))},m(e,t){l&&l.m(e,t),ue(e,n,t),ue(e,a,t),c&&c.m(a,null),de(a,r),d&&d.m(a,null)},p(e,t){o===(o=s(e))&&l?l.p(e,t):(l&&l.d(1),(l=o&&o(e))&&(l.c(),l.m(n.parentNode,n))),!1===e[9]?c?c.p(e,t):((c=$s(e)).c(),c.m(a,r)):c&&(c.d(1),c=null),2<=e[8].length&&0==e[11].length?d?d.p(e,t):((d=Ss(e)).c(),d.m(a,null)):d&&(d.d(1),d=null),8192&t[0]&&i!==(i="SearchResultsContainer "+(1==e[13]?"":"NotVisible"))&&fe(a,"class",i)},d(e){l&&l.d(e),e&&me(n),e&&me(a),c&&c.d(),d&&d.d()}}}function ys(e){let n,a,r=e[17]("Translations.loading")+"";return{c(){n=he("p"),a=ge(r)},m(e,t){ue(e,n,t),de(n,a)},p(e,t){131072&t[0]&&r!==(r=e[17]("Translations.loading")+"")&&ye(a,r)},d(e){e&&me(n)}}}function bs(e){let n,a,r=e[17]("Translations.searchResult")+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","PC"!==ze(e[18])?"SearchMessage":"SearchMessagePc")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){131072&t[0]&&r!==(r=e[17]("Translations.searchResult")+"")&&ye(a,r)},d(e){e&&me(n)}}}function vs(e){let n,a,r,i,s=e[17]("Translations.recentSearch")+"",o=0==e[11].length&&ws(e);return{c(){n=he("p"),a=ge(s),r=pe(),o&&o.c(),i=l(),fe(n,"class","PC"!==ze(e[18])?"SearchMessage":"SearchMessagePc")},m(e,t){ue(e,n,t),de(n,a),ue(e,r,t),o&&o.m(e,t),ue(e,i,t)},p(e,t){131072&t[0]&&s!==(s=e[17]("Translations.recentSearch")+"")&&ye(a,s),0==e[11].length?o?o.p(e,t):((o=ws(e)).c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(e){e&&me(n),e&&me(r),o&&o.d(e),e&&me(i)}}}function ws(e){let n,a,r,t,i=e[17]("Translations.noRecentSearches")+"";return{c(){n=he("div"),a=he("p"),r=ge(i),fe(a,"class",t="PC"!==ze(e[18])?"SearchMessage":"SearchMessagePc"),fe(n,"class","ResultsContainerError")},m(e,t){ue(e,n,t),de(n,a),de(a,r)},p(e,t){131072&t[0]&&i!==(i=e[17]("Translations.noRecentSearches")+"")&&ye(r,i)},d(e){e&&me(n)}}}function $s(t){let r,i=t[11],s=[];for(let e=0;e<i.length;e+=1)s[e]=xs(ps(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);ue(t,r,n)},p(t,n){if(1149183&n[0]){let e;for(i=t[11],e=0;e<i.length;e+=1){var a=ps(t,i,e);s[e]?s[e].p(a,n):(s[e]=xs(a),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){k(s,e),e&&me(r)}}}function xs(e){let n,a,r,i,s,o,l,c,d,u,m;return{c(){x(n=he("casino-game-thumbnail"),"endpoint",e[0]),x(n,"session",e[15]),x(n,"userid",e[16]),x(n,"favorites",e[7]),x(n,"lang",e[1]),x(n,"gamethumbnail",a=e[48].thumbnail),x(n,"gamename",r=e[48].name),x(n,"gamevendor",i=e[48].vendor.name),x(n,"gameisnew",s=e[48].isNew),x(n,"gametag",o=0<e[48].advancedTags?.length&&e[20](e[48].advancedTags)),x(n,"gamecellsize",l=e[48].cellSize),x(n,"gameid",c=e[48].id),x(n,"gamefunmode",d=e[48].hasFunMode),x(n,"gamefavorite",u=e[48].isFavorite),x(n,"livelobbyendpoint",m=e[48].details?e[48].launchUrl:""),x(n,"integratedgameframedesktop",e[4]),x(n,"integratedgameframemobile",e[5]),x(n,"clientstyling",e[2]),x(n,"clientstylingurl",e[3]),x(n,"gamepagemodalurl",e[6])},m(e,t){ue(e,n,t)},p(e,t){1&t[0]&&x(n,"endpoint",e[0]),32768&t[0]&&x(n,"session",e[15]),65536&t[0]&&x(n,"userid",e[16]),128&t[0]&&x(n,"favorites",e[7]),2&t[0]&&x(n,"lang",e[1]),2048&t[0]&&a!==(a=e[48].thumbnail)&&x(n,"gamethumbnail",a),2048&t[0]&&r!==(r=e[48].name)&&x(n,"gamename",r),2048&t[0]&&i!==(i=e[48].vendor.name)&&x(n,"gamevendor",i),2048&t[0]&&s!==(s=e[48].isNew)&&x(n,"gameisnew",s),2048&t[0]&&o!==(o=0<e[48].advancedTags?.length&&e[20](e[48].advancedTags))&&x(n,"gametag",o),2048&t[0]&&l!==(l=e[48].cellSize)&&x(n,"gamecellsize",l),2048&t[0]&&c!==(c=e[48].id)&&x(n,"gameid",c),2048&t[0]&&d!==(d=e[48].hasFunMode)&&x(n,"gamefunmode",d),2048&t[0]&&u!==(u=e[48].isFavorite)&&x(n,"gamefavorite",u),2048&t[0]&&m!==(m=e[48].details?e[48].launchUrl:"")&&x(n,"livelobbyendpoint",m),16&t[0]&&x(n,"integratedgameframedesktop",e[4]),32&t[0]&&x(n,"integratedgameframemobile",e[5]),4&t[0]&&x(n,"clientstyling",e[2]),8&t[0]&&x(n,"clientstylingurl",e[3]),64&t[0]&&x(n,"gamepagemodalurl",e[6])},d(e){e&&me(n)}}}function Ss(e){let n,a,r,t,i,s,o,l=e[17]("Translations.notFound")+"",c=e[17]("Translations.notFoundText")+"";return{c(){n=he("div"),a=he("p"),r=ge(l),i=pe(),s=he("p"),o=ge(c),fe(a,"class",t="PC"!==ze(e[18])?"SearchMessage":"SearchMessagePc"),fe(n,"class","ResultsContainerError")},m(e,t){ue(e,n,t),de(n,a),de(a,r),de(n,i),de(n,s),de(s,o)},p(e,t){131072&t[0]&&l!==(l=e[17]("Translations.notFound")+"")&&ye(r,l),131072&t[0]&&c!==(c=e[17]("Translations.notFoundText")+"")&&ye(o,c)},d(e){e&&me(n)}}}function _s(n){let a,r,i,s,o,l,c,d,u,m,h,g,p,f,y,b,v,w,$,x,S,_,C=n[17]("Translations.cancel")+"";function k(e){return e[14]?ys:fs}let T=k(n),G=T(n);return{c(){a=he("div"),r=he("div"),i=he("div"),s=M("svg"),o=M("path"),l=M("circle"),c=pe(),d=he("div"),u=he("input"),h=pe(),g=he("span"),p=M("svg"),f=M("path"),b=pe(),v=he("small"),w=ge(C),x=pe(),G.c(),this.c=W,fe(o,"stroke","#212121"),fe(o,"stroke-width","2"),fe(o,"stroke-linecap","round"),fe(o,"stroke-linejoin","round"),fe(o,"d","m10.48 10.985 2.21 2.373"),fe(l,"cx","6.5"),fe(l,"cy","6.5"),fe(l,"r","5.75"),fe(l,"stroke","#212121"),fe(l,"stroke-width","1.5"),fe(s,"width","14"),fe(s,"height","15"),fe(s,"fill","none"),fe(s,"xmlns","http://www.w3.org/2000/svg"),fe(i,"class","PC"!==ze(n[18])?"SearchIcon":"SearchIconPc"),fe(u,"class","SearchInput"),fe(u,"type","search"),fe(u,"placeholder",m=n[17]("Translations.placeHolderSearchGames")),fe(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),fe(f,"stroke","#717171"),fe(f,"stroke-width","2"),fe(f,"stroke-linecap","round"),fe(f,"stroke-linejoin","round"),fe(p,"width","11"),fe(p,"height","11"),fe(p,"fill","none"),fe(p,"xmlns","http://www.w3.org/2000/svg"),fe(g,"class",y="SearchClearButton "+(0!=n[8].length?"":"NotVisible")),fe(d,"class","PC"!==ze(n[18])?"SearchContainer":"SearchContainerPc"),fe(v,"class",$="SearchCancelButton "+(n[9]?"NotVisible":"")),fe(r,"class","PC"!==ze(n[18])?"Search":"SearchPc"),fe(a,"class","PC"!==ze(n[18])?"CasinoSearch":"CasinoSearchPc")},m(e,t){ue(e,a,t),de(a,r),de(r,i),de(i,s),de(s,o),de(s,l),de(r,c),de(r,d),de(d,u),L(u,n[8]),n[29](u),de(d,h),de(d,g),de(g,p),de(p,f),de(r,b),de(r,v),de(v,w),de(a,x),G.m(a,null),n[32](a),S||(_=[z(u,"input",n[28]),z(u,"focus",n[19]),z(g,"click",n[30]),z(v,"click",n[31])],S=!0)},p(e,t){131072&t[0]&&m!==(m=e[17]("Translations.placeHolderSearchGames"))&&fe(u,"placeholder",m),256&t[0]&&L(u,e[8]),256&t[0]&&y!==(y="SearchClearButton "+(0!=e[8].length?"":"NotVisible"))&&fe(g,"class",y),131072&t[0]&&C!==(C=e[17]("Translations.cancel")+"")&&ye(w,C),512&t[0]&&$!==($="SearchCancelButton "+(e[9]?"NotVisible":""))&&fe(v,"class",$),T===(T=k(e))&&G?G.p(e,t):(G.d(1),(G=T(e))&&(G.c(),G.m(a,null)))},i:W,o:W,d(e){e&&me(a),n[29](null),G.d(),n[32](null),S=!1,V(_)}}}function Cs(a,e,i){let t;Ve(a,Ta,e=>i(17,t=e));let n,r,s,o,{endpoint:l=""}=e,{datasource:c=""}=e,{session:d=""}=e,{userid:u=""}=e,{lang:m="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:g=""}=e,{integratedgameframedesktop:p="false"}=e,{integratedgameframemobile:f="false"}=e,{gamepagemodalurl:y="true"}=e,{translationurl:b=""}=e,{showfavorites:v=""}=e,w=window.navigator.userAgent,$=[],x=[],S={},_="",C=!0,k=!1,T=!1,G=!1,M=[];Object.keys(gs).forEach(e=>{hs(e,gs[e])});const E=e=>{{var t,n;e.data&&"SearchedItemClicked"==e.data.type&&(t=e.data.gameId,-1===(x=(x=localStorage.getItem("searchedGamesWds_casino"))?x.split(","):[]).indexOf(t)&&(x.push(t),n=x.join(","),localStorage.setItem("searchedGamesWds_casino",n)))}"UserSessionID"==e.data.type&&(i(15,s=e.data.session),i(16,o=e.data.userid),i(27,G=!0))},L=()=>{if(i(9,C=!1),i(13,k=!0),l&&c&&m&&_.length<2){i(11,$=[]);let e=localStorage.getItem("searchedGamesWds_casino"),t=[],n=[],a=0,r=(t=e?e.split(","):t).length;if(0<r){for(a=0;a<r;a++){let e=new URL(l+"/casino/games/"+t[a]);e.searchParams.append("language",m),e.searchParams.append("datasource",c),e.searchParams.append("platform",ze(w)),n.push(((e,a)=>new Promise((t,n)=>{i(14,T=!0),a&&Object.keys(S).indexOf(a)>=0?(i(14,T=!1),t(S[a])):fetch(e).then(e=>e.json()).then(e=>{i(14,T=!1),S[e[0].gameId]=e[0],t(e[0])}).catch(e=>{i(14,T=!1),console.error(e),n(e)})}))(e,t[a]))}Promise.all(n).then(e=>{i(11,$=e.map(e=>(e.isFavorite=P(e.id),e)))})}}I(k),"function"==typeof gtag&&gtag("event","SearchInitialized",{context:"SearchWidget"})},P=t=>-1!==M.findIndex(e=>e==t),F=()=>{i(8,_=""),i(9,C=!0),i(14,T=!1),i(11,$=[]),i(13,k=!1),I(k)},R=()=>{i(8,_=""),n.focus()},I=e=>{window.postMessage({type:!0===e?"searchActive":"searchCancelled",searchStatus:e})};return Ze(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),a.$$set=e=>{"endpoint"in e&&i(0,l=e.endpoint),"datasource"in e&&i(23,c=e.datasource),"session"in e&&i(24,d=e.session),"userid"in e&&i(25,u=e.userid),"lang"in e&&i(1,m=e.lang),"clientstyling"in e&&i(2,h=e.clientstyling),"clientstylingurl"in e&&i(3,g=e.clientstylingurl),"integratedgameframedesktop"in e&&i(4,p=e.integratedgameframedesktop),"integratedgameframemobile"in e&&i(5,f=e.integratedgameframemobile),"gamepagemodalurl"in e&&i(6,y=e.gamepagemodalurl),"translationurl"in e&&i(26,b=e.translationurl),"showfavorites"in e&&i(7,v=e.showfavorites)},a.$$.update=()=>{if(8389379&a.$$.dirty[0])if(2<=_.length){const a=new URL(l+"/casino/games");a.searchParams.append("datasource",c),a.searchParams.append("expand","vendor"),a.searchParams.append("platform",ze(w)),a.searchParams.append("language",m),a.searchParams.append("pagination","offset=0,limit=30"),a.searchParams.append("filter","name="+_),e=a,new Promise((t,n)=>{i(14,T=!0),fetch(e.href).then(e=>e.json()).then(e=>{i(14,T=!1),t(e)}).catch(e=>{i(14,T=!1),console.error(e),n(e)})}).then(e=>{i(11,$=e.items.map(e=>(e.isFavorite=P(e.id),e)))})}else C||L();var e,t,n;if(2&a.$$.dirty[0]&&m&&(n=m,Ye.set(n)),67108864&a.$$.dirty[0]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{hs(e,t[e])})}).catch(e=>{console.log(e)}),50331648&a.$$.dirty[0]&&d&&u&&(i(27,G=!0),i(15,s=d),i(16,o=u)),134217856&a.$$.dirty[0]&&v&&G&&(n=new URL(`${l}/player/${o}/favorites/`),i(14,T=!0),t={method:"GET",headers:{"X-SessionID":s}},fetch(n.href,t).then(e=>e.json()).then(e=>{i(14,T=!1),M=e.items.map(e=>e.id)})),1028&a.$$.dirty[0]&&h&&r){let e=document.createElement("style");e.innerHTML=h,r.appendChild(e)}if(1032&a.$$.dirty[0]&&g&&r){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}},[l,m,h,g,p,f,y,v,_,C,r,$,n,k,T,s,o,t,w,L,a=>{if(0===(null==a?void 0:a.length))return"";let r,i,s=99999999999;const o=new Date(Date.now());return a.forEach((e,t)=>{var n=new Date(e.schedules[0].startTime),e=new Date(e.schedules[0].endTime);Ra(e).diff(o)<s&&(s=Ra(e).diff(o),i=t),Ra(o).isAfter(n)&&Ra(o).isBefore(e)&&(r=a[i].name)}),r},F,R,c,d,u,b,G,function(){_=this.value,i(8,_)},function(e){Ue[e?"unshift":"push"](()=>{n=e,i(12,n)})},()=>R(),()=>F(),function(e){Ue[e?"unshift":"push"](()=>{r=e,i(10,r)})}]}function ks(e,t,n){const a=e.slice();return a[129]=t[n],a[131]=n,a}function Ts(e,t,n){const a=e.slice();return a[129]=t[n],a[131]=n,a}function Gs(e){let n,a,r,i,s,o,l="PC"!==ze(e[65])&&"false"===e[12],c=l&&Es(),d="true"==e[21]&&0==qs&&!e[62]&&Ls(e);function u(e){return e[56]?Fs:e[62]?void 0:Ps}let m=u(e),h=m&&m(e),g=e[58]&&"true"==e[17]&&Xs(e);return{c(){n=he("section"),c&&c.c(),a=pe(),r=he("casino-search"),i=pe(),d&&d.c(),s=pe(),h&&h.c(),o=pe(),g&&g.c(),x(r,"endpoint",e[1]),x(r,"datasource",e[2]),x(r,"lang",e[4]),x(r,"clientstyling",e[7]),x(r,"clientstylingurl",e[8]),x(r,"integratedgameframedesktop",e[29]),x(r,"integratedgameframemobile",e[30]),x(r,"translationurl",e[9]),x(r,"showfavorites",e[13]),fe(n,"class","CategoriesLobby"),fe(n,"part","CategoriesLobby"),S(n,"max-width",e[16]+"px")},m(e,t){ue(e,n,t),c&&c.m(n,null),de(n,a),de(n,r),de(n,i),d&&d.m(n,null),de(n,s),h&&h.m(n,null),de(n,o),g&&g.m(n,null)},p(e,t){(l=4096&t[0]?"PC"!==ze(e[65])&&"false"===e[12]:l)?c||((c=Es()).c(),c.m(n,a)):c&&(c.d(1),c=null),2&t[0]&&x(r,"endpoint",e[1]),4&t[0]&&x(r,"datasource",e[2]),16&t[0]&&x(r,"lang",e[4]),128&t[0]&&x(r,"clientstyling",e[7]),256&t[0]&&x(r,"clientstylingurl",e[8]),536870912&t[0]&&x(r,"integratedgameframedesktop",e[29]),1073741824&t[0]&&x(r,"integratedgameframemobile",e[30]),512&t[0]&&x(r,"translationurl",e[9]),8192&t[0]&&x(r,"showfavorites",e[13]),"true"!=e[21]||0!=qs||e[62]?d&&(d.d(1),d=null):d?d.p(e,t):((d=Ls(e)).c(),d.m(n,s)),m===(m=u(e))&&h?h.p(e,t):(h&&h.d(1),(h=m&&m(e))&&(h.c(),h.m(n,o))),e[58]&&"true"==e[17]?g?g.p(e,t):((g=Xs(e)).c(),g.m(n,null)):g&&(g.d(1),g=null),65536&t[0]&&S(n,"max-width",e[16]+"px")},d(e){e&&me(n),c&&c.d(),d&&d.d(),h&&h.d(),g&&g.d()}}}function Ms(e){let n,a,r=e[64]("casinoPage.500")+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","SearchLoading"),fe(n,"part","SearchLoading")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){4&t[2]&&r!==(r=e[64]("casinoPage.500")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Es(){let n;return{c(){fe(n=he("div"),"class","SearchBarPlaceholder"),fe(n,"part","SearchBarPlaceholder")},m(e,t){ue(e,n,t)},d(e){e&&me(n)}}}function Ls(e){let n;return{c(){x(n=he("casino-random-game"),"datasource",e[2]),x(n,"filteredrandomgamecategories",e[22]),x(n,"endpoint",e[1]),x(n,"lang",e[4]),x(n,"gameevent",e[55]),x(n,"randombuttonicon",e[51]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8])},m(e,t){ue(e,n,t)},p(e,t){4&t[0]&&x(n,"datasource",e[2]),4194304&t[0]&&x(n,"filteredrandomgamecategories",e[22]),2&t[0]&&x(n,"endpoint",e[1]),16&t[0]&&x(n,"lang",e[4]),16777216&t[1]&&x(n,"gameevent",e[55]),1048576&t[1]&&x(n,"randombuttonicon",e[51]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8])},d(e){e&&me(n)}}}function Ps(e){let n;function a(e){return e[61]?Ns:e[60]?Os:e[61]?As:e[60]?Is:Rs}let r=a(e),i=r(e);return{c(){i.c(),n=l()},m(e,t){i.m(e,t),ue(e,n,t)},p(e,t){r===(r=a(e))&&i?i.p(e,t):(i.d(1),(i=r(e))&&(i.c(),i.m(n.parentNode,n)))},d(e){i.d(e),e&&me(n)}}}function Fs(e){let n,a,r=e[64]("casinoPage.loading")+"";return{c(){n=he("p"),a=ge(r),fe(n,"class","SearchLoading"),fe(n,"part","SearchLoading")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){4&t[2]&&r!==(r=e[64]("casinoPage.loading")+"")&&ye(a,r)},d(e){e&&me(n)}}}function Rs(e){let n;return{c(){x(n=he("casino-games-category-section"),"userid",e[6]),x(n,"endpoint",e[1]),x(n,"datasource",e[2]),x(n,"favorites",e[13]),x(n,"lang",e[4]),x(n,"currency",e[3]),x(n,"session",e[5]),x(n,"categoryid",e[53]),x(n,"categorygames","9"),x(n,"class","CategoryContainer"),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8]),x(n,"livecasino",e[20]),x(n,"visiblegames",e[11]),x(n,"gamepagemodalurl",e[23]),x(n,"integratedgameframedesktop",e[29]),x(n,"integratedgameframemobile",e[30]),x(n,"casinomygames",e[0])},m(e,t){ue(e,n,t)},p(e,t){64&t[0]&&x(n,"userid",e[6]),2&t[0]&&x(n,"endpoint",e[1]),4&t[0]&&x(n,"datasource",e[2]),8192&t[0]&&x(n,"favorites",e[13]),16&t[0]&&x(n,"lang",e[4]),8&t[0]&&x(n,"currency",e[3]),32&t[0]&&x(n,"session",e[5]),4194304&t[1]&&x(n,"categoryid",e[53]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8]),1048576&t[0]&&x(n,"livecasino",e[20]),2048&t[0]&&x(n,"visiblegames",e[11]),8388608&t[0]&&x(n,"gamepagemodalurl",e[23]),536870912&t[0]&&x(n,"integratedgameframedesktop",e[29]),1073741824&t[0]&&x(n,"integratedgameframemobile",e[30]),1&t[0]&&x(n,"casinomygames",e[0])},d(e){e&&me(n)}}}function Is(e){let n;return{c(){x(n=he("casino-my-games"),"userid",e[6]),x(n,"session",e[5]),x(n,"endpoint",e[1]),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"currency",e[3]),x(n,"favorites",e[13]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8]),x(n,"livecasino",e[20]),x(n,"visiblegames",e[11]),x(n,"gamepagemodalurl",e[23]),x(n,"integratedgameframedesktop",e[29]),x(n,"integratedgameframemobile",e[30]),x(n,"translationurl",e[9]),x(n,"mostplayed",e[14]),x(n,"lastplayed",e[15]),x(n,"filteredcategories",e[18]),x(n,"activecategory",e[19]),x(n,"categoryindex","0"),x(n,"categoryid","MYGAMES")},m(e,t){ue(e,n,t)},p(e,t){64&t[0]&&x(n,"userid",e[6]),32&t[0]&&x(n,"session",e[5]),2&t[0]&&x(n,"endpoint",e[1]),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),8&t[0]&&x(n,"currency",e[3]),8192&t[0]&&x(n,"favorites",e[13]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8]),1048576&t[0]&&x(n,"livecasino",e[20]),2048&t[0]&&x(n,"visiblegames",e[11]),8388608&t[0]&&x(n,"gamepagemodalurl",e[23]),536870912&t[0]&&x(n,"integratedgameframedesktop",e[29]),1073741824&t[0]&&x(n,"integratedgameframemobile",e[30]),512&t[0]&&x(n,"translationurl",e[9]),16384&t[0]&&x(n,"mostplayed",e[14]),32768&t[0]&&x(n,"lastplayed",e[15]),262144&t[0]&&x(n,"filteredcategories",e[18]),524288&t[0]&&x(n,"activecategory",e[19])},d(e){e&&me(n)}}}function As(t){let r,i=t[63],s=[];for(let e=0;e<i.length;e+=1)s[e]=Us(ks(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);ue(t,r,n)},p(t,n){if(2123378175&n[0]|458687&n[1]|2&n[2]){let e;for(i=t[63],e=0;e<i.length;e+=1){var a=ks(t,i,e);s[e]?s[e].p(a,n):(s[e]=Us(a),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){k(s,e),e&&me(r)}}}function Os(e){let n;return{c(){x(n=he("casino-my-games"),"userid",e[6]),x(n,"session",e[5]),x(n,"endpoint",e[1]),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"currency",e[3]),x(n,"favorites",e[13]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8]),x(n,"livecasino",e[20]),x(n,"visiblegames",e[11]),x(n,"gamepagemodalurl",e[23]),x(n,"integratedgameframedesktop",e[29]),x(n,"integratedgameframemobile",e[30]),x(n,"translationurl",""),x(n,"mostplayed",e[14]),x(n,"lastplayed",e[15]),x(n,"filteredcategories",e[18]),x(n,"activecategory",e[19]),x(n,"categoryindex","0"),x(n,"categoryid","MYGAMES"),x(n,"casinomygames",e[0])},m(e,t){ue(e,n,t)},p(e,t){64&t[0]&&x(n,"userid",e[6]),32&t[0]&&x(n,"session",e[5]),2&t[0]&&x(n,"endpoint",e[1]),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),8&t[0]&&x(n,"currency",e[3]),8192&t[0]&&x(n,"favorites",e[13]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8]),1048576&t[0]&&x(n,"livecasino",e[20]),2048&t[0]&&x(n,"visiblegames",e[11]),8388608&t[0]&&x(n,"gamepagemodalurl",e[23]),536870912&t[0]&&x(n,"integratedgameframedesktop",e[29]),1073741824&t[0]&&x(n,"integratedgameframemobile",e[30]),16384&t[0]&&x(n,"mostplayed",e[14]),32768&t[0]&&x(n,"lastplayed",e[15]),262144&t[0]&&x(n,"filteredcategories",e[18]),524288&t[0]&&x(n,"activecategory",e[19]),1&t[0]&&x(n,"casinomygames",e[0])},d(e){e&&me(n)}}}function Ns(t){let r,i=t[63],s=[];for(let e=0;e<i.length;e+=1)s[e]=Ks(Ts(t,i,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();r=l()},m(t,n){for(let e=0;e<s.length;e+=1)s[e].m(t,n);ue(t,r,n)},p(t,n){if(2140155391&n[0]|1048575&n[1]|2&n[2]){let e;for(i=t[63],e=0;e<i.length;e+=1){var a=Ts(t,i,e);s[e]?s[e].p(a,n):(s[e]=Ks(a),s[e].c(),s[e].m(r.parentNode,r))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length}},d(e){k(s,e),e&&me(r)}}}function Ds(e){let n,a,r,i;return{c(){n=he("br"),a=pe(),x(r=he("jackpot-banner"),"title","Jackpot Cards"),x(r,"currency",i=e[3]||"RON"),x(r,"gameid","998"),x(r,"endpoint",e[1]),x(r,"lang",e[4]),x(r,"backgroundsrc","/assets/background0.jpg"),x(r,"backgroundsrcmobile","/assets/background0.jpg"),x(r,"titlelogopath","/assets/jackpots_logo.svg"),x(r,"caticon0","/assets/icon0.svg"),x(r,"caticon1","/assets/icon1.svg"),x(r,"caticon2","/assets/icon2.svg"),x(r,"caticon3","/assets/icon3.svg"),x(r,"iconlabels",e[45]),x(r,"visualstructure","typeSpread"),x(r,"clientstyling",e[7]),x(r,"clientstylingurl",e[8])},m(e,t){ue(e,n,t),ue(e,a,t),ue(e,r,t)},p(e,t){8&t[0]&&i!==(i=e[3]||"RON")&&x(r,"currency",i),2&t[0]&&x(r,"endpoint",e[1]),16&t[0]&&x(r,"lang",e[4]),16384&t[1]&&x(r,"iconlabels",e[45]),128&t[0]&&x(r,"clientstyling",e[7]),256&t[0]&&x(r,"clientstylingurl",e[8])},d(e){e&&me(n),e&&me(a),e&&me(r)}}}function Bs(e){let n,a,r,i;return{c(){n=he("br"),a=pe(),x(r=he("jackpot-banner"),"title","Egypt Quest"),x(r,"currency",i=e[3]||"RON"),x(r,"gameid","999"),x(r,"endpoint",e[1]),x(r,"lang",e[4]),x(r,"backgroundsrc",e[42]),x(r,"backgroundsrcmobile",e[43]),x(r,"titlelogopath",e[44]),x(r,"caticon0",e[38]),x(r,"caticon1",e[39]),x(r,"caticon2",e[40]),x(r,"caticon3",e[41]),x(r,"iconlabels",e[45]),x(r,"visualstructure",e[46]),x(r,"clientstyling",e[7]),x(r,"clientstylingurl",e[8])},m(e,t){ue(e,n,t),ue(e,a,t),ue(e,r,t)},p(e,t){8&t[0]&&i!==(i=e[3]||"RON")&&x(r,"currency",i),2&t[0]&&x(r,"endpoint",e[1]),16&t[0]&&x(r,"lang",e[4]),2048&t[1]&&x(r,"backgroundsrc",e[42]),4096&t[1]&&x(r,"backgroundsrcmobile",e[43]),8192&t[1]&&x(r,"titlelogopath",e[44]),128&t[1]&&x(r,"caticon0",e[38]),256&t[1]&&x(r,"caticon1",e[39]),512&t[1]&&x(r,"caticon2",e[40]),1024&t[1]&&x(r,"caticon3",e[41]),16384&t[1]&&x(r,"iconlabels",e[45]),32768&t[1]&&x(r,"visualstructure",e[46]),128&t[0]&&x(r,"clientstyling",e[7]),256&t[0]&&x(r,"clientstylingurl",e[8])},d(e){e&&me(n),e&&me(a),e&&me(r)}}}function Hs(e){let n,a;return{c(){x(n=he("casino-collections-providers"),"endpoint",a=e[1].slice(0,-2)),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"type","vendor"),x(n,"titletype","logo"),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8])},m(e,t){ue(e,n,t)},p(e,t){2&t[0]&&a!==(a=e[1].slice(0,-2))&&x(n,"endpoint",a),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8])},d(e){e&&me(n)}}}function js(e){let n,a;return{c(){x(n=he("casino-collections-providers"),"endpoint",a=e[1].slice(0,-2)),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"type",e[48]),x(n,"titletype",e[49]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8])},m(e,t){ue(e,n,t)},p(e,t){2&t[0]&&a!==(a=e[1].slice(0,-2))&&x(n,"endpoint",a),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),131072&t[1]&&x(n,"type",e[48]),262144&t[1]&&x(n,"titletype",e[49]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8])},d(e){e&&me(n)}}}function Us(n){let a,r,i,s,o,e,l,c,d,u="true"===enablecasinowinners&&1===n[131]&&function(e){let n,a;return{c(){n=he("div"),x(a=he("casino-winners"),"session",e[5]),x(a,"periodrecent",e[31]),x(a,"periodtop",e[32]),x(a,"numberusersrecent",e[33]),x(a,"numberuserstop",e[34]),x(a,"amountlimit",e[35]),x(a,"isrecentavailable",e[28]),x(a,"istopavailable",e[27]),x(a,"defaultcurrency",e[36]),x(a,"enableautoscroll",e[26]),x(a,"tabsorder",e[25]),x(a,"lang",e[4]),x(a,"clientstyling",e[7]),x(a,"clientstylingurl",e[8]),x(a,"endpoint",e[1]),fe(n,"class","CasinoWinners")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){32&t[0]&&x(a,"session",e[5]),1&t[1]&&x(a,"periodrecent",e[31]),2&t[1]&&x(a,"periodtop",e[32]),4&t[1]&&x(a,"numberusersrecent",e[33]),8&t[1]&&x(a,"numberuserstop",e[34]),16&t[1]&&x(a,"amountlimit",e[35]),268435456&t[0]&&x(a,"isrecentavailable",e[28]),134217728&t[0]&&x(a,"istopavailable",e[27]),32&t[1]&&x(a,"defaultcurrency",e[36]),67108864&t[0]&&x(a,"enableautoscroll",e[26]),33554432&t[0]&&x(a,"tabsorder",e[25]),16&t[0]&&x(a,"lang",e[4]),128&t[0]&&x(a,"clientstyling",e[7]),256&t[0]&&x(a,"clientstylingurl",e[8]),2&t[0]&&x(a,"endpoint",e[1])},d(e){e&&me(n)}}}(n),t=4===(h=n)[131]&&"true"==enablejackpotbanner?Bs:6===h[131]&&"true"==enablejackpotbanner?Ds:void 0,m=t&&t(n);var h;function g(e){return 7==e[131]&&"true"==enablecollections?js:e[131]==e[63].length-1&&"true"==enablecollections?Hs:void 0}let p=g(n),f=p&&p(n);return{c(){u&&u.c(),a=pe(),m&&m.c(),r=pe(),f&&f.c(),i=pe(),x(s=he("casino-games-category-section"),"session",n[5]),x(s,"userid",n[6]),x(s,"endpoint",n[1]),x(s,"datasource",n[2]),x(s,"lang",n[4]),x(s,"currency",n[3]),x(s,"categoryid",o=n[129]),x(s,"categoryindex",e=n[131]),x(s,"categorygames","9"),x(s,"favorites",n[13]),x(s,"class","CategoryContainer"),S(s,"background-color",n[131]%2!=0?n[10]:"transparent"),x(s,"clientstyling",n[7]),x(s,"clientstylingurl",n[8]),x(s,"livecasino",n[20]),x(s,"visiblegames",n[11]),x(s,"gamepagemodalurl",n[23]),x(s,"integratedgameframedesktop",n[29]),x(s,"integratedgameframemobile",n[30]),x(s,"casinomygames",n[0])},m(e,t){u&&u.m(e,t),ue(e,a,t),m&&m.m(e,t),ue(e,r,t),f&&f.m(e,t),ue(e,i,t),ue(e,s,t),c||(d=E(l=n[66].call(null,s,n[129])),c=!0)},p(e,t){n=e,"true"===enablecasinowinners&&1===n[131]&&u.p(n,t),m&&m.p(n,t),p===(p=g(n))&&f?f.p(n,t):(f&&f.d(1),(f=p&&p(n))&&(f.c(),f.m(i.parentNode,i))),32&t[0]&&x(s,"session",n[5]),64&t[0]&&x(s,"userid",n[6]),2&t[0]&&x(s,"endpoint",n[1]),4&t[0]&&x(s,"datasource",n[2]),16&t[0]&&x(s,"lang",n[4]),8&t[0]&&x(s,"currency",n[3]),2&t[2]&&o!==(o=n[129])&&x(s,"categoryid",o),8192&t[0]&&x(s,"favorites",n[13]),1024&t[0]&&S(s,"background-color",n[131]%2!=0?n[10]:"transparent"),128&t[0]&&x(s,"clientstyling",n[7]),256&t[0]&&x(s,"clientstylingurl",n[8]),1048576&t[0]&&x(s,"livecasino",n[20]),2048&t[0]&&x(s,"visiblegames",n[11]),8388608&t[0]&&x(s,"gamepagemodalurl",n[23]),536870912&t[0]&&x(s,"integratedgameframedesktop",n[29]),1073741824&t[0]&&x(s,"integratedgameframemobile",n[30]),1&t[0]&&x(s,"casinomygames",n[0]),l&&T(l.update)&&2&t[2]&&l.update.call(null,n[129])},d(e){u&&u.d(e),e&&me(a),m&&m.d(e),e&&me(r),f&&f.d(e),e&&me(i),e&&me(s),c=!1,d()}}}function Ys(e){let n,a;return{c(){n=he("div"),x(a=he("casino-winners"),"session",e[5]),x(a,"userid",e[6]),x(a,"periodrecent",e[31]),x(a,"periodtop",e[32]),x(a,"numberusersrecent",e[33]),x(a,"numberuserstop",e[34]),x(a,"amountlimit",e[35]),x(a,"isrecentavailable",e[28]),x(a,"istopavailable",e[27]),x(a,"defaultcurrency",e[36]),x(a,"usercurrency",e[3]),x(a,"enableautoscroll",e[26]),x(a,"tabsorder",e[25]),x(a,"lang",e[4]),x(a,"clientstyling",e[7]),x(a,"clientstylingurl",e[8]),x(a,"endpoint",e[1]),fe(n,"class","CasinoWinners")},m(e,t){ue(e,n,t),de(n,a)},p(e,t){32&t[0]&&x(a,"session",e[5]),64&t[0]&&x(a,"userid",e[6]),1&t[1]&&x(a,"periodrecent",e[31]),2&t[1]&&x(a,"periodtop",e[32]),4&t[1]&&x(a,"numberusersrecent",e[33]),8&t[1]&&x(a,"numberuserstop",e[34]),16&t[1]&&x(a,"amountlimit",e[35]),268435456&t[0]&&x(a,"isrecentavailable",e[28]),134217728&t[0]&&x(a,"istopavailable",e[27]),32&t[1]&&x(a,"defaultcurrency",e[36]),8&t[0]&&x(a,"usercurrency",e[3]),67108864&t[0]&&x(a,"enableautoscroll",e[26]),33554432&t[0]&&x(a,"tabsorder",e[25]),16&t[0]&&x(a,"lang",e[4]),128&t[0]&&x(a,"clientstyling",e[7]),256&t[0]&&x(a,"clientstylingurl",e[8]),2&t[0]&&x(a,"endpoint",e[1])},d(e){e&&me(n)}}}function Ws(e){let n,a,r,i;return{c(){n=he("br"),a=pe(),x(r=he("jackpot-banner"),"title","Jackpot Cards"),x(r,"currency",i=e[3]||"RON"),x(r,"gameid","999"),x(r,"endpoint",e[1]),x(r,"lang",e[4]),x(r,"backgroundsrc","/assets/background0.jpg"),x(r,"backgroundsrcmobile","/assets/background0.jpg"),x(r,"titlelogopath","/assets/jackpots_logo.svg"),x(r,"caticon0","/assets/icon0.svg"),x(r,"caticon1","/assets/icon1.svg"),x(r,"caticon2","/assets/icon2.svg"),x(r,"caticon3","/assets/icon3.svg"),x(r,"iconlabels",e[45]),x(r,"visualstructure","typeSpread"),x(r,"clientstyling",e[7]),x(r,"clientstylingurl",e[8])},m(e,t){ue(e,n,t),ue(e,a,t),ue(e,r,t)},p(e,t){8&t[0]&&i!==(i=e[3]||"RON")&&x(r,"currency",i),2&t[0]&&x(r,"endpoint",e[1]),16&t[0]&&x(r,"lang",e[4]),16384&t[1]&&x(r,"iconlabels",e[45]),128&t[0]&&x(r,"clientstyling",e[7]),256&t[0]&&x(r,"clientstylingurl",e[8])},d(e){e&&me(n),e&&me(a),e&&me(r)}}}function zs(e){let n,a,r,i;return{c(){n=he("br"),a=pe(),x(r=he("jackpot-banner"),"title","Egypt Quest"),x(r,"currency",i=e[3]||"RON"),x(r,"gameid","998"),x(r,"endpoint",e[1]),x(r,"lang",e[4]),x(r,"backgroundsrc",e[42]),x(r,"backgroundsrcmobile",e[43]),x(r,"titlelogopath",e[44]),x(r,"caticon0",e[38]),x(r,"caticon1",e[39]),x(r,"caticon2",e[40]),x(r,"caticon3",e[41]),x(r,"iconlabels",e[45]),x(r,"visualstructure",e[46]),x(r,"clientstyling",e[7]),x(r,"clientstylingurl",e[8])},m(e,t){ue(e,n,t),ue(e,a,t),ue(e,r,t)},p(e,t){8&t[0]&&i!==(i=e[3]||"RON")&&x(r,"currency",i),2&t[0]&&x(r,"endpoint",e[1]),16&t[0]&&x(r,"lang",e[4]),2048&t[1]&&x(r,"backgroundsrc",e[42]),4096&t[1]&&x(r,"backgroundsrcmobile",e[43]),8192&t[1]&&x(r,"titlelogopath",e[44]),128&t[1]&&x(r,"caticon0",e[38]),256&t[1]&&x(r,"caticon1",e[39]),512&t[1]&&x(r,"caticon2",e[40]),1024&t[1]&&x(r,"caticon3",e[41]),16384&t[1]&&x(r,"iconlabels",e[45]),32768&t[1]&&x(r,"visualstructure",e[46]),128&t[0]&&x(r,"clientstyling",e[7]),256&t[0]&&x(r,"clientstylingurl",e[8])},d(e){e&&me(n),e&&me(a),e&&me(r)}}}function Vs(e){let n,a;return{c(){x(n=he("casino-collections-providers"),"endpoint",a=e[1].slice(0,-2)),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"type","vendor"),x(n,"titletype","logo"),x(n,"collectionprovidersgamenames",e[50]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8])},m(e,t){ue(e,n,t)},p(e,t){2&t[0]&&a!==(a=e[1].slice(0,-2))&&x(n,"endpoint",a),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),524288&t[1]&&x(n,"collectionprovidersgamenames",e[50]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8])},d(e){e&&me(n)}}}function Zs(e){let n,a;return{c(){x(n=he("casino-collections-providers"),"endpoint",a=e[1].slice(0,-2)),x(n,"datasource",e[2]),x(n,"lang",e[4]),x(n,"type",e[48]),x(n,"collectionprovidersgamenames",e[50]),x(n,"titletype",e[49]),x(n,"clientstyling",e[7]),x(n,"clientstylingurl",e[8])},m(e,t){ue(e,n,t)},p(e,t){2&t[0]&&a!==(a=e[1].slice(0,-2))&&x(n,"endpoint",a),4&t[0]&&x(n,"datasource",e[2]),16&t[0]&&x(n,"lang",e[4]),131072&t[1]&&x(n,"type",e[48]),524288&t[1]&&x(n,"collectionprovidersgamenames",e[50]),262144&t[1]&&x(n,"titletype",e[49]),128&t[0]&&x(n,"clientstyling",e[7]),256&t[0]&&x(n,"clientstylingurl",e[8])},d(e){e&&me(n)}}}function Ks(n){let a,r,i,s,o,l,c,d,u,e,m,h,g,p=n[24]&&n[131]==+n[24]&&Ys(n);function f(e,t){return 64&t[1]|2&t[2]&&(r=null),64&t[1]|2&t[2]&&(i=null),(r=null==r?!(!e[37]||e[131]!=(""==e[37].split(",")[0]?e[63].length:+e[37].split(",")[0])):r)?zs:(i=null==i?!(!e[37]||e[131]!=(""==e[37].split(",")[1]?e[63].length:+e[37].split(",")[1])):i)?Ws:void 0}let y=f(n,[-1,-1,-1,-1,-1]),b=y&&y(n);function v(e,t){return 65536&t[1]|2&t[2]&&(o=null),65536&t[1]|2&t[2]&&(l=null),(o=null==o?!(!e[47]||e[131]!=(""==e[47].split(",")[0]?e[63].length:+e[47].split(",")[0])):o)?Zs:(l=null==l?!(!e[47]||e[131]!=(""==e[47].split(",")[1]?e[63].length:+e[47].split(",")[1])):l)?Vs:void 0}let w=v(n,[-1,-1,-1,-1,-1]),$=w&&w(n);return{c(){p&&p.c(),a=pe(),b&&b.c(),s=pe(),$&&$.c(),c=pe(),x(d=he("casino-games-category-section"),"session",n[5]),x(d,"userid",n[6]),x(d,"endpoint",n[1]),x(d,"datasource",n[2]),x(d,"lang",n[4]),x(d,"currency",n[3]),x(d,"categoryid",u=n[129]),x(d,"categoryindex",e=n[131]),x(d,"categorygames","9"),x(d,"favorites",n[13]),x(d,"class","CategoryContainer"),S(d,"background-color",n[131]%2!=0?n[10]:"transparent"),x(d,"clientstyling",n[7]),x(d,"clientstylingurl",n[8]),x(d,"livecasino",n[20]),x(d,"visiblegames",n[11]),x(d,"gamepagemodalurl",n[23]),x(d,"integratedgameframedesktop",n[29]),x(d,"integratedgameframemobile",n[30]),x(d,"casinomygames",n[0])},m(e,t){p&&p.m(e,t),ue(e,a,t),b&&b.m(e,t),ue(e,s,t),$&&$.m(e,t),ue(e,c,t),ue(e,d,t),h||(g=E(m=n[66].call(null,d,n[129])),h=!0)},p(e,t){(n=e)[24]&&n[131]==+n[24]?p?p.p(n,t):((p=Ys(n)).c(),p.m(a.parentNode,a)):p&&(p.d(1),p=null),y===(y=f(n,t))&&b?b.p(n,t):(b&&b.d(1),(b=y&&y(n))&&(b.c(),b.m(s.parentNode,s))),w===(w=v(n,t))&&$?$.p(n,t):($&&$.d(1),($=w&&w(n))&&($.c(),$.m(c.parentNode,c))),32&t[0]&&x(d,"session",n[5]),64&t[0]&&x(d,"userid",n[6]),2&t[0]&&x(d,"endpoint",n[1]),4&t[0]&&x(d,"datasource",n[2]),16&t[0]&&x(d,"lang",n[4]),8&t[0]&&x(d,"currency",n[3]),2&t[2]&&u!==(u=n[129])&&x(d,"categoryid",u),8192&t[0]&&x(d,"favorites",n[13]),1024&t[0]&&S(d,"background-color",n[131]%2!=0?n[10]:"transparent"),128&t[0]&&x(d,"clientstyling",n[7]),256&t[0]&&x(d,"clientstylingurl",n[8]),1048576&t[0]&&x(d,"livecasino",n[20]),2048&t[0]&&x(d,"visiblegames",n[11]),8388608&t[0]&&x(d,"gamepagemodalurl",n[23]),536870912&t[0]&&x(d,"integratedgameframedesktop",n[29]),1073741824&t[0]&&x(d,"integratedgameframemobile",n[30]),1&t[0]&&x(d,"casinomygames",n[0]),m&&T(m.update)&&2&t[2]&&m.update.call(null,n[129])},d(e){p&&p.d(e),e&&me(a),b&&b.d(e),e&&me(s),$&&$.d(e),e&&me(c),e&&me(d),h=!1,g()}}}function Xs(n){let a,r,i,e,t,s,o,l=n[64]("casinoPage.breakButton")+"";return{c(){a=he("div"),r=he("button"),i=ge(l),fe(r,"class",e="PanicButton "+("PC"!==ze(n[65])?"PanicButtonMobile ":"")),fe(r,"part",t="PanicButton "+("PC"!==ze(n[65])?"PanicButtonMobile":"")),m(r,"PanicButtonAnimation",n[59]),fe(a,"class",s="PanicSection "+("PC"!==ze(n[65])?"PanicSectionMobile":"")),fe(a,"part",o="PanicSection "+("PC"!==ze(n[65])?"PanicSectionMobile":""))},m(e,t){ue(e,a,t),de(a,r),de(r,i),n[71](r)},p(e,t){4&t[2]&&l!==(l=e[64]("casinoPage.breakButton")+"")&&ye(i,l),268435456&t[1]&&m(r,"PanicButtonAnimation",e[59])},d(e){e&&me(a),n[71](null)}}}function Js(n){let a;function r(e){return e[57]?Ms:Gs}let i=r(n),s=i(n);return{c(){a=he("div"),s.c(),this.c=W},m(e,t){ue(e,a,t),s.m(a,null),n[72](a)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(a,null)))},i:W,o:W,d(e){e&&me(a),s.d(),n[72](null)}}}customElements.get("casino-search")||customElements.define("casino-search",class extends e{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}.CasinoSearchPc{margin:30px 16px}.CasinoSearch{margin:30px 16px}.SearchPc{display:flex;align-items:center;position:relative;margin-bottom:20px;left:19%}.Search{display:flex;align-items:center;position:relative;justify-content:space-between;margin-bottom:20px}.SearchIconPc{position:absolute;left:20px;z-index:1}.SearchIconPc svg{height:14px;width:13px}.SearchIcon{position:absolute;left:5%;z-index:1}.SearchIcon svg{height:14px;width:13px}.SearchContainerPc{width:60%;position:relative}.SearchContainer{width:100%;position:relative}.SearchInput{border-radius:4px;border:1px solid #cacaca;color:#717171;display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%}.SearchInput::placeholder{color:#717171;font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid #d9d7d7}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:15px;cursor:pointer}.SearchCancelButton{color:#717171;font-weight:300;margin-left:8px;cursor:pointer}.SearchMessagePc{font-size:18px;font-weight:600;margin:24px 0;color:#FFFFFF;margin-top:90px}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:#212121}.SearchResultsContainer{display:grid;gap:8px;grid-template-columns:repeat(auto-fill, minmax(min(167px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 167px);grid-auto-rows:167px;grid-auto-columns:167px;grid-auto-flow:row dense}.ResultsContainerError{text-align:center;width:300px;color:#717171;font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.NotVisible{display:none}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Cs,_s,t,{endpoint:0,datasource:23,session:24,userid:25,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,gamepagemodalurl:6,translationurl:26,showfavorites:7},null,[-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","session","userid","lang","clientstyling","clientstylingurl","integratedgameframedesktop","integratedgameframemobile","gamepagemodalurl","translationurl","showfavorites"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[23]}set datasource(e){this.$$set({datasource:e}),f()}get session(){return this.$$.ctx[24]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[25]}set userid(e){this.$$set({userid:e}),f()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),f()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get gamepagemodalurl(){return this.$$.ctx[6]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),f()}get showfavorites(){return this.$$.ctx[7]}set showfavorites(e){this.$$set({showfavorites:e}),f()}});let qs=!1;function Qs(e,t,l){let A;Ve(e,Ta,e=>l(64,A=e));let O,{endpoint:c=""}=t,{datasource:n=""}=t,{currency:N=""}=t,{lang:r=""}=t,{session:i=""}=t,{userid:s=""}=t,{clientstyling:o=""}=t,{clientstylingurl:d=""}=t,{translationurl:u=""}=t,{categorybackground:D=""}=t,B=t["visiblegames"],{alternativesearch:H="false"}=t,{favorites:m=""}=t,{mostplayed:j=""}=t,{lastplayed:U=""}=t,{containermaxwidth:Y="1300"}=t,{lobbyid:W="casinodefault"}=t,{haspanicbutton:z="false"}=t,{mostplayedrounds:V=""}=t,{lastplayedperiod:Z=""}=t,{filteredcategories:h=""}=t,{activecategory:g=""}=t,{livecasino:K="false"}=t,{playrandomgame:X="false"}=t,{filteredrandomgamecategories:J=""}=t,{gamepagemodalurl:q="false"}=t,{positionwinnerswidget:Q=""}=t,{tabsorder:ee=""}=t,{enableautoscroll:te=""}=t,{istopavailable:ne=""}=t,{isrecentavailable:ae=""}=t,{integratedgameframedesktop:re="false"}=t,{integratedgameframemobile:ie="false"}=t,{periodrecent:se=""}=t,{periodtop:oe=""}=t,{numberusersrecent:le=""}=t,{numberuserstop:ce=""}=t,{amountlimit:de=""}=t,{defaultcurrency:ue=""}=t,{positionjackpotbanners:me=""}=t,{caticon0:he=""}=t,{caticon1:ge=""}=t,{caticon2:pe=""}=t,{caticon3:fe=""}=t,{backgroundsrc:ye=""}=t,{backgroundsrcmobile:be=""}=t,{titlelogopath:ve=""}=t,{iconlabels:we=""}=t,{visualstructure:$e=""}=t,{positioncollections:xe=""}=t,{type:Se=""}=t,{titletype:_e=""}=t,{casinomygames:p="false"}=t,{collectionprovidersgamenames:Ce=""}=t,{randombuttonicon:ke=""}=t,Te=window.navigator.userAgent;O=We(Te)?"OpenGameFrame":"ShowGameModal";let f,y,b,Ge,v,w,Me,Ee,a,$,x=!1,S=!1,Le=!1,_="",C=!1,k=0,T=!1,G=!0,Pe=!1,Fe=[],M=[],Re=!1,E=[],L="",Ie=!1;var Ae,Oe;({withLocale:Ae,translations:Oe}={withLocale:"en",translations:{}}),Ye.subscribe(e=>{null==e&&(ia.set(Oe),Ye.set(Ae))}),Object.keys(Ma).forEach(e=>{Ga(e,Ma[e])});const Ne=e=>{switch(Re=!0,l(0,p="false"),setTimeout(()=>{window.postMessage({type:"WidgetTopReference",scrollTop:Re},window.location.href)}),e.data.itemId){case"LOBBY":l(61,G=!0),l(60,T=!1),l(53,v="");break;case"MYGAMES":l(0,p="true"),l(61,G=!1),l(60,T=!0),l(53,v="");break;case"FAVORITES":l(61,G=!1),l(60,T=!0),l(53,v="");break;case"MOSTPLAYED":"true"==j&&(l(53,v=""),l(61,G=!1),l(60,T=!0));break;case"LASTPLAYED":"true"==U&&(l(53,v=""),l(61,G=!1),l(60,T=!0));break;default:l(61,G=!1),l(60,T=!1),l(53,v=e.data.itemId),setTimeout(()=>{window.postMessage({type:"CategoryUpdate",itemId:v},window.location.href)},500)}},De=n=>{if(n.data)switch(n.data.type){case"CategoryChange":Ne(n);break;case"UserSessionID":y=n.data.session,(f=n.data.userID)&&f.length&&y&&0<y.length&&P(c,y,f);break;case"SetUnfavoredGame":t=`${c}/player/${f}/favorites`,s=y,f,o=n.data.id,n.data.triggerFactor,E.includes(o)&&(E=E.filter(e=>e!=o)),fetch(t+"/"+o,{method:"DELETE",headers:{"X-SessionID":s}}).then(e=>e.json()).then(e=>{window.postMessage({type:"RemoveFavoriteThumbnail_"+o},window.location.href),Be(t,s)});break;case"SetFavoredGame":{var a=`${c}/player/${f}/favorites`;var r=y;f;var i=n.data.id;n.data.triggerFactor;E.includes(i)||E.push(i);let e={items:E},t={method:"POST",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)};fetch(a,t).then(e=>e.json()).then(e=>{window.postMessage({type:`AddFavoriteThumbnail_${i}`},window.location.href),Be(a,r)}).catch(e=>{console.error("Err",e)})}break;case"GetFavoredGame":f&&f.length&&y&&0<y.length&&P(c,y,f);break;case"UpdateFilters":e=n.data.vendorsArray,window.postMessage({type:"UpdateSelectedVendorFilters",venArray:e},window.location.href),F();break;case"ClearFilters":e=n.data.vendorsArray,window.postMessage({type:"AvailableVendors",venArray:e},window.location.href),F();break;case"ApplyFilters":window.postMessage({type:"CategoryUpdate",itemId:L},window.location.href),F();break;case"CategoryVendors":L=n.data.categoryid,F();break;case"searchCancelled":l(62,Pe=!1);break;case"searchActive":l(62,Pe=!0);break;case"ModalClosed":break;case"SubgroupsIds":M.some(e=>n.data.subGroupsIds.includes(e))||M.push(...n.data.subGroupsIds)}var e,t,s,o};let P=(e,t,n)=>{"true"==m&&i&&n&&fetch(e+`/player/${n}/favorites/`,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>((a=e)&&(window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:a},window.location.href),He(a.items)),a)).then(e=>e).catch(e=>{console.error(e)})},Be=(e,t,n)=>{fetch(e,{method:"GET",headers:{"X-SessionID":t}}).then(e=>e.json()).then(e=>((a=e)&&window.postMessage({type:"UpdateCategoryFavoriteGames",receivedFavoriteResults:a},window.location.href),a)).catch(e=>{console.error(e)})};const He=(e=[])=>(E=[],0<e.length&&e.forEach(e=>{E.push(e.id)}),E);const F=()=>{var e=JSON.parse(sessionStorage.getItem("vendorFiltersByCategory"));e&&L&&e[L]&&e[L].length},je=()=>{w&&(Me=w.getBoundingClientRect().top+document.body.getBoundingClientRect().top),document.documentElement.scrollTop},R=e=>{k=0,Ge=setInterval(()=>{k+=1,l(59,C=!0),3<=k&&(window.postMessage({type:"PanicButtonClicked"},window.location.href),clearInterval(Ge))},1e3)},I=e=>{k<3&&l(59,C=!1),clearInterval(Ge)};return Ze(()=>(window.addEventListener("scroll",je,!1),window.addEventListener("message",De,!1),()=>{window.removeEventListener("scroll",je),window.removeEventListener("message",De),l(59,C=!1),null!=b&&b.removeEventListener("mousedown",R),null!=b&&b.removeEventListener("touchstart",R),null!=b&&b.removeEventListener("mouseup",I),null!=b&&b.removeEventListener("touchend",I)})),e.$$set=e=>{"endpoint"in e&&l(1,c=e.endpoint),"datasource"in e&&l(2,n=e.datasource),"currency"in e&&l(3,N=e.currency),"lang"in e&&l(4,r=e.lang),"session"in e&&l(5,i=e.session),"userid"in e&&l(6,s=e.userid),"clientstyling"in e&&l(7,o=e.clientstyling),"clientstylingurl"in e&&l(8,d=e.clientstylingurl),"translationurl"in e&&l(9,u=e.translationurl),"categorybackground"in e&&l(10,D=e.categorybackground),"visiblegames"in e&&l(11,B=e.visiblegames),"alternativesearch"in e&&l(12,H=e.alternativesearch),"favorites"in e&&l(13,m=e.favorites),"mostplayed"in e&&l(14,j=e.mostplayed),"lastplayed"in e&&l(15,U=e.lastplayed),"containermaxwidth"in e&&l(16,Y=e.containermaxwidth),"lobbyid"in e&&l(67,W=e.lobbyid),"haspanicbutton"in e&&l(17,z=e.haspanicbutton),"mostplayedrounds"in e&&l(68,V=e.mostplayedrounds),"lastplayedperiod"in e&&l(69,Z=e.lastplayedperiod),"filteredcategories"in e&&l(18,h=e.filteredcategories),"activecategory"in e&&l(19,g=e.activecategory),"livecasino"in e&&l(20,K=e.livecasino),"playrandomgame"in e&&l(21,X=e.playrandomgame),"filteredrandomgamecategories"in e&&l(22,J=e.filteredrandomgamecategories),"gamepagemodalurl"in e&&l(23,q=e.gamepagemodalurl),"positionwinnerswidget"in e&&l(24,Q=e.positionwinnerswidget),"tabsorder"in e&&l(25,ee=e.tabsorder),"enableautoscroll"in e&&l(26,te=e.enableautoscroll),"istopavailable"in e&&l(27,ne=e.istopavailable),"isrecentavailable"in e&&l(28,ae=e.isrecentavailable),"integratedgameframedesktop"in e&&l(29,re=e.integratedgameframedesktop),"integratedgameframemobile"in e&&l(30,ie=e.integratedgameframemobile),"periodrecent"in e&&l(31,se=e.periodrecent),"periodtop"in e&&l(32,oe=e.periodtop),"numberusersrecent"in e&&l(33,le=e.numberusersrecent),"numberuserstop"in e&&l(34,ce=e.numberuserstop),"amountlimit"in e&&l(35,de=e.amountlimit),"defaultcurrency"in e&&l(36,ue=e.defaultcurrency),"positionjackpotbanners"in e&&l(37,me=e.positionjackpotbanners),"caticon0"in e&&l(38,he=e.caticon0),"caticon1"in e&&l(39,ge=e.caticon1),"caticon2"in e&&l(40,pe=e.caticon2),"caticon3"in e&&l(41,fe=e.caticon3),"backgroundsrc"in e&&l(42,ye=e.backgroundsrc),"backgroundsrcmobile"in e&&l(43,be=e.backgroundsrcmobile),"titlelogopath"in e&&l(44,ve=e.titlelogopath),"iconlabels"in e&&l(45,we=e.iconlabels),"visualstructure"in e&&l(46,$e=e.visualstructure),"positioncollections"in e&&l(47,xe=e.positioncollections),"type"in e&&l(48,Se=e.type),"titletype"in e&&l(49,_e=e.titletype),"casinomygames"in e&&l(0,p=e.casinomygames),"collectionprovidersgamenames"in e&&l(50,Ce=e.collectionprovidersgamenames),"randombuttonicon"in e&&l(51,ke=e.randombuttonicon)},e.$$.update=()=>{var a,t;if((524304&e.$$.dirty[0]&&r&&g&&(l(53,v=g),Ne({data:{itemId:v}})),98&e.$$.dirty[0]&&i&&s&&c&&(l(58,Le=!0),y=i,(f=s)&&f.length&&y&&0<y.length&&"true"!=p&&P(c,y,f)),4194304&e.$$.dirty[1]|256&e.$$.dirty[2]&&v&&M&&M&&!M.includes(decodeURI(v))&&""!=v&&window.postMessage({type:"NonExistentCategory"},window.location.href),4118&e.$$.dirty[0]&&c&&n&&r&&H)&&(c||(_="Endpoint is missing! Please provide a valid endpointURL.",l(57,S=!0),l(56,x=!1),console.error(_)),n||(_="Datasource is missing! Please provide a valid datasource.",l(57,S=!0),l(56,x=!1),console.error(_)),(!r||r.length<2)&&(_="Language is missing! Please provide a valid language (alpha2code)",l(57,S=!0),l(56,x=!1),console.error(_)),!S)){l(56,x=!0),"true"==m&&P(c,y,f),t=r,Ye.set(t);let e=new URL(c+"/casino/groups/"+n);e.searchParams.append("language",r),e.searchParams.append("platform",ze(Te)),a=e,new Promise((t,n)=>{l(56,x=!0),fetch(a).then(e=>e.json()).then(e=>{l(56,x=!1),t(e)}).catch(e=>{l(57,S=!0),l(56,x=!1),console.error(e),n(e)})}).then(e=>{let a=h.split(",");e&&(Ee=e.items.filter(e=>{let t;if(0<e.games.total&&(t=!0,h))for(var n of a)e.flags==n&&(t=!1);return t}),l(63,Fe=Ee.map(e=>e.id)),l(70,M=e.items.map(e=>e.id.toString())),l(56,x=!1))}),F(),(w=void 0)&&(Me=w.getBoundingClientRect().top-document.body.getBoundingClientRect().top)}if(16&e.$$.dirty[0]&&r&&(Ie&&setTimeout(()=>{window.postMessage({type:"CategoryUpdate",itemId:v},window.location.href)},500),Ie=!1),512&e.$$.dirty[0]&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ga(e,t[e])})}).catch(e=>{console.log(e)}),128&e.$$.dirty[0]|8388608&e.$$.dirty[1]&&o&&$){let e=document.createElement("style");e.innerHTML=o,$.appendChild(e)}if(256&e.$$.dirty[0]|8388608&e.$$.dirty[1]&&d&&$){let t=document.createElement("style");fetch(new URL(d)).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{$.appendChild(t)},1)})}2097152&e.$$.dirty[1]&&b&&(null!=b&&b.addEventListener("mousedown",R,!1),null!=b&&b.addEventListener("touchstart",R,!1),null!=b&&b.addEventListener("mouseup",I,!1),null!=b&&b.addEventListener("touchend",I,!1))},[p,c,n,N,r,i,s,o,d,u,D,B,H,m,j,U,Y,z,h,g,K,X,J,q,Q,ee,te,ne,ae,re,ie,se,oe,le,ce,de,ue,me,he,ge,pe,fe,ye,be,ve,we,$e,xe,Se,_e,Ce,ke,b,v,$,O,x,S,Le,C,T,G,Pe,Fe,A,Te,(e,t)=>{L=t,window.postMessage({type:"CategoryData_"+t,categoryId:t,visiblegames:B,receivedFavoriteResults:a},window.location.href)},W,V,Z,M,function(e){Ue[e?"unshift":"push"](()=>{b=e,l(52,b)})},function(e){Ue[e?"unshift":"push"](()=>{$=e,l(54,$)})}]}class eo extends e{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}.CategoriesLobby{margin:0 auto;position:relative}.CasinoWinners{background:transparent;width:100%;min-height:200px}.PanicSectionMobile{flex-direction:column;margin:20px 0}.PanicSection{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:20px}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:48px;line-height:18px;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}.PanicButtonMobile{width:280px;padding:0 5px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}[type=search]{appearance:none}.CategoryContainer{display:block}@media screen and (max-width: 1300px){.CategoryContainer{padding:0 2.4%}}.SearchLoading{color:var(--emfe-w-color-white, #FFFFFF);font-size:14px;margin-top:16px;text-align:center}@media screen and (max-width: 1300px){}@media(max-width: 768px){}.SearchBarPlaceholder{display:block;width:100%;height:46px}.SearchBarPlaceholder{display:block;width:100%;height:46px}</style>',j(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},Qs,Js,t,{endpoint:1,datasource:2,currency:3,lang:4,session:5,userid:6,clientstyling:7,clientstylingurl:8,translationurl:9,categorybackground:10,visiblegames:11,alternativesearch:12,favorites:13,mostplayed:14,lastplayed:15,containermaxwidth:16,lobbyid:67,haspanicbutton:17,mostplayedrounds:68,lastplayedperiod:69,filteredcategories:18,activecategory:19,livecasino:20,playrandomgame:21,filteredrandomgamecategories:22,gamepagemodalurl:23,positionwinnerswidget:24,tabsorder:25,enableautoscroll:26,istopavailable:27,isrecentavailable:28,integratedgameframedesktop:29,integratedgameframemobile:30,periodrecent:31,periodtop:32,numberusersrecent:33,numberuserstop:34,amountlimit:35,defaultcurrency:36,positionjackpotbanners:37,caticon0:38,caticon1:39,caticon2:40,caticon3:41,backgroundsrc:42,backgroundsrcmobile:43,titlelogopath:44,iconlabels:45,visualstructure:46,positioncollections:47,type:48,titletype:49,casinomygames:0,collectionprovidersgamenames:50,randombuttonicon:51},null,[-1,-1,-1,-1,-1]),e&&(e.target&&ue(e.target,this,e.anchor),e.props&&(this.$set(e.props),f()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","translationurl","categorybackground","visiblegames","alternativesearch","favorites","mostplayed","lastplayed","containermaxwidth","lobbyid","haspanicbutton","mostplayedrounds","lastplayedperiod","filteredcategories","activecategory","livecasino","playrandomgame","filteredrandomgamecategories","gamepagemodalurl","positionwinnerswidget","tabsorder","enableautoscroll","istopavailable","isrecentavailable","integratedgameframedesktop","integratedgameframemobile","periodrecent","periodtop","numberusersrecent","numberuserstop","amountlimit","defaultcurrency","positionjackpotbanners","caticon0","caticon1","caticon2","caticon3","backgroundsrc","backgroundsrcmobile","titlelogopath","iconlabels","visualstructure","positioncollections","type","titletype","casinomygames","collectionprovidersgamenames","randombuttonicon"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),f()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),f()}get currency(){return this.$$.ctx[3]}set currency(e){this.$$set({currency:e}),f()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),f()}get session(){return this.$$.ctx[5]}set session(e){this.$$set({session:e}),f()}get userid(){return this.$$.ctx[6]}set userid(e){this.$$set({userid:e}),f()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),f()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),f()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),f()}get categorybackground(){return this.$$.ctx[10]}set categorybackground(e){this.$$set({categorybackground:e}),f()}get visiblegames(){return this.$$.ctx[11]}set visiblegames(e){this.$$set({visiblegames:e}),f()}get alternativesearch(){return this.$$.ctx[12]}set alternativesearch(e){this.$$set({alternativesearch:e}),f()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),f()}get mostplayed(){return this.$$.ctx[14]}set mostplayed(e){this.$$set({mostplayed:e}),f()}get lastplayed(){return this.$$.ctx[15]}set lastplayed(e){this.$$set({lastplayed:e}),f()}get containermaxwidth(){return this.$$.ctx[16]}set containermaxwidth(e){this.$$set({containermaxwidth:e}),f()}get lobbyid(){return this.$$.ctx[67]}set lobbyid(e){this.$$set({lobbyid:e}),f()}get haspanicbutton(){return this.$$.ctx[17]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),f()}get mostplayedrounds(){return this.$$.ctx[68]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),f()}get lastplayedperiod(){return this.$$.ctx[69]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),f()}get filteredcategories(){return this.$$.ctx[18]}set filteredcategories(e){this.$$set({filteredcategories:e}),f()}get activecategory(){return this.$$.ctx[19]}set activecategory(e){this.$$set({activecategory:e}),f()}get livecasino(){return this.$$.ctx[20]}set livecasino(e){this.$$set({livecasino:e}),f()}get playrandomgame(){return this.$$.ctx[21]}set playrandomgame(e){this.$$set({playrandomgame:e}),f()}get filteredrandomgamecategories(){return this.$$.ctx[22]}set filteredrandomgamecategories(e){this.$$set({filteredrandomgamecategories:e}),f()}get gamepagemodalurl(){return this.$$.ctx[23]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),f()}get positionwinnerswidget(){return this.$$.ctx[24]}set positionwinnerswidget(e){this.$$set({positionwinnerswidget:e}),f()}get tabsorder(){return this.$$.ctx[25]}set tabsorder(e){this.$$set({tabsorder:e}),f()}get enableautoscroll(){return this.$$.ctx[26]}set enableautoscroll(e){this.$$set({enableautoscroll:e}),f()}get istopavailable(){return this.$$.ctx[27]}set istopavailable(e){this.$$set({istopavailable:e}),f()}get isrecentavailable(){return this.$$.ctx[28]}set isrecentavailable(e){this.$$set({isrecentavailable:e}),f()}get integratedgameframedesktop(){return this.$$.ctx[29]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),f()}get integratedgameframemobile(){return this.$$.ctx[30]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),f()}get periodrecent(){return this.$$.ctx[31]}set periodrecent(e){this.$$set({periodrecent:e}),f()}get periodtop(){return this.$$.ctx[32]}set periodtop(e){this.$$set({periodtop:e}),f()}get numberusersrecent(){return this.$$.ctx[33]}set numberusersrecent(e){this.$$set({numberusersrecent:e}),f()}get numberuserstop(){return this.$$.ctx[34]}set numberuserstop(e){this.$$set({numberuserstop:e}),f()}get amountlimit(){return this.$$.ctx[35]}set amountlimit(e){this.$$set({amountlimit:e}),f()}get defaultcurrency(){return this.$$.ctx[36]}set defaultcurrency(e){this.$$set({defaultcurrency:e}),f()}get positionjackpotbanners(){return this.$$.ctx[37]}set positionjackpotbanners(e){this.$$set({positionjackpotbanners:e}),f()}get caticon0(){return this.$$.ctx[38]}set caticon0(e){this.$$set({caticon0:e}),f()}get caticon1(){return this.$$.ctx[39]}set caticon1(e){this.$$set({caticon1:e}),f()}get caticon2(){return this.$$.ctx[40]}set caticon2(e){this.$$set({caticon2:e}),f()}get caticon3(){return this.$$.ctx[41]}set caticon3(e){this.$$set({caticon3:e}),f()}get backgroundsrc(){return this.$$.ctx[42]}set backgroundsrc(e){this.$$set({backgroundsrc:e}),f()}get backgroundsrcmobile(){return this.$$.ctx[43]}set backgroundsrcmobile(e){this.$$set({backgroundsrcmobile:e}),f()}get titlelogopath(){return this.$$.ctx[44]}set titlelogopath(e){this.$$set({titlelogopath:e}),f()}get iconlabels(){return this.$$.ctx[45]}set iconlabels(e){this.$$set({iconlabels:e}),f()}get visualstructure(){return this.$$.ctx[46]}set visualstructure(e){this.$$set({visualstructure:e}),f()}get positioncollections(){return this.$$.ctx[47]}set positioncollections(e){this.$$set({positioncollections:e}),f()}get type(){return this.$$.ctx[48]}set type(e){this.$$set({type:e}),f()}get titletype(){return this.$$.ctx[49]}set titletype(e){this.$$set({titletype:e}),f()}get casinomygames(){return this.$$.ctx[0]}set casinomygames(e){this.$$set({casinomygames:e}),f()}get collectionprovidersgamenames(){return this.$$.ctx[50]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),f()}get randombuttonicon(){return this.$$.ctx[51]}set randombuttonicon(e){this.$$set({randombuttonicon:e}),f()}}return customElements.get("casino-page")||customElements.define("casino-page",eo),eo});
31
31
  //# sourceMappingURL=casino-page.js.map