@everymatrix/casino-tournaments-controller 1.0.16 → 1.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoTournamentsController-DZ0LEvCR.cjs +14 -0
- package/components/CasinoTournamentsController-o9ci4V-7.js +5673 -0
- package/components/CasinoTournamentsFilterController-CiS0QN_2.js +549 -0
- package/components/CasinoTournamentsFilterController-FBpFN99X.cjs +1 -0
- package/components/CasinoTournamentsListController-DIfWzrAy.cjs +13 -0
- package/components/CasinoTournamentsListController-TZbe8_p2.js +3128 -0
- package/components/CasinoTournamentsThumbnail-1UjlSmfk.js +885 -0
- package/components/CasinoTournamentsThumbnail-CU_I-u5x.cjs +4 -0
- package/components/CasinoTournamentsThumbnailController-B35mMuea.cjs +1 -0
- package/components/CasinoTournamentsThumbnailController-CoX3AMmZ.js +1365 -0
- package/components/CasinoTournamentsThumbnailDuration-C_EXZ3qI.cjs +1 -0
- package/components/CasinoTournamentsThumbnailDuration-GKFyPIZf.js +515 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-D1ki4K15.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-DVPC0-Qc.js +456 -0
- package/components/CasinoTournamentsThumbnailPrizes-C233jAWN.cjs +1 -0
- package/components/CasinoTournamentsThumbnailPrizes-Dy-t1Zna.js +330 -0
- package/es2015/casino-tournaments-controller.cjs +1 -0
- package/es2015/casino-tournaments-controller.js +16 -0
- package/package.json +18 -33
- package/.eslintrc +0 -84
- package/README.md +0 -0
- package/dist/casino-tournaments-controller.js +0 -2
- package/dist/casino-tournaments-controller.js.map +0 -1
- package/documentation.md +0 -170
- package/index.html +0 -29
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/CasinoTournamentsController.svelte +0 -498
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -101
- package/stories/CasinoTournamentsController.stories.js +0 -13
- package/svelte.config.js +0 -7
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./CasinoTournamentsController-DZ0LEvCR.cjs");function Bs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
|
|
2
|
+
//! version : 2.30.1
|
|
3
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
|
+
//! license : MIT
|
|
5
|
+
//! momentjs.com
|
|
6
|
+
var Jt;function d(){return Jt.apply(null,arguments)}function qs(e){Jt=e}function I(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function le(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ft(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(k(e,t))return!1;return!0}function x(e){return e===void 0}function $(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Oe(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Qt(e,t){var s=[],r,n=e.length;for(r=0;r<n;++r)s.push(t(e[r],r));return s}function se(e,t){for(var s in t)k(t,s)&&(e[s]=t[s]);return k(t,"toString")&&(e.toString=t.toString),k(t,"valueOf")&&(e.valueOf=t.valueOf),e}function z(e,t,s,r){return ks(e,t,s,r,!0).utc()}function Js(){return{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}}function _(e){return e._pf==null&&(e._pf=Js()),e._pf}var at;Array.prototype.some?at=Array.prototype.some:at=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function ct(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=_(e),s=at.call(t.parsedDateParts,function(n){return n!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Ge(e){var t=z(NaN);return e!=null?se(_(t),e):_(t).userInvalidated=!0,t}var Ut=d.momentProperties=[],tt=!1;function mt(e,t){var s,r,n,a=Ut.length;if(x(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),x(t._i)||(e._i=t._i),x(t._f)||(e._f=t._f),x(t._l)||(e._l=t._l),x(t._strict)||(e._strict=t._strict),x(t._tzm)||(e._tzm=t._tzm),x(t._isUTC)||(e._isUTC=t._isUTC),x(t._offset)||(e._offset=t._offset),x(t._pf)||(e._pf=_(t)),x(t._locale)||(e._locale=t._locale),a>0)for(s=0;s<a;s++)r=Ut[s],n=t[r],x(n)||(e[r]=n);return e}function Te(e){mt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),tt===!1&&(tt=!0,d.updateOffset(this),tt=!1)}function E(e){return e instanceof Te||e!=null&&e._isAMomentObject!=null}function Xt(e){d.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function R(e,t){var s=!0;return se(function(){if(d.deprecationHandler!=null&&d.deprecationHandler(null,e),s){var r=[],n,a,i,l=arguments.length;for(a=0;a<l;a++){if(n="",typeof arguments[a]=="object"){n+=`
|
|
7
|
+
[`+a+"] ";for(i in arguments[0])k(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];r.push(n)}Xt(e+`
|
|
8
|
+
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
|
+
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var It={};function Kt(e,t){d.deprecationHandler!=null&&d.deprecationHandler(e,t),It[e]||(Xt(t),It[e]=!0)}d.suppressDeprecationWarnings=!1;d.deprecationHandler=null;function Z(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Qs(e){var t,s;for(s in e)k(e,s)&&(t=e[s],Z(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function it(e,t){var s=se({},e),r;for(r in t)k(t,r)&&(le(e[r])&&le(t[r])?(s[r]={},se(s[r],e[r]),se(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)k(e,r)&&!k(t,r)&&le(e[r])&&(s[r]=se({},s[r]));return s}function _t(e){e!=null&&this.set(e)}var ot;Object.keys?ot=Object.keys:ot=function(e){var t,s=[];for(t in e)k(e,t)&&s.push(t);return s};var Xs={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ks(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return Z(r)?r.call(t,s):r}function j(e,t,s){var r=""+Math.abs(e),n=t-r.length,a=e>=0;return(a?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+r}var yt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,st={},ce={};function c(e,t,s,r){var n=r;typeof r=="string"&&(n=function(){return this[r]()}),e&&(ce[e]=n),t&&(ce[t[0]]=function(){return j(n.apply(this,arguments),t[1],t[2])}),s&&(ce[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function $s(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function er(e){var t=e.match(yt),s,r;for(s=0,r=t.length;s<r;s++)ce[t[s]]?t[s]=ce[t[s]]:t[s]=$s(t[s]);return function(n){var a="",i;for(i=0;i<r;i++)a+=Z(t[i])?t[i].call(n,e):t[i];return a}}function Le(e,t){return e.isValid()?(t=$t(t,e.localeData()),st[t]=st[t]||er(t),st[t](e)):e.localeData().invalidDate()}function $t(e,t){var s=5;function r(n){return t.longDateFormat(n)||n}for(Re.lastIndex=0;s>=0&&Re.test(e);)e=e.replace(Re,r),Re.lastIndex=0,s-=1;return e}var tr={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"};function sr(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(yt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var rr="Invalid date";function nr(){return this._invalidDate}var ar="%d",ir=/\d{1,2}/;function or(e){return this._ordinal.replace("%d",e)}var lr={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"};function ur(e,t,s,r){var n=this._relativeTime[s];return Z(n)?n(e,t,s,r):n.replace(/%d/i,e)}function dr(e,t){var s=this._relativeTime[e>0?"future":"past"];return Z(s)?s(t):s.replace(/%s/i,t)}var Et={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return typeof e=="string"?Et[e]||Et[e.toLowerCase()]:void 0}function gt(e){var t={},s,r;for(r in e)k(e,r)&&(s=F(r),s&&(t[s]=e[r]));return t}var hr={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function fr(e){var t=[],s;for(s in e)k(e,s)&&t.push({unit:s,priority:hr[s]});return t.sort(function(r,n){return r.priority-n.priority}),t}var es=/\d/,N=/\d\d/,ts=/\d{3}/,wt=/\d{4}/,je=/[+-]?\d{6}/,v=/\d\d?/,ss=/\d\d\d\d?/,rs=/\d\d\d\d\d\d?/,ze=/\d{1,3}/,kt=/\d{1,4}/,Ze=/[+-]?\d{1,6}/,ye=/\d+/,Be=/[+-]?\d+/,cr=/Z|[+-]\d\d:?\d\d/gi,qe=/Z|[+-]\d\d(?::?\d\d)?/gi,mr=/[+-]?\d+(\.\d{1,3})?/,be=/[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,ge=/^[1-9]\d?/,St=/^([1-9]\d|\d)/,Ie;Ie={};function h(e,t,s){Ie[e]=Z(t)?t:function(r,n){return r&&s?s:t}}function _r(e,t){return k(Ie,e)?Ie[e](t._strict,t._locale):new RegExp(yr(e))}function yr(e){return X(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,n,a){return s||r||n||a}))}function X(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function W(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function g(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=W(t)),s}var lt={};function M(e,t){var s,r=t,n;for(typeof e=="string"&&(e=[e]),$(t)&&(r=function(a,i){i[t]=g(a)}),n=e.length,s=0;s<n;s++)lt[e[s]]=r}function xe(e,t){M(e,function(s,r,n,a){n._w=n._w||{},t(s,n._w,n,a)})}function gr(e,t,s){t!=null&&k(lt,e)&<[e](t,s._a,s,e)}function Je(e){return e%4===0&&e%100!==0||e%400===0}var b=0,J=1,G=2,O=3,U=4,Q=5,oe=6,wr=7,kr=8;c("Y",0,0,function(){var e=this.year();return e<=9999?j(e,4):"+"+e});c(0,["YY",2],0,function(){return this.year()%100});c(0,["YYYY",4],0,"year");c(0,["YYYYY",5],0,"year");c(0,["YYYYYY",6,!0],0,"year");h("Y",Be);h("YY",v,N);h("YYYY",kt,wt);h("YYYYY",Ze,je);h("YYYYYY",Ze,je);M(["YYYYY","YYYYYY"],b);M("YYYY",function(e,t){t[b]=e.length===2?d.parseTwoDigitYear(e):g(e)});M("YY",function(e,t){t[b]=d.parseTwoDigitYear(e)});M("Y",function(e,t){t[b]=parseInt(e,10)});function Me(e){return Je(e)?366:365}d.parseTwoDigitYear=function(e){return g(e)+(g(e)>68?1900:2e3)};var ns=we("FullYear",!0);function Sr(){return Je(this.year())}function we(e,t){return function(s){return s!=null?(as(this,e,s),d.updateOffset(this,t),this):De(this,e)}}function De(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function as(e,t,s){var r,n,a,i,l;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(n?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(n?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(n?r.setUTCHours(s):r.setHours(s));case"Date":return void(n?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}a=s,i=e.month(),l=e.date(),l=l===29&&i===1&&!Je(a)?28:l,n?r.setUTCFullYear(a,i,l):r.setFullYear(a,i,l)}}function Mr(e){return e=F(e),Z(this[e])?this[e]():this}function Dr(e,t){if(typeof e=="object"){e=gt(e);var s=fr(e),r,n=s.length;for(r=0;r<n;r++)this[s[r].unit](e[s[r].unit])}else if(e=F(e),Z(this[e]))return this[e](t);return this}function vr(e,t){return(e%t+t)%t}var Y;Array.prototype.indexOf?Y=Array.prototype.indexOf:Y=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Mt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=vr(t,12);return e+=(t-s)/12,s===1?Je(e)?29:28:31-s%7%2}c("M",["MM",2],"Mo",function(){return this.month()+1});c("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});c("MMMM",0,0,function(e){return this.localeData().months(this,e)});h("M",v,ge);h("MM",v,N);h("MMM",function(e,t){return t.monthsShortRegex(e)});h("MMMM",function(e,t){return t.monthsRegex(e)});M(["M","MM"],function(e,t){t[J]=g(e)-1});M(["MMM","MMMM"],function(e,t,s,r){var n=s._locale.monthsParse(e,r,s._strict);n!=null?t[J]=n:_(s).invalidMonth=e});var pr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),is="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),os=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Yr=be,Or=be;function Tr(e,t){return e?I(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||os).test(t)?"format":"standalone"][e.month()]:I(this._months)?this._months:this._months.standalone}function br(e,t){return e?I(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[os.test(t)?"format":"standalone"][e.month()]:I(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function xr(e,t,s){var r,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=z([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return s?t==="MMM"?(n=Y.call(this._shortMonthsParse,i),n!==-1?n:null):(n=Y.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=Y.call(this._shortMonthsParse,i),n!==-1?n:(n=Y.call(this._longMonthsParse,i),n!==-1?n:null)):(n=Y.call(this._longMonthsParse,i),n!==-1?n:(n=Y.call(this._shortMonthsParse,i),n!==-1?n:null))}function Nr(e,t,s){var r,n,a;if(this._monthsParseExact)return xr.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=z([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function ls(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=g(t);else if(t=e.localeData().monthsParse(t),!$(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,Mt(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function us(e){return e!=null?(ls(this,e),d.updateOffset(this,!0),this):De(this,"Month")}function Pr(){return Mt(this.year(),this.month())}function Wr(e){return this._monthsParseExact?(k(this,"_monthsRegex")||ds.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(k(this,"_monthsShortRegex")||(this._monthsShortRegex=Yr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Rr(e){return this._monthsParseExact?(k(this,"_monthsRegex")||ds.call(this),e?this._monthsStrictRegex:this._monthsRegex):(k(this,"_monthsRegex")||(this._monthsRegex=Or),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ds(){function e(m,y){return y.length-m.length}var t=[],s=[],r=[],n,a,i,l;for(n=0;n<12;n++)a=z([2e3,n]),i=X(this.monthsShort(a,"")),l=X(this.months(a,"")),t.push(i),s.push(l),r.push(l),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Fr(e,t,s,r,n,a,i){var l;return e<100&&e>=0?(l=new Date(e+400,t,s,r,n,a,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,s,r,n,a,i),l}function ve(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ee(e,t,s){var r=7+t-s,n=(7+ve(e,0,r).getUTCDay()-t)%7;return-n+r-1}function hs(e,t,s,r,n){var a=(7+s-r)%7,i=Ee(e,r,n),l=1+7*(t-1)+a+i,m,y;return l<=0?(m=e-1,y=Me(m)+l):l>Me(e)?(m=e+1,y=l-Me(e)):(m=e,y=l),{year:m,dayOfYear:y}}function pe(e,t,s){var r=Ee(e.year(),t,s),n=Math.floor((e.dayOfYear()-r-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+K(i,t,s)):n>K(e.year(),t,s)?(a=n-K(e.year(),t,s),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function K(e,t,s){var r=Ee(e,t,s),n=Ee(e+1,t,s);return(Me(e)-r+n)/7}c("w",["ww",2],"wo","week");c("W",["WW",2],"Wo","isoWeek");h("w",v,ge);h("ww",v,N);h("W",v,ge);h("WW",v,N);xe(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=g(e)});function Lr(e){return pe(e,this._week.dow,this._week.doy).week}var Cr={dow:0,doy:6};function Ur(){return this._week.dow}function Ir(){return this._week.doy}function Er(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Hr(e){var t=pe(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}c("d",0,"do","day");c("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});c("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});c("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});c("e",0,0,"weekday");c("E",0,0,"isoWeekday");h("d",v);h("e",v);h("E",v);h("dd",function(e,t){return t.weekdaysMinRegex(e)});h("ddd",function(e,t){return t.weekdaysShortRegex(e)});h("dddd",function(e,t){return t.weekdaysRegex(e)});xe(["dd","ddd","dddd"],function(e,t,s,r){var n=s._locale.weekdaysParse(e,r,s._strict);n!=null?t.d=n:_(s).invalidWeekday=e});xe(["d","e","E"],function(e,t,s,r){t[r]=g(e)});function Ar(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Vr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Dt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Gr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),jr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zr=be,Zr=be,Br=be;function qr(e,t){var s=I(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Dt(s,this._week.dow):e?s[e.day()]:s}function Jr(e){return e===!0?Dt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Qr(e){return e===!0?Dt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Xr(e,t,s){var r,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=z([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return s?t==="dddd"?(n=Y.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=Y.call(this._weekdaysParse,i),n!==-1||(n=Y.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,i),n!==-1||(n=Y.call(this._weekdaysParse,i),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=Y.call(this._minWeekdaysParse,i),n!==-1||(n=Y.call(this._weekdaysParse,i),n!==-1)?n:(n=Y.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function Kr(e,t,s){var r,n,a;if(this._weekdaysParseExact)return Xr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=z([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function $r(e){if(!this.isValid())return e!=null?this:NaN;var t=De(this,"Day");return e!=null?(e=Ar(e,this.localeData()),this.add(e-t,"d")):t}function en(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function tn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Vr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function sn(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||vt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(k(this,"_weekdaysRegex")||(this._weekdaysRegex=zr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function rn(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||vt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(k(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Zr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function nn(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||vt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(k(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Br),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vt(){function e(T,P){return P.length-T.length}var t=[],s=[],r=[],n=[],a,i,l,m,y;for(a=0;a<7;a++)i=z([2e3,1]).day(a),l=X(this.weekdaysMin(i,"")),m=X(this.weekdaysShort(i,"")),y=X(this.weekdays(i,"")),t.push(l),s.push(m),r.push(y),n.push(l),n.push(m),n.push(y);t.sort(e),s.sort(e),r.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function pt(){return this.hours()%12||12}function an(){return this.hours()||24}c("H",["HH",2],0,"hour");c("h",["hh",2],0,pt);c("k",["kk",2],0,an);c("hmm",0,0,function(){return""+pt.apply(this)+j(this.minutes(),2)});c("hmmss",0,0,function(){return""+pt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)});c("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)});c("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)});function cs(e,t){c(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}cs("a",!0);cs("A",!1);function ms(e,t){return t._meridiemParse}h("a",ms);h("A",ms);h("H",v,St);h("h",v,ge);h("k",v,ge);h("HH",v,N);h("hh",v,N);h("kk",v,N);h("hmm",ss);h("hmmss",rs);h("Hmm",ss);h("Hmmss",rs);M(["H","HH"],O);M(["k","kk"],function(e,t,s){var r=g(e);t[O]=r===24?0:r});M(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e});M(["h","hh"],function(e,t,s){t[O]=g(e),_(s).bigHour=!0});M("hmm",function(e,t,s){var r=e.length-2;t[O]=g(e.substr(0,r)),t[U]=g(e.substr(r)),_(s).bigHour=!0});M("hmmss",function(e,t,s){var r=e.length-4,n=e.length-2;t[O]=g(e.substr(0,r)),t[U]=g(e.substr(r,2)),t[Q]=g(e.substr(n)),_(s).bigHour=!0});M("Hmm",function(e,t,s){var r=e.length-2;t[O]=g(e.substr(0,r)),t[U]=g(e.substr(r))});M("Hmmss",function(e,t,s){var r=e.length-4,n=e.length-2;t[O]=g(e.substr(0,r)),t[U]=g(e.substr(r,2)),t[Q]=g(e.substr(n))});function on(e){return(e+"").toLowerCase().charAt(0)==="p"}var ln=/[ap]\.?m?\.?/i,un=we("Hours",!0);function dn(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var _s={calendar:Xs,longDateFormat:tr,invalidDate:rr,ordinal:ar,dayOfMonthOrdinalParse:ir,relativeTime:lr,months:pr,monthsShort:is,week:Cr,weekdays:Gr,weekdaysMin:jr,weekdaysShort:fs,meridiemParse:ln},p={},ke={},Ye;function hn(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function Ht(e){return e&&e.toLowerCase().replace("_","-")}function fn(e){for(var t=0,s,r,n,a;t<e.length;){for(a=Ht(e[t]).split("-"),s=a.length,r=Ht(e[t+1]),r=r?r.split("-"):null;s>0;){if(n=Qe(a.slice(0,s).join("-")),n)return n;if(r&&r.length>=s&&hn(a,r)>=s-1)break;s--}t++}return Ye}function cn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Qe(e){var t=null,s;if(p[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&cn(e))try{t=Ye._abbr,s=Bs,s("./locale/"+e),ne(t)}catch(r){p[e]=null}return p[e]}function ne(e,t){var s;return e&&(x(t)?s=ee(e):s=Yt(e,t),s?Ye=s:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ye._abbr}function Yt(e,t){if(t!==null){var s,r=_s;if(t.abbr=e,p[e]!=null)Kt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=p[e]._config;else if(t.parentLocale!=null)if(p[t.parentLocale]!=null)r=p[t.parentLocale]._config;else if(s=Qe(t.parentLocale),s!=null)r=s._config;else return ke[t.parentLocale]||(ke[t.parentLocale]=[]),ke[t.parentLocale].push({name:e,config:t}),null;return p[e]=new _t(it(r,t)),ke[e]&&ke[e].forEach(function(n){Yt(n.name,n.config)}),ne(e),p[e]}else return delete p[e],null}function mn(e,t){if(t!=null){var s,r,n=_s;p[e]!=null&&p[e].parentLocale!=null?p[e].set(it(p[e]._config,t)):(r=Qe(e),r!=null&&(n=r._config),t=it(n,t),r==null&&(t.abbr=e),s=new _t(t),s.parentLocale=p[e],p[e]=s),ne(e)}else p[e]!=null&&(p[e].parentLocale!=null?(p[e]=p[e].parentLocale,e===ne()&&ne(e)):p[e]!=null&&delete p[e]);return p[e]}function ee(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ye;if(!I(e)){if(t=Qe(e),t)return t;e=[e]}return fn(e)}function _n(){return ot(p)}function Ot(e){var t,s=e._a;return s&&_(e).overflow===-2&&(t=s[J]<0||s[J]>11?J:s[G]<1||s[G]>Mt(s[b],s[J])?G:s[O]<0||s[O]>24||s[O]===24&&(s[U]!==0||s[Q]!==0||s[oe]!==0)?O:s[U]<0||s[U]>59?U:s[Q]<0||s[Q]>59?Q:s[oe]<0||s[oe]>999?oe:-1,_(e)._overflowDayOfYear&&(t<b||t>G)&&(t=G),_(e)._overflowWeeks&&t===-1&&(t=wr),_(e)._overflowWeekday&&t===-1&&(t=kr),_(e).overflow=t),e}var yn=/^\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)?)?$/,gn=/^\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)?)?$/,wn=/Z|[+-]\d\d(?::?\d\d)?/,Fe=[["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]],rt=[["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/]],kn=/^\/?Date\((-?\d+)/i,Sn=/^(?:(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}))$/,Mn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ys(e){var t,s,r=e._i,n=yn.exec(r)||gn.exec(r),a,i,l,m,y=Fe.length,T=rt.length;if(n){for(_(e).iso=!0,t=0,s=y;t<s;t++)if(Fe[t][1].exec(n[1])){i=Fe[t][0],a=Fe[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,s=T;t<s;t++)if(rt[t][1].exec(n[3])){l=(n[2]||" ")+rt[t][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(n[4])if(wn.exec(n[4]))m="Z";else{e._isValid=!1;return}e._f=i+(l||"")+(m||""),bt(e)}else e._isValid=!1}function Dn(e,t,s,r,n,a){var i=[vn(e),is.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function vn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function pn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Yn(e,t,s){if(e){var r=fs.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(r!==n)return _(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function On(e,t,s){if(e)return Mn[e];if(t)return 0;var r=parseInt(s,10),n=r%100,a=(r-n)/100;return a*60+n}function gs(e){var t=Sn.exec(pn(e._i)),s;if(t){if(s=Dn(t[4],t[3],t[2],t[5],t[6],t[7]),!Yn(t[1],s,e))return;e._a=s,e._tzm=On(t[8],t[9],t[10]),e._d=ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function Tn(e){var t=kn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ys(e),e._isValid===!1)delete e._isValid;else return;if(gs(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:d.createFromInputFallback(e)}d.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function he(e,t,s){return e!=null?e:t!=null?t:s}function bn(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Tt(e){var t,s,r=[],n,a,i;if(!e._d){for(n=bn(e),e._w&&e._a[G]==null&&e._a[J]==null&&xn(e),e._dayOfYear!=null&&(i=he(e._a[b],n[b]),(e._dayOfYear>Me(i)||e._dayOfYear===0)&&(_(e)._overflowDayOfYear=!0),s=ve(i,0,e._dayOfYear),e._a[J]=s.getUTCMonth(),e._a[G]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=n[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[O]===24&&e._a[U]===0&&e._a[Q]===0&&e._a[oe]===0&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?ve:Fr).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==a&&(_(e).weekdayMismatch=!0)}}function xn(e){var t,s,r,n,a,i,l,m,y;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,s=he(t.GG,e._a[b],pe(D(),1,4).year),r=he(t.W,1),n=he(t.E,1),(n<1||n>7)&&(m=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,y=pe(D(),a,i),s=he(t.gg,e._a[b],y.year),r=he(t.w,y.week),t.d!=null?(n=t.d,(n<0||n>6)&&(m=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(m=!0)):n=a),r<1||r>K(s,a,i)?_(e)._overflowWeeks=!0:m!=null?_(e)._overflowWeekday=!0:(l=hs(s,r,n,a,i),e._a[b]=l.year,e._dayOfYear=l.dayOfYear)}d.ISO_8601=function(){};d.RFC_2822=function(){};function bt(e){if(e._f===d.ISO_8601){ys(e);return}if(e._f===d.RFC_2822){gs(e);return}e._a=[],_(e).empty=!0;var t=""+e._i,s,r,n,a,i,l=t.length,m=0,y,T;for(n=$t(e._f,e._locale).match(yt)||[],T=n.length,s=0;s<T;s++)a=n[s],r=(t.match(_r(a,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&_(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),m+=r.length),ce[a]?(r?_(e).empty=!1:_(e).unusedTokens.push(a),gr(a,r,e)):e._strict&&!r&&_(e).unusedTokens.push(a);_(e).charsLeftOver=l-m,t.length>0&&_(e).unusedInput.push(t),e._a[O]<=12&&_(e).bigHour===!0&&e._a[O]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[O]=Nn(e._locale,e._a[O],e._meridiem),y=_(e).era,y!==null&&(e._a[b]=e._locale.erasConvertYear(y,e._a[b])),Tt(e),Ot(e)}function Nn(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Pn(e){var t,s,r,n,a,i,l=!1,m=e._f.length;if(m===0){_(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<m;n++)a=0,i=!1,t=mt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],bt(t),ct(t)&&(i=!0),a+=_(t).charsLeftOver,a+=_(t).unusedTokens.length*10,_(t).score=a,l?a<r&&(r=a,s=t):(r==null||a<r||i)&&(r=a,s=t,i&&(l=!0));se(e,s||t)}function Wn(e){if(!e._d){var t=gt(e._i),s=t.day===void 0?t.date:t.day;e._a=Qt([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Tt(e)}}function Rn(e){var t=new Te(Ot(ws(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ws(e){var t=e._i,s=e._f;return e._locale=e._locale||ee(e._l),t===null||s===void 0&&t===""?Ge({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),E(t)?new Te(Ot(t)):(Oe(t)?e._d=t:I(s)?Pn(e):s?bt(e):Fn(e),ct(e)||(e._d=null),e))}function Fn(e){var t=e._i;x(t)?e._d=new Date(d.now()):Oe(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Tn(e):I(t)?(e._a=Qt(t.slice(0),function(s){return parseInt(s,10)}),Tt(e)):le(t)?Wn(e):$(t)?e._d=new Date(t):d.createFromInputFallback(e)}function ks(e,t,s,r,n){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(le(e)&&ft(e)||I(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=s,a._i=e,a._f=t,a._strict=r,Rn(a)}function D(e,t,s,r){return ks(e,t,s,r,!1)}var Ln=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ge()}),Cn=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=D.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ge()});function Ss(e,t){var s,r;if(t.length===1&&I(t[0])&&(t=t[0]),!t.length)return D();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function Un(){var e=[].slice.call(arguments,0);return Ss("isBefore",e)}function In(){var e=[].slice.call(arguments,0);return Ss("isAfter",e)}var En=function(){return Date.now?Date.now():+new Date},Se=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Hn(e){var t,s=!1,r,n=Se.length;for(t in e)if(k(e,t)&&!(Y.call(Se,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<n;++r)if(e[Se[r]]){if(s)return!1;parseFloat(e[Se[r]])!==g(e[Se[r]])&&(s=!0)}return!0}function An(){return this._isValid}function Vn(){return H(NaN)}function Xe(e){var t=gt(e),s=t.year||0,r=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,m=t.minute||0,y=t.second||0,T=t.millisecond||0;this._isValid=Hn(t),this._milliseconds=+T+y*1e3+m*6e4+l*1e3*60*60,this._days=+i+a*7,this._months=+n+r*3+s*12,this._data={},this._locale=ee(),this._bubble()}function Ce(e){return e instanceof Xe}function ut(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Gn(e,t,s){var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<r;i++)g(e[i])!==g(t[i])&&a++;return a+n}function Ms(e,t){c(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+j(~~(s/60),2)+t+j(~~s%60,2)})}Ms("Z",":");Ms("ZZ","");h("Z",qe);h("ZZ",qe);M(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=xt(qe,e)});var jn=/([\+\-]|\d\d)/gi;function xt(e,t){var s=(t||"").match(e),r,n,a;return s===null?null:(r=s[s.length-1]||[],n=(r+"").match(jn)||["-",0,0],a=+(n[1]*60)+g(n[2]),a===0?0:n[0]==="+"?a:-a)}function Nt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(E(e)||Oe(e)?e.valueOf():D(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),d.updateOffset(s,!1),s):D(e).local()}function dt(e){return-Math.round(e._d.getTimezoneOffset())}d.updateOffset=function(){};function zn(e,t,s){var r=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=xt(qe,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(n=dt(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?ps(this,H(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:dt(this)}function Zn(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Bn(e){return this.utcOffset(0,e)}function qn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(dt(this),"m")),this}function Jn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=xt(cr,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Qn(e){return this.isValid()?(e=e?D(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Xn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kn(){if(!x(this._isDSTShifted))return this._isDSTShifted;var e={},t;return mt(e,this),e=ws(e),e._a?(t=e._isUTC?z(e._a):D(e._a),this._isDSTShifted=this.isValid()&&Gn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $n(){return this.isValid()?!this._isUTC:!1}function ea(){return this.isValid()?this._isUTC:!1}function Ds(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ta=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,sa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function H(e,t){var s=e,r=null,n,a,i;return Ce(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=ta.exec(e))?(n=r[1]==="-"?-1:1,s={y:0,d:g(r[G])*n,h:g(r[O])*n,m:g(r[U])*n,s:g(r[Q])*n,ms:g(ut(r[oe]*1e3))*n}):(r=sa.exec(e))?(n=r[1]==="-"?-1:1,s={y:ie(r[2],n),M:ie(r[3],n),w:ie(r[4],n),d:ie(r[5],n),h:ie(r[6],n),m:ie(r[7],n),s:ie(r[8],n)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=ra(D(s.from),D(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),a=new Xe(s),Ce(e)&&k(e,"_locale")&&(a._locale=e._locale),Ce(e)&&k(e,"_isValid")&&(a._isValid=e._isValid),a}H.fn=Xe.prototype;H.invalid=Vn;function ie(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function At(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function ra(e,t){var s;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?s=At(e,t):(s=At(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function vs(e,t){return function(s,r){var n,a;return r!==null&&!isNaN(+r)&&(Kt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=s,s=r,r=a),n=H(s,r),ps(this,n,e),this}}function ps(e,t,s,r){var n=t._milliseconds,a=ut(t._days),i=ut(t._months);e.isValid()&&(r=r==null?!0:r,i&&ls(e,De(e,"Month")+i*s),a&&as(e,"Date",De(e,"Date")+a*s),n&&e._d.setTime(e._d.valueOf()+n*s),r&&d.updateOffset(e,a||i))}var na=vs(1,"add"),aa=vs(-1,"subtract");function Ys(e){return typeof e=="string"||e instanceof String}function ia(e){return E(e)||Oe(e)||Ys(e)||$(e)||la(e)||oa(e)||e===null||e===void 0}function oa(e){var t=le(e)&&!ft(e),s=!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"],n,a,i=r.length;for(n=0;n<i;n+=1)a=r[n],s=s||k(e,a);return t&&s}function la(e){var t=I(e),s=!1;return t&&(s=e.filter(function(r){return!$(r)&&Ys(e)}).length===0),t&&s}function ua(e){var t=le(e)&&!ft(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<r.length;n+=1)a=r[n],s=s||k(e,a);return t&&s}function da(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function ha(e,t){arguments.length===1&&(arguments[0]?ia(arguments[0])?(e=arguments[0],t=void 0):ua(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||D(),r=Nt(s,this).startOf("day"),n=d.calendarFormat(this,r)||"sameElse",a=t&&(Z(t[n])?t[n].call(this,s):t[n]);return this.format(a||this.localeData().calendar(n,this,D(s)))}function fa(){return new Te(this)}function ca(e,t){var s=E(e)?e:D(e);return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function ma(e,t){var s=E(e)?e:D(e);return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function _a(e,t,s,r){var n=E(e)?e:D(e),a=E(t)?t:D(t);return this.isValid()&&n.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(n,s):!this.isBefore(n,s))&&(r[1]===")"?this.isBefore(a,s):!this.isAfter(a,s))):!1}function ya(e,t){var s=E(e)?e:D(e),r;return this.isValid()&&s.isValid()?(t=F(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function ga(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function wa(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ka(e,t,s){var r,n,a;if(!this.isValid())return NaN;if(r=Nt(e,this),!r.isValid())return NaN;switch(n=(r.utcOffset()-this.utcOffset())*6e4,t=F(t),t){case"year":a=Ue(this,r)/12;break;case"month":a=Ue(this,r);break;case"quarter":a=Ue(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-n)/864e5;break;case"week":a=(this-r-n)/6048e5;break;default:a=this-r}return s?a:W(a)}function Ue(e,t){if(e.date()<t.date())return-Ue(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),n,a;return t-r<0?(n=e.clone().add(s-1,"months"),a=(t-r)/(r-n)):(n=e.clone().add(s+1,"months"),a=(t-r)/(n-r)),-(s+a)||0}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Sa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ma(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Le(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Le(s,"Z")):Le(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Da(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(s+r+n+a)}function va(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=Le(this,e);return this.localeData().postformat(t)}function pa(e,t){return this.isValid()&&(E(e)&&e.isValid()||D(e).isValid())?H({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ya(e){return this.from(D(),e)}function Oa(e,t){return this.isValid()&&(E(e)&&e.isValid()||D(e).isValid())?H({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ta(e){return this.to(D(),e)}function Os(e){var t;return e===void 0?this._locale._abbr:(t=ee(e),t!=null&&(this._locale=t),this)}var Ts=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function bs(){return this._locale}var He=1e3,me=60*He,Ae=60*me,xs=(365*400+97)*24*Ae;function _e(e,t){return(e%t+t)%t}function Ns(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-xs:new Date(e,t,s).valueOf()}function Ps(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-xs:Date.UTC(e,t,s)}function ba(e){var t,s;if(e=F(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ps:Ns,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=_e(t+(this._isUTC?0:this.utcOffset()*me),Ae);break;case"minute":t=this._d.valueOf(),t-=_e(t,me);break;case"second":t=this._d.valueOf(),t-=_e(t,He);break}return this._d.setTime(t),d.updateOffset(this,!0),this}function xa(e){var t,s;if(e=F(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ps:Ns,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ae-_e(t+(this._isUTC?0:this.utcOffset()*me),Ae)-1;break;case"minute":t=this._d.valueOf(),t+=me-_e(t,me)-1;break;case"second":t=this._d.valueOf(),t+=He-_e(t,He)-1;break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Na(){return this._d.valueOf()-(this._offset||0)*6e4}function Pa(){return Math.floor(this.valueOf()/1e3)}function Wa(){return new Date(this.valueOf())}function Ra(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Fa(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function La(){return this.isValid()?this.toISOString():null}function Ca(){return ct(this)}function Ua(){return se({},_(this))}function Ia(){return _(this).overflow}function Ea(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}c("N",0,0,"eraAbbr");c("NN",0,0,"eraAbbr");c("NNN",0,0,"eraAbbr");c("NNNN",0,0,"eraName");c("NNNNN",0,0,"eraNarrow");c("y",["y",1],"yo","eraYear");c("y",["yy",2],0,"eraYear");c("y",["yyy",3],0,"eraYear");c("y",["yyyy",4],0,"eraYear");h("N",Pt);h("NN",Pt);h("NNN",Pt);h("NNNN",Qa);h("NNNNN",Xa);M(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var n=s._locale.erasParse(e,r,s._strict);n?_(s).era=n:_(s).invalidEra=e});h("y",ye);h("yy",ye);h("yyy",ye);h("yyyy",ye);h("yo",Ka);M(["y","yy","yyy","yyyy"],b);M(["yo"],function(e,t,s,r){var n;s._locale._eraYearOrdinalRegex&&(n=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[b]=s._locale.eraYearOrdinalParse(e,n):t[b]=parseInt(e,10)});function Ha(e,t){var s,r,n,a=this._eras||ee("en")._eras;for(s=0,r=a.length;s<r;++s){switch(typeof a[s].since){case"string":n=d(a[s].since).startOf("day"),a[s].since=n.valueOf();break}switch(typeof a[s].until){case"undefined":a[s].until=1/0;break;case"string":n=d(a[s].until).startOf("day").valueOf(),a[s].until=n.valueOf();break}}return a}function Aa(e,t,s){var r,n,a=this.eras(),i,l,m;for(e=e.toUpperCase(),r=0,n=a.length;r<n;++r)if(i=a[r].name.toUpperCase(),l=a[r].abbr.toUpperCase(),m=a[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(l===e)return a[r];break;case"NNNN":if(i===e)return a[r];break;case"NNNNN":if(m===e)return a[r];break}else if([i,l,m].indexOf(e)>=0)return a[r]}function Va(e,t){var s=e.since<=e.until?1:-1;return t===void 0?d(e.since).year():d(e.since).year()+(t-e.offset)*s}function Ga(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function ja(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function za(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function Za(){var e,t,s,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=n[e].since<=n[e].until?1:-1,r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return(this.year()-d(n[e].since).year())*s+n[e].offset;return this.year()}function Ba(e){return k(this,"_erasNameRegex")||Wt.call(this),e?this._erasNameRegex:this._erasRegex}function qa(e){return k(this,"_erasAbbrRegex")||Wt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ja(e){return k(this,"_erasNarrowRegex")||Wt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Pt(e,t){return t.erasAbbrRegex(e)}function Qa(e,t){return t.erasNameRegex(e)}function Xa(e,t){return t.erasNarrowRegex(e)}function Ka(e,t){return t._eraYearOrdinalRegex||ye}function Wt(){var e=[],t=[],s=[],r=[],n,a,i,l,m,y=this.eras();for(n=0,a=y.length;n<a;++n)i=X(y[n].name),l=X(y[n].abbr),m=X(y[n].narrow),t.push(i),e.push(l),s.push(m),r.push(i),r.push(l),r.push(m);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}c(0,["gg",2],0,function(){return this.weekYear()%100});c(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ke(e,t){c(0,[e,e.length],0,t)}Ke("gggg","weekYear");Ke("ggggg","weekYear");Ke("GGGG","isoWeekYear");Ke("GGGGG","isoWeekYear");h("G",Be);h("g",Be);h("GG",v,N);h("gg",v,N);h("GGGG",kt,wt);h("gggg",kt,wt);h("GGGGG",Ze,je);h("ggggg",Ze,je);xe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=g(e)});xe(["gg","GG"],function(e,t,s,r){t[r]=d.parseTwoDigitYear(e)});function $a(e){return Ws.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ei(e){return Ws.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ti(){return K(this.year(),1,4)}function si(){return K(this.isoWeekYear(),1,4)}function ri(){var e=this.localeData()._week;return K(this.year(),e.dow,e.doy)}function ni(){var e=this.localeData()._week;return K(this.weekYear(),e.dow,e.doy)}function Ws(e,t,s,r,n){var a;return e==null?pe(this,r,n).year:(a=K(e,r,n),t>a&&(t=a),ai.call(this,e,t,s,r,n))}function ai(e,t,s,r,n){var a=hs(e,t,s,r,n),i=ve(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}c("Q",0,"Qo","quarter");h("Q",es);M("Q",function(e,t){t[J]=(g(e)-1)*3});function ii(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}c("D",["DD",2],"Do","date");h("D",v,ge);h("DD",v,N);h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});M(["D","DD"],G);M("Do",function(e,t){t[G]=g(e.match(v)[0])});var Rs=we("Date",!0);c("DDD",["DDDD",3],"DDDo","dayOfYear");h("DDD",ze);h("DDDD",ts);M(["DDD","DDDD"],function(e,t,s){s._dayOfYear=g(e)});function oi(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}c("m",["mm",2],0,"minute");h("m",v,St);h("mm",v,N);M(["m","mm"],U);var li=we("Minutes",!1);c("s",["ss",2],0,"second");h("s",v,St);h("ss",v,N);M(["s","ss"],Q);var ui=we("Seconds",!1);c("S",0,0,function(){return~~(this.millisecond()/100)});c(0,["SS",2],0,function(){return~~(this.millisecond()/10)});c(0,["SSS",3],0,"millisecond");c(0,["SSSS",4],0,function(){return this.millisecond()*10});c(0,["SSSSS",5],0,function(){return this.millisecond()*100});c(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});c(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});c(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});c(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});h("S",ze,es);h("SS",ze,N);h("SSS",ze,ts);var re,Fs;for(re="SSSS";re.length<=9;re+="S")h(re,ye);function di(e,t){t[oe]=g(("0."+e)*1e3)}for(re="S";re.length<=9;re+="S")M(re,di);Fs=we("Milliseconds",!1);c("z",0,0,"zoneAbbr");c("zz",0,0,"zoneName");function hi(){return this._isUTC?"UTC":""}function fi(){return this._isUTC?"Coordinated Universal Time":""}var o=Te.prototype;o.add=na;o.calendar=ha;o.clone=fa;o.diff=ka;o.endOf=xa;o.format=va;o.from=pa;o.fromNow=Ya;o.to=Oa;o.toNow=Ta;o.get=Mr;o.invalidAt=Ia;o.isAfter=ca;o.isBefore=ma;o.isBetween=_a;o.isSame=ya;o.isSameOrAfter=ga;o.isSameOrBefore=wa;o.isValid=Ca;o.lang=Ts;o.locale=Os;o.localeData=bs;o.max=Cn;o.min=Ln;o.parsingFlags=Ua;o.set=Dr;o.startOf=ba;o.subtract=aa;o.toArray=Ra;o.toObject=Fa;o.toDate=Wa;o.toISOString=Ma;o.inspect=Da;typeof Symbol!="undefined"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});o.toJSON=La;o.toString=Sa;o.unix=Pa;o.valueOf=Na;o.creationData=Ea;o.eraName=Ga;o.eraNarrow=ja;o.eraAbbr=za;o.eraYear=Za;o.year=ns;o.isLeapYear=Sr;o.weekYear=$a;o.isoWeekYear=ei;o.quarter=o.quarters=ii;o.month=us;o.daysInMonth=Pr;o.week=o.weeks=Er;o.isoWeek=o.isoWeeks=Hr;o.weeksInYear=ri;o.weeksInWeekYear=ni;o.isoWeeksInYear=ti;o.isoWeeksInISOWeekYear=si;o.date=Rs;o.day=o.days=$r;o.weekday=en;o.isoWeekday=tn;o.dayOfYear=oi;o.hour=o.hours=un;o.minute=o.minutes=li;o.second=o.seconds=ui;o.millisecond=o.milliseconds=Fs;o.utcOffset=zn;o.utc=Bn;o.local=qn;o.parseZone=Jn;o.hasAlignedHourOffset=Qn;o.isDST=Xn;o.isLocal=$n;o.isUtcOffset=ea;o.isUtc=Ds;o.isUTC=Ds;o.zoneAbbr=hi;o.zoneName=fi;o.dates=R("dates accessor is deprecated. Use date instead.",Rs);o.months=R("months accessor is deprecated. Use month instead",us);o.years=R("years accessor is deprecated. Use year instead",ns);o.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Zn);o.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kn);function ci(e){return D(e*1e3)}function mi(){return D.apply(null,arguments).parseZone()}function Ls(e){return e}var S=_t.prototype;S.calendar=Ks;S.longDateFormat=sr;S.invalidDate=nr;S.ordinal=or;S.preparse=Ls;S.postformat=Ls;S.relativeTime=ur;S.pastFuture=dr;S.set=Qs;S.eras=Ha;S.erasParse=Aa;S.erasConvertYear=Va;S.erasAbbrRegex=qa;S.erasNameRegex=Ba;S.erasNarrowRegex=Ja;S.months=Tr;S.monthsShort=br;S.monthsParse=Nr;S.monthsRegex=Rr;S.monthsShortRegex=Wr;S.week=Lr;S.firstDayOfYear=Ir;S.firstDayOfWeek=Ur;S.weekdays=qr;S.weekdaysMin=Qr;S.weekdaysShort=Jr;S.weekdaysParse=Kr;S.weekdaysRegex=sn;S.weekdaysShortRegex=rn;S.weekdaysMinRegex=nn;S.isPM=on;S.meridiem=dn;function Ve(e,t,s,r){var n=ee(),a=z().set(r,t);return n[s](a,e)}function Cs(e,t,s){if($(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ve(e,t,s,"month");var r,n=[];for(r=0;r<12;r++)n[r]=Ve(e,r,s,"month");return n}function Rt(e,t,s,r){typeof e=="boolean"?($(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,$(t)&&(s=t,t=void 0),t=t||"");var n=ee(),a=e?n._week.dow:0,i,l=[];if(s!=null)return Ve(t,(s+a)%7,r,"day");for(i=0;i<7;i++)l[i]=Ve(t,(i+a)%7,r,"day");return l}function _i(e,t){return Cs(e,t,"months")}function yi(e,t){return Cs(e,t,"monthsShort")}function gi(e,t,s){return Rt(e,t,s,"weekdays")}function wi(e,t,s){return Rt(e,t,s,"weekdaysShort")}function ki(e,t,s){return Rt(e,t,s,"weekdaysMin")}ne("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=g(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}});d.lang=R("moment.lang is deprecated. Use moment.locale instead.",ne);d.langData=R("moment.langData is deprecated. Use moment.localeData instead.",ee);var B=Math.abs;function Si(){var e=this._data;return this._milliseconds=B(this._milliseconds),this._days=B(this._days),this._months=B(this._months),e.milliseconds=B(e.milliseconds),e.seconds=B(e.seconds),e.minutes=B(e.minutes),e.hours=B(e.hours),e.months=B(e.months),e.years=B(e.years),this}function Us(e,t,s,r){var n=H(t,s);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function Mi(e,t){return Us(this,e,t,1)}function Di(e,t){return Us(this,e,t,-1)}function Vt(e){return e<0?Math.floor(e):Math.ceil(e)}function vi(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,n,a,i,l,m;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=Vt(ht(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,n=W(e/1e3),r.seconds=n%60,a=W(n/60),r.minutes=a%60,i=W(a/60),r.hours=i%24,t+=W(i/24),m=W(Is(t)),s+=m,t-=Vt(ht(m)),l=W(s/12),s%=12,r.days=t,r.months=s,r.years=l,this}function Is(e){return e*4800/146097}function ht(e){return e*146097/4800}function pi(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=F(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Is(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(ht(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function te(e){return function(){return this.as(e)}}var Es=te("ms"),Yi=te("s"),Oi=te("m"),Ti=te("h"),bi=te("d"),xi=te("w"),Ni=te("M"),Pi=te("Q"),Wi=te("y"),Ri=Es;function Fi(){return H(this)}function Li(e){return e=F(e),this.isValid()?this[e+"s"]():NaN}function ue(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ci=ue("milliseconds"),Ui=ue("seconds"),Ii=ue("minutes"),Ei=ue("hours"),Hi=ue("days"),Ai=ue("months"),Vi=ue("years");function Gi(){return W(this.days()/7)}var q=Math.round,fe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ji(e,t,s,r,n){return n.relativeTime(t||1,!!s,e,r)}function zi(e,t,s,r){var n=H(e).abs(),a=q(n.as("s")),i=q(n.as("m")),l=q(n.as("h")),m=q(n.as("d")),y=q(n.as("M")),T=q(n.as("w")),P=q(n.as("y")),L=a<=s.ss&&["s",a]||a<s.s&&["ss",a]||i<=1&&["m"]||i<s.m&&["mm",i]||l<=1&&["h"]||l<s.h&&["hh",l]||m<=1&&["d"]||m<s.d&&["dd",m];return s.w!=null&&(L=L||T<=1&&["w"]||T<s.w&&["ww",T]),L=L||y<=1&&["M"]||y<s.M&&["MM",y]||P<=1&&["y"]||["yy",P],L[2]=t,L[3]=+e>0,L[4]=r,ji.apply(null,L)}function Zi(e){return e===void 0?q:typeof e=="function"?(q=e,!0):!1}function Bi(e,t){return fe[e]===void 0?!1:t===void 0?fe[e]:(fe[e]=t,e==="s"&&(fe.ss=t-1),!0)}function qi(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=fe,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},fe,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),n=this.localeData(),a=zi(this,!s,r,n),s&&(a=n.pastFuture(+this,a)),n.postformat(a)}var nt=Math.abs;function de(e){return(e>0)-(e<0)||+e}function $e(){if(!this.isValid())return this.localeData().invalidDate();var e=nt(this._milliseconds)/1e3,t=nt(this._days),s=nt(this._months),r,n,a,i,l=this.asSeconds(),m,y,T,P;return l?(r=W(e/60),n=W(r/60),e%=60,r%=60,a=W(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=l<0?"-":"",y=de(this._months)!==de(l)?"-":"",T=de(this._days)!==de(l)?"-":"",P=de(this._milliseconds)!==de(l)?"-":"",m+"P"+(a?y+a+"Y":"")+(s?y+s+"M":"")+(t?T+t+"D":"")+(n||r||e?"T":"")+(n?P+n+"H":"")+(r?P+r+"M":"")+(e?P+i+"S":"")):"P0D"}var w=Xe.prototype;w.isValid=An;w.abs=Si;w.add=Mi;w.subtract=Di;w.as=pi;w.asMilliseconds=Es;w.asSeconds=Yi;w.asMinutes=Oi;w.asHours=Ti;w.asDays=bi;w.asWeeks=xi;w.asMonths=Ni;w.asQuarters=Pi;w.asYears=Wi;w.valueOf=Ri;w._bubble=vi;w.clone=Fi;w.get=Li;w.milliseconds=Ci;w.seconds=Ui;w.minutes=Ii;w.hours=Ei;w.days=Hi;w.weeks=Gi;w.months=Ai;w.years=Vi;w.humanize=qi;w.toISOString=$e;w.toString=$e;w.toJSON=$e;w.locale=Os;w.localeData=bs;w.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$e);w.lang=Ts;c("X",0,0,"unix");c("x",0,0,"valueOf");h("x",Be);h("X",mr);M("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)});M("x",function(e,t,s){s._d=new Date(g(e))});//! moment.js
|
|
10
|
+
d.version="2.30.1";qs(D);d.fn=o;d.min=Un;d.max=In;d.now=En;d.utc=z;d.unix=ci;d.months=_i;d.isDate=Oe;d.locale=ne;d.invalid=Ge;d.duration=H;d.isMoment=E;d.weekdays=gi;d.parseZone=mi;d.localeData=ee;d.isDuration=Ce;d.monthsShort=yi;d.weekdaysMin=ki;d.defineLocale=Yt;d.updateLocale=mn;d.locales=_n;d.weekdaysShort=wi;d.normalizeUnits=F;d.relativeTimeRounding=Zi;d.relativeTimeThreshold=Bi;d.calendarFormat=da;d.prototype=o;d.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"};function Gt(e,t){u.addMessages(e,t)}const jt={en:{tournamentsList:{nothing:"Nothing to show here."}},hr:{tournamentsList:{nothing:"Nema ničega za prikazati ovdje."}},"zh-hk":{tournamentsList:{nothing:"這裡沒有什麼可顯示的。"}},fr:{tournamentsList:{nothing:"Rien à montrer ici."}},ro:{tournamentsList:{nothing:"Niciun turneu disponibil aici."}},tr:{tournamentsList:{nothing:"Burada gösterilecek bir şey yok."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}},es:{tournamentsList:{nothing:"Nada que mostrar aquí."}},hu:{tournamentsList:{nothing:"Nincs megjelenítendő adat."}},pt:{tournamentsList:{nothing:"Nada para mostrar aqui."}}};if(typeof window!="undefined"){let e=function(t){return function(...s){try{return t.apply(this,s)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-B35mMuea.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}function Ji(e){u.append_styles(e,"svelte-1a7r6ea",".svelte-1a7r6ea,.svelte-1a7r6ea::before,.svelte-1a7r6ea::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentList.svelte-1a7r6ea{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}")}function zt(e,t,s){const r=e.slice();return r[30]=t[s],r[32]=s,r}function Zt(e){let t,s=u.ensure_array_like(e[14]),r=[];for(let a=0;a<s.length;a+=1)r[a]=qt(zt(e,s,a));let n=null;return s.length||(n=Bt(e)),{c(){for(let a=0;a<r.length;a+=1)r[a].c();t=u.empty(),n&&n.c()},m(a,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(a,i);u.insert(a,t,i),n&&n.m(a,i)},p(a,i){if(i[0]&53247){s=u.ensure_array_like(a[14]);let l;for(l=0;l<s.length;l+=1){const m=zt(a,s,l);r[l]?r[l].p(m,i):(r[l]=qt(m),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=s.length,!s.length&&n?n.p(a,i):s.length?n&&(n.d(1),n=null):(n=Bt(a),n.c(),n.m(t.parentNode,t))}},d(a){a&&u.detach(t),u.destroy_each(r,a),n&&n.d(a)}}}function Bt(e){let t,s=e[15]("tournamentsList.nothing")+"",r;return{c(){t=u.element("p"),r=u.text(s),u.attr(t,"class","svelte-1a7r6ea")},m(n,a){u.insert(n,t,a),u.append(t,r)},p(n,a){a[0]&32768&&s!==(s=n[15]("tournamentsList.nothing")+"")&&u.set_data(r,s)},d(n){n&&u.detach(t)}}}function qt(e){let t,s,r;return{c(){t=u.element("casino-tournaments-thumbnail-controller"),u.set_custom_element_data(t,"touridx",e[32]+1),u.set_custom_element_data(t,"session",e[0]),u.set_custom_element_data(t,"userid",e[1]),u.set_custom_element_data(t,"endpoint",e[2]),u.set_custom_element_data(t,"showdetails","true"),u.set_custom_element_data(t,"showslider","false"),u.set_custom_element_data(t,"tournamenturl",s=e[30].href),u.set_custom_element_data(t,"maxwidth",r=e[14].length<=2),u.set_custom_element_data(t,"loginurl",e[5]),u.set_custom_element_data(t,"loginevent",e[3]),u.set_custom_element_data(t,"registerurl",e[6]),u.set_custom_element_data(t,"registerevent",e[4]),u.set_custom_element_data(t,"clientstyling",e[10]),u.set_custom_element_data(t,"clientstylingurl",e[11]),u.set_custom_element_data(t,"lang",e[8]),u.set_custom_element_data(t,"currency",e[7]),u.set_custom_element_data(t,"keepbrowsercontext",e[9]),u.set_custom_element_data(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
|
|
11
|
+
TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
|
|
12
|
+
TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
|
|
13
|
+
TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`),u.set_custom_element_data(t,"class","svelte-1a7r6ea")},m(n,a){u.insert(n,t,a)},p(n,a){a[0]&1&&u.set_custom_element_data(t,"session",n[0]),a[0]&2&&u.set_custom_element_data(t,"userid",n[1]),a[0]&4&&u.set_custom_element_data(t,"endpoint",n[2]),a[0]&16384&&s!==(s=n[30].href)&&u.set_custom_element_data(t,"tournamenturl",s),a[0]&16384&&r!==(r=n[14].length<=2)&&u.set_custom_element_data(t,"maxwidth",r),a[0]&32&&u.set_custom_element_data(t,"loginurl",n[5]),a[0]&8&&u.set_custom_element_data(t,"loginevent",n[3]),a[0]&64&&u.set_custom_element_data(t,"registerurl",n[6]),a[0]&16&&u.set_custom_element_data(t,"registerevent",n[4]),a[0]&1024&&u.set_custom_element_data(t,"clientstyling",n[10]),a[0]&2048&&u.set_custom_element_data(t,"clientstylingurl",n[11]),a[0]&256&&u.set_custom_element_data(t,"lang",n[8]),a[0]&128&&u.set_custom_element_data(t,"currency",n[7]),a[0]&512&&u.set_custom_element_data(t,"keepbrowsercontext",n[9])},d(n){n&&u.detach(t)}}}function Qi(e){let t,s=!e[13]&&Zt(e);return{c(){t=u.element("div"),s&&s.c(),u.attr(t,"class","TournamentList svelte-1a7r6ea"),u.attr(t,"part","TournamentList")},m(r,n){u.insert(r,t,n),s&&s.m(t,null),e[18](t)},p(r,n){r[13]?s&&(s.d(1),s=null):s?s.p(r,n):(s=Zt(r),s.c(),s.m(t,null))},i:u.noop,o:u.noop,d(r){r&&u.detach(t),s&&s.d(),e[18](null)}}}function Xi(e,t,s){let r;u.component_subscribe(e,u.$format,f=>s(15,r=f));let{session:n=""}=t,{userid:a=""}=t,{numberoftournaments:i="6"}=t,{endpoint:l=""}=t,{loginevent:m=""}=t,{registerevent:y=""}=t,{loginurl:T=""}=t,{registerurl:P=""}=t,{currency:L=""}=t,{lang:Ft="en"}=t,{keepbrowsercontext:Lt="false"}=t,{clientstyling:Ne=""}=t,{clientstylingurl:Pe=""}=t,{translationurl:We=""}=t,ae,et=!1;d();let C="";const As=()=>{fetch(We).then(A=>A.json()).then(A=>{Object.keys(A).forEach(V=>{Gt(V,A[V])})}).catch(A=>{console.log(A)})};Object.keys(jt).forEach(f=>{Gt(f,jt[f])});const Ct=f=>{if(f.data&&f.data.type=="TournamentList"&&(s(14,C=[]),s(13,et=!0),s(14,C=f.data.tournamentList),setTimeout(()=>{s(13,et=!1)},10)),f.data&&f.data.type=="TournamentListShowMore"&&s(14,C=[...C,...f.data.tournamentList]),f.data.type=="UpdateTournamentView"){if(!C)return;C.filter(V=>V.id==f.data.tournamentData.id).length==0&&(C.pop(),s(14,C=[f.data.tournamentData,...C]),setTimeout(()=>{C.forEach((V,Zs)=>{window.postMessage({type:`UpdateSingleTournament_${Zs+1}`,tournamentData:V},window.location.href)})},100))}f.data&&f.data.type=="UserSessionID"&&f.data.session},Vs=()=>{n.length>0&&n!="false"},Gs=()=>{let f=document.createElement("style");f.innerHTML=Ne,ae.appendChild(f)},js=()=>{let f=new URL(Pe),A=document.createElement("style");fetch(f.href).then(V=>V.text()).then(V=>{A.innerHTML=V,setTimeout(()=>{ae.appendChild(A)},1),setTimeout(()=>{},500)})};u.onMount(()=>(window.addEventListener("message",Ct,!0),()=>{window.removeEventListener("message",Ct,!0)}));function zs(f){u.binding_callbacks[f?"unshift":"push"](()=>{ae=f,s(12,ae)})}return e.$$set=f=>{"session"in f&&s(0,n=f.session),"userid"in f&&s(1,a=f.userid),"numberoftournaments"in f&&s(16,i=f.numberoftournaments),"endpoint"in f&&s(2,l=f.endpoint),"loginevent"in f&&s(3,m=f.loginevent),"registerevent"in f&&s(4,y=f.registerevent),"loginurl"in f&&s(5,T=f.loginurl),"registerurl"in f&&s(6,P=f.registerurl),"currency"in f&&s(7,L=f.currency),"lang"in f&&s(8,Ft=f.lang),"keepbrowsercontext"in f&&s(9,Lt=f.keepbrowsercontext),"clientstyling"in f&&s(10,Ne=f.clientstyling),"clientstylingurl"in f&&s(11,Pe=f.clientstylingurl),"translationurl"in f&&s(17,We=f.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&5120&&ae&&Ne&&Gs(),e.$$.dirty[0]&6144&&ae&&Pe&&js(),e.$$.dirty[0]&131072&&We&&As(),e.$$.dirty[0]&1&&n&&Vs(),e.$$.dirty[0]&2},[n,a,l,m,y,T,P,L,Ft,Lt,Ne,Pe,ae,et,C,r,i,We,zs]}class Hs extends u.SvelteComponent{constructor(t){super(),u.init(this,t,Xi,Qi,u.safe_not_equal,{session:0,userid:1,numberoftournaments:16,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:17},Ji,[-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),u.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),u.flush()}get numberoftournaments(){return this.$$.ctx[16]}set numberoftournaments(t){this.$$set({numberoftournaments:t}),u.flush()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$$set({endpoint:t}),u.flush()}get loginevent(){return this.$$.ctx[3]}set loginevent(t){this.$$set({loginevent:t}),u.flush()}get registerevent(){return this.$$.ctx[4]}set registerevent(t){this.$$set({registerevent:t}),u.flush()}get loginurl(){return this.$$.ctx[5]}set loginurl(t){this.$$set({loginurl:t}),u.flush()}get registerurl(){return this.$$.ctx[6]}set registerurl(t){this.$$set({registerurl:t}),u.flush()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),u.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),u.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),u.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),u.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),u.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),u.flush()}}u.create_custom_element(Hs,{session:{},userid:{},numberoftournaments:{},endpoint:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=Hs;
|