@everymatrix/casino-tournaments-page-controller 0.0.189 → 0.0.190
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.
- package/dist/casino-lobby.js +2 -0
- package/dist/casino-lobby.js.map +1 -0
- package/package.json +3 -3
- package/rollup.config.js +13 -5
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function y(){}function d(t){return t()}function h(){return Object.create(null)}function b(t){t.forEach(d)}function p(t){return"function"==typeof t}function n(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function f(t,...e){if(null==t)return y;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function H(t,e,n){t.$$.on_destroy.push(f(e,n))}function g(t){return t&&p(t.destroy)?t.destroy:y}function A(t,e){t.appendChild(e)}function P(t,e,n){t.insertBefore(e,n||null)}function k(t){t.parentNode.removeChild(t)}function E(e,n){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(n)}function $(t){return document.createElement(t)}function e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function C(t){return document.createTextNode(t)}function S(){return C(" ")}function w(){return C("")}function L(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function N(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function v(t,e,n){e in t?t[e]=n:N(t,e,n)}function O(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function m(t,e,n,r){t.style.setProperty(e,n,r?"important":"")}function t(t,e,n){t.classList[n?"add":"remove"](e)}function r(t){const e={};for(const n of t)e[n.name]=n.value;return e}let T;function x(t){T=t}function X(t){!function(){if(!T)throw new Error("Function called outside component initialization");return T}().$$.on_mount.push(t)}const _=[],D=[],o=[],i=[],R=Promise.resolve();let M=!1;function I(t){o.push(t)}let s=!1;const a=new Set;function U(){if(!s){s=!0;do{for(let t=0;t<_.length;t+=1){var e=_[t];x(e),function(t){{var e;null!==t.fragment&&(t.update(),b(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(I))}}(e.$$)}for(x(null),_.length=0;D.length;)D.pop()();for(let t=0;t<o.length;t+=1){const n=o[t];a.has(n)||(a.add(n),n())}}while(o.length=0,_.length);for(;i.length;)i.pop()();M=!1,s=!1,a.clear()}}const B=new Set;function l(r,t,e,n,o,i,s=[-1]){var a,l=T;x(r);const u=r.$$={fragment:null,ctx:null,props:i,update:y,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=e?e(r,t.props||{},(t,e,...n)=>{n=n.length?n[0]:e;return u.ctx&&o(u.ctx[t],u.ctx[t]=n)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](n),c&&(n=t,-1===(t=r).$$.dirty[0]&&(_.push(t),M||(M=!0,R.then(U)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31)),e}):[],u.update(),c=!0,b(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){const y=(n=t.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(y),y.forEach(k)}else u.fragment&&u.fragment.c();t.intro&&(a=r.$$.fragment)&&a.i&&(B.delete(a),a.i(void 0)),function(e,t,n,r){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=e.$$;o&&o.m(t,n),r||I(()=>{var t=i.map(d).filter(p);s?s.push(...t):b(t),e.$$.on_mount=[]}),a.forEach(I)}(r,t.target,t.anchor,t.customElement),U()}x(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(d).filter(p);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){b(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(b(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=y}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var c,z,F="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==F&&F,j="URLSearchParams"in F,G="Symbol"in F&&"iterator"in Symbol,V="FileReader"in F&&"Blob"in F&&function(){try{return new Blob,!0}catch(t){return!1}}(),q="FormData"in F,Y="ArrayBuffer"in F;function W(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function K(t){return t="string"!=typeof t?String(t):t}function Z(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return G&&(t[Symbol.iterator]=function(){return t}),t}function J(e){this.map={},e instanceof J?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function Q(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function tt(n){return new Promise(function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}})}function et(t){var e=new FileReader,n=tt(e);return e.readAsArrayBuffer(t),n}function nt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function rt(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:V&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:q&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:j&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():Y&&V&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=nt(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y&&(ArrayBuffer.prototype.isPrototypeOf(t)||z(t))?this._bodyArrayBuffer=nt(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):j&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},V&&(this.blob=function(){var t=Q(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Q(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(et)}),this.text=function(){var t,e,n=Q(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,n=tt(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},q&&(this.formData=function(){return this.text().then(st)}),this.json=function(){return this.text().then(JSON.parse)},this}Y&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],z=ArrayBuffer.isView||function(t){return t&&-1<c.indexOf(Object.prototype.toString.call(t))}),J.prototype.append=function(t,e){t=W(t),e=K(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},J.prototype.delete=function(t){delete this.map[W(t)]},J.prototype.get=function(t){return t=W(t),this.has(t)?this.map[t]:null},J.prototype.has=function(t){return this.map.hasOwnProperty(W(t))},J.prototype.set=function(t,e){this.map[W(t)]=K(e)},J.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},J.prototype.keys=function(){var n=[];return this.forEach(function(t,e){n.push(e)}),Z(n)},J.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Z(e)},J.prototype.entries=function(){var n=[];return this.forEach(function(t,e){n.push([e,t])}),Z(n)},G&&(J.prototype[Symbol.iterator]=J.prototype.entries);var ot=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function it(t,e){if(!(this instanceof it))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(e=e||{}).body;if(t instanceof it){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new J(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new J(e.headers)),this.method=(t=(n=e.method||this.method||"GET").toUpperCase(),-1<ot.indexOf(t)?t:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function st(t){var n=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function at(t,e){if(!(this instanceof at))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new J(e.headers),this.url=e.url||"",this._initBody(t)}it.prototype.clone=function(){return new it(this,{body:this._bodyInit})},rt.call(it.prototype),rt.call(at.prototype),at.prototype.clone=function(){return new at(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new J(this.headers),url:this.url})},at.error=function(){var t=new at(null,{status:0,statusText:""});return t.type="error",t};var lt=[301,302,303,307,308];at.redirect=function(t,e){if(-1===lt.indexOf(e))throw new RangeError("Invalid status code");return new at(null,{status:e,headers:{location:t}})};var ut=F.DOMException;try{new ut}catch(y){(ut=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),ut.prototype.constructor=ut}function ct(r,s){return new Promise(function(o,t){var e=new it(r,s);if(e.signal&&e.signal.aborted)return t(new ut("Aborted","AbortError"));var i=new XMLHttpRequest;function n(){i.abort()}i.onload=function(){var t,n,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",n=new J,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var r="response"in i?i.response:i.responseText;setTimeout(function(){o(new at(r,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new ut("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&F.location.href?F.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(V?i.responseType="blob":Y&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof J?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,K(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",n),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",n)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}ct.polyfill=!0,F.fetch||(F.fetch=ct,F.Headers=J,F.Request=it,F.Response=at),self.fetch.bind(self);var dt=function(t,e){return(dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function ht(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}dt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function pt(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ft(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function mt(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}function gt(t){return"function"==typeof t}function bt(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var yt=bt(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function vt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var wt=(Tt.prototype.unsubscribe=function(){var t,e,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=pt(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(gt(i))try{i()}catch(t){o=t instanceof yt?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=pt(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{_t(c)}catch(t){o=null!=o?o:[],t instanceof yt?o=mt(mt([],ft(o)),ft(t.errors)):o.push(t)}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new yt(o)}},Tt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)_t(t);else{if(t instanceof Tt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},Tt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},Tt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},Tt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&vt(e,t)},Tt.prototype.remove=function(t){var e=this._teardowns;e&&vt(e,t),t instanceof Tt&&t._removeParent(this)},Tt.EMPTY=((Ve=new Tt).closed=!0,Ve),Tt),Et=wt.EMPTY;function Tt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function xt(t){return t instanceof wt||t&&"closed"in t&>(t.remove)&>(t.add)&>(t.unsubscribe)}function _t(t){gt(t)?t():t.unsubscribe()}var At=void 0,Pt=!1,kt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,mt([],ft(t)))};function $t(){}function Ct(t){t()}var St,Lt,Nt=(ht(Rt,Lt=wt),Rt.create=function(t,e,n){return new Ot(t,e,n)},Rt.prototype.next=function(t){this.isStopped||this._next(t)},Rt.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Rt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Rt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Lt.prototype.unsubscribe.call(this),this.destination=null)},Rt.prototype._next=function(t){this.destination.next(t)},Rt.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Rt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Rt),Ot=(ht(Dt,St=Nt),Dt);function Dt(t,e,n){var r,o,i=St.call(this)||this;return gt(t)?o=t:t&&(o=t.next,e=t.error,n=t.complete,i&&Pt?(r=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:r=t,o=null==o?void 0:o.bind(r),e=null==e?void 0:e.bind(r),n=null==n?void 0:n.bind(r)),i.destination={next:o?Mt(o):$t,error:Mt(null!=e?e:It),complete:n?Mt(n):$t},i}function Rt(t){var e=Lt.call(this)||this;return e.isStopped=!1,t?xt(e.destination=t)&&t.add(e):e.destination=Ut,e}function Mt(r){return function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{r.apply(void 0,mt([],ft(t)))}catch(t){e=t,kt(function(){throw e})}}}function It(t){throw t}var Ut={closed:!0,next:$t,error:It,complete:$t},Bt="function"==typeof Symbol&&Symbol.observable||"@@observable";function zt(t){return t}var Ft=(jt.prototype.lift=function(t){var e=new jt;return e.source=this,e.operator=t,e},jt.prototype.subscribe=function(t,e,n){var r,o=this,i=(r=t)&&r instanceof Nt||r&>(r.next)&>(r.error)&>(r.complete)&&xt(r)?t:new Ot(t,e,n);return Ct(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},jt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},jt.prototype.forEach=function(r,t){var o=this;return new(t=Gt(t))(function(t,e){var n=o.subscribe(function(t){try{r(t)}catch(t){e(t),null==n||n.unsubscribe()}},e,t)})},jt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},jt.prototype[Bt]=function(){return this},jt.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?zt:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},jt.prototype.toPromise=function(t){var r=this;return new(t=Gt(t))(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},jt.create=function(t){return new jt(t)},jt);function jt(t){t&&(this._subscribe=t)}function Gt(t){return null!==(t=null!=t?t:At)&&void 0!==t?t:Promise}var Ht,Xt,Vt,qt=bt(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Yt=(ht(te,Vt=Ft),te.prototype.lift=function(t){var e=new Wt(this,this);return e.operator=t,e},te.prototype._throwIfClosed=function(){if(this.closed)throw new qt},te.prototype.next=function(i){var s=this;Ct(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var n=s.observers.slice();try{for(var r=pt(n),o=r.next();!o.done;o=r.next())o.value.next(i)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},te.prototype.error=function(e){var n=this;Ct(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var t=n.observers;t.length;)t.shift().error(e)}})},te.prototype.complete=function(){var e=this;Ct(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},te.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(te.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),te.prototype._trySubscribe=function(t){return this._throwIfClosed(),Vt.prototype._trySubscribe.call(this,t)},te.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},te.prototype._innerSubscribe=function(t){var e=this.hasError,n=this.isStopped,r=this.observers;return e||n?Et:(r.push(t),new wt(function(){return vt(r,t)}))},te.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,n=this.thrownError,r=this.isStopped;e?t.error(n):r&&t.complete()},te.prototype.asObservable=function(){var t=new Ft;return t.source=this,t},te.create=function(t,e){return new Wt(t,e)},te),Wt=(ht(Qt,Xt=Yt),Qt.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},Qt.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},Qt.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},Qt.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:Et},Qt),Kt={now:function(){return(Kt.delegate||Date).now()},delegate:void 0},Zt=(ht(Jt,Ht=Yt),Jt.prototype.next=function(t){var e=this,n=e.isStopped,r=e._buffer,o=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;n||(r.push(t),o||r.push(i.now()+e)),this._trimBuffer(),Ht.prototype.next.call(this,t)},Jt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=n?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),e},Jt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var i=e.now(),s=0,a=1;a<n.length&&n[a]<=i;a+=2)s=a;s&&n.splice(0,s+1)}},Jt);function Jt(t,e,n){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===n&&(n=Kt);var r=Ht.call(this)||this;return r._bufferSize=t,r._windowTime=e,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=e===1/0,r._bufferSize=Math.max(1,t),r._windowTime=Math.max(1,e),r}function Qt(t,e){var n=Xt.call(this)||this;return n.destination=t,n.source=e,n}function te(){var t=Vt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let ee=[],ne={};const re=[];function oe(r,o=y){let i;const s=[];function a(t){if(n(r,t)&&(r=t,i)){const t=!re.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),re.push(e,r)}if(t){for(let t=0;t<re.length;t+=2)re[t][0](re[t+1]);re.length=0}}}return{set:a,update:function(t){a(t(r))},subscribe:function(t,e=y){const n=[t,e];return s.push(n),1===s.length&&(i=o(a)||y),t(r),()=>{var t=s.indexOf(n);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function ie(t,a,e){const l=!Array.isArray(t),u=l?[t]:t,c=a.length<2;return{subscribe:oe(e,e=>{let n=!1;const r=[];let o=0,i=y;const s=()=>{var t;o||(i(),t=a(l?r[0]:r,e),c?e(t):i=p(t)?t:y)},t=u.map((t,e)=>f(t,t=>{r[e]=t,o&=~(1<<e),n&&s()},()=>{o|=1<<e}));return n=!0,s(),function(){b(t),i()}}).subscribe}}var se=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===ae));var e},ae="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function le(t,e){return!1!==e.clone&&e.isMergeableObject(t)?pe(Array.isArray(t)?[]:{},t,e):t}function ue(t,e,n){return t.concat(e).map(function(t){return le(t,n)})}function ce(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function de(t,e){try{return e in t}catch(t){return!1}}function he(r,o,i){var s={};return i.isMergeableObject(r)&&ce(r).forEach(function(t){s[t]=le(r[t],i)}),ce(o).forEach(function(e){var t,n;(!de(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(de(r,e)&&i.isMergeableObject(o[e])?s[e]=function(){if(!i.customMerge)return pe;var t=i.customMerge(e);return"function"==typeof t?t:pe}()(r[e],o[e],i):s[e]=le(o[e],i))}),s}function pe(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||ue,n.isMergeableObject=n.isMergeableObject||se,n.cloneUnlessOtherwiseSpecified=le;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):he(t,e,n):le(e,n)}pe.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return pe(t,e,n)},{})};var fe=pe,me=function(t,e){return(me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function ge(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}me(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var be,ye,ve,we=function(){return(we=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function Ee(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}function Te(t){return t.type===ye.literal}function xe(t){return t.type===ye.number}function _e(t){return t.type===ye.date}function Ae(t){return t.type===ye.time}function Pe(t){return t.type===ye.select}function ke(t){return t.type===ye.plural}function $e(t){return t.type===ye.tag}function Ce(t){return t&&"object"==typeof t&&t.type===ve.number}function Se(t){return t&&"object"==typeof t&&t.type===ve.dateTime}(qe=be=be||{})[qe.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",qe[qe.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",qe[qe.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",qe[qe.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",qe[qe.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",qe[qe.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",qe[qe.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",qe[qe.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",qe[qe.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",qe[qe.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",qe[qe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",qe[qe.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",qe[qe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",qe[qe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",qe[qe.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",qe[qe.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",qe[qe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",qe[qe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",qe[qe.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",qe[qe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",qe[qe.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",qe[qe.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",qe[qe.INVALID_TAG=23]="INVALID_TAG",qe[qe.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",qe[qe.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",qe[qe.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ye=ye=ye||{})[Ye.literal=0]="literal",Ye[Ye.argument=1]="argument",Ye[Ye.number=2]="number",Ye[Ye.date=3]="date",Ye[Ye.time=4]="time",Ye[Ye.select=5]="select",Ye[Ye.plural=6]="plural",Ye[Ye.pound=7]="pound",Ye[Ye.tag=8]="tag",(We=ve=ve||{})[We.number=0]="number",We[We.dateTime=1]="dateTime";var Le=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ne=/(?:[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 Oe,De=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Re=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Me=/^(@+)?(\+|#+)?$/g,Ie=/(\*)(0+)|(#+)(0+)|(0+)/g,Ue=/^(0+)$/;function Be(t){var r={};return t.replace(Me,function(t,e,n){return"string"!=typeof n?(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length):"+"===n?r.minimumSignificantDigits=e.length:"#"===e[0]?r.maximumSignificantDigits=e.length:(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length+("string"==typeof n?n.length:0)),""}),r}function ze(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Fe(t){return ze(t)||{}}function je(t){for(var s={},e=0,n=t;e<n.length;e++){var r,o=n[e];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=we(we(we({},s),{notation:"scientific"}),o.options.reduce(function(t,e){return we(we({},t),Fe(e))},{}));continue;case"engineering":s=we(we(we({},s),{notation:"engineering"}),o.options.reduce(function(t,e){return we(we({},t),Fe(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ie,function(t,e,n,r,o,i){if(e)s.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ue.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Re.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Re,function(t,e,n,r,o,i){return"*"===n?s.minimumFractionDigits=e.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),o.options.length&&(s=we(we({},s),Be(o.options[0])))}else Me.test(o.stem)?s=we(we({},s),Be(o.stem)):((r=ze(o.stem))&&(s=we(we({},s),r)),(r=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ue.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(o.stem))&&(s=we(we({},s),r)))}return s}var Ge=new RegExp("^"+Le.source+"*"),He=new RegExp(Le.source+"*$");function Xe(t,e){return{start:t,end:e}}var Ve=!!String.prototype.startsWith,Bt=!!String.fromCodePoint,Yt=!!Object.fromEntries,qe=!!String.prototype.codePointAt,Ye=!!String.prototype.trimStart,We=!!String.prototype.trimEnd,Ke=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Le=!0;try{Le="a"===(null===(Oe=sn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Oe?void 0:Oe[0])}catch(y){Le=!1}var Ze,Je,Qe=Ve?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},tn=Bt?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,r="",o=t.length,i=0;i<o;){if(1114111<(n=t[i++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},en=Yt?Object.fromEntries:function(t){for(var e={},n=0,r=t;n<r.length;n++){var o=r[n],i=o[0],o=o[1];e[i]=o}return e},nn=qe?function(t,e){return t.codePointAt(e)}:function(t,e){var n=t.length;if(!(e<0||n<=e)){var r,o=t.charCodeAt(e);return o<55296||56319<o||e+1===n||(r=t.charCodeAt(e+1))<56320||57343<r?o:r-56320+(o-55296<<10)+65536}},rn=Ye?function(t){return t.trimStart()}:function(t){return t.replace(Ge,"")},on=We?function(t){return t.trimEnd()}:function(t){return t.replace(He,"")};function sn(t,e){return new RegExp(t,e)}Je=Le?(Ze=sn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return Ze.lastIndex=e,null!==(t=Ze.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var n,r=[];;){var o=nn(t,e);if(void 0===o||cn(o)||(33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(o),e+=65536<=o?2:1}return tn.apply(void 0,r)};var an=(ln.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},ln.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(t,n)).err)return o;r.push(o.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(be.UNMATCHED_CLOSING_TAG,Xe(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&un(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(t,e)).err)return o;r.push(o.val)}}else{i=this.clonePosition();this.bump(),r.push({type:ye.pound,location:Xe(i,this.clonePosition())})}}}return{val:r,err:null}},ln.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ye.literal,value:"<"+r+"/>",location:Xe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;t=o.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!un(this.char()))return this.error(be.INVALID_TAG,Xe(e,this.clonePosition()));o=this.clonePosition();return r!==this.parseTagName()?this.error(be.UNMATCHED_CLOSING_TAG,Xe(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ye.tag,value:r,children:t,location:Xe(n,this.clonePosition())},err:null}:this.error(be.INVALID_TAG,Xe(e,this.clonePosition())))}return this.error(be.UNCLOSED_TAG,Xe(n,this.clonePosition()))}return this.error(be.INVALID_TAG,Xe(n,this.clonePosition()))},ln.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},ln.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o)r+=o;else{o=this.tryParseUnquoted(t,e);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=Xe(n,this.clonePosition());return{val:{type:ye.literal,value:r,location:n},err:null}},ln.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(un(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},ln.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return tn.apply(void 0,e)},ln.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&0<t?null:(this.bump(),tn(n))},ln.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE,Xe(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(be.EMPTY_ARGUMENT,Xe(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(be.MALFORMED_ARGUMENT,Xe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE,Xe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ye.argument,value:r,location:Xe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE,Xe(n,this.clonePosition())):this.parseArgumentOptions(t,e,r,n);default:return this.error(be.MALFORMED_ARGUMENT,Xe(n,this.clonePosition()))}},ln.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=Je(this.message,e),e=e+n.length;return this.bumpTo(e),{value:n,location:Xe(t,this.clonePosition())}},ln.prototype.parseArgumentOptions=function(t,e,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(be.EXPECT_ARGUMENT_TYPE,Xe(i,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=on(h.val)).length)return this.error(be.EXPECT_ARGUMENT_STYLE,Xe(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:Xe(u,this.clonePosition())}}if((p=this.tryParseArgumentClose(r)).err)return p;var c=Xe(r,this.clonePosition());if(l&&Qe(null==l?void 0:l.style,"::",0)){u=rn(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:ye.number,value:n,location:c,style:h.val},err:null};if(0===u.length)return this.error(be.EXPECT_DATE_TIME_SKELETON,c);var d={type:ve.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(Ne,function(t){var e=t.length;switch(t[0]){case"G":o.era=4===e?"long":5===e?"narrow":"short";break;case"y":o.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][e-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][e-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][e-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":o.minute=["numeric","2-digit"][e-1];break;case"s":o.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),o):{}};return{val:{type:"date"===s?ye.date:ye.time,value:n,location:c,style:d},err:null}}return{val:{type:"number"===s?ye.number:"date"===s?ye.date:ye.time,value:n,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(be.EXPECT_SELECT_ARGUMENT_OPTIONS,Xe(l,we({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xe(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,be.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(t,s,e,c);if(c.err)return c;if((p=this.tryParseArgumentClose(r)).err)return p;var p=Xe(r,this.clonePosition());return"select"===s?{val:{type:ye.select,value:n,options:en(c.val),location:p},err:null}:{val:{type:ye.plural,value:n,options:en(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(be.INVALID_ARGUMENT_TYPE,Xe(i,a))}},ln.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE,Xe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},ln.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(be.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Xe(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},ln.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,r=t.split(De).filter(function(t){return 0<t.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:o})}return e}(t)}catch(t){return this.error(be.INVALID_NUMBER_SKELETON,e)}return{val:{type:ve.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?je(n):{}},err:null}},ln.prototype.tryParsePluralOrSelectOptions=function(t,e,n,r){for(var o=!1,i=[],s=new Set,a=r.value,l=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(be.EXPECT_PLURAL_ARGUMENT_SELECTOR,be.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Xe(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===e?be.DUPLICATE_SELECT_ARGUMENT_SELECTOR:be.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?be.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:be.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Xe(this.clonePosition(),this.clonePosition()));c=this.parseMessage(t+1,e,n);if(c.err)return c;u=this.tryParseArgumentClose(d);if(u.err)return u;i.push([a,{value:c.val,location:Xe(d,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===i.length?this.error("select"===e?be.EXPECT_SELECT_ARGUMENT_SELECTOR:be.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(be.MISSING_OTHER_CLAUSE,Xe(this.clonePosition(),this.clonePosition())):{val:i,err:null}},ln.prototype.tryParseDecimalInteger=function(t,e){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}r=Xe(r,this.clonePosition());return o?Ke(i*=n)?{val:i,err:null}:this.error(e,r):this.error(t,r)},ln.prototype.offset=function(){return this.position.offset},ln.prototype.isEOF=function(){return this.offset()===this.message.length},ln.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},ln.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=nn(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},ln.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},ln.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},ln.prototype.bumpIf=function(t){if(Qe(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},ln.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},ln.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},ln.prototype.bumpSpace=function(){for(;!this.isEOF()&&cn(this.char());)this.bump()},ln.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},ln);function ln(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function un(t){return 97<=t&&t<=122||65<=t&&t<=90}function cn(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function dn(t,e){e=we({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var n=new an(t,e).parse();if(n.err){t=SyntaxError(be[n.err.kind]);throw t.location=n.err.location,t.originalMessage=n.err.message,t}return null!=e&&e.captureLocation||function n(t){t.forEach(function(t){if(delete t.location,Pe(t)||ke(t))for(var e in t.options)delete t.options[e].location,n(t.options[e].value);else xe(t)&&Ce(t.style)||(_e(t)||Ae(t))&&Se(t.style)?delete t.style.location:$e(t)&&n(t.children)})}(n.val),n.val}function hn(t,e){var n=e&&e.cache?e.cache:vn,r=e&&e.serializer?e.serializer:gn;return(e&&e.strategy?e.strategy:function(t,e){return mn(t,this,1===t.length?pn:fn,e.cache.create(),e.serializer)})(t,{cache:n,serializer:r})}function pn(t,e,n,r){var o=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=e.get(o);return void 0===n&&(n=t.call(this,r),e.set(o,n)),n}function fn(t,e,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),n=e.get(o);return void 0===n&&(n=t.apply(this,r),e.set(o,n)),n}function mn(t,e,n,r,o){return n.bind(e,t,r,o)}var gn=function(){return JSON.stringify(arguments)};function bn(){this.cache=Object.create(null)}bn.prototype.has=function(t){return t in this.cache},bn.prototype.get=function(t){return this.cache[t]},bn.prototype.set=function(t,e){this.cache[t]=e};var yn,vn={create:function(){return new bn}},wn={variadic:function(t,e){return mn(t,this,fn,e.cache.create(),e.serializer)},monadic:function(t,e){return mn(t,this,pn,e.cache.create(),e.serializer)}};(Le=yn=yn||{}).MISSING_VALUE="MISSING_VALUE",Le.INVALID_VALUE="INVALID_VALUE",Le.MISSING_INTL_API="MISSING_INTL_API";var En,Tn,xn,_n,An,Pn=(ge(On,An=Error),On.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},On),kn=(ge(Nn,_n=Pn),Nn),$n=(ge(Ln,xn=Pn),Ln),Cn=(ge(Sn,Tn=Pn),Sn);function Sn(t,e){return Tn.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',yn.MISSING_VALUE,e)||this}function Ln(t,e,n){return xn.call(this,'Value for "'+t+'" must be of type '+e,yn.INVALID_VALUE,n)||this}function Nn(t,e,n,r){return _n.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(n).join('", "')+'"',yn.INVALID_VALUE,r)||this}function On(t,e,n){t=An.call(this,t)||this;return t.code=e,t.originalMessage=n,t}function Dn(t,e,n,r,o,i,s){if(1===t.length&&Te(t[0]))return[{type:En.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(Te(c))a.push({type:En.literal,value:c.value});else if(c.type===ye.pound)"number"==typeof i&&a.push({type:En.literal,value:n.getNumberFormat(e).format(i)});else{var d=c.value;if(!(o&&d in o))throw new Cn(d,s);var h=o[d];if(c.type===ye.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?En.literal:En.object,value:h});else if(_e(c)){var p="string"==typeof c.style?r.date[c.style]:Se(c.style)?c.style.parsedOptions:void 0;a.push({type:En.literal,value:n.getDateTimeFormat(e,p).format(h)})}else if(Ae(c))p="string"==typeof c.style?r.time[c.style]:Se(c.style)?c.style.parsedOptions:void 0,a.push({type:En.literal,value:n.getDateTimeFormat(e,p).format(h)});else if(xe(c))(p="string"==typeof c.style?r.number[c.style]:Ce(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:En.literal,value:n.getNumberFormat(e,p).format(h)});else{if($e(c)){var f=c.children,m=c.value,d=o[m];if("function"!=typeof d)throw new $n(m,"function",s);f=d(Dn(f,e,n,r,o,i).map(function(t){return t.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(t){return{type:"string"==typeof t?En.literal:En.object,value:t}}))}if(Pe(c)){if(!(g=c.options[h]||c.options.other))throw new kn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Dn(g.value,e,n,r,o))}else if(ke(c)){if(!(g=c.options["="+h])){if(!Intl.PluralRules)throw new Pn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',yn.MISSING_INTL_API,s);var f=n.getPluralRules(e,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new kn(c.value,h,Object.keys(c.options),s);a.push.apply(a,Dn(g.value,e,n,r,o,h-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var n=t[t.length-1];return n&&n.type===En.literal&&e.type===En.literal?n.value+=e.value:t.push(e),t},[])}function Rn(n){return{create:function(){return{has:function(t){return t in n},get:function(t){return n[t]},set:function(t,e){n[t]=e}}}}}(Le=En=En||{})[Le.literal=0]="literal",Le[Le.object=1]="object";var Mn=(Object.defineProperty(In,"defaultLocale",{get:function(){return In.memoizedDefaultLocale||(In.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),In.memoizedDefaultLocale},enumerable:!1,configurable:!0}),In.memoizedDefaultLocale=null,In.__parse=dn,In.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"}}},In);function In(t,e,n,r){var o,i,s=this;if(void 0===e&&(e=In.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===En.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Dn(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!In.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=In.__parse(t,{ignoreTag:null==r?void 0:r.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=In.formats,(i=n)?Object.keys(o).reduce(function(t,e){var n,r;return t[e]=(n=o[e],(r=i[e])?we(we(we({},n||{}),r||{}),Object.keys(n).reduce(function(t,e){return t[e]=we(we({},n[e]),r[e]||{}),t},{})):n),t},we({},o)):o),this.locales=e,this.formatters=r&&r.formatters||{getNumberFormat:hn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ee([void 0],e)))},{cache:Rn((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:wn.variadic}),getDateTimeFormat:hn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ee([void 0],e)))},{cache:Rn(r.dateTime),strategy:wn.variadic}),getPluralRules:hn(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ee([void 0],e)))},{cache:Rn(r.pluralRules),strategy:wn.variadic})}}const Un={},Bn=(e,n)=>{if(null!=n){if(n in Un&&e in Un[n])return Un[n][e];var r,o,i=er(n);for(let t=0;t<i.length;t++){var s=(r=i[t],o=e,jn(r)?function(t,e){if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(0<t){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(function(t){return zn[t]||null}(r),o):null);if(s)return r=e,o=n,(s=s)&&(o in Un||(Un[o]={}),r in Un[o]||(Un[o][r]=s),s)}}};let zn;const Fn=oe({});function jn(t){return t in zn}function Gn(e,...n){delete Un[e],Fn.update(t=>(t[e]=fe.all([t[e]||{},...n]),t))}ie([Fn],([t])=>Object.keys(t)),Fn.subscribe(t=>zn=t);const Hn={};function Xn(t){return Hn[t]}function Vn(t){return er(t).some(t=>{return null===(t=Xn(t))||void 0===t?void 0:t.size})}const qn={};function Yn(t){if(!Vn(t))return t in qn?qn[t]:void 0;const e=er(t).map(t=>{var e=Xn(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return qn[t]=Promise.all(e.map(([t,n])=>function(e){return Promise.all(n.map(t=>(function(t,e){Hn[t].delete(e),0===Hn[t].size&&delete Hn[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Gn(e,...t))}(t))).then(()=>Vn(t)?Yn(t):void delete qn[t]),qn[t]}function Wn(t,e){var n={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n}const Kn={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Zn=oe(!1);let Jn;const Qn=oe(null);function tr(t){return t.split("-").map((t,e,n)=>n.slice(0,e+1).join("-")).reverse()}function er(t,e=Kn.fallbackLocale){t=tr(t);return e?[...new Set([...t,...tr(e)])]:t}Qn.subscribe(t=>{Jn=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const nr=Qn.set;Qn.set=e=>{if(function(t){if(null!=t){var e=er(t);for(let t=0;t<e.length;t++){var n=e[t];if(jn(n))return n}}}(e)&&Vn(e)){var{loadingDelay:n}=Kn;let t;return"undefined"!=typeof window&&null!=Jn&&n?t=window.setTimeout(()=>Zn.set(!0),n):Zn.set(!0),Yn(e).then(()=>{nr(e)}).finally(()=>{clearTimeout(t),Zn.set(!1)})}return nr(e)},Qn.update=t=>nr(t(Jn));const rr=n=>{const r=Object.create(null);return t=>{var e=JSON.stringify(t);return e in r?r[e]:r[e]=n(t)}},or=(t,e)=>{var{formats:n}=Kn;if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},ir=rr(t=>{var{locale:e,format:n}=t,t=Wn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(t=or("number",n)),new Intl.NumberFormat(e,t)}),sr=rr(t=>{var{locale:e,format:n}=t,t=Wn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?t=or("date",n):0===Object.keys(t).length&&(t=or("date","short")),new Intl.DateTimeFormat(e,t)}),ar=rr(t=>{var{locale:e,format:n}=t,t=Wn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?t=or("time",n):0===Object.keys(t).length&&(t=or("time","short")),new Intl.DateTimeFormat(e,t)}),lr=rr((t,e=Jn)=>new Mn(t,e,Kn.formats,{ignoreTag:Kn.ignoreTag})),ur=ie([Qn,Fn],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:n,locale:r=Jn,default:o}=e;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Bn(t,r);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else Kn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${er(r).join('", "')}".${Vn(Jn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!n)return i;let s=i;try{s=lr(i,r).format(n)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});ie([Qn],()=>(t,e)=>((t={})=>{var{locale:e=Jn}=t,t=Wn(t,["locale"]);return ar(Object.assign({locale:e},t))})(e).format(t)),ie([Qn],()=>(t,e)=>((t={})=>{var{locale:e=Jn}=t,t=Wn(t,["locale"]);return sr(Object.assign({locale:e},t))})(e).format(t)),ie([Qn],()=>(t,e)=>((t={})=>{var{locale:e=Jn}=t,t=Wn(t,["locale"]);return ir(Object.assign({locale:e},t))})(e).format(t)),ie([Qn,Fn],()=>(t,e=Jn)=>Bn(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==ee.indexOf(t)&&(e=new Zt(e),ne[t]=e,ee.push(t)),ne[t]}};const cr=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),dr=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",hr={en:{tournamentsPage:{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next"}},tr:{tournamentsPage:{loading:"Yükelniyor, lütfen bekleyin…",back:"Geri",previous:"Önceki",next:"Sonraki"}},el:{tournamentsPage:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",back:"Πίσω",previous:"Προηγούμενο",next:"Επόμενο"}}};function pr(t){let n;return{c(){n=$("div"),n.textContent="Simple Svelte Component",this.c=y,N(n,"class","casino-tournaments-page")},m(t,e){P(t,n,e)},p:y,i:y,o:y,d(t){t&&k(n)}}}function fr(n){let r,o,i,s,a,l,u;function c(t){return t[2]?mr:gr}let d=c(n),h=d(n);return{c(){r=$("div"),o=$("p"),i=C(n[0]),s=S(),a=$("div"),h.c(),N(o,"class","Title"),N(a,"class","CollapseButton"),N(r,"class","DetailsTitle")},m(t,e){P(t,r,e),A(r,o),A(o,i),A(r,s),A(r,a),h.m(a,null),l||(u=L(a,"click",n[5]),l=!0)},p(t,e){1&e&&O(i,t[0]),d!==(d=c(t))&&(h.d(1),h=d(t),h&&(h.c(),h.m(a,null)))},d(t){t&&k(r),h.d(),l=!1,u()}}}function mr(t){let n,r;return{c(){n=e("svg"),r=e("path"),N(r,"d","M6 9l6 6 6-6"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","24"),N(n,"height","24"),N(n,"viewBox","0 0 24 24"),N(n,"fill","none"),N(n,"stroke","#ffffff"),N(n,"stroke-width","2"),N(n,"stroke-linecap","round"),N(n,"stroke-linejoin","round")},m(t,e){P(t,n,e),A(n,r)},d(t){t&&k(n)}}}function gr(t){let n,r;return{c(){n=e("svg"),r=e("path"),N(r,"d","M18 15l-6-6-6 6"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","24"),N(n,"height","24"),N(n,"viewBox","0 0 24 24"),N(n,"fill","none"),N(n,"stroke","#ffffff"),N(n,"stroke-width","2"),N(n,"stroke-linecap","round"),N(n,"stroke-linejoin","round")},m(t,e){P(t,n,e),A(n,r)},d(t){t&&k(n)}}}function br(n){let r,o,i,s;return{c(){r=$("div"),N(r,"class","DetailsContent sc")},m(t,e){P(t,r,e),i||(s=g(o=n[4].call(null,r,n[1])),i=!0)},p(t,e){o&&p(o.update)&&2&e&&o.update.call(null,t[1])},d(t){t&&k(r),i=!1,s()}}}function yr(t){let n,r,o=t[0]&&fr(t),i=t[1]&&!t[2]&&br(t);return{c(){n=$("div"),o&&o.c(),r=S(),i&&i.c(),this.c=y,N(n,"class","DetailsCard")},m(t,e){P(t,n,e),o&&o.m(n,null),A(n,r),i&&i.m(n,null)},p(t,[e]){t[0]?o?o.p(t,e):(o=fr(t),o.c(),o.m(n,r)):o&&(o.d(1),o=null),t[1]&&!t[2]?i?i.p(t,e):(i=br(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null)},i:y,o:y,d(t){t&&k(n),o&&o.d(),i&&i.d()}}}function vr(t,e,n){let{title:r=""}=e,{text:o=""}=e,i=!1;const s=()=>{n(2,i=!i)};return t.$$set=t=>{"title"in t&&n(0,r=t.title),"text"in t&&n(1,o=t.text)},[r,o,i,s,(t,e)=>{let n=document.createElement("div");n.innerHTML=e,t.append(n)},()=>s()]}customElements.get("casino-tournaments-page")||customElements.define("casino-tournaments-page",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.casino-tournaments-page{background:#000;color:#fff}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},null,pr,n,{}),t&&t.target&&P(t.target,this,t.anchor)}}),customElements.get("casino-tournaments-details")||customElements.define("casino-tournaments-details",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.Title{text-transform:uppercase}.DetailsCard{border:solid #30313c 1px;background:#000;color:#ffffff;width:100%;margin:25px 0 25px 0}.DetailsTitle{padding:0 20px;height:60px;display:flex;align-items:center;justify-content:space-between;background:#0a0c19}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:#fff;border-radius:10px}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},vr,yr,n,{title:0,text:1}),t&&(t.target&&P(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["title","text"]}get title(){return this.$$.ctx[0]}set title(t){this.$set({title:t}),U()}get text(){return this.$$.ctx[1]}set text(t){this.$set({text:t}),U()}});const wr={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"There was an error joining the tournament - "}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά την διαδικασία εγγραφής στο τουρνουά - "}}},Er={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet counts: ",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished",startingAt:"Starting at",mostRounds:"MostRounds"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"BAŞLAMA SAATİ:",mostRounds:"MostRounds"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων: ",seegames:"Μπορείε να δεις τα παιχνίδια",here:"εδώ",all:"OΛΑ",scheduled:"ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ",ongoing:"ΤΡΕΧΟΝΤΑ",finished:"ΟΛΟΚΛΗΡΩΜΕΝΑ",startingAt:"ΑΡΧΙΖΕΙ",mostRounds:"MostRounds"}}};function Tr(n){let r,o,i,s;return{c(){r=$("div"),o=C(n[12]),N(r,"class","Status")},m(t,e){P(t,r,e),A(r,o),i||(s=g(n[15].call(null,r)),i=!0)},p(t,e){4096&e&&O(o,t[12])},d(t){t&&k(r),i=!1,s()}}}function xr(t){let n,r=t[5]&&_r(t);return{c(){r&&r.c(),n=w()},m(t,e){r&&r.m(t,e),P(t,n,e)},p(t,e){t[5]?r?r.p(t,e):(r=_r(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&k(n)}}}function _r(t){let n,r,o=t[13]("tournamentsThumbnail.enrolled")+"";return{c(){n=$("div"),r=C(o),N(n,"class","Enrolled")},m(t,e){P(t,n,e),A(n,r)},p(t,e){8192&e&&o!==(o=t[13]("tournamentsThumbnail.enrolled")+"")&&O(r,o)},d(t){t&&k(n)}}}function Ar(n){let r,o,i,s;return{c(){r=$("div"),N(r,"class",o="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),m(r,"background","url('https://i.stack.imgur.com/y9DpT.jpg') center no-repeat")},m(t,e){P(t,r,e),i||(s=g(n[15].call(null,r)),i=!0)},p(t,e){4&e&&o!==(o="CardImg "+("Closing"==t[2]||"Closed"==t[2]?"CardImgFinished":""))&&N(r,"class",o)},d(t){t&&k(r),i=!1,s()}}}function Pr(n){let r,o,i,s;return{c(){r=$("div"),N(r,"class",o="CardImg "+("Closing"==n[2]||"Closed"==n[2]?"CardImgFinished":"")),m(r,"background","url('"+n[4]+"')")},m(t,e){P(t,r,e),i||(s=g(n[15].call(null,r)),i=!0)},p(t,e){4&e&&o!==(o="CardImg "+("Closing"==t[2]||"Closed"==t[2]?"CardImgFinished":""))&&N(r,"class",o),16&e&&m(r,"background","url('"+t[4]+"')")},d(t){t&&k(r),i=!1,s()}}}function kr(n){let r,o,i,s,a;return{c(){r=$("div"),o=C(n[10]),N(r,"class","Date")},m(t,e){P(t,r,e),A(r,o),s||(a=g(i=n[14].call(null,r,n[1])),s=!0)},p(t,e){1024&e&&O(o,t[10]),i&&p(i.update)&&2&e&&i.update.call(null,t[1])},d(t){t&&k(r),s=!1,a()}}}function $r(n){let r,o,i,s,a,l,u,c,d,h,p,f,m,g=n[13]("tournamentsThumbnail.scoreCriteria")+"",b=n[13]("tournamentsThumbnail.seegames")+"",y=n[13]("tournamentsThumbnail.here")+"";function v(t){return"BetCount"==t[6]?Sr:Cr}let w=v(n),E=w(n);return{c(){r=$("div"),o=$("p"),i=C(g),s=C(":\n "),E.c(),a=S(),l=$("div"),u=$("p"),c=C(b),d=S(),h=$("a"),p=C(y),N(r,"class","ScoreCriteria"),N(h,"href",n[9]),N(h,"target","_blank"),N(l,"class","Games")},m(t,e){P(t,r,e),A(r,o),A(o,i),A(o,s),E.m(o,null),P(t,a,e),P(t,l,e),A(l,u),A(u,c),A(u,d),A(u,h),A(h,p),f||(m=L(h,"click",n[20]),f=!0)},p(t,e){8192&e&&g!==(g=t[13]("tournamentsThumbnail.scoreCriteria")+"")&&O(i,g),w===(w=v(t))&&E?E.p(t,e):(E.d(1),E=w(t),E&&(E.c(),E.m(o,null))),8192&e&&b!==(b=t[13]("tournamentsThumbnail.seegames")+"")&&O(c,b),8192&e&&y!==(y=t[13]("tournamentsThumbnail.here")+"")&&O(p,y),512&e&&N(h,"href",t[9])},d(t){t&&k(r),E.d(),t&&k(a),t&&k(l),f=!1,m()}}}function Cr(t){let n;return{c(){n=C(t[6])},m(t,e){P(t,n,e)},p(t,e){64&e&&O(n,t[6])},d(t){t&&k(n)}}}function Sr(t){let n,r,o,i,s,a,l=t[13]("tournamentsThumbnail.mostRounds")+"",u=t[13]("tournamentsThumbnail.minbet")+"";return{c(){n=C(l),r=C("\n ("),o=C(u),i=C(": "),s=C(t[7]),a=C(")")},m(t,e){P(t,n,e),P(t,r,e),P(t,o,e),P(t,i,e),P(t,s,e),P(t,a,e)},p(t,e){8192&e&&l!==(l=t[13]("tournamentsThumbnail.mostRounds")+"")&&O(n,l),8192&e&&u!==(u=t[13]("tournamentsThumbnail.minbet")+"")&&O(o,u),128&e&&O(s,t[7])},d(t){t&&k(n),t&&k(r),t&&k(o),t&&k(i),t&&k(s),t&&k(a)}}}function Lr(t){let n,r,o,i,s,a,l,u,c,d=t[2]&&Tr(t),h="true"==t[8]&&xr(t);function p(t){return t[4]?Pr:Ar}let f=p(t),m=f(t),g=t[1]&&kr(t),b=t[11]&&$r(t);return{c(){n=$("div"),d&&d.c(),r=S(),h&&h.c(),o=S(),m.c(),i=S(),s=$("div"),a=$("div"),l=C(t[0]),u=S(),g&&g.c(),c=S(),b&&b.c(),this.c=y,N(a,"class","Title"),N(s,"class","Details"),N(n,"class","Thumbnail")},m(t,e){P(t,n,e),d&&d.m(n,null),A(n,r),h&&h.m(n,null),A(n,o),m.m(n,null),A(n,i),A(n,s),A(s,a),A(a,l),A(s,u),g&&g.m(s,null),A(s,c),b&&b.m(s,null)},p(t,[e]){t[2]?d?d.p(t,e):(d=Tr(t),d.c(),d.m(n,r)):d&&(d.d(1),d=null),"true"==t[8]?h?h.p(t,e):(h=xr(t),h.c(),h.m(n,o)):h&&(h.d(1),h=null),f===(f=p(t))&&m?m.p(t,e):(m.d(1),m=f(t),m&&(m.c(),m.m(n,i))),1&e&&O(l,t[0]),t[1]?g?g.p(t,e):(g=kr(t),g.c(),g.m(s,c)):g&&(g.d(1),g=null),t[11]?b?b.p(t,e):(b=$r(t),b.c(),b.m(s,null)):b&&(b.d(1),b=null)},i:y,o:y,d(t){t&&k(n),d&&d.d(),h&&h.d(),m.d(),g&&g.d(),b&&b.d()}}}function Nr(t,e,o){let i;H(t,ur,t=>o(13,i=t));let{session:n=""}=e,{userid:r=""}=e,{title:s=""}=e,{startdate:a=""}=e,{status:l=""}=e,{tourid:u=""}=e,{thumbnail:c=""}=e,{userenrolled:d=""}=e,{scorecriteria:h=""}=e,{minbetcount:p=""}=e,{showenrolled:f="false"}=e,{gameurl:m=""}=e,{lang:g="en"}=e,b,y=!1,v="";Object.keys(Er).forEach(t=>{Gn(t,Er[t])});const w=t=>{t.data&&"SessionID"==t.data.type&&o(11,y=!0)},E=(t,e)=>{window.postMessage({type:"tournamentGamesClicked",tourId:e},window.location.href)};return X(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),t.$$set=t=>{"session"in t&&o(17,n=t.session),"userid"in t&&o(18,r=t.userid),"title"in t&&o(0,s=t.title),"startdate"in t&&o(1,a=t.startdate),"status"in t&&o(2,l=t.status),"tourid"in t&&o(3,u=t.tourid),"thumbnail"in t&&o(4,c=t.thumbnail),"userenrolled"in t&&o(5,d=t.userenrolled),"scorecriteria"in t&&o(6,h=t.scorecriteria),"minbetcount"in t&&o(7,p=t.minbetcount),"showenrolled"in t&&o(8,f=t.showenrolled),"gameurl"in t&&o(9,m=t.gameurl),"lang"in t&&o(19,g=t.lang)},t.$$.update=()=>{131072&t.$$.dirty&&n&&(0<n.length&&"false"!=n?o(11,y=!0):o(11,y=!1))},[s,a,l,u,c,d,h,p,f,m,"",y,v,i,()=>{let t=new Date(a),e=new Intl.DateTimeFormat(g,{month:"long"}).format(t),n=t.getDate(),r=t.toLocaleString(g,{hour:"numeric",minute:"numeric",hour12:!1});o(10,b=`${n} ${e}, `+i("tournamentsThumbnail.startingAt")+` ${r}`)},()=>{"Unstarted"==l&&o(12,v=i("tournamentsThumbnail.scheduled")),"Running"==l&&o(12,v=i("tournamentsThumbnail.ongoing")),"Closed"!=l&&"Closing"!=l||o(12,v=i("tournamentsThumbnail.finished"))},E,n,r,g,()=>E()]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}a{color:#48952a;text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:auto}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:#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:#2B2B5D;color:#aaaabe;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}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Nr,Lr,n,{session:17,userid:18,title:0,startdate:1,status:2,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:6,minbetcount:7,showenrolled:8,gameurl:9,lang:19}),t&&(t.target&&P(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang"]}get session(){return this.$$.ctx[17]}set session(t){this.$set({session:t}),U()}get userid(){return this.$$.ctx[18]}set userid(t){this.$set({userid:t}),U()}get title(){return this.$$.ctx[0]}set title(t){this.$set({title:t}),U()}get startdate(){return this.$$.ctx[1]}set startdate(t){this.$set({startdate:t}),U()}get status(){return this.$$.ctx[2]}set status(t){this.$set({status:t}),U()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$set({tourid:t}),U()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$set({thumbnail:t}),U()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$set({userenrolled:t}),U()}get scorecriteria(){return this.$$.ctx[6]}set scorecriteria(t){this.$set({scorecriteria:t}),U()}get minbetcount(){return this.$$.ctx[7]}set minbetcount(t){this.$set({minbetcount:t}),U()}get showenrolled(){return this.$$.ctx[8]}set showenrolled(t){this.$set({showenrolled:t}),U()}get gameurl(){return this.$$.ctx[9]}set gameurl(t){this.$set({gameurl:t}),U()}get lang(){return this.$$.ctx[19]}set lang(t){this.$set({lang:t}),U()}});const Or={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",days:"days",minutesleft:"minutes left",hoursleft:"hours left",daysleft:"days left"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",days:"gün",minutesleft:"dakika kaldı",hoursleft:"saat kaldı",daysleft:"gün kaldı"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",days:"ημέρες",minutesleft:"λεπτά απομένουν",hoursleft:"ώρες απομένουν",daysleft:"ημέρες απομένουν"}}};function Dr(n){let r,o,i,s,a,l,u,c,d,h;function p(t){return"Finished"==t[2]||"Closing"==t[2]||"Closed"==t[2]?Ir:0<t[6]?Mr:Rr}let f=p(n),m=f(n);return{c(){r=$("div"),o=$("div"),i=C(n[3]),s=S(),a=$("div"),l=C(n[4]),u=S(),c=$("div"),m.c(),N(o,"class","StartDate"),N(a,"class","EndDate"),N(r,"class","TournamentDates"),N(c,"class","ProgressBar")},m(t,e){P(t,r,e),A(r,o),A(o,i),A(r,s),A(r,a),A(a,l),P(t,u,e),P(t,c,e),m.m(c,null),d||(h=[g(n[12].call(null,o)),g(n[13].call(null,a)),g(n[14].call(null,c))],d=!0)},p(t,e){8&e&&O(i,t[3]),16&e&&O(l,t[4]),f===(f=p(t))&&m?m.p(t,e):(m.d(1),m=f(t),m&&(m.c(),m.m(c,null)))},d(t){t&&k(r),t&&k(u),t&&k(c),m.d(),d=!1,b(h)}}}function Rr(t){let n,r,o,i=0<t[5]&&Ur(t);return{c(){n=$("div"),r=S(),i&&i.c(),o=w(),N(n,"class","ProgressBarFill"),m(n,"width",t[7]+"%")},m(t,e){P(t,n,e),P(t,r,e),i&&i.m(t,e),P(t,o,e)},p(t,e){128&e&&m(n,"width",t[7]+"%"),0<t[5]?i?i.p(t,e):(i=Ur(t),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},d(t){t&&k(n),t&&k(r),i&&i.d(t),t&&k(o)}}}function Mr(t){let n,r,o,i,s,a,l,u,c=t[11]("tournamentsDuration.starting")+"",d=t[11]("tournamentsDuration.days")+"";return{c(){n=$("div"),r=S(),o=$("div"),i=C(c),s=S(),a=C(t[6]),l=S(),u=C(d),N(n,"class","ProgressBarFillStarting"),N(o,"class","Remaining")},m(t,e){P(t,n,e),P(t,r,e),P(t,o,e),A(o,i),A(o,s),A(o,a),A(o,l),A(o,u)},p(t,e){2048&e&&c!==(c=t[11]("tournamentsDuration.starting")+"")&&O(i,c),64&e&&O(a,t[6]),2048&e&&d!==(d=t[11]("tournamentsDuration.days")+"")&&O(u,d)},d(t){t&&k(n),t&&k(r),t&&k(o)}}}function Ir(t){let n,r,o,i,s=t[11]("tournamentsDuration.finished")+"";return{c(){n=$("div"),r=S(),o=$("div"),i=C(s),N(n,"class","ProgressBarFillEnd"),N(o,"class","Finished")},m(t,e){P(t,n,e),P(t,r,e),P(t,o,e),A(o,i)},p(t,e){2048&e&&s!==(s=t[11]("tournamentsDuration.finished")+"")&&O(i,s)},d(t){t&&k(n),t&&k(r),t&&k(o)}}}function Ur(t){let n,r,o,i=t[8]&&Br(t),s=t[9]&&zr(t),a=t[10]&&Fr(t);return{c(){i&&i.c(),n=S(),s&&s.c(),r=S(),a&&a.c(),o=w()},m(t,e){i&&i.m(t,e),P(t,n,e),s&&s.m(t,e),P(t,r,e),a&&a.m(t,e),P(t,o,e)},p(t,e){t[8]?i?i.p(t,e):(i=Br(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),t[9]?s?s.p(t,e):(s=zr(t),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null),t[10]?a?a.p(t,e):(a=Fr(t),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(t){i&&i.d(t),t&&k(n),s&&s.d(t),t&&k(r),a&&a.d(t),t&&k(o)}}}function Br(t){let n,r,o,i,s=t[11]("tournamentsDuration.minutesleft")+"";return{c(){n=$("div"),r=C(t[5]),o=S(),i=C(s),N(n,"class","Remaining")},m(t,e){P(t,n,e),A(n,r),A(n,o),A(n,i)},p(t,e){32&e&&O(r,t[5]),2048&e&&s!==(s=t[11]("tournamentsDuration.minutesleft")+"")&&O(i,s)},d(t){t&&k(n)}}}function zr(t){let n,r,o,i,s=t[11]("tournamentsDuration.hoursleft")+"";return{c(){n=$("div"),r=C(t[5]),o=S(),i=C(s),N(n,"class","Remaining")},m(t,e){P(t,n,e),A(n,r),A(n,o),A(n,i)},p(t,e){32&e&&O(r,t[5]),2048&e&&s!==(s=t[11]("tournamentsDuration.hoursleft")+"")&&O(i,s)},d(t){t&&k(n)}}}function Fr(t){let n,r,o,i,s=t[11]("tournamentsDuration.daysleft")+"";return{c(){n=$("div"),r=C(t[5]),o=S(),i=C(s),N(n,"class","Remaining")},m(t,e){P(t,n,e),A(n,r),A(n,o),A(n,i)},p(t,e){32&e&&O(r,t[5]),2048&e&&s!==(s=t[11]("tournamentsDuration.daysleft")+"")&&O(i,s)},d(t){t&&k(n)}}}function jr(t){let n,r=t[0]&&t[1]&&Dr(t);return{c(){n=$("div"),r&&r.c(),this.c=y,N(n,"class","TournamentDuration")},m(t,e){P(t,n,e),r&&r.m(n,null)},p(t,[e]){t[0]&&t[1]?r?r.p(t,e):(r=Dr(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},i:y,o:y,d(t){t&&k(n),r&&r.d()}}}function Gr(t,e,r){let n;H(t,ur,t=>r(11,n=t));let{startdate:o=""}=e,{enddate:i=""}=e,{status:s=""}=e,{lang:a="en"}=e,l,u,c,d,h,p,f,m=!1,g=!1,b=!1;Object.keys(Or).forEach(t=>{Gn(t,Or[t])});const y=t=>{let e=new Date(t),n=new Intl.DateTimeFormat(a,{month:"long"}).format(e);return`${e.getDate()} ${n}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${e.getUTCFullYear()}`},v=(t,e,n)=>{t=new Date(t),t=(new Date(e)-t)/6e4;return 1==n?t<60?(r(8,m=!0),Math.ceil(t)):t<1440?(r(9,g=!0),Math.ceil(t/60)):(r(10,b=!0),Math.ceil(t/1440)):Math.ceil(t/1440)};return t.$$set=t=>{"startdate"in t&&r(0,o=t.startdate),"enddate"in t&&r(1,i=t.enddate),"status"in t&&r(2,s=t.status),"lang"in t&&r(15,a=t.lang)},[o,i,s,"","","","","",m,g,b,n,()=>{r(3,l=y(new Date(o)))},()=>{r(4,u=y(new Date(i)))},()=>{c=v(o,i,!1),r(5,d=v(new Date,i,!0)),r(6,h=v(new Date,o,!1)),0<d&&(p=100/c,r(7,f=Math.floor((c-d)*p)))},a]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:#58586B}.EndDate{font-size:11px;align-content:flex-end;color:#58586B}.ProgressBar{margin:5px 20px;height:8px;background:#fff}.ProgressBarFill{background-color:#48952a;height:8px}.ProgressBarFillEnd{background-color:#48952a;height:8px}.ProgressBarFillStarting{background-color:#58586B;height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:#1B9800}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Gr,jr,n,{startdate:0,enddate:1,status:2,lang:15}),t&&(t.target&&P(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(t){this.$set({startdate:t}),U()}get enddate(){return this.$$.ctx[1]}set enddate(t){this.$set({enddate:t}),U()}get status(){return this.$$.ctx[2]}set status(t){this.$set({status:t}),U()}get lang(){return this.$$.ctx[15]}set lang(t){this.$set({lang:t}),U()}});const Hr={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα"}}};function Xr(t,e,n){const r=t.slice();return r[4]=e[n],r[6]=n,r}function Vr(t,e,n){const r=t.slice();return r[7]=e[n],r[9]=n,r}function qr(e){let r,o=e[0],i=[];for(let t=0;t<o.length;t+=1)i[t]=Kr(Xr(e,o,t));let s=null;return o.length||(s=Yr(e)),{c(){r=$("div");for(let t=0;t<i.length;t+=1)i[t].c();s&&s.c(),N(r,"class","Prizes")},m(t,e){P(t,r,e);for(let t=0;t<i.length;t+=1)i[t].m(r,null);s&&s.m(r,null)},p(e,n){if(3&n){let t;for(o=e[0],t=0;t<o.length;t+=1){const s=Xr(e,o,t);i[t]?i[t].p(s,n):(i[t]=Kr(s),i[t].c(),i[t].m(r,null))}for(;t<i.length;t+=1)i[t].d(1);i.length=o.length,!o.length&&s?s.p(e,n):o.length?s&&(s.d(1),s=null):(s=Yr(e),s.c(),s.m(r,null))}},d(t){t&&k(r),E(i,t),s&&s.d()}}}function Yr(t){let n,r,o=t[1]("tournamentsPrizes.noprizes")+"";return{c(){n=$("p"),r=C(o)},m(t,e){P(t,n,e),A(n,r)},p(t,e){2&e&&o!==(o=t[1]("tournamentsPrizes.noprizes")+"")&&O(r,o)},d(t){t&&k(n)}}}function Wr(t){let n,r,o,i,s,a,l,u=t[4].rank+t[9]+"",c=t[4].name+"";return{c(){n=$("div"),r=$("p"),o=$("span"),i=C(u),s=S(),a=C(c),l=S(),N(n,"class","Prize Prize"+t[6])},m(t,e){P(t,n,e),A(n,r),A(r,o),A(o,i),A(r,s),A(r,a),A(n,l)},p(t,e){1&e&&u!==(u=t[4].rank+t[9]+"")&&O(i,u),1&e&&c!==(c=t[4].name+"")&&O(a,c)},d(t){t&&k(n)}}}function Kr(e){let o,i={length:e[4].count},s=[];for(let t=0;t<i.length;t+=1)s[t]=Wr(Vr(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n)},p(e,n){if(1&n){let t;for(i={length:e[4].count},t=0;t<i.length;t+=1){var r=Vr(e,i,t);s[t]?s[t].p(r,n):(s[t]=Wr(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&k(o)}}}function Zr(t){let n,r,o,i,s,a,l,u,c,d,h=t[1]("tournamentsPrizes.prizes")+"",p=t[0]&&qr(t);return{c(){n=$("div"),r=e("svg"),o=e("defs"),i=e("style"),s=C(".a{fill:#fff;}"),a=e("path"),l=S(),u=$("p"),c=C(h),d=S(),p&&p.c(),this.c=y,N(a,"class","a"),N(a,"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"),N(a,"transform","translate(-5.999 -9.76)"),N(r,"xmlns","http://www.w3.org/2000/svg"),N(r,"width","30"),N(r,"height","27.454"),N(r,"viewBox","0 0 30 27.454"),N(u,"class","PrizesTitle"),N(n,"class","TournamentPrizes")},m(t,e){P(t,n,e),A(n,r),A(r,o),A(o,i),A(i,s),A(r,a),A(n,l),A(n,u),A(u,c),A(n,d),p&&p.m(n,null)},p(t,[e]){2&e&&h!==(h=t[1]("tournamentsPrizes.prizes")+"")&&O(c,h),t[0]?p?p.p(t,e):(p=qr(t),p.c(),p.m(n,null)):p&&(p.d(1),p=null)},i:y,o:y,d(t){t&&k(n),p&&p.d()}}}function Jr(t,e,n){let r;H(t,ur,t=>n(1,r=t));let o,{tourid:i=""}=e;Object.keys(Hr).forEach(t=>{Gn(t,Hr[t])});const s=t=>{t.data&&t.data.type==`TournamentPrizes_${i}`&&n(0,o=t.data.prizes)};return X(()=>(window.addEventListener("message",s,!1),()=>{window.removeEventListener("message",s)})),t.$$set=t=>{"tourid"in t&&n(2,i=t.tourid)},[o,r,i]}function Qr(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function to(n){let o,r,i,s,a,l,u,c,d=n[0],h=[];for(let t=0;t<d.length;t+=1)h[t]=eo(Qr(n,d,t));return{c(){o=$("div"),o.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>',r=S(),i=$("main"),s=$("div");for(let t=0;t<h.length;t+=1)h[t].c();a=S(),l=$("div"),l.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(o,"class","SliderNavButton"),t(o,"disabled",n[6]),N(s,"class","items"),m(s,"transform","translateX("+n[1]+"px)"),N(l,"class","SliderNavButton"),t(l,"disabled",n[7])},m(t,e){P(t,o,e),P(t,r,e),P(t,i,e),A(i,s);for(let t=0;t<h.length;t+=1)h[t].m(s,null);n[21](s),P(t,a,e),P(t,l,e),u||(c=[L(o,"click",n[17]),L(l,"click",n[22])],u=!0)},p(e,n){if(64&n[0]&&t(o,"disabled",e[6]),2841&n[0]){let t;for(d=e[0],t=0;t<d.length;t+=1){var r=Qr(e,d,t);h[t]?h[t].p(r,n):(h[t]=eo(r),h[t].c(),h[t].m(s,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}2&n[0]&&m(s,"transform","translateX("+e[1]+"px)"),128&n[0]&&t(l,"disabled",e[7])},d(t){t&&k(o),t&&k(r),t&&k(i),E(h,t),n[21](null),t&&k(a),t&&k(l),u=!1,b(c)}}}function eo(n){let r,o,i,s,a,l,u,c,d,h,p,f;function m(){return n[18](n[37])}function g(){return n[19](n[39])}return{c(){r=$("div"),o=$("span"),i=C("Play now"),a=S(),l=$("img"),h=S(),N(o,"class",s="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":"")),l.src!==(u=n[37].thumbnail)&&N(l,"src",u),N(l,"width","132px"),N(l,"height","100px"),N(l,"alt",c=n[37].name),N(l,"title",d=n[37].name),N(r,"class","item")},m(t,e){P(t,r,e),A(r,o),A(o,i),A(r,a),A(r,l),A(r,h),p||(f=[L(r,"click",m),L(r,"mouseenter",g),L(r,"mouseleave",n[20])],p=!0)},p(t,e){n=t,24&e[0]&&s!==(s="PlayNowButton "+(n[3]&&n[4]==n[39]?"itemHover":""))&&N(o,"class",s),1&e[0]&&l.src!==(u=n[37].thumbnail)&&N(l,"src",u),1&e[0]&&c!==(c=n[37].name)&&N(l,"alt",c),1&e[0]&&d!==(d=n[37].name)&&N(l,"title",d)},d(t){t&&k(r),p=!1,b(f)}}}function no(n){let r,o=n[0]&&to(n);return{c(){r=$("div"),o&&o.c(),this.c=y,N(r,"class","TournamentsGamesSlider")},m(t,e){P(t,r,e),o&&o.m(r,null),n[23](r)},p(t,e){t[0]?o?o.p(t,e):(o=to(t),o.c(),o.m(r,null)):o&&(o.d(1),o=null)},i:y,o:y,d(t){t&&k(r),o&&o.d(),n[23](null)}}}function ro(t,e,n){let r,o,i,s,a,l,{tournamenturl:u=""}=e,{scrollby:c="3"}=e,{pagfactor:d="175"}=e,{lang:h=""}=e,p=window.navigator.userAgent,f=[],m=0,g=null,b=null,y=!1,v=0;const w=t=>{n(3,y=!0),n(4,a=t)},E=()=>{n(3,y=!1),n(4,a=-1)},T=t=>{t=(t.touches||t.originalEvent.touches)[0];g=t.clientX,b=t.clientY},x=t=>{var e;g&&b&&(e=t.touches[0].clientX,t=t.touches[0].clientY,e=g-e,t=b-t,Math.abs(e)>Math.abs(t)&&_(0<e?1:-1),g=null,b=null)},_=t=>{0<t&&!o?(n(1,m-=i),n(1,m=m<v?v:m)):t<0&&!r&&(n(1,m+=i),n(1,m=0<m?0:m))},A=t=>{window.postMessage({type:"TournamentGameAction",gameId:t.id,name:t.name},window.location.href)};return X(()=>(i=parseInt(c,10)*parseInt(d,10),()=>{s.removeEventListener("touchstart",T),s.removeEventListener("touchmove",x)})),t.$$set=t=>{"tournamenturl"in t&&n(13,u=t.tournamenturl),"scrollby"in t&&n(14,c=t.scrollby),"pagfactor"in t&&n(12,d=t.pagfactor),"lang"in t&&n(15,h=t.lang)},t.$$.update=()=>{2&t.$$.dirty[0]&&n(6,r=0===m),65538&t.$$.dirty[0]&&n(7,o=m<=v),8192&t.$$.dirty[0]&&u&&(()=>{let t=new URL(u),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("pagination",`games(limit=30,offset=${m})`),t.searchParams.append("fields","games(id,name,thumbnail)"),t.searchParams.append("language",h),t.searchParams.append("platform",dr(p)),fetch(t,{method:"GET",headers:e}).then(t=>t.json()).then(t=>{n(0,f=t.item.games.items),t.item.games.total})})(),4&t.$$.dirty[0]&&s&&(s.addEventListener("touchstart",T,{passive:!0}),s.addEventListener("touchmove",x,{passive:!0})),1&t.$$.dirty[0]&&f.length&&setTimeout(()=>{n(16,v=-1*(l.scrollWidth-l.clientWidth)),n(12,d=new String(l.scrollWidth/f.length)),i=parseInt(c,10)*parseFloat(d,2).toFixed(2)},1e3)},n(1,m=0),[f,m,s,y,a,l,r,o,w,E,_,A,d,u,c,h,v,()=>_(-1),t=>A(t),t=>w(t),()=>E(),function(t){D[t?"unshift":"push"](()=>{l=t,n(5,l)})},()=>_(1),function(t){D[t?"unshift":"push"](()=>{s=t,n(2,s)})}]}function oo(t){let n,r,o,i,s,a,l,u,c=t[9]&&so(t);function d(t){return t[9]?"Closed"!=t[17]&&"Closing"!=t[17]?uo:"true"==t[3]?lo:void 0:co}let h=d(t),p=h&&h(t),f=t[12]&&yo(t),m="true"==t[4]&&vo(t);return{c(){n=$("div"),r=$("casino-tournaments-thumbnail"),o=S(),c&&c.c(),i=S(),s=$("div"),p&&p.c(),a=S(),f&&f.c(),l=S(),m&&m.c(),v(r,"session",t[0]),v(r,"userid",t[1]),v(r,"title",t[14]),v(r,"status",t[17]),v(r,"startdate",t[15]),v(r,"tourid",t[18]),v(r,"scorecriteria",t[21]),v(r,"minbetcount",t[22]),v(r,"thumbnail",t[19]),v(r,"userenrolled",t[20]),v(r,"showenrolled",t[5]),v(r,"gameurl",t[24]),v(r,"lang",t[8]),N(s,"class","TournamentButtons"),N(n,"class",u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))},m(t,e){P(t,n,e),A(n,r),A(n,o),c&&c.m(n,null),A(n,i),A(n,s),p&&p.m(s,null),A(n,a),f&&f.m(n,null),A(n,l),m&&m.m(n,null)},p(t,e){1&e[0]&&v(r,"session",t[0]),2&e[0]&&v(r,"userid",t[1]),16384&e[0]&&v(r,"title",t[14]),131072&e[0]&&v(r,"status",t[17]),32768&e[0]&&v(r,"startdate",t[15]),262144&e[0]&&v(r,"tourid",t[18]),2097152&e[0]&&v(r,"scorecriteria",t[21]),4194304&e[0]&&v(r,"minbetcount",t[22]),524288&e[0]&&v(r,"thumbnail",t[19]),1048576&e[0]&&v(r,"userenrolled",t[20]),32&e[0]&&v(r,"showenrolled",t[5]),16777216&e[0]&&v(r,"gameurl",t[24]),256&e[0]&&v(r,"lang",t[8]),t[9]?c?c.p(t,e):(c=so(t),c.c(),c.m(n,i)):c&&(c.d(1),c=null),h===(h=d(t))&&p?p.p(t,e):(p&&p.d(1),p=h&&h(t),p&&(p.c(),p.m(s,null))),t[12]?f?f.p(t,e):(f=yo(t),f.c(),f.m(n,l)):f&&(f.d(1),f=null),"true"==t[4]?m?m.p(t,e):(m=vo(t),m.c(),m.m(n,null)):m&&(m.d(1),m=null),192&e[0]&&u!==(u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))&&N(n,"class",u)},d(t){t&&k(n),c&&c.d(),p&&p.d(),f&&f.d(),m&&m.d()}}}function io(t){let n,r,o;return{c(){n=$("div"),r=$("div"),r.innerHTML='<div class="ph-col-12"><div class="ph-picture"></div> \n <div class="ph-row"><div class="ph-col-6 big"></div> \n <div class="ph-col-4 empty big"></div> \n <div class="ph-col-4"></div> \n <div class="ph-col-8 empty"></div> \n <div class="ph-col-6"></div> \n <div class="ph-col-6 empty"></div> \n <div class="ph-col-12"></div></div></div>',N(r,"class","ph-item"),N(n,"class",o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))},m(t,e){P(t,n,e),A(n,r)},p(t,e){192&e[0]&&o!==(o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":""))&&N(n,"class",o)},d(t){t&&k(n)}}}function so(t){let n,r,o=t[18]&&ao(t);return{c(){o&&o.c(),n=S(),r=$("casino-tournaments-thumbnail-duration"),v(r,"status",t[17]),v(r,"startdate",t[15]),v(r,"lang",t[8]),v(r,"enddate",t[16])},m(t,e){o&&o.m(t,e),P(t,n,e),P(t,r,e)},p(t,e){t[18]?o?o.p(t,e):(o=ao(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),131072&e[0]&&v(r,"status",t[17]),32768&e[0]&&v(r,"startdate",t[15]),256&e[0]&&v(r,"lang",t[8]),65536&e[0]&&v(r,"enddate",t[16])},d(t){o&&o.d(t),t&&k(n),t&&k(r)}}}function ao(n){let r,o,i,s;return{c(){r=$("casino-tournaments-thumbnail-prizes"),v(r,"tourid",n[18])},m(t,e){P(t,r,e),i||(s=g(o=n[30].call(null,r,n[18])),i=!0)},p(t,e){262144&e[0]&&v(r,"tourid",t[18]),o&&p(o.update)&&262144&e[0]&&o.update.call(null,t[18])},d(t){t&&k(r),i=!1,s()}}}function lo(n){let r,o,i,s,a=n[25]("tournamentsThController.details")+"";return{c(){r=$("button"),o=C(a),N(r,"class","DetailsLargeButton")},m(t,e){P(t,r,e),A(r,o),i||(s=L(r,"click",n[41]),i=!0)},p(t,e){33554432&e[0]&&a!==(a=t[25]("tournamentsThController.details")+"")&&O(o,a)},d(t){t&&k(r),i=!1,s()}}}function uo(t){let n,r,o="true"==t[3]&&ho(t);function i(t){return 1==t[20]?fo:po}let s=i(t),a=s(t);return{c(){o&&o.c(),n=S(),a.c(),r=w()},m(t,e){o&&o.m(t,e),P(t,n,e),a.m(t,e),P(t,r,e)},p(t,e){"true"==t[3]?o?o.p(t,e):(o=ho(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null),s===(s=i(t))&&a?a.p(t,e):(a.d(1),a=s(t),a&&(a.c(),a.m(r.parentNode,r)))},d(t){o&&o.d(t),t&&k(n),a.d(t),t&&k(r)}}}function co(n){let r,o,i,s,a,l,u,c=n[25]("tournamentsThController.login")+"",d=n[25]("tournamentsThController.register")+"";return{c(){r=$("button"),o=C(c),i=S(),s=$("button"),a=C(d),N(r,"class","LoginButton"),N(s,"class","RegisterButton")},m(t,e){P(t,r,e),A(r,o),P(t,i,e),P(t,s,e),A(s,a),l||(u=[L(r,"click",n[37]),L(s,"click",n[38])],l=!0)},p(t,e){33554432&e[0]&&c!==(c=t[25]("tournamentsThController.login")+"")&&O(o,c),33554432&e[0]&&d!==(d=t[25]("tournamentsThController.register")+"")&&O(a,d)},d(t){t&&k(r),t&&k(i),t&&k(s),l=!1,b(u)}}}function ho(n){let r,o,i,s,a=n[25]("tournamentsThController.details")+"";return{c(){r=$("button"),o=C(a),N(r,"class","DetailsButton")},m(t,e){P(t,r,e),A(r,o),i||(s=L(r,"click",n[39]),i=!0)},p(t,e){33554432&e[0]&&a!==(a=t[25]("tournamentsThController.details")+"")&&O(o,a)},d(t){t&&k(r),i=!1,s()}}}function po(n){let r,o,i,s;function a(t){return 1==t[11]?go:mo}let l=a(n),u=l(n);return{c(){r=$("button"),u.c(),N(r,"class",o="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[12]},m(t,e){P(t,r,e),u.m(r,null),i||(s=L(r,"click",n[40]),i=!0)},p(t,e){l===(l=a(t))&&u?u.p(t,e):(u.d(1),u=l(t),u&&(u.c(),u.m(r,null))),128&e[0]&&o!==(o="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&N(r,"class",o),4096&e[0]&&(r.disabled=t[12])},d(t){t&&k(r),u.d(),i=!1,s()}}}function fo(t){let n,r="true"==t[3]&&bo(t);return{c(){r&&r.c(),n=w()},m(t,e){r&&r.m(t,e),P(t,n,e)},p(t,e){"true"==t[3]?r?r.p(t,e):(r=bo(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&k(n)}}}function mo(t){let n,r,o,i,s,a,l,u,c,d=t[25]("tournamentsThController.join")+"";return{c(){n=$("span"),r=C(d),o=S(),i=e("svg"),s=e("defs"),a=e("style"),l=C(".a{fill:#fff;}"),u=e("g"),c=e("path"),N(c,"class","a"),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(i,"xmlns","http://www.w3.org/2000/svg"),N(i,"width","26"),N(i,"height","26"),N(i,"viewBox","0 0 26 26")},m(t,e){P(t,n,e),A(n,r),P(t,o,e),P(t,i,e),A(i,s),A(s,a),A(a,l),A(i,u),A(u,c)},p(t,e){33554432&e[0]&&d!==(d=t[25]("tournamentsThController.join")+"")&&O(r,d)},d(t){t&&k(n),t&&k(o),t&&k(i)}}}function go(t){let n,r;return{c(){n=e("svg"),r=e("circle"),N(r,"cx","20"),N(r,"cy","20"),N(r,"r","18"),N(n,"class","spinner")},m(t,e){P(t,n,e),A(n,r)},p:y,d(t){t&&k(n)}}}function bo(t){let n,r,o=t[25]("tournamentsThController.enrolled")+"";return{c(){n=$("button"),r=C(o),N(n,"class","EnrolledButton"),n.disabled=!0},m(t,e){P(t,n,e),A(n,r)},p(t,e){33554432&e[0]&&o!==(o=t[25]("tournamentsThController.enrolled")+"")&&O(r,o)},d(t){t&&k(n)}}}function yo(t){let n,r,o,i,s=t[25]("tournamentsThController.joinerror")+"";return{c(){n=$("span"),r=C(s),o=S(),i=C(t[13]),N(n,"class","ErrorText")},m(t,e){P(t,n,e),A(n,r),A(n,o),A(n,i)},p(t,e){33554432&e[0]&&s!==(s=t[25]("tournamentsThController.joinerror")+"")&&O(r,s),8192&e[0]&&O(i,t[13])},d(t){t&&k(n)}}}function vo(t){let n;return{c(){n=$("casino-tournaments-thumbnail-games-slider"),v(n,"tournamenturl",t[2]),v(n,"lang",t[8]),v(n,"scrollby","2")},m(t,e){P(t,n,e)},p(t,e){4&e[0]&&v(n,"tournamenturl",t[2]),256&e[0]&&v(n,"lang",t[8])},d(t){t&&k(n)}}}function wo(t){let n;function r(t){return t[10]?io:oo}let o=r(t),i=o(t);return{c(){i.c(),n=w(),this.c=y},m(t,e){i.m(t,e),P(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:y,o:y,d(t){i.d(t),t&&k(n)}}}function Eo(t,e,i){let n;H(t,ur,t=>i(25,n=t));let r,o,s,a,l,u,c,d,h,{session:p=""}=e,{userid:f=""}=e,{tournamenturl:m=""}=e,{endpoint:g=""}=e,{showdetails:b=""}=e,{showslider:y=""}=e,{showenrolled:v=""}=e,{maxwidth:w=""}=e,{fullsize:E=""}=e,{lang:T=""}=e,{loginevent:x=""}=e,{registerevent:_=""}=e,{loginurl:A=""}=e,{registerurl:P=""}=e,{currency:k=""}=e,$=!1,C="",S=!0,L=window.navigator.userAgent,N=!1,O=!1,D="There was an error while trying to join the tournament",R=[],M=[],I="#";Object.keys(wr).forEach(t=>{Gn(t,wr[t])});const U=t=>{t.data&&"UserSessionID"==t.data.type&&(i(9,$=!0),C=t.data.session)},B=()=>{x&&window.postMessage({type:x},window.location.href),A&&(window.location=A)},z=()=>{_&&window.postMessage({type:_},window.location.href),P&&(window.location=P)},F=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:"Ongoing"===a},window.location.href)},j=(t,e)=>{window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),i(11,N=!0);let n=new URL(`${g}/bonus/claim`),r=new Headers,o={};n.searchParams.append("language",T),r.append("platform",dr(L)),r.append("Content-Type","application/json"),r.append("X-SessionID",C),e&&1<=e.length&&(o={language:T,bonusCode:e[0].code,currency:k});e={method:"PUT",headers:r,body:JSON.stringify(o)};fetch(n,e).then(t=>t.json()).then(t=>{1==t.success?(i(11,N=!1),i(20,c=!0)):(i(11,N=!1),i(13,D=t.errorMessage),i(12,O=!0))},t=>{i(11,N=!1),i(12,O=!0)})},G=t=>{i(10,S=!0);let e=new URL(t),n=new Headers;e.searchParams.append("language",T),n.append("platform",dr(L)),$&&n.append("X-SessionID",C),fetch(e,{method:"GET",headers:n}).then(t=>t.json()).then(t=>{i(10,S=!1),t=t.item,i(14,r=t.nameOrTitle),i(15,o=t.startTime),i(16,s=t.endTime),i(17,a=t.state),i(18,l=t.id),i(19,u=t.thumbnail),i(20,c=t.playerEnrolled||!1),i(21,d=t.scoreCriteria),i(22,h=t.minBetCount),R=t.prizes,i(23,M=t.wallets||[]),i(24,I=t.termsUrl||"#")})};return X(()=>(i(10,S=!1),window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)})),t.$$set=t=>{"session"in t&&i(0,p=t.session),"userid"in t&&i(1,f=t.userid),"tournamenturl"in t&&i(2,m=t.tournamenturl),"endpoint"in t&&i(31,g=t.endpoint),"showdetails"in t&&i(3,b=t.showdetails),"showslider"in t&&i(4,y=t.showslider),"showenrolled"in t&&i(5,v=t.showenrolled),"maxwidth"in t&&i(6,w=t.maxwidth),"fullsize"in t&&i(7,E=t.fullsize),"lang"in t&&i(8,T=t.lang),"loginevent"in t&&i(32,x=t.loginevent),"registerevent"in t&&i(33,_=t.registerevent),"loginurl"in t&&i(34,A=t.loginurl),"registerurl"in t&&i(35,P=t.registerurl),"currency"in t&&i(36,k=t.currency)},t.$$.update=()=>{1&t.$$.dirty[0]&&p&&(0<p.length&&"false"!=p?(C=p,i(9,$=!0)):i(9,$=!1)),260&t.$$.dirty[0]&&m&&T&&(i(10,S=!0),G(m))},[p,f,m,b,y,v,w,E,T,$,S,N,O,D,r,o,s,a,l,u,c,d,h,M,I,n,B,z,F,j,(t,e)=>{window.postMessage({type:`TournamentPrizes_${e}`,prizes:R},window.location.href)},g,x,_,A,P,k,()=>B(),()=>z(),()=>F(l),()=>j(l,M),()=>F(l)]}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}span{color:#c3c3c3}.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:#58586B}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:#FFF}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Jr,Zr,n,{tourid:2}),t&&(t.target&&P(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(t){this.$set({tourid:t}),U()}}),customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.TournamentsGamesSlider{background:#0a0c19;color:#fff;display:flex;justify-content:center}.disabled{color:#3B3C47}.SliderNavButton{background:#0a0c19;border:0px;width:25px;align-items:center;justify-content:center}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:#ef4322;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:#28a745;display:block;box-sizing:border-box;padding:0.8rem .5rem;color:#fff;text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .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}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ro,no,n,{tournamenturl:13,scrollby:14,pagfactor:12,lang:15},[-1,-1]),t&&(t.target&&P(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[13]}set tournamenturl(t){this.$set({tournamenturl:t}),U()}get scrollby(){return this.$$.ctx[14]}set scrollby(t){this.$set({scrollby:t}),U()}get pagfactor(){return this.$$.ctx[12]}set pagfactor(t){this.$set({pagfactor:t}),U()}get lang(){return this.$$.ctx[15]}set lang(t){this.$set({lang:t}),U()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}button{cursor:pointer}.TournamentCard{position:relative;background:#0A0B19;color:#fff;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}.LoginButton{background:#0A0B19;width:50%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:18px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:#0A0B19;width:50%;height:60px;text-align:center;color:#48952a;border:solid #48952a 1px;text-transform:uppercase;font-size:18px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:#0A0B19;width:40%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:18px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:#0A0B19;width:100%;height:60px;border:solid #fff 1px;text-align:center;color:#fff;text-transform:uppercase;font-size:16px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:#2a2c5a;width:60%;height:60px;text-align:center;color:#aaaabe;border:0;text-transform:uppercase;font-size:18px;cursor:default}.JoinButton{background:#48952a;width:60%;height:60px;text-align:center;color:#fff;border:solid #48952a 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:18px}.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:#0A0B19;border:1px solid black;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(10, 11, 25, 0) 46%, rgba(10, 11, 25, 0.35) 50%, rgba(10, 11, 25, 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:#ced4da}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(10, 11, 25, 0)}.ph-col-4{flex:0 0 33.33333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.66667%}.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:#ced4da}@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:#212121;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}}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Eo,wo,n,{session:0,userid:1,tournamenturl:2,endpoint:31,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:32,registerevent:33,loginurl:34,registerurl:35,currency:36},[-1,-1]),t&&(t.target&&P(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["session","userid","tournamenturl","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency"]}get session(){return this.$$.ctx[0]}set session(t){this.$set({session:t}),U()}get userid(){return this.$$.ctx[1]}set userid(t){this.$set({userid:t}),U()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$set({tournamenturl:t}),U()}get endpoint(){return this.$$.ctx[31]}set endpoint(t){this.$set({endpoint:t}),U()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$set({showdetails:t}),U()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$set({showslider:t}),U()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$set({showenrolled:t}),U()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$set({maxwidth:t}),U()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$set({fullsize:t}),U()}get lang(){return this.$$.ctx[8]}set lang(t){this.$set({lang:t}),U()}get loginevent(){return this.$$.ctx[32]}set loginevent(t){this.$set({loginevent:t}),U()}get registerevent(){return this.$$.ctx[33]}set registerevent(t){this.$set({registerevent:t}),U()}get loginurl(){return this.$$.ctx[34]}set loginurl(t){this.$set({loginurl:t}),U()}get registerurl(){return this.$$.ctx[35]}set registerurl(t){this.$set({registerurl:t}),U()}get currency(){return this.$$.ctx[36]}set currency(t){this.$set({currency:t}),U()}});const To={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Counts",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Position:"Position",Name:"Name",Score:"Score"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Position:"Pozisyon",Name:"İsim",Score:"Skor"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Position:"Θέση",Name:"Ονομα",Score:"Σκορ"}}};function xo(t,e,n){const r=t.slice();return r[29]=e[n],r}function _o(t,e,n){const r=t.slice();return r[24]=e[n],r}function Ao(t,e,n){const r=t.slice();return r[29]=e[n],r}function Po(t,e,n){const r=t.slice();return r[24]=e[n],r}function ko(e){let n,r,o,i,s,a,l,u,c,t=e[8]("tournamentsTable.nowinners")+"",d=e[3],h=[];for(let t=0;t<d.length;t+=1)h[t]=No(xo(e,d,t));return{c(){n=$("div"),r=$("table"),o=$("thead"),i=$("tr");for(let t=0;t<h.length;t+=1)h[t].c();s=S(),a=$("tbody"),l=$("tr"),u=$("td"),c=C(t),N(u,"colspan","3"),N(r,"class","LeftTable"),N(n,"class","TournamentsTable")},m(t,e){P(t,n,e),A(n,r),A(r,o),A(o,i);for(let t=0;t<h.length;t+=1)h[t].m(i,null);A(r,s),A(r,a),A(a,l),A(l,u),A(u,c)},p(e,n){if(1417&n[0]){let t;for(d=e[3],t=0;t<d.length;t+=1){var r=xo(e,d,t);h[t]?h[t].p(r,n):(h[t]=No(r),h[t].c(),h[t].m(i,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=d.length}256&n[0]&&t!==(t=e[8]("tournamentsTable.nowinners")+"")&&O(c,t)},d(t){t&&k(n),E(h,t)}}}function $o(n){let r,o,i,s,a,l,u,c,d,h,p=n[8]("tournamentsTable.leaderboard")+"";function f(t){return t[5]?Do:Oo}let m=f(n),g=m(n),b=n[5]&&Ro(n);return{c(){r=$("div"),o=$("div"),i=C(p),s=S(),a=$("div"),l=$("div"),g.c(),u=S(),b&&b.c(),c=w(),N(o,"class","Leaderboard"),N(l,"class","CollapseButton"),N(a,"class","RightButton "+(cr(n[9])?"MobileClass":"")),N(r,"class","LeaderboardContainer")},m(t,e){P(t,r,e),A(r,o),A(o,i),A(r,s),A(r,a),A(a,l),g.m(l,null),P(t,u,e),b&&b.m(t,e),P(t,c,e),d||(h=L(l,"click",n[18]),d=!0)},p(t,e){256&e[0]&&p!==(p=t[8]("tournamentsTable.leaderboard")+"")&&O(i,p),m!==(m=f(t))&&(g.d(1),g=m(t),g&&(g.c(),g.m(l,null))),t[5]?b?b.p(t,e):(b=Ro(t),b.c(),b.m(c.parentNode,c)):b&&(b.d(1),b=null)},d(t){t&&k(r),g.d(),t&&k(u),b&&b.d(t),t&&k(c),d=!1,h()}}}function Co(t){let n,r=(e=t,(1==cr(e[9])?Io:Mo)(t));var e;return{c(){r.c(),n=w()},m(t,e){r.m(t,e),P(t,n,e)},p(t,e){r.p(t,e)},d(t){r.d(t),t&&k(n)}}}function So(t){let n,r,o=t[8](`tournamentsTable.${t[29]}`)+"";return{c(){n=$("p"),r=C(o),N(n,"data-sort",t[7])},m(t,e){P(t,n,e),A(n,r)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[29]}`)+"")&&O(r,o),128&e[0]&&N(n,"data-sort",t[7])},d(t){t&&k(n)}}}function Lo(n){let r,o,i,s,a=n[8](`tournamentsTable.${n[29]}`)+"";function l(){return n[19](n[29])}return{c(){r=$("button"),o=C(a),N(r,"data-sort",n[7])},m(t,e){P(t,r,e),A(r,o),i||(s=L(r,"click",l),i=!0)},p(t,e){n=t,264&e[0]&&a!==(a=n[8](`tournamentsTable.${n[29]}`)+"")&&O(o,a),128&e[0]&&N(r,"data-sort",n[7])},d(t){t&&k(r),i=!1,s()}}}function No(t){let n,r;function o(t){return"true"==t[0]?Lo:So}let i=o(t),s=i(t);return{c(){n=$("th"),s.c(),r=S()},m(t,e){P(t,n,e),s.m(n,null),A(n,r)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(n,r)))},d(t){t&&k(n),s.d()}}}function Oo(t){let n,r;return{c(){n=e("svg"),r=e("path"),N(r,"d","M6 9l6 6 6-6"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","24"),N(n,"height","24"),N(n,"viewBox","0 0 24 24"),N(n,"fill","none"),N(n,"stroke","#ffffff"),N(n,"stroke-width","2"),N(n,"stroke-linecap","round"),N(n,"stroke-linejoin","round")},m(t,e){P(t,n,e),A(n,r)},d(t){t&&k(n)}}}function Do(t){let n,r;return{c(){n=e("svg"),r=e("path"),N(r,"d","M18 15l-6-6-6 6"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","24"),N(n,"height","24"),N(n,"viewBox","0 0 24 24"),N(n,"fill","none"),N(n,"stroke","#ffffff"),N(n,"stroke-width","2"),N(n,"stroke-linecap","round"),N(n,"stroke-linejoin","round")},m(t,e){P(t,n,e),A(n,r)},d(t){t&&k(n)}}}function Ro(t){let n,r,o,i,s=t[8]("tournamentsTable.nowinners")+"";return{c(){n=$("div"),r=$("div"),o=$("p"),i=C(s),N(r,"class","TableUser"),N(n,"class","TableContent")},m(t,e){P(t,n,e),A(n,r),A(r,o),A(o,i)},p(t,e){256&e[0]&&s!==(s=t[8]("tournamentsTable.nowinners")+"")&&O(i,s)},d(t){t&&k(n)}}}function Mo(n){let r,o,i,s,a,l,u,c,d,h,p,f,m=n[3],g=[];for(let t=0;t<m.length;t+=1)g[t]=zo(Ao(n,m,t));let b="true"==n[1]&&n[4]&&Fo(n),y=n[5]&&jo(n);function t(t){return t[5]?Xo:Ho}let v=t(n),w=v(n);return{c(){r=$("div"),o=$("table"),i=$("thead"),s=$("tr");for(let t=0;t<g.length;t+=1)g[t].c();a=S(),l=$("tbody"),b&&b.c(),u=S(),y&&y.c(),c=S(),d=$("div"),h=$("div"),w.c(),N(o,"class","LeftTable"),N(h,"class","CollapseButton"),N(d,"class","RightButton"),N(r,"class","TournamentsTable")},m(t,e){P(t,r,e),A(r,o),A(o,i),A(i,s);for(let t=0;t<g.length;t+=1)g[t].m(s,null);A(o,a),A(o,l),b&&b.m(l,null),A(l,u),y&&y.m(l,null),A(r,c),A(r,d),A(d,h),w.m(h,null),p||(f=L(h,"click",n[17]),p=!0)},p(e,n){if(1417&n[0]){let t;for(m=e[3],t=0;t<m.length;t+=1){var r=Ao(e,m,t);g[t]?g[t].p(r,n):(g[t]=zo(r),g[t].c(),g[t].m(s,null))}for(;t<g.length;t+=1)g[t].d(1);g.length=m.length}"true"==e[1]&&e[4]?b?b.p(e,n):(b=Fo(e),b.c(),b.m(l,u)):b&&(b.d(1),b=null),e[5]?y?y.p(e,n):(y=jo(e),y.c(),y.m(l,null)):y&&(y.d(1),y=null),v!==(v=t(e))&&(w.d(1),w=v(e),w&&(w.c(),w.m(h,null)))},d(t){t&&k(r),E(g,t),b&&b.d(),y&&y.d(),w.d(),p=!1,f()}}}function Io(n){let r,o,i,s,a,l,u,c,d,h,p,f=n[8]("tournamentsTable.leaderboard")+"";function m(t){return t[5]?qo:Vo}let g=m(n),b=g(n),y="true"==n[1]&&n[4]&&Yo(n),v=n[5]&&Wo(n);return{c(){r=$("div"),o=$("div"),i=C(f),s=S(),a=$("div"),l=$("div"),b.c(),u=S(),y&&y.c(),c=S(),v&&v.c(),d=w(),N(o,"class","Leaderboard"),N(l,"class","CollapseButton"),N(a,"class","RightButton "+(cr(n[9])?"MobileClass":"")),N(r,"class","LeaderboardContainer")},m(t,e){P(t,r,e),A(r,o),A(o,i),A(r,s),A(r,a),A(a,l),b.m(l,null),P(t,u,e),y&&y.m(t,e),P(t,c,e),v&&v.m(t,e),P(t,d,e),h||(p=L(l,"click",n[15]),h=!0)},p(t,e){256&e[0]&&f!==(f=t[8]("tournamentsTable.leaderboard")+"")&&O(i,f),g!==(g=m(t))&&(b.d(1),b=g(t),b&&(b.c(),b.m(l,null))),"true"==t[1]&&t[4]?y?y.p(t,e):(y=Yo(t),y.c(),y.m(c.parentNode,c)):y&&(y.d(1),y=null),t[5]?v?v.p(t,e):(v=Wo(t),v.c(),v.m(d.parentNode,d)):v&&(v.d(1),v=null)},d(t){t&&k(r),b.d(),t&&k(u),y&&y.d(t),t&&k(c),v&&v.d(t),t&&k(d),h=!1,p()}}}function Uo(t){let n,r,o=t[8](`tournamentsTable.${t[29]}`)+"";return{c(){n=$("p"),r=C(o),N(n,"data-sort",t[7])},m(t,e){P(t,n,e),A(n,r)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[29]}`)+"")&&O(r,o),128&e[0]&&N(n,"data-sort",t[7])},d(t){t&&k(n)}}}function Bo(n){let r,o,i,s,a=n[8](`tournamentsTable.${n[29]}`)+"";function l(){return n[16](n[29])}return{c(){r=$("button"),o=C(a),N(r,"data-sort",n[7])},m(t,e){P(t,r,e),A(r,o),i||(s=L(r,"click",l),i=!0)},p(t,e){n=t,264&e[0]&&a!==(a=n[8](`tournamentsTable.${n[29]}`)+"")&&O(o,a),128&e[0]&&N(r,"data-sort",n[7])},d(t){t&&k(r),i=!1,s()}}}function zo(t){let n,r;function o(t){return"true"==t[0]?Bo:Uo}let i=o(t),s=i(t);return{c(){n=$("th"),s.c(),r=S()},m(t,e){P(t,n,e),s.m(n,null),A(n,r)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(n,r)))},d(t){t&&k(n),s.d()}}}function Fo(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m=t[4].Position+"",g=t[4].Name+"",b=t[4].Score+"";return{c(){n=$("tr"),r=$("td"),o=$("strong"),i=$("em"),s=C("#"),a=C(m),l=S(),u=$("td"),c=C(g),d=S(),h=$("td"),p=$("div"),f=C(b),N(p,"class","Flex"),N(n,"class","FirstRow")},m(t,e){P(t,n,e),A(n,r),A(r,o),A(o,i),A(i,s),A(i,a),A(n,l),A(n,u),A(u,c),A(n,d),A(n,h),A(h,p),A(p,f)},p(t,e){16&e[0]&&m!==(m=t[4].Position+"")&&O(a,m),16&e[0]&&g!==(g=t[4].Name+"")&&O(c,g),16&e[0]&&b!==(b=t[4].Score+"")&&O(f,b)},d(t){t&&k(n)}}}function jo(e){let o,i=e[6],s=[];for(let t=0;t<i.length;t+=1)s[t]=Go(_o(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n)},p(e,n){if(64&n[0]){let t;for(i=e[6],t=0;t<i.length;t+=1){var r=_o(e,i,t);s[t]?s[t].p(r,n):(s[t]=Go(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&k(o)}}}function Go(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m,g=t[24].Position+"",b=t[24].Name+"",y=t[24].Score+"";return{c(){n=$("tr"),r=$("td"),o=$("strong"),i=$("em"),s=C("#"),a=C(g),l=S(),u=$("td"),c=C(b),d=S(),h=$("td"),p=$("div"),f=C(y),m=S(),N(p,"class","Flex")},m(t,e){P(t,n,e),A(n,r),A(r,o),A(o,i),A(i,s),A(i,a),A(n,l),A(n,u),A(u,c),A(n,d),A(n,h),A(h,p),A(p,f),A(n,m)},p(t,e){64&e[0]&&g!==(g=t[24].Position+"")&&O(a,g),64&e[0]&&b!==(b=t[24].Name+"")&&O(c,b),64&e[0]&&y!==(y=t[24].Score+"")&&O(f,y)},d(t){t&&k(n)}}}function Ho(t){let n,r;return{c(){n=e("svg"),r=e("path"),N(r,"d","M6 9l6 6 6-6"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","24"),N(n,"height","24"),N(n,"viewBox","0 0 24 24"),N(n,"fill","none"),N(n,"stroke","#ffffff"),N(n,"stroke-width","2"),N(n,"stroke-linecap","round"),N(n,"stroke-linejoin","round")},m(t,e){P(t,n,e),A(n,r)},d(t){t&&k(n)}}}function Xo(t){let n,r;return{c(){n=e("svg"),r=e("path"),N(r,"d","M18 15l-6-6-6 6"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","24"),N(n,"height","24"),N(n,"viewBox","0 0 24 24"),N(n,"fill","none"),N(n,"stroke","#ffffff"),N(n,"stroke-width","2"),N(n,"stroke-linecap","round"),N(n,"stroke-linejoin","round")},m(t,e){P(t,n,e),A(n,r)},d(t){t&&k(n)}}}function Vo(t){let n,r;return{c(){n=e("svg"),r=e("path"),N(r,"d","M6 9l6 6 6-6"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","24"),N(n,"height","24"),N(n,"viewBox","0 0 24 24"),N(n,"fill","none"),N(n,"stroke","#ffffff"),N(n,"stroke-width","2"),N(n,"stroke-linecap","round"),N(n,"stroke-linejoin","round")},m(t,e){P(t,n,e),A(n,r)},d(t){t&&k(n)}}}function qo(t){let n,r;return{c(){n=e("svg"),r=e("path"),N(r,"d","M18 15l-6-6-6 6"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","24"),N(n,"height","24"),N(n,"viewBox","0 0 24 24"),N(n,"fill","none"),N(n,"stroke","#ffffff"),N(n,"stroke-width","2"),N(n,"stroke-linecap","round"),N(n,"stroke-linejoin","round")},m(t,e){P(t,n,e),A(n,r)},d(t){t&&k(n)}}}function Yo(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m,g=t[4].Position+"",b=t[4].Name+"",y=t[8]("tournamentsTable.score")+"",v=t[4].Score+"";return{c(){n=$("div"),r=$("div"),o=$("span"),i=C(g),s=$("span"),a=C(b),l=S(),u=$("div"),c=$("div"),d=$("p"),h=C(y),p=S(),f=$("p"),m=C(v),N(r,"class","TableUser"),N(u,"class","TableUserDetails"),N(n,"class","TableContent TableContentFirstRow")},m(t,e){P(t,n,e),A(n,r),A(r,o),A(o,i),A(r,s),A(s,a),A(n,l),A(n,u),A(u,c),A(c,d),A(d,h),A(c,p),A(c,f),A(f,m)},p(t,e){16&e[0]&&g!==(g=t[4].Position+"")&&O(i,g),16&e[0]&&b!==(b=t[4].Name+"")&&O(a,b),256&e[0]&&y!==(y=t[8]("tournamentsTable.score")+"")&&O(h,y),16&e[0]&&v!==(v=t[4].Score+"")&&O(m,v)},d(t){t&&k(n)}}}function Wo(e){let o,i=e[6],s=[];for(let t=0;t<i.length;t+=1)s[t]=Ko(Po(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n)},p(e,n){if(320&n[0]){let t;for(i=e[6],t=0;t<i.length;t+=1){var r=Po(e,i,t);s[t]?s[t].p(r,n):(s[t]=Ko(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&k(o)}}}function Ko(t){let n,r,o,i,s,a,l,u,c,d,h,p,f,m,g,b=t[24].Position+"",y=t[24].Name+"",v=t[8]("tournamentsTable.score")+"",w=t[24].Score+"";return{c(){n=$("div"),r=$("div"),o=$("span"),i=C(b),s=$("span"),a=C(y),l=S(),u=$("div"),c=$("div"),d=$("p"),h=C(v),p=S(),f=$("p"),m=C(w),g=S(),N(r,"class","TableUser"),N(u,"class","TableUserDetails"),N(n,"class","TableContent")},m(t,e){P(t,n,e),A(n,r),A(r,o),A(o,i),A(r,s),A(s,a),A(n,l),A(n,u),A(u,c),A(c,d),A(d,h),A(c,p),A(c,f),A(f,m),A(n,g)},p(t,e){64&e[0]&&b!==(b=t[24].Position+"")&&O(i,b),64&e[0]&&y!==(y=t[24].Name+"")&&O(a,y),256&e[0]&&v!==(v=t[8]("tournamentsTable.score")+"")&&O(h,v),64&e[0]&&w!==(w=t[24].Score+"")&&O(m,w)},d(t){t&&k(n)}}}function Zo(t){let e,n;function r(t){return 0<t[2].length||t[4]?Co:(null==e&&(e=!(1!=cr(t[9]))),e?$o:ko)}let o=r(t),i=o(t);return{c(){i.c(),n=w(),this.c=y},m(t,e){i.m(t,e),P(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:y,o:y,d(t){i.d(t),t&&k(n)}}}function Jo(t,e,o){let n,r,i;H(t,ur,t=>o(8,i=t));let{sortable:s=!1}=e,{firstrow:a=!1}=e,{lang:l="en"}=e,u=[],c=[],d=null,h=null,p=null,f=!0,m=window.navigator.userAgent;Object.keys(To).forEach(t=>{Gn(t,To[t])});const g=t=>{t.data&&"CasinoTableData"===t.data.type&&(o(2,c=t.data.tableData),o(6,n=c)),t.data&&"CasinoTableColumns"===t.data.type&&o(3,u=t.data.tableColumns),a&&t.data&&"CasinoTableFirstRowData"===t.data.type&&o(4,p=t.data.tableData)},b=t=>{var e=t===d,n="ASC"===h,r=e&&!n;o(13,d=r?null:t),o(14,h=r?null:e&&n?"DESC":"ASC")},y=()=>{o(5,f=!f)};return X(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)})),t.$$set=t=>{"sortable"in t&&o(0,s=t.sortable),"firstrow"in t&&o(1,a=t.firstrow),"lang"in t&&o(12,l=t.lang)},t.$$.update=()=>{24580&t.$$.dirty[0]&&o(6,n=d&&h?(()=>{let t=[];if(c&&(t=[...c]),!c.length)return c;var e=typeof c[0][d.toLowerCase()];return t.sort((t=>{const n=d.toLowerCase();return"string"==t?(t,e)=>t[n].localeCompare(e[n]):"number"==t||"object"==t?(t,e)=>t[n]-e[n]:void 0})(e)),"ASC"===h?t:t.reverse()})():[...c]),24576&t.$$.dirty[0]&&o(7,r=null===d?h:null)},[s,a,c,u,p,f,n,r,i,m,b,y,l,d,h,()=>y(),t=>b(t),()=>y(),()=>y(),t=>b(t)]}function Qo(t,e,n){const r=t.slice();return r[34]=e[n],r}function ti(n){let r,o,i,s,a,l,u,c,d,h,p,f,m,g,b,y,v,w,E=n[10]("tournamentsPage.back")+"",T=n[8]&&ni(n),x=0<n[7].length&&ri(n),_="true"==n[0]&&ii(n);return{c(){r=$("div"),o=$("div"),i=$("div"),s=e("svg"),a=e("path"),l=S(),u=$("p"),c=C(E),d=S(),h=$("div"),p=$("div"),T&&T.c(),f=S(),x&&x.c(),g=S(),b=$("div"),_&&_.c(),N(a,"stroke-linecap","round"),N(a,"stroke-linejoin","round"),N(a,"stroke-width","2"),N(a,"d","M15 19l-7-7 7-7"),N(s,"fill","none"),N(s,"stroke","currentColor"),N(s,"width","24"),N(s,"height","24"),N(s,"viewBox","0 0 24 24"),N(s,"xmlns","http://www.w3.org/2000/svg"),N(i,"class","BackButton"),N(o,"class","TopButtons"),N(p,"class",m=(cr(n[11])?"MobileClass":"")+("true"==n[0]?"TournamentCardDetails":"FullSize")),N(b,"class",y="true"==n[0]?"TournamentTableDetails ":"DisplayNone"),N(h,"class","TournamentContentDetails "+(cr(n[11])?"MobileClass":"")),N(r,"class","TournamentsPage")},m(t,e){P(t,r,e),A(r,o),A(o,i),A(i,s),A(s,a),A(i,l),A(i,u),A(u,c),A(r,d),A(r,h),A(h,p),T&&T.m(p,null),A(p,f),x&&x.m(p,null),A(h,g),A(h,b),_&&_.m(b,null),v||(w=L(i,"click",n[18]),v=!0)},p(t,e){1024&e[0]&&E!==(E=t[10]("tournamentsPage.back")+"")&&O(c,E),t[8]?T?T.p(t,e):(T=ni(t),T.c(),T.m(p,f)):T&&(T.d(1),T=null),0<t[7].length?x?x.p(t,e):(x=ri(t),x.c(),x.m(p,null)):x&&(x.d(1),x=null),1&e[0]&&m!==(m=(cr(t[11])?"MobileClass":"")+("true"==t[0]?"TournamentCardDetails":"FullSize"))&&N(p,"class",m),"true"==t[0]?_?_.p(t,e):(_=ii(t),_.c(),_.m(b,null)):_&&(_.d(1),_=null),1&e[0]&&y!==(y="true"==t[0]?"TournamentTableDetails ":"DisplayNone")&&N(b,"class",y)},d(t){t&&k(r),T&&T.d(),x&&x.d(),_&&_.d(),v=!1,w()}}}function ei(t){let n,r,o=t[10]("tournamentsPage.loading")+"";return{c(){n=$("p"),r=C(o)},m(t,e){P(t,n,e),A(n,r)},p(t,e){1024&e[0]&&o!==(o=t[10]("tournamentsPage.loading")+"")&&O(r,o)},d(t){t&&k(n)}}}function ni(t){let n,r,o;return{c(){n=$("casino-tournaments-thumbnail-controller"),v(n,"session",t[1]),v(n,"userid",t[2]),v(n,"endpoint",t[3]),v(n,"tournamenturl",r=t[8].href),v(n,"showdetails","false"),v(n,"showslider","true"),v(n,"showenrolled","true"),v(n,"fullsize",o=!!t[0]),v(n,"lang",t[4]),v(n,"currency",t[5])},m(t,e){P(t,n,e)},p(t,e){2&e[0]&&v(n,"session",t[1]),4&e[0]&&v(n,"userid",t[2]),8&e[0]&&v(n,"endpoint",t[3]),256&e[0]&&r!==(r=t[8].href)&&v(n,"tournamenturl",r),1&e[0]&&o!==(o=!!t[0])&&v(n,"fullsize",o),16&e[0]&&v(n,"lang",t[4]),32&e[0]&&v(n,"currency",t[5])},d(t){t&&k(n)}}}function ri(e){let o,i=e[7],s=[];for(let t=0;t<i.length;t+=1)s[t]=oi(Qo(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=w()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);P(e,o,n)},p(e,n){if(128&n[0]){let t;for(i=e[7],t=0;t<i.length;t+=1){var r=Qo(e,i,t);s[t]?s[t].p(r,n):(s[t]=oi(r),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){E(s,t),t&&k(o)}}}function oi(t){let n,r,o;return{c(){n=$("casino-tournaments-details"),v(n,"title",r=t[34].title),v(n,"text",o=t[34].description)},m(t,e){P(t,n,e)},p(t,e){128&e[0]&&r!==(r=t[34].title)&&v(n,"title",r),128&e[0]&&o!==(o=t[34].description)&&v(n,"text",o)},d(t){t&&k(n)}}}function ii(t){let n,r=1==t[9]&&si(t);return{c(){r&&r.c(),n=w()},m(t,e){r&&r.m(t,e),P(t,n,e)},p(t,e){1==t[9]?r?r.p(t,e):(r=si(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(t){r&&r.d(t),t&&k(n)}}}function si(t){let n;return{c(){n=$("casino-tournaments-table"),v(n,"firstrow","true"),v(n,"sortable","false"),v(n,"lang",t[4])},m(t,e){P(t,n,e)},p(t,e){16&e[0]&&v(n,"lang",t[4])},d(t){t&&k(n)}}}function ai(t){let n;function r(t){return t[6]?ei:ti}let o=r(t),i=o(t);return{c(){i.c(),n=w(),this.c=y},m(t,e){i.m(t,e),P(t,n,e)},p(t,e){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:y,o:y,d(t){i.d(t),t&&k(n)}}}function li(t,e,o){let n;H(t,ur,t=>o(10,n=t));let i,s,{session:r=""}=e,{userid:a=""}=e,{tourid:l=""}=e,{endpoint:u=""}=e,{showleaderboard:c=""}=e,{cmsendpoint:d=""}=e,{lang:h=""}=e,{navigationbackbutton:p="Default"}=e,{currency:f="EUR"}=e,{tablelimit:m="30"}=e,{namemask:g=""}=e,b="",y=!0,v=[],w=window.navigator.userAgent,E=!1,T={},x=!1;var _,A;[{withLocale:_,translations:A}]=[{withLocale:"en",translations:{}}],Qn.subscribe(t=>{null==t&&(Fn.set(A),Qn.set(_))}),Object.keys(hr).forEach(t=>{Gn(t,hr[t])});const P=["Position","Name","Score"],k=t=>{t.data&&"UserSessionID"==t.data.type&&t.data.session,t.data&&"PlayerID"==t.data.type&&(b=t.data.playerID)},$=()=>{"Event"==p?window.postMessage({type:"RedirectBack"},window.location.href):"Default"==p&&window.history.back()},C=()=>{var t=h;Qn.set(t),((t,e)=>{let n=new URL(t+`/tournaments/${e}`),r=new Headers;n.searchParams.append("expand","games"),n.searchParams.append("language",h),r.append("platform",dr(w));e={method:"GET",headers:r};fetch(n.href,e).then(t=>t.json()).then(t=>{o(8,i=t.item),"Unstarted"==t.item.state&&o(0,c=!1)})})(u,l),((t,e)=>{let n=new URL(t+`/tournaments/${e}/leaderboard`),r=new Headers;n.searchParams.append("language",h),g&&n.searchParams.append("filter",`shortNameMask=${g}`),r.append("platform",dr(w)),fetch(n,{method:"GET",headers:r}).then(t=>t.json()).then(t=>{s=(t=>{let e=[];return t&&0<t.length&&t.forEach(t=>{0==t.unqualified&&(t.userID==b?(x=!0,T={Position:t.rank,Name:t.shortName,Score:t.score}):e.push({Position:t.rank,Name:t.shortName,Score:t.score}))}),e})(t.items),o(9,E=!0),window.postMessage({type:"CasinoTableData",tableData:s.slice(0,m)},window.location.href),window.postMessage({type:"CasinoTableColumns",tableColumns:P},window.location.href),x&&window.postMessage({type:"CasinoTableFirstRowData",tableData:T},window.location.href)})})(u,l)};return X(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k)})),t.$$set=t=>{"session"in t&&o(1,r=t.session),"userid"in t&&o(2,a=t.userid),"tourid"in t&&o(13,l=t.tourid),"endpoint"in t&&o(3,u=t.endpoint),"showleaderboard"in t&&o(0,c=t.showleaderboard),"cmsendpoint"in t&&o(14,d=t.cmsendpoint),"lang"in t&&o(4,h=t.lang),"navigationbackbutton"in t&&o(15,p=t.navigationbackbutton),"currency"in t&&o(5,f=t.currency),"tablelimit"in t&&o(16,m=t.tablelimit),"namemask"in t&&o(17,g=t.namemask)},t.$$.update=()=>{6&t.$$.dirty[0]&&r&&a&&(0<r.length&&"false"!=r&&(b=a),o(6,y=!1)),8218&t.$$.dirty[0]&&l&&u&&r&&h&&C(),24576&t.$$.dirty[0]&&l&&d&&fetch(`${d}?tournamentId=${l}`).then(t=>t.json()).then(t=>{t&&t.details&&o(7,v=t.details)})},[c,r,a,u,h,f,y,v,i,E,n,w,$,l,d,p,m,g,()=>$()]}customElements.get("casino-tournaments-table")||customElements.define("casino-tournaments-table",class extends u{constructor(t){super(),this.shadowRoot.innerHTML="<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:\"Helvetica Neue\", \"Helvetica\", sans-serif}.LeaderboardContainer{background:#232633;display:flex;width:100%;justify-content:space-between}.Leaderboard{width:calc(100% - 50px);height:52px;display:flex;align-items:center;padding-left:20px}.TableContent{width:calc(100% - 46px);font-size:14px;margin-bottom:2px;border-bottom:solid 1px #FFFFFF}.TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid #1B9800}.TableUser{background:#121522;height:52px;display:flex;align-items:center;gap:20px;padding-left:20px;font-weight:bold}.TableUserDetails{background:#232633;display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.TournamentsTable{width:100%;min-width:600px;display:flex;justify-content:space-between;text-align:center}.LeftTable{width:100%}.RightButton{cursor:pointer;background:#00020f;width:50px;height:70px;border:2px solid #232632}.RightButton.MobileClass{height:50px}.FirstRow{outline:2px solid #1B9800}table{width:100%;min-width:600px;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}th{padding:1.5rem 1.25rem;height:70px;background-color:#232632;border-bottom:1px solid #00020f;top:0;color:#fff}td{margin:0;padding:1.25rem;vertical-align:top;text-align:inherit;color:#fff;font-size:0.9rem;max-width:20%;background-color:#121521;border-bottom:1px solid #00020f}td:first-child{left:0;top:auto;width:10rem}svg{width:1.25rem;height:1.25rem;fill:rgba(0, 0, 0, 0.5);flex-shrink:0}button{font-weight:bold;font-size:inherit;font-family:inherit;text-transform:capitalize;background-color:transparent;border:none;cursor:pointer;display:block;padding:0 1rem 0 0;background-size:0.75rem;background-repeat:no-repeat;background-position:center right;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M16.29 14.29L12 18.59l-4.29-4.3a1 1 0 00-1.42 1.42l5 5a1 1 0 001.42 0l5-5a1 1 0 00-1.42-1.42zM7.71 9.71L12 5.41l4.29 4.3a1 1 0 001.42 0 1 1 0 000-1.42l-5-5a1 1 0 00-1.42 0l-5 5a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}.CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#00020f;color:#fff}[data-sort=\"ASC\"],[data-sort=\"DESC\"]{background-size:1rem;background-position:right -0.15rem center}[data-sort=\"ASC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M11.29 11.46a1 1 0 001.42 0l3-3A1 1 0 1014.29 7L12 9.34 9.71 7a1 1 0 10-1.42 1.46zm3 1.08L12 14.84l-2.29-2.3A1 1 0 008.29 14l3 3a1 1 0 001.42 0l3-3a1 1 0 00-1.42-1.42z'/%3E%3C/svg%3E\")}[data-sort=\"DESC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M12.71 12.54a1 1 0 00-1.42 0l-3 3A1 1 0 009.71 17L12 14.66 14.29 17a1 1 0 001.42 0 1 1 0 000-1.42zm-3-1.08L12 9.16l2.29 2.3a1 1 0 001.42 0 1 1 0 000-1.42l-3-3a1 1 0 00-1.42 0l-3 3a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}</style>",l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Jo,Zo,n,{sortable:0,firstrow:1,lang:12},[-1,-1]),t&&(t.target&&P(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["sortable","firstrow","lang"]}get sortable(){return this.$$.ctx[0]}set sortable(t){this.$set({sortable:t}),U()}get firstrow(){return this.$$.ctx[1]}set firstrow(t){this.$set({firstrow:t}),U()}get lang(){return this.$$.ctx[12]}set lang(t){this.$set({lang:t}),U()}});class ui extends u{constructor(t){super(),this.shadowRoot.innerHTML='<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.TournamentsPage{background:#00020f;width:100%;height:100%;color:#fff}.FullSize{width:100%}.DisplayNone{display:none}.TopButtons{display:inline-flex;flex-direction:column;padding-bottom:20px;font-size:10px}.BackButton{display:inline-flex;align-items:center;cursor:pointer}.BackButton p{font-size:24px}.TournamentContentDetails{display:flex;gap:20px}.TournamentContentDetails.MobileClass{flex-direction:column}.TournamentCardDetails{width:420px}.TournamentTableDetails{width:100%}</style>',l(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},li,ai,n,{session:1,userid:2,tourid:13,endpoint:3,showleaderboard:0,cmsendpoint:14,lang:4,navigationbackbutton:15,currency:5,tablelimit:16,namemask:17},[-1,-1]),t&&(t.target&&P(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["session","userid","tourid","endpoint","showleaderboard","cmsendpoint","lang","navigationbackbutton","currency","tablelimit","namemask"]}get session(){return this.$$.ctx[1]}set session(t){this.$set({session:t}),U()}get userid(){return this.$$.ctx[2]}set userid(t){this.$set({userid:t}),U()}get tourid(){return this.$$.ctx[13]}set tourid(t){this.$set({tourid:t}),U()}get endpoint(){return this.$$.ctx[3]}set endpoint(t){this.$set({endpoint:t}),U()}get showleaderboard(){return this.$$.ctx[0]}set showleaderboard(t){this.$set({showleaderboard:t}),U()}get cmsendpoint(){return this.$$.ctx[14]}set cmsendpoint(t){this.$set({cmsendpoint:t}),U()}get lang(){return this.$$.ctx[4]}set lang(t){this.$set({lang:t}),U()}get navigationbackbutton(){return this.$$.ctx[15]}set navigationbackbutton(t){this.$set({navigationbackbutton:t}),U()}get currency(){return this.$$.ctx[5]}set currency(t){this.$set({currency:t}),U()}get tablelimit(){return this.$$.ctx[16]}set tablelimit(t){this.$set({tablelimit:t}),U()}get namemask(){return this.$$.ctx[17]}set namemask(t){this.$set({namemask:t}),U()}}return customElements.get("casino-tournaments-page-controller")||customElements.define("casino-tournaments-page-controller",ui),ui});
|
|
2
|
+
//# sourceMappingURL=casino-lobby.js.map
|