@everymatrix/casino-tournaments-ingame-list 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/casino-tournaments-ingame-list/app-globals-0f993ce5.js +1 -0
  2. package/dist/casino-tournaments-ingame-list/casino-tournaments-ingame-list-339ffc08.js +15 -0
  3. package/dist/casino-tournaments-ingame-list/casino-tournaments-ingame-list.entry.js +1 -0
  4. package/dist/casino-tournaments-ingame-list/casino-tournaments-ingame-list.esm.js +1 -0
  5. package/dist/casino-tournaments-ingame-list/index-bf8982db.js +2 -0
  6. package/dist/casino-tournaments-ingame-list/index.esm.js +1 -0
  7. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  8. package/dist/cjs/casino-tournaments-ingame-list-9723f649.js +7286 -0
  9. package/dist/cjs/casino-tournaments-ingame-list.cjs.entry.js +13 -0
  10. package/dist/cjs/casino-tournaments-ingame-list.cjs.js +25 -0
  11. package/dist/cjs/index-5747f6cd.js +1290 -0
  12. package/dist/cjs/index.cjs.js +13 -0
  13. package/dist/cjs/loader.cjs.js +15 -0
  14. package/dist/collection/assets/Union.svg +3 -0
  15. package/dist/collection/assets/close.svg +3 -0
  16. package/dist/collection/assets/success.svg +3 -0
  17. package/dist/collection/assets/trophy.svg +11 -0
  18. package/dist/collection/collection-manifest.json +12 -0
  19. package/dist/collection/components/casino-tournaments-ingame-list/casino-tournaments-ingame-list.css +239 -0
  20. package/dist/collection/components/casino-tournaments-ingame-list/casino-tournaments-ingame-list.js +732 -0
  21. package/dist/collection/components/casino-tournaments-ingame-list/index.js +1 -0
  22. package/dist/collection/index.js +1 -0
  23. package/dist/collection/utils/locale.utils.js +40 -0
  24. package/dist/collection/utils/types.js +39 -0
  25. package/dist/collection/utils/utils.js +34 -0
  26. package/dist/esm/app-globals-0f993ce5.js +3 -0
  27. package/dist/esm/casino-tournaments-ingame-list-339ffc08.js +7284 -0
  28. package/dist/esm/casino-tournaments-ingame-list.entry.js +5 -0
  29. package/dist/esm/casino-tournaments-ingame-list.js +20 -0
  30. package/dist/esm/index-bf8982db.js +1263 -0
  31. package/dist/esm/index.js +5 -0
  32. package/dist/esm/loader.js +11 -0
  33. package/dist/index.cjs.js +1 -0
  34. package/dist/index.js +1 -0
  35. package/dist/stencil.config.dev.js +20 -0
  36. package/dist/stencil.config.js +20 -0
  37. package/dist/storybook/main.js +43 -0
  38. package/dist/storybook/preview.js +9 -0
  39. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  40. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/packages/stencil/casino-tournaments-ingame-list/stencil.config.d.ts +2 -0
  41. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/packages/stencil/casino-tournaments-ingame-list/stencil.config.dev.d.ts +2 -0
  42. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/packages/stencil/casino-tournaments-ingame-list/storybook/main.d.ts +3 -0
  43. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/packages/stencil/casino-tournaments-ingame-list/storybook/preview.d.ts +70 -0
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/packages/stencil/casino-tournaments-ingame-types/src/index.d.ts +1 -0
  45. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/packages/stencil/casino-tournaments-ingame-types/src/utils/types.d.ts +111 -0
  46. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/tools/plugins/index.d.ts +4 -0
  47. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  48. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  49. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  50. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-list/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  51. package/dist/types/components/casino-tournaments-ingame-list/casino-tournaments-ingame-list.d.ts +127 -0
  52. package/dist/types/components/casino-tournaments-ingame-list/index.d.ts +1 -0
  53. package/dist/types/components.d.ts +159 -0
  54. package/dist/types/index.d.ts +1 -0
  55. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  56. package/dist/types/utils/locale.utils.d.ts +2 -0
  57. package/dist/types/utils/types.d.ts +0 -0
  58. package/dist/types/utils/utils.d.ts +4 -0
  59. package/loader/cdn.js +1 -0
  60. package/loader/index.cjs.js +1 -0
  61. package/loader/index.d.ts +24 -0
  62. package/loader/index.es2017.js +1 -0
  63. package/loader/index.js +2 -0
  64. package/loader/package.json +11 -0
  65. package/package.json +27 -0
