@everymatrix/casino-tournaments-page-controller 1.74.3 → 1.74.4

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 (70) hide show
  1. package/components/{CasinoTournamentsDetails-_bdGpLvB.js → CasinoTournamentsDetails-BsekkKcF.js} +19 -19
  2. package/components/{CasinoTournamentsDetails-BDw2Ou4t.js → CasinoTournamentsDetails-DPKqCPr7.js} +19 -19
  3. package/components/CasinoTournamentsPageController-AaQpF8iW.cjs +37 -0
  4. package/components/CasinoTournamentsPageController-B7tGUhTu.js +8547 -0
  5. package/components/CasinoTournamentsPageController-DqhbL_lu.js +8539 -0
  6. package/components/{CasinoTournamentsRank-C2U2j7Tz.js → CasinoTournamentsRank-CNnWcewC.js} +5 -5
  7. package/components/{CasinoTournamentsRank-Ch1xfyDw.js → CasinoTournamentsRank-Cc5pidJ-.js} +5 -5
  8. package/components/CasinoTournamentsTab-BhUqppkA.js +320 -0
  9. package/components/CasinoTournamentsTab-UV1F3GMS.cjs +1 -0
  10. package/components/CasinoTournamentsTab-_IDbc7rC.js +303 -0
  11. package/components/{CasinoTournamentsTable-JxHWMRJp.cjs → CasinoTournamentsTable-10_AWWZo.cjs} +1 -1
  12. package/components/{CasinoTournamentsTable-CriJP7NI.js → CasinoTournamentsTable-CsIgIQG-.js} +5 -5
  13. package/components/{CasinoTournamentsTable-D-sIOZGJ.js → CasinoTournamentsTable-X-rV7_Lz.js} +5 -5
  14. package/components/{CasinoTournamentsThumbnail-Dfy_8oZr.js → CasinoTournamentsThumbnail-DH2Orb8Y.js} +23 -23
  15. package/components/{CasinoTournamentsThumbnail-CkD_6oZa.cjs → CasinoTournamentsThumbnail-DaJ4vbyp.cjs} +1 -1
  16. package/components/{CasinoTournamentsThumbnail-BZsiOxFz.js → CasinoTournamentsThumbnail-lUyJI2DJ.js} +23 -23
  17. package/components/{CasinoTournamentsThumbnailController-i5banPeB.cjs → CasinoTournamentsThumbnailController-Cd8LJRCx.cjs} +1 -1
  18. package/components/{CasinoTournamentsThumbnailController-BGzspVcE.js → CasinoTournamentsThumbnailController-FloLdZgl.js} +26 -26
  19. package/components/{CasinoTournamentsThumbnailController-OjlKIcrc.js → CasinoTournamentsThumbnailController-vSOxGy9d.js} +26 -26
  20. package/components/{CasinoTournamentsThumbnailDuration-DVjjXJbO.cjs → CasinoTournamentsThumbnailDuration-CAA4mIiV.cjs} +1 -1
  21. package/components/{CasinoTournamentsThumbnailDuration-CB6Ea1L4.js → CasinoTournamentsThumbnailDuration-DWL7fNmG.js} +45 -45
  22. package/components/{CasinoTournamentsThumbnailDuration-3GtKUapC.js → CasinoTournamentsThumbnailDuration-u8JSr0q-.js} +45 -45
  23. package/components/CasinoTournamentsThumbnailGames-BhcNQqZ7.cjs +1 -0
  24. package/components/CasinoTournamentsThumbnailGames-CgqVsZlB.js +424 -0
  25. package/components/CasinoTournamentsThumbnailGames-CqvpgOoi.js +421 -0
  26. package/components/{CasinoTournamentsThumbnailGamesSlider-Sseh_b01.js → CasinoTournamentsThumbnailGamesSlider-CAYRXnXx.js} +42 -42
  27. package/components/{CasinoTournamentsThumbnailGamesSlider-BudjLijL.js → CasinoTournamentsThumbnailGamesSlider-Fi5QDmul.js} +42 -42
  28. package/components/{CasinoTournamentsThumbnailGamesSlider-DZrl6ze4.cjs → CasinoTournamentsThumbnailGamesSlider-kmdZBPuV.cjs} +1 -1
  29. package/components/{CasinoTournamentsThumbnailPrizes-DvIC11GI.js → CasinoTournamentsThumbnailPrizes-BL1HtN3p.js} +27 -27
  30. package/components/{CasinoTournamentsThumbnailPrizes-L41ohmnP.js → CasinoTournamentsThumbnailPrizes-C8iysP1o.js} +27 -27
  31. package/components/{CasinoTournamentsThumbnailPrizes-Ds_aSQX0.cjs → CasinoTournamentsThumbnailPrizes-NroicTIN.cjs} +1 -1
  32. package/components/CasinoTournamentsThumbnailRule-BAatFJuT.cjs +10 -0
  33. package/components/CasinoTournamentsThumbnailRule-D9R1SMy6.js +620 -0
  34. package/components/CasinoTournamentsThumbnailRule-MDMyKumh.js +621 -0
  35. package/es2015/casino-tournaments-page-controller.cjs +1 -1
  36. package/es2015/casino-tournaments-page-controller.js +1 -1
  37. package/esnext/casino-tournaments-page-controller.js +1 -1
  38. package/package.json +1 -1
  39. package/stencil/{index-97d17652-DIpvPU9H.js → index-97d17652-BD-QREJe.js} +151 -151
  40. package/stencil/{index-97d17652-C7V2DWFg.js → index-97d17652-DJqGt8q2.js} +147 -147
  41. package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
  42. package/stencil/index-b2193545-CF9C6kiu.cjs +1 -0
  43. package/stencil/{index-b2193545-CD_KQ0BB.js → index-b2193545-OH6E7v51.js} +176 -176
  44. package/stencil/{index-b2193545-CrHhiaNt.js → index-b2193545-eoIiLcDl.js} +169 -169
  45. package/stencil/{ui-image-DBXtq7Sy.cjs → ui-image-CDCn_LHy.cjs} +1 -1
  46. package/stencil/{ui-image-D9tkwepr.js → ui-image-CDGN3Ekj.js} +1 -1
  47. package/stencil/{ui-image-BNRjOSaN.js → ui-image-CNrnXPP3.js} +1 -1
  48. package/stencil/{ui-image-b7b48fe5-B-k0kWgx.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
  49. package/stencil/{ui-image-b7b48fe5-D8-wEkoZ.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
  50. package/stencil/{ui-image-b7b48fe5-yceZ9WkN.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
  51. package/stencil/{ui-image_2-Ha_4GYwN.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
  52. package/stencil/{ui-image_2-CzFe50WB.js → ui-image_2-Dh5Eqdlm.js} +2 -2
  53. package/stencil/{ui-image_2-z5LhXZY2.js → ui-image_2-_K8Pt3w9.js} +2 -2
  54. package/stencil/{ui-skeleton-DXmvn9dE.js → ui-skeleton-C73UqtBQ.js} +2 -2
  55. package/stencil/{ui-skeleton-CKaouoPt.cjs → ui-skeleton-Caiy-FEL.cjs} +1 -1
  56. package/stencil/{ui-skeleton-BecGfbnY.js → ui-skeleton-CzV3R1-p.js} +2 -2
  57. package/stencil/{ui-skeleton-ae35c6f2-kPD5RoB3.cjs → ui-skeleton-ae35c6f2-C9l5j8aK.cjs} +1 -1
  58. package/stencil/{ui-skeleton-ae35c6f2-8tswdmF8.js → ui-skeleton-ae35c6f2-CLOd38Ia.js} +1 -1
  59. package/stencil/{ui-skeleton-ae35c6f2-BVAHFeog.js → ui-skeleton-ae35c6f2-SCby2j53.js} +1 -1
  60. package/components/CasinoTournamentsPageController-BihH-rXr.js +0 -8635
  61. package/components/CasinoTournamentsPageController-CVjczHGr.cjs +0 -38
  62. package/components/CasinoTournamentsPageController-CjYgbrp9.js +0 -8628
  63. package/components/CasinoTournamentsTab-BEC9HOOR.js +0 -292
  64. package/components/CasinoTournamentsTab-BLHE6UV5.js +0 -272
  65. package/components/CasinoTournamentsTab-CWhMQiQ0.cjs +0 -1
  66. package/components/CasinoTournamentsThumbnailRule-B9pvGNfE.js +0 -1103
  67. package/components/CasinoTournamentsThumbnailRule-CIwPTizJ.js +0 -1103
  68. package/components/CasinoTournamentsThumbnailRule-Dsd02JJV.cjs +0 -1
  69. package/stencil/index-97d17652-BgKdDb-e.cjs +0 -1
  70. package/stencil/index-b2193545-ngvz84TK.cjs +0 -1
@@ -0,0 +1,37 @@
1
+ "use strict";const s=require("./CasinoTournamentsDetails-DVRJk4kX.cjs");require("../stencil/ui-skeleton-Caiy-FEL.cjs");var ms=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _s(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.29.4
3
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
+ //! license : MIT
5
+ //! momentjs.com
6
+ var ja;function _(){return ja.apply(null,arguments)}function gs(e){ja=e}function Je(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ot(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Nr(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(q(e,t))return!1;return!0}function ke(e){return e===void 0}function gt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function dn(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Va(e,t){var n=[],r,a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function Tt(e,t){for(var n in t)q(t,n)&&(e[n]=t[n]);return q(t,"toString")&&(e.toString=t.toString),q(t,"valueOf")&&(e.valueOf=t.valueOf),e}function at(e,t,n,r){return pi(e,t,n,r,!0).utc()}function bs(){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 C(e){return e._pf==null&&(e._pf=bs()),e._pf}var cr;Array.prototype.some?cr=Array.prototype.some:cr=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Ar(e){if(e._isValid==null){var t=C(e),n=cr.call(t.parsedDateParts,function(a){return a!=null}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(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 An(e){var t=at(NaN);return e!=null?Tt(C(t),e):C(t).userInvalidated=!0,t}var sa=_.momentProperties=[],tr=!1;function Lr(e,t){var n,r,a,i=sa.length;if(ke(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ke(t._i)||(e._i=t._i),ke(t._f)||(e._f=t._f),ke(t._l)||(e._l=t._l),ke(t._strict)||(e._strict=t._strict),ke(t._tzm)||(e._tzm=t._tzm),ke(t._isUTC)||(e._isUTC=t._isUTC),ke(t._offset)||(e._offset=t._offset),ke(t._pf)||(e._pf=C(t)),ke(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=sa[n],a=t[r],ke(a)||(e[r]=a);return e}function fn(e){Lr(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),tr===!1&&(tr=!0,_.updateOffset(this),tr=!1)}function Qe(e){return e instanceof fn||e!=null&&e._isAMomentObject!=null}function za(e){_.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function je(e,t){var n=!0;return Tt(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,e),n){var r=[],a,i,o,l=arguments.length;for(i=0;i<l;i++){if(a="",typeof arguments[i]=="object"){a+=`
7
+ [`+i+"] ";for(o in arguments[0])q(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];r.push(a)}za(e+`
8
+ Arguments: `+Array.prototype.slice.call(r).join("")+`
9
+ `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var oa={};function Xa(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),oa[e]||(za(t),oa[e]=!0)}_.suppressDeprecationWarnings=!1;_.deprecationHandler=null;function it(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ys(e){var t,n;for(n in e)q(e,n)&&(t=e[n],it(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mr(e,t){var n=Tt({},e),r;for(r in t)q(t,r)&&(Ot(e[r])&&Ot(t[r])?(n[r]={},Tt(n[r],e[r]),Tt(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)q(e,r)&&!q(t,r)&&Ot(e[r])&&(n[r]=Tt({},n[r]));return n}function Br(e){e!=null&&this.set(e)}var pr;Object.keys?pr=Object.keys:pr=function(e){var t,n=[];for(t in e)q(e,t)&&n.push(t);return n};var vs={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ws(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return it(r)?r.call(t,n):r}function rt(e,t,n){var r=""+Math.abs(e),a=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var Fr=/(\[[^\[]*\])|(\\)?([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,bn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,nr={},Ut={};function S(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(Ut[e]=a),t&&(Ut[t[0]]=function(){return rt(a.apply(this,arguments),t[1],t[2])}),n&&(Ut[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Ts(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ss(e){var t=e.match(Fr),n,r;for(n=0,r=t.length;n<r;n++)Ut[t[n]]?t[n]=Ut[t[n]]:t[n]=Ts(t[n]);return function(a){var i="",o;for(o=0;o<r;o++)i+=it(t[o])?t[o].call(a,e):t[o];return i}}function Tn(e,t){return e.isValid()?(t=qa(t,e.localeData()),nr[t]=nr[t]||Ss(t),nr[t](e)):e.localeData().invalidDate()}function qa(e,t){var n=5;function r(a){return t.longDateFormat(a)||a}for(bn.lastIndex=0;n>=0&&bn.test(e);)e=e.replace(bn,r),bn.lastIndex=0,n-=1;return e}var Ms={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 xs(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Fr).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Es="Invalid date";function Ds(){return this._invalidDate}var Ps="%d",ks=/\d{1,2}/;function Os(e){return this._ordinal.replace("%d",e)}var Cs={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 Rs(e,t,n,r){var a=this._relativeTime[n];return it(a)?a(e,t,n,r):a.replace(/%d/i,e)}function Hs(e,t){var n=this._relativeTime[e>0?"future":"past"];return it(n)?n(t):n.replace(/%s/i,t)}var rn={};function we(e,t){var n=e.toLowerCase();rn[n]=rn[n+"s"]=rn[t]=e}function Ve(e){return typeof e=="string"?rn[e]||rn[e.toLowerCase()]:void 0}function Yr(e){var t={},n,r;for(r in e)q(e,r)&&(n=Ve(r),n&&(t[n]=e[r]));return t}var Za={};function Te(e,t){Za[e]=t}function Is(e){var t=[],n;for(n in e)q(e,n)&&t.push({unit:n,priority:Za[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}function Ln(e){return e%4===0&&e%100!==0||e%400===0}function Ge(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function N(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Ge(t)),n}function Zt(e,t){return function(n){return n!=null?(Ja(this,e,n),_.updateOffset(this,t),this):Pn(this,e)}}function Pn(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ja(e,t,n){e.isValid()&&!isNaN(n)&&(t==="FullYear"&&Ln(e.year())&&e.month()===1&&e.date()===29?(n=N(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Wn(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ns(e){return e=Ve(e),it(this[e])?this[e]():this}function As(e,t){if(typeof e=="object"){e=Yr(e);var n=Is(e),r,a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(e=Ve(e),it(this[e]))return this[e](t);return this}var Qa=/\d/,Ye=/\d\d/,Ka=/\d{3}/,Ur=/\d{4}/,Bn=/[+-]?\d{6}/,ie=/\d\d?/,$a=/\d\d\d\d?/,ei=/\d\d\d\d\d\d?/,Fn=/\d{1,3}/,Gr=/\d{1,4}/,Yn=/[+-]?\d{1,6}/,Jt=/\d+/,Un=/[+-]?\d+/,Ls=/Z|[+-]\d\d:?\d\d/gi,Gn=/Z|[+-]\d\d(?::?\d\d)?/gi,Bs=/[+-]?\d+(\.\d{1,3})?/,cn=/[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,kn;kn={};function v(e,t,n){kn[e]=it(t)?t:function(r,a){return r&&n?n:t}}function Fs(e,t){return q(kn,e)?kn[e](t._strict,t._locale):new RegExp(Ys(e))}function Ys(e){return Fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,i){return n||r||a||i}))}function Fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var _r={};function te(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),gt(t)&&(r=function(i,o){o[t]=N(i)}),a=e.length,n=0;n<a;n++)_r[e[n]]=r}function mn(e,t){te(e,function(n,r,a,i){a._w=a._w||{},t(n,a._w,a,i)})}function Us(e,t,n){t!=null&&q(_r,e)&&_r[e](t,n._a,n,e)}var ve=0,ct=1,nt=2,me=3,Ze=4,mt=5,kt=6,Gs=7,Ws=8;function js(e,t){return(e%t+t)%t}var de;Array.prototype.indexOf?de=Array.prototype.indexOf:de=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Wn(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=js(t,12);return e+=(t-n)/12,n===1?Ln(e)?29:28:31-n%7%2}S("M",["MM",2],"Mo",function(){return this.month()+1});S("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});S("MMMM",0,0,function(e){return this.localeData().months(this,e)});we("month","M");Te("month",8);v("M",ie);v("MM",ie,Ye);v("MMM",function(e,t){return t.monthsShortRegex(e)});v("MMMM",function(e,t){return t.monthsRegex(e)});te(["M","MM"],function(e,t){t[ct]=N(e)-1});te(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);a!=null?t[ct]=a:C(n).invalidMonth=e});var Vs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ti="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ni=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zs=cn,Xs=cn;function qs(e,t){return e?Je(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ni).test(t)?"format":"standalone"][e.month()]:Je(this._months)?this._months:this._months.standalone}function Zs(e,t){return e?Je(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ni.test(t)?"format":"standalone"][e.month()]:Je(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Js(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=at([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(a=de.call(this._shortMonthsParse,o),a!==-1?a:null):(a=de.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=de.call(this._shortMonthsParse,o),a!==-1?a:(a=de.call(this._longMonthsParse,o),a!==-1?a:null)):(a=de.call(this._longMonthsParse,o),a!==-1?a:(a=de.call(this._shortMonthsParse,o),a!==-1?a:null))}function Qs(e,t,n){var r,a,i;if(this._monthsParseExact)return Js.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=at([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ri(e,t){var n;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=N(t);else if(t=e.localeData().monthsParse(t),!gt(t))return e}return n=Math.min(e.date(),Wn(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ai(e){return e!=null?(ri(this,e),_.updateOffset(this,!0),this):Pn(this,"Month")}function Ks(){return Wn(this.year(),this.month())}function $s(e){return this._monthsParseExact?(q(this,"_monthsRegex")||ii.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(q(this,"_monthsShortRegex")||(this._monthsShortRegex=zs),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function eo(e){return this._monthsParseExact?(q(this,"_monthsRegex")||ii.call(this),e?this._monthsStrictRegex:this._monthsRegex):(q(this,"_monthsRegex")||(this._monthsRegex=Xs),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ii(){function e(o,l){return l.length-o.length}var t=[],n=[],r=[],a,i;for(a=0;a<12;a++)i=at([2e3,a]),t.push(this.monthsShort(i,"")),n.push(this.months(i,"")),r.push(this.months(i,"")),r.push(this.monthsShort(i,""));for(t.sort(e),n.sort(e),r.sort(e),a=0;a<12;a++)t[a]=Fe(t[a]),n[a]=Fe(n[a]);for(a=0;a<24;a++)r[a]=Fe(r[a]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}S("Y",0,0,function(){var e=this.year();return e<=9999?rt(e,4):"+"+e});S(0,["YY",2],0,function(){return this.year()%100});S(0,["YYYY",4],0,"year");S(0,["YYYYY",5],0,"year");S(0,["YYYYYY",6,!0],0,"year");we("year","y");Te("year",1);v("Y",Un);v("YY",ie,Ye);v("YYYY",Gr,Ur);v("YYYYY",Yn,Bn);v("YYYYYY",Yn,Bn);te(["YYYYY","YYYYYY"],ve);te("YYYY",function(e,t){t[ve]=e.length===2?_.parseTwoDigitYear(e):N(e)});te("YY",function(e,t){t[ve]=_.parseTwoDigitYear(e)});te("Y",function(e,t){t[ve]=parseInt(e,10)});function an(e){return Ln(e)?366:365}_.parseTwoDigitYear=function(e){return N(e)+(N(e)>68?1900:2e3)};var si=Zt("FullYear",!0);function to(){return Ln(this.year())}function no(e,t,n,r,a,i,o){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,a,i,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,i,o),l}function sn(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function On(e,t,n){var r=7+t-n,a=(7+sn(e,0,r).getUTCDay()-t)%7;return-a+r-1}function oi(e,t,n,r,a){var i=(7+n-r)%7,o=On(e,r,a),l=1+7*(t-1)+i+o,u,h;return l<=0?(u=e-1,h=an(u)+l):l>an(e)?(u=e+1,h=l-an(e)):(u=e,h=l),{year:u,dayOfYear:h}}function on(e,t,n){var r=On(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+pt(o,t,n)):a>pt(e.year(),t,n)?(i=a-pt(e.year(),t,n),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function pt(e,t,n){var r=On(e,t,n),a=On(e+1,t,n);return(an(e)-r+a)/7}S("w",["ww",2],"wo","week");S("W",["WW",2],"Wo","isoWeek");we("week","w");we("isoWeek","W");Te("week",5);Te("isoWeek",5);v("w",ie);v("ww",ie,Ye);v("W",ie);v("WW",ie,Ye);mn(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=N(e)});function ro(e){return on(e,this._week.dow,this._week.doy).week}var ao={dow:0,doy:6};function io(){return this._week.dow}function so(){return this._week.doy}function oo(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function lo(e){var t=on(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}S("d",0,"do","day");S("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});S("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});S("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});S("e",0,0,"weekday");S("E",0,0,"isoWeekday");we("day","d");we("weekday","e");we("isoWeekday","E");Te("day",11);Te("weekday",11);Te("isoWeekday",11);v("d",ie);v("e",ie);v("E",ie);v("dd",function(e,t){return t.weekdaysMinRegex(e)});v("ddd",function(e,t){return t.weekdaysShortRegex(e)});v("dddd",function(e,t){return t.weekdaysRegex(e)});mn(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:C(n).invalidWeekday=e});mn(["d","e","E"],function(e,t,n,r){t[r]=N(e)});function uo(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ho(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Wr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var fo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),li="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),co="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),mo=cn,po=cn,_o=cn;function go(e,t){var n=Je(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Wr(n,this._week.dow):e?n[e.day()]:n}function bo(e){return e===!0?Wr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function yo(e){return e===!0?Wr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function vo(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=at([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(a=de.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=de.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=de.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=de.call(this._weekdaysParse,o),a!==-1||(a=de.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=de.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=de.call(this._shortWeekdaysParse,o),a!==-1||(a=de.call(this._weekdaysParse,o),a!==-1)?a:(a=de.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=de.call(this._minWeekdaysParse,o),a!==-1||(a=de.call(this._weekdaysParse,o),a!==-1)?a:(a=de.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function wo(e,t,n){var r,a,i;if(this._weekdaysParseExact)return vo.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=at([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function To(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=uo(e,this.localeData()),this.add(e-t,"d")):t}function So(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 Mo(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ho(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function xo(e){return this._weekdaysParseExact?(q(this,"_weekdaysRegex")||jr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(q(this,"_weekdaysRegex")||(this._weekdaysRegex=mo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Eo(e){return this._weekdaysParseExact?(q(this,"_weekdaysRegex")||jr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(q(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=po),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Do(e){return this._weekdaysParseExact?(q(this,"_weekdaysRegex")||jr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(q(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_o),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function jr(){function e(d,g){return g.length-d.length}var t=[],n=[],r=[],a=[],i,o,l,u,h;for(i=0;i<7;i++)o=at([2e3,1]).day(i),l=Fe(this.weekdaysMin(o,"")),u=Fe(this.weekdaysShort(o,"")),h=Fe(this.weekdays(o,"")),t.push(l),n.push(u),r.push(h),a.push(l),a.push(u),a.push(h);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Vr(){return this.hours()%12||12}function Po(){return this.hours()||24}S("H",["HH",2],0,"hour");S("h",["hh",2],0,Vr);S("k",["kk",2],0,Po);S("hmm",0,0,function(){return""+Vr.apply(this)+rt(this.minutes(),2)});S("hmmss",0,0,function(){return""+Vr.apply(this)+rt(this.minutes(),2)+rt(this.seconds(),2)});S("Hmm",0,0,function(){return""+this.hours()+rt(this.minutes(),2)});S("Hmmss",0,0,function(){return""+this.hours()+rt(this.minutes(),2)+rt(this.seconds(),2)});function ui(e,t){S(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ui("a",!0);ui("A",!1);we("hour","h");Te("hour",13);function hi(e,t){return t._meridiemParse}v("a",hi);v("A",hi);v("H",ie);v("h",ie);v("k",ie);v("HH",ie,Ye);v("hh",ie,Ye);v("kk",ie,Ye);v("hmm",$a);v("hmmss",ei);v("Hmm",$a);v("Hmmss",ei);te(["H","HH"],me);te(["k","kk"],function(e,t,n){var r=N(e);t[me]=r===24?0:r});te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});te(["h","hh"],function(e,t,n){t[me]=N(e),C(n).bigHour=!0});te("hmm",function(e,t,n){var r=e.length-2;t[me]=N(e.substr(0,r)),t[Ze]=N(e.substr(r)),C(n).bigHour=!0});te("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[me]=N(e.substr(0,r)),t[Ze]=N(e.substr(r,2)),t[mt]=N(e.substr(a)),C(n).bigHour=!0});te("Hmm",function(e,t,n){var r=e.length-2;t[me]=N(e.substr(0,r)),t[Ze]=N(e.substr(r))});te("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[me]=N(e.substr(0,r)),t[Ze]=N(e.substr(r,2)),t[mt]=N(e.substr(a))});function ko(e){return(e+"").toLowerCase().charAt(0)==="p"}var Oo=/[ap]\.?m?\.?/i,Co=Zt("Hours",!0);function Ro(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var di={calendar:vs,longDateFormat:Ms,invalidDate:Es,ordinal:Ps,dayOfMonthOrdinalParse:ks,relativeTime:Cs,months:Vs,monthsShort:ti,week:ao,weekdays:fo,weekdaysMin:co,weekdaysShort:li,meridiemParse:Oo},se={},en={},ln;function Ho(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function la(e){return e&&e.toLowerCase().replace("_","-")}function Io(e){for(var t=0,n,r,a,i;t<e.length;){for(i=la(e[t]).split("-"),n=i.length,r=la(e[t+1]),r=r?r.split("-"):null;n>0;){if(a=jn(i.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&Ho(i,r)>=n-1)break;n--}t++}return ln}function No(e){return e.match("^[^/\\\\]*$")!=null}function jn(e){var t=null,n;if(se[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&No(e))try{t=ln._abbr,n=_s,n("./locale/"+e),xt(t)}catch(r){se[e]=null}return se[e]}function xt(e,t){var n;return e&&(ke(t)?n=yt(e):n=zr(e,t),n?ln=n:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ln._abbr}function zr(e,t){if(t!==null){var n,r=di;if(t.abbr=e,se[e]!=null)Xa("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=se[e]._config;else if(t.parentLocale!=null)if(se[t.parentLocale]!=null)r=se[t.parentLocale]._config;else if(n=jn(t.parentLocale),n!=null)r=n._config;else return en[t.parentLocale]||(en[t.parentLocale]=[]),en[t.parentLocale].push({name:e,config:t}),null;return se[e]=new Br(mr(r,t)),en[e]&&en[e].forEach(function(a){zr(a.name,a.config)}),xt(e),se[e]}else return delete se[e],null}function Ao(e,t){if(t!=null){var n,r,a=di;se[e]!=null&&se[e].parentLocale!=null?se[e].set(mr(se[e]._config,t)):(r=jn(e),r!=null&&(a=r._config),t=mr(a,t),r==null&&(t.abbr=e),n=new Br(t),n.parentLocale=se[e],se[e]=n),xt(e)}else se[e]!=null&&(se[e].parentLocale!=null?(se[e]=se[e].parentLocale,e===xt()&&xt(e)):se[e]!=null&&delete se[e]);return se[e]}function yt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ln;if(!Je(e)){if(t=jn(e),t)return t;e=[e]}return Io(e)}function Lo(){return pr(se)}function Xr(e){var t,n=e._a;return n&&C(e).overflow===-2&&(t=n[ct]<0||n[ct]>11?ct:n[nt]<1||n[nt]>Wn(n[ve],n[ct])?nt:n[me]<0||n[me]>24||n[me]===24&&(n[Ze]!==0||n[mt]!==0||n[kt]!==0)?me:n[Ze]<0||n[Ze]>59?Ze:n[mt]<0||n[mt]>59?mt:n[kt]<0||n[kt]>999?kt:-1,C(e)._overflowDayOfYear&&(t<ve||t>nt)&&(t=nt),C(e)._overflowWeeks&&t===-1&&(t=Gs),C(e)._overflowWeekday&&t===-1&&(t=Ws),C(e).overflow=t),e}var Bo=/^\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)?)?$/,Fo=/^\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)?)?$/,Yo=/Z|[+-]\d\d(?::?\d\d)?/,yn=[["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]],rr=[["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/]],Uo=/^\/?Date\((-?\d+)/i,Go=/^(?:(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}))$/,Wo={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 fi(e){var t,n,r=e._i,a=Bo.exec(r)||Fo.exec(r),i,o,l,u,h=yn.length,d=rr.length;if(a){for(C(e).iso=!0,t=0,n=h;t<n;t++)if(yn[t][1].exec(a[1])){o=yn[t][0],i=yn[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,n=d;t<n;t++)if(rr[t][1].exec(a[3])){l=(a[2]||" ")+rr[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(a[4])if(Yo.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=o+(l||"")+(u||""),Zr(e)}else e._isValid=!1}function jo(e,t,n,r,a,i){var o=[Vo(e),ti.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function Vo(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function zo(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Xo(e,t,n){if(e){var r=li.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return C(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function qo(e,t,n){if(e)return Wo[e];if(t)return 0;var r=parseInt(n,10),a=r%100,i=(r-a)/100;return i*60+a}function ci(e){var t=Go.exec(zo(e._i)),n;if(t){if(n=jo(t[4],t[3],t[2],t[5],t[6],t[7]),!Xo(t[1],n,e))return;e._a=n,e._tzm=qo(t[8],t[9],t[10]),e._d=sn.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),C(e).rfc2822=!0}else e._isValid=!1}function Zo(e){var t=Uo.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(fi(e),e._isValid===!1)delete e._isValid;else return;if(ci(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=je("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 Ft(e,t,n){return e!=null?e:t!=null?t:n}function Jo(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function qr(e){var t,n,r=[],a,i,o;if(!e._d){for(a=Jo(e),e._w&&e._a[nt]==null&&e._a[ct]==null&&Qo(e),e._dayOfYear!=null&&(o=Ft(e._a[ve],a[ve]),(e._dayOfYear>an(o)||e._dayOfYear===0)&&(C(e)._overflowDayOfYear=!0),n=sn(o,0,e._dayOfYear),e._a[ct]=n.getUTCMonth(),e._a[nt]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[me]===24&&e._a[Ze]===0&&e._a[mt]===0&&e._a[kt]===0&&(e._nextDay=!0,e._a[me]=0),e._d=(e._useUTC?sn:no).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[me]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==i&&(C(e).weekdayMismatch=!0)}}function Qo(e){var t,n,r,a,i,o,l,u,h;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,n=Ft(t.GG,e._a[ve],on(ae(),1,4).year),r=Ft(t.W,1),a=Ft(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,h=on(ae(),i,o),n=Ft(t.gg,e._a[ve],h.year),r=Ft(t.w,h.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),r<1||r>pt(n,i,o)?C(e)._overflowWeeks=!0:u!=null?C(e)._overflowWeekday=!0:(l=oi(n,r,a,i,o),e._a[ve]=l.year,e._dayOfYear=l.dayOfYear)}_.ISO_8601=function(){};_.RFC_2822=function(){};function Zr(e){if(e._f===_.ISO_8601){fi(e);return}if(e._f===_.RFC_2822){ci(e);return}e._a=[],C(e).empty=!0;var t=""+e._i,n,r,a,i,o,l=t.length,u=0,h,d;for(a=qa(e._f,e._locale).match(Fr)||[],d=a.length,n=0;n<d;n++)i=a[n],r=(t.match(Fs(i,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&C(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),u+=r.length),Ut[i]?(r?C(e).empty=!1:C(e).unusedTokens.push(i),Us(i,r,e)):e._strict&&!r&&C(e).unusedTokens.push(i);C(e).charsLeftOver=l-u,t.length>0&&C(e).unusedInput.push(t),e._a[me]<=12&&C(e).bigHour===!0&&e._a[me]>0&&(C(e).bigHour=void 0),C(e).parsedDateParts=e._a.slice(0),C(e).meridiem=e._meridiem,e._a[me]=Ko(e._locale,e._a[me],e._meridiem),h=C(e).era,h!==null&&(e._a[ve]=e._locale.erasConvertYear(h,e._a[ve])),qr(e),Xr(e)}function Ko(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function $o(e){var t,n,r,a,i,o,l=!1,u=e._f.length;if(u===0){C(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)i=0,o=!1,t=Lr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Zr(t),Ar(t)&&(o=!0),i+=C(t).charsLeftOver,i+=C(t).unusedTokens.length*10,C(t).score=i,l?i<r&&(r=i,n=t):(r==null||i<r||o)&&(r=i,n=t,o&&(l=!0));Tt(e,n||t)}function el(e){if(!e._d){var t=Yr(e._i),n=t.day===void 0?t.date:t.day;e._a=Va([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),qr(e)}}function tl(e){var t=new fn(Xr(mi(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function mi(e){var t=e._i,n=e._f;return e._locale=e._locale||yt(e._l),t===null||n===void 0&&t===""?An({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Qe(t)?new fn(Xr(t)):(dn(t)?e._d=t:Je(n)?$o(e):n?Zr(e):nl(e),Ar(e)||(e._d=null),e))}function nl(e){var t=e._i;ke(t)?e._d=new Date(_.now()):dn(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Zo(e):Je(t)?(e._a=Va(t.slice(0),function(n){return parseInt(n,10)}),qr(e)):Ot(t)?el(e):gt(t)?e._d=new Date(t):_.createFromInputFallback(e)}function pi(e,t,n,r,a){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ot(e)&&Nr(e)||Je(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=n,i._i=e,i._f=t,i._strict=r,tl(i)}function ae(e,t,n,r){return pi(e,t,n,r,!1)}var rl=je("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ae.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:An()}),al=je("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ae.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:An()});function _i(e,t){var n,r;if(t.length===1&&Je(t[0])&&(t=t[0]),!t.length)return ae();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function il(){var e=[].slice.call(arguments,0);return _i("isBefore",e)}function sl(){var e=[].slice.call(arguments,0);return _i("isAfter",e)}var ol=function(){return Date.now?Date.now():+new Date},tn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ll(e){var t,n=!1,r,a=tn.length;for(t in e)if(q(e,t)&&!(de.call(tn,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[tn[r]]){if(n)return!1;parseFloat(e[tn[r]])!==N(e[tn[r]])&&(n=!0)}return!0}function ul(){return this._isValid}function hl(){return Ke(NaN)}function Vn(e){var t=Yr(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,u=t.minute||0,h=t.second||0,d=t.millisecond||0;this._isValid=ll(t),this._milliseconds=+d+h*1e3+u*6e4+l*1e3*60*60,this._days=+o+i*7,this._months=+a+r*3+n*12,this._data={},this._locale=yt(),this._bubble()}function Sn(e){return e instanceof Vn}function gr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function dl(e,t,n){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<r;o++)N(e[o])!==N(t[o])&&i++;return i+a}function gi(e,t){S(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+rt(~~(n/60),2)+t+rt(~~n%60,2)})}gi("Z",":");gi("ZZ","");v("Z",Gn);v("ZZ",Gn);te(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Jr(Gn,e)});var fl=/([\+\-]|\d\d)/gi;function Jr(e,t){var n=(t||"").match(e),r,a,i;return n===null?null:(r=n[n.length-1]||[],a=(r+"").match(fl)||["-",0,0],i=+(a[1]*60)+N(a[2]),i===0?0:a[0]==="+"?i:-i)}function Qr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Qe(e)||dn(e)?e.valueOf():ae(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),_.updateOffset(n,!1),n):ae(e).local()}function br(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function cl(e,t,n){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Jr(Gn,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(a=br(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?vi(this,Ke(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:br(this)}function ml(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function pl(e){return this.utcOffset(0,e)}function _l(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(br(this),"m")),this}function gl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Jr(Ls,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function bl(e){return this.isValid()?(e=e?ae(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function yl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vl(){if(!ke(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Lr(e,this),e=mi(e),e._a?(t=e._isUTC?at(e._a):ae(e._a),this._isDSTShifted=this.isValid()&&dl(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wl(){return this.isValid()?!this._isUTC:!1}function Tl(){return this.isValid()?this._isUTC:!1}function bi(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Sl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ml=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ke(e,t){var n=e,r=null,a,i,o;return Sn(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:gt(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Sl.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:N(r[nt])*a,h:N(r[me])*a,m:N(r[Ze])*a,s:N(r[mt])*a,ms:N(gr(r[kt]*1e3))*a}):(r=Ml.exec(e))?(a=r[1]==="-"?-1:1,n={y:Pt(r[2],a),M:Pt(r[3],a),w:Pt(r[4],a),d:Pt(r[5],a),h:Pt(r[6],a),m:Pt(r[7],a),s:Pt(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=xl(ae(n.from),ae(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new Vn(n),Sn(e)&&q(e,"_locale")&&(i._locale=e._locale),Sn(e)&&q(e,"_isValid")&&(i._isValid=e._isValid),i}Ke.fn=Vn.prototype;Ke.invalid=hl;function Pt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function ua(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function xl(e,t){var n;return e.isValid()&&t.isValid()?(t=Qr(t,e),e.isBefore(t)?n=ua(e,t):(n=ua(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function yi(e,t){return function(n,r){var a,i;return r!==null&&!isNaN(+r)&&(Xa(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."),i=n,n=r,r=i),a=Ke(n,r),vi(this,a,e),this}}function vi(e,t,n,r){var a=t._milliseconds,i=gr(t._days),o=gr(t._months);e.isValid()&&(r=r==null?!0:r,o&&ri(e,Pn(e,"Month")+o*n),i&&Ja(e,"Date",Pn(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&_.updateOffset(e,i||o))}var El=yi(1,"add"),Dl=yi(-1,"subtract");function wi(e){return typeof e=="string"||e instanceof String}function Pl(e){return Qe(e)||dn(e)||wi(e)||gt(e)||Ol(e)||kl(e)||e===null||e===void 0}function kl(e){var t=Ot(e)&&!Nr(e),n=!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"],a,i,o=r.length;for(a=0;a<o;a+=1)i=r[a],n=n||q(e,i);return t&&n}function Ol(e){var t=Je(e),n=!1;return t&&(n=e.filter(function(r){return!gt(r)&&wi(e)}).length===0),t&&n}function Cl(e){var t=Ot(e)&&!Nr(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<r.length;a+=1)i=r[a],n=n||q(e,i);return t&&n}function Rl(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hl(e,t){arguments.length===1&&(arguments[0]?Pl(arguments[0])?(e=arguments[0],t=void 0):Cl(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||ae(),r=Qr(n,this).startOf("day"),a=_.calendarFormat(this,r)||"sameElse",i=t&&(it(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,ae(n)))}function Il(){return new fn(this)}function Nl(e,t){var n=Qe(e)?e:ae(e);return this.isValid()&&n.isValid()?(t=Ve(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Al(e,t){var n=Qe(e)?e:ae(e);return this.isValid()&&n.isValid()?(t=Ve(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Ll(e,t,n,r){var a=Qe(e)?e:ae(e),i=Qe(t)?t:ae(t);return this.isValid()&&a.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,n):!this.isBefore(a,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function Bl(e,t){var n=Qe(e)?e:ae(e),r;return this.isValid()&&n.isValid()?(t=Ve(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Fl(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Yl(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ul(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(r=Qr(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=Ve(t),t){case"year":i=Mn(this,r)/12;break;case"month":i=Mn(this,r);break;case"quarter":i=Mn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:Ge(i)}function Mn(e,t){if(e.date()<t.date())return-Mn(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),a,i;return t-r<0?(a=e.clone().add(n-1,"months"),i=(t-r)/(r-a)):(a=e.clone().add(n+1,"months"),i=(t-r)/(a-r)),-(n+i)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Gl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Wl(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Tn(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):it(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Tn(n,"Z")):Tn(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function jl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+a+i)}function Vl(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=Tn(this,e);return this.localeData().postformat(t)}function zl(e,t){return this.isValid()&&(Qe(e)&&e.isValid()||ae(e).isValid())?Ke({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Xl(e){return this.from(ae(),e)}function ql(e,t){return this.isValid()&&(Qe(e)&&e.isValid()||ae(e).isValid())?Ke({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Zl(e){return this.to(ae(),e)}function Ti(e){var t;return e===void 0?this._locale._abbr:(t=yt(e),t!=null&&(this._locale=t),this)}var Si=je("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 Mi(){return this._locale}var Cn=1e3,Gt=60*Cn,Rn=60*Gt,xi=(365*400+97)*24*Rn;function Wt(e,t){return(e%t+t)%t}function Ei(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-xi:new Date(e,t,n).valueOf()}function Di(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-xi:Date.UTC(e,t,n)}function Jl(e){var t,n;if(e=Ve(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Di:Ei,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Wt(t+(this._isUTC?0:this.utcOffset()*Gt),Rn);break;case"minute":t=this._d.valueOf(),t-=Wt(t,Gt);break;case"second":t=this._d.valueOf(),t-=Wt(t,Cn);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Ql(e){var t,n;if(e=Ve(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Di:Ei,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Rn-Wt(t+(this._isUTC?0:this.utcOffset()*Gt),Rn)-1;break;case"minute":t=this._d.valueOf(),t+=Gt-Wt(t,Gt)-1;break;case"second":t=this._d.valueOf(),t+=Cn-Wt(t,Cn)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Kl(){return this._d.valueOf()-(this._offset||0)*6e4}function $l(){return Math.floor(this.valueOf()/1e3)}function eu(){return new Date(this.valueOf())}function tu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function nu(){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 ru(){return this.isValid()?this.toISOString():null}function au(){return Ar(this)}function iu(){return Tt({},C(this))}function su(){return C(this).overflow}function ou(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}S("N",0,0,"eraAbbr");S("NN",0,0,"eraAbbr");S("NNN",0,0,"eraAbbr");S("NNNN",0,0,"eraName");S("NNNNN",0,0,"eraNarrow");S("y",["y",1],"yo","eraYear");S("y",["yy",2],0,"eraYear");S("y",["yyy",3],0,"eraYear");S("y",["yyyy",4],0,"eraYear");v("N",Kr);v("NN",Kr);v("NNN",Kr);v("NNNN",bu);v("NNNNN",yu);te(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?C(n).era=a:C(n).invalidEra=e});v("y",Jt);v("yy",Jt);v("yyy",Jt);v("yyyy",Jt);v("yo",vu);te(["y","yy","yyy","yyyy"],ve);te(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,a):t[ve]=parseInt(e,10)});function lu(e,t){var n,r,a,i=this._eras||yt("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":a=_(i[n].since).startOf("day"),i[n].since=a.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=_(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf();break}}return i}function uu(e,t,n){var r,a,i=this.eras(),o,l,u;for(e=e.toUpperCase(),r=0,a=i.length;r<a;++r)if(o=i[r].name.toUpperCase(),l=i[r].abbr.toUpperCase(),u=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[r];break;case"NNNN":if(o===e)return i[r];break;case"NNNNN":if(u===e)return i[r];break}else if([o,l,u].indexOf(e)>=0)return i[r]}function hu(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*n}function du(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function fu(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function cu(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function mu(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-_(a[e].since).year())*n+a[e].offset;return this.year()}function pu(e){return q(this,"_erasNameRegex")||$r.call(this),e?this._erasNameRegex:this._erasRegex}function _u(e){return q(this,"_erasAbbrRegex")||$r.call(this),e?this._erasAbbrRegex:this._erasRegex}function gu(e){return q(this,"_erasNarrowRegex")||$r.call(this),e?this._erasNarrowRegex:this._erasRegex}function Kr(e,t){return t.erasAbbrRegex(e)}function bu(e,t){return t.erasNameRegex(e)}function yu(e,t){return t.erasNarrowRegex(e)}function vu(e,t){return t._eraYearOrdinalRegex||Jt}function $r(){var e=[],t=[],n=[],r=[],a,i,o=this.eras();for(a=0,i=o.length;a<i;++a)t.push(Fe(o[a].name)),e.push(Fe(o[a].abbr)),n.push(Fe(o[a].narrow)),r.push(Fe(o[a].name)),r.push(Fe(o[a].abbr)),r.push(Fe(o[a].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}S(0,["gg",2],0,function(){return this.weekYear()%100});S(0,["GG",2],0,function(){return this.isoWeekYear()%100});function zn(e,t){S(0,[e,e.length],0,t)}zn("gggg","weekYear");zn("ggggg","weekYear");zn("GGGG","isoWeekYear");zn("GGGGG","isoWeekYear");we("weekYear","gg");we("isoWeekYear","GG");Te("weekYear",1);Te("isoWeekYear",1);v("G",Un);v("g",Un);v("GG",ie,Ye);v("gg",ie,Ye);v("GGGG",Gr,Ur);v("gggg",Gr,Ur);v("GGGGG",Yn,Bn);v("ggggg",Yn,Bn);mn(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=N(e)});mn(["gg","GG"],function(e,t,n,r){t[r]=_.parseTwoDigitYear(e)});function wu(e){return Pi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Tu(e){return Pi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Su(){return pt(this.year(),1,4)}function Mu(){return pt(this.isoWeekYear(),1,4)}function xu(){var e=this.localeData()._week;return pt(this.year(),e.dow,e.doy)}function Eu(){var e=this.localeData()._week;return pt(this.weekYear(),e.dow,e.doy)}function Pi(e,t,n,r,a){var i;return e==null?on(this,r,a).year:(i=pt(e,r,a),t>i&&(t=i),Du.call(this,e,t,n,r,a))}function Du(e,t,n,r,a){var i=oi(e,t,n,r,a),o=sn(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}S("Q",0,"Qo","quarter");we("quarter","Q");Te("quarter",7);v("Q",Qa);te("Q",function(e,t){t[ct]=(N(e)-1)*3});function Pu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}S("D",["DD",2],"Do","date");we("date","D");Te("date",9);v("D",ie);v("DD",ie,Ye);v("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});te(["D","DD"],nt);te("Do",function(e,t){t[nt]=N(e.match(ie)[0])});var ki=Zt("Date",!0);S("DDD",["DDDD",3],"DDDo","dayOfYear");we("dayOfYear","DDD");Te("dayOfYear",4);v("DDD",Fn);v("DDDD",Ka);te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=N(e)});function ku(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}S("m",["mm",2],0,"minute");we("minute","m");Te("minute",14);v("m",ie);v("mm",ie,Ye);te(["m","mm"],Ze);var Ou=Zt("Minutes",!1);S("s",["ss",2],0,"second");we("second","s");Te("second",15);v("s",ie);v("ss",ie,Ye);te(["s","ss"],mt);var Cu=Zt("Seconds",!1);S("S",0,0,function(){return~~(this.millisecond()/100)});S(0,["SS",2],0,function(){return~~(this.millisecond()/10)});S(0,["SSS",3],0,"millisecond");S(0,["SSSS",4],0,function(){return this.millisecond()*10});S(0,["SSSSS",5],0,function(){return this.millisecond()*100});S(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});S(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});S(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});S(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});we("millisecond","ms");Te("millisecond",16);v("S",Fn,Qa);v("SS",Fn,Ye);v("SSS",Fn,Ka);var St,Oi;for(St="SSSS";St.length<=9;St+="S")v(St,Jt);function Ru(e,t){t[kt]=N(("0."+e)*1e3)}for(St="S";St.length<=9;St+="S")te(St,Ru);Oi=Zt("Milliseconds",!1);S("z",0,0,"zoneAbbr");S("zz",0,0,"zoneName");function Hu(){return this._isUTC?"UTC":""}function Iu(){return this._isUTC?"Coordinated Universal Time":""}var p=fn.prototype;p.add=El;p.calendar=Hl;p.clone=Il;p.diff=Ul;p.endOf=Ql;p.format=Vl;p.from=zl;p.fromNow=Xl;p.to=ql;p.toNow=Zl;p.get=Ns;p.invalidAt=su;p.isAfter=Nl;p.isBefore=Al;p.isBetween=Ll;p.isSame=Bl;p.isSameOrAfter=Fl;p.isSameOrBefore=Yl;p.isValid=au;p.lang=Si;p.locale=Ti;p.localeData=Mi;p.max=al;p.min=rl;p.parsingFlags=iu;p.set=As;p.startOf=Jl;p.subtract=Dl;p.toArray=tu;p.toObject=nu;p.toDate=eu;p.toISOString=Wl;p.inspect=jl;typeof Symbol!="undefined"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});p.toJSON=ru;p.toString=Gl;p.unix=$l;p.valueOf=Kl;p.creationData=ou;p.eraName=du;p.eraNarrow=fu;p.eraAbbr=cu;p.eraYear=mu;p.year=si;p.isLeapYear=to;p.weekYear=wu;p.isoWeekYear=Tu;p.quarter=p.quarters=Pu;p.month=ai;p.daysInMonth=Ks;p.week=p.weeks=oo;p.isoWeek=p.isoWeeks=lo;p.weeksInYear=xu;p.weeksInWeekYear=Eu;p.isoWeeksInYear=Su;p.isoWeeksInISOWeekYear=Mu;p.date=ki;p.day=p.days=To;p.weekday=So;p.isoWeekday=Mo;p.dayOfYear=ku;p.hour=p.hours=Co;p.minute=p.minutes=Ou;p.second=p.seconds=Cu;p.millisecond=p.milliseconds=Oi;p.utcOffset=cl;p.utc=pl;p.local=_l;p.parseZone=gl;p.hasAlignedHourOffset=bl;p.isDST=yl;p.isLocal=wl;p.isUtcOffset=Tl;p.isUtc=bi;p.isUTC=bi;p.zoneAbbr=Hu;p.zoneName=Iu;p.dates=je("dates accessor is deprecated. Use date instead.",ki);p.months=je("months accessor is deprecated. Use month instead",ai);p.years=je("years accessor is deprecated. Use year instead",si);p.zone=je("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ml);p.isDSTShifted=je("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vl);function Nu(e){return ae(e*1e3)}function Au(){return ae.apply(null,arguments).parseZone()}function Ci(e){return e}var Z=Br.prototype;Z.calendar=ws;Z.longDateFormat=xs;Z.invalidDate=Ds;Z.ordinal=Os;Z.preparse=Ci;Z.postformat=Ci;Z.relativeTime=Rs;Z.pastFuture=Hs;Z.set=ys;Z.eras=lu;Z.erasParse=uu;Z.erasConvertYear=hu;Z.erasAbbrRegex=_u;Z.erasNameRegex=pu;Z.erasNarrowRegex=gu;Z.months=qs;Z.monthsShort=Zs;Z.monthsParse=Qs;Z.monthsRegex=eo;Z.monthsShortRegex=$s;Z.week=ro;Z.firstDayOfYear=so;Z.firstDayOfWeek=io;Z.weekdays=go;Z.weekdaysMin=yo;Z.weekdaysShort=bo;Z.weekdaysParse=wo;Z.weekdaysRegex=xo;Z.weekdaysShortRegex=Eo;Z.weekdaysMinRegex=Do;Z.isPM=ko;Z.meridiem=Ro;function Hn(e,t,n,r){var a=yt(),i=at().set(r,t);return a[n](i,e)}function Ri(e,t,n){if(gt(e)&&(t=e,e=void 0),e=e||"",t!=null)return Hn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Hn(e,r,n,"month");return a}function ea(e,t,n,r){typeof e=="boolean"?(gt(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,gt(t)&&(n=t,t=void 0),t=t||"");var a=yt(),i=e?a._week.dow:0,o,l=[];if(n!=null)return Hn(t,(n+i)%7,r,"day");for(o=0;o<7;o++)l[o]=Hn(t,(o+i)%7,r,"day");return l}function Lu(e,t){return Ri(e,t,"months")}function Bu(e,t){return Ri(e,t,"monthsShort")}function Fu(e,t,n){return ea(e,t,n,"weekdays")}function Yu(e,t,n){return ea(e,t,n,"weekdaysShort")}function Uu(e,t,n){return ea(e,t,n,"weekdaysMin")}xt("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,n=N(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});_.lang=je("moment.lang is deprecated. Use moment.locale instead.",xt);_.langData=je("moment.langData is deprecated. Use moment.localeData instead.",yt);var dt=Math.abs;function Gu(){var e=this._data;return this._milliseconds=dt(this._milliseconds),this._days=dt(this._days),this._months=dt(this._months),e.milliseconds=dt(e.milliseconds),e.seconds=dt(e.seconds),e.minutes=dt(e.minutes),e.hours=dt(e.hours),e.months=dt(e.months),e.years=dt(e.years),this}function Hi(e,t,n,r){var a=Ke(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Wu(e,t){return Hi(this,e,t,1)}function ju(e,t){return Hi(this,e,t,-1)}function ha(e){return e<0?Math.floor(e):Math.ceil(e)}function Vu(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,i,o,l,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=ha(yr(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=Ge(e/1e3),r.seconds=a%60,i=Ge(a/60),r.minutes=i%60,o=Ge(i/60),r.hours=o%24,t+=Ge(o/24),u=Ge(Ii(t)),n+=u,t-=ha(yr(u)),l=Ge(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Ii(e){return e*4800/146097}function yr(e){return e*146097/4800}function zu(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Ve(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Ii(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(yr(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 Xu(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+N(this._months/12)*31536e6:NaN}function vt(e){return function(){return this.as(e)}}var qu=vt("ms"),Zu=vt("s"),Ju=vt("m"),Qu=vt("h"),Ku=vt("d"),$u=vt("w"),eh=vt("M"),th=vt("Q"),nh=vt("y");function rh(){return Ke(this)}function ah(e){return e=Ve(e),this.isValid()?this[e+"s"]():NaN}function Ct(e){return function(){return this.isValid()?this._data[e]:NaN}}var ih=Ct("milliseconds"),sh=Ct("seconds"),oh=Ct("minutes"),lh=Ct("hours"),uh=Ct("days"),hh=Ct("months"),dh=Ct("years");function fh(){return Ge(this.days()/7)}var ft=Math.round,Yt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ch(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function mh(e,t,n,r){var a=Ke(e).abs(),i=ft(a.as("s")),o=ft(a.as("m")),l=ft(a.as("h")),u=ft(a.as("d")),h=ft(a.as("M")),d=ft(a.as("w")),g=ft(a.as("y")),m=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||l<=1&&["h"]||l<n.h&&["hh",l]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(m=m||d<=1&&["w"]||d<n.w&&["ww",d]),m=m||h<=1&&["M"]||h<n.M&&["MM",h]||g<=1&&["y"]||["yy",g],m[2]=t,m[3]=+e>0,m[4]=r,ch.apply(null,m)}function ph(e){return e===void 0?ft:typeof e=="function"?(ft=e,!0):!1}function _h(e,t){return Yt[e]===void 0?!1:t===void 0?Yt[e]:(Yt[e]=t,e==="s"&&(Yt.ss=t-1),!0)}function gh(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Yt,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Yt,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),i=mh(this,!n,r,a),n&&(i=a.pastFuture(+this,i)),a.postformat(i)}var ar=Math.abs;function Lt(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e=ar(this._milliseconds)/1e3,t=ar(this._days),n=ar(this._months),r,a,i,o,l=this.asSeconds(),u,h,d,g;return l?(r=Ge(e/60),a=Ge(r/60),e%=60,r%=60,i=Ge(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",h=Lt(this._months)!==Lt(l)?"-":"",d=Lt(this._days)!==Lt(l)?"-":"",g=Lt(this._milliseconds)!==Lt(l)?"-":"",u+"P"+(i?h+i+"Y":"")+(n?h+n+"M":"")+(t?d+t+"D":"")+(a||r||e?"T":"")+(a?g+a+"H":"")+(r?g+r+"M":"")+(e?g+o+"S":"")):"P0D"}var G=Vn.prototype;G.isValid=ul;G.abs=Gu;G.add=Wu;G.subtract=ju;G.as=zu;G.asMilliseconds=qu;G.asSeconds=Zu;G.asMinutes=Ju;G.asHours=Qu;G.asDays=Ku;G.asWeeks=$u;G.asMonths=eh;G.asQuarters=th;G.asYears=nh;G.valueOf=Xu;G._bubble=Vu;G.clone=rh;G.get=ah;G.milliseconds=ih;G.seconds=sh;G.minutes=oh;G.hours=lh;G.days=uh;G.weeks=fh;G.months=hh;G.years=dh;G.humanize=gh;G.toISOString=Xn;G.toString=Xn;G.toJSON=Xn;G.locale=Ti;G.localeData=Mi;G.toIsoString=je("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn);G.lang=Si;S("X",0,0,"unix");S("x",0,0,"valueOf");v("x",Un);v("X",Bs);te("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});te("x",function(e,t,n){n._d=new Date(N(e))});//! moment.js
10
+ _.version="2.29.4";gs(ae);_.fn=p;_.min=il;_.max=sl;_.now=ol;_.utc=at;_.unix=Nu;_.months=Lu;_.isDate=dn;_.locale=xt;_.invalid=An;_.duration=Ke;_.isMoment=Qe;_.weekdays=Fu;_.parseZone=Au;_.localeData=yt;_.isDuration=Sn;_.monthsShort=Bu;_.weekdaysMin=Uu;_.defineLocale=zr;_.updateLocale=Ao;_.locales=Lo;_.weekdaysShort=Yu;_.normalizeUnits=Ve;_.relativeTimeRounding=ph;_.relativeTimeThreshold=_h;_.calendarFormat=Rl;_.prototype=p;_.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"};/*! *****************************************************************************
11
+ Copyright (c) Microsoft Corporation.
12
+
13
+ Permission to use, copy, modify, and/or distribute this software for any
14
+ purpose with or without fee is hereby granted.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
17
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
19
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
20
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
21
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22
+ PERFORMANCE OF THIS SOFTWARE.
23
+ ***************************************************************************** */var vr=function(e,t){return vr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},vr(e,t)};function wt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vr(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var X=function(){return X=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},X.apply(this,arguments)};function bh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function wr(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function jt(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||t)}function _t(e){return typeof e=="function"}function Ni(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var ir=Ni(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
24
+ `+n.map(function(r,a){return a+1+") "+r.toString()}).join(`
25
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Sr(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var qn=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,a,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=wr(o),u=l.next();!u.done;u=l.next()){var h=u.value;h.remove(this)}}catch(k){t={error:k}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(_t(d))try{d()}catch(k){i=k instanceof ir?k.errors:[k]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var m=wr(g),x=m.next();!x.done;x=m.next()){var B=x.value;try{da(B)}catch(k){i=i!=null?i:[],k instanceof ir?i=jt(jt([],Tr(i)),Tr(k.errors)):i.push(k)}}}catch(k){r={error:k}}finally{try{x&&!x.done&&(a=m.return)&&a.call(m)}finally{if(r)throw r.error}}}if(i)throw new ir(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)da(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Sr(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Sr(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ai=qn.EMPTY;function Li(e){return e instanceof qn||e&&"closed"in e&&_t(e.remove)&&_t(e.add)&&_t(e.unsubscribe)}function da(e){_t(e)?e():e.unsubscribe()}var Bi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},yh={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,jt([e,t],Tr(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function vh(e){yh.setTimeout(function(){throw e})}function fa(){}function xn(e){e()}var Fi=function(e){wt(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Li(n)&&n.add(r)):r.destination=Mh,r}return t.create=function(n,r,a){return new Mr(n,r,a)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(qn),wh=Function.prototype.bind;function sr(e,t){return wh.call(e,t)}var Th=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){vn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){vn(r)}else vn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){vn(n)}},e}(),Mr=function(e){wt(t,e);function t(n,r,a){var i=e.call(this)||this,o;if(_t(n)||!n)o={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:a!=null?a:void 0};else{var l;i&&Bi.useDeprecatedNextContext?(l=Object.create(n),l.unsubscribe=function(){return i.unsubscribe()},o={next:n.next&&sr(n.next,l),error:n.error&&sr(n.error,l),complete:n.complete&&sr(n.complete,l)}):o=n}return i.destination=new Th(o),i}return t}(Fi);function vn(e){vh(e)}function Sh(e){throw e}var Mh={closed:!0,next:fa,error:Sh,complete:fa},xh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Eh(e){return e}function Dh(e){return e.length===0?Eh:e.length===1?e[0]:function(n){return e.reduce(function(r,a){return a(r)},n)}}var ca=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var a=this,i=kh(t)?t:new Mr(t,n,r);return xn(function(){var o=a,l=o.operator,u=o.source;i.add(l?l.call(i,u):u?a._subscribe(i):a._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=ma(n),new n(function(a,i){var o=new Mr({next:function(l){try{t(l)}catch(u){i(u),o.unsubscribe()}},error:i,complete:a});r.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[xh]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Dh(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=ma(t),new t(function(r,a){var i;n.subscribe(function(o){return i=o},function(o){return a(o)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function ma(e){var t;return(t=e!=null?e:Bi.Promise)!==null&&t!==void 0?t:Promise}function Ph(e){return e&&_t(e.next)&&_t(e.error)&&_t(e.complete)}function kh(e){return e&&e instanceof Fi||Ph(e)&&Li(e)}var Oh=Ni(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Yi=function(e){wt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new pa(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Oh},t.prototype.next=function(n){var r=this;xn(function(){var a,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=wr(r.currentObservers),l=o.next();!l.done;l=o.next()){var u=l.value;u.next(n)}}catch(h){a={error:h}}finally{try{l&&!l.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}}})},t.prototype.error=function(n){var r=this;xn(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var a=r.observers;a.length;)a.shift().error(n)}})},t.prototype.complete=function(){var n=this;xn(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,a=this,i=a.hasError,o=a.isStopped,l=a.observers;return i||o?Ai:(this.currentObservers=null,l.push(n),new qn(function(){r.currentObservers=null,Sr(l,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,a=r.hasError,i=r.thrownError,o=r.isStopped;a?n.error(i):o&&n.complete()},t.prototype.asObservable=function(){var n=new ca;return n.source=this,n},t.create=function(n,r){return new pa(n,r)},t}(ca),pa=function(e){wt(t,e);function t(n,r){var a=e.call(this)||this;return a.destination=n,a.source=r,a}return t.prototype.next=function(n){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.next)===null||a===void 0||a.call(r,n)},t.prototype.error=function(n){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.error)===null||a===void 0||a.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,a;return(a=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&a!==void 0?a:Ai},t}(Yi),Ui={now:function(){return(Ui.delegate||Date).now()},delegate:void 0},Ch=function(e){wt(t,e);function t(n,r,a){n===void 0&&(n=1/0),r===void 0&&(r=1/0),a===void 0&&(a=Ui);var i=e.call(this)||this;return i._bufferSize=n,i._windowTime=r,i._timestampProvider=a,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,n),i._windowTime=Math.max(1,r),i}return t.prototype.next=function(n){var r=this,a=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,l=r._timestampProvider,u=r._windowTime;a||(i.push(n),!o&&i.push(l.now()+u)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),a=this,i=a._infiniteTimeWindow,o=a._buffer,l=o.slice(),u=0;u<l.length&&!n.closed;u+=i?1:2)n.next(l[u]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,a=n._timestampProvider,i=n._buffer,o=n._infiniteTimeWindow,l=(o?1:2)*r;if(r<1/0&&l<i.length&&i.splice(0,i.length-l),!o){for(var u=a.now(),h=0,d=1;d<i.length&&i[d]<=u;d+=2)h=d;h&&i.splice(0,h+1)}},t}(Yi);const _a=[],ga={},Rh=(e,t=0)=>{if(_a.indexOf(e)==-1){const n=new Ch(t);ga[e]=n,_a.push(e)}return ga[e]},Bt=[];function Hh(e,t){return{subscribe:Zn(e,t).subscribe}}function Zn(e,t=s.noop){let n;const r=new Set;function a(l){if(s.safe_not_equal(e,l)&&(e=l,n)){const u=!Bt.length;for(const h of r)h[1](),Bt.push(h,e);if(u){for(let h=0;h<Bt.length;h+=2)Bt[h][0](Bt[h+1]);Bt.length=0}}}function i(l){a(l(e))}function o(l,u=s.noop){const h=[l,u];return r.add(h),r.size===1&&(n=t(a,i)||s.noop),l(e),()=>{r.delete(h),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:o}}function Qt(e,t,n){const r=!Array.isArray(e),a=r?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return Hh(n,(o,l)=>{let u=!1;const h=[];let d=0,g=s.noop;const m=()=>{if(d)return;g();const B=t(r?h[0]:h,o,l);i?o(B):g=s.is_function(B)?B:s.noop},x=a.map((B,k)=>s.subscribe(B,W=>{h[k]=W,d&=~(1<<k),u&&m()},()=>{d|=1<<k}));return u=!0,m(),function(){s.run_all(x),g(),u=!1}})}var Ih=function(t){return Nh(t)&&!Ah(t)};function Nh(e){return!!e&&typeof e=="object"}function Ah(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Fh(e)}var Lh=typeof Symbol=="function"&&Symbol.for,Bh=Lh?Symbol.for("react.element"):60103;function Fh(e){return e.$$typeof===Bh}function Yh(e){return Array.isArray(e)?[]:{}}function un(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Vt(Yh(e),e,t):e}function Uh(e,t,n){return e.concat(t).map(function(r){return un(r,n)})}function Gh(e,t){if(!t.customMerge)return Vt;var n=t.customMerge(e);return typeof n=="function"?n:Vt}function Wh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ba(e){return Object.keys(e).concat(Wh(e))}function Gi(e,t){try{return t in e}catch(n){return!1}}function jh(e,t){return Gi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Vh(e,t,n){var r={};return n.isMergeableObject(e)&&ba(e).forEach(function(a){r[a]=un(e[a],n)}),ba(t).forEach(function(a){jh(e,a)||(Gi(e,a)&&n.isMergeableObject(t[a])?r[a]=Gh(a,n)(e[a],t[a],n):r[a]=un(t[a],n))}),r}function Vt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Uh,n.isMergeableObject=n.isMergeableObject||Ih,n.cloneUnlessOtherwiseSpecified=un;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):Vh(e,t,n):un(t,n)}Vt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return Vt(r,a,n)},{})};var zh=Vt,Xh=zh;const qh=ps(Xh);function or(e,t){var n=t&&t.cache?t.cache:ed,r=t&&t.serializer?t.serializer:$h,a=t&&t.strategy?t.strategy:Jh;return a(e,{cache:n,serializer:r})}function Zh(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Wi(e,t,n,r){var a=Zh(r)?r:n(r),i=t.get(a);return typeof i=="undefined"&&(i=e.call(this,r),t.set(a,i)),i}function ji(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),i=t.get(a);return typeof i=="undefined"&&(i=e.apply(this,r),t.set(a,i)),i}function ta(e,t,n,r,a){return n.bind(t,e,r,a)}function Jh(e,t){var n=e.length===1?Wi:ji;return ta(e,this,n,t.cache.create(),t.serializer)}function Qh(e,t){return ta(e,this,ji,t.cache.create(),t.serializer)}function Kh(e,t){return ta(e,this,Wi,t.cache.create(),t.serializer)}var $h=function(){return JSON.stringify(arguments)};function na(){this.cache=Object.create(null)}na.prototype.get=function(e){return this.cache[e]};na.prototype.set=function(e,t){this.cache[e]=t};var ed={create:function(){return new na}},lr={variadic:Qh,monadic:Kh},F;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(F||(F={}));var oe;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(oe||(oe={}));var zt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(zt||(zt={}));function ya(e){return e.type===oe.literal}function td(e){return e.type===oe.argument}function Vi(e){return e.type===oe.number}function zi(e){return e.type===oe.date}function Xi(e){return e.type===oe.time}function qi(e){return e.type===oe.select}function Zi(e){return e.type===oe.plural}function nd(e){return e.type===oe.pound}function Ji(e){return e.type===oe.tag}function Qi(e){return!!(e&&typeof e=="object"&&e.type===zt.number)}function xr(e){return!!(e&&typeof e=="object"&&e.type===zt.dateTime)}var Ki=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,rd=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ad(e){var t={};return e.replace(rd,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var id=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function sd(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(id).filter(function(m){return m.length>0}),n=[],r=0,a=t;r<a.length;r++){var i=a[r],o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var l=o[0],u=o.slice(1),h=0,d=u;h<d.length;h++){var g=d[h];if(g.length===0)throw new Error("Invalid number skeleton")}n.push({stem:l,options:u})}return n}function od(e){return e.replace(/^(.*?)-/,"")}var va=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,$i=/^(@+)?(\+|#+)?[rs]?$/g,ld=/(\*)(0+)|(#+)(0+)|(0+)/g,es=/^(0+)$/;function wa(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace($i,function(n,r,a){return typeof a!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):a==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof a=="string"?a.length:0)),""}),t}function ts(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ud(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!es.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ta(e){var t={},n=ts(e);return n||t}function hd(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=od(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=X(X(X({},t),{notation:"scientific"}),a.options.reduce(function(u,h){return X(X({},u),Ta(h))},{}));continue;case"engineering":t=X(X(X({},t),{notation:"engineering"}),a.options.reduce(function(u,h){return X(X({},u),Ta(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(ld,function(u,h,d,g,m,x){if(h)t.minimumIntegerDigits=d.length;else{if(g&&m)throw new Error("We currently do not support maximum integer digits");if(x)throw new Error("We currently do not support exact integer digits")}return""});continue}if(es.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(va.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(va,function(u,h,d,g,m,x){return d==="*"?t.minimumFractionDigits=h.length:g&&g[0]==="#"?t.maximumFractionDigits=g.length:m&&x?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+x.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var i=a.options[0];i==="w"?t=X(X({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=X(X({},t),wa(i)));continue}if($i.test(a.stem)){t=X(X({},t),wa(a.stem));continue}var o=ts(a.stem);o&&(t=X(X({},t),o));var l=ud(a.stem);l&&(t=X(X({},t),l))}return t}var wn={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function dd(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if(a==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===a;)i++,r++;var o=1+(i&1),l=i<2?1:3+(i>>1),u="a",h=fd(t);for((h=="H"||h=="k")&&(l=0);l-- >0;)n+=u;for(;o-- >0;)n=h+n}else a==="J"?n+="H":n+=a}return n}function fd(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var a=wn[r||""]||wn[n||""]||wn["".concat(n,"-001")]||wn["001"];return a[0]}var ur,cd=new RegExp("^".concat(Ki.source,"*")),md=new RegExp("".concat(Ki.source,"*$"));function U(e,t){return{start:e,end:t}}var pd=!!String.prototype.startsWith&&"_a".startsWith("a",1),_d=!!String.fromCodePoint,gd=!!Object.fromEntries,bd=!!String.prototype.codePointAt,yd=!!String.prototype.trimStart,vd=!!String.prototype.trimEnd,wd=!!Number.isSafeInteger,Td=wd?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Er=!0;try{var Sd=rs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Er=((ur=Sd.exec("a"))===null||ur===void 0?void 0:ur[0])==="a"}catch(e){Er=!1}var Sa=pd?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Dr=_d?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",a=t.length,i=0,o;a>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},Ma=gd?Object.fromEntries:function(t){for(var n={},r=0,a=t;r<a.length;r++){var i=a[r],o=i[0],l=i[1];n[o]=l}return n},ns=bd?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var a=t.charCodeAt(n),i;return a<55296||a>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},Md=yd?function(t){return t.trimStart()}:function(t){return t.replace(cd,"")},xd=vd?function(t){return t.trimEnd()}:function(t){return t.replace(md,"")};function rs(e,t){return new RegExp(e,t)}var Pr;if(Er){var xa=rs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pr=function(t,n){var r;xa.lastIndex=n;var a=xa.exec(t);return(r=a[1])!==null&&r!==void 0?r:""}}else Pr=function(t,n){for(var r=[];;){var a=ns(t,n);if(a===void 0||as(a)||kd(a))break;r.push(a),n+=a>=65536?2:1}return Dr.apply(void 0,r)};var Ed=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,r);if(o.err)return o;a.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),a.push({type:oe.pound,location:U(l,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(F.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&kr(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;a.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;a.push(o.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:oe.literal,value:"<".concat(a,"/>"),location:U(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var o=i.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!kr(this.char()))return this.error(F.INVALID_TAG,U(l,this.clonePosition()));var u=this.clonePosition(),h=this.parseTagName();return a!==h?this.error(F.UNMATCHED_CLOSING_TAG,U(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:oe.tag,value:a,children:o,location:U(r,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,U(l,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,U(r,this.clonePosition()))}else return this.error(F.INVALID_TAG,U(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Pd(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var i=this.tryParseQuote(n);if(i){a+=i;continue}var o=this.tryParseUnquoted(t,n);if(o){a+=o;continue}var l=this.tryParseLeftAngleBracket();if(l){a+=l;continue}break}var u=U(r,this.clonePosition());return{val:{type:oe.literal,value:a,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Dd(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Dr.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Dr(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,U(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(F.MALFORMED_ARGUMENT,U(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:oe.argument,value:a,location:U(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(F.MALFORMED_ARGUMENT,U(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Pr(this.message,n),a=n+r.length;this.bumpTo(a);var i=this.clonePosition(),o=U(t,i);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,a){var i,o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(l){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,U(o,u));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var m=xd(g.val);if(m.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));var x=U(d,this.clonePosition());h={style:m,styleLocation:x}}var B=this.tryParseArgumentClose(a);if(B.err)return B;var k=U(a,this.clonePosition());if(h&&Sa(h==null?void 0:h.style,"::",0)){var W=Md(h.style.slice(2));if(l==="number"){var g=this.parseNumberSkeletonFromString(W,h.styleLocation);return g.err?g:{val:{type:oe.number,value:r,location:k,style:g.val},err:null}}else{if(W.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,k);var fe=W;this.locale&&(fe=dd(W,this.locale));var m={type:zt.dateTime,pattern:fe,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?ad(fe):{}},J=l==="date"?oe.date:oe.time;return{val:{type:J,value:r,location:k,style:m},err:null}}}return{val:{type:l==="number"?oe.number:l==="date"?oe.date:oe.time,value:r,location:k,style:(i=h==null?void 0:h.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,U(R,X({},R)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),T=0;if(l!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),I=this.parseIdentifierIfPossible(),T=g.val}var j=this.tryParsePluralOrSelectOptions(t,l,n,I);if(j.err)return j;var B=this.tryParseArgumentClose(a);if(B.err)return B;var Oe=U(a,this.clonePosition());return l==="select"?{val:{type:oe.select,value:r,options:Ma(j.val),location:Oe},err:null}:{val:{type:oe.plural,value:r,options:Ma(j.val),offset:T,pluralType:l==="plural"?"cardinal":"ordinal",location:Oe},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,U(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,U(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=sd(t)}catch(a){return this.error(F.INVALID_NUMBER_SKELETON,n)}return{val:{type:zt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?hd(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var i,o=!1,l=[],u=new Set,h=a.value,d=a.location;;){if(h.length===0){var g=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;d=U(g,this.clonePosition()),h=this.message.slice(g.offset,this.offset())}else break}if(u.has(h))return this.error(n==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(o=!0),this.bumpSpace();var x=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var B=this.parseMessage(t+1,n,r);if(B.err)return B;var k=this.tryParseArgumentClose(x);if(k.err)return k;l.push([h,{value:B.val,location:U(x,this.clonePosition())}]),u.add(h),this.bumpSpace(),i=this.parseIdentifierIfPossible(),h=i.value,d=i.location}return l.length===0?this.error(n==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(F.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)i=!0,o=o*10+(l-48),this.bump();else break}var u=U(a,this.clonePosition());return i?(o*=r,Td(o)?{val:o,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=ns(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Sa(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&as(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function kr(e){return e>=97&&e<=122||e>=65&&e<=90}function Dd(e){return kr(e)||e===47}function Pd(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function as(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function kd(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Or(e){e.forEach(function(t){if(delete t.location,qi(t)||Zi(t))for(var n in t.options)delete t.options[n].location,Or(t.options[n].value);else Vi(t)&&Qi(t.style)||(zi(t)||Xi(t))&&xr(t.style)?delete t.style.location:Ji(t)&&Or(t.children)})}function Od(e,t){t===void 0&&(t={}),t=X({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ed(e,t).parse();if(n.err){var r=SyntaxError(F[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Or(n.val),n.val}var Xt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Xt||(Xt={}));var Jn=function(e){wt(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ea=function(e){wt(t,e);function t(n,r,a,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Xt.INVALID_VALUE,i)||this}return t}(Jn),Cd=function(e){wt(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Xt.INVALID_VALUE,a)||this}return t}(Jn),Rd=function(e){wt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Xt.MISSING_VALUE,r)||this}return t}(Jn),Ee;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ee||(Ee={}));function Hd(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Ee.literal||n.type!==Ee.literal?t.push(n):r.value+=n.value,t},[])}function Id(e){return typeof e=="function"}function En(e,t,n,r,a,i,o){if(e.length===1&&ya(e[0]))return[{type:Ee.literal,value:e[0].value}];for(var l=[],u=0,h=e;u<h.length;u++){var d=h[u];if(ya(d)){l.push({type:Ee.literal,value:d.value});continue}if(nd(d)){typeof i=="number"&&l.push({type:Ee.literal,value:n.getNumberFormat(t).format(i)});continue}var g=d.value;if(!(a&&g in a))throw new Rd(g,o);var m=a[g];if(td(d)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),l.push({type:typeof m=="string"?Ee.literal:Ee.object,value:m});continue}if(zi(d)){var x=typeof d.style=="string"?r.date[d.style]:xr(d.style)?d.style.parsedOptions:void 0;l.push({type:Ee.literal,value:n.getDateTimeFormat(t,x).format(m)});continue}if(Xi(d)){var x=typeof d.style=="string"?r.time[d.style]:xr(d.style)?d.style.parsedOptions:r.time.medium;l.push({type:Ee.literal,value:n.getDateTimeFormat(t,x).format(m)});continue}if(Vi(d)){var x=typeof d.style=="string"?r.number[d.style]:Qi(d.style)?d.style.parsedOptions:void 0;x&&x.scale&&(m=m*(x.scale||1)),l.push({type:Ee.literal,value:n.getNumberFormat(t,x).format(m)});continue}if(Ji(d)){var B=d.children,k=d.value,W=a[k];if(!Id(W))throw new Cd(k,"function",o);var fe=En(B,t,n,r,a,i),J=W(fe.map(function(T){return T.value}));Array.isArray(J)||(J=[J]),l.push.apply(l,J.map(function(T){return{type:typeof T=="string"?Ee.literal:Ee.object,value:T}}))}if(qi(d)){var R=d.options[m]||d.options.other;if(!R)throw new Ea(d.value,m,Object.keys(d.options),o);l.push.apply(l,En(R.value,t,n,r,a));continue}if(Zi(d)){var R=d.options["=".concat(m)];if(!R){if(!Intl.PluralRules)throw new Jn(`Intl.PluralRules is not available in this environment.
26
+ Try polyfilling it using "@formatjs/intl-pluralrules"
27
+ `,Xt.MISSING_INTL_API,o);var I=n.getPluralRules(t,{type:d.pluralType}).select(m-(d.offset||0));R=d.options[I]||d.options.other}if(!R)throw new Ea(d.value,m,Object.keys(d.options),o);l.push.apply(l,En(R.value,t,n,r,a,m-(d.offset||0)));continue}}return Hd(l)}function Nd(e,t){return t?X(X(X({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=X(X({},e[r]),t[r]||{}),n},{})):e}function Ad(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Nd(e[r],t[r]),n},X({},e)):e}function hr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Ld(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:or(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,jt([void 0],n,!1)))},{cache:hr(e.number),strategy:lr.variadic}),getDateTimeFormat:or(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,jt([void 0],n,!1)))},{cache:hr(e.dateTime),strategy:lr.variadic}),getPluralRules:or(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,jt([void 0],n,!1)))},{cache:hr(e.pluralRules),strategy:lr.variadic})}}var Bd=function(){function e(t,n,r,a){n===void 0&&(n=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var h=i.formatToParts(u);if(h.length===1)return h[0].value;var d=h.reduce(function(g,m){return!g.length||m.type!==Ee.literal||typeof g[g.length-1]!="string"?g.push(m.value):g[g.length-1]+=m.value,g},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(u){return En(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return{locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=a||{};o.formatters;var l=bh(o,["formatters"]);this.ast=e.__parse(t,X(X({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ad(e.formats,r),this.formatters=a&&a.formatters||Ld(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Od,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Fd(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let a=0;a<n.length;a++)if(typeof r=="object"){if(a>0){const i=n.slice(a,n.length).join(".");if(i in r){r=r[i];break}}r=r[n[a]]}else r=void 0;return r}const Mt={},Yd=(e,t,n)=>n&&(t in Mt||(Mt[t]={}),e in Mt[t]||(Mt[t][e]=n),n),is=(e,t)=>{if(t==null)return;if(t in Mt&&e in Mt[t])return Mt[t][e];const n=Qn(t);for(let r=0;r<n.length;r++){const a=n[r],i=Gd(a,e);if(i)return Yd(e,t,i)}};let ra;const Rt=Zn({});function Ud(e){return ra[e]||null}function ss(e){return e in ra}function Gd(e,t){if(!ss(e))return null;const n=Ud(e);return Fd(n,t)}function Wd(e){if(e==null)return;const t=Qn(e);for(let n=0;n<t.length;n++){const r=t[n];if(ss(r))return r}}function aa(e,...t){delete Mt[e],Rt.update(n=>(n[e]=qh.all([n[e]||{},...t]),n))}Qt([Rt],([e])=>Object.keys(e));Rt.subscribe(e=>ra=e);const Dn={};function jd(e,t){Dn[e].delete(t),Dn[e].size===0&&delete Dn[e]}function os(e){return Dn[e]}function Vd(e){return Qn(e).map(t=>{const n=os(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Cr(e){return e==null?!1:Qn(e).some(t=>{var n;return(n=os(t))==null?void 0:n.size})}function zd(e,t){return Promise.all(t.map(r=>(jd(e,r),r().then(a=>a.default||a)))).then(r=>aa(e,...r))}const nn={};function ls(e){if(!Cr(e))return e in nn?nn[e]:Promise.resolve();const t=Vd(e);return nn[e]=Promise.all(t.map(([n,r])=>zd(n,r))).then(()=>{if(Cr(e))return ls(e);delete nn[e]}),nn[e]}const Xd={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},qd={fallbackLocale:null,loadingDelay:200,formats:Xd,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Zd=qd;function qt(){return Zd}const dr=Zn(!1);var Jd=Object.defineProperty,Qd=Object.defineProperties,Kd=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertySymbols,$d=Object.prototype.hasOwnProperty,ef=Object.prototype.propertyIsEnumerable,Pa=(e,t,n)=>t in e?Jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tf=(e,t)=>{for(var n in t||(t={}))$d.call(t,n)&&Pa(e,n,t[n]);if(Da)for(var n of Da(t))ef.call(t,n)&&Pa(e,n,t[n]);return e},nf=(e,t)=>Qd(e,Kd(t));let Rr;const In=Zn(null);function ka(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function Qn(e,t=qt().fallbackLocale){const n=ka(e);return t?[...new Set([...n,...ka(t)])]:n}function Ht(){return Rr!=null?Rr:void 0}In.subscribe(e=>{Rr=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const rf=e=>{if(e&&Wd(e)&&Cr(e)){const{loadingDelay:t}=qt();let n;return typeof window!="undefined"&&Ht()!=null&&t?n=window.setTimeout(()=>dr.set(!0),t):dr.set(!0),ls(e).then(()=>{In.set(e)}).finally(()=>{clearTimeout(n),dr.set(!1)})}return In.set(e)},bt=nf(tf({},In),{set:rf}),Kn=e=>{const t=Object.create(null);return r=>{const a=JSON.stringify(r);return a in t?t[a]:t[a]=e(r)}};var af=Object.defineProperty,Nn=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,Oa=(e,t,n)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ia=(e,t)=>{for(var n in t||(t={}))us.call(t,n)&&Oa(e,n,t[n]);if(Nn)for(var n of Nn(t))hs.call(t,n)&&Oa(e,n,t[n]);return e},Kt=(e,t)=>{var n={};for(var r in e)us.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Nn)for(var r of Nn(e))t.indexOf(r)<0&&hs.call(e,r)&&(n[r]=e[r]);return n};const hn=(e,t)=>{const{formats:n}=qt();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},sf=Kn(e=>{var t=e,{locale:n,format:r}=t,a=Kt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(a=hn("number",r)),new Intl.NumberFormat(n,a)}),of=Kn(e=>{var t=e,{locale:n,format:r}=t,a=Kt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?a=hn("date",r):Object.keys(a).length===0&&(a=hn("date","short")),new Intl.DateTimeFormat(n,a)}),lf=Kn(e=>{var t=e,{locale:n,format:r}=t,a=Kt(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?a=hn("time",r):Object.keys(a).length===0&&(a=hn("time","short")),new Intl.DateTimeFormat(n,a)}),uf=(e={})=>{var t=e,{locale:n=Ht()}=t,r=Kt(t,["locale"]);return sf(ia({locale:n},r))},hf=(e={})=>{var t=e,{locale:n=Ht()}=t,r=Kt(t,["locale"]);return of(ia({locale:n},r))},df=(e={})=>{var t=e,{locale:n=Ht()}=t,r=Kt(t,["locale"]);return lf(ia({locale:n},r))},ff=Kn((e,t=Ht())=>new Bd(e,t,qt().formats,{ignoreTag:qt().ignoreTag})),cf=(e,t={})=>{var n,r,a,i;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:u=Ht(),default:h}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=is(e,u);if(!d)d=(i=(a=(r=(n=qt()).handleMissingMessage)==null?void 0:r.call(n,{locale:u,id:e,defaultValue:h}))!=null?a:h)!=null?i:e;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!l)return d;let g=d;try{g=ff(d,u).format(l)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return g},mf=(e,t)=>df(t).format(e),pf=(e,t)=>hf(t).format(e),_f=(e,t)=>uf(t).format(e),gf=(e,t=Ht())=>is(e,t),ds=Qt([bt,Rt],()=>cf);Qt([bt],()=>mf);Qt([bt],()=>pf);Qt([bt],()=>_f);Qt([bt,Rt],()=>gf);window.emWidgets={topic:Rh};const We=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),Hr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function bf({withLocale:e,translations:t}){bt.subscribe(n=>{n==null&&(Rt.set(t),bt.set(e))})}function fr(e,t){aa(e,t)}function Ca(e){bt.set(e)}const Ra={en:{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",mostRounds:"MostRounds",activePeriod:"From {startdate} Till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"Leaderboard",rules:"Rules",games:"Games",unlimited:"unlimited",casino:"CASINO",sports:"SPORTSBOOK"},hr:{loading:"Učitavanje, molimo pričekajte ...",back:"Natrag",previous:"Prethodno",next:"Sljedeće",scheduled:"Planirano",ongoing:"U tijeku",finished:"Završeno",mostRounds:"Najviše krugova",activePeriod:"Od {startdate} do {enddate}",forwardCasino:"Pogledajte uključene casino igre",forwardSports:"Pogledajte uključene sportove",forwardMyTournaments:"Pogledajte Moje turnire",leaderBoard:"Poredak",rules:"Pravila",games:"Igre",unlimited:"neograničeno"},"zh-hk":{loading:"加載請稍候 ...",back:"後退",previous:"以前的",next:"下一個",scheduled:"預定的",ongoing:"進行中",finished:"完成的",mostRounds:"大多數回合",activePeriod:"從 {startdate} 到 {enddate}",forwardCasino:"查看包含的賭場遊戲",forwardSports:"查看包含的運動",forwardMyTournaments:"查看我的比賽s",leaderBoard:"排行榜",rules:"規則",games:"遊戲",unlimited:"無限"},fr:{loading:"Chargement,veuillez patienter ...",back:"Retour",previous:"Précedent",next:"Suivant",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",mostRounds:"De",activePeriod:"De la {startdate} à la {enddate}",forwardCasino:"Voir les jeux de casino inclus",forwardSports:"Voir les sports inclus",forwardMyTournaments:"Voir mes tournois",leaderBoard:"Tableau des leaders",rules:"Règles",games:"Jeux",unlimited:"Illimité"},ro:{loading:"Se încarcă ...",back:"Înapoi",previous:"Anterior",next:"Următorul",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",mostRounds:"Cele mai multe runde",activePeriod:"De la {startdate} până la {enddate}",forwardCasino:"Vezi jocurile de cazino incluse",forwardSports:"Vezi sporturile incluse",forwardMyTournaments:"Vezi turneele mele",leaderBoard:"Clasament",rules:"Reguli",games:"Jocuri",unlimited:"nelimitat"},tr:{loading:"Yükleniyor lütfen bekleyin ...",back:"Geri",previous:"Önceki",next:"Sonraki",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Bitti",mostRounds:"Çoğu Tur",activePeriod:"Başlangıç {startdate} Bitiş {enddate}",forwardCasino:"Turnuvaya katılan oyunlar",forwardSports:"Dahil edilen sporları görün",forwardMyTournaments:"Turnuvalarımı Gör",leaderBoard:"Lider Tablosu",rules:"Kurallar",games:"Oyunlar",unlimited:"sınırsız"},el:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",back:"Πίσω",previous:"Προηγούμενο",next:"Επόμενο",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",mostRounds:"MostRounds",activePeriod:"From {startdate} till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"},es:{loading:"Cargando…",back:"Anterior",previous:"Previo",next:"Siguiente",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado",mostRounds:"Más rondas",activePeriod:"Desde {startdate} Hasta {enddate}",forwardCasino:"Ver los Juegos de Casino incluidos",forwardSports:"Ver los Deportes incluidos",forwardMyTournaments:"Ver mis Torneos",leaderBoard:"Tabla de posiciones",rules:"Reglas",games:"Juegos",unlimited:"ilimitado"},hu:{loading:"Betöltés, kérjük várjon...",back:"Vissza",previous:"Előző",next:"Következő",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",mostRounds:"Legtöbb forduló",activePeriod:"{startdate} -tól {enddate} -ig",forwardCasino:"Résztvevő kaszinójátékok mutatása",forwardSports:"Résztvevő sportok mutatása",forwardMyTournaments:"Versenyeim mutatása",leaderBoard:"Ranglista",rules:"Szabályok",games:"Játékok",unlimited:"Korlátlan"},pt:{loading:"Carregando, por favor espere ...",back:"Voltar",previous:"Anterior",next:"Próximo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",mostRounds:"Mais Rodadas",activePeriod:"De {startdate} Até {enddate}",forwardCasino:"Ver jogos de cassino incluídos",forwardSports:"Ver esportes incluídos",forwardMyTournaments:"Ver Meus Torneios",leaderBoard:"Tabela de Líederes",rules:"Regras",games:"Jogos",unlimited:"Ilimitado"},"en-us":{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",mostRounds:"MostRounds",activePeriod:"From {startdate} Till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"}};var Ir={exports:{}};/** @license
28
+ * eventsource.js
29
+ * Available under MIT License (MIT)
30
+ * https://github.com/Yaffle/EventSource/
31
+ */(function(e,t){(function(n){var r=n.setTimeout,a=n.clearTimeout,i=n.XMLHttpRequest,o=n.XDomainRequest,l=n.ActiveXObject,u=n.EventSource,h=n.document,d=n.Promise,g=n.fetch,m=n.Response,x=n.TextDecoder,B=n.TextEncoder,k=n.AbortController;if(typeof window!="undefined"&&typeof h!="undefined"&&!("readyState"in h)&&h.body==null&&(h.readyState="loading",window.addEventListener("load",function(f){h.readyState="complete"},!1)),i==null&&l!=null&&(i=function(){return new l("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(f){function y(){}return y.prototype=f,new y}),Date.now||(Date.now=function(){return new Date().getTime()}),k==null){var W=g;g=function(f,y){var w=y.signal;return W(f,{headers:y.headers,credentials:y.credentials,cache:y.cache}).then(function(b){var D=b.body.getReader();return w._reader=D,w._aborted&&w._reader.cancel(),{status:b.status,statusText:b.statusText,headers:b.headers,body:{getReader:function(){return D}}}})},k=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function fe(){this.bitsNeeded=0,this.codePoint=0}fe.prototype.decode=function(f){function y(z,K,P){if(P===1)return z>=128>>K&&z<<K<=2047;if(P===2)return z>=2048>>K&&z<<K<=55295||z>=57344>>K&&z<<K<=65535;if(P===3)return z>=65536>>K&&z<<K<=1114111;throw new Error}function w(z,K){if(z===6*1)return K>>6>15?3:K>31?2:1;if(z===6*2)return K>15?3:2;if(z===6*3)return 3;throw new Error}for(var b=65533,D="",M=this.bitsNeeded,O=this.codePoint,re=0;re<f.length;re+=1){var L=f[re];M!==0&&(L<128||L>191||!y(O<<6|L&63,M-6,w(M,O)))&&(M=0,O=b,D+=String.fromCharCode(O)),M===0?(L>=0&&L<=127?(M=0,O=L):L>=192&&L<=223?(M=6*1,O=L&31):L>=224&&L<=239?(M=6*2,O=L&15):L>=240&&L<=247?(M=6*3,O=L&7):(M=0,O=b),M!==0&&!y(O,M,w(M,O))&&(M=0,O=b)):(M-=6,O=O<<6|L&63),M===0&&(O<=65535?D+=String.fromCharCode(O):(D+=String.fromCharCode(55296+(O-65535-1>>10)),D+=String.fromCharCode(56320+(O-65535-1&1023))))}return this.bitsNeeded=M,this.codePoint=O,D};var J=function(){try{return new x().decode(new B().encode("test"),{stream:!0})==="test"}catch(f){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+f)}return!1};(x==null||B==null||!J())&&(x=fe);var R=function(){};function I(f){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=R,this.onload=R,this.onerror=R,this.onreadystatechange=R,this._contentType="",this._xhr=f,this._sendTimeout=0,this._abort=R}I.prototype.open=function(f,y){this._abort(!0);var w=this,b=this._xhr,D=1,M=0;this._abort=function(P){w._sendTimeout!==0&&(a(w._sendTimeout),w._sendTimeout=0),(D===1||D===2||D===3)&&(D=4,b.onload=R,b.onerror=R,b.onabort=R,b.onprogress=R,b.onreadystatechange=R,b.abort(),M!==0&&(a(M),M=0),P||(w.readyState=4,w.onabort(null),w.onreadystatechange())),D=0};var O=function(){if(D===1){var P=0,ne="",Ue=void 0;if("contentType"in b)P=200,ne="OK",Ue=b.contentType;else try{P=b.status,ne=b.statusText,Ue=b.getResponseHeader("Content-Type")}catch(Dt){P=0,ne="",Ue=void 0}P!==0&&(D=2,w.readyState=2,w.status=P,w.statusText=ne,w._contentType=Ue,w.onreadystatechange())}},re=function(){if(O(),D===2||D===3){D=3;var P="";try{P=b.responseText}catch(ne){}w.readyState=3,w.responseText=P,w.onprogress()}},L=function(P,ne){if((ne==null||ne.preventDefault==null)&&(ne={preventDefault:R}),re(),D===1||D===2||D===3){if(D=4,M!==0&&(a(M),M=0),w.readyState=4,P==="load")w.onload(ne);else if(P==="error")w.onerror(ne);else if(P==="abort")w.onabort(ne);else throw new TypeError;w.onreadystatechange()}},z=function(P){b!=null&&(b.readyState===4?(!("onload"in b)||!("onerror"in b)||!("onabort"in b))&&L(b.responseText===""?"error":"load",P):b.readyState===3?"onprogress"in b||re():b.readyState===2&&O())},K=function(){M=r(function(){K()},500),b.readyState===3&&re()};"onload"in b&&(b.onload=function(P){L("load",P)}),"onerror"in b&&(b.onerror=function(P){L("error",P)}),"onabort"in b&&(b.onabort=function(P){L("abort",P)}),"onprogress"in b&&(b.onprogress=re),"onreadystatechange"in b&&(b.onreadystatechange=function(P){z(P)}),("contentType"in b||!("ontimeout"in i.prototype))&&(y+=(y.indexOf("?")===-1?"?":"&")+"padding=true"),b.open(f,y,!0),"readyState"in b&&(M=r(function(){K()},0))},I.prototype.abort=function(){this._abort(!1)},I.prototype.getResponseHeader=function(f){return this._contentType},I.prototype.setRequestHeader=function(f,y){var w=this._xhr;"setRequestHeader"in w&&w.setRequestHeader(f,y)},I.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},I.prototype.send=function(){if((!("ontimeout"in i.prototype)||!("sendAsBinary"in i.prototype)&&!("mozAnon"in i.prototype))&&h!=null&&h.readyState!=null&&h.readyState!=="complete"){var f=this;f._sendTimeout=r(function(){f._sendTimeout=0,f.send()},4);return}var y=this._xhr;"withCredentials"in y&&(y.withCredentials=this.withCredentials);try{y.send(void 0)}catch(w){throw w}};function T(f){return f.replace(/[A-Z]/g,function(y){return String.fromCharCode(y.charCodeAt(0)+32)})}function j(f){for(var y=Object.create(null),w=f.split(`\r
32
+ `),b=0;b<w.length;b+=1){var D=w[b],M=D.split(": "),O=M.shift(),re=M.join(": ");y[T(O)]=re}this._map=y}j.prototype.get=function(f){return this._map[T(f)]},i!=null&&i.HEADERS_RECEIVED==null&&(i.HEADERS_RECEIVED=2);function Oe(){}Oe.prototype.open=function(f,y,w,b,D,M,O){f.open("GET",D);var re=0;f.onprogress=function(){var z=f.responseText,K=z.slice(re);re+=K.length,w(K)},f.onerror=function(z){z.preventDefault(),b(new Error("NetworkError"))},f.onload=function(){b(null)},f.onabort=function(){b(null)},f.onreadystatechange=function(){if(f.readyState===i.HEADERS_RECEIVED){var z=f.status,K=f.statusText,P=f.getResponseHeader("Content-Type"),ne=f.getAllResponseHeaders();y(z,K,P,new j(ne))}},f.withCredentials=M;for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&f.setRequestHeader(L,O[L]);return f.send(),f};function Se(f){this._headers=f}Se.prototype.get=function(f){return this._headers.get(f)};function $e(){}$e.prototype.open=function(f,y,w,b,D,M,O){var re=null,L=new k,z=L.signal,K=new x;return g(D,{headers:O,credentials:M?"include":"same-origin",signal:z,cache:"no-store"}).then(function(P){return re=P.body.getReader(),y(P.status,P.statusText,P.headers.get("Content-Type"),new Se(P.headers)),new d(function(ne,Ue){var Dt=function(){re.read().then(function(Me){if(Me.done)ne(void 0);else{var pe=K.decode(Me.value,{stream:!0});w(pe),Dt()}}).catch(function(Me){Ue(Me)})};Dt()})}).catch(function(P){if(P.name!=="AbortError")return P}).then(function(P){b(P)}),{abort:function(){re!=null&&re.cancel(),L.abort()}}};function ze(){this._listeners=Object.create(null)}function Ce(f){r(function(){throw f},0)}ze.prototype.dispatchEvent=function(f){f.target=this;var y=this._listeners[f.type];if(y!=null)for(var w=y.length,b=0;b<w;b+=1){var D=y[b];try{typeof D.handleEvent=="function"?D.handleEvent(f):D.call(this,f)}catch(M){Ce(M)}}},ze.prototype.addEventListener=function(f,y){f=String(f);var w=this._listeners,b=w[f];b==null&&(b=[],w[f]=b);for(var D=!1,M=0;M<b.length;M+=1)b[M]===y&&(D=!0);D||b.push(y)},ze.prototype.removeEventListener=function(f,y){f=String(f);var w=this._listeners,b=w[f];if(b!=null){for(var D=[],M=0;M<b.length;M+=1)b[M]!==y&&D.push(b[M]);D.length===0?delete w[f]:w[f]=D}};function ye(f){this.type=f,this.target=void 0}function et(f,y){ye.call(this,f),this.data=y.data,this.lastEventId=y.lastEventId}et.prototype=Object.create(ye.prototype);function Re(f,y){ye.call(this,f),this.status=y.status,this.statusText=y.statusText,this.headers=y.headers}Re.prototype=Object.create(ye.prototype);function He(f,y){ye.call(this,f),this.error=y.error}He.prototype=Object.create(ye.prototype);var tt=-1,De=0,V=1,Xe=2,Pe=-1,Q=0,le=1,ee=2,ue=3,E=/^text\/event\-stream(;.*)?$/i,A=1e3,pn=18e6,st=function(f,y){var w=f==null?y:parseInt(f,10);return w!==w&&(w=y),Et(w)},Et=function(f){return Math.min(Math.max(f,A),pn)},ot=function(f,y,w){try{typeof y=="function"&&y.call(f,w)}catch(b){Ce(b)}};function he(f,y){ze.call(this),y=y||{},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,er(this,f,y)}function _n(){return i!=null&&"withCredentials"in i.prototype||o==null?new i:new o}var $n=g!=null&&m!=null&&"body"in m.prototype;function er(f,y,w){y=String(y);var b=!!w.withCredentials,D=w.lastEventIdQueryParameterName||"lastEventId",M=Et(1e3),O=st(w.heartbeatTimeout,45e3),re="",L=M,z=!1,K=0,P=w.headers||{},ne=w.Transport,Ue=$n&&ne==null?void 0:new I(ne!=null?new ne:_n()),Dt=ne!=null&&typeof ne!="string"?new ne:Ue==null?new $e:new Oe,Me=void 0,pe=0,Ie=tt,lt="",It="",qe="",Nt="",_e=Q,$t=0,c=0,H=function($,ce,Le,Be){if(Ie===De)if($===200&&Le!=null&&E.test(Le)){Ie=V,z=Date.now(),L=M,f.readyState=V;var xe=new Re("open",{status:$,statusText:ce,headers:Be});f.dispatchEvent(xe),ot(f,f.onopen,xe)}else{var be="";$!==200?(ce&&(ce=ce.replace(/\s+/g," ")),be="EventSource's response has a status "+$+" "+ce+" that is not 200. Aborting the connection."):be="EventSource's response has a Content-Type specifying an unsupported type: "+(Le==null?"-":Le.replace(/\s+/g," "))+". Aborting the connection.",ge();var xe=new Re("error",{status:$,statusText:ce,headers:Be});f.dispatchEvent(xe),ot(f,f.onerror,xe),console.error(be)}},Y=function($){if(Ie===V){for(var ce=-1,Le=0;Le<$.length;Le+=1){var Be=$.charCodeAt(Le);(Be===10||Be===13)&&(ce=Le)}var xe=(ce!==-1?Nt:"")+$.slice(0,ce+1);Nt=(ce===-1?Nt:"")+$.slice(ce+1),$!==""&&(z=Date.now(),K+=$.length);for(var be=0;be<xe.length;be+=1){var Be=xe.charCodeAt(be);if(_e===Pe&&Be===10)_e=Q;else if(_e===Pe&&(_e=Q),Be===13||Be===10){if(_e!==Q){_e===le&&(c=be+1);var ut=xe.slice($t,c-1),ht=xe.slice(c+(c<be&&xe.charCodeAt(c)===32?1:0),be);ut==="data"?(lt+=`
33
+ `,lt+=ht):ut==="id"?It=ht:ut==="event"?qe=ht:ut==="retry"?(M=st(ht,M),L=M):ut==="heartbeatTimeout"&&(O=st(ht,O),pe!==0&&(a(pe),pe=r(function(){Ae()},O)))}if(_e===Q){if(lt!==""){re=It,qe===""&&(qe="message");var At=new et(qe,{data:lt.slice(1),lastEventId:It});if(f.dispatchEvent(At),qe==="open"?ot(f,f.onopen,At):qe==="message"?ot(f,f.onmessage,At):qe==="error"&&ot(f,f.onerror,At),Ie===Xe)return}lt="",qe=""}_e=Be===13?Pe:Q}else _e===Q&&($t=be,_e=le),_e===le?Be===58&&(c=be+1,_e=ee):_e===ee&&(_e=ue)}}},Ne=function($){if(Ie===V||Ie===De){Ie=tt,pe!==0&&(a(pe),pe=0),pe=r(function(){Ae()},L),L=Et(Math.min(M*16,L*2)),f.readyState=De;var ce=new He("error",{error:$});f.dispatchEvent(ce),ot(f,f.onerror,ce),$!=null&&console.error($)}},ge=function(){Ie=Xe,Me!=null&&(Me.abort(),Me=void 0),pe!==0&&(a(pe),pe=0),f.readyState=Xe},Ae=function(){if(pe=0,Ie!==tt){if(!z&&Me!=null)Ne(new Error("No activity within "+O+" milliseconds. "+(Ie===De?"No response received.":K+" chars received.")+" Reconnecting.")),Me!=null&&(Me.abort(),Me=void 0);else{var $=Math.max((z||Date.now())+O-Date.now(),1);z=!1,pe=r(function(){Ae()},$)}return}z=!1,K=0,pe=r(function(){Ae()},O),Ie=De,lt="",qe="",It=re,Nt="",$t=0,c=0,_e=Q;var ce=y;if(y.slice(0,5)!=="data:"&&y.slice(0,5)!=="blob:"&&re!==""){var Le=y.indexOf("?");ce=Le===-1?y:y.slice(0,Le+1)+y.slice(Le+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ht,At){return At===D?"":ht}),ce+=(y.indexOf("?")===-1?"?":"&")+D+"="+encodeURIComponent(re)}var Be=f.withCredentials,xe={};xe.Accept="text/event-stream";var be=f.headers;if(be!=null)for(var ut in be)Object.prototype.hasOwnProperty.call(be,ut)&&(xe[ut]=be[ut]);try{Me=Dt.open(Ue,H,Y,Ne,ce,Be,xe)}catch(ht){throw ge(),ht}};f.url=y,f.readyState=De,f.withCredentials=b,f.headers=P,f._close=ge,Ae()}he.prototype=Object.create(ze.prototype),he.prototype.CONNECTING=De,he.prototype.OPEN=V,he.prototype.CLOSED=Xe,he.prototype.close=function(){this._close()},he.CONNECTING=De,he.OPEN=V,he.CLOSED=Xe,he.prototype.withCredentials=void 0;var gn=u;i!=null&&(u==null||!("withCredentials"in u.prototype))&&(gn=he),function(f){{var y=f(t);y!==void 0&&(e.exports=y)}}(function(f){f.EventSourcePolyfill=he,f.NativeEventSource=u,f.EventSource=gn})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:ms:globalThis)})(Ir,Ir.exports);var Ha=Ir.exports;if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}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("./CasinoTournamentsDetails-DVRJk4kX.cjs")).then(t=>t.CasinoTournamentsDetails_ce).then(({default:t})=>{!customElements.get("casino-tournaments-details")&&customElements.define("casino-tournaments-details",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}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-Cd8LJRCx.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}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("./CasinoTournamentsTable-10_AWWZo.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-table")&&customElements.define("casino-tournaments-table",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}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("./CasinoTournamentsTab-UV1F3GMS.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}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("./CasinoTournamentsThumbnailRule-BAatFJuT.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-rule")&&customElements.define("casino-tournaments-thumbnail-rule",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}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("./CasinoTournamentsRank-BdqjuIj9.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}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("./CasinoTournamentsThumbnailGames-BhcNQqZ7.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games")&&customElements.define("casino-tournaments-thumbnail-games",t.element)})}function yf(e){s.append_styles(e,"svelte-iof8mn",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsPage{background:var(--emw--color-contrast, #07072A);width:100%;color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:row}.TournamentsPage .hidden{display:none}.TournamentsPage.MiniMode{flex-direction:column}.TournamentsSectionWrapper{padding:24px 0;width:100%}@media screen and (max-width: 1300px){.TournamentsSectionWrapper{padding:24px 2.4%}}.FullSize{width:100%}.DisplayNone{display:none}.TopButtons{display:inline-flex;flex-direction:column;padding-bottom:20px;font-size:10px}.BackButton{display:inline-flex;align-items:center;cursor:pointer}.BackButton p{font-size:24px}.NavButtons{margin-left:auto;gap:10px;display:flex}.PrevButton{display:flex;align-items:center;border:1px solid var(--emw--color-white, #FFFFFF);width:105px;height:36px;padding:10px;font-size:16px;cursor:pointer}.NextButton{display:flex;align-items:center;border:1px solid var(--emw--color-white, #FFFFFF);padding:10px;width:75px;height:36px;font-size:16px;cursor:pointer}.TournamentsPage.MiniMode .TournamentContentDetails.MobileClass .TabContent.Games .GamesTabNav{width:80%}.TournamentContentDetails{display:flex;gap:10px;width:100%}.TournamentContentDetails.MobileClass{flex-direction:column}.TournamentContentDetails .LeaderboardSectionWrapper{display:flex;flex-direction:column;width:100%}.TournamentContentDetails .LeaderboardSectionWrapper .PageTabNav{max-width:600px}.TournamentContentDetails .LeaderboardSectionWrapper .GamesTabNav{max-width:300px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Rules{max-width:800px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games{padding-bottom:30px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems{text-align:center;margin:auto;margin-top:39px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.OneGame{width:100%}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.TwoGames{width:100%;display:flex}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.TwoGames div{width:50%}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems span{color:#FF8364;font-size:12px;text-align:center;text-decoration-line:underline;cursor:pointer;margin-top:5px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems svg,.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems .svg{height:70px;display:block;margin:auto}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems svg.ball,.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems .svg.ball{width:98px}.TournamentCardDetails{width:var(--emw--tournament-thumbnail-width, 35%)}.TournamentCardDetails.MobileClass{width:100%}.TournamentTableDetails{flex:auto}.TournamentsPage.MiniMode{height:max-content}.TournamentsPage.MiniMode .MobileClass.TournamentCardDetails{padding:5px 5px 0px 5px;background-color:#333333;padding-bottom:12px}.TournamentsPage.MiniMode .MobileClass.TournamentCardDetails casino-tournaments-rank{display:block}.TournamentsPage.MiniMode .CloseButton{position:absolute;right:3px;top:3px;font-size:11px;cursor:pointer}.TournamentsPage.MiniMode casino-tournaments-rank::part(Rank),.TournamentsPage.MiniMode casino-tournaments-rank::part(Prize){color:#0a0c19;font-size:12px;margin:0px 0px 0px 5px;padding:2px}.TournamentsPage.MiniMode casino-tournaments-rank::part(Rank){margin-left:0px}.TournamentsPage.MiniMode casino-tournaments-rank::part(Prize){margin-right:0px}.TournamentsPage.MiniMode casino-tournaments-rank::part(RankText),.TournamentsPage.MiniMode casino-tournaments-rank::part(PrizeText){font-weight:400}.TournamentsPage.MiniMode casino-tournaments-thumbnail-controller::part(TournamentCard){padding:5px 5px 0px 5px;background-color:#333333}.TournamentsPage.MiniMode casino-tournaments-tab::part(LiText){height:22px;top:calc(50% - 11px);font-style:normal;font-weight:600;font-size:14px;line-height:22px;text-align:center;letter-spacing:-0.1px}.TournamentsPage.MiniMode casino-tournaments-tab::part(CustomStylingContainer){margin-top:0px;cursor:pointer}.TournamentsPage.MiniMode .TabContent,.TournamentsPage.MiniMode casino-tournaments-tab{padding:0 16px}.TournamentsPage.MiniMode .TabContent.Rules{padding-bottom:28px}.TournamentsPage.MiniMode .TabContent.Games{padding-bottom:30px}.TournamentsPage.MiniMode .TabContent.Games .GameItems{text-align:center;margin:auto;margin-top:39px}.TournamentsPage.MiniMode .TabContent.Games .GameItems.OneGame{width:100%}.TournamentsPage.MiniMode .TabContent.Games .GameItems.TwoGames{width:100%;display:flex}.TournamentsPage.MiniMode .TabContent.Games .GameItems.TwoGames div{width:50%}.TournamentsPage.MiniMode .TabContent.Games .GameItems span{color:#FF8364;font-size:12px;text-align:center;text-decoration-line:underline;cursor:pointer;margin-top:5px}.TournamentsPage.MiniMode .TabContent.Games .GameItems svg,.TournamentsPage.MiniMode .TabContent.Games .GameItems .svg{height:70px;display:block;margin:auto}.TournamentsPage.MiniMode .TabContent.Games .GameItems svg.ball,.TournamentsPage.MiniMode .TabContent.Games .GameItems .svg.ball{width:98px}.TournamentsPage.MiniMode .TabContent.Games .GamesTabNav{width:50%}.TournamentsPage.MiniMode .BottomButton{font-weight:600;font-size:15px;text-align:center;height:35px;width:60%;margin:20px auto;align-items:center;padding:8.72351px 12.6887px;background:#FF8364;box-shadow:0px 0.793047px 2.37914px rgba(0, 0, 0, 0.1), 0px 1.58609px 0.793047px rgba(0, 0, 0, 0.06), 0px 0.793047px 0.793047px rgba(0, 0, 0, 0.07);border-radius:4.75828px}.TournamentsPage.MiniMode .Thumbnail{position:relative}.TournamentsPage.MiniMode .Thumbnail.Mobile{border:0px none;padding:6px 5px 10px;background:#333333}.TournamentsPage.MiniMode .Thumbnail.MiniMode .CardImg{margin-bottom:5px;width:65px;height:40px}.TournamentsPage.MiniMode .Thumbnail .CardImg{height:300px;width:100%;background:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:auto}.TournamentsPage.MiniMode .Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.TournamentsPage.MiniMode .Thumbnail .CardImg.Mobile{width:65px;height:40px;display:inline-block}.TournamentsPage.MiniMode .Thumbnail .MobileRight{display:inline-block;line-height:20px;font-size:11px;padding:2px 3px;vertical-align:top;width:calc(100% - 70px)}.TournamentsPage.MiniMode .Thumbnail .MobileRight .Title{text-transform:capitalize;font-size:var(--emw--font-size-medium, 14px);font-weight:600;background-color:transparent;height:fit-content;margin-bottom:initial}.TournamentsPage.MiniMode .Thumbnail .MobileRight .Title.Skeleton{height:var(--emw-skeleton-title-height, 30px)}.TournamentsPage.MiniMode .Thumbnail .Status{background:#000000;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.TournamentsPage.MiniMode .Thumbnail .Enrolled{background:#2B2B5D;color:#aaaabe;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}')}function Ia(e,t,n){const r=e.slice();return r[77]=t[n],r}function Na(e){let t,n=e[14]("loading")+"",r;return{c(){t=s.element("p"),r=s.text(n),s.attr(t,"class","LoadingMessage"),s.attr(t,"part","LoadingMessage")},m(a,i){s.insert(a,t,i),s.append(t,r)},p(a,i){i[0]&16384&&n!==(n=a[14]("loading")+"")&&s.set_data(r,n)},d(a){a&&s.detach(t)}}}function vf(e){let t,n,r,a=!e[12]&&Aa(),i=e[12]&&La(e);return{c(){t=s.element("div"),a&&a.c(),n=s.space(),i&&i.c(),s.attr(t,"class",r=(We(e[24])?"MobileClass":"")+(e[4]=="true"?" TournamentCardDetails":" FullSize")),s.attr(t,"part","MobileTournamentCardDetails")},m(o,l){s.insert(o,t,l),a&&a.m(t,null),s.append(t,n),i&&i.m(t,null)},p(o,l){o[12]?a&&(a.d(1),a=null):a||(a=Aa(),a.c(),a.m(t,n)),o[12]?i?i.p(o,l):(i=La(o),i.c(),i.m(t,null)):i&&(i.d(1),i=null),l[0]&16&&r!==(r=(We(o[24])?"MobileClass":"")+(o[4]=="true"?" TournamentCardDetails":" FullSize"))&&s.attr(t,"class",r)},d(o){o&&s.detach(t),a&&a.d(),i&&i.d()}}}function wf(e){let t,n,r,a,i,o,l,u=e[16].length>0&&Fa(e);return{c(){var h;t=s.element("div"),n=s.element("casino-tournaments-thumbnail-controller"),i=s.space(),u&&u.c(),s.set_custom_element_data(n,"session",e[0]),s.set_custom_element_data(n,"userid",e[1]),s.set_custom_element_data(n,"endpoint",e[3]),s.set_custom_element_data(n,"tournamenturl",r=(h=e[12])==null?void 0:h.href),s.set_custom_element_data(n,"showdetails","false"),s.set_custom_element_data(n,"showslider","false"),s.set_custom_element_data(n,"showenrolled","true"),s.set_custom_element_data(n,"fullsize",a=!!e[4]),s.set_custom_element_data(n,"clientstyling",e[10]),s.set_custom_element_data(n,"clientstylingurl",e[11]),s.set_custom_element_data(n,"translationurl",e[7]),s.set_custom_element_data(n,"lang",e[5]),s.set_custom_element_data(n,"currency",e[6]),s.set_custom_element_data(n,"mbsource",e[8]),s.set_custom_element_data(n,"keepbrowsercontext",e[9]),s.set_custom_element_data(n,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, Games, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
34
+ TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
35
+ TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
36
+ 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, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`),s.attr(t,"class",o=(We(e[24])?"MobileClass":"")+(e[4]=="true"?"TournamentCardDetails":"FullSize")),s.attr(t,"part",l=(We(e[24])?"MobileClass":"")+(e[4]=="true"?"TournamentCardDetails":"FullSize"))},m(h,d){s.insert(h,t,d),s.append(t,n),s.append(t,i),u&&u.m(t,null)},p(h,d){var g;d[0]&1&&s.set_custom_element_data(n,"session",h[0]),d[0]&2&&s.set_custom_element_data(n,"userid",h[1]),d[0]&8&&s.set_custom_element_data(n,"endpoint",h[3]),d[0]&4096&&r!==(r=(g=h[12])==null?void 0:g.href)&&s.set_custom_element_data(n,"tournamenturl",r),d[0]&16&&a!==(a=!!h[4])&&s.set_custom_element_data(n,"fullsize",a),d[0]&1024&&s.set_custom_element_data(n,"clientstyling",h[10]),d[0]&2048&&s.set_custom_element_data(n,"clientstylingurl",h[11]),d[0]&128&&s.set_custom_element_data(n,"translationurl",h[7]),d[0]&32&&s.set_custom_element_data(n,"lang",h[5]),d[0]&64&&s.set_custom_element_data(n,"currency",h[6]),d[0]&256&&s.set_custom_element_data(n,"mbsource",h[8]),d[0]&512&&s.set_custom_element_data(n,"keepbrowsercontext",h[9]),h[16].length>0?u?u.p(h,d):(u=Fa(h),u.c(),u.m(t,null)):u&&(u.d(1),u=null),d[0]&16&&o!==(o=(We(h[24])?"MobileClass":"")+(h[4]=="true"?"TournamentCardDetails":"FullSize"))&&s.attr(t,"class",o),d[0]&16&&l!==(l=(We(h[24])?"MobileClass":"")+(h[4]=="true"?"TournamentCardDetails":"FullSize"))&&s.attr(t,"part",l)},d(h){h&&s.detach(t),u&&u.d()}}}function Aa(e){let t,n,r;return{c(){t=s.element("div"),t.innerHTML='<ui-skeleton class="Mobile CardImg" structure="rectangle" width="65px" height="40px"></ui-skeleton> <div class="MobileRight" part="ThumbnailRight"><ui-skeleton structure="text" width="100%" height="18px"></ui-skeleton> <ui-skeleton structure="text" width="100%" height="12px" margin-top="5px"></ui-skeleton></div>',n=s.space(),r=s.element("div"),r.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="26px"></ui-skeleton>',s.attr(t,"class","Thumbnail MiniMode"),s.attr(t,"part","MiniThumbnail"),s.attr(r,"class","TournamentsRank"),s.attr(r,"part","TournamentsRank")},m(a,i){s.insert(a,t,i),s.insert(a,n,i),s.insert(a,r,i)},d(a){a&&(s.detach(t),s.detach(n),s.detach(r))}}}function La(e){let t,n,r,a,i=e[12].nameOrTitle+"",o,l,u,h,d,g,m,x,B,k,W;function fe(T,j){return T[12].thumbnail?Sf:Tf}let J=fe(e),R=J(e),I=e[12].startTime&&Ba(e);return{c(){t=s.element("div"),R.c(),n=s.space(),r=s.element("div"),a=s.element("div"),o=s.text(i),l=s.space(),u=s.element("div"),I&&I.c(),h=s.space(),d=s.element("div"),d.textContent="X",g=s.space(),m=s.element("casino-tournaments-rank"),s.attr(a,"class","Title"),s.attr(a,"part","ThumbnailRight_Title"),s.attr(u,"part","ThumbnailRight_Period"),s.attr(r,"class","MobileRight"),s.attr(r,"part","ThumbnailRight"),s.attr(d,"class","CloseButton"),s.attr(d,"part","CloseButton"),s.attr(t,"class","Thumbnail MiniMode"),s.attr(t,"part","MiniThumbnail"),s.set_custom_element_data(m,"part","ThumbnailRank"),s.set_custom_element_data(m,"userrank",x=e[19]?e[18].Rank:e[17].Rank),s.set_custom_element_data(m,"overallrank",e[21]),s.set_custom_element_data(m,"prize",B=e[19]?e[18].Prize||"-":e[17].Prize||"-"),s.set_custom_element_data(m,"tournamentid",e[2]),s.set_custom_element_data(m,"exportparts","casino-tournaments-rank, Rank, Icon, UserIcon, RankText, Rank_Arror_UP, Rank_Arror_Down, Prize, Icon, PrizeIcon, PrizeText"),s.set_custom_element_data(m,"clientstyling",e[10]),s.set_custom_element_data(m,"clientstylingurl",e[11]),s.set_custom_element_data(m,"translationurl",e[7]),s.set_custom_element_data(m,"mbsource",e[8])},m(T,j){s.insert(T,t,j),R.m(t,null),s.append(t,n),s.append(t,r),s.append(r,a),s.append(a,o),s.append(r,l),s.append(r,u),I&&I.m(u,null),s.append(t,h),s.append(t,d),s.insert(T,g,j),s.insert(T,m,j),k||(W=s.listen(d,"click",e[43]),k=!0)},p(T,j){J===(J=fe(T))&&R?R.p(T,j):(R.d(1),R=J(T),R&&(R.c(),R.m(t,n))),j[0]&4096&&i!==(i=T[12].nameOrTitle+"")&&s.set_data(o,i),T[12].startTime?I?I.p(T,j):(I=Ba(T),I.c(),I.m(u,null)):I&&(I.d(1),I=null),j[0]&917504&&x!==(x=T[19]?T[18].Rank:T[17].Rank)&&s.set_custom_element_data(m,"userrank",x),j[0]&2097152&&s.set_custom_element_data(m,"overallrank",T[21]),j[0]&917504&&B!==(B=T[19]?T[18].Prize||"-":T[17].Prize||"-")&&s.set_custom_element_data(m,"prize",B),j[0]&4&&s.set_custom_element_data(m,"tournamentid",T[2]),j[0]&1024&&s.set_custom_element_data(m,"clientstyling",T[10]),j[0]&2048&&s.set_custom_element_data(m,"clientstylingurl",T[11]),j[0]&128&&s.set_custom_element_data(m,"translationurl",T[7]),j[0]&256&&s.set_custom_element_data(m,"mbsource",T[8])},d(T){T&&(s.detach(t),s.detach(g),s.detach(m)),R.d(),I&&I.d(),k=!1,W()}}}function Tf(e){let t,n,r,a,i,o;return{c(){t=s.element("img"),s.attr(t,"part","CardImg"),s.attr(t,"class",n="CardImg "+(e[12].state=="Closing"||e[12].state=="Closed"?"CardImgFinished":"")),s.src_url_equal(t.src,r="https://i.stack.imgur.com/y9DpT.jpg")||s.attr(t,"src",r),s.attr(t,"width","65px"),s.attr(t,"height","40px"),s.attr(t,"title",a=e[12].nameOrTitle)},m(l,u){s.insert(l,t,u),i||(o=s.action_destroyer(e[25].call(null,t)),i=!0)},p(l,u){u[0]&4096&&n!==(n="CardImg "+(l[12].state=="Closing"||l[12].state=="Closed"?"CardImgFinished":""))&&s.attr(t,"class",n),u[0]&4096&&a!==(a=l[12].nameOrTitle)&&s.attr(t,"title",a)},d(l){l&&s.detach(t),i=!1,o()}}}function Sf(e){let t,n,r,a,i,o;return{c(){t=s.element("img"),s.attr(t,"part","CardImg"),s.attr(t,"class",n="Mobile CardImg "+(e[12].state=="Closing"||e[12].state=="Closed"?"CardImgFinished":"")),s.src_url_equal(t.src,r=e[12].thumbnail)||s.attr(t,"src",r),s.attr(t,"width","65px"),s.attr(t,"height","40px"),s.attr(t,"title",a=e[12].nameOrTitle)},m(l,u){s.insert(l,t,u),i||(o=s.action_destroyer(e[25].call(null,t)),i=!0)},p(l,u){u[0]&4096&&n!==(n="Mobile CardImg "+(l[12].state=="Closing"||l[12].state=="Closed"?"CardImgFinished":""))&&s.attr(t,"class",n),u[0]&4096&&!s.src_url_equal(t.src,r=l[12].thumbnail)&&s.attr(t,"src",r),u[0]&4096&&a!==(a=l[12].nameOrTitle)&&s.attr(t,"title",a)},d(l){l&&s.detach(t),i=!1,o()}}}function Ba(e){let t=e[14]("activePeriod",{values:{startdate:_(e[12].startTime).format("DD/MM/YYYY HH:mm"),enddate:_(e[12].endTime).format("DD/MM/YYYY HH:mm")}})+"",n;return{c(){n=s.text(t)},m(r,a){s.insert(r,n,a)},p(r,a){a[0]&20480&&t!==(t=r[14]("activePeriod",{values:{startdate:_(r[12].startTime).format("DD/MM/YYYY HH:mm"),enddate:_(r[12].endTime).format("DD/MM/YYYY HH:mm")}})+"")&&s.set_data(n,t)},d(r){r&&s.detach(n)}}}function Fa(e){let t,n=s.ensure_array_like(e[16]),r=[];for(let a=0;a<n.length;a+=1)r[a]=Ya(Ia(e,n,a));return{c(){for(let a=0;a<r.length;a+=1)r[a].c();t=s.empty()},m(a,i){for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(a,i);s.insert(a,t,i)},p(a,i){if(i[0]&68864){n=s.ensure_array_like(a[16]);let o;for(o=0;o<n.length;o+=1){const l=Ia(a,n,o);r[o]?r[o].p(l,i):(r[o]=Ya(l),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(a){a&&s.detach(t),s.destroy_each(r,a)}}}function Ya(e){let t,n,r;return{c(){t=s.element("casino-tournaments-details"),s.set_custom_element_data(t,"title",n=e[77].title),s.set_custom_element_data(t,"text",r=e[77].description),s.set_custom_element_data(t,"exportparts","DetailsCard, DetailsTitle, Title, CollapseButtonDetails, DetailsContent"),s.set_custom_element_data(t,"clientstyling",e[10]),s.set_custom_element_data(t,"clientstylingurl",e[11]),s.set_custom_element_data(t,"mbsource",e[8])},m(a,i){s.insert(a,t,i)},p(a,i){i[0]&65536&&n!==(n=a[77].title)&&s.set_custom_element_data(t,"title",n),i[0]&65536&&r!==(r=a[77].description)&&s.set_custom_element_data(t,"text",r),i[0]&1024&&s.set_custom_element_data(t,"clientstyling",a[10]),i[0]&2048&&s.set_custom_element_data(t,"clientstylingurl",a[11]),i[0]&256&&s.set_custom_element_data(t,"mbsource",a[8])},d(a){a&&s.detach(t)}}}function Ua(e){let t,n,r,a,i,o,l;return{c(){var u,h;t=s.element("casino-tournaments-thumbnail-rule"),s.set_custom_element_data(t,"lang",e[5]),s.set_custom_element_data(t,"tcurl",n=e[12].termsUrl||"#"),s.set_custom_element_data(t,"scorecriterial",r=e[12].scoreCriteria),s.set_custom_element_data(t,"betcount",e[23]),s.set_custom_element_data(t,"starttime",a=_(e[12].startTime).format("DD/MM/YYYY HH:mm:ss")),s.set_custom_element_data(t,"endtime",i=_(e[12].endTime).format("DD/MM/YYYY HH:mm:ss")),s.set_custom_element_data(t,"sportswallet",o=(u=e[12].wallet)==null?void 0:u.sports),s.set_custom_element_data(t,"casinowallet",l=(h=e[12].wallet)==null?void 0:h.casino),s.set_custom_element_data(t,"currency",e[6]),s.set_custom_element_data(t,"exportparts","casino-tournaments-thumbnail-rule, rule, RuleIcon, RuleTxt"),s.set_custom_element_data(t,"clientstyling",e[10]),s.set_custom_element_data(t,"clientstylingurl",e[11]),s.set_custom_element_data(t,"translationurl",e[7]),s.set_custom_element_data(t,"mbsource",e[8])},m(u,h){s.insert(u,t,h)},p(u,h){var d,g;h[0]&32&&s.set_custom_element_data(t,"lang",u[5]),h[0]&4096&&n!==(n=u[12].termsUrl||"#")&&s.set_custom_element_data(t,"tcurl",n),h[0]&4096&&r!==(r=u[12].scoreCriteria)&&s.set_custom_element_data(t,"scorecriterial",r),h[0]&8388608&&s.set_custom_element_data(t,"betcount",u[23]),h[0]&4096&&a!==(a=_(u[12].startTime).format("DD/MM/YYYY HH:mm:ss"))&&s.set_custom_element_data(t,"starttime",a),h[0]&4096&&i!==(i=_(u[12].endTime).format("DD/MM/YYYY HH:mm:ss"))&&s.set_custom_element_data(t,"endtime",i),h[0]&4096&&o!==(o=(d=u[12].wallet)==null?void 0:d.sports)&&s.set_custom_element_data(t,"sportswallet",o),h[0]&4096&&l!==(l=(g=u[12].wallet)==null?void 0:g.casino)&&s.set_custom_element_data(t,"casinowallet",l),h[0]&64&&s.set_custom_element_data(t,"currency",u[6]),h[0]&1024&&s.set_custom_element_data(t,"clientstyling",u[10]),h[0]&2048&&s.set_custom_element_data(t,"clientstylingurl",u[11]),h[0]&128&&s.set_custom_element_data(t,"translationurl",u[7]),h[0]&256&&s.set_custom_element_data(t,"mbsource",u[8])},d(u){u&&s.detach(t)}}}function Ga(e){let t;return{c(){t=s.element("casino-tournaments-thumbnail-games"),s.set_custom_element_data(t,"lang",e[5]),s.set_custom_element_data(t,"clientstyling",e[10]),s.set_custom_element_data(t,"clientstylingurl",e[11]),s.set_custom_element_data(t,"translationurl",e[7]),s.set_custom_element_data(t,"mbsource",e[8]),s.set_custom_element_data(t,"tournamentdetails",e[12])},m(n,r){s.insert(n,t,r)},p(n,r){r[0]&32&&s.set_custom_element_data(t,"lang",n[5]),r[0]&1024&&s.set_custom_element_data(t,"clientstyling",n[10]),r[0]&2048&&s.set_custom_element_data(t,"clientstylingurl",n[11]),r[0]&128&&s.set_custom_element_data(t,"translationurl",n[7]),r[0]&256&&s.set_custom_element_data(t,"mbsource",n[8]),r[0]&4096&&s.set_custom_element_data(t,"tournamentdetails",n[12])},d(n){n&&s.detach(t)}}}function Wa(e){let t,n=e[14]("forwardMyTournaments")+"",r,a,i;return{c(){t=s.element("div"),r=s.text(n),s.attr(t,"class","BottomButton"),s.attr(t,"part","ThumbnailGotoTournamentsButton")},m(o,l){s.insert(o,t,l),s.append(t,r),a||(i=s.listen(t,"click",e[44]),a=!0)},p(o,l){l[0]&16384&&n!==(n=o[14]("forwardMyTournaments")+"")&&s.set_data(r,n)},d(o){o&&s.detach(t),a=!1,i()}}}function Mf(e){let t,n,r,a,i,o,l,u,h,d=e[14]("back")+"",g,m,x,B,k,W,fe,J,R,I,T,j,Oe,Se,$e,ze,Ce,ye,et,Re,He,tt,De,V=e[15]&&Na(e);function Xe(E,A){return E[22]?vf:wf}let Pe=Xe(e),Q=Pe(e),le=e[12]&&Ua(e),ee=e[12]&&Ga(e),ue=e[22]&&Wa(e);return{c(){V&&V.c(),t=s.space(),n=s.element("div"),r=s.element("div"),a=s.element("div"),i=s.element("div"),o=s.svg_element("svg"),l=s.svg_element("path"),u=s.space(),h=s.element("p"),g=s.text(d),m=s.space(),x=s.element("div"),Q.c(),B=s.space(),k=s.element("div"),W=s.element("div"),fe=s.element("div"),J=s.element("casino-tournaments-tab"),R=s.space(),I=s.element("div"),T=s.element("casino-tournaments-table"),Oe=s.space(),Se=s.element("div"),le&&le.c(),ze=s.space(),Ce=s.element("div"),ee&&ee.c(),et=s.space(),ue&&ue.c(),s.attr(l,"stroke-linecap","round"),s.attr(l,"stroke-linejoin","round"),s.attr(l,"stroke-width","2"),s.attr(l,"d","M15 19l-7-7 7-7"),s.attr(o,"fill","none"),s.attr(o,"stroke","currentColor"),s.attr(o,"width","24"),s.attr(o,"height","24"),s.attr(o,"viewBox","0 0 24 24"),s.attr(o,"xmlns","http://www.w3.org/2000/svg"),s.attr(i,"class","BackButton"),s.attr(i,"part","BackButton"),s.attr(a,"class","TopButtons"),s.attr(a,"part","TopButtons"),s.set_custom_element_data(J,"part","ThumbnailTab"),s.set_custom_element_data(J,"tabs","leaderboard,rules,games"),s.set_custom_element_data(J,"tab","leaderboard"),s.set_custom_element_data(J,"tid",fs),s.set_custom_element_data(J,"exportparts","CustomStylingContainer, ul, li, LiText, sup, SupText, active"),s.set_custom_element_data(J,"clientstyling",e[10]),s.set_custom_element_data(J,"clientstylingurl",e[11]),s.set_custom_element_data(J,"mbsource",e[8]),s.attr(fe,"class","PageTabNav"),s.set_custom_element_data(T,"firstrow","true"),s.set_custom_element_data(T,"sortable","false"),s.set_custom_element_data(T,"lang",e[5]),s.set_custom_element_data(T,"clientstyling",e[10]),s.set_custom_element_data(T,"clientstylingurl",e[11]),s.set_custom_element_data(T,"translationurl",e[7]),s.set_custom_element_data(T,"mbsource",e[8]),s.set_custom_element_data(T,"exportparts",`TableContent, TableUser, TableHeadRow, TableCell, CurrentUserRow, UnqualifiedRow, TableRank, Rank-1, Rank-2, Rank-3, RankFirstRow, TablePlayer, TablePoints, TablePrize, Qualified, TableUserTooltips, TableUserTooltipsEm, ExclamationMark,
37
+ TournamentsTable, LeftTable, LeftTableThead, LeftTableTr, LeftTableTh, LeftTableTd, LeftTableTdEm, LeftTableButton, LeftTableP, LeftTableTbody, FirstRow, RankCol, ScoreChangeFlag, Show, Hidden, Rank_Arror_UP, Rank_Arror_Down, ScoreUp, Flex, RightButton, CollapseButton, TooltipsRow`),s.attr(I,"class",j="TabContent "+(e[4]=="true"?"TournamentTableDetails ":"DisplayNone")+" "+(e[20]!="leaderboard"?"hidden":"")),s.attr(I,"part","ThumbnailTabContent"),s.attr(Se,"class",$e="TabContent Rules "+(e[20]!="rules"?"hidden":"")),s.attr(Se,"part","ThumbnailTabContent"),s.attr(Ce,"class",ye="TabContent Games "+(e[20]!="games"?"hidden":"")),s.attr(Ce,"part","ThumbnailTabContent"),s.attr(W,"class","LeaderboardSectionWrapper"),s.attr(k,"class","TournamentContentDetails "+(We(e[24])?"MobileClass":"")),s.attr(k,"part","TournamentContentDetails"),s.attr(x,"class","TournamentContentDetails "+(We(e[24])?"MobileClass":"")),s.attr(x,"part","TournamentContentDetails "+(We(e[24])?"MobileClass":"")),s.attr(r,"class","TournamentsSectionWrapper"),s.attr(r,"part","TournamentsSectionWrapper"),s.attr(n,"class",Re="TournamentsPage "+(e[22]?"MiniMode":"")+" "+(e[12]?"hidden":"")),s.attr(n,"part",He=e[22]?"MiniTournamentPage":"TournamentsPage")},m(E,A){V&&V.m(E,A),s.insert(E,t,A),s.insert(E,n,A),s.append(n,r),s.append(r,a),s.append(a,i),s.append(i,o),s.append(o,l),s.append(i,u),s.append(i,h),s.append(h,g),s.append(r,m),s.append(r,x),Q.m(x,null),s.append(x,B),s.append(x,k),s.append(k,W),s.append(W,fe),s.append(fe,J),s.append(W,R),s.append(W,I),s.append(I,T),s.append(W,Oe),s.append(W,Se),le&&le.m(Se,null),s.append(W,ze),s.append(W,Ce),ee&&ee.m(Ce,null),s.append(W,et),ue&&ue.m(W,null),e[45](n),tt||(De=s.listen(i,"click",e[42]),tt=!0)},p(E,A){E[15]?V?V.p(E,A):(V=Na(E),V.c(),V.m(t.parentNode,t)):V&&(V.d(1),V=null),A[0]&16384&&d!==(d=E[14]("back")+"")&&s.set_data(g,d),Pe===(Pe=Xe(E))&&Q?Q.p(E,A):(Q.d(1),Q=Pe(E),Q&&(Q.c(),Q.m(x,B))),A[0]&1024&&s.set_custom_element_data(J,"clientstyling",E[10]),A[0]&2048&&s.set_custom_element_data(J,"clientstylingurl",E[11]),A[0]&256&&s.set_custom_element_data(J,"mbsource",E[8]),A[0]&32&&s.set_custom_element_data(T,"lang",E[5]),A[0]&1024&&s.set_custom_element_data(T,"clientstyling",E[10]),A[0]&2048&&s.set_custom_element_data(T,"clientstylingurl",E[11]),A[0]&128&&s.set_custom_element_data(T,"translationurl",E[7]),A[0]&256&&s.set_custom_element_data(T,"mbsource",E[8]),A[0]&1048592&&j!==(j="TabContent "+(E[4]=="true"?"TournamentTableDetails ":"DisplayNone")+" "+(E[20]!="leaderboard"?"hidden":""))&&s.attr(I,"class",j),E[12]?le?le.p(E,A):(le=Ua(E),le.c(),le.m(Se,null)):le&&(le.d(1),le=null),A[0]&1048576&&$e!==($e="TabContent Rules "+(E[20]!="rules"?"hidden":""))&&s.attr(Se,"class",$e),E[12]?ee?ee.p(E,A):(ee=Ga(E),ee.c(),ee.m(Ce,null)):ee&&(ee.d(1),ee=null),A[0]&1048576&&ye!==(ye="TabContent Games "+(E[20]!="games"?"hidden":""))&&s.attr(Ce,"class",ye),E[22]?ue?ue.p(E,A):(ue=Wa(E),ue.c(),ue.m(W,null)):ue&&(ue.d(1),ue=null),A[0]&4198400&&Re!==(Re="TournamentsPage "+(E[22]?"MiniMode":"")+" "+(E[12]?"hidden":""))&&s.attr(n,"class",Re),A[0]&4194304&&He!==(He=E[22]?"MiniTournamentPage":"TournamentsPage")&&s.attr(n,"part",He)},i:s.noop,o:s.noop,d(E){E&&(s.detach(t),s.detach(n)),V&&V.d(E),Q.d(),le&&le.d(),ee&&ee.d(),ue&&ue.d(),e[45](null),tt=!1,De()}}}let fs="pageTab";function xf(e,t,n){let r,a,i;s.component_subscribe(e,ds,c=>n(14,i=c));let{session:o=""}=t,{userid:l=""}=t,{tourid:u=""}=t,{endpoint:h=""}=t,{showleaderboard:d=""}=t,{cmsendpoint:g=""}=t,{lang:m=""}=t,{navigationbackbutton:x="Default"}=t,{currency:B="EUR"}=t,{tablelimit:k="30"}=t,{namemask:W=""}=t,{showunqualifiedplayer:fe="true"}=t,{mobiletablelimit:J="15"}=t,{updatetableintime:R="true"}=t,{viewmode:I=""}=t,{minscore:T=""}=t,{scorefractiondigit:j="2"}=t,{translationurl:Oe=""}=t,{mbsource:Se}=t,{leaderboardoffset:$e="0"}=t,{leaderboardlimit:ze="15"}=t,{keepbrowsercontext:Ce="false"}=t,{clientstyling:ye=""}=t,{clientstylingurl:et=""}=t,Re=!1,He="",tt=!0,De=[],V,Xe,Pe=window.navigator.userAgent,Q={},le=!1,ee,ue,E={},A=!1,pn="leaderboard",st,Et,ot,he,_n;bf({withLocale:"en",translations:{}});const $n=()=>{fetch(Oe).then(H=>H.json()).then(H=>{_n=H,Object.keys(H).forEach(Y=>{fr(Y,H[Y])})}).catch(H=>{console.log(H)})};Object.keys(Ra).forEach(c=>{fr(c,Ra[c])});const er=c=>{c&&Object.keys(c).forEach(H=>{fr(H,c[H])})},gn=["Rank","Player","Points","Prize"],f=c=>{const H=Number(j)||2;return{Rank:c.rank,Player:c.userID==He?"me":c.shortName,Points:c.score.toLocaleString("en-US",{minimumFractionDigits:H,maximumFractionDigits:H}),Prize:c.prizeName,Unqualified:c.unqualified,BetCount:c.betCount,userID:c.userID}},y=c=>{n(19,A=!1);let H=[];return c&&c.length>0&&c.forEach(Y=>{let Ne=f(Y);Y.userID==He&&(n(18,E=Ne),n(19,A=!0)),H.push(Ne)}),H},w=c=>{if(c.data)try{let H=JSON.parse(c.data);H.messageType=="TournamentUpdate"&&(window.postMessage({type:"UpdateTournamentView",tournamentData:H.item},window.location.href),n(12,V=H.item),O(H.item),K())}catch(H){console.error(H)}},b=(c,H)=>{let Y=`${h}/v1/tournaments/updates?filter=id=${c}&${H.toString()}`;ue=new Ha.EventSourcePolyfill(Y,{headers:{accept:"text/event-stream","X-SessionId":o}}),!1!="undefined"&&ue.addEventListener("message",w)},D=c=>{if(c.data)try{let H=c.data,Y=JSON.parse(H);if(!Y||!Y.items)return;let Ne=y(Y.items);window.postMessage({type:"CasinoTableData",tableData:Ne},window.location.href),n(19,A=Ne.filter($=>$.userID==He).length>0),Y.item&&(le=!0,n(17,Q=f(Y.item)),Q&&window.postMessage({type:"CasinoTableFirstRowData",tableData:Q},window.location.href));let ge=A?E.Rank:Q.Rank,Ae=Y.hasOwnProperty("total")&&st!=Y.total;Ae&&n(21,st=Y.total),(ge!=Et||Ae)&&(window.postMessage({type:`TournamentRankInfo_${u}`,rankInfo:{rank:ge,overallRank:st,prize:A?E.Prize||"-":Q.Prize||"-"}},window.location.href),Et=ge),A&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:E},window.location.href)}catch(H){console.error(H)}},M=(c,H)=>{let Y=`${h}/v1/tournaments/${c}/leaderboard/updates?HeartBeat=false&${H.toString()}`;ee||(ee=new Ha.EventSourcePolyfill(Y,{headers:{accept:"text/event-stream","X-SessionId":o}}),typeof ee!="undefined"&&(ee.addEventListener("open",D),ee.addEventListener("message",D),ee.addEventListener("error",D)))},O=c=>{window.postMessage({type:"TournamentsWalletsUpdate",wallet:c.wallet},window.location.href)},re=(c,H)=>{let Y=new URL(c+`/v1/tournaments/${H}`),Ne=new Headers({"X-SessionId":o});Y.searchParams.append("expand","games"),Y.searchParams.append("language",m),Y.searchParams.append("platform",Hr(Pe));let ge={method:"GET",headers:Ne};fetch(Y.href,ge).then(Ae=>Ae.json()).then(Ae=>{n(12,V=Ae.item),O(V),b(u,Y.searchParams)})},L=(c,H)=>{if(!Re)return;let Y=new URL(c+`/v1/tournaments/${H}/leaderboard`),Ne=new Headers;Y.searchParams.append("language",m);let ge=`includeUnqualifiedPlayer=${fe}`;if(ge=W?`${ge},shortNameMask=${W}`:ge,ge=T?`${ge},minscore=${T}`:ge,Y.searchParams.append("filter",ge),o){let $=We(Pe)==!0?J:k;Y.searchParams.append("pagination",`offset=0,limit=${$}`),Ne.append("X-SessionId",o)}Y.searchParams.append("platform",Hr(Pe)),fetch(Y,{method:"GET",headers:Ne}).then($=>$.json()).then($=>{Xe=y($.items),$.item&&!A&&(le=!0,n(17,Q=f($.item))),Et=A?E.Rank:Q.Rank,n(21,st=$.total),window.postMessage({type:"CasinoTableData",tableData:Xe},window.location.href),window.postMessage({type:"CasinoTableColumns",tableColumns:gn},window.location.href),le&&window.postMessage({type:"CasinoTableFirstRowData",tableData:Q},window.location.href),R==="true"&&M(H,Y.searchParams),A&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:E},window.location.href)})},z=c=>{if(!c.data||!c.data.type)return;const H=c.data.tid||"";switch(c.data.type){case"UserSessionID":Re=!0,c.data.session;break;case"PlayerID":He=c.data.playerID;break;case"TournamentsTabSwitch":H===fs&&n(20,pn=c.data.tab);break;case"TournamentThumbnailMounted":er(_n);break;case"TournamentsTabListenerLoaded":lt();break;case"TournamentsTableListenerLoaded":L(h,u);break;case"TournamentsRuleListenerLoaded":O(c.data);break;default:console.warn(`Unhandled message type: ${c.data.type}`);break}},K=()=>{V.state=="Unstarted"&&i("scheduled"),V.state=="Running"&&i("ongoing"),(V.state=="Closed"||V.state=="Closing")&&i("finished")},P=()=>{x=="Event"?window.postMessage({type:"RedirectBack"},window.location.href):x=="Default"&&window.history.back()},ne=()=>{window.postMessage({type:"OnCloseThumbnail"},window.location.href)},Ue=c=>{window.postMessage({type:"GotoFromTournamentsPage",pageType:c},window.location.href)},Dt=()=>{o.length>0&&o!="false"?(He=l,Re=!0):Re=!1,n(15,tt=!1)},Me=()=>{Ca(m),setTimeout(()=>{lt()},10)},pe=()=>{Ca(m),re(h,u)},Ie=()=>{try{fetch(`${g}/${u}`).then(c=>c.json()).then(c=>{c&&c.details&&n(16,De=c.details)})}catch(c){console.error(c)}},lt=()=>{window.postMessage({type:"TournamentsTabsLocalize",tabTitleTranslations:{leaderboard:i("leaderBoard"),rules:i("rules"),games:i("games")}},window.location.href)},It=()=>o&&o.length>10;s.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z),ee&&(ee.removeEventListener("open",D),ee.removeEventListener("message",D),ee.removeEventListener("error",D)),ue&&ue.removeEventListener("message",w)}));const qe=()=>P(),Nt=()=>ne(),_e=()=>{Ue("MyTournaments")};function $t(c){s.binding_callbacks[c?"unshift":"push"](()=>{he=c,n(13,he)})}return e.$$set=c=>{"session"in c&&n(0,o=c.session),"userid"in c&&n(1,l=c.userid),"tourid"in c&&n(2,u=c.tourid),"endpoint"in c&&n(3,h=c.endpoint),"showleaderboard"in c&&n(4,d=c.showleaderboard),"cmsendpoint"in c&&n(29,g=c.cmsendpoint),"lang"in c&&n(5,m=c.lang),"navigationbackbutton"in c&&n(30,x=c.navigationbackbutton),"currency"in c&&n(6,B=c.currency),"tablelimit"in c&&n(31,k=c.tablelimit),"namemask"in c&&n(32,W=c.namemask),"showunqualifiedplayer"in c&&n(33,fe=c.showunqualifiedplayer),"mobiletablelimit"in c&&n(34,J=c.mobiletablelimit),"updatetableintime"in c&&n(35,R=c.updatetableintime),"viewmode"in c&&n(36,I=c.viewmode),"minscore"in c&&n(37,T=c.minscore),"scorefractiondigit"in c&&n(38,j=c.scorefractiondigit),"translationurl"in c&&n(7,Oe=c.translationurl),"mbsource"in c&&n(8,Se=c.mbsource),"leaderboardoffset"in c&&n(39,$e=c.leaderboardoffset),"leaderboardlimit"in c&&n(40,ze=c.leaderboardlimit),"keepbrowsercontext"in c&&n(9,Ce=c.keepbrowsercontext),"clientstyling"in c&&n(10,ye=c.clientstyling),"clientstylingurl"in c&&n(11,et=c.clientstylingurl)},e.$$.update=()=>{e.$$.dirty[0]&3&&o&&l&&Dt(),e.$$.dirty[0]&32&&m&&Me(),e.$$.dirty[0]&128&&Oe&&$n(),e.$$.dirty[0]&45&&n(41,r=u&&h&&o&&m&&It()),e.$$.dirty[0]&12|e.$$.dirty[1]&1024&&r&&pe()&&L(h,u),e.$$.dirty[0]&536870916&&g&&u&&Ie(),e.$$.dirty[1]&32&&n(22,ot=I!="desktop"&&We(Pe)),e.$$.dirty[0]&9216&&ye&&he&&s.setClientStyling(he,ye),e.$$.dirty[0]&10240&&et&&he&&s.setClientStylingURL(he,et),e.$$.dirty[0]&8448&&Se&&he&&s.setStreamStyling(he,`${Se}.Style`),e.$$.dirty[0]&20480&&n(23,a=(V==null?void 0:V.minBetCount)||i("unlimited"))},[o,l,u,h,d,m,B,Oe,Se,Ce,ye,et,V,he,i,tt,De,Q,E,A,pn,st,ot,a,Pe,K,P,ne,Ue,g,x,k,W,fe,J,R,I,T,j,$e,ze,r,qe,Nt,_e,$t]}class cs extends s.SvelteComponent{constructor(t){super(),s.init(this,t,xf,Mf,s.safe_not_equal,{session:0,userid:1,tourid:2,endpoint:3,showleaderboard:4,cmsendpoint:29,lang:5,navigationbackbutton:30,currency:6,tablelimit:31,namemask:32,showunqualifiedplayer:33,mobiletablelimit:34,updatetableintime:35,viewmode:36,minscore:37,scorefractiondigit:38,translationurl:7,mbsource:8,leaderboardoffset:39,leaderboardlimit:40,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11},yf,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),s.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),s.flush()}get tourid(){return this.$$.ctx[2]}set tourid(t){this.$$set({tourid:t}),s.flush()}get endpoint(){return this.$$.ctx[3]}set endpoint(t){this.$$set({endpoint:t}),s.flush()}get showleaderboard(){return this.$$.ctx[4]}set showleaderboard(t){this.$$set({showleaderboard:t}),s.flush()}get cmsendpoint(){return this.$$.ctx[29]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),s.flush()}get lang(){return this.$$.ctx[5]}set lang(t){this.$$set({lang:t}),s.flush()}get navigationbackbutton(){return this.$$.ctx[30]}set navigationbackbutton(t){this.$$set({navigationbackbutton:t}),s.flush()}get currency(){return this.$$.ctx[6]}set currency(t){this.$$set({currency:t}),s.flush()}get tablelimit(){return this.$$.ctx[31]}set tablelimit(t){this.$$set({tablelimit:t}),s.flush()}get namemask(){return this.$$.ctx[32]}set namemask(t){this.$$set({namemask:t}),s.flush()}get showunqualifiedplayer(){return this.$$.ctx[33]}set showunqualifiedplayer(t){this.$$set({showunqualifiedplayer:t}),s.flush()}get mobiletablelimit(){return this.$$.ctx[34]}set mobiletablelimit(t){this.$$set({mobiletablelimit:t}),s.flush()}get updatetableintime(){return this.$$.ctx[35]}set updatetableintime(t){this.$$set({updatetableintime:t}),s.flush()}get viewmode(){return this.$$.ctx[36]}set viewmode(t){this.$$set({viewmode:t}),s.flush()}get minscore(){return this.$$.ctx[37]}set minscore(t){this.$$set({minscore:t}),s.flush()}get scorefractiondigit(){return this.$$.ctx[38]}set scorefractiondigit(t){this.$$set({scorefractiondigit:t}),s.flush()}get translationurl(){return this.$$.ctx[7]}set translationurl(t){this.$$set({translationurl:t}),s.flush()}get mbsource(){return this.$$.ctx[8]}set mbsource(t){this.$$set({mbsource:t}),s.flush()}get leaderboardoffset(){return this.$$.ctx[39]}set leaderboardoffset(t){this.$$set({leaderboardoffset:t}),s.flush()}get leaderboardlimit(){return this.$$.ctx[40]}set leaderboardlimit(t){this.$$set({leaderboardlimit:t}),s.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),s.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),s.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),s.flush()}}customElements.define("casino-tournaments-page-controller",s.create_custom_element(cs,{session:{},userid:{},tourid:{},endpoint:{},showleaderboard:{},cmsendpoint:{},lang:{},navigationbackbutton:{},currency:{},tablelimit:{},namemask:{},showunqualifiedplayer:{},mobiletablelimit:{},updatetableintime:{},viewmode:{},minscore:{},scorefractiondigit:{},translationurl:{},mbsource:{},leaderboardoffset:{},leaderboardlimit:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{}},[],[],!0));const Ef=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Rt;exports.$format=ds;exports.$locale=bt;exports.CasinoTournamentsPageController_ce=Ef;exports.addMessages=aa;exports.getDevice=Hr;exports.isMobile=We;