@everymatrix/casino-game-thumb-view 1.62.4 → 1.63.0

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.
@@ -0,0 +1,207 @@
1
+ function _typeof(o) {
2
+ "@babel/helpers - typeof";
3
+
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
+ return typeof o;
6
+ } : function (o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ function requiredArgs(required, args) {
12
+ if (args.length < required) {
13
+ throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
14
+ }
15
+ }
16
+
17
+ /**
18
+ * @name toDate
19
+ * @category Common Helpers
20
+ * @summary Convert the given argument to an instance of Date.
21
+ *
22
+ * @description
23
+ * Convert the given argument to an instance of Date.
24
+ *
25
+ * If the argument is an instance of Date, the function returns its clone.
26
+ *
27
+ * If the argument is a number, it is treated as a timestamp.
28
+ *
29
+ * If the argument is none of the above, the function returns Invalid Date.
30
+ *
31
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
32
+ *
33
+ * @param {Date|Number} argument - the value to convert
34
+ * @returns {Date} the parsed date in the local time zone
35
+ * @throws {TypeError} 1 argument required
36
+ *
37
+ * @example
38
+ * // Clone the date:
39
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
40
+ * //=> Tue Feb 11 2014 11:30:30
41
+ *
42
+ * @example
43
+ * // Convert the timestamp to date:
44
+ * const result = toDate(1392098430000)
45
+ * //=> Tue Feb 11 2014 11:30:30
46
+ */
47
+ function toDate(argument) {
48
+ requiredArgs(1, arguments);
49
+ var argStr = Object.prototype.toString.call(argument);
50
+
51
+ // Clone the date
52
+ if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
53
+ // Prevent the date to lose the milliseconds when passed to new Date() in IE10
54
+ return new Date(argument.getTime());
55
+ } else if (typeof argument === 'number' || argStr === '[object Number]') {
56
+ return new Date(argument);
57
+ } else {
58
+ if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
59
+ // eslint-disable-next-line no-console
60
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
61
+ // eslint-disable-next-line no-console
62
+ console.warn(new Error().stack);
63
+ }
64
+ return new Date(NaN);
65
+ }
66
+ }
67
+
68
+ /**
69
+ * @name differenceInMilliseconds
70
+ * @category Millisecond Helpers
71
+ * @summary Get the number of milliseconds between the given dates.
72
+ *
73
+ * @description
74
+ * Get the number of milliseconds between the given dates.
75
+ *
76
+ * @param {Date|Number} dateLeft - the later date
77
+ * @param {Date|Number} dateRight - the earlier date
78
+ * @returns {Number} the number of milliseconds
79
+ * @throws {TypeError} 2 arguments required
80
+ *
81
+ * @example
82
+ * // How many milliseconds are between
83
+ * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
84
+ * const result = differenceInMilliseconds(
85
+ * new Date(2014, 6, 2, 12, 30, 21, 700),
86
+ * new Date(2014, 6, 2, 12, 30, 20, 600)
87
+ * )
88
+ * //=> 1100
89
+ */
90
+ function differenceInMilliseconds(dateLeft, dateRight) {
91
+ requiredArgs(2, arguments);
92
+ return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
93
+ }
94
+
95
+ /**
96
+ * @name isAfter
97
+ * @category Common Helpers
98
+ * @summary Is the first date after the second one?
99
+ *
100
+ * @description
101
+ * Is the first date after the second one?
102
+ *
103
+ * @param {Date|Number} date - the date that should be after the other one to return true
104
+ * @param {Date|Number} dateToCompare - the date to compare with
105
+ * @returns {Boolean} the first date is after the second date
106
+ * @throws {TypeError} 2 arguments required
107
+ *
108
+ * @example
109
+ * // Is 10 July 1989 after 11 February 1987?
110
+ * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
111
+ * //=> true
112
+ */
113
+ function isAfter(dirtyDate, dirtyDateToCompare) {
114
+ requiredArgs(2, arguments);
115
+ var date = toDate(dirtyDate);
116
+ var dateToCompare = toDate(dirtyDateToCompare);
117
+ return date.getTime() > dateToCompare.getTime();
118
+ }
119
+
120
+ /**
121
+ * @name isBefore
122
+ * @category Common Helpers
123
+ * @summary Is the first date before the second one?
124
+ *
125
+ * @description
126
+ * Is the first date before the second one?
127
+ *
128
+ * @param {Date|Number} date - the date that should be before the other one to return true
129
+ * @param {Date|Number} dateToCompare - the date to compare with
130
+ * @returns {Boolean} the first date is before the second date
131
+ * @throws {TypeError} 2 arguments required
132
+ *
133
+ * @example
134
+ * // Is 10 July 1989 before 11 February 1987?
135
+ * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
136
+ * //=> false
137
+ */
138
+ function isBefore(dirtyDate, dirtyDateToCompare) {
139
+ requiredArgs(2, arguments);
140
+ var date = toDate(dirtyDate);
141
+ var dateToCompare = toDate(dirtyDateToCompare);
142
+ return date.getTime() < dateToCompare.getTime();
143
+ }
144
+
145
+ const DEFAULT_AMOUNT_SEPARATOR = ',';
146
+ /**
147
+ * @name numberWithSeparators
148
+ * @description A method that format number with seperator
149
+ * @param {number} value value to format
150
+ * @param {String} sep separator,default ','
151
+ * @returns {String} formated value
152
+ */
153
+ const numberWithSeparators = (value, sep = DEFAULT_AMOUNT_SEPARATOR) => {
154
+ if (value !== undefined && value !== null) {
155
+ return `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, sep);
156
+ }
157
+ return '';
158
+ };
159
+ /**
160
+ * @name isMobile
161
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
162
+ * @param {String} userAgent window.navigator.userAgent
163
+ * @returns {Boolean} true or false
164
+ */
165
+ const isMobile = (userAgent) => {
166
+ return !!(userAgent.toLowerCase().match(/android/i) ||
167
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
168
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
169
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
170
+ };
171
+ const addGameTag = (tags) => {
172
+ if ((tags === null || tags === void 0 ? void 0 : tags.length) === 0)
173
+ return '';
174
+ let tagName;
175
+ let differenceOfTime = 99999999999;
176
+ let firstToExpire;
177
+ const currentDate = new Date(Date.now());
178
+ tags.forEach((tag, index) => {
179
+ const startDateOfTag = new Date(tag.schedules[0].startTime);
180
+ const endDateOfTag = new Date(tag.schedules[0].endTime);
181
+ if (differenceInMilliseconds(new Date(endDateOfTag), new Date(currentDate)) < differenceOfTime) {
182
+ differenceOfTime = differenceInMilliseconds(new Date(endDateOfTag), new Date(currentDate));
183
+ firstToExpire = index;
184
+ }
185
+ if (isAfter(new Date(currentDate), new Date(startDateOfTag)) && isBefore(new Date(currentDate), new Date(endDateOfTag))) {
186
+ tagName = tags[firstToExpire].name;
187
+ }
188
+ });
189
+ return tagName;
190
+ };
191
+ const convertGicBaccaratUpdateItem = (oriItem) => {
192
+ var _a, _b;
193
+ return {
194
+ winner: oriItem.Winner,
195
+ color: oriItem.Color,
196
+ location: {
197
+ column: (_a = oriItem.Location) === null || _a === void 0 ? void 0 : _a.Column,
198
+ row: (_b = oriItem.Location) === null || _b === void 0 ? void 0 : _b.Row
199
+ },
200
+ ties: (oriItem.Ties) | 0,
201
+ score: oriItem.Score,
202
+ playerPair: oriItem.PlayerPair,
203
+ bankerPair: oriItem.BankerPair
204
+ };
205
+ };
206
+
207
+ export { _typeof as _, addGameTag as a, convertGicBaccaratUpdateItem as c, isMobile as i, numberWithSeparators as n, requiredArgs as r, toDate as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-game-thumb-view",
3
- "version": "1.62.4",
3
+ "version": "1.63.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,8 +0,0 @@
1
- //! moment.js
2
- //! version : 2.29.4
3
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
- //! license : MIT
5
- //! momentjs.com
6
- var t,n;function i(){return t.apply(null,arguments)}function e(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(s(t,n))return!1;return!0}function o(t){return void 0===t}function h(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,n){var i,e=[],r=t.length;for(i=0;i<r;++i)e.push(n(t[i],i));return e}function d(t,n){for(var i in n)s(n,i)&&(t[i]=n[i]);return s(n,"toString")&&(t.toString=n.toString),s(n,"valueOf")&&(t.valueOf=n.valueOf),t}function c(t,n,i,e){return En(t,n,i,e,!0).utc()}function l(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function m(t){if(null==t._isValid){var i=l(t),e=n.call(i.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&e);if(t._strict&&(r=r&&0===i.charsLeftOver&&0===i.unusedTokens.length&&void 0===i.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function v(t){var n=c(NaN);return null!=t?d(l(n),t):l(n).userInvalidated=!0,n}n=Array.prototype.some?Array.prototype.some:function(t){var n,i=Object(this),e=i.length>>>0;for(n=0;n<e;n++)if(n in i&&t.call(this,i[n],n,i))return!0;return!1};var Y=i.momentProperties=[],M=!1;function y(t,n){var i,e,r,s=Y.length;if(o(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),o(n._i)||(t._i=n._i),o(n._f)||(t._f=n._f),o(n._l)||(t._l=n._l),o(n._strict)||(t._strict=n._strict),o(n._tzm)||(t._tzm=n._tzm),o(n._isUTC)||(t._isUTC=n._isUTC),o(n._offset)||(t._offset=n._offset),o(n._pf)||(t._pf=l(n)),o(n._locale)||(t._locale=n._locale),s>0)for(i=0;i<s;i++)o(r=n[e=Y[i]])||(t[e]=r);return t}function D(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===M&&(M=!0,i.updateOffset(this),M=!1)}function g(t){return t instanceof D||null!=t&&null!=t._isAMomentObject}function S(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function w(t,n){var e=!0;return d((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),e){var r,u,o,h=[],a=arguments.length;for(u=0;u<a;u++){if(r="","object"==typeof arguments[u]){for(o in r+="\n["+u+"] ",arguments[0])s(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[u];h.push(r)}S(t+"\nArguments: "+Array.prototype.slice.call(h).join("")+"\n"+(new Error).stack),e=!1}return n.apply(this,arguments)}),n)}var N,p={};function b(t,n){null!=i.deprecationHandler&&i.deprecationHandler(t,n),p[t]||(S(n),p[t]=!0)}function k(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function T(t,n){var i,e=d({},t);for(i in n)s(n,i)&&(r(t[i])&&r(n[i])?(e[i]={},d(e[i],t[i]),d(e[i],n[i])):null!=n[i]?e[i]=n[i]:delete e[i]);for(i in t)s(t,i)&&!s(n,i)&&r(t[i])&&(e[i]=d({},e[i]));return e}function _(t){null!=t&&this.set(t)}function H(t,n,i){var e=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,n-e.length)).toString().substr(1)+e}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,N=Object.keys?Object.keys:function(t){var n,i=[];for(n in t)s(t,n)&&i.push(n);return i};var G=/(\[[^\[]*\])|(\\)?([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,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E={},x={};function F(t,n,i,e){var r=e;"string"==typeof e&&(r=function(){return this[e]()}),t&&(x[t]=r),n&&(x[n[0]]=function(){return H(r.apply(this,arguments),n[1],n[2])}),i&&(x[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function A(t,n){return t.isValid()?(n=O(n,t.localeData()),E[n]=E[n]||function(t){var n,i,e,r=t.match(G);for(n=0,i=r.length;n<i;n++)r[n]=x[r[n]]?x[r[n]]:(e=r[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(n){var e,s="";for(e=0;e<i;e++)s+=k(r[e])?r[e].call(n,t):r[e];return s}}(n),E[n](t)):t.localeData().invalidDate()}function O(t,n){var i=5;function e(t){return n.longDateFormat(t)||t}for(W.lastIndex=0;i>=0&&W.test(t);)t=t.replace(W,e),W.lastIndex=0,i-=1;return t}var L={};function j(t,n){var i=t.toLowerCase();L[i]=L[i+"s"]=L[n]=t}function R(t){return"string"==typeof t?L[t]||L[t.toLowerCase()]:void 0}function Z(t){var n,i,e={};for(i in t)s(t,i)&&(n=R(i))&&(e[n]=t[i]);return e}var I={};function C(t,n){I[t]=n}function $(t){return t%4==0&&t%100!=0||t%400==0}function U(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function P(t){var n=+t,i=0;return 0!==n&&isFinite(n)&&(i=U(n)),i}function z(t,n){return function(e){return null!=e?(J(this,t,e),i.updateOffset(this,n),this):q(this,t)}}function q(t,n){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+n]():NaN}function J(t,n,i){t.isValid()&&!isNaN(i)&&("FullYear"===n&&$(t.year())&&1===t.month()&&29===t.date()?(i=P(i),t._d["set"+(t._isUTC?"UTC":"")+n](i,t.month(),Ht(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+n](i))}var Q,B=/\d/,X=/\d\d/,K=/\d{3}/,V=/\d{4}/,tt=/[+-]?\d{6}/,nt=/\d\d?/,it=/\d\d\d\d?/,et=/\d\d\d\d\d\d?/,rt=/\d{1,3}/,st=/\d{1,4}/,ut=/[+-]?\d{1,6}/,ot=/\d+/,ht=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,ft=/Z|[+-]\d\d(?::?\d\d)?/gi,dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ct(t,n,i){Q[t]=k(n)?n:function(t){return t&&i?i:n}}function lt(t,n){return s(Q,t)?Q[t](n._strict,n._locale):new RegExp(mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,n,i,e,r){return n||i||e||r}))))}function mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var vt={};function Yt(t,n){var i,e,r=n;for("string"==typeof t&&(t=[t]),h(n)&&(r=function(t,i){i[n]=P(t)}),e=t.length,i=0;i<e;i++)vt[t[i]]=r}function Mt(t,n){Yt(t,(function(t,i,e,r){e._w=e._w||{},n(t,e._w,e,r)}))}function yt(t,n,i){null!=n&&s(vt,t)&&vt[t](n,i._a,i,t)}var Dt,gt=0,St=1,wt=2,Nt=3,pt=4,bt=5,kt=6,Tt=7,_t=8;function Ht(t,n){if(isNaN(t)||isNaN(n))return NaN;var i=(n%12+12)%12;return t+=(n-i)/12,1===i?$(t)?29:28:31-i%7%2}Dt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),F("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),j("month","M"),C("month",8),ct("M",nt),ct("MM",nt,X),ct("MMM",(function(t,n){return n.monthsShortRegex(t)})),ct("MMMM",(function(t,n){return n.monthsRegex(t)})),Yt(["M","MM"],(function(t,n){n[St]=P(t)-1})),Yt(["MMM","MMMM"],(function(t,n,i,e){var r=i._locale.monthsParse(t,e,i._strict);null!=r?n[St]=r:l(i).invalidMonth=t}));var Gt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Et=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xt=dt,Ft=dt;function At(t,n,i){var e,r,s,u=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],e=0;e<12;++e)s=c([2e3,e]),this._shortMonthsParse[e]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[e]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===n?-1!==(r=Dt.call(this._shortMonthsParse,u))?r:null:-1!==(r=Dt.call(this._longMonthsParse,u))?r:null:"MMM"===n?-1!==(r=Dt.call(this._shortMonthsParse,u))||-1!==(r=Dt.call(this._longMonthsParse,u))?r:null:-1!==(r=Dt.call(this._longMonthsParse,u))||-1!==(r=Dt.call(this._shortMonthsParse,u))?r:null}function Ot(t,n){var i;if(!t.isValid())return t;if("string"==typeof n)if(/^\d+$/.test(n))n=P(n);else if(!h(n=t.localeData().monthsParse(n)))return t;return i=Math.min(t.date(),Ht(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,i),t}function Lt(t){return null!=t?(Ot(this,t),i.updateOffset(this,!0),this):q(this,"Month")}function jt(){function t(t,n){return n.length-t.length}var n,i,e=[],r=[],s=[];for(n=0;n<12;n++)i=c([2e3,n]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)e[n]=mt(e[n]),r[n]=mt(r[n]);for(n=0;n<24;n++)s[n]=mt(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Rt(t){return $(t)?366:365}F("Y",0,0,(function(){var t=this.year();return t<=9999?H(t,4):"+"+t})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),j("year","y"),C("year",1),ct("Y",ht),ct("YY",nt,X),ct("YYYY",st,V),ct("YYYYY",ut,tt),ct("YYYYYY",ut,tt),Yt(["YYYYY","YYYYYY"],gt),Yt("YYYY",(function(t,n){n[gt]=2===t.length?i.parseTwoDigitYear(t):P(t)})),Yt("YY",(function(t,n){n[gt]=i.parseTwoDigitYear(t)})),Yt("Y",(function(t,n){n[gt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return P(t)+(P(t)>68?1900:2e3)};var Zt=z("FullYear",!0);function It(t,n,i,e,r,s,u){var o;return t<100&&t>=0?(o=new Date(t+400,n,i,e,r,s,u),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,n,i,e,r,s,u),o}function Ct(t){var n,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,n=new Date(Date.UTC.apply(null,i)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t)):n=new Date(Date.UTC.apply(null,arguments)),n}function $t(t,n,i){var e=7+n-i;return-(7+Ct(t,0,e).getUTCDay()-n)%7+e-1}function Ut(t,n,i,e,r){var s,u,o=1+7*(n-1)+(7+i-e)%7+$t(t,e,r);return o<=0?u=Rt(s=t-1)+o:o>Rt(t)?(s=t+1,u=o-Rt(t)):(s=t,u=o),{year:s,dayOfYear:u}}function Pt(t,n,i){var e,r,s=$t(t.year(),n,i),u=Math.floor((t.dayOfYear()-s-1)/7)+1;return u<1?e=u+zt(r=t.year()-1,n,i):u>zt(t.year(),n,i)?(e=u-zt(t.year(),n,i),r=t.year()+1):(r=t.year(),e=u),{week:e,year:r}}function zt(t,n,i){var e=$t(t,n,i),r=$t(t+1,n,i);return(Rt(t)-e+r)/7}function qt(t,n){return t.slice(n,7).concat(t.slice(0,n))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),C("week",5),C("isoWeek",5),ct("w",nt),ct("ww",nt,X),ct("W",nt),ct("WW",nt,X),Mt(["w","ww","W","WW"],(function(t,n,i,e){n[e.substr(0,1)]=P(t)})),F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),C("day",11),C("weekday",11),C("isoWeekday",11),ct("d",nt),ct("e",nt),ct("E",nt),ct("dd",(function(t,n){return n.weekdaysMinRegex(t)})),ct("ddd",(function(t,n){return n.weekdaysShortRegex(t)})),ct("dddd",(function(t,n){return n.weekdaysRegex(t)})),Mt(["dd","ddd","dddd"],(function(t,n,i,e){var r=i._locale.weekdaysParse(t,e,i._strict);null!=r?n.d=r:l(i).invalidWeekday=t})),Mt(["d","e","E"],(function(t,n,i,e){n[e]=P(t)}));var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xt=dt,Kt=dt,Vt=dt;function tn(t,n,i){var e,r,s,u=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],e=0;e<7;++e)s=c([2e3,1]).day(e),this._minWeekdaysParse[e]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[e]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[e]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===n?-1!==(r=Dt.call(this._weekdaysParse,u))?r:null:"ddd"===n?-1!==(r=Dt.call(this._shortWeekdaysParse,u))?r:null:-1!==(r=Dt.call(this._minWeekdaysParse,u))?r:null:"dddd"===n?-1!==(r=Dt.call(this._weekdaysParse,u))||-1!==(r=Dt.call(this._shortWeekdaysParse,u))||-1!==(r=Dt.call(this._minWeekdaysParse,u))?r:null:"ddd"===n?-1!==(r=Dt.call(this._shortWeekdaysParse,u))||-1!==(r=Dt.call(this._weekdaysParse,u))||-1!==(r=Dt.call(this._minWeekdaysParse,u))?r:null:-1!==(r=Dt.call(this._minWeekdaysParse,u))||-1!==(r=Dt.call(this._weekdaysParse,u))||-1!==(r=Dt.call(this._shortWeekdaysParse,u))?r:null}function nn(){function t(t,n){return n.length-t.length}var n,i,e,r,s,u=[],o=[],h=[],a=[];for(n=0;n<7;n++)i=c([2e3,1]).day(n),e=mt(this.weekdaysMin(i,"")),r=mt(this.weekdaysShort(i,"")),s=mt(this.weekdays(i,"")),u.push(e),o.push(r),h.push(s),a.push(e),a.push(r),a.push(s);u.sort(t),o.sort(t),h.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function en(){return this.hours()%12||12}function rn(t,n){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)}))}function sn(t,n){return n._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,en),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+en.apply(this)+H(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+en.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+H(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)})),rn("a",!0),rn("A",!1),j("hour","h"),C("hour",13),ct("a",sn),ct("A",sn),ct("H",nt),ct("h",nt),ct("k",nt),ct("HH",nt,X),ct("hh",nt,X),ct("kk",nt,X),ct("hmm",it),ct("hmmss",et),ct("Hmm",it),ct("Hmmss",et),Yt(["H","HH"],Nt),Yt(["k","kk"],(function(t,n){var i=P(t);n[Nt]=24===i?0:i})),Yt(["a","A"],(function(t,n,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Yt(["h","hh"],(function(t,n,i){n[Nt]=P(t),l(i).bigHour=!0})),Yt("hmm",(function(t,n,i){var e=t.length-2;n[Nt]=P(t.substr(0,e)),n[pt]=P(t.substr(e)),l(i).bigHour=!0})),Yt("hmmss",(function(t,n,i){var e=t.length-4,r=t.length-2;n[Nt]=P(t.substr(0,e)),n[pt]=P(t.substr(e,2)),n[bt]=P(t.substr(r)),l(i).bigHour=!0})),Yt("Hmm",(function(t,n){var i=t.length-2;n[Nt]=P(t.substr(0,i)),n[pt]=P(t.substr(i))})),Yt("Hmmss",(function(t,n){var i=t.length-4,e=t.length-2;n[Nt]=P(t.substr(0,i)),n[pt]=P(t.substr(i,2)),n[bt]=P(t.substr(e))}));var un,on=z("Hours",!0),hn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Gt,monthsShort:Wt,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:Bt,weekdaysShort:Qt,meridiemParse:/[ap]\.?m?\.?/i},an={},fn={};function dn(t,n){var i,e=Math.min(t.length,n.length);for(i=0;i<e;i+=1)if(t[i]!==n[i])return i;return e}function cn(t){return t?t.toLowerCase().replace("_","-"):t}function ln(t){var n=null;if(void 0===an[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{n=un._abbr,require("./locale/"+t),mn(n)}catch(n){an[t]=null}return an[t]}function mn(t,n){var i;return t&&((i=o(n)?Yn(t):vn(t,n))?un=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),un._abbr}function vn(t,n){if(null!==n){var i,e=hn;if(n.abbr=t,null!=an[t])b("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),e=an[t]._config;else if(null!=n.parentLocale)if(null!=an[n.parentLocale])e=an[n.parentLocale]._config;else{if(null==(i=ln(n.parentLocale)))return fn[n.parentLocale]||(fn[n.parentLocale]=[]),fn[n.parentLocale].push({name:t,config:n}),null;e=i._config}return an[t]=new _(T(e,n)),fn[t]&&fn[t].forEach((function(t){vn(t.name,t.config)})),mn(t),an[t]}return delete an[t],null}function Yn(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return un;if(!e(t)){if(n=ln(t))return n;t=[t]}return function(t){for(var n,i,e,r,s=0;s<t.length;){for(n=(r=cn(t[s]).split("-")).length,i=(i=cn(t[s+1]))?i.split("-"):null;n>0;){if(e=ln(r.slice(0,n).join("-")))return e;if(i&&i.length>=n&&dn(r,i)>=n-1)break;n--}s++}return un}(t)}function Mn(t){var n,i=t._a;return i&&-2===l(t).overflow&&(n=i[St]<0||i[St]>11?St:i[wt]<1||i[wt]>Ht(i[gt],i[St])?wt:i[Nt]<0||i[Nt]>24||24===i[Nt]&&(0!==i[pt]||0!==i[bt]||0!==i[kt])?Nt:i[pt]<0||i[pt]>59?pt:i[bt]<0||i[bt]>59?bt:i[kt]<0||i[kt]>999?kt:-1,l(t)._overflowDayOfYear&&(n<gt||n>wt)&&(n=wt),l(t)._overflowWeeks&&-1===n&&(n=Tt),l(t)._overflowWeekday&&-1===n&&(n=_t),l(t).overflow=n),t}var yn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["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]],wn=[["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/]],Nn=/^\/?Date\((-?\d+)/i,pn=/^(?:(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}))$/,bn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kn(t){var n,i,e,r,s,u,o=t._i,h=yn.exec(o)||Dn.exec(o),a=Sn.length,f=wn.length;if(h){for(l(t).iso=!0,n=0,i=a;n<i;n++)if(Sn[n][1].exec(h[1])){r=Sn[n][0],e=!1!==Sn[n][2];break}if(null==r)return void(t._isValid=!1);if(h[3]){for(n=0,i=f;n<i;n++)if(wn[n][1].exec(h[3])){s=(h[2]||" ")+wn[n][0];break}if(null==s)return void(t._isValid=!1)}if(!e&&null!=s)return void(t._isValid=!1);if(h[4]){if(!gn.exec(h[4]))return void(t._isValid=!1);u="Z"}t._f=r+(s||"")+(u||""),Gn(t)}else t._isValid=!1}function Tn(t){var n,i,e,r,s,u,o,h,a,f=pn.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(f){if(i=f[3],e=f[2],r=f[5],s=f[6],u=f[7],o=[(h=f[4],a=parseInt(h,10),a<=49?2e3+a:a<=999?1900+a:a),Wt.indexOf(i),parseInt(e,10),parseInt(r,10),parseInt(s,10)],u&&o.push(parseInt(u,10)),!function(t,n,i){return!t||Qt.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(l(i).weekdayMismatch=!0,i._isValid=!1,!1)}(f[1],n=o,t))return;t._a=n,t._tzm=function(t,n,i){if(t)return bn[t];if(n)return 0;var e=parseInt(i,10),r=e%100;return(e-r)/100*60+r}(f[8],f[9],f[10]),t._d=Ct.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),l(t).rfc2822=!0}else t._isValid=!1}function _n(t,n,i){return null!=t?t:null!=n?n:i}function Hn(t){var n,e,r,s,u,o=[];if(!t._d){for(r=function(t){var n=new Date(i.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t),t._w&&null==t._a[wt]&&null==t._a[St]&&function(t){var n,i,e,r,s,u,o,h,a;null!=(n=t._w).GG||null!=n.W||null!=n.E?(s=1,u=4,i=_n(n.GG,t._a[gt],Pt(xn(),1,4).year),e=_n(n.W,1),((r=_n(n.E,1))<1||r>7)&&(h=!0)):(s=t._locale._week.dow,u=t._locale._week.doy,a=Pt(xn(),s,u),i=_n(n.gg,t._a[gt],a.year),e=_n(n.w,a.week),null!=n.d?((r=n.d)<0||r>6)&&(h=!0):null!=n.e?(r=n.e+s,(n.e<0||n.e>6)&&(h=!0)):r=s),e<1||e>zt(i,s,u)?l(t)._overflowWeeks=!0:null!=h?l(t)._overflowWeekday=!0:(o=Ut(i,e,r,s,u),t._a[gt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(u=_n(t._a[gt],r[gt]),(t._dayOfYear>Rt(u)||0===t._dayOfYear)&&(l(t)._overflowDayOfYear=!0),e=Ct(u,0,t._dayOfYear),t._a[St]=e.getUTCMonth(),t._a[wt]=e.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=o[n]=r[n];for(;n<7;n++)t._a[n]=o[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[Nt]&&0===t._a[pt]&&0===t._a[bt]&&0===t._a[kt]&&(t._nextDay=!0,t._a[Nt]=0),t._d=(t._useUTC?Ct:It).apply(null,o),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Nt]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(l(t).weekdayMismatch=!0)}}function Gn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],l(t).empty=!0;var n,e,r,s,u,o,h,a=""+t._i,f=a.length,d=0;for(h=(r=O(t._f,t._locale).match(G)||[]).length,n=0;n<h;n++)(e=(a.match(lt(s=r[n],t))||[])[0])&&((u=a.substr(0,a.indexOf(e))).length>0&&l(t).unusedInput.push(u),a=a.slice(a.indexOf(e)+e.length),d+=e.length),x[s]?(e?l(t).empty=!1:l(t).unusedTokens.push(s),yt(s,e,t)):t._strict&&!e&&l(t).unusedTokens.push(s);l(t).charsLeftOver=f-d,a.length>0&&l(t).unusedInput.push(a),t._a[Nt]<=12&&!0===l(t).bigHour&&t._a[Nt]>0&&(l(t).bigHour=void 0),l(t).parsedDateParts=t._a.slice(0),l(t).meridiem=t._meridiem,t._a[Nt]=function(t,n,i){var e;return null==i?n:null!=t.meridiemHour?t.meridiemHour(n,i):null!=t.isPM?((e=t.isPM(i))&&n<12&&(n+=12),e||12!==n||(n=0),n):n}(t._locale,t._a[Nt],t._meridiem),null!==(o=l(t).era)&&(t._a[gt]=t._locale.erasConvertYear(o,t._a[gt])),Hn(t),Mn(t)}else Tn(t);else kn(t)}function Wn(t){var n=t._i,s=t._f;return t._locale=t._locale||Yn(t._l),null===n||void 0===s&&""===n?v({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),g(n)?new D(Mn(n)):(a(n)?t._d=n:e(s)?function(t){var n,i,e,r,s,u,o=!1,h=t._f.length;if(0===h)return l(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<h;r++)s=0,u=!1,n=y({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[r],Gn(n),m(n)&&(u=!0),s+=l(n).charsLeftOver,s+=10*l(n).unusedTokens.length,l(n).score=s,o?s<e&&(e=s,i=n):(null==e||s<e||u)&&(e=s,i=n,u&&(o=!0));d(t,i||n)}(t):s?Gn(t):function(t){var n=t._i;o(n)?t._d=new Date(i.now()):a(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(t){var n=Nn.exec(t._i);null===n?(kn(t),!1===t._isValid&&(delete t._isValid,Tn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+n[1])}(t):e(n)?(t._a=f(n.slice(0),(function(t){return parseInt(t,10)})),Hn(t)):r(n)?function(t){if(!t._d){var n=Z(t._i);t._a=f([n.year,n.month,void 0===n.day?n.date:n.day,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),Hn(t)}}(t):h(n)?t._d=new Date(n):i.createFromInputFallback(t)}(t),m(t)||(t._d=null),t))}function En(t,n,i,s,o){var h,a={};return!0!==n&&!1!==n||(s=n,n=void 0),!0!==i&&!1!==i||(s=i,i=void 0),(r(t)&&u(t)||e(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=i,a._i=t,a._f=n,a._strict=s,(h=new D(Mn(Wn(a))))._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function xn(t,n,i,e){return En(t,n,i,e,!1)}i.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Fn=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()})),An=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()}));function On(t,n){var i,r;if(1===n.length&&e(n[0])&&(n=n[0]),!n.length)return xn();for(i=n[0],r=1;r<n.length;++r)n[r].isValid()&&!n[r][t](i)||(i=n[r]);return i}var Ln=["year","quarter","month","week","day","hour","minute","second","millisecond"];function jn(t){var n=Z(t),i=n.year||0,e=n.quarter||0,r=n.month||0,u=n.week||n.isoWeek||0,o=n.day||0,h=n.hour||0,a=n.minute||0,f=n.second||0,d=n.millisecond||0;this._isValid=function(t){var n,i,e=!1,r=Ln.length;for(n in t)if(s(t,n)&&(-1===Dt.call(Ln,n)||null!=t[n]&&isNaN(t[n])))return!1;for(i=0;i<r;++i)if(t[Ln[i]]){if(e)return!1;parseFloat(t[Ln[i]])!==P(t[Ln[i]])&&(e=!0)}return!0}(n),this._milliseconds=+d+1e3*f+6e4*a+1e3*h*60*60,this._days=+o+7*u,this._months=+r+3*e+12*i,this._data={},this._locale=Yn(),this._bubble()}function Rn(t){return t instanceof jn}function Zn(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function In(t,n){F(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+H(~~(t/60),2)+n+H(~~t%60,2)}))}In("Z",":"),In("ZZ",""),ct("Z",ft),ct("ZZ",ft),Yt(["Z","ZZ"],(function(t,n,i){i._useUTC=!0,i._tzm=$n(ft,t)}));var Cn=/([\+\-]|\d\d)/gi;function $n(t,n){var i,e,r=(n||"").match(t);return null===r?null:0===(e=60*(i=((r[r.length-1]||[])+"").match(Cn)||["-",0,0])[1]+P(i[2]))?0:"+"===i[0]?e:-e}function Un(t,n){var e,r;return n._isUTC?(e=n.clone(),r=(g(t)||a(t)?t.valueOf():xn(t).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+r),i.updateOffset(e,!1),e):xn(t).local()}function Pn(t){return-Math.round(t._d.getTimezoneOffset())}function zn(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var qn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qn(t,n){var i,e,r,u,o,a,f=t,d=null;return Rn(t)?f={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(f={},n?f[n]=+t:f.milliseconds=+t):(d=qn.exec(t))?(i="-"===d[1]?-1:1,f={y:0,d:P(d[wt])*i,h:P(d[Nt])*i,m:P(d[pt])*i,s:P(d[bt])*i,ms:P(Zn(1e3*d[kt]))*i}):(d=Jn.exec(t))?f={y:Bn(d[2],i="-"===d[1]?-1:1),M:Bn(d[3],i),w:Bn(d[4],i),d:Bn(d[5],i),h:Bn(d[6],i),m:Bn(d[7],i),s:Bn(d[8],i)}:null==f?f={}:"object"==typeof f&&("from"in f||"to"in f)&&(u=xn(f.from),o=xn(f.to),r=u.isValid()&&o.isValid()?(o=Un(o,u),u.isBefore(o)?a=Xn(u,o):((a=Xn(o,u)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(f={}).ms=r.milliseconds,f.M=r.months),e=new jn(f),Rn(t)&&s(t,"_locale")&&(e._locale=t._locale),Rn(t)&&s(t,"_isValid")&&(e._isValid=t._isValid),e}function Bn(t,n){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*n}function Xn(t,n){var i={};return i.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(i.months,"M").isAfter(n)&&--i.months,i.milliseconds=+n-+t.clone().add(i.months,"M"),i}function Kn(t,n){return function(i,e){var r;return null===e||isNaN(+e)||(b(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=e,e=r),Vn(this,Qn(i,e),t),this}}function Vn(t,n,e,r){var s=n._milliseconds,u=Zn(n._days),o=Zn(n._months);t.isValid()&&(r=null==r||r,o&&Ot(t,q(t,"Month")+o*e),u&&J(t,"Date",q(t,"Date")+u*e),s&&t._d.setTime(t._d.valueOf()+s*e),r&&i.updateOffset(t,u||o))}Qn.fn=jn.prototype,Qn.invalid=function(){return Qn(NaN)};var ti=Kn(1,"add"),ni=Kn(-1,"subtract");function ii(t){return"string"==typeof t||t instanceof String}function ei(t,n){if(t.date()<n.date())return-ei(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),e=t.clone().add(i,"months");return-(i+(n-e<0?(n-e)/(e-t.clone().add(i-1,"months")):(n-e)/(t.clone().add(i+1,"months")-e)))||0}function ri(t){var n;return void 0===t?this._locale._abbr:(null!=(n=Yn(t))&&(this._locale=n),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ui(){return this._locale}var oi=1e3,hi=6e4,ai=36e5,fi=126227808e5;function di(t,n){return(t%n+n)%n}function ci(t,n,i){return t<100&&t>=0?new Date(t+400,n,i)-fi:new Date(t,n,i).valueOf()}function li(t,n,i){return t<100&&t>=0?Date.UTC(t+400,n,i)-fi:Date.UTC(t,n,i)}function mi(t,n){return n.erasAbbrRegex(t)}function vi(){var t,n,i=[],e=[],r=[],s=[],u=this.eras();for(t=0,n=u.length;t<n;++t)e.push(mt(u[t].name)),i.push(mt(u[t].abbr)),r.push(mt(u[t].narrow)),s.push(mt(u[t].name)),s.push(mt(u[t].abbr)),s.push(mt(u[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Yi(t,n){F(0,[t,t.length],0,n)}function Mi(t,n,i,e,r){var s;return null==t?Pt(this,e,r).year:(n>(s=zt(t,e,r))&&(n=s),yi.call(this,t,n,i,e,r))}function yi(t,n,i,e,r){var s=Ut(t,n,i,e,r),u=Ct(s.year,0,s.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),ct("N",mi),ct("NN",mi),ct("NNN",mi),ct("NNNN",(function(t,n){return n.erasNameRegex(t)})),ct("NNNNN",(function(t,n){return n.erasNarrowRegex(t)})),Yt(["N","NN","NNN","NNNN","NNNNN"],(function(t,n,i,e){var r=i._locale.erasParse(t,e,i._strict);r?l(i).era=r:l(i).invalidEra=t})),ct("y",ot),ct("yy",ot),ct("yyy",ot),ct("yyyy",ot),ct("yo",(function(t,n){return n._eraYearOrdinalRegex||ot})),Yt(["y","yy","yyy","yyyy"],gt),Yt(["yo"],(function(t,n,i){var e;i._locale._eraYearOrdinalRegex&&(e=t.match(i._locale._eraYearOrdinalRegex)),n[gt]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,e):parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Yi("gggg","weekYear"),Yi("ggggg","weekYear"),Yi("GGGG","isoWeekYear"),Yi("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),C("weekYear",1),C("isoWeekYear",1),ct("G",ht),ct("g",ht),ct("GG",nt,X),ct("gg",nt,X),ct("GGGG",st,V),ct("gggg",st,V),ct("GGGGG",ut,tt),ct("ggggg",ut,tt),Mt(["gggg","ggggg","GGGG","GGGGG"],(function(t,n,i,e){n[e.substr(0,2)]=P(t)})),Mt(["gg","GG"],(function(t,n,e,r){n[r]=i.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),j("quarter","Q"),C("quarter",7),ct("Q",B),Yt("Q",(function(t,n){n[St]=3*(P(t)-1)})),F("D",["DD",2],"Do","date"),j("date","D"),C("date",9),ct("D",nt),ct("DD",nt,X),ct("Do",(function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient})),Yt(["D","DD"],wt),Yt("Do",(function(t,n){n[wt]=P(t.match(nt)[0])}));var Di=z("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),C("dayOfYear",4),ct("DDD",rt),ct("DDDD",K),Yt(["DDD","DDDD"],(function(t,n,i){i._dayOfYear=P(t)})),F("m",["mm",2],0,"minute"),j("minute","m"),C("minute",14),ct("m",nt),ct("mm",nt,X),Yt(["m","mm"],pt);var gi=z("Minutes",!1);F("s",["ss",2],0,"second"),j("second","s"),C("second",15),ct("s",nt),ct("ss",nt,X),Yt(["s","ss"],bt);var Si,wi,Ni=z("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),C("millisecond",16),ct("S",rt,B),ct("SS",rt,X),ct("SSS",rt,K),Si="SSSS";Si.length<=9;Si+="S")ct(Si,ot);function pi(t,n){n[kt]=P(1e3*("0."+t))}for(Si="S";Si.length<=9;Si+="S")Yt(Si,pi);wi=z("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var bi=D.prototype;function ki(t){return t}bi.add=ti,bi.calendar=function(t,n){var o;1===arguments.length&&(arguments[0]?g(o=arguments[0])||a(o)||ii(o)||h(o)||function(t){var n=e(t),i=!1;return n&&(i=0===t.filter((function(n){return!h(n)&&ii(t)})).length),n&&i}(o)||function(t){var n,i=r(t)&&!u(t),e=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h=o.length;for(n=0;n<h;n+=1)e=e||s(t,o[n]);return i&&e}(o)||null==o?(t=arguments[0],n=void 0):function(t){var n,i=r(t)&&!u(t),e=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n=0;n<o.length;n+=1)e=e||s(t,o[n]);return i&&e}(arguments[0])&&(n=arguments[0],t=void 0):(t=void 0,n=void 0));var f=t||xn(),d=Un(f,this).startOf("day"),c=i.calendarFormat(this,d)||"sameElse",l=n&&(k(n[c])?n[c].call(this,f):n[c]);return this.format(l||this.localeData().calendar(c,this,xn(f)))},bi.clone=function(){return new D(this)},bi.diff=function(t,n,i){var e,r,s;if(!this.isValid())return NaN;if(!(e=Un(t,this)).isValid())return NaN;switch(r=6e4*(e.utcOffset()-this.utcOffset()),n=R(n)){case"year":s=ei(this,e)/12;break;case"month":s=ei(this,e);break;case"quarter":s=ei(this,e)/3;break;case"second":s=(this-e)/1e3;break;case"minute":s=(this-e)/6e4;break;case"hour":s=(this-e)/36e5;break;case"day":s=(this-e-r)/864e5;break;case"week":s=(this-e-r)/6048e5;break;default:s=this-e}return i?s:U(s)},bi.endOf=function(t){var n,e;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?li:ci,t){case"year":n=e(this.year()+1,0,1)-1;break;case"quarter":n=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=e(this.year(),this.month()+1,1)-1;break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=ai-di(n+(this._isUTC?0:this.utcOffset()*hi),ai)-1;break;case"minute":n=this._d.valueOf(),n+=hi-di(n,hi)-1;break;case"second":n=this._d.valueOf(),n+=oi-di(n,oi)-1}return this._d.setTime(n),i.updateOffset(this,!0),this},bi.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var n=A(this,t);return this.localeData().postformat(n)},bi.from=function(t,n){return this.isValid()&&(g(t)&&t.isValid()||xn(t).isValid())?Qn({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},bi.fromNow=function(t){return this.from(xn(),t)},bi.to=function(t,n){return this.isValid()&&(g(t)&&t.isValid()||xn(t).isValid())?Qn({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},bi.toNow=function(t){return this.to(xn(),t)},bi.get=function(t){return k(this[t=R(t)])?this[t]():this},bi.invalidAt=function(){return l(this).overflow},bi.isAfter=function(t,n){var i=g(t)?t:xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=R(n)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(n).valueOf())},bi.isBefore=function(t,n){var i=g(t)?t:xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=R(n)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(n).valueOf()<i.valueOf())},bi.isBetween=function(t,n,i,e){var r=g(t)?t:xn(t),s=g(n)?n:xn(n);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(e=e||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===e[1]?this.isBefore(s,i):!this.isAfter(s,i))},bi.isSame=function(t,n){var i,e=g(t)?t:xn(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=R(n)||"millisecond")?this.valueOf()===e.valueOf():(i=e.valueOf(),this.clone().startOf(n).valueOf()<=i&&i<=this.clone().endOf(n).valueOf()))},bi.isSameOrAfter=function(t,n){return this.isSame(t,n)||this.isAfter(t,n)},bi.isSameOrBefore=function(t,n){return this.isSame(t,n)||this.isBefore(t,n)},bi.isValid=function(){return m(this)},bi.lang=si,bi.locale=ri,bi.localeData=ui,bi.max=An,bi.min=Fn,bi.parsingFlags=function(){return d({},l(this))},bi.set=function(t,n){if("object"==typeof t){var i,e=function(t){var n,i=[];for(n in t)s(t,n)&&i.push({unit:n,priority:I[n]});return i.sort((function(t,n){return t.priority-n.priority})),i}(t=Z(t)),r=e.length;for(i=0;i<r;i++)this[e[i].unit](t[e[i].unit])}else if(k(this[t=R(t)]))return this[t](n);return this},bi.startOf=function(t){var n,e;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?li:ci,t){case"year":n=e(this.year(),0,1);break;case"quarter":n=e(this.year(),this.month()-this.month()%3,1);break;case"month":n=e(this.year(),this.month(),1);break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=e(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=di(n+(this._isUTC?0:this.utcOffset()*hi),ai);break;case"minute":n=this._d.valueOf(),n-=di(n,hi);break;case"second":n=this._d.valueOf(),n-=di(n,oi)}return this._d.setTime(n),i.updateOffset(this,!0),this},bi.subtract=ni,bi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},bi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},bi.toDate=function(){return new Date(this.valueOf())},bi.toISOString=function(t){if(!this.isValid())return null;var n=!0!==t,i=n?this.clone().utc():this;return i.year()<0||i.year()>9999?A(i,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(i,"Z")):A(i,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},bi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,n,i="moment",e="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+i+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(bi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),bi.toJSON=function(){return this.isValid()?this.toISOString():null},bi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},bi.unix=function(){return Math.floor(this.valueOf()/1e3)},bi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},bi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},bi.eraName=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].name;if(e[t].until<=i&&i<=e[t].since)return e[t].name}return""},bi.eraNarrow=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].narrow;if(e[t].until<=i&&i<=e[t].since)return e[t].narrow}return""},bi.eraAbbr=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].abbr;if(e[t].until<=i&&i<=e[t].since)return e[t].abbr}return""},bi.eraYear=function(){var t,n,e,r,s=this.localeData().eras();for(t=0,n=s.length;t<n;++t)if(e=s[t].since<=s[t].until?1:-1,r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return(this.year()-i(s[t].since).year())*e+s[t].offset;return this.year()},bi.year=Zt,bi.isLeapYear=function(){return $(this.year())},bi.weekYear=function(t){return Mi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},bi.isoWeekYear=function(t){return Mi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},bi.quarter=bi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},bi.month=Lt,bi.daysInMonth=function(){return Ht(this.year(),this.month())},bi.week=bi.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")},bi.isoWeek=bi.isoWeeks=function(t){var n=Pt(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")},bi.weeksInYear=function(){var t=this.localeData()._week;return zt(this.year(),t.dow,t.doy)},bi.weeksInWeekYear=function(){var t=this.localeData()._week;return zt(this.weekYear(),t.dow,t.doy)},bi.isoWeeksInYear=function(){return zt(this.year(),1,4)},bi.isoWeeksInISOWeekYear=function(){return zt(this.isoWeekYear(),1,4)},bi.date=Di,bi.day=bi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,n){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-n,"d")):n},bi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")},bi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=function(t,n){return"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},bi.dayOfYear=function(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")},bi.hour=bi.hours=on,bi.minute=bi.minutes=gi,bi.second=bi.seconds=Ni,bi.millisecond=bi.milliseconds=wi,bi.utcOffset=function(t,n,e){var r,s=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=$n(ft,t)))return this}else Math.abs(t)<16&&!e&&(t*=60);return!this._isUTC&&n&&(r=Pn(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==t&&(!n||this._changeInProgress?Vn(this,Qn(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Pn(this)},bi.utc=function(t){return this.utcOffset(0,t)},bi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Pn(this),"m")),this},bi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=$n(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},bi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?xn(t).utcOffset():0,(this.utcOffset()-t)%60==0)},bi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},bi.isLocal=function(){return!!this.isValid()&&!this._isUTC},bi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},bi.isUtc=zn,bi.isUTC=zn,bi.zoneAbbr=function(){return this._isUTC?"UTC":""},bi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},bi.dates=w("dates accessor is deprecated. Use date instead.",Di),bi.months=w("months accessor is deprecated. Use month instead",Lt),bi.years=w("years accessor is deprecated. Use year instead",Zt),bi.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()})),bi.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t,n={};return y(n,this),(n=Wn(n))._a?(t=n._isUTC?c(n._a):xn(n._a),this._isDSTShifted=this.isValid()&&function(t,n){var i,e=Math.min(t.length,n.length),r=Math.abs(t.length-n.length),s=0;for(i=0;i<e;i++)P(t[i])!==P(n[i])&&s++;return s+r}(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Ti=_.prototype;function _i(t,n,i,e){var r=Yn(),s=c().set(e,n);return r[i](s,t)}function Hi(t,n,i){if(h(t)&&(n=t,t=void 0),t=t||"",null!=n)return _i(t,n,i,"month");var e,r=[];for(e=0;e<12;e++)r[e]=_i(t,e,i,"month");return r}function Gi(t,n,i,e){"boolean"==typeof t?(h(n)&&(i=n,n=void 0),n=n||""):(i=n=t,t=!1,h(n)&&(i=n,n=void 0),n=n||"");var r,s=Yn(),u=t?s._week.dow:0,o=[];if(null!=i)return _i(n,(i+u)%7,e,"day");for(r=0;r<7;r++)o[r]=_i(n,(r+u)%7,e,"day");return o}Ti.calendar=function(t,n,i){var e=this._calendar[t]||this._calendar.sameElse;return k(e)?e.call(n,i):e},Ti.longDateFormat=function(t){var n=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return n||!i?n:(this._longDateFormat[t]=i.match(G).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Ti.invalidDate=function(){return this._invalidDate},Ti.ordinal=function(t){return this._ordinal.replace("%d",t)},Ti.preparse=ki,Ti.postformat=ki,Ti.relativeTime=function(t,n,i,e){var r=this._relativeTime[i];return k(r)?r(t,n,i,e):r.replace(/%d/i,t)},Ti.pastFuture=function(t,n){var i=this._relativeTime[t>0?"future":"past"];return k(i)?i(n):i.replace(/%s/i,n)},Ti.set=function(t){var n,i;for(i in t)s(t,i)&&(k(n=t[i])?this[i]=n:this["_"+i]=n);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ti.eras=function(){var t,n,e,r=this._eras||Yn("en")._eras;for(t=0,n=r.length;t<n;++t)switch("string"==typeof r[t].since&&(e=i(r[t].since).startOf("day"),r[t].since=e.valueOf()),typeof r[t].until){case"undefined":r[t].until=1/0;break;case"string":e=i(r[t].until).startOf("day").valueOf(),r[t].until=e.valueOf()}return r},Ti.erasParse=function(t,n,i){var e,r,s,u,o,h=this.eras();for(t=t.toUpperCase(),e=0,r=h.length;e<r;++e)if(s=h[e].name.toUpperCase(),u=h[e].abbr.toUpperCase(),o=h[e].narrow.toUpperCase(),i)switch(n){case"N":case"NN":case"NNN":if(u===t)return h[e];break;case"NNNN":if(s===t)return h[e];break;case"NNNNN":if(o===t)return h[e]}else if([s,u,o].indexOf(t)>=0)return h[e]},Ti.erasConvertYear=function(t,n){var e=t.since<=t.until?1:-1;return void 0===n?i(t.since).year():i(t.since).year()+(n-t.offset)*e},Ti.erasAbbrRegex=function(t){return s(this,"_erasAbbrRegex")||vi.call(this),t?this._erasAbbrRegex:this._erasRegex},Ti.erasNameRegex=function(t){return s(this,"_erasNameRegex")||vi.call(this),t?this._erasNameRegex:this._erasRegex},Ti.erasNarrowRegex=function(t){return s(this,"_erasNarrowRegex")||vi.call(this),t?this._erasNarrowRegex:this._erasRegex},Ti.months=function(t,n){return t?e(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Et).test(n)?"format":"standalone"][t.month()]:e(this._months)?this._months:this._months.standalone},Ti.monthsShort=function(t,n){return t?e(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Et.test(n)?"format":"standalone"][t.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ti.monthsParse=function(t,n,i){var e,r,s;if(this._monthsParseExact)return At.call(this,t,n,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),e=0;e<12;e++){if(r=c([2e3,e]),i&&!this._longMonthsParse[e]&&(this._longMonthsParse[e]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[e]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[e]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[e]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===n&&this._longMonthsParse[e].test(t))return e;if(i&&"MMM"===n&&this._shortMonthsParse[e].test(t))return e;if(!i&&this._monthsParse[e].test(t))return e}},Ti.monthsRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||jt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ft),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Ti.monthsShortRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||jt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=xt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Ti.week=function(t){return Pt(t,this._week.dow,this._week.doy).week},Ti.firstDayOfYear=function(){return this._week.doy},Ti.firstDayOfWeek=function(){return this._week.dow},Ti.weekdays=function(t,n){var i=e(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?qt(i,this._week.dow):t?i[t.day()]:i},Ti.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Ti.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Ti.weekdaysParse=function(t,n,i){var e,r,s;if(this._weekdaysParseExact)return tn.call(this,t,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),e=0;e<7;e++){if(r=c([2e3,1]).day(e),i&&!this._fullWeekdaysParse[e]&&(this._fullWeekdaysParse[e]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[e]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[e]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[e]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[e]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===n&&this._fullWeekdaysParse[e].test(t))return e;if(i&&"ddd"===n&&this._shortWeekdaysParse[e].test(t))return e;if(i&&"dd"===n&&this._minWeekdaysParse[e].test(t))return e;if(!i&&this._weekdaysParse[e].test(t))return e}},Ti.weekdaysRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nn.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Xt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Ti.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nn.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ti.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nn.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ti.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Ti.meridiem=function(t,n,i){return t>11?i?"pm":"PM":i?"am":"AM"},mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===P(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),i.lang=w("moment.lang is deprecated. Use moment.locale instead.",mn),i.langData=w("moment.langData is deprecated. Use moment.localeData instead.",Yn);var Wi=Math.abs;function Ei(t,n,i,e){var r=Qn(n,i);return t._milliseconds+=e*r._milliseconds,t._days+=e*r._days,t._months+=e*r._months,t._bubble()}function xi(t){return t<0?Math.floor(t):Math.ceil(t)}function Fi(t){return 4800*t/146097}function Ai(t){return 146097*t/4800}function Oi(t){return function(){return this.as(t)}}var Li=Oi("ms"),ji=Oi("s"),Ri=Oi("m"),Zi=Oi("h"),Ii=Oi("d"),Ci=Oi("w"),$i=Oi("M"),Ui=Oi("Q"),Pi=Oi("y");function zi(t){return function(){return this.isValid()?this._data[t]:NaN}}var qi=zi("milliseconds"),Ji=zi("seconds"),Qi=zi("minutes"),Bi=zi("hours"),Xi=zi("days"),Ki=zi("months"),Vi=zi("years"),te=Math.round,ne={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ie(t,n,i,e,r){return r.relativeTime(n||1,!!i,t,e)}var ee=Math.abs;function re(t){return(t>0)-(t<0)||+t}function se(){if(!this.isValid())return this.localeData().invalidDate();var t,n,i,e,r,s,u,o,h=ee(this._milliseconds)/1e3,a=ee(this._days),f=ee(this._months),d=this.asSeconds();return d?(t=U(h/60),n=U(t/60),h%=60,t%=60,i=U(f/12),f%=12,e=h?h.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=re(this._months)!==re(d)?"-":"",u=re(this._days)!==re(d)?"-":"",o=re(this._milliseconds)!==re(d)?"-":"",r+"P"+(i?s+i+"Y":"")+(f?s+f+"M":"")+(a?u+a+"D":"")+(n||t||h?"T":"")+(n?o+n+"H":"")+(t?o+t+"M":"")+(h?o+e+"S":"")):"P0D"}var ue=jn.prototype;ue.isValid=function(){return this._isValid},ue.abs=function(){var t=this._data;return this._milliseconds=Wi(this._milliseconds),this._days=Wi(this._days),this._months=Wi(this._months),t.milliseconds=Wi(t.milliseconds),t.seconds=Wi(t.seconds),t.minutes=Wi(t.minutes),t.hours=Wi(t.hours),t.months=Wi(t.months),t.years=Wi(t.years),this},ue.add=function(t,n){return Ei(this,t,n,1)},ue.subtract=function(t,n){return Ei(this,t,n,-1)},ue.as=function(t){if(!this.isValid())return NaN;var n,i,e=this._milliseconds;if("month"===(t=R(t))||"quarter"===t||"year"===t)switch(i=this._months+Fi(n=this._days+e/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(n=this._days+Math.round(Ai(this._months)),t){case"week":return n/7+e/6048e5;case"day":return n+e/864e5;case"hour":return 24*n+e/36e5;case"minute":return 1440*n+e/6e4;case"second":return 86400*n+e/1e3;case"millisecond":return Math.floor(864e5*n)+e;default:throw new Error("Unknown unit "+t)}},ue.asMilliseconds=Li,ue.asSeconds=ji,ue.asMinutes=Ri,ue.asHours=Zi,ue.asDays=Ii,ue.asWeeks=Ci,ue.asMonths=$i,ue.asQuarters=Ui,ue.asYears=Pi,ue.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*P(this._months/12):NaN},ue._bubble=function(){var t,n,i,e,r,s=this._milliseconds,u=this._days,o=this._months,h=this._data;return s>=0&&u>=0&&o>=0||s<=0&&u<=0&&o<=0||(s+=864e5*xi(Ai(o)+u),u=0,o=0),h.milliseconds=s%1e3,t=U(s/1e3),h.seconds=t%60,n=U(t/60),h.minutes=n%60,i=U(n/60),h.hours=i%24,u+=U(i/24),o+=r=U(Fi(u)),u-=xi(Ai(r)),e=U(o/12),o%=12,h.days=u,h.months=o,h.years=e,this},ue.clone=function(){return Qn(this)},ue.get=function(t){return t=R(t),this.isValid()?this[t+"s"]():NaN},ue.milliseconds=qi,ue.seconds=Ji,ue.minutes=Qi,ue.hours=Bi,ue.days=Xi,ue.weeks=function(){return U(this.days()/7)},ue.months=Ki,ue.years=Vi,ue.humanize=function(t,n){if(!this.isValid())return this.localeData().invalidDate();var i,e,r=!1,s=ne;return"object"==typeof t&&(n=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof n&&(s=Object.assign({},ne,n),null!=n.s&&null==n.ss&&(s.ss=n.s-1)),e=function(t,n,i,e){var r=Qn(t).abs(),s=te(r.as("s")),u=te(r.as("m")),o=te(r.as("h")),h=te(r.as("d")),a=te(r.as("M")),f=te(r.as("w")),d=te(r.as("y")),c=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||u<=1&&["m"]||u<i.m&&["mm",u]||o<=1&&["h"]||o<i.h&&["hh",o]||h<=1&&["d"]||h<i.d&&["dd",h];return null!=i.w&&(c=c||f<=1&&["w"]||f<i.w&&["ww",f]),(c=c||a<=1&&["M"]||a<i.M&&["MM",a]||d<=1&&["y"]||["yy",d])[2]=n,c[3]=+t>0,c[4]=e,ie.apply(null,c)}(this,!r,s,i=this.localeData()),r&&(e=i.pastFuture(+this,e)),i.postformat(e)},ue.toISOString=se,ue.toString=se,ue.toJSON=se,ue.locale=ri,ue.localeData=ui,ue.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",se),ue.lang=si,F("X",0,0,"unix"),F("x",0,0,"valueOf"),ct("x",ht),ct("X",/[+-]?\d+(\.\d{1,3})?/),Yt("X",(function(t,n,i){i._d=new Date(1e3*parseFloat(t))})),Yt("x",(function(t,n,i){i._d=new Date(P(t))})),
7
- //! moment.js
8
- i.version="2.29.4",t=xn,i.fn=bi,i.min=function(){return On("isBefore",[].slice.call(arguments,0))},i.max=function(){return On("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=c,i.unix=function(t){return xn(1e3*t)},i.months=function(t,n){return Hi(t,n,"months")},i.isDate=a,i.locale=mn,i.invalid=v,i.duration=Qn,i.isMoment=g,i.weekdays=function(t,n,i){return Gi(t,n,i,"weekdays")},i.parseZone=function(){return xn.apply(null,arguments).parseZone()},i.localeData=Yn,i.isDuration=Rn,i.monthsShort=function(t,n){return Hi(t,n,"monthsShort")},i.weekdaysMin=function(t,n,i){return Gi(t,n,i,"weekdaysMin")},i.defineLocale=vn,i.updateLocale=function(t,n){if(null!=n){var i,e,r=hn;null!=an[t]&&null!=an[t].parentLocale?an[t].set(T(an[t]._config,n)):(null!=(e=ln(t))&&(r=e._config),n=T(r,n),null==e&&(n.abbr=t),(i=new _(n)).parentLocale=an[t],an[t]=i),mn(t)}else null!=an[t]&&(null!=an[t].parentLocale?(an[t]=an[t].parentLocale,t===mn()&&mn(t)):null!=an[t]&&delete an[t]);return an[t]},i.locales=function(){return N(an)},i.weekdaysShort=function(t,n,i){return Gi(t,n,i,"weekdaysShort")},i.normalizeUnits=R,i.relativeTimeRounding=function(t){return void 0===t?te:"function"==typeof t&&(te=t,!0)},i.relativeTimeThreshold=function(t,n){return void 0!==ne[t]&&(void 0===n?ne[t]:(ne[t]=n,"s"===t&&(ne.ss=n-1),!0))},i.calendarFormat=function(t,n){var i=t.diff(n,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},i.prototype=bi,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const oe=(t,n=",")=>null!=t?`${t}`.replace(/\B(?=(\d{3})+(?!\d))/g,n):"",he=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),ae=t=>{if(0===(null==t?void 0:t.length))return"";let n,e,r=99999999999;const s=new Date(Date.now());return t.forEach(((u,o)=>{const h=new Date(u.schedules[0].startTime),a=new Date(u.schedules[0].endTime);i(a).diff(s)<r&&(r=i(a).diff(s),e=o),i(s).isAfter(h)&&i(s).isBefore(a)&&(n=t[e].name)})),n},fe=t=>{var n,i;return{winner:t.Winner,color:t.Color,location:{column:null===(n=t.Location)||void 0===n?void 0:n.Column,row:null===(i=t.Location)||void 0===i?void 0:i.Row},ties:0|t.Ties,score:t.Score,playerPair:t.PlayerPair,bankerPair:t.BankerPair}};export{ae as a,fe as c,i as h,he as i,oe as n}
@@ -1 +0,0 @@
1
- import{r as e,h as i}from"./p-b5a64db5.js";import{n as t,a,h as s}from"./p-4ece4698.js";import{t as n}from"./p-59ceeaaa.js";import{W as o,c as r}from"./p-2d02adb1.js";const l={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"},m=class{constructor(i){e(this,i),this.defaultCurrency="EUR",this.isBetLimitAvailable=!1,this.betLimit=void 0,this.numberOfPlayers=void 0}getCurrencySymbols(e){return l[e]}componentWillRender(){if(this.betLimit){const e=this.betLimit.max?this.betLimit.max:this.betLimit.min||{};this.isBetLimitAvailable=1===Object.keys(e).length,this.currency=this.isBetLimitAvailable?Object.keys(e)[0]:this.defaultCurrency}}render(){return this.isBetLimitAvailable?i("p",{class:"LiveLimits"},i("span",{class:"BetLimitLeft"},this.getCurrencySymbols(this.currency)," ",t(this.betLimit.min[this.currency])," -"," ",t(this.betLimit.max[this.currency])),(this.numberOfPlayers||0==this.numberOfPlayers)&&i("span",{class:"BetLimitRight"},i("svg",{fill:"white",width:"13",height:"13",viewBox:"0 0 13 14",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M4 8.2a4.6 4.6 0 0 0 5 0c2.7.8 4 2.6 4 4.8H0c0-2.2 1.3-4 4-4.8zM6.6 8c2 0 3.8-1.7 3.8-4 0-2.1-1.7-4-3.8-4a3.9 3.9 0 0 0-3.8 4c0 2.2 1.7 4 3.8 4z"})),i("span",{class:"NrOfPlayers"},this.numberOfPlayers))):""}};m.style=":host{display:block}";const c=class{constructor(i){e(this,i),this.isNewGame=!1,this.language="en",this.betLimit=void 0,this.gameInfo=void 0,this.gameDetails=void 0}async onGameLoaded(e){var i;this.gameInfo=e,this.isNewGame=this.gameInfo.isNew,"false"===this.gameInfo.gameTag&&(this.gameInfo.gameTag=null),this.gameTag=this.gameInfo.gameTag,this.gameInfo.details&&(this.gameDetails=this.gameInfo.details,this.isDouble=!!this.gameDetails&&this.gameInfo.details.category.toLowerCase()===o.doubleballroulette,this.gameTag=this.gameDetails&&(null===(i=this.gameInfo.advancedTags)||void 0===i?void 0:i.length)>0?a(this.gameInfo.advancedTags):this.gameInfo.gameTag,this.betLimit=this.gameDetails?this.gameDetails.betLimit:null,this.initTimeProperties())}initTimeProperties(){var e,i,t,a,s;"Bounded"===(null===(i=null===(e=this.gameDetails)||void 0===e?void 0:e.openHours)||void 0===i?void 0:i.type)&&(this.gameStartTime=null===(a=null===(t=this.gameDetails)||void 0===t?void 0:t.openHours)||void 0===a?void 0:a.value.startTime,this.gameTimeFormat=null===(s=this.gameDetails)||void 0===s?void 0:s.openHours.value.originalTimeFormat)}async onGameDetailUpdated(e){this.gameInfo.details=this.gameDetails=e,this.gameDetails=Object.assign({},this.gameDetails),this.initTimeProperties()}render(){var e,t,a;return this.gameInfo?i("div",{class:"GameExtraInfo",part:"GameExtraInfo"},this.isNewGame&&i("span",{class:"GameExtraInfoLabel NewGameTag",part:"GameExtraInfoLabel NewGameTag"},n("new",this.language)),this.gameTag&&i("span",{class:"GameExtraInfoLabel PopularGameTag",part:"GameExtraInfoLabel PopularGameTag"},this.gameTag),this.gameDetails&&i("div",{class:`GameProp LiveProps ${r[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`,part:`GameProp LiveProps ${r[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`},this.gameDetails.isOpen?i("slot",{name:"category-details"}):this.gameStartTime&&this.gameTimeFormat&&i("div",{class:"ClosedGame",part:"ClosedGame"},n("opens",this.language),i("span",null," ",s.utc(this.gameStartTime).local().format(this.gameTimeFormat)," ")),(null===(e=this.gameDetails.dealer)||void 0===e?void 0:e.DealerName)&&i("p",{class:"LiveLimits"},i("span",{class:"DealerName"},n("dealer",this.language),":"," ",null===(t=this.gameDetails)||void 0===t?void 0:t.dealer.DealerName," ")),i("casino-game-thumbnail-betlimit",{betLimit:this.betLimit,numberOfPlayers:null===(a=this.gameDetails)||void 0===a?void 0:a.numberOfPlayers}))):""}};c.style=':host{display:block;font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emw--color-white, #FFFFFF);opacity:1;font-size:14px}.GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emw--color-primary, #D0046C);color:var(--emw--color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emw--color-white, #FFFFFF);font-size:18px}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 10px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 6px 0 1px;font-size:14px;text-align:center}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emw--color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 10px 5px;background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);font-weight:normal;font-size:12px}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px;vertical-align:top}';export{m as casino_game_thumbnail_betlimit,c as casino_game_thumbnail_extrainfo}