@@ -0,0 +1 @@
1
+ const o=()=>{};export{o as g}
@@ -0,0 +1,15 @@
1
+ import{r as t,c as n,h as i}from"./index-bf8982db.js";import"@everymatrix/casino-tournaments-ingame-state";import"@everymatrix/casino-tournaments-ingame-detail-page";import"@everymatrix/ui-image";const e="__WIDGET_GLOBAL_STYLE_CACHE__";function r(t,n){if(t){const i=document.createElement("style");i.innerHTML=n,t.appendChild(i)}}function s(t,n){if(!t||!n)return;const i=new URL(n);fetch(i.href).then((t=>t.text())).then((n=>{const i=document.createElement("style");i.innerHTML=n,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function o(t,n,i,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return i=function(t,n){const i=document.createElement("style");return window.emMessageBus.subscribe(n,(n=>{t&&(i.innerHTML=n,t.appendChild(i))}))}(t,n),i;window[e]||(window[e]={}),i=function(t,n){return window.emMessageBus.subscribe(n,(i=>{if(!t)return;const r=t.getRootNode(),s=window[e];let o=s[n]&&s[n].sheet;o?s[n].refCount=s[n].refCount+1:(o=new CSSStyleSheet,o.replaceSync(i),s[n]={sheet:o,refCount:1});const a=r.adoptedStyleSheets||[];a.includes(o)||(r.adoptedStyleSheets=[...a,o])}))}
2
+ //! moment.js
3
+ //! version : 2.29.4
4
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
5
+ //! license : MIT
6
+ //! momentjs.com
7
+ (t,n);const s=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[e][n]){const t=window[e][n];t.refCount>1?t.refCount=t.refCount-1:delete window[e][n]}s()},i}var a,u;function h(){return a.apply(null,arguments)}function d(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function c(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function f(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(l(t,n))return!1;return!0}function m(t){return void 0===t}function v(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function p(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function g(t,n){var i,e=[],r=t.length;for(i=0;i<r;++i)e.push(n(t[i],i));return e}function y(t,n){for(var i in n)l(n,i)&&(t[i]=n[i]);return l(n,"toString")&&(t.toString=n.toString),l(n,"valueOf")&&(t.valueOf=n.valueOf),t}function w(t,n,i,e){return On(t,n,i,e,!0).utc()}function b(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function T(t){if(null==t._isValid){var n=b(t),i=u.call(n.parsedDateParts,(function(t){return null!=t})),e=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&i);if(t._strict&&(e=e&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return e;t._isValid=e}return t._isValid}function M(t){var n=w(NaN);return null!=t?y(b(n),t):b(n).userInvalidated=!0,n}u=Array.prototype.some?Array.prototype.some:function(t){var n,i=Object(this),e=i.length>>>0;for(n=0;n<e;n++)if(n in i&&t.call(this,i[n],n,i))return!0;return!1};var D=h.momentProperties=[],Y=!1;function x(t,n){var i,e,r,s=D.length;if(m(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),m(n._i)||(t._i=n._i),m(n._f)||(t._f=n._f),m(n._l)||(t._l=n._l),m(n._strict)||(t._strict=n._strict),m(n._tzm)||(t._tzm=n._tzm),m(n._isUTC)||(t._isUTC=n._isUTC),m(n._offset)||(t._offset=n._offset),m(n._pf)||(t._pf=b(n)),m(n._locale)||(t._locale=n._locale),s>0)for(i=0;i<s;i++)m(r=n[e=D[i]])||(t[e]=r);return t}function S(t){x(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Y&&(Y=!0,h.updateOffset(this),Y=!1)}function C(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function N(t){!1===h.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,n){var i=!0;return y((function(){if(null!=h.deprecationHandler&&h.deprecationHandler(null,t),i){var e,r,s,o=[],a=arguments.length;for(r=0;r<a;r++){if(e="","object"==typeof arguments[r]){for(s in e+="\n["+r+"] ",arguments[0])l(arguments[0],s)&&(e+=s+": "+arguments[0][s]+", ");e=e.slice(0,-2)}else e=arguments[r];o.push(e)}N(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)}),n)}var L,G={};function H(t,n){null!=h.deprecationHandler&&h.deprecationHandler(t,n),G[t]||(N(n),G[t]=!0)}function W(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function I(t,n){var i,e=y({},t);for(i in n)l(n,i)&&(c(t[i])&&c(n[i])?(e[i]={},y(e[i],t[i]),y(e[i],n[i])):null!=n[i]?e[i]=n[i]:delete e[i]);for(i in t)l(t,i)&&!l(n,i)&&c(t[i])&&(e[i]=y({},e[i]));return e}function _(t){null!=t&&this.set(t)}function E(t,n,i){var e=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,n-e.length)).toString().substr(1)+e}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null,L=Object.keys?Object.keys:function(t){var n,i=[];for(n in t)l(t,n)&&i.push(n);return i};var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},j={};function R(t,n,i,e){var r=e;"string"==typeof e&&(r=function(){return this[e]()}),t&&(j[t]=r),n&&(j[n[0]]=function(){return E(r.apply(this,arguments),n[1],n[2])}),i&&(j[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t,n){return t.isValid()?(n=Z(n,t.localeData()),O[n]=O[n]||function(t){var n,i,e,r=t.match(F);for(n=0,i=r.length;n<i;n++)r[n]=j[r[n]]?j[r[n]]:(e=r[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(n){var e,s="";for(e=0;e<i;e++)s+=W(r[e])?r[e].call(n,t):r[e];return s}}(n),O[n](t)):t.localeData().invalidDate()}function Z(t,n){var i=5;function e(t){return n.longDateFormat(t)||t}for(A.lastIndex=0;i>=0&&A.test(t);)t=t.replace(A,e),A.lastIndex=0,i-=1;return t}var $={};function B(t,n){var i=t.toLowerCase();$[i]=$[i+"s"]=$[n]=t}function P(t){return"string"==typeof t?$[t]||$[t.toLowerCase()]:void 0}function z(t){var n,i,e={};for(i in t)l(t,i)&&(n=P(i))&&(e[n]=t[i]);return e}var V={};function q(t,n){V[t]=n}function J(t){return t%4==0&&t%100!=0||t%400==0}function X(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Q(t){var n=+t,i=0;return 0!==n&&isFinite(n)&&(i=X(n)),i}function K(t,n){return function(i){return null!=i?(nt(this,t,i),h.updateOffset(this,n),this):tt(this,t)}}function tt(t,n){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+n]():NaN}function nt(t,n,i){t.isValid()&&!isNaN(i)&&("FullYear"===n&&J(t.year())&&1===t.month()&&29===t.date()?(i=Q(i),t._d["set"+(t._isUTC?"UTC":"")+n](i,t.month(),Et(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+n](i))}var it,et=/\d/,rt=/\d\d/,st=/\d{3}/,ot=/\d{4}/,at=/[+-]?\d{6}/,ut=/\d\d?/,ht=/\d\d\d\d?/,dt=/\d\d\d\d\d\d?/,ct=/\d{1,3}/,lt=/\d{1,4}/,ft=/[+-]?\d{1,6}/,mt=/\d+/,vt=/[+-]?\d+/,pt=/Z|[+-]\d\d:?\d\d/gi,gt=/Z|[+-]\d\d(?::?\d\d)?/gi,yt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function wt(t,n,i){it[t]=W(n)?n:function(t){return t&&i?i:n}}function bt(t,n){return l(it,t)?it[t](n._strict,n._locale):new RegExp(Tt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,n,i,e,r){return n||i||e||r}))))}function Tt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}it={};var Mt={};function Dt(t,n){var i,e,r=n;for("string"==typeof t&&(t=[t]),v(n)&&(r=function(t,i){i[n]=Q(t)}),e=t.length,i=0;i<e;i++)Mt[t[i]]=r}function Yt(t,n){Dt(t,(function(t,i,e,r){e._w=e._w||{},n(t,e._w,e,r)}))}function xt(t,n,i){null!=n&&l(Mt,t)&&Mt[t](n,i._a,i,t)}var St,Ct=0,Nt=1,kt=2,Lt=3,Gt=4,Ht=5,Wt=6,It=7,_t=8;function Et(t,n){if(isNaN(t)||isNaN(n))return NaN;var i=(n%12+12)%12;return t+=(n-i)/12,1===i?J(t)?29:28:31-i%7%2}St=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},R("M",["MM",2],"Mo",(function(){return this.month()+1})),R("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),R("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),B("month","M"),q("month",8),wt("M",ut),wt("MM",ut,rt),wt("MMM",(function(t,n){return n.monthsShortRegex(t)})),wt("MMMM",(function(t,n){return n.monthsRegex(t)})),Dt(["M","MM"],(function(t,n){n[Nt]=Q(t)-1})),Dt(["MMM","MMMM"],(function(t,n,i,e){var r=i._locale.monthsParse(t,e,i._strict);null!=r?n[Nt]=r:b(i).invalidMonth=t}));var Ft="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),At="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jt=yt,Rt=yt;function Ut(t,n,i){var e,r,s,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],e=0;e<12;++e)s=w([2e3,e]),this._shortMonthsParse[e]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[e]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===n?-1!==(r=St.call(this._shortMonthsParse,o))?r:null:-1!==(r=St.call(this._longMonthsParse,o))?r:null:"MMM"===n?-1!==(r=St.call(this._shortMonthsParse,o))||-1!==(r=St.call(this._longMonthsParse,o))?r:null:-1!==(r=St.call(this._longMonthsParse,o))||-1!==(r=St.call(this._shortMonthsParse,o))?r:null}function Zt(t,n){var i;if(!t.isValid())return t;if("string"==typeof n)if(/^\d+$/.test(n))n=Q(n);else if(!v(n=t.localeData().monthsParse(n)))return t;return i=Math.min(t.date(),Et(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,i),t}function $t(t){return null!=t?(Zt(this,t),h.updateOffset(this,!0),this):tt(this,"Month")}function Bt(){function t(t,n){return n.length-t.length}var n,i,e=[],r=[],s=[];for(n=0;n<12;n++)i=w([2e3,n]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)e[n]=Tt(e[n]),r[n]=Tt(r[n]);for(n=0;n<24;n++)s[n]=Tt(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Pt(t){return J(t)?366:365}R("Y",0,0,(function(){var t=this.year();return t<=9999?E(t,4):"+"+t})),R(0,["YY",2],0,(function(){return this.year()%100})),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),B("year","y"),q("year",1),wt("Y",vt),wt("YY",ut,rt),wt("YYYY",lt,ot),wt("YYYYY",ft,at),wt("YYYYYY",ft,at),Dt(["YYYYY","YYYYYY"],Ct),Dt("YYYY",(function(t,n){n[Ct]=2===t.length?h.parseTwoDigitYear(t):Q(t)})),Dt("YY",(function(t,n){n[Ct]=h.parseTwoDigitYear(t)})),Dt("Y",(function(t,n){n[Ct]=parseInt(t,10)})),h.parseTwoDigitYear=function(t){return Q(t)+(Q(t)>68?1900:2e3)};var zt=K("FullYear",!0);function Vt(t,n,i,e,r,s,o){var a;return t<100&&t>=0?(a=new Date(t+400,n,i,e,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,n,i,e,r,s,o),a}function qt(t){var n,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,n=new Date(Date.UTC.apply(null,i)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t)):n=new Date(Date.UTC.apply(null,arguments)),n}function Jt(t,n,i){var e=7+n-i;return-(7+qt(t,0,e).getUTCDay()-n)%7+e-1}function Xt(t,n,i,e,r){var s,o,a=1+7*(n-1)+(7+i-e)%7+Jt(t,e,r);return a<=0?o=Pt(s=t-1)+a:a>Pt(t)?(s=t+1,o=a-Pt(t)):(s=t,o=a),{year:s,dayOfYear:o}}function Qt(t,n,i){var e,r,s=Jt(t.year(),n,i),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return o<1?e=o+Kt(r=t.year()-1,n,i):o>Kt(t.year(),n,i)?(e=o-Kt(t.year(),n,i),r=t.year()+1):(r=t.year(),e=o),{week:e,year:r}}function Kt(t,n,i){var e=Jt(t,n,i),r=Jt(t+1,n,i);return(Pt(t)-e+r)/7}function tn(t,n){return t.slice(n,7).concat(t.slice(0,n))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),q("week",5),q("isoWeek",5),wt("w",ut),wt("ww",ut,rt),wt("W",ut),wt("WW",ut,rt),Yt(["w","ww","W","WW"],(function(t,n,i,e){n[e.substr(0,1)]=Q(t)})),R("d",0,"do","day"),R("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),R("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),R("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),wt("d",ut),wt("e",ut),wt("E",ut),wt("dd",(function(t,n){return n.weekdaysMinRegex(t)})),wt("ddd",(function(t,n){return n.weekdaysShortRegex(t)})),wt("dddd",(function(t,n){return n.weekdaysRegex(t)})),Yt(["dd","ddd","dddd"],(function(t,n,i,e){var r=i._locale.weekdaysParse(t,e,i._strict);null!=r?n.d=r:b(i).invalidWeekday=t})),Yt(["d","e","E"],(function(t,n,i,e){n[e]=Q(t)}));var nn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),en="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),rn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),sn=yt,on=yt,an=yt;function un(t,n,i){var e,r,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],e=0;e<7;++e)s=w([2e3,1]).day(e),this._minWeekdaysParse[e]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[e]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[e]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===n?-1!==(r=St.call(this._weekdaysParse,o))?r:null:"ddd"===n?-1!==(r=St.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=St.call(this._minWeekdaysParse,o))?r:null:"dddd"===n?-1!==(r=St.call(this._weekdaysParse,o))||-1!==(r=St.call(this._shortWeekdaysParse,o))||-1!==(r=St.call(this._minWeekdaysParse,o))?r:null:"ddd"===n?-1!==(r=St.call(this._shortWeekdaysParse,o))||-1!==(r=St.call(this._weekdaysParse,o))||-1!==(r=St.call(this._minWeekdaysParse,o))?r:null:-1!==(r=St.call(this._minWeekdaysParse,o))||-1!==(r=St.call(this._weekdaysParse,o))||-1!==(r=St.call(this._shortWeekdaysParse,o))?r:null}function hn(){function t(t,n){return n.length-t.length}var n,i,e,r,s,o=[],a=[],u=[],h=[];for(n=0;n<7;n++)i=w([2e3,1]).day(n),e=Tt(this.weekdaysMin(i,"")),r=Tt(this.weekdaysShort(i,"")),s=Tt(this.weekdays(i,"")),o.push(e),a.push(r),u.push(s),h.push(e),h.push(r),h.push(s);o.sort(t),a.sort(t),u.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function dn(){return this.hours()%12||12}function cn(t,n){R(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)}))}function ln(t,n){return n._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,dn),R("k",["kk",2],0,(function(){return this.hours()||24})),R("hmm",0,0,(function(){return""+dn.apply(this)+E(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+dn.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),cn("a",!0),cn("A",!1),B("hour","h"),q("hour",13),wt("a",ln),wt("A",ln),wt("H",ut),wt("h",ut),wt("k",ut),wt("HH",ut,rt),wt("hh",ut,rt),wt("kk",ut,rt),wt("hmm",ht),wt("hmmss",dt),wt("Hmm",ht),wt("Hmmss",dt),Dt(["H","HH"],Lt),Dt(["k","kk"],(function(t,n){var i=Q(t);n[Lt]=24===i?0:i})),Dt(["a","A"],(function(t,n,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Dt(["h","hh"],(function(t,n,i){n[Lt]=Q(t),b(i).bigHour=!0})),Dt("hmm",(function(t,n,i){var e=t.length-2;n[Lt]=Q(t.substr(0,e)),n[Gt]=Q(t.substr(e)),b(i).bigHour=!0})),Dt("hmmss",(function(t,n,i){var e=t.length-4,r=t.length-2;n[Lt]=Q(t.substr(0,e)),n[Gt]=Q(t.substr(e,2)),n[Ht]=Q(t.substr(r)),b(i).bigHour=!0})),Dt("Hmm",(function(t,n){var i=t.length-2;n[Lt]=Q(t.substr(0,i)),n[Gt]=Q(t.substr(i))})),Dt("Hmmss",(function(t,n){var i=t.length-4,e=t.length-2;n[Lt]=Q(t.substr(0,i)),n[Gt]=Q(t.substr(i,2)),n[Ht]=Q(t.substr(e))}));var fn,mn=K("Hours",!0),vn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ft,monthsShort:At,week:{dow:0,doy:6},weekdays:nn,weekdaysMin:rn,weekdaysShort:en,meridiemParse:/[ap]\.?m?\.?/i},pn={},gn={};function yn(t,n){var i,e=Math.min(t.length,n.length);for(i=0;i<e;i+=1)if(t[i]!==n[i])return i;return e}function wn(t){return t?t.toLowerCase().replace("_","-"):t}function bn(t){var n=null;if(void 0===pn[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{n=fn._abbr,require("./locale/"+t),Tn(n)}catch(n){pn[t]=null}return pn[t]}function Tn(t,n){var i;return t&&((i=m(n)?Dn(t):Mn(t,n))?fn=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),fn._abbr}function Mn(t,n){if(null!==n){var i,e=vn;if(n.abbr=t,null!=pn[t])H("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),e=pn[t]._config;else if(null!=n.parentLocale)if(null!=pn[n.parentLocale])e=pn[n.parentLocale]._config;else{if(null==(i=bn(n.parentLocale)))return gn[n.parentLocale]||(gn[n.parentLocale]=[]),gn[n.parentLocale].push({name:t,config:n}),null;e=i._config}return pn[t]=new _(I(e,n)),gn[t]&&gn[t].forEach((function(t){Mn(t.name,t.config)})),Tn(t),pn[t]}return delete pn[t],null}function Dn(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return fn;if(!d(t)){if(n=bn(t))return n;t=[t]}return function(t){for(var n,i,e,r,s=0;s<t.length;){for(n=(r=wn(t[s]).split("-")).length,i=(i=wn(t[s+1]))?i.split("-"):null;n>0;){if(e=bn(r.slice(0,n).join("-")))return e;if(i&&i.length>=n&&yn(r,i)>=n-1)break;n--}s++}return fn}(t)}function Yn(t){var n,i=t._a;return i&&-2===b(t).overflow&&(n=i[Nt]<0||i[Nt]>11?Nt:i[kt]<1||i[kt]>Et(i[Ct],i[Nt])?kt:i[Lt]<0||i[Lt]>24||24===i[Lt]&&(0!==i[Gt]||0!==i[Ht]||0!==i[Wt])?Lt:i[Gt]<0||i[Gt]>59?Gt:i[Ht]<0||i[Ht]>59?Ht:i[Wt]<0||i[Wt]>999?Wt:-1,b(t)._overflowDayOfYear&&(n<Ct||n>kt)&&(n=kt),b(t)._overflowWeeks&&-1===n&&(n=It),b(t)._overflowWeekday&&-1===n&&(n=_t),b(t).overflow=n),t}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/Z|[+-]\d\d(?::?\d\d)?/,Nn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ln=/^\/?Date\((-?\d+)/i,Gn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Hn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Wn(t){var n,i,e,r,s,o,a=t._i,u=xn.exec(a)||Sn.exec(a),h=Nn.length,d=kn.length;if(u){for(b(t).iso=!0,n=0,i=h;n<i;n++)if(Nn[n][1].exec(u[1])){r=Nn[n][0],e=!1!==Nn[n][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(n=0,i=d;n<i;n++)if(kn[n][1].exec(u[3])){s=(u[2]||" ")+kn[n][0];break}if(null==s)return void(t._isValid=!1)}if(!e&&null!=s)return void(t._isValid=!1);if(u[4]){if(!Cn.exec(u[4]))return void(t._isValid=!1);o="Z"}t._f=r+(s||"")+(o||""),Fn(t)}else t._isValid=!1}function In(t){var n,i,e,r,s,o,a,u,h,d=Gn.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(i=d[3],e=d[2],r=d[5],s=d[6],o=d[7],a=[(u=d[4],h=parseInt(u,10),h<=49?2e3+h:h<=999?1900+h:h),At.indexOf(i),parseInt(e,10),parseInt(r,10),parseInt(s,10)],o&&a.push(parseInt(o,10)),!function(t,n,i){return!t||en.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(b(i).weekdayMismatch=!0,i._isValid=!1,!1)}(d[1],n=a,t))return;t._a=n,t._tzm=function(t,n,i){if(t)return Hn[t];if(n)return 0;var e=parseInt(i,10),r=e%100;return(e-r)/100*60+r}(d[8],d[9],d[10]),t._d=qt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),b(t).rfc2822=!0}else t._isValid=!1}function _n(t,n,i){return null!=t?t:null!=n?n:i}function En(t){var n,i,e,r,s,o=[];if(!t._d){for(e=function(t){var n=new Date(h.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t),t._w&&null==t._a[kt]&&null==t._a[Nt]&&function(t){var n,i,e,r,s,o,a,u,h;null!=(n=t._w).GG||null!=n.W||null!=n.E?(s=1,o=4,i=_n(n.GG,t._a[Ct],Qt(jn(),1,4).year),e=_n(n.W,1),((r=_n(n.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,h=Qt(jn(),s,o),i=_n(n.gg,t._a[Ct],h.year),e=_n(n.w,h.week),null!=n.d?((r=n.d)<0||r>6)&&(u=!0):null!=n.e?(r=n.e+s,(n.e<0||n.e>6)&&(u=!0)):r=s),e<1||e>Kt(i,s,o)?b(t)._overflowWeeks=!0:null!=u?b(t)._overflowWeekday=!0:(a=Xt(i,e,r,s,o),t._a[Ct]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=_n(t._a[Ct],e[Ct]),(t._dayOfYear>Pt(s)||0===t._dayOfYear)&&(b(t)._overflowDayOfYear=!0),i=qt(s,0,t._dayOfYear),t._a[Nt]=i.getUTCMonth(),t._a[kt]=i.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=o[n]=e[n];for(;n<7;n++)t._a[n]=o[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[Lt]&&0===t._a[Gt]&&0===t._a[Ht]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[Lt]=0),t._d=(t._useUTC?qt:Vt).apply(null,o),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Lt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(b(t).weekdayMismatch=!0)}}function Fn(t){if(t._f!==h.ISO_8601)if(t._f!==h.RFC_2822){t._a=[],b(t).empty=!0;var n,i,e,r,s,o,a,u=""+t._i,d=u.length,c=0;for(a=(e=Z(t._f,t._locale).match(F)||[]).length,n=0;n<a;n++)(i=(u.match(bt(r=e[n],t))||[])[0])&&((s=u.substr(0,u.indexOf(i))).length>0&&b(t).unusedInput.push(s),u=u.slice(u.indexOf(i)+i.length),c+=i.length),j[r]?(i?b(t).empty=!1:b(t).unusedTokens.push(r),xt(r,i,t)):t._strict&&!i&&b(t).unusedTokens.push(r);b(t).charsLeftOver=d-c,u.length>0&&b(t).unusedInput.push(u),t._a[Lt]<=12&&!0===b(t).bigHour&&t._a[Lt]>0&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[Lt]=function(t,n,i){var e;return null==i?n:null!=t.meridiemHour?t.meridiemHour(n,i):null!=t.isPM?((e=t.isPM(i))&&n<12&&(n+=12),e||12!==n||(n=0),n):n}(t._locale,t._a[Lt],t._meridiem),null!==(o=b(t).era)&&(t._a[Ct]=t._locale.erasConvertYear(o,t._a[Ct])),En(t),Yn(t)}else In(t);else Wn(t)}function An(t){var n=t._i,i=t._f;return t._locale=t._locale||Dn(t._l),null===n||void 0===i&&""===n?M({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),C(n)?new S(Yn(n)):(p(n)?t._d=n:d(i)?function(t){var n,i,e,r,s,o,a=!1,u=t._f.length;if(0===u)return b(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,o=!1,n=x({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[r],Fn(n),T(n)&&(o=!0),s+=b(n).charsLeftOver,s+=10*b(n).unusedTokens.length,b(n).score=s,a?s<e&&(e=s,i=n):(null==e||s<e||o)&&(e=s,i=n,o&&(a=!0));y(t,i||n)}(t):i?Fn(t):function(t){var n=t._i;m(n)?t._d=new Date(h.now()):p(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(t){var n=Ln.exec(t._i);null===n?(Wn(t),!1===t._isValid&&(delete t._isValid,In(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:h.createFromInputFallback(t)))):t._d=new Date(+n[1])}(t):d(n)?(t._a=g(n.slice(0),(function(t){return parseInt(t,10)})),En(t)):c(n)?function(t){if(!t._d){var n=z(t._i);t._a=g([n.year,n.month,void 0===n.day?n.date:n.day,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),En(t)}}(t):v(n)?t._d=new Date(n):h.createFromInputFallback(t)}(t),T(t)||(t._d=null),t))}function On(t,n,i,e,r){var s,o={};return!0!==n&&!1!==n||(e=n,n=void 0),!0!==i&&!1!==i||(e=i,i=void 0),(c(t)&&f(t)||d(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=t,o._f=n,o._strict=e,(s=new S(Yn(An(o))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function jn(t,n,i,e){return On(t,n,i,e,!1)}h.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),h.ISO_8601=function(){},h.RFC_2822=function(){};var Rn=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=jn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:M()})),Un=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=jn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:M()}));function Zn(t,n){var i,e;if(1===n.length&&d(n[0])&&(n=n[0]),!n.length)return jn();for(i=n[0],e=1;e<n.length;++e)n[e].isValid()&&!n[e][t](i)||(i=n[e]);return i}var $n=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bn(t){var n=z(t),i=n.year||0,e=n.quarter||0,r=n.month||0,s=n.week||n.isoWeek||0,o=n.day||0,a=n.hour||0,u=n.minute||0,h=n.second||0,d=n.millisecond||0;this._isValid=function(t){var n,i,e=!1,r=$n.length;for(n in t)if(l(t,n)&&(-1===St.call($n,n)||null!=t[n]&&isNaN(t[n])))return!1;for(i=0;i<r;++i)if(t[$n[i]]){if(e)return!1;parseFloat(t[$n[i]])!==Q(t[$n[i]])&&(e=!0)}return!0}(n),this._milliseconds=+d+1e3*h+6e4*u+1e3*a*60*60,this._days=+o+7*s,this._months=+r+3*e+12*i,this._data={},this._locale=Dn(),this._bubble()}function Pn(t){return t instanceof Bn}function zn(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Vn(t,n){R(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+E(~~(t/60),2)+n+E(~~t%60,2)}))}Vn("Z",":"),Vn("ZZ",""),wt("Z",gt),wt("ZZ",gt),Dt(["Z","ZZ"],(function(t,n,i){i._useUTC=!0,i._tzm=Jn(gt,t)}));var qn=/([\+\-]|\d\d)/gi;function Jn(t,n){var i,e,r=(n||"").match(t);return null===r?null:0===(e=60*(i=((r[r.length-1]||[])+"").match(qn)||["-",0,0])[1]+Q(i[2]))?0:"+"===i[0]?e:-e}function Xn(t,n){var i,e;return n._isUTC?(i=n.clone(),e=(C(t)||p(t)?t.valueOf():jn(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+e),h.updateOffset(i,!1),i):jn(t).local()}function Qn(t){return-Math.round(t._d.getTimezoneOffset())}function Kn(){return!!this.isValid()&&this._isUTC&&0===this._offset}h.updateOffset=function(){};var ti=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ni=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ii(t,n){var i,e,r,s,o,a,u=t,h=null;return Pn(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:v(t)||!isNaN(+t)?(u={},n?u[n]=+t:u.milliseconds=+t):(h=ti.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:Q(h[kt])*i,h:Q(h[Lt])*i,m:Q(h[Gt])*i,s:Q(h[Ht])*i,ms:Q(zn(1e3*h[Wt]))*i}):(h=ni.exec(t))?u={y:ei(h[2],i="-"===h[1]?-1:1),M:ei(h[3],i),w:ei(h[4],i),d:ei(h[5],i),h:ei(h[6],i),m:ei(h[7],i),s:ei(h[8],i)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=jn(u.from),o=jn(u.to),r=s.isValid()&&o.isValid()?(o=Xn(o,s),s.isBefore(o)?a=ri(s,o):((a=ri(o,s)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),e=new Bn(u),Pn(t)&&l(t,"_locale")&&(e._locale=t._locale),Pn(t)&&l(t,"_isValid")&&(e._isValid=t._isValid),e}function ei(t,n){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*n}function ri(t,n){var i={};return i.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(i.months,"M").isAfter(n)&&--i.months,i.milliseconds=+n-+t.clone().add(i.months,"M"),i}function si(t,n){return function(i,e){var r;return null===e||isNaN(+e)||(H(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=e,e=r),oi(this,ii(i,e),t),this}}function oi(t,n,i,e){var r=n._milliseconds,s=zn(n._days),o=zn(n._months);t.isValid()&&(e=null==e||e,o&&Zt(t,tt(t,"Month")+o*i),s&&nt(t,"Date",tt(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),e&&h.updateOffset(t,s||o))}ii.fn=Bn.prototype,ii.invalid=function(){return ii(NaN)};var ai=si(1,"add"),ui=si(-1,"subtract");function hi(t){return"string"==typeof t||t instanceof String}function di(t,n){if(t.date()<n.date())return-di(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),e=t.clone().add(i,"months");return-(i+(n-e<0?(n-e)/(e-t.clone().add(i-1,"months")):(n-e)/(t.clone().add(i+1,"months")-e)))||0}function ci(t){var n;return void 0===t?this._locale._abbr:(null!=(n=Dn(t))&&(this._locale=n),this)}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function fi(){return this._locale}var mi=1e3,vi=6e4,pi=36e5,gi=126227808e5;function yi(t,n){return(t%n+n)%n}function wi(t,n,i){return t<100&&t>=0?new Date(t+400,n,i)-gi:new Date(t,n,i).valueOf()}function bi(t,n,i){return t<100&&t>=0?Date.UTC(t+400,n,i)-gi:Date.UTC(t,n,i)}function Ti(t,n){return n.erasAbbrRegex(t)}function Mi(){var t,n,i=[],e=[],r=[],s=[],o=this.eras();for(t=0,n=o.length;t<n;++t)e.push(Tt(o[t].name)),i.push(Tt(o[t].abbr)),r.push(Tt(o[t].narrow)),s.push(Tt(o[t].name)),s.push(Tt(o[t].abbr)),s.push(Tt(o[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Di(t,n){R(0,[t,t.length],0,n)}function Yi(t,n,i,e,r){var s;return null==t?Qt(this,e,r).year:(n>(s=Kt(t,e,r))&&(n=s),xi.call(this,t,n,i,e,r))}function xi(t,n,i,e,r){var s=Xt(t,n,i,e,r),o=qt(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),wt("N",Ti),wt("NN",Ti),wt("NNN",Ti),wt("NNNN",(function(t,n){return n.erasNameRegex(t)})),wt("NNNNN",(function(t,n){return n.erasNarrowRegex(t)})),Dt(["N","NN","NNN","NNNN","NNNNN"],(function(t,n,i,e){var r=i._locale.erasParse(t,e,i._strict);r?b(i).era=r:b(i).invalidEra=t})),wt("y",mt),wt("yy",mt),wt("yyy",mt),wt("yyyy",mt),wt("yo",(function(t,n){return n._eraYearOrdinalRegex||mt})),Dt(["y","yy","yyy","yyyy"],Ct),Dt(["yo"],(function(t,n,i){var e;i._locale._eraYearOrdinalRegex&&(e=t.match(i._locale._eraYearOrdinalRegex)),n[Ct]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,e):parseInt(t,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Di("gggg","weekYear"),Di("ggggg","weekYear"),Di("GGGG","isoWeekYear"),Di("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),wt("G",vt),wt("g",vt),wt("GG",ut,rt),wt("gg",ut,rt),wt("GGGG",lt,ot),wt("gggg",lt,ot),wt("GGGGG",ft,at),wt("ggggg",ft,at),Yt(["gggg","ggggg","GGGG","GGGGG"],(function(t,n,i,e){n[e.substr(0,2)]=Q(t)})),Yt(["gg","GG"],(function(t,n,i,e){n[e]=h.parseTwoDigitYear(t)})),R("Q",0,"Qo","quarter"),B("quarter","Q"),q("quarter",7),wt("Q",et),Dt("Q",(function(t,n){n[Nt]=3*(Q(t)-1)})),R("D",["DD",2],"Do","date"),B("date","D"),q("date",9),wt("D",ut),wt("DD",ut,rt),wt("Do",(function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient})),Dt(["D","DD"],kt),Dt("Do",(function(t,n){n[kt]=Q(t.match(ut)[0])}));var Si=K("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),q("dayOfYear",4),wt("DDD",ct),wt("DDDD",st),Dt(["DDD","DDDD"],(function(t,n,i){i._dayOfYear=Q(t)})),R("m",["mm",2],0,"minute"),B("minute","m"),q("minute",14),wt("m",ut),wt("mm",ut,rt),Dt(["m","mm"],Gt);var Ci=K("Minutes",!1);R("s",["ss",2],0,"second"),B("second","s"),q("second",15),wt("s",ut),wt("ss",ut,rt),Dt(["s","ss"],Ht);var Ni,ki,Li=K("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),q("millisecond",16),wt("S",ct,et),wt("SS",ct,rt),wt("SSS",ct,st),Ni="SSSS";Ni.length<=9;Ni+="S")wt(Ni,mt);function Gi(t,n){n[Wt]=Q(1e3*("0."+t))}for(Ni="S";Ni.length<=9;Ni+="S")Dt(Ni,Gi);ki=K("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var Hi=S.prototype;function Wi(t){return t}Hi.add=ai,Hi.calendar=function(t,n){var i;1===arguments.length&&(arguments[0]?C(i=arguments[0])||p(i)||hi(i)||v(i)||function(t){var n=d(t),i=!1;return n&&(i=0===t.filter((function(n){return!v(n)&&hi(t)})).length),n&&i}(i)||function(t){var n,i=c(t)&&!f(t),e=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(n=0;n<s;n+=1)e=e||l(t,r[n]);return i&&e}(i)||null==i?(t=arguments[0],n=void 0):function(t){var n,i=c(t)&&!f(t),e=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n=0;n<r.length;n+=1)e=e||l(t,r[n]);return i&&e}(arguments[0])&&(n=arguments[0],t=void 0):(t=void 0,n=void 0));var e=t||jn(),r=Xn(e,this).startOf("day"),s=h.calendarFormat(this,r)||"sameElse",o=n&&(W(n[s])?n[s].call(this,e):n[s]);return this.format(o||this.localeData().calendar(s,this,jn(e)))},Hi.clone=function(){return new S(this)},Hi.diff=function(t,n,i){var e,r,s;if(!this.isValid())return NaN;if(!(e=Xn(t,this)).isValid())return NaN;switch(r=6e4*(e.utcOffset()-this.utcOffset()),n=P(n)){case"year":s=di(this,e)/12;break;case"month":s=di(this,e);break;case"quarter":s=di(this,e)/3;break;case"second":s=(this-e)/1e3;break;case"minute":s=(this-e)/6e4;break;case"hour":s=(this-e)/36e5;break;case"day":s=(this-e-r)/864e5;break;case"week":s=(this-e-r)/6048e5;break;default:s=this-e}return i?s:X(s)},Hi.endOf=function(t){var n,i;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?bi:wi,t){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=pi-yi(n+(this._isUTC?0:this.utcOffset()*vi),pi)-1;break;case"minute":n=this._d.valueOf(),n+=vi-yi(n,vi)-1;break;case"second":n=this._d.valueOf(),n+=mi-yi(n,mi)-1}return this._d.setTime(n),h.updateOffset(this,!0),this},Hi.format=function(t){t||(t=this.isUtc()?h.defaultFormatUtc:h.defaultFormat);var n=U(this,t);return this.localeData().postformat(n)},Hi.from=function(t,n){return this.isValid()&&(C(t)&&t.isValid()||jn(t).isValid())?ii({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Hi.fromNow=function(t){return this.from(jn(),t)},Hi.to=function(t,n){return this.isValid()&&(C(t)&&t.isValid()||jn(t).isValid())?ii({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Hi.toNow=function(t){return this.to(jn(),t)},Hi.get=function(t){return W(this[t=P(t)])?this[t]():this},Hi.invalidAt=function(){return b(this).overflow},Hi.isAfter=function(t,n){var i=C(t)?t:jn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=P(n)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(n).valueOf())},Hi.isBefore=function(t,n){var i=C(t)?t:jn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=P(n)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(n).valueOf()<i.valueOf())},Hi.isBetween=function(t,n,i,e){var r=C(t)?t:jn(t),s=C(n)?n:jn(n);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(e=e||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===e[1]?this.isBefore(s,i):!this.isAfter(s,i))},Hi.isSame=function(t,n){var i,e=C(t)?t:jn(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=P(n)||"millisecond")?this.valueOf()===e.valueOf():(i=e.valueOf(),this.clone().startOf(n).valueOf()<=i&&i<=this.clone().endOf(n).valueOf()))},Hi.isSameOrAfter=function(t,n){return this.isSame(t,n)||this.isAfter(t,n)},Hi.isSameOrBefore=function(t,n){return this.isSame(t,n)||this.isBefore(t,n)},Hi.isValid=function(){return T(this)},Hi.lang=li,Hi.locale=ci,Hi.localeData=fi,Hi.max=Un,Hi.min=Rn,Hi.parsingFlags=function(){return y({},b(this))},Hi.set=function(t,n){if("object"==typeof t){var i,e=function(t){var n,i=[];for(n in t)l(t,n)&&i.push({unit:n,priority:V[n]});return i.sort((function(t,n){return t.priority-n.priority})),i}(t=z(t)),r=e.length;for(i=0;i<r;i++)this[e[i].unit](t[e[i].unit])}else if(W(this[t=P(t)]))return this[t](n);return this},Hi.startOf=function(t){var n,i;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?bi:wi,t){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=yi(n+(this._isUTC?0:this.utcOffset()*vi),pi);break;case"minute":n=this._d.valueOf(),n-=yi(n,vi);break;case"second":n=this._d.valueOf(),n-=yi(n,mi)}return this._d.setTime(n),h.updateOffset(this,!0),this},Hi.subtract=ui,Hi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Hi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Hi.toDate=function(){return new Date(this.valueOf())},Hi.toISOString=function(t){if(!this.isValid())return null;var n=!0!==t,i=n?this.clone().utc():this;return i.year()<0||i.year()>9999?U(i,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):W(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Hi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,n,i="moment",e="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+i+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Hi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Hi.toJSON=function(){return this.isValid()?this.toISOString():null},Hi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Hi.unix=function(){return Math.floor(this.valueOf()/1e3)},Hi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Hi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Hi.eraName=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].name;if(e[t].until<=i&&i<=e[t].since)return e[t].name}return""},Hi.eraNarrow=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].narrow;if(e[t].until<=i&&i<=e[t].since)return e[t].narrow}return""},Hi.eraAbbr=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].abbr;if(e[t].until<=i&&i<=e[t].since)return e[t].abbr}return""},Hi.eraYear=function(){var t,n,i,e,r=this.localeData().eras();for(t=0,n=r.length;t<n;++t)if(i=r[t].since<=r[t].until?1:-1,e=this.clone().startOf("day").valueOf(),r[t].since<=e&&e<=r[t].until||r[t].until<=e&&e<=r[t].since)return(this.year()-h(r[t].since).year())*i+r[t].offset;return this.year()},Hi.year=zt,Hi.isLeapYear=function(){return J(this.year())},Hi.weekYear=function(t){return Yi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Hi.isoWeekYear=function(t){return Yi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Hi.quarter=Hi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Hi.month=$t,Hi.daysInMonth=function(){return Et(this.year(),this.month())},Hi.week=Hi.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")},Hi.isoWeek=Hi.isoWeeks=function(t){var n=Qt(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")},Hi.weeksInYear=function(){var t=this.localeData()._week;return Kt(this.year(),t.dow,t.doy)},Hi.weeksInWeekYear=function(){var t=this.localeData()._week;return Kt(this.weekYear(),t.dow,t.doy)},Hi.isoWeeksInYear=function(){return Kt(this.year(),1,4)},Hi.isoWeeksInISOWeekYear=function(){return Kt(this.isoWeekYear(),1,4)},Hi.date=Si,Hi.day=Hi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,n){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-n,"d")):n},Hi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")},Hi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=function(t,n){return"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},Hi.dayOfYear=function(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")},Hi.hour=Hi.hours=mn,Hi.minute=Hi.minutes=Ci,Hi.second=Hi.seconds=Li,Hi.millisecond=Hi.milliseconds=ki,Hi.utcOffset=function(t,n,i){var e,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Jn(gt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&n&&(e=Qn(this)),this._offset=t,this._isUTC=!0,null!=e&&this.add(e,"m"),r!==t&&(!n||this._changeInProgress?oi(this,ii(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Qn(this)},Hi.utc=function(t){return this.utcOffset(0,t)},Hi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Qn(this),"m")),this},Hi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Jn(pt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Hi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?jn(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Hi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Hi.isLocal=function(){return!!this.isValid()&&!this._isUTC},Hi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Hi.isUtc=Kn,Hi.isUTC=Kn,Hi.zoneAbbr=function(){return this._isUTC?"UTC":""},Hi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Hi.dates=k("dates accessor is deprecated. Use date instead.",Si),Hi.months=k("months accessor is deprecated. Use month instead",$t),Hi.years=k("years accessor is deprecated. Use year instead",zt),Hi.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()})),Hi.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!m(this._isDSTShifted))return this._isDSTShifted;var t,n={};return x(n,this),(n=An(n))._a?(t=n._isUTC?w(n._a):jn(n._a),this._isDSTShifted=this.isValid()&&function(t,n){var i,e=Math.min(t.length,n.length),r=Math.abs(t.length-n.length),s=0;for(i=0;i<e;i++)Q(t[i])!==Q(n[i])&&s++;return s+r}(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Ii=_.prototype;function _i(t,n,i,e){var r=Dn(),s=w().set(e,n);return r[i](s,t)}function Ei(t,n,i){if(v(t)&&(n=t,t=void 0),t=t||"",null!=n)return _i(t,n,i,"month");var e,r=[];for(e=0;e<12;e++)r[e]=_i(t,e,i,"month");return r}function Fi(t,n,i,e){"boolean"==typeof t?(v(n)&&(i=n,n=void 0),n=n||""):(i=n=t,t=!1,v(n)&&(i=n,n=void 0),n=n||"");var r,s=Dn(),o=t?s._week.dow:0,a=[];if(null!=i)return _i(n,(i+o)%7,e,"day");for(r=0;r<7;r++)a[r]=_i(n,(r+o)%7,e,"day");return a}Ii.calendar=function(t,n,i){var e=this._calendar[t]||this._calendar.sameElse;return W(e)?e.call(n,i):e},Ii.longDateFormat=function(t){var n=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return n||!i?n:(this._longDateFormat[t]=i.match(F).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Ii.invalidDate=function(){return this._invalidDate},Ii.ordinal=function(t){return this._ordinal.replace("%d",t)},Ii.preparse=Wi,Ii.postformat=Wi,Ii.relativeTime=function(t,n,i,e){var r=this._relativeTime[i];return W(r)?r(t,n,i,e):r.replace(/%d/i,t)},Ii.pastFuture=function(t,n){var i=this._relativeTime[t>0?"future":"past"];return W(i)?i(n):i.replace(/%s/i,n)},Ii.set=function(t){var n,i;for(i in t)l(t,i)&&(W(n=t[i])?this[i]=n:this["_"+i]=n);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ii.eras=function(){var t,n,i,e=this._eras||Dn("en")._eras;for(t=0,n=e.length;t<n;++t)switch("string"==typeof e[t].since&&(i=h(e[t].since).startOf("day"),e[t].since=i.valueOf()),typeof e[t].until){case"undefined":e[t].until=1/0;break;case"string":i=h(e[t].until).startOf("day").valueOf(),e[t].until=i.valueOf()}return e},Ii.erasParse=function(t,n,i){var e,r,s,o,a,u=this.eras();for(t=t.toUpperCase(),e=0,r=u.length;e<r;++e)if(s=u[e].name.toUpperCase(),o=u[e].abbr.toUpperCase(),a=u[e].narrow.toUpperCase(),i)switch(n){case"N":case"NN":case"NNN":if(o===t)return u[e];break;case"NNNN":if(s===t)return u[e];break;case"NNNNN":if(a===t)return u[e]}else if([s,o,a].indexOf(t)>=0)return u[e]},Ii.erasConvertYear=function(t,n){var i=t.since<=t.until?1:-1;return void 0===n?h(t.since).year():h(t.since).year()+(n-t.offset)*i},Ii.erasAbbrRegex=function(t){return l(this,"_erasAbbrRegex")||Mi.call(this),t?this._erasAbbrRegex:this._erasRegex},Ii.erasNameRegex=function(t){return l(this,"_erasNameRegex")||Mi.call(this),t?this._erasNameRegex:this._erasRegex},Ii.erasNarrowRegex=function(t){return l(this,"_erasNarrowRegex")||Mi.call(this),t?this._erasNarrowRegex:this._erasRegex},Ii.months=function(t,n){return t?d(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ot).test(n)?"format":"standalone"][t.month()]:d(this._months)?this._months:this._months.standalone},Ii.monthsShort=function(t,n){return t?d(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ot.test(n)?"format":"standalone"][t.month()]:d(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ii.monthsParse=function(t,n,i){var e,r,s;if(this._monthsParseExact)return Ut.call(this,t,n,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),e=0;e<12;e++){if(r=w([2e3,e]),i&&!this._longMonthsParse[e]&&(this._longMonthsParse[e]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[e]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[e]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[e]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===n&&this._longMonthsParse[e].test(t))return e;if(i&&"MMM"===n&&this._shortMonthsParse[e].test(t))return e;if(!i&&this._monthsParse[e].test(t))return e}},Ii.monthsRegex=function(t){return this._monthsParseExact?(l(this,"_monthsRegex")||Bt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Rt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Ii.monthsShortRegex=function(t){return this._monthsParseExact?(l(this,"_monthsRegex")||Bt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Ii.week=function(t){return Qt(t,this._week.dow,this._week.doy).week},Ii.firstDayOfYear=function(){return this._week.doy},Ii.firstDayOfWeek=function(){return this._week.dow},Ii.weekdays=function(t,n){var i=d(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?tn(i,this._week.dow):t?i[t.day()]:i},Ii.weekdaysMin=function(t){return!0===t?tn(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Ii.weekdaysShort=function(t){return!0===t?tn(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Ii.weekdaysParse=function(t,n,i){var e,r,s;if(this._weekdaysParseExact)return un.call(this,t,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),e=0;e<7;e++){if(r=w([2e3,1]).day(e),i&&!this._fullWeekdaysParse[e]&&(this._fullWeekdaysParse[e]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[e]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[e]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[e]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[e]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===n&&this._fullWeekdaysParse[e].test(t))return e;if(i&&"ddd"===n&&this._shortWeekdaysParse[e].test(t))return e;if(i&&"dd"===n&&this._minWeekdaysParse[e].test(t))return e;if(!i&&this._weekdaysParse[e].test(t))return e}},Ii.weekdaysRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||hn.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=sn),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Ii.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||hn.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=on),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ii.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||hn.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=an),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ii.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Ii.meridiem=function(t,n,i){return t>11?i?"pm":"PM":i?"am":"AM"},Tn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===Q(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),h.lang=k("moment.lang is deprecated. Use moment.locale instead.",Tn),h.langData=k("moment.langData is deprecated. Use moment.localeData instead.",Dn);var Ai=Math.abs;function Oi(t,n,i,e){var r=ii(n,i);return t._milliseconds+=e*r._milliseconds,t._days+=e*r._days,t._months+=e*r._months,t._bubble()}function ji(t){return t<0?Math.floor(t):Math.ceil(t)}function Ri(t){return 4800*t/146097}function Ui(t){return 146097*t/4800}function Zi(t){return function(){return this.as(t)}}var $i=Zi("ms"),Bi=Zi("s"),Pi=Zi("m"),zi=Zi("h"),Vi=Zi("d"),qi=Zi("w"),Ji=Zi("M"),Xi=Zi("Q"),Qi=Zi("y");function Ki(t){return function(){return this.isValid()?this._data[t]:NaN}}var te=Ki("milliseconds"),ne=Ki("seconds"),ie=Ki("minutes"),ee=Ki("hours"),re=Ki("days"),se=Ki("months"),oe=Ki("years"),ae=Math.round,ue={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function he(t,n,i,e,r){return r.relativeTime(n||1,!!i,t,e)}var de=Math.abs;function ce(t){return(t>0)-(t<0)||+t}function le(){if(!this.isValid())return this.localeData().invalidDate();var t,n,i,e,r,s,o,a,u=de(this._milliseconds)/1e3,h=de(this._days),d=de(this._months),c=this.asSeconds();return c?(t=X(u/60),n=X(t/60),u%=60,t%=60,i=X(d/12),d%=12,e=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",s=ce(this._months)!==ce(c)?"-":"",o=ce(this._days)!==ce(c)?"-":"",a=ce(this._milliseconds)!==ce(c)?"-":"",r+"P"+(i?s+i+"Y":"")+(d?s+d+"M":"")+(h?o+h+"D":"")+(n||t||u?"T":"")+(n?a+n+"H":"")+(t?a+t+"M":"")+(u?a+e+"S":"")):"P0D"}var fe=Bn.prototype;fe.isValid=function(){return this._isValid},fe.abs=function(){var t=this._data;return this._milliseconds=Ai(this._milliseconds),this._days=Ai(this._days),this._months=Ai(this._months),t.milliseconds=Ai(t.milliseconds),t.seconds=Ai(t.seconds),t.minutes=Ai(t.minutes),t.hours=Ai(t.hours),t.months=Ai(t.months),t.years=Ai(t.years),this},fe.add=function(t,n){return Oi(this,t,n,1)},fe.subtract=function(t,n){return Oi(this,t,n,-1)},fe.as=function(t){if(!this.isValid())return NaN;var n,i,e=this._milliseconds;if("month"===(t=P(t))||"quarter"===t||"year"===t)switch(i=this._months+Ri(n=this._days+e/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(n=this._days+Math.round(Ui(this._months)),t){case"week":return n/7+e/6048e5;case"day":return n+e/864e5;case"hour":return 24*n+e/36e5;case"minute":return 1440*n+e/6e4;case"second":return 86400*n+e/1e3;case"millisecond":return Math.floor(864e5*n)+e;default:throw new Error("Unknown unit "+t)}},fe.asMilliseconds=$i,fe.asSeconds=Bi,fe.asMinutes=Pi,fe.asHours=zi,fe.asDays=Vi,fe.asWeeks=qi,fe.asMonths=Ji,fe.asQuarters=Xi,fe.asYears=Qi,fe.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Q(this._months/12):NaN},fe._bubble=function(){var t,n,i,e,r,s=this._milliseconds,o=this._days,a=this._months,u=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*ji(Ui(a)+o),o=0,a=0),u.milliseconds=s%1e3,t=X(s/1e3),u.seconds=t%60,n=X(t/60),u.minutes=n%60,i=X(n/60),u.hours=i%24,o+=X(i/24),a+=r=X(Ri(o)),o-=ji(Ui(r)),e=X(a/12),a%=12,u.days=o,u.months=a,u.years=e,this},fe.clone=function(){return ii(this)},fe.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},fe.milliseconds=te,fe.seconds=ne,fe.minutes=ie,fe.hours=ee,fe.days=re,fe.weeks=function(){return X(this.days()/7)},fe.months=se,fe.years=oe,fe.humanize=function(t,n){if(!this.isValid())return this.localeData().invalidDate();var i,e,r=!1,s=ue;return"object"==typeof t&&(n=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof n&&(s=Object.assign({},ue,n),null!=n.s&&null==n.ss&&(s.ss=n.s-1)),e=function(t,n,i,e){var r=ii(t).abs(),s=ae(r.as("s")),o=ae(r.as("m")),a=ae(r.as("h")),u=ae(r.as("d")),h=ae(r.as("M")),d=ae(r.as("w")),c=ae(r.as("y")),l=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||a<=1&&["h"]||a<i.h&&["hh",a]||u<=1&&["d"]||u<i.d&&["dd",u];return null!=i.w&&(l=l||d<=1&&["w"]||d<i.w&&["ww",d]),(l=l||h<=1&&["M"]||h<i.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=n,l[3]=+t>0,l[4]=e,he.apply(null,l)}(this,!r,s,i=this.localeData()),r&&(e=i.pastFuture(+this,e)),i.postformat(e)},fe.toISOString=le,fe.toString=le,fe.toJSON=le,fe.locale=ci,fe.localeData=fi,fe.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",le),fe.lang=li,R("X",0,0,"unix"),R("x",0,0,"valueOf"),wt("x",vt),wt("X",/[+-]?\d+(\.\d{1,3})?/),Dt("X",(function(t,n,i){i._d=new Date(1e3*parseFloat(t))})),Dt("x",(function(t,n,i){i._d=new Date(Q(t))})),
8
+ //! moment.js
9
+ h.version="2.29.4",a=jn,h.fn=Hi,h.min=function(){return Zn("isBefore",[].slice.call(arguments,0))},h.max=function(){return Zn("isAfter",[].slice.call(arguments,0))},h.now=function(){return Date.now?Date.now():+new Date},h.utc=w,h.unix=function(t){return jn(1e3*t)},h.months=function(t,n){return Ei(t,n,"months")},h.isDate=p,h.locale=Tn,h.invalid=M,h.duration=ii,h.isMoment=C,h.weekdays=function(t,n,i){return Fi(t,n,i,"weekdays")},h.parseZone=function(){return jn.apply(null,arguments).parseZone()},h.localeData=Dn,h.isDuration=Pn,h.monthsShort=function(t,n){return Ei(t,n,"monthsShort")},h.weekdaysMin=function(t,n,i){return Fi(t,n,i,"weekdaysMin")},h.defineLocale=Mn,h.updateLocale=function(t,n){if(null!=n){var i,e,r=vn;null!=pn[t]&&null!=pn[t].parentLocale?pn[t].set(I(pn[t]._config,n)):(null!=(e=bn(t))&&(r=e._config),n=I(r,n),null==e&&(n.abbr=t),(i=new _(n)).parentLocale=pn[t],pn[t]=i),Tn(t)}else null!=pn[t]&&(null!=pn[t].parentLocale?(pn[t]=pn[t].parentLocale,t===Tn()&&Tn(t)):null!=pn[t]&&delete pn[t]);return pn[t]},h.locales=function(){return L(pn)},h.weekdaysShort=function(t,n,i){return Fi(t,n,i,"weekdaysShort")},h.normalizeUnits=P,h.relativeTimeRounding=function(t){return void 0===t?ae:"function"==typeof t&&(ae=t,!0)},h.relativeTimeThreshold=function(t,n){return void 0!==ue[t]&&(void 0===n?ue[t]:(ue[t]=n,"s"===t&&(ue.ss=n-1),!0))},h.calendarFormat=function(t,n){var i=t.diff(n,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},h.prototype=Hi,h.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const me=()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},ve={en:{endsIn:"Ends in",startsIn:"Starts in",noTournaments:"You have no active or upcoming tournaments",backToHome:"Back to Game",noTournamentsTitle:"No available tournaments",noTournamentsContent1:"There are no ongoing or scheduled tournaments right now.",noTournamentsContent2:"New tournaments will appear here once they're available."}},pe=(t,n,i)=>{let e=ve[void 0!==n&&n in ve?n:"en"][t];if(void 0!==i)for(const[t,n]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");e=e.replace(i,n)}return e};var ge,ye="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},we={exports:{}};
10
+ /** @license
11
+ * eventsource.js
12
+ * Available under MIT License (MIT)
13
+ * https://github.com/Yaffle/EventSource/
14
+ */
15
+ !function(t,n){!function(i){var e=i.setTimeout,r=i.clearTimeout,s=i.XMLHttpRequest,o=i.XDomainRequest,a=i.ActiveXObject,u=i.EventSource,h=i.document,d=i.Promise,c=i.fetch,l=i.Response,f=i.TextDecoder,m=i.TextEncoder,v=i.AbortController;if("undefined"==typeof window||void 0===h||"readyState"in h||null!=h.body||(h.readyState="loading",window.addEventListener("load",(function(){h.readyState="complete"}),!1)),null==s&&null!=a&&(s=function(){return new a("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function n(){}return n.prototype=t,new n}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==v){var p=c;c=function(t,n){var i=n.signal;return p(t,{headers:n.headers,credentials:n.credentials,cache:n.cache}).then((function(t){var n=t.body.getReader();return i._reader=n,i._aborted&&i._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return n}}}}))},v=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function g(){this.bitsNeeded=0,this.codePoint=0}g.prototype.decode=function(t){function n(t,n,i){if(1===i)return t>=128>>n&&t<<n<=2047;if(2===i)return t>=2048>>n&&t<<n<=55295||t>=57344>>n&&t<<n<=65535;if(3===i)return t>=65536>>n&&t<<n<=1114111;throw new Error}function i(t,n){if(6===t)return n>>6>15?3:n>31?2:1;if(12===t)return n>15?3:2;if(18===t)return 3;throw new Error}for(var e=65533,r="",s=this.bitsNeeded,o=this.codePoint,a=0;a<t.length;a+=1){var u=t[a];0!==s&&(u<128||u>191||!n(o<<6|63&u,s-6,i(s,o)))&&(s=0,o=e,r+=String.fromCharCode(o)),0===s?(u>=0&&u<=127?(s=0,o=u):u>=192&&u<=223?(s=6,o=31&u):u>=224&&u<=239?(s=12,o=15&u):u>=240&&u<=247?(s=18,o=7&u):(s=0,o=e),0===s||n(o,s,i(s,o))||(s=0,o=e)):(s-=6,o=o<<6|63&u),0===s&&(o<=65535?r+=String.fromCharCode(o):(r+=String.fromCharCode(55296+(o-65535-1>>10)),r+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=s,this.codePoint=o,r},null!=f&&null!=m&&function(){try{return"test"===(new f).decode((new m).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}()||(f=g);var y=function(){};function w(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=y,this.onload=y,this.onerror=y,this.onreadystatechange=y,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=y}function b(t){return t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(t.charCodeAt(0)+32)}))}function T(t){for(var n=Object.create(null),i=t.split("\r\n"),e=0;e<i.length;e+=1){var r=i[e].split(": "),s=r.shift(),o=r.join(": ");n[b(s)]=o}this._map=n}function M(){}function D(t){this._headers=t}function Y(){}function x(){this._listeners=Object.create(null)}function S(t){e((function(){throw t}),0)}function C(t){this.type=t,this.target=void 0}function N(t,n){C.call(this,t),this.data=n.data,this.lastEventId=n.lastEventId}function k(t,n){C.call(this,t),this.status=n.status,this.statusText=n.statusText,this.headers=n.headers}function L(t,n){C.call(this,t),this.error=n.error}w.prototype.open=function(t,n){this._abort(!0);var i=this,o=this._xhr,a=1,u=0;this._abort=function(t){0!==i._sendTimeout&&(r(i._sendTimeout),i._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,o.onload=y,o.onerror=y,o.onabort=y,o.onprogress=y,o.onreadystatechange=y,o.abort(),0!==u&&(r(u),u=0),t||(i.readyState=4,i.onabort(null),i.onreadystatechange())),a=0};var h=function(){if(1===a){var t=0,n="",e=void 0;if("contentType"in o)t=200,n="OK",e=o.contentType;else try{t=o.status,n=o.statusText,e=o.getResponseHeader("Content-Type")}catch(i){t=0,n="",e=void 0}0!==t&&(a=2,i.readyState=2,i.status=t,i.statusText=n,i._contentType=e,i.onreadystatechange())}},d=function(){if(h(),2===a||3===a){a=3;var t="";try{t=o.responseText}catch(t){}i.readyState=3,i.responseText=t,i.onprogress()}},c=function(t,n){if(null!=n&&null!=n.preventDefault||(n={preventDefault:y}),d(),1===a||2===a||3===a){if(a=4,0!==u&&(r(u),u=0),i.readyState=4,"load"===t)i.onload(n);else if("error"===t)i.onerror(n);else{if("abort"!==t)throw new TypeError;i.onabort(n)}i.onreadystatechange()}},l=function(){u=e((function(){l()}),500),3===o.readyState&&d()};"onload"in o&&(o.onload=function(t){c("load",t)}),"onerror"in o&&(o.onerror=function(t){c("error",t)}),"onabort"in o&&(o.onabort=function(t){c("abort",t)}),"onprogress"in o&&(o.onprogress=d),"onreadystatechange"in o&&(o.onreadystatechange=function(t){!function(t){null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||c(""===o.responseText?"error":"load",t):3===o.readyState?"onprogress"in o||d():2===o.readyState&&h())}(t)}),!("contentType"in o)&&"ontimeout"in s.prototype||(n+=(-1===n.indexOf("?")?"?":"&")+"padding=true"),o.open(t,n,!0),"readyState"in o&&(u=e((function(){l()}),0))},w.prototype.abort=function(){this._abort(!1)},w.prototype.getResponseHeader=function(){return this._contentType},w.prototype.setRequestHeader=function(t,n){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(t,n)},w.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},w.prototype.send=function(){if("ontimeout"in s.prototype&&("sendAsBinary"in s.prototype||"mozAnon"in s.prototype)||null==h||null==h.readyState||"complete"===h.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var n=this;n._sendTimeout=e((function(){n._sendTimeout=0,n.send()}),4)}},T.prototype.get=function(t){return this._map[b(t)]},null!=s&&null==s.HEADERS_RECEIVED&&(s.HEADERS_RECEIVED=2),M.prototype.open=function(t,n,i,e,r,o,a){t.open("GET",r);var u=0;for(var h in t.onprogress=function(){var n=t.responseText.slice(u);u+=n.length,i(n)},t.onerror=function(t){t.preventDefault(),e(new Error("NetworkError"))},t.onload=function(){e(null)},t.onabort=function(){e(null)},t.onreadystatechange=function(){if(t.readyState===s.HEADERS_RECEIVED){var i=t.status,e=t.statusText,r=t.getResponseHeader("Content-Type"),o=t.getAllResponseHeaders();n(i,e,r,new T(o))}},t.withCredentials=o,a)Object.prototype.hasOwnProperty.call(a,h)&&t.setRequestHeader(h,a[h]);return t.send(),t},D.prototype.get=function(t){return this._headers.get(t)},Y.prototype.open=function(t,n,i,e,r,s,o){var a=null,u=new v,h=u.signal,l=new f;return c(r,{headers:o,credentials:s?"include":"same-origin",signal:h,cache:"no-store"}).then((function(t){return a=t.body.getReader(),n(t.status,t.statusText,t.headers.get("Content-Type"),new D(t.headers)),new d((function(t,n){var e=function(){a.read().then((function(n){if(n.done)t(void 0);else{var r=l.decode(n.value,{stream:!0});i(r),e()}})).catch((function(t){n(t)}))};e()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){e(t)})),{abort:function(){null!=a&&a.cancel(),u.abort()}}},x.prototype.dispatchEvent=function(t){t.target=this;var n=this._listeners[t.type];if(null!=n)for(var i=n.length,e=0;e<i;e+=1){var r=n[e];try{"function"==typeof r.handleEvent?r.handleEvent(t):r.call(this,t)}catch(t){S(t)}}},x.prototype.addEventListener=function(t,n){t=String(t);var i=this._listeners,e=i[t];null==e&&(i[t]=e=[]);for(var r=!1,s=0;s<e.length;s+=1)e[s]===n&&(r=!0);r||e.push(n)},x.prototype.removeEventListener=function(t,n){t=String(t);var i=this._listeners,e=i[t];if(null!=e){for(var r=[],s=0;s<e.length;s+=1)e[s]!==n&&r.push(e[s]);0===r.length?delete i[t]:i[t]=r}},N.prototype=Object.create(C.prototype),k.prototype=Object.create(C.prototype),L.prototype=Object.create(C.prototype);var G=/^text\/event\-stream(;.*)?$/i,H=function(t,n){var i=null==t?n:parseInt(t,10);return i!=i&&(i=n),W(i)},W=function(t){return Math.min(Math.max(t,1e3),18e6)},I=function(t,n,i){try{"function"==typeof n&&n.call(t,i)}catch(t){S(t)}};function _(t,n){x.call(this),n=n||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(t,n,i){n=String(n);var a=Boolean(i.withCredentials),u=i.lastEventIdQueryParameterName||"lastEventId",h=W(1e3),d=H(i.heartbeatTimeout,45e3),c="",l=h,f=!1,m=0,v=i.headers||{},p=i.Transport,g=E&&null==p?void 0:new w(null!=p?new p:null!=s&&"withCredentials"in s.prototype||null==o?new s:new o),y=null!=p&&"string"!=typeof p?new p:null==g?new Y:new M,b=void 0,T=0,D=-1,x="",S="",C="",_="",F=0,A=0,O=0,j=function(n,i,e,r){if(0===D)if(200===n&&null!=e&&G.test(e)){D=1,f=Date.now(),l=h,t.readyState=1;var s=new k("open",{status:n,statusText:i,headers:r});t.dispatchEvent(s),I(t,t.onopen,s)}else{var o="";200!==n?(i&&(i=i.replace(/\s+/g," ")),o="EventSource's response has a status "+n+" "+i+" that is not 200. Aborting the connection."):o="EventSource's response has a Content-Type specifying an unsupported type: "+(null==e?"-":e.replace(/\s+/g," "))+". Aborting the connection.",Z(),s=new k("error",{status:n,statusText:i,headers:r}),t.dispatchEvent(s),I(t,t.onerror,s),console.error(o)}},R=function(n){if(1===D){for(var i=-1,s=0;s<n.length;s+=1)(u=n.charCodeAt(s))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(i=s);var o=(-1!==i?_:"")+n.slice(0,i+1);_=(-1===i?_:"")+n.slice(i+1),""!==n&&(f=Date.now(),m+=n.length);for(var a=0;a<o.length;a+=1){var u=o.charCodeAt(a);if(-1===F&&u==="\n".charCodeAt(0))F=0;else if(-1===F&&(F=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==F){1===F&&(O=a+1);var v=o.slice(A,O-1),p=o.slice(O+(O<a&&o.charCodeAt(O)===" ".charCodeAt(0)?1:0),a);"data"===v?(x+="\n",x+=p):"id"===v?S=p:"event"===v?C=p:"retry"===v?(h=H(p,h),l=h):"heartbeatTimeout"===v&&(d=H(p,d),0!==T&&(r(T),T=e((function(){$()}),d)))}if(0===F){if(""!==x){c=S,""===C&&(C="message");var g=new N(C,{data:x.slice(1),lastEventId:S});if(t.dispatchEvent(g),"open"===C?I(t,t.onopen,g):"message"===C?I(t,t.onmessage,g):"error"===C&&I(t,t.onerror,g),2===D)return}x="",C=""}F=u==="\r".charCodeAt(0)?-1:0}else 0===F&&(A=a,F=1),1===F?u===":".charCodeAt(0)&&(O=a+1,F=2):2===F&&(F=3)}}},U=function(n){if(1===D||0===D){D=-1,0!==T&&(r(T),T=0),T=e((function(){$()}),l),l=W(Math.min(16*h,2*l)),t.readyState=0;var i=new L("error",{error:n});t.dispatchEvent(i),I(t,t.onerror,i),null!=n&&console.error(n)}},Z=function(){D=2,null!=b&&(b.abort(),b=void 0),0!==T&&(r(T),T=0),t.readyState=2},$=function(){if(T=0,-1===D){f=!1,m=0,T=e((function(){$()}),d),D=0,x="",C="",S=c,_="",A=0,O=0,F=0;var i=n;if("data:"!==n.slice(0,5)&&"blob:"!==n.slice(0,5)&&""!==c){var r=n.indexOf("?");i=-1===r?n:n.slice(0,r+1)+n.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,n){return n===u?"":t})),i+=(-1===n.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(c)}var s=t.withCredentials,o={Accept:"text/event-stream"},a=t.headers;if(null!=a)for(var h in a)Object.prototype.hasOwnProperty.call(a,h)&&(o[h]=a[h]);try{b=y.open(g,j,R,U,i,s,o)}catch(t){throw Z(),t}}else if(f||null==b){var l=Math.max((f||Date.now())+d-Date.now(),1);f=!1,T=e((function(){$()}),l)}else U(new Error("No activity within "+d+" milliseconds. "+(0===D?"No response received.":m+" chars received.")+" Reconnecting.")),null!=b&&(b.abort(),b=void 0)};t.url=n,t.readyState=0,t.withCredentials=a,t.headers=v,t._close=Z,$()}(this,t,n)}var E=null!=c&&null!=l&&"body"in l.prototype;(_.prototype=Object.create(x.prototype)).CONNECTING=0,_.prototype.OPEN=1,_.prototype.CLOSED=2,_.prototype.close=function(){this._close()},_.CONNECTING=0,_.OPEN=1,_.CLOSED=2,_.prototype.withCredentials=void 0;var F,A=u;null==s||null!=u&&"withCredentials"in u.prototype||(A=_),F=function(t){t.EventSourcePolyfill=_,t.NativeEventSource=u,t.EventSource=A}(n),void 0!==F&&(t.exports=F)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:ye:globalThis)}(we,we.exports),function(t){t.Unstarted="Unstarted",t.Ongoing="Running",t.Closing="Closing",t.Closed="Closed"}(ge||(ge={}));const be=class{constructor(i){t(this,i),this.activeTournamentEvent=n(this,"activeTournamentSwitched",7),this.tournamentUpdatedEvent=n(this,"tournamentUpdated",7),this.minHorMove=10,this.insertEleBeforeActive=!1,this.isInitLeft=!1,this.distance=0,this.eleWidth=0,this.mbSource=void 0,this.translationUrl="",this.clientStyling=void 0,this.clientStylingUrl=void 0,this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.filter="Unstarted|Running",this.language="en",this.currency="EUR",this.startTimeAfter=void 0,this.tournamentId=void 0,this.limit="20",this.activeNextWhenSwipe=!1,this.removeAfterBack=!1,this.tournaments=void 0,this.currentTournamentId=void 0,this.tournamentListElement=void 0,this.touchStartX=0,this.isDetailExpanded=!1,this.isListLoading=!0,this.showToasting=!1,this.activePeriodEnd=""}async loadTournamentsData(){if(!this.endpoint||!this.session)return;const t=new URL(`${this.endpoint}/v1/tournaments`);let n={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET"};t.searchParams.set("language",`${this.language}`),t.searchParams.set("sortType","type1"),t.searchParams.set("pagination",`offset=0,limit=${this.limit}`),t.searchParams.set("filter",`startTimeAfter=${this.startTimeAfter||this.getDefaultStartTimeFilter()},state=Unstarted|Running`),await fetch(t,n).then((t=>t.json())).then((n=>{var i;this.tournaments=n.items,this.currentTournamentId=!this.tournamentId&&(null===(i=this.tournaments)||void 0===i?void 0:i.length)>0?this.currentTournamentId=this.tournaments[0].id:this.tournamentId,this.startUpSSEUpdate(t)})).finally((()=>{this.isListLoading=!1}))}startUpSSEUpdate(t){if(!this.endpoint||!this.session)return;this.tournamentUpdater&&(this.tournamentUpdater.removeEventListener("message",this.updateMessageHandler),this.tournamentUpdater.close());let n=`${this.endpoint}/v1/tournaments/updates?${t.searchParams.toString()}`;this.tournamentUpdater=new we.exports.EventSourcePolyfill(n,{headers:{accept:"text/event-stream","X-SessionId":this.session}}),this.tournamentUpdater.addEventListener("message",this.updateMessageHandler.bind(this))}updateMessageHandler(t){if(!t.data)return;let n=JSON.parse(t.data);t.type&&"TournamentUpdate"===n.messageType&&this.updateTournament(n.item)}updateTournament(t){const n=this.tournaments.findIndex((n=>n.id===t.id));if(n>=0)this.tournaments[n]=t,this.tournaments=[...this.tournaments],this.currentTournamentId===t.id&&this.tournamentUpdatedEvent.emit(t);else{let n=[...this.tournaments].reverse().findIndex((n=>t.playerEnrolled===n.playerEnrolled&&(t.state===n.state?h(t.startTime).isBefore(h(n.startTime)):t.state===ge.Ongoing)));if(n<0&&!t.playerEnrolled)return void(this.tournaments=[...this.tournaments,t]);const i=this.tournaments.findIndex((t=>t.id==this.currentTournamentId));this.insertEleBeforeActive=n<=i,this.tournaments.splice(n,0,t),this.tournaments=[...this.tournaments]}}getDefaultStartTimeFilter(){return h().utc().subtract(1,"month").format("YYYY-MM-DD")}pageDetailExpandHandler(t){this.isDetailExpanded=t.detail.isExpanded}tournamentUpdateHandler(t){this.isDetailExpanded=t.detail.isExpanded;const n=this.tournaments.findIndex((n=>n.id===t.detail.tournament.id));n&&(this.tournaments[n]=t.detail.tournament,this.tournaments=[...this.tournaments])}updateTournamentById(t){let n=new URL(`${this.endpoint}/v1/tournaments/${t.detail.id}?language=${this.language}&platform=${me()}`);fetch(n,{headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET"}).then((t=>t.json())).then((n=>{const{item:i}=n,e=this.tournaments.findIndex((n=>n.id===t.detail.id));i.state="Closing",this.tournaments[e]=i,this.tournaments=[...this.tournaments]}))}resetDetailPageHeight(){const t=this.isDetailExpanded?0:this.stylingContainer.querySelector(".TournamentListWrapper").clientHeight,n=this.stylingContainer.getBoundingClientRect();this.detailPageElement.style.height=Math.max(window.innerHeight,n.height)-(n.top+t)+"px"}locateActiveTournament(){var t;!this.isInitLeft&&(null===(t=this.tournaments)||void 0===t?void 0:t.length)&&(this.eleWidth=this.tournamentListElement.clientWidth/this.tournaments.length,this.updateActiveTournament(this.tournaments.findIndex((t=>t.id===this.currentTournamentId))),setTimeout((()=>{this.isInitLeft=!0})))}handleTouchStart(t){this.touchStartX=t.touches[0].clientX}handleTouchMove(t){if(this.distance=this.touchStartX-t.touches[0].clientX,this.activeNextWhenSwipe||Math.abs(this.distance)<this.minHorMove)return;const n=window.getComputedStyle(this.tournamentListElement),i=(n.transform||n.webkitTransform).match(/matrix.*\((.+)\)/)[1].split(", ");this.tournamentListElement.style.transform=`translateX(${parseFloat(i[4]||"0")-this.distance}px)`}updateActiveTournament(t){var n;let i=t>=0?t:this.tournaments.findIndex((t=>t.id===this.currentTournamentId));i=i>=0?i:0,this.tournamentListElement.style.transform=`translateX(${-1*i*this.eleWidth+this.stylingContainer.clientWidth/2-this.eleWidth/2-5-parseFloat((null===(n=this.tournamentListElement.style.marginLeft)||void 0===n?void 0:n.replace("px",""))||"0")}px)`,this.activeTournamentEvent.emit(this.tournaments[i])}moveTo(t){const n=this.tournaments.findIndex((t=>t.id===this.currentTournamentId));let i=n;if(t<0){if(0==n)return;this.currentTournamentId=this.tournaments[n-1||0].id,i=n-1}else{if(n===this.tournaments.length-1)return;this.currentTournamentId=this.tournaments[n+1].id,i=n+1}this.updateActiveTournament(i)}handleTouchEnd(){this.activeNextWhenSwipe&&this.moveTo(this.distance<0?-1:1)}onTournamentClick(t){this.currentTournamentId=t,this.updateActiveTournament(-1)}backToGame(){window.postMessage({type:"BackToGameFromTournaments"}),this.stylingContainer.classList.add("Hidden"),this.removeAfterBack&&this.stylingContainer.remove()}renderNewTournament(t){return i("div",{id:`t_${t.id}`,onClick:this.onTournamentClick.bind(this,t.id),class:"Tournament "+(t.id===this.currentTournamentId?"Active":"")},i("ui-image",{class:"TourThumbnailImg",src:t.thumbnail,alt:"Tournament thumbnail"}),i("div",{class:`TournamentDetail ${t.state}`},i("casino-tournaments-ingame-state",{state:t.state,language:this.language,"tournament-id":t.id,"is-timer-active":t.id===this.currentTournamentId,"start-time":t.startTime,"end-time":t.endTime}),i("div",{class:"Title"},i("div",{class:"Name"},t.nameOrTitle),i("div",{class:"Desc"},t.description))))}render(){var t,n,e;return i("div",{key:"c3bfe3dac781ff00f7480439218956befe58498b",ref:t=>this.stylingContainer=t,class:"TournamentsInGameLobby "+("PC"===me()?"Desktop":"Mobile")},this.isListLoading?i("div",{class:"Loading"}," ",pe("loading",this.language)," "):(null===(t=this.tournaments)||void 0===t?void 0:t.length)?[i("div",{class:"TournamentListWrapper "+(this.isDetailExpanded?"Hidden":"")},i("div",{class:`TournamentList ${this.theme} ${this.isInitLeft?"Loaded":""}`,onTouchStart:this.handleTouchStart.bind(this),onTouchMove:this.handleTouchMove.bind(this),onTouchEnd:this.handleTouchEnd.bind(this),ref:t=>this.tournamentListElement=t},(null===(n=this.tournaments)||void 0===n?void 0:n.length)&&this.tournaments.map((t=>this.renderNewTournament(t)))),i("div",{class:"DotsWrapper"},(this.tournaments||[]).map((t=>i("div",{class:"DotItem "+(this.currentTournamentId===t.id?"Active":"")},i("div",{class:"Dot"})))))),i("div",{class:`TournamentPageWrapper ${this.isDetailExpanded?"Expanded":""} `},(null===(e=this.tournaments)||void 0===e?void 0:e.length)&&i("casino-tournaments-ingame-detail-page",{id:"DetailPage",ref:t=>this.detailPageElement=t,endpoint:this.endpoint,session:this.session,currency:this.currency,"tournament-id":this.currentTournamentId})),i("div",{class:"FixedBackToHome"},i("div",{class:"Button",onClick:this.backToGame.bind(this)},i("div",{class:"Icon",innerHTML:'<svg width="9" height="9" viewBox="0 0 9 9" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M3.12544 0.155189C2.91852 -0.0517298 2.58304 -0.0517298 2.37612 0.155189L0.155189 2.37612C-0.0517298 2.58304 -0.0517298 2.91852 0.155189 3.12544L2.37612 5.34636C2.58304 5.55328 2.91852 5.55328 3.12544 5.34636C3.33236 5.13945 3.33236 4.80396 3.12544 4.59704L1.80902 3.28063H3.37264C4.1277 3.28063 4.6621 3.28104 5.07993 3.31518C5.49159 3.34881 5.7432 3.41252 5.94109 3.51336C6.34287 3.71807 6.66952 4.04473 6.87424 4.4465C6.97507 4.6444 7.03878 4.896 7.07242 5.30766C7.10656 5.72549 7.10697 6.25989 7.10697 7.01496V7.63682C7.10697 7.92944 7.34419 8.16667 7.63682 8.16667C7.92944 8.16667 8.16667 7.92944 8.16667 7.63682V6.99151C8.16667 6.26501 8.16667 5.68739 8.1286 5.22137C8.08961 4.74418 8.00808 4.33759 7.81844 3.96541C7.51213 3.36424 7.02336 2.87547 6.42219 2.56916C6.05 2.37952 5.64342 2.29798 5.16622 2.259C4.7002 2.22092 4.12259 2.22092 3.39608 2.22093H1.80902L3.12544 0.90451C3.33236 0.697591 3.33236 0.362109 3.12544 0.155189Z" fill="#47BCFF"/>\n</svg>\n'}),i("span",null,pe("backToHome",this.language)," ")))]:[i("div",{class:"OverlayMask"}),i("div",{class:"EmptyList NoTournamentsModal"},i("div",{class:"Icon Close",innerHTML:'<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5.59964 4.68023L9.13298 1.18023C9.24847 1.06218 9.31851 0.9071 9.33071 0.742404C9.34291 0.577708 9.29648 0.414002 9.19964 0.280226C9.14569 0.19989 9.07404 0.132987 8.9902 0.0846529C8.90637 0.0363189 8.81257 0.00784003 8.71601 0.00140281C8.61945 -0.00503441 8.5227 0.0107414 8.43319 0.0475187C8.34368 0.084296 8.26378 0.141097 8.19964 0.21356L4.66631 3.74689L1.13298 0.21356C1.06884 0.141097 0.988942 0.084296 0.89943 0.0475187C0.809918 0.0107414 0.713169 -0.00503441 0.616611 0.00140281C0.520052 0.00784003 0.426253 0.0363189 0.342416 0.0846529C0.258578 0.132987 0.186931 0.19989 0.132977 0.280226C0.0361371 0.414002 -0.0102863 0.577708 0.00191346 0.742404C0.0141132 0.9071 0.0841505 1.06218 0.199644 1.18023L3.73298 4.68023L0.199644 8.18023C0.0841505 8.29827 0.0141132 8.45335 0.00191346 8.61805C-0.0102863 8.78274 0.0361371 8.94645 0.132977 9.08023C0.186931 9.16056 0.258578 9.22746 0.342416 9.2758C0.426253 9.32413 0.520052 9.35261 0.616611 9.35905C0.713169 9.36549 0.809918 9.34971 0.89943 9.31293C0.988942 9.27616 1.06884 9.21936 1.13298 9.14689L4.66631 5.61356L8.19964 9.14689C8.26378 9.21936 8.34368 9.27616 8.43319 9.31293C8.5227 9.34971 8.61945 9.36549 8.71601 9.35905C8.81257 9.35261 8.90637 9.32413 8.9902 9.2758C9.07404 9.22746 9.14569 9.16056 9.19964 9.08023C9.29648 8.94645 9.34291 8.78274 9.33071 8.61805C9.31851 8.45335 9.24847 8.29827 9.13298 8.18023L5.59964 4.68023Z" fill="#666178"/>\n</svg>\n',onClick:this.backToGame.bind(this)}),i("div",{class:"Icon",innerHTML:'<svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="0.5" y="0.5" width="43" height="43" rx="21.5" stroke="url(#paint0_linear_13775_4427)"/>\n<rect x="0.5" y="0.5" width="43" height="43" rx="21.5" stroke="white" stroke-opacity="0.1"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M17.3546 10.9993C17.3853 10.9994 17.4153 10.9995 17.4445 10.9995H26.5557C26.5849 10.9995 26.6149 10.9994 26.6456 10.9993C26.9586 10.998 27.3443 10.9965 27.6841 11.1201C28.2397 11.3223 28.6773 11.76 28.8795 12.3155C28.9594 12.535 28.987 12.7737 28.9962 12.9995L30.5266 12.9995C30.7366 12.9995 30.9412 12.9995 31.1153 13.0114C31.3057 13.0244 31.5314 13.0548 31.7655 13.1518C32.2555 13.3548 32.6449 13.7441 32.8479 14.2342C32.9448 14.4682 32.9753 14.6939 32.9883 14.8843C33.0001 15.0584 33.0001 15.263 33.0001 15.4731V15.9995C33.0001 16.0461 33.0001 16.0919 33.0001 16.1371C33.0006 16.9325 33.0009 17.5232 32.8638 18.0348C32.4939 19.4152 31.4157 20.4934 30.0354 20.8632C29.6548 20.9652 29.2305 20.9912 28.7108 20.9976C27.9429 23.5804 25.7245 25.5389 23.0001 25.9286V26.9995H23.4445C25.9605 26.9995 28.0001 29.0391 28.0001 31.5551C28.0001 32.3528 27.3534 32.9995 26.5557 32.9995H17.4445C16.6468 32.9995 16.0001 32.3528 16.0001 31.5551C16.0001 29.0391 18.0397 26.9995 20.5557 26.9995H21.0001V25.9286C18.2756 25.5389 16.0573 23.5804 15.2894 20.9976C14.7697 20.9912 14.3454 20.9652 13.9648 20.8632C12.5845 20.4934 11.5063 19.4152 11.1364 18.0348C10.9993 17.5232 10.9996 16.9325 11 16.1371C11.0001 16.0919 11.0001 16.0461 11.0001 15.9995V15.4995C11.0001 15.4907 11.0001 15.4819 11.0001 15.4731C11.0001 15.263 11.0001 15.0584 11.0119 14.8843C11.0249 14.6939 11.0554 14.4682 11.1523 14.2342C11.3553 13.7441 11.7447 13.3548 12.2347 13.1518C12.4688 13.0548 12.6945 13.0244 12.8849 13.0114C13.059 12.9995 13.2636 12.9995 13.4736 12.9995C13.4824 12.9995 13.4913 12.9995 13.5001 12.9995H15.004C15.0132 12.7737 15.0408 12.535 15.1207 12.3155C15.3229 11.76 15.7605 11.3223 16.3161 11.1201C16.6559 10.9965 17.0416 10.998 17.3546 10.9993ZM15.0001 14.9995H13.5001C13.2534 14.9995 13.1185 15.0001 13.021 15.0067C13.0165 15.007 13.0122 15.0074 13.0082 15.0077C13.0079 15.0117 13.0076 15.0159 13.0073 15.0204C13.0006 15.118 13.0001 15.2529 13.0001 15.4995V15.9995C13.0001 16.9939 13.0087 17.2949 13.0682 17.5172C13.2532 18.2074 13.7923 18.7464 14.4825 18.9314C14.6012 18.9632 14.7425 18.9805 15.0001 18.9897V14.9995ZM17.0001 13.444C17.0001 13.2249 17.0005 13.1051 17.0058 13.0183C17.0061 13.0139 17.0063 13.0098 17.0066 13.006C17.0104 13.0058 17.0145 13.0055 17.0188 13.0052C17.1057 13 17.2255 12.9995 17.4445 12.9995H26.5557C26.7747 12.9995 26.8945 13 26.9813 13.0052C26.9857 13.0055 26.9898 13.0058 26.9936 13.006C26.9939 13.0098 26.9941 13.0139 26.9944 13.0183C26.9997 13.1051 27.0001 13.2249 27.0001 13.444V18.9995C27.0001 21.761 24.7615 23.9995 22.0001 23.9995C19.2387 23.9995 17.0001 21.761 17.0001 18.9995V13.444ZM29.0001 14.9995V18.9897C29.2577 18.9805 29.3989 18.9632 29.5177 18.9314C30.2079 18.7464 30.747 18.2074 30.9319 17.5172C30.9915 17.2949 31.0001 16.9939 31.0001 15.9995V15.4995C31.0001 15.2529 30.9996 15.118 30.9929 15.0204C30.9926 15.0159 30.9923 15.0117 30.992 15.0077C30.988 15.0074 30.9837 15.007 30.9792 15.0067C30.8817 15.0001 30.7467 14.9995 30.5001 14.9995H29.0001ZM20.5557 28.9995C19.335 28.9995 18.3143 29.8553 18.0607 30.9995H25.9395C25.6859 29.8553 24.6651 28.9995 23.4445 28.9995H20.5557Z" fill="#47BCFF"/>\n<defs>\n<linearGradient id="paint0_linear_13775_4427" x1="5.5" y1="-2.94908e-06" x2="46.7304" y2="5.50134" gradientUnits="userSpaceOnUse">\n<stop stop-color="white" stop-opacity="0.2"/>\n<stop offset="1" stop-color="white" stop-opacity="0"/>\n</linearGradient>\n</defs>\n</svg>\n'}),i("div",{class:"Title"},pe("noTournamentsTitle",this.language)),i("div",{class:"Desc"},pe("noTournamentsContent1",this.language)),i("div",{class:"Desc"},pe("noTournamentsContent2",this.language)),i("div",{class:"BackToHome",onClick:this.backToGame.bind(this)},pe("backToHome",this.language)))])}componentWillRender(){if(!this.insertEleBeforeActive)return;this.insertEleBeforeActive=!1;const t=this.stylingContainer.querySelector(".TournamentList");t.style.marginLeft=t.clientWidth/(this.tournaments.length-1)*-1+"px"}componentWillLoad(){this.loadTournamentsData()}componentDidLoad(){this.stylingContainer&&(this.mbSource&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}componentDidRender(){this.locateActiveTournament()}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.tournamentUpdater&&(this.tournamentUpdater.close(),this.tournamentUpdater.removeEventListener("message",this.updateMessageHandler),this.tournamentUpdater.removeEventListener("error",this.startUpSSEUpdate.bind(this)))}handleNewTranslations(){var t;t=this.translationUrl,new Promise((n=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((n=>{ve[n]||(ve[n]={});for(let i in t[n])ve[n][i]=t[n][i]})),n(!0)}))}))}handleClientStylingChange(t,n){t!=n&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,n){t!=n&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,n){t!=n&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}static get watchers(){return{endpoint:["loadTournamentsData"],session:["loadTournamentsData"],filter:["loadTournamentsData"],language:["loadTournamentsData"],translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};be.style=":host{width:100%;height:100%}.TournamentsInGameLobby{position:relative;opacity:1;height:100%;transition:opacity 0.5s ease-out;background:linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--emw--ingame-color-black, #020308) 100%);display:flex;flex-direction:column;overflow:hidden}.TournamentsInGameLobby.Hidden{opacity:0}.TournamentsInGameLobby.Mobile{min-height:100vh}.TournamentsInGameLobby .OverlayMask{width:100%;height:100%;opacity:0.3;z-index:0;position:absolute}.TournamentsInGameLobby .NoTournamentsModal{position:relative;width:60%;margin:80px auto;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:16px;padding:40px 32px;gap:20px;background:linear-gradient(180deg, #262849 0%, #191B31 50%, #16102A 100%);border:1px solid var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843));box-shadow:0 0 20px 4px var(--emw--ingame-color-darkgray, rgba(62, 67, 109, 0.5019607843));min-height:350px;text-align:center}.TournamentsInGameLobby .NoTournamentsModal .BackToHome{cursor:pointer;background:linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%);border:1px solid rgba(255, 255, 255, 0.2);color:#F4EFF4;font-weight:bold;width:132px;height:32px;border-radius:99px;padding:0 26px;display:flex;align-items:center;justify-content:center}.TournamentsInGameLobby .NoTournamentsModal .BackToHome:hover{box-shadow:0 0 6px 10px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843))}.TournamentsInGameLobby .NoTournamentsModal .Icon{width:44px;height:44px;padding:10px}.TournamentsInGameLobby .NoTournamentsModal .Icon.Close{cursor:pointer;position:absolute;right:10px;top:5px;width:10px;height:10px}.TournamentsInGameLobby .NoTournamentsModal .Title{font-weight:bold;font-size:22px;color:var(--emw--ingame-color-white)}.TournamentsInGameLobby .NoTournamentsModal .Desc{color:var(--emw--ingame-color-lav-gray, #B4B0CC);font-size:14px;line-height:20px}.TournamentsInGameLobby .TournamentListWrapper{transition:all 0.5s ease-in-out;width:100%;height:var(--emw--ingame-tournament-height, 168px);z-index:0}.TournamentsInGameLobby .TournamentListWrapper.Hidden{height:0}.TournamentsInGameLobby .TournamentListWrapper .TournamentList{display:inline-flex;overflow:hidden;align-items:center;overflow-anchor:none}.TournamentsInGameLobby .TournamentListWrapper .TournamentList.Loaded{transition:transform 0.5s ease}.TournamentsInGameLobby .TournamentListWrapper .TournamentList .TournamentDetail .Title{display:flex;padding:0px 0px 8px 8px;gap:5px;align-items:flex-start}.TournamentsInGameLobby .TournamentListWrapper .TournamentList .Tournament{cursor:pointer;position:relative;border-radius:15px;color:var(--emw--ingame-font-color, #F4EFF4);background:var(--emw--ingame-bg-color, rgba(10, 12, 24, 0.6));border:3px solid var(--emw--ingame-white-op7, rgba(255, 255, 255, 0.0666666667));transition:opacity 0.5s ease;font-weight:500;line-height:100%;vertical-align:bottom;font-size:10px;opacity:0.3;width:252px;min-width:240px;margin:0 15px;height:100px}.TournamentsInGameLobby .TournamentListWrapper .TournamentList .Tournament.Active{opacity:0.95;height:122px;margin:8px;font-size:12px;border:3px solid var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843));box-shadow:0 0 5px 3px var(--emw--ingame-gray-box-shadow, rgba(102, 102, 102, 0.8))}.TournamentsInGameLobby .TournamentListWrapper .TournamentList .Tournament.Active .TournamentDetail{filter:none}.TournamentsInGameLobby .TournamentListWrapper .TournamentList .Tournament ui-image .Hidden{display:none}.TournamentsInGameLobby .TournamentListWrapper .TournamentList .Tournament .TournamentDetail,.TournamentsInGameLobby .TournamentListWrapper .TournamentList .Tournament .TourThumbnailImg{border-radius:12px;--emw-skeleton-image-border-radius:12px}.TournamentsInGameLobby .TournamentListWrapper .TournamentList .Tournament .TourThumbnailImg{z-index:-1;position:absolute;left:0;top:0;height:100%;width:100%}.TournamentsInGameLobby .TournamentListWrapper .TournamentList .Tournament .TournamentDetail{width:100%;height:100%;display:flex;justify-content:space-between;flex-direction:column;filter:blur(1px);z-index:1}.TournamentsInGameLobby .TournamentListWrapper .TournamentList .Tournament .TournamentDetail .Statuses{margin:5px;max-width:calc(95% - 10px)}.TournamentsInGameLobby .TournamentListWrapper .DotsWrapper{display:flex;max-width:90%;margin:auto;justify-content:space-evenly;box-shadow:0 0.83px 1.66px 0 var(--emw--ingame-box-shadow, rgba(16, 24, 40, 0.0509803922));min-width:90px;width:90px;padding:6px}.TournamentsInGameLobby .TournamentListWrapper .DotsWrapper .DotItem{width:6px;height:6px;border-radius:6px;margin:1.5px}.TournamentsInGameLobby .TournamentListWrapper .DotsWrapper .DotItem.Active{opacity:1;box-shadow:0 0 4.09px 3.32px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843))}.TournamentsInGameLobby .TournamentListWrapper .DotsWrapper .DotItem.Active .Dot{background:var(--emw--ingame-color-lav-gray, #B4B0CC);box-shadow:0 0 16.65px 3.33px var(--emw--ingame-color-darkgray, rgba(62, 67, 109, 0.5019607843))}.TournamentsInGameLobby .TournamentListWrapper .DotsWrapper .DotItem .Dot{background:var(--emw--ingame-dot-box-shadow, #666178);opacity:0.5;width:6px;height:6px;display:block;border-radius:6px;overflow:hidden}.TournamentsInGameLobby .TournamentPageWrapper{overflow:visible;z-index:1;background:linear-gradient(to bottom, var(--emw--ingame-color-black0, rgba(0, 0, 0, 0)) 0%, var(--emw--ingame-color-black, #020308) 100%);height:calc(100% - var(--emw--ingame-tournament-height, 168px))}.TournamentsInGameLobby .TournamentPageWrapper.Expanded{flex:1;height:100%}.TournamentsInGameLobby .FixedBackToHome{position:fixed;bottom:18px;right:25px;z-index:10}.TournamentsInGameLobby .FixedBackToHome .Button:hover{animation-duration:0ms;background:var(--emw--ingame-color-grayb2, rgba(89, 106, 197, 0.6980392157));border:1px solid var(--emw--ingame-color-white70, rgba(255, 255, 255, 0.6980392157));backdrop-filter:blur(15px);cursor:pointer}.TournamentsInGameLobby .FixedBackToHome .Button{background:var(--emw--ingame-color-gray66, rgba(89, 106, 197, 0.4));border:0.5px solid var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843));display:flex;align-items:center;justify-content:center;width:102px;height:30px;opacity:1;padding:4.31px 8px 4.31px 6px;gap:3px;border-radius:71.88px}.TournamentsInGameLobby .FixedBackToHome .Button span{color:var(--emw--ingame-color-text, #F4EFF4);font-size:small}";export{be as C}
@@ -0,0 +1 @@
1
+ export{C as casino_tournaments_ingame_list}from"./casino-tournaments-ingame-list-339ffc08.js";import"./index-bf8982db.js";import"@everymatrix/casino-tournaments-ingame-state";import"@everymatrix/casino-tournaments-ingame-detail-page";import"@everymatrix/ui-image";
@@ -0,0 +1 @@
1
+ import{p as t,b as e}from"./index-bf8982db.js";export{s as setNonce}from"./index-bf8982db.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((async t=>(await n(),e([["casino-tournaments-ingame-list",[[1,"casino-tournaments-ingame-list",{mbSource:[513,"mb-source"],translationUrl:[513,"translation-url"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],endpoint:[513],theme:[513],session:[513],filter:[513],language:[513],currency:[513],startTimeAfter:[513,"start-time-after"],tournamentId:[513,"tournament-id"],limit:[513],activeNextWhenSwipe:[516,"active-next-when-swipe"],removeAfterBack:[516,"remove-after-back"],tournaments:[32],currentTournamentId:[32],tournamentListElement:[32],touchStartX:[32],isDetailExpanded:[32],isListLoading:[32],showToasting:[32],activePeriodEnd:[32]},[[16,"pageDetailExpand","pageDetailExpandHandler"],[16,"tournamentUpdate","tournamentUpdateHandler"],[0,"pthStateCheckEvent","updateTournamentById"],[17,"resize","resetDetailPageHeight"]],{endpoint:["loadTournamentsData"],session:["loadTournamentsData"],filter:["loadTournamentsData"],language:["loadTournamentsData"],translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],t))));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,p=[],y=[],$=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?w(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(p),v(y),(m=p.length>0)&&f.raf(b)},w=e=>h().then(e),g=$(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>R});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},L=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?T(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=T(e,null);return u.u=t,r.length>0&&(u.h=r),u.m=o,u},T=(e,t)=>({l:0,p:e,i:t,$:null,h:null,u:null,m:null}),W={},A=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>D(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},D=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},N=new WeakMap,U=e=>"sc-"+e.v,F=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},H=/\s/,q=e=>e?e.split(H):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(o)))e in s||F(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))F(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.p),_(null,l,B),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(i=0;i<l.h.length;++i)s=I(e,l,i),s&&o.appendChild(s);return o["s-hn"]=x,o},J=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===x&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=I(null,n,o),i&&(l[o].$=i,Z(r,i,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.p===t.p&&(!!n||e.m===t.m),X=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,i=t.i;null===i?(_(e,t,B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],m=l.length-1,p=l[0],y=l[m];for(;r<=f&&c<=m;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==p)p=l[++c];else if(null==y)y=l[--m];else if(Q(h,p,o))X(h,p,o),h=t[++r],p=l[++c];else if(Q(d,y,o))X(d,y,o),d=t[--f],y=l[--m];else if(Q(h,y,o))X(h,y,o),Z(e,h.$,d.$.nextSibling),h=t[++r],y=l[--m];else if(Q(d,p,o))X(d,p,o),Z(e,d.$,h.$),d=t[--f],p=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===p.m){u=a;break}u>=0?(i=t[u],i.p!==p.p?s=I(t&&t[c],n,u):(X(i,p,o),t[u]=void 0,s=i.$),p=l[++c]):(s=I(t&&t[c],n,c),p=l[++c]),s&&Z(h.$.parentNode,s,h.$)}r>f?J(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&K(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):null!==o&&K(o,0,o.length-1)):e.i!==i&&(l.data=i)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),g((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>ue(n,e,t))),e.k=void 0),l=ue(n,"componentWillLoad")),l=le(l,(()=>ue(n,"componentWillRender"))),le(l,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=N.get(e=e.head||e);if(i||N.set(e,i=new Set),!i.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.C)?n:k(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||T(null,null),i=(e=>e&&e.p===W)(t)?t:L(null,null,t);if(x=l.tagName,o.P&&(i.u=i.u||{},o.P.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.p=null,i.l|=4,e.M=i,i.$=s.$=l.shadowRoot||l,M=l["s-sc"],X(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.t,l=e.j;ue(n,"componentDidRender"),64&e.l||(e.l|=64,ae(t),ue(n,"componentDidLoad"),e.R(t),l||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>te(e,!1))),e.l&=-517},ce=()=>{ae(a.documentElement),w((()=>D(u,"appload",{detail:{namespace:"casino-tournaments-ingame-list"}})))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l)=>{var o,i;const r=e.prototype;if(t.L||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.L)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).W.get(t))(0,e)},set(l){((e,t,l,o)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.W.get(t),u=i.l,a=i.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.L[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.W.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&te(i,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.T)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.T)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},he=e=>{ue(e,"disconnectedCallback")},de=(e,l={})=>{var o;const h=[],m=l.exclude||[],p=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let w,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],L:l[2],A:l[3]};4&c.l&&(S=!0),c.L=l[2],c.A=l[3],c.P=[],c.T=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,W:new Map};l.D=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,me(this,e,c.A)),w&&(clearTimeout(w),w=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)me(e,t,l.A),(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.L&&Object.entries(l.L).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.N;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.U}" was not found`);l.isProxied||(n.T=l.watchers,fe(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.F&&(e.F.map((e=>e())),e.F=void 0),(null==e?void 0:e.t)?he(e.t):(null==e?void 0:e.D)&&e.D.then((()=>he(e.t)))}})()))}componentOnReady(){return n(this).D}};c.N=e[0],m.includes(u)||p.get(u)||(h.push(u),p.define(u,fe(a,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ce,30)))},me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ye(e,n),i=pe(t,o),r=$e(n);f.ael(s,l,i,r),(t.F=t.F||[]).push((()=>f.rel(s,l,i,r)))}))},pe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},ye=(e,t)=>16&t?a.body:e,$e=e=>({passive:!!(1&e),capture:!!(2&e)}),ve=e=>f.C=e;export{de as b,A as c,L as h,h as p,l as r,ve as s}
@@ -0,0 +1 @@
1
+ export{C as CasinoTournamentsIngameList}from"./casino-tournaments-ingame-list-339ffc08.js";import"./index-bf8982db.js";import"@everymatrix/casino-tournaments-ingame-state";import"@everymatrix/casino-tournaments-ingame-detail-page";import"@everymatrix/ui-image";
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const globalScripts = () => {};
4
+
5
+ exports.globalScripts = globalScripts;