parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"kK6Q":[function(require,module,exports) {
"use strict";function e(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"KYJg":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=t(require("../_lib/requiredArgs/index.js"));function t(e){return e&&e.__esModule?e:{default:e}}function r(t){(0,e.default)(1,arguments);var r=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===r?new Date(t.getTime()):"number"==typeof t||"[object Number]"===r?new Date(t):("string"!=typeof t&&"[object String]"!==r||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}
},{"../_lib/requiredArgs/index.js":"kK6Q"}],"WNaj":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var e=t(require("../toDate/index.js")),r=t(require("../_lib/requiredArgs/index.js"));function t(e){return e&&e.__esModule?e:{default:e}}function u(t){(0,r.default)(1,arguments);var u=(0,e.default)(t);return!isNaN(u)}
},{"../toDate/index.js":"KYJg","../_lib/requiredArgs/index.js":"kK6Q"}],"ACz4":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o;var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(o,t,n){var s;return n=n||{},s="string"==typeof e[o]?e[o]:1===t?e[o].one:e[o].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+s:s+" ago":s}
},{}],"byVx":[function(require,module,exports) {
"use strict";function t(t){return function(e){var r=e||{},u=r.width?String(r.width):t.defaultWidth;return t.formats[u]||t.formats[t.defaultWidth]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"H2aS":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../_lib/buildFormatLongFn/index.js"));function t(e){return e&&e.__esModule?e:{default:e}}var d={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},l={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,e.default)({formats:d,defaultWidth:"full"}),time:(0,e.default)({formats:l,defaultWidth:"full"}),dateTime:(0,e.default)({formats:a,defaultWidth:"full"})},m=u;exports.default=m;
},{"../../../_lib/buildFormatLongFn/index.js":"byVx"}],"ZyeE":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function t(t,r,a,o){return e[t]}
},{}],"VNZ0":[function(require,module,exports) {
"use strict";function t(t){return function(e,a){var r,i=a||{};if("formatting"===(i.context?String(i.context):"standalone")&&t.formattingValues){var n=t.defaultFormattingWidth||t.defaultWidth,u=i.width?String(i.width):n;r=t.formattingValues[u]||t.formattingValues[n]}else{var l=t.defaultWidth,d=i.width?String(i.width):t.defaultWidth;r=t.values[d]||t.values[l]}return r[t.argumentCallback?t.argumentCallback(e):e]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"PTsv":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=e(require("../../../_lib/buildLocalizeFn/index.js"));function e(n){return n&&n.__esModule?n:{default:n}}var i={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},r={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},a={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},d={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function u(n,e){var i=Number(n),t=i%100;if(t>20||t<10)switch(t%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"}var g={ordinalNumber:u,era:(0,n.default)({values:i,defaultWidth:"wide"}),quarter:(0,n.default)({values:t,defaultWidth:"wide",argumentCallback:function(n){return Number(n)-1}}),month:(0,n.default)({values:r,defaultWidth:"wide"}),day:(0,n.default)({values:a,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:o,defaultWidth:"wide",formattingValues:d,defaultFormattingWidth:"wide"})},m=g;exports.default=m;
},{"../../../_lib/buildLocalizeFn/index.js":"VNZ0"}],"VWmv":[function(require,module,exports) {
"use strict";function e(e){return function(a,t){var l=String(a),r=t||{},u=l.match(e.matchPattern);if(!u)return null;var n=u[0],c=l.match(e.parsePattern);if(!c)return null;var v=e.valueCallback?e.valueCallback(c[0]):c[0];return{value:v=r.valueCallback?r.valueCallback(v):v,rest:l.slice(n.length)}}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"J9yN":[function(require,module,exports) {
"use strict";function t(t){return function(a,n){var l=String(a),u=n||{},c=u.width,i=c&&t.matchPatterns[c]||t.matchPatterns[t.defaultMatchWidth],o=l.match(i);if(!o)return null;var s,f=o[0],h=c&&t.parsePatterns[c]||t.parsePatterns[t.defaultParseWidth];return s="[object Array]"===Object.prototype.toString.call(h)?r(h,function(t){return t.test(f)}):e(h,function(t){return t.test(f)}),s=t.valueCallback?t.valueCallback(s):s,{value:s=u.valueCallback?u.valueCallback(s):s,rest:l.slice(f.length)}}}function e(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function r(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"txOO":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var a=e(require("../../../_lib/buildMatchPatternFn/index.js")),i=e(require("../../../_lib/buildMatchFn/index.js"));function e(a){return a&&a.__esModule?a:{default:a}}var t=/^(\d+)(th|st|nd|rd)?/i,n=/\d+/i,r={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},d={any:[/^b/i,/^(a|c)/i]},s={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},u={any:[/1/i,/2/i,/3/i,/4/i]},o={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},f={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},l={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},c={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b={ordinalNumber:(0,a.default)({matchPattern:t,parsePattern:n,valueCallback:function(a){return parseInt(a,10)}}),era:(0,i.default)({matchPatterns:r,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:(0,i.default)({matchPatterns:o,defaultMatchWidth:"wide",parsePatterns:m,defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:l,defaultMatchWidth:"any",parsePatterns:c,defaultParseWidth:"any"})},y=b;exports.default=y;
},{"../../../_lib/buildMatchPatternFn/index.js":"VWmv","../../../_lib/buildMatchFn/index.js":"J9yN"}],"lcWw":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=l(require("./_lib/formatDistance/index.js")),t=l(require("./_lib/formatLong/index.js")),a=l(require("./_lib/formatRelative/index.js")),i=l(require("./_lib/localize/index.js")),r=l(require("./_lib/match/index.js"));function l(e){return e&&e.__esModule?e:{default:e}}var o={code:"en-US",formatDistance:e.default,formatLong:t.default,formatRelative:a.default,localize:i.default,match:r.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=o;exports.default=u;
},{"./_lib/formatDistance/index.js":"ACz4","./_lib/formatLong/index.js":"H2aS","./_lib/formatRelative/index.js":"ZyeE","./_lib/localize/index.js":"PTsv","./_lib/match/index.js":"txOO"}],"VYL5":[function(require,module,exports) {
"use strict";function e(e){if(null===e||!0===e||!1===e)return NaN;var r=Number(e);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"umce":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var e=u(require("../_lib/toInteger/index.js")),r=u(require("../toDate/index.js")),t=u(require("../_lib/requiredArgs/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}function i(u,i){(0,t.default)(2,arguments);var d=(0,r.default)(u).getTime(),n=(0,e.default)(i);return new Date(d+n)}
},{"../_lib/toInteger/index.js":"VYL5","../toDate/index.js":"KYJg","../_lib/requiredArgs/index.js":"kK6Q"}],"A4qf":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=d;var e=u(require("../_lib/toInteger/index.js")),r=u(require("../addMilliseconds/index.js")),t=u(require("../_lib/requiredArgs/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}function d(u,d){(0,t.default)(2,arguments);var i=(0,e.default)(d);return(0,r.default)(u,-i)}
},{"../_lib/toInteger/index.js":"VYL5","../addMilliseconds/index.js":"umce","../_lib/requiredArgs/index.js":"kK6Q"}],"V2hq":[function(require,module,exports) {
"use strict";function e(e,t){for(var r=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return r+o}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"sUXs":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../addLeadingZeros/index.js"));function t(e){return e&&e.__esModule?e:{default:e}}var a={y:function(t,a){var n=t.getUTCFullYear(),r=n>0?n:1-n;return(0,e.default)("yy"===a?r%100:r,a.length)},M:function(t,a){var n=t.getUTCMonth();return"M"===a?String(n+1):(0,e.default)(n+1,2)},d:function(t,a){return(0,e.default)(t.getUTCDate(),a.length)},a:function(e,t){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return a.toUpperCase();case"aaaaa":return a[0];case"aaaa":default:return"am"===a?"a.m.":"p.m."}},h:function(t,a){return(0,e.default)(t.getUTCHours()%12||12,a.length)},H:function(t,a){return(0,e.default)(t.getUTCHours(),a.length)},m:function(t,a){return(0,e.default)(t.getUTCMinutes(),a.length)},s:function(t,a){return(0,e.default)(t.getUTCSeconds(),a.length)},S:function(t,a){var n=a.length,r=t.getUTCMilliseconds(),u=Math.floor(r*Math.pow(10,n-3));return(0,e.default)(u,a.length)}},n=a;exports.default=n;
},{"../../addLeadingZeros/index.js":"V2hq"}],"I9iY":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o;var e=t(require("../../toDate/index.js")),r=t(require("../requiredArgs/index.js"));function t(e){return e&&e.__esModule?e:{default:e}}var u=864e5;function o(t){(0,r.default)(1,arguments);var o=(0,e.default)(t),s=o.getTime();o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0);var a=s-o.getTime();return Math.floor(a/u)+1}
},{"../../toDate/index.js":"KYJg","../requiredArgs/index.js":"kK6Q"}],"IuuM":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var e=r(require("../../toDate/index.js")),t=r(require("../requiredArgs/index.js"));function r(e){return e&&e.__esModule?e:{default:e}}function u(r){(0,t.default)(1,arguments);var u=(0,e.default)(r),s=u.getUTCDay(),a=(s<1?7:0)+s-1;return u.setUTCDate(u.getUTCDate()-a),u.setUTCHours(0,0,0,0),u}
},{"../../toDate/index.js":"KYJg","../requiredArgs/index.js":"kK6Q"}],"wuZP":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=a;var e=u(require("../../toDate/index.js")),t=u(require("../startOfUTCISOWeek/index.js")),r=u(require("../requiredArgs/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}function a(u){(0,r.default)(1,arguments);var a=(0,e.default)(u),s=a.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(s+1,0,4),i.setUTCHours(0,0,0,0);var l=(0,t.default)(i),d=new Date(0);d.setUTCFullYear(s,0,4),d.setUTCHours(0,0,0,0);var n=(0,t.default)(d);return a.getTime()>=l.getTime()?s+1:a.getTime()>=n.getTime()?s:s-1}
},{"../../toDate/index.js":"KYJg","../startOfUTCISOWeek/index.js":"IuuM","../requiredArgs/index.js":"kK6Q"}],"TVAh":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=s;var e=u(require("../getUTCISOWeekYear/index.js")),r=u(require("../startOfUTCISOWeek/index.js")),t=u(require("../requiredArgs/index.js"));function u(e){return e&&e.__esModule?e:{default:e}}function s(u){(0,t.default)(1,arguments);var s=(0,e.default)(u),a=new Date(0);return a.setUTCFullYear(s,0,4),a.setUTCHours(0,0,0,0),(0,r.default)(a)}
},{"../getUTCISOWeekYear/index.js":"wuZP","../startOfUTCISOWeek/index.js":"IuuM","../requiredArgs/index.js":"kK6Q"}],"PrDZ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var e=a(require("../../toDate/index.js")),r=a(require("../startOfUTCISOWeek/index.js")),t=a(require("../startOfUTCISOWeekYear/index.js")),u=a(require("../requiredArgs/index.js"));function a(e){return e&&e.__esModule?e:{default:e}}var d=6048e5;function i(a){(0,u.default)(1,arguments);var i=(0,e.default)(a),s=(0,r.default)(i).getTime()-(0,t.default)(i).getTime();return Math.round(s/d)+1}
},{"../../toDate/index.js":"KYJg","../startOfUTCISOWeek/index.js":"IuuM","../startOfUTCISOWeekYear/index.js":"TVAh","../requiredArgs/index.js":"kK6Q"}],"sFsT":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var e=n(require("../toInteger/index.js")),t=n(require("../../toDate/index.js")),r=n(require("../requiredArgs/index.js"));function n(e){return e&&e.__esModule?e:{default:e}}function u(n,u){(0,r.default)(1,arguments);var a=u||{},s=a.locale,l=s&&s.options&&s.options.weekStartsOn,o=null==l?0:(0,e.default)(l),i=null==a.weekStartsOn?o:(0,e.default)(a.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,t.default)(n),f=d.getUTCDay(),w=(f<i?7:0)+f-i;return d.setUTCDate(d.getUTCDate()-w),d.setUTCHours(0,0,0,0),d}
},{"../toInteger/index.js":"VYL5","../../toDate/index.js":"KYJg","../requiredArgs/index.js":"kK6Q"}],"JbHP":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var e=n(require("../toInteger/index.js")),t=n(require("../../toDate/index.js")),r=n(require("../startOfUTCWeek/index.js")),a=n(require("../requiredArgs/index.js"));function n(e){return e&&e.__esModule?e:{default:e}}function i(n,i){(0,a.default)(1,arguments);var s=(0,t.default)(n,i),u=s.getUTCFullYear(),l=i||{},o=l.locale,d=o&&o.options&&o.options.firstWeekContainsDate,f=null==d?1:(0,e.default)(d),C=null==l.firstWeekContainsDate?f:(0,e.default)(l.firstWeekContainsDate);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(u+1,0,C),T.setUTCHours(0,0,0,0);var g=(0,r.default)(T,i),v=new Date(0);v.setUTCFullYear(u,0,C),v.setUTCHours(0,0,0,0);var D=(0,r.default)(v,i);return s.getTime()>=g.getTime()?u+1:s.getTime()>=D.getTime()?u:u-1}
},{"../toInteger/index.js":"VYL5","../../toDate/index.js":"KYJg","../startOfUTCWeek/index.js":"sFsT","../requiredArgs/index.js":"kK6Q"}],"x8HL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=s;var e=n(require("../toInteger/index.js")),t=n(require("../getUTCWeekYear/index.js")),r=n(require("../startOfUTCWeek/index.js")),u=n(require("../requiredArgs/index.js"));function n(e){return e&&e.__esModule?e:{default:e}}function s(n,s){(0,u.default)(1,arguments);var a=s||{},i=a.locale,l=i&&i.options&&i.options.firstWeekContainsDate,o=null==l?1:(0,e.default)(l),d=null==a.firstWeekContainsDate?o:(0,e.default)(a.firstWeekContainsDate),f=(0,t.default)(n,s),C=new Date(0);return C.setUTCFullYear(f,0,d),C.setUTCHours(0,0,0,0),(0,r.default)(C,s)}
},{"../toInteger/index.js":"VYL5","../getUTCWeekYear/index.js":"JbHP","../startOfUTCWeek/index.js":"sFsT","../requiredArgs/index.js":"kK6Q"}],"Z7oM":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var e=a(require("../../toDate/index.js")),r=a(require("../startOfUTCWeek/index.js")),t=a(require("../startOfUTCWeekYear/index.js")),u=a(require("../requiredArgs/index.js"));function a(e){return e&&e.__esModule?e:{default:e}}var d=6048e5;function i(a,i){(0,u.default)(1,arguments);var s=(0,e.default)(a),n=(0,r.default)(s,i).getTime()-(0,t.default)(s,i).getTime();return Math.round(n/d)+1}
},{"../../toDate/index.js":"KYJg","../startOfUTCWeek/index.js":"sFsT","../startOfUTCWeekYear/index.js":"x8HL","../requiredArgs/index.js":"kK6Q"}],"S8Vi":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("../lightFormatters/index.js")),e=o(require("../../../_lib/getUTCDayOfYear/index.js")),r=o(require("../../../_lib/getUTCISOWeek/index.js")),n=o(require("../../../_lib/getUTCISOWeekYear/index.js")),a=o(require("../../../_lib/getUTCWeek/index.js")),i=o(require("../../../_lib/getUTCWeekYear/index.js")),u=o(require("../../addLeadingZeros/index.js"));function o(t){return t&&t.__esModule?t:{default:t}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(t,e,r){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,r,n){if("yo"===r){var a=e.getUTCFullYear(),i=a>0?a:1-a;return n.ordinalNumber(i,{unit:"year"})}return t.default.y(e,r)},Y:function(t,e,r,n){var a=(0,i.default)(t,n),o=a>0?a:1-a;if("YY"===e){var c=o%100;return(0,u.default)(c,2)}return"Yo"===e?r.ordinalNumber(o,{unit:"year"}):(0,u.default)(o,e.length)},R:function(t,e){var r=(0,n.default)(t);return(0,u.default)(r,e.length)},u:function(t,e){var r=t.getUTCFullYear();return(0,u.default)(r,e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return(0,u.default)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return(0,u.default)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,r,n){var a=e.getUTCMonth();switch(r){case"M":case"MM":return t.default.M(e,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return(0,u.default)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var i=(0,a.default)(t,n);return"wo"===e?r.ordinalNumber(i,{unit:"week"}):(0,u.default)(i,e.length)},I:function(t,e,n){var a=(0,r.default)(t);return"Io"===e?n.ordinalNumber(a,{unit:"week"}):(0,u.default)(a,e.length)},d:function(e,r,n){return"do"===r?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):t.default.d(e,r)},D:function(t,r,n){var a=(0,e.default)(t);return"Do"===r?n.ordinalNumber(a,{unit:"dayOfYear"}):(0,u.default)(a,r.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var a=t.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return(0,u.default)(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var a=t.getUTCDay(),i=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return(0,u.default)(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),a=0===n?7:n;switch(e){case"i":return String(a);case"ii":return(0,u.default)(a,e.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,a=t.getUTCHours();switch(n=12===a?c.noon:0===a?c.midnight:a/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,a=t.getUTCHours();switch(n=a>=17?c.evening:a>=12?c.afternoon:a>=4?c.morning:c.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,r,n){if("ho"===r){var a=e.getUTCHours()%12;return 0===a&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return t.default.h(e,r)},H:function(e,r,n){return"Ho"===r?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):t.default.H(e,r)},K:function(t,e,r){var n=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):(0,u.default)(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return 0===n&&(n=24),"ko"===e?r.ordinalNumber(n,{unit:"hour"}):(0,u.default)(n,e.length)},m:function(e,r,n){return"mo"===r?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):t.default.m(e,r)},s:function(e,r,n){return"so"===r?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):t.default.s(e,r)},S:function(e,r){return t.default.S(e,r)},X:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return f(a);case"XXXX":case"XX":return l(a);case"XXXXX":case"XXX":default:return l(a,":")}},x:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return f(a);case"xxxx":case"xx":return l(a);case"xxxxx":case"xxx":default:return l(a,":")}},O:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+s(a,":");case"OOOO":default:return"GMT"+l(a,":")}},z:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+s(a,":");case"zzzz":default:return"GMT"+l(a,":")}},t:function(t,e,r,n){var a=n._originalDate||t,i=Math.floor(a.getTime()/1e3);return(0,u.default)(i,e.length)},T:function(t,e,r,n){var a=(n._originalDate||t).getTime();return(0,u.default)(a,e.length)}};function s(t,e){var r=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),i=n%60;if(0===i)return r+String(a);var o=e||"";return r+String(a)+o+(0,u.default)(i,2)}function f(t,e){return t%60==0?(t>0?"-":"+")+(0,u.default)(Math.abs(t)/60,2):l(t,e)}function l(t,e){var r=e||"",n=t>0?"-":"+",a=Math.abs(t);return n+(0,u.default)(Math.floor(a/60),2)+r+(0,u.default)(a%60,2)}var h=d;exports.default=h;
},{"../lightFormatters/index.js":"sUXs","../../../_lib/getUTCDayOfYear/index.js":"I9iY","../../../_lib/getUTCISOWeek/index.js":"PrDZ","../../../_lib/getUTCISOWeekYear/index.js":"wuZP","../../../_lib/getUTCWeek/index.js":"Z7oM","../../../_lib/getUTCWeekYear/index.js":"JbHP","../../addLeadingZeros/index.js":"V2hq"}],"W9kG":[function(require,module,exports) {
"use strict";function e(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function t(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function r(r,a){var i,d=r.match(/(P+)(p+)?/),u=d[1],s=d[2];if(!s)return e(r,a);switch(u){case"P":i=a.dateTime({width:"short"});break;case"PP":i=a.dateTime({width:"medium"});break;case"PPP":i=a.dateTime({width:"long"});break;case"PPPP":default:i=a.dateTime({width:"full"})}return i.replace("{{date}}",e(u,a)).replace("{{time}}",t(s,a))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var a={p:t,P:r},i=a;exports.default=i;
},{}],"aFbL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=6e4;function t(t){return t.getTime()%e}function r(r){var n=new Date(r.getTime()),i=Math.ceil(n.getTimezoneOffset());n.setSeconds(0,0);var o=i>0?(e+t(n))%e:t(n);return i*e+o}
},{}],"VJXN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isProtectedDayOfYearToken=r,exports.isProtectedWeekYearToken=o,exports.throwProtectedError=n;var e=["D","DD"],t=["YY","YYYY"];function r(t){return-1!==e.indexOf(t)}function o(e){return-1!==t.indexOf(e)}function n(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}
},{}],"OZJZ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=g;var e=d(require("../isValid/index.js")),r=d(require("../locale/en-US/index.js")),t=d(require("../subMilliseconds/index.js")),n=d(require("../toDate/index.js")),a=d(require("../_lib/format/formatters/index.js")),i=d(require("../_lib/format/longFormatters/index.js")),o=d(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")),l=require("../_lib/protectedTokens/index.js"),s=d(require("../_lib/toInteger/index.js")),u=d(require("../_lib/requiredArgs/index.js"));function d(e){return e&&e.__esModule?e:{default:e}}var f=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w=/^'([^]*?)'?$/,m=/''/g,p=/[a-zA-Z]/;function g(d,w,m){(0,u.default)(2,arguments);var g=String(w),h=m||{},v=h.locale||r.default,b=v.options&&v.options.firstWeekContainsDate,j=null==b?1:(0,s.default)(b),q=null==h.firstWeekContainsDate?j:(0,s.default)(h.firstWeekContainsDate);if(!(q>=1&&q<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=v.options&&v.options.weekStartsOn,_=null==x?0:(0,s.default)(x),D=null==h.weekStartsOn?_:(0,s.default)(h.weekStartsOn);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");var O=(0,n.default)(d);if(!(0,e.default)(O))throw new RangeError("Invalid time value");var y=(0,o.default)(O),E=(0,t.default)(O,y),P={firstWeekContainsDate:q,weekStartsOn:D,locale:v,_originalDate:O};return g.match(c).map(function(e){var r=e[0];return"p"===r||"P"===r?(0,i.default[r])(e,v.formatLong,P):e}).join("").match(f).map(function(e){if("''"===e)return"'";var r=e[0];if("'"===r)return k(e);var t=a.default[r];if(t)return!h.useAdditionalWeekYearTokens&&(0,l.isProtectedWeekYearToken)(e)&&(0,l.throwProtectedError)(e),!h.useAdditionalDayOfYearTokens&&(0,l.isProtectedDayOfYearToken)(e)&&(0,l.throwProtectedError)(e),t(E,e,v.localize,P);if(r.match(p))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return e}).join("")}function k(e){return e.match(w)[1].replace(m,"'")}
},{"../isValid/index.js":"WNaj","../locale/en-US/index.js":"lcWw","../subMilliseconds/index.js":"A4qf","../toDate/index.js":"KYJg","../_lib/format/formatters/index.js":"S8Vi","../_lib/format/longFormatters/index.js":"W9kG","../_lib/getTimezoneOffsetInMilliseconds/index.js":"aFbL","../_lib/protectedTokens/index.js":"VJXN","../_lib/toInteger/index.js":"VYL5","../_lib/requiredArgs/index.js":"kK6Q"}],"Ph2E":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.API_URI=void 0;const e="https://api.tribalwarshelp.com/graphql";exports.API_URI=e;var r=function(){let{query:r,variables:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return fetch(e,{method:"POST",body:JSON.stringify({query:r,variables:t}),headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{let{data:r,errors:t}=e;if(t&&Array.isArray(t)&&t.length>0)throw new Error(t[0].message);return new Promise(e=>e(r))})};exports.default=r;
},{}],"rX6I":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;const e={pl_PL:{title:"Dzienne osiągnięcia - prawdopodobni gracze",warning:"Pamiętaj! Ten skrypt pokazuje wykalkulowane przez TribalWars wyniki, nie pokonane jednostki.",aotd:"Agresor dnia",dotd:"Obrońca dnia",sotd:"Pomocnik dnia",gpotd:"Mocarstwo dnia",devNote:"Informacja od autora - Właśnie uruchomiłem nową stronę ze statystykami, nie zapomnij jej sprawdzić :)."},en_DK:{title:"Daily achievements - probable players",warning:"Remember! This script shows scores, not defeated units.",aotd:"Attacker of the day",dotd:"Defender of the day",sotd:"Supporter of the day",gpotd:"Great power of the day",devNote:"Information from the author - I've just launched a new stat tracking website, don't forget to check it out :)."}};var t=()=>e[window.game_data.locale]||e.en_DK;exports.default=t;
},{}],"KWxH":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setItem=exports.getItem=void 0;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=localStorage.getItem(e);let s=t;return o&&(s=JSON.parse(o)),s};exports.getItem=e;const t=(e,t)=>{localStorage.setItem(e,JSON.stringify(t))};exports.setItem=t;
},{}],"fHHP":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildImgURL=exports.calcAttackDuration=exports.buildVillageName=exports.buildVillageURL=exports.buildPlayerURL=exports.buildTribeURL=void 0;const i=i=>window.location.origin+TribalWars.buildURL("",{screen:"info_ally",id:i});exports.buildTribeURL=i;const o=i=>window.location.origin+TribalWars.buildURL("",{screen:"info_player",id:i});exports.buildPlayerURL=o;const e=i=>window.location.origin+TribalWars.buildURL("",{screen:"info_village",id:i});exports.buildVillageURL=e;const t=function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;const t="K"+String(e)[0]+String(o)[0];return"".concat(i," (").concat(o,"|").concat(e,") ").concat(t)};exports.buildVillageName=t;const l=(i,o)=>Math.round(i*o);exports.calcAttackDuration=l;const r=i=>image_base+i;exports.buildImgURL=r;
},{}],"DMkL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=()=>window.location.host.split(".")[0];exports.default=e;
},{}],"J1Ly":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").substr(0,2)};exports.default=e;
},{}],"ZbyX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatDate=exports.inUTC=exports.inTZ=void 0;const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"UTC";return new Date(new Date(t).toLocaleString("en-US",{timeZone:e}))};exports.inTZ=t;const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return t(e)};exports.inUTC=e;const n=(t,e)=>new Date(t).toLocaleDateString(void 0,e||{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});exports.formatDate=n;
},{}],"gvXE":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildVillageURL=exports.buildTribeURL=exports.buildPlayerURL=exports.buildURLToProfile=exports.buildURLToServerPage=exports.BASE_URL=void 0;const e="tribalwarshelp.com";exports.BASE_URL=e;const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"https://".concat(t,".").concat(e,"/server/").concat(o)};exports.buildURLToServerPage=t;const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"".concat(t(e,o),"/").concat(n,"/").concat(l)};exports.buildURLToProfile=o;const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(e,t,l,"player")};exports.buildPlayerURL=l;const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(e,t,l,"tribe")};exports.buildTribeURL=n;const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(e,t,l,"village")};exports.buildVillageURL=i;
},{}],"Jg9g":[function(require,module,exports) {
"use strict";var e=y(require("date-fns/format")),t=y(require("./libs/requestCreator")),r=y(require("./i18n/dailyAchievments")),n=require("./utils/localStorage"),a=d(require("./utils/tribalwars")),i=y(require("./utils/getCurrentServer")),o=y(require("./utils/getServerVersionCode")),c=require("./utils/date"),s=require("./utils/twhelp");function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function y(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const f=(0,i.default)(),g="kichiyaki_daily_achievements",m="\n    query server($server: String!) {\n        server(key: $server) {\n            key\n            historyUpdatedAt\n            version {\n              timezone\n            }\n        }\n    }\n",S='\n    query data($server: String!, $createDateGTE: Time!) {\n        dailyPlayerStatsOrderedByScoreAtt: dailyPlayerStats(server: $server, sort: ["scoreAtt DESC", "playerID desc"], filter: { createDateGTE: $createDateGTE }, limit: 5) {\n            items {\n                scoreAtt\n                player {\n                    id\n                    name\n                }\n            }\n        }\n        dailyPlayerStatsOrderedByScoreDef: dailyPlayerStats(server: $server, sort: ["scoreDef DESC", "playerID desc"], filter: { createDateGTE: $createDateGTE }, limit: 5) {\n            items {\n                scoreDef\n                player {\n                    id\n                    name\n                }\n            }\n        }\n        dailyPlayerStatsOrderedByScoreSup: dailyPlayerStats(server: $server, sort: ["scoreSup DESC", "playerID desc"], filter: { createDateGTE: $createDateGTE }, limit: 5) {\n            items {\n                scoreSup\n                player {\n                    id\n                    name\n                }\n            }\n        }\n        dailyPlayerStatsOrderedByVillages: dailyPlayerStats(server: $server, sort: ["villages DESC", "playerID desc"], filter: { createDateGTE: $createDateGTE }, limit: 5) {\n            items {\n                villages\n                player {\n                    id\n                    name\n                }\n            }\n        }\n    }\n';let b=void 0;const O=(0,r.default)(),h=()=>(0,n.getItem)(g),P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.setItem)(g,e)},D=async()=>{let r=await(0,t.default)({query:m,variables:{server:f}});if(r.server){const n=(0,c.inTZ)(r.server.historyUpdatedAt,r.server.version.timezone),a=await(0,t.default)({query:S,variables:{server:f,createDateGTE:(0,e.default)(n,"yyyy-MM-dd")+"T"+(0,e.default)(n,"HH:mm:ss")+"Z"}});r=u(u({},r),a)}return P(r),r},j=e=>{let{dailyPlayerStatsOrderedByScoreAtt:t,dailyPlayerStatsOrderedByScoreDef:r,dailyPlayerStatsOrderedByScoreSup:n,dailyPlayerStatsOrderedByVillages:i}=e;const c='\n        <div class="award-group-head">'.concat(O.title,'</div>\n        <div class="award-group-content" style="text-align: center;">\n            <div style="padding: 10px;">\n            <h1 style="margin-bottom: 0px;"><a href="').concat((0,s.buildURLToServerPage)((0,o.default)(f),f),'">TWHelp</a></h1>\n                <h3 style="margin-bottom: 10px; margin-top: 0;">').concat(O.devNote,'</h3>\n                <h3 style="color: red;"><strong>').concat(O.warning,"</strong></h3>\n                <p><strong>").concat(O.aotd,"</strong></p>\n                ").concat(t.items.map((e,t)=>"<span>".concat(t+1,'. <a href="').concat(a.buildPlayerURL(e.player.id),'">').concat(e.player.name," - ").concat(e.scoreAtt.toLocaleString(),"</a></span>")).join("<br>"),'\n            </div>\n            <hr>\n            <div style="padding: 10px;">\n                <p><strong>').concat(O.dotd,"</strong></p>\n                ").concat(r.items.map((e,t)=>"<span>".concat(t+1,'. <a href="').concat(a.buildPlayerURL(e.player.id),'">').concat(e.player.name," - ").concat(e.scoreDef.toLocaleString(),"</a></span>")).join("<br>"),'\n            </div>\n            <hr>\n            <div style="padding: 10px;">\n                <p><strong>').concat(O.sotd,"</strong></p>\n                ").concat(n.items.map((e,t)=>"<span>".concat(t+1,'. <a href="').concat(a.buildPlayerURL(e.player.id),'">').concat(e.player.name," - ").concat(e.scoreSup.toLocaleString(),"</a></span>")).join("<br>"),'\n            </div>\n            <hr>\n            <div style="padding: 10px;">\n                <p><strong>').concat(O.gpotd,"</strong></p>\n                ").concat(i.items.map((e,t)=>"<span>".concat(t+1,'. <a href="').concat(a.buildPlayerURL(e.player.id),'">').concat(e.player.name," - ").concat(e.villages.toLocaleString(),"</a></span>")).join("<br>"),'\n            </div>\n        </div>\n        <div class="award-group-foot"></div>\n    ');b||((b=document.createElement("div")).classList.add("award-group"),document.querySelector("#content_value > div:nth-child(4)").prepend(b)),b.innerHTML=c};!async function(){try{const t=h();t&&t.server&&j(t);const r=await D();r.server&&j(r)}catch(e){console.log("dailyAchievements",e)}}();
},{"date-fns/format":"OZJZ","./libs/requestCreator":"Ph2E","./i18n/dailyAchievments":"rX6I","./utils/localStorage":"KWxH","./utils/tribalwars":"fHHP","./utils/getCurrentServer":"DMkL","./utils/getServerVersionCode":"J1Ly","./utils/date":"ZbyX","./utils/twhelp":"gvXE"}]},{},["Jg9g"], null)