@everymatrix/casino-tournaments-controller 1.44.0 → 1.45.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.
Files changed (38) hide show
  1. package/components/CasinoTournamentsController-BBv1Hyoc.js +5627 -0
  2. package/components/CasinoTournamentsController-BgoGP80M.cjs +14 -0
  3. package/components/CasinoTournamentsFilterController-BqjTkXsP.js +529 -0
  4. package/components/CasinoTournamentsFilterController-DRPLlsmH.cjs +1 -0
  5. package/components/CasinoTournamentsListController-BHZPf1Di.js +3103 -0
  6. package/components/CasinoTournamentsListController-nfyqtXdi.cjs +13 -0
  7. package/components/CasinoTournamentsThumbnail-B5svaS7p.cjs +4 -0
  8. package/components/CasinoTournamentsThumbnail-DdkzbUpk.js +865 -0
  9. package/components/CasinoTournamentsThumbnailController-BnIRoSw0.cjs +1 -0
  10. package/components/CasinoTournamentsThumbnailController-DX_9tXvb.js +1405 -0
  11. package/components/CasinoTournamentsThumbnailDuration-BZyUIEUp.cjs +1 -0
  12. package/components/CasinoTournamentsThumbnailDuration-CVtlYaVM.js +495 -0
  13. package/components/CasinoTournamentsThumbnailGamesSlider-CPUoPnwu.js +438 -0
  14. package/components/CasinoTournamentsThumbnailGamesSlider-CuGCo4r6.cjs +1 -0
  15. package/components/CasinoTournamentsThumbnailPrizes-CPmYLRmC.cjs +1 -0
  16. package/components/CasinoTournamentsThumbnailPrizes-DD7Zhrne.js +310 -0
  17. package/es2015/casino-tournaments-controller.cjs +1 -0
  18. package/es2015/casino-tournaments-controller.js +16 -0
  19. package/package.json +18 -32
  20. package/.eslintrc +0 -84
  21. package/CHANGELOG.md +0 -11
  22. package/README.md +0 -0
  23. package/dist/casino-tournaments-controller.js +0 -2
  24. package/dist/casino-tournaments-controller.js.map +0 -1
  25. package/documentation.md +0 -170
  26. package/index.html +0 -29
  27. package/index.js +0 -1
  28. package/public/favicon.png +0 -0
  29. package/public/reset.css +0 -48
  30. package/rollup.config.js +0 -67
  31. package/src/CasinoTournamentsController.svelte +0 -527
  32. package/src/i18n.js +0 -27
  33. package/src/index.ts +0 -4
  34. package/src/translations.js +0 -62
  35. package/src/util.ts +0 -2
  36. package/stories/CasinoTournamentsController.stories.js +0 -13
  37. package/svelte.config.js +0 -7
  38. package/tsconfig.json +0 -6
