@everymatrix/casino-tournaments-table 0.0.265 → 0.0.269
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!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 f(){}function h(e){return e()}function p(){return Object.create(null)}function d(e){e.forEach(h)}function m(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function P(e,...t){if(null==e)return f;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function O(e,t){e.appendChild(t)}function k(e,t,r){e.insertBefore(t,r||null)}function N(e){e.parentNode.removeChild(e)}function E(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function I(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function D(e){return document.createTextNode(e)}function M(){return D(" ")}function _(){return D("")}function T(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function F(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function G(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let S;function g(e){S=e}const b=[],e=[],n=[],i=[],y=Promise.resolve();let v=!1;function w(e){n.push(e)}let o=!1;const s=new Set;function C(){if(!o){o=!0;do{for(let e=0;e<b.length;e+=1){var t=b[e];g(t),function(e){{var t;null!==e.fragment&&(e.update(),d(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(w))}}(t.$$)}for(g(null),b.length=0;e.length;)e.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,b.length);for(;i.length;)i.pop()();v=!1,o=!1,s.clear()}}const A=new Set;function a(n,e,t,r,i,o,s=[-1]){var a,l=S;g(n);const c=n.$$={fragment:null,ctx:null,props:o,update:f,not_equal:i,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:p(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(b.push(e),v||(v=!0,y.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,d(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const f=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(f),f.forEach(N)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(A.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,r),n||w(()=>{var e=o.map(h).filter(m);s?s.push(...e):d(e),t.$$.on_mount=[]}),a.forEach(w)}(n,e.target,e.anchor,e.customElement),C()}g(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){d(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(d(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=f}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var c,u,x="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==x&&x,L="URLSearchParams"in x,R="Symbol"in x&&"iterator"in Symbol,U="FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(e){return!1}}(),j="FormData"in x,$="ArrayBuffer"in x;function B(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 z(e){return e="string"!=typeof e?String(e):e}function V(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return R&&(e[Symbol.iterator]=function(){return e}),e}function H(t){this.map={},t instanceof H?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 X(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function q(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Z(e){var t=new FileReader,r=q(t);return t.readAsArrayBuffer(e),r}function Y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function K(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:U&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:j&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:L&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():$&&U&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):$&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=Y(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):L&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},U&&(this.blob=function(){var e=X(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?X(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(Z)}),this.text=function(){var e,t,r=X(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=q(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},j&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}$&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&-1<c.indexOf(Object.prototype.toString.call(e))}),H.prototype.append=function(e,t){e=B(e),t=z(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},H.prototype.delete=function(e){delete this.map[B(e)]},H.prototype.get=function(e){return e=B(e),this.has(e)?this.map[e]:null},H.prototype.has=function(e){return this.map.hasOwnProperty(B(e))},H.prototype.set=function(e,t){this.map[B(e)]=z(t)},H.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},H.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),V(r)},H.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),V(t)},H.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),V(r)},R&&(H.prototype[Symbol.iterator]=H.prototype.entries);var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(e,t){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof W){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new H(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new H(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<Q.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function J(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function ee(e,t){if(!(this instanceof ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');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 H(t.headers),this.url=t.url||"",this._initBody(e)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})},K.call(W.prototype),K.call(ee.prototype),ee.prototype.clone=function(){return new ee(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new H(this.headers),url:this.url})},ee.error=function(){var e=new ee(null,{status:0,statusText:""});return e.type="error",e};var te=[301,302,303,307,308];ee.redirect=function(e,t){if(-1===te.indexOf(t))throw new RangeError("Invalid status code");return new ee(null,{status:t,headers:{location:e}})};var re=x.DOMException;try{new re}catch(f){(re=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),re.prototype.constructor=re}function ne(n,s){return new Promise(function(i,e){var t=new W(n,s);if(t.signal&&t.signal.aborted)return e(new re("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new H,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new ee(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new re("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&x.location.href?x.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&&(U?o.responseType="blob":$&&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 H?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,z(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}ne.polyfill=!0,x.fetch||(x.fetch=ne,x.Headers=H,x.Request=W,x.Response=ee),self.fetch.bind(self);var ie=function(e,t){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function se(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ae(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function le(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function ce(e){return"function"==typeof e}function ue(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 fe=ue(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)}var pe=(me.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=se(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(ce(o))try{o()}catch(e){i=e instanceof fe?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=se(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{be(u)}catch(e){i=null!=i?i:[],e instanceof fe?i=le(le([],ae(i)),ae(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new fe(i)}},me.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)be(e);else{if(e instanceof me){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},me.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},me.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},me.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&he(t,e)},me.prototype.remove=function(e){var t=this._teardowns;t&&he(t,e),e instanceof me&&e._removeParent(this)},me.EMPTY=((Gt=new me).closed=!0,Gt),me),de=pe.EMPTY;function me(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ge(e){return e instanceof pe||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function be(e){ce(e)?e():e.unsubscribe()}var ye=void 0,ve=!1,we=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,le([],ae(e)))};function Ee(){}function Te(e){e()}var _e,Ce,Ae=(oe(xe,Ce=pe),xe.create=function(e,t,r){return new Pe(e,t,r)},xe.prototype.next=function(e){this.isStopped||this._next(e)},xe.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},xe.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},xe.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ce.prototype.unsubscribe.call(this),this.destination=null)},xe.prototype._next=function(e){this.destination.next(e)},xe.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},xe.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},xe),Pe=(oe(Se,_e=Ae),Se);function Se(e,t,r){var n,i,o=_e.call(this)||this;return ce(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&ve?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?Le(i):Ee,error:Le(null!=t?t:Re),complete:r?Le(r):Ee},o}function xe(e){var t=Ce.call(this)||this;return t.isStopped=!1,e?ge(t.destination=e)&&e.add(t):t.destination=Ue,t}function Le(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,le([],ae(e)))}catch(e){t=e,we(function(){throw t})}}}function Re(e){throw e}var Ue={closed:!0,next:Ee,error:Re,complete:Ee},Oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function ke(e){return e}var Ne=(Ie.prototype.lift=function(e){var t=new Ie;return t.source=this,t.operator=e,t},Ie.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Ae||n&&ce(n.next)&&ce(n.error)&&ce(n.complete)&&ge(n)?e:new Pe(e,t,r);return Te(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Ie.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ie.prototype.forEach=function(n,e){var i=this;return new(e=De(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ie.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ie.prototype[Oe]=function(){return this},Ie.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?ke:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ie.prototype.toPromise=function(e){var n=this;return new(e=De(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ie.create=function(e){return new Ie(e)},Ie);function Ie(e){e&&(this._subscribe=e)}function De(e){return null!==(e=null!=e?e:ye)&&void 0!==e?e:Promise}var Me,Fe,Ge,je=ue(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$e=(oe(qe,Ge=Ne),qe.prototype.lift=function(e){var t=new Be(this,this);return t.operator=e,t},qe.prototype._throwIfClosed=function(){if(this.closed)throw new je},qe.prototype.next=function(o){var s=this;Te(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=se(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},qe.prototype.error=function(t){var r=this;Te(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},qe.prototype.complete=function(){var t=this;Te(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},qe.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(qe.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),qe.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ge.prototype._trySubscribe.call(this,e)},qe.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},qe.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?de:(n.push(e),new pe(function(){return he(n,e)}))},qe.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},qe.prototype.asObservable=function(){var e=new Ne;return e.source=this,e},qe.create=function(e,t){return new Be(e,t)},qe),Be=(oe(Xe,Fe=$e),Xe.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Xe.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Xe.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Xe.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:de},Xe),ze={now:function(){return(ze.delegate||Date).now()},delegate:void 0},Ve=(oe(He,Me=$e),He.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),Me.prototype.next.call(this,e)},He.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},He.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},He);function He(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=ze);var n=Me.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Xe(e,t){var r=Fe.call(this)||this;return r.destination=e,r.source=t,r}function qe(){var e=Ge.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Ze=[],Ye={};const Ke=[];function Qe(n,i=f){let o;const s=[];function a(e){if(r(n,e)&&(n=e,o)){const e=!Ke.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),Ke.push(t,n)}if(e){for(let e=0;e<Ke.length;e+=2)Ke[e][0](Ke[e+1]);Ke.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=f){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||f),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function We(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return{subscribe:Qe(t,t=>{let r=!1;const n=[];let i=0,o=f;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),u?t(e):o=m(e)?e:f)},e=c.map((e,t)=>P(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){d(e),o()}}).subscribe}}var Je=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===et));var t},et="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function tt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?st(Array.isArray(e)?[]:{},e,t):e}function rt(e,t,r){return e.concat(t).map(function(e){return tt(e,r)})}function nt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function it(e,t){try{return t in e}catch(e){return!1}}function ot(n,i,o){var s={};return o.isMergeableObject(n)&&nt(n).forEach(function(e){s[e]=tt(n[e],o)}),nt(i).forEach(function(t){var e,r;(!it(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(it(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return st;var e=o.customMerge(t);return"function"==typeof e?e:st}()(n[t],i[t],o):s[t]=tt(i[t],o))}),s}function st(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||rt,r.isMergeableObject=r.isMergeableObject||Je,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):ot(e,t,r):tt(t,r)}st.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return st(e,t,r)},{})};var at=st,lt=function(e,t){return(lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ct(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}lt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ut,ft,ht,pt=function(){return(pt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function dt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function mt(e){return e.type===ft.literal}function gt(e){return e.type===ft.number}function bt(e){return e.type===ft.date}function yt(e){return e.type===ft.time}function vt(e){return e.type===ft.select}function wt(e){return e.type===ft.plural}function Et(e){return e.type===ft.tag}function Tt(e){return e&&"object"==typeof e&&e.type===ht.number}function _t(e){return e&&"object"==typeof e&&e.type===ht.dateTime}(jt=ut=ut||{})[jt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",jt[jt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",jt[jt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",jt[jt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",jt[jt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",jt[jt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",jt[jt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",jt[jt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",jt[jt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",jt[jt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",jt[jt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",jt[jt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",jt[jt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",jt[jt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",jt[jt.INVALID_TAG=23]="INVALID_TAG",jt[jt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",jt[jt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",jt[jt.UNCLOSED_TAG=27]="UNCLOSED_TAG",($t=ft=ft||{})[$t.literal=0]="literal",$t[$t.argument=1]="argument",$t[$t.number=2]="number",$t[$t.date=3]="date",$t[$t.time=4]="time",$t[$t.select=5]="select",$t[$t.plural=6]="plural",$t[$t.pound=7]="pound",$t[$t.tag=8]="tag",(Bt=ht=ht||{})[Bt.number=0]="number",Bt[Bt.dateTime=1]="dateTime";var Ct=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,At=/(?:[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 Pt,St=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,xt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Lt=/^(@+)?(\+|#+)?$/g,Rt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ut=/^(0+)$/;function Ot(e){var n={};return e.replace(Lt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function kt(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 Nt(e){return kt(e)||{}}function It(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=pt(pt(pt({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return pt(pt({},e),Nt(t))},{}));continue;case"engineering":s=pt(pt(pt({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return pt(pt({},e),Nt(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(Rt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ut.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(xt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(xt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=pt(pt({},s),Ot(i.options[0])))}else Lt.test(i.stem)?s=pt(pt({},s),Ot(i.stem)):((n=kt(i.stem))&&(s=pt(pt({},s),n)),(n=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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ut.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=pt(pt({},s),n)))}return s}var Dt=new RegExp("^"+Ct.source+"*"),Mt=new RegExp(Ct.source+"*$");function Ft(e,t){return{start:e,end:t}}var Gt=!!String.prototype.startsWith,Oe=!!String.fromCodePoint,$e=!!Object.fromEntries,jt=!!String.prototype.codePointAt,$t=!!String.prototype.trimStart,Bt=!!String.prototype.trimEnd,zt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ct=!0;try{Ct="a"===(null===(Pt=Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pt?void 0:Pt[0])}catch(f){Ct=!1}var Vt,Ht,Xt=Gt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},qt=Oe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Zt=$e?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},Yt=jt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},Kt=$t?function(e){return e.trimStart()}:function(e){return e.replace(Dt,"")},Qt=Bt?function(e){return e.trimEnd()}:function(e){return e.replace(Mt,"")};function Wt(e,t){return new RegExp(e,t)}Ht=Ct?(Vt=Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Vt.lastIndex=t,null!==(e=Vt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=Yt(e,t);if(void 0===i||rr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return qt.apply(void 0,n)};var Jt=(er.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},er.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ut.UNMATCHED_CLOSING_TAG,Ft(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&tr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:ft.pound,location:Ft(o,this.clonePosition())})}}}return{val:n,err:null}},er.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ft.literal,value:"<"+n+"/>",location:Ft(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!tr(this.char()))return this.error(ut.INVALID_TAG,Ft(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(ut.UNMATCHED_CLOSING_TAG,Ft(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ft.tag,value:n,children:e,location:Ft(r,this.clonePosition())},err:null}:this.error(ut.INVALID_TAG,Ft(t,this.clonePosition())))}return this.error(ut.UNCLOSED_TAG,Ft(r,this.clonePosition()))}return this.error(ut.INVALID_TAG,Ft(r,this.clonePosition()))},er.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())},er.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=Ft(r,this.clonePosition());return{val:{type:ft.literal,value:n,location:r},err:null}},er.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(tr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},er.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return qt.apply(void 0,t)},er.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),qt(r))},er.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ut.EMPTY_ARGUMENT,Ft(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ut.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ft.argument,value:n,location:Ft(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(ut.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()))}},er.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Ht(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ft(e,this.clonePosition())}},er.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ut.EXPECT_ARGUMENT_TYPE,Ft(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(f=Qt(h.val)).length)return this.error(ut.EXPECT_ARGUMENT_STYLE,Ft(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Ft(c,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var u=Ft(n,this.clonePosition());if(l&&Xt(null==l?void 0:l.style,"::",0)){c=Kt(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:ft.number,value:r,location:u,style:h.val},err:null};if(0===c.length)return this.error(ut.EXPECT_DATE_TIME_SKELETON,u);var f={type:ht.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(At,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?ft.date:ft.time,value:r,location:u,style:f},err:null}}return{val:{type:"number"===s?ft.number:"date"===s?ft.date:ft.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ut.EXPECT_SELECT_ARGUMENT_OPTIONS,Ft(l,pt({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ft(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ut.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.val}u=this.tryParsePluralOrSelectOptions(e,s,t,u);if(u.err)return u;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Ft(n,this.clonePosition());return"select"===s?{val:{type:ft.select,value:r,options:Zt(u.val),location:p},err:null}:{val:{type:ft.plural,value:r,options:Zt(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(ut.INVALID_ARGUMENT_TYPE,Ft(o,a))}},er.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},er.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ut.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ft(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},er.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(St).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(ut.INVALID_NUMBER_SKELETON,t)}return{val:{type:ht.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?It(r):{}},err:null}},er.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,ut.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Ft(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?ut.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ut.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ut.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ut.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ft(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(f);if(c.err)return c;o.push([a,{value:u.val,location:Ft(f,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===o.length?this.error("select"===t?ut.EXPECT_SELECT_ARGUMENT_SELECTOR:ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ft(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ut.MISSING_OTHER_CLAUSE,Ft(this.clonePosition(),this.clonePosition())):{val:o,err:null}},er.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=Ft(n,this.clonePosition());return i?zt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},er.prototype.offset=function(){return this.position.offset},er.prototype.isEOF=function(){return this.offset()===this.message.length},er.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},er.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Yt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},er.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},er.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))},er.prototype.bumpIf=function(e){if(Xt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},er.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},er.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},er.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},er.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},er);function er(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function tr(e){return 97<=e&&e<=122||65<=e&&e<=90}function rr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function nr(e,t){t=pt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Jt(e,t).parse();if(r.err){e=SyntaxError(ut[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,vt(e)||wt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else gt(e)&&Tt(e.style)||(bt(e)||yt(e))&&_t(e.style)?delete e.style.location:Et(e)&&r(e.children)})}(r.val),r.val}function ir(e,t){var r=t&&t.cache?t.cache:fr,n=t&&t.serializer?t.serializer:lr;return(t&&t.strategy?t.strategy:function(e,t){return ar(e,this,1===e.length?or:sr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function or(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function sr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function ar(e,t,r,n,i){return r.bind(t,e,n,i)}var lr=function(){return JSON.stringify(arguments)};function cr(){this.cache=Object.create(null)}cr.prototype.has=function(e){return e in this.cache},cr.prototype.get=function(e){return this.cache[e]},cr.prototype.set=function(e,t){this.cache[e]=t};var ur,fr={create:function(){return new cr}},hr={variadic:function(e,t){return ar(e,this,sr,t.cache.create(),t.serializer)},monadic:function(e,t){return ar(e,this,or,t.cache.create(),t.serializer)}};(Ct=ur=ur||{}).MISSING_VALUE="MISSING_VALUE",Ct.INVALID_VALUE="INVALID_VALUE",Ct.MISSING_INTL_API="MISSING_INTL_API";var pr,dr,mr,gr,br,yr=(ct(Ar,br=Error),Ar.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ar),vr=(ct(Cr,gr=yr),Cr),wr=(ct(_r,mr=yr),_r),Er=(ct(Tr,dr=yr),Tr);function Tr(e,t){return dr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',ur.MISSING_VALUE,t)||this}function _r(e,t,r){return mr.call(this,'Value for "'+e+'" must be of type '+t,ur.INVALID_VALUE,r)||this}function Cr(e,t,r,n){return gr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',ur.INVALID_VALUE,n)||this}function Ar(e,t,r){e=br.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Pr(e,t,r,n,i,o,s){if(1===e.length&&mt(e[0]))return[{type:pr.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(mt(u))a.push({type:pr.literal,value:u.value});else if(u.type===ft.pound)"number"==typeof o&&a.push({type:pr.literal,value:r.getNumberFormat(t).format(o)});else{var f=u.value;if(!(i&&f in i))throw new Er(f,s);var h=i[f];if(u.type===ft.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?pr.literal:pr.object,value:h});else if(bt(u)){var p="string"==typeof u.style?n.date[u.style]:_t(u.style)?u.style.parsedOptions:void 0;a.push({type:pr.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(yt(u))p="string"==typeof u.style?n.time[u.style]:_t(u.style)?u.style.parsedOptions:void 0,a.push({type:pr.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(gt(u))(p="string"==typeof u.style?n.number[u.style]:Tt(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:pr.literal,value:r.getNumberFormat(t,p).format(h)});else{if(Et(u)){var d=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new wr(m,"function",s);d=f(Pr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?pr.literal:pr.object,value:e}}))}if(vt(u)){if(!(g=u.options[h]||u.options.other))throw new vr(u.value,h,Object.keys(u.options),s);a.push.apply(a,Pr(g.value,t,r,n,i))}else if(wt(u)){if(!(g=u.options["="+h])){if(!Intl.PluralRules)throw new yr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ur.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[d]||u.options.other}if(!g)throw new vr(u.value,h,Object.keys(u.options),s);a.push.apply(a,Pr(g.value,t,r,n,i,h-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===pr.literal&&t.type===pr.literal?r.value+=t.value:e.push(t),e},[])}function Sr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(Ct=pr=pr||{})[Ct.literal=0]="literal",Ct[Ct.object=1]="object";var xr=(Object.defineProperty(Lr,"defaultLocale",{get:function(){return Lr.memoizedDefaultLocale||(Lr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Lr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Lr.memoizedDefaultLocale=null,Lr.__parse=nr,Lr.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"}}},Lr);function Lr(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=Lr.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===pr.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 Pr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Lr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Lr.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}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=Lr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?pt(pt(pt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=pt(pt({},r[t]),n[t]||{}),e},{})):r),e},pt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,dt([void 0],t)))},{cache:Sr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:hr.variadic}),getDateTimeFormat:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,dt([void 0],t)))},{cache:Sr(n.dateTime),strategy:hr.variadic}),getPluralRules:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,dt([void 0],t)))},{cache:Sr(n.pluralRules),strategy:hr.variadic})}}const Rr={},Ur=(t,r)=>{if(null!=r){if(r in Rr&&t in Rr[r])return Rr[r][t];var n,i,o=qr(r);for(let e=0;e<o.length;e++){var s=(n=o[e],i=t,Nr(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Or[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in Rr||(Rr[i]={}),n in Rr[i]||(Rr[i][n]=s),s)}}};let Or;const kr=Qe({});function Nr(e){return e in Or}function Ir(t,...r){delete Rr[t],kr.update(e=>(e[t]=at.all([e[t]||{},...r]),e))}We([kr],([e])=>Object.keys(e)),kr.subscribe(e=>Or=e);const Dr={};function Mr(e){return Dr[e]}function Fr(e){return qr(e).some(e=>{return null===(e=Mr(e))||void 0===e?void 0:e.size})}const Gr={};function jr(e){if(!Fr(e))return e in Gr?Gr[e]:void 0;const t=qr(e).map(e=>{var t=Mr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Gr[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Dr[e].delete(t),0===Dr[e].size&&delete Dr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Ir(t,...e))}(e))).then(()=>Fr(e)?jr(e):void delete Gr[e]),Gr[e]}function $r(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Br={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const zr=Qe(!1);let Vr;const Hr=Qe(null);function Xr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function qr(e,t=Br.fallbackLocale){e=Xr(e);return t?[...new Set([...e,...Xr(t)])]:e}Hr.subscribe(e=>{Vr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Zr=Hr.set;Hr.set=t=>{if(function(e){if(null!=e){var t=qr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Nr(r))return r}}}(t)&&Fr(t)){var{loadingDelay:r}=Br;let e;return"undefined"!=typeof window&&null!=Vr&&r?e=window.setTimeout(()=>zr.set(!0),r):zr.set(!0),jr(t).then(()=>{Zr(t)}).finally(()=>{clearTimeout(e),zr.set(!1)})}return Zr(t)},Hr.update=e=>Zr(e(Vr));const Yr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Kr=(e,t)=>{var{formats:r}=Br;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Qr=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Kr("number",r)),new Intl.NumberFormat(t,e)}),Wr=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Kr("date",r):0===Object.keys(e).length&&(e=Kr("date","short")),new Intl.DateTimeFormat(t,e)}),Jr=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Kr("time",r):0===Object.keys(e).length&&(e=Kr("time","short")),new Intl.DateTimeFormat(t,e)}),en=Yr((e,t=Vr)=>new xr(e,t,Br.formats,{ignoreTag:Br.ignoreTag})),tn=We([Hr,kr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Vr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Ur(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Br.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${qr(n).join('", "')}".${Fr(Vr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let s=o;try{s=en(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});We([Hr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Jr(Object.assign({locale:t},e))})(t).format(e)),We([Hr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Wr(Object.assign({locale:t},e))})(t).format(e)),We([Hr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Qr(Object.assign({locale:t},e))})(t).format(e)),We([Hr,kr],()=>(e,t=Vr)=>Ur(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Ze.indexOf(e)&&(t=new Ve(t),Ye[e]=t,Ze.push(e)),Ye[e]}};const rn=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)),nn={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Counts",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Rank:"Rank",Player:"Player",Points:"Points",Prize:"Prize"}},ro:{tournamentsTable:{leaderboard:"Clasament",score:"Scor",betcounts:"Cele mai multe runde",winstakeratio:"Castig/miza",qualified:"Calificat",nowinners:"Niciun castigator inregistrat. Fii unul dintre castigatori!",Rank:"Pozitie",Player:"Nume",Points:"Puncte",Prize:"Premiu"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Rank:"Rütbe",Player:"oyuncu",Points:"Puan",Prize:"Ödül"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Rank:"Τάξη",Player:"Παίχτης",Points:"Πόντοι",Prize:"Βραβείο"}}};var on="data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",sn="data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";function an(e,t,r){const n=e.slice();return n[34]=t[r],n}function ln(e,t,r){const n=e.slice();return n[31]=t[r],n}function cn(e,t,r){const n=e.slice();return n[34]=t[r],n}function un(e,t,r){const n=e.slice();return n[31]=t[r],n}function fn(e,t,r){const n=e.slice();return n[34]=t[r],n}function hn(t){let r,n,i,o,s,a,l,c,u,e=t[10]("tournamentsTable.nowinners")+"",f=t[3],h=[];for(let e=0;e<f.length;e+=1)h[e]=bn(an(t,f,e));return{c(){r=I("div"),n=I("table"),i=I("thead"),o=I("tr");for(let e=0;e<h.length;e+=1)h[e].c();s=M(),a=I("tbody"),l=I("tr"),c=I("td"),u=D(e),F(c,"colspan","4"),F(n,"class","LeftTable"),F(n,"part","LeftTable"),F(r,"class","TournamentsTable"),F(r,"part","TournamentsTable")},m(e,t){k(e,r,t),O(r,n),O(n,i),O(i,o);for(let e=0;e<h.length;e+=1)h[e].m(o,null);O(n,s),O(n,a),O(a,l),O(l,c),O(c,u)},p(t,r){if(5641&r[0]){let e;for(f=t[3],e=0;e<f.length;e+=1){var n=an(t,f,e);h[e]?h[e].p(n,r):(h[e]=bn(n),h[e].c(),h[e].m(o,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=f.length}1024&r[0]&&e!==(e=t[10]("tournamentsTable.nowinners")+"")&&G(u,e)},d(e){e&&N(r),E(h,e)}}}function pn(e){let r,n=e[5]&&yn(e);return{c(){n&&n.c(),r=_()},m(e,t){n&&n.m(e,t),k(e,r,t)},p(e,t){e[5]?n?n.p(e,t):(n=yn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&N(r)}}}function dn(e){let r,n=(t=e,(1==rn(t[11])?wn:vn)(e));var t;return{c(){n.c(),r=_()},m(e,t){n.m(e,t),k(e,r,t)},p(e,t){n.p(e,t)},d(e){n.d(e),e&&N(r)}}}function mn(e){let r,n,i=e[10](`tournamentsTable.${e[34]}`)+"";return{c(){r=I("p"),n=D(i),F(r,"data-sort",e[9])},m(e,t){k(e,r,t),O(r,n)},p(e,t){1032&t[0]&&i!==(i=e[10](`tournamentsTable.${e[34]}`)+"")&&G(n,i),512&t[0]&&F(r,"data-sort",e[9])},d(e){e&&N(r)}}}function gn(r){let n,i,o,s,a=r[10](`tournamentsTable.${r[34]}`)+"";function l(){return r[20](r[34])}return{c(){n=I("button"),i=D(a),F(n,"data-sort",r[9])},m(e,t){k(e,n,t),O(n,i),o||(s=T(n,"click",l),o=!0)},p(e,t){r=e,1032&t[0]&&a!==(a=r[10](`tournamentsTable.${r[34]}`)+"")&&G(i,a),512&t[0]&&F(n,"data-sort",r[9])},d(e){e&&N(n),o=!1,s()}}}function bn(e){let r,n;function i(e){return"true"==e[0]?gn:mn}let o=i(e),s=o(e);return{c(){r=I("th"),s.c(),n=M()},m(e,t){k(e,r,t),s.m(r,null),O(r,n)},p(e,t){o===(o=i(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(r,n)))},d(e){e&&N(r),s.d()}}}function yn(e){let r,n,i,o,s=e[10]("tournamentsTable.nowinners")+"";return{c(){r=I("div"),n=I("div"),i=I("p"),o=D(s),F(n,"class","TableUser"),F(n,"part","TableUser"),F(r,"class","TableContent"),F(r,"part","TableContent")},m(e,t){k(e,r,t),O(r,n),O(n,i),O(i,o)},p(e,t){1024&t[0]&&s!==(s=e[10]("tournamentsTable.nowinners")+"")&&G(o,s)},d(e){e&&N(r)}}}function vn(r){let n,i,o,s,a,l,c,u,f,h,p,d,m=r[3],g=[];for(let e=0;e<m.length;e+=1)g[e]=_n(cn(r,m,e));let b="true"==r[1]&&r[4]&&Cn(r),y=r[5]&&Sn(r);function e(e){return e[5]?kn:On}let v=e(r),w=v(r);return{c(){n=I("div"),i=I("table"),o=I("thead"),s=I("tr");for(let e=0;e<g.length;e+=1)g[e].c();a=M(),l=I("tbody"),b&&b.c(),c=M(),y&&y.c(),u=M(),f=I("div"),h=I("div"),w.c(),F(i,"class","LeftTable"),F(i,"part","LeftTable"),F(h,"class","CollapseButton"),F(h,"part","CollapseButton"),F(f,"class","RightButton"),F(f,"part","RightButton"),F(n,"class","TournamentsTable"),F(n,"part","TournamentsTable")},m(e,t){k(e,n,t),O(n,i),O(i,o),O(o,s);for(let e=0;e<g.length;e+=1)g[e].m(s,null);O(i,a),O(i,l),b&&b.m(l,null),O(l,c),y&&y.m(l,null),O(n,u),O(n,f),O(f,h),w.m(h,null),p||(d=T(h,"click",r[19]),p=!0)},p(t,r){if(5641&r[0]){let e;for(m=t[3],e=0;e<m.length;e+=1){var n=cn(t,m,e);g[e]?g[e].p(n,r):(g[e]=_n(n),g[e].c(),g[e].m(s,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=m.length}"true"==t[1]&&t[4]?b?b.p(t,r):(b=Cn(t),b.c(),b.m(l,c)):b&&(b.d(1),b=null),t[5]?y?y.p(t,r):(y=Sn(t),y.c(),y.m(l,null)):y&&(y.d(1),y=null),v!==(v=e(t))&&(w.d(1),w=v(t),w&&(w.c(),w.m(h,null)))},d(e){e&&N(n),E(g,e),b&&b.d(),y&&y.d(),w.d(),p=!1,d()}}}function wn(t){let n,i,r,o,s=t[3],a=[];for(let e=0;e<s.length;e+=1)a[e]=Dn(fn(t,s,e));let l="true"==t[1]&&t[4]&&Mn(t),c=t[5]&&$n(t);return{c(){n=I("div"),i=I("div");for(let e=0;e<a.length;e+=1)a[e].c();r=M(),l&&l.c(),o=M(),c&&c.c(),F(i,"class","TableUser TableHeadRow"),F(i,"part","TableHeadRow"),F(n,"class","TableContent"),F(n,"part","TableContent")},m(e,t){k(e,n,t),O(n,i);for(let e=0;e<a.length;e+=1)a[e].m(i,null);O(n,r),l&&l.m(n,null),O(n,o),c&&c.m(n,null)},p(t,r){if(5641&r[0]){let e;for(s=t[3],e=0;e<s.length;e+=1){const o=fn(t,s,e);a[e]?a[e].p(o,r):(a[e]=Dn(o),a[e].c(),a[e].m(i,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=s.length}"true"==t[1]&&t[4]?l?l.p(t,r):(l=Mn(t),l.c(),l.m(n,o)):l&&(l.d(1),l=null),t[5]?c?c.p(t,r):(c=$n(t),c.c(),c.m(n,null)):c&&(c.d(1),c=null)},d(e){e&&N(n),E(a,e),l&&l.d(),c&&c.d()}}}function En(e){let r,n,i=e[10](`tournamentsTable.${e[34]}`)+"";return{c(){r=I("p"),n=D(i),F(r,"data-sort",e[9])},m(e,t){k(e,r,t),O(r,n)},p(e,t){1032&t[0]&&i!==(i=e[10](`tournamentsTable.${e[34]}`)+"")&&G(n,i),512&t[0]&&F(r,"data-sort",e[9])},d(e){e&&N(r)}}}function Tn(r){let n,i,o,s,a=r[10](`tournamentsTable.${r[34]}`)+"";function l(){return r[18](r[34])}return{c(){n=I("button"),i=D(a),F(n,"data-sort",r[9])},m(e,t){k(e,n,t),O(n,i),o||(s=T(n,"click",l),o=!0)},p(e,t){r=e,1032&t[0]&&a!==(a=r[10](`tournamentsTable.${r[34]}`)+"")&&G(i,a),512&t[0]&&F(n,"data-sort",r[9])},d(e){e&&N(n),o=!1,s()}}}function _n(e){let r,n;function i(e){return"true"==e[0]?Tn:En}let o=i(e),s=o(e);return{c(){r=I("th"),s.c(),n=M()},m(e,t){k(e,r,t),s.m(r,null),O(r,n)},p(e,t){o===(o=i(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(r,n)))},d(e){e&&N(r),s.d()}}}function Cn(e){let r,n,i,o,s,a,l,c,u,t,f,h,p,d,m,g,b,y,v,w,E,T,_,C,A,P=e[4].Rank+"",S=e[4].Player+"",x=e[4].Points+"";function L(e){return e[4].Prize?Pn:An}let R=L(e),U=R(e);return{c(){r=I("tr"),n=I("td"),i=I("strong"),o=I("em"),s=D("#"),a=D(P),l=M(),c=I("div"),u=I("img"),h=M(),p=I("img"),b=M(),y=I("td"),v=D(S),w=M(),E=I("td"),T=I("div"),_=D(x),C=M(),A=I("td"),U.c(),u.src!==(t=on)&&F(u,"src","data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),F(u,"part","Rank_Arror_UP"),F(u,"class",f="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden")),p.src!==(d=sn)&&F(p,"src","data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),F(p,"part","Rank_Arror_Down"),F(p,"class",m="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden")),F(c,"class",g="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),F(i,"class","RankCol"),F(T,"class","Flex"),F(r,"class","FirstRow"),F(r,"part","FirstRow")},m(e,t){k(e,r,t),O(r,n),O(n,i),O(i,o),O(o,s),O(o,a),O(i,l),O(i,c),O(c,u),O(c,h),O(c,p),O(r,b),O(r,y),O(y,v),O(r,w),O(r,E),O(E,T),O(T,_),O(r,C),O(r,A),U.m(A,null)},p(e,t){16&t[0]&&P!==(P=e[4].Rank+"")&&G(a,P),192&t[0]&&f!==(f="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden"))&&F(u,"class",f),192&t[0]&&m!==(m="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))&&F(p,"class",m),64&t[0]&&g!==(g="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&F(c,"class",g),16&t[0]&&S!==(S=e[4].Player+"")&&G(v,S),16&t[0]&&x!==(x=e[4].Points+"")&&G(_,x),R===(R=L(e))&&U?U.p(e,t):(U.d(1),U=R(e),U&&(U.c(),U.m(A,null)))},d(e){e&&N(r),U.d()}}}function An(e){let r;return{c(){r=D("-")},m(e,t){k(e,r,t)},p:f,d(e){e&&N(r)}}}function Pn(e){let r,n=e[4].Prize+"";return{c(){r=D(n)},m(e,t){k(e,r,t)},p(e,t){16&t[0]&&n!==(n=e[4].Prize+"")&&G(r,n)},d(e){e&&N(r)}}}function Sn(t){let i,o=t[8],s=[];for(let e=0;e<o.length;e+=1)s[e]=Un(ln(t,o,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();i=_()},m(t,r){for(let e=0;e<s.length;e+=1)s[e].m(t,r);k(t,i,r)},p(t,r){if(448&r[0]){let e;for(o=t[8],e=0;e<o.length;e+=1){var n=ln(t,o,e);s[e]?s[e].p(n,r):(s[e]=Un(n),s[e].c(),s[e].m(i.parentNode,i))}for(;e<s.length;e+=1)s[e].d(1);s.length=o.length}},d(e){E(s,e),e&&N(i)}}}function xn(e){let r,t,n,i,o,s,a;return{c(){r=I("img"),i=M(),o=I("img"),r.src!==(t=on)&&F(r,"src","data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),F(r,"part","Rank_Arror_UP"),F(r,"class",n="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden")),o.src!==(s=sn)&&F(o,"src","data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),F(o,"part","Rank_Arror_Down"),F(o,"class",a="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))},m(e,t){k(e,r,t),k(e,i,t),k(e,o,t)},p(e,t){192&t[0]&&n!==(n="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden"))&&F(r,"class",n),192&t[0]&&a!==(a="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))&&F(o,"class",a)},d(e){e&&N(r),e&&N(i),e&&N(o)}}}function Ln(e){let r;return{c(){r=D("-")},m(e,t){k(e,r,t)},p:f,d(e){e&&N(r)}}}function Rn(e){let r,n=e[31].Prize+"";return{c(){r=D(n)},m(e,t){k(e,r,t)},p(e,t){256&t[0]&&n!==(n=e[31].Prize+"")&&G(r,n)},d(e){e&&N(r)}}}function Un(e){let r,n,i,o,s,a,l,c,u,f,h,p,d,m,g,b,y,v,w,E,T=e[31].Rank+"",_=e[31].Player+"",C=e[31].Points+"",A=e[31].isCurrentUser&&xn(e);function P(e){return e[31].Prize?Rn:Ln}let S=P(e),x=S(e);return{c(){r=I("tr"),n=I("td"),i=I("strong"),o=I("em"),s=D("#"),a=D(T),l=M(),c=I("div"),A&&A.c(),f=M(),h=I("td"),p=D(_),d=M(),m=I("td"),g=I("div"),b=D(C),y=M(),v=I("td"),x.c(),w=M(),F(c,"class",u="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),F(i,"class","RankCol"),F(g,"class","Flex ScoreUp"),F(r,"class",E=e[31].isCurrentUser?"FirstRow":"")},m(e,t){k(e,r,t),O(r,n),O(n,i),O(i,o),O(o,s),O(o,a),O(o,l),O(o,c),A&&A.m(c,null),O(r,f),O(r,h),O(h,p),O(r,d),O(r,m),O(m,g),O(g,b),O(r,y),O(r,v),x.m(v,null),O(r,w)},p(e,t){256&t[0]&&T!==(T=e[31].Rank+"")&&G(a,T),e[31].isCurrentUser?A?A.p(e,t):(A=xn(e),A.c(),A.m(c,null)):A&&(A.d(1),A=null),64&t[0]&&u!==(u="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&F(c,"class",u),256&t[0]&&_!==(_=e[31].Player+"")&&G(p,_),256&t[0]&&C!==(C=e[31].Points+"")&&G(b,C),S===(S=P(e))&&x?x.p(e,t):(x.d(1),x=S(e),x&&(x.c(),x.m(v,null))),256&t[0]&&E!==(E=e[31].isCurrentUser?"FirstRow":"")&&F(r,"class",E)},d(e){e&&N(r),A&&A.d(),x.d()}}}function On(e){let r,n;return{c(){r=t("svg"),n=t("path"),F(n,"d","M6 9l6 6 6-6"),F(r,"xmlns","http://www.w3.org/2000/svg"),F(r,"width","24"),F(r,"height","24"),F(r,"viewBox","0 0 24 24"),F(r,"fill","none"),F(r,"stroke","#ffffff"),F(r,"stroke-width","2"),F(r,"stroke-linecap","round"),F(r,"stroke-linejoin","round")},m(e,t){k(e,r,t),O(r,n)},d(e){e&&N(r)}}}function kn(e){let r,n;return{c(){r=t("svg"),n=t("path"),F(n,"d","M18 15l-6-6-6 6"),F(r,"xmlns","http://www.w3.org/2000/svg"),F(r,"width","24"),F(r,"height","24"),F(r,"viewBox","0 0 24 24"),F(r,"fill","none"),F(r,"stroke","#ffffff"),F(r,"stroke-width","2"),F(r,"stroke-linecap","round"),F(r,"stroke-linejoin","round")},m(e,t){k(e,r,t),O(r,n)},d(e){e&&N(r)}}}function Nn(e){let r,n,i=e[10](`tournamentsTable.${e[34]}`)+"";return{c(){r=I("p"),n=D(i),F(r,"data-sort",e[9])},m(e,t){k(e,r,t),O(r,n)},p(e,t){1032&t[0]&&i!==(i=e[10](`tournamentsTable.${e[34]}`)+"")&&G(n,i),512&t[0]&&F(r,"data-sort",e[9])},d(e){e&&N(r)}}}function In(r){let n,i,o,s,a=r[10](`tournamentsTable.${r[34]}`)+"";function l(){return r[17](r[34])}return{c(){n=I("button"),i=D(a),F(n,"data-sort",r[9])},m(e,t){k(e,n,t),O(n,i),o||(s=T(n,"click",l),o=!0)},p(e,t){r=e,1032&t[0]&&a!==(a=r[10](`tournamentsTable.${r[34]}`)+"")&&G(i,a),512&t[0]&&F(n,"data-sort",r[9])},d(e){e&&N(n),o=!1,s()}}}function Dn(e){let r,n,i;function o(e){return"true"==e[0]?In:Nn}let s=o(e),a=s(e);return{c(){r=I("div"),a.c(),n=M(),F(r,"class",i="TableCell Table"+e[34])},m(e,t){k(e,r,t),a.m(r,null),O(r,n)},p(e,t){s===(s=o(e))&&a?a.p(e,t):(a.d(1),a=s(e),a&&(a.c(),a.m(r,n))),8&t[0]&&i!==(i="TableCell Table"+e[34])&&F(r,"class",i)},d(e){e&&N(r),a.d()}}}function Mn(e){let r,n,i,o,s,a,l,c,u,f,h,p,d,m,g=e[4].Rank+"",b=e[4].Player+"",y=e[4].Points+"";function v(e){return e[4].Prize?Gn:Fn}let w=v(e),E=w(e),T=e[4].Unqualified&&jn();return{c(){r=I("div"),n=I("div"),i=D(g),s=M(),a=I("div"),l=D(b),c=M(),u=I("div"),f=D(y),h=M(),E.c(),d=M(),T&&T.c(),m=_(),F(n,"class",o="TableCell TableRank "+(e[4].Prize?"Qualified":"")),F(a,"class","TableCell TablePlayer"),F(u,"class","TableCell TablePoints"),F(r,"class",p="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":"")),F(r,"part","TableUser")},m(e,t){k(e,r,t),O(r,n),O(n,i),O(r,s),O(r,a),O(a,l),O(r,c),O(r,u),O(u,f),O(r,h),E.m(r,null),k(e,d,t),T&&T.m(e,t),k(e,m,t)},p(e,t){16&t[0]&&g!==(g=e[4].Rank+"")&&G(i,g),16&t[0]&&o!==(o="TableCell TableRank "+(e[4].Prize?"Qualified":""))&&F(n,"class",o),16&t[0]&&b!==(b=e[4].Player+"")&&G(l,b),16&t[0]&&y!==(y=e[4].Points+"")&&G(f,y),w===(w=v(e))&&E?E.p(e,t):(E.d(1),E=w(e),E&&(E.c(),E.m(r,null))),16&t[0]&&p!==(p="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&F(r,"class",p),e[4].Unqualified?T||(T=jn(),T.c(),T.m(m.parentNode,m)):T&&(T.d(1),T=null)},d(e){e&&N(r),E.d(),e&&N(d),T&&T.d(e),e&&N(m)}}}function Fn(e){let r;return{c(){r=I("div"),r.textContent="-",F(r,"class","TableCell TablePrize")},m(e,t){k(e,r,t)},p:f,d(e){e&&N(r)}}}function Gn(e){let r,n,i,o=e[4].Prize+"";return{c(){r=I("div"),n=D(o),F(r,"class",i="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))},m(e,t){k(e,r,t),O(r,n)},p(e,t){16&t[0]&&o!==(o=e[4].Prize+"")&&G(n,o),16&t[0]&&i!==(i="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))&&F(r,"class",i)},d(e){e&&N(r)}}}function jn(){let r;return{c(){r=I("div"),r.innerHTML='<svg class="ExclamationMark" width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z" fill="#B5B5B5"></path></svg> \n <em>Minimum bet count not completed. Check Rules.</em>',F(r,"class","TableUserTooltips"),F(r,"part","TableUserTooltips")},m(e,t){k(e,r,t)},d(e){e&&N(r)}}}function $n(t){let i,o=t[8],s=[];for(let e=0;e<o.length;e+=1)s[e]=Hn(un(t,o,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();i=_()},m(t,r){for(let e=0;e<s.length;e+=1)s[e].m(t,r);k(t,i,r)},p(t,r){if(256&r[0]){let e;for(o=t[8],e=0;e<o.length;e+=1){var n=un(t,o,e);s[e]?s[e].p(n,r):(s[e]=Hn(n),s[e].c(),s[e].m(i.parentNode,i))}for(;e<s.length;e+=1)s[e].d(1);s.length=o.length}},d(e){E(s,e),e&&N(i)}}}function Bn(e){let r;return{c(){r=I("div"),r.textContent="-",F(r,"class","TableCell TablePrize")},m(e,t){k(e,r,t)},p:f,d(e){e&&N(r)}}}function zn(e){let r,n,i,o=e[31].Prize+"";return{c(){r=I("div"),n=D(o),F(r,"class",i="TableCell TablePrize "+(e[31].Unqualified?"":"Qualified"))},m(e,t){k(e,r,t),O(r,n)},p(e,t){256&t[0]&&o!==(o=e[31].Prize+"")&&G(n,o),256&t[0]&&i!==(i="TableCell TablePrize "+(e[31].Unqualified?"":"Qualified"))&&F(r,"class",i)},d(e){e&&N(r)}}}function Vn(e){let r,n,i,o,s,a,l;return{c(){r=I("div"),n=t("svg"),i=t("path"),o=M(),s=I("em"),s.textContent="Minimum bet count not completed. Check Rules.",a=M(),F(i,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),F(i,"fill","#B5B5B5"),F(n,"class","ExclamationMark"),F(n,"width","10"),F(n,"height","10"),F(n,"viewBox","0 0 10 10"),F(n,"fill","none"),F(n,"xmlns","http://www.w3.org/2000/svg"),F(r,"class",l="TableUserTooltips "+(e[31].Unqualified?"UnqualifiedRow":""))},m(e,t){k(e,r,t),O(r,n),O(n,i),O(r,o),O(r,s),O(r,a)},p(e,t){256&t[0]&&l!==(l="TableUserTooltips "+(e[31].Unqualified?"UnqualifiedRow":""))&&F(r,"class",l)},d(e){e&&N(r)}}}function Hn(e){let r,n,i,o,s,a,l,c,u,f,h,p,d,m,g=e[31].Rank+"",b=e[31].Player+"",y=e[31].Points+"";function v(e){return e[31].Prize?zn:Bn}let w=v(e),E=w(e),T=e[31].isCurrentUser&&e[31].Unqualified&&Vn(e);return{c(){r=I("div"),n=I("div"),i=D(g),s=M(),a=I("div"),l=D(b),c=M(),u=I("div"),f=D(y),h=M(),E.c(),d=M(),T&&T.c(),m=_(),F(n,"class",o="TableCell TableRank "+(e[31].Prize?"Qualified":"")),F(a,"class","TableCell TablePlayer"),F(u,"class","TableCell TablePoints"),F(r,"class",p="TableUser "+(e[31].isCurrentUser?"CurrentUserRow":""))},m(e,t){k(e,r,t),O(r,n),O(n,i),O(r,s),O(r,a),O(a,l),O(r,c),O(r,u),O(u,f),O(r,h),E.m(r,null),k(e,d,t),T&&T.m(e,t),k(e,m,t)},p(e,t){256&t[0]&&g!==(g=e[31].Rank+"")&&G(i,g),256&t[0]&&o!==(o="TableCell TableRank "+(e[31].Prize?"Qualified":""))&&F(n,"class",o),256&t[0]&&b!==(b=e[31].Player+"")&&G(l,b),256&t[0]&&y!==(y=e[31].Points+"")&&G(f,y),w===(w=v(e))&&E?E.p(e,t):(E.d(1),E=w(e),E&&(E.c(),E.m(r,null))),256&t[0]&&p!==(p="TableUser "+(e[31].isCurrentUser?"CurrentUserRow":""))&&F(r,"class",p),e[31].isCurrentUser&&e[31].Unqualified?T?T.p(e,t):(T=Vn(e),T.c(),T.m(m.parentNode,m)):T&&(T.d(1),T=null)},d(e){e&&N(r),E.d(),e&&N(d),T&&T.d(e),e&&N(m)}}}function Xn(e){let t,r;function n(e){return 0<e[2].length||e[4]?dn:(null==t&&(t=!(1!=rn(e[11]))),t?pn:hn)}let i=n(e),o=i(e);return{c(){o.c(),r=_(),this.c=f},m(e,t){o.m(e,t),k(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},i:f,o:f,d(e){o.d(e),e&&N(r)}}}function qn(e,t,i){let r,n,o;var s=tn;e.$$.on_destroy.push(P(s,e=>i(10,o=e)));let a,{sortable:l=!1}=t,{firstrow:c=!1}=t,{lang:u="en"}=t,f=[],h=[],p=null,d=null,m=null,g=!0,b=window.navigator.userAgent,y=!1,v=!1;Object.keys(nn).forEach(e=>{Ir(e,nn[e])});let w,E;const T=e=>{a?(i(6,y=a!=e),i(7,v=a>e),y&&(w=(new Date).getTime(),setTimeout(function(){E=(new Date).getTime(),4<(E-w)/1e3&&i(6,y=!1),a=e},5e3))):a=e},_=t=>{if(t.data&&"CasinoTableData"===t.data.type&&(i(2,h=t.data.tableData),i(8,r=h)),t.data&&"CasinoTableColumns"===t.data.type&&i(3,f=t.data.tableColumns),t.data&&"CasinoTableCurrentUserData"===t.data.type&&h&&(h.forEach(e=>{e.userID==t.data.tableData.userID&&(e.isCurrentUser=!0,a=a||t.data.tableData.Rank,m?(T(t.data.tableData.Rank),i(4,m=null)):T(t.data.tableData.Rank))}),i(8,r=h)),c&&t.data&&"CasinoTableFirstRowData"===t.data.type){var e=t.data.tableData;if(!m)return i(4,m=t.data.tableData),void(a=m.Rank);m&&m.UserID==e.UserID&&(T(e.Rank),i(4,m=t.data.tableData))}if(t.data&&"CasinoTableDataUpdate"===t.data.type&&t.data.tableData){let n=t.data.tableData;h instanceof Array&&h.forEach(function(e,t){var r,e=(r=e.Rank,n.find(e=>e.Rank==r));e&&i(2,h[t]=e,h)})}},C=e=>{var t=e===p,r="ASC"===d,n=t&&!r;i(15,p=n?null:e),i(16,d=n?null:t&&r?"DESC":"ASC")},A=()=>{i(5,g=!g)};return t=()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}),function(){if(!S)throw new Error("Function called outside component initialization");return S}().$$.on_mount.push(t),e.$$set=e=>{"sortable"in e&&i(0,l=e.sortable),"firstrow"in e&&i(1,c=e.firstrow),"lang"in e&&i(14,u=e.lang)},e.$$.update=()=>{98308&e.$$.dirty[0]&&i(8,r=p&&d?(()=>{let e=[];if(h&&(e=[...h]),!h.length)return h;var t=typeof h[0][p.toLowerCase()];return e.sort((e=>{const r=p.toLowerCase();return"string"==e?(e,t)=>e[r].localeCompare(t[r]):"number"==e||"object"==e?(e,t)=>e[r]-t[r]:void 0})(t)),"ASC"===d?e:e.reverse()})():[...h]),98304&e.$$.dirty[0]&&i(9,n=null===p?d:null)},[l,c,h,f,m,g,y,v,r,n,o,b,C,A,u,p,d,e=>C(e),e=>C(e),()=>A(),e=>C(e)]}class Zn extends l{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}.LeaderboardContainer{background:var(--emfe-w-color-contrast, #07072A);color:#fff;display:flex;width:100%;height:52px;align-items:center;justify-content:space-between;gap:20px}.Leaderboard{width:100%;height:44px;display:flex;align-items:center;padding-left:20px}.TableContent{width:100%;font-size:14px;margin-bottom:2px;border-bottom:solid 1px var(--emfe-w-color-white, #FFFFFF)}.TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid var(--emfe-w-color-green, #48952a)}.TableUser{background:var(--emfe-w-table-bg, #282828);height:44px;display:flex;align-items:center;border-bottom:solid 1px var(--emfe-w-table-border, #3a3a3a)}.TableUser.TableHeadRow{background:var(--emfe-w-table-header-bg, #1c1c1c);color:var(--emfe-w-color-white, #fff)}.TableUser.CurrentUserRow{box-sizing:border-box;background:var(--emfe-w-table-currentuser-bg, #533a34)}.TableUser.UnqualifiedRow{border-bottom:0}.TableUserTooltips{background:var(--emfe-w-table-currentuser-bg, #533a34);width:100%;height:18px;text-align:center;font-size:0.8rem}.TableCell{padding:10px;flex:2;text-align:center}.TableRank{flex:1 50px}.TablePlayer{flex:5}.TablePrize{flex:5}.Qualified{color:var(--emfe-w-highlight, #debb05)}.ExclamationMark{vertical-align:text-top;width:14px;height:14px}.TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.TournamentsTable{width:100%;min-width:600px;display:flex;justify-content:space-between;text-align:center}.LeftTable{width:100%}.RightButton{cursor:pointer;background:var(--emfe-w-color-contrast, #07072A);width:50px;height:70px;border:2px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.RightButton.MobileClass{height:50px}.FirstRow{outline:2px solid #1B9800}.FirstRow .RankCol{position:relative;width:max-content;display:inline}.FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.Show{display:inline-flex}.Hidden{display:none}.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}table{width:100%;min-width:600px;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}th{padding:1.5rem 1.25rem;height:70px;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);top:0;color:var(--emfe-w-color-white, #FFFFFF)}td{margin:0;padding:1.25rem;vertical-align:top;text-align:inherit;color:var(--emfe-w-color-white, #FFFFFF);font-size:0.9rem;max-width:20%;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D)}td:first-child{left:0;top:auto;width:10rem}svg{width:1.25rem;height:1.25rem;fill:rgba(0, 0, 0, 0.5);flex-shrink:0}.flex{display:flex;align-items:center}button{font-weight:bold;font-size:inherit;text-transform:capitalize;background-color:transparent;border:none;cursor:pointer;display:block;padding:0 1rem 0 0;background-size:0.75rem;background-repeat:no-repeat;background-position:center right;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M16.29 14.29L12 18.59l-4.29-4.3a1 1 0 00-1.42 1.42l5 5a1 1 0 001.42 0l5-5a1 1 0 00-1.42-1.42zM7.71 9.71L12 5.41l4.29 4.3a1 1 0 001.42 0 1 1 0 000-1.42l-5-5a1 1 0 00-1.42 0l-5 5a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}.CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}[data-sort=\"ASC\"],[data-sort=\"DESC\"]{background-size:1rem;background-position:right -0.15rem center}[data-sort=\"ASC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M11.29 11.46a1 1 0 001.42 0l3-3A1 1 0 1014.29 7L12 9.34 9.71 7a1 1 0 10-1.42 1.46zm3 1.08L12 14.84l-2.29-2.3A1 1 0 008.29 14l3 3a1 1 0 001.42 0l3-3a1 1 0 00-1.42-1.42z'/%3E%3C/svg%3E\")}[data-sort=\"DESC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M12.71 12.54a1 1 0 00-1.42 0l-3 3A1 1 0 009.71 17L12 14.66 14.29 17a1 1 0 001.42 0 1 1 0 000-1.42zm-3-1.08L12 9.16l2.29 2.3a1 1 0 001.42 0 1 1 0 000-1.42l-3-3a1 1 0 00-1.42 0l-3 3a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}</style>",a(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},qn,Xn,r,{sortable:0,firstrow:1,lang:14},[-1,-1]),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["sortable","firstrow","lang"]}get sortable(){return this.$$.ctx[0]}set sortable(e){this.$set({sortable:e}),C()}get firstrow(){return this.$$.ctx[1]}set firstrow(e){this.$set({firstrow:e}),C()}get lang(){return this.$$.ctx[14]}set lang(e){this.$set({lang:e}),C()}}return customElements.get("casino-tournaments-table")||customElements.define("casino-tournaments-table",Zn),Zn});
|
|
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 f(){}function h(e){return e()}function p(){return Object.create(null)}function d(e){e.forEach(h)}function m(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function P(e,...t){if(null==e)return f;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function I(e,t){e.appendChild(t)}function D(e,t,r){e.insertBefore(t,r||null)}function M(e){e.parentNode.removeChild(e)}function E(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function F(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function G(e){return document.createTextNode(e)}function j(){return G(" ")}function A(){return G("")}function T(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function $(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function B(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let S;function g(e){S=e}const b=[],e=[],n=[],i=[],y=Promise.resolve();let v=!1;function w(e){n.push(e)}let o=!1;const a=new Set;function _(){if(!o){o=!0;do{for(let e=0;e<b.length;e+=1){var t=b[e];g(t),function(e){{var t;null!==e.fragment&&(e.update(),d(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(w))}}(t.$$)}for(g(null),b.length=0;e.length;)e.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];a.has(r)||(a.add(r),r())}}while(n.length=0,b.length);for(;i.length;)i.pop()();v=!1,o=!1,a.clear()}}const C=new Set;function s(n,e,t,r,i,o,a=[-1]){var s,l=S;g(n);const c=n.$$={fragment:null,ctx:null,props:o,update:f,not_equal:i,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:p(),dirty:a,skip_bound:!1};let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(b.push(e),v||(v=!0,y.then(_)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,d(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const f=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(f),f.forEach(M)}else c.fragment&&c.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(C.delete(s),s.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:a,after_update:s}=t.$$;i&&i.m(e,r),n||w(()=>{var e=o.map(h).filter(m);a?a.push(...e):d(e),t.$$.on_mount=[]}),s.forEach(w)}(n,e.target,e.anchor,e.customElement),_()}g(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){d(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(d(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=f}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var c,u,U="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==U&&U,R="URLSearchParams"in U,x="Symbol"in U&&"iterator"in Symbol,L="FileReader"in U&&"Blob"in U&&function(){try{return new Blob,!0}catch(e){return!1}}(),O="FormData"in U,k="ArrayBuffer"in U;function N(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 z(e){return e="string"!=typeof e?String(e):e}function q(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return x&&(e[Symbol.iterator]=function(){return e}),e}function H(t){this.map={},t instanceof H?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 V(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function X(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Q(e){var t=new FileReader,r=X(t);return t.readAsArrayBuffer(e),r}function Z(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Y(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:L&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:O&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:R&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():k&&L&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Z(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):k&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=Z(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):R&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},L&&(this.blob=function(){var e=V(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?V(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(Q)}),this.text=function(){var e,t,r=V(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=X(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},O&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}k&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&-1<c.indexOf(Object.prototype.toString.call(e))}),H.prototype.append=function(e,t){e=N(e),t=z(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},H.prototype.delete=function(e){delete this.map[N(e)]},H.prototype.get=function(e){return e=N(e),this.has(e)?this.map[e]:null},H.prototype.has=function(e){return this.map.hasOwnProperty(N(e))},H.prototype.set=function(e,t){this.map[N(e)]=z(t)},H.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},H.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),q(r)},H.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),q(t)},H.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),q(r)},x&&(H.prototype[Symbol.iterator]=H.prototype.entries);var K=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(e,t){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof W){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new H(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new H(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<K.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function J(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function ee(e,t){if(!(this instanceof ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');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 H(t.headers),this.url=t.url||"",this._initBody(e)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})},Y.call(W.prototype),Y.call(ee.prototype),ee.prototype.clone=function(){return new ee(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new H(this.headers),url:this.url})},ee.error=function(){var e=new ee(null,{status:0,statusText:""});return e.type="error",e};var te=[301,302,303,307,308];ee.redirect=function(e,t){if(-1===te.indexOf(t))throw new RangeError("Invalid status code");return new ee(null,{status:t,headers:{location:e}})};var re=U.DOMException;try{new re}catch(f){(re=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),re.prototype.constructor=re}function ne(n,a){return new Promise(function(i,e){var t=new W(n,a);if(t.signal&&t.signal.aborted)return e(new re("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new H,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new ee(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new re("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&U.location.href?U.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&&(L?o.responseType="blob":k&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof H?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){o.setRequestHeader(e,z(a.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}ne.polyfill=!0,U.fetch||(U.fetch=ne,U.Headers=H,U.Request=W,U.Response=ee),self.fetch.bind(self);var ie=function(e,t){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function ae(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function se(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function le(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function ce(e){return"function"==typeof e}function ue(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 fe=ue(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)}var pe=(me.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ae(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(ce(o))try{o()}catch(e){i=e instanceof fe?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=ae(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{be(u)}catch(e){i=null!=i?i:[],e instanceof fe?i=le(le([],se(i)),se(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new fe(i)}},me.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)be(e);else{if(e instanceof me){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},me.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},me.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},me.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&he(t,e)},me.prototype.remove=function(e){var t=this._teardowns;t&&he(t,e),e instanceof me&&e._removeParent(this)},me.EMPTY=((Gt=new me).closed=!0,Gt),me),de=pe.EMPTY;function me(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ge(e){return e instanceof pe||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function be(e){ce(e)?e():e.unsubscribe()}var ye=void 0,ve=!1,we=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,le([],se(e)))};function Ee(){}function Te(e){e()}var _e,Ce,Ae=(oe(Ue,Ce=pe),Ue.create=function(e,t,r){return new Pe(e,t,r)},Ue.prototype.next=function(e){this.isStopped||this._next(e)},Ue.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Ue.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ue.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ce.prototype.unsubscribe.call(this),this.destination=null)},Ue.prototype._next=function(e){this.destination.next(e)},Ue.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},Ue.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ue),Pe=(oe(Se,_e=Ae),Se);function Se(e,t,r){var n,i,o=_e.call(this)||this;return ce(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&ve?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?Re(i):Ee,error:Re(null!=t?t:xe),complete:r?Re(r):Ee},o}function Ue(e){var t=Ce.call(this)||this;return t.isStopped=!1,e?ge(t.destination=e)&&e.add(t):t.destination=Le,t}function Re(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,le([],se(e)))}catch(e){t=e,we(function(){throw t})}}}function xe(e){throw e}var Le={closed:!0,next:Ee,error:xe,complete:Ee},Oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function ke(e){return e}var Ne=(Ie.prototype.lift=function(e){var t=new Ie;return t.source=this,t.operator=e,t},Ie.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Ae||n&&ce(n.next)&&ce(n.error)&&ce(n.complete)&&ge(n)?e:new Pe(e,t,r);return Te(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Ie.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ie.prototype.forEach=function(n,e){var i=this;return new(e=De(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ie.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ie.prototype[Oe]=function(){return this},Ie.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?ke:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ie.prototype.toPromise=function(e){var n=this;return new(e=De(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ie.create=function(e){return new Ie(e)},Ie);function Ie(e){e&&(this._subscribe=e)}function De(e){return null!==(e=null!=e?e:ye)&&void 0!==e?e:Promise}var Me,Fe,Ge,je=ue(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$e=(oe(Xe,Ge=Ne),Xe.prototype.lift=function(e){var t=new Be(this,this);return t.operator=e,t},Xe.prototype._throwIfClosed=function(){if(this.closed)throw new je},Xe.prototype.next=function(o){var a=this;Te(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=ae(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},Xe.prototype.error=function(t){var r=this;Te(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},Xe.prototype.complete=function(){var t=this;Te(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Xe.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Xe.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),Xe.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ge.prototype._trySubscribe.call(this,e)},Xe.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Xe.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?de:(n.push(e),new pe(function(){return he(n,e)}))},Xe.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},Xe.prototype.asObservable=function(){var e=new Ne;return e.source=this,e},Xe.create=function(e,t){return new Be(e,t)},Xe),Be=(oe(Ve,Fe=$e),Ve.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Ve.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Ve.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Ve.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:de},Ve),ze={now:function(){return(ze.delegate||Date).now()},delegate:void 0},qe=(oe(He,Me=$e),He.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),Me.prototype.next.call(this,e)},He.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},He.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),a=0,s=1;s<r.length&&r[s]<=o;s+=2)a=s;a&&r.splice(0,a+1)}},He);function He(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=ze);var n=Me.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Ve(e,t){var r=Fe.call(this)||this;return r.destination=e,r.source=t,r}function Xe(){var e=Ge.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Qe=[],Ze={};const Ye=[];function Ke(n,i=f){let o;const a=[];function s(e){if(r(n,e)&&(n=e,o)){const e=!Ye.length;for(let e=0;e<a.length;e+=1){const t=a[e];t[1](),Ye.push(t,n)}if(e){for(let e=0;e<Ye.length;e+=2)Ye[e][0](Ye[e+1]);Ye.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=f){const r=[e,t];return a.push(r),1===a.length&&(o=i(s)||f),e(n),()=>{var e=a.indexOf(r);-1!==e&&a.splice(e,1),0===a.length&&(o(),o=null)}}}}function We(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:Ke(t,t=>{let r=!1;const n=[];let i=0,o=f;const a=()=>{var e;i||(o(),e=s(l?n[0]:n,t),u?t(e):o=m(e)?e:f)},e=c.map((e,t)=>P(e,e=>{n[t]=e,i&=~(1<<t),r&&a()},()=>{i|=1<<t}));return r=!0,a(),function(){d(e),o()}}).subscribe}}var Je=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===et));var t},et="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function tt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?at(Array.isArray(e)?[]:{},e,t):e}function rt(e,t,r){return e.concat(t).map(function(e){return tt(e,r)})}function nt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function it(e,t){try{return t in e}catch(e){return!1}}function ot(n,i,o){var a={};return o.isMergeableObject(n)&&nt(n).forEach(function(e){a[e]=tt(n[e],o)}),nt(i).forEach(function(t){var e,r;(!it(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(it(n,t)&&o.isMergeableObject(i[t])?a[t]=function(){if(!o.customMerge)return at;var e=o.customMerge(t);return"function"==typeof e?e:at}()(n[t],i[t],o):a[t]=tt(i[t],o))}),a}function at(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||rt,r.isMergeableObject=r.isMergeableObject||Je,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):ot(e,t,r):tt(t,r)}at.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return at(e,t,r)},{})};var st=at,lt=function(e,t){return(lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ct(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}lt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ut,ft,ht,pt=function(){return(pt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function dt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function mt(e){return e.type===ft.literal}function gt(e){return e.type===ft.number}function bt(e){return e.type===ft.date}function yt(e){return e.type===ft.time}function vt(e){return e.type===ft.select}function wt(e){return e.type===ft.plural}function Et(e){return e.type===ft.tag}function Tt(e){return e&&"object"==typeof e&&e.type===ht.number}function _t(e){return e&&"object"==typeof e&&e.type===ht.dateTime}(jt=ut=ut||{})[jt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",jt[jt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",jt[jt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",jt[jt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",jt[jt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",jt[jt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",jt[jt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",jt[jt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",jt[jt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",jt[jt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",jt[jt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",jt[jt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",jt[jt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",jt[jt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",jt[jt.INVALID_TAG=23]="INVALID_TAG",jt[jt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",jt[jt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",jt[jt.UNCLOSED_TAG=27]="UNCLOSED_TAG",($t=ft=ft||{})[$t.literal=0]="literal",$t[$t.argument=1]="argument",$t[$t.number=2]="number",$t[$t.date=3]="date",$t[$t.time=4]="time",$t[$t.select=5]="select",$t[$t.plural=6]="plural",$t[$t.pound=7]="pound",$t[$t.tag=8]="tag",(Bt=ht=ht||{})[Bt.number=0]="number",Bt[Bt.dateTime=1]="dateTime";var Ct=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,At=/(?:[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 Pt,St=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ut=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Rt=/^(@+)?(\+|#+)?$/g,xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Lt=/^(0+)$/;function Ot(e){var n={};return e.replace(Rt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function kt(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 Nt(e){return kt(e)||{}}function It(e){for(var a={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=i.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=pt(pt(pt({},a),{notation:"scientific"}),i.options.reduce(function(e,t){return pt(pt({},e),Nt(t))},{}));continue;case"engineering":a=pt(pt(pt({},a),{notation:"engineering"}),i.options.reduce(function(e,t){return pt(pt({},e),Nt(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(xt,function(e,t,r,n,i,o){if(t)a.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Lt.test(i.stem))a.minimumIntegerDigits=i.stem.length;else if(Ut.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ut,function(e,t,r,n,i,o){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:i&&o?(a.minimumFractionDigits=i.length,a.maximumFractionDigits=i.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""}),i.options.length&&(a=pt(pt({},a),Ot(i.options[0])))}else Rt.test(i.stem)?a=pt(pt({},a),Ot(i.stem)):((n=kt(i.stem))&&(a=pt(pt({},a),n)),(n=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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Lt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(a=pt(pt({},a),n)))}return a}var Dt=new RegExp("^"+Ct.source+"*"),Mt=new RegExp(Ct.source+"*$");function Ft(e,t){return{start:e,end:t}}var Gt=!!String.prototype.startsWith,Oe=!!String.fromCodePoint,$e=!!Object.fromEntries,jt=!!String.prototype.codePointAt,$t=!!String.prototype.trimStart,Bt=!!String.prototype.trimEnd,zt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ct=!0;try{Ct="a"===(null===(Pt=Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pt?void 0:Pt[0])}catch(f){Ct=!1}var qt,Ht,Vt=Gt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Xt=Oe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Qt=$e?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},Zt=jt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},Yt=$t?function(e){return e.trimStart()}:function(e){return e.replace(Dt,"")},Kt=Bt?function(e){return e.trimEnd()}:function(e){return e.replace(Mt,"")};function Wt(e,t){return new RegExp(e,t)}Ht=Ct?(qt=Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return qt.lastIndex=t,null!==(e=qt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=Zt(e,t);if(void 0===i||rr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return Xt.apply(void 0,n)};var Jt=(er.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},er.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ut.UNMATCHED_CLOSING_TAG,Ft(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&tr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:ft.pound,location:Ft(o,this.clonePosition())})}}}return{val:n,err:null}},er.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ft.literal,value:"<"+n+"/>",location:Ft(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!tr(this.char()))return this.error(ut.INVALID_TAG,Ft(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(ut.UNMATCHED_CLOSING_TAG,Ft(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ft.tag,value:n,children:e,location:Ft(r,this.clonePosition())},err:null}:this.error(ut.INVALID_TAG,Ft(t,this.clonePosition())))}return this.error(ut.UNCLOSED_TAG,Ft(r,this.clonePosition()))}return this.error(ut.INVALID_TAG,Ft(r,this.clonePosition()))},er.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())},er.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=Ft(r,this.clonePosition());return{val:{type:ft.literal,value:n,location:r},err:null}},er.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(tr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},er.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Xt.apply(void 0,t)},er.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),Xt(r))},er.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ut.EMPTY_ARGUMENT,Ft(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ut.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ft.argument,value:n,location:Ft(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(ut.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()))}},er.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Ht(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ft(e,this.clonePosition())}},er.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(ut.EXPECT_ARGUMENT_TYPE,Ft(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(f=Kt(h.val)).length)return this.error(ut.EXPECT_ARGUMENT_STYLE,Ft(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Ft(c,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var u=Ft(n,this.clonePosition());if(l&&Vt(null==l?void 0:l.style,"::",0)){c=Yt(l.style.slice(2));if("number"===a)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:ft.number,value:r,location:u,style:h.val},err:null};if(0===c.length)return this.error(ut.EXPECT_DATE_TIME_SKELETON,u);var f={type:ht.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(At,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"===a?ft.date:ft.time,value:r,location:u,style:f},err:null}}return{val:{type:"number"===a?ft.number:"date"===a?ft.date:ft.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ut.EXPECT_SELECT_ARGUMENT_OPTIONS,Ft(l,pt({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ft(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ut.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.val}u=this.tryParsePluralOrSelectOptions(e,a,t,u);if(u.err)return u;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Ft(n,this.clonePosition());return"select"===a?{val:{type:ft.select,value:r,options:Qt(u.val),location:p},err:null}:{val:{type:ft.plural,value:r,options:Qt(u.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:p},err:null};default:return this.error(ut.INVALID_ARGUMENT_TYPE,Ft(o,s))}},er.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},er.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ut.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ft(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},er.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(St).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),a=0,s=i;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(ut.INVALID_NUMBER_SKELETON,t)}return{val:{type:ht.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?It(r):{}},err:null}},er.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],a=new Set,s=n.value,l=n.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,ut.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Ft(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(a.has(s))return this.error("select"===t?ut.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ut.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ut.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ut.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ft(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(f);if(c.err)return c;o.push([s,{value:u.val,location:Ft(f,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===o.length?this.error("select"===t?ut.EXPECT_SELECT_ARGUMENT_SELECTOR:ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ft(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ut.MISSING_OTHER_CLAUSE,Ft(this.clonePosition(),this.clonePosition())):{val:o,err:null}},er.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}n=Ft(n,this.clonePosition());return i?zt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},er.prototype.offset=function(){return this.position.offset},er.prototype.isEOF=function(){return this.offset()===this.message.length},er.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},er.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Zt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},er.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},er.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))},er.prototype.bumpIf=function(e){if(Vt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},er.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},er.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},er.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},er.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},er);function er(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function tr(e){return 97<=e&&e<=122||65<=e&&e<=90}function rr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function nr(e,t){t=pt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Jt(e,t).parse();if(r.err){e=SyntaxError(ut[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,vt(e)||wt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else gt(e)&&Tt(e.style)||(bt(e)||yt(e))&&_t(e.style)?delete e.style.location:Et(e)&&r(e.children)})}(r.val),r.val}function ir(e,t){var r=t&&t.cache?t.cache:fr,n=t&&t.serializer?t.serializer:lr;return(t&&t.strategy?t.strategy:function(e,t){return sr(e,this,1===e.length?or:ar,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function or(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function ar(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function sr(e,t,r,n,i){return r.bind(t,e,n,i)}var lr=function(){return JSON.stringify(arguments)};function cr(){this.cache=Object.create(null)}cr.prototype.has=function(e){return e in this.cache},cr.prototype.get=function(e){return this.cache[e]},cr.prototype.set=function(e,t){this.cache[e]=t};var ur,fr={create:function(){return new cr}},hr={variadic:function(e,t){return sr(e,this,ar,t.cache.create(),t.serializer)},monadic:function(e,t){return sr(e,this,or,t.cache.create(),t.serializer)}};(Ct=ur=ur||{}).MISSING_VALUE="MISSING_VALUE",Ct.INVALID_VALUE="INVALID_VALUE",Ct.MISSING_INTL_API="MISSING_INTL_API";var pr,dr,mr,gr,br,yr=(ct(Ar,br=Error),Ar.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ar),vr=(ct(Cr,gr=yr),Cr),wr=(ct(_r,mr=yr),_r),Er=(ct(Tr,dr=yr),Tr);function Tr(e,t){return dr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',ur.MISSING_VALUE,t)||this}function _r(e,t,r){return mr.call(this,'Value for "'+e+'" must be of type '+t,ur.INVALID_VALUE,r)||this}function Cr(e,t,r,n){return gr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',ur.INVALID_VALUE,n)||this}function Ar(e,t,r){e=br.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Pr(e,t,r,n,i,o,a){if(1===e.length&&mt(e[0]))return[{type:pr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(mt(u))s.push({type:pr.literal,value:u.value});else if(u.type===ft.pound)"number"==typeof o&&s.push({type:pr.literal,value:r.getNumberFormat(t).format(o)});else{var f=u.value;if(!(i&&f in i))throw new Er(f,a);var h=i[f];if(u.type===ft.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?pr.literal:pr.object,value:h});else if(bt(u)){var p="string"==typeof u.style?n.date[u.style]:_t(u.style)?u.style.parsedOptions:void 0;s.push({type:pr.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(yt(u))p="string"==typeof u.style?n.time[u.style]:_t(u.style)?u.style.parsedOptions:void 0,s.push({type:pr.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(gt(u))(p="string"==typeof u.style?n.number[u.style]:Tt(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:pr.literal,value:r.getNumberFormat(t,p).format(h)});else{if(Et(u)){var d=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new wr(m,"function",a);d=f(Pr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?pr.literal:pr.object,value:e}}))}if(vt(u)){if(!(g=u.options[h]||u.options.other))throw new vr(u.value,h,Object.keys(u.options),a);s.push.apply(s,Pr(g.value,t,r,n,i))}else if(wt(u)){if(!(g=u.options["="+h])){if(!Intl.PluralRules)throw new yr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ur.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[d]||u.options.other}if(!g)throw new vr(u.value,h,Object.keys(u.options),a);s.push.apply(s,Pr(g.value,t,r,n,i,h-(u.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===pr.literal&&t.type===pr.literal?r.value+=t.value:e.push(t),e},[])}function Sr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(Ct=pr=pr||{})[Ct.literal=0]="literal",Ct[Ct.object=1]="object";var Ur=(Object.defineProperty(Rr,"defaultLocale",{get:function(){return Rr.memoizedDefaultLocale||(Rr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Rr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Rr.memoizedDefaultLocale=null,Rr.__parse=nr,Rr.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"}}},Rr);function Rr(e,t,r,n){var i,o,a=this;if(void 0===t&&(t=Rr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=a.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===pr.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 Pr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!Rr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Rr.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}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=Rr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?pt(pt(pt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=pt(pt({},r[t]),n[t]||{}),e},{})):r),e},pt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,dt([void 0],t)))},{cache:Sr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:hr.variadic}),getDateTimeFormat:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,dt([void 0],t)))},{cache:Sr(n.dateTime),strategy:hr.variadic}),getPluralRules:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,dt([void 0],t)))},{cache:Sr(n.pluralRules),strategy:hr.variadic})}}const xr={},Lr=(t,r)=>{if(null!=r){if(r in xr&&t in xr[r])return xr[r][t];var n,i,o=Xr(r);for(let e=0;e<o.length;e++){var a=(n=o[e],i=t,Nr(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Or[e]||null}(n),i):null);if(a)return n=t,i=r,(a=a)&&(i in xr||(xr[i]={}),n in xr[i]||(xr[i][n]=a),a)}}};let Or;const kr=Ke({});function Nr(e){return e in Or}function Ir(t,...r){delete xr[t],kr.update(e=>(e[t]=st.all([e[t]||{},...r]),e))}We([kr],([e])=>Object.keys(e)),kr.subscribe(e=>Or=e);const Dr={};function Mr(e){return Dr[e]}function Fr(e){return Xr(e).some(e=>{return null===(e=Mr(e))||void 0===e?void 0:e.size})}const Gr={};function jr(e){if(!Fr(e))return e in Gr?Gr[e]:void 0;const t=Xr(e).map(e=>{var t=Mr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Gr[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Dr[e].delete(t),0===Dr[e].size&&delete Dr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Ir(t,...e))}(e))).then(()=>Fr(e)?jr(e):void delete Gr[e]),Gr[e]}function $r(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Br={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const zr=Ke(!1);let qr;const Hr=Ke(null);function Vr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Xr(e,t=Br.fallbackLocale){e=Vr(e);return t?[...new Set([...e,...Vr(t)])]:e}Hr.subscribe(e=>{qr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Qr=Hr.set;Hr.set=t=>{if(function(e){if(null!=e){var t=Xr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Nr(r))return r}}}(t)&&Fr(t)){var{loadingDelay:r}=Br;let e;return"undefined"!=typeof window&&null!=qr&&r?e=window.setTimeout(()=>zr.set(!0),r):zr.set(!0),jr(t).then(()=>{Qr(t)}).finally(()=>{clearTimeout(e),zr.set(!1)})}return Qr(t)},Hr.update=e=>Qr(e(qr));const Zr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Yr=(e,t)=>{var{formats:r}=Br;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kr=Zr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Yr("number",r)),new Intl.NumberFormat(t,e)}),Wr=Zr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Yr("date",r):0===Object.keys(e).length&&(e=Yr("date","short")),new Intl.DateTimeFormat(t,e)}),Jr=Zr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Yr("time",r):0===Object.keys(e).length&&(e=Yr("time","short")),new Intl.DateTimeFormat(t,e)}),en=Zr((e,t=qr)=>new Ur(e,t,Br.formats,{ignoreTag:Br.ignoreTag})),tn=We([Hr,kr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=qr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Lr(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Br.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Xr(n).join('", "')}".${Fr(qr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let a=o;try{a=en(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});We([Hr],()=>(e,t)=>((e={})=>{var{locale:t=qr}=e,e=$r(e,["locale"]);return Jr(Object.assign({locale:t},e))})(t).format(e)),We([Hr],()=>(e,t)=>((e={})=>{var{locale:t=qr}=e,e=$r(e,["locale"]);return Wr(Object.assign({locale:t},e))})(t).format(e)),We([Hr],()=>(e,t)=>((e={})=>{var{locale:t=qr}=e,e=$r(e,["locale"]);return Kr(Object.assign({locale:t},e))})(t).format(e)),We([Hr,kr],()=>(e,t=qr)=>Lr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Qe.indexOf(e)&&(t=new qe(t),Ze[e]=t,Qe.push(e)),Ze[e]}};const rn=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)),nn={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Counts",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Rank:"Rank",Player:"Player",Points:"Points",Prize:"Prize"}},ro:{tournamentsTable:{leaderboard:"Clasament",score:"Scor",betcounts:"Cele mai multe runde",winstakeratio:"Castig/miza",qualified:"Calificat",nowinners:"Niciun castigator inregistrat. Fii unul dintre castigatori!",Rank:"Pozitie",Player:"Nume",Points:"Puncte",Prize:"Premiu"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Rank:"Rütbe",Player:"oyuncu",Points:"Puan",Prize:"Ödül"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Rank:"Τάξη",Player:"Παίχτης",Points:"Πόντοι",Prize:"Βραβείο"}}};var on="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",an="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";function sn(e,t,r){const n=e.slice();return n[34]=t[r],n}function ln(e,t,r){const n=e.slice();return n[31]=t[r],n}function cn(e,t,r){const n=e.slice();return n[34]=t[r],n}function un(e,t,r){const n=e.slice();return n[31]=t[r],n}function fn(e,t,r){const n=e.slice();return n[34]=t[r],n}function hn(t){let r,n,i,o,a,s,l,c,u,e=t[10]("tournamentsTable.nowinners")+"",f=t[3],h=[];for(let e=0;e<f.length;e+=1)h[e]=bn(sn(t,f,e));return{c(){r=F("div"),n=F("table"),i=F("thead"),o=F("tr");for(let e=0;e<h.length;e+=1)h[e].c();a=j(),s=F("tbody"),l=F("tr"),c=F("td"),u=G(e),$(c,"colspan","4"),$(n,"class","LeftTable"),$(n,"part","LeftTable"),$(r,"class","TournamentsTable"),$(r,"part","TournamentsTable")},m(e,t){D(e,r,t),I(r,n),I(n,i),I(i,o);for(let e=0;e<h.length;e+=1)h[e].m(o,null);I(n,a),I(n,s),I(s,l),I(l,c),I(c,u)},p(t,r){if(5641&r[0]){let e;for(f=t[3],e=0;e<f.length;e+=1){var n=sn(t,f,e);h[e]?h[e].p(n,r):(h[e]=bn(n),h[e].c(),h[e].m(o,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=f.length}1024&r[0]&&e!==(e=t[10]("tournamentsTable.nowinners")+"")&&B(u,e)},d(e){e&&M(r),E(h,e)}}}function pn(e){let r,n=e[5]&&yn(e);return{c(){n&&n.c(),r=A()},m(e,t){n&&n.m(e,t),D(e,r,t)},p(e,t){e[5]?n?n.p(e,t):(n=yn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&M(r)}}}function dn(e){let r,n=(t=e,(1==rn(t[11])?wn:vn)(e));var t;return{c(){n.c(),r=A()},m(e,t){n.m(e,t),D(e,r,t)},p(e,t){n.p(e,t)},d(e){n.d(e),e&&M(r)}}}function mn(e){let r,n,i=e[10](`tournamentsTable.${e[34]}`)+"";return{c(){r=F("p"),n=G(i),$(r,"data-sort",e[9])},m(e,t){D(e,r,t),I(r,n)},p(e,t){1032&t[0]&&i!==(i=e[10](`tournamentsTable.${e[34]}`)+"")&&B(n,i),512&t[0]&&$(r,"data-sort",e[9])},d(e){e&&M(r)}}}function gn(r){let n,i,o,a,s=r[10](`tournamentsTable.${r[34]}`)+"";function l(){return r[20](r[34])}return{c(){n=F("button"),i=G(s),$(n,"data-sort",r[9])},m(e,t){D(e,n,t),I(n,i),o||(a=T(n,"click",l),o=!0)},p(e,t){r=e,1032&t[0]&&s!==(s=r[10](`tournamentsTable.${r[34]}`)+"")&&B(i,s),512&t[0]&&$(n,"data-sort",r[9])},d(e){e&&M(n),o=!1,a()}}}function bn(e){let r,n;function i(e){return"true"==e[0]?gn:mn}let o=i(e),a=o(e);return{c(){r=F("th"),a.c(),n=j()},m(e,t){D(e,r,t),a.m(r,null),I(r,n)},p(e,t){o===(o=i(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(r,n)))},d(e){e&&M(r),a.d()}}}function yn(e){let r,n,i,o,a=e[10]("tournamentsTable.nowinners")+"";return{c(){r=F("div"),n=F("div"),i=F("p"),o=G(a),$(n,"class","TableUser"),$(n,"part","TableUser"),$(r,"class","TableContent"),$(r,"part","TableContent")},m(e,t){D(e,r,t),I(r,n),I(n,i),I(i,o)},p(e,t){1024&t[0]&&a!==(a=e[10]("tournamentsTable.nowinners")+"")&&B(o,a)},d(e){e&&M(r)}}}function vn(r){let n,i,o,a,s,l,c,u,f,h,p,d,m=r[3],g=[];for(let e=0;e<m.length;e+=1)g[e]=_n(cn(r,m,e));let b="true"==r[1]&&r[4]&&Cn(r),y=r[5]&&Sn(r);function e(e){return e[5]?kn:On}let v=e(r),w=v(r);return{c(){n=F("div"),i=F("table"),o=F("thead"),a=F("tr");for(let e=0;e<g.length;e+=1)g[e].c();s=j(),l=F("tbody"),b&&b.c(),c=j(),y&&y.c(),u=j(),f=F("div"),h=F("div"),w.c(),$(i,"class","LeftTable"),$(i,"part","LeftTable"),$(h,"class","CollapseButton"),$(h,"part","CollapseButton"),$(f,"class","RightButton"),$(f,"part","RightButton"),$(n,"class","TournamentsTable"),$(n,"part","TournamentsTable")},m(e,t){D(e,n,t),I(n,i),I(i,o),I(o,a);for(let e=0;e<g.length;e+=1)g[e].m(a,null);I(i,s),I(i,l),b&&b.m(l,null),I(l,c),y&&y.m(l,null),I(n,u),I(n,f),I(f,h),w.m(h,null),p||(d=T(h,"click",r[19]),p=!0)},p(t,r){if(5641&r[0]){let e;for(m=t[3],e=0;e<m.length;e+=1){var n=cn(t,m,e);g[e]?g[e].p(n,r):(g[e]=_n(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=m.length}"true"==t[1]&&t[4]?b?b.p(t,r):(b=Cn(t),b.c(),b.m(l,c)):b&&(b.d(1),b=null),t[5]?y?y.p(t,r):(y=Sn(t),y.c(),y.m(l,null)):y&&(y.d(1),y=null),v!==(v=e(t))&&(w.d(1),w=v(t),w&&(w.c(),w.m(h,null)))},d(e){e&&M(n),E(g,e),b&&b.d(),y&&y.d(),w.d(),p=!1,d()}}}function wn(t){let n,i,r,o,a=t[3],s=[];for(let e=0;e<a.length;e+=1)s[e]=Dn(fn(t,a,e));let l="true"==t[1]&&t[4]&&Mn(t),c=t[5]&&$n(t);return{c(){n=F("div"),i=F("div");for(let e=0;e<s.length;e+=1)s[e].c();r=j(),l&&l.c(),o=j(),c&&c.c(),$(i,"class","TableUser TableHeadRow"),$(i,"part","TableUser TableHeadRow"),$(n,"class","TableContent"),$(n,"part","TableContent")},m(e,t){D(e,n,t),I(n,i);for(let e=0;e<s.length;e+=1)s[e].m(i,null);I(n,r),l&&l.m(n,null),I(n,o),c&&c.m(n,null)},p(t,r){if(5641&r[0]){let e;for(a=t[3],e=0;e<a.length;e+=1){const o=fn(t,a,e);s[e]?s[e].p(o,r):(s[e]=Dn(o),s[e].c(),s[e].m(i,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=a.length}"true"==t[1]&&t[4]?l?l.p(t,r):(l=Mn(t),l.c(),l.m(n,o)):l&&(l.d(1),l=null),t[5]?c?c.p(t,r):(c=$n(t),c.c(),c.m(n,null)):c&&(c.d(1),c=null)},d(e){e&&M(n),E(s,e),l&&l.d(),c&&c.d()}}}function En(e){let r,n,i=e[10](`tournamentsTable.${e[34]}`)+"";return{c(){r=F("p"),n=G(i),$(r,"data-sort",e[9])},m(e,t){D(e,r,t),I(r,n)},p(e,t){1032&t[0]&&i!==(i=e[10](`tournamentsTable.${e[34]}`)+"")&&B(n,i),512&t[0]&&$(r,"data-sort",e[9])},d(e){e&&M(r)}}}function Tn(r){let n,i,o,a,s=r[10](`tournamentsTable.${r[34]}`)+"";function l(){return r[18](r[34])}return{c(){n=F("button"),i=G(s),$(n,"data-sort",r[9])},m(e,t){D(e,n,t),I(n,i),o||(a=T(n,"click",l),o=!0)},p(e,t){r=e,1032&t[0]&&s!==(s=r[10](`tournamentsTable.${r[34]}`)+"")&&B(i,s),512&t[0]&&$(n,"data-sort",r[9])},d(e){e&&M(n),o=!1,a()}}}function _n(e){let r,n;function i(e){return"true"==e[0]?Tn:En}let o=i(e),a=o(e);return{c(){r=F("th"),a.c(),n=j()},m(e,t){D(e,r,t),a.m(r,null),I(r,n)},p(e,t){o===(o=i(e))&&a?a.p(e,t):(a.d(1),a=o(e),a&&(a.c(),a.m(r,n)))},d(e){e&&M(r),a.d()}}}function Cn(e){let r,n,i,o,a,s,l,c,u,t,f,h,p,d,m,g,b,y,v,w,E,T,_,C,A,P,S,U,R=e[4].Rank+"",x=e[4].Player+"",L=e[4].Points+"";function O(e){return e[4].Prize?Pn:An}let k=O(e),N=k(e);return{c(){r=F("tr"),n=F("td"),i=F("strong"),o=F("em"),a=G("#"),s=G(R),l=j(),c=F("div"),u=F("img"),h=j(),p=F("img"),y=j(),v=F("td"),w=G(x),E=j(),T=F("td"),_=F("div"),C=G(L),A=j(),P=F("td"),N.c(),u.src!==(t=on)&&$(u,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),$(u,"part","Rank_Arror_UP"),$(u,"class",f="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden")),p.src!==(d=an)&&$(p,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),$(p,"part","Rank_Arror_Down"),$(p,"class",m="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden")),$(c,"class",g="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),$(c,"part",b="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),$(i,"class","RankCol"),$(i,"part","RankCol"),$(_,"class","Flex"),$(_,"part","Flex"),$(P,"class",S=e[4].Unqualified?"":"Qualified"),$(P,"part",U=e[4].Unqualified?"":"Qualified"),$(r,"class","FirstRow"),$(r,"part","FirstRow")},m(e,t){D(e,r,t),I(r,n),I(n,i),I(i,o),I(o,a),I(o,s),I(i,l),I(i,c),I(c,u),I(c,h),I(c,p),I(r,y),I(r,v),I(v,w),I(r,E),I(r,T),I(T,_),I(_,C),I(r,A),I(r,P),N.m(P,null)},p(e,t){16&t[0]&&R!==(R=e[4].Rank+"")&&B(s,R),192&t[0]&&f!==(f="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden"))&&$(u,"class",f),192&t[0]&&m!==(m="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))&&$(p,"class",m),64&t[0]&&g!==(g="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&$(c,"class",g),64&t[0]&&b!==(b="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&$(c,"part",b),16&t[0]&&x!==(x=e[4].Player+"")&&B(w,x),16&t[0]&&L!==(L=e[4].Points+"")&&B(C,L),k===(k=O(e))&&N?N.p(e,t):(N.d(1),N=k(e),N&&(N.c(),N.m(P,null))),16&t[0]&&S!==(S=e[4].Unqualified?"":"Qualified")&&$(P,"class",S),16&t[0]&&U!==(U=e[4].Unqualified?"":"Qualified")&&$(P,"part",U)},d(e){e&&M(r),N.d()}}}function An(e){let r;return{c(){r=G("-")},m(e,t){D(e,r,t)},p:f,d(e){e&&M(r)}}}function Pn(e){let r,n=e[4].Prize+"";return{c(){r=G(n)},m(e,t){D(e,r,t)},p(e,t){16&t[0]&&n!==(n=e[4].Prize+"")&&B(r,n)},d(e){e&&M(r)}}}function Sn(t){let i,o=t[8],a=[];for(let e=0;e<o.length;e+=1)a[e]=Ln(ln(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();i=A()},m(t,r){for(let e=0;e<a.length;e+=1)a[e].m(t,r);D(t,i,r)},p(t,r){if(448&r[0]){let e;for(o=t[8],e=0;e<o.length;e+=1){var n=ln(t,o,e);a[e]?a[e].p(n,r):(a[e]=Ln(n),a[e].c(),a[e].m(i.parentNode,i))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){E(a,e),e&&M(i)}}}function Un(e){let r,t,n,i,o,a,s;return{c(){r=F("img"),i=j(),o=F("img"),r.src!==(t=on)&&$(r,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),$(r,"part","Rank_Arror_UP"),$(r,"class",n="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden")),o.src!==(a=an)&&$(o,"src","data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),$(o,"part","Rank_Arror_Down"),$(o,"class",s="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))},m(e,t){D(e,r,t),D(e,i,t),D(e,o,t)},p(e,t){192&t[0]&&n!==(n="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden"))&&$(r,"class",n),192&t[0]&&s!==(s="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))&&$(o,"class",s)},d(e){e&&M(r),e&&M(i),e&&M(o)}}}function Rn(e){let r;return{c(){r=G("-")},m(e,t){D(e,r,t)},p:f,d(e){e&&M(r)}}}function xn(e){let r,n=e[31].Prize+"";return{c(){r=G(n)},m(e,t){D(e,r,t)},p(e,t){256&t[0]&&n!==(n=e[31].Prize+"")&&B(r,n)},d(e){e&&M(r)}}}function Ln(e){let r,n,i,o,a,s,l,c,u,f,h,p,d,m,g,b,y,v,w,E,T,_,C,A,P=e[31].Rank+"",S=e[31].Player+"",U=e[31].Points+"",R=e[31].isCurrentUser&&Un(e);function x(e){return e[31].Prize?xn:Rn}let L=x(e),O=L(e);return{c(){r=F("tr"),n=F("td"),i=F("strong"),o=F("em"),a=G("#"),s=G(P),l=j(),c=F("div"),R&&R.c(),h=j(),p=F("td"),d=G(S),m=j(),g=F("td"),b=F("div"),y=G(U),v=j(),w=F("td"),O.c(),_=j(),$(c,"class",u="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),$(c,"part",f="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),$(i,"class","RankCol"),$(i,"part","RankCol"),$(b,"class","Flex ScoreUp"),$(b,"part","Flex ScoreUp"),$(w,"class",E=e[31].Unqualified?"":"Qualified"),$(w,"part",T=e[31].Unqualified?"":"Qualified"),$(r,"class",C=e[31].isCurrentUser?"FirstRow":""),$(r,"part",A=e[31].isCurrentUser?"FirstRow":"")},m(e,t){D(e,r,t),I(r,n),I(n,i),I(i,o),I(o,a),I(o,s),I(o,l),I(o,c),R&&R.m(c,null),I(r,h),I(r,p),I(p,d),I(r,m),I(r,g),I(g,b),I(b,y),I(r,v),I(r,w),O.m(w,null),I(r,_)},p(e,t){256&t[0]&&P!==(P=e[31].Rank+"")&&B(s,P),e[31].isCurrentUser?R?R.p(e,t):(R=Un(e),R.c(),R.m(c,null)):R&&(R.d(1),R=null),64&t[0]&&u!==(u="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&$(c,"class",u),64&t[0]&&f!==(f="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&$(c,"part",f),256&t[0]&&S!==(S=e[31].Player+"")&&B(d,S),256&t[0]&&U!==(U=e[31].Points+"")&&B(y,U),L===(L=x(e))&&O?O.p(e,t):(O.d(1),O=L(e),O&&(O.c(),O.m(w,null))),256&t[0]&&E!==(E=e[31].Unqualified?"":"Qualified")&&$(w,"class",E),256&t[0]&&T!==(T=e[31].Unqualified?"":"Qualified")&&$(w,"part",T),256&t[0]&&C!==(C=e[31].isCurrentUser?"FirstRow":"")&&$(r,"class",C),256&t[0]&&A!==(A=e[31].isCurrentUser?"FirstRow":"")&&$(r,"part",A)},d(e){e&&M(r),R&&R.d(),O.d()}}}function On(e){let r,n;return{c(){r=t("svg"),n=t("path"),$(n,"d","M6 9l6 6 6-6"),$(r,"xmlns","http://www.w3.org/2000/svg"),$(r,"width","24"),$(r,"height","24"),$(r,"viewBox","0 0 24 24"),$(r,"fill","none"),$(r,"stroke","#ffffff"),$(r,"stroke-width","2"),$(r,"stroke-linecap","round"),$(r,"stroke-linejoin","round")},m(e,t){D(e,r,t),I(r,n)},d(e){e&&M(r)}}}function kn(e){let r,n;return{c(){r=t("svg"),n=t("path"),$(n,"d","M18 15l-6-6-6 6"),$(r,"xmlns","http://www.w3.org/2000/svg"),$(r,"width","24"),$(r,"height","24"),$(r,"viewBox","0 0 24 24"),$(r,"fill","none"),$(r,"stroke","#ffffff"),$(r,"stroke-width","2"),$(r,"stroke-linecap","round"),$(r,"stroke-linejoin","round")},m(e,t){D(e,r,t),I(r,n)},d(e){e&&M(r)}}}function Nn(e){let r,n,i=e[10](`tournamentsTable.${e[34]}`)+"";return{c(){r=F("p"),n=G(i),$(r,"data-sort",e[9])},m(e,t){D(e,r,t),I(r,n)},p(e,t){1032&t[0]&&i!==(i=e[10](`tournamentsTable.${e[34]}`)+"")&&B(n,i),512&t[0]&&$(r,"data-sort",e[9])},d(e){e&&M(r)}}}function In(r){let n,i,o,a,s=r[10](`tournamentsTable.${r[34]}`)+"";function l(){return r[17](r[34])}return{c(){n=F("button"),i=G(s),$(n,"data-sort",r[9])},m(e,t){D(e,n,t),I(n,i),o||(a=T(n,"click",l),o=!0)},p(e,t){r=e,1032&t[0]&&s!==(s=r[10](`tournamentsTable.${r[34]}`)+"")&&B(i,s),512&t[0]&&$(n,"data-sort",r[9])},d(e){e&&M(n),o=!1,a()}}}function Dn(e){let r,n,i,o;function a(e){return"true"==e[0]?In:Nn}let s=a(e),l=s(e);return{c(){r=F("div"),l.c(),n=j(),$(r,"class",i="TableCell Table"+e[34]),$(r,"part",o="TableCell Table"+e[34])},m(e,t){D(e,r,t),l.m(r,null),I(r,n)},p(e,t){s===(s=a(e))&&l?l.p(e,t):(l.d(1),l=s(e),l&&(l.c(),l.m(r,n))),8&t[0]&&i!==(i="TableCell Table"+e[34])&&$(r,"class",i),8&t[0]&&o!==(o="TableCell Table"+e[34])&&$(r,"part",o)},d(e){e&&M(r),l.d()}}}function Mn(e){let r,n,i,o,a,s,l,c,u,f,h,p,d,m,g,b,y=e[4].Rank+"",v=e[4].Player+"",w=e[4].Points+"";function E(e){return e[4].Prize?Gn:Fn}let T=E(e),_=T(e),C=e[4].Unqualified&&jn();return{c(){r=F("div"),n=F("div"),i=G(y),s=j(),l=F("div"),c=G(v),u=j(),f=F("div"),h=G(w),p=j(),_.c(),g=j(),C&&C.c(),b=A(),$(n,"class",o="TableCell TableRank "+(e[4].Prize?"Qualified":"")),$(n,"part",a="TableCell TableRank "+(e[4].Prize?"Qualified":"")),$(l,"class","TableCell TablePlayer"),$(l,"part","TableCell TablePlayer"),$(f,"class","TableCell TablePoints"),$(f,"part","TableCell TablePoints"),$(r,"class",d="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":"")),$(r,"part",m="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))},m(e,t){D(e,r,t),I(r,n),I(n,i),I(r,s),I(r,l),I(l,c),I(r,u),I(r,f),I(f,h),I(r,p),_.m(r,null),D(e,g,t),C&&C.m(e,t),D(e,b,t)},p(e,t){16&t[0]&&y!==(y=e[4].Rank+"")&&B(i,y),16&t[0]&&o!==(o="TableCell TableRank "+(e[4].Prize?"Qualified":""))&&$(n,"class",o),16&t[0]&&a!==(a="TableCell TableRank "+(e[4].Prize?"Qualified":""))&&$(n,"part",a),16&t[0]&&v!==(v=e[4].Player+"")&&B(c,v),16&t[0]&&w!==(w=e[4].Points+"")&&B(h,w),T===(T=E(e))&&_?_.p(e,t):(_.d(1),_=T(e),_&&(_.c(),_.m(r,null))),16&t[0]&&d!==(d="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&$(r,"class",d),16&t[0]&&m!==(m="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&$(r,"part",m),e[4].Unqualified?C||(C=jn(),C.c(),C.m(b.parentNode,b)):C&&(C.d(1),C=null)},d(e){e&&M(r),_.d(),e&&M(g),C&&C.d(e),e&&M(b)}}}function Fn(e){let r;return{c(){r=F("div"),r.textContent="-",$(r,"class","TableCell TablePrize"),$(r,"part","TableCell TablePrize")},m(e,t){D(e,r,t)},p:f,d(e){e&&M(r)}}}function Gn(e){let r,n,i,o,a=e[4].Prize+"";return{c(){r=F("div"),n=G(a),$(r,"class",i="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified")),$(r,"part",o="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))},m(e,t){D(e,r,t),I(r,n)},p(e,t){16&t[0]&&a!==(a=e[4].Prize+"")&&B(n,a),16&t[0]&&i!==(i="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))&&$(r,"class",i),16&t[0]&&o!==(o="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))&&$(r,"part",o)},d(e){e&&M(r)}}}function jn(){let r;return{c(){r=F("div"),r.innerHTML='<svg class="ExclamationMark" part="ExclamationMark" width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z" fill="#B5B5B5"></path></svg> \n <em>Minimum bet count not completed. Check Rules.</em>',$(r,"class","TableUserTooltips"),$(r,"part","TableUserTooltips")},m(e,t){D(e,r,t)},d(e){e&&M(r)}}}function $n(t){let i,o=t[8],a=[];for(let e=0;e<o.length;e+=1)a[e]=Hn(un(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();i=A()},m(t,r){for(let e=0;e<a.length;e+=1)a[e].m(t,r);D(t,i,r)},p(t,r){if(256&r[0]){let e;for(o=t[8],e=0;e<o.length;e+=1){var n=un(t,o,e);a[e]?a[e].p(n,r):(a[e]=Hn(n),a[e].c(),a[e].m(i.parentNode,i))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){E(a,e),e&&M(i)}}}function Bn(e){let r;return{c(){r=F("div"),r.textContent="-",$(r,"class","TableCell TablePrize"),$(r,"part","TableCell TablePrize")},m(e,t){D(e,r,t)},p:f,d(e){e&&M(r)}}}function zn(e){let r,n,i,o,a=e[31].Prize+"";return{c(){r=F("div"),n=G(a),$(r,"class",i="TableCell TablePrize "+(e[31].Unqualified?"":"Qualified")),$(r,"part",o="TableCell TablePrize "+(e[31].Unqualified?"":"Qualified"))},m(e,t){D(e,r,t),I(r,n)},p(e,t){256&t[0]&&a!==(a=e[31].Prize+"")&&B(n,a),256&t[0]&&i!==(i="TableCell TablePrize "+(e[31].Unqualified?"":"Qualified"))&&$(r,"class",i),256&t[0]&&o!==(o="TableCell TablePrize "+(e[31].Unqualified?"":"Qualified"))&&$(r,"part",o)},d(e){e&&M(r)}}}function qn(e){let r,n,i,o,a,s,l,c;return{c(){r=F("div"),n=t("svg"),i=t("path"),o=j(),a=F("em"),a.textContent="Minimum bet count not completed. Check Rules.",s=j(),$(i,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),$(i,"fill","#B5B5B5"),$(n,"class","ExclamationMark"),$(n,"part","ExclamationMark"),$(n,"width","10"),$(n,"height","10"),$(n,"viewBox","0 0 10 10"),$(n,"fill","none"),$(n,"xmlns","http://www.w3.org/2000/svg"),$(r,"class",l="TableUserTooltips "+(e[31].Unqualified?"UnqualifiedRow":"")),$(r,"part",c="TableUserTooltips "+(e[31].Unqualified?"UnqualifiedRow":""))},m(e,t){D(e,r,t),I(r,n),I(n,i),I(r,o),I(r,a),I(r,s)},p(e,t){256&t[0]&&l!==(l="TableUserTooltips "+(e[31].Unqualified?"UnqualifiedRow":""))&&$(r,"class",l),256&t[0]&&c!==(c="TableUserTooltips "+(e[31].Unqualified?"UnqualifiedRow":""))&&$(r,"part",c)},d(e){e&&M(r)}}}function Hn(e){let r,n,i,o,a,s,l,c,u,f,h,p,d,m,g,b,y=e[31].Rank+"",v=e[31].Player+"",w=e[31].Points+"";function E(e){return e[31].Prize?zn:Bn}let T=E(e),_=T(e),C=e[31].isCurrentUser&&e[31].Unqualified&&qn(e);return{c(){r=F("div"),n=F("div"),i=G(y),s=j(),l=F("div"),c=G(v),u=j(),f=F("div"),h=G(w),p=j(),_.c(),g=j(),C&&C.c(),b=A(),$(n,"class",o="TableCell TableRank "+(e[31].Prize?"Qualified":"")),$(n,"part",a="TableCell TableRank "+(e[31].Prize?"Qualified":"")),$(l,"class","TableCell TablePlayer"),$(l,"part","TableCell TablePlayer"),$(f,"class","TableCell TablePoints"),$(f,"part","TableCell TablePoints"),$(r,"class",d="TableUser "+(e[31].isCurrentUser?"CurrentUserRow":"")),$(r,"part",m="TableUser "+(e[31].isCurrentUser?"CurrentUserRow":""))},m(e,t){D(e,r,t),I(r,n),I(n,i),I(r,s),I(r,l),I(l,c),I(r,u),I(r,f),I(f,h),I(r,p),_.m(r,null),D(e,g,t),C&&C.m(e,t),D(e,b,t)},p(e,t){256&t[0]&&y!==(y=e[31].Rank+"")&&B(i,y),256&t[0]&&o!==(o="TableCell TableRank "+(e[31].Prize?"Qualified":""))&&$(n,"class",o),256&t[0]&&a!==(a="TableCell TableRank "+(e[31].Prize?"Qualified":""))&&$(n,"part",a),256&t[0]&&v!==(v=e[31].Player+"")&&B(c,v),256&t[0]&&w!==(w=e[31].Points+"")&&B(h,w),T===(T=E(e))&&_?_.p(e,t):(_.d(1),_=T(e),_&&(_.c(),_.m(r,null))),256&t[0]&&d!==(d="TableUser "+(e[31].isCurrentUser?"CurrentUserRow":""))&&$(r,"class",d),256&t[0]&&m!==(m="TableUser "+(e[31].isCurrentUser?"CurrentUserRow":""))&&$(r,"part",m),e[31].isCurrentUser&&e[31].Unqualified?C?C.p(e,t):(C=qn(e),C.c(),C.m(b.parentNode,b)):C&&(C.d(1),C=null)},d(e){e&&M(r),_.d(),e&&M(g),C&&C.d(e),e&&M(b)}}}function Vn(e){let t,r;function n(e){return 0<e[2].length||e[4]?dn:(null==t&&(t=!(1!=rn(e[11]))),t?pn:hn)}let i=n(e),o=i(e);return{c(){o.c(),r=A(),this.c=f},m(e,t){o.m(e,t),D(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},i:f,o:f,d(e){o.d(e),e&&M(r)}}}function Xn(e,t,i){let r,n,o;var a=tn;e.$$.on_destroy.push(P(a,e=>i(10,o=e)));let s,{sortable:l=!1}=t,{firstrow:c=!1}=t,{lang:u="en"}=t,f=[],h=[],p=null,d=null,m=null,g=!0,b=window.navigator.userAgent,y=!1,v=!1;Object.keys(nn).forEach(e=>{Ir(e,nn[e])});let w,E;const T=e=>{s?(i(6,y=s!=e),i(7,v=s>e),y&&(w=(new Date).getTime(),setTimeout(function(){E=(new Date).getTime(),4<(E-w)/1e3&&i(6,y=!1),s=e},5e3))):s=e},_=t=>{if(t.data&&"CasinoTableData"===t.data.type&&(i(2,h=t.data.tableData),i(8,r=h)),t.data&&"CasinoTableColumns"===t.data.type&&i(3,f=t.data.tableColumns),t.data&&"CasinoTableCurrentUserData"===t.data.type&&h&&(h.forEach(e=>{e.userID==t.data.tableData.userID&&(e.isCurrentUser=!0,s=s||t.data.tableData.Rank,m?(T(t.data.tableData.Rank),i(4,m=null)):T(t.data.tableData.Rank))}),i(8,r=h)),c&&t.data&&"CasinoTableFirstRowData"===t.data.type){var e=t.data.tableData;if(!m)return i(4,m=t.data.tableData),void(s=m.Rank);m&&m.UserID==e.UserID&&(T(e.Rank),i(4,m=t.data.tableData))}if(t.data&&"CasinoTableDataUpdate"===t.data.type&&t.data.tableData){let n=t.data.tableData;h instanceof Array&&h.forEach(function(e,t){var r,e=(r=e.Rank,n.find(e=>e.Rank==r));e&&i(2,h[t]=e,h)})}},C=e=>{var t=e===p,r="ASC"===d,n=t&&!r;i(15,p=n?null:e),i(16,d=n?null:t&&r?"DESC":"ASC")},A=()=>{i(5,g=!g)};return t=()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}),function(){if(!S)throw new Error("Function called outside component initialization");return S}().$$.on_mount.push(t),e.$$set=e=>{"sortable"in e&&i(0,l=e.sortable),"firstrow"in e&&i(1,c=e.firstrow),"lang"in e&&i(14,u=e.lang)},e.$$.update=()=>{98308&e.$$.dirty[0]&&i(8,r=p&&d?(()=>{let e=[];if(h&&(e=[...h]),!h.length)return h;var t=typeof h[0][p.toLowerCase()];return e.sort((e=>{const r=p.toLowerCase();return"string"==e?(e,t)=>e[r].localeCompare(t[r]):"number"==e||"object"==e?(e,t)=>e[r]-t[r]:void 0})(t)),"ASC"===d?e:e.reverse()})():[...h]),98304&e.$$.dirty[0]&&i(9,n=null===p?d:null)},[l,c,h,f,m,g,y,v,r,n,o,b,C,A,u,p,d,e=>C(e),e=>C(e),()=>A(),e=>C(e)]}class Qn extends l{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}.LeaderboardContainer{background:var(--emfe-w-color-contrast, #07072A);color:#fff;display:flex;width:100%;height:52px;align-items:center;justify-content:space-between;gap:20px}.Leaderboard{width:100%;height:44px;display:flex;align-items:center;padding-left:20px}.TableContent{width:100%;font-size:14px;margin-bottom:2px;border-bottom:solid 1px var(--emfe-w-color-white, #FFFFFF)}.TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid var(--emfe-w-color-green, #48952a)}.TableUser{background:var(--emfe-w-table-bg, #282828);height:44px;display:flex;align-items:center;border-bottom:solid 1px var(--emfe-w-table-border, #3a3a3a)}.TableUser.TableHeadRow{background:var(--emfe-w-table-header-bg, #1c1c1c);color:var(--emfe-w-color-white, #fff)}.TableUser.CurrentUserRow{box-sizing:border-box;background:var(--emfe-w-table-currentuser-bg, #533a34)}.TableUser.UnqualifiedRow{border-bottom:0}.TableUserTooltips{background:var(--emfe-w-table-currentuser-bg, #533a34);width:100%;height:18px;text-align:center;font-size:0.8rem}.TableCell{padding:10px;flex:2;text-align:center}.TableRank{flex:1 50px}.TablePlayer{flex:5}.TablePrize{flex:5}.Qualified{color:var(--emfe-w-highlight, #debb05)}.ExclamationMark{vertical-align:text-top;width:14px;height:14px}.TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.TournamentsTable{width:100%;min-width:600px;display:flex;justify-content:space-between;text-align:center}.LeftTable{width:100%}.RightButton{cursor:pointer;background:var(--emfe-w-color-contrast, #07072A);width:50px;height:70px;border:2px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.RightButton.MobileClass{height:50px}.FirstRow{outline:2px solid #1B9800}.FirstRow .RankCol{position:relative;width:max-content;display:inline}.FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.Show{display:inline-flex}.Hidden{display:none}.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}table{width:100%;min-width:600px;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}th{padding:1.5rem 1.25rem;height:70px;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);top:0;color:var(--emfe-w-color-white, #FFFFFF)}td{margin:0;padding:1.25rem;vertical-align:top;text-align:inherit;color:var(--emfe-w-color-white, #FFFFFF);font-size:0.9rem;max-width:20%;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D)}td:first-child{left:0;top:auto;width:10rem}svg{width:1.25rem;height:1.25rem;fill:rgba(0, 0, 0, 0.5);flex-shrink:0}.flex{display:flex;align-items:center}button{font-weight:bold;font-size:inherit;text-transform:capitalize;background-color:transparent;border:none;cursor:pointer;display:block;padding:0 1rem 0 0;background-size:0.75rem;background-repeat:no-repeat;background-position:center right;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M16.29 14.29L12 18.59l-4.29-4.3a1 1 0 00-1.42 1.42l5 5a1 1 0 001.42 0l5-5a1 1 0 00-1.42-1.42zM7.71 9.71L12 5.41l4.29 4.3a1 1 0 001.42 0 1 1 0 000-1.42l-5-5a1 1 0 00-1.42 0l-5 5a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}.CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}[data-sort=\"ASC\"],[data-sort=\"DESC\"]{background-size:1rem;background-position:right -0.15rem center}[data-sort=\"ASC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M11.29 11.46a1 1 0 001.42 0l3-3A1 1 0 1014.29 7L12 9.34 9.71 7a1 1 0 10-1.42 1.46zm3 1.08L12 14.84l-2.29-2.3A1 1 0 008.29 14l3 3a1 1 0 001.42 0l3-3a1 1 0 00-1.42-1.42z'/%3E%3C/svg%3E\")}[data-sort=\"DESC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M12.71 12.54a1 1 0 00-1.42 0l-3 3A1 1 0 009.71 17L12 14.66 14.29 17a1 1 0 001.42 0 1 1 0 000-1.42zm-3-1.08L12 9.16l2.29 2.3a1 1 0 001.42 0 1 1 0 000-1.42l-3-3a1 1 0 00-1.42 0l-3 3a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}</style>",s(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},Xn,Vn,r,{sortable:0,firstrow:1,lang:14},[-1,-1]),e&&(e.target&&D(e.target,this,e.anchor),e.props&&(this.$set(e.props),_()))}static get observedAttributes(){return["sortable","firstrow","lang"]}get sortable(){return this.$$.ctx[0]}set sortable(e){this.$set({sortable:e}),_()}get firstrow(){return this.$$.ctx[1]}set firstrow(e){this.$set({firstrow:e}),_()}get lang(){return this.$$.ctx[14]}set lang(e){this.$set({lang:e}),_()}}return customElements.get("casino-tournaments-table")||customElements.define("casino-tournaments-table",Qn),Qn});
|
|
2
2
|
//# sourceMappingURL=casino-tournaments-table.js.map
|