@everymatrix/casino-tournaments-thumbnail-controller 1.43.4 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- ((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()})(this,function(){function v(){}function x(t){return t()}function A(){return Object.create(null)}function $(t){t.forEach(x)}function d(t){return"function"==typeof t}function S(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let _,B,N;function D(t,e){return(_=_||document.createElement("a")).href=e,t===_.href}function z(t,...e){if(null==t)return v;let r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function at(t,e,r){t.$$.on_destroy.push(z(e,r))}function P(t){return t&&d(t.destroy)?t.destroy:v}function C(t,e){t.appendChild(e)}function H(t,e,r){t.insertBefore(e,r||null)}function k(t){t.parentNode&&t.parentNode.removeChild(t)}function U(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function F(t){return document.createElement(t)}function e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function O(t){return document.createTextNode(t)}function I(){return O(" ")}function j(){return O("")}function L(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function M(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function y(t,e,r){e in t?t[e]="boolean"==typeof t[e]&&""===r||r:M(t,e,r)}function R(t,e){t.data!==(e=""+e)&&(t.data=e)}function f(t,e,r,n){null==r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function G(t,e,r){t.classList[r?"add":"remove"](e)}function J(t){var e,r={};for(e of t)r[e.name]=e.value;return r}function W(t){N=t}function lt(t){(()=>{if(N)return N;throw new Error("Function called outside component initialization")})().$$.on_mount.push(t)}let V=[],ot=[],X=[],K=[],Z=Promise.resolve(),Y=!1;function q(t){X.push(t)}let Q=new Set,tt=0;function p(){if(0===tt){let t=N;do{try{for(;tt<V.length;){let t=V[tt];tt++,W(t),e=r=void 0;var e,r=t.$$;null!==r.fragment&&(r.update(),$(r.before_update),e=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(q))}}catch(t){throw V.length=0,tt=0,t}for(W(null),V.length=0,tt=0;ot.length;)ot.pop()();for(let t=0;t<X.length;t+=1){var n=X[t];Q.has(n)||(Q.add(n),n())}}while(X.length=0,V.length);for(;K.length;)K.pop()();Y=!1,Q.clear(),W(t)}}let et=new Set;function rt(n,e,t,r,i,o,s,a=[-1]){var l=N;W(n);let u=n.$$={fragment:null,ctx:[],props:o,update:v,not_equal:i,bound:A(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:A(),dirty:a,skip_bound:!1,root:e.target||l.$$.root},c=(s&&s(u.root),!1);if(u.ctx=t?t(n,e.props||{},(t,e,...r)=>{var r=r.length?r[0]:e;return u.ctx&&i(u.ctx[t],u.ctx[t]=r)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](r),c)&&(r=t,-1===(t=n).$$.dirty[0]&&(V.push(t),Y||(Y=!0,Z.then(p)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31),e}):[],u.update(),c=!0,$(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){o=e.target;let t=Array.from(o.childNodes);u.fragment&&u.fragment.l(t),t.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(et.delete(a),a.i(void 0));var h=n,s=e.customElement,{fragment:t,after_update:r}=h.$$;t&&t.m(e.target,e.anchor),s||q(()=>{var t=h.$$.on_mount.map(x).filter(d);h.$$.on_destroy?h.$$.on_destroy.push(...t):$(t),h.$$.on_mount=[]}),r.forEach(q),p()}W(l)}let nt;"function"==typeof HTMLElement&&(nt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let t=this.$$.on_mount;this.$$.on_disconnect=t.map(x).filter(d);for(let t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){$(this.$$.on_disconnect)}$destroy(){var t=this,e=1;if(null!==(t=t.$$).fragment){{var n=t.after_update;let e=[],r=[];X.forEach(t=>(-1===n.indexOf(t)?e:r).push(t)),r.forEach(t=>t()),X=e}$(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[]}this.$destroy=v}$on(t,e){if(!d(e))return v;let r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var it,ut,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ct="URLSearchParams"in l,ht="Symbol"in l&&"iterator"in Symbol,dt="FileReader"in l&&"Blob"in l&&(()=>{try{return new Blob,!0}catch(t){return!1}})(),pt="FormData"in l,mt="ArrayBuffer"in l;function ft(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function gt(t){return t="string"!=typeof t?String(t):t}function yt(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return ht&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function bt(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function vt(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function wt(t){var e=new FileReader,r=vt(e);return e.readAsArrayBuffer(t),r}function Et(t){var e;return t.slice?t.slice(0):((e=new Uint8Array(t.byteLength)).set(new Uint8Array(t)),e.buffer)}function Tt(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:dt&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:pt&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:ct&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():mt&&dt&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Et(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):mt&&(ArrayBuffer.prototype.isPrototypeOf(t)||ut(t))?this._bodyArrayBuffer=Et(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ct&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},dt&&(this.blob=function(){var t=bt(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return bt(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(dt)return this.blob().then(wt);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n=bt(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,e=vt(t=new FileReader),r=(r=/charset=([A-Za-z0-9_-]+)/.exec(n.type))?r[1]:"utf-8",t.readAsText(n,r),e;if(this._bodyArrayBuffer)return Promise.resolve((t=>{for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")})(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pt&&(this.formData=function(){return this.text().then(St)}),this.json=function(){return this.text().then(JSON.parse)},this}mt&&(it=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ut=ArrayBuffer.isView||function(t){return t&&-1<it.indexOf(Object.prototype.toString.call(t))}),u.prototype.append=function(t,e){t=ft(t),e=gt(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},u.prototype.delete=function(t){delete this.map[ft(t)]},u.prototype.get=function(t){return t=ft(t),this.has(t)?this.map[t]:null},u.prototype.has=function(t){return this.map.hasOwnProperty(ft(t))},u.prototype.set=function(t,e){this.map[ft(t)]=gt(e)},u.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},u.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),yt(r)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),yt(e)},u.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),yt(r)},ht&&(u.prototype[Symbol.iterator]=u.prototype.entries);var xt=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function At(t,e){if(!(this instanceof At))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(e=e||{}).body;if(t instanceof At){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new u(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new u(e.headers)),this.method=(r=(t=e.method||this.method||"GET").toUpperCase(),-1<xt.indexOf(r)?r:t),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||(()=>{if("AbortController"in l)return(new AbortController).signal})(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function St(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(e=(t=t.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function c(t,e){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new u(e.headers),this.url=e.url||"",this._initBody(t)}At.prototype.clone=function(){return new At(this,{body:this._bodyInit})},Tt.call(At.prototype),Tt.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},c.error=function(){var t=new c(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var _t=[301,302,303,307,308],Bt=(c.redirect=function(t,e){if(-1===_t.indexOf(e))throw new RangeError("Invalid status code");return new c(null,{status:e,headers:{location:t}})},l.DOMException);try{new Bt}catch(v){(Bt=function(t,e){this.message=t,this.name=e;e=Error(t);this.stack=e.stack}).prototype=Object.create(Error.prototype),Bt.prototype.constructor=Bt}function $t(n,a){return new Promise(function(i,t){var o=new At(n,a);if(o.signal&&o.signal.aborted)return t(new Bt("Aborted","AbortError"));var r,s=new XMLHttpRequest;function e(){s.abort()}s.onload=function(){var t,n,e={statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",n=new u,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),r=e.shift().trim();if(r){e=e.join(":").trim();try{n.append(r,e)}catch(t){console.warn("Response "+t.message)}}}),n)},r=(0===o.url.indexOf("file://")&&(s.status<200||599<s.status)?e.status=200:e.status=s.status,e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new c(r,e))},0)},s.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request timed out"))},0)},s.onabort=function(){setTimeout(function(){t(new Bt("Aborted","AbortError"))},0)},s.open(o.method,(e=>{try{return""===e&&l.location.href?l.location.href:e}catch(t){return e}})(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(dt?s.responseType="blob":mt&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof u||l.Headers&&a.headers instanceof l.Headers)?(r=[],Object.getOwnPropertyNames(a.headers).forEach(function(t){r.push(ft(t)),s.setRequestHeader(t,gt(a.headers[t]))}),o.headers.forEach(function(t,e){-1===r.indexOf(e)&&s.setRequestHeader(e,t)})):o.headers.forEach(function(t,e){s.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener("abort",e),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",e)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})}$t.polyfill=!0,l.fetch||(l.fetch=$t,l.Headers=u,l.Request=At,l.Response=c),self.fetch.bind(self);var Pt=function(t,e){return(Pt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}))(t,e)};function Ct(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Pt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Ht(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function kt(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Ft(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function h(t){return"function"==typeof t}function Ot(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var It=Ot(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function Lt(t,e){t&&0<=(e=t.indexOf(e))&&t.splice(e,1)}r.prototype.unsubscribe=function(){var t,e,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Ht(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);o=this.initialTeardown;if(h(o))try{o()}catch(t){i=t instanceof It?t.errors:[t]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Ht(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{Dt(c)}catch(t){i=null!=i?i:[],t instanceof It?i=Ft(Ft([],kt(i)),kt(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new It(i)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Dt(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!=(e=this._finalizers)?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Lt(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&Lt(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=((n=new r).closed=!0,n);var Mt=r,Rt=Mt.EMPTY;function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}function Nt(t){return t instanceof Mt||t&&"closed"in t&&h(t.remove)&&h(t.add)&&h(t.unsubscribe)}function Dt(t){h(t)?t():t.unsubscribe()}var zt=void 0,Ut=!1,jt=!1,Gt={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Gt.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ft([t,e],kt(r))):setTimeout.apply(void 0,Ft([t,e],kt(r)))},clearTimeout:function(t){var e=Gt.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Jt(){}var Wt=null;function Vt(t){if(Ut){var e=!Wt;if(e&&(Wt={errorThrown:!1,error:null}),t(),e){var e=Wt,r=e.errorThrown;if(Wt=null,r)throw e.error}}else t()}Ct(t,Xt=Mt),t.create=function(t,e,r){return new te(t,e,r)},t.prototype.next=function(t){this.isStopped||this._next(t)},t.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Xt.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(t){this.destination.next(t)},t.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Xt,Kt=t,Zt=Function.prototype.bind;function t(t){var e=Xt.call(this)||this;return e.isStopped=!1,t?Nt(e.destination=t)&&t.add(e):e.destination=ie,e}function Yt(t,e){return Zt.call(t,e)}re.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){ne(t)}},re.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){ne(t)}else ne(t)},re.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){ne(t)}};var qt,Qt=re,te=(Ct(ee,qt=Kt),ee);function ee(t,e,r){var n=qt.call(this)||this,r=h(t)||!t?{next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:n&&jt?((e=Object.create(t)).unsubscribe=function(){return n.unsubscribe()},{next:t.next&&Yt(t.next,e),error:t.error&&Yt(t.error,e),complete:t.complete&&Yt(t.complete,e)}):t;return n.destination=new Qt(r),n}function re(t){this.partialObserver=t}function ne(t){var e=t;Gt.setTimeout(function(){throw e})}var ie={closed:!0,next:Jt,error:function(t){throw t},complete:Jt},n="function"==typeof Symbol&&Symbol.observable||"@@observable";i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof Kt||n&&h(n.next)&&h(n.error)&&h(n.complete)&&Nt(n)?t:new te(t,e,r);return Vt(function(){var t=i.operator,e=i.source;o.add(t?t.call(o,e):e?i._subscribe(o):i._trySubscribe(o))}),o},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(n,t){var i=this;return new(t=se(t))(function(t,e){var r=new te({next:function(t){try{n(t)}catch(t){e(t),r.unsubscribe()}},error:e,complete:t});i.subscribe(r)})},i.prototype._subscribe=function(t){var e;return null==(e=this.source)?void 0:e.subscribe(t)},i.prototype[n]=function(){return this},i.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?function(t){return t}:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},i.prototype.toPromise=function(t){var n=this;return new(t=se(t))(function(t,e){var r;n.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},i.create=function(t){return new i(t)};var oe=i;function i(t){t&&(this._subscribe=t)}function se(t){return null!=(t=null!=t?t:zt)?t:Promise}var ae,le,ue,ce=Ot(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),n=(Ct(o,ue=oe),o.prototype.lift=function(t){var e=new he(this,this);return e.operator=t,e},o.prototype._throwIfClosed=function(){if(this.closed)throw new ce},o.prototype.next=function(i){var o=this;Vt(function(){var e,t;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=Ht(o.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},o.prototype.error=function(e){var r=this;Vt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var t=r.observers;t.length;)t.shift().error(e)}})},o.prototype.complete=function(){var e=this;Vt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var t;return 0<(null==(t=this.observers)?void 0:t.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(t){return this._throwIfClosed(),ue.prototype._trySubscribe.call(this,t)},o.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},o.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?Rt:(this.currentObservers=null,i.push(t),new Mt(function(){e.currentObservers=null,Lt(i,t)}))},o.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},o.prototype.asObservable=function(){var t=new oe;return t.source=this,t},o.create=function(t,e){return new he(t,e)},o),he=(Ct(fe,le=n),fe.prototype.next=function(t){var e,r;null!=(r=null==(e=this.destination)?void 0:e.next)&&r.call(e,t)},fe.prototype.error=function(t){var e,r;null!=(r=null==(e=this.destination)?void 0:e.error)&&r.call(e,t)},fe.prototype.complete=function(){var t,e;null!=(e=null==(t=this.destination)?void 0:t.complete)&&e.call(t)},fe.prototype._subscribe=function(t){var e;return null!=(e=null==(e=this.source)?void 0:e.subscribe(t))?e:Rt},fe),de={now:function(){return(de.delegate||Date).now()},delegate:void 0},pe=(Ct(me,ae=n),me.prototype.next=function(t){var e=this,r=e.isStopped,n=e._buffer,i=e._infiniteTimeWindow,o=e._timestampProvider,e=e._windowTime;r||(n.push(t),i)||n.push(o.now()+e),this._trimBuffer(),ae.prototype.next.call(this,t)},me.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},me.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=e.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},me);function me(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=de);var n=ae.call(this)||this;return n._bufferSize=t,n._windowTime=e,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=e===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,e),n}function fe(t,e){var r=le.call(this)||this;return r.destination=t,r.source=e,r}function o(){var t=ue.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let ge=[],ye={},be=[];function ve(n,i=v){let o,s=new Set;function a(t){if(S(n,t)&&(n=t,o)){let t=!be.length;for(let t of s)t[1](),be.push(t,n);if(t){for(let t=0;t<be.length;t+=2)be[t][0](be[t+1]);be.length=0}}}return{set:a,update:function(t){a(t(n))},subscribe:function(t,e=v){let r=[t,e];return s.add(r),1===s.size&&(o=i(a)||v),t(n),()=>{s.delete(r),0===s.size&&o&&(o(),o=null)}}}}function we(t,a,e){let l=!Array.isArray(t),u=l?[t]:t,c=a.length<2;return{subscribe:ve(e,e=>{let r=!1,n=[],i=0,o=v,s=()=>{var t;i||(o(),t=a(l?n[0]:n,e),c?e(t):o=d(t)?t:v)},t=u.map((t,e)=>z(t,t=>{n[e]=t,i&=~(1<<e),r&&s()},()=>{i|=1<<e}));return r=!0,s(),function(){$(t),o(),r=!1}}).subscribe}}function Ee(t){return!(!t||"object"!=typeof t||(t=t,"[object RegExp]"===(e=Object.prototype.toString.call(t)))||"[object Date]"===e||t.$$typeof===Te);var e}var Te="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function xe(t,e){return!1!==e.clone&&e.isMergeableObject(t)?$e(Array.isArray(t)?[]:{},t,e):t}function Ae(t,e,r){return t.concat(e).map(function(t){return xe(t,r)})}function Se(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]));var e}function _e(t,e){try{return e in t}catch(t){return!1}}function Be(n,i,o){var s={};return o.isMergeableObject(n)&&Se(n).forEach(function(t){s[t]=xe(n[t],o)}),Se(i).forEach(function(t){var e,r;(!_e(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(_e(n,t)&&o.isMergeableObject(i[t])?s[t]=((e=o).customMerge&&"function"==typeof(e=e.customMerge(t))?e:$e)(n[t],i[t],o):s[t]=xe(i[t],o))}),s}function $e(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Ae,r.isMergeableObject=r.isMergeableObject||Ee,r.cloneUnlessOtherwiseSpecified=xe;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):Be(t,e,r):xe(e,r)}$e.all=function(t,r){if(Array.isArray(t))return t.reduce(function(t,e){return $e(t,e,r)},{});throw new Error("first argument should be an array")};var Pe=$e,Ce=function(t,e){return(Ce=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}))(t,e)};function He(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Ce(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var g,b,ke,w=function(){return(w=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Fe(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function Oe(t){return t.type===b.literal}function Ie(t){return t.type===b.number}function Le(t){return t.type===b.date}function Me(t){return t.type===b.time}function Re(t){return t.type===b.select}function Ne(t){return t.type===b.plural}function De(t){return t.type===b.tag}function ze(t){return t&&"object"==typeof t&&t.type===ke.number}function Ue(t){return t&&"object"==typeof t&&t.type===ke.dateTime}(n=g=g||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=b=b||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=ke=ke||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,je=/(?:[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 Ge=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Je=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,We=/^(@+)?(\+|#+)?[rs]?$/g,Ve=/(\*)(0+)|(#+)(0+)|(0+)/g,Xe=/^(0+)$/;function Ke(t){var n={};return"r"===t[t.length-1]?n.roundingPriority="morePrecision":"s"===t[t.length-1]&&(n.roundingPriority="lessPrecision"),t.replace(We,function(t,e,r){return"string"!=typeof r?(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length):"+"===r?n.minimumSignificantDigits=e.length:"#"===e[0]?n.maximumSignificantDigits=e.length:(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),n}function Ze(t){switch(t){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 Ye(t){return Ze(t)||{}}function qe(t){for(var s={},e=0,r=t;e<r.length;e++){var n,i=r[e];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.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=i.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=w(w(w({},s),{notation:"scientific"}),i.options.reduce(function(t,e){return w(w({},t),Ye(e))},{}));continue;case"engineering":s=w(w(w({},s),{notation:"engineering"}),i.options.reduce(function(t,e){return w(w({},t),Ye(e))},{}));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(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ve,function(t,e,r,n,i,o){if(e)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Xe.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Je.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Je,function(t,e,r,n,i,o){return"*"===r?s.minimumFractionDigits=e.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""});var o=i.options[0];"w"===o?s=w(w({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=w(w({},s),Ke(o)))}else We.test(i.stem)?s=w(w({},s),Ke(i.stem)):((o=Ze(i.stem))&&(s=w(w({},s),o)),(n=(t=>{var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Xe.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e})(i.stem))&&(s=w(w({},s),n)))}return s}var Qe={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 tr=new RegExp("^".concat(n.source,"*")),er=new RegExp("".concat(n.source,"*$"));function E(t,e){return{start:t,end:e}}var n=!!String.prototype.startsWith,rr=!!String.fromCodePoint,nr=!!Object.fromEntries,ir=!!String.prototype.codePointAt,or=!!String.prototype.trimStart,sr=!!String.prototype.trimEnd,ar=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},lr=!0;try{lr="a"===(null==(Pr=yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Pr[0])}catch(v){lr=!1}var ur,cr,hr=n?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},dr=rr?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;o<i;){if(1114111<(r=t[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},pr=nr?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];e[i[0]]=i[1]}return e},mr=ir?function(t,e){return t.codePointAt(e)}:function(t,e){var r,n=t.length;if(!(e<0||n<=e))return(r=t.charCodeAt(e))<55296||56319<r||e+1===n||(n=t.charCodeAt(e+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},fr=or?function(t){return t.trimStart()}:function(t){return t.replace(tr,"")},gr=sr?function(t){return t.trimEnd()}:function(t){return t.replace(er,"")};function yr(t,e){return new RegExp(t,e)}cr=lr?(ur=yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return ur.lastIndex=e,null!=(e=ur.exec(t)[1])?e:""}):function(t,e){for(var r,n=[];;){var i=mr(t,e);if(void 0===i||wr(i)||33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094)break;n.push(i),e+=65536<=i?2:1}return dr.apply(void 0,n)};s.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},s.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125===o&&0<t)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(g.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&vr(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i}else if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}else{o=this.clonePosition();this.bump(),n.push({type:b.pound,location:E(o,this.clonePosition())})}}}return{val:n,err:null}},s.prototype.parseTag=function(t,e){var r,n=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:E(n,this.clonePosition())},err:null}:this.bumpIf(">")?(t=this.parseMessage(t+1,e,!0)).err?t:(e=t.val,t=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!vr(this.char())?this.error(g.INVALID_TAG,E(t,this.clonePosition())):(r=this.clonePosition(),i!==this.parseTagName()?this.error(g.UNMATCHED_CLOSING_TAG,E(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:e,location:E(n,this.clonePosition())},err:null}:this.error(g.INVALID_TAG,E(t,this.clonePosition())))):this.error(g.UNCLOSED_TAG,E(n,this.clonePosition()))):this.error(g.INVALID_TAG,E(n,this.clonePosition()))},s.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},s.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i)n+=i;else{i=this.tryParseUnquoted(t,e);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=E(r,this.clonePosition());return{val:{type:b.literal,value:n,location:r},err:null}},s.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(vr(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},s.prototype.tryParseQuote=function(t){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"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return dr.apply(void 0,e)},s.prototype.tryParseUnquoted=function(t,e){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),dr(r))},s.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(g.EMPTY_ARGUMENT,E(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(g.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:n,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(g.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=cr(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:E(t,this.clonePosition())}},s.prototype.parseArgumentOptions=function(t,e,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(g.EXPECT_ARGUMENT_TYPE,E(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=gr(h.val)).length)return this.error(g.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:E(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(n)).err?u:(p=E(n,this.clonePosition()),l&&hr(null==l?void 0:l.style,"::",0)?(m=fr(l.style.slice(2)),"number"===s?(h=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?h:{val:{type:b.number,value:r,location:p,style:h.val},err:null}:0===m.length?this.error(g.EXPECT_DATE_TIME_SKELETON,p):(c=m,this.locale&&(c=((t,e)=>{for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=(t=>{var e,r=t.hourCycle;if(r=void 0===r&&t.hourCycles&&t.hourCycles.length?t.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=t.language)&&(e=t.maximize().region),(Qe[e||""]||Qe[r||""]||Qe["".concat(r,"-001")]||Qe["001"])[0]})(e);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r})(m,this.locale)),d={type:ke.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(je,function(t){var e=t.length;switch(t[0]){case"G":i.era=4===e?"long":5===e?"narrow":"short";break;case"y":i.year=2===e?"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":i.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][e-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][e-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][e-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][e-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][e-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":i.minute=["numeric","2-digit"][e-1];break;case"s":i.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=e<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""}),i):{}},{val:{type:"date"===s?b.date:b.time,value:r,location:p,style:d},err:null})):{val:{type:"number"===s?b.number:"date"===s?b.date:b.time,value:r,location:p,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS,E(c,w({},c)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),p=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=h.val}var m,l=this.tryParsePluralOrSelectOptions(t,s,e,d);return l.err?l:(u=this.tryParseArgumentClose(n)).err?u:(m=E(n,this.clonePosition()),"select"===s?{val:{type:b.select,value:r,options:pr(l.val),location:m},err:null}:{val:{type:b.plural,value:r,options:pr(l.val),offset:p,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null});default:return this.error(g.INVALID_ARGUMENT_TYPE,E(o,a))}},s.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,E(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},s.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=(t=>{if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(Ge).filter(function(t){return 0<t.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:i})}return e})(t)}catch(t){return this.error(g.INVALID_NUMBER_SKELETON,e)}return{val:{type:ke.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?qe(r):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR,g.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=E(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===e?g.DUPLICATE_SELECT_ARGUMENT_SELECTOR:g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));u=this.parseMessage(t+1,e,r);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;o.push([a,{value:u.val,location:E(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===e?g.EXPECT_SELECT_ARGUMENT_SELECTOR:g.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(g.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:o,err:null}},s.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=E(n,this.clonePosition());return i?ar(o*=r)?{val:o,err:null}:this.error(e,n):this.error(t,n)},s.prototype.offset=function(){return this.position.offset},s.prototype.isEOF=function(){return this.offset()===this.message.length},s.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},s.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=mr(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},s.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},s.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},s.prototype.bumpIf=function(t){if(hr(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},s.prototype.bumpUntil=function(t){var e=this.offset(),t=this.message.indexOf(t,e);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},s.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&wr(this.char());)this.bump()},s.prototype.peek=function(){var t,e;return!this.isEOF()&&(t=this.char(),e=this.offset(),null!=(e=this.message.charCodeAt(e+(65536<=t?2:1))))?e:null};var br=s;function s(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function vr(t){return 97<=t&&t<=122||65<=t&&t<=90}function wr(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function Er(t,e){e=w({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r,t=new br(t,e).parse();if(t.err)throw(r=SyntaxError(g[t.err.kind])).location=t.err.location,r.originalMessage=t.err.message,r;return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,Re(t)||Ne(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else Ie(t)&&ze(t.style)||(Le(t)||Me(t))&&Ue(t.style)?delete t.style.location:De(t)&&r(t.children)})}(t.val),t.val}function Tr(t,e){var r=e&&e.cache?e.cache:Cr,n=e&&e.serializer?e.serializer:_r;return(e&&e.strategy?e.strategy:function(t,e){return Sr(t,this,1===t.length?xr:Ar,e.cache.create(),e.serializer)})(t,{cache:r,serializer:n})}function xr(t,e,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=e.get(r);return void 0===i&&(i=t.call(this,n),e.set(r,i)),i}function Ar(t,e,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=e.get(r);return void 0===i&&(i=t.apply(this,n),e.set(r,i)),i}function Sr(t,e,r,n,i){return r.bind(e,t,n,i)}var _r=function(){return JSON.stringify(arguments)};function Br(){this.cache=Object.create(null)}Br.prototype.get=function(t){return this.cache[t]},Br.prototype.set=function(t,e){this.cache[t]=e};var $r,Pr,Cr={create:function(){return new Br}},Hr={variadic:function(t,e){return Sr(t,this,Ar,e.cache.create(),e.serializer)},monadic:function(t,e){return Sr(t,this,xr,e.cache.create(),e.serializer)}};(Pr=$r=$r||{}).MISSING_VALUE="MISSING_VALUE",Pr.INVALID_VALUE="INVALID_VALUE",Pr.MISSING_INTL_API="MISSING_INTL_API";He(jr,Ir=Error),jr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,kr,Fr,Or,Ir,Lr=jr,Mr=(He(Ur,Or=Lr),Ur),Rr=(He(zr,Fr=Lr),zr),Nr=(He(Dr,kr=Lr),Dr);function Dr(t,e){return kr.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(e,'"'),$r.MISSING_VALUE,e)||this}function zr(t,e,r){return Fr.call(this,'Value for "'.concat(t,'" must be of type ').concat(e),$r.INVALID_VALUE,r)||this}function Ur(t,e,r,n){return Or.call(this,'Invalid values for "'.concat(t,'": "').concat(e,'". Options are "').concat(Object.keys(r).join('", "'),'"'),$r.INVALID_VALUE,n)||this}function jr(t,e,r){t=Ir.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Gr(t,e,r,n,i,o,s){if(1===t.length&&Oe(t[0]))return[{type:T.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(Oe(c))a.push({type:T.literal,value:c.value});else if(c.type===b.pound)"number"==typeof o&&a.push({type:T.literal,value:r.getNumberFormat(e).format(o)});else{var h=c.value;if(!(i&&h in i))throw new Nr(h,s);h=i[h];if(c.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?T.literal:T.object,value:h});else if(Le(c)){var d="string"==typeof c.style?n.date[c.style]:Ue(c.style)?c.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(e,d).format(h)})}else if(Me(c))d="string"==typeof c.style?n.time[c.style]:Ue(c.style)?c.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(e,d).format(h)});else if(Ie(c))(d="string"==typeof c.style?n.number[c.style]:ze(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:T.literal,value:r.getNumberFormat(e,d).format(h)});else{if(De(c)){var p=c.children,m=c.value,f=i[m];if("function"!=typeof f)throw new Rr(m,"function",s);m=f(Gr(p,e,r,n,i,o).map(function(t){return t.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(t){return{type:"string"==typeof t?T.literal:T.object,value:t}}))}if(Re(c)){if(!(g=c.options[h]||c.options.other))throw new Mr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gr(g.value,e,r,n,i))}else if(Ne(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Lr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',$r.MISSING_INTL_API,s);var f=r.getPluralRules(e,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Mr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gr(g.value,e,r,n,i,h-(c.offset||0)))}}}}return(t=a).length<2?t:t.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===T.literal&&e.type===T.literal?r.value+=e.value:t.push(e),t},[])}function Jr(r){return{create:function(){return{get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(n=T=T||{})[n.literal=0]="literal",n[n.object=1]="object";Object.defineProperty(a,"defaultLocale",{get:function(){return a.memoizedDefaultLocale||(a.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),a.memoizedDefaultLocale},enumerable:!1,configurable:!0}),a.memoizedDefaultLocale=null,a.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return 0<e.length?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},a.__parse=Er,a.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 Wr=a;function a(t,e,r,n){var i,o,s=this;if(void 0===e&&(e=a.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var t=s.formatToParts(t);return 1===t.length?t[0].value:(t=t.reduce(function(t,e){return t.length&&e.type===T.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[])).length<=1?t[0]||"":t},this.formatToParts=function(t){return Gr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=a.resolveLocale(e),"string"==typeof t){if(this.message=t,!a.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=a.__parse(t,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=a.formats,(o=r)?Object.keys(i).reduce(function(t,e){var r,n;return t[e]=(r=i[e],(n=o[e])?w(w(w({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=w(w({},r[e]),n[e]||{}),t},{})):r),t},w({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:Tr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Fe([void 0],e,!1)))},{cache:Jr((e=void 0===(e=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:e).number),strategy:Hr.variadic}),getDateTimeFormat:Tr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Fe([void 0],e,!1)))},{cache:Jr(e.dateTime),strategy:Hr.variadic}),getPluralRules:Tr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Fe([void 0],e,!1)))},{cache:Jr(e.pluralRules),strategy:Hr.variadic})}}let m={},Vr=(t,e,r)=>r&&(e in m||(m[e]={}),t in m[e]||(m[e][t]=r),r),Xr=(e,r)=>{if(null!=r){if(r in m&&e in m[r])return m[r][e];var n=fn(r);for(let t=0;t<n.length;t++){var i=((t,e)=>{if(!Yr(t))return null;t=(t=>Kr[t]||null)(t);var n=e;if(null!=n){if(n in t)return t[n];var i=n.split(".");let r=t;for(let e=0;e<i.length;e++)if("object"==typeof r){if(0<e){let t=i.slice(e,i.length).join(".");if(t in r){r=r[t];break}}r=r[i[e]]}else r=void 0;return r}})(n[t],e);if(i)return Vr(e,r,i)}}},Kr,Zr=ve({});function Yr(t){return t in Kr}function qr(e,...r){delete m[e],Zr.update(t=>(t[e]=Pe.all([t[e]||{},...r]),t))}we([Zr],([t])=>Object.keys(t)),Zr.subscribe(t=>Kr=t);let Qr={};function tn(t){return Qr[t]}function en(t){return null!=t&&fn(t).some(t=>null==(t=tn(t))?void 0:t.size)}function rn(n,t){return Promise.all(t.map(t=>{return e=n,r=t,Qr[e].delete(r),0===Qr[e].size&&delete Qr[e],t().then(t=>t.default||t);var e,r})).then(t=>qr(n,...t))}let nn={};let on={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};let sn=ve(!1);var an=Object.defineProperty,rr=Object.defineProperties,nr=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,hn=(t,e,r)=>e in t?an(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let dn,pn=ve(null);function mn(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function fn(t,e=on.fallbackLocale){t=mn(t);return e?[...new Set([...t,...mn(e)])]:t}function gn(){return null!=dn?dn:void 0}pn.subscribe(t=>{dn=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)});let st=rr(((t,e)=>{for(var r in e=e||{})un.call(e,r)&&hn(t,r,e[r]);if(ln)for(var r of ln(e))cn.call(e,r)&&hn(t,r,e[r]);return t})({},pn),nr({set:e=>{if(e&&(t=>{if(null!=t){var e=fn(t);for(let t=0;t<e.length;t++){var r=e[t];if(Yr(r))return r}}})(e)&&en(e)){var r=on.loadingDelay;let t;return"undefined"!=typeof window&&null!=gn()&&r?t=window.setTimeout(()=>sn.set(!0),r):sn.set(!0),function t(e){var r;return en(e)?(r=fn(e).map(t=>{var e=tn(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length),nn[e]=Promise.all(r.map(([t,e])=>rn(t,e))).then(()=>{if(en(e))return t(e);delete nn[e]}),nn[e]):e in nn?nn[e]:Promise.resolve()}(e).then(()=>{pn.set(e)}).finally(()=>{clearTimeout(t),sn.set(!1)})}return pn.set(e)}}));var ir=r=>{let n=Object.create(null);return t=>{var e=JSON.stringify(t);return e in n?n[e]:n[e]=r(t)}},yn=Object.defineProperty,bn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,En=(t,e,r)=>e in t?yn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Tn=(t,e)=>{for(var r in e=e||{})vn.call(e,r)&&En(t,r,e[r]);if(bn)for(var r of bn(e))wn.call(e,r)&&En(t,r,e[r]);return t},xn=(t,e)=>{var r={};for(n in t)vn.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&bn)for(var n of bn(t))e.indexOf(n)<0&&wn.call(t,n)&&(r[n]=t[n]);return r};let An=(t,e)=>{var r=on.formats;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Sn=ir(t=>{var{locale:e,format:r}=t,t=xn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=An("number",r)),new Intl.NumberFormat(e,t)}),_n=ir(t=>{var{locale:e,format:r}=t,t=xn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=An("date",r):0===Object.keys(t).length&&(t=An("date","short")),new Intl.DateTimeFormat(e,t)}),Bn=ir(t=>{var{locale:e,format:r}=t,t=xn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=An("time",r):0===Object.keys(t).length&&(t=An("time","short")),new Intl.DateTimeFormat(e,t)}),$n=ir((t,e=gn())=>new Wr(t,e,on.formats,{ignoreTag:on.ignoreTag})),Pn=we([st,Zr],()=>(t,e={})=>{let r,n,i,o,s=e;"object"==typeof t&&(t=(s=t).id);var{values:a,locale:l=gn(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Xr(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=on).handleMissingMessage)?void 0:n.call(r,{locale:l,id:t,defaultValue:u}))?i:u)?o:t;if(!a)return c;let h=c;try{h=$n(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h}),Cn=(we([st],()=>(t,e)=>((t={})=>{var{locale:e=gn()}=t,t=xn(t,["locale"]);return Bn(Tn({locale:e},t))})(e).format(t)),we([st],()=>(t,e)=>((t={})=>{var{locale:e=gn()}=t,t=xn(t,["locale"]);return _n(Tn({locale:e},t))})(e).format(t)),we([st],()=>(t,e)=>((t={})=>{var{locale:e=gn()}=t,t=xn(t,["locale"]);return Sn(Tn({locale:e},t))})(e).format(t)),we([st,Zr],()=>(t,e=gn())=>Xr(t,e)),window.emWidgets={topic:(t,e=0)=>(-1==ge.indexOf(t)&&(e=new pe(e),ye[t]=e,ge.push(t)),ye[t])},t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Hn(t,e){qr(t,e)}let kn={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},hr:{tournamentsThController:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."}},"zh-hk":{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."}},tr:{tournamentsThController:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}}};function Fn(t,e){qr(t,e)}let On={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hr:{tournamentsThumbnail:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"U tijeku",ongoing:"Završeno",finished:"Počinje u",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},"zh-hk":{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{tournamentsThumbnail:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görebilirsiniz",here:"Burada",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Buradan başlayarak:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Devir",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function In(r){let n,i,o,s,a,l;return{c(){n=F("div"),i=O(r[13]),M(n,"class",o="Status "+r[15]),M(n,"part",s="Status "+r[15])},m(t,e){H(t,n,e),C(n,i),a||(l=P(r[18].call(null,n)),a=!0)},p(t,e){8192&e[0]&&R(i,t[13]),32768&e[0]&&o!==(o="Status "+t[15])&&M(n,"class",o),32768&e[0]&&s!==(s="Status "+t[15])&&M(n,"part",s)},d(t){t&&k(n),a=!1,l()}}}function Ln(t){let r,n=t[5]&&Mn(t);return{c(){n&&n.c(),r=j()},m(t,e){n&&n.m(t,e),H(t,r,e)},p(t,e){t[5]?n?n.p(t,e):((n=Mn(t)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&k(r)}}}function Mn(t){let r,n,i=t[16]("tournamentsThumbnail.enrolled")+"";return{c(){r=F("div"),n=O(i),M(r,"class","Enrolled"),M(r,"part","Enrolled")},m(t,e){H(t,r,e),C(r,n)},p(t,e){65536&e[0]&&i!==(i=t[16]("tournamentsThumbnail.enrolled")+"")&&R(n,i)},d(t){t&&k(r)}}}function Rn(r){let n,i,o,s,a;return{c(){M(n=F("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),M(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),f(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(t,e){H(t,n,e),s||(a=P(r[18].call(null,n)),s=!0)},p(t,e){1&e[0]&&i!==(i="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&M(n,"class",i),1&e[0]&&o!==(o="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&M(n,"part",o)},d(t){t&&k(n),s=!1,a()}}}function Nn(r){let n,i,o,s,a;return{c(){M(n=F("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),M(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),f(n,"background-image","url('"+r[4]+"')")},m(t,e){H(t,n,e),s||(a=P(r[18].call(null,n)),s=!0)},p(t,e){1&e[0]&&i!==(i="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&M(n,"class",i),1&e[0]&&o!==(o="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&M(n,"part",o),16&e[0]&&f(n,"background-image","url('"+t[4]+"')")},d(t){t&&k(n),s=!1,a()}}}function Dn(r){let n,i,o,s,a;return{c(){n=F("div"),i=O(r[11]),M(n,"class","Date"),M(n,"part","Date")},m(t,e){H(t,n,e),C(n,i),s||(a=P(o=r[17].call(null,n,r[2])),s=!0)},p(t,e){2048&e[0]&&R(i,t[11]),o&&d(o.update)&&4&e[0]&&o.update.call(null,t[2])},d(t){t&&k(n),s=!1,a()}}}function zn(r){let n,i,o,s,a,l,u,c,h,d,p,m,f,g,y,b,v,w,E,T,x,A=r[16]("tournamentsThumbnail.scoreCriteria")+"",S=r[16]("tournamentsThumbnail.minbet")+"",_=r[16]("tournamentsThumbnail.seegames")+"",B=r[16]("tournamentsThumbnail.here")+"";return{c(){n=F("div"),i=F("p"),o=O(A),s=O(":\n \n "),a=F("span"),l=O(r[14]),u=O("\n ("),c=O(S),h=I(),d=O(r[6]),p=O(")"),m=I(),f=F("div"),g=F("p"),y=O(_),b=I(),v=F("a"),w=O(B),M(a,"part","ScoreCriteriaSpan"),M(i,"part","ScoreCriteriaP"),M(n,"class","ScoreCriteria"),M(n,"part","ScoreCriteria"),M(v,"part","GamesAnchor"),M(v,"href",r[8]),M(v,"target",E="true"===r[9]?"_self":"_blank"),M(g,"part","GamesP"),M(f,"class","Games"),M(f,"part","Games")},m(t,e){H(t,n,e),C(n,i),C(i,o),C(i,s),C(i,a),C(a,l),C(i,u),C(i,c),C(i,h),C(i,d),C(i,p),H(t,m,e),H(t,f,e),C(f,g),C(g,y),C(g,b),C(g,v),C(v,w),T||(x=[P(r[19].call(null,a)),L(v,"click",r[28])],T=!0)},p(t,e){65536&e[0]&&A!==(A=t[16]("tournamentsThumbnail.scoreCriteria")+"")&&R(o,A),16384&e[0]&&R(l,t[14]),65536&e[0]&&S!==(S=t[16]("tournamentsThumbnail.minbet")+"")&&R(c,S),64&e[0]&&R(d,t[6]),65536&e[0]&&_!==(_=t[16]("tournamentsThumbnail.seegames")+"")&&R(y,_),65536&e[0]&&B!==(B=t[16]("tournamentsThumbnail.here")+"")&&R(w,B),256&e[0]&&M(v,"href",t[8]),512&e[0]&&E!==(E="true"===t[9]?"_self":"_blank")&&M(v,"target",E)},d(t){t&&k(n),t&&k(m),t&&k(f),T=!1,$(x)}}}function Un(r){let n,i,o,s,a,l,u,c,h,d=r[0]&&In(r),p="true"==r[7]&&Ln(r);function m(t){return t[4]?Nn:Rn}let f=m(r),g=f(r),y=r[2]&&Dn(r),b=r[12]&&zn(r);return{c(){n=F("div"),d&&d.c(),i=I(),p&&p.c(),o=I(),g.c(),s=I(),a=F("div"),l=F("div"),u=O(r[1]),c=I(),y&&y.c(),h=I(),b&&b.c(),this.c=v,M(l,"class","Title"),M(l,"part","Title"),M(a,"class","Details"),M(a,"part","Details"),M(n,"class","Thumbnail"),M(n,"part","Thumbnail")},m(t,e){H(t,n,e),d&&d.m(n,null),C(n,i),p&&p.m(n,null),C(n,o),g.m(n,null),C(n,s),C(n,a),C(a,l),C(l,u),C(a,c),y&&y.m(a,null),C(a,h),b&&b.m(a,null),r[29](n)},p(t,e){t[0]?d?d.p(t,e):((d=In(t)).c(),d.m(n,i)):d&&(d.d(1),d=null),"true"==t[7]?p?p.p(t,e):((p=Ln(t)).c(),p.m(n,o)):p&&(p.d(1),p=null),f===(f=m(t))&&g?g.p(t,e):(g.d(1),(g=f(t))&&(g.c(),g.m(n,s))),2&e[0]&&R(u,t[1]),t[2]?y?y.p(t,e):((y=Dn(t)).c(),y.m(a,h)):y&&(y.d(1),y=null),t[12]?b?b.p(t,e):((b=zn(t)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:v,o:v,d(t){t&&k(n),d&&d.d(),p&&p.d(),g.d(),y&&y.d(),b&&b.d(),r[29](null)}}}function jn(e,t,n){let i;at(e,Pn,t=>n(16,i=t));let r,{session:o=""}=t,{userid:s=""}=t,{title:a=""}=t,{startdate:l=""}=t,{status:u=""}=t,{tourid:c=""}=t,{thumbnail:h=""}=t,{userenrolled:d=""}=t,{scorecriteria:p=""}=t,{minbetcount:m=""}=t,{showenrolled:f="false"}=t,{gameurl:g=""}=t,{lang:y="en"}=t,{keepbrowsercontext:b="false"}=t,{clientstyling:v=""}=t,{clientstylingurl:w=""}=t,{translationurl:E=""}=t,T="",x=!1,A="",S="",_="",B=(Object.keys(On).forEach(t=>{Fn(t,On[t])}),t=>{t.data&&(t.data,"SessionID"==t.data.type&&n(12,x=!0),t.data.type=="TournamentStatus_"+c)&&n(0,u=t.data.status)}),$=()=>{var t=new Date(l),e=new Intl.DateTimeFormat("en",{month:"long"}).format(t),r=t.getDate(),t=t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});n(11,T=r+" "+i("tournamentsThumbnail."+e)+", "+i("Running"===u?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+t)},P=()=>{"Unstarted"==u&&(n(13,A=i("tournamentsThumbnail.scheduled")),n(15,_="StatusUnstarted")),"Running"==u&&(n(13,A=i("tournamentsThumbnail.ongoing")),n(15,_="StatusRunning")),"Closed"!=u&&"Closing"!=u||n(13,A=i("tournamentsThumbnail.finished")),"Closed"==u&&n(15,_="StatusClosed"),"Closing"==u&&n(15,_="StatusClosing")},C=()=>{"BetCount"==p&&n(14,S=i("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==p&&n(14,S=i("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==p&&n(14,S=i("tournamentsThumbnail.winStakeRatio")),"Stake"==p&&n(14,S=i("tournamentsThumbnail.stake"))},H=(t,e)=>{window.postMessage({type:"tournamentGamesClicked",tourId:e},window.location.href)};lt(()=>(window.addEventListener("message",B,!1),()=>{window.removeEventListener("message",B)}));return e.$$set=t=>{"session"in t&&n(21,o=t.session),"userid"in t&&n(22,s=t.userid),"title"in t&&n(1,a=t.title),"startdate"in t&&n(2,l=t.startdate),"status"in t&&n(0,u=t.status),"tourid"in t&&n(3,c=t.tourid),"thumbnail"in t&&n(4,h=t.thumbnail),"userenrolled"in t&&n(5,d=t.userenrolled),"scorecriteria"in t&&n(23,p=t.scorecriteria),"minbetcount"in t&&n(6,m=t.minbetcount),"showenrolled"in t&&n(7,f=t.showenrolled),"gameurl"in t&&n(8,g=t.gameurl),"lang"in t&&n(24,y=t.lang),"keepbrowsercontext"in t&&n(9,b=t.keepbrowsercontext),"clientstyling"in t&&n(25,v=t.clientstyling),"clientstylingurl"in t&&n(26,w=t.clientstylingurl),"translationurl"in t&&n(27,E=t.translationurl)},e.$$.update=()=>{if(33555456&e.$$.dirty[0]&&r&&v&&((t=document.createElement("style")).innerHTML=v,r.appendChild(t)),67109888&e.$$.dirty[0]&&r&&w){let t=new URL(w),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{r.appendChild(e)},1),setTimeout(()=>{},500)})}var t;134217728&e.$$.dirty[0]&&E&&fetch(E).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{Fn(t,e[t])})}).catch(t=>{console.log(t)}),2097152&e.$$.dirty[0]&&o&&(0<o.length&&"false"!=o?n(12,x=!0):n(12,x=!1)),1&e.$$.dirty[0]&&u&&P(),16777218&e.$$.dirty[0]&&y&&a&&(t=y,st.set(t),C(),P(),l)&&$(),4&e.$$.dirty[0]&&l&&$(),8388608&e.$$.dirty[0]&&p&&C()},[u,a,l,c,h,d,m,f,g,b,r,T,x,A,S,_,i,$,P,C,H,o,s,p,y,v,w,E,()=>H(),function(t){ot[t?"unshift":"push"](()=>{r=t,n(10,r)})}]}function Gn(t,e){qr(t,e)}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends nt{constructor(t){super();var e=document.createElement("style");e.textContent=':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", 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;font-family:"Roboto"}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}',this.shadowRoot.appendChild(e),rt(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},jn,Un,S,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},null,[-1,-1]),t&&(t.target&&H(t.target,this,t.anchor),t.props)&&(this.$set(t.props),p())}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[21]}set session(t){this.$$set({session:t}),p()}get userid(){return this.$$.ctx[22]}set userid(t){this.$$set({userid:t}),p()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),p()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),p()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),p()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),p()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$$set({thumbnail:t}),p()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$$set({userenrolled:t}),p()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(t){this.$$set({scorecriteria:t}),p()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(t){this.$$set({minbetcount:t}),p()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(t){this.$$set({showenrolled:t}),p()}get gameurl(){return this.$$.ctx[8]}set gameurl(t){this.$$set({gameurl:t}),p()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),p()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),p()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),p()}});let Jn={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},hr:{tournamentsDuration:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"}},"zh-hk":{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function Wn(r){let n,i,o,s,a,l,u,c,h,d,p,m,f=r[10](r[0])+"",g=r[10](r[1])+"";function y(t){return"Finished"==t[2]||"Closing"==t[2]||"Closed"==t[2]?Kn:0<t[5]?Xn:Vn}let b=y(r),v=b(r);function w(t){return"Finished"==t[2]||"Closing"==t[2]||"Closed"==t[2]?qn:0<t[5]?Yn:0<t[4]?Zn:void 0}let E=w(r),T=E&&E(r);return{c(){n=F("div"),i=F("div"),o=O(f),s=I(),a=F("div"),l=O(g),u=I(),c=F("div"),h=F("div"),v.c(),d=I(),T&&T.c(),M(i,"class","StartDate"),M(i,"part","StartDate"),M(a,"class","EndDate"),M(a,"part","EndDate"),M(n,"class","TournamentDates"),M(n,"part","TournamentDates"),M(h,"class","ProgressBar"),M(h,"part","ProgressBar"),M(c,"class","ProgressBarWrapper"),M(c,"part","ProgressBarWrapper")},m(t,e){H(t,n,e),C(n,i),C(i,o),C(n,s),C(n,a),C(a,l),H(t,u,e),H(t,c,e),C(c,h),v.m(h,null),C(h,d),T&&T.m(h,null),p||(m=P(r[9].call(null,c)),p=!0)},p(t,e){1&e&&f!==(f=t[10](t[0])+"")&&R(o,f),2&e&&g!==(g=t[10](t[1])+"")&&R(l,g),b===(b=y(t))&&v?v.p(t,e):(v.d(1),(v=b(t))&&(v.c(),v.m(h,d))),E===(E=w(t))&&T?T.p(t,e):(T&&T.d(1),(T=E&&E(t))&&(T.c(),T.m(h,null)))},d(t){t&&k(n),t&&k(u),t&&k(c),v.d(),T&&T.d(),p=!1,m()}}}function Vn(t){let r;return{c(){M(r=F("div"),"class","ProgressBarFill"),M(r,"part","ProgressBarFill"),f(r,"width",t[7]()+"%")},m(t,e){H(t,r,e)},p(t,e){128&e&&f(r,"width",t[7]()+"%")},d(t){t&&k(r)}}}function Xn(t){let r;return{c(){M(r=F("div"),"class","ProgressBarFillStarting"),M(r,"part","ProgressBarFillStarting")},m(t,e){H(t,r,e)},p:v,d(t){t&&k(r)}}}function Kn(t){let r;return{c(){M(r=F("div"),"class","ProgressBarFillEnd"),M(r,"part","ProgressBarFillEnd")},m(t,e){H(t,r,e)},p:v,d(t){t&&k(r)}}}function Zn(t){let r,n,i,o,s=t[8]("tournamentsDuration.left")+"";return{c(){r=F("div"),n=O(t[6]),i=I(),o=O(s),M(r,"class","Remaining"),M(r,"part","Remaining")},m(t,e){H(t,r,e),C(r,n),C(r,i),C(r,o)},p(t,e){64&e&&R(n,t[6]),256&e&&s!==(s=t[8]("tournamentsDuration.left")+"")&&R(o,s)},d(t){t&&k(r)}}}function Yn(t){let r,n,i,o,s=t[8]("tournamentsDuration.starting")+"",a=t[11](t[5])+"";return{c(){r=F("div"),n=O(s),i=I(),o=O(a),M(r,"class","Remaining"),M(r,"part","Remaining")},m(t,e){H(t,r,e),C(r,n),C(r,i),C(r,o)},p(t,e){256&e&&s!==(s=t[8]("tournamentsDuration.starting")+"")&&R(n,s),32&e&&a!==(a=t[11](t[5])+"")&&R(o,a)},d(t){t&&k(r)}}}function qn(t){let r,n,i=t[8]("tournamentsDuration.finished")+"";return{c(){r=F("div"),n=O(i),M(r,"class","Finished"),M(r,"part","Finished")},m(t,e){H(t,r,e),C(r,n)},p(t,e){256&e&&i!==(i=t[8]("tournamentsDuration.finished")+"")&&R(n,i)},d(t){t&&k(r)}}}function Qn(r){let n,i=r[0]&&r[1]&&Wn(r);return{c(){n=F("div"),i&&i.c(),this.c=v,M(n,"class","TournamentDuration"),M(n,"part","TournamentDuration")},m(t,e){H(t,n,e),i&&i.m(n,null),r[16](n)},p(t,[e]){t[0]&&t[1]?i?i.p(t,e):((i=Wn(t)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:v,o:v,d(t){t&&k(n),i&&i.d(),r[16](null)}}}function ti(e,t,r){let n,i;at(e,Pn,t=>r(8,i=t));let o,{startdate:s=""}=t,{enddate:a=""}=t,{status:l=""}=t,{lang:u="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,{translationurl:d=""}=t,p="",m="",f="",g=(Object.keys(Jn).forEach(t=>{Gn(t,Jn[t])}),t=>new Date(t).getTime()),y=(t,e)=>(g(e)-g(t))/6e4,b=()=>{var t=new Date;r(4,p=y(t,a)),r(5,m=y(t,s)),r(6,f=v(p))},v=t=>{var e;return t<1440?[t/60,e=t%60,60*(e-Math.floor(e))].map(t=>(t=Math.floor(t))<10?"0"+t:""+t).join(":"):Math.ceil(t/1440)+" "+i("tournamentsDuration.days")};return lt(()=>{let t=setInterval(()=>{s&&a&&b()},1e3);return()=>clearInterval(t)}),e.$$set=t=>{"startdate"in t&&r(0,s=t.startdate),"enddate"in t&&r(1,a=t.enddate),"status"in t&&r(2,l=t.status),"lang"in t&&r(12,u=t.lang),"clientstyling"in t&&r(13,c=t.clientstyling),"clientstylingurl"in t&&r(14,h=t.clientstylingurl),"translationurl"in t&&r(15,d=t.translationurl)},e.$$.update=()=>{if(19&e.$$.dirty&&r(7,n=()=>{var t,e;return p<=0?100:(e=100/(t=y(s,a)),Math.floor((t-p)*e))}),19&e.$$.dirty&&s&&a&&b(),4096&e.$$.dirty&&u&&b(),4112&e.$$.dirty&&u&&v(p),32768&e.$$.dirty&&d&&fetch(d).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{Gn(t,e[t])})}).catch(t=>{console.log(t)}),8200&e.$$.dirty&&o&&c&&((t=document.createElement("style")).innerHTML=c,o.appendChild(t)),16392&e.$$.dirty&&o&&h){let t=new URL(h),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{o.appendChild(e)},1),setTimeout(()=>{},500)})}var t},[s,a,l,o,p,m,f,n,i,b,t=>{var t=new Date(t),e=new Intl.DateTimeFormat(u,{month:"long"}).format(t);return`${t.getDate()} ${e}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+t.getUTCFullYear()},v,u,c,h,d,function(t){ot[t?"unshift":"push"](()=>{o=t,r(3,o)})}]}function ei(t,e){qr(t,e)}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends nt{constructor(t){super();var e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}",this.shadowRoot.appendChild(e),rt(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},ti,Qn,S,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),t&&(t.target&&H(t.target,this,t.anchor),t.props)&&(this.$set(t.props),p())}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(t){this.$$set({startdate:t}),p()}get enddate(){return this.$$.ctx[1]}set enddate(t){this.$$set({enddate:t}),p()}get status(){return this.$$.ctx[2]}set status(t){this.$$set({status:t}),p()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),p()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),p()}});let ri={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},hr:{tournamentsPrizes:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},"zh-hk":{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function ni(t,e,r){t=t.slice();return t[13]=e[r],t[15]=r,t}function ii(e){let i,o=e[1],s=[];for(let t=0;t<o.length;t+=1)s[t]=si(ni(e,o,t));let a=null;return o.length||(a=oi(e)),{c(){i=F("div");for(let t=0;t<s.length;t+=1)s[t].c();a&&a.c(),M(i,"class","Prizes"),M(i,"part","Prizes")},m(t,e){H(t,i,e);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(i,null);a&&a.m(i,null)},p(r,n){if(6&n){let e;for(o=r[1],e=0;e<o.length;e+=1){let t=ni(r,o,e);s[e]?s[e].p(t,n):(s[e]=si(t),s[e].c(),s[e].m(i,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=o.length,!o.length&&a?a.p(r,n):o.length?a&&(a.d(1),a=null):((a=oi(r)).c(),a.m(i,null))}},d(t){t&&k(i),U(s,t),a&&a.d()}}}function oi(t){let r,n,i=t[2]("tournamentsPrizes.noprizes")+"";return{c(){r=F("p"),n=O(i)},m(t,e){H(t,r,e),C(r,n)},p(t,e){4&e&&i!==(i=t[2]("tournamentsPrizes.noprizes")+"")&&R(n,i)},d(t){t&&k(r)}}}function si(t){let r,n,i,o,s,a,l,u,c,h=(1<t[13].count?t[13].rank+"~"+(t[13].rank+t[13].count-1):t[13].rank)+"",d=t[2]("tournamentsPrizes.place")+"",p=t[13].name+"";return{c(){r=F("div"),n=F("p"),i=F("span"),o=O(h),s=I(),a=O(d),l=O(": "),u=O(p),c=I(),M(i,"class","PrizeRank"),M(i,"part","PrizeRank"),M(n,"class","PrizeText"),M(n,"part","PrizeText"),M(r,"class","Prize Prize"+t[15]),M(r,"part","Prize Prize"+t[15])},m(t,e){H(t,r,e),C(r,n),C(n,i),C(i,o),C(n,s),C(n,a),C(n,l),C(n,u),C(r,c)},p(t,e){2&e&&h!==(h=(1<t[13].count?t[13].rank+"~"+(t[13].rank+t[13].count-1):t[13].rank)+"")&&R(o,h),4&e&&d!==(d=t[2]("tournamentsPrizes.place")+"")&&R(a,d),2&e&&p!==(p=t[13].name+"")&&R(u,p)},d(t){t&&k(r)}}}function ai(r){let n,i,o,s,a,l,u,c=r[2]("tournamentsPrizes.prizes")+"",h=r[1]&&ii(r);return{c(){n=F("div"),i=F("div"),(o=F("span")).innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',s=I(),a=F("p"),l=O(c),u=I(),h&&h.c(),this.c=v,M(o,"class","TournamentPrizesIconWrapper"),M(o,"part","TournamentPrizesIconWrapper"),M(a,"class","PrizesTitle"),M(a,"part","PrizesTitle"),M(i,"class","TournamentPrizesIconSection"),M(i,"part","TournamentPrizesIconSection"),M(n,"class","TournamentPrizes"),M(n,"part","TournamentPrizes")},m(t,e){H(t,n,e),C(n,i),C(i,o),C(i,s),C(i,a),C(a,l),C(n,u),h&&h.m(n,null),r[7](n)},p(t,[e]){4&e&&c!==(c=t[2]("tournamentsPrizes.prizes")+"")&&R(l,c),t[1]?h?h.p(t,e):((h=ii(t)).c(),h.m(n,null)):h&&(h.d(1),h=null)},i:v,o:v,d(t){t&&k(n),h&&h.d(),r[7](null)}}}function li(e,t,r){let n;at(e,Pn,t=>r(2,n=t));let i,o,{tourid:s=""}=t,{clientstyling:a=""}=t,{clientstylingurl:l=""}=t,{translationurl:u=""}=t,c=(Object.keys(ri).forEach(t=>{ei(t,ri[t])}),t=>{t.data&&t.data.type=="TournamentPrizes_"+s&&r(1,o=t.data.prizes)});return lt(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),e.$$set=t=>{"tourid"in t&&r(3,s=t.tourid),"clientstyling"in t&&r(4,a=t.clientstyling),"clientstylingurl"in t&&r(5,l=t.clientstylingurl),"translationurl"in t&&r(6,u=t.translationurl)},e.$$.update=()=>{if(17&e.$$.dirty&&i&&a&&((t=document.createElement("style")).innerHTML=a,i.appendChild(t)),33&e.$$.dirty&&i&&l){let t=new URL(l),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{i.appendChild(e)},1),setTimeout(()=>{},500)})}var t;64&e.$$.dirty&&u&&fetch(u).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{ei(t,e[t])})}).catch(t=>{console.log(t)})},[i,o,n,s,a,l,u,function(t){ot[t?"unshift":"push"](()=>{i=t,r(0,i)})}]}function ui(t,e){qr(t,e)}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends nt{constructor(t){super();var e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}",this.shadowRoot.appendChild(e),rt(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},li,ai,S,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},null),t&&(t.target&&H(t.target,this,t.anchor),t.props)&&(this.$set(t.props),p())}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl","translationurl"]}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),p()}});let ci={en:{gamesSlider:{playNow:"Play now"}},hr:{gamesSlider:{playNow:"Započni sada"}},"zh-hk":{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Jugar Ya"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function hi(t,e,r){t=t.slice();return t[50]=e[r],t[52]=r,t}function di(r){let n,i,o,s,a,l,u,c,h,d,p=r[1],m=[];for(let t=0;t<p.length;t+=1)m[t]=pi(hi(r,p,t));return{c(){n=F("div"),(i=F("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',o=I(),s=F("main"),a=F("div");for(let t=0;t<m.length;t+=1)m[t].c();u=I(),(c=F("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',M(i,"class","SliderNavButton"),M(i,"part","SliderNavButton"),G(i,"disabled",r[8]),M(a,"class","items"),M(a,"part","items"),f(a,"transform","translateX("+r[2]+"px)"),q(()=>r[28].call(s)),M(c,"class","SliderNavButton"),M(c,"part","SliderNavButton"),G(c,"disabled",r[9]),M(n,"class","TournamentsGamesSlider"),M(n,"part","TournamentsGamesSlider")},m(t,e){H(t,n,e),C(n,i),C(n,o),C(n,s),C(s,a);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(a,null);r[27](a),l=((t,e)=>{"static"===getComputedStyle(t).position&&(t.style.position="relative");let r=F("iframe"),n=(r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1,(()=>{if(void 0===B){B=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){B=!0}}return B})()),i;return n?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=L(window,"message",t=>{t.source===r.contentWindow&&e()})):(r.src="about:blank",r.onload=()=>{i=L(r.contentWindow,"resize",e),e()}),C(t,r),()=>{(n||i&&r.contentWindow)&&i(),k(r)}})(s,r[28].bind(s)),C(n,u),C(n,c),r[30](n),h||(d=[L(i,"click",r[23]),L(c,"click",r[29])],h=!0)},p(e,r){if(256&r[0]&&G(i,"disabled",e[8]),23650&r[0]){let t;for(p=e[1],t=0;t<p.length;t+=1){var n=hi(e,p,t);m[t]?m[t].p(n,r):(m[t]=pi(n),m[t].c(),m[t].m(a,null))}for(;t<m.length;t+=1)m[t].d(1);m.length=p.length}4&r[0]&&f(a,"transform","translateX("+e[2]+"px)"),512&r[0]&&G(c,"disabled",e[9])},d(t){t&&k(n),U(m,t),r[27](null),l(),r[30](null),h=!1,$(d)}}}function pi(r){let n,i,o,s,a,l,u,c,h,d,p,m,f,g=r[10]("gamesSlider.playNow")+"";function y(){return r[24](r[50])}function b(){return r[25](r[52])}return{c(){n=F("div"),i=F("span"),o=O(g),l=I(),u=F("img"),p=I(),M(i,"class",s="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":"")),M(i,"part",a="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":"")),D(u.src,c=r[50].thumbnail)||M(u,"src",c),M(u,"width","132px"),M(u,"height","100px"),M(u,"alt",h=r[50].name),M(u,"title",d=r[50].name),M(n,"class","item"),M(n,"part","item")},m(t,e){H(t,n,e),C(n,i),C(i,o),C(n,l),C(n,u),C(n,p),m||(f=[L(n,"click",y),L(n,"mouseenter",b),L(n,"mouseleave",r[26])],m=!0)},p(t,e){r=t,1024&e[0]&&g!==(g=r[10]("gamesSlider.playNow")+"")&&R(o,g),96&e[0]&&s!==(s="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":""))&&M(i,"class",s),96&e[0]&&a!==(a="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":""))&&M(i,"part",a),2&e[0]&&!D(u.src,c=r[50].thumbnail)&&M(u,"src",c),2&e[0]&&h!==(h=r[50].name)&&M(u,"alt",h),2&e[0]&&d!==(d=r[50].name)&&M(u,"title",d)},d(t){t&&k(n),m=!1,$(f)}}}function mi(r){let n,i=r[1]&&0<r[1].length&&di(r);return{c(){n=F("div"),i&&i.c(),this.c=v},m(t,e){H(t,n,e),i&&i.m(n,null),r[31](n)},p(t,e){t[1]&&0<t[1].length?i?i.p(t,e):((i=di(t)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:v,o:v,d(t){t&&k(n),i&&i.d(),r[31](null)}}}function fi(r,t,n){let i,o,e;at(r,Pn,t=>n(10,e=t));let s,a,l,u,c,h,{tournamenturl:d=""}=t,{scrollby:p="3"}=t,{pagfactor:m="175"}=t,{lang:f=""}=t,{translationurl:g=""}=t,{clientstyling:y=""}=t,{clientstylingurl:b=""}=t,v=window.navigator.userAgent,w=[],E=0,T=null,x=null,A=!1,S=0,_=(Object.keys(ci).forEach(t=>{ui(t,ci[t])}),t=>{n(5,A=!0),n(6,u=t)}),B=()=>{n(5,A=!1),n(6,u=-1)},$=t=>{t=(t.touches||t.originalEvent.touches)[0];T=t.clientX,x=t.clientY},P=t=>{var e;T&&x&&(e=t.touches[0].clientX,t=t.touches[0].clientY,e=T-e,t=x-t,Math.abs(e)>Math.abs(t)&&C(0<e?1:-1),T=null,x=null)},C=t=>{0<t&&!o?(n(2,E-=a),n(2,E=E<S?S:E)):t<0&&!i&&(n(2,E+=a),n(2,E=0<E?0:E))},H=t=>{window.postMessage({type:"TournamentGameAction",gameId:t.id,name:t.name,launchUrl:t.launchUrl},window.location.href)};return lt(()=>(a=parseInt(p,10)*parseInt(m,10),()=>{l.removeEventListener("touchstart",$),l.removeEventListener("touchmove",P)})),r.$$set=t=>{"tournamenturl"in t&&n(17,d=t.tournamenturl),"scrollby"in t&&n(15,p=t.scrollby),"pagfactor"in t&&n(16,m=t.pagfactor),"lang"in t&&n(18,f=t.lang),"translationurl"in t&&n(19,g=t.translationurl),"clientstyling"in t&&n(20,y=t.clientstyling),"clientstylingurl"in t&&n(21,b=t.clientstylingurl)},r.$$.update=()=>{if(4&r.$$.dirty[0]&&n(8,i=0===E),4194308&r.$$.dirty[0]&&n(9,o=E<=S),16&r.$$.dirty[0]&&h&&0<h&&h<Math.floor((parseInt(p)+1)*m)&&n(15,p=Math.ceil(h/m).toString()),131072&r.$$.dirty[0]&&d&&(t=new URL(d),e=new Headers,t.searchParams.append("expand","games"),t.searchParams.append("pagination",`games(limit=30,offset=${E})`),t.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),t.searchParams.append("language",f),t.searchParams.append("platform",Cn(v)),fetch(t,{method:"GET",headers:e}).then(t=>t.json()).then(t=>{n(1,w=t.item.games.items),t.item.games.total})),8&r.$$.dirty[0]&&l&&(l.addEventListener("touchstart",$,{passive:!0}),l.addEventListener("touchmove",P,{passive:!0})),524288&r.$$.dirty[0]&&g&&fetch(g).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{ui(t,e[t])})}).catch(t=>{console.log(t)}),2&r.$$.dirty[0]&&w.length&&setTimeout(()=>{n(22,S=-1*(c.scrollWidth-c.clientWidth)),n(16,m=new String(c.scrollWidth/w.length)),a=parseInt(p,10)*parseFloat(m,2).toFixed(2)},1e3),1048577&r.$$.dirty[0]&&y&&s&&((t=document.createElement("style")).innerHTML=y,s.appendChild(t)),2097153&r.$$.dirty[0]&&b&&s){let t=new URL(b),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{s.appendChild(e)},1),setTimeout(()=>{},500)})}var t,e},n(2,E=0),[s,w,E,l,h,A,u,c,i,o,e,_,B,C,H,p,m,d,f,g,y,b,S,()=>C(-1),t=>H(t),t=>_(t),()=>B(),function(t){ot[t?"unshift":"push"](()=>{c=t,n(7,c)})},function(){h=this.clientWidth,n(4,h)},()=>C(1),function(t){ot[t?"unshift":"push"](()=>{l=t,n(3,l)})},function(t){ot[t?"unshift":"push"](()=>{s=t,n(0,s)})}]}function gi(t){let r,n,i,o,s,a,l,u,c,h=t[13]&&bi(t);function d(t){return t[13]?"Closed"!=t[22]&&"Closing"!=t[22]?Ei:"true"==t[3]?wi:void 0:Ti}let p=d(t),m=p&&p(t),f=(t[16]||t[18])&&Pi(t),g="true"==t[4]&&Ci(t);return{c(){r=F("div"),n=F("casino-tournaments-thumbnail"),i=I(),h&&h.c(),o=I(),s=F("div"),m&&m.c(),a=I(),f&&f.c(),l=I(),g&&g.c(),y(n,"session",t[0]),y(n,"userid",t[1]),y(n,"title",t[19]),y(n,"status",t[22]),y(n,"startdate",t[20]),y(n,"tourid",t[23]),y(n,"scorecriteria",t[26]),y(n,"minbetcount",t[27]),y(n,"thumbnail",t[24]),y(n,"showenrolled",t[5]),y(n,"gameurl",t[29]),y(n,"userenrolled",t[25]),y(n,"clientstyling",t[10]),y(n,"clientstylingurl",t[11]),y(n,"lang",t[8]),y(n,"keepbrowsercontext",t[9]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),M(s,"class","TournamentButtons"),M(s,"part","TournamentButtons"),M(r,"class",u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")),M(r,"part",c="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))},m(t,e){H(t,r,e),C(r,n),C(r,i),h&&h.m(r,null),C(r,o),C(r,s),m&&m.m(s,null),C(r,a),f&&f.m(r,null),C(r,l),g&&g.m(r,null)},p(t,e){1&e[0]&&y(n,"session",t[0]),2&e[0]&&y(n,"userid",t[1]),524288&e[0]&&y(n,"title",t[19]),4194304&e[0]&&y(n,"status",t[22]),1048576&e[0]&&y(n,"startdate",t[20]),8388608&e[0]&&y(n,"tourid",t[23]),67108864&e[0]&&y(n,"scorecriteria",t[26]),134217728&e[0]&&y(n,"minbetcount",t[27]),16777216&e[0]&&y(n,"thumbnail",t[24]),32&e[0]&&y(n,"showenrolled",t[5]),536870912&e[0]&&y(n,"gameurl",t[29]),33554432&e[0]&&y(n,"userenrolled",t[25]),1024&e[0]&&y(n,"clientstyling",t[10]),2048&e[0]&&y(n,"clientstylingurl",t[11]),256&e[0]&&y(n,"lang",t[8]),512&e[0]&&y(n,"keepbrowsercontext",t[9]),t[13]?h?h.p(t,e):((h=bi(t)).c(),h.m(r,o)):h&&(h.d(1),h=null),p===(p=d(t))&&m?m.p(t,e):(m&&m.d(1),(m=p&&p(t))&&(m.c(),m.m(s,null))),t[16]||t[18]?f?f.p(t,e):((f=Pi(t)).c(),f.m(r,l)):f&&(f.d(1),f=null),"true"==t[4]?g?g.p(t,e):((g=Ci(t)).c(),g.m(r,null)):g&&(g.d(1),g=null),1073742016&e[0]&&u!==(u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"class",u),1073742016&e[0]&&c!==(c="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"part",c)},d(t){t&&k(r),h&&h.d(),m&&m.d(),f&&f.d(),g&&g.d()}}}function yi(t){let r,n,i,o;return{c(){r=F("div"),(n=F("div")).innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> \n <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> \n <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> \n <div class="ph-col-4" part="ph-col-4"></div> \n <div class="ph-col-8 empty" part="ph-col-8 empty"></div> \n <div class="ph-col-6" part="ph-col-6"></div> \n <div class="ph-col-6 empty" part="ph-col-6 empty"></div> \n <div class="ph-col-12" part="ph-col-12"></div></div></div>',M(n,"class","ph-item"),M(n,"part","ph-item"),M(r,"class",i="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")),M(r,"part",o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))},m(t,e){H(t,r,e),C(r,n)},p(t,e){1073742016&e[0]&&i!==(i="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"class",i),1073742016&e[0]&&o!==(o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"part",o)},d(t){t&&k(r)}}}function bi(t){let r,n,i=t[23]&&vi(t);return{c(){i&&i.c(),r=I(),y(n=F("casino-tournaments-thumbnail-duration"),"clientstyling",t[10]),y(n,"clientstylingurl",t[11]),y(n,"status",t[22]),y(n,"startdate",t[20]),y(n,"lang",t[8]),y(n,"enddate",t[21]),y(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(t,e){i&&i.m(t,e),H(t,r,e),H(t,n,e)},p(t,e){t[23]?i?i.p(t,e):((i=vi(t)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),1024&e[0]&&y(n,"clientstyling",t[10]),2048&e[0]&&y(n,"clientstylingurl",t[11]),4194304&e[0]&&y(n,"status",t[22]),1048576&e[0]&&y(n,"startdate",t[20]),256&e[0]&&y(n,"lang",t[8]),2097152&e[0]&&y(n,"enddate",t[21])},d(t){i&&i.d(t),t&&k(r),t&&k(n)}}}function vi(r){let n,i,o,s;return{c(){y(n=F("casino-tournaments-thumbnail-prizes"),"tourid",r[23]),y(n,"clientstyling",r[10]),y(n,"clientstylingurl",r[11]),y(n,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(t,e){H(t,n,e),o||(s=P(i=r[36].call(null,n,r[23])),o=!0)},p(t,e){8388608&e[0]&&y(n,"tourid",t[23]),1024&e[0]&&y(n,"clientstyling",t[10]),2048&e[0]&&y(n,"clientstylingurl",t[11]),i&&d(i.update)&&8388608&e[0]&&i.update.call(null,t[23])},d(t){t&&k(n),o=!1,s()}}}function wi(r){let n,i,o,s,a=r[31]("tournamentsThController.details")+"";return{c(){n=F("button"),i=O(a),M(n,"class","DetailsLargeButton"),M(n,"part","DetailsLargeButton")},m(t,e){H(t,n,e),C(n,i),o||(s=L(n,"click",r[51]),o=!0)},p(t,e){1&e[1]&&a!==(a=t[31]("tournamentsThController.details")+"")&&R(i,a)},d(t){t&&k(n),o=!1,s()}}}function Ei(t){let r,n,i="true"==t[3]&&xi(t);function o(t){return t[25]?Si:Ai}let s=o(t),a=s(t);return{c(){i&&i.c(),r=I(),a.c(),n=j()},m(t,e){i&&i.m(t,e),H(t,r,e),a.m(t,e),H(t,n,e)},p(t,e){"true"==t[3]?i?i.p(t,e):((i=xi(t)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),s===(s=o(t))&&a?a.p(t,e):(a.d(1),(a=s(t))&&(a.c(),a.m(n.parentNode,n)))},d(t){i&&i.d(t),t&&k(r),a.d(t),t&&k(n)}}}function Ti(r){let n,i,o,s,a,l,u,c=r[31]("tournamentsThController.login")+"",h=r[31]("tournamentsThController.register")+"";return{c(){n=F("button"),i=O(c),o=I(),s=F("button"),a=O(h),M(n,"class","LoginButton"),M(n,"part","LoginButton"),M(s,"class","RegisterButton"),M(s,"part","RegisterButton")},m(t,e){H(t,n,e),C(n,i),H(t,o,e),H(t,s,e),C(s,a),l||(u=[L(n,"click",r[47]),L(s,"click",r[48])],l=!0)},p(t,e){1&e[1]&&c!==(c=t[31]("tournamentsThController.login")+"")&&R(i,c),1&e[1]&&h!==(h=t[31]("tournamentsThController.register")+"")&&R(a,h)},d(t){t&&k(n),t&&k(o),t&&k(s),l=!1,$(u)}}}function xi(r){let n,i,o,s,a=r[31]("tournamentsThController.details")+"";return{c(){n=F("button"),i=O(a),M(n,"class","DetailsButton"),M(n,"part","DetailsButton")},m(t,e){H(t,n,e),C(n,i),o||(s=L(n,"click",r[49]),o=!0)},p(t,e){1&e[1]&&a!==(a=t[31]("tournamentsThController.details")+"")&&R(i,a)},d(t){t&&k(n),o=!1,s()}}}function Ai(r){let n,i,o,s,a;function l(t){return 1==t[15]?Bi:_i}let u=l(r),c=u(r);return{c(){n=F("button"),c.c(),M(n,"class",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),M(n,"part",o="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.disabled=r[16]},m(t,e){H(t,n,e),c.m(n,null),s||(a=L(n,"click",r[50]),s=!0)},p(t,e){u===(u=l(t))&&c?c.p(t,e):(c.d(1),(c=u(t))&&(c.c(),c.m(n,null))),128&e[0]&&i!==(i="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&M(n,"class",i),128&e[0]&&o!==(o="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&M(n,"part",o),65536&e[0]&&(n.disabled=t[16])},d(t){t&&k(n),c.d(),s=!1,a()}}}function Si(t){let r,n="true"==t[3]&&$i(t);return{c(){n&&n.c(),r=j()},m(t,e){n&&n.m(t,e),H(t,r,e)},p(t,e){"true"==t[3]?n?n.p(t,e):((n=$i(t)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&k(r)}}}function _i(t){let r,n,i,o,s,a,l,u,c,h=t[31]("tournamentsThController.join")+"";return{c(){r=F("span"),n=O(h),i=I(),o=e("svg"),s=e("defs"),a=e("style"),l=O(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=e("g"),c=e("path"),M(r,"part","JoinButtonSpan"),M(c,"class","a"),M(c,"part","a JoinButtonSvgA"),M(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),M(c,"transform","translate(26 26) rotate(180)"),M(u,"transform","translate(26 26) rotate(180)"),M(o,"part","JoinButtonSvg"),M(o,"xmlns","http://www.w3.org/2000/svg"),M(o,"width","26"),M(o,"height","26"),M(o,"viewBox","0 0 26 26")},m(t,e){H(t,r,e),C(r,n),H(t,i,e),H(t,o,e),C(o,s),C(s,a),C(a,l),C(o,u),C(u,c)},p(t,e){1&e[1]&&h!==(h=t[31]("tournamentsThController.join")+"")&&R(n,h)},d(t){t&&k(r),t&&k(i),t&&k(o)}}}function Bi(t){let r,n;return{c(){r=e("svg"),M(n=e("circle"),"cx","20"),M(n,"cy","20"),M(n,"r","18"),M(r,"class","spinner"),M(r,"part","spinner")},m(t,e){H(t,r,e),C(r,n)},p:v,d(t){t&&k(r)}}}function $i(t){let r,n,i=t[31]("tournamentsThController.enrolled")+"";return{c(){r=F("button"),n=O(i),M(r,"class","EnrolledButton"),M(r,"part","EnrolledButton"),r.disabled=!0},m(t,e){H(t,r,e),C(r,n)},p(t,e){1&e[1]&&i!==(i=t[31]("tournamentsThController.enrolled")+"")&&R(n,i)},d(t){t&&k(r)}}}function Pi(t){let r,n,i,o,s=t[31]("tournamentsThController.joinerror")+"";return{c(){r=F("span"),n=O(s),i=I(),o=O(t[17]),M(r,"class","ErrorText"),M(r,"part","ErrorText")},m(t,e){H(t,r,e),C(r,n),C(r,i),C(r,o)},p(t,e){1&e[1]&&s!==(s=t[31]("tournamentsThController.joinerror")+"")&&R(n,s),131072&e[0]&&R(o,t[17])},d(t){t&&k(r)}}}function Ci(t){let r;return{c(){y(r=F("casino-tournaments-thumbnail-games-slider"),"clientstyling",t[10]),y(r,"clientstylingurl",t[11]),y(r,"tournamenturl",t[2]),y(r,"lang",t[8]),y(r,"scrollby","2"),y(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(t,e){H(t,r,e)},p(t,e){1024&e[0]&&y(r,"clientstyling",t[10]),2048&e[0]&&y(r,"clientstylingurl",t[11]),4&e[0]&&y(r,"tournamenturl",t[2]),256&e[0]&&y(r,"lang",t[8])},d(t){t&&k(r)}}}function Hi(r){let n;function i(t){return t[14]?yi:t[19]?gi:void 0}let o=i(r),s=o&&o(r);return{c(){n=F("div"),s&&s.c(),this.c=v},m(t,e){H(t,n,e),s&&s.m(n,null),r[52](n)},p(t,e){o===(o=i(t))&&s?s.p(t,e):(s&&s.d(1),(s=o&&o(t))&&(s.c(),s.m(n,null)))},i:v,o:v,d(t){t&&k(n),s&&s.d(),r[52](null)}}}function ki(r,t,u){let e;at(r,Pn,t=>u(31,e=t));let n,i,o,s,a,c,L,h,M,R,l,{session:d=""}=t,{userid:N=""}=t,{tournamenturl:p=""}=t,m=t.touridx,{endpoint:f=""}=t,{showdetails:D=""}=t,{showslider:z=""}=t,{showenrolled:U=""}=t,{maxwidth:j=""}=t,{fullsize:G=""}=t,{lang:g=""}=t,{loginevent:y=""}=t,{registerevent:b=""}=t,{loginurl:v=""}=t,{registerurl:w=""}=t,{currency:E=""}=t,{keepbrowsercontext:J="false"}=t,{clientstyling:T=""}=t,{clientstylingurl:x=""}=t,{translationurl:A=""}=t,S=t.tournamentinfo,_=!1,B="",$=!0,W=window.navigator.userAgent,P=!1,C=!1,V="There was an error while trying to join the tournament",H=!1,X=[],k=[],K="#",F=!1;var Z,Y;({withLocale:Z,translations:Y}={withLocale:"en",translations:{}}),st.subscribe(t=>{null==t&&(Zr.set(Y),st.set(Z))}),Object.keys(kn).forEach(t=>{Hn(t,kn[t])});let q=t=>{tt(t),I(t),it(this,c)},Q=r=>{if(r.data&&"UserSessionID"==r.data.type&&(u(13,_=!0),B=r.data.session),"UpdateTournamentView"==r.data.type){var t=r.data.tournamentData;if(c&&c!=t.id)return;q(t)}if(r.data&&r.data.type=="UpdateSingleTournament_"+m){let t=r.data.tournamentData,e=m<4?100*m:300*Math.random()+300;u(30,F=1==m),setTimeout(()=>{u(30,F=!0),u(23,c=t.id),q(t)},e),setTimeout(()=>{u(30,F=!1)},200+e)}},tt=t=>{t.state!=a&&(u(22,a=t.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},et=()=>{y&&(window.postMessage({type:y,transition:"Login"},window.location.href),"function"==typeof gtag)&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"}),v&&(window.location=v)},rt=()=>{b&&(window.postMessage({type:b,transition:"Register"},window.location.href),"function"==typeof gtag)&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"}),w&&(window.location=w)},O=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)},nt=async(e,t)=>{u(16,C=!1),u(18,H=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),u(15,P=!0);let r=new URL(f+"/v1/bonus/claim"),n=new Headers,i={},o=(r.searchParams.append("language",g),r.searchParams.append("platform",Cn(W)),n.append("Content-Type","application/json"),n.append("X-SessionID",B),t&&1<=t.length&&(i={language:g,bonusCode:t[0].code,currency:E,type:"tournament"}),{method:"PUT",headers:n,body:JSON.stringify(i)}),s=()=>{u(15,P=!1),u(25,h=!0)},a=t=>{u(15,P=!1),t&&u(17,V=t),u(16,C=!0)},l=await(async()=>{let t;try{t=await(t=await fetch(r,o)).json()}catch(t){a()}return t})();if(l)if(1==l.success)s();else if(l.errorMessage.match("VersionMismatchException")){let t;null!=(e=null==(t=await(t=await fetch(f+"/tournaments/"+c,{headers:{"X-SessionID":d}})).json())?void 0:t.item)&&e.playerEnrolled?s():(a(l.errorMessage),u(18,H=!0),u(16,C=!1))}else a(l.errorMessage)},it=(t,e)=>{window.postMessage({type:"TournamentPrizes_"+e,prizes:X},window.location.href)},I=t=>{t&&(u(19,i=t.nameOrTitle||""),u(20,o=t.startTime),u(21,s=t.endTime),u(22,a=t.state),u(23,c=t.id),u(24,L=t.thumbnail),u(25,h="true"===t.playerEnrolled||1==t.playerEnrolled||!1),u(26,M=t.scoreCriteria),u(27,R=t.minBetCount),X=t.prizes,u(28,k=t.wallets||[]),u(29,K=t.termsUrl||"#"))};return lt(()=>(u(14,$=!1),window.addEventListener("message",Q,!1),()=>{window.removeEventListener("message",Q)})),r.$$set=t=>{"session"in t&&u(0,d=t.session),"userid"in t&&u(1,N=t.userid),"tournamenturl"in t&&u(2,p=t.tournamenturl),"touridx"in t&&u(37,m=t.touridx),"endpoint"in t&&u(38,f=t.endpoint),"showdetails"in t&&u(3,D=t.showdetails),"showslider"in t&&u(4,z=t.showslider),"showenrolled"in t&&u(5,U=t.showenrolled),"maxwidth"in t&&u(6,j=t.maxwidth),"fullsize"in t&&u(7,G=t.fullsize),"lang"in t&&u(8,g=t.lang),"loginevent"in t&&u(39,y=t.loginevent),"registerevent"in t&&u(40,b=t.registerevent),"loginurl"in t&&u(41,v=t.loginurl),"registerurl"in t&&u(42,w=t.registerurl),"currency"in t&&u(43,E=t.currency),"keepbrowsercontext"in t&&u(9,J=t.keepbrowsercontext),"clientstyling"in t&&u(10,T=t.clientstyling),"clientstylingurl"in t&&u(11,x=t.clientstylingurl),"translationurl"in t&&u(44,A=t.translationurl),"tournamentinfo"in t&&u(45,S=t.tournamentinfo)},r.$$.update=()=>{if(5120&r.$$.dirty[0]&&n&&T&&((e=document.createElement("style")).innerHTML=T,n.appendChild(e)),6144&r.$$.dirty[0]&&n&&x){let t=new URL(x),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{n.appendChild(e)},1),setTimeout(()=>{},500)})}var t,e;8192&r.$$.dirty[1]&&A&&fetch(A).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{Hn(t,e[t])})}).catch(t=>{console.log(t)}),1&r.$$.dirty[0]&&d&&(0<d.length&&"false"!=d?(B=d,u(13,_=!0)):u(13,_=!1)),260&r.$$.dirty[0]&&u(46,l=p&&g),32768&r.$$.dirty[1]&&l&&(S?I(S):(u(14,$=!0),e=p,u(14,$=!0),e=new URL(e),t=new Headers,e.searchParams.append("language",g),e.searchParams.append("platform",Cn(W)),_&&t.append("X-SessionID",B),fetch(e,{method:"GET",headers:t}).then(t=>t.json()).then(t=>{u(14,$=!1),I(t.item)})))},[d,N,p,D,z,U,j,G,g,J,T,x,n,_,$,P,C,V,H,i,o,s,a,c,L,h,M,R,k,K,F,e,et,rt,O,nt,it,m,f,y,b,v,w,E,A,S,l,()=>et(),()=>rt(),()=>O(c),()=>nt(c,k),()=>O(c),function(t){ot[t?"unshift":"push"](()=>{n=t,u(12,n)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends nt{constructor(t){super();var e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}",this.shadowRoot.appendChild(e),rt(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},fi,mi,S,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),t&&(t.target&&H(t.target,this,t.anchor),t.props)&&(this.$set(t.props),p())}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang","translationurl","clientstyling","clientstylingurl"]}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(t){this.$$set({tournamenturl:t}),p()}get scrollby(){return this.$$.ctx[15]}set scrollby(t){this.$$set({scrollby:t}),p()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(t){this.$$set({pagfactor:t}),p()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),p()}get translationurl(){return this.$$.ctx[19]}set translationurl(t){this.$$set({translationurl:t}),p()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}});class Fi extends nt{constructor(t){super();var e=document.createElement("style");e.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}',this.shadowRoot.appendChild(e),rt(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},ki,Hi,S,{session:0,userid:1,tournamenturl:2,touridx:37,endpoint:38,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:39,registerevent:40,loginurl:41,registerurl:42,currency:43,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:44,tournamentinfo:45},null,[-1,-1,-1]),t&&(t.target&&H(t.target,this,t.anchor),t.props)&&(this.$set(t.props),p())}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","clientstyling","clientstylingurl","translationurl","tournamentinfo"]}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),p()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),p()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),p()}get touridx(){return this.$$.ctx[37]}set touridx(t){this.$$set({touridx:t}),p()}get endpoint(){return this.$$.ctx[38]}set endpoint(t){this.$$set({endpoint:t}),p()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),p()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),p()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),p()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),p()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),p()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),p()}get loginevent(){return this.$$.ctx[39]}set loginevent(t){this.$$set({loginevent:t}),p()}get registerevent(){return this.$$.ctx[40]}set registerevent(t){this.$$set({registerevent:t}),p()}get loginurl(){return this.$$.ctx[41]}set loginurl(t){this.$$set({loginurl:t}),p()}get registerurl(){return this.$$.ctx[42]}set registerurl(t){this.$$set({registerurl:t}),p()}get currency(){return this.$$.ctx[43]}set currency(t){this.$$set({currency:t}),p()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get translationurl(){return this.$$.ctx[44]}set translationurl(t){this.$$set({translationurl:t}),p()}get tournamentinfo(){return this.$$.ctx[45]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),p()}}return customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",Fi),Fi});
1
+ ((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(){function v(){}function x(e){return e()}function A(){return Object.create(null)}function $(e){e.forEach(x)}function d(e){return"function"==typeof e}function S(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let _,B,N;function D(e,t){return(_=_||document.createElement("a")).href=t,e===_.href}function z(e,...t){if(null==e)return v;let r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ae(e,t,r){e.$$.on_destroy.push(z(t,r))}function P(e){return e&&d(e.destroy)?e.destroy:v}function C(e,t){e.appendChild(t)}function H(e,t,r){e.insertBefore(t,r||null)}function k(e){e.parentNode&&e.parentNode.removeChild(e)}function U(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function F(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function O(e){return document.createTextNode(e)}function M(){return O(" ")}function j(){return O("")}function I(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function L(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:L(e,t,r)}function R(e,t){e.data!==(t=""+t)&&(e.data=t)}function f(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function G(e,t,r){e.classList[r?"add":"remove"](t)}function J(e){var t,r={};for(t of e)r[t.name]=t.value;return r}function W(e){N=e}function le(e){(()=>{if(N)return N;throw new Error("Function called outside component initialization")})().$$.on_mount.push(e)}let V=[],oe=[],X=[],K=[],Z=Promise.resolve(),Y=!1;function q(e){X.push(e)}let Q=new Set,ee=0;function p(){if(0===ee){let e=N;do{try{for(;ee<V.length;){let e=V[ee];ee++,W(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),$(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(q))}}catch(e){throw V.length=0,ee=0,e}for(W(null),V.length=0,ee=0;oe.length;)oe.pop()();for(let e=0;e<X.length;e+=1){var n=X[e];Q.has(n)||(Q.add(n),n())}}while(X.length=0,V.length);for(;K.length;)K.pop()();Y=!1,Q.clear(),W(e)}}let te=new Set;function re(n,t,e,r,i,o,s,a=[-1]){var l=N;W(n);let u=n.$$={fragment:null,ctx:[],props:o,update:v,not_equal:i,bound:A(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:A(),dirty:a,skip_bound:!1,root:t.target||l.$$.root},c=(s&&s(u.root),!1);if(u.ctx=e?e(n,t.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c)&&(r=e,-1===(e=n).$$.dirty[0]&&(V.push(e),Y||(Y=!0,Z.then(p)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31),t}):[],u.update(),c=!0,$(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){o=t.target;let e=Array.from(o.childNodes);u.fragment&&u.fragment.l(e),e.forEach(k)}else u.fragment&&u.fragment.c();t.intro&&(a=n.$$.fragment)&&a.i&&(te.delete(a),a.i(void 0));var h=n,s=t.customElement,{fragment:e,after_update:r}=h.$$;e&&e.m(t.target,t.anchor),s||q(()=>{var e=h.$$.on_mount.map(x).filter(d);h.$$.on_destroy?h.$$.on_destroy.push(...e):$(e),h.$$.on_mount=[]}),r.forEach(q),p()}W(l)}let ne;"function"==typeof HTMLElement&&(ne=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let e=this.$$.on_mount;this.$$.on_disconnect=e.map(x).filter(d);for(let e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){$(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;let t=[],r=[];X.forEach(e=>(-1===n.indexOf(e)?t:r).push(e)),r.forEach(e=>e()),X=t}$(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=v}$on(e,t){if(!d(t))return v;let r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ie,ue,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ce="URLSearchParams"in l,he="Symbol"in l&&"iterator"in Symbol,de="FileReader"in l&&"Blob"in l&&(()=>{try{return new Blob,!0}catch(e){return!1}})(),pe="FormData"in l,me="ArrayBuffer"in l;function fe(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 ge(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return he&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function be(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ve(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function we(e){var t=new FileReader,r=ve(t);return t.readAsArrayBuffer(e),r}function Ee(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Te(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:de&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:pe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ce&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&de&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Ee(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||ue(e))?this._bodyArrayBuffer=Ee(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ce&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},de&&(this.blob=function(){var e=be(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return be(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(de)return this.blob().then(we);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n=be(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,t=ve(e=new FileReader),r=(r=/charset=([A-Za-z0-9_-]+)/.exec(n.type))?r[1]:"utf-8",e.readAsText(n,r),t;if(this._bodyArrayBuffer)return Promise.resolve((e=>{for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")})(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pe&&(this.formData=function(){return this.text().then(Se)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(ie=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ue=ArrayBuffer.isView||function(e){return e&&-1<ie.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=fe(e),t=ge(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},u.prototype.delete=function(e){delete this.map[fe(e)]},u.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},u.prototype.set=function(e,t){this.map[fe(e)]=ge(t)},u.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},u.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),ye(r)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},u.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),ye(r)},he&&(u.prototype[Symbol.iterator]=u.prototype.entries);var xe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ae(e,t){if(!(this instanceof Ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof Ae){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new u(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||(()=>{if("AbortController"in l)return(new AbortController).signal})(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Se(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}Ae.prototype.clone=function(){return new Ae(this,{body:this._bodyInit})},Te.call(Ae.prototype),Te.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var _e=[301,302,303,307,308],Be=(c.redirect=function(e,t){if(-1===_e.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},l.DOMException);try{new Be}catch(v){(Be=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Be.prototype.constructor=Be}function $e(n,a){return new Promise(function(i,e){var o=new Ae(n,a);if(o.signal&&o.signal.aborted)return e(new Be("Aborted","AbortError"));var r,s=new XMLHttpRequest;function t(){s.abort()}s.onload=function(){var e,n,t={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",n=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),r=t.shift().trim();if(r){t=t.join(":").trim();try{n.append(r,t)}catch(e){console.warn("Response "+e.message)}}}),n)},r=(0===o.url.indexOf("file://")&&(s.status<200||599<s.status)?t.status=200:t.status=s.status,t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new c(r,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},s.onabort=function(){setTimeout(function(){e(new Be("Aborted","AbortError"))},0)},s.open(o.method,(t=>{try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}})(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(de?s.responseType="blob":me&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof u||l.Headers&&a.headers instanceof l.Headers)?(r=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){r.push(fe(e)),s.setRequestHeader(e,ge(a.headers[e]))}),o.headers.forEach(function(e,t){-1===r.indexOf(t)&&s.setRequestHeader(t,e)})):o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",t),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",t)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})}$e.polyfill=!0,l.fetch||(l.fetch=$e,l.Headers=u,l.Request=Ae,l.Response=c),self.fetch.bind(self);var Pe=function(e,t){return(Pe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function Ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Pe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function He(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ke(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Fe(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Oe(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 Me=Oe(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 Ie(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=He(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(h(o))try{o()}catch(e){i=e instanceof Me?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=He(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{De(c)}catch(e){i=null!=i?i:[],e instanceof Me?i=Fe(Fe([],ke(i)),ke(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Me(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)De(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ie(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Ie(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((n=new r).closed=!0,n);var Le=r,Re=Le.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ne(e){return e instanceof Le||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function De(e){h(e)?e():e.unsubscribe()}var ze=void 0,Ue=!1,je=!1,Ge={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Ge.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Fe([e,t],ke(r))):setTimeout.apply(void 0,Fe([e,t],ke(r)))},clearTimeout:function(e){var t=Ge.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Je(){}var We=null;function Ve(e){if(Ue){var t=!We;if(t&&(We={errorThrown:!1,error:null}),e(),t){var t=We,r=t.errorThrown;if(We=null,r)throw t.error}}else e()}Ce(e,Xe=Le),e.create=function(e,t,r){return new et(e,t,r)},e.prototype.next=function(e){this.isStopped||this._next(e)},e.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Xe.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(e){this.destination.next(e)},e.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Xe,Ke=e,Ze=Function.prototype.bind;function e(e){var t=Xe.call(this)||this;return t.isStopped=!1,e?Ne(t.destination=e)&&e.add(t):t.destination=it,t}function Ye(e,t){return Ze.call(e,t)}rt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){nt(e)}},rt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){nt(e)}else nt(e)},rt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){nt(e)}};var qe,Qe=rt,et=(Ce(tt,qe=Ke),tt);function tt(e,t,r){var n=qe.call(this)||this,r=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&je?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&Ye(e.next,t),error:e.error&&Ye(e.error,t),complete:e.complete&&Ye(e.complete,t)}):e;return n.destination=new Qe(r),n}function rt(e){this.partialObserver=e}function nt(e){var t=e;Ge.setTimeout(function(){throw t})}var it={closed:!0,next:Je,error:function(e){throw e},complete:Je},n="function"==typeof Symbol&&Symbol.observable||"@@observable";i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Ke||n&&h(n.next)&&h(n.error)&&h(n.complete)&&Ne(n)?e:new et(e,t,r);return Ve(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(n,e){var i=this;return new(e=st(e))(function(e,t){var r=new et({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});i.subscribe(r)})},i.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},i.prototype[n]=function(){return this},i.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},i.prototype.toPromise=function(e){var n=this;return new(e=st(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},i.create=function(e){return new i(e)};var ot=i;function i(e){e&&(this._subscribe=e)}function st(e){return null!=(e=null!=e?e:ze)?e:Promise}var at,lt,ut,ct=Oe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),n=(Ce(o,ut=ot),o.prototype.lift=function(e){var t=new ht(this,this);return t.operator=e,t},o.prototype._throwIfClosed=function(){if(this.closed)throw new ct},o.prototype.next=function(i){var o=this;Ve(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=He(o.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},o.prototype.error=function(t){var r=this;Ve(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},o.prototype.complete=function(){var t=this;Ve(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(e){return this._throwIfClosed(),ut.prototype._trySubscribe.call(this,e)},o.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},o.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?Re:(this.currentObservers=null,i.push(e),new Le(function(){t.currentObservers=null,Ie(i,e)}))},o.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},o.prototype.asObservable=function(){var e=new ot;return e.source=this,e},o.create=function(e,t){return new ht(e,t)},o),ht=(Ce(ft,lt=n),ft.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},ft.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},ft.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},ft.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Re},ft),dt={now:function(){return(dt.delegate||Date).now()},delegate:void 0},pt=(Ce(mt,at=n),mt.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i)||n.push(o.now()+t),this._trimBuffer(),at.prototype.next.call(this,e)},mt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},mt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},mt);function mt(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=dt);var n=at.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function ft(e,t){var r=lt.call(this)||this;return r.destination=e,r.source=t,r}function o(){var e=ut.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let gt=[],yt={},bt=[];function vt(n,i=v){let o,s=new Set;function a(e){if(S(n,e)&&(n=e,o)){let e=!bt.length;for(let e of s)e[1](),bt.push(e,n);if(e){for(let e=0;e<bt.length;e+=2)bt[e][0](bt[e+1]);bt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=v){let r=[e,t];return s.add(r),1===s.size&&(o=i(a)||v),e(n),()=>{s.delete(r),0===s.size&&o&&(o(),o=null)}}}}function wt(e,a,t){let l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:vt(t,t=>{let r=!1,n=[],i=0,o=v,s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),c?t(e):o=d(e)?e:v)},e=u.map((e,t)=>z(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){$(e),o(),r=!1}}).subscribe}}function Et(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Tt);var t}var Tt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function xt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?$t(Array.isArray(e)?[]:{},e,t):e}function At(e,t,r){return e.concat(t).map(function(e){return xt(e,r)})}function St(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function _t(e,t){try{return t in e}catch(e){return!1}}function Bt(n,i,o){var s={};return o.isMergeableObject(n)&&St(n).forEach(function(e){s[e]=xt(n[e],o)}),St(i).forEach(function(e){var t,r;(!_t(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(_t(n,e)&&o.isMergeableObject(i[e])?s[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:$t)(n[e],i[e],o):s[e]=xt(i[e],o))}),s}function $t(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||At,r.isMergeableObject=r.isMergeableObject||Et,r.cloneUnlessOtherwiseSpecified=xt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Bt(e,t,r):xt(t,r)}$t.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return $t(e,t,r)},{});throw new Error("first argument should be an array")};var Pt=$t,Ct=function(e,t){return(Ct=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function Ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ct(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var g,b,kt,w=function(){return(w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ft(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Ot(e){return e.type===b.literal}function Mt(e){return e.type===b.number}function It(e){return e.type===b.date}function Lt(e){return e.type===b.time}function Rt(e){return e.type===b.select}function Nt(e){return e.type===b.plural}function Dt(e){return e.type===b.tag}function zt(e){return e&&"object"==typeof e&&e.type===kt.number}function Ut(e){return e&&"object"==typeof e&&e.type===kt.dateTime}(n=g=g||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=b=b||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=kt=kt||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,jt=/(?:[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 Gt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Wt=/^(@+)?(\+|#+)?[rs]?$/g,Vt=/(\*)(0+)|(#+)(0+)|(0+)/g,Xt=/^(0+)$/;function Kt(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Wt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Zt(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 Yt(e){return Zt(e)||{}}function qt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.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=i.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=w(w(w({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return w(w({},e),Yt(t))},{}));continue;case"engineering":s=w(w(w({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return w(w({},e),Yt(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(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Vt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Xt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Jt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Jt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=w(w({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=w(w({},s),Kt(o)))}else Wt.test(i.stem)?s=w(w({},s),Kt(i.stem)):((o=Zt(i.stem))&&(s=w(w({},s),o)),(n=(e=>{var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Xt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t})(i.stem))&&(s=w(w({},s),n)))}return s}var Qt={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 er=new RegExp("^".concat(n.source,"*")),tr=new RegExp("".concat(n.source,"*$"));function E(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,rr=!!String.fromCodePoint,nr=!!Object.fromEntries,ir=!!String.prototype.codePointAt,or=!!String.prototype.trimStart,sr=!!String.prototype.trimEnd,ar=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},lr=!0;try{lr="a"===(null==(Pr=yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Pr[0])}catch(v){lr=!1}var ur,cr,hr=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},dr=rr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},pr=nr?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];t[i[0]]=i[1]}return t},mr=ir?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},fr=or?function(e){return e.trimStart()}:function(e){return e.replace(er,"")},gr=sr?function(e){return e.trimEnd()}:function(e){return e.replace(tr,"")};function yr(e,t){return new RegExp(e,t)}cr=lr?(ur=yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return ur.lastIndex=t,null!=(t=ur.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=mr(e,t);if(void 0===i||wr(i)||33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094)break;n.push(i),t+=65536<=i?2:1}return dr.apply(void 0,n)};s.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},s.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(g.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&vr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}else{o=this.clonePosition();this.bump(),n.push({type:b.pound,location:E(o,this.clonePosition())})}}}return{val:n,err:null}},s.prototype.parseTag=function(e,t){var r,n=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:E(n,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!vr(this.char())?this.error(g.INVALID_TAG,E(e,this.clonePosition())):(r=this.clonePosition(),i!==this.parseTagName()?this.error(g.UNMATCHED_CLOSING_TAG,E(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:E(n,this.clonePosition())},err:null}:this.error(g.INVALID_TAG,E(e,this.clonePosition())))):this.error(g.UNCLOSED_TAG,E(n,this.clonePosition()))):this.error(g.INVALID_TAG,E(n,this.clonePosition()))},s.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())},s.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=E(r,this.clonePosition());return{val:{type:b.literal,value:n,location:r},err:null}},s.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(vr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},s.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return dr.apply(void 0,t)},s.prototype.tryParseUnquoted=function(e,t){var r;return this.isEOF()||60===(r=this.char())||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),dr(r))},s.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(g.EMPTY_ARGUMENT,E(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(g.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:n,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(g.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=cr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:E(e,this.clonePosition())}},s.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(g.EXPECT_ARGUMENT_TYPE,E(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=gr(h.val)).length)return this.error(g.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:E(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(n)).err?u:(p=E(n,this.clonePosition()),l&&hr(null==l?void 0:l.style,"::",0)?(m=fr(l.style.slice(2)),"number"===s?(h=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?h:{val:{type:b.number,value:r,location:p,style:h.val},err:null}:0===m.length?this.error(g.EXPECT_DATE_TIME_SKELETON,p):(c=m,this.locale&&(c=((e,t)=>{for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=(e=>{var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Qt[t||""]||Qt[r||""]||Qt["".concat(r,"-001")]||Qt["001"])[0]})(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r})(m,this.locale)),d={type:kt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(jt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.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":i.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":i.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":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.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":i.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""}),i):{}},{val:{type:"date"===s?b.date:b.time,value:r,location:p,style:d},err:null})):{val:{type:"number"===s?b.number:"date"===s?b.date:b.time,value:r,location:p,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS,E(c,w({},c)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),p=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=h.val}var m,l=this.tryParsePluralOrSelectOptions(e,s,t,d);return l.err?l:(u=this.tryParseArgumentClose(n)).err?u:(m=E(n,this.clonePosition()),"select"===s?{val:{type:b.select,value:r,options:pr(l.val),location:m},err:null}:{val:{type:b.plural,value:r,options:pr(l.val),offset:p,pluralType:"plural"===s?"cardinal":"ordinal",location:m},err:null});default:return this.error(g.INVALID_ARGUMENT_TYPE,E(o,a))}},s.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},s.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=(e=>{if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Gt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t})(e)}catch(e){return this.error(g.INVALID_NUMBER_SKELETON,t)}return{val:{type:kt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?qt(r):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR,g.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=E(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?g.DUPLICATE_SELECT_ARGUMENT_SELECTOR:g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;o.push([a,{value:u.val,location:E(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===t?g.EXPECT_SELECT_ARGUMENT_SELECTOR:g.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(g.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:o,err:null}},s.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=E(n,this.clonePosition());return i?ar(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},s.prototype.offset=function(){return this.position.offset},s.prototype.isEOF=function(){return this.offset()===this.message.length},s.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},s.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=mr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},s.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},s.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))},s.prototype.bumpIf=function(e){if(hr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},s.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)},s.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}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&wr(this.char());)this.bump()},s.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var br=s;function s(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 vr(e){return 97<=e&&e<=122||65<=e&&e<=90}function wr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Er(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new br(e,t).parse();if(e.err)throw(r=SyntaxError(g[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Rt(e)||Nt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Mt(e)&&zt(e.style)||(It(e)||Lt(e))&&Ut(e.style)?delete e.style.location:Dt(e)&&r(e.children)})}(e.val),e.val}function Tr(e,t){var r=t&&t.cache?t.cache:Cr,n=t&&t.serializer?t.serializer:_r;return(t&&t.strategy?t.strategy:function(e,t){return Sr(e,this,1===e.length?xr:Ar,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function xr(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function Ar(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Sr(e,t,r,n,i){return r.bind(t,e,n,i)}var _r=function(){return JSON.stringify(arguments)};function Br(){this.cache=Object.create(null)}Br.prototype.get=function(e){return this.cache[e]},Br.prototype.set=function(e,t){this.cache[e]=t};var $r,Pr,Cr={create:function(){return new Br}},Hr={variadic:function(e,t){return Sr(e,this,Ar,t.cache.create(),t.serializer)},monadic:function(e,t){return Sr(e,this,xr,t.cache.create(),t.serializer)}};(Pr=$r=$r||{}).MISSING_VALUE="MISSING_VALUE",Pr.INVALID_VALUE="INVALID_VALUE",Pr.MISSING_INTL_API="MISSING_INTL_API";Ht(jr,Mr=Error),jr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,kr,Fr,Or,Mr,Ir=jr,Lr=(Ht(Ur,Or=Ir),Ur),Rr=(Ht(zr,Fr=Ir),zr),Nr=(Ht(Dr,kr=Ir),Dr);function Dr(e,t){return kr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),$r.MISSING_VALUE,t)||this}function zr(e,t,r){return Fr.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),$r.INVALID_VALUE,r)||this}function Ur(e,t,r,n){return Or.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),$r.INVALID_VALUE,n)||this}function jr(e,t,r){e=Mr.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Gr(e,t,r,n,i,o,s){if(1===e.length&&Ot(e[0]))return[{type:T.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Ot(c))a.push({type:T.literal,value:c.value});else if(c.type===b.pound)"number"==typeof o&&a.push({type:T.literal,value:r.getNumberFormat(t).format(o)});else{var h=c.value;if(!(i&&h in i))throw new Nr(h,s);h=i[h];if(c.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?T.literal:T.object,value:h});else if(It(c)){var d="string"==typeof c.style?n.date[c.style]:Ut(c.style)?c.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(t,d).format(h)})}else if(Lt(c))d="string"==typeof c.style?n.time[c.style]:Ut(c.style)?c.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(t,d).format(h)});else if(Mt(c))(d="string"==typeof c.style?n.number[c.style]:zt(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:T.literal,value:r.getNumberFormat(t,d).format(h)});else{if(Dt(c)){var p=c.children,m=c.value,f=i[m];if("function"!=typeof f)throw new Rr(m,"function",s);m=f(Gr(p,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(Rt(c)){if(!(g=c.options[h]||c.options.other))throw new Lr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gr(g.value,t,r,n,i))}else if(Nt(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Ir('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',$r.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Lr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gr(g.value,t,r,n,i,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===T.literal&&t.type===T.literal?r.value+=t.value:e.push(t),e},[])}function Jr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=T=T||{})[n.literal=0]="literal",n[n.object=1]="object";Object.defineProperty(a,"defaultLocale",{get:function(){return a.memoizedDefaultLocale||(a.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),a.memoizedDefaultLocale},enumerable:!1,configurable:!0}),a.memoizedDefaultLocale=null,a.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])},a.__parse=Er,a.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 Wr=a;function a(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=a.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Gr(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=a.resolveLocale(t),"string"==typeof e){if(this.message=e,!a.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=a.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=a.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?w(w(w({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=w(w({},r[t]),n[t]||{}),e},{})):r),e},w({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:Tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Ft([void 0],t,!1)))},{cache:Jr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Hr.variadic}),getDateTimeFormat:Tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Ft([void 0],t,!1)))},{cache:Jr(t.dateTime),strategy:Hr.variadic}),getPluralRules:Tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Ft([void 0],t,!1)))},{cache:Jr(t.pluralRules),strategy:Hr.variadic})}}let m={},Vr=(e,t,r)=>r&&(t in m||(m[t]={}),e in m[t]||(m[t][e]=r),r),Xr=(t,r)=>{if(null!=r){if(r in m&&t in m[r])return m[r][t];var n=fn(r);for(let e=0;e<n.length;e++){var i=((e,t)=>{if(!Yr(e))return null;e=(e=>Kr[e]||null)(e);var n=t;if(null!=n){if(n in e)return e[n];var i=n.split(".");let r=e;for(let t=0;t<i.length;t++)if("object"==typeof r){if(0<t){let e=i.slice(t,i.length).join(".");if(e in r){r=r[e];break}}r=r[i[t]]}else r=void 0;return r}})(n[e],t);if(i)return Vr(t,r,i)}}},Kr,Zr=vt({});function Yr(e){return e in Kr}function qr(t,...r){delete m[t],Zr.update(e=>(e[t]=Pt.all([e[t]||{},...r]),e))}wt([Zr],([e])=>Object.keys(e)),Zr.subscribe(e=>Kr=e);let Qr={};function en(e){return Qr[e]}function tn(e){return null!=e&&fn(e).some(e=>null==(e=en(e))?void 0:e.size)}function rn(n,e){return Promise.all(e.map(e=>{return t=n,r=e,Qr[t].delete(r),0===Qr[t].size&&delete Qr[t],e().then(e=>e.default||e);var t,r})).then(e=>qr(n,...e))}let nn={};let on={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};let sn=vt(!1);var an=Object.defineProperty,rr=Object.defineProperties,nr=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,hn=(e,t,r)=>t in e?an(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let dn,pn=vt(null);function mn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function fn(e,t=on.fallbackLocale){e=mn(e);return t?[...new Set([...e,...mn(t)])]:e}function gn(){return null!=dn?dn:void 0}pn.subscribe(e=>{dn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});let se=rr(((e,t)=>{for(var r in t=t||{})un.call(t,r)&&hn(e,r,t[r]);if(ln)for(var r of ln(t))cn.call(t,r)&&hn(e,r,t[r]);return e})({},pn),nr({set:t=>{if(t&&(e=>{if(null!=e){var t=fn(e);for(let e=0;e<t.length;e++){var r=t[e];if(Yr(r))return r}}})(t)&&tn(t)){var r=on.loadingDelay;let e;return"undefined"!=typeof window&&null!=gn()&&r?e=window.setTimeout(()=>sn.set(!0),r):sn.set(!0),function e(t){var r;return tn(t)?(r=fn(t).map(e=>{var t=en(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),nn[t]=Promise.all(r.map(([e,t])=>rn(e,t))).then(()=>{if(tn(t))return e(t);delete nn[t]}),nn[t]):t in nn?nn[t]:Promise.resolve()}(t).then(()=>{pn.set(t)}).finally(()=>{clearTimeout(e),sn.set(!1)})}return pn.set(t)}}));var ir=r=>{let n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},yn=Object.defineProperty,bn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,En=(e,t,r)=>t in e?yn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tn=(e,t)=>{for(var r in t=t||{})vn.call(t,r)&&En(e,r,t[r]);if(bn)for(var r of bn(t))wn.call(t,r)&&En(e,r,t[r]);return e},xn=(e,t)=>{var r={};for(n in e)vn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&bn)for(var n of bn(e))t.indexOf(n)<0&&wn.call(e,n)&&(r[n]=e[n]);return r};let An=(e,t)=>{var r=on.formats;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Sn=ir(e=>{var{locale:t,format:r}=e,e=xn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=An("number",r)),new Intl.NumberFormat(t,e)}),_n=ir(e=>{var{locale:t,format:r}=e,e=xn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=An("date",r):0===Object.keys(e).length&&(e=An("date","short")),new Intl.DateTimeFormat(t,e)}),Bn=ir(e=>{var{locale:t,format:r}=e,e=xn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=An("time",r):0===Object.keys(e).length&&(e=An("time","short")),new Intl.DateTimeFormat(t,e)}),$n=ir((e,t=gn())=>new Wr(e,t,on.formats,{ignoreTag:on.ignoreTag})),Pn=wt([se,Zr],()=>(e,t={})=>{let r,n,i,o,s=t;"object"==typeof e&&(e=(s=e).id);var{values:a,locale:l=gn(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Xr(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=on).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))?i:u)?o:e;if(!a)return c;let h=c;try{h=$n(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h}),Cn=(wt([se],()=>(e,t)=>((e={})=>{var{locale:t=gn()}=e,e=xn(e,["locale"]);return Bn(Tn({locale:t},e))})(t).format(e)),wt([se],()=>(e,t)=>((e={})=>{var{locale:t=gn()}=e,e=xn(e,["locale"]);return _n(Tn({locale:t},e))})(t).format(e)),wt([se],()=>(e,t)=>((e={})=>{var{locale:t=gn()}=e,e=xn(e,["locale"]);return Sn(Tn({locale:t},e))})(t).format(e)),wt([se,Zr],()=>(e,t=gn())=>Xr(e,t)),window.emWidgets={topic:(e,t=0)=>(-1==gt.indexOf(e)&&(t=new pt(t),yt[e]=t,gt.push(e)),yt[e])},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Hn(e,t){qr(e,t)}let kn={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}};function Fn(e,t){qr(e,t)}let On={en:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"U tijeku",ongoing:"Završeno",finished:"Počinje u",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görebilirsiniz",here:"Burada",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Buradan başlayarak:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Devir",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function Mn(r){let n,i,o,s,a,l;return{c(){n=F("div"),i=O(r[13]),L(n,"class",o="Status "+r[15]),L(n,"part",s="Status "+r[15])},m(e,t){H(e,n,t),C(n,i),a||(l=P(r[18].call(null,n)),a=!0)},p(e,t){8192&t[0]&&R(i,e[13]),32768&t[0]&&o!==(o="Status "+e[15])&&L(n,"class",o),32768&t[0]&&s!==(s="Status "+e[15])&&L(n,"part",s)},d(e){e&&k(n),a=!1,l()}}}function In(e){let r,n=e[5]&&Ln(e);return{c(){n&&n.c(),r=j()},m(e,t){n&&n.m(e,t),H(e,r,t)},p(e,t){e[5]?n?n.p(e,t):((n=Ln(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&k(r)}}}function Ln(e){let r,n,i=e[16]("enrolled")+"";return{c(){r=F("div"),n=O(i),L(r,"class","Enrolled"),L(r,"part","Enrolled")},m(e,t){H(e,r,t),C(r,n)},p(e,t){65536&t[0]&&i!==(i=e[16]("enrolled")+"")&&R(n,i)},d(e){e&&k(r)}}}function Rn(r){let n,i,o,s,a;return{c(){L(n=F("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),L(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),f(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){H(e,n,t),s||(a=P(r[18].call(null,n)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"part",o)},d(e){e&&k(n),s=!1,a()}}}function Nn(r){let n,i,o,s,a;return{c(){L(n=F("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),L(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),f(n,"background-image","url('"+r[4]+"')")},m(e,t){H(e,n,t),s||(a=P(r[18].call(null,n)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"part",o),16&t[0]&&f(n,"background-image","url('"+e[4]+"')")},d(e){e&&k(n),s=!1,a()}}}function Dn(r){let n,i,o,s,a;return{c(){n=F("div"),i=O(r[11]),L(n,"class","Date"),L(n,"part","Date")},m(e,t){H(e,n,t),C(n,i),s||(a=P(o=r[17].call(null,n,r[2])),s=!0)},p(e,t){2048&t[0]&&R(i,e[11]),o&&d(o.update)&&4&t[0]&&o.update.call(null,e[2])},d(e){e&&k(n),s=!1,a()}}}function zn(r){let n,i,o,s,a,l,u,c,h,d,p,m,f,g,y,b,v,w,E,T,x,A=r[16]("scoreCriteria")+"",S=r[16]("minbet")+"",_=r[16]("seegames")+"",B=r[16]("here")+"";return{c(){n=F("div"),i=F("p"),o=O(A),s=O(":\n \n "),a=F("span"),l=O(r[14]),u=O("\n ("),c=O(S),h=M(),d=O(r[6]),p=O(")"),m=M(),f=F("div"),g=F("p"),y=O(_),b=M(),v=F("a"),w=O(B),L(a,"part","ScoreCriteriaSpan"),L(i,"part","ScoreCriteriaP"),L(n,"class","ScoreCriteria"),L(n,"part","ScoreCriteria"),L(v,"part","GamesAnchor"),L(v,"href",r[8]),L(v,"target",E="true"===r[9]?"_self":"_blank"),L(g,"part","GamesP"),L(f,"class","Games"),L(f,"part","Games")},m(e,t){H(e,n,t),C(n,i),C(i,o),C(i,s),C(i,a),C(a,l),C(i,u),C(i,c),C(i,h),C(i,d),C(i,p),H(e,m,t),H(e,f,t),C(f,g),C(g,y),C(g,b),C(g,v),C(v,w),T||(x=[P(r[19].call(null,a)),I(v,"click",r[28])],T=!0)},p(e,t){65536&t[0]&&A!==(A=e[16]("scoreCriteria")+"")&&R(o,A),16384&t[0]&&R(l,e[14]),65536&t[0]&&S!==(S=e[16]("minbet")+"")&&R(c,S),64&t[0]&&R(d,e[6]),65536&t[0]&&_!==(_=e[16]("seegames")+"")&&R(y,_),65536&t[0]&&B!==(B=e[16]("here")+"")&&R(w,B),256&t[0]&&L(v,"href",e[8]),512&t[0]&&E!==(E="true"===e[9]?"_self":"_blank")&&L(v,"target",E)},d(e){e&&k(n),e&&k(m),e&&k(f),T=!1,$(x)}}}function Un(r){let n,i,o,s,a,l,u,c,h,d=r[0]&&Mn(r),p="true"==r[7]&&In(r);function m(e){return e[4]?Nn:Rn}let f=m(r),g=f(r),y=r[2]&&Dn(r),b=r[12]&&zn(r);return{c(){n=F("div"),d&&d.c(),i=M(),p&&p.c(),o=M(),g.c(),s=M(),a=F("div"),l=F("div"),u=O(r[1]),c=M(),y&&y.c(),h=M(),b&&b.c(),this.c=v,L(l,"class","Title"),L(l,"part","Title"),L(a,"class","Details"),L(a,"part","Details"),L(n,"class","Thumbnail"),L(n,"part","Thumbnail")},m(e,t){H(e,n,t),d&&d.m(n,null),C(n,i),p&&p.m(n,null),C(n,o),g.m(n,null),C(n,s),C(n,a),C(a,l),C(l,u),C(a,c),y&&y.m(a,null),C(a,h),b&&b.m(a,null),r[29](n)},p(e,t){e[0]?d?d.p(e,t):((d=Mn(e)).c(),d.m(n,i)):d&&(d.d(1),d=null),"true"==e[7]?p?p.p(e,t):((p=In(e)).c(),p.m(n,o)):p&&(p.d(1),p=null),f===(f=m(e))&&g?g.p(e,t):(g.d(1),(g=f(e))&&(g.c(),g.m(n,s))),2&t[0]&&R(u,e[1]),e[2]?y?y.p(e,t):((y=Dn(e)).c(),y.m(a,h)):y&&(y.d(1),y=null),e[12]?b?b.p(e,t):((b=zn(e)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:v,o:v,d(e){e&&k(n),d&&d.d(),p&&p.d(),g.d(),y&&y.d(),b&&b.d(),r[29](null)}}}function jn(t,e,n){let i;ae(t,Pn,e=>n(16,i=e));let r,{session:o=""}=e,{userid:s=""}=e,{title:a=""}=e,{startdate:l=""}=e,{status:u=""}=e,{tourid:c=""}=e,{thumbnail:h=""}=e,{userenrolled:d=""}=e,{scorecriteria:p=""}=e,{minbetcount:m=""}=e,{showenrolled:f="false"}=e,{gameurl:g=""}=e,{lang:y="en"}=e,{keepbrowsercontext:b="false"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationurl:E=""}=e,T="",x=!1,A="",S="",_="",B=(Object.keys(On).forEach(e=>{Fn(e,On[e])}),e=>{e.data&&(e.data,"SessionID"==e.data.type&&n(12,x=!0),e.data.type=="TournamentStatus_"+c)&&n(0,u=e.data.status)}),$=()=>{var e=new Date(l),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),r=e.getDate(),e=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});n(11,T=r+" "+i(""+t)+", "+i("Running"===u?"startedAt":"startingAt")+" "+e)},P=()=>{"Unstarted"==u&&(n(13,A=i("scheduled")),n(15,_="StatusUnstarted")),"Running"==u&&(n(13,A=i("ongoing")),n(15,_="StatusRunning")),"Closed"!=u&&"Closing"!=u||n(13,A=i("finished")),"Closed"==u&&n(15,_="StatusClosed"),"Closing"==u&&n(15,_="StatusClosing")},C=()=>{"BetCount"==p&&n(14,S=i("betCount")),"MaxWinStakeRatio"==p&&n(14,S=i("maxWinStakeRatio")),"WinStakeRatio"==p&&n(14,S=i("winStakeRatio")),"Stake"==p&&n(14,S=i("stake"))},H=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)},k=(le(()=>(setTimeout(()=>k(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",B,!1),()=>{window.removeEventListener("message",B)})),()=>{var e=y;se.set(e),C(),P(),l&&$()});return t.$$set=e=>{"session"in e&&n(21,o=e.session),"userid"in e&&n(22,s=e.userid),"title"in e&&n(1,a=e.title),"startdate"in e&&n(2,l=e.startdate),"status"in e&&n(0,u=e.status),"tourid"in e&&n(3,c=e.tourid),"thumbnail"in e&&n(4,h=e.thumbnail),"userenrolled"in e&&n(5,d=e.userenrolled),"scorecriteria"in e&&n(23,p=e.scorecriteria),"minbetcount"in e&&n(6,m=e.minbetcount),"showenrolled"in e&&n(7,f=e.showenrolled),"gameurl"in e&&n(8,g=e.gameurl),"lang"in e&&n(24,y=e.lang),"keepbrowsercontext"in e&&n(9,b=e.keepbrowsercontext),"clientstyling"in e&&n(25,v=e.clientstyling),"clientstylingurl"in e&&n(26,w=e.clientstylingurl),"translationurl"in e&&n(27,E=e.translationurl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&r&&v&&((e=document.createElement("style")).innerHTML=v,r.appendChild(e)),67109888&t.$$.dirty[0]&&r&&w){let e=new URL(w),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e;134217728&t.$$.dirty[0]&&E&&fetch(E).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Fn(e,t[e])})}).catch(e=>{console.log(e)}),2097152&t.$$.dirty[0]&&o&&(0<o.length&&"false"!=o?n(12,x=!0):n(12,x=!1)),1&t.$$.dirty[0]&&u&&P(),16777218&t.$$.dirty[0]&&a&&y&&k(),4&t.$$.dirty[0]&&l&&$(),8388608&t.$$.dirty[0]&&p&&C()},[u,a,l,c,h,d,m,f,g,b,r,T,x,A,S,_,i,$,P,C,H,o,s,p,y,v,w,E,()=>H(),function(e){oe[e?"unshift":"push"](()=>{r=e,n(10,r)})}]}function Gn(e,t){qr(e,t)}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends ne{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", 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;font-family:"Roboto"}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}',this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},jn,Un,S,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},null,[-1,-1]),e&&(e.target&&H(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),p()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),p()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),p()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),p()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),p()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),p()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),p()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),p()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),p()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),p()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),p()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),p()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),p()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),p()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),p()}});let Jn={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}};function Wn(r){let n,i,o,s,a,l,u,c,h,d,p,m,f=r[10](r[0])+"",g=r[10](r[1])+"";function y(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Kn:0<e[5]?Xn:Vn}let b=y(r),v=b(r);function w(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?qn:0<e[5]?Yn:0<e[4]?Zn:void 0}let E=w(r),T=E&&E(r);return{c(){n=F("div"),i=F("div"),o=O(f),s=M(),a=F("div"),l=O(g),u=M(),c=F("div"),h=F("div"),v.c(),d=M(),T&&T.c(),L(i,"class","StartDate"),L(i,"part","StartDate"),L(a,"class","EndDate"),L(a,"part","EndDate"),L(n,"class","TournamentDates"),L(n,"part","TournamentDates"),L(h,"class","ProgressBar"),L(h,"part","ProgressBar"),L(c,"class","ProgressBarWrapper"),L(c,"part","ProgressBarWrapper")},m(e,t){H(e,n,t),C(n,i),C(i,o),C(n,s),C(n,a),C(a,l),H(e,u,t),H(e,c,t),C(c,h),v.m(h,null),C(h,d),T&&T.m(h,null),p||(m=P(r[9].call(null,c)),p=!0)},p(e,t){1&t&&f!==(f=e[10](e[0])+"")&&R(o,f),2&t&&g!==(g=e[10](e[1])+"")&&R(l,g),b===(b=y(e))&&v?v.p(e,t):(v.d(1),(v=b(e))&&(v.c(),v.m(h,d))),E===(E=w(e))&&T?T.p(e,t):(T&&T.d(1),(T=E&&E(e))&&(T.c(),T.m(h,null)))},d(e){e&&k(n),e&&k(u),e&&k(c),v.d(),T&&T.d(),p=!1,m()}}}function Vn(e){let r;return{c(){L(r=F("div"),"class","ProgressBarFill"),L(r,"part","ProgressBarFill"),f(r,"width",e[7]()+"%")},m(e,t){H(e,r,t)},p(e,t){128&t&&f(r,"width",e[7]()+"%")},d(e){e&&k(r)}}}function Xn(e){let r;return{c(){L(r=F("div"),"class","ProgressBarFillStarting"),L(r,"part","ProgressBarFillStarting")},m(e,t){H(e,r,t)},p:v,d(e){e&&k(r)}}}function Kn(e){let r;return{c(){L(r=F("div"),"class","ProgressBarFillEnd"),L(r,"part","ProgressBarFillEnd")},m(e,t){H(e,r,t)},p:v,d(e){e&&k(r)}}}function Zn(e){let r,n,i,o,s=e[8]("left")+"";return{c(){r=F("div"),n=O(e[6]),i=M(),o=O(s),L(r,"class","Remaining"),L(r,"part","Remaining")},m(e,t){H(e,r,t),C(r,n),C(r,i),C(r,o)},p(e,t){64&t&&R(n,e[6]),256&t&&s!==(s=e[8]("left")+"")&&R(o,s)},d(e){e&&k(r)}}}function Yn(e){let r,n,i,o,s=e[8]("starting")+"",a=e[11](e[5])+"";return{c(){r=F("div"),n=O(s),i=M(),o=O(a),L(r,"class","Remaining"),L(r,"part","Remaining")},m(e,t){H(e,r,t),C(r,n),C(r,i),C(r,o)},p(e,t){256&t&&s!==(s=e[8]("starting")+"")&&R(n,s),32&t&&a!==(a=e[11](e[5])+"")&&R(o,a)},d(e){e&&k(r)}}}function qn(e){let r,n,i=e[8]("finished")+"";return{c(){r=F("div"),n=O(i),L(r,"class","Finished"),L(r,"part","Finished")},m(e,t){H(e,r,t),C(r,n)},p(e,t){256&t&&i!==(i=e[8]("finished")+"")&&R(n,i)},d(e){e&&k(r)}}}function Qn(r){let n,i=r[0]&&r[1]&&Wn(r);return{c(){n=F("div"),i&&i.c(),this.c=v,L(n,"class","TournamentDuration"),L(n,"part","TournamentDuration")},m(e,t){H(e,n,t),i&&i.m(n,null),r[16](n)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=Wn(e)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&k(n),i&&i.d(),r[16](null)}}}function ei(t,e,r){let n,i;ae(t,Pn,e=>r(8,i=e));let o,{startdate:s=""}=e,{enddate:a=""}=e,{status:l=""}=e,{lang:u="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,p="",m="",f="",g=(Object.keys(Jn).forEach(e=>{Gn(e,Jn[e])}),e=>new Date(e).getTime()),y=(e,t)=>(g(t)-g(e))/6e4,b=()=>{var e=new Date;r(4,p=y(e,a)),r(5,m=y(e,s)),r(6,f=v(p))},v=e=>{var t;return e<1440?[e/60,t=e%60,60*(t-Math.floor(t))].map(e=>(e=Math.floor(e))<10?"0"+e:""+e).join(":"):Math.ceil(e/1440)+" "+i("days")};return le(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);let e=setInterval(()=>{s&&a&&b()},1e3);return()=>clearInterval(e)}),t.$$set=e=>{"startdate"in e&&r(0,s=e.startdate),"enddate"in e&&r(1,a=e.enddate),"status"in e&&r(2,l=e.status),"lang"in e&&r(12,u=e.lang),"clientstyling"in e&&r(13,c=e.clientstyling),"clientstylingurl"in e&&r(14,h=e.clientstylingurl),"translationurl"in e&&r(15,d=e.translationurl)},t.$$.update=()=>{if(19&t.$$.dirty&&r(7,n=()=>{var e,t;return p<=0?100:(t=100/(e=y(s,a)),Math.floor((e-p)*t))}),19&t.$$.dirty&&s&&a&&b(),4096&t.$$.dirty&&u&&b(),4112&t.$$.dirty&&u&&v(p),32768&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Gn(e,t[e])})}).catch(e=>{console.log(e)}),8200&t.$$.dirty&&o&&c&&((e=document.createElement("style")).innerHTML=c,o.appendChild(e)),16392&t.$$.dirty&&o&&h){let e=new URL(h),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},[s,a,l,o,p,m,f,n,i,b,e=>{var e=new Date(e),t=new Intl.DateTimeFormat(u,{month:"long"}).format(e);return`${e.getDate()} ${t}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+e.getUTCFullYear()},v,u,c,h,d,function(e){oe[e?"unshift":"push"](()=>{o=e,r(3,o)})}]}function ti(e,t){qr(e,t)}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends ne{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},ei,Qn,S,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&H(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),p()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),p()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),p()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),p()}});let ri={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}};function ni(e,t,r){e=e.slice();return e[13]=t[r],e[15]=r,e}function ii(t){let i,o=t[1],s=[];for(let e=0;e<o.length;e+=1)s[e]=si(ni(t,o,e));let a=null;return o.length||(a=oi(t)),{c(){i=F("div");for(let e=0;e<s.length;e+=1)s[e].c();a&&a.c(),L(i,"class","Prizes"),L(i,"part","Prizes")},m(e,t){H(e,i,t);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(i,null);a&&a.m(i,null)},p(r,n){if(6&n){let t;for(o=r[1],t=0;t<o.length;t+=1){let e=ni(r,o,t);s[t]?s[t].p(e,n):(s[t]=si(e),s[t].c(),s[t].m(i,null))}for(;t<s.length;t+=1)s[t].d(1);s.length=o.length,!o.length&&a?a.p(r,n):o.length?a&&(a.d(1),a=null):((a=oi(r)).c(),a.m(i,null))}},d(e){e&&k(i),U(s,e),a&&a.d()}}}function oi(e){let r,n,i=e[2]("noprizes")+"";return{c(){r=F("p"),n=O(i)},m(e,t){H(e,r,t),C(r,n)},p(e,t){4&t&&i!==(i=e[2]("noprizes")+"")&&R(n,i)},d(e){e&&k(r)}}}function si(e){let r,n,i,o,s,a,l,u,c,h=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"",d=e[2]("place")+"",p=e[13].name+"";return{c(){r=F("div"),n=F("p"),i=F("span"),o=O(h),s=M(),a=O(d),l=O(": "),u=O(p),c=M(),L(i,"class","PrizeRank"),L(i,"part","PrizeRank"),L(n,"class","PrizeText"),L(n,"part","PrizeText"),L(r,"class","Prize Prize"+e[15]),L(r,"part","Prize Prize"+e[15])},m(e,t){H(e,r,t),C(r,n),C(n,i),C(i,o),C(n,s),C(n,a),C(n,l),C(n,u),C(r,c)},p(e,t){2&t&&h!==(h=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"")&&R(o,h),4&t&&d!==(d=e[2]("place")+"")&&R(a,d),2&t&&p!==(p=e[13].name+"")&&R(u,p)},d(e){e&&k(r)}}}function ai(r){let n,i,o,s,a,l,u,c=r[2]("prizes")+"",h=r[1]&&ii(r);return{c(){n=F("div"),i=F("div"),(o=F("span")).innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',s=M(),a=F("p"),l=O(c),u=M(),h&&h.c(),this.c=v,L(o,"class","TournamentPrizesIconWrapper"),L(o,"part","TournamentPrizesIconWrapper"),L(a,"class","PrizesTitle"),L(a,"part","PrizesTitle"),L(i,"class","TournamentPrizesIconSection"),L(i,"part","TournamentPrizesIconSection"),L(n,"class","TournamentPrizes"),L(n,"part","TournamentPrizes")},m(e,t){H(e,n,t),C(n,i),C(i,o),C(i,s),C(i,a),C(a,l),C(n,u),h&&h.m(n,null),r[7](n)},p(e,[t]){4&t&&c!==(c=e[2]("prizes")+"")&&R(l,c),e[1]?h?h.p(e,t):((h=ii(e)).c(),h.m(n,null)):h&&(h.d(1),h=null)},i:v,o:v,d(e){e&&k(n),h&&h.d(),r[7](null)}}}function li(t,e,r){let n;ae(t,Pn,e=>r(2,n=e));let i,o,{tourid:s=""}=e,{clientstyling:a=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e,c=(Object.keys(ri).forEach(e=>{ti(e,ri[e])}),e=>{e.data&&e.data.type=="TournamentPrizes_"+s&&r(1,o=e.data.prizes)});return le(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"tourid"in e&&r(3,s=e.tourid),"clientstyling"in e&&r(4,a=e.clientstyling),"clientstylingurl"in e&&r(5,l=e.clientstylingurl),"translationurl"in e&&r(6,u=e.translationurl)},t.$$.update=()=>{if(17&t.$$.dirty&&i&&a&&((e=document.createElement("style")).innerHTML=a,i.appendChild(e)),33&t.$$.dirty&&i&&l){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;64&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ti(e,t[e])})}).catch(e=>{console.log(e)})},[i,o,n,s,a,l,u,function(e){oe[e?"unshift":"push"](()=>{i=e,r(0,i)})}]}function ui(e,t){qr(e,t)}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends ne{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},li,ai,S,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},null),e&&(e.target&&H(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl","translationurl"]}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),p()}});let ci={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"}};function hi(e,t,r){e=e.slice();return e[50]=t[r],e[52]=r,e}function di(r){let n,i,o,s,a,l,u,c,h,d,p=r[1],m=[];for(let e=0;e<p.length;e+=1)m[e]=pi(hi(r,p,e));return{c(){n=F("div"),(i=F("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',o=M(),s=F("main"),a=F("div");for(let e=0;e<m.length;e+=1)m[e].c();u=M(),(c=F("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',L(i,"class","SliderNavButton"),L(i,"part","SliderNavButton"),G(i,"disabled",r[8]),L(a,"class","items"),L(a,"part","items"),f(a,"transform","translateX("+r[2]+"px)"),q(()=>r[28].call(s)),L(c,"class","SliderNavButton"),L(c,"part","SliderNavButton"),G(c,"disabled",r[9]),L(n,"class","TournamentsGamesSlider"),L(n,"part","TournamentsGamesSlider")},m(e,t){H(e,n,t),C(n,i),C(n,o),C(n,s),C(s,a);for(let e=0;e<m.length;e+=1)m[e]&&m[e].m(a,null);r[27](a),l=((e,t)=>{"static"===getComputedStyle(e).position&&(e.style.position="relative");let r=F("iframe"),n=(r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1,(()=>{if(void 0===B){B=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){B=!0}}return B})()),i;return n?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=I(window,"message",e=>{e.source===r.contentWindow&&t()})):(r.src="about:blank",r.onload=()=>{i=I(r.contentWindow,"resize",t),t()}),C(e,r),()=>{(n||i&&r.contentWindow)&&i(),k(r)}})(s,r[28].bind(s)),C(n,u),C(n,c),r[30](n),h||(d=[I(i,"click",r[23]),I(c,"click",r[29])],h=!0)},p(t,r){if(256&r[0]&&G(i,"disabled",t[8]),23650&r[0]){let e;for(p=t[1],e=0;e<p.length;e+=1){var n=hi(t,p,e);m[e]?m[e].p(n,r):(m[e]=pi(n),m[e].c(),m[e].m(a,null))}for(;e<m.length;e+=1)m[e].d(1);m.length=p.length}4&r[0]&&f(a,"transform","translateX("+t[2]+"px)"),512&r[0]&&G(c,"disabled",t[9])},d(e){e&&k(n),U(m,e),r[27](null),l(),r[30](null),h=!1,$(d)}}}function pi(r){let n,i,o,s,a,l,u,c,h,d,p,m,f,g=r[10]("playNow")+"";function y(){return r[24](r[50])}function b(){return r[25](r[52])}return{c(){n=F("div"),i=F("span"),o=O(g),l=M(),u=F("img"),p=M(),L(i,"class",s="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":"")),L(i,"part",a="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":"")),D(u.src,c=r[50].thumbnail)||L(u,"src",c),L(u,"width","132px"),L(u,"height","100px"),L(u,"alt",h=r[50].name),L(u,"title",d=r[50].name),L(n,"class","item"),L(n,"part","item")},m(e,t){H(e,n,t),C(n,i),C(i,o),C(n,l),C(n,u),C(n,p),m||(f=[I(n,"click",y),I(n,"mouseenter",b),I(n,"mouseleave",r[26])],m=!0)},p(e,t){r=e,1024&t[0]&&g!==(g=r[10]("playNow")+"")&&R(o,g),96&t[0]&&s!==(s="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":""))&&L(i,"class",s),96&t[0]&&a!==(a="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":""))&&L(i,"part",a),2&t[0]&&!D(u.src,c=r[50].thumbnail)&&L(u,"src",c),2&t[0]&&h!==(h=r[50].name)&&L(u,"alt",h),2&t[0]&&d!==(d=r[50].name)&&L(u,"title",d)},d(e){e&&k(n),m=!1,$(f)}}}function mi(r){let n,i=r[1]&&0<r[1].length&&di(r);return{c(){n=F("div"),i&&i.c(),this.c=v},m(e,t){H(e,n,t),i&&i.m(n,null),r[31](n)},p(e,t){e[1]&&0<e[1].length?i?i.p(e,t):((i=di(e)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&k(n),i&&i.d(),r[31](null)}}}function fi(r,e,n){let i,o,t;ae(r,Pn,e=>n(10,t=e));let s,a,l,u,c,h,{tournamenturl:d=""}=e,{scrollby:p="3"}=e,{pagfactor:m="175"}=e,{lang:f=""}=e,{translationurl:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,v=window.navigator.userAgent,w=[],E=0,T=null,x=null,A=!1,S=0,_=(Object.keys(ci).forEach(e=>{ui(e,ci[e])}),e=>{n(5,A=!0),n(6,u=e)}),B=()=>{n(5,A=!1),n(6,u=-1)},$=e=>{e=(e.touches||e.originalEvent.touches)[0];T=e.clientX,x=e.clientY},P=e=>{var t;T&&x&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=T-t,e=x-e,Math.abs(t)>Math.abs(e)&&C(0<t?1:-1),T=null,x=null)},C=e=>{0<e&&!o?(n(2,E-=a),n(2,E=E<S?S:E)):e<0&&!i&&(n(2,E+=a),n(2,E=0<E?0:E))},H=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name,launchUrl:e.launchUrl},window.location.href)};return le(()=>(a=parseInt(p,10)*parseInt(m,10),()=>{l.removeEventListener("touchstart",$),l.removeEventListener("touchmove",P)})),r.$$set=e=>{"tournamenturl"in e&&n(17,d=e.tournamenturl),"scrollby"in e&&n(15,p=e.scrollby),"pagfactor"in e&&n(16,m=e.pagfactor),"lang"in e&&n(18,f=e.lang),"translationurl"in e&&n(19,g=e.translationurl),"clientstyling"in e&&n(20,y=e.clientstyling),"clientstylingurl"in e&&n(21,b=e.clientstylingurl)},r.$$.update=()=>{if(4&r.$$.dirty[0]&&n(8,i=0===E),4194308&r.$$.dirty[0]&&n(9,o=E<=S),16&r.$$.dirty[0]&&h&&0<h&&h<Math.floor((parseInt(p)+1)*m)&&n(15,p=Math.ceil(h/m).toString()),131072&r.$$.dirty[0]&&d&&(e=new URL(d),t=new Headers,e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${E})`),e.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),e.searchParams.append("language",f),e.searchParams.append("platform",Cn(v)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{n(1,w=e.item.games.items),e.item.games.total})),8&r.$$.dirty[0]&&l&&(l.addEventListener("touchstart",$,{passive:!0}),l.addEventListener("touchmove",P,{passive:!0})),524288&r.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ui(e,t[e])})}).catch(e=>{console.log(e)}),2&r.$$.dirty[0]&&w.length&&setTimeout(()=>{n(22,S=-1*(c.scrollWidth-c.clientWidth)),n(16,m=new String(c.scrollWidth/w.length)),a=parseInt(p,10)*parseFloat(m,2).toFixed(2)},1e3),1048577&r.$$.dirty[0]&&y&&s&&((e=document.createElement("style")).innerHTML=y,s.appendChild(e)),2097153&r.$$.dirty[0]&&b&&s){let e=new URL(b),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t},n(2,E=0),[s,w,E,l,h,A,u,c,i,o,t,_,B,C,H,p,m,d,f,g,y,b,S,()=>C(-1),e=>H(e),e=>_(e),()=>B(),function(e){oe[e?"unshift":"push"](()=>{c=e,n(7,c)})},function(){h=this.clientWidth,n(4,h)},()=>C(1),function(e){oe[e?"unshift":"push"](()=>{l=e,n(3,l)})},function(e){oe[e?"unshift":"push"](()=>{s=e,n(0,s)})}]}function gi(e){let r,n,i,o,s,a,l,u,c,h=e[14]&&bi(e);function d(e){return e[14]?"Closed"!=e[23]&&"Closing"!=e[23]?Ei:"true"==e[3]?wi:void 0:Ti}let p=d(e),m=p&&p(e),f=(e[17]||e[19])&&Pi(e),g="true"==e[4]&&Ci(e);return{c(){r=F("div"),n=F("casino-tournaments-thumbnail"),i=M(),h&&h.c(),o=M(),s=F("div"),m&&m.c(),a=M(),f&&f.c(),l=M(),g&&g.c(),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"title",e[20]),y(n,"status",e[23]),y(n,"startdate",e[21]),y(n,"tourid",e[24]),y(n,"scorecriteria",e[27]),y(n,"minbetcount",e[28]),y(n,"thumbnail",e[25]),y(n,"showenrolled",e[5]),y(n,"gameurl",e[30]),y(n,"userenrolled",e[26]),y(n,"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"translationurl",e[12]),y(n,"lang",e[8]),y(n,"keepbrowsercontext",e[9]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),L(s,"class","TournamentButtons"),L(s,"part","TournamentButtons"),L(r,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")),L(r,"part",c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){H(e,r,t),C(r,n),C(r,i),h&&h.m(r,null),C(r,o),C(r,s),m&&m.m(s,null),C(r,a),f&&f.m(r,null),C(r,l),g&&g.m(r,null)},p(e,t){1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),1048576&t[0]&&y(n,"title",e[20]),8388608&t[0]&&y(n,"status",e[23]),2097152&t[0]&&y(n,"startdate",e[21]),16777216&t[0]&&y(n,"tourid",e[24]),134217728&t[0]&&y(n,"scorecriteria",e[27]),268435456&t[0]&&y(n,"minbetcount",e[28]),33554432&t[0]&&y(n,"thumbnail",e[25]),32&t[0]&&y(n,"showenrolled",e[5]),1073741824&t[0]&&y(n,"gameurl",e[30]),67108864&t[0]&&y(n,"userenrolled",e[26]),1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),4096&t[0]&&y(n,"translationurl",e[12]),256&t[0]&&y(n,"lang",e[8]),512&t[0]&&y(n,"keepbrowsercontext",e[9]),e[14]?h?h.p(e,t):((h=bi(e)).c(),h.m(r,o)):h&&(h.d(1),h=null),p===(p=d(e))&&m?m.p(e,t):(m&&m.d(1),(m=p&&p(e))&&(m.c(),m.m(s,null))),e[17]||e[19]?f?f.p(e,t):((f=Pi(e)).c(),f.m(r,l)):f&&(f.d(1),f=null),"true"==e[4]?g?g.p(e,t):((g=Ci(e)).c(),g.m(r,null)):g&&(g.d(1),g=null),192&t[0]|1&t[1]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"class",u),192&t[0]|1&t[1]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"part",c)},d(e){e&&k(r),h&&h.d(),m&&m.d(),f&&f.d(),g&&g.d()}}}function yi(e){let r,n,i,o;return{c(){r=F("div"),(n=F("div")).innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> \n <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> \n <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> \n <div class="ph-col-4" part="ph-col-4"></div> \n <div class="ph-col-8 empty" part="ph-col-8 empty"></div> \n <div class="ph-col-6" part="ph-col-6"></div> \n <div class="ph-col-6 empty" part="ph-col-6 empty"></div> \n <div class="ph-col-12" part="ph-col-12"></div></div></div>',L(n,"class","ph-item"),L(n,"part","ph-item"),L(r,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")),L(r,"part",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){H(e,r,t),C(r,n)},p(e,t){192&t[0]|1&t[1]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"class",i),192&t[0]|1&t[1]&&o!==(o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"part",o)},d(e){e&&k(r)}}}function bi(e){let r,n,i=e[24]&&vi(e);return{c(){i&&i.c(),r=M(),y(n=F("casino-tournaments-thumbnail-duration"),"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"translationurl",e[12]),y(n,"status",e[23]),y(n,"startdate",e[21]),y(n,"lang",e[8]),y(n,"enddate",e[22]),y(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),H(e,r,t),H(e,n,t)},p(e,t){e[24]?i?i.p(e,t):((i=vi(e)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),4096&t[0]&&y(n,"translationurl",e[12]),8388608&t[0]&&y(n,"status",e[23]),2097152&t[0]&&y(n,"startdate",e[21]),256&t[0]&&y(n,"lang",e[8]),4194304&t[0]&&y(n,"enddate",e[22])},d(e){i&&i.d(e),e&&k(r),e&&k(n)}}}function vi(r){let n,i,o,s;return{c(){y(n=F("casino-tournaments-thumbnail-prizes"),"tourid",r[24]),y(n,"clientstyling",r[10]),y(n,"clientstylingurl",r[11]),y(n,"translationurl",r[12]),y(n,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){H(e,n,t),o||(s=P(i=r[37].call(null,n,r[24])),o=!0)},p(e,t){16777216&t[0]&&y(n,"tourid",e[24]),1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),4096&t[0]&&y(n,"translationurl",e[12]),i&&d(i.update)&&16777216&t[0]&&i.update.call(null,e[24])},d(e){e&&k(n),o=!1,s()}}}function wi(r){let n,i,o,s,a=r[32]("details")+"";return{c(){n=F("button"),i=O(a),L(n,"class","DetailsLargeButton"),L(n,"part","DetailsLargeButton")},m(e,t){H(e,n,t),C(n,i),o||(s=I(n,"click",r[51]),o=!0)},p(e,t){2&t[1]&&a!==(a=e[32]("details")+"")&&R(i,a)},d(e){e&&k(n),o=!1,s()}}}function Ei(e){let r,n,i="true"==e[3]&&xi(e);function o(e){return e[26]?Si:Ai}let s=o(e),a=s(e);return{c(){i&&i.c(),r=M(),a.c(),n=j()},m(e,t){i&&i.m(e,t),H(e,r,t),a.m(e,t),H(e,n,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=xi(e)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),s===(s=o(e))&&a?a.p(e,t):(a.d(1),(a=s(e))&&(a.c(),a.m(n.parentNode,n)))},d(e){i&&i.d(e),e&&k(r),a.d(e),e&&k(n)}}}function Ti(r){let n,i,o,s,a,l,u,c=r[32]("login")+"",h=r[32]("register")+"";return{c(){n=F("button"),i=O(c),o=M(),s=F("button"),a=O(h),L(n,"class","LoginButton"),L(n,"part","LoginButton"),L(s,"class","RegisterButton"),L(s,"part","RegisterButton")},m(e,t){H(e,n,t),C(n,i),H(e,o,t),H(e,s,t),C(s,a),l||(u=[I(n,"click",r[47]),I(s,"click",r[48])],l=!0)},p(e,t){2&t[1]&&c!==(c=e[32]("login")+"")&&R(i,c),2&t[1]&&h!==(h=e[32]("register")+"")&&R(a,h)},d(e){e&&k(n),e&&k(o),e&&k(s),l=!1,$(u)}}}function xi(r){let n,i,o,s,a=r[32]("details")+"";return{c(){n=F("button"),i=O(a),L(n,"class","DetailsButton"),L(n,"part","DetailsButton")},m(e,t){H(e,n,t),C(n,i),o||(s=I(n,"click",r[49]),o=!0)},p(e,t){2&t[1]&&a!==(a=e[32]("details")+"")&&R(i,a)},d(e){e&&k(n),o=!1,s()}}}function Ai(r){let n,i,o,s,a;function l(e){return 1==e[16]?Bi:_i}let u=l(r),c=u(r);return{c(){n=F("button"),c.c(),L(n,"class",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),L(n,"part",o="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.disabled=r[17]},m(e,t){H(e,n,t),c.m(n,null),s||(a=I(n,"click",r[50]),s=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(n,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&L(n,"class",i),128&t[0]&&o!==(o="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&L(n,"part",o),131072&t[0]&&(n.disabled=e[17])},d(e){e&&k(n),c.d(),s=!1,a()}}}function Si(e){let r,n="true"==e[3]&&$i(e);return{c(){n&&n.c(),r=j()},m(e,t){n&&n.m(e,t),H(e,r,t)},p(e,t){"true"==e[3]?n?n.p(e,t):((n=$i(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&k(r)}}}function _i(e){let r,n,i,o,s,a,l,u,c,h=e[32]("join")+"";return{c(){r=F("span"),n=O(h),i=M(),o=t("svg"),s=t("defs"),a=t("style"),l=O(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=t("g"),c=t("path"),L(r,"part","JoinButtonSpan"),L(c,"class","a"),L(c,"part","a JoinButtonSvgA"),L(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),L(c,"transform","translate(26 26) rotate(180)"),L(u,"transform","translate(26 26) rotate(180)"),L(o,"part","JoinButtonSvg"),L(o,"xmlns","http://www.w3.org/2000/svg"),L(o,"width","26"),L(o,"height","26"),L(o,"viewBox","0 0 26 26")},m(e,t){H(e,r,t),C(r,n),H(e,i,t),H(e,o,t),C(o,s),C(s,a),C(a,l),C(o,u),C(u,c)},p(e,t){2&t[1]&&h!==(h=e[32]("join")+"")&&R(n,h)},d(e){e&&k(r),e&&k(i),e&&k(o)}}}function Bi(e){let r,n;return{c(){r=t("svg"),L(n=t("circle"),"cx","20"),L(n,"cy","20"),L(n,"r","18"),L(r,"class","spinner"),L(r,"part","spinner")},m(e,t){H(e,r,t),C(r,n)},p:v,d(e){e&&k(r)}}}function $i(e){let r,n,i=e[32]("enrolled")+"";return{c(){r=F("button"),n=O(i),L(r,"class","EnrolledButton"),L(r,"part","EnrolledButton"),r.disabled=!0},m(e,t){H(e,r,t),C(r,n)},p(e,t){2&t[1]&&i!==(i=e[32]("enrolled")+"")&&R(n,i)},d(e){e&&k(r)}}}function Pi(e){let r,n,i,o,s=e[32]("joinerror")+"";return{c(){r=F("span"),n=O(s),i=M(),o=O(e[18]),L(r,"class","ErrorText"),L(r,"part","ErrorText")},m(e,t){H(e,r,t),C(r,n),C(r,i),C(r,o)},p(e,t){2&t[1]&&s!==(s=e[32]("joinerror")+"")&&R(n,s),262144&t[0]&&R(o,e[18])},d(e){e&&k(r)}}}function Ci(e){let r;return{c(){y(r=F("casino-tournaments-thumbnail-games-slider"),"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"translationurl",e[12]),y(r,"tournamenturl",e[2]),y(r,"lang",e[8]),y(r,"scrollby","2"),y(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){H(e,r,t)},p(e,t){1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),4096&t[0]&&y(r,"translationurl",e[12]),4&t[0]&&y(r,"tournamenturl",e[2]),256&t[0]&&y(r,"lang",e[8])},d(e){e&&k(r)}}}function Hi(r){let n;function i(e){return e[15]?yi:e[20]?gi:void 0}let o=i(r),s=o&&o(r);return{c(){n=F("div"),s&&s.c(),this.c=v},m(e,t){H(e,n,t),s&&s.m(n,null),r[52](n)},p(e,t){o===(o=i(e))&&s?s.p(e,t):(s&&s.d(1),(s=o&&o(e))&&(s.c(),s.m(n,null)))},i:v,o:v,d(e){e&&k(n),s&&s.d(),r[52](null)}}}function ki(r,e,u){let t;ae(r,Pn,e=>u(32,t=e));let n,i,o,s,a,c,I,h,L,R,l,{session:d=""}=e,{userid:N=""}=e,{tournamenturl:p=""}=e,m=e.touridx,{endpoint:f=""}=e,{showdetails:D=""}=e,{showslider:z=""}=e,{showenrolled:U=""}=e,{maxwidth:j=""}=e,{fullsize:G=""}=e,{lang:g=""}=e,{loginevent:y=""}=e,{registerevent:b=""}=e,{loginurl:v=""}=e,{registerurl:w=""}=e,{currency:E=""}=e,{keepbrowsercontext:J="false"}=e,{clientstyling:T=""}=e,{clientstylingurl:x=""}=e,{translationurl:A=""}=e,S=e.tournamentinfo,_=!1,B="",$=!0,W=window.navigator.userAgent,P=!1,C=!1,V="There was an error while trying to join the tournament",H=!1,X=[],k=[],K="#",F=!1;var Z,Y;({withLocale:Z,translations:Y}={withLocale:"en",translations:{}}),se.subscribe(e=>{null==e&&(Zr.set(Y),se.set(Z))}),Object.keys(kn).forEach(e=>{Hn(e,kn[e])});let q=e=>{ee(e),M(e),ie(this,c)},Q=r=>{if(r.data&&"UserSessionID"==r.data.type&&(u(14,_=!0),B=r.data.session),"UpdateTournamentView"==r.data.type){var e=r.data.tournamentData;if(c&&c!=e.id)return;q(e)}if(r.data&&r.data.type=="UpdateSingleTournament_"+m){let e=r.data.tournamentData,t=m<4?100*m:300*Math.random()+300;u(31,F=1==m),setTimeout(()=>{u(31,F=!0),u(24,c=e.id),q(e)},t),setTimeout(()=>{u(31,F=!1)},200+t)}},ee=e=>{e.state!=a&&(u(23,a=e.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},te=()=>{y&&(window.postMessage({type:y,transition:"Login"},window.location.href),"function"==typeof gtag)&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"}),v&&(window.location=v)},re=()=>{b&&(window.postMessage({type:b,transition:"Register"},window.location.href),"function"==typeof gtag)&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"}),w&&(window.location=w)},O=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},ne=async(t,e)=>{u(17,C=!1),u(19,H=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(16,P=!0);let r=new URL(f+"/v1/bonus/claim"),n=new Headers,i={},o=(r.searchParams.append("language",g),r.searchParams.append("platform",Cn(W)),n.append("Content-Type","application/json"),n.append("X-SessionID",B),e&&1<=e.length&&(i={language:g,bonusCode:e[0].code,currency:E,type:"tournament"}),{method:"PUT",headers:n,body:JSON.stringify(i)}),s=()=>{u(16,P=!1),u(26,h=!0)},a=e=>{u(16,P=!1),e&&u(18,V=e),u(17,C=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(r,o)).json()}catch(e){a()}return e})();if(l)if(1==l.success)s();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(f+"/tournaments/"+c,{headers:{"X-SessionID":d}})).json())?void 0:e.item)&&t.playerEnrolled?s():(a(l.errorMessage),u(19,H=!0),u(17,C=!1))}else a(l.errorMessage)},ie=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:X},window.location.href)},M=e=>{e&&(u(20,i=e.nameOrTitle||""),u(21,o=e.startTime),u(22,s=e.endTime),u(23,a=e.state),u(24,c=e.id),u(25,I=e.thumbnail),u(26,h="true"===e.playerEnrolled||1==e.playerEnrolled||!1),u(27,L=e.scoreCriteria),u(28,R=e.minBetCount),X=e.prizes,u(29,k=e.wallets||[]),u(30,K=e.termsUrl||"#"))};return le(()=>(u(15,$=!1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",Q,!1),()=>{window.removeEventListener("message",Q)})),r.$$set=e=>{"session"in e&&u(0,d=e.session),"userid"in e&&u(1,N=e.userid),"tournamenturl"in e&&u(2,p=e.tournamenturl),"touridx"in e&&u(38,m=e.touridx),"endpoint"in e&&u(39,f=e.endpoint),"showdetails"in e&&u(3,D=e.showdetails),"showslider"in e&&u(4,z=e.showslider),"showenrolled"in e&&u(5,U=e.showenrolled),"maxwidth"in e&&u(6,j=e.maxwidth),"fullsize"in e&&u(7,G=e.fullsize),"lang"in e&&u(8,g=e.lang),"loginevent"in e&&u(40,y=e.loginevent),"registerevent"in e&&u(41,b=e.registerevent),"loginurl"in e&&u(42,v=e.loginurl),"registerurl"in e&&u(43,w=e.registerurl),"currency"in e&&u(44,E=e.currency),"keepbrowsercontext"in e&&u(9,J=e.keepbrowsercontext),"clientstyling"in e&&u(10,T=e.clientstyling),"clientstylingurl"in e&&u(11,x=e.clientstylingurl),"translationurl"in e&&u(12,A=e.translationurl),"tournamentinfo"in e&&u(45,S=e.tournamentinfo)},r.$$.update=()=>{if(9216&r.$$.dirty[0]&&n&&T&&((t=document.createElement("style")).innerHTML=T,n.appendChild(t)),10240&r.$$.dirty[0]&&n&&x){let e=new URL(x),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t;4096&r.$$.dirty[0]&&A&&fetch(A).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Hn(e,t[e])})}).catch(e=>{console.log(e)}),1&r.$$.dirty[0]&&d&&(0<d.length&&"false"!=d?(B=d,u(14,_=!0)):u(14,_=!1)),260&r.$$.dirty[0]&&u(46,l=p&&g),32768&r.$$.dirty[1]&&l&&(S?M(S):(u(15,$=!0),t=p,u(15,$=!0),t=new URL(t),e=new Headers,t.searchParams.append("language",g),t.searchParams.append("platform",Cn(W)),_&&e.append("X-SessionID",B),fetch(t,{method:"GET",headers:e}).then(e=>e.json()).then(e=>{u(15,$=!1),M(e.item)})))},[d,N,p,D,z,U,j,G,g,J,T,x,A,n,_,$,P,C,V,H,i,o,s,a,c,I,h,L,R,k,K,F,t,te,re,O,ne,ie,m,f,y,b,v,w,E,S,l,()=>te(),()=>re(),()=>O(c),()=>ne(c,k),()=>O(c),function(e){oe[e?"unshift":"push"](()=>{n=e,u(13,n)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends ne{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}",this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},fi,mi,S,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),e&&(e.target&&H(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang","translationurl","clientstyling","clientstylingurl"]}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(e){this.$$set({tournamenturl:e}),p()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),p()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(e){this.$$set({pagfactor:e}),p()}get lang(){return this.$$.ctx[18]}set lang(e){this.$$set({lang:e}),p()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),p()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}});class Fi extends ne{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}',this.shadowRoot.appendChild(t),re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},ki,Hi,S,{session:0,userid:1,tournamenturl:2,touridx:38,endpoint:39,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:40,registerevent:41,loginurl:42,registerurl:43,currency:44,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:45},null,[-1,-1,-1]),e&&(e.target&&H(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","clientstyling","clientstylingurl","translationurl","tournamentinfo"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),p()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),p()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),p()}get touridx(){return this.$$.ctx[38]}set touridx(e){this.$$set({touridx:e}),p()}get endpoint(){return this.$$.ctx[39]}set endpoint(e){this.$$set({endpoint:e}),p()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),p()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),p()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),p()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),p()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get loginevent(){return this.$$.ctx[40]}set loginevent(e){this.$$set({loginevent:e}),p()}get registerevent(){return this.$$.ctx[41]}set registerevent(e){this.$$set({registerevent:e}),p()}get loginurl(){return this.$$.ctx[42]}set loginurl(e){this.$$set({loginurl:e}),p()}get registerurl(){return this.$$.ctx[43]}set registerurl(e){this.$$set({registerurl:e}),p()}get currency(){return this.$$.ctx[44]}set currency(e){this.$$set({currency:e}),p()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}get tournamentinfo(){return this.$$.ctx[45]}set tournamentinfo(e){this.$$set({tournamentinfo:e}),p()}}return customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",Fi),Fi});
2
2
  //# sourceMappingURL=casino-tournaments-thumbnail-controller.js.map