@@ -1,2 +0,0 @@
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 S(e){return e()}function E(){return Object.create(null)}function $(e){e.forEach(S)}function k(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let M,R,L;function I(e,t){return(M=M||document.createElement("a")).href=t,e===M.href}function U(e,...t){if(null==e)return v;let n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ae(e,t,n){e.$$.on_destroy.push(U(t,n))}function Y(e){return e&&k(e.destroy)?e.destroy:v}function C(e,t){e.appendChild(t)}function A(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode&&e.parentNode.removeChild(e)}function z(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function D(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 B(){return O(" ")}function j(){return O("")}function F(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function N(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:N(e,t,n)}function H(e,t){e.data!==(t=""+t)&&(e.data=t)}function G(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function W(e,t,n){e.classList[n?"add":"remove"](t)}function V(e){var t,n={};for(t of e)n[t.name]=t.value;return n}function J(e){L=e}function le(e){(()=>{if(L)return L;throw new Error("Function called outside component initialization")})().$$.on_mount.push(e)}let Z=[],se=[],X=[],q=[],K=Promise.resolve(),Q=!1;function ee(e){X.push(e)}let te=new Set,ne=0;function d(){if(0===ne){let e=L;do{try{for(;ne<Z.length;){let e=Z[ne];ne++,J(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),$(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(ee))}}catch(e){throw Z.length=0,ne=0,e}for(J(null),Z.length=0,ne=0;se.length;)se.pop()();for(let e=0;e<X.length;e+=1){var r=X[e];te.has(r)||(te.add(r),r())}}while(X.length=0,Z.length);for(;q.length;)q.pop()();Q=!1,te.clear(),J(e)}}let re=new Set;function ie(r,t,e,n,i,s,o,a=[-1]){var l=L;J(r);let u=r.$$={fragment:null,ctx:[],props:s,update:v,not_equal:i,bound:E(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:E(),dirty:a,skip_bound:!1,root:t.target||l.$$.root},c=(o&&o(u.root),!1);if(u.ctx=e?e(r,t.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=n)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](n),c)&&(n=e,-1===(e=r).$$.dirty[0]&&(Z.push(e),Q||(Q=!0,K.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],u.update(),c=!0,$(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){s=t.target;let e=Array.from(s.childNodes);u.fragment&&u.fragment.l(e),e.forEach(P)}else u.fragment&&u.fragment.c();t.intro&&(a=r.$$.fragment)&&a.i&&(re.delete(a),a.i(void 0));var h=r,o=t.customElement,{fragment:e,after_update:n}=h.$$;e&&e.m(t.target,t.anchor),o||ee(()=>{var e=h.$$.on_mount.map(S).filter(k);h.$$.on_destroy?h.$$.on_destroy.push(...e):$(e),h.$$.on_mount=[]}),n.forEach(ee),d()}J(l)}let e;"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let e=this.$$.on_mount;this.$$.on_disconnect=e.map(S).filter(k);for(let e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){$(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var r=e.after_update;let t=[],n=[];X.forEach(e=>(-1===r.indexOf(e)?t:n).push(e)),n.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(!k(t))return v;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ue,ce,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},he="URLSearchParams"in l,de="Symbol"in l&&"iterator"in Symbol,fe="FileReader"in l&&"Blob"in l&&(()=>{try{return new Blob,!0}catch(e){return!1}})(),pe="FormData"in l,me="ArrayBuffer"in l;function ge(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 ye(e){return e="string"!=typeof e?String(e):e}function be(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return de&&(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 ve(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function we(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function _e(e){var t=new FileReader,n=we(t);return t.readAsArrayBuffer(e),n}function Te(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function xe(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:fe&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:pe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:he&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&fe&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Te(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||ce(e))?this._bodyArrayBuffer=Te(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):he&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},fe&&(this.blob=function(){var e=ve(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 ve(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(fe)return this.blob().then(_e);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=ve(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=we(e=new FileReader),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,n),t;if(this._bodyArrayBuffer)return Promise.resolve((e=>{for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")})(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},pe&&(this.formData=function(){return this.text().then(ke)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(ue=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ce=ArrayBuffer.isView||function(e){return e&&-1<ue.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=ge(e),t=ye(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[ge(e)]},u.prototype.get=function(e){return e=ge(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(ge(e))},u.prototype.set=function(e,t){this.map[ge(e)]=ye(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),be(n)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),be(t)},u.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),be(n)},de&&(u.prototype[Symbol.iterator]=u.prototype.entries);var Se=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ee(e,t){if(!(this instanceof Ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof Ee){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,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new u(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<Se.indexOf(n)?n: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)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function ke(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function 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)}Ee.prototype.clone=function(){return new Ee(this,{body:this._bodyInit})},xe.call(Ee.prototype),xe.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 Me=[301,302,303,307,308],$e=(c.redirect=function(e,t){if(-1===Me.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},l.DOMException);try{new $e}catch(v){($e=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),$e.prototype.constructor=$e}function Ce(r,a){return new Promise(function(i,e){var s=new Ee(r,a);if(s.signal&&s.signal.aborted)return e(new $e("Aborted","AbortError"));var n,o=new XMLHttpRequest;function t(){o.abort()}o.onload=function(){var e,r,t={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=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(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(0===s.url.indexOf("file://")&&(o.status<200||599<o.status)?t.status=200:t.status=o.status,t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new c(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},o.onabort=function(){setTimeout(function(){e(new $e("Aborted","AbortError"))},0)},o.open(s.method,(t=>{try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}})(s.url),!0),"include"===s.credentials?o.withCredentials=!0:"omit"===s.credentials&&(o.withCredentials=!1),"responseType"in o&&(fe?o.responseType="blob":me&&(o.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof u||l.Headers&&a.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){n.push(ge(e)),o.setRequestHeader(e,ye(a.headers[e]))}),s.headers.forEach(function(e,t){-1===n.indexOf(t)&&o.setRequestHeader(t,e)})):s.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",t),o.onreadystatechange=function(){4===o.readyState&&s.signal.removeEventListener("abort",t)}),o.send(void 0===s._bodyInit?null:s._bodyInit)})}Ce.polyfill=!0,l.fetch||(l.fetch=Ce,l.Headers=u,l.Request=Ee,l.Response=c);var Ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Pe(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return Pn(null==t&&n.path)}},n.exports),n.exports}function Pn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}self.fetch.bind(self);var De=function(e,t){return(De=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}De(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Be(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function Ne(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function He(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 Re=He(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 Le(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=Be(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(h(s))try{s()}catch(e){i=e instanceof Re?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=Be(s),u=l.next();!u.done;u=l.next()){var c=u.value;try{ze(c)}catch(e){i=null!=i?i:[],e instanceof Re?i=Ne(Ne([],Fe(i)),Fe(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new Re(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ze(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)&&Le(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Le(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((s=new r).closed=!0,s);var Ie=r,Ue=Ie.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ye(e){return e instanceof Ie||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function ze(e){h(e)?e():e.unsubscribe()}var je=void 0,Ge=!1,We=!1,Ve={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Ve.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ne([e,t],Fe(n))):setTimeout.apply(void 0,Ne([e,t],Fe(n)))},clearTimeout:function(e){var t=Ve.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Je(){}var Ze=null;function Xe(e){if(Ge){var t=!Ze;if(t&&(Ze={errorThrown:!1,error:null}),e(),t){var t=Ze,n=t.errorThrown;if(Ze=null,n)throw t.error}}else e()}Oe(i,qe=Ie),i.create=function(e,t,n){return new rt(e,t,n)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,qe.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var qe,Ke=i,Qe=Function.prototype.bind;function i(e){var t=qe.call(this)||this;return t.isStopped=!1,e?Ye(t.destination=e)&&e.add(t):t.destination=at,t}function et(e,t){return Qe.call(e,t)}st.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ot(e)}},st.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ot(e)}else ot(e)},st.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ot(e)}};var tt,nt=st,rt=(Oe(it,tt=Ke),it);function it(e,t,n){var r=tt.call(this)||this,n=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&We?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&et(e.next,t),error:e.error&&et(e.error,t),complete:e.complete&&et(e.complete,t)}):e;return r.destination=new nt(n),r}function st(e){this.partialObserver=e}function ot(e){var t=e;Ve.setTimeout(function(){throw t})}var at={closed:!0,next:Je,error:function(e){throw e},complete:Je},s="function"==typeof Symbol&&Symbol.observable||"@@observable";o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,n){var r,i=this,s=(r=e)&&r instanceof Ke||r&&h(r.next)&&h(r.error)&&h(r.complete)&&Ye(r)?e:new rt(e,t,n);return Xe(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(r,e){var i=this;return new(e=ut(e))(function(e,t){var n=new rt({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[s]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var r=this;return new(e=ut(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)};var lt=o;function o(e){e&&(this._subscribe=e)}function ut(e){return null!=(e=null!=e?e:je)?e:Promise}var ct,ht,dt,ft=He(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),s=(Oe(a,dt=lt),a.prototype.lift=function(e){var t=new pt(this,this);return t.operator=e,t},a.prototype._throwIfClosed=function(){if(this.closed)throw new ft},a.prototype.next=function(i){var s=this;Xe(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var n=Be(s.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(i)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},a.prototype.error=function(t){var n=this;Xe(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},a.prototype.complete=function(){var t=this;Xe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(a.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),a.prototype._trySubscribe=function(e){return this._throwIfClosed(),dt.prototype._trySubscribe.call(this,e)},a.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},a.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?Ue:(this.currentObservers=null,i.push(e),new Ie(function(){t.currentObservers=null,Le(i,e)}))},a.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},a.prototype.asObservable=function(){var e=new lt;return e.source=this,e},a.create=function(e,t){return new pt(e,t)},a),pt=(Oe(bt,ht=s),bt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},bt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},bt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},bt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Ue},bt),mt={now:function(){return(mt.delegate||Date).now()},delegate:void 0},gt=(Oe(yt,ct=s),yt.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,s=t._timestampProvider,t=t._windowTime;n||(r.push(e),i)||r.push(s.now()+t),this._trimBuffer(),ct.prototype.next.call(this,e)},yt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},yt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var s=t.now(),o=0,a=1;a<n.length&&n[a]<=s;a+=2)o=a;o&&n.splice(0,o+1)}},yt);function yt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=mt);var r=ct.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function bt(e,t){var n=ht.call(this)||this;return n.destination=e,n.source=t,n}function a(){var e=dt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let vt=[],wt={},_t=[];function Tt(r,i=v){let s,o=new Set;function a(e){if(n(r,e)&&(r=e,s)){let e=!_t.length;for(let e of o)e[1](),_t.push(e,r);if(e){for(let e=0;e<_t.length;e+=2)_t[e][0](_t[e+1]);_t.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=v){let n=[e,t];return o.add(n),1===o.size&&(s=i(a)||v),e(r),()=>{o.delete(n),0===o.size&&s&&(s(),s=null)}}}}function xt(e,a,t){let l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:Tt(t,t=>{let n=!1,r=[],i=0,s=v,o=()=>{var e;i||(s(),e=a(l?r[0]:r,t),c?t(e):s=k(e)?e:v)},e=u.map((e,t)=>U(e,e=>{r[t]=e,i&=~(1<<t),n&&o()},()=>{i|=1<<t}));return n=!0,o(),function(){$(e),s(),n=!1}}).subscribe}}function St(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Et);var t}var Et="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function kt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Pt(Array.isArray(e)?[]:{},e,t):e}function Mt(e,t,n){return e.concat(t).map(function(e){return kt(e,n)})}function $t(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 Ct(e,t){try{return t in e}catch(e){return!1}}function At(r,i,s){var o={};return s.isMergeableObject(r)&&$t(r).forEach(function(e){o[e]=kt(r[e],s)}),$t(i).forEach(function(e){var t,n;(!Ct(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(Ct(r,e)&&s.isMergeableObject(i[e])?o[e]=((t=s).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Pt)(r[e],i[e],s):o[e]=kt(i[e],s))}),o}function Pt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Mt,n.isMergeableObject=n.isMergeableObject||St,n.cloneUnlessOtherwiseSpecified=kt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):At(e,t,n):kt(t,n)}Pt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return Pt(e,t,n)},{});throw new Error("first argument should be an array")};var Dt=Pt,Ot=function(e,t){return(Ot=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Bt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ot(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,b,Ft,g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Nt(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i<s;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Ht(e){return e.type===b.literal}function Rt(e){return e.type===b.number}function Lt(e){return e.type===b.date}function It(e){return e.type===b.time}function Ut(e){return e.type===b.select}function Yt(e){return e.type===b.plural}function zt(e){return e.type===b.tag}function jt(e){return e&&"object"==typeof e&&e.type===Ft.number}function Gt(e){return e&&"object"==typeof e&&e.type===Ft.dateTime}(s=m=m||{})[s.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",s[s.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",s[s.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",s[s.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",s[s.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",s[s.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",s[s.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",s[s.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",s[s.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",s[s.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",s[s.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",s[s.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",s[s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",s[s.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",s[s.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",s[s.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",s[s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",s[s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",s[s.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",s[s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",s[s.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",s[s.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",s[s.INVALID_TAG=23]="INVALID_TAG",s[s.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",s[s.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",s[s.UNCLOSED_TAG=27]="UNCLOSED_TAG",(s=b=b||{})[s.literal=0]="literal",s[s.argument=1]="argument",s[s.number=2]="number",s[s.date=3]="date",s[s.time=4]="time",s[s.select=5]="select",s[s.plural=6]="plural",s[s.pound=7]="pound",s[s.tag=8]="tag",(s=Ft=Ft||{})[s.number=0]="number",s[s.dateTime=1]="dateTime";var s=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wt=/(?:[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 Vt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zt=/^(@+)?(\+|#+)?[rs]?$/g,Xt=/(\*)(0+)|(#+)(0+)|(0+)/g,qt=/^(0+)$/;function Kt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Zt,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function Qt(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 en(e){return Qt(e)||{}}function tn(e){for(var o={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=g(g(g({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return g(g({},e),en(t))},{}));continue;case"engineering":o=g(g(g({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return g(g({},e),en(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.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(Xt,function(e,t,n,r,i,s){if(t)o.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(qt.test(i.stem))o.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,n,r,i,s){return"*"===n?o.minimumFractionDigits=t.length:r&&"#"===r[0]?o.maximumFractionDigits=r.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=i.options[0];"w"===s?o=g(g({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=g(g({},o),Kt(s)))}else Zt.test(i.stem)?o=g(g({},o),Kt(i.stem)):((s=Qt(i.stem))&&(o=g(g({},o),s)),(r=(e=>{var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!qt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t})(i.stem))&&(o=g(g({},o),r)))}return o}var nn={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 rn=new RegExp("^".concat(s.source,"*")),sn=new RegExp("".concat(s.source,"*$"));function w(e,t){return{start:e,end:t}}var s=!!String.prototype.startsWith,on=!!String.fromCodePoint,an=!!Object.fromEntries,ln=!!String.prototype.codePointAt,un=!!String.prototype.trimStart,cn=!!String.prototype.trimEnd,hn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},dn=!0;try{dn="a"===(null==(Bn=_n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Bn[0])}catch(v){dn=!1}var fn,pn,mn=s?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},gn=on?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,s=0;s<i;){if(1114111<(n=e[s++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},yn=an?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];t[i[0]]=i[1]}return t},bn=ln?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},vn=un?function(e){return e.trimStart()}:function(e){return e.replace(rn,"")},wn=cn?function(e){return e.trimEnd()}:function(e){return e.replace(sn,"")};function _n(e,t){return new RegExp(e,t)}pn=dn?(fn=_n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return fn.lastIndex=t,null!=(t=fn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=bn(e,t);if(void 0===i||Sn(i)||33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;r.push(i),t+=65536<=i?2:1}return gn.apply(void 0,r)};f.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},f.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,s=this.char();if(123===s){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(m.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&xn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}else{s=this.clonePosition();this.bump(),r.push({type:b.pound,location:w(s,this.clonePosition())})}}}return{val:r,err:null}},f.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:w(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!xn(this.char())?this.error(m.INVALID_TAG,w(e,this.clonePosition())):(n=this.clonePosition(),i!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,w(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:w(r,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,w(e,this.clonePosition())))):this.error(m.UNCLOSED_TAG,w(r,this.clonePosition()))):this.error(m.INVALID_TAG,w(r,this.clonePosition()))},f.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())},f.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=w(n,this.clonePosition());return{val:{type:b.literal,value:r,location:n},err:null}},f.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(xn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},f.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return gn.apply(void 0,t)},f.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),gn(n))},f.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,w(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(m.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:r,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(m.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},f.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=pn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:w(e,this.clonePosition())}},f.prototype.parseArgumentOptions=function(e,t,n,r){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,w(s,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=wn(h.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:w(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(r)).err?u:(f=w(r,this.clonePosition()),l&&mn(null==l?void 0:l.style,"::",0)?(p=vn(l.style.slice(2)),"number"===o?(h=this.parseNumberSkeletonFromString(p,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:f,style:h.val},err:null}:0===p.length?this.error(m.EXPECT_DATE_TIME_SKELETON,f):(c=p,this.locale&&(c=((e,t)=>{for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=(e=>{var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(nn[t||""]||nn[n||""]||nn["".concat(n,"-001")]||nn["001"])[0]})(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<o--;)n=l+n}else n+="J"===i?"H":i}return n})(p,this.locale)),d={type:Ft.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(Wt,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"===o?b.date:b.time,value:n,location:f,style:d},err:null})):{val:{type:"number"===o?b.number:"date"===o?b.date:b.time,value:n,location:f,style:null!=(p=null==l?void 0:l.style)?p:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,w(c,g({},c)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),f=0;if("select"!==o&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),f=h.val}var p,l=this.tryParsePluralOrSelectOptions(e,o,t,d);return l.err?l:(u=this.tryParseArgumentClose(r)).err?u:(p=w(r,this.clonePosition()),"select"===o?{val:{type:b.select,value:n,options:yn(l.val),location:p},err:null}:{val:{type:b.plural,value:n,options:yn(l.val),offset:f,pluralType:"plural"===o?"cardinal":"ordinal",location:p},err:null});default:return this.error(m.INVALID_ARGUMENT_TYPE,w(s,a))}},f.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},f.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},f.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=(e=>{if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Vt).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:i})}return t})(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ft.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?tn(n):{}},err:null}},f.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,s=[],o=new Set,a=r.value,l=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=w(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,n);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;s.push([a,{value:u.val,location:w(c,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===s.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(m.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:s,err:null}},f.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}r=w(r,this.clonePosition());return i?hn(s*=n)?{val:s,err:null}:this.error(t,r):this.error(e,r)},f.prototype.offset=function(){return this.position.offset},f.prototype.isEOF=function(){return this.offset()===this.message.length},f.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},f.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=bn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},f.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},f.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))},f.prototype.bumpIf=function(e){if(mn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},f.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)},f.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}},f.prototype.bumpSpace=function(){for(;!this.isEOF()&&Sn(this.char());)this.bump()},f.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 Tn=f;function f(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 xn(e){return 97<=e&&e<=122||65<=e&&e<=90}function Sn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function En(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new Tn(e,t).parse();if(e.err)throw(n=SyntaxError(m[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Ut(e)||Yt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Rt(e)&&jt(e.style)||(Lt(e)||It(e))&&Gt(e.style)?delete e.style.location:zt(e)&&n(e.children)})}(e.val),e.val}function kn(e,t){var n=t&&t.cache?t.cache:Fn,r=t&&t.serializer?t.serializer:An;return(t&&t.strategy?t.strategy:function(e,t){return Cn(e,this,1===e.length?Mn:$n,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Mn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),i=t.get(n);return void 0===i&&(i=e.call(this,r),t.set(n,i)),i}function $n(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),i=t.get(n);return void 0===i&&(i=e.apply(this,r),t.set(n,i)),i}function Cn(e,t,n,r,i){return n.bind(t,e,r,i)}var An=function(){return JSON.stringify(arguments)};function Dn(){this.cache=Object.create(null)}Dn.prototype.get=function(e){return this.cache[e]},Dn.prototype.set=function(e,t){this.cache[e]=t};var On,Bn,Fn={create:function(){return new Dn}},Nn={variadic:function(e,t){return Cn(e,this,$n,t.cache.create(),t.serializer)},monadic:function(e,t){return Cn(e,this,Mn,t.cache.create(),t.serializer)}};(Bn=On=On||{}).MISSING_VALUE="MISSING_VALUE",Bn.INVALID_VALUE="INVALID_VALUE",Bn.MISSING_INTL_API="MISSING_INTL_API";Bt(Jn,In=Error),Jn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var _,Hn,Rn,Ln,In,Un=Jn,Yn=(Bt(Vn,Ln=Un),Vn),zn=(Bt(Wn,Rn=Un),Wn),jn=(Bt(Gn,Hn=Un),Gn);function Gn(e,t){return Hn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),On.MISSING_VALUE,t)||this}function Wn(e,t,n){return Rn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),On.INVALID_VALUE,n)||this}function Vn(e,t,n,r){return Ln.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),On.INVALID_VALUE,r)||this}function Jn(e,t,n){e=In.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Zn(e,t,n,r,i,s,o){if(1===e.length&&Ht(e[0]))return[{type:_.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Ht(c))a.push({type:_.literal,value:c.value});else if(c.type===b.pound)"number"==typeof s&&a.push({type:_.literal,value:n.getNumberFormat(t).format(s)});else{var h=c.value;if(!(i&&h in i))throw new jn(h,o);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?_.literal:_.object,value:h});else if(Lt(c)){var d="string"==typeof c.style?r.date[c.style]:Gt(c.style)?c.style.parsedOptions:void 0;a.push({type:_.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(It(c))d="string"==typeof c.style?r.time[c.style]:Gt(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:_.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(Rt(c))(d="string"==typeof c.style?r.number[c.style]:jt(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:_.literal,value:n.getNumberFormat(t,d).format(h)});else{if(zt(c)){var f=c.children,p=c.value,m=i[p];if("function"!=typeof m)throw new zn(p,"function",o);p=m(Zn(f,t,n,r,i,s).map(function(e){return e.value}));Array.isArray(p)||(p=[p]),a.push.apply(a,p.map(function(e){return{type:"string"==typeof e?_.literal:_.object,value:e}}))}if(Ut(c)){if(!(g=c.options[h]||c.options.other))throw new Yn(c.value,h,Object.keys(c.options),o);a.push.apply(a,Zn(g.value,t,n,r,i))}else if(Yt(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Un('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',On.MISSING_INTL_API,o);var m=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[m]||c.options.other}if(!g)throw new Yn(c.value,h,Object.keys(c.options),o);a.push.apply(a,Zn(g.value,t,n,r,i,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===_.literal&&t.type===_.literal?n.value+=t.value:e.push(t),e},[])}function Xn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(s=_=_||{})[s.literal=0]="literal",s[s.object=1]="object";Object.defineProperty(p,"defaultLocale",{get:function(){return p.memoizedDefaultLocale||(p.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),p.memoizedDefaultLocale},enumerable:!1,configurable:!0}),p.memoizedDefaultLocale=null,p.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])},p.__parse=En,p.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 qn=p;function p(e,t,n,r){var i,s,o=this;if(void 0===t&&(t=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=o.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===_.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 Zn(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=p.resolveLocale(t),"string"==typeof e){if(this.message=e,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=p.formats,(s=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=s[t])?g(g(g({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=g(g({},n[t]),r[t]||{}),e},{})):n),e},g({},i)):i),this.formatters=r&&r.formatters||{getNumberFormat:kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Nt([void 0],t,!1)))},{cache:Xn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Nn.variadic}),getDateTimeFormat:kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Nt([void 0],t,!1)))},{cache:Xn(t.dateTime),strategy:Nn.variadic}),getPluralRules:kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Nt([void 0],t,!1)))},{cache:Xn(t.pluralRules),strategy:Nn.variadic})}}let Kn={},Qn=(e,t,n)=>n&&(t in Kn||(Kn[t]={}),e in Kn[t]||(Kn[t][e]=n),n),er=(t,n)=>{if(null!=n){if(n in Kn&&t in Kn[n])return Kn[n][t];var r=vr(n);for(let e=0;e<r.length;e++){var i=((e,t)=>{if(!rr(e))return null;e=(e=>tr[e]||null)(e);var r=t;if(null!=r){if(r in e)return e[r];var i=r.split(".");let n=e;for(let t=0;t<i.length;t++)if("object"==typeof n){if(0<t){let e=i.slice(t,i.length).join(".");if(e in n){n=n[e];break}}n=n[i[t]]}else n=void 0;return n}})(r[e],t);if(i)return Qn(t,n,i)}}},tr,nr=Tt({});function rr(e){return e in tr}function T(t,...n){delete Kn[t],nr.update(e=>(e[t]=Dt.all([e[t]||{},...n]),e))}xt([nr],([e])=>Object.keys(e)),nr.subscribe(e=>tr=e);let ir={};function sr(e){return ir[e]}function or(e){return null!=e&&vr(e).some(e=>null==(e=sr(e))?void 0:e.size)}function ar(r,e){return Promise.all(e.map(e=>{return t=r,n=e,ir[t].delete(n),0===ir[t].size&&delete ir[t],e().then(e=>e.default||e);var t,n})).then(e=>T(r,...e))}let lr={};let ur={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 cr=Tt(!1);var hr=Object.defineProperty,on=Object.defineProperties,an=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,mr=(e,t,n)=>t in e?hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let gr,yr=Tt(null);function br(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function vr(e,t=ur.fallbackLocale){e=br(e);return t?[...new Set([...e,...br(t)])]:e}function wr(){return null!=gr?gr:void 0}yr.subscribe(e=>{gr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});let oe=on(((e,t)=>{for(var n in t=t||{})fr.call(t,n)&&mr(e,n,t[n]);if(dr)for(var n of dr(t))pr.call(t,n)&&mr(e,n,t[n]);return e})({},yr),an({set:t=>{if(t&&(e=>{if(null!=e){var t=vr(e);for(let e=0;e<t.length;e++){var n=t[e];if(rr(n))return n}}})(t)&&or(t)){var n=ur.loadingDelay;let e;return"undefined"!=typeof window&&null!=wr()&&n?e=window.setTimeout(()=>cr.set(!0),n):cr.set(!0),function e(t){var n;return or(t)?(n=vr(t).map(e=>{var t=sr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),lr[t]=Promise.all(n.map(([e,t])=>ar(e,t))).then(()=>{if(or(t))return e(t);delete lr[t]}),lr[t]):t in lr?lr[t]:Promise.resolve()}(t).then(()=>{yr.set(t)}).finally(()=>{clearTimeout(e),cr.set(!1)})}return yr.set(t)}}));var ln=n=>{let r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},_r=Object.defineProperty,Tr=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Sr=Object.prototype.propertyIsEnumerable,Er=(e,t,n)=>t in e?_r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kr=(e,t)=>{for(var n in t=t||{})xr.call(t,n)&&Er(e,n,t[n]);if(Tr)for(var n of Tr(t))Sr.call(t,n)&&Er(e,n,t[n]);return e},Mr=(e,t)=>{var n={};for(r in e)xr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tr)for(var r of Tr(e))t.indexOf(r)<0&&Sr.call(e,r)&&(n[r]=e[r]);return n};let $r=(e,t)=>{var n=ur.formats;if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Cr=ln(e=>{var{locale:t,format:n}=e,e=Mr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=$r("number",n)),new Intl.NumberFormat(t,e)}),Ar=ln(e=>{var{locale:t,format:n}=e,e=Mr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=$r("date",n):0===Object.keys(e).length&&(e=$r("date","short")),new Intl.DateTimeFormat(t,e)}),Pr=ln(e=>{var{locale:t,format:n}=e,e=Mr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=$r("time",n):0===Object.keys(e).length&&(e=$r("time","short")),new Intl.DateTimeFormat(t,e)}),Dr=ln((e,t=wr())=>new qn(e,t,ur.formats,{ignoreTag:ur.ignoreTag})),Or=xt([oe,nr],()=>(e,t={})=>{let n,r,i,s,o=t;"object"==typeof e&&(e=(o=e).id);var{values:a,locale:l=wr(),default:u}=o;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=er(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!=(s=null!=(i=null==(r=(n=ur).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))?i:u)?s:e;if(!a)return c;let h=c;try{h=Dr(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h}),x=(xt([oe],()=>(e,t)=>((e={})=>{var{locale:t=wr()}=e,e=Mr(e,["locale"]);return Pr(kr({locale:t},e))})(t).format(e)),xt([oe],()=>(e,t)=>((e={})=>{var{locale:t=wr()}=e,e=Mr(e,["locale"]);return Ar(kr({locale:t},e))})(t).format(e)),xt([oe],()=>(e,t)=>((e={})=>{var{locale:t=wr()}=e,e=Mr(e,["locale"]);return Cr(kr({locale:t},e))})(t).format(e)),xt([oe,nr],()=>(e,t=wr())=>er(e,t)),window.emWidgets={topic:(e,t=0)=>(-1==vt.indexOf(e)&&(t=new gt(t),wt[e]=t,vt.push(e)),wt[e])},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),Br=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Fr(e,t){T(e,t)}function Nr(e){oe.set(e)}let Hr={en:{500:"500 - Internal server error",showMore:"Show more",loading:"Loading, please wait ...",noTournaments:"No tournaments found"},hr:{500:"500 - Interna pogreška poslužitelja",showMore:"Prikaži više",loading:"Učitavanje, molimo pričekajte ...",noTournaments:"Nema pronađenih turnira"},"zh-hk":{500:"500內部服務器錯誤",showMore:"顯示更多",loading:"加載請稍候 ...",noTournaments:"沒有找到比賽"},fr:{500:"500 - erreur de serveur interne",showMore:"Afficher plus",loading:"Chargement , veuillez patienter ...",noTournaments:"Aucun tournoi trouvé"},ro:{500:"500 - Internal server error",showMore:"Mai mult",loading:"Se încarcă, asteptati ...",noTournaments:"Niciun turneu gasit"},tr:{500:"500 - Dahili sunucu hatası",showMore:"Daha fazla göster",loading:"Yükleniyor, lütfen bekleyin ...",noTournaments:"Turnuva bulunamadı"},el:{500:"500 - Σφάλμα Διακομιστή",showMore:"Περισσότερα",loading:"Φορτώνει, παρακαλούμε περιμένετε ...",noTournaments:"Δεν βρέθηκαν τουρνουά"},es:{500:"500 - Error servidor interno",showMore:"Mostrar más",loading:"Cargando …",noTournaments:"No se encontraron Torneos"},hu:{500:"500 - Belső szerver hiba",showMore:"Mutass többet",loading:"Betöltés, kérjük várjon...",noTournaments:"Verseny nem található"},pt:{500:"Erro 500 - Erro interno do servidor",showMore:"Ver mais",loading:"Carregando, por favor espere ...",noTournaments:"Nenhum torneio encontrado"}};var Rr=Pe(function(_,e){var r,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Ae:globalThis,P=t.setTimeout,D=t.clearTimeout,O=t.XMLHttpRequest,i=t.XDomainRequest,n=t.ActiveXObject,s=t.EventSource,o=t.document,h=t.Promise,d=t.fetch,a=t.Response,f=t.TextDecoder,l=t.TextEncoder,p=t.AbortController;function u(){this.bitsNeeded=0,this.codePoint=0}function c(){}function B(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=c,this.onload=c,this.onerror=c,this.onreadystatechange=c,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=c}function m(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function g(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),s=i.shift(),i=i.join(": ");t[m(s)]=i}this._map=t}function F(){}function y(e){this._headers=e}function N(){}function H(){this._listeners=Object.create(null)}function b(e){P(function(){throw e},0)}function v(e){this.type=e,this.target=void 0}function R(e,t){v.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function L(e,t){v.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function I(e,t){v.call(this,e),this.error=t.error}function U(e,t){return e=null==e?t:parseInt(e,10),j(e=e!=e?t:e)}function Y(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){b(e)}}"undefined"==typeof window||void 0===o||"readyState"in o||null!=o.body||(o.readyState="loading",window.addEventListener("load",function(e){o.readyState="complete"},!1)),null==O&&null!=n&&(O=function(){return new n("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p&&(r=d,d=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),u.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",i=this.bitsNeeded,s=this.codePoint,o=0;o<e.length;o+=1){var a=e[o];0!==i&&(a<128||191<a||!t(s<<6|63&a,i-6,n(i,s)))&&(i=0,s=65533,r+=String.fromCharCode(s)),0===i?(s=0<=a&&a<=127?(i=0,a):192<=a&&a<=223?(i=6,31&a):224<=a&&a<=239?(i=12,15&a):240<=a&&a<=247?(i=18,7&a):(i=0,65533),0===i||t(s,i,n(i,s))||(i=0,s=65533)):(i-=6,s=s<<6|63&a),0===i&&(s<=65535?r+=String.fromCharCode(s):r=(r+=String.fromCharCode(55296+(s-65535-1>>10)))+String.fromCharCode(56320+(s-65535-1&1023)))}return this.bitsNeeded=i,this.codePoint=s,r},null!=f&&null!=l&&(()=>{try{return"test"===(new f).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}})()||(f=u),B.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:c}),l(),1===o||2===o||3===o){if(o=4,0!==r&&(D(r),r=0),i.readyState=4,"load"===e)i.onload(t);else if("error"===e)i.onerror(t);else{if("abort"!==e)throw new TypeError;i.onabort(t)}i.onreadystatechange()}}var i=this,s=this._xhr,o=1,r=0,a=(this._abort=function(e){0!==i._sendTimeout&&(D(i._sendTimeout),i._sendTimeout=0),1!==o&&2!==o&&3!==o||(o=4,s.onload=c,s.onerror=c,s.onabort=c,s.onprogress=c,s.onreadystatechange=c,s.abort(),0!==r&&(D(r),r=0),e)||(i.readyState=4,i.onabort(null),i.onreadystatechange()),o=0},function(){if(1===o){var t=0,n="",r=void 0;if("contentType"in s)t=200,n="OK",r=s.contentType;else try{t=s.status,n=s.statusText,r=s.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(o=2,i.readyState=2,i.status=t,i.statusText=n,i._contentType=r,i.onreadystatechange())}}),l=function(){if(a(),2===o||3===o){o=3;var e="";try{e=s.responseText}catch(e){}i.readyState=3,i.responseText=e,i.onprogress()}},u=function(){r=P(function(){u()},500),3===s.readyState&&l()};"onload"in s&&(s.onload=function(e){n("load",e)}),"onerror"in s&&(s.onerror=function(e){n("error",e)}),"onabort"in s&&(s.onabort=function(e){n("abort",e)}),"onprogress"in s&&(s.onprogress=l),"onreadystatechange"in s&&(s.onreadystatechange=function(e){e=e,null!=s&&(4===s.readyState?"onload"in s&&"onerror"in s&&"onabort"in s||n(""===s.responseText?"error":"load",e):3===s.readyState?"onprogress"in s||l():2===s.readyState&&a())}),!("contentType"in s)&&"ontimeout"in O.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),s.open(e,t,!0),"readyState"in s&&(r=P(function(){u()},0))},B.prototype.abort=function(){this._abort(!1)},B.prototype.getResponseHeader=function(e){return this._contentType},B.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},B.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},B.prototype.send=function(){if("ontimeout"in O.prototype&&("sendAsBinary"in O.prototype||"mozAnon"in O.prototype)||null==o||null==o.readyState||"complete"===o.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=P(function(){t._sendTimeout=0,t.send()},4)}},g.prototype.get=function(e){return this._map[m(e)]},null!=O&&null==O.HEADERS_RECEIVED&&(O.HEADERS_RECEIVED=2),F.prototype.open=function(i,s,t,n,e,r,o){i.open("GET",e);var a,l=0;for(a in i.onprogress=function(){var e=i.responseText.slice(l);l+=e.length,t(e)},i.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},i.onload=function(){n(null)},i.onabort=function(){n(null)},i.onreadystatechange=function(){var e,t,n,r;i.readyState===O.HEADERS_RECEIVED&&(e=i.status,t=i.statusText,n=i.getResponseHeader("Content-Type"),r=i.getAllResponseHeaders(),s(e,t,n,new g(r)))},i.withCredentials=r,o)Object.prototype.hasOwnProperty.call(o,a)&&i.setRequestHeader(a,o[a]);return i.send(),i},y.prototype.get=function(e){return this._headers.get(e)},N.prototype.open=function(e,t,i,n,r,s,o){var a=null,l=new p,u=l.signal,c=new f;return d(r,{headers:o,credentials:s?"include":"same-origin",signal:u,cache:"no-store"}).then(function(e){return a=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new y(e.headers)),new h(function(t,n){function r(){a.read().then(function(e){e.done?t(void 0):(e=c.decode(e.value,{stream:!0}),i(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=a&&a.cancel(),l.abort()}}},H.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){b(e)}}},H.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var i=!1,s=0;s<r.length;s+=1)r[s]===t&&(i=!0);i||r.push(t)},H.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var i=[],s=0;s<r.length;s+=1)r[s]!==t&&i.push(r[s]);0===i.length?delete n[e]:n[e]=i}},R.prototype=Object.create(v.prototype),L.prototype=Object.create(v.prototype),I.prototype=Object.create(v.prototype);var z=/^text\/event\-stream(;.*)?$/i,j=function(e){return Math.min(Math.max(e,1e3),18e6)};function w(e,t){var l,s,o,u,c,h,d,f,p,n,a,m,g,y,b,v,w,_,T,x,S,E,k,M,$,C,A;H.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,s=e,e=t,s=String(s),t=Boolean(e.withCredentials),o=e.lastEventIdQueryParameterName||"lastEventId",u=j(1e3),c=U(e.heartbeatTimeout,45e3),h="",d=u,f=!1,p=0,n=e.headers||{},e=e.Transport,a=G&&null==e?void 0:new B(new(null!=e?e:null!=O&&"withCredentials"in O.prototype||null==i?O:i)),m=new(null!=e&&"string"!=typeof e?e:null==a?N:F),g=void 0,b=-1,T=_=w=v="",E=S=x=y=0,k=function(e,t,n,r){var i,s;0===b&&(200===e&&null!=n&&z.test(n)?(b=1,f=Date.now(),d=u,l.readyState=1,i=new L("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),Y(l,l.onopen,i)):(s="",s=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",C(),i=new L("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),Y(l,l.onerror,i),console.error(s)))},M=function(e){if(1===b){for(var t=-1,n=0;n<e.length;n+=1)(o=e.charCodeAt(n))!=="\n".charCodeAt(0)&&o!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?T:"")+e.slice(0,t+1);T=(-1===t?T:"")+e.slice(t+1),""!==e&&(f=Date.now(),p+=e.length);for(var i=0;i<r.length;i+=1){var s,o=r.charCodeAt(i);if(-1===x&&o==="\n".charCodeAt(0))x=0;else if(-1===x&&(x=0),o==="\r".charCodeAt(0)||o==="\n".charCodeAt(0)){if(0!==x&&(1===x&&(E=i+1),a=r.slice(S,E-1),s=r.slice(E+(E<i&&r.charCodeAt(E)===" ".charCodeAt(0)?1:0),i),"data"===a?v=v+"\n"+s:"id"===a?w=s:"event"===a?_=s:"retry"===a?(u=U(s,u),d=u):"heartbeatTimeout"===a&&(c=U(s,c),0!==y)&&(D(y),y=P(function(){A()},c))),0===x){if(""!==v){h=w;var a=new R(_=""===_?"message":_,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(a),"open"===_?Y(l,l.onopen,a):"message"===_?Y(l,l.onmessage,a):"error"===_&&Y(l,l.onerror,a),2===b)return}_=v=""}x=o==="\r".charCodeAt(0)?-1:0}else 0===x&&(S=i,x=1),1===x?o===":".charCodeAt(0)&&(E=i+1,x=2):2===x&&(x=3)}}},$=function(e){var t;1!==b&&0!==b||(b=-1,0!==y&&(D(y),y=0),y=P(function(){A()},d),d=j(Math.min(16*u,2*d)),l.readyState=0,t=new I("error",{error:e}),l.dispatchEvent(t),Y(l,l.onerror,t),null!=e&&console.error(e))},C=function(){b=2,null!=g&&(g.abort(),g=void 0),0!==y&&(D(y),y=0),l.readyState=2},A=function(){if(y=0,-1===b){f=!1,p=0,y=P(function(){A()},c),w=h,T=_=v="",x=E=S=b=0;var e=s,t=("data:"!==s.slice(0,5)&&"blob:"!==s.slice(0,5)&&""!==h&&(e=-1===(t=s.indexOf("?"))?s:s.slice(0,t+1)+s.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===o?"":e}),e+=(-1===s.indexOf("?")?"?":"&")+o+"="+encodeURIComponent(h)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);try{g=m.open(a,k,M,$,e,t,n)}catch(e){throw C(),e}}else f||null==g?(e=Math.max((f||Date.now())+c-Date.now(),1),f=!1,y=P(function(){A()},e)):($(new Error("No activity within "+c+" milliseconds. "+(0===b?"No response received.":p+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=s,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=C,A()}var G=null!=d&&null!=a&&"body"in a.prototype;(w.prototype=Object.create(H.prototype)).CONNECTING=0,w.prototype.OPEN=1,w.prototype.CLOSED=2,w.prototype.close=function(){this._close()},w.CONNECTING=0,w.OPEN=1,w.CLOSED=2,w.prototype.withCredentials=void 0,t=s,null==O||null!=s&&"withCredentials"in s.prototype||(t=w),(a=e).EventSourcePolyfill=w,a.NativeEventSource=s,a.EventSource=t});function Lr(e,t){T(e,t)}let Ir={en:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"},hr:{tournaments:"Turniri",all:"Svi",scheduled:"Planirani",ongoing:"U tijeku",finished:"Završeni"},"zh-hk":{tournaments:"錦標賽",all:"全部",scheduled:"預定的",ongoing:"進行中",finished:"完成的"},fr:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"},ro:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"În curs",finished:"Finalizat"},tr:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam ediyor",finished:"Tamamlanmış"},el:{tournaments:"Τουρνουά",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα"},es:{tournaments:"Torneos",all:"Todos",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado"},hu:{tournaments:"Versenyek",all:"Mind",scheduled:"Ütemezés",ongoing:"Folyamatban",finished:"Befejezett"},pt:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"}};function Ur(e,t,n){e=e.slice();return e[22]=t[n],e[24]=n,e}function Yr(t){let i,n,s,r,o,e=t[4]("tournaments")+"",a=t[1],l=[];for(let e=0;e<a.length;e+=1)l[e]=Jr(Ur(t,a,e));return{c(){i=D("ul"),n=D("li"),s=O(e),r=O(":"),o=B();for(let e=0;e<l.length;e+=1)l[e].c();N(n,"class","FiltersTitle "+(x(t[5])?"MobileClass":"Non-MobileClass/empty")),N(n,"part","FiltersTitle "+(x(t[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"class","FiltersList "+(x(t[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"part","FiltersList "+(x(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){A(e,i,t),C(i,n),C(n,s),C(n,r),C(i,o);for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(i,null)},p(t,n){if(16&n&&e!==(e=t[4]("tournaments")+"")&&H(s,e),126&n){let e;for(a=t[1],e=0;e<a.length;e+=1){var r=Ur(t,a,e);l[e]?l[e].p(r,n):(l[e]=Jr(r),l[e].c(),l[e].m(i,null))}for(;e<l.length;e+=1)l[e].d(1);l.length=a.length}},d(e){e&&P(i),z(l,e)}}}function zr(){let n,r;return{c(){n=t("svg"),N(r=t("path"),"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","16"),N(n,"height","16"),N(n,"fill","currentColor"),N(n,"class","bi bi-check"),N(n,"part","bi bi-check"),N(n,"viewBox","0 0 16 16")},m(e,t){A(e,n,t),C(n,r)},d(e){e&&P(n)}}}function jr(e){let n,r=e[4]("scheduled")+"";return{c(){n=O(r)},m(e,t){A(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("scheduled")+"")&&H(n,r)},d(e){e&&P(n)}}}function Gr(e){let n,r=e[4]("ongoing")+"";return{c(){n=O(r)},m(e,t){A(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("ongoing")+"")&&H(n,r)},d(e){e&&P(n)}}}function Wr(e){let n,r=e[4]("finished")+"";return{c(){n=O(r)},m(e,t){A(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("finished")+"")&&H(n,r)},d(e){e&&P(n)}}}function Vr(e){let n,r=e[4]("all")+"";return{c(){n=O(r)},m(e,t){A(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("all")+"")&&H(n,r)},d(e){e&&P(n)}}}function Jr(n){let r,i,s,o,a,l,u,c,h,d,f,p,m=(1==n[2][n[24]]||n[3]&&0==n[24])&&zr(),g="Scheduled"==n[22]&&jr(n),y="Ongoing"==n[22]&&Gr(n),b="Finished"==n[22]&&Wr(n),v="All"==n[22]&&Vr(n);function w(){return n[12](n[22],n[24])}return{c(){r=D("li"),i=D("button"),m&&m.c(),s=B(),o=D("div"),g&&g.c(),a=B(),y&&y.c(),l=B(),b&&b.c(),u=B(),v&&v.c(),d=B(),N(o,"class","FilterButton "+(x(n[5])?"MobileClass":"Non-MobileClass/empty")),N(o,"part","FilterButton "+(x(n[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"class",c=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(x(n[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"part",h=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(x(n[5])?"MobileClass":"Non-MobileClass/empty")),N(r,"class","FiltersItem"),N(r,"part","FiltersItem")},m(e,t){A(e,r,t),C(r,i),m&&m.m(i,null),C(i,s),C(i,o),g&&g.m(o,null),C(o,a),y&&y.m(o,null),C(o,l),b&&b.m(o,null),C(o,u),v&&v.m(o,null),C(r,d),f||(p=F(r,"click",w),f=!0)},p(e,t){1==(n=e)[2][n[24]]||n[3]&&0==n[24]?m||((m=zr()).c(),m.m(i,s)):m&&(m.d(1),m=null),"Scheduled"==n[22]?g?g.p(n,t):((g=jr(n)).c(),g.m(o,a)):g&&(g.d(1),g=null),"Ongoing"==n[22]?y?y.p(n,t):((y=Gr(n)).c(),y.m(o,l)):y&&(y.d(1),y=null),"Finished"==n[22]?b?b.p(n,t):((b=Wr(n)).c(),b.m(o,u)):b&&(b.d(1),b=null),"All"==n[22]?v?v.p(n,t):((v=Vr(n)).c(),v.m(o,null)):v&&(v.d(1),v=null),12&t&&c!==(c=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(x(n[5])?"MobileClass":"Non-MobileClass/empty"))&&N(i,"class",c),12&t&&h!==(h=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(x(n[5])?"MobileClass":"Non-MobileClass/empty"))&&N(i,"part",h)},d(e){e&&P(r),m&&m.d(),g&&g.d(),y&&y.d(),b&&b.d(),v&&v.d(),f=!1,p()}}}function Zr(n){let r,i=0<n[1].length&&Yr(n);return{c(){r=D("div"),i&&i.c(),this.c=v,N(r,"class","FiltersController "+(x(n[5])?"MobileClass":"Non-MobileClass/empty")),N(r,"part","FiltersController "+(x(n[5])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){A(e,r,t),i&&i.m(r,null),n[13](r)},p(e,[t]){0<e[1].length?i?i.p(e,t):((i=Yr(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&P(r),i&&i.d(),n[13](null)}}}function Xr(t,e,r){let n;ae(t,Or,e=>r(4,n=e));let i,{filters:s=""}=e,{activefilters:o=""}=e,{translationurl:a=""}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,c=[],h=0,d=new Array(100),f=!0,p=window.navigator.userAgent,m=(Object.keys(Ir).forEach(e=>{Lr(e,Ir[e])}),(e,t)=>{if(0==t)r(3,f=!0),r(2,d=new Array(h)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else if(r(3,f=!1),1==d[t]?(r(2,d[t]=0,d),-1==d.indexOf(1)&&r(3,f=!0)):r(2,d[t]=1,d),-1==d.indexOf(1))window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else{var n=[];for(let e=0;e<c.length;e++)1==d[e]&&n.push(c[e]);window.postMessage({type:"TournamentsFiltersSelected",filters:n},window.location.href)}});return t.$$set=e=>{"filters"in e&&r(7,s=e.filters),"activefilters"in e&&r(8,o=e.activefilters),"translationurl"in e&&r(9,a=e.translationurl),"clientstyling"in e&&r(10,l=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl)},t.$$.update=()=>{if(1025&t.$$.dirty&&i&&l&&((e=document.createElement("style")).innerHTML=l,i.appendChild(e)),2049&t.$$.dirty&&i&&u){let e=new URL(u),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;512&t.$$.dirty&&a&&fetch(a).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Lr(e,t[e])})}).catch(e=>{console.log(e)}),128&t.$$.dirty&&s&&(r(1,c=s.split(",")),h=c.length),256&t.$$.dirty&&o&&(e=o.split(","),r(2,d=new Array(h)),-1!=e.indexOf("All")?r(3,f=!0):(r(3,f=!1),e.forEach(e=>{e=c.indexOf(e);0<e&&r(2,d[e]=1,d)})))},[i,c,d,f,n,p,m,s,o,a,l,u,(e,t)=>m(0,t),function(e){se[e?"unshift":"push"](()=>{i=e,r(0,i)})}]}customElements.get("casino-tournaments-filter-controller")||customElements.define("casino-tournaments-filter-controller",class extends e{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}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emfe-w-color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emfe-w-color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);cursor:pointer}.FiltersController{color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}",this.shadowRoot.appendChild(t),ie(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Xr,Zr,n,{filters:7,activefilters:8,translationurl:9,clientstyling:10,clientstylingurl:11},null),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["filters","activefilters","translationurl","clientstyling","clientstylingurl"]}get filters(){return this.$$.ctx[7]}set filters(e){this.$$set({filters:e}),d()}get activefilters(){return this.$$.ctx[8]}set activefilters(e){this.$$set({activefilters:e}),d()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}});var qr=Pe(function(An,e){An.exports=(()=>{var N;function p(){return N.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function H(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(m(e,t))return;return 1}function a(e){return void 0===e}function L(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function I(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function U(e,t){for(var n=[],r=e.length,i=0;i<r;++i)n.push(t(e[i],i));return n}function Y(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,r){return Dt(e,t,n,r,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function z(e){var t,n,r=e._d&&!isNaN(e._d.getTime());return r&&(t=g(e),n=G.call(t.parsedDateParts,function(e){return null!=e}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||(t.meridiem,n)),e._strict)&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function j(e){var t=u(NaN);return null!=e?Y(g(t),e):g(t).userInvalidated=!0,t}var G=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},W=p.momentProperties=[],V=!1;function J(e,t){var n,r,i,s=W.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=g(t)),a(t._locale)||(e._locale=t._locale),0<s)for(n=0;n<s;n++)a(i=t[r=W[n]])||(e[r]=i);return e}function Z(e){J(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,p.updateOffset(this),V=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,o){var a=!0;return Y(function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,s),a){for(var e,t,n=[],r=arguments.length,i=0;i<r;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])m(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}X(s+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var q={};function K(e,t){null!=p.deprecationHandler&&p.deprecationHandler(e,t),q[e]||(X(t),q[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=Y({},e);for(n in t)m(t,n)&&(H(e[n])&&H(t[n])?(r[n]={},Y(r[n],e[n]),Y(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)m(e,n)&&!m(t,n)&&H(e[n])&&(r[n]=Y({},r[n]));return r}function ee(e){null!=e&&this.set(e)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n};function s(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},se={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(se[e]=i),t&&(se[t[0]]=function(){return s(i.apply(this,arguments),t[1],t[2])}),n&&(se[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function oe(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||(r=>{for(var e,i=r.match(ne),t=0,s=i.length;t<s;t++)se[i[t]]?i[t]=se[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<s;n++)t+=c(i[n])?i[n].call(e,r):i[n];return t}})(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var le={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function h(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ue(e){var t,n,r={};for(n in e)m(e,n)&&(t=h(n))&&(r[t]=e[n]);return r}var ce={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},he=/\d/,t=/\d\d/,de=/\d{3}/,fe=/\d{4}/,pe=/[+-]?\d{6}/,n=/\d\d?/,me=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,be=/\d{1,4}/,ve=/[+-]?\d{1,6}/,we=/\d+/,_e=/[+-]?\d+/,Te=/Z|[+-]\d\d:?\d\d/gi,xe=/Z|[+-]\d\d(?::?\d\d)?/gi,i=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,d=/^[1-9]\d?/,f=/^([1-9]\d|\d)/;function y(e,n,r){Ee[e]=c(n)?n:function(e,t){return e&&r?r:n}}function Se(e,t){return m(Ee,e)?Ee[e](t._strict,t._locale):new RegExp(b(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function b(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function v(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?v(e):t}var Ee={},ke={};function _(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),L(n)&&(i=function(e,t){t[n]=w(e)}),r=e.length,t=0;t<r;t++)ke[e[t]]=i}function Me(e,i){_(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}function $e(e){return e%4==0&&e%100!=0||e%400==0}var T=0,x=1,S=2,E=3,k=4,M=5,Ce=6,Ae=7,Pe=8;function De(e){return $e(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?s(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),y("Y",_e),y("YY",n,t),y("YYYY",be,fe),y("YYYYY",ve,pe),y("YYYYYY",ve,pe),_(["YYYYY","YYYYYY"],T),_("YYYY",function(e,t){t[T]=2===e.length?p.parseTwoDigitYear(e):w(e)}),_("YY",function(e,t){t[T]=p.parseTwoDigitYear(e)}),_("Y",function(e,t){t[T]=parseInt(e,10)}),p.parseTwoDigitYear=function(e){return w(e)+(68<w(e)?1900:2e3)};var $,Oe=Be("FullYear",!0);function Be(t,n){return function(e){return null!=e?(Ne(this,t,e),p.updateOffset(this,n),this):Fe(this,t)}}function Fe(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ne(e,t,n){var r,i,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return i?r.setUTCMilliseconds(n):r.setMilliseconds(n);case"Seconds":return i?r.setUTCSeconds(n):r.setSeconds(n);case"Minutes":return i?r.setUTCMinutes(n):r.setMinutes(n);case"Hours":return i?r.setUTCHours(n):r.setHours(n);case"Date":return i?r.setUTCDate(n):r.setDate(n);case"FullYear":break;default:return}t=n,s=e.month(),e=29!==(e=e.date())||1!==s||$e(t)?e:28,i?r.setUTCFullYear(t,s,e):r.setFullYear(t,s,e)}}function He(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?$e(e)?29:28:31-n%7%2)}$=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),y("M",n,d),y("MM",n,t),y("MMM",function(e,t){return t.monthsShortRegex(e)}),y("MMMM",function(e,t){return t.monthsRegex(e)}),_(["M","MM"],function(e,t){t[x]=w(e)-1}),_(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[x]=r:g(n).invalidMonth=e});var Re="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ue=i,Ye=i;function ze(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if(!L(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,He(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function je(e){return null!=e?(ze(this,e),p.updateOffset(this,!0),this):Fe(this,"Month")}function Ge(){function e(e,t){return t.length-e.length}for(var t,n,r=[],i=[],s=[],o=0;o<12;o++)n=u([2e3,o]),t=b(this.monthsShort(n,"")),n=b(this.months(n,"")),r.push(t),i.push(n),s.push(n),s.push(t);r.sort(e),i.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function We(e,t,n,r,i,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,s,o),a}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Je(e,t,n){n=7+t-n;return-(7+Ve(e,0,n).getUTCDay()-t)%7+n-1}function Ze(e,t,n,r,i){var s,t=1+7*(t-1)+(7+n-r)%7+Je(e,r,i),n=t<=0?De(s=e-1)+t:t>De(e)?(s=e+1,t-De(e)):(s=e,t);return{year:s,dayOfYear:n}}function Xe(e,t,n){var r,i,s=Je(e.year(),t,n),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?r=s+C(i=e.year()-1,t,n):s>C(e.year(),t,n)?(r=s-C(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function C(e,t,n){var r=Je(e,t,n),t=Je(e+1,t,n);return(De(e)-r+t)/7}function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),y("w",n,d),y("ww",n,t),y("W",n,d),y("WW",n,t),Me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=w(e)}),r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),y("d",n),y("e",n),y("E",n),y("dd",function(e,t){return t.weekdaysMinRegex(e)}),y("ddd",function(e,t){return t.weekdaysShortRegex(e)}),y("dddd",function(e,t){return t.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:g(n).invalidWeekday=e}),Me(["d","e","E"],function(e,t,n,r){t[r]=w(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),et="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tt=i,nt=i,rt=i;function it(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],s=[],o=[],a=[],l=0;l<7;l++)r=u([2e3,1]).day(l),t=b(this.weekdaysMin(r,"")),n=b(this.weekdaysShort(r,"")),r=b(this.weekdays(r,"")),i.push(t),s.push(n),o.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function st(){return this.hours()%12||12}function ot(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,st),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+st.apply(this)+s(this.minutes(),2)}),r("hmmss",0,0,function(){return""+st.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),ot("a",!0),ot("A",!1),y("a",at),y("A",at),y("H",n,f),y("h",n,d),y("k",n,d),y("HH",n,t),y("hh",n,t),y("kk",n,t),y("hmm",me),y("hmmss",ge),y("Hmm",me),y("Hmmss",ge),_(["H","HH"],E),_(["k","kk"],function(e,t,n){e=w(e);t[E]=24===e?0:e}),_(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_(["h","hh"],function(e,t,n){t[E]=w(e),g(n).bigHour=!0}),_("hmm",function(e,t,n){var r=e.length-2;t[E]=w(e.substr(0,r)),t[k]=w(e.substr(r)),g(n).bigHour=!0}),_("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[E]=w(e.substr(0,r)),t[k]=w(e.substr(r,2)),t[M]=w(e.substr(i)),g(n).bigHour=!0}),_("Hmm",function(e,t,n){var r=e.length-2;t[E]=w(e.substr(0,r)),t[k]=w(e.substr(r))}),_("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[E]=w(e.substr(0,r)),t[k]=w(e.substr(r,2)),t[M]=w(e.substr(i))}),i=Be("Hours",!0);var lt,ut={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Re,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:et,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},A={},ct={};function ht(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,n,r,i,s=0;s<e.length;){for(t=(i=ht(e[s]).split("-")).length,n=(n=ht(e[s+1]))?n.split("-"):null;0<t;){if(r=ft(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&((e,t)=>{for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n})(i,n)>=t-1)break;t--}s++}return lt}function ft(t){var e,n;if(void 0===A[t]&&An&&An.exports&&(n=t)&&n.match("^[^/\\\\]*$"))try{e=lt._abbr,Pn(),pt(e)}catch(e){A[t]=null}return A[t]}function pt(e,t){return e&&((t=a(t)?P(e):mt(e,t))?lt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),lt._abbr}function mt(e,t){if(null===t)return delete A[e],null;var n,r=ut;if(t.abbr=e,null!=A[e])K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=A[e]._config;else if(null!=t.parentLocale)if(null!=A[t.parentLocale])r=A[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=n._config}return A[e]=new ee(Q(r,t)),ct[e]&&ct[e].forEach(function(e){mt(e.name,e.config)}),pt(e),A[e]}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return lt;if(!o(e)){if(t=ft(e))return t;e=[e]}return dt(e)}function gt(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[x]<0||11<t[x]?x:t[S]<1||t[S]>He(t[T],t[x])?S:t[E]<0||24<t[E]||24===t[E]&&(0!==t[k]||0!==t[M]||0!==t[Ce])?E:t[k]<0||59<t[k]?k:t[M]<0||59<t[M]?M:t[Ce]<0||999<t[Ce]?Ce:-1,g(e)._overflowDayOfYear&&(t<T||S<t)&&(t=S),g(e)._overflowWeeks&&-1===t&&(t=Ae),g(e)._overflowWeekday&&-1===t&&(t=Pe),g(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tt=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,n,r,i,s,o,a=e._i,l=yt.exec(a)||bt.exec(a),a=wt.length,u=_t.length;if(l){for(g(e).iso=!0,t=0,n=a;t<n;t++)if(wt[t][1].exec(l[1])){i=wt[t][0],r=!1!==wt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=u;t<n;t++)if(_t[t][1].exec(l[3])){s=(l[2]||" ")+_t[t][0];break}if(null==s)return e._isValid=!1}if(!r&&null!=s)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),At(e)}else e._isValid=!1}function kt(e,t,n,r,i,s){e=[(e=>(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e)(e),Le.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&e.push(parseInt(s,10)),e}function Mt(e){var t,n,r,i,s=xt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=kt(s[4],s[3],s[2],s[5],s[6],s[7]),n=s[1],r=t,i=e,n&&Qe.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(g(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=s[8],r=s[9],i=s[10],n?St[n]:r?0:((n=parseInt(i,10))-(r=n%100))/100*60+r),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function $t(e,t,n){return null!=e?e:null!=t?t:n}function Ct(e){var t,n,r,i,s,o,a,l,u,c,h,d=[];if(!e._d){for(c=e,h=new Date(p.now()),n=c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[S]&&null==e._a[x]&&(null!=(h=(c=e)._w).GG||null!=h.W||null!=h.E?(o=1,a=4,r=$t(h.GG,c._a[T],Xe(D(),1,4).year),i=$t(h.W,1),((s=$t(h.E,1))<1||7<s)&&(l=!0)):(o=c._locale._week.dow,a=c._locale._week.doy,u=Xe(D(),o,a),r=$t(h.gg,c._a[T],u.year),i=$t(h.w,u.week),null!=h.d?((s=h.d)<0||6<s)&&(l=!0):null!=h.e?(s=h.e+o,(h.e<0||6<h.e)&&(l=!0)):s=o),i<1||i>C(r,o,a)?g(c)._overflowWeeks=!0:null!=l?g(c)._overflowWeekday=!0:(u=Ze(r,i,s,o,a),c._a[T]=u.year,c._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(h=$t(e._a[T],n[T]),(e._dayOfYear>De(h)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ve(h,0,e._dayOfYear),e._a[x]=l.getUTCMonth(),e._a[S]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[E]&&0===e._a[k]&&0===e._a[M]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[E]=0),e._d=(e._useUTC?Ve:We).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[E]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function At(e){if(e._f!==p.ISO_8601)if(e._f!==p.RFC_2822){e._a=[],g(e).empty=!0;for(var t,n,r,i=""+e._i,s=i.length,o=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Se(r,e))||[])[0])&&(0<(h=i.substr(0,i.indexOf(t))).length&&g(e).unusedInput.push(h),i=i.slice(i.indexOf(t)+t.length),o+=t.length),se[r]?(t?g(e).empty=!1:g(e).unusedTokens.push(r),h=r,f=e,null!=(d=t)&&m(ke,h)&&ke[h](d,f._a,f,h)):e._strict&&!t&&g(e).unusedTokens.push(r);g(e).charsLeftOver=s-o,0<i.length&&g(e).unusedInput.push(i),e._a[E]<=12&&!0===g(e).bigHour&&0<e._a[E]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[E]=(s=e._locale,u=e._a[E],null==(c=e._meridiem)?u:null!=s.meridiemHour?s.meridiemHour(u,c):null!=s.isPM?((s=s.isPM(c))&&u<12&&(u+=12),u=s||12!==u?u:0):u),null!==(c=g(e).era)&&(e._a[T]=e._locale.erasConvertYear(c,e._a[T])),Ct(e),gt(e)}else Mt(e);else Et(e);var u,c,h,d,f}function Pt(e){var t,n=e._i,r=e._f;{var i,s;return(e._locale=e._locale||P(e._l),null===n||void 0===r&&""===n)?j({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new Z(gt(n)):(I(n)?e._d=n:o(r)?(e=>{var t,n,r,i,s,o,a=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)s=0,o=!1,t=J({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],At(t),z(t)&&(o=!0),s=(s+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=s,a?s<r&&(r=s,n=t):(null==r||s<r||o)&&(r=s,n=t,o)&&(a=!0);Y(e,n||t)})(e):r?At(e):a(r=(n=e)._i)?n._d=new Date(p.now()):I(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(i=n,null===(s=Tt.exec(i._i))?(Et(i),!1===i._isValid&&(delete i._isValid,Mt(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:p.createFromInputFallback(i))):i._d=new Date(+s[1])):o(r)?(n._a=U(r.slice(0),function(e){return parseInt(e,10)}),Ct(n)):H(r)?(i=n)._d||(t=void 0===(s=ue(i._i)).day?s.date:s.day,i._a=U([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Ct(i)):L(r)?n._d=new Date(r):p.createFromInputFallback(n),z(e)||(e._d=null),e))}}function Dt(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(H(e)&&R(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,(i=new Z(gt(Pt(i=s))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function D(e,t,n,r){return Dt(e,t,n,r,!1)}function Ot(e,t){var n,r;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return D();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}p.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),p.ISO_8601=function(){},p.RFC_2822=function(){},me=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:j()}),ge=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:j()});var Bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ft(e){var e=ue(e),t=e.year||0,n=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,a=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=(e=>{var t,n,r=!1,i=Bt.length;for(t in e)if(m(e,t)&&(-1===$.call(Bt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Bt[n]]){if(r)return!1;parseFloat(e[Bt[n]])!==w(e[Bt[n]])&&(r=!0)}return!0})(e),this._milliseconds=+u+1e3*l+6e4*a+1e3*o*60*60,this._days=+s+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=P(),this._bubble()}function Nt(e){return e instanceof Ft}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+n+s(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),y("Z",xe),y("ZZ",xe),_(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=It(xe,e)});var Lt=/([\+\-]|\d\d)/gi;function It(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+w(e[2]))?0:"+"===e[0]?t:-t}function Ut(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||I(e)?e:D(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),p.updateOffset(t,!1),t):D(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function O(e,t){var n,r,i=e;return Nt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:L(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=jt.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:w(t[S])*n,h:w(t[E])*n,m:w(t[k])*n,s:w(t[M])*n,ms:w(Ht(1e3*t[Ce]))*n}):(t=Gt.exec(e))?(n="-"===t[1]?-1:1,i={y:Wt(t[2],n),M:Wt(t[3],n),w:Wt(t[4],n),d:Wt(t[5],n),h:Wt(t[6],n),m:Wt(t[7],n),s:Wt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=D(i.from),n=D(i.to),t=t.isValid()&&n.isValid()?(n=Ut(n,t),t.isBefore(n)?r=Vt(t,n):((r=Vt(n,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),r=new Ft(i),Nt(e)&&m(e,"_locale")&&(r._locale=e._locale),Nt(e)&&m(e,"_isValid")&&(r._isValid=e._isValid),r}function Wt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Jt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(K(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Zt(this,O(e,t),r),this}}function Zt(e,t,n,r){var i=t._milliseconds,s=Ht(t._days),t=Ht(t._months);e.isValid()&&(r=null==r||r,t&&ze(e,Fe(e,"Month")+t*n),s&&Ne(e,"Date",Fe(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r)&&p.updateOffset(e,s||t)}function Xt(e){return"string"==typeof e||e instanceof String}function qt(e){return l(e)||I(e)||Xt(e)||L(e)||(n=o(t=e),r=!1,n&&(r=0===t.filter(function(e){return!L(e)&&Xt(t)}).length),n&&r)||(e=>{var t,n,r=H(e)&&!R(e),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(t=0;t<o;t+=1)n=s[t],i=i||m(e,n);return r&&i})(e)||null==e;var t,n,r}function Kt(e,t){var n,r;return e.date()<t.date()?-Kt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(n,"months"))<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function Qt(e){return void 0===e?this._locale._abbr:(null!=(e=P(e))&&(this._locale=e),this)}function en(){return this._locale}O.fn=Ft.prototype,O.invalid=function(){return O(NaN)},Re=Jt(1,"add"),Ke=Jt(-1,"subtract"),p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",et=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});var tn=126227808e5;function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-tn:new Date(e,t,n).valueOf()}function sn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-tn:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){for(var e,t,n,r=[],i=[],s=[],o=[],a=this.eras(),l=0,u=a.length;l<u;++l)e=b(a[l].name),t=b(a[l].abbr),n=b(a[l].narrow),i.push(e),r.push(t),s.push(n),o.push(e),o.push(t),o.push(n);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function ln(e,t){r(0,[e,e.length],0,t)}function un(e,t,n,r,i){var s;return null==e?Xe(this,r,i).year:(t>(s=C(e,r,i))&&(t=s),function(e,t,n,r,i){e=Ze(e,t,n,r,i),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,i))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),y("N",on),y("NN",on),y("NNN",on),y("NNNN",function(e,t){return t.erasNameRegex(e)}),y("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),_(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?g(n).era=r:g(n).invalidEra=e}),y("y",we),y("yy",we),y("yyy",we),y("yyyy",we),y("yo",function(e,t){return t._eraYearOrdinalRegex||we}),_(["y","yy","yyy","yyyy"],T),_(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[T]=n._locale.eraYearOrdinalParse(e,i):t[T]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),y("G",_e),y("g",_e),y("GG",n,t),y("gg",n,t),y("GGGG",be,fe),y("gggg",be,fe),y("GGGGG",ve,pe),y("ggggg",ve,pe),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=w(e)}),Me(["gg","GG"],function(e,t,n,r){t[r]=p.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),y("Q",he),_("Q",function(e,t){t[x]=3*(w(e)-1)}),r("D",["DD",2],"Do","date"),y("D",n,d),y("DD",n,t),y("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_(["D","DD"],S),_("Do",function(e,t){t[S]=w(e.match(n)[0])}),be=Be("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),y("DDD",ye),y("DDDD",de),_(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),r("m",["mm",2],0,"minute"),y("m",n,f),y("mm",n,t),_(["m","mm"],k),fe=Be("Minutes",!1),r("s",["ss",2],0,"second"),y("s",n,f),y("ss",n,t),_(["s","ss"],M);var cn,ve=Be("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),y("S",ye,he),y("SS",ye,t),y("SSS",ye,de),cn="SSSS";cn.length<=9;cn+="S")y(cn,we);function hn(e,t){t[Ce]=w(1e3*("0."+e))}for(cn="S";cn.length<=9;cn+="S")_(cn,hn);function dn(e){return e}function fn(e,t,n,r){var i=P(),r=u().set(r,t);return i[n](r,e)}function pn(e,t,n){if(L(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=fn(e,i,n,"month");return r}function mn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),L(t)&&(n=t,t=void 0),t||"");var i,s=P(),o=e?s._week.dow:0,a=[];if(null!=n)return fn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)a[i]=fn(t,(i+o)%7,r,"day");return a}pe=Be("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName"),(d=Z.prototype).add=Re,d.calendar=function(e,t){1===arguments.length&&(arguments[0]?qt(arguments[0])?(e=arguments[0],t=void 0):(e=>{for(var t=H(e)&&!R(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||m(e,r[i]);return t&&n})(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||D(),n=Ut(e,this).startOf("day"),n=p.calendarFormat(this,n)||"sameElse",t=t&&(c(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,D(e)))},d.clone=function(){return new Z(this)},d.diff=function(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=h(t)){case"year":s=Kt(this,r)/12;break;case"month":s=Kt(this,r);break;case"quarter":s=Kt(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:v(s)},d.endOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?sn:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}this._d.setTime(t),p.updateOffset(this,!0)}return this},d.format=function(e){return e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat),e=oe(this,e),this.localeData().postformat(e)},d.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||D(e).isValid())?O({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},d.fromNow=function(e){return this.from(D(),e)},d.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||D(e).isValid())?O({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},d.toNow=function(e){return this.to(D(),e)},d.get=function(e){return c(this[e=h(e)])?this[e]():this},d.invalidAt=function(){return g(this).overflow},d.isAfter=function(e,t){return e=l(e)?e:D(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},d.isBefore=function(e,t){return e=l(e)?e:D(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},d.isBetween=function(e,t,n,r){return e=l(e)?e:D(e),t=l(t)?t:D(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},d.isSame=function(e,t){var e=l(e)?e:D(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},d.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},d.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},d.isValid=function(){return z(this)},d.lang=et,d.locale=Qt,d.localeData=en,d.max=ge,d.min=me,d.parsingFlags=function(){return Y({},g(this))},d.set=function(e,t){if("object"==typeof e)for(var n=(e=>{var t,n=[];for(t in e)m(e,t)&&n.push({unit:t,priority:ce[t]});return n.sort(function(e,t){return e.priority-t.priority}),n})(e=ue(e)),r=n.length,i=0;i<r;i++)this[n[i].unit](e[n[i].unit]);else if(c(this[e=h(e)]))return this[e](t);return this},d.startOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?sn:rn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}this._d.setTime(t),p.updateOffset(this,!0)}return this},d.subtract=Ke,d.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},d.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},d.toDate=function(){return new Date(this.valueOf())},d.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?oe(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):c(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},d.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(d[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},d.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},d.eraName=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},d.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},d.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},d.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-p(n[r].since).year())*e+n[r].offset;return this.year()},d.year=Oe,d.isLeapYear=function(){return $e(this.year())},d.weekYear=function(e){return un.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},d.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},d.quarter=d.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},d.month=je,d.daysInMonth=function(){return He(this.year(),this.month())},d.week=d.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},d.isoWeek=d.isoWeeks=function(e){var t=Xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},d.weeksInYear=function(){var e=this.localeData()._week;return C(this.year(),e.dow,e.doy)},d.weeksInWeekYear=function(){var e=this.localeData()._week;return C(this.weekYear(),e.dow,e.doy)},d.isoWeeksInYear=function(){return C(this.year(),1,4)},d.isoWeeksInISOWeekYear=function(){return C(this.isoWeekYear(),1,4)},d.date=be,d.day=d.days=function(e){var t,n,r;return this.isValid()?(t=Fe(this,"Day"),null!=e?(n=e,r=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=r.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},d.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},d.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},d.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},d.hour=d.hours=i,d.minute=d.minutes=fe,d.second=d.seconds=ve,d.millisecond=d.milliseconds=pe,d.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Yt(this);if("string"==typeof e){if(null===(e=It(xe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Yt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Zt(this,O(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this},d.utc=function(e){return this.utcOffset(0,e)},d.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Yt(this),"m"),this},d.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=It(Te,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},d.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?D(e).utcOffset():0,(this.utcOffset()-e)%60==0)},d.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},d.isLocal=function(){return!!this.isValid()&&!this._isUTC},d.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},d.isUtc=zt,d.isUTC=zt,d.zoneAbbr=function(){return this._isUTC?"UTC":""},d.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},d.dates=e("dates accessor is deprecated. Use date instead.",be),d.months=e("months accessor is deprecated. Use month instead",je),d.years=e("years accessor is deprecated. Use year instead",Oe),d.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),d.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return a(this._isDSTShifted)&&(J(t={},this),(t=Pt(t))._a?(e=(t._isUTC?u:D)(t._a),this._isDSTShifted=this.isValid()&&0<((e,t,n)=>{for(var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0,o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&w(e[o])!==w(t[o]))&&s++;return s+i})(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted}),(f=ee.prototype).calendar=function(e,t,n){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},f.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},f.invalidDate=function(){return this._invalidDate},f.ordinal=function(e){return this._ordinal.replace("%d",e)},f.preparse=dn,f.postformat=dn,f.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return c(i)?i(e,t,n,r):i.replace(/%d/i,e)},f.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},f.set=function(e){var t,n;for(n in e)m(e,n)&&(c(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},f.eras=function(e,t){for(var n,r=this._eras||P("en")._eras,i=0,s=r.length;i<s;++i)switch("string"==typeof r[i].since&&(n=p(r[i].since).startOf("day"),r[i].since=n.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=p(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},f.erasParse=function(e,t,n){var r,i,s,o,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(s=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(s===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[s,o,a].indexOf(e))return l[r]},f.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?p(e.since).year():p(e.since).year()+(t-e.offset)*n},f.erasAbbrRegex=function(e){return m(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},f.erasNameRegex=function(e){return m(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},f.erasNarrowRegex=function(e){return m(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},f.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},f.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Ie.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},f.monthsParse=function(e,t,n){var r,i;if(this._monthsParseExact)return function(e,t,n){var r,i,s,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=u([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=$.call(this._shortMonthsParse,e))?i:null:-1!==(i=$.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=$.call(this._shortMonthsParse,e))||-1!==(i=$.call(this._longMonthsParse,e))?i:null:-1!==(i=$.call(this._longMonthsParse,e))||-1!==(i=$.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=u([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},f.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Ye),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},f.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||Ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Ue),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},f.week=function(e){return Xe(e,this._week.dow,this._week.doy).week},f.firstDayOfYear=function(){return this._week.doy},f.firstDayOfWeek=function(){return this._week.dow},f.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?qe(t,this._week.dow):e?t[e.day()]:t},f.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},f.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},f.weekdaysParse=function(e,t,n){var r,i;if(this._weekdaysParseExact)return function(e,t,n){var r,i,s,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=u([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=$.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=$.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=$.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=$.call(this._weekdaysParse,e))||-1!==(i=$.call(this._shortWeekdaysParse,e))||-1!==(i=$.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=$.call(this._shortWeekdaysParse,e))||-1!==(i=$.call(this._weekdaysParse,e))||-1!==(i=$.call(this._minWeekdaysParse,e))?i:null:-1!==(i=$.call(this._minWeekdaysParse,e))||-1!==(i=$.call(this._weekdaysParse,e))||-1!==(i=$.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=u([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},f.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=tt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},f.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=nt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},f.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},f.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},f.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===w(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),p.lang=e("moment.lang is deprecated. Use moment.locale instead.",pt),p.langData=e("moment.langData is deprecated. Use moment.localeData instead.",P);var B=Math.abs;function gn(e,t,n,r){t=O(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}function _n(e){return function(){return this.isValid()?this._data[e]:NaN}}he=wn("ms"),t=wn("s"),ye=wn("m"),de=wn("h"),Re=wn("d"),ge=wn("w"),me=wn("M"),Ke=wn("Q"),i=wn("y"),fe=he;var ve=_n("milliseconds"),pe=_n("seconds"),be=_n("minutes"),Oe=_n("hours"),f=_n("days"),Tn=_n("months"),xn=_n("years"),Sn=Math.round,En={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kn(e,t,n,r){var i=O(e).abs(),s=Sn(i.as("s")),o=Sn(i.as("m")),a=Sn(i.as("h")),l=Sn(i.as("d")),u=Sn(i.as("M")),c=Sn(i.as("w")),i=Sn(i.as("y")),s=(s<=n.ss?["s",s]:s<n.s&&["ss",s])||(o<=1?["m"]:o<n.m&&["mm",o])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]);return(s=(s=null!=n.w?s||(c<=1?["w"]:c<n.w&&["ww",c]):s)||(u<=1?["M"]:u<n.M&&["MM",u])||(i<=1?["y"]:["yy",i]))[2]=t,s[3]=0<+e,s[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,s)}var Mn=Math.abs;function $n(e){return(0<e)-(e<0)||+e}function Cn(){var e,t,n,r,i,s,o,a,l,u,c;return this.isValid()?(a=Mn(this._milliseconds)/1e3,l=Mn(this._days),u=Mn(this._months),(c=this.asSeconds())?(e=v(a/60),t=v(e/60),a%=60,e%=60,n=v(u/12),u%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=$n(this._months)!==$n(c)?"-":"",s=$n(this._days)!==$n(c)?"-":"",o=$n(this._milliseconds)!==$n(c)?"-":"",(c<0?"-":"")+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+r+"S":"")):"P0D"):this.localeData().invalidDate()}var F=Ft.prototype;return F.isValid=function(){return this._isValid},F.abs=function(){var e=this._data;return this._milliseconds=B(this._milliseconds),this._days=B(this._days),this._months=B(this._months),e.milliseconds=B(e.milliseconds),e.seconds=B(e.seconds),e.minutes=B(e.minutes),e.hours=B(e.hours),e.months=B(e.months),e.years=B(e.years),this},F.add=function(e,t){return gn(this,e,t,1)},F.subtract=function(e,t){return gn(this,e,t,-1)},F.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=h(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},F.asMilliseconds=he,F.asSeconds=t,F.asMinutes=ye,F.asHours=de,F.asDays=Re,F.asWeeks=ge,F.asMonths=me,F.asQuarters=Ke,F.asYears=i,F.valueOf=fe,F._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=v(e/1e3),r.seconds=e%60,e=v(e/60),r.minutes=e%60,e=v(e/60),r.hours=e%24,t+=v(e/24),n+=e=v(bn(t)),t-=yn(vn(e)),e=v(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},F.clone=function(){return O(this)},F.get=function(e){return e=h(e),this.isValid()?this[e+"s"]():NaN},F.milliseconds=ve,F.seconds=pe,F.minutes=be,F.hours=Oe,F.days=f,F.weeks=function(){return v(this.days()/7)},F.months=Tn,F.years=xn,F.humanize=function(e,t){var n,r;return this.isValid()?(n=!1,r=En,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},En,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=kn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},F.toISOString=Cn,F.toString=Cn,F.toJSON=Cn,F.locale=Qt,F.localeData=en,F.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Cn),F.lang=et,r("X",0,0,"unix"),r("x",0,0,"valueOf"),y("x",_e),y("X",/[+-]?\d+(\.\d{1,3})?/),_("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),_("x",function(e,t,n){n._d=new Date(w(e))}),p.version="2.30.1",N=D,p.fn=d,p.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},p.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=u,p.unix=function(e){return D(1e3*e)},p.months=function(e,t){return pn(e,t,"months")},p.isDate=I,p.locale=pt,p.invalid=j,p.duration=O,p.isMoment=l,p.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},p.parseZone=function(){return D.apply(null,arguments).parseZone()},p.localeData=P,p.isDuration=Nt,p.monthsShort=function(e,t){return pn(e,t,"monthsShort")},p.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},p.defineLocale=mt,p.updateLocale=function(e,t){var n,r;return null!=t?(r=ut,null!=A[e]&&null!=A[e].parentLocale?A[e].set(Q(A[e]._config,t)):(t=Q(r=null!=(n=ft(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=A[e],A[e]=r),pt(e)):null!=A[e]&&(null!=A[e].parentLocale?(A[e]=A[e].parentLocale,e===pt()&&pt(e)):null!=A[e]&&delete A[e]),A[e]},p.locales=function(){return te(A)},p.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},p.normalizeUnits=h,p.relativeTimeRounding=function(e){return void 0===e?Sn:"function"==typeof e&&(Sn=e,!0)},p.relativeTimeThreshold=function(e,t){return void 0!==En[e]&&(void 0===t?En[e]:(En[e]=t,"s"===e&&(En.ss=t-1),!0))},p.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},p.prototype=d,p.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},p})()});function Kr(e,t){T(e,t)}let Qr={en:{nothing:"Nothing to show here."},hr:{nothing:"Nema ničega za prikazati ovdje."},"zh-hk":{nothing:"這裡沒有什麼可顯示的。"},fr:{nothing:"Rien à montrer ici."},ro:{nothing:"Niciun turneu disponibil aici."},tr:{nothing:"Burada gösterilecek bir şey yok."},el:{nothing:"Δεν υπάρχει τίποτα εδώ."},es:{nothing:"Nada que mostrar aquí."},hu:{nothing:"Nincs megjelenítendő adat."},pt:{nothing:"Nada para mostrar aqui."}};function ei(e,t){T(e,t)}let ti={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 ni(e,t){T(e,t)}let ri={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 ii(n){let r,i,s,o,a,l;return{c(){r=D("div"),i=O(n[13]),N(r,"class",s="Status "+n[15]),N(r,"part",o="Status "+n[15])},m(e,t){A(e,r,t),C(r,i),a||(l=Y(n[18].call(null,r)),a=!0)},p(e,t){8192&t[0]&&H(i,e[13]),32768&t[0]&&s!==(s="Status "+e[15])&&N(r,"class",s),32768&t[0]&&o!==(o="Status "+e[15])&&N(r,"part",o)},d(e){e&&P(r),a=!1,l()}}}function si(e){let n,r=e[5]&&oi(e);return{c(){r&&r.c(),n=j()},m(e,t){r&&r.m(e,t),A(e,n,t)},p(e,t){e[5]?r?r.p(e,t):((r=oi(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&P(n)}}}function oi(e){let n,r,i=e[16]("enrolled")+"";return{c(){n=D("div"),r=O(i),N(n,"class","Enrolled"),N(n,"part","Enrolled")},m(e,t){A(e,n,t),C(n,r)},p(e,t){65536&t[0]&&i!==(i=e[16]("enrolled")+"")&&H(r,i)},d(e){e&&P(n)}}}function ai(n){let r,i,s,o,a;return{c(){N(r=D("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),N(r,"part",s="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),G(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){A(e,r,t),o||(a=Y(n[18].call(null,r)),o=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"class",i),1&t[0]&&s!==(s="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"part",s)},d(e){e&&P(r),o=!1,a()}}}function li(n){let r,i,s,o,a;return{c(){N(r=D("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),N(r,"part",s="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),G(r,"background-image","url('"+n[4]+"')")},m(e,t){A(e,r,t),o||(a=Y(n[18].call(null,r)),o=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"class",i),1&t[0]&&s!==(s="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"part",s),16&t[0]&&G(r,"background-image","url('"+e[4]+"')")},d(e){e&&P(r),o=!1,a()}}}function ui(n){let r,i,s,o,a;return{c(){r=D("div"),i=O(n[11]),N(r,"class","Date"),N(r,"part","Date")},m(e,t){A(e,r,t),C(r,i),o||(a=Y(s=n[17].call(null,r,n[2])),o=!0)},p(e,t){2048&t[0]&&H(i,e[11]),s&&k(s.update)&&4&t[0]&&s.update.call(null,e[2])},d(e){e&&P(r),o=!1,a()}}}function ci(n){let r,i,s,o,a,l,u,c,h,d,f,p,m,g,y,b,v,w,_,T,x,S=n[16]("scoreCriteria")+"",E=n[16]("minbet")+"",k=n[16]("seegames")+"",M=n[16]("here")+"";return{c(){r=D("div"),i=D("p"),s=O(S),o=O(":\n \n "),a=D("span"),l=O(n[14]),u=O("\n ("),c=O(E),h=B(),d=O(n[6]),f=O(")"),p=B(),m=D("div"),g=D("p"),y=O(k),b=B(),v=D("a"),w=O(M),N(a,"part","ScoreCriteriaSpan"),N(i,"part","ScoreCriteriaP"),N(r,"class","ScoreCriteria"),N(r,"part","ScoreCriteria"),N(v,"part","GamesAnchor"),N(v,"href",n[8]),N(v,"target",_="true"===n[9]?"_self":"_blank"),N(g,"part","GamesP"),N(m,"class","Games"),N(m,"part","Games")},m(e,t){A(e,r,t),C(r,i),C(i,s),C(i,o),C(i,a),C(a,l),C(i,u),C(i,c),C(i,h),C(i,d),C(i,f),A(e,p,t),A(e,m,t),C(m,g),C(g,y),C(g,b),C(g,v),C(v,w),T||(x=[Y(n[19].call(null,a)),F(v,"click",n[28])],T=!0)},p(e,t){65536&t[0]&&S!==(S=e[16]("scoreCriteria")+"")&&H(s,S),16384&t[0]&&H(l,e[14]),65536&t[0]&&E!==(E=e[16]("minbet")+"")&&H(c,E),64&t[0]&&H(d,e[6]),65536&t[0]&&k!==(k=e[16]("seegames")+"")&&H(y,k),65536&t[0]&&M!==(M=e[16]("here")+"")&&H(w,M),256&t[0]&&N(v,"href",e[8]),512&t[0]&&_!==(_="true"===e[9]?"_self":"_blank")&&N(v,"target",_)},d(e){e&&P(r),e&&P(p),e&&P(m),T=!1,$(x)}}}function hi(n){let r,i,s,o,a,l,u,c,h,d=n[0]&&ii(n),f="true"==n[7]&&si(n);function p(e){return e[4]?li:ai}let m=p(n),g=m(n),y=n[2]&&ui(n),b=n[12]&&ci(n);return{c(){r=D("div"),d&&d.c(),i=B(),f&&f.c(),s=B(),g.c(),o=B(),a=D("div"),l=D("div"),u=O(n[1]),c=B(),y&&y.c(),h=B(),b&&b.c(),this.c=v,N(l,"class","Title"),N(l,"part","Title"),N(a,"class","Details"),N(a,"part","Details"),N(r,"class","Thumbnail"),N(r,"part","Thumbnail")},m(e,t){A(e,r,t),d&&d.m(r,null),C(r,i),f&&f.m(r,null),C(r,s),g.m(r,null),C(r,o),C(r,a),C(a,l),C(l,u),C(a,c),y&&y.m(a,null),C(a,h),b&&b.m(a,null),n[29](r)},p(e,t){e[0]?d?d.p(e,t):((d=ii(e)).c(),d.m(r,i)):d&&(d.d(1),d=null),"true"==e[7]?f?f.p(e,t):((f=si(e)).c(),f.m(r,s)):f&&(f.d(1),f=null),m===(m=p(e))&&g?g.p(e,t):(g.d(1),(g=m(e))&&(g.c(),g.m(r,o))),2&t[0]&&H(u,e[1]),e[2]?y?y.p(e,t):((y=ui(e)).c(),y.m(a,h)):y&&(y.d(1),y=null),e[12]?b?b.p(e,t):((b=ci(e)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:v,o:v,d(e){e&&P(r),d&&d.d(),f&&f.d(),g.d(),y&&y.d(),b&&b.d(),n[29](null)}}}function di(t,e,r){let i;ae(t,Or,e=>r(16,i=e));let n,{session:s=""}=e,{userid:o=""}=e,{title:a=""}=e,{startdate:l=""}=e,{status:u=""}=e,{tourid:c=""}=e,{thumbnail:h=""}=e,{userenrolled:d=""}=e,{scorecriteria:f=""}=e,{minbetcount:p=""}=e,{showenrolled:m="false"}=e,{gameurl:g=""}=e,{lang:y="en"}=e,{keepbrowsercontext:b="false"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationurl:_=""}=e,T="",x=!1,S="",E="",k="",M=(Object.keys(ri).forEach(e=>{ni(e,ri[e])}),e=>{e.data&&(e.data,"SessionID"==e.data.type&&r(12,x=!0),e.data.type=="TournamentStatus_"+c)&&r(0,u=e.data.status)}),$=()=>{var e=new Date(l),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),n=e.getDate(),e=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});r(11,T=n+" "+i(""+t)+", "+i("Running"===u?"startedAt":"startingAt")+" "+e)},C=()=>{"Unstarted"==u&&(r(13,S=i("scheduled")),r(15,k="StatusUnstarted")),"Running"==u&&(r(13,S=i("ongoing")),r(15,k="StatusRunning")),"Closed"!=u&&"Closing"!=u||r(13,S=i("finished")),"Closed"==u&&r(15,k="StatusClosed"),"Closing"==u&&r(15,k="StatusClosing")},A=()=>{"BetCount"==f&&r(14,E=i("betCount")),"MaxWinStakeRatio"==f&&r(14,E=i("maxWinStakeRatio")),"WinStakeRatio"==f&&r(14,E=i("winStakeRatio")),"Stake"==f&&r(14,E=i("stake"))},P=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)},D=(le(()=>(setTimeout(()=>D(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)})),()=>{var e=y;oe.set(e),A(),C(),l&&$()});return t.$$set=e=>{"session"in e&&r(21,s=e.session),"userid"in e&&r(22,o=e.userid),"title"in e&&r(1,a=e.title),"startdate"in e&&r(2,l=e.startdate),"status"in e&&r(0,u=e.status),"tourid"in e&&r(3,c=e.tourid),"thumbnail"in e&&r(4,h=e.thumbnail),"userenrolled"in e&&r(5,d=e.userenrolled),"scorecriteria"in e&&r(23,f=e.scorecriteria),"minbetcount"in e&&r(6,p=e.minbetcount),"showenrolled"in e&&r(7,m=e.showenrolled),"gameurl"in e&&r(8,g=e.gameurl),"lang"in e&&r(24,y=e.lang),"keepbrowsercontext"in e&&r(9,b=e.keepbrowsercontext),"clientstyling"in e&&r(25,v=e.clientstyling),"clientstylingurl"in e&&r(26,w=e.clientstylingurl),"translationurl"in e&&r(27,_=e.translationurl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&n&&v&&((e=document.createElement("style")).innerHTML=v,n.appendChild(e)),67109888&t.$$.dirty[0]&&n&&w){let e=new URL(w),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;134217728&t.$$.dirty[0]&&_&&fetch(_).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ni(e,t[e])})}).catch(e=>{console.log(e)}),2097152&t.$$.dirty[0]&&s&&(0<s.length&&"false"!=s?r(12,x=!0):r(12,x=!1)),1&t.$$.dirty[0]&&u&&C(),16777218&t.$$.dirty[0]&&a&&y&&D(),4&t.$$.dirty[0]&&l&&$(),8388608&t.$$.dirty[0]&&f&&A()},[u,a,l,c,h,d,p,m,g,b,n,T,x,S,E,k,i,$,C,A,P,s,o,f,y,v,w,_,()=>P(),function(e){se[e?"unshift":"push"](()=>{n=e,r(10,n)})}]}function fi(e,t){T(e,t)}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends e{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),ie(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},di,hi,n,{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&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}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}),d()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),d()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),d()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),d()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),d()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),d()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),d()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),d()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),d()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),d()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),d()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),d()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),d()}});let pi={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 mi(n){let r,i,s,o,a,l,u,c,h,d,f,p,m=n[10](n[0])+"",g=n[10](n[1])+"";function y(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?bi:0<e[5]?yi:gi}let b=y(n),v=b(n);function w(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?_i:0<e[5]?wi:0<e[4]?vi:void 0}let _=w(n),T=_&&_(n);return{c(){r=D("div"),i=D("div"),s=O(m),o=B(),a=D("div"),l=O(g),u=B(),c=D("div"),h=D("div"),v.c(),d=B(),T&&T.c(),N(i,"class","StartDate"),N(i,"part","StartDate"),N(a,"class","EndDate"),N(a,"part","EndDate"),N(r,"class","TournamentDates"),N(r,"part","TournamentDates"),N(h,"class","ProgressBar"),N(h,"part","ProgressBar"),N(c,"class","ProgressBarWrapper"),N(c,"part","ProgressBarWrapper")},m(e,t){A(e,r,t),C(r,i),C(i,s),C(r,o),C(r,a),C(a,l),A(e,u,t),A(e,c,t),C(c,h),v.m(h,null),C(h,d),T&&T.m(h,null),f||(p=Y(n[9].call(null,c)),f=!0)},p(e,t){1&t&&m!==(m=e[10](e[0])+"")&&H(s,m),2&t&&g!==(g=e[10](e[1])+"")&&H(l,g),b===(b=y(e))&&v?v.p(e,t):(v.d(1),(v=b(e))&&(v.c(),v.m(h,d))),_===(_=w(e))&&T?T.p(e,t):(T&&T.d(1),(T=_&&_(e))&&(T.c(),T.m(h,null)))},d(e){e&&P(r),e&&P(u),e&&P(c),v.d(),T&&T.d(),f=!1,p()}}}function gi(e){let n;return{c(){N(n=D("div"),"class","ProgressBarFill"),N(n,"part","ProgressBarFill"),G(n,"width",e[7]()+"%")},m(e,t){A(e,n,t)},p(e,t){128&t&&G(n,"width",e[7]()+"%")},d(e){e&&P(n)}}}function yi(e){let n;return{c(){N(n=D("div"),"class","ProgressBarFillStarting"),N(n,"part","ProgressBarFillStarting")},m(e,t){A(e,n,t)},p:v,d(e){e&&P(n)}}}function bi(e){let n;return{c(){N(n=D("div"),"class","ProgressBarFillEnd"),N(n,"part","ProgressBarFillEnd")},m(e,t){A(e,n,t)},p:v,d(e){e&&P(n)}}}function vi(e){let n,r,i,s,o=e[8]("left")+"";return{c(){n=D("div"),r=O(e[6]),i=B(),s=O(o),N(n,"class","Remaining"),N(n,"part","Remaining")},m(e,t){A(e,n,t),C(n,r),C(n,i),C(n,s)},p(e,t){64&t&&H(r,e[6]),256&t&&o!==(o=e[8]("left")+"")&&H(s,o)},d(e){e&&P(n)}}}function wi(e){let n,r,i,s,o=e[8]("starting")+"",a=e[11](e[5])+"";return{c(){n=D("div"),r=O(o),i=B(),s=O(a),N(n,"class","Remaining"),N(n,"part","Remaining")},m(e,t){A(e,n,t),C(n,r),C(n,i),C(n,s)},p(e,t){256&t&&o!==(o=e[8]("starting")+"")&&H(r,o),32&t&&a!==(a=e[11](e[5])+"")&&H(s,a)},d(e){e&&P(n)}}}function _i(e){let n,r,i=e[8]("finished")+"";return{c(){n=D("div"),r=O(i),N(n,"class","Finished"),N(n,"part","Finished")},m(e,t){A(e,n,t),C(n,r)},p(e,t){256&t&&i!==(i=e[8]("finished")+"")&&H(r,i)},d(e){e&&P(n)}}}function Ti(n){let r,i=n[0]&&n[1]&&mi(n);return{c(){r=D("div"),i&&i.c(),this.c=v,N(r,"class","TournamentDuration"),N(r,"part","TournamentDuration")},m(e,t){A(e,r,t),i&&i.m(r,null),n[16](r)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=mi(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&P(r),i&&i.d(),n[16](null)}}}function xi(t,e,n){let r,i;ae(t,Or,e=>n(8,i=e));let s,{startdate:o=""}=e,{enddate:a=""}=e,{status:l=""}=e,{lang:u="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,f="",p="",m="",g=(Object.keys(pi).forEach(e=>{fi(e,pi[e])}),e=>new Date(e).getTime()),y=(e,t)=>(g(t)-g(e))/6e4,b=()=>{var e=new Date;n(4,f=y(e,a)),n(5,p=y(e,o)),n(6,m=v(f))},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(()=>{o&&a&&b()},1e3);return()=>clearInterval(e)}),t.$$set=e=>{"startdate"in e&&n(0,o=e.startdate),"enddate"in e&&n(1,a=e.enddate),"status"in e&&n(2,l=e.status),"lang"in e&&n(12,u=e.lang),"clientstyling"in e&&n(13,c=e.clientstyling),"clientstylingurl"in e&&n(14,h=e.clientstylingurl),"translationurl"in e&&n(15,d=e.translationurl)},t.$$.update=()=>{if(19&t.$$.dirty&&n(7,r=()=>{var e,t;return f<=0?100:(t=100/(e=y(o,a)),Math.floor((e-f)*t))}),19&t.$$.dirty&&o&&a&&b(),4096&t.$$.dirty&&u&&b(),4112&t.$$.dirty&&u&&v(f),32768&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{fi(e,t[e])})}).catch(e=>{console.log(e)}),8200&t.$$.dirty&&s&&c&&((e=document.createElement("style")).innerHTML=c,s.appendChild(e)),16392&t.$$.dirty&&s&&h){let e=new URL(h),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},[o,a,l,s,f,p,m,r,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){se[e?"unshift":"push"](()=>{s=e,n(3,s)})}]}function Si(e,t){T(e,t)}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends e{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),ie(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},xi,Ti,n,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),d()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),d()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),d()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),d()}});let Ei={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 ki(e,t,n){e=e.slice();return e[13]=t[n],e[15]=n,e}function Mi(t){let i,s=t[1],o=[];for(let e=0;e<s.length;e+=1)o[e]=Ci(ki(t,s,e));let a=null;return s.length||(a=$i(t)),{c(){i=D("div");for(let e=0;e<o.length;e+=1)o[e].c();a&&a.c(),N(i,"class","Prizes"),N(i,"part","Prizes")},m(e,t){A(e,i,t);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(i,null);a&&a.m(i,null)},p(n,r){if(6&r){let t;for(s=n[1],t=0;t<s.length;t+=1){let e=ki(n,s,t);o[t]?o[t].p(e,r):(o[t]=Ci(e),o[t].c(),o[t].m(i,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=s.length,!s.length&&a?a.p(n,r):s.length?a&&(a.d(1),a=null):((a=$i(n)).c(),a.m(i,null))}},d(e){e&&P(i),z(o,e),a&&a.d()}}}function $i(e){let n,r,i=e[2]("noprizes")+"";return{c(){n=D("p"),r=O(i)},m(e,t){A(e,n,t),C(n,r)},p(e,t){4&t&&i!==(i=e[2]("noprizes")+"")&&H(r,i)},d(e){e&&P(n)}}}function Ci(e){let n,r,i,s,o,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")+"",f=e[13].name+"";return{c(){n=D("div"),r=D("p"),i=D("span"),s=O(h),o=B(),a=O(d),l=O(": "),u=O(f),c=B(),N(i,"class","PrizeRank"),N(i,"part","PrizeRank"),N(r,"class","PrizeText"),N(r,"part","PrizeText"),N(n,"class","Prize Prize"+e[15]),N(n,"part","Prize Prize"+e[15])},m(e,t){A(e,n,t),C(n,r),C(r,i),C(i,s),C(r,o),C(r,a),C(r,l),C(r,u),C(n,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)+"")&&H(s,h),4&t&&d!==(d=e[2]("place")+"")&&H(a,d),2&t&&f!==(f=e[13].name+"")&&H(u,f)},d(e){e&&P(n)}}}function Ai(n){let r,i,s,o,a,l,u,c=n[2]("prizes")+"",h=n[1]&&Mi(n);return{c(){r=D("div"),i=D("div"),(s=D("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>',o=B(),a=D("p"),l=O(c),u=B(),h&&h.c(),this.c=v,N(s,"class","TournamentPrizesIconWrapper"),N(s,"part","TournamentPrizesIconWrapper"),N(a,"class","PrizesTitle"),N(a,"part","PrizesTitle"),N(i,"class","TournamentPrizesIconSection"),N(i,"part","TournamentPrizesIconSection"),N(r,"class","TournamentPrizes"),N(r,"part","TournamentPrizes")},m(e,t){A(e,r,t),C(r,i),C(i,s),C(i,o),C(i,a),C(a,l),C(r,u),h&&h.m(r,null),n[7](r)},p(e,[t]){4&t&&c!==(c=e[2]("prizes")+"")&&H(l,c),e[1]?h?h.p(e,t):((h=Mi(e)).c(),h.m(r,null)):h&&(h.d(1),h=null)},i:v,o:v,d(e){e&&P(r),h&&h.d(),n[7](null)}}}function Pi(t,e,n){let r;ae(t,Or,e=>n(2,r=e));let i,s,{tourid:o=""}=e,{clientstyling:a=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e,c=(Object.keys(Ei).forEach(e=>{Si(e,Ei[e])}),e=>{e.data&&e.data.type=="TournamentPrizes_"+o&&n(1,s=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&&n(3,o=e.tourid),"clientstyling"in e&&n(4,a=e.clientstyling),"clientstylingurl"in e&&n(5,l=e.clientstylingurl),"translationurl"in e&&n(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=>{Si(e,t[e])})}).catch(e=>{console.log(e)})},[i,s,r,o,a,l,u,function(e){se[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}function Di(e,t){T(e,t)}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends e{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),ie(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Pi,Ai,n,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},null),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl","translationurl"]}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),d()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),d()}});let Oi={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 Bi(e,t,n){e=e.slice();return e[50]=t[n],e[52]=n,e}function Fi(n){let r,i,s,o,a,l,u,c,h,d,f=n[1],p=[];for(let e=0;e<f.length;e+=1)p[e]=Ni(Bi(n,f,e));return{c(){r=D("div"),(i=D("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>',s=B(),o=D("main"),a=D("div");for(let e=0;e<p.length;e+=1)p[e].c();u=B(),(c=D("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>',N(i,"class","SliderNavButton"),N(i,"part","SliderNavButton"),W(i,"disabled",n[8]),N(a,"class","items"),N(a,"part","items"),G(a,"transform","translateX("+n[2]+"px)"),ee(()=>n[28].call(o)),N(c,"class","SliderNavButton"),N(c,"part","SliderNavButton"),W(c,"disabled",n[9]),N(r,"class","TournamentsGamesSlider"),N(r,"part","TournamentsGamesSlider")},m(e,t){A(e,r,t),C(r,i),C(r,s),C(r,o),C(o,a);for(let e=0;e<p.length;e+=1)p[e]&&p[e].m(a,null);n[27](a),l=((e,t)=>{"static"===getComputedStyle(e).position&&(e.style.position="relative");let n=D("iframe"),r=(n.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;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1,(()=>{if(void 0===R){R=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){R=!0}}return R})()),i;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=F(window,"message",e=>{e.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{i=F(n.contentWindow,"resize",t),t()}),C(e,n),()=>{(r||i&&n.contentWindow)&&i(),P(n)}})(o,n[28].bind(o)),C(r,u),C(r,c),n[30](r),h||(d=[F(i,"click",n[23]),F(c,"click",n[29])],h=!0)},p(t,n){if(256&n[0]&&W(i,"disabled",t[8]),23650&n[0]){let e;for(f=t[1],e=0;e<f.length;e+=1){var r=Bi(t,f,e);p[e]?p[e].p(r,n):(p[e]=Ni(r),p[e].c(),p[e].m(a,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=f.length}4&n[0]&&G(a,"transform","translateX("+t[2]+"px)"),512&n[0]&&W(c,"disabled",t[9])},d(e){e&&P(r),z(p,e),n[27](null),l(),n[30](null),h=!1,$(d)}}}function Ni(n){let r,i,s,o,a,l,u,c,h,d,f,p,m,g=n[10]("playNow")+"";function y(){return n[24](n[50])}function b(){return n[25](n[52])}return{c(){r=D("div"),i=D("span"),s=O(g),l=B(),u=D("img"),f=B(),N(i,"class",o="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":"")),N(i,"part",a="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":"")),I(u.src,c=n[50].thumbnail)||N(u,"src",c),N(u,"width","132px"),N(u,"height","100px"),N(u,"alt",h=n[50].name),N(u,"title",d=n[50].name),N(r,"class","item"),N(r,"part","item")},m(e,t){A(e,r,t),C(r,i),C(i,s),C(r,l),C(r,u),C(r,f),p||(m=[F(r,"click",y),F(r,"mouseenter",b),F(r,"mouseleave",n[26])],p=!0)},p(e,t){n=e,1024&t[0]&&g!==(g=n[10]("playNow")+"")&&H(s,g),96&t[0]&&o!==(o="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":""))&&N(i,"class",o),96&t[0]&&a!==(a="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":""))&&N(i,"part",a),2&t[0]&&!I(u.src,c=n[50].thumbnail)&&N(u,"src",c),2&t[0]&&h!==(h=n[50].name)&&N(u,"alt",h),2&t[0]&&d!==(d=n[50].name)&&N(u,"title",d)},d(e){e&&P(r),p=!1,$(m)}}}function Hi(n){let r,i=n[1]&&0<n[1].length&&Fi(n);return{c(){r=D("div"),i&&i.c(),this.c=v},m(e,t){A(e,r,t),i&&i.m(r,null),n[31](r)},p(e,t){e[1]&&0<e[1].length?i?i.p(e,t):((i=Fi(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&P(r),i&&i.d(),n[31](null)}}}function Ri(n,e,r){let i,s,t;ae(n,Or,e=>r(10,t=e));let o,a,l,u,c,h,{tournamenturl:d=""}=e,{scrollby:f="3"}=e,{pagfactor:p="175"}=e,{lang:m=""}=e,{translationurl:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,v=window.navigator.userAgent,w=[],_=0,T=null,x=null,S=!1,E=0,k=(Object.keys(Oi).forEach(e=>{Di(e,Oi[e])}),e=>{r(5,S=!0),r(6,u=e)}),M=()=>{r(5,S=!1),r(6,u=-1)},$=e=>{e=(e.touches||e.originalEvent.touches)[0];T=e.clientX,x=e.clientY},C=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)&&A(0<t?1:-1),T=null,x=null)},A=e=>{0<e&&!s?(r(2,_-=a),r(2,_=_<E?E:_)):e<0&&!i&&(r(2,_+=a),r(2,_=0<_?0:_))},P=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name,launchUrl:e.launchUrl},window.location.href)};return le(()=>(a=parseInt(f,10)*parseInt(p,10),()=>{l.removeEventListener("touchstart",$),l.removeEventListener("touchmove",C)})),n.$$set=e=>{"tournamenturl"in e&&r(17,d=e.tournamenturl),"scrollby"in e&&r(15,f=e.scrollby),"pagfactor"in e&&r(16,p=e.pagfactor),"lang"in e&&r(18,m=e.lang),"translationurl"in e&&r(19,g=e.translationurl),"clientstyling"in e&&r(20,y=e.clientstyling),"clientstylingurl"in e&&r(21,b=e.clientstylingurl)},n.$$.update=()=>{if(4&n.$$.dirty[0]&&r(8,i=0===_),4194308&n.$$.dirty[0]&&r(9,s=_<=E),16&n.$$.dirty[0]&&h&&0<h&&h<Math.floor((parseInt(f)+1)*p)&&r(15,f=Math.ceil(h/p).toString()),131072&n.$$.dirty[0]&&d&&(e=new URL(d),t=new Headers,e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${_})`),e.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),e.searchParams.append("language",m),e.searchParams.append("platform",Br(v)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(1,w=e.item.games.items),e.item.games.total})),8&n.$$.dirty[0]&&l&&(l.addEventListener("touchstart",$,{passive:!0}),l.addEventListener("touchmove",C,{passive:!0})),524288&n.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Di(e,t[e])})}).catch(e=>{console.log(e)}),2&n.$$.dirty[0]&&w.length&&setTimeout(()=>{r(22,E=-1*(c.scrollWidth-c.clientWidth)),r(16,p=new String(c.scrollWidth/w.length)),a=parseInt(f,10)*parseFloat(p,2).toFixed(2)},1e3),1048577&n.$$.dirty[0]&&y&&o&&((e=document.createElement("style")).innerHTML=y,o.appendChild(e)),2097153&n.$$.dirty[0]&&b&&o){let e=new URL(b),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t},r(2,_=0),[o,w,_,l,h,S,u,c,i,s,t,k,M,A,P,f,p,d,m,g,y,b,E,()=>A(-1),e=>P(e),e=>k(e),()=>M(),function(e){se[e?"unshift":"push"](()=>{c=e,r(7,c)})},function(){h=this.clientWidth,r(4,h)},()=>A(1),function(e){se[e?"unshift":"push"](()=>{l=e,r(3,l)})},function(e){se[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function Li(e){let n,r,i,s,o,a,l,u,c,h=e[14]&&Ui(e);function d(e){return e[14]?"Closed"!=e[23]&&"Closing"!=e[23]?ji:"true"==e[3]?zi:void 0:Gi}let f=d(e),p=f&&f(e),m=(e[17]||e[19])&&Ki(e),g="true"==e[4]&&Qi(e);return{c(){n=D("div"),r=D("casino-tournaments-thumbnail"),i=B(),h&&h.c(),s=B(),o=D("div"),p&&p.c(),a=B(),m&&m.c(),l=B(),g&&g.c(),y(r,"session",e[0]),y(r,"userid",e[1]),y(r,"title",e[20]),y(r,"status",e[23]),y(r,"startdate",e[21]),y(r,"tourid",e[24]),y(r,"scorecriteria",e[27]),y(r,"minbetcount",e[28]),y(r,"thumbnail",e[25]),y(r,"showenrolled",e[5]),y(r,"gameurl",e[30]),y(r,"userenrolled",e[26]),y(r,"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"translationurl",e[12]),y(r,"lang",e[8]),y(r,"keepbrowsercontext",e[9]),y(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),N(o,"class","TournamentButtons"),N(o,"part","TournamentButtons"),N(n,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")),N(n,"part",c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){A(e,n,t),C(n,r),C(n,i),h&&h.m(n,null),C(n,s),C(n,o),p&&p.m(o,null),C(n,a),m&&m.m(n,null),C(n,l),g&&g.m(n,null)},p(e,t){1&t[0]&&y(r,"session",e[0]),2&t[0]&&y(r,"userid",e[1]),1048576&t[0]&&y(r,"title",e[20]),8388608&t[0]&&y(r,"status",e[23]),2097152&t[0]&&y(r,"startdate",e[21]),16777216&t[0]&&y(r,"tourid",e[24]),134217728&t[0]&&y(r,"scorecriteria",e[27]),268435456&t[0]&&y(r,"minbetcount",e[28]),33554432&t[0]&&y(r,"thumbnail",e[25]),32&t[0]&&y(r,"showenrolled",e[5]),1073741824&t[0]&&y(r,"gameurl",e[30]),67108864&t[0]&&y(r,"userenrolled",e[26]),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),4096&t[0]&&y(r,"translationurl",e[12]),256&t[0]&&y(r,"lang",e[8]),512&t[0]&&y(r,"keepbrowsercontext",e[9]),e[14]?h?h.p(e,t):((h=Ui(e)).c(),h.m(n,s)):h&&(h.d(1),h=null),f===(f=d(e))&&p?p.p(e,t):(p&&p.d(1),(p=f&&f(e))&&(p.c(),p.m(o,null))),e[17]||e[19]?m?m.p(e,t):((m=Ki(e)).c(),m.m(n,l)):m&&(m.d(1),m=null),"true"==e[4]?g?g.p(e,t):((g=Qi(e)).c(),g.m(n,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"))&&N(n,"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"))&&N(n,"part",c)},d(e){e&&P(n),h&&h.d(),p&&p.d(),m&&m.d(),g&&g.d()}}}function Ii(e){let n,r,i,s;return{c(){n=D("div"),(r=D("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>',N(r,"class","ph-item"),N(r,"part","ph-item"),N(n,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")),N(n,"part",s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){A(e,n,t),C(n,r)},p(e,t){192&t[0]|1&t[1]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn"))&&N(n,"class",i),192&t[0]|1&t[1]&&s!==(s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn")+" "+(e[31]?"elementToFadeOut":"elementToFadeIn"))&&N(n,"part",s)},d(e){e&&P(n)}}}function Ui(e){let n,r,i=e[24]&&Yi(e);return{c(){i&&i.c(),n=B(),y(r=D("casino-tournaments-thumbnail-duration"),"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"translationurl",e[12]),y(r,"status",e[23]),y(r,"startdate",e[21]),y(r,"lang",e[8]),y(r,"enddate",e[22]),y(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),A(e,n,t),A(e,r,t)},p(e,t){e[24]?i?i.p(e,t):((i=Yi(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),4096&t[0]&&y(r,"translationurl",e[12]),8388608&t[0]&&y(r,"status",e[23]),2097152&t[0]&&y(r,"startdate",e[21]),256&t[0]&&y(r,"lang",e[8]),4194304&t[0]&&y(r,"enddate",e[22])},d(e){i&&i.d(e),e&&P(n),e&&P(r)}}}function Yi(n){let r,i,s,o;return{c(){y(r=D("casino-tournaments-thumbnail-prizes"),"tourid",n[24]),y(r,"clientstyling",n[10]),y(r,"clientstylingurl",n[11]),y(r,"translationurl",n[12]),y(r,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){A(e,r,t),s||(o=Y(i=n[37].call(null,r,n[24])),s=!0)},p(e,t){16777216&t[0]&&y(r,"tourid",e[24]),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),4096&t[0]&&y(r,"translationurl",e[12]),i&&k(i.update)&&16777216&t[0]&&i.update.call(null,e[24])},d(e){e&&P(r),s=!1,o()}}}function zi(n){let r,i,s,o,a=n[32]("details")+"";return{c(){r=D("button"),i=O(a),N(r,"class","DetailsLargeButton"),N(r,"part","DetailsLargeButton")},m(e,t){A(e,r,t),C(r,i),s||(o=F(r,"click",n[51]),s=!0)},p(e,t){2&t[1]&&a!==(a=e[32]("details")+"")&&H(i,a)},d(e){e&&P(r),s=!1,o()}}}function ji(e){let n,r,i="true"==e[3]&&Wi(e);function s(e){return e[26]?Ji:Vi}let o=s(e),a=o(e);return{c(){i&&i.c(),n=B(),a.c(),r=j()},m(e,t){i&&i.m(e,t),A(e,n,t),a.m(e,t),A(e,r,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=Wi(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),o===(o=s(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r.parentNode,r)))},d(e){i&&i.d(e),e&&P(n),a.d(e),e&&P(r)}}}function Gi(n){let r,i,s,o,a,l,u,c=n[32]("login")+"",h=n[32]("register")+"";return{c(){r=D("button"),i=O(c),s=B(),o=D("button"),a=O(h),N(r,"class","LoginButton"),N(r,"part","LoginButton"),N(o,"class","RegisterButton"),N(o,"part","RegisterButton")},m(e,t){A(e,r,t),C(r,i),A(e,s,t),A(e,o,t),C(o,a),l||(u=[F(r,"click",n[47]),F(o,"click",n[48])],l=!0)},p(e,t){2&t[1]&&c!==(c=e[32]("login")+"")&&H(i,c),2&t[1]&&h!==(h=e[32]("register")+"")&&H(a,h)},d(e){e&&P(r),e&&P(s),e&&P(o),l=!1,$(u)}}}function Wi(n){let r,i,s,o,a=n[32]("details")+"";return{c(){r=D("button"),i=O(a),N(r,"class","DetailsButton"),N(r,"part","DetailsButton")},m(e,t){A(e,r,t),C(r,i),s||(o=F(r,"click",n[49]),s=!0)},p(e,t){2&t[1]&&a!==(a=e[32]("details")+"")&&H(i,a)},d(e){e&&P(r),s=!1,o()}}}function Vi(n){let r,i,s,o,a;function l(e){return 1==e[16]?Xi:Zi}let u=l(n),c=u(n);return{c(){r=D("button"),c.c(),N(r,"class",i="JoinButton "+(n[7]?"JoinButtonFullSize":"")),N(r,"part",s="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[17]},m(e,t){A(e,r,t),c.m(r,null),o||(a=F(r,"click",n[50]),o=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(r,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&N(r,"class",i),128&t[0]&&s!==(s="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&N(r,"part",s),131072&t[0]&&(r.disabled=e[17])},d(e){e&&P(r),c.d(),o=!1,a()}}}function Ji(e){let n,r="true"==e[3]&&qi(e);return{c(){r&&r.c(),n=j()},m(e,t){r&&r.m(e,t),A(e,n,t)},p(e,t){"true"==e[3]?r?r.p(e,t):((r=qi(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&P(n)}}}function Zi(e){let n,r,i,s,o,a,l,u,c,h=e[32]("join")+"";return{c(){n=D("span"),r=O(h),i=B(),s=t("svg"),o=t("defs"),a=t("style"),l=O(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=t("g"),c=t("path"),N(n,"part","JoinButtonSpan"),N(c,"class","a"),N(c,"part","a JoinButtonSvgA"),N(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),N(c,"transform","translate(26 26) rotate(180)"),N(u,"transform","translate(26 26) rotate(180)"),N(s,"part","JoinButtonSvg"),N(s,"xmlns","http://www.w3.org/2000/svg"),N(s,"width","26"),N(s,"height","26"),N(s,"viewBox","0 0 26 26")},m(e,t){A(e,n,t),C(n,r),A(e,i,t),A(e,s,t),C(s,o),C(o,a),C(a,l),C(s,u),C(u,c)},p(e,t){2&t[1]&&h!==(h=e[32]("join")+"")&&H(r,h)},d(e){e&&P(n),e&&P(i),e&&P(s)}}}function Xi(e){let n,r;return{c(){n=t("svg"),N(r=t("circle"),"cx","20"),N(r,"cy","20"),N(r,"r","18"),N(n,"class","spinner"),N(n,"part","spinner")},m(e,t){A(e,n,t),C(n,r)},p:v,d(e){e&&P(n)}}}function qi(e){let n,r,i=e[32]("enrolled")+"";return{c(){n=D("button"),r=O(i),N(n,"class","EnrolledButton"),N(n,"part","EnrolledButton"),n.disabled=!0},m(e,t){A(e,n,t),C(n,r)},p(e,t){2&t[1]&&i!==(i=e[32]("enrolled")+"")&&H(r,i)},d(e){e&&P(n)}}}function Ki(e){let n,r,i,s,o=e[32]("joinerror")+"";return{c(){n=D("span"),r=O(o),i=B(),s=O(e[18]),N(n,"class","ErrorText"),N(n,"part","ErrorText")},m(e,t){A(e,n,t),C(n,r),C(n,i),C(n,s)},p(e,t){2&t[1]&&o!==(o=e[32]("joinerror")+"")&&H(r,o),262144&t[0]&&H(s,e[18])},d(e){e&&P(n)}}}function Qi(e){let n;return{c(){y(n=D("casino-tournaments-thumbnail-games-slider"),"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"translationurl",e[12]),y(n,"tournamenturl",e[2]),y(n,"lang",e[8]),y(n,"scrollby","2"),y(n,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){A(e,n,t)},p(e,t){1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),4096&t[0]&&y(n,"translationurl",e[12]),4&t[0]&&y(n,"tournamenturl",e[2]),256&t[0]&&y(n,"lang",e[8])},d(e){e&&P(n)}}}function es(n){let r;function i(e){return e[15]?Ii:e[20]?Li:void 0}let s=i(n),o=s&&s(n);return{c(){r=D("div"),o&&o.c(),this.c=v},m(e,t){A(e,r,t),o&&o.m(r,null),n[52](r)},p(e,t){s===(s=i(e))&&o?o.p(e,t):(o&&o.d(1),(o=s&&s(e))&&(o.c(),o.m(r,null)))},i:v,o:v,d(e){e&&P(r),o&&o.d(),n[52](null)}}}function ts(n,e,u){let t;ae(n,Or,e=>u(32,t=e));let r,i,s,o,a,c,N,h,H,R,l,{session:d=""}=e,{userid:L=""}=e,{tournamenturl:f=""}=e,p=e.touridx,{endpoint:m=""}=e,{showdetails:I=""}=e,{showslider:U=""}=e,{showenrolled:Y=""}=e,{maxwidth:z=""}=e,{fullsize:j=""}=e,{lang:g=""}=e,{loginevent:y=""}=e,{registerevent:b=""}=e,{loginurl:v=""}=e,{registerurl:w=""}=e,{currency:_=""}=e,{keepbrowsercontext:G="false"}=e,{clientstyling:T=""}=e,{clientstylingurl:x=""}=e,{translationurl:S=""}=e,E=e.tournamentinfo,k=!1,M="",$=!0,W=window.navigator.userAgent,C=!1,A=!1,V="There was an error while trying to join the tournament",P=!1,J=[],D=[],Z="#",O=!1;var X,q;({withLocale:X,translations:q}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(nr.set(q),oe.set(X))}),Object.keys(ti).forEach(e=>{ei(e,ti[e])});let K=e=>{ee(e),F(e),ie(this,c)},Q=n=>{if(n.data&&"UserSessionID"==n.data.type&&(u(14,k=!0),M=n.data.session),"UpdateTournamentView"==n.data.type){var e=n.data.tournamentData;if(c&&c!=e.id)return;K(e)}if(n.data&&n.data.type=="UpdateSingleTournament_"+p){let e=n.data.tournamentData,t=p<4?100*p:300*Math.random()+300;u(31,O=1==p),setTimeout(()=>{u(31,O=!0),u(24,c=e.id),K(e)},t),setTimeout(()=>{u(31,O=!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)},ne=()=>{b&&(window.postMessage({type:b,transition:"Register"},window.location.href),"function"==typeof gtag)&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"}),w&&(window.location=w)},B=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},re=async(t,e)=>{u(17,A=!1),u(19,P=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(16,C=!0);let n=new URL(m+"/v1/bonus/claim"),r=new Headers,i={},s=(n.searchParams.append("language",g),n.searchParams.append("platform",Br(W)),r.append("Content-Type","application/json"),r.append("X-SessionID",M),e&&1<=e.length&&(i={language:g,bonusCode:e[0].code,currency:_,type:"tournament"}),{method:"PUT",headers:r,body:JSON.stringify(i)}),o=()=>{u(16,C=!1),u(26,h=!0)},a=e=>{u(16,C=!1),e&&u(18,V=e),u(17,A=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(n,s)).json()}catch(e){a()}return e})();if(l)if(1==l.success)o();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(m+"/tournaments/"+c,{headers:{"X-SessionID":d}})).json())?void 0:e.item)&&t.playerEnrolled?o():(a(l.errorMessage),u(19,P=!0),u(17,A=!1))}else a(l.errorMessage)},ie=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:J},window.location.href)},F=e=>{e&&(u(20,i=e.nameOrTitle||""),u(21,s=e.startTime),u(22,o=e.endTime),u(23,a=e.state),u(24,c=e.id),u(25,N=e.thumbnail),u(26,h="true"===e.playerEnrolled||1==e.playerEnrolled||!1),u(27,H=e.scoreCriteria),u(28,R=e.minBetCount),J=e.prizes,u(29,D=e.wallets||[]),u(30,Z=e.termsUrl||"#"))};return le(()=>(u(15,$=!1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",Q,!1),()=>{window.removeEventListener("message",Q)})),n.$$set=e=>{"session"in e&&u(0,d=e.session),"userid"in e&&u(1,L=e.userid),"tournamenturl"in e&&u(2,f=e.tournamenturl),"touridx"in e&&u(38,p=e.touridx),"endpoint"in e&&u(39,m=e.endpoint),"showdetails"in e&&u(3,I=e.showdetails),"showslider"in e&&u(4,U=e.showslider),"showenrolled"in e&&u(5,Y=e.showenrolled),"maxwidth"in e&&u(6,z=e.maxwidth),"fullsize"in e&&u(7,j=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.currency),"keepbrowsercontext"in e&&u(9,G=e.keepbrowsercontext),"clientstyling"in e&&u(10,T=e.clientstyling),"clientstylingurl"in e&&u(11,x=e.clientstylingurl),"translationurl"in e&&u(12,S=e.translationurl),"tournamentinfo"in e&&u(45,E=e.tournamentinfo)},n.$$.update=()=>{if(9216&n.$$.dirty[0]&&r&&T&&((t=document.createElement("style")).innerHTML=T,r.appendChild(t)),10240&n.$$.dirty[0]&&r&&x){let e=new URL(x),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,t;4096&n.$$.dirty[0]&&S&&fetch(S).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ei(e,t[e])})}).catch(e=>{console.log(e)}),1&n.$$.dirty[0]&&d&&(0<d.length&&"false"!=d?(M=d,u(14,k=!0)):u(14,k=!1)),260&n.$$.dirty[0]&&u(46,l=f&&g),32768&n.$$.dirty[1]&&l&&(E?F(E):(u(15,$=!0),t=f,u(15,$=!0),t=new URL(t),e=new Headers,t.searchParams.append("language",g),t.searchParams.append("platform",Br(W)),k&&e.append("X-SessionID",M),fetch(t,{method:"GET",headers:e}).then(e=>e.json()).then(e=>{u(15,$=!1),F(e.item)})))},[d,L,f,I,U,Y,z,j,g,G,T,x,S,r,k,$,C,A,V,P,i,s,o,a,c,N,h,H,R,D,Z,O,t,te,ne,B,re,ie,p,m,y,b,v,w,_,E,l,()=>te(),()=>ne(),()=>B(c),()=>re(c,D),()=>B(c),function(e){se[e?"unshift":"push"](()=>{r=e,u(13,r)})}]}function ns(e,t,n){e=e.slice();return e[29]=t[n],e[31]=n,e}function rs(t){let i,s=t[14],o=[];for(let e=0;e<s.length;e+=1)o[e]=ss(ns(t,s,e));let a=null;return s.length||(a=is(t)),{c(){for(let e=0;e<o.length;e+=1)o[e].c();i=j(),a&&a.c()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);A(t,i,n),a&&a.m(t,n)},p(n,r){if(53247&r[0]){let t;for(s=n[14],t=0;t<s.length;t+=1){let e=ns(n,s,t);o[t]?o[t].p(e,r):(o[t]=ss(e),o[t].c(),o[t].m(i.parentNode,i))}for(;t<o.length;t+=1)o[t].d(1);o.length=s.length,!s.length&&a?a.p(n,r):s.length?a&&(a.d(1),a=null):((a=is(n)).c(),a.m(i.parentNode,i))}},d(e){z(o,e),e&&P(i),a&&a.d(e)}}}function is(e){let n,r,i=e[15]("nothing")+"";return{c(){n=D("p"),r=O(i)},m(e,t){A(e,n,t),C(n,r)},p(e,t){32768&t[0]&&i!==(i=e[15]("nothing")+"")&&H(r,i)},d(e){e&&P(n)}}}function ss(e){let n,r,i,s;return{c(){y(n=D("casino-tournaments-thumbnail-controller"),"touridx",e[31]+1),y(n,"userid",e[1]),y(n,"showdetails","true"),y(n,"showslider","false"),y(n,"tournamenturl",r=e[29].href),y(n,"maxwidth",i=e[14].length<=2),y(n,"loginurl",e[5]),y(n,"loginevent",e[3]),y(n,"registerurl",e[6]),y(n,"tournamentinfo",s=e[29]),y(n,"registerevent",e[4]),y(n,"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"lang",e[8]),y(n,"currency",e[7]),y(n,"keepbrowsercontext",e[9]),y(n,"session",e[0]),y(n,"endpoint",e[2]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){A(e,n,t)},p(e,t){2&t[0]&&y(n,"userid",e[1]),16384&t[0]&&r!==(r=e[29].href)&&y(n,"tournamenturl",r),16384&t[0]&&i!==(i=e[14].length<=2)&&y(n,"maxwidth",i),32&t[0]&&y(n,"loginurl",e[5]),8&t[0]&&y(n,"loginevent",e[3]),64&t[0]&&y(n,"registerurl",e[6]),16384&t[0]&&s!==(s=e[29])&&y(n,"tournamentinfo",s),16&t[0]&&y(n,"registerevent",e[4]),1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),256&t[0]&&y(n,"lang",e[8]),128&t[0]&&y(n,"currency",e[7]),512&t[0]&&y(n,"keepbrowsercontext",e[9]),1&t[0]&&y(n,"session",e[0]),4&t[0]&&y(n,"endpoint",e[2])},d(e){e&&P(n)}}}function os(n){let r,i=!n[13]&&rs(n);return{c(){r=D("div"),i&&i.c(),this.c=v,N(r,"class","TournamentList"),N(r,"part","TournamentList")},m(e,t){A(e,r,t),i&&i.m(r,null),n[17](r)},p(e,t){e[13]?i&&(i.d(1),i=null):i?i.p(e,t):((i=rs(e)).c(),i.m(r,null))},i:v,o:v,d(e){e&&P(r),i&&i.d(),n[17](null)}}}function as(t,e,n){let r;ae(t,Or,e=>n(15,r=e));let i,{session:s=""}=e,{userid:o=""}=e,{endpoint:a=""}=e,{loginevent:l=""}=e,{registerevent:u=""}=e,{loginurl:c=""}=e,{registerurl:h=""}=e,{currency:d=""}=e,{lang:f="en"}=e,{keepbrowsercontext:p="false"}=e,{clientstyling:m=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,b=!1,v=(qr(),""),w=(Object.keys(Qr).forEach(e=>{Kr(e,Qr[e])}),t=>{if(t.data&&"TournamentList"==t.data.type&&(n(14,v=[]),n(13,b=!0),n(14,v=t.data.tournamentList),setTimeout(()=>{n(13,b=!1)},10)),t.data&&"TournamentListShowMore"==t.data.type&&n(14,v=[...v,...t.data.tournamentList]),"UpdateTournamentView"==t.data.type){if(!v)return;0==v.filter(e=>e.id==t.data.tournamentData.id).length&&(v.pop(),n(14,v=[t.data.tournamentData,...v]),setTimeout(()=>{v.forEach((e,t)=>{window.postMessage({type:"UpdateSingleTournament_"+(t+1),tournamentData:e},window.location.href)})},100))}t.data&&"UserSessionID"==t.data.type&&t.data.session});return le(()=>(window.addEventListener("message",w,!0),()=>{window.removeEventListener("message",w,!0)})),t.$$set=e=>{"session"in e&&n(0,s=e.session),"userid"in e&&n(1,o=e.userid),"endpoint"in e&&n(2,a=e.endpoint),"loginevent"in e&&n(3,l=e.loginevent),"registerevent"in e&&n(4,u=e.registerevent),"loginurl"in e&&n(5,c=e.loginurl),"registerurl"in e&&n(6,h=e.registerurl),"currency"in e&&n(7,d=e.currency),"lang"in e&&n(8,f=e.lang),"keepbrowsercontext"in e&&n(9,p=e.keepbrowsercontext),"clientstyling"in e&&n(10,m=e.clientstyling),"clientstylingurl"in e&&n(11,g=e.clientstylingurl),"translationurl"in e&&n(16,y=e.translationurl)},t.$$.update=()=>{if(5120&t.$$.dirty[0]&&i&&m&&((e=document.createElement("style")).innerHTML=m,i.appendChild(e)),6144&t.$$.dirty[0]&&i&&g){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;65536&t.$$.dirty[0]&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Kr(e,t[e])})}).catch(e=>{console.log(e)}),1&t.$$.dirty[0]&&s&&s.length,t.$$.dirty[0]},[s,o,a,l,u,c,h,d,f,p,m,g,i,b,v,r,y,function(e){se[e?"unshift":"push"](()=>{i=e,n(12,i)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends e{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),ie(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Ri,Hi,n,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang","translationurl","clientstyling","clientstylingurl"]}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(e){this.$$set({tournamenturl:e}),d()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),d()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(e){this.$$set({pagfactor:e}),d()}get lang(){return this.$$.ctx[18]}set lang(e){this.$$set({lang:e}),d()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),d()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends e{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),ie(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},ts,es,n,{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&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}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}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),d()}get touridx(){return this.$$.ctx[38]}set touridx(e){this.$$set({touridx:e}),d()}get endpoint(){return this.$$.ctx[39]}set endpoint(e){this.$$set({endpoint:e}),d()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),d()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),d()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),d()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),d()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),d()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),d()}get loginevent(){return this.$$.ctx[40]}set loginevent(e){this.$$set({loginevent:e}),d()}get registerevent(){return this.$$.ctx[41]}set registerevent(e){this.$$set({registerevent:e}),d()}get loginurl(){return this.$$.ctx[42]}set loginurl(e){this.$$set({loginurl:e}),d()}get registerurl(){return this.$$.ctx[43]}set registerurl(e){this.$$set({registerurl:e}),d()}get currency(){return this.$$.ctx[44]}set currency(e){this.$$set({currency:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),d()}get tournamentinfo(){return this.$$.ctx[45]}set tournamentinfo(e){this.$$set({tournamentinfo:e}),d()}}),customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",class extends e{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}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}",this.shadowRoot.appendChild(t),ie(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},as,os,n,{session:0,userid:1,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:16},null,[-1,-1]),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),d()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$$set({loginevent:e}),d()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$$set({registerevent:e}),d()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$$set({loginurl:e}),d()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$$set({registerurl:e}),d()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),d()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),d()}});let ls=e=>0<e.length&&"false"!=e;function us(e){let n,r,i,s,o,a,l=e[18]&&hs(e);function u(e){return 0==e[19]?fs:ds}let c=u(e),h=c(e),d=!e[20]&&gs(e);return{c(){n=D("div"),r=D("div"),i=D("div"),l&&l.c(),s=B(),o=D("div"),h.c(),a=B(),d&&d.c(),N(i,"class","FirstRow"),N(i,"part","FirstRow"),N(o,"class","SecondRow"),N(o,"part","SecondRow"),N(r,"class","Tournaments"),N(r,"part","Tournaments"),N(n,"class","TournamentsWrapper"),N(n,"part","TournamentsWrapper")},m(e,t){A(e,n,t),C(n,r),C(r,i),l&&l.m(i,null),C(r,s),C(r,o),h.m(o,null),C(r,a),d&&d.m(r,null)},p(e,t){e[18]?l?l.p(e,t):((l=hs(e)).c(),l.m(i,null)):l&&(l.d(1),l=null),c===(c=u(e))&&h?h.p(e,t):(h.d(1),(h=c(e))&&(h.c(),h.m(o,null))),e[20]?d&&(d.d(1),d=null):d?d.p(e,t):((d=gs(e)).c(),d.m(r,null))},d(e){e&&P(n),l&&l.d(),h.d(),d&&d.d()}}}function cs(e){let n,r,i,s,o,a=e[21]("500")+"";return{c(){n=D("p"),r=O(a),i=B(),s=D("p"),o=O(e[16])},m(e,t){A(e,n,t),C(n,r),A(e,i,t),A(e,s,t),C(s,o)},p(e,t){2097152&t[0]&&a!==(a=e[21]("500")+"")&&H(r,a),65536&t[0]&&H(o,e[16])},d(e){e&&P(n),e&&P(i),e&&P(s)}}}function hs(e){let n;return{c(){y(n=D("casino-tournaments-filter-controller"),"clientstyling",e[12]),y(n,"clientstylingurl",e[13]),y(n,"filters",bs),y(n,"activefilters",e[5]),y(n,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(e,t){A(e,n,t)},p(e,t){4096&t[0]&&y(n,"clientstyling",e[12]),8192&t[0]&&y(n,"clientstylingurl",e[13]),32&t[0]&&y(n,"activefilters",e[5])},d(e){e&&P(n)}}}function ds(e){let n;return{c(){y(n=D("casino-tournaments-list-controller"),"clientstyling",e[12]),y(n,"clientstylingurl",e[13]),y(n,"userid",e[1]),y(n,"numberoftournaments",e[4]),y(n,"loginurl",e[8]),y(n,"loginevent",e[6]),y(n,"registerurl",e[9]),y(n,"registerevent",e[7]),y(n,"lang",e[3]),y(n,"currency",e[10]),y(n,"keepbrowsercontext",e[11]),y(n,"session",e[0]),y(n,"endpoint",e[2]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){A(e,n,t)},p(e,t){4096&t[0]&&y(n,"clientstyling",e[12]),8192&t[0]&&y(n,"clientstylingurl",e[13]),2&t[0]&&y(n,"userid",e[1]),16&t[0]&&y(n,"numberoftournaments",e[4]),256&t[0]&&y(n,"loginurl",e[8]),64&t[0]&&y(n,"loginevent",e[6]),512&t[0]&&y(n,"registerurl",e[9]),128&t[0]&&y(n,"registerevent",e[7]),8&t[0]&&y(n,"lang",e[3]),1024&t[0]&&y(n,"currency",e[10]),2048&t[0]&&y(n,"keepbrowsercontext",e[11]),1&t[0]&&y(n,"session",e[0]),4&t[0]&&y(n,"endpoint",e[2])},d(e){e&&P(n)}}}function fs(e){let n;function r(e){return e[17]?ms:ps}let i=r(e),s=i(e);return{c(){s.c(),n=j()},m(e,t){s.m(e,t),A(e,n,t)},p(e,t){i===(i=r(e))&&s?s.p(e,t):(s.d(1),(s=i(e))&&(s.c(),s.m(n.parentNode,n)))},d(e){s.d(e),e&&P(n)}}}function ps(e){let n,r,i=e[21]("noTournaments")+"";return{c(){n=D("p"),r=O(i),N(n,"class","NoTournaments"),N(n,"part","NoTournaments")},m(e,t){A(e,n,t),C(n,r)},p(e,t){2097152&t[0]&&i!==(i=e[21]("noTournaments")+"")&&H(r,i)},d(e){e&&P(n)}}}function ms(e){let n,r,i=e[21]("loading")+"";return{c(){n=D("p"),r=O(i),N(n,"class","LoadingMessage"),N(n,"part","LoadingMessage")},m(e,t){A(e,n,t),C(n,r)},p(e,t){2097152&t[0]&&i!==(i=e[21]("loading")+"")&&H(r,i)},d(e){e&&P(n)}}}function gs(n){let r,i,s,o,a,l,u=n[21]("showMore")+"";return{c(){r=D("div"),i=D("div"),s=D("button"),o=O(u),N(s,"class","ShowMoreButton"),N(s,"part","ShowMoreButton"),N(s,"title","Show More"),N(i,"class","CenterButton"),N(i,"part","CenterButton"),N(r,"class","ThirdRow"),N(r,"part","ThirdRow")},m(e,t){A(e,r,t),C(r,i),C(i,s),C(s,o),a||(l=F(s,"click",n[32]),a=!0)},p(e,t){2097152&t[0]&&u!==(u=e[21]("showMore")+"")&&H(o,u)},d(e){e&&P(r),a=!1,l()}}}function ys(n){let r;function i(e){return e[15]?cs:us}let s=i(n),o=s(n);return{c(){r=D("div"),o.c(),this.c=v},m(e,t){A(e,r,t),o.m(r,null),n[33](r)},p(e,t){s===(s=i(e))&&o?o.p(e,t):(o.d(1),(o=s(e))&&(o.c(),o.m(r,null)))},i:v,o:v,d(e){e&&P(r),o.d(),n[33](null)}}}let bs="All,Scheduled,Ongoing,Finished";function vs(t,e,o){let n;ae(t,Or,e=>o(21,n=e));let r,a,i,s,{session:l=""}=e,{userid:N=""}=e,{endpoint:u=""}=e,{lang:c="en"}=e,{translationurl:h=""}=e,{numberoftournaments:d="6"}=e,{showmorestep:f="2"}=e,{filters:p="All"}=e,{loginevent:H=""}=e,{registerevent:R=""}=e,{loginurl:L=""}=e,{registerurl:I=""}=e,{currency:U="EUR"}=e,{keepbrowsercontext:Y="false"}=e,{sorttype:m=""}=e,{sortorder:g=""}=e,{starttimeafter:y=""}=e,{showanonymoustournaments:b="true"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{delaybeforeload:_=1e3}=e,T=!1,x="",S=!1,E="",z=window.navigator.userAgent,k=!0,j=!1,M=!1,$=0,C=!1,A=6,P=!0,D=[],O=!1;var G,W;({withLocale:G,translations:W}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(nr.set(W),oe.set(G))}),Object.keys(Hr).forEach(e=>{Fr(e,Hr[e])});let V=e=>{var t;e.data&&"UserSessionID"===e.data.type&&(S=!0,o(30,E=e.data.session),e.data.userid,B(u,0,A)),e.data&&"TournamentsFiltersSelected"===e.data.type&&(D=e.data.filters,B(u,0,A)),e.data&&"TournamentThumbnailMounted"===e.data.type&&(t=s)&&Object.keys(t).forEach(e=>{Fr(e,t[e])})},B=async(e,t,n)=>{o(17,k=!0),o(19,$=0);let r=await Z(e,t,n);setTimeout(()=>{window.postMessage({type:"TournamentList",tournamentList:r.items},window.location.href)},50),o(17,k=!1)},J=()=>{var e=new Date;return y?e.setDate(e.getDate()-Number(y)):e.setMonth(e.getMonth()-1),e.toISOString().substring(0,10)},Z=async(e,t,n)=>{let r=new URL(e+"/v1/tournaments"),i=new Headers,s=(r.searchParams.append("pagination",`offset=${t},limit=`+n),r.searchParams.append("sortField","StartTime"),r.searchParams.append("sortOrder",g||"desc"),r.searchParams.append("language",c),{StartTimeAfter:J()});ls(l)||"false"!==b||(s.tags="no-role-set"),0<D.length&&"All"!=D[0]&&(s.state=D.map(e=>"Scheduled"==e?"Unstarted":"Ongoing"==e?"Running":"Closing|Closed").join("|"));e=Object.keys(s).map(e=>e+"="+s[e]).join(",");return r.searchParams.append("filter",e),r.searchParams.append("platform",Br(z)),m&&r.searchParams.append("sortType",m),S&&i.append("X-SessionID",E),fetch(r,{method:"GET",headers:i,cache:"no-cache"}).then(e=>e.json()).then(e=>(a=r.searchParams.toString(),o(19,$=e.total),o(20,P=A>=$),M||X(),e))},F=e=>{if("message"==e.type){var t=e.data;if(t)try{var n,r=JSON.parse(t);r&&r.item&&(n=r.item,"TournamentUpdate"==r.messageType&&window.postMessage({type:"UpdateTournamentView",tournamentData:n},window.location.href),"TournamentRemove"==r.messageType)&&window.postMessage({type:"TournamentList",tournamentList:r.items},window.location.href)}catch(e){console.error(e)}}},X=()=>{M=!0,setTimeout(()=>{M=!1},1e3),i&&(i.removeEventListener("message",F),i.close());var e=u+"/v1/tournaments/updates?"+a;void 0!==(i=new Rr.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":l}}))&&i.addEventListener("message",F)},q=async()=>{var e=A,t=parseInt(f,10),n=(A+=t,window.postMessage({type:"TournamentsPagination",offset:0,limit:A},window.location.href),u);n=await Z(n,e,t),window.postMessage({type:"TournamentListShowMore",tournamentList:n.items},window.location.href),await 0,A>=$&&o(20,P=!0)},K=()=>{if(!C)return!1;u||(o(16,x="Endpoint is missing! Please provide a valid endpointURL."),o(15,T=!0),console.error(x)),c&&2==c.length||(o(16,x="Language is missing! Please provide a valid language (alpha2code)"),o(15,T=!0),console.error(x)),T||(A=parseInt(d,10),Nr(c),B(u,0,A))},Q=async()=>{O||(O=!0,await K(),O=!1)};return le(()=>(setTimeout(()=>{o(31,C=!0)},_),window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V),i&&(i.removeEventListener("message",F),i.close())})),t.$$set=e=>{"session"in e&&o(0,l=e.session),"userid"in e&&o(1,N=e.userid),"endpoint"in e&&o(2,u=e.endpoint),"lang"in e&&o(3,c=e.lang),"translationurl"in e&&o(23,h=e.translationurl),"numberoftournaments"in e&&o(4,d=e.numberoftournaments),"showmorestep"in e&&o(24,f=e.showmorestep),"filters"in e&&o(5,p=e.filters),"loginevent"in e&&o(6,H=e.loginevent),"registerevent"in e&&o(7,R=e.registerevent),"loginurl"in e&&o(8,L=e.loginurl),"registerurl"in e&&o(9,I=e.registerurl),"currency"in e&&o(10,U=e.currency),"keepbrowsercontext"in e&&o(11,Y=e.keepbrowsercontext),"sorttype"in e&&o(25,m=e.sorttype),"sortorder"in e&&o(26,g=e.sortorder),"starttimeafter"in e&&o(27,y=e.starttimeafter),"showanonymoustournaments"in e&&o(28,b=e.showanonymoustournaments),"clientstyling"in e&&o(12,v=e.clientstyling),"clientstylingurl"in e&&o(13,w=e.clientstylingurl),"delaybeforeload"in e&&o(29,_=e.delaybeforeload)},t.$$.update=()=>{if(20480&t.$$.dirty[0]&&r&&v&&((e=document.createElement("style")).innerHTML=v,r.appendChild(e)),24576&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;t.$$.dirty[0],32&t.$$.dirty[0]&&p&&(D=p.split(","),o(18,j=!0)),8&t.$$.dirty[0]&&c&&Nr(c),8388608&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{s=t,Object.keys(t).forEach(e=>{Fr(e,t[e])})}).catch(e=>{console.log(e)}),1&t.$$.dirty[1]&&C&&K(),1&t.$$.dirty[0]&&(""===l||l)&&(ls(l)?(S=!0,o(30,E=l)):(S=!1,o(30,E=""))),1073741824&t.$$.dirty[0]&&(""===E||E)&&Q(),285212700&t.$$.dirty[0]&&u&&d&&f&&c&&b&&Q()},[l,N,u,c,d,p,H,R,L,I,U,Y,v,w,r,T,x,k,j,$,P,n,q,h,f,m,g,y,b,_,E,C,()=>q(),function(e){se[e?"unshift":"push"](()=>{r=e,o(14,r)})}]}class ws extends e{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}.ShowMoreButton{background:var(--emfe-w-color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emfe-w-color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}",this.shadowRoot.appendChild(t),ie(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},vs,ys,n,{session:0,userid:1,endpoint:2,lang:3,translationurl:23,numberoftournaments:4,showmorestep:24,filters:5,loginevent:6,registerevent:7,loginurl:8,registerurl:9,currency:10,keepbrowsercontext:11,sorttype:25,sortorder:26,starttimeafter:27,showanonymoustournaments:28,clientstyling:12,clientstylingurl:13,delaybeforeload:29},null,[-1,-1,-1]),e&&(e.target&&A(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","endpoint","lang","translationurl","numberoftournaments","showmorestep","filters","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","sorttype","sortorder","starttimeafter","showanonymoustournaments","clientstyling","clientstylingurl","delaybeforeload"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),d()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),d()}get translationurl(){return this.$$.ctx[23]}set translationurl(e){this.$$set({translationurl:e}),d()}get numberoftournaments(){return this.$$.ctx[4]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),d()}get showmorestep(){return this.$$.ctx[24]}set showmorestep(e){this.$$set({showmorestep:e}),d()}get filters(){return this.$$.ctx[5]}set filters(e){this.$$set({filters:e}),d()}get loginevent(){return this.$$.ctx[6]}set loginevent(e){this.$$set({loginevent:e}),d()}get registerevent(){return this.$$.ctx[7]}set registerevent(e){this.$$set({registerevent:e}),d()}get loginurl(){return this.$$.ctx[8]}set loginurl(e){this.$$set({loginurl:e}),d()}get registerurl(){return this.$$.ctx[9]}set registerurl(e){this.$$set({registerurl:e}),d()}get currency(){return this.$$.ctx[10]}set currency(e){this.$$set({currency:e}),d()}get keepbrowsercontext(){return this.$$.ctx[11]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get sorttype(){return this.$$.ctx[25]}set sorttype(e){this.$$set({sorttype:e}),d()}get sortorder(){return this.$$.ctx[26]}set sortorder(e){this.$$set({sortorder:e}),d()}get starttimeafter(){return this.$$.ctx[27]}set starttimeafter(e){this.$$set({starttimeafter:e}),d()}get showanonymoustournaments(){return this.$$.ctx[28]}set showanonymoustournaments(e){this.$$set({showanonymoustournaments:e}),d()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get delaybeforeload(){return this.$$.ctx[29]}set delaybeforeload(e){this.$$set({delaybeforeload:e}),d()}}return customElements.get("casino-tournaments-controller")||customElements.define("casino-tournaments-controller",ws),ws});
2
- //# sourceMappingURL=casino-tournaments-controller.js.map