@everymatrix/casino-tournaments-controller 1.0.16 → 1.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function v(){}function x(e){return e()}function E(){return Object.create(null)}function $(e){e.forEach(x)}function M(e){return"function"==typeof e}function t(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let k,C;function L(e,t){return(k=k||document.createElement("a")).href=t,e===k.href}function I(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function se(e,t,n){e.$$.on_destroy.push(I(t,n))}function U(e){return e&&M(e.destroy)?e.destroy:v}function A(e,t){e.appendChild(t)}function D(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode.removeChild(e)}function z(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function O(e){return document.createElement(e)}function d(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function F(e){return document.createTextNode(e)}function B(){return F(" ")}function Y(){return F("")}function N(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function H(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function b(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:H(e,t,n)}function R(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function f(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function j(e,t,n){e.classList[n?"add":"remove"](t)}function G(e){const t={};for(const n of e)t[n.name]=n.value;return t}function W(e){C=e}function ae(e){!function(){if(C)return C;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const V=[],ie=[],J=[],Z=[],X=Promise.resolve();let K=!1;function q(e){J.push(e)}const Q=new Set;let ee=0;function g(){const e=C;do{for(;ee<V.length;){const e=V[ee];ee++,W(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),$(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(q))}for(W(null),V.length=0,ee=0;ie.length;)ie.pop()();for(let e=0;e<J.length;e+=1){const r=J[e];Q.has(r)||(Q.add(r),r())}}while(J.length=0,V.length);for(;Z.length;)Z.pop()();K=!1,Q.clear(),W(e)}const te=new Set;function ne(r,e,t,n,i,o,s,a=[-1]){var l=C;W(r);const u=r.$$={fragment:null,ctx:null,props:o,update:v,not_equal:i,bound:E(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:E(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=n)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](n),c&&(n=e,-1===(e=r).$$.dirty[0]&&(V.push(e),K||(K=!0,X.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],u.update(),c=!0,$(u.before_update),u.fragment=!!n&&n(u.ctx),e.target){if(e.hydrate){o=e.target;const v=Array.from(o.childNodes);u.fragment&&u.fragment.l(v),v.forEach(P)}else u.fragment&&u.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(te.delete(a),a.i(void 0));{var h=r;s=e.target;t=e.anchor;n=e.customElement;const{fragment:d,on_mount:m,on_destroy:f,after_update:p}=h.$$;d&&d.m(s,t),n||q(()=>{var e=m.map(x).filter(M);f?f.push(...e):$(e),h.$$.on_mount=[]}),p.forEach(q)}g()}W(l)}let e;"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(x).filter(M);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){$(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&($(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=v}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var re,le,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,ue="URLSearchParams"in a,ce="Symbol"in a&&"iterator"in Symbol,he="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),de="FormData"in a,me="ArrayBuffer"in a;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function pe(e){return e="string"!=typeof e?String(e):e}function ge(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ce&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ye(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function be(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function ve(e){var t=new FileReader,n=be(t);return t.readAsArrayBuffer(e),n}function we(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _e(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:he&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:de&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ue&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&he&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=we(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||le(e))?this._bodyArrayBuffer=we(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ue&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},he&&(this.blob=function(){var e=ye(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ye(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(ve)}),this.text=function(){var e,t,n=ye(this);if(n)return n;if(this._bodyBlob)return n=this._bodyBlob,t=be(e=new FileReader),e.readAsText(n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},de&&(this.formData=function(){return this.text().then(xe)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(re=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],le=ArrayBuffer.isView||function(e){return e&&-1<re.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=fe(e),t=pe(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[fe(e)]},l.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},l.prototype.set=function(e,t){this.map[fe(e)]=pe(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),ge(n)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ge(t)},l.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),ge(n)},ce&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Te=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Se(e,t){if(!(this instanceof Se))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof Se){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<Te.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function xe(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}Se.prototype.clone=function(){return new Se(this,{body:this._bodyInit})},_e.call(Se.prototype),_e.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:0,statusText:""});return e.type="error",e};var Ee=[301,302,303,307,308],Me=(u.redirect=function(e,t){if(-1===Ee.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},a.DOMException);try{new Me}catch(v){(Me=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Me.prototype.constructor=Me}function ke(r,s){return new Promise(function(i,e){var t=new Se(r,s);if(t.signal&&t.signal.aborted)return e(new Me("Aborted","AbortError"));var o=new XMLHttpRequest;function n(){o.abort()}o.onload=function(){var e,n,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",n=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)},r=(t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new u(r,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new Me("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(he?o.responseType="blob":me&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,pe(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",n),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",n)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}ke.polyfill=!0,a.fetch||(a.fetch=ke,a.Headers=l,a.Request=Se,a.Response=u);var Ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function $e(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return Pn(null==t&&n.path)}},n.exports),n.exports}function Pn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}self.fetch.bind(self);var Ae=function(e,t){return(Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function De(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ae(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Pe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Fe(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Be(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Ne=Be(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function He(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}n.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Pe(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(h(o))try{o()}catch(e){i=e instanceof Ne?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Pe(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{Ue(c)}catch(e){i=null!=i?i:[],e instanceof Ne?i=Fe(Fe([],Oe(i)),Oe(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new Ne(i)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ue(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&He(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&He(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=((i=new n).closed=!0,i);var Re=n,Le=Re.EMPTY;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ie(e){return e instanceof Re||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function Ue(e){h(e)?e():e.unsubscribe()}var ze=void 0,Ye=!1,je=!1,Ge={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Ge.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Fe([e,t],Oe(n))):setTimeout.apply(void 0,Fe([e,t],Oe(n)))},clearTimeout:function(e){var t=Ge.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function We(){}var Ve=null;function Je(e){if(Ye){var t=!Ve;if(t&&(Ve={errorThrown:!1,error:null}),e(),t){var t=Ve,n=t.errorThrown,t=t.error;if(Ve=null,n)throw t}}else e()}De(r,Ze=Re),r.create=function(e,t,n){return new tt(e,t,n)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ze.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Ze,Xe=r,Ke=Function.prototype.bind;function r(e){var t=Ze.call(this)||this;return t.isStopped=!1,e?Ie(t.destination=e)&&e.add(t):t.destination=ot,t}function qe(e,t){return Ke.call(e,t)}rt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){it(e)}},rt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){it(e)}else it(e)},rt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){it(e)}};var Qe,et=rt,tt=(De(nt,Qe=Xe),nt);function nt(e,t,n){var r=Qe.call(this)||this,n=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&je?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&qe(e.next,t),error:e.error&&qe(e.error,t),complete:e.complete&&qe(e.complete,t)}):e;return r.destination=new et(n),r}function rt(e){this.partialObserver=e}function it(e){var t=e;Ge.setTimeout(function(){throw t})}var ot={closed:!0,next:We,error:function(e){throw e},complete:We},i="function"==typeof Symbol&&Symbol.observable||"@@observable";function st(e){return e}o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Xe||r&&h(r.next)&&h(r.error)&&h(r.complete)&&Ie(r)?e:new tt(e,t,n);return Je(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},o.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},o.prototype.forEach=function(r,e){var i=this;return new(e=lt(e))(function(e,t){var n=new tt({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},o.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},o.prototype[i]=function(){return this},o.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?st:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},o.prototype.toPromise=function(e){var r=this;return new(e=lt(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)};var at=o;function o(e){e&&(this._subscribe=e)}function lt(e){return null!=(e=null!=e?e:ze)?e:Promise}var ut,ct,ht,dt=Be(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),i=(De(s,ht=at),s.prototype.lift=function(e){var t=new mt(this,this);return t.operator=e,t},s.prototype._throwIfClosed=function(){if(this.closed)throw new dt},s.prototype.next=function(i){var o=this;Je(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=Pe(o.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(i)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},s.prototype.error=function(t){var n=this;Je(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},s.prototype.complete=function(){var t=this;Je(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},s.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(s.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),s.prototype._trySubscribe=function(e){return this._throwIfClosed(),ht.prototype._trySubscribe.call(this,e)},s.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},s.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?Le:(this.currentObservers=null,i.push(e),new Re(function(){t.currentObservers=null,He(i,e)}))},s.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},s.prototype.asObservable=function(){var e=new at;return e.source=this,e},s.create=function(e,t){return new mt(e,t)},s),mt=(De(yt,ct=i),yt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},yt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},yt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},yt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Le},yt),ft={now:function(){return(ft.delegate||Date).now()},delegate:void 0},pt=(De(gt,ut=i),gt.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;n||(r.push(e),i||r.push(o.now()+t)),this._trimBuffer(),ut.prototype.next.call(this,e)},gt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},gt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var o=t.now(),s=0,a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}},gt);function gt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=ft);var r=ut.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function yt(e,t){var n=ct.call(this)||this;return n.destination=e,n.source=t,n}function s(){var e=ht.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let bt=[],vt={};const wt=[];function _t(r,i=v){let o;const s=new Set;function a(e){if(t(r,e)&&(r=e,o)){const e=!wt.length;for(const e of s)e[1](),wt.push(e,r);if(e){for(let e=0;e<wt.length;e+=2)wt[e][0](wt[e+1]);wt.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=v){const n=[e,t];return s.add(n),1===s.size&&(o=i(a)||v),e(r),()=>{s.delete(n),0===s.size&&(o(),o=null)}}}}function Tt(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:_t(t,t=>{let n=!1;const r=[];let i=0,o=v;const s=()=>{var e;i||(o(),e=a(l?r[0]:r,t),c?t(e):o=M(e)?e:v)},e=u.map((e,t)=>I(e,e=>{r[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}));return n=!0,s(),function(){$(e),o()}}).subscribe}}function St(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===xt));var t}var xt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Et(e,t){return!1!==t.clone&&t.isMergeableObject(e)?At(Array.isArray(e)?[]:{},e,t):e}function Mt(e,t,n){return e.concat(t).map(function(e){return Et(e,n)})}function kt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Ct(e,t){try{return t in e}catch(e){return!1}}function $t(r,i,o){var s={};return o.isMergeableObject(r)&&kt(r).forEach(function(e){s[e]=Et(r[e],o)}),kt(i).forEach(function(t){var e,n;(!Ct(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(Ct(r,t)&&o.isMergeableObject(i[t])?s[t]=function(e){if(!e.customMerge)return At;e=e.customMerge(t);return"function"==typeof e?e:At}(o)(r[t],i[t],o):s[t]=Et(i[t],o))}),s}function At(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Mt,n.isMergeableObject=n.isMergeableObject||St,n.cloneUnlessOtherwiseSpecified=Et;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):$t(e,t,n):Et(t,n)}At.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return At(e,t,n)},{});throw new Error("first argument should be an array")};var Dt=At,Pt=function(e,t){return(Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Ot(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Pt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p,y,Ft,w=function(){return(w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Bt(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Nt(e){return e.type===y.literal}function Ht(e){return e.type===y.number}function Rt(e){return e.type===y.date}function Lt(e){return e.type===y.time}function It(e){return e.type===y.select}function Ut(e){return e.type===y.plural}function zt(e){return e.type===y.tag}function Yt(e){return e&&"object"==typeof e&&e.type===Ft.number}function jt(e){return e&&"object"==typeof e&&e.type===Ft.dateTime}(i=p=p||{})[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=y=y||{})[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(i=Ft=Ft||{})[i.number=0]="number",i[i.dateTime=1]="dateTime";var i=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Gt=/(?:[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 Wt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Vt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Jt=/^(@+)?(\+|#+)?[rs]?$/g,Zt=/(\*)(0+)|(#+)(0+)|(0+)/g,Xt=/^(0+)$/;function Kt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Jt,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function qt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Qt(e){return qt(e)||{}}function en(e){for(var s={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=w(w(w({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return w(w({},e),Qt(t))},{}));continue;case"engineering":s=w(w(w({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return w(w({},e),Qt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Zt,function(e,t,n,r,i,o){if(t)s.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Xt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Vt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Vt,function(e,t,n,r,i,o){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=w(w({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=w(w({},s),Kt(o)))}else Jt.test(i.stem)?s=w(w({},s),Kt(i.stem)):((o=qt(i.stem))&&(s=w(w({},s),o)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Xt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=w(w({},s),r)))}return s}var tn={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var nn=new RegExp("^".concat(i.source,"*")),rn=new RegExp("".concat(i.source,"*$"));function _(e,t){return{start:e,end:t}}var i=!!String.prototype.startsWith,on=!!String.fromCodePoint,sn=!!Object.fromEntries,an=!!String.prototype.codePointAt,ln=!!String.prototype.trimStart,un=!!String.prototype.trimEnd,cn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},hn=!0;try{hn="a"===(null==(On=wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:On[0])}catch(v){hn=!1}var dn,mn,fn=i?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},pn=on?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;o<i;){if(1114111<(n=e[o++]))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},gn=sn?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],i=i[1];t[o]=i}return t},yn=an?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},bn=ln?function(e){return e.trimStart()}:function(e){return e.replace(nn,"")},vn=un?function(e){return e.trimEnd()}:function(e){return e.replace(rn,"")};function wn(e,t){return new RegExp(e,t)}mn=hn?(dn=wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return dn.lastIndex=t,null!=(t=dn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=yn(e,t);if(void 0===i||Sn(i)||(33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(i),t+=65536<=i?2:1}return pn.apply(void 0,r)};c.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},c.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(p.UNMATCHED_CLOSING_TAG,_(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Tn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{o=this.clonePosition();this.bump(),r.push({type:y.pound,location:_(o,this.clonePosition())})}}}return{val:r,err:null}},c.prototype.parseTag=function(e,t){var n=this.clonePosition(),r=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(r,"/>"),location:_(n,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Tn(this.char()))return this.error(p.INVALID_TAG,_(e,this.clonePosition()));var i=this.clonePosition();return r!==this.parseTagName()?this.error(p.UNMATCHED_CLOSING_TAG,_(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:r,children:t,location:_(n,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,_(e,this.clonePosition())))}return this.error(p.UNCLOSED_TAG,_(n,this.clonePosition()))}return this.error(p.INVALID_TAG,_(n,this.clonePosition()))},c.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},c.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=_(n,this.clonePosition());return{val:{type:y.literal,value:r,location:n},err:null}},c.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Tn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},c.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return pn.apply(void 0,t)},c.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),pn(n))},c.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,_(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(p.EMPTY_ARGUMENT,_(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(p.MALFORMED_ARGUMENT,_(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,_(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:_(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,_(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(p.MALFORMED_ARGUMENT,_(n,this.clonePosition()))}},c.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=mn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:_(e,this.clonePosition())}},c.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,_(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(m=vn(f.val)).length)return this.error(p.EXPECT_ARGUMENT_STYLE,_(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:_(u,this.clonePosition())}}if((u=this.tryParseArgumentClose(r)).err)return u;var c=_(r,this.clonePosition());if(l&&fn(null==l?void 0:l.style,"::",0)){var h=bn(l.style.slice(2));if("number"===s)return(f=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?f:{val:{type:y.number,value:n,location:c,style:f.val},err:null};if(0===h.length)return this.error(p.EXPECT_DATE_TIME_SKELETON,c);var d=h,m=(this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(tn[t||""]||tn[n||""]||tn["".concat(n,"-001")]||tn["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<s--;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale)),{type:Ft.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},d.replace(Gt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}});return{val:{type:"date"===s?y.date:y.time,value:n,location:c,style:m},err:null}}return{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:n,location:c,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,_(d,w({},d)));this.bumpSpace();var f,m=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(f=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),m=this.parseIdentifierIfPossible(),c=f.val}l=this.tryParsePluralOrSelectOptions(e,s,t,m);if(l.err)return l;if((u=this.tryParseArgumentClose(r)).err)return u;h=_(r,this.clonePosition());return"select"===s?{val:{type:y.select,value:n,options:gn(l.val),location:h},err:null}:{val:{type:y.plural,value:n,options:gn(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(p.INVALID_ARGUMENT_TYPE,_(o,a))}},c.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,_(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},c.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},c.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Wt).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ft.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?en(n):{}},err:null}},c.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,o=[],s=new Set,a=r.value,l=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=_(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,n);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;o.push([a,{value:u.val,location:_(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,_(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(p.MISSING_OTHER_CLAUSE,_(this.clonePosition(),this.clonePosition())):{val:o,err:null}},c.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}r=_(r,this.clonePosition());return i?cn(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},c.prototype.offset=function(){return this.position.offset},c.prototype.isEOF=function(){return this.offset()===this.message.length},c.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},c.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=yn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},c.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},c.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},c.prototype.bumpIf=function(e){if(fn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},c.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},c.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},c.prototype.bumpSpace=function(){for(;!this.isEOF()&&Sn(this.char());)this.bump()},c.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var _n=c;function c(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Tn(e){return 97<=e&&e<=122||65<=e&&e<=90}function Sn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function xn(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new _n(e,t).parse();if(e.err)throw(n=SyntaxError(p[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,It(e)||Ut(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ht(e)&&Yt(e.style)||(Rt(e)||Lt(e))&&jt(e.style)?delete e.style.location:zt(e)&&n(e.children)})}(e.val),e.val}function En(e,t){var n=t&&t.cache?t.cache:Fn,r=t&&t.serializer?t.serializer:$n;return(t&&t.strategy?t.strategy:function(e,t){return Cn(e,this,1===e.length?Mn:kn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Mn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),i=t.get(n);return void 0===i&&(i=e.call(this,r),t.set(n,i)),i}function kn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),i=t.get(n);return void 0===i&&(i=e.apply(this,r),t.set(n,i)),i}function Cn(e,t,n,r,i){return n.bind(t,e,r,i)}var $n=function(){return JSON.stringify(arguments)};function An(){this.cache=Object.create(null)}An.prototype.get=function(e){return this.cache[e]},An.prototype.set=function(e,t){this.cache[e]=t};var Dn,On,Fn={create:function(){return new An}},Bn={variadic:function(e,t){return Cn(e,this,kn,t.cache.create(),t.serializer)},monadic:function(e,t){return Cn(e,this,Mn,t.cache.create(),t.serializer)}};(On=Dn=Dn||{}).MISSING_VALUE="MISSING_VALUE",On.INVALID_VALUE="INVALID_VALUE",On.MISSING_INTL_API="MISSING_INTL_API";Ot(Vn,Ln=Error),Vn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,Nn,Hn,Rn,Ln,In=Vn,Un=(Ot(Wn,Rn=In),Wn),zn=(Ot(Gn,Hn=In),Gn),Yn=(Ot(jn,Nn=In),jn);function jn(e,t){return Nn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Dn.MISSING_VALUE,t)||this}function Gn(e,t,n){return Hn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Dn.INVALID_VALUE,n)||this}function Wn(e,t,n,r){return Rn.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Dn.INVALID_VALUE,r)||this}function Vn(e,t,n){e=Ln.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Jn(e,t,n,r,i,o,s){if(1===e.length&&Nt(e[0]))return[{type:T.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Nt(c))a.push({type:T.literal,value:c.value});else if(c.type===y.pound)"number"==typeof o&&a.push({type:T.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;if(!(i&&h in i))throw new Yn(h,s);h=i[h];if(c.type===y.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?T.literal:T.object,value:h});else if(Rt(c)){var d="string"==typeof c.style?r.date[c.style]:jt(c.style)?c.style.parsedOptions:void 0;a.push({type:T.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(Lt(c))d="string"==typeof c.style?r.time[c.style]:jt(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:T.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(Ht(c))(d="string"==typeof c.style?r.number[c.style]:Yt(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:T.literal,value:n.getNumberFormat(t,d).format(h)});else{if(zt(c)){var m=c.children,f=c.value,p=i[f];if("function"!=typeof p)throw new zn(f,"function",s);f=p(Jn(m,t,n,r,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(It(c)){if(!(g=c.options[h]||c.options.other))throw new Un(c.value,h,Object.keys(c.options),s);a.push.apply(a,Jn(g.value,t,n,r,i))}else if(Ut(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new In('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Dn.MISSING_INTL_API,s);var p=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[p]||c.options.other}if(!g)throw new Un(c.value,h,Object.keys(c.options),s);a.push.apply(a,Jn(g.value,t,n,r,i,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===T.literal&&t.type===T.literal?n.value+=t.value:e.push(t),e},[])}function Zn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(i=T=T||{})[i.literal=0]="literal",i[i.object=1]="object",Object.defineProperty(m,"defaultLocale",{get:function(){return m.memoizedDefaultLocale||(m.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),m.memoizedDefaultLocale},enumerable:!1,configurable:!0}),m.memoizedDefaultLocale=null,m.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},m.__parse=xn,m.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};var Xn=m;function m(e,t,n,r){var i,o,s=this;if(void 0===t&&(t=m.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Jn(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=m.resolveLocale(t),"string"==typeof e){if(this.message=e,!m.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=m.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=m.formats,(o=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=o[t])?w(w(w({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=w(w({},n[t]),r[t]||{}),e},{})):n),e},w({},i)):i),this.formatters=r&&r.formatters||{getNumberFormat:En(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Bt([void 0],t,!1)))},{cache:Zn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Bn.variadic}),getDateTimeFormat:En(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Bt([void 0],t,!1)))},{cache:Zn(t.dateTime),strategy:Bn.variadic}),getPluralRules:En(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Bt([void 0],t,!1)))},{cache:Zn(t.pluralRules),strategy:Bn.variadic})}}const Kn={},qn=(e,t,n)=>n&&(t in Kn||(Kn[t]={}),e in Kn[t]||(Kn[t][e]=n),n),Qn=(t,n)=>{if(null!=n){if(n in Kn&&t in Kn[n])return Kn[n][t];var r=pr(n);for(let e=0;e<r.length;e++){var i=function(e,n){if(!nr(e))return null;e=function(e){return er[e]||null}(e);{var r=n;if(null==r)return;if(r in e)return e[r];const i=r.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const r=i.slice(e,i.length).join(".");if(r in t){t=t[r];break}}t=t[i[e]]}else t=void 0;return t}}(r[e],t);if(i)return qn(t,n,i)}}};let er;const tr=_t({});function nr(e){return e in er}function rr(t,...n){delete Kn[t],tr.update(e=>(e[t]=Dt.all([e[t]||{},...n]),e))}Tt([tr],([e])=>Object.keys(e)),tr.subscribe(e=>er=e);const ir={};function or(e){return ir[e]}function sr(e){return null!=e&&pr(e).some(e=>{return null==(e=or(e))?void 0:e.size})}const ar={};function lr(e){if(!sr(e))return e in ar?ar[e]:Promise.resolve();const t=pr(e).map(e=>{var t=or(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return ar[e]=Promise.all(t.map(([e,t])=>{{var r=e;e=t;const n=Promise.all(e.map(e=>{var t=r,n=e;return ir[t].delete(n),0===ir[t].size&&delete ir[t],e().then(e=>e.default||e)}));return n.then(e=>rr(r,...e))}})).then(()=>{if(sr(e))return lr(e);delete ar[e]}),ar[e]}function ur(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}const cr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const hr=_t(!1);let dr;const mr=_t(null);function fr(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function pr(e,t=cr.fallbackLocale){e=fr(e);return t?[...new Set([...e,...fr(t)])]:e}function gr(){return null!=dr?dr:void 0}mr.subscribe(e=>{dr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const oe=Object.assign(Object.assign({},mr),{set:t=>{if(t&&function(e){if(null!=e){var t=pr(e);for(let e=0;e<t.length;e++){var n=t[e];if(nr(n))return n}}}(t)&&sr(t)){var n=cr["loadingDelay"];let e;return"undefined"!=typeof window&&null!=gr()&&n?e=window.setTimeout(()=>hr.set(!0),n):hr.set(!0),lr(t).then(()=>{mr.set(t)}).finally(()=>{clearTimeout(e),hr.set(!1)})}return mr.set(t)}}),yr=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},br=(e,t)=>{var n=cr["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},vr=yr(e=>{var{locale:t,format:n}=e,e=ur(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=br("number",n)),new Intl.NumberFormat(t,e)}),wr=yr(e=>{var{locale:t,format:n}=e,e=ur(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=br("date",n):0===Object.keys(e).length&&(e=br("date","short")),new Intl.DateTimeFormat(t,e)}),_r=yr(e=>{var{locale:t,format:n}=e,e=ur(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=br("time",n):0===Object.keys(e).length&&(e=br("time","short")),new Intl.DateTimeFormat(t,e)}),Tr=yr((e,t=gr())=>new Xn(e,t,cr.formats,{ignoreTag:cr.ignoreTag})),Sr=Tt([oe,tr],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=gr(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Qn(e,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=cr).handleMissingMessage)?void 0:n.call(r,{locale:s,id:e,defaultValue:a}))?n:a)?r:e;if(!o)return l;let u=l;try{u=Tr(l,s).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),S=(Tt([oe],()=>(e,t)=>((e={})=>{var{locale:t=gr()}=e,e=ur(e,["locale"]);return _r(Object.assign({locale:t},e))})(t).format(e)),Tt([oe],()=>(e,t)=>((e={})=>{var{locale:t=gr()}=e,e=ur(e,["locale"]);return wr(Object.assign({locale:t},e))})(t).format(e)),Tt([oe],()=>(e,t)=>((e={})=>{var{locale:t=gr()}=e,e=ur(e,["locale"]);return vr(Object.assign({locale:t},e))})(t).format(e)),Tt([oe,tr],()=>(e,t=gr())=>Qn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==bt.indexOf(e)&&(t=new pt(t),vt[e]=t,bt.push(e)),vt[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),xr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Er(e,t){rr(e,t)}function Mr(e){oe.set(e)}const kr={en:{tournamentsController:{500:"500 - Internal server error",showMore:"Show more",Scheduled:"Scheduled",Ongoing:"Ongoing",Finished:"Finished",loading:"Loading, please wait ...",noTournaments:"No tournaments found"}},zh:{tournamentsController:{500:"500內部服務器錯誤",showMore:"顯示更多",Scheduled:"預定的",Ongoing:"進行中",Finished:"完成的",loading:"加載請稍候 ...",noTournaments:"沒有找到比賽"}},fr:{tournamentsController:{500:"500 - erreur de serveur interne",showMore:"Afficher plus",Scheduled:"Programmé",Ongoing:"En cours",Finished:"Fini",loading:"Chargement , veuillez patienter ...",noTournaments:"Aucun tournoi trouvé"}},ro:{tournamentsController:{500:"500 - Internal server error",showMore:"Mai mult",Scheduled:"Programate",Ongoing:"În desfășurare",Finished:"Finalizat",loading:"Se încarcă, asteptati ...",noTournaments:"Niciun turneu gasit"}},tr:{tournamentsController:{500:"500 - Dahili sunucu hatası",showMore:"Daha fazla",Scheduled:"Planlanmış",Ongoing:"Devam Eden",Finished:"Sona Ermiş",loading:"Yükelniyor, lütfen bekleyin ...",noTournaments:"Herhangi bir turnuva bulunamadı."}},el:{tournamentsController:{500:"500 - Σφάλμα Διακομιστή",showMore:"Περισσότερα",Scheduled:"Προγραμματισμένα",Ongoing:"Τρέχοντα",Finished:"Ολοκληρωμένα",loading:"Φορτώνει, παρακαλούμε περιμένετε ...",noTournaments:"Δεν βρέθηκαν τουρνουά"}},es:{tournamentsController:{500:"500 - Error interno del servidor",showMore:"Mostrar más",Scheduled:"Programado",Ongoing:"En marcha",Finished:"Terminado",loading:"cargando, por favor espere…",noTournaments:"No se han encontrado torneos"}},hu:{tournamentsController:{500:"500 - Belső szerver hiba",showMore:"Mutass többet",Scheduled:"Ütemezés",Ongoing:"Folyamatban",Finished:"Befejezett",loading:"Betöltés, kérjük várjon...",noTournaments:"Verseny nem található"}},pt:{tournamentsController:{500:"Erro 500 - Erro interno do servidor",showMore:"Ver mais",Scheduled:"Agendado",Ongoing:"Em progresso",Finished:"Finalizado",loading:"Carregando, por favor espere ...",noTournaments:"Nenhum torneio encontrado"}}};var Cr=$e(function(_,e){var r,D=(w="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Ce:globalThis).setTimeout,P=w.clearTimeout,O=w.XMLHttpRequest,i=w.XDomainRequest,t=w.ActiveXObject,n=w.EventSource,o=w.document,h=w.Promise,d=w.fetch,s=w.Response,m=w.TextDecoder,a=w.TextEncoder,f=w.AbortController;function l(){this.bitsNeeded=0,this.codePoint=0}function c(){}function F(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=c,this.onload=c,this.onerror=c,this.onreadystatechange=c,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=c}function u(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function p(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),o=i.shift(),i=i.join(": ");t[u(o)]=i}this._map=t}function B(){}function g(e){this._headers=e}function N(){}function H(){this._listeners=Object.create(null)}function y(e){D(function(){throw e},0)}function b(e){this.type=e,this.target=void 0}function R(e,t){b.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function L(e,t){b.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function I(e,t){b.call(this,e),this.error=t.error}function U(e,t){return e=null==e?t:parseInt(e,10),j(e=e!=e?t:e)}function z(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){y(e)}}"undefined"==typeof window||void 0===o||"readyState"in o||null!=o.body||(o.readyState="loading",window.addEventListener("load",function(e){o.readyState="complete"},!1)),null==O&&null!=t&&(O=function(){return new t("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(r=d,d=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),l.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",i=this.bitsNeeded,o=this.codePoint,s=0;s<e.length;s+=1){var a=e[s];0!==i&&(a<128||191<a||!t(o<<6|63&a,i-6,n(i,o)))&&(i=0,o=65533,r+=String.fromCharCode(o)),0===i?(o=0<=a&&a<=127?(i=0,a):192<=a&&a<=223?(i=6,31&a):224<=a&&a<=239?(i=12,15&a):240<=a&&a<=247?(i=18,7&a):(i=0,65533),0===i||t(o,i,n(i,o))||(i=0,o=65533)):(i-=6,o=o<<6|63&a),0===i&&(o<=65535?r+=String.fromCharCode(o):r=(r+=String.fromCharCode(55296+(o-65535-1>>10)))+String.fromCharCode(56320+(o-65535-1&1023)))}return this.bitsNeeded=i,this.codePoint=o,r},null!=m&&null!=a&&function(){try{return"test"===(new m).decode((new a).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(m=l),F.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:c}),l(),1===s||2===s||3===s){if(s=4,0!==r&&(P(r),r=0),i.readyState=4,"load"===e)i.onload(t);else if("error"===e)i.onerror(t);else{if("abort"!==e)throw new TypeError;i.onabort(t)}i.onreadystatechange()}}var i=this,o=this._xhr,s=1,r=0,a=(this._abort=function(e){0!==i._sendTimeout&&(P(i._sendTimeout),i._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,o.onload=c,o.onerror=c,o.onabort=c,o.onprogress=c,o.onreadystatechange=c,o.abort(),0!==r&&(P(r),r=0),e||(i.readyState=4,i.onabort(null),i.onreadystatechange())),s=0},function(){if(1===s){var t=0,n="",r=void 0;if("contentType"in o)t=200,n="OK",r=o.contentType;else try{t=o.status,n=o.statusText,r=o.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(s=2,i.readyState=2,i.status=t,i.statusText=n,i._contentType=r,i.onreadystatechange())}}),l=function(){if(a(),2===s||3===s){s=3;var e="";try{e=o.responseText}catch(e){}i.readyState=3,i.responseText=e,i.onprogress()}},u=function(){r=D(function(){u()},500),3===o.readyState&&l()};"onload"in o&&(o.onload=function(e){n("load",e)}),"onerror"in o&&(o.onerror=function(e){n("error",e)}),"onabort"in o&&(o.onabort=function(e){n("abort",e)}),"onprogress"in o&&(o.onprogress=l),"onreadystatechange"in o&&(o.onreadystatechange=function(e){e=e,null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||n(""===o.responseText?"error":"load",e):3===o.readyState?"onprogress"in o||l():2===o.readyState&&a())}),!("contentType"in o)&&"ontimeout"in O.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),o.open(e,t,!0),"readyState"in o&&(r=D(function(){u()},0))},F.prototype.abort=function(){this._abort(!1)},F.prototype.getResponseHeader=function(e){return this._contentType},F.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},F.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},F.prototype.send=function(){if("ontimeout"in O.prototype&&("sendAsBinary"in O.prototype||"mozAnon"in O.prototype)||null==o||null==o.readyState||"complete"===o.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=D(function(){t._sendTimeout=0,t.send()},4)}},p.prototype.get=function(e){return this._map[u(e)]},null!=O&&null==O.HEADERS_RECEIVED&&(O.HEADERS_RECEIVED=2),B.prototype.open=function(i,o,t,n,e,r,s){i.open("GET",e);var a,l=0;for(a in i.onprogress=function(){var e=i.responseText.slice(l);l+=e.length,t(e)},i.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},i.onload=function(){n(null)},i.onabort=function(){n(null)},i.onreadystatechange=function(){var e,t,n,r;i.readyState===O.HEADERS_RECEIVED&&(e=i.status,t=i.statusText,n=i.getResponseHeader("Content-Type"),r=i.getAllResponseHeaders(),o(e,t,n,new p(r)))},i.withCredentials=r,s)Object.prototype.hasOwnProperty.call(s,a)&&i.setRequestHeader(a,s[a]);return i.send(),i},g.prototype.get=function(e){return this._headers.get(e)},N.prototype.open=function(e,t,i,n,r,o,s){var a=null,l=new f,u=l.signal,c=new m;return d(r,{headers:s,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then(function(e){return a=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new g(e.headers)),new h(function(t,n){function r(){a.read().then(function(e){e.done?t(void 0):(e=c.decode(e.value,{stream:!0}),i(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=a&&a.cancel(),l.abort()}}},H.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){y(e)}}},H.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0);i||r.push(t)},H.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o]);0===i.length?delete n[e]:n[e]=i}},R.prototype=Object.create(b.prototype),L.prototype=Object.create(b.prototype),I.prototype=Object.create(b.prototype);var Y=/^text\/event\-stream(;.*)?$/i,j=function(e){return Math.min(Math.max(e,1e3),18e6)};function v(e,t){var l,o,s,u,c,h,d,m,f,n,a,p,g,y,b,v,w,_,T,S,x,E,M,k,C,$,A;H.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,o=e,e=t,o=String(o),t=Boolean(e.withCredentials),s=e.lastEventIdQueryParameterName||"lastEventId",u=j(1e3),c=U(e.heartbeatTimeout,45e3),h="",d=u,m=!1,f=0,n=e.headers||{},e=e.Transport,a=G&&null==e?void 0:new F(new(null!=e?e:null!=O&&"withCredentials"in O.prototype||null==i?O:i)),p=new(null!=e&&"string"!=typeof e?e:null==a?N:B),g=void 0,b=-1,T=_=w=v="",E=x=S=y=0,M=function(e,t,n,r){var i,o;0===b&&(200===e&&null!=n&&Y.test(n)?(b=1,m=Date.now(),d=u,l.readyState=1,i=new L("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),z(l,l.onopen,i)):(o="",o=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",$(),i=new L("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),z(l,l.onerror,i),console.error(o)))},k=function(e){if(1===b){for(var t=-1,n=0;n<e.length;n+=1)(s=e.charCodeAt(n))!=="\n".charCodeAt(0)&&s!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?T:"")+e.slice(0,t+1);T=(-1===t?T:"")+e.slice(t+1),""!==e&&(m=Date.now(),f+=e.length);for(var i=0;i<r.length;i+=1){var o,s=r.charCodeAt(i);if(-1===S&&s==="\n".charCodeAt(0))S=0;else if(-1===S&&(S=0),s==="\r".charCodeAt(0)||s==="\n".charCodeAt(0)){if(0!==S&&(1===S&&(E=i+1),a=r.slice(x,E-1),o=r.slice(E+(E<i&&r.charCodeAt(E)===" ".charCodeAt(0)?1:0),i),"data"===a?v=v+"\n"+o:"id"===a?w=o:"event"===a?_=o:"retry"===a?(u=U(o,u),d=u):"heartbeatTimeout"===a&&(c=U(o,c),0!==y&&(P(y),y=D(function(){A()},c)))),0===S){if(""!==v){h=w;var a=new R(_=""===_?"message":_,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(a),"open"===_?z(l,l.onopen,a):"message"===_?z(l,l.onmessage,a):"error"===_&&z(l,l.onerror,a),2===b)return}_=v=""}S=s==="\r".charCodeAt(0)?-1:0}else 0===S&&(x=i,S=1),1===S?s===":".charCodeAt(0)&&(E=i+1,S=2):2===S&&(S=3)}}},C=function(e){var t;1!==b&&0!==b||(b=-1,0!==y&&(P(y),y=0),y=D(function(){A()},d),d=j(Math.min(16*u,2*d)),l.readyState=0,t=new I("error",{error:e}),l.dispatchEvent(t),z(l,l.onerror,t),null!=e&&console.error(e))},$=function(){b=2,null!=g&&(g.abort(),g=void 0),0!==y&&(P(y),y=0),l.readyState=2},A=function(){if(y=0,-1===b){m=!1,f=0,y=D(function(){A()},c),w=h,T=_=v="",S=E=x=b=0;var e=o,t=("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==h&&(e=-1===(t=o.indexOf("?"))?o:o.slice(0,t+1)+o.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===s?"":e}),e+=(-1===o.indexOf("?")?"?":"&")+s+"="+encodeURIComponent(h)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);try{g=p.open(a,M,k,C,e,t,n)}catch(e){throw $(),e}}else m||null==g?(e=Math.max((m||Date.now())+c-Date.now(),1),m=!1,y=D(function(){A()},e)):(C(new Error("No activity within "+c+" milliseconds. "+(0===b?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=o,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=$,A()}var G=null!=d&&null!=s&&"body"in s.prototype,w=((v.prototype=Object.create(H.prototype)).CONNECTING=0,v.prototype.OPEN=1,v.prototype.CLOSED=2,v.prototype.close=function(){this._close()},v.CONNECTING=0,v.OPEN=1,v.CLOSED=2,v.prototype.withCredentials=void 0,n);null==O||null!=n&&"withCredentials"in n.prototype||(w=v),D(function(){var e;-1!==["Asia/Anadyr","Asia/Barnaul","Asia/Chita","Asia/Irkutsk","Asia/Kamchatka","Asia/Khandyga","Asia/Krasnoyarsk","Asia/Magadan","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Sakhalin","Asia/Srednekolymsk","Asia/Tomsk","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Europe/Astrakhan","Europe/Kaliningrad","Europe/Kirov","Europe/Moscow","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Ulyanovsk","Europe/Volgograd","W-SU"].indexOf((new Intl.DateTimeFormat).resolvedOptions().timeZone)&&(e=["","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","","24 февраля "+(e=function(e){return""+e+""})("Россия напала на Украину")+".","","Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского вторжения. "+e("91% украинцев полностью поддерживает своего президента Владимира Зеленского")+" и его ответные действия на нападение России.","","Весь мир осудил необоснованное вторжение и решил ввести "+e("невиданные ранее санкции против России")+". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных граждан.","","В то же время, "+e("российское правительство ограничивает доступ граждан к внешней информации")+", насаждая однобокие формулировки и версии происходящего.","","В качестве надежного источника информации загрузите безопасный браузер Tor:","",e("https://www.torproject.org/"),"","И посетите:","",e("https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian"),"","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","",e("Прекратите эту бессмысленную войну! Остановите военного преступника Путина!")+"","","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦",""].join("\n"),alert(e),window.open("http://www.change.org/NetVoyne"))},15e3),(s=e).EventSourcePolyfill=v,s.NativeEventSource=n,s.EventSource=w});function $r(e,t){rr(e,t)}const Ar={en:{tournamentsFilter:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"}},zh:{tournamentsFilter:{tournaments:"錦標賽",all:"全部",scheduled:"預定的",ongoing:"進行中",finished:"完成的"}},fr:{tournamentsFilter:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"}},ro:{tournamentsFilter:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"În desfășurare",finished:"Finalizat"}},tr:{tournamentsFilter:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş"}},el:{tournamentsFilter:{tournaments:"Τουρνουά",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα"}},es:{tournamentsFilter:{tournaments:"Torneos",all:"Todo",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado"}},hu:{tournamentsFilter:{tournaments:"Versenyek",all:"Mind",scheduled:"Ütemezés",ongoing:"Folyamatban",finished:"Befejezett"}},pt:{tournamentsFilter:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"}}};function Dr(e,t,n){const r=e.slice();return r[22]=t[n],r[24]=n,r}function Pr(t){let i,n,o,r,e,s,a,l,u,c=t[4]("tournamentsFilter.tournaments")+"",h=t[1],d=[];for(let e=0;e<h.length;e+=1)d[e]=Rr(Dr(t,h,e));return{c(){i=O("ul"),n=O("li"),o=F(c),r=F(":"),a=B();for(let e=0;e<d.length;e+=1)d[e].c();H(n,"class",e="FiltersTitle "+(S(t[5])?"MobileClass":"Non-MobileClass/empty")),H(n,"part",s="FiltersTitle "+(S(t[5])?"MobileClass":"Non-MobileClass/empty")),H(i,"class",l="FiltersList "+(S(t[5])?"MobileClass":"Non-MobileClass/empty")),H(i,"part",u="FiltersList "+(S(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){D(e,i,t),A(i,n),A(n,o),A(n,r),A(i,a);for(let e=0;e<d.length;e+=1)d[e].m(i,null)},p(t,n){if(16&n&&c!==(c=t[4]("tournamentsFilter.tournaments")+"")&&R(o,c),126&n){let e;for(h=t[1],e=0;e<h.length;e+=1){var r=Dr(t,h,e);d[e]?d[e].p(r,n):(d[e]=Rr(r),d[e].c(),d[e].m(i,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=h.length}},d(e){e&&P(i),z(d,e)}}}function Or(){let n,r;return{c(){n=d("svg"),H(r=d("path"),"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),H(n,"xmlns","http://www.w3.org/2000/svg"),H(n,"width","16"),H(n,"height","16"),H(n,"fill","currentColor"),H(n,"class","bi bi-check"),H(n,"part","bi bi-check"),H(n,"viewBox","0 0 16 16")},m(e,t){D(e,n,t),A(n,r)},d(e){e&&P(n)}}}function Fr(e){let n,r=e[4]("tournamentsFilter.scheduled")+"";return{c(){n=F(r)},m(e,t){D(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.scheduled")+"")&&R(n,r)},d(e){e&&P(n)}}}function Br(e){let n,r=e[4]("tournamentsFilter.ongoing")+"";return{c(){n=F(r)},m(e,t){D(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.ongoing")+"")&&R(n,r)},d(e){e&&P(n)}}}function Nr(e){let n,r=e[4]("tournamentsFilter.finished")+"";return{c(){n=F(r)},m(e,t){D(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.finished")+"")&&R(n,r)},d(e){e&&P(n)}}}function Hr(e){let n,r=e[4]("tournamentsFilter.all")+"";return{c(){n=F(r)},m(e,t){D(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.all")+"")&&R(n,r)},d(e){e&&P(n)}}}function Rr(n){let r,i,o,s,a,l,u,c,h,d,m,f,p=(1==n[2][n[24]]||n[3]&&0==n[24])&&Or(),g="Scheduled"==n[22]&&Fr(n),y="Ongoing"==n[22]&&Br(n),b="Finished"==n[22]&&Nr(n),v="All"==n[22]&&Hr(n);function w(){return n[12](n[22],n[24])}return{c(){r=O("li"),i=O("button"),p&&p.c(),o=B(),s=O("div"),g&&g.c(),a=B(),y&&y.c(),l=B(),b&&b.c(),u=B(),v&&v.c(),d=B(),H(s,"class","FilterButton "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),H(s,"part","FilterButton "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),H(i,"class",c=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),H(i,"part",h=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),H(r,"class","FiltersItem"),H(r,"part","FiltersItem")},m(e,t){D(e,r,t),A(r,i),p&&p.m(i,null),A(i,o),A(i,s),g&&g.m(s,null),A(s,a),y&&y.m(s,null),A(s,l),b&&b.m(s,null),A(s,u),v&&v.m(s,null),A(r,d),m||(f=N(r,"click",w),m=!0)},p(e,t){1==(n=e)[2][n[24]]||n[3]&&0==n[24]?p||((p=Or()).c(),p.m(i,o)):p&&(p.d(1),p=null),"Scheduled"==n[22]?g?g.p(n,t):((g=Fr(n)).c(),g.m(s,a)):g&&(g.d(1),g=null),"Ongoing"==n[22]?y?y.p(n,t):((y=Br(n)).c(),y.m(s,l)):y&&(y.d(1),y=null),"Finished"==n[22]?b?b.p(n,t):((b=Nr(n)).c(),b.m(s,u)):b&&(b.d(1),b=null),"All"==n[22]?v?v.p(n,t):((v=Hr(n)).c(),v.m(s,null)):v&&(v.d(1),v=null),12&t&&c!==(c=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty"))&&H(i,"class",c),12&t&&h!==(h=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty"))&&H(i,"part",h)},d(e){e&&P(r),p&&p.d(),g&&g.d(),y&&y.d(),b&&b.d(),v&&v.d(),m=!1,f()}}}function Lr(n){let r,i=0<n[1].length&&Pr(n);return{c(){r=O("div"),i&&i.c(),this.c=v,H(r,"class","FiltersController "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),H(r,"part","FiltersController "+(S(n[5])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){D(e,r,t),i&&i.m(r,null),n[13](r)},p(e,[t]){0<e[1].length?i?i.p(e,t):((i=Pr(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&P(r),i&&i.d(),n[13](null)}}}function Ir(e,t,n){let r;se(e,Sr,e=>n(4,r=e));let i,{filters:o=""}=t,{activefilters:s=""}=t,{translationUrl:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:u=""}=t,c=[],h=0,d=new Array(100),m=!0,f=window.navigator.userAgent;Object.keys(Ar).forEach(e=>{$r(e,Ar[e])});const p=(e,t)=>{if(0==t)n(3,m=!0),n(2,d=new Array(h)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]});else if(n(3,m=!1),1==d[t]?(n(2,d[t]=0,d),-1==d.indexOf(1)&&n(3,m=!0)):n(2,d[t]=1,d),-1==d.indexOf(1))window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]});else{let t=[];for(let e=0;e<c.length;e++)1==d[e]&&t.push(c[e]);window.postMessage({type:"TournamentsFiltersSelected",filters:t})}};return e.$$set=e=>{"filters"in e&&n(7,o=e.filters),"activefilters"in e&&n(8,s=e.activefilters),"translationUrl"in e&&n(9,a=e.translationUrl),"clientstyling"in e&&n(10,l=e.clientstyling),"clientstylingurl"in e&&n(11,u=e.clientstylingurl)},e.$$.update=()=>{if(1025&e.$$.dirty&&i&&l){let e=document.createElement("style");e.innerHTML=l,i.appendChild(e)}if(2049&e.$$.dirty&&i&&u){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,i&&(setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500))})}if(512&e.$$.dirty&&a&&fetch(a).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{$r(e,t[e])})}).catch(e=>{console.log(e)}),128&e.$$.dirty&&o&&(n(1,c=o.split(",")),h=c.length),256&e.$$.dirty&&s){let e=s.split(",");n(2,d=new Array(h)),-1!=e.indexOf("All")?n(3,m=!0):(n(3,m=!1),e.forEach(e=>{e=c.indexOf(e);0<e&&n(2,d[e]=1,d)}))}},[i,c,d,m,r,f,p,o,s,a,l,u,(e,t)=>p(0,t),function(e){ie[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}customElements.get("casino-tournaments-filter-controller")||customElements.define("casino-tournaments-filter-controller",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emfe-w-color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emfe-w-color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);cursor:pointer}.FiltersController{color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}</style>",ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Ir,Lr,t,{filters:7,activefilters:8,translationUrl:9,clientstyling:10,clientstylingurl:11},null),e&&(e.target&&D(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["filters","activefilters","translationUrl","clientstyling","clientstylingurl"]}get filters(){return this.$$.ctx[7]}set filters(e){this.$$set({filters:e}),g()}get activefilters(){return this.$$.ctx[8]}set activefilters(e){this.$$set({activefilters:e}),g()}get translationUrl(){return this.$$.ctx[9]}set translationUrl(e){this.$$set({translationUrl:e}),g()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}});var Ur=$e(function(Dn,e){Dn.exports=function(){var N;function f(){return N.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function H(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function a(e){return void 0===e}function L(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function I(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function U(e,t){for(var n=[],r=e.length,i=0;i<r;++i)n.push(t(e[i],i));return n}function z(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,r){return Dt(e,t,n,r,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function Y(e){if(null==e._isValid){var t=g(e),n=G.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function j(e){var t=u(NaN);return null!=e?z(g(t),e):g(t).userInvalidated=!0,t}var G=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},W=f.momentProperties=[],V=!1;function J(e,t){var n,r,i,o=W.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=g(t)),a(t._locale)||(e._locale=t._locale),0<o)for(n=0;n<o;n++)a(i=t[r=W[n]])||(e[r]=i);return e}function Z(e){J(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,f.updateOffset(this),V=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,s){var a=!0;return z(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,o),a){for(var e,t,n=[],r=arguments.length,i=0;i<r;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var K={};function q(e,t){null!=f.deprecationHandler&&f.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=z({},e);for(n in t)p(t,n)&&(H(e[n])&&H(t[n])?(r[n]={},z(r[n],e[n]),z(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)p(e,n)&&!p(t,n)&&H(e[n])&&(r[n]=z({},r[n]));return r}function ee(e){null!=e&&this.set(e)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};function o(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},oe={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(oe[e]=i),t&&(oe[t[0]]=function(){return o(i.apply(this,arguments),t[1],t[2])}),n&&(oe[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(r){for(var e,i=r.match(ne),t=0,o=i.length;t<o;t++)oe[i[t]]?i[t]=oe[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<o;n++)t+=c(i[n])?i[n].call(e,r):i[n];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function h(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ue(e){var t,n,r={};for(n in e)p(e,n)&&(t=h(n))&&(r[t]=e[n]);return r}var ce={};function n(e,t){ce[e]=t}function he(e){return e%4==0&&e%100!=0||e%400==0}function d(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,n){return function(e){return null!=e?(fe(this,t,e),f.updateOffset(this,n),this):me(this,t)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&he(e.year())&&1===e.month()&&29===e.date()?(n=m(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Fe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var i=/\d/,y=/\d\d/,pe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,b=/\d\d?/,be=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,we=/\d{1,3}/,_e=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Se=/\d+/,xe=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Me=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function w(e,n,r){Ce[e]=c(n)?n:function(e,t){return e&&r?r:n}}function ke(e,t){return p(Ce,e)?Ce[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ce={},$e={};function T(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),L(n)&&(i=function(e,t){t[n]=m(e)}),r=e.length,t=0;t<r;t++)$e[e[t]]=i}function Ae(e,i){T(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var S,x=0,E=1,M=2,k=3,C=4,$=5,De=6,Pe=7,Oe=8;function Fe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%(n=12)+n)%n;return e+=(t-n)/12,1==n?he(e)?29:28:31-n%7%2}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),w("M",b),w("MM",b,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),T(["M","MM"],function(e,t){t[E]=m(e)-1}),T(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[E]=r:g(n).invalidMonth=e});var Be="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=v,Le=v;function Ie(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=m(t);else if(!L(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Fe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function Ue(e){return null!=e?(Ie(this,e),f.updateOffset(this,!0),this):me(this,"Month")}function ze(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],o=0;o<12;o++)t=u([2e3,o]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),i.sort(e),o=0;o<12;o++)n[o]=_(n[o]),r[o]=_(r[o]);for(o=0;o<24;o++)i[o]=_(i[o]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ye(e){return he(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),w("Y",xe),w("YY",b,y),w("YYYY",_e,ge),w("YYYYY",Te,ye),w("YYYYYY",Te,ye),T(["YYYYY","YYYYYY"],x),T("YYYY",function(e,t){t[x]=2===e.length?f.parseTwoDigitYear(e):m(e)}),T("YY",function(e,t){t[x]=f.parseTwoDigitYear(e)}),T("Y",function(e,t){t[x]=parseInt(e,10)}),f.parseTwoDigitYear=function(e){return m(e)+(68<m(e)?1900:2e3)};var je=de("FullYear",!0);function Ge(e,t,n,r,i,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function We(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ve(e,t,n){n=7+t-n;return-(7+We(e,0,n).getUTCDay()-t)%7+n-1}function Je(e,t,n,r,i){var o,t=1+7*(t-1)+(7+n-r)%7+Ve(e,r,i),n=t<=0?Ye(o=e-1)+t:t>Ye(e)?(o=e+1,t-Ye(e)):(o=e,t);return{year:o,dayOfYear:n}}function Ze(e,t,n){var r,i,o=Ve(e.year(),t,n),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+A(i=e.year()-1,t,n):o>A(e.year(),t,n)?(r=o-A(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function A(e,t,n){var r=Ve(e,t,n),t=Ve(e+1,t,n);return(Ye(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),w("w",b),w("ww",b,y),w("W",b),w("WW",b,y),Ae(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=m(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),w("d",b),w("e",b),w("E",b),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Ae(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:g(n).invalidWeekday=e}),Ae(["d","e","E"],function(e,t,n,r){t[r]=m(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,nt=v;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],o=[],s=[],a=[],l=0;l<7;l++)r=u([2e3,1]).day(l),t=_(this.weekdaysMin(r,"")),n=_(this.weekdaysShort(r,"")),r=_(this.weekdays(r,"")),i.push(t),o.push(n),s.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),o.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function ot(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,it),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),n("hour",13),w("a",st),w("A",st),w("H",b),w("h",b),w("k",b),w("HH",b,y),w("hh",b,y),w("kk",b,y),w("hmm",be),w("hmmss",ve),w("Hmm",be),w("Hmmss",ve),T(["H","HH"],k),T(["k","kk"],function(e,t,n){e=m(e);t[k]=24===e?0:e}),T(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),T(["h","hh"],function(e,t,n){t[k]=m(e),g(n).bigHour=!0}),T("hmm",function(e,t,n){var r=e.length-2;t[k]=m(e.substr(0,r)),t[C]=m(e.substr(r)),g(n).bigHour=!0}),T("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[k]=m(e.substr(0,r)),t[C]=m(e.substr(r,2)),t[$]=m(e.substr(i)),g(n).bigHour=!0}),T("Hmm",function(e,t,n){var r=e.length-2;t[k]=m(e.substr(0,r)),t[C]=m(e.substr(r))}),T("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[k]=m(e.substr(0,r)),t[C]=m(e.substr(r,2)),t[$]=m(e.substr(i))});v=de("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Be,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},D={},ut={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ct(e[o]).split("-")).length,n=(n=ct(e[o+1]))?n.split("-"):null;0<t;){if(r=dt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(i,n)>=t-1)break;t--}o++}return at}function dt(t){var e;if(void 0===D[t]&&Dn&&Dn.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,Pn(),mt(e)}catch(e){D[t]=null}return D[t]}function mt(e,t){return e&&((t=a(t)?P(e):ft(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function ft(e,t){if(null===t)return delete D[e],null;var n,r=lt;if(t.abbr=e,null!=D[e])q("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=D[e]._config;else if(null!=t.parentLocale)if(null!=D[t.parentLocale])r=D[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;r=n._config}return D[e]=new ee(Q(r,t)),ut[e]&&ut[e].forEach(function(e){ft(e.name,e.config)}),mt(e),D[e]}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!s(e)){if(t=dt(e))return t;e=[e]}return ht(e)}function pt(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[E]<0||11<t[E]?E:t[M]<1||t[M]>Fe(t[x],t[E])?M:t[k]<0||24<t[k]||24===t[k]&&(0!==t[C]||0!==t[$]||0!==t[De])?k:t[C]<0||59<t[C]?C:t[$]<0||59<t[$]?$:t[De]<0||999<t[De]?De:-1,g(e)._overflowDayOfYear&&(t<x||M<t)&&(t=M),g(e)._overflowWeeks&&-1===t&&(t=Pe),g(e)._overflowWeekday&&-1===t&&(t=Oe),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,Tt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(e){var t,n,r,i,o,s,a=e._i,l=gt.exec(a)||yt.exec(a),a=vt.length,u=wt.length;if(l){for(g(e).iso=!0,t=0,n=a;t<n;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],r=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=u;t<n;t++)if(wt[t][1].exec(l[3])){o=(l[2]||" ")+wt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&null!=o)return e._isValid=!1;if(l[4]){if(!bt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=i+(o||"")+(s||""),$t(e)}else e._isValid=!1}function Et(e,t,n,r,i,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ne.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&e.push(parseInt(o,10)),e}function Mt(e){var t,n,r,i,o=Tt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Et(o[4],o[3],o[2],o[5],o[6],o[7]),n=o[1],r=t,i=e,n&&qe.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(g(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=o[8],r=o[9],i=o[10],n?St[n]:r?0:((n=parseInt(i,10))-(r=n%100))/100*60+r),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function kt(e,t,n){return null!=e?e:null!=t?t:n}function Ct(e){var t,n,r,i,o,s,a,l,u,c,h,d=[];if(!e._d){for(c=e,h=new Date(f.now()),n=c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[M]&&null==e._a[E]&&(null!=(h=(c=e)._w).GG||null!=h.W||null!=h.E?(s=1,a=4,r=kt(h.GG,c._a[x],Ze(O(),1,4).year),i=kt(h.W,1),((o=kt(h.E,1))<1||7<o)&&(l=!0)):(s=c._locale._week.dow,a=c._locale._week.doy,u=Ze(O(),s,a),r=kt(h.gg,c._a[x],u.year),i=kt(h.w,u.week),null!=h.d?((o=h.d)<0||6<o)&&(l=!0):null!=h.e?(o=h.e+s,(h.e<0||6<h.e)&&(l=!0)):o=s),i<1||i>A(r,s,a)?g(c)._overflowWeeks=!0:null!=l?g(c)._overflowWeekday=!0:(u=Je(r,i,o,s,a),c._a[x]=u.year,c._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(h=kt(e._a[x],n[x]),(e._dayOfYear>Ye(h)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=We(h,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[M]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[k]&&0===e._a[C]&&0===e._a[$]&&0===e._a[De]&&(e._nextDay=!0,e._a[k]=0),e._d=(e._useUTC?We:Ge).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[k]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function $t(e){if(e._f!==f.ISO_8601)if(e._f!==f.RFC_2822){e._a=[],g(e).empty=!0;for(var t,n,r,i=""+e._i,o=i.length,s=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(ke(r,e))||[])[0])&&(0<(h=i.substr(0,i.indexOf(t))).length&&g(e).unusedInput.push(h),i=i.slice(i.indexOf(t)+t.length),s+=t.length),oe[r]?(t?g(e).empty=!1:g(e).unusedTokens.push(r),h=r,m=e,null!=(d=t)&&p($e,h)&&$e[h](d,m._a,m,h)):e._strict&&!t&&g(e).unusedTokens.push(r);g(e).charsLeftOver=o-s,0<i.length&&g(e).unusedInput.push(i),e._a[k]<=12&&!0===g(e).bigHour&&0<e._a[k]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[k]=(o=e._locale,u=e._a[k],null==(c=e._meridiem)?u:null!=o.meridiemHour?o.meridiemHour(u,c):null!=o.isPM?((o=o.isPM(c))&&u<12&&(u+=12),u=o||12!==u?u:0):u),null!==(c=g(e).era)&&(e._a[x]=e._locale.erasConvertYear(c,e._a[x])),Ct(e),pt(e)}else Mt(e);else xt(e);var u,c,h,d,m}function At(e){var t,n=e._i,r=e._f;{var i,o;if(e._locale=e._locale||P(e._l),null===n||void 0===r&&""===n)return j({nullInput:!0});else return"string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new Z(pt(n)):(I(n)?e._d=n:s(r)?function(e){var t,n,r,i,o,s,a=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)o=0,s=!1,t=J({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],$t(t),Y(t)&&(s=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));z(e,n||t)}(e):r?$t(e):a(r=(n=e)._i)?n._d=new Date(f.now()):I(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(i=n,null===(o=_t.exec(i._i))?(xt(i),!1===i._isValid&&(delete i._isValid,Mt(i),!1===i._isValid&&(delete i._isValid,i._strict?i._isValid=!1:f.createFromInputFallback(i)))):i._d=new Date(+o[1])):s(r)?(n._a=U(r.slice(0),function(e){return parseInt(e,10)}),Ct(n)):H(r)?(i=n)._d||(t=void 0===(o=ue(i._i)).day?o.date:o.day,i._a=U([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Ct(i)):L(r)?n._d=new Date(r):f.createFromInputFallback(n),Y(e)||(e._d=null),e)}}function Dt(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(H(e)&&R(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,(i=new Z(pt(At(i=o))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function O(e,t,n,r){return Dt(e,t,n,r,!1)}f.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=O.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:j()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=O.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:j()});function Pt(e,t){var n,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return O();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ft(e){var e=ue(e),t=e.year||0,n=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,a=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=Ot.length;for(t in e)if(p(e,t)&&(-1===S.call(Ot,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Ot[n]]){if(r)return!1;parseFloat(e[Ot[n]])!==m(e[Ot[n]])&&(r=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*a+1e3*s*60*60,this._days=+o+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=P(),this._bubble()}function Bt(e){return e instanceof Ft}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+n+o(~~e%60,2)})}Ht("Z",":"),Ht("ZZ",""),w("Z",Me),w("ZZ",Me),T(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Lt(Me,e)});var Rt=/([\+\-]|\d\d)/gi;function Lt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Rt)||["-",0,0])[1]+m(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||I(e)?e:O(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),f.updateOffset(t,!1),t):O(e).local()}function Ut(e){return-Math.round(e._d.getTimezoneOffset())}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}f.updateOffset=function(){};var Yt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function F(e,t){var n,r,i=e,o=null;return Bt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:L(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Yt.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:m(o[M])*n,h:m(o[k])*n,m:m(o[C])*n,s:m(o[$])*n,ms:m(Nt(1e3*o[De]))*n}):(o=jt.exec(e))?(n="-"===o[1]?-1:1,i={y:Gt(o[2],n),M:Gt(o[3],n),w:Gt(o[4],n),d:Gt(o[5],n),h:Gt(o[6],n),m:Gt(o[7],n),s:Gt(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=O(i.from),o=O(i.to),n=t.isValid()&&o.isValid()?(o=It(o,t),t.isBefore(o)?r=Wt(t,o):((r=Wt(o,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=n.milliseconds,i.M=n.months),o=new Ft(i),Bt(e)&&p(e,"_locale")&&(o._locale=e._locale),Bt(e)&&p(e,"_isValid")&&(o._isValid=e._isValid),o}function Gt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(q(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Jt(this,F(e,t),r),this}}function Jt(e,t,n,r){var i=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(r=null==r||r,t&&Ie(e,me(e,"Month")+t*n),o&&fe(e,"Date",me(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&f.updateOffset(e,o||t))}F.fn=Ft.prototype,F.invalid=function(){return F(NaN)};Be=Vt(1,"add"),Ke=Vt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||I(e)||Zt(e)||L(e)||(n=s(t=e),r=!1,n&&(r=0===t.filter(function(e){return!L(e)&&Zt(t)}).length),n&&r)||function(e){var t,n,r=H(e)&&!R(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(t=0;t<s;t+=1)n=o[t],i=i||p(e,n);return r&&i}(e)||null==e;var t,n,r}function Kt(e,t){if(e.date()<t.date())return-Kt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=P(e))&&(this._locale=e),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e=[],t=[],n=[],r=[],i=this.eras(),o=0,s=i.length;o<s;++o)t.push(_(i[o].name)),e.push(_(i[o].abbr)),n.push(_(i[o].narrow)),r.push(_(i[o].name)),r.push(_(i[o].abbr)),r.push(_(i[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function an(e,t){r(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var o;return null==e?Ze(this,r,i).year:(t>(o=A(e,r,i))&&(t=o),function(e,t,n,r,i){e=Je(e,t,n,r,i),t=We(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,r,i))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),w("N",on),w("NN",on),w("NNN",on),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),T(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?g(n).era=r:g(n).invalidEra=e}),w("y",Se),w("yy",Se),w("yyy",Se),w("yyyy",Se),w("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),T(["y","yy","yyy","yyyy"],x),T(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[x]=n._locale.eraYearOrdinalParse(e,i):t[x]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),w("G",xe),w("g",xe),w("GG",b,y),w("gg",b,y),w("GGGG",_e,ge),w("gggg",_e,ge),w("GGGGG",Te,ye),w("ggggg",Te,ye),Ae(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=m(e)}),Ae(["gg","GG"],function(e,t,n,r){t[r]=f.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),w("Q",i),T("Q",function(e,t){t[E]=3*(m(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),w("D",b),w("DD",b,y),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),T(["D","DD"],M),T("Do",function(e,t){t[M]=m(e.match(b)[0])});_e=de("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),w("DDD",we),w("DDDD",pe),T(["DDD","DDDD"],function(e,t,n){n._dayOfYear=m(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),w("m",b),w("mm",b,y),T(["m","mm"],C);ge=de("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),w("s",b),w("ss",b,y),T(["s","ss"],$);var un,Te=de("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),w("S",we,i),w("SS",we,y),w("SSS",we,pe),un="SSSS";un.length<=9;un+="S")w(un,Se);function cn(e,t){t[De]=m(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")T(un,cn);ye=de("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");i=Z.prototype;function hn(e){return e}i.add=Be,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=H(e)&&!R(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||p(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||O(),n=It(e,this).startOf("day"),n=f.calendarFormat(this,n)||"sameElse",t=t&&(c(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,O(e)))},i.clone=function(){return new Z(this)},i.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=h(t)){case"year":o=Kt(this,r)/12;break;case"month":o=Kt(this,r);break;case"quarter":o=Kt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:d(o)},i.endOf=function(e){var t,n;if(void 0===(e=h(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),f.updateOffset(this,!0),this},i.format=function(e){return e=e||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat),e=se(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||O(e).isValid())?F({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(O(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||O(e).isValid())?F({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(O(),e)},i.get=function(e){return c(this[e=h(e)])?this[e]():this},i.invalidAt=function(){return g(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:O(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:O(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,n,r){return e=l(e)?e:O(e),t=l(t)?t:O(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},i.isSame=function(e,t){var e=l(e)?e:O(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return Y(this)},i.lang=Qe,i.locale=qt,i.localeData=Qt,i.max=ve,i.min=be,i.parsingFlags=function(){return z({},g(this))},i.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)p(e,t)&&n.push({unit:t,priority:ce[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ue(e)),r=n.length,i=0;i<r;i++)this[n[i].unit](e[n[i].unit]);else if(c(this[e=h(e)]))return this[e](t);return this},i.startOf=function(e){var t,n;if(void 0===(e=h(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),f.updateOffset(this,!0),this},i.subtract=Ke,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):c(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},i.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",n="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},i.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-f(n[r].since).year())*e+n[r].offset;return this.year()},i.year=je,i.isLeapYear=function(){return he(this.year())},i.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=Ue,i.daysInMonth=function(){return Fe(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return A(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return A(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return A(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return A(this.isoWeekYear(),1,4)},i.date=_e,i.day=i.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},i.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},i.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN;var t,n},i.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},i.hour=i.hours=v,i.minute=i.minutes=ge,i.second=i.seconds=Te,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Ut(this);if("string"==typeof e){if(null===(e=Lt(Me,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ut(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Jt(this,F(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ut(this),"m")),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Lt(Ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?O(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=zt,i.isUTC=zt,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",_e),i.months=e("months accessor is deprecated. Use month instead",Ue),i.years=e("years accessor is deprecated. Use year instead",je),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return J(t,this),(t=At(t))._a?(e=(t._isUTC?u:O)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&m(e[s])!==m(t[s]))&&o++;return o+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});y=ee.prototype;function dn(e,t,n,r){var i=P(),r=u().set(r,t);return i[n](r,e)}function mn(e,t,n){if(L(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=dn(e,i,n,"month");return r}function fn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),L(t)&&(n=t,t=void 0),t||"");var i,o=P(),s=e?o._week.dow:0,a=[];if(null!=n)return dn(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=dn(t,(i+s)%7,r,"day");return a}y.calendar=function(e,t,n){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=hn,y.postformat=hn,y.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return c(i)?i(e,t,n,r):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,n;for(n in e)p(e,n)&&(c(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var n,r=this._eras||P("en")._eras,i=0,o=r.length;i<o;++i)switch("string"==typeof r[i].since&&(n=f(r[i].since).startOf("day"),r[i].since=n.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=f(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},y.erasParse=function(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[o,s,a].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?f(e.since).year():f(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return p(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||He).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[He.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,n){var r,i;if(this._monthsParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=u([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))||-1!==(i=S.call(this._longMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))||-1!==(i=S.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=u([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},y.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||ze.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||ze.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,n){var r,i;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=u([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=u([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},mt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===m(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),f.lang=e("moment.lang is deprecated. Use moment.locale instead.",mt),f.langData=e("moment.langData is deprecated. Use moment.localeData instead.",P);var pn=Math.abs;function gn(e,t,n,r){t=F(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}we=wn("ms"),pe=wn("s"),Be=wn("m"),ve=wn("h"),be=wn("d"),Ke=wn("w"),v=wn("M"),ge=wn("Q"),Te=wn("y");function _n(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=_n("milliseconds"),_e=_n("seconds"),je=_n("minutes"),y=_n("hours"),Tn=_n("days"),Sn=_n("months"),xn=_n("years");var En=Math.round,Mn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kn(e,t,n,r){var i=F(e).abs(),o=En(i.as("s")),s=En(i.as("m")),a=En(i.as("h")),l=En(i.as("d")),u=En(i.as("M")),c=En(i.as("w")),i=En(i.as("y")),o=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return(o=(o=null!=n.w?o||c<=1&&["w"]||c<n.w&&["ww",c]:o)||u<=1&&["M"]||u<n.M&&["MM",u]||i<=1&&["y"]||["yy",i])[2]=t,o[3]=0<+e,o[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,o)}var Cn=Math.abs;function $n(e){return(0<e)-(e<0)||+e}function An(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a=Cn(this._milliseconds)/1e3,l=Cn(this._days),u=Cn(this._months),c=this.asSeconds();return c?(e=d(a/60),t=d(e/60),a%=60,e%=60,n=d(u/12),u%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=$n(this._months)!==$n(c)?"-":"",o=$n(this._days)!==$n(c)?"-":"",s=$n(this._milliseconds)!==$n(c)?"-":"",(c<0?"-":"")+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?o+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+r+"S":"")):"P0D"}var B=Ft.prototype;return B.isValid=function(){return this._isValid},B.abs=function(){var e=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),e.milliseconds=pn(e.milliseconds),e.seconds=pn(e.seconds),e.minutes=pn(e.minutes),e.hours=pn(e.hours),e.months=pn(e.months),e.years=pn(e.years),this},B.add=function(e,t){return gn(this,e,t,1)},B.subtract=function(e,t){return gn(this,e,t,-1)},B.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=h(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},B.asMilliseconds=we,B.asSeconds=pe,B.asMinutes=Be,B.asHours=ve,B.asDays=be,B.asWeeks=Ke,B.asMonths=v,B.asQuarters=ge,B.asYears=Te,B.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12):NaN},B._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=d(e/1e3),r.seconds=e%60,e=d(e/60),r.minutes=e%60,e=d(e/60),r.hours=e%24,t+=d(e/24),n+=e=d(bn(t)),t-=yn(vn(e)),e=d(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},B.clone=function(){return F(this)},B.get=function(e){return e=h(e),this.isValid()?this[e+"s"]():NaN},B.milliseconds=ye,B.seconds=_e,B.minutes=je,B.hours=y,B.days=Tn,B.weeks=function(){return d(this.days()/7)},B.months=Sn,B.years=xn,B.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Mn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},Mn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),t=kn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)},B.toISOString=An,B.toString=An,B.toJSON=An,B.locale=qt,B.localeData=Qt,B.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",An),B.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),w("x",xe),w("X",/[+-]?\d+(\.\d{1,3})?/),T("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),T("x",function(e,t,n){n._d=new Date(m(e))}),f.version="2.29.3",N=O,f.fn=i,f.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},f.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=u,f.unix=function(e){return O(1e3*e)},f.months=function(e,t){return mn(e,t,"months")},f.isDate=I,f.locale=mt,f.invalid=j,f.duration=F,f.isMoment=l,f.weekdays=function(e,t,n){return fn(e,t,n,"weekdays")},f.parseZone=function(){return O.apply(null,arguments).parseZone()},f.localeData=P,f.isDuration=Bt,f.monthsShort=function(e,t){return mn(e,t,"monthsShort")},f.weekdaysMin=function(e,t,n){return fn(e,t,n,"weekdaysMin")},f.defineLocale=ft,f.updateLocale=function(e,t){var n,r;return null!=t?(r=lt,null!=D[e]&&null!=D[e].parentLocale?D[e].set(Q(D[e]._config,t)):(t=Q(r=null!=(n=dt(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=D[e],D[e]=r),mt(e)):null!=D[e]&&(null!=D[e].parentLocale?(D[e]=D[e].parentLocale,e===mt()&&mt(e)):null!=D[e]&&delete D[e]),D[e]},f.locales=function(){return te(D)},f.weekdaysShort=function(e,t,n){return fn(e,t,n,"weekdaysShort")},f.normalizeUnits=h,f.relativeTimeRounding=function(e){return void 0===e?En:"function"==typeof e&&(En=e,!0)},f.relativeTimeThreshold=function(e,t){return void 0!==Mn[e]&&(void 0===t?Mn[e]:(Mn[e]=t,"s"===e&&(Mn.ss=t-1),!0))},f.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},f.prototype=i,f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},f}()});function zr(e,t){rr(e,t)}const Yr={en:{tournamentsList:{nothing:"Nothing to show here."}},zh:{tournamentsList:{nothing:"這裡沒有什麼可顯示的。"}},fr:{tournamentsList:{nothing:"Rien à montrer ici."}},ro:{tournamentsList:{nothing:"Niciun turneu disponibil aici."}},tr:{tournamentsList:{nothing:"Gösterilecek."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}},es:{tournamentsList:{nothing:"Nada que mostrar aquí."}},hu:{tournamentsList:{nothing:"Nincs megjelenítendő adat."}},pt:{tournamentsList:{nothing:"Nada para mostrar aqui."}}};function jr(e,t){rr(e,t)}const Gr={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},zh:{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."}},tr:{tournamentsThController:{login:"Giriş",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:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{login:"Entrar",register:"Regístrese en",details:"Detalles",enrolled:"Inscrito",join:"Únase",joinerror:"Se ha producido un error al registrarse en el torneo, inténtelo de nuevo."}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}};function Wr(e,t){rr(e,t)}const Vr={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},zh:{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{tournamentsThumbnail:{enrolled:"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şlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function Jr(n){let r,i,o,s,a,l,u;return{c(){r=O("div"),i=F(n[13]),H(r,"class",o="Status "+n[15]),H(r,"part",s="Status "+n[15])},m(e,t){D(e,r,t),A(r,i),l||(u=U(a=n[18].call(null,r)),l=!0)},p(e,t){8192&t[0]&&R(i,e[13]),32768&t[0]&&o!==(o="Status "+e[15])&&H(r,"class",o),32768&t[0]&&s!==(s="Status "+e[15])&&H(r,"part",s)},d(e){e&&P(r),l=!1,u()}}}function Zr(e){let n,r=e[5]&&Xr(e);return{c(){r&&r.c(),n=Y()},m(e,t){r&&r.m(e,t),D(e,n,t)},p(e,t){e[5]?r?r.p(e,t):((r=Xr(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&P(n)}}}function Xr(e){let n,r,i=e[16]("tournamentsThumbnail.enrolled")+"";return{c(){n=O("div"),r=F(i),H(n,"class","Enrolled"),H(n,"part","Enrolled")},m(e,t){D(e,n,t),A(n,r)},p(e,t){65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.enrolled")+"")&&R(r,i)},d(e){e&&P(n)}}}function Kr(n){let r,i,o,s,a;return{c(){H(r=O("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),H(r,"part",o="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),f(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){D(e,r,t),s||(a=U(n[18].call(null,r)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&H(r,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&H(r,"part",o)},d(e){e&&P(r),s=!1,a()}}}function qr(n){let r,i,o,s,a;return{c(){H(r=O("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),H(r,"part",o="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),f(r,"background-image","url('"+n[4]+"')")},m(e,t){D(e,r,t),s||(a=U(n[18].call(null,r)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&H(r,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&H(r,"part",o),16&t[0]&&f(r,"background-image","url('"+e[4]+"')")},d(e){e&&P(r),s=!1,a()}}}function Qr(n){let r,i,o,s,a;return{c(){r=O("div"),i=F(n[11]),H(r,"class","Date"),H(r,"part","Date")},m(e,t){D(e,r,t),A(r,i),s||(a=U(o=n[17].call(null,r,n[2])),s=!0)},p(e,t){2048&t[0]&&R(i,e[11]),o&&M(o.update)&&4&t[0]&&o.update.call(null,e[2])},d(e){e&&P(r),s=!1,a()}}}function ei(n){let r,i,o,s,a,l,u,c,h,d,m,f,p,g,y,b,v,w,_,T,S,x,E=n[16]("tournamentsThumbnail.scoreCriteria")+"",M=n[16]("tournamentsThumbnail.minbet")+"",k=n[16]("tournamentsThumbnail.seegames")+"",C=n[16]("tournamentsThumbnail.here")+"";return{c(){r=O("div"),i=O("p"),o=F(E),s=F(":\n \n "),a=O("span"),l=F(n[14]),c=F("\n ("),h=F(M),d=B(),m=F(n[6]),f=F(")"),p=B(),g=O("div"),y=O("p"),b=F(k),v=B(),w=O("a"),_=F(C),H(a,"part","ScoreCriteriaSpan"),H(i,"part","ScoreCriteriaP"),H(r,"class","ScoreCriteria"),H(r,"part","ScoreCriteria"),H(w,"part","GamesAnchor"),H(w,"href",n[8]),H(w,"target",T="true"===n[9]?"_self":"_blank"),H(y,"part","GamesP"),H(g,"class","Games"),H(g,"part","Games")},m(e,t){D(e,r,t),A(r,i),A(i,o),A(i,s),A(i,a),A(a,l),A(i,c),A(i,h),A(i,d),A(i,m),A(i,f),D(e,p,t),D(e,g,t),A(g,y),A(y,b),A(y,v),A(y,w),A(w,_),S||(x=[U(u=n[19].call(null,a)),N(w,"click",n[28])],S=!0)},p(e,t){65536&t[0]&&E!==(E=e[16]("tournamentsThumbnail.scoreCriteria")+"")&&R(o,E),16384&t[0]&&R(l,e[14]),65536&t[0]&&M!==(M=e[16]("tournamentsThumbnail.minbet")+"")&&R(h,M),64&t[0]&&R(m,e[6]),65536&t[0]&&k!==(k=e[16]("tournamentsThumbnail.seegames")+"")&&R(b,k),65536&t[0]&&C!==(C=e[16]("tournamentsThumbnail.here")+"")&&R(_,C),256&t[0]&&H(w,"href",e[8]),512&t[0]&&T!==(T="true"===e[9]?"_self":"_blank")&&H(w,"target",T)},d(e){e&&P(r),e&&P(p),e&&P(g),S=!1,$(x)}}}function ti(n){let r,i,o,s,a,l,u,c,h,d=n[0]&&Jr(n),m="true"==n[7]&&Zr(n);function f(e){return e[4]?qr:Kr}let p=f(n),g=p(n),y=n[2]&&Qr(n),b=n[12]&&ei(n);return{c(){r=O("div"),d&&d.c(),i=B(),m&&m.c(),o=B(),g.c(),s=B(),a=O("div"),l=O("div"),u=F(n[1]),c=B(),y&&y.c(),h=B(),b&&b.c(),this.c=v,H(l,"class","Title"),H(l,"part","Title"),H(a,"class","Details"),H(a,"part","Details"),H(r,"class","Thumbnail"),H(r,"part","Thumbnail")},m(e,t){D(e,r,t),d&&d.m(r,null),A(r,i),m&&m.m(r,null),A(r,o),g.m(r,null),A(r,s),A(r,a),A(a,l),A(l,u),A(a,c),y&&y.m(a,null),A(a,h),b&&b.m(a,null),n[29](r)},p(e,t){e[0]?d?d.p(e,t):((d=Jr(e)).c(),d.m(r,i)):d&&(d.d(1),d=null),"true"==e[7]?m?m.p(e,t):((m=Zr(e)).c(),m.m(r,o)):m&&(m.d(1),m=null),p===(p=f(e))&&g?g.p(e,t):(g.d(1),(g=p(e))&&(g.c(),g.m(r,s))),2&t[0]&&R(u,e[1]),e[2]?y?y.p(e,t):((y=Qr(e)).c(),y.m(a,h)):y&&(y.d(1),y=null),e[12]?b?b.p(e,t):((b=ei(e)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:v,o:v,d(e){e&&P(r),d&&d.d(),m&&m.d(),g.d(),y&&y.d(),b&&b.d(),n[29](null)}}}function ni(t,e,i){let o;se(t,Sr,e=>i(16,o=e));let n,{session:r=""}=e,{userid:s=""}=e,{title:a=""}=e,{startdate:l=""}=e,{status:u=""}=e,{tourid:c=""}=e,{thumbnail:h=""}=e,{userenrolled:d=""}=e,{scorecriteria:m=""}=e,{minbetcount:f=""}=e,{showenrolled:p="false"}=e,{gameurl:g=""}=e,{lang:y="en"}=e,{keepbrowsercontext:b="false"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationUrl:_=""}=e,T="",S=!1,x="",E="",M="";Object.keys(Vr).forEach(e=>{Wr(e,Vr[e])});const k=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&i(12,S=!0),e.data.type=="TournamentStatus_"+c&&i(0,u=e.data.status))},C=()=>{let e=new Date(l),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),n=e.getDate(),r=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});i(11,T=n+" "+o("tournamentsThumbnail."+t)+", "+o("Running"===u?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+r)},$=()=>{"Unstarted"==u&&(i(13,x=o("tournamentsThumbnail.scheduled")),i(15,M="StatusUnstarted")),"Running"==u&&(i(13,x=o("tournamentsThumbnail.ongoing")),i(15,M="StatusRunning")),"Closed"!=u&&"Closing"!=u||i(13,x=o("tournamentsThumbnail.finished")),"Closed"==u&&i(15,M="StatusClosed"),"Closing"==u&&i(15,M="StatusClosing")},A=()=>{"BetCount"==m&&i(14,E=o("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==m&&i(14,E=o("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==m&&i(14,E=o("tournamentsThumbnail.winStakeRatio"))},D=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};ae(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k)}));return t.$$set=e=>{"session"in e&&i(21,r=e.session),"userid"in e&&i(22,s=e.userid),"title"in e&&i(1,a=e.title),"startdate"in e&&i(2,l=e.startdate),"status"in e&&i(0,u=e.status),"tourid"in e&&i(3,c=e.tourid),"thumbnail"in e&&i(4,h=e.thumbnail),"userenrolled"in e&&i(5,d=e.userenrolled),"scorecriteria"in e&&i(23,m=e.scorecriteria),"minbetcount"in e&&i(6,f=e.minbetcount),"showenrolled"in e&&i(7,p=e.showenrolled),"gameurl"in e&&i(8,g=e.gameurl),"lang"in e&&i(24,y=e.lang),"keepbrowsercontext"in e&&i(9,b=e.keepbrowsercontext),"clientstyling"in e&&i(25,v=e.clientstyling),"clientstylingurl"in e&&i(26,w=e.clientstylingurl),"translationUrl"in e&&i(27,_=e.translationUrl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&n&&v){let e=document.createElement("style");e.innerHTML=v,n.appendChild(e)}if(67109888&t.$$.dirty[0]&&n&&w){let e=new URL(w),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,n&&(setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500))})}var e;134217728&t.$$.dirty[0]&&_&&fetch(_).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Wr(e,t[e])})}).catch(e=>{console.log(e)}),2097152&t.$$.dirty[0]&&r&&(0<r.length&&"false"!=r?i(12,S=!0):i(12,S=!1)),1&t.$$.dirty[0]&&u&&$(),16777218&t.$$.dirty[0]&&y&&a&&(e=y,oe.set(e),A(),$(),l&&C()),4&t.$$.dirty[0]&&l&&C(),8388608&t.$$.dirty[0]&&m&&A()},[u,a,l,c,h,d,f,p,g,b,n,T,S,x,E,M,o,C,$,A,D,r,s,m,y,v,w,_,()=>D(),function(e){ie[e?"unshift":"push"](()=>{n=e,i(10,n)})}]}function ri(e,t){rr(e,t)}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:'Roboto'}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url(\"https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png\");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}</style>",ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},ni,ti,t,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationUrl:27},null,[-1,-1]),e&&(e.target&&D(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationUrl"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),g()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),g()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),g()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),g()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),g()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),g()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),g()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),g()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),g()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),g()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationUrl(){return this.$$.ctx[27]}set translationUrl(e){this.$$set({translationUrl:e}),g()}});const ii={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},zh:{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Terminado",starting:"A partir de ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function oi(n){let r,i,o,s,a,l,u,c,h,d,m,f,p,g=n[10](n[0])+"",y=n[10](n[1])+"";function b(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?li:0<e[5]?ai:si}let v=b(n),w=v(n);function _(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?hi:0<e[5]?ci:0<e[4]?ui:void 0}let T=_(n),S=T&&T(n);return{c(){r=O("div"),i=O("div"),o=F(g),s=B(),a=O("div"),l=F(y),u=B(),c=O("div"),h=O("div"),w.c(),d=B(),S&&S.c(),H(i,"class","StartDate"),H(i,"part","StartDate"),H(a,"class","EndDate"),H(a,"part","EndDate"),H(r,"class","TournamentDates"),H(r,"part","TournamentDates"),H(h,"class","ProgressBar"),H(h,"part","ProgressBar"),H(c,"class","ProgressBarWrapper"),H(c,"part","ProgressBarWrapper")},m(e,t){D(e,r,t),A(r,i),A(i,o),A(r,s),A(r,a),A(a,l),D(e,u,t),D(e,c,t),A(c,h),w.m(h,null),A(h,d),S&&S.m(h,null),f||(p=U(m=n[9].call(null,c)),f=!0)},p(e,t){1&t&&g!==(g=e[10](e[0])+"")&&R(o,g),2&t&&y!==(y=e[10](e[1])+"")&&R(l,y),v===(v=b(e))&&w?w.p(e,t):(w.d(1),(w=v(e))&&(w.c(),w.m(h,d))),T===(T=_(e))&&S?S.p(e,t):(S&&S.d(1),(S=T&&T(e))&&(S.c(),S.m(h,null)))},d(e){e&&P(r),e&&P(u),e&&P(c),w.d(),S&&S.d(),f=!1,p()}}}function si(e){let n;return{c(){H(n=O("div"),"class","ProgressBarFill"),H(n,"part","ProgressBarFill"),f(n,"width",e[7]()+"%")},m(e,t){D(e,n,t)},p(e,t){128&t&&f(n,"width",e[7]()+"%")},d(e){e&&P(n)}}}function ai(e){let n;return{c(){H(n=O("div"),"class","ProgressBarFillStarting"),H(n,"part","ProgressBarFillStarting")},m(e,t){D(e,n,t)},p:v,d(e){e&&P(n)}}}function li(e){let n;return{c(){H(n=O("div"),"class","ProgressBarFillEnd"),H(n,"part","ProgressBarFillEnd")},m(e,t){D(e,n,t)},p:v,d(e){e&&P(n)}}}function ui(e){let n,r,i,o,s=e[8]("tournamentsDuration.left")+"";return{c(){n=O("div"),r=F(e[6]),i=B(),o=F(s),H(n,"class","Remaining"),H(n,"part","Remaining")},m(e,t){D(e,n,t),A(n,r),A(n,i),A(n,o)},p(e,t){64&t&&R(r,e[6]),256&t&&s!==(s=e[8]("tournamentsDuration.left")+"")&&R(o,s)},d(e){e&&P(n)}}}function ci(e){let n,r,i,o,s=e[8]("tournamentsDuration.starting")+"",a=e[11](e[5])+"";return{c(){n=O("div"),r=F(s),i=B(),o=F(a),H(n,"class","Remaining"),H(n,"part","Remaining")},m(e,t){D(e,n,t),A(n,r),A(n,i),A(n,o)},p(e,t){256&t&&s!==(s=e[8]("tournamentsDuration.starting")+"")&&R(r,s),32&t&&a!==(a=e[11](e[5])+"")&&R(o,a)},d(e){e&&P(n)}}}function hi(e){let n,r,i=e[8]("tournamentsDuration.finished")+"";return{c(){n=O("div"),r=F(i),H(n,"class","Finished"),H(n,"part","Finished")},m(e,t){D(e,n,t),A(n,r)},p(e,t){256&t&&i!==(i=e[8]("tournamentsDuration.finished")+"")&&R(r,i)},d(e){e&&P(n)}}}function di(n){let r,i=n[0]&&n[1]&&oi(n);return{c(){r=O("div"),i&&i.c(),this.c=v,H(r,"class","TournamentDuration"),H(r,"part","TournamentDuration")},m(e,t){D(e,r,t),i&&i.m(r,null),n[16](r)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=oi(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&P(r),i&&i.d(),n[16](null)}}}function mi(e,t,n){let r,i;se(e,Sr,e=>n(8,i=e));let o,{startdate:s=""}=t,{enddate:a=""}=t,{status:l=""}=t,{lang:u="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,{translationUrl:d=""}=t,m="",f="",p="";Object.keys(ii).forEach(e=>{ri(e,ii[e])});const g=e=>new Date(e).getTime(),y=(e,t)=>(g(t)-g(e))/6e4,b=()=>{var e=new Date;n(4,m=y(e,a)),n(5,f=y(e,s)),n(6,p=v(m))},v=e=>{if(e<1440){const t=e%60;return[e/60,t,60*(t-Math.floor(t))].map(e=>{e=Math.floor(e);return e<10?"0"+e:""+e}).join(":")}return Math.ceil(e/1440)+" "+i("tournamentsDuration.days")};return ae(()=>{const e=setInterval(()=>{s&&a&&b()},1e3);return()=>clearInterval(e)}),e.$$set=e=>{"startdate"in e&&n(0,s=e.startdate),"enddate"in e&&n(1,a=e.enddate),"status"in e&&n(2,l=e.status),"lang"in e&&n(12,u=e.lang),"clientstyling"in e&&n(13,c=e.clientstyling),"clientstylingurl"in e&&n(14,h=e.clientstylingurl),"translationUrl"in e&&n(15,d=e.translationUrl)},e.$$.update=()=>{if(8200&e.$$.dirty&&o&&c){let e=document.createElement("style");e.innerHTML=c,o.appendChild(e)}if(16392&e.$$.dirty&&o&&h){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,o&&(setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500))})}19&e.$$.dirty&&n(7,r=()=>{if(m<=0)return 100;var e=y(s,a),t=100/e;return Math.floor((e-m)*t)}),19&e.$$.dirty&&s&&a&&b(),4096&e.$$.dirty&&u&&b(),4112&e.$$.dirty&&u&&v(m),32768&e.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ri(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,l,o,m,f,p,r,i,b,e=>{let t=new Date(e),n=new Intl.DateTimeFormat(u,{month:"long"}).format(t);return`${t.getDate()} ${n}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+t.getUTCFullYear()},v,u,c,h,d,function(e){ie[e?"unshift":"push"](()=>{o=e,n(3,o)})}]}function fi(e,t){rr(e,t)}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}</style>",ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},mi,di,t,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationUrl:15},null),e&&(e.target&&D(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationUrl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),g()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),g()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),g()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),g()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationUrl(){return this.$$.ctx[15]}set translationUrl(e){this.$$set({translationUrl:e}),g()}});const pi={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},zh:{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function gi(e,t,n){const r=e.slice();return r[13]=t[n],r[15]=n,r}function yi(t){let r,i=t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=vi(gi(t,i,e));let s=null;return i.length||(s=bi(t)),{c(){r=O("div");for(let e=0;e<o.length;e+=1)o[e].c();s&&s.c(),H(r,"class","Prizes"),H(r,"part","Prizes")},m(e,t){D(e,r,t);for(let e=0;e<o.length;e+=1)o[e].m(r,null);s&&s.m(r,null)},p(t,n){if(6&n){let e;for(i=t[1],e=0;e<i.length;e+=1){const s=gi(t,i,e);o[e]?o[e].p(s,n):(o[e]=vi(s),o[e].c(),o[e].m(r,null))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,n):i.length?s&&(s.d(1),s=null):((s=bi(t)).c(),s.m(r,null))}},d(e){e&&P(r),z(o,e),s&&s.d()}}}function bi(e){let n,r,i=e[2]("tournamentsPrizes.noprizes")+"";return{c(){n=O("p"),r=F(i)},m(e,t){D(e,n,t),A(n,r)},p(e,t){4&t&&i!==(i=e[2]("tournamentsPrizes.noprizes")+"")&&R(r,i)},d(e){e&&P(n)}}}function vi(e){let n,r,i,o,s,a,l,u,c,t,h,d=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"",m=e[2]("tournamentsPrizes.place")+"",f=e[13].name+"";return{c(){n=O("div"),r=O("p"),i=O("span"),o=F(d),s=B(),a=F(m),l=F(": "),u=F(f),c=B(),H(i,"class","PrizeRank"),H(i,"part","PrizeRank"),H(r,"class","PrizeText"),H(r,"part","PrizeText"),H(n,"class",t="Prize Prize"+e[15]),H(n,"part",h="Prize Prize"+e[15])},m(e,t){D(e,n,t),A(n,r),A(r,i),A(i,o),A(r,s),A(r,a),A(r,l),A(r,u),A(n,c)},p(e,t){2&t&&d!==(d=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"")&&R(o,d),4&t&&m!==(m=e[2]("tournamentsPrizes.place")+"")&&R(a,m),2&t&&f!==(f=e[13].name+"")&&R(u,f)},d(e){e&&P(n)}}}function wi(n){let r,i,o,s,a,l,u,c=n[2]("tournamentsPrizes.prizes")+"",h=n[1]&&yi(n);return{c(){r=O("div"),i=O("div"),(o=O("span")).innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',s=B(),a=O("p"),l=F(c),u=B(),h&&h.c(),this.c=v,H(o,"class","TournamentPrizesIconWrapper"),H(o,"part","TournamentPrizesIconWrapper"),H(a,"class","PrizesTitle"),H(a,"part","PrizesTitle"),H(i,"class","TournamentPrizesIconSection"),H(i,"part","TournamentPrizesIconSection"),H(r,"class","TournamentPrizes"),H(r,"part","TournamentPrizes")},m(e,t){D(e,r,t),A(r,i),A(i,o),A(i,s),A(i,a),A(a,l),A(r,u),h&&h.m(r,null),n[7](r)},p(e,[t]){4&t&&c!==(c=e[2]("tournamentsPrizes.prizes")+"")&&R(l,c),e[1]?h?h.p(e,t):((h=yi(e)).c(),h.m(r,null)):h&&(h.d(1),h=null)},i:v,o:v,d(e){e&&P(r),h&&h.d(),n[7](null)}}}function _i(e,t,n){let r;se(e,Sr,e=>n(2,r=e));let i,o,{tourid:s=""}=t,{clientstyling:a=""}=t,{clientstylingurl:l=""}=t,{translationUrl:u=""}=t;Object.keys(pi).forEach(e=>{fi(e,pi[e])});const c=e=>{e.data&&e.data.type=="TournamentPrizes_"+s&&n(1,o=e.data.prizes)};return ae(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),e.$$set=e=>{"tourid"in e&&n(3,s=e.tourid),"clientstyling"in e&&n(4,a=e.clientstyling),"clientstylingurl"in e&&n(5,l=e.clientstylingurl),"translationUrl"in e&&n(6,u=e.translationUrl)},e.$$.update=()=>{if(17&e.$$.dirty&&i&&a){let e=document.createElement("style");e.innerHTML=a,i.appendChild(e)}if(33&e.$$.dirty&&i&&l){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,i&&(setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500))})}64&e.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{fi(e,t[e])})}).catch(e=>{console.log(e)})},[i,o,r,s,a,l,u,function(e){ie[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}function Ti(e,t){rr(e,t)}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}</style>",ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},_i,wi,t,{tourid:3,clientstyling:4,clientstylingurl:5,translationUrl:6},null),e&&(e.target&&D(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl","translationUrl"]}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),g()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationUrl(){return this.$$.ctx[6]}set translationUrl(e){this.$$set({translationUrl:e}),g()}});const Si={en:{gamesSlider:{playNow:"Play now"}},zh:{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Reproducir ahora"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function xi(e,t,n){const r=e.slice();return r[40]=t[n],r[42]=n,r}function Ei(n){let i,r,o,s,a,l,u,c,h=n[0],d=[];for(let e=0;e<h.length;e+=1)d[e]=Mi(xi(n,h,e));return{c(){(i=O("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',r=B(),o=O("main"),s=O("div");for(let e=0;e<d.length;e+=1)d[e].c();a=B(),(l=O("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',H(i,"class","SliderNavButton"),H(i,"part","SliderNavButton"),j(i,"disabled",n[6]),H(s,"class","items"),H(s,"part","items"),f(s,"transform","translateX("+n[1]+"px)"),H(l,"class","SliderNavButton"),H(l,"part","SliderNavButton"),j(l,"disabled",n[7])},m(e,t){D(e,i,t),D(e,r,t),D(e,o,t),A(o,s);for(let e=0;e<d.length;e+=1)d[e].m(s,null);n[23](s),D(e,a,t),D(e,l,t),u||(c=[N(i,"click",n[19]),N(l,"click",n[24])],u=!0)},p(t,n){if(64&n[0]&&j(i,"disabled",t[6]),5913&n[0]){let e;for(h=t[0],e=0;e<h.length;e+=1){var r=xi(t,h,e);d[e]?d[e].p(r,n):(d[e]=Mi(r),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=h.length}2&n[0]&&f(s,"transform","translateX("+t[1]+"px)"),128&n[0]&&j(l,"disabled",t[7])},d(e){e&&P(i),e&&P(r),e&&P(o),z(d,e),n[23](null),e&&P(a),e&&P(l),u=!1,$(c)}}}function Mi(n){let r,i,o,s,a,l,u,c,h,d,m,f,p,g=n[8]("gamesSlider.playNow")+"";function y(){return n[20](n[40])}function b(){return n[21](n[42])}return{c(){r=O("div"),i=O("span"),o=F(g),l=B(),u=O("img"),m=B(),H(i,"class",s="PlayNowButton "+(n[3]&&n[4]==n[42]?"itemHover":"")),H(i,"part",a="PlayNowButton "+(n[3]&&n[4]==n[42]?"itemHover":"")),L(u.src,c=n[40].thumbnail)||H(u,"src",c),H(u,"width","132px"),H(u,"height","100px"),H(u,"alt",h=n[40].name),H(u,"title",d=n[40].name),H(r,"class","item"),H(r,"part","item")},m(e,t){D(e,r,t),A(r,i),A(i,o),A(r,l),A(r,u),A(r,m),f||(p=[N(r,"click",y),N(r,"mouseenter",b),N(r,"mouseleave",n[22])],f=!0)},p(e,t){n=e,256&t[0]&&g!==(g=n[8]("gamesSlider.playNow")+"")&&R(o,g),24&t[0]&&s!==(s="PlayNowButton "+(n[3]&&n[4]==n[42]?"itemHover":""))&&H(i,"class",s),24&t[0]&&a!==(a="PlayNowButton "+(n[3]&&n[4]==n[42]?"itemHover":""))&&H(i,"part",a),1&t[0]&&!L(u.src,c=n[40].thumbnail)&&H(u,"src",c),1&t[0]&&h!==(h=n[40].name)&&H(u,"alt",h),1&t[0]&&d!==(d=n[40].name)&&H(u,"title",d)},d(e){e&&P(r),f=!1,$(p)}}}function ki(n){let r,i=n[0]&&Ei(n);return{c(){r=O("div"),i&&i.c(),this.c=v,H(r,"class","TournamentsGamesSlider"),H(r,"part","TournamentsGamesSlider")},m(e,t){D(e,r,t),i&&i.m(r,null),n[25](r)},p(e,t){e[0]?i?i.p(e,t):((i=Ei(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&P(r),i&&i.d(),n[25](null)}}}function Ci(e,t,n){let r,i,o;se(e,Sr,e=>n(8,o=e));let s,a,l,u,{tournamenturl:c=""}=t,{scrollby:h="3"}=t,{pagfactor:d="175"}=t,{lang:m=""}=t,{translationUrl:f=""}=t,p=window.navigator.userAgent,g=[],y=0,b=null,v=null,w=!1,_=0;Object.keys(Si).forEach(e=>{Ti(e,Si[e])});const T=e=>{n(3,w=!0),n(4,l=e)},S=()=>{n(3,w=!1),n(4,l=-1)},x=e=>{e=(e.touches||e.originalEvent.touches)[0];b=e.clientX,v=e.clientY},E=e=>{var t;b&&v&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=b-t,e=v-e,Math.abs(t)>Math.abs(e)&&M(0<t?1:-1),b=null,v=null)},M=e=>{0<e&&!i?(n(1,y-=s),n(1,y=y<_?_:y)):e<0&&!r&&(n(1,y+=s),n(1,y=0<y?0:y))},k=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};return ae(()=>(s=parseInt(h,10)*parseInt(d,10),()=>{a.removeEventListener("touchstart",x),a.removeEventListener("touchmove",E)})),e.$$set=e=>{"tournamenturl"in e&&n(14,c=e.tournamenturl),"scrollby"in e&&n(15,h=e.scrollby),"pagfactor"in e&&n(13,d=e.pagfactor),"lang"in e&&n(16,m=e.lang),"translationUrl"in e&&n(17,f=e.translationUrl)},e.$$.update=()=>{if(2&e.$$.dirty[0]&&n(6,r=0===y),262146&e.$$.dirty[0]&&n(7,i=y<=_),16384&e.$$.dirty[0]&&c){let e=new URL(c),t=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${y})`),e.searchParams.append("fields","games(id,name,thumbnail)"),e.searchParams.append("language",m),e.searchParams.append("platform",xr(p)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{n(0,g=e.item.games.items),e.item.games.total})}4&e.$$.dirty[0]&&a&&(a.addEventListener("touchstart",x,{passive:!0}),a.addEventListener("touchmove",E,{passive:!0})),131072&e.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ti(e,t[e])})}).catch(e=>{console.log(e)}),1&e.$$.dirty[0]&&g.length&&setTimeout(()=>{n(18,_=-1*(u.scrollWidth-u.clientWidth)),n(13,d=new String(u.scrollWidth/g.length)),s=parseInt(h,10)*parseFloat(d,2).toFixed(2)},1e3)},n(1,y=0),[g,y,a,w,l,u,r,i,o,T,S,M,k,d,c,h,m,f,_,()=>M(-1),e=>k(e),e=>T(e),()=>S(),function(e){ie[e?"unshift":"push"](()=>{u=e,n(5,u)})},()=>M(1),function(e){ie[e?"unshift":"push"](()=>{a=e,n(2,a)})}]}function $i(n){let r,i,o,s,a,l,u,c,h,d=n[11]&&Di(n);function m(e){return e[11]?"Closed"!=e[20]&&"Closing"!=e[20]?Fi:"true"==e[3]?Oi:void 0:Bi}let f=m(n),p=f&&f(n),g=(n[14]||n[16])&&zi(n),y="true"==n[4]&&Yi(n);return{c(){r=O("div"),i=O("casino-tournaments-thumbnail"),o=B(),d&&d.c(),s=B(),a=O("div"),p&&p.c(),l=B(),g&&g.c(),u=B(),y&&y.c(),b(i,"session",n[0]),b(i,"userid",n[1]),b(i,"title",n[17]),b(i,"status",n[20]),b(i,"startdate",n[18]),b(i,"tourid",n[21]),b(i,"scorecriteria",n[24]),b(i,"minbetcount",n[25]),b(i,"thumbnail",n[22]),b(i,"userenrolled",n[23]),b(i,"showenrolled",n[5]),b(i,"gameurl",n[27]),b(i,"lang",n[8]),b(i,"keepbrowsercontext",n[9]),b(i,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),H(a,"class","TournamentButtons"),H(a,"part","TournamentButtons"),H(r,"class",c="TournamentCard "+(n[6]?"CardMaxWidth":"")+(n[7]?"CardFullSize":"")+" "+(n[28]?"elementToFadeOut":"elementToFadeIn")),H(r,"part",h="TournamentCard "+(n[6]?"CardMaxWidth":"")+(n[7]?"CardFullSize":"")+" "+(n[28]?"elementToFadeOut":"elementToFadeIn")+" "+(n[28]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){D(e,r,t),A(r,i),A(r,o),d&&d.m(r,null),A(r,s),A(r,a),p&&p.m(a,null),A(r,l),g&&g.m(r,null),A(r,u),y&&y.m(r,null),n[51](r)},p(e,t){1&t[0]&&b(i,"session",e[0]),2&t[0]&&b(i,"userid",e[1]),131072&t[0]&&b(i,"title",e[17]),1048576&t[0]&&b(i,"status",e[20]),262144&t[0]&&b(i,"startdate",e[18]),2097152&t[0]&&b(i,"tourid",e[21]),16777216&t[0]&&b(i,"scorecriteria",e[24]),33554432&t[0]&&b(i,"minbetcount",e[25]),4194304&t[0]&&b(i,"thumbnail",e[22]),8388608&t[0]&&b(i,"userenrolled",e[23]),32&t[0]&&b(i,"showenrolled",e[5]),134217728&t[0]&&b(i,"gameurl",e[27]),256&t[0]&&b(i,"lang",e[8]),512&t[0]&&b(i,"keepbrowsercontext",e[9]),e[11]?d?d.p(e,t):((d=Di(e)).c(),d.m(r,s)):d&&(d.d(1),d=null),f===(f=m(e))&&p?p.p(e,t):(p&&p.d(1),(p=f&&f(e))&&(p.c(),p.m(a,null))),e[14]||e[16]?g?g.p(e,t):((g=zi(e)).c(),g.m(r,u)):g&&(g.d(1),g=null),"true"==e[4]?y?y.p(e,t):((y=Yi(e)).c(),y.m(r,null)):y&&(y.d(1),y=null),268435648&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&H(r,"class",c),268435648&t[0]&&h!==(h="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&H(r,"part",h)},d(e){e&&P(r),d&&d.d(),p&&p.d(),g&&g.d(),y&&y.d(),n[51](null)}}}function Ai(e){let n,r,i,o;return{c(){n=O("div"),(r=O("div")).innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> \n <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> \n <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> \n <div class="ph-col-4" part="ph-col-4"></div> \n <div class="ph-col-8 empty" part="ph-col-8 empty"></div> \n <div class="ph-col-6" part="ph-col-6"></div> \n <div class="ph-col-6 empty" part="ph-col-6 empty"></div> \n <div class="ph-col-12" part="ph-col-12"></div></div></div>',H(r,"class","ph-item"),H(r,"part","ph-item"),H(n,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")),H(n,"part",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){D(e,n,t),A(n,r)},p(e,t){268435648&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&H(n,"class",i),268435648&t[0]&&o!==(o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&H(n,"part",o)},d(e){e&&P(n)}}}function Di(e){let n,r,i=e[21]&&Pi(e);return{c(){i&&i.c(),n=B(),b(r=O("casino-tournaments-thumbnail-duration"),"status",e[20]),b(r,"startdate",e[18]),b(r,"lang",e[8]),b(r,"enddate",e[19]),b(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),D(e,n,t),D(e,r,t)},p(e,t){e[21]?i?i.p(e,t):((i=Pi(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),1048576&t[0]&&b(r,"status",e[20]),262144&t[0]&&b(r,"startdate",e[18]),256&t[0]&&b(r,"lang",e[8]),524288&t[0]&&b(r,"enddate",e[19])},d(e){i&&i.d(e),e&&P(n),e&&P(r)}}}function Pi(n){let r,i,o,s;return{c(){b(r=O("casino-tournaments-thumbnail-prizes"),"tourid",n[21]),b(r,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){D(e,r,t),o||(s=U(i=n[34].call(null,r,n[21])),o=!0)},p(e,t){2097152&t[0]&&b(r,"tourid",e[21]),i&&M(i.update)&&2097152&t[0]&&i.update.call(null,e[21])},d(e){e&&P(r),o=!1,s()}}}function Oi(n){let r,i,o,s,a=n[29]("tournamentsThController.details")+"";return{c(){r=O("button"),i=F(a),H(r,"class","DetailsLargeButton"),H(r,"part","DetailsLargeButton")},m(e,t){D(e,r,t),A(r,i),o||(s=N(r,"click",n[50]),o=!0)},p(e,t){536870912&t[0]&&a!==(a=e[29]("tournamentsThController.details")+"")&&R(i,a)},d(e){e&&P(r),o=!1,s()}}}function Fi(e){let n,r,i="true"==e[3]&&Ni(e);function o(e){return 1==e[23]?Ri:Hi}let s=o(e),a=s(e);return{c(){i&&i.c(),n=B(),a.c(),r=Y()},m(e,t){i&&i.m(e,t),D(e,n,t),a.m(e,t),D(e,r,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=Ni(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),s===(s=o(e))&&a?a.p(e,t):(a.d(1),(a=s(e))&&(a.c(),a.m(r.parentNode,r)))},d(e){i&&i.d(e),e&&P(n),a.d(e),e&&P(r)}}}function Bi(n){let r,i,o,s,a,l,u,c=n[29]("tournamentsThController.login")+"",h=n[29]("tournamentsThController.register")+"";return{c(){r=O("button"),i=F(c),o=B(),s=O("button"),a=F(h),H(r,"class","LoginButton"),H(r,"part","LoginButton"),H(s,"class","RegisterButton"),H(s,"part","RegisterButton")},m(e,t){D(e,r,t),A(r,i),D(e,o,t),D(e,s,t),A(s,a),l||(u=[N(r,"click",n[46]),N(s,"click",n[47])],l=!0)},p(e,t){536870912&t[0]&&c!==(c=e[29]("tournamentsThController.login")+"")&&R(i,c),536870912&t[0]&&h!==(h=e[29]("tournamentsThController.register")+"")&&R(a,h)},d(e){e&&P(r),e&&P(o),e&&P(s),l=!1,$(u)}}}function Ni(n){let r,i,o,s,a=n[29]("tournamentsThController.details")+"";return{c(){r=O("button"),i=F(a),H(r,"class","DetailsButton"),H(r,"part","DetailsButton")},m(e,t){D(e,r,t),A(r,i),o||(s=N(r,"click",n[48]),o=!0)},p(e,t){536870912&t[0]&&a!==(a=e[29]("tournamentsThController.details")+"")&&R(i,a)},d(e){e&&P(r),o=!1,s()}}}function Hi(n){let r,i,o,s,a;function l(e){return 1==e[13]?Ii:Li}let u=l(n),c=u(n);return{c(){r=O("button"),c.c(),H(r,"class",i="JoinButton "+(n[7]?"JoinButtonFullSize":"")),H(r,"part",o="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[14]},m(e,t){D(e,r,t),c.m(r,null),s||(a=N(r,"click",n[49]),s=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(r,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&H(r,"class",i),128&t[0]&&o!==(o="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&H(r,"part",o),16384&t[0]&&(r.disabled=e[14])},d(e){e&&P(r),c.d(),s=!1,a()}}}function Ri(e){let n,r="true"==e[3]&&Ui(e);return{c(){r&&r.c(),n=Y()},m(e,t){r&&r.m(e,t),D(e,n,t)},p(e,t){"true"==e[3]?r?r.p(e,t):((r=Ui(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&P(n)}}}function Li(e){let n,r,i,o,s,a,l,u,c,h=e[29]("tournamentsThController.join")+"";return{c(){n=O("span"),r=F(h),i=B(),o=d("svg"),s=d("defs"),a=d("style"),l=F(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=d("g"),c=d("path"),H(n,"part","JoinButtonSpan"),H(c,"class","a"),H(c,"part","a JoinButtonSvgA"),H(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),H(c,"transform","translate(26 26) rotate(180)"),H(u,"transform","translate(26 26) rotate(180)"),H(o,"part","JoinButtonSvg"),H(o,"xmlns","http://www.w3.org/2000/svg"),H(o,"width","26"),H(o,"height","26"),H(o,"viewBox","0 0 26 26")},m(e,t){D(e,n,t),A(n,r),D(e,i,t),D(e,o,t),A(o,s),A(s,a),A(a,l),A(o,u),A(u,c)},p(e,t){536870912&t[0]&&h!==(h=e[29]("tournamentsThController.join")+"")&&R(r,h)},d(e){e&&P(n),e&&P(i),e&&P(o)}}}function Ii(e){let n,r;return{c(){n=d("svg"),H(r=d("circle"),"cx","20"),H(r,"cy","20"),H(r,"r","18"),H(n,"class","spinner"),H(n,"part","spinner")},m(e,t){D(e,n,t),A(n,r)},p:v,d(e){e&&P(n)}}}function Ui(e){let n,r,i=e[29]("tournamentsThController.enrolled")+"";return{c(){n=O("button"),r=F(i),H(n,"class","EnrolledButton"),H(n,"part","EnrolledButton"),n.disabled=!0},m(e,t){D(e,n,t),A(n,r)},p(e,t){536870912&t[0]&&i!==(i=e[29]("tournamentsThController.enrolled")+"")&&R(r,i)},d(e){e&&P(n)}}}function zi(e){let n,r,i,o,s=e[29]("tournamentsThController.joinerror")+"";return{c(){n=O("span"),r=F(s),i=B(),o=F(e[15]),H(n,"class","ErrorText"),H(n,"part","ErrorText")},m(e,t){D(e,n,t),A(n,r),A(n,i),A(n,o)},p(e,t){536870912&t[0]&&s!==(s=e[29]("tournamentsThController.joinerror")+"")&&R(r,s),32768&t[0]&&R(o,e[15])},d(e){e&&P(n)}}}function Yi(e){let n;return{c(){b(n=O("casino-tournaments-thumbnail-games-slider"),"tournamenturl",e[2]),b(n,"lang",e[8]),b(n,"scrollby","2"),b(n,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){D(e,n,t)},p(e,t){4&t[0]&&b(n,"tournamenturl",e[2]),256&t[0]&&b(n,"lang",e[8])},d(e){e&&P(n)}}}function ji(e){let n;function r(e){return e[12]?Ai:e[17]?$i:void 0}let i=r(e),o=i&&i(e);return{c(){o&&o.c(),n=Y(),this.c=v},m(e,t){o&&o.m(e,t),D(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o&&o.d(1),(o=i&&i(e))&&(o.c(),o.m(n.parentNode,n)))},i:v,o:v,d(e){o&&o.d(e),e&&P(n)}}}function Gi(e,t,u){let n;se(e,Sr,e=>u(29,n=e));let r,i,o,s,a,c,l,h,d,N,m,{session:f=""}=t,{userid:H=""}=t,{tournamenturl:p=""}=t,g=t["touridx"],{endpoint:y=""}=t,{showdetails:R=""}=t,{showslider:L=""}=t,{showenrolled:I=""}=t,{maxwidth:U=""}=t,{fullsize:z=""}=t,{lang:b=""}=t,{loginevent:v=""}=t,{registerevent:w=""}=t,{loginurl:_=""}=t,{registerurl:T=""}=t,{currency:S=""}=t,{keepbrowsercontext:Y="false"}=t,{clientstyling:x=""}=t,{clientstylingurl:E=""}=t,{translationUrl:M=""}=t,k=!1,C="",$=!0,j=window.navigator.userAgent,A=!1,D=!1,G="There was an error while trying to join the tournament",P=!1,W=[],O=[],V="#",F=!1;var J,Z;({withLocale:J,translations:Z}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(tr.set(Z),oe.set(J))}),Object.keys(Gr).forEach(e=>{jr(e,Gr[e])});const X=e=>{q(e),re(e),ne(this,c)},K=n=>{if(n.data&&"UserSessionID"==n.data.type&&(u(11,k=!0),C=n.data.session),"UpdateTournamentView"==n.data.type){var e=n.data.tournamentData;if(c&&c!=e.id)return;X(e)}if(n.data&&n.data.type=="UpdateSingleTournament_"+g){let e=n.data.tournamentData,t=g<4?100*g:300*Math.random()+300;u(28,F=1==g),setTimeout(()=>{u(28,F=!0),u(21,c=e.id),X(e)},t),setTimeout(()=>{u(28,F=!1)},200+t)}},q=e=>{e.state!=a&&(u(20,a=e.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},Q=()=>{v&&(window.postMessage({type:v,transition:"Login"},window.location.href),"function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),_&&(window.location=_)},ee=()=>{w&&(window.postMessage({type:w,transition:"Register"},window.location.href),"function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),T&&(window.location=T)},B=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},te=async(t,e)=>{u(14,D=!1),u(16,P=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(13,A=!0);let n=new URL(y+"/bonus/claim"),r=new Headers,i={},o=(n.searchParams.append("language",b),n.searchParams.append("platform",xr(j)),r.append("Content-Type","application/json"),r.append("X-SessionID",C),e&&1<=e.length&&(i={language:b,bonusCode:e[0].code,currency:S}),{method:"PUT",headers:r,body:JSON.stringify(i)});const s=()=>{u(13,A=!1),u(23,h=!0)},a=e=>{u(13,A=!1),e&&u(15,G=e),u(14,D=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(n,o)).json()}catch(e){a()}return e})();if(l)if(1==l.success)s();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(y+"/tournaments/"+c,{headers:{"X-SessionID":f}})).json())?void 0:e.item)&&t.playerEnrolled?s():(a(l.errorMessage),u(16,P=!0),u(14,D=!1))}else a(l.errorMessage)},ne=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:W},window.location.href)},re=e=>{e&&(u(17,i=e.nameOrTitle||""),u(18,o=e.startTime),u(19,s=e.endTime),u(20,a=e.state),u(21,c=e.id),u(22,l=e.thumbnail),u(23,h=e.playerEnrolled||!1),u(24,d=e.scoreCriteria),u(25,N=e.minBetCount),W=e.prizes,u(26,O=e.wallets||[]),u(27,V=e.termsUrl||"#"))};return ae(()=>(u(12,$=!1),window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),e.$$set=e=>{"session"in e&&u(0,f=e.session),"userid"in e&&u(1,H=e.userid),"tournamenturl"in e&&u(2,p=e.tournamenturl),"touridx"in e&&u(35,g=e.touridx),"endpoint"in e&&u(36,y=e.endpoint),"showdetails"in e&&u(3,R=e.showdetails),"showslider"in e&&u(4,L=e.showslider),"showenrolled"in e&&u(5,I=e.showenrolled),"maxwidth"in e&&u(6,U=e.maxwidth),"fullsize"in e&&u(7,z=e.fullsize),"lang"in e&&u(8,b=e.lang),"loginevent"in e&&u(37,v=e.loginevent),"registerevent"in e&&u(38,w=e.registerevent),"loginurl"in e&&u(39,_=e.loginurl),"registerurl"in e&&u(40,T=e.registerurl),"currency"in e&&u(41,S=e.currency),"keepbrowsercontext"in e&&u(9,Y=e.keepbrowsercontext),"clientstyling"in e&&u(42,x=e.clientstyling),"clientstylingurl"in e&&u(43,E=e.clientstylingurl),"translationUrl"in e&&u(44,M=e.translationUrl)},e.$$.update=()=>{if(1024&e.$$.dirty[0]|2048&e.$$.dirty[1]&&r&&x){let e=document.createElement("style");e.innerHTML=x,r.appendChild(e)}if(1024&e.$$.dirty[0]|4096&e.$$.dirty[1]&&r&&E){let e=new URL(E),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,r&&(setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500))})}if(8192&e.$$.dirty[1]&&M&&fetch(M).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{jr(e,t[e])})}).catch(e=>{console.log(e)}),1&e.$$.dirty[0]&&f&&(0<f.length&&"false"!=f?(C=f,u(11,k=!0)):u(11,k=!1)),260&e.$$.dirty[0]&&u(45,m=p&&b),16384&e.$$.dirty[1]&&m){u(12,$=!0);{var n=p;u(12,$=!0);let e=new URL(n),t=new Headers;e.searchParams.append("language",b),e.searchParams.append("platform",xr(j)),k&&t.append("X-SessionID",C),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{u(12,$=!1),re(e.item)})}}},[f,H,p,R,L,I,U,z,b,Y,r,k,$,A,D,G,P,i,o,s,a,c,l,h,d,N,O,V,F,n,Q,ee,B,te,ne,g,y,v,w,_,T,S,x,E,M,m,()=>Q(),()=>ee(),()=>B(c),()=>te(c,O),()=>B(c),function(e){ie[e?"unshift":"push"](()=>{r=e,u(10,r)})}]}function Wi(e,t,n){const r=e.slice();return r[30]=t[n],r[32]=n,r}function Vi(t){let r,i=t[12],o=[];for(let e=0;e<i.length;e+=1)o[e]=Zi(Wi(t,i,e));let s=null;return i.length||(s=Ji(t)),{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=Y(),s&&s.c()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);D(t,r,n),s&&s.m(t,n)},p(t,n){if(13311&n[0]){let e;for(i=t[12],e=0;e<i.length;e+=1){const s=Wi(t,i,e);o[e]?o[e].p(s,n):(o[e]=Zi(s),o[e].c(),o[e].m(r.parentNode,r))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,n):i.length?s&&(s.d(1),s=null):((s=Ji(t)).c(),s.m(r.parentNode,r))}},d(e){z(o,e),e&&P(r),s&&s.d(e)}}}function Ji(e){let n,r,i=e[13]("tournamentsList.nothing")+"";return{c(){n=O("p"),r=F(i)},m(e,t){D(e,n,t),A(n,r)},p(e,t){8192&t[0]&&i!==(i=e[13]("tournamentsList.nothing")+"")&&R(r,i)},d(e){e&&P(n)}}}function Zi(e){let n,r,i;return{c(){b(n=O("casino-tournaments-thumbnail-controller"),"touridx",e[32]+1),b(n,"session",e[0]),b(n,"userid",e[1]),b(n,"endpoint",e[2]),b(n,"showdetails","true"),b(n,"showslider","false"),b(n,"tournamenturl",r=e[30].href),b(n,"maxwidth",i=e[12].length<=2),b(n,"loginurl",e[5]),b(n,"loginevent",e[3]),b(n,"registerurl",e[6]),b(n,"registerevent",e[4]),b(n,"lang",e[8]),b(n,"currency",e[7]),b(n,"keepbrowsercontext",e[9]),b(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){D(e,n,t)},p(e,t){1&t[0]&&b(n,"session",e[0]),2&t[0]&&b(n,"userid",e[1]),4&t[0]&&b(n,"endpoint",e[2]),4096&t[0]&&r!==(r=e[30].href)&&b(n,"tournamenturl",r),4096&t[0]&&i!==(i=e[12].length<=2)&&b(n,"maxwidth",i),32&t[0]&&b(n,"loginurl",e[5]),8&t[0]&&b(n,"loginevent",e[3]),64&t[0]&&b(n,"registerurl",e[6]),16&t[0]&&b(n,"registerevent",e[4]),256&t[0]&&b(n,"lang",e[8]),128&t[0]&&b(n,"currency",e[7]),512&t[0]&&b(n,"keepbrowsercontext",e[9])},d(e){e&&P(n)}}}function Xi(n){let r,i=!n[11]&&Vi(n);return{c(){r=O("div"),i&&i.c(),this.c=v,H(r,"class","TournamentList"),H(r,"part","TournamentList")},m(e,t){D(e,r,t),i&&i.m(r,null),n[18](r)},p(e,t){e[11]?i&&(i.d(1),i=null):i?i.p(e,t):((i=Vi(e)).c(),i.m(r,null))},i:v,o:v,d(e){e&&P(r),i&&i.d(),n[18](null)}}}function Ki(e,t,n){let r;se(e,Sr,e=>n(13,r=e));let i,{session:o=""}=t,{userid:s=""}=t,{numberoftournaments:a="6"}=t,{endpoint:l=""}=t,{loginevent:u=""}=t,{registerevent:c=""}=t,{loginurl:h=""}=t,{registerurl:d=""}=t,{currency:m=""}=t,{lang:f="en"}=t,{keepbrowsercontext:p="false"}=t,{clientstyling:g=""}=t,{clientstylingurl:y=""}=t,{translationUrl:b=""}=t,v=!1,w=(Ur(),"");Object.keys(Yr).forEach(e=>{zr(e,Yr[e])});const _=t=>{if(t.data&&"TournamentList"==t.data.type&&(n(12,w=[]),n(11,v=!0),n(12,w=t.data.tournamentList),setTimeout(()=>{n(11,v=!1)},10)),t.data&&"TournamentListShowMore"==t.data.type&&n(12,w=[...w,...t.data.tournamentList]),"UpdateTournamentView"==t.data.type){if(!w)return;0==w.filter(e=>e.id==t.data.tournamentData.id).length&&(w.pop(),n(12,w=[t.data.tournamentData,...w]),setTimeout(()=>{w.forEach((e,t)=>{window.postMessage({type:"UpdateSingleTournament_"+(t+1),tournamentData:e},window.location.href)})},100))}t.data&&"UserSessionID"==t.data.type&&t.data.session};return ae(()=>(window.addEventListener("message",_,!0),()=>{window.removeEventListener("message",_,!0)})),e.$$set=e=>{"session"in e&&n(0,o=e.session),"userid"in e&&n(1,s=e.userid),"numberoftournaments"in e&&n(14,a=e.numberoftournaments),"endpoint"in e&&n(2,l=e.endpoint),"loginevent"in e&&n(3,u=e.loginevent),"registerevent"in e&&n(4,c=e.registerevent),"loginurl"in e&&n(5,h=e.loginurl),"registerurl"in e&&n(6,d=e.registerurl),"currency"in e&&n(7,m=e.currency),"lang"in e&&n(8,f=e.lang),"keepbrowsercontext"in e&&n(9,p=e.keepbrowsercontext),"clientstyling"in e&&n(15,g=e.clientstyling),"clientstylingurl"in e&&n(16,y=e.clientstylingurl),"translationUrl"in e&&n(17,b=e.translationUrl)},e.$$.update=()=>{if(33792&e.$$.dirty[0]&&i&&g){let e=document.createElement("style");e.innerHTML=g,i.appendChild(e)}if(66560&e.$$.dirty[0]&&i&&y){let e=new URL(y),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,i&&(setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500))})}131072&e.$$.dirty[0]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{zr(e,t[e])})}).catch(e=>{console.log(e)}),1&e.$$.dirty[0]&&o&&o.length,e.$$.dirty[0]},[o,s,l,u,c,h,d,m,f,p,i,v,w,r,a,g,y,b,function(e){ie[e?"unshift":"push"](()=>{i=e,n(10,i)})}]}function qi(n){let r,i,o,s,a,l,u=n[17]&&eo(n);function c(e){return 0==e[18]?no:to}let h=c(n),d=h(n),m=!n[19]&&oo(n);return{c(){r=O("div"),i=O("div"),o=O("div"),u&&u.c(),s=B(),a=O("div"),d.c(),l=B(),m&&m.c(),H(o,"class","FirstRow"),H(o,"part","FirstRow"),H(a,"class","SecondRow"),H(a,"part","SecondRow"),H(i,"class","Tournaments"),f(i,"max-width",n[11]+"px"),H(i,"part","Tournaments"),H(r,"class","TournamentsWrapper"),H(r,"part","TournamentsWrapper")},m(e,t){D(e,r,t),A(r,i),A(i,o),u&&u.m(o,null),A(i,s),A(i,a),d.m(a,null),A(i,l),m&&m.m(i,null),n[34](r)},p(e,t){e[17]?u?u.p(e,t):((u=eo(e)).c(),u.m(o,null)):u&&(u.d(1),u=null),h===(h=c(e))&&d?d.p(e,t):(d.d(1),(d=h(e))&&(d.c(),d.m(a,null))),e[19]?m&&(m.d(1),m=null):m?m.p(e,t):((m=oo(e)).c(),m.m(i,null)),2048&t[0]&&f(i,"max-width",e[11]+"px")},d(e){e&&P(r),u&&u.d(),d.d(),m&&m.d(),n[34](null)}}}function Qi(e){let n,r,i,o,s,a=e[20]("tournamentsController.500")+"";return{c(){n=O("p"),r=F(a),i=B(),o=O("p"),s=F(e[15])},m(e,t){D(e,n,t),A(n,r),D(e,i,t),D(e,o,t),A(o,s)},p(e,t){1048576&t[0]&&a!==(a=e[20]("tournamentsController.500")+"")&&R(r,a),32768&t[0]&&R(s,e[15])},d(e){e&&P(n),e&&P(i),e&&P(o)}}}function eo(e){let n;return{c(){b(n=O("casino-tournaments-filter-controller"),"filters",ao),b(n,"activefilters",e[5]),b(n,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(e,t){D(e,n,t)},p(e,t){32&t[0]&&b(n,"activefilters",e[5])},d(e){e&&P(n)}}}function to(e){let n;return{c(){b(n=O("casino-tournaments-list-controller"),"session",e[0]),b(n,"userid",e[1]),b(n,"numberoftournaments",e[4]),b(n,"endpoint",e[2]),b(n,"loginurl",e[8]),b(n,"loginevent",e[6]),b(n,"registerurl",e[9]),b(n,"registerevent",e[7]),b(n,"lang",e[3]),b(n,"currency",e[10]),b(n,"keepbrowsercontext",e[12]),b(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){D(e,n,t)},p(e,t){1&t[0]&&b(n,"session",e[0]),2&t[0]&&b(n,"userid",e[1]),16&t[0]&&b(n,"numberoftournaments",e[4]),4&t[0]&&b(n,"endpoint",e[2]),256&t[0]&&b(n,"loginurl",e[8]),64&t[0]&&b(n,"loginevent",e[6]),512&t[0]&&b(n,"registerurl",e[9]),128&t[0]&&b(n,"registerevent",e[7]),8&t[0]&&b(n,"lang",e[3]),1024&t[0]&&b(n,"currency",e[10]),4096&t[0]&&b(n,"keepbrowsercontext",e[12])},d(e){e&&P(n)}}}function no(e){let n;function r(e){return e[16]?io:ro}let i=r(e),o=i(e);return{c(){o.c(),n=Y()},m(e,t){o.m(e,t),D(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o.d(1),(o=i(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&P(n)}}}function ro(e){let n,r,i=e[20]("tournamentsController.noTournaments")+"";return{c(){n=O("p"),r=F(i),H(n,"class","NoTournaments"),H(n,"part","NoTournaments")},m(e,t){D(e,n,t),A(n,r)},p(e,t){1048576&t[0]&&i!==(i=e[20]("tournamentsController.noTournaments")+"")&&R(r,i)},d(e){e&&P(n)}}}function io(e){let n,r,i=e[20]("tournamentsController.loading")+"";return{c(){n=O("p"),r=F(i),H(n,"class","LoadingMessage"),H(n,"part","LoadingMessage")},m(e,t){D(e,n,t),A(n,r)},p(e,t){1048576&t[0]&&i!==(i=e[20]("tournamentsController.loading")+"")&&R(r,i)},d(e){e&&P(n)}}}function oo(n){let r,i,o,s,a,l,u=n[20]("tournamentsController.showMore")+"";return{c(){r=O("div"),i=O("div"),o=O("button"),s=F(u),H(o,"class","ShowMoreButton"),H(o,"part","ShowMoreButton"),H(o,"title","Show More"),H(i,"class","CenterButton"),H(i,"part","CenterButton"),H(r,"class","ThirdRow"),H(r,"part","ThirdRow")},m(e,t){D(e,r,t),A(r,i),A(i,o),A(o,s),a||(l=N(o,"click",n[33]),a=!0)},p(e,t){1048576&t[0]&&u!==(u=e[20]("tournamentsController.showMore")+"")&&R(s,u)},d(e){e&&P(r),a=!1,l()}}}function so(e){let n;function r(e){return e[14]?Qi:qi}let i=r(e),o=i(e);return{c(){o.c(),n=Y(),this.c=v},m(e,t){o.m(e,t),D(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o.d(1),(o=i(e))&&(o.c(),o.m(n.parentNode,n)))},i:v,o:v,d(e){o.d(e),e&&P(n)}}}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem .5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .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>",ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Ci,ki,t,{tournamenturl:14,scrollby:15,pagfactor:13,lang:16,translationUrl:17},null,[-1,-1]),e&&(e.target&&D(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang","translationUrl"]}get tournamenturl(){return this.$$.ctx[14]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),g()}get pagfactor(){return this.$$.ctx[13]}set pagfactor(e){this.$$set({pagfactor:e}),g()}get lang(){return this.$$.ctx[16]}set lang(e){this.$$set({lang:e}),g()}get translationUrl(){return this.$$.ctx[17]}set translationUrl(e){this.$$set({translationUrl:e}),g()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends e{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, \'Segoe UI\', Roboto, Helvetica, Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4{flex:0 0 33.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:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}</style>',ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Gi,ji,t,{session:0,userid:1,tournamenturl:2,touridx:35,endpoint:36,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:37,registerevent:38,loginurl:39,registerurl:40,currency:41,keepbrowsercontext:9,clientstyling:42,clientstylingurl:43,translationUrl:44},null,[-1,-1,-1]),e&&(e.target&&D(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","clientstyling","clientstylingurl","translationUrl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get touridx(){return this.$$.ctx[35]}set touridx(e){this.$$set({touridx:e}),g()}get endpoint(){return this.$$.ctx[36]}set endpoint(e){this.$$set({endpoint:e}),g()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),g()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),g()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),g()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get loginevent(){return this.$$.ctx[37]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[38]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[39]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[40]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[41]}set currency(e){this.$$set({currency:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}get clientstyling(){return this.$$.ctx[42]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[43]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationUrl(){return this.$$.ctx[44]}set translationUrl(e){this.$$set({translationUrl:e}),g()}}),customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(Min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}</style>",ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Ki,Xi,t,{session:0,userid:1,numberoftournaments:14,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:15,clientstylingurl:16,translationUrl:17},null,[-1,-1]),e&&(e.target&&D(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","numberoftournaments","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationUrl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get numberoftournaments(){return this.$$.ctx[14]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),g()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),g()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationUrl(){return this.$$.ctx[17]}set translationUrl(e){this.$$set({translationUrl:e}),g()}});let ao="All,Scheduled,Ongoing,Finished";function lo(e,t,o){let n,r,i;se(e,Sr,e=>o(20,i=e));let s,a,l,{session:u=""}=t,{userid:c=""}=t,{endpoint:h=""}=t,{lang:d="en"}=t,{translationUrl:m=""}=t,{numberoftournaments:f="6"}=t,{showmorestep:p="2"}=t,{filters:g="All"}=t,{loginevent:N=""}=t,{registerevent:H=""}=t,{loginurl:R=""}=t,{registerurl:L=""}=t,{currency:I="EUR"}=t,{containermaxwidth:U=""}=t,{keepbrowsercontext:z="false"}=t,{sorttype:y=""}=t,{sortorder:b=""}=t,{starttimeafter:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:_=""}=t,{delaybeforeload:T=1e3}=t,S=!1,x="",E=!1,M="",Y=window.navigator.userAgent,k=!0,j=!1,C=!1,$=0,A=!1,D=6,P=!0,O=[];var G,W;({withLocale:G,translations:W}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(tr.set(W),oe.set(G))}),Object.keys(kr).forEach(e=>{Er(e,kr[e])});const V=e=>{e.data&&"UserSessionID"===e.data.type&&(E=!0,M=e.data.session,e.data.userid,F(h,0,D)),e.data&&"TournamentsFiltersSelected"===e.data.type&&(O=e.data.filters,F(h,0,D))},F=async(e,t,n)=>{o(16,k=!0),o(18,$=0);const r=await Z(e,t,n);setTimeout(()=>{window.postMessage({type:"TournamentList",tournamentList:r.items},window.location.href)},50),o(16,k=!1)},J=()=>{const e=new Date;return v?e.setDate(e.getDate()-Number(v)):e.setMonth(e.getMonth()-1),e.toISOString().substring(0,10)},Z=async(e,t,n)=>{let r=new URL(e+"/tournaments"),i=new Headers;return r.searchParams.append("pagination",`offset=${t},limit=`+n),r.searchParams.append("sortField","StartTime"),r.searchParams.append("sortOrder",b||"desc"),r.searchParams.append("language",d),0<O.length&&"All"!=O[0]?(e=O.map(e=>{return"Scheduled"==e?"Unstarted":"Ongoing"==e?"Running":"Closing|Closed"}).join("|"),r.searchParams.append("filter",`state=${e},StartTimeAfter=`+J())):r.searchParams.append("filter","StartTimeAfter="+J()),r.searchParams.append("platform",xr(Y)),y&&r.searchParams.append("sortType",y),E&&i.append("X-SessionID",M),fetch(r,{method:"GET",headers:i,cache:"no-cache"}).then(e=>e.json()).then(e=>(a=r.searchParams.toString(),o(18,$=e.total),o(19,P=D>=$),C||X(),e))},B=e=>{if("message"==e.type){var t=e.data;if(t)try{var n,r=JSON.parse(t);r&&r.item&&(n=r.item,"TournamentUpdate"==r.messageType&&window.postMessage({type:"UpdateTournamentView",tournamentData:n},window.location.href),"TournamentRemove"==r.messageType&&window.postMessage({type:"TournamentList",tournamentList:r.items},window.location.href))}catch(e){console.error(e)}}},X=()=>{C=!0,setTimeout(()=>{C=!1},1e3),l&&(l.removeEventListener("message",B),l.close());var e=`${h}/tournaments/updates?${a}&XSessionId=`+u;void 0!==(l=EventSource?new EventSource(e):new Cr.EventSourcePolyfill(e,{headers:{accept:"text/event-stream"}}))&&l.addEventListener("message",B)},K=async()=>{var e=D,t=parseInt(p,10),n=(D+=t,window.postMessage({type:"TournamentsPagination",offset:0,limit:D},window.location.href),h);n=await Z(n,e,t),window.postMessage({type:"TournamentListShowMore",tournamentList:n.items},window.location.href),await 0,D>=$&&o(19,P=!0)},q=()=>{if(!A)return!1;h||(o(15,x="Endpoint is missing! Please provide a valid endpointURL."),o(14,S=!0),console.error(x)),d&&2==d.length||(o(15,x="Language is missing! Please provide a valid language (alpha2code)"),o(14,S=!0),console.error(x)),S||(D=parseInt(f,10),Mr(d),F(h,0,D))};return ae(()=>(setTimeout(()=>{o(30,A=!0)},T),window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V),l&&(l.removeEventListener("message",B),l.close())})),e.$$set=e=>{"session"in e&&o(0,u=e.session),"userid"in e&&o(1,c=e.userid),"endpoint"in e&&o(2,h=e.endpoint),"lang"in e&&o(3,d=e.lang),"translationUrl"in e&&o(22,m=e.translationUrl),"numberoftournaments"in e&&o(4,f=e.numberoftournaments),"showmorestep"in e&&o(23,p=e.showmorestep),"filters"in e&&o(5,g=e.filters),"loginevent"in e&&o(6,N=e.loginevent),"registerevent"in e&&o(7,H=e.registerevent),"loginurl"in e&&o(8,R=e.loginurl),"registerurl"in e&&o(9,L=e.registerurl),"currency"in e&&o(10,I=e.currency),"containermaxwidth"in e&&o(11,U=e.containermaxwidth),"keepbrowsercontext"in e&&o(12,z=e.keepbrowsercontext),"sorttype"in e&&o(24,y=e.sorttype),"sortorder"in e&&o(25,b=e.sortorder),"starttimeafter"in e&&o(26,v=e.starttimeafter),"clientstyling"in e&&o(27,w=e.clientstyling),"clientstylingurl"in e&&o(28,_=e.clientstylingurl),"delaybeforeload"in e&&o(29,T=e.delaybeforeload)},e.$$.update=()=>{if(134225920&e.$$.dirty[0]&&s&&w){let e=document.createElement("style");e.innerHTML=w,s.appendChild(e)}if(268443648&e.$$.dirty[0]&&s&&_){let e=new URL(_),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,s&&(setTimeout(()=>{s.appendChild(t)},1),setTimeout(()=>{},500))})}1&e.$$.dirty[0]&&u&&(0<u.length&&"false"!=u?(E=!0,o(16,k=!0),M=u):(E=!1,q())),e.$$.dirty[0],8&e.$$.dirty[0]&&d&&Mr(d),32&e.$$.dirty[0]&&g&&(O=g.split(","),o(17,j=!0)),8&e.$$.dirty[0]&&d&&Mr(d),4194304&e.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Er(e,t[e])})}).catch(e=>{console.log(e)}),8388636&e.$$.dirty[0]&&o(32,n=h&&f&&p&&d),1&e.$$.dirty[0]|2&e.$$.dirty[1]&&o(31,r=u?n&&u:n),1073741824&e.$$.dirty[0]|1&e.$$.dirty[1]&&r&&A&&q()},[u,c,h,d,f,g,N,H,R,L,I,U,z,s,S,x,k,j,$,P,i,K,m,p,y,b,v,w,_,T,A,r,n,()=>K(),function(e){ie[e?"unshift":"push"](()=>{s=e,o(13,s)})}]}class uo extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emfe-w-color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{background:var(--emfe-w-color-contrast, #07072A)}.Tournaments{color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}</style>",ne(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},lo,so,t,{session:0,userid:1,endpoint:2,lang:3,translationUrl:22,numberoftournaments:4,showmorestep:23,filters:5,loginevent:6,registerevent:7,loginurl:8,registerurl:9,currency:10,containermaxwidth:11,keepbrowsercontext:12,sorttype:24,sortorder:25,starttimeafter:26,clientstyling:27,clientstylingurl:28,delaybeforeload:29},null,[-1,-1]),e&&(e.target&&D(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","endpoint","lang","translationUrl","numberoftournaments","showmorestep","filters","loginevent","registerevent","loginurl","registerurl","currency","containermaxwidth","keepbrowsercontext","sorttype","sortorder","starttimeafter","clientstyling","clientstylingurl","delaybeforeload"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),g()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),g()}get translationUrl(){return this.$$.ctx[22]}set translationUrl(e){this.$$set({translationUrl:e}),g()}get numberoftournaments(){return this.$$.ctx[4]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),g()}get showmorestep(){return this.$$.ctx[23]}set showmorestep(e){this.$$set({showmorestep:e}),g()}get filters(){return this.$$.ctx[5]}set filters(e){this.$$set({filters:e}),g()}get loginevent(){return this.$$.ctx[6]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[7]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[8]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[9]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[10]}set currency(e){this.$$set({currency:e}),g()}get containermaxwidth(){return this.$$.ctx[11]}set containermaxwidth(e){this.$$set({containermaxwidth:e}),g()}get keepbrowsercontext(){return this.$$.ctx[12]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}get sorttype(){return this.$$.ctx[24]}set sorttype(e){this.$$set({sorttype:e}),g()}get sortorder(){return this.$$.ctx[25]}set sortorder(e){this.$$set({sortorder:e}),g()}get starttimeafter(){return this.$$.ctx[26]}set starttimeafter(e){this.$$set({starttimeafter:e}),g()}get clientstyling(){return this.$$.ctx[27]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[28]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get delaybeforeload(){return this.$$.ctx[29]}set delaybeforeload(e){this.$$set({delaybeforeload:e}),g()}}return customElements.get("casino-tournaments-controller")||customElements.define("casino-tournaments-controller",uo),uo});
2
- //# sourceMappingURL=casino-tournaments-controller.js.map