From 3e1eccc8797a25b306d4e4bb93f2cf49cf0caf58 Mon Sep 17 00:00:00 2001 From: Nerivec <62446222+Nerivec@users.noreply.github.com> Date: Wed, 17 Jul 2024 22:36:15 +0200 Subject: [PATCH] Updates --- index.f81b5c4a.js => index.3382268b.js | 4 ++-- index.f81b5c4a.js.map => index.3382268b.js.map | 2 +- index.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename index.f81b5c4a.js => index.3382268b.js (72%) rename index.f81b5c4a.js.map => index.3382268b.js.map (52%) diff --git a/index.f81b5c4a.js b/index.3382268b.js similarity index 72% rename from index.f81b5c4a.js rename to index.3382268b.js index a641792..e8726b4 100644 --- a/index.f81b5c4a.js +++ b/index.3382268b.js @@ -1,2 +1,2 @@ -let e;function t(e){return e&&e.__esModule?e.default:e}var n,s,i,r,a,o,l=globalThis,u={},c={},d=l.parcelRequire0c64;null==d&&((d=function(e){if(e in u)return u[e].exports;if(e in c){var t=c[e];delete c[e];var n={id:e,exports:{}};return u[e]=n,t.call(n.exports,n,n.exports),n.exports}var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){c[e]=t},l.parcelRequire0c64=d),(0,d.register)("45fvw",function(e,t){var n;n=function(){function t(){return H.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(i(e,t))return!1;return!0}function a(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,s=[],i=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,X=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)i(e,t)&&n.push(t);return n};var I=/(\[[^\[]*\])|(\\)?([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,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,k={},b={};function Y(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(b[e]=i),t&&(b[t[0]]=function(){return M(i.apply(this,arguments),t[1],t[2])}),n&&(b[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function L(e,t){return e.isValid()?(k[t=U(t,e.localeData())]=k[t]||function(e){var t,n,s,i=e.match(I);for(n=0,s=i.length;n=0&&C.test(e);)e=e.replace(C,s),C.lastIndex=0,n-=1;return e}var F={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function P(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function x(e){var t,n,s={};for(n in e)i(e,n)&&(t=P(n))&&(s[t]=e[n]);return s}var H,W,X,V,G={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},B=/\d/,K=/\d\d/,$=/\d{3}/,j=/\d{4}/,Z=/[+-]?\d{6}/,q=/\d\d?/,z=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,et=/[+-]?\d{1,6}/,en=/\d+/,es=/[+-]?\d+/,ei=/Z|[+-]\d\d:?\d\d/gi,er=/Z|[+-]\d\d(?::?\d\d)?/gi,ea=/[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,eo=/^[1-9]\d?/,el=/^([1-9]\d|\d)/;function eu(e,t,n){V[e]=N(t)?t:function(e,s){return e&&n?n:t}}function ec(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ed(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function eh(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ed(t)),n}V={};var ef={};function e_(e,t){var n,s,i=t;for("string"==typeof e&&(e=[e]),o(t)&&(i=function(e,n){n[t]=eh(e)}),s=e.length,n=0;n68?1900:2e3)};var ep=eE("FullYear",!0);function eE(e,n){return function(s){return null!=s?(eg(this,e,s),t.updateOffset(this,n),this):ey(this,e)}}function ey(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function eg(e,t,n){var s,i,r,a;if(!(!e.isValid()||isNaN(n))){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(i?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(i?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(i?s.setUTCHours(n):s.setHours(n));case"Date":return void(i?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}r=e.month(),a=29!==(a=e.date())||1!==r||eT(n)?a:28,i?s.setUTCFullYear(n,r,a):s.setFullYear(n,r,a)}}function eO(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?eT(e)?29:28:31-n%7%2}eX=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?isFinite((o=new Date(e+400,t,n,s,i,r,a)).getFullYear())&&o.setFullYear(e):o=new Date(e,t,n,s,i,r,a),o}function eI(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,n))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eC(e,t,n){var s=7+t-n;return-((7+eI(e,0,s).getUTCDay()-t)%7)+s-1}function ek(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+eC(e,s,i);return o<=0?a=eR(r=e-1)+o:o>eR(e)?(r=e+1,a=o-eR(e)):(r=e,a=o),{year:r,dayOfYear:a}}function eb(e,t,n){var s,i,r=eC(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+eY(i=e.year()-1,t,n):a>eY(e.year(),t,n)?(s=a-eY(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function eY(e,t,n){var s=eC(e,t,n),i=eC(e+1,t,n);return(eR(e)-s+i)/7}function eL(e,t){return e.slice(t,7).concat(e.slice(0,t))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),eu("w",q,eo),eu("ww",q,K),eu("W",q,eo),eu("WW",q,K),em(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=eh(e)}),Y("d",0,"do","day"),Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),eu("d",q),eu("e",q),eu("E",q),eu("dd",function(e,t){return t.weekdaysMinRegex(e)}),eu("ddd",function(e,t){return t.weekdaysShortRegex(e)}),eu("dddd",function(e,t){return t.weekdaysRegex(e)}),em(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),em(["d","e","E"],function(e,t,n,s){t[s]=eh(e)});var eU="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eF(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(s=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];s<7;++s)r=d([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=eX.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=eX.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=eX.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=eX.call(this._weekdaysParse,a))||-1!==(i=eX.call(this._shortWeekdaysParse,a))?i:-1!==(i=eX.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=eX.call(this._shortWeekdaysParse,a))||-1!==(i=eX.call(this._weekdaysParse,a))?i:-1!==(i=eX.call(this._minWeekdaysParse,a))?i:null:-1!==(i=eX.call(this._minWeekdaysParse,a))||-1!==(i=eX.call(this._weekdaysParse,a))?i:-1!==(i=eX.call(this._shortWeekdaysParse,a))?i:null}function eP(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],l=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),s=ec(this.weekdaysMin(n,"")),i=ec(this.weekdaysShort(n,"")),r=ec(this.weekdays(n,"")),a.push(s),o.push(i),l.push(r),u.push(s),u.push(i),u.push(r);a.sort(e),o.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function ex(){return this.hours()%12||12}function eH(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eW(e,t){return t._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,ex),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+ex.apply(this)+M(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+ex.apply(this)+M(this.minutes(),2)+M(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+M(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+M(this.minutes(),2)+M(this.seconds(),2)}),eH("a",!0),eH("A",!1),eu("a",eW),eu("A",eW),eu("H",q,el),eu("h",q,eo),eu("k",q,eo),eu("HH",q,K),eu("hh",q,K),eu("kk",q,K),eu("hmm",z),eu("hmmss",Q),eu("Hmm",z),eu("Hmmss",Q),e_(["H","HH"],3),e_(["k","kk"],function(e,t,n){var s=eh(e);t[3]=24===s?0:s}),e_(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),e_(["h","hh"],function(e,t,n){t[3]=eh(e),h(n).bigHour=!0}),e_("hmm",function(e,t,n){var s=e.length-2;t[3]=eh(e.substr(0,s)),t[4]=eh(e.substr(s)),h(n).bigHour=!0}),e_("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[3]=eh(e.substr(0,s)),t[4]=eh(e.substr(s,2)),t[5]=eh(e.substr(i)),h(n).bigHour=!0}),e_("Hmm",function(e,t,n){var s=e.length-2;t[3]=eh(e.substr(0,s)),t[4]=eh(e.substr(s))}),e_("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[3]=eh(e.substr(0,s)),t[4]=eh(e.substr(s,2)),t[5]=eh(e.substr(i))});var eX,eV,eG=eE("Hours",!0),eB={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:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eA,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eU,meridiemParse:/[ap]\.?m?\.?/i},eK={},e$={};function ej(e){return e?e.toLowerCase().replace("_","-"):e}function eZ(t){var n=null;if(void 0===eK[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eV._abbr,(void 0)("./locale/"+t),eq(n)}catch(e){eK[t]=null}return eK[t]}function eq(e,t){var n;return e&&((n=a(t)?eQ(e):ez(e,t))?eV=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eV._abbr}function ez(e,t){if(null===t)return delete eK[e],null;var n,s=eB;if(t.abbr=e,null!=eK[e])S("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."),s=eK[e]._config;else if(null!=t.parentLocale){if(null!=eK[t.parentLocale])s=eK[t.parentLocale]._config;else{if(null==(n=eZ(t.parentLocale)))return e$[t.parentLocale]||(e$[t.parentLocale]=[]),e$[t.parentLocale].push({name:e,config:t}),null;s=n._config}}return eK[e]=new w(D(s,t)),e$[e]&&e$[e].forEach(function(e){ez(e.name,e.config)}),eq(e),eK[e]}function eQ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eV;if(!n(e)){if(t=eZ(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r0;){if(s=eZ(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n=t-1)break;t--}r++}return eV}(e)}function eJ(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>eO(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var e0=/^\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)?)?$/,e1=/^\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)?)?$/,e3=/Z|[+-]\d\d(?::?\d\d)?/,e2=[["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]],e6=[["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/]],e4=/^\/?Date\((-?\d+)/i,e7=/^(?:(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}))$/,e5={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e8(e){var t,n,s,i,r,a,o=e._i,l=e0.exec(o)||e1.exec(o),u=e2.length,c=e6.length;if(l){for(t=0,h(e).iso=!0,n=u;t7)&&(u=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=eb(tr(),a,o),s=te(n.gg,e._a[0],c.year),i=te(n.w,c.week),null!=n.d?((r=n.d)<0||r>6)&&(u=!0):null!=n.e?(r=n.e+a,(n.e<0||n.e>6)&&(u=!0)):r=a),i<1||i>eY(s,a,o)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(l=ek(s,i,r,a,o),e._a[0]=l.year,e._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(R=te(e._a[0],m[0]),(e._dayOfYear>eR(R)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),_=eI(R,0,e._dayOfYear),e._a[1]=_.getUTCMonth(),e._a[2]=_.getUTCDate()),f=0;f<3&&null==e._a[f];++f)e._a[f]=p[f]=m[f];for(;f<7;f++)e._a[f]=p[f]=null==e._a[f]?2===f?1:0:e._a[f];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eI:eM).apply(null,p),T=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==T&&(h(e).weekdayMismatch=!0)}}function tn(e){if(e._f===t.ISO_8601){e8(e);return}if(e._f===t.RFC_2822){e9(e);return}e._a=[],h(e).empty=!0;var n,s,r,a,o,l,u,c,d,f,_,m=""+e._i,T=m.length,R=0;for(o=0,_=(u=U(e._f,e._locale).match(I)||[]).length;o<_;o++)(c=u[o],(l=(m.match(i(V,c)?V[c](e._strict,e._locale):new RegExp(ec(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i}))))||[])[0])&&((d=m.substr(0,m.indexOf(l))).length>0&&h(e).unusedInput.push(d),m=m.slice(m.indexOf(l)+l.length),R+=l.length),b[c])?(l?h(e).empty=!1:h(e).unusedTokens.push(c),null!=l&&i(ef,c)&&ef[c](l,e._a,e,c)):e._strict&&!l&&h(e).unusedTokens.push(c);h(e).charsLeftOver=T-R,m.length>0&&h(e).unusedInput.push(m),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=(n=e._locale,s=e._a[3],null==(r=e._meridiem)?s:null!=n.meridiemHour?n.meridiemHour(s,r):(null!=n.isPM&&((a=n.isPM(r))&&s<12&&(s+=12),a||12!==s||(s=0)),s)),null!==(f=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(f,e._a[0])),tt(e),eJ(e)}function ts(e){var i,r=e._i,d=e._f;return(e._locale=e._locale||eQ(e._l),null===r||void 0===d&&""===r)?_({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),g(r))?new y(eJ(r)):(l(r)?e._d=r:n(d)?function(e){var t,n,s,i,r,a,o=!1,l=e._f.length;if(0===l){h(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:_()});function tl(e,t){var s,i;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return tr();for(i=1,s=t[0];i=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function tY(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tL(e,t){return t.erasAbbrRegex(e)}function tU(){var e,t,n,s,i,r=[],a=[],o=[],l=[],u=this.eras();for(e=0,t=u.length;e(r=eY(e,s,i))&&(t=r),tx.call(this,e,t,n,s,i))}function tx(e,t,n,s,i){var r=ek(e,t,n,s,i),a=eI(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),eu("N",tL),eu("NN",tL),eu("NNN",tL),eu("NNNN",function(e,t){return t.erasNameRegex(e)}),eu("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),e_(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?h(n).era=i:h(n).invalidEra=e}),eu("y",en),eu("yy",en),eu("yyy",en),eu("yyyy",en),eu("yo",function(e,t){return t._eraYearOrdinalRegex||en}),e_(["y","yy","yyy","yyyy"],0),e_(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)}),Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tF("gggg","weekYear"),tF("ggggg","weekYear"),tF("GGGG","isoWeekYear"),tF("GGGGG","isoWeekYear"),eu("G",es),eu("g",es),eu("GG",q,K),eu("gg",q,K),eu("GGGG",ee,j),eu("gggg",ee,j),eu("GGGGG",et,Z),eu("ggggg",et,Z),em(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=eh(e)}),em(["gg","GG"],function(e,n,s,i){n[i]=t.parseTwoDigitYear(e)}),Y("Q",0,"Qo","quarter"),eu("Q",B),e_("Q",function(e,t){t[1]=(eh(e)-1)*3}),Y("D",["DD",2],"Do","date"),eu("D",q,eo),eu("DD",q,K),eu("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),e_(["D","DD"],2),e_("Do",function(e,t){t[2]=eh(e.match(q)[0])});var tH=eE("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),eu("DDD",J),eu("DDDD",$),e_(["DDD","DDDD"],function(e,t,n){n._dayOfYear=eh(e)}),Y("m",["mm",2],0,"minute"),eu("m",q,el),eu("mm",q,K),e_(["m","mm"],4);var tW=eE("Minutes",!1);Y("s",["ss",2],0,"second"),eu("s",q,el),eu("ss",q,K),e_(["s","ss"],5);var tX=eE("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),eu("S",J,B),eu("SS",J,K),eu("SSS",J,$),m="SSSS";m.length<=9;m+="S")eu(m,en);function tV(e,t){t[6]=eh(("0."+e)*1e3)}for(m="S";m.length<=9;m+="S")e_(m,tV);T=eE("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var tG=y.prototype;function tB(e){return e}tG.add=tN,tG.calendar=function(e,a){if(1==arguments.length){if(arguments[0]){var u,c,d;(u=arguments[0],g(u)||l(u)||tw(u)||o(u)||(c=n(u),d=!1,c&&(d=0===u.filter(function(e){return!o(e)&&tw(u)}).length),c&&d)||function(e){var t,n,a=s(e)&&!r(e),o=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;tn.valueOf():n.valueOf()n.year()||n.year()>9999?L(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",L(n,"Z")):L(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tG.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=r+'[")]',this.format(e+t+n+s)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(tG[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tG.toJSON=function(){return this.isValid()?this.toISOString():null},tG.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tG.unix=function(){return Math.floor(this.valueOf()/1e3)},tG.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tG.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tG.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;eMath.abs(e)&&!s&&(e*=60);return!this._isUTC&&n&&(i=tR(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r===e||(!n||this._changeInProgress?tS(this,tg(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tG.utc=function(e){return this.utcOffset(0,e)},tG.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tR(this),"m")),this},tG.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tm(ei,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tG.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?tr(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tG.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tG.isLocal=function(){return!!this.isValid()&&!this._isUTC},tG.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tG.isUtc=tp,tG.isUTC=tp,tG.zoneAbbr=function(){return this._isUTC?"UTC":""},tG.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tG.dates=A("dates accessor is deprecated. Use date instead.",tH),tG.months=A("months accessor is deprecated. Use month instead",eD),tG.years=A("years accessor is deprecated. Use year instead",ep),tG.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tG.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return E(t,this),(t=ts(t))._a?(e=t._isUTC?d(t._a):tr(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s0):this._isDSTShifted=!1,this._isDSTShifted});var tK=w.prototype;function t$(e,t,n,s){var i=eQ(),r=d().set(s,t);return i[n](r,e)}function tj(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return t$(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=t$(e,s,n,"month");return i}function tZ(e,t,n,s){"boolean"==typeof e||(n=t=e,e=!1),o(t)&&(n=t,t=void 0),t=t||"";var i,r=eQ(),a=e?r._week.dow:0,l=[];if(null!=n)return t$(t,(n+a)%7,s,"day");for(i=0;i<7;i++)l[i]=t$(t,(i+a)%7,s,"day");return l}tK.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return N(s)?s.call(t,n):s},tK.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tK.invalidDate=function(){return this._invalidDate},tK.ordinal=function(e){return this._ordinal.replace("%d",e)},tK.preparse=tB,tK.postformat=tB,tK.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return N(i)?i(e,t,n,s):i.replace(/%d/i,e)},tK.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return N(n)?n(t):n.replace(/%s/i,t)},tK.set=function(e){var t,n;for(n in e)i(e,n)&&(N(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tK.eras=function(e,n){var s,i,r,a=this._eras||eQ("en")._eras;for(s=0,i=a.length;s=0)return l[s]},tK.erasConvertYear=function(e,n){var s=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*s},tK.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tU.call(this),e?this._erasAbbrRegex:this._erasRegex},tK.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tU.call(this),e?this._erasNameRegex:this._erasRegex},tK.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tU.call(this),e?this._erasNarrowRegex:this._erasRegex},tK.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ev).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},tK.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ev.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tK.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return eS.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(i=d([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e)||n&&"MMM"===t&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s},tK.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ew.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=ea),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tK.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ew.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=ea),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tK.week=function(e){return eb(e,this._week.dow,this._week.doy).week},tK.firstDayOfYear=function(){return this._week.doy},tK.firstDayOfWeek=function(){return this._week.dow},tK.weekdays=function(e,t){var s=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eL(s,this._week.dow):e?s[e.day()]:s},tK.weekdaysMin=function(e){return!0===e?eL(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tK.weekdaysShort=function(e){return!0===e?eL(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tK.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return eF.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=d([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e)||n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},tK.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eP.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ea),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tK.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eP.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ea),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tK.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eP.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ea),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tK.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tK.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},eq("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===eh(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=A("moment.lang is deprecated. Use moment.locale instead.",eq),t.langData=A("moment.langData is deprecated. Use moment.localeData instead.",eQ);var tq=Math.abs;function tz(e,t,n,s){var i=tg(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function tQ(e){return e<0?Math.floor(e):Math.ceil(e)}function tJ(e){return 4800*e/146097}function t0(e){return 146097*e/4800}function t1(e){return function(){return this.as(e)}}var t3=t1("ms"),t2=t1("s"),t6=t1("m"),t4=t1("h"),t7=t1("d"),t5=t1("w"),t8=t1("M"),t9=t1("Q"),ne=t1("y");function nt(e){return function(){return this.isValid()?this._data[e]:NaN}}var nn=nt("milliseconds"),ns=nt("seconds"),ni=nt("minutes"),nr=nt("hours"),na=nt("days"),no=nt("months"),nl=nt("years"),nu=Math.round,nc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nd(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}var nh=Math.abs;function nf(e){return(e>0)-(e<0)||+e}function n_(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,l=nh(this._milliseconds)/1e3,u=nh(this._days),c=nh(this._months),d=this.asSeconds();return d?(e=ed(l/60),t=ed(e/60),l%=60,e%=60,n=ed(c/12),c%=12,s=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",r=nf(this._months)!==nf(d)?"-":"",a=nf(this._days)!==nf(d)?"-":"",o=nf(this._milliseconds)!==nf(d)?"-":"",i+"P"+(n?r+n+"Y":"")+(c?r+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+s+"S":"")):"P0D"}var nm=tc.prototype;return nm.isValid=function(){return this._isValid},nm.abs=function(){var e=this._data;return this._milliseconds=tq(this._milliseconds),this._days=tq(this._days),this._months=tq(this._months),e.milliseconds=tq(e.milliseconds),e.seconds=tq(e.seconds),e.minutes=tq(e.minutes),e.hours=tq(e.hours),e.months=tq(e.months),e.years=tq(e.years),this},nm.add=function(e,t){return tz(this,e,t,1)},nm.subtract=function(e,t){return tz(this,e,t,-1)},nm.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+tJ(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(t0(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw Error("Unknown unit "+e)}},nm.asMilliseconds=t3,nm.asSeconds=t2,nm.asMinutes=t6,nm.asHours=t4,nm.asDays=t7,nm.asWeeks=t5,nm.asMonths=t8,nm.asQuarters=t9,nm.asYears=ne,nm.valueOf=t3,nm._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,l=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*tQ(t0(o)+a),a=0,o=0),l.milliseconds=r%1e3,e=ed(r/1e3),l.seconds=e%60,t=ed(e/60),l.minutes=t%60,n=ed(t/60),l.hours=n%24,a+=ed(n/24),o+=i=ed(tJ(a)),a-=tQ(t0(i)),s=ed(o/12),o%=12,l.days=a,l.months=o,l.years=s,this},nm.clone=function(){return tg(this)},nm.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},nm.milliseconds=nn,nm.seconds=ns,nm.minutes=ni,nm.hours=nr,nm.days=na,nm.weeks=function(){return ed(this.days()/7)},nm.months=no,nm.years=nl,nm.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i,r,a,o,l,u,c,d,h,f,_,m=!1,T=nc;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(m=e),"object"==typeof t&&(T=Object.assign({},nc,t),null!=t.s&&null==t.ss&&(T.ss=t.s-1)),f=this.localeData(),n=!m,s=T,i=tg(this).abs(),r=nu(i.as("s")),a=nu(i.as("m")),o=nu(i.as("h")),l=nu(i.as("d")),u=nu(i.as("M")),c=nu(i.as("w")),d=nu(i.as("y")),h=r<=s.ss&&["s",r]||r0,h[4]=f,_=nd.apply(null,h),m&&(_=f.pastFuture(+this,_)),f.postformat(_)},nm.toISOString=n_,nm.toString=n_,nm.toJSON=n_,nm.locale=tI,nm.localeData=tk,nm.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",n_),nm.lang=tC,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),eu("x",es),eu("X",/[+-]?\d+(\.\d{1,3})?/),e_("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),e_("x",function(e,t,n){n._d=new Date(eh(e))}),t.version="2.30.1",H=tr,t.fn=tG,t.min=function(){var e=[].slice.call(arguments,0);return tl("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tl("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=d,t.unix=function(e){return tr(1e3*e)},t.months=function(e,t){return tj(e,t,"months")},t.isDate=l,t.locale=eq,t.invalid=_,t.duration=tg,t.isMoment=g,t.weekdays=function(e,t,n){return tZ(e,t,n,"weekdays")},t.parseZone=function(){return tr.apply(null,arguments).parseZone()},t.localeData=eQ,t.isDuration=td,t.monthsShort=function(e,t){return tj(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return tZ(e,t,n,"weekdaysMin")},t.defineLocale=ez,t.updateLocale=function(e,t){if(null!=t){var n,s,i=eB;null!=eK[e]&&null!=eK[e].parentLocale?eK[e].set(D(eK[e]._config,t)):(null!=(s=eZ(e))&&(i=s._config),t=D(i,t),null==s&&(t.abbr=e),(n=new w(t)).parentLocale=eK[e],eK[e]=n),eq(e)}else null!=eK[e]&&(null!=eK[e].parentLocale?(eK[e]=eK[e].parentLocale,e===eq()&&eq(e)):null!=eK[e]&&delete eK[e]);return eK[e]},t.locales=function(){return X(eK)},t.weekdaysShort=function(e,t,n){return tZ(e,t,n,"weekdaysShort")},t.normalizeUnits=P,t.relativeTimeRounding=function(e){return void 0===e?nu:"function"==typeof e&&(nu=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==nc[e]&&(void 0===t?nc[e]:(nc[e]=t,"s"===e&&(nc.ss=t-1),!0))},t.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=tG,t.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"},t},e.exports=n()});var h=d("45fvw"),f=Object.defineProperty,_=function(e,t){return f(e,"name",{value:t,configurable:!0})},m=_(function(e){return new DOMParser().parseFromString(e,"text/html").body.childNodes[0]},"stringToHTML"),T=_(function(e){var t=new DOMParser().parseFromString(e,"application/xml");return document.importNode(t.documentElement,!0).outerHTML},"getSvgNode"),R={CONTAINER:"sn-notifications-container",NOTIFY:"sn-notify",NOTIFY_CONTENT:"sn-notify-content",NOTIFY_ICON:"sn-notify-icon",NOTIFY_CLOSE:"sn-notify-close",NOTIFY_TITLE:"sn-notify-title",NOTIFY_TEXT:"sn-notify-text",IS_X_CENTER:"sn-is-x-center",IS_Y_CENTER:"sn-is-y-center",IS_CENTER:"sn-is-center",IS_LEFT:"sn-is-left",IS_RIGHT:"sn-is-right",IS_TOP:"sn-is-top",IS_BOTTOM:"sn-is-bottom",NOTIFY_OUTLINE:"sn-notify-outline",NOTIFY_FILLED:"sn-notify-filled",NOTIFY_ERROR:"sn-notify-error",NOTIFY_WARNING:"sn-notify-warning",NOTIFY_SUCCESS:"sn-notify-success",NOTIFY_INFO:"sn-notify-info",NOTIFY_FADE:"sn-notify-fade",NOTIFY_FADE_IN:"sn-notify-fade-in",NOTIFY_SLIDE:"sn-notify-slide",NOTIFY_SLIDE_IN:"sn-notify-slide-in",NOTIFY_AUTOCLOSE:"sn-notify-autoclose"},p={ERROR:"error",WARNING:"warning",SUCCESS:"success",INFO:"info"},E={OUTLINE:"outline",FILLED:"filled"},y={FADE:"fade",SLIDE:"slide"},g={CLOSE:T('\n \n\n'),SUCCESS:T('\n \n\n'),ERROR:T('\n \n\n'),WARNING:T('\n \n\n'),INFO:T('\n \n\n')},O=_(function(e){e.wrapper.classList.add(R.NOTIFY_FADE),setTimeout(function(){e.wrapper.classList.add(R.NOTIFY_FADE_IN)},100)},"fadeIn"),A=_(function(e){e.wrapper.classList.remove(R.NOTIFY_FADE_IN),setTimeout(function(){e.wrapper.remove()},e.speed)},"fadeOut"),v=_(function(e){e.wrapper.classList.add(R.NOTIFY_SLIDE),setTimeout(function(){e.wrapper.classList.add(R.NOTIFY_SLIDE_IN)},100)},"slideIn"),S=_(function(e){e.wrapper.classList.remove(R.NOTIFY_SLIDE_IN),setTimeout(function(){e.wrapper.remove()},e.speed)},"slideOut"),N=function(){var e;function t(e){var n=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.notifyOut=_(function(e){e(n)},"notifyOut");var s=e.notificationsGap,i=e.notificationsPadding,r=e.status,a=e.effect,o=void 0===a?y.FADE:a,l=e.type,u=e.title,c=e.text,d=e.showIcon,h=e.customIcon,f=e.customClass,m=e.speed,T=e.showCloseButton,R=e.autoclose,p=e.autotimeout,E=e.position,g=e.customWrapper;if(this.customWrapper=void 0===g?"":g,this.status=void 0===r?"success":r,this.title=u,this.text=c,this.showIcon=void 0===d||d,this.customIcon=void 0===h?"":h,this.customClass=void 0===f?"":f,this.speed=void 0===m?500:m,this.effect=o,this.showCloseButton=void 0===T||T,this.autoclose=void 0===R||R,this.autotimeout=void 0===p?3e3:p,this.notificationsGap=void 0===s?20:s,this.notificationsPadding=void 0===i?20:i,this.type=void 0===l?"outline":l,this.position=void 0===E?"right top":E,!this.checkRequirements()){console.error("You must specify 'title' or 'text' at least.");return}this.setContainer(),this.setWrapper(),this.setPosition(),this.showIcon&&this.setIcon(),this.showCloseButton&&this.setCloseButton(),this.setContent(),this.container.prepend(this.wrapper),this.setEffect(),this.notifyIn(this.selectedNotifyInEffect),this.autoclose&&this.autoClose(),this.setObserver()}return e=[{key:"checkRequirements",value:function(){return!!(this.title||this.text)}},{key:"setContainer",value:function(){var e=document.querySelector(".".concat(R.CONTAINER));e?this.container=e:(this.container=document.createElement("div"),this.container.classList.add(R.CONTAINER),document.body.appendChild(this.container)),this.notificationsPadding&&this.container.style.setProperty("--sn-notifications-padding","".concat(this.notificationsPadding,"px")),this.notificationsGap&&this.container.style.setProperty("--sn-notifications-gap","".concat(this.notificationsGap,"px"))}},{key:"setPosition",value:function(){this.container.classList["center"===this.position?"add":"remove"](R.IS_CENTER),this.container.classList[this.position.includes("left")?"add":"remove"](R.IS_LEFT),this.container.classList[this.position.includes("right")?"add":"remove"](R.IS_RIGHT),this.container.classList[this.position.includes("top")?"add":"remove"](R.IS_TOP),this.container.classList[this.position.includes("bottom")?"add":"remove"](R.IS_BOTTOM),this.container.classList[this.position.includes("x-center")?"add":"remove"](R.IS_X_CENTER),this.container.classList[this.position.includes("y-center")?"add":"remove"](R.IS_Y_CENTER)}},{key:"setCloseButton",value:function(){var e=this,t=document.createElement("div");t.classList.add(R.NOTIFY_CLOSE),t.innerHTML=g.CLOSE,this.wrapper.appendChild(t),t.addEventListener("click",function(){e.close()})}},{key:"setWrapper",value:function(){var e=this;switch(this.customWrapper?this.wrapper=m(this.customWrapper):this.wrapper=document.createElement("div"),this.wrapper.style.setProperty("--sn-notify-transition-duration","".concat(this.speed,"ms")),this.wrapper.classList.add(R.NOTIFY),this.type){case E.OUTLINE:this.wrapper.classList.add(R.NOTIFY_OUTLINE);break;case E.FILLED:this.wrapper.classList.add(R.NOTIFY_FILLED);break;default:this.wrapper.classList.add(R.NOTIFY_OUTLINE)}switch(this.status){case p.SUCCESS:this.wrapper.classList.add(R.NOTIFY_SUCCESS);break;case p.ERROR:this.wrapper.classList.add(R.NOTIFY_ERROR);break;case p.WARNING:this.wrapper.classList.add(R.NOTIFY_WARNING);break;case p.INFO:this.wrapper.classList.add(R.NOTIFY_INFO)}this.autoclose&&(this.wrapper.classList.add(R.NOTIFY_AUTOCLOSE),this.wrapper.style.setProperty("--sn-notify-autoclose-timeout","".concat(this.autotimeout+this.speed,"ms"))),this.customClass&&this.customClass.split(" ").forEach(function(t){e.wrapper.classList.add(t)})}},{key:"setContent",value:function(){var e,t,n=document.createElement("div");n.classList.add(R.NOTIFY_CONTENT),this.title&&((e=document.createElement("div")).classList.add(R.NOTIFY_TITLE),e.textContent=this.title.trim(),this.showCloseButton||(e.style.paddingRight="0")),this.text&&((t=document.createElement("div")).classList.add(R.NOTIFY_TEXT),t.innerHTML=this.text.trim(),this.title||(t.style.marginTop="0")),this.wrapper.appendChild(n),this.title&&n.appendChild(e),this.text&&n.appendChild(t)}},{key:"setIcon",value:function(){var e=_(function(e){switch(e){case p.SUCCESS:return g.SUCCESS;case p.ERROR:return g.ERROR;case p.WARNING:return g.WARNING;case p.INFO:return g.INFO}},"computedIcon"),t=document.createElement("div");t.classList.add(R.NOTIFY_ICON),t.innerHTML=this.customIcon||e(this.status),(this.status||this.customIcon)&&this.wrapper.appendChild(t)}},{key:"setObserver",value:function(){var e=this,t=new IntersectionObserver(function(t){t[0].intersectionRatio<=0&&e.close()},{threshold:0});setTimeout(function(){t.observe(e.wrapper)},this.speed)}},{key:"notifyIn",value:function(e){e(this)}},{key:"autoClose",value:function(){var e=this;setTimeout(function(){e.close()},this.autotimeout+this.speed)}},{key:"close",value:function(){this.notifyOut(this.selectedNotifyOutEffect)}},{key:"setEffect",value:function(){switch(this.effect){case y.FADE:this.selectedNotifyInEffect=O,this.selectedNotifyOutEffect=A;break;case y.SLIDE:this.selectedNotifyInEffect=v,this.selectedNotifyOutEffect=S;break;default:this.selectedNotifyInEffect=O,this.selectedNotifyOutEffect=A}}}],function(e,t){for(var n=0;nCurrent Ember default is to trigger at least one every 60 seconds.","An entry was added to the neighbor table.","An entry was removed from the neighbor table.","A neighbor table entry became stale because it had not been heard from.","A node joined or rejoined to the network via this node.","An entry was removed from the child table.","EZSP-UART only. An overflow error occurred in the UART.","EZSP-UART only. A framing error occurred in the UART.","EZSP-UART only. An overrun error occurred in the UART.","A message was dropped at the Network layer because the NWK frame counter was not higher than the last message seen from that source.","A message was dropped at the APS layer because the APS frame counter was not higher than the last message seen from that source.","EZSP-UART only. An XOFF was transmitted by the UART.","An encrypted message was dropped by the APS layer because the sender's key has not been authenticated. As a result, the key is not authorized for use in APS data messages.","A NWK encrypted message was received but dropped because decryption failed.","An APS encrypted message was received but dropped because decryption failed.","The number of failures to allocate a set of linked packet buffers. This doesn't necessarily mean that the packet buffer count was 0 at the time, but that the number requested was greater than the number free.","The number of relayed unicast packets.","The number of times a packet was dropped due to reaching the preset PHY-to-MAC queue limit. For each count, there may be more than 1 packet that was dropped due to the limit reached.","The number of times a packet was dropped due to the packet-validate library checking a packet and rejecting it due to length or other formatting problems.","The number of times the NWK retry queue is full and a new message failed to be added.","The number of times the PHY layer was unable to transmit due to a failed CCA (Clear Channel Assessment) attempt.","The number of times a NWK broadcast was dropped because the broadcast table was full.","The number of times a low-priority packet traffic arbitration request has been made.","The number of times a high-priority packet traffic arbitration request has been made.","The number of times a low-priority packet traffic arbitration request has been denied.","The number of times a high-priority packet traffic arbitration request has been denied.","The number of times a low-priority packet traffic arbitration transmission has been aborted.","The number of times a high-priority packet traffic arbitration transmission has been aborted.","The number of times an address conflict has caused node_id change, and an address conflict error is sent."],Y=["The total bytes of transmitted data within DATA frames. This can significantly vary if you have device types that transmit lots of data.","The total number of transmitted frames.","The number of transmitted DATA frames.","The number of transmitted ACK frames.","The number of transmitted NAK frames.","The number of re-transmitted DATA frames.","The number of transmitted frames flagged with 'not ready'.","The number of cancelled transmitted frames.","The total bytes of received data within DATA frames. This can significantly vary if you have device types that transmit lots of data.","The total number of received frames.","The number of received DATA frames.","The number of received ACK frames.","The number of received NAK frames.","The number of re-transmitted received DATA frames.","The number of received frames flagged with 'not ready'.","The number of cancelled received frames.","The number of received frames with CRC errors.","The number of received frames with communication errors.","The number of received frames that were too short.","The number of received frames that were too long.","The number of received frames with illegal control byte.","The number of received frames with illegal length for type.","The number of received frames with bad ACK number.","The number of DATA frames discarded due to lack of buffers.","The number of received duplicate re-transmitted DATA frames.","The number of DATA frames received out of sequence.","The number of received ACK timeouts."],L={[o.ROUTE_ERROR_NO_ROUTE_AVAILABLE]:"",[o.ROUTE_ERROR_TREE_LINK_FAILURE]:"",[o.ROUTE_ERROR_NON_TREE_LINK_FAILURE]:"",[o.ROUTE_ERROR_LOW_BATTERY_LEVEL]:"",[o.ROUTE_ERROR_NO_ROUTING_CAPACITY]:"",[o.ROUTE_ERROR_NO_INDIRECT_CAPACITY]:"",[o.ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY]:"",[o.ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE]:"",[o.ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED]:"",[o.ROUTE_ERROR_PARENT_LINK_FAILURE]:"",[o.ROUTE_ERROR_VALIDATE_ROUTE]:"",[o.ROUTE_ERROR_SOURCE_ROUTE_FAILURE]:"Indicates a message sent from the device encountered a broken link. The device prior to the broken link generated the error message and return it to the device.",[o.ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE]:"Indicates that a message sent to the device encountered a broken link. The device prior to the broken link generated the error message and forwarded it to the device via a randomly chosen neighbor.",[o.ROUTE_ERROR_ADDRESS_CONFLICT]:"",[o.ROUTE_ERROR_VERIFY_ADDRESSES]:"",[o.ROUTE_ERROR_PAN_IDENTIFIER_UPDATE]:"",[o.NETWORK_STATUS_NETWORK_ADDRESS_UPDATE]:"",[o.NETWORK_STATUS_BAD_FRAME_COUNTER]:"",[o.NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER]:"",[o.NETWORK_STATUS_UNKNOWN_COMMAND]:""},U=[203.6262,14.1578,226.4056,205.8569,2.0597,.0524,.008,.008,167.3364,163.6076,0,.0038,60,0,0,.0263,0,0,0,0,0,.0393,0,0,0,0,.2279,0,0,0,0,0,.0102,0,0,0,0,0,0,0,0],F=[10878,634,154,479,0,0,0,0,4063,480,480,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],P=[[5,10,!1],[5,10,!1],[5,10,!1],[0,0,!1],[3,5,!1],[3,5,!1],[5,10,!1],[5,10,!1],[5,10,!1],[0,0,!1],[-2,-2,!1],[-2,-2,!1],[1.3,1.6,!1],[0,0,!1],[0,0,!1],[3,6,!1],[0,0,!1],[0,0,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[10,20,!1],[10,20,!1],[-1,-1,!1],[0,0,!1],[10,20,!1],[10,20,!1],[0,0,!1],[0,0,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[10,15,!1],[-2,-2,!1],[0,0,!1],[0,0,!1],[0,0,!1],[0,0,!1],[0,0,!1],[0,0,!1],[-2,-2,!1]],x=[[0,0,!1],[0,0,!1],[0,0,!1],[0,0,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[0,0,!1],[0,0,!1],[0,0,!1],[0,0,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1]];function H(e,t,n,s=0,i=!1){if(-1===n&&-1===s){if(0!==e)return"is-danger"}else if(-2===n&&-2===s){if(0!==e)return"is-warning"}else if(0!==t&&0!==n){if(0===s&&(s=2*n),i?et*s)return"is-danger";if(i?et*n)return"is-warning"}}function W(e,t=""){let n=document.createElement("a");return n.textContent=e,n.className=`button ${t}`,n}function X(e){let t=document.createElement("div");return t.className="table-container pb-2",e&&t.append(e),t}function V(e,t,n,s=!1){let i=document.createElement("table"),r=document.createElement("tbody");if(i.className=`table is-fullwidth is-narrow is-hoverable is-bordered ${s?"is-clickable":""}`,e.length>0){let t=document.createElement("thead"),n=document.createElement("tr"),a=[];for(let t of e){let e=document.createElement("th");e.innerHTML=t,n.append(e),a.push(e)}if(s)for(let[e,t]of a.entries())t.addEventListener("click",()=>{!function(e,t){let n=[...e.rows],s="desc",i=e.getAttribute("sorting");if(i&&""!==i){let e=i.split(".");Number.parseInt(e[0],10)===t&&"desc"===e[1]&&(s="asc")}let r="desc"===s?(e,n)=>n.cells[t].innerHTML.localeCompare(e.cells[t].innerHTML,void 0,{numeric:!0}):(e,n)=>e.cells[t].innerHTML.localeCompare(n.cells[t].innerHTML,void 0,{numeric:!0});n.sort(r),e.setAttribute("sorting",`${t}.${s}`);let a=e.previousElementSibling?.children[0];if(a)for(let e=0;e0)for(let e of n){let t=document.createElement("tr");for(let n of e){let e=document.createElement("td");e.innerHTML=n.content,n.className&&(e.className=n.className),t.append(e)}r.append(t)}if(i.append(r),t.length>0){let e=document.createElement("tfoot"),n=document.createElement("tr");for(let e of t){let t=document.createElement("th");t.innerHTML=e,n.append(t)}e.append(n),i.append(e)}return i}function G(e,t){let n=document.createElement("div");n.className="card";let s=document.createElement("header");s.className="card-header";let i=document.createElement("p");i.className="card-header-title",i.innerHTML=e,s.append(i),n.append(s);let r=document.createElement("div");r.className="card-content";let a=document.createElement("div");a.className="content";let o=function(e){let t=document.createElement("ul");for(let n of e){let e=document.createElement("li");e.innerHTML=n,t.append(e)}return t}(t);return a.append(o),r.append(a),n.append(r),n}function B(e,t,n=""){let s=document.createElement("article");s.className=`message ${n}`;let i=document.createElement("div");if(i.className="message-header",i.textContent=e,s.append(i),""!==t){let e=document.createElement("div");e.className="message-body",e.innerHTML=t,s.append(e)}return s}class K extends Error{constructor(e,t){new N({status:"error",title:t,text:e}),super(`${t}: ${e}`)}}const $=(e,t=2)=>{let n=10**t;return Math.round(e*n)/n},j=(e,t=4)=>"0x"+("0".repeat(t)+e.toString(16)).slice(-1*t).toUpperCase();let Z="YYYY-MM-DD HH:mm:ss",q=0,z=0,Q=0;const J={lines:0,start:void 0,end:void 0,duration:0,startOffset:void 0},ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],et=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],en={all:[],avg:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],avgPerDevice:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],avgForHour:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]]},ea={all:[]},eo={all:[]};function el(){q=0,z=0,Q=0,e=void 0,J.lines=0,J.start=void 0,J.end=void 0,J.duration=0,J.startOffset=void 0,ee.fill(0),et.fill(0),en.all=[],en.avg.fill(0),en.avgPerDevice.fill(0);for(let e=0;eNumber.parseInt(e,10));if(41!==t.length)return;en.all.push([n,...t]);for(let e=0;e<41;e++){let n=t[e];ee[e]+=n,en.avgForHour[s][e]+=n}et[s]+=1;return}let r=e.indexOf(M);if(-1!==r){let t=e.slice(r+M.length).split(",").map(e=>Number.parseInt(e,10));if(27!==t.length)return;er.all.push([n,...t]);for(let e=0;e<27;e++){let n=t[e];es[e]+=n,er.avgForHour[s][e]+=n}ei[s]+=1;return}let a=e.indexOf(I);if(-1!==a){if(n0){let e=ea.all.at(-1);if(e){let t=e[0].getTime()+2500;if(e[1]===i&&e[2]===s&&n.getTime()0){let e=0;for(let n of ee){let s=n/t;en.avg[e]=$(s,2),en.avgPerDevice[e]=$(s/Q,4),e++}for(let e=0;e0){let e=0;for(let t of es){let s=t/n;er.avg[e]=$(s,2),er.avgPerDevice[e]=$(s/Q,4),e++}for(let e=0;e{el();let n=document.querySelector("#log-file-form"),s=document.querySelector("#hero-body"),i=document.querySelector("#menu-home"),l=document.querySelector("#section-home"),u=document.querySelector("#menu-stats"),c=document.querySelector("#section-stats"),d=document.querySelector("#menu-ncp-counters"),f=document.querySelector("#section-ncp-counters"),_=document.querySelector("#menu-ash-counters"),m=document.querySelector("#section-ash-counters"),T=document.querySelector("#menu-routing"),R=document.querySelector("#section-routing"),p=document.querySelector("#menu-tools"),E=document.querySelector("#section-tools"),y=document.querySelector("#menu-help"),g=document.querySelector("#section-help"),O=[[i,l],[u,c],[d,f],[_,m],[T,R],[p,E],[y,g]];for(let[e,t]of O)e.addEventListener("click",()=>{for(let[n,s]of(e.parentElement.className="is-active",t.className="section",O.filter(t=>t[0]!==e)))n.parentElement.className="",s.className="section is-hidden"});n.addEventListener("submit",async i=>{i.preventDefault(),el();let l=new FormData(n);if(Z=l.get("timestamp-format"),Number.isNaN(q=Number.parseInt(l.get("number-routers"),10))||q<0)throw new K("Number of routers must be at least 0.","Invalid number of routers");if(Number.isNaN(z=Number.parseInt(l.get("number-devices"),10))||z<0)throw new K("Number of end devices must be at least 0.","Invalid number of end devices");if(Number.isNaN(Q=q+z)||Q<=0)throw new K("Total number of devices must be at least 1.","Invalid total number of devices");e=l.get("log-file"),await ec(),function(e){let n=document.createElement("div");n.className="grid";let s=z>0?$(q/z,2):-1,i=[`Number of routers: ${q}`,`Number of end devices: ${z}`];-1!==s&&(i.push(`Routers to end devices ratio: ${s} (Ideal: above 0.5)`),Q>10&&s<.5&&i.push(`\u26A0 You may want to increase the number of routers in your network`));let r=G("Parameters",i),a=J.duration<5,o=G("Log file",[`Lines: ${J.lines}`,`Start: ${t(h)(J.start).format(Z)}`,`End: ${t(h)(J.end).format(Z)}`,`Ignore before (avoid starting "noise"): ${t(h)(J.startOffset).format(Z)}`,`Duration: ${$(J.duration,2)} hours ${a?'âš  This is likely too low to get relevant statistics':""}`,`NCP Counters: ${en.all.length}`,`ASH Counters: ${er.all.length}`,`Network/Router Errors: ${ea.all.length}`,`Failed pings (all successive attempts): ${eo.all.length}`]);n.append(r),n.append(o),e.append(n);let l={};for(let e of eo.all){let t=e[1];l[t]=1+(l[t]??0)}for(let t of Object.keys(l)){let n=l[t];n>J.duration&&e.append(B(`Too many failed pings for '${t}' (x${n})`,"This indicates an unreachable device on the network. If unavailable for long periods, consider disabling it to skip unnecessary network traffic.","is-warning"))}}(c),function(e){if(0===en.all.length)return;let n=["Timestamp"],s=[],i=[],a=[],o=[],l=[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]];for(let e=0;e<41;e++){n.push(`${r[e]}`);let t=en.avgPerDevice[e],s=U[e];i.push({content:s.toString(),className:"is-dark"}),a.push({content:t.toString(),className:k.includes(e)?"is-invisible":H(t,s,...P[e])}),o.push({content:en.avg[e].toString(),className:H(t,s,...P[e])});for(let t=0;t{d.remove();let t=X(V(n,[],s,!0));e.append(t)}),e.append(d)}(f),function(e){if(0===er.all.length)return;let n=["Timestamp"],s=[],i=[],r=[],o=[],l=[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]];for(let e=0;e<27;e++){n.push(`${a[e]}`);let t=er.avgPerDevice[e],s=F[e];i.push({content:s.toString(),className:"is-dark"}),r.push({content:t.toString(),className:H(t,s,...x[e])}),o.push({content:er.avg[e].toString(),className:H(t,s,...x[e])});for(let t=0;t{d.remove();let t=X(V(n,[],s,!0));e.append(t)}),e.append(d)}(m),function(e){if(0===ea.all.length)return;let n=[],s={};for(let e of ea.all){let i=e[1],r=e[2],a=e[3];void 0===s[r]&&(s[r]={}),s[r][i]=void 0===s[r][i]?a:s[r][i]+a,a>2&&n.push([{content:t(h)(e[0]).format(Z)},{content:`${i} / ${j(i)}`},{content:r},{content:a.toString()}])}let i=X(V(['Timestamp',"Device / Hex","Error",'Count'],[],n,!0));for(let t in s){let n=[];for(let e in s[t]){let i=$(s[t][e]/J.duration,4);i>.1&&n.push([{content:`${e} / ${j(Number.parseInt(e,10))}`},{content:i.toString(),className:H(i,.1,10,20)}])}if(n.length>0){let s=X(V(["Device / Hex","Errors per hour"],[],n,!0)),i=L[o[t]],r=B(`${t}`,""===i?"":`

${i}

`,"is-warning is-table-header");e.append(r),e.append(s)}}e.append(B("Errors appearing at least 3 times in succession","","is-danger is-table-header")),e.append(i)}(R),s.className="is-hidden",u.click()}),i.addEventListener("click",async()=>{}),u.addEventListener("click",async()=>{if(!e)throw new K("Load a log file from the menu first.","No log file")}),d.addEventListener("click",async()=>{if(!e)throw new K("Load a log file from the menu first.","No log file");if(0===en.all.length)throw new K("No NCP counters were found in the given log file.","No NCP counters found")}),_.addEventListener("click",async()=>{if(!e)throw new K("Load a log file from the menu first.","No log file");if(0===er.all.length)throw new K("No ASH counters were found in the given log file.","No ASH counters found")}),T.addEventListener("click",async()=>{if(!e)throw new K("Load a log file from the menu first.","No log file");0===ea.all.length&&new N({status:"success",title:"No network/route error found",text:"No network/router error was found in the given log file."})}),p.addEventListener("click",async()=>{});{let e=[];for(let t=0;t<41;t++)e.push([{content:r[t]},{content:U[t].toString()},{content:b[t]}]);let t=X(V(["NCP Counter","Ideal (Per Device)","Note"],[],e)),n=[];for(let e=0;e<27;e++)n.push([{content:a[e]},{content:F[e].toString()},{content:Y[e]}]);let s=X(V(["ASH Counter","Ideal (Per Device)","Note"],[],n));g.append(t),g.append(s)}if(window.location.hash){let e=document.querySelector(`#menu-${window.location.hash.slice(1)}`);e&&e.click()}}); -//# sourceMappingURL=index.f81b5c4a.js.map +let e;function t(e){return e&&e.__esModule?e.default:e}var n,s,i,r,a,o,l=globalThis,u={},c={},d=l.parcelRequire0c64;null==d&&((d=function(e){if(e in u)return u[e].exports;if(e in c){var t=c[e];delete c[e];var n={id:e,exports:{}};return u[e]=n,t.call(n.exports,n,n.exports),n.exports}var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,t){c[e]=t},l.parcelRequire0c64=d),(0,d.register)("45fvw",function(e,t){var n;n=function(){function t(){return H.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(i(e,t))return!1;return!0}function a(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,s=[],i=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,B=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)i(e,t)&&n.push(t);return n};var I=/(\[[^\[]*\])|(\\)?([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,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,k={},b={};function Y(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(b[e]=i),t&&(b[t[0]]=function(){return M(i.apply(this,arguments),t[1],t[2])}),n&&(b[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function L(e,t){return e.isValid()?(k[t=U(t,e.localeData())]=k[t]||function(e){var t,n,s,i=e.match(I);for(n=0,s=i.length;n=0&&C.test(e);)e=e.replace(C,s),C.lastIndex=0,n-=1;return e}var P={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function x(e){var t,n,s={};for(n in e)i(e,n)&&(t=F(n))&&(s[t]=e[n]);return s}var H,W,B,X,V={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},G=/\d/,K=/\d\d/,$=/\d{3}/,j=/\d{4}/,Z=/[+-]?\d{6}/,q=/\d\d?/,z=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,et=/[+-]?\d{1,6}/,en=/\d+/,es=/[+-]?\d+/,ei=/Z|[+-]\d\d:?\d\d/gi,er=/Z|[+-]\d\d(?::?\d\d)?/gi,ea=/[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,eo=/^[1-9]\d?/,el=/^([1-9]\d|\d)/;function eu(e,t,n){X[e]=N(t)?t:function(e,s){return e&&n?n:t}}function ec(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ed(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function eh(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ed(t)),n}X={};var ef={};function e_(e,t){var n,s,i=t;for("string"==typeof e&&(e=[e]),o(t)&&(i=function(e,n){n[t]=eh(e)}),s=e.length,n=0;n68?1900:2e3)};var ey=ep("FullYear",!0);function ep(e,n){return function(s){return null!=s?(eg(this,e,s),t.updateOffset(this,n),this):eE(this,e)}}function eE(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function eg(e,t,n){var s,i,r,a;if(!(!e.isValid()||isNaN(n))){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(i?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(i?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(i?s.setUTCHours(n):s.setHours(n));case"Date":return void(i?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}r=e.month(),a=29!==(a=e.date())||1!==r||eT(n)?a:28,i?s.setUTCFullYear(n,r,a):s.setFullYear(n,r,a)}}function eO(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?eT(e)?29:28:31-n%7%2}eB=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?isFinite((o=new Date(e+400,t,n,s,i,r,a)).getFullYear())&&o.setFullYear(e):o=new Date(e,t,n,s,i,r,a),o}function eI(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,n))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eC(e,t,n){var s=7+t-n;return-((7+eI(e,0,s).getUTCDay()-t)%7)+s-1}function ek(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+eC(e,s,i);return o<=0?a=eR(r=e-1)+o:o>eR(e)?(r=e+1,a=o-eR(e)):(r=e,a=o),{year:r,dayOfYear:a}}function eb(e,t,n){var s,i,r=eC(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+eY(i=e.year()-1,t,n):a>eY(e.year(),t,n)?(s=a-eY(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function eY(e,t,n){var s=eC(e,t,n),i=eC(e+1,t,n);return(eR(e)-s+i)/7}function eL(e,t){return e.slice(t,7).concat(e.slice(0,t))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),eu("w",q,eo),eu("ww",q,K),eu("W",q,eo),eu("WW",q,K),em(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=eh(e)}),Y("d",0,"do","day"),Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),eu("d",q),eu("e",q),eu("E",q),eu("dd",function(e,t){return t.weekdaysMinRegex(e)}),eu("ddd",function(e,t){return t.weekdaysShortRegex(e)}),eu("dddd",function(e,t){return t.weekdaysRegex(e)}),em(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),em(["d","e","E"],function(e,t,n,s){t[s]=eh(e)});var eU="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eP(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(s=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];s<7;++s)r=d([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=eB.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=eB.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=eB.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=eB.call(this._weekdaysParse,a))||-1!==(i=eB.call(this._shortWeekdaysParse,a))?i:-1!==(i=eB.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=eB.call(this._shortWeekdaysParse,a))||-1!==(i=eB.call(this._weekdaysParse,a))?i:-1!==(i=eB.call(this._minWeekdaysParse,a))?i:null:-1!==(i=eB.call(this._minWeekdaysParse,a))||-1!==(i=eB.call(this._weekdaysParse,a))?i:-1!==(i=eB.call(this._shortWeekdaysParse,a))?i:null}function eF(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],l=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),s=ec(this.weekdaysMin(n,"")),i=ec(this.weekdaysShort(n,"")),r=ec(this.weekdays(n,"")),a.push(s),o.push(i),l.push(r),u.push(s),u.push(i),u.push(r);a.sort(e),o.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function ex(){return this.hours()%12||12}function eH(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eW(e,t){return t._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,ex),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+ex.apply(this)+M(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+ex.apply(this)+M(this.minutes(),2)+M(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+M(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+M(this.minutes(),2)+M(this.seconds(),2)}),eH("a",!0),eH("A",!1),eu("a",eW),eu("A",eW),eu("H",q,el),eu("h",q,eo),eu("k",q,eo),eu("HH",q,K),eu("hh",q,K),eu("kk",q,K),eu("hmm",z),eu("hmmss",Q),eu("Hmm",z),eu("Hmmss",Q),e_(["H","HH"],3),e_(["k","kk"],function(e,t,n){var s=eh(e);t[3]=24===s?0:s}),e_(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),e_(["h","hh"],function(e,t,n){t[3]=eh(e),h(n).bigHour=!0}),e_("hmm",function(e,t,n){var s=e.length-2;t[3]=eh(e.substr(0,s)),t[4]=eh(e.substr(s)),h(n).bigHour=!0}),e_("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[3]=eh(e.substr(0,s)),t[4]=eh(e.substr(s,2)),t[5]=eh(e.substr(i)),h(n).bigHour=!0}),e_("Hmm",function(e,t,n){var s=e.length-2;t[3]=eh(e.substr(0,s)),t[4]=eh(e.substr(s))}),e_("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[3]=eh(e.substr(0,s)),t[4]=eh(e.substr(s,2)),t[5]=eh(e.substr(i))});var eB,eX,eV=ep("Hours",!0),eG={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:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eA,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eU,meridiemParse:/[ap]\.?m?\.?/i},eK={},e$={};function ej(e){return e?e.toLowerCase().replace("_","-"):e}function eZ(t){var n=null;if(void 0===eK[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{n=eX._abbr,(void 0)("./locale/"+t),eq(n)}catch(e){eK[t]=null}return eK[t]}function eq(e,t){var n;return e&&((n=a(t)?eQ(e):ez(e,t))?eX=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eX._abbr}function ez(e,t){if(null===t)return delete eK[e],null;var n,s=eG;if(t.abbr=e,null!=eK[e])S("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."),s=eK[e]._config;else if(null!=t.parentLocale){if(null!=eK[t.parentLocale])s=eK[t.parentLocale]._config;else{if(null==(n=eZ(t.parentLocale)))return e$[t.parentLocale]||(e$[t.parentLocale]=[]),e$[t.parentLocale].push({name:e,config:t}),null;s=n._config}}return eK[e]=new w(D(s,t)),e$[e]&&e$[e].forEach(function(e){ez(e.name,e.config)}),eq(e),eK[e]}function eQ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eX;if(!n(e)){if(t=eZ(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r0;){if(s=eZ(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n=t-1)break;t--}r++}return eX}(e)}function eJ(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>eO(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var e0=/^\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)?)?$/,e1=/^\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)?)?$/,e3=/Z|[+-]\d\d(?::?\d\d)?/,e2=[["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]],e6=[["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/]],e4=/^\/?Date\((-?\d+)/i,e7=/^(?:(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}))$/,e5={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e8(e){var t,n,s,i,r,a,o=e._i,l=e0.exec(o)||e1.exec(o),u=e2.length,c=e6.length;if(l){for(t=0,h(e).iso=!0,n=u;t7)&&(u=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=eb(tr(),a,o),s=te(n.gg,e._a[0],c.year),i=te(n.w,c.week),null!=n.d?((r=n.d)<0||r>6)&&(u=!0):null!=n.e?(r=n.e+a,(n.e<0||n.e>6)&&(u=!0)):r=a),i<1||i>eY(s,a,o)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(l=ek(s,i,r,a,o),e._a[0]=l.year,e._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(R=te(e._a[0],m[0]),(e._dayOfYear>eR(R)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),_=eI(R,0,e._dayOfYear),e._a[1]=_.getUTCMonth(),e._a[2]=_.getUTCDate()),f=0;f<3&&null==e._a[f];++f)e._a[f]=y[f]=m[f];for(;f<7;f++)e._a[f]=y[f]=null==e._a[f]?2===f?1:0:e._a[f];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eI:eM).apply(null,y),T=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==T&&(h(e).weekdayMismatch=!0)}}function tn(e){if(e._f===t.ISO_8601){e8(e);return}if(e._f===t.RFC_2822){e9(e);return}e._a=[],h(e).empty=!0;var n,s,r,a,o,l,u,c,d,f,_,m=""+e._i,T=m.length,R=0;for(o=0,_=(u=U(e._f,e._locale).match(I)||[]).length;o<_;o++)(c=u[o],(l=(m.match(i(X,c)?X[c](e._strict,e._locale):new RegExp(ec(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i}))))||[])[0])&&((d=m.substr(0,m.indexOf(l))).length>0&&h(e).unusedInput.push(d),m=m.slice(m.indexOf(l)+l.length),R+=l.length),b[c])?(l?h(e).empty=!1:h(e).unusedTokens.push(c),null!=l&&i(ef,c)&&ef[c](l,e._a,e,c)):e._strict&&!l&&h(e).unusedTokens.push(c);h(e).charsLeftOver=T-R,m.length>0&&h(e).unusedInput.push(m),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=(n=e._locale,s=e._a[3],null==(r=e._meridiem)?s:null!=n.meridiemHour?n.meridiemHour(s,r):(null!=n.isPM&&((a=n.isPM(r))&&s<12&&(s+=12),a||12!==s||(s=0)),s)),null!==(f=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(f,e._a[0])),tt(e),eJ(e)}function ts(e){var i,r=e._i,d=e._f;return(e._locale=e._locale||eQ(e._l),null===r||void 0===d&&""===r)?_({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),g(r))?new E(eJ(r)):(l(r)?e._d=r:n(d)?function(e){var t,n,s,i,r,a,o=!1,l=e._f.length;if(0===l){h(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:_()});function tl(e,t){var s,i;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return tr();for(i=1,s=t[0];i=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function tY(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tL(e,t){return t.erasAbbrRegex(e)}function tU(){var e,t,n,s,i,r=[],a=[],o=[],l=[],u=this.eras();for(e=0,t=u.length;e(r=eY(e,s,i))&&(t=r),tx.call(this,e,t,n,s,i))}function tx(e,t,n,s,i){var r=ek(e,t,n,s,i),a=eI(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),eu("N",tL),eu("NN",tL),eu("NNN",tL),eu("NNNN",function(e,t){return t.erasNameRegex(e)}),eu("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),e_(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?h(n).era=i:h(n).invalidEra=e}),eu("y",en),eu("yy",en),eu("yyy",en),eu("yyyy",en),eu("yo",function(e,t){return t._eraYearOrdinalRegex||en}),e_(["y","yy","yyy","yyyy"],0),e_(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)}),Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tP("gggg","weekYear"),tP("ggggg","weekYear"),tP("GGGG","isoWeekYear"),tP("GGGGG","isoWeekYear"),eu("G",es),eu("g",es),eu("GG",q,K),eu("gg",q,K),eu("GGGG",ee,j),eu("gggg",ee,j),eu("GGGGG",et,Z),eu("ggggg",et,Z),em(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=eh(e)}),em(["gg","GG"],function(e,n,s,i){n[i]=t.parseTwoDigitYear(e)}),Y("Q",0,"Qo","quarter"),eu("Q",G),e_("Q",function(e,t){t[1]=(eh(e)-1)*3}),Y("D",["DD",2],"Do","date"),eu("D",q,eo),eu("DD",q,K),eu("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),e_(["D","DD"],2),e_("Do",function(e,t){t[2]=eh(e.match(q)[0])});var tH=ep("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),eu("DDD",J),eu("DDDD",$),e_(["DDD","DDDD"],function(e,t,n){n._dayOfYear=eh(e)}),Y("m",["mm",2],0,"minute"),eu("m",q,el),eu("mm",q,K),e_(["m","mm"],4);var tW=ep("Minutes",!1);Y("s",["ss",2],0,"second"),eu("s",q,el),eu("ss",q,K),e_(["s","ss"],5);var tB=ep("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),eu("S",J,G),eu("SS",J,K),eu("SSS",J,$),m="SSSS";m.length<=9;m+="S")eu(m,en);function tX(e,t){t[6]=eh(("0."+e)*1e3)}for(m="S";m.length<=9;m+="S")e_(m,tX);T=ep("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var tV=E.prototype;function tG(e){return e}tV.add=tN,tV.calendar=function(e,a){if(1==arguments.length){if(arguments[0]){var u,c,d;(u=arguments[0],g(u)||l(u)||tw(u)||o(u)||(c=n(u),d=!1,c&&(d=0===u.filter(function(e){return!o(e)&&tw(u)}).length),c&&d)||function(e){var t,n,a=s(e)&&!r(e),o=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;tn.valueOf():n.valueOf()n.year()||n.year()>9999?L(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",L(n,"Z")):L(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tV.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=r+'[")]',this.format(e+t+n+s)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(tV[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tV.toJSON=function(){return this.isValid()?this.toISOString():null},tV.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tV.unix=function(){return Math.floor(this.valueOf()/1e3)},tV.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tV.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tV.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;eMath.abs(e)&&!s&&(e*=60);return!this._isUTC&&n&&(i=tR(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r===e||(!n||this._changeInProgress?tS(this,tg(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tV.utc=function(e){return this.utcOffset(0,e)},tV.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tR(this),"m")),this},tV.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tm(ei,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tV.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?tr(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tV.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tV.isLocal=function(){return!!this.isValid()&&!this._isUTC},tV.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tV.isUtc=ty,tV.isUTC=ty,tV.zoneAbbr=function(){return this._isUTC?"UTC":""},tV.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tV.dates=A("dates accessor is deprecated. Use date instead.",tH),tV.months=A("months accessor is deprecated. Use month instead",eD),tV.years=A("years accessor is deprecated. Use year instead",ey),tV.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tV.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return p(t,this),(t=ts(t))._a?(e=t._isUTC?d(t._a):tr(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s0):this._isDSTShifted=!1,this._isDSTShifted});var tK=w.prototype;function t$(e,t,n,s){var i=eQ(),r=d().set(s,t);return i[n](r,e)}function tj(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return t$(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=t$(e,s,n,"month");return i}function tZ(e,t,n,s){"boolean"==typeof e||(n=t=e,e=!1),o(t)&&(n=t,t=void 0),t=t||"";var i,r=eQ(),a=e?r._week.dow:0,l=[];if(null!=n)return t$(t,(n+a)%7,s,"day");for(i=0;i<7;i++)l[i]=t$(t,(i+a)%7,s,"day");return l}tK.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return N(s)?s.call(t,n):s},tK.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tK.invalidDate=function(){return this._invalidDate},tK.ordinal=function(e){return this._ordinal.replace("%d",e)},tK.preparse=tG,tK.postformat=tG,tK.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return N(i)?i(e,t,n,s):i.replace(/%d/i,e)},tK.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return N(n)?n(t):n.replace(/%s/i,t)},tK.set=function(e){var t,n;for(n in e)i(e,n)&&(N(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tK.eras=function(e,n){var s,i,r,a=this._eras||eQ("en")._eras;for(s=0,i=a.length;s=0)return l[s]},tK.erasConvertYear=function(e,n){var s=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*s},tK.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tU.call(this),e?this._erasAbbrRegex:this._erasRegex},tK.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tU.call(this),e?this._erasNameRegex:this._erasRegex},tK.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tU.call(this),e?this._erasNarrowRegex:this._erasRegex},tK.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ev).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},tK.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ev.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tK.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return eS.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(i=d([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e)||n&&"MMM"===t&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s},tK.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ew.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=ea),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tK.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||ew.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=ea),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tK.week=function(e){return eb(e,this._week.dow,this._week.doy).week},tK.firstDayOfYear=function(){return this._week.doy},tK.firstDayOfWeek=function(){return this._week.dow},tK.weekdays=function(e,t){var s=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eL(s,this._week.dow):e?s[e.day()]:s},tK.weekdaysMin=function(e){return!0===e?eL(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tK.weekdaysShort=function(e){return!0===e?eL(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tK.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return eP.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=d([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e)||n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},tK.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ea),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tK.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ea),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tK.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ea),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tK.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tK.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},eq("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===eh(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=A("moment.lang is deprecated. Use moment.locale instead.",eq),t.langData=A("moment.langData is deprecated. Use moment.localeData instead.",eQ);var tq=Math.abs;function tz(e,t,n,s){var i=tg(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function tQ(e){return e<0?Math.floor(e):Math.ceil(e)}function tJ(e){return 4800*e/146097}function t0(e){return 146097*e/4800}function t1(e){return function(){return this.as(e)}}var t3=t1("ms"),t2=t1("s"),t6=t1("m"),t4=t1("h"),t7=t1("d"),t5=t1("w"),t8=t1("M"),t9=t1("Q"),ne=t1("y");function nt(e){return function(){return this.isValid()?this._data[e]:NaN}}var nn=nt("milliseconds"),ns=nt("seconds"),ni=nt("minutes"),nr=nt("hours"),na=nt("days"),no=nt("months"),nl=nt("years"),nu=Math.round,nc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nd(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}var nh=Math.abs;function nf(e){return(e>0)-(e<0)||+e}function n_(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,l=nh(this._milliseconds)/1e3,u=nh(this._days),c=nh(this._months),d=this.asSeconds();return d?(e=ed(l/60),t=ed(e/60),l%=60,e%=60,n=ed(c/12),c%=12,s=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",r=nf(this._months)!==nf(d)?"-":"",a=nf(this._days)!==nf(d)?"-":"",o=nf(this._milliseconds)!==nf(d)?"-":"",i+"P"+(n?r+n+"Y":"")+(c?r+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+s+"S":"")):"P0D"}var nm=tc.prototype;return nm.isValid=function(){return this._isValid},nm.abs=function(){var e=this._data;return this._milliseconds=tq(this._milliseconds),this._days=tq(this._days),this._months=tq(this._months),e.milliseconds=tq(e.milliseconds),e.seconds=tq(e.seconds),e.minutes=tq(e.minutes),e.hours=tq(e.hours),e.months=tq(e.months),e.years=tq(e.years),this},nm.add=function(e,t){return tz(this,e,t,1)},nm.subtract=function(e,t){return tz(this,e,t,-1)},nm.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+tJ(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(t0(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw Error("Unknown unit "+e)}},nm.asMilliseconds=t3,nm.asSeconds=t2,nm.asMinutes=t6,nm.asHours=t4,nm.asDays=t7,nm.asWeeks=t5,nm.asMonths=t8,nm.asQuarters=t9,nm.asYears=ne,nm.valueOf=t3,nm._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,l=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*tQ(t0(o)+a),a=0,o=0),l.milliseconds=r%1e3,e=ed(r/1e3),l.seconds=e%60,t=ed(e/60),l.minutes=t%60,n=ed(t/60),l.hours=n%24,a+=ed(n/24),o+=i=ed(tJ(a)),a-=tQ(t0(i)),s=ed(o/12),o%=12,l.days=a,l.months=o,l.years=s,this},nm.clone=function(){return tg(this)},nm.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},nm.milliseconds=nn,nm.seconds=ns,nm.minutes=ni,nm.hours=nr,nm.days=na,nm.weeks=function(){return ed(this.days()/7)},nm.months=no,nm.years=nl,nm.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i,r,a,o,l,u,c,d,h,f,_,m=!1,T=nc;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(m=e),"object"==typeof t&&(T=Object.assign({},nc,t),null!=t.s&&null==t.ss&&(T.ss=t.s-1)),f=this.localeData(),n=!m,s=T,i=tg(this).abs(),r=nu(i.as("s")),a=nu(i.as("m")),o=nu(i.as("h")),l=nu(i.as("d")),u=nu(i.as("M")),c=nu(i.as("w")),d=nu(i.as("y")),h=r<=s.ss&&["s",r]||r0,h[4]=f,_=nd.apply(null,h),m&&(_=f.pastFuture(+this,_)),f.postformat(_)},nm.toISOString=n_,nm.toString=n_,nm.toJSON=n_,nm.locale=tI,nm.localeData=tk,nm.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",n_),nm.lang=tC,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),eu("x",es),eu("X",/[+-]?\d+(\.\d{1,3})?/),e_("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),e_("x",function(e,t,n){n._d=new Date(eh(e))}),t.version="2.30.1",H=tr,t.fn=tV,t.min=function(){var e=[].slice.call(arguments,0);return tl("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tl("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=d,t.unix=function(e){return tr(1e3*e)},t.months=function(e,t){return tj(e,t,"months")},t.isDate=l,t.locale=eq,t.invalid=_,t.duration=tg,t.isMoment=g,t.weekdays=function(e,t,n){return tZ(e,t,n,"weekdays")},t.parseZone=function(){return tr.apply(null,arguments).parseZone()},t.localeData=eQ,t.isDuration=td,t.monthsShort=function(e,t){return tj(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return tZ(e,t,n,"weekdaysMin")},t.defineLocale=ez,t.updateLocale=function(e,t){if(null!=t){var n,s,i=eG;null!=eK[e]&&null!=eK[e].parentLocale?eK[e].set(D(eK[e]._config,t)):(null!=(s=eZ(e))&&(i=s._config),t=D(i,t),null==s&&(t.abbr=e),(n=new w(t)).parentLocale=eK[e],eK[e]=n),eq(e)}else null!=eK[e]&&(null!=eK[e].parentLocale?(eK[e]=eK[e].parentLocale,e===eq()&&eq(e)):null!=eK[e]&&delete eK[e]);return eK[e]},t.locales=function(){return B(eK)},t.weekdaysShort=function(e,t,n){return tZ(e,t,n,"weekdaysShort")},t.normalizeUnits=F,t.relativeTimeRounding=function(e){return void 0===e?nu:"function"==typeof e&&(nu=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==nc[e]&&(void 0===t?nc[e]:(nc[e]=t,"s"===e&&(nc.ss=t-1),!0))},t.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=tV,t.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"},t},e.exports=n()});var h=d("45fvw"),f=Object.defineProperty,_=function(e,t){return f(e,"name",{value:t,configurable:!0})},m=_(function(e){return new DOMParser().parseFromString(e,"text/html").body.childNodes[0]},"stringToHTML"),T=_(function(e){var t=new DOMParser().parseFromString(e,"application/xml");return document.importNode(t.documentElement,!0).outerHTML},"getSvgNode"),R={CONTAINER:"sn-notifications-container",NOTIFY:"sn-notify",NOTIFY_CONTENT:"sn-notify-content",NOTIFY_ICON:"sn-notify-icon",NOTIFY_CLOSE:"sn-notify-close",NOTIFY_TITLE:"sn-notify-title",NOTIFY_TEXT:"sn-notify-text",IS_X_CENTER:"sn-is-x-center",IS_Y_CENTER:"sn-is-y-center",IS_CENTER:"sn-is-center",IS_LEFT:"sn-is-left",IS_RIGHT:"sn-is-right",IS_TOP:"sn-is-top",IS_BOTTOM:"sn-is-bottom",NOTIFY_OUTLINE:"sn-notify-outline",NOTIFY_FILLED:"sn-notify-filled",NOTIFY_ERROR:"sn-notify-error",NOTIFY_WARNING:"sn-notify-warning",NOTIFY_SUCCESS:"sn-notify-success",NOTIFY_INFO:"sn-notify-info",NOTIFY_FADE:"sn-notify-fade",NOTIFY_FADE_IN:"sn-notify-fade-in",NOTIFY_SLIDE:"sn-notify-slide",NOTIFY_SLIDE_IN:"sn-notify-slide-in",NOTIFY_AUTOCLOSE:"sn-notify-autoclose"},y={ERROR:"error",WARNING:"warning",SUCCESS:"success",INFO:"info"},p={OUTLINE:"outline",FILLED:"filled"},E={FADE:"fade",SLIDE:"slide"},g={CLOSE:T('\n \n\n'),SUCCESS:T('\n \n\n'),ERROR:T('\n \n\n'),WARNING:T('\n \n\n'),INFO:T('\n \n\n')},O=_(function(e){e.wrapper.classList.add(R.NOTIFY_FADE),setTimeout(function(){e.wrapper.classList.add(R.NOTIFY_FADE_IN)},100)},"fadeIn"),A=_(function(e){e.wrapper.classList.remove(R.NOTIFY_FADE_IN),setTimeout(function(){e.wrapper.remove()},e.speed)},"fadeOut"),v=_(function(e){e.wrapper.classList.add(R.NOTIFY_SLIDE),setTimeout(function(){e.wrapper.classList.add(R.NOTIFY_SLIDE_IN)},100)},"slideIn"),S=_(function(e){e.wrapper.classList.remove(R.NOTIFY_SLIDE_IN),setTimeout(function(){e.wrapper.remove()},e.speed)},"slideOut"),N=function(){var e;function t(e){var n=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.notifyOut=_(function(e){e(n)},"notifyOut");var s=e.notificationsGap,i=e.notificationsPadding,r=e.status,a=e.effect,o=void 0===a?E.FADE:a,l=e.type,u=e.title,c=e.text,d=e.showIcon,h=e.customIcon,f=e.customClass,m=e.speed,T=e.showCloseButton,R=e.autoclose,y=e.autotimeout,p=e.position,g=e.customWrapper;if(this.customWrapper=void 0===g?"":g,this.status=void 0===r?"success":r,this.title=u,this.text=c,this.showIcon=void 0===d||d,this.customIcon=void 0===h?"":h,this.customClass=void 0===f?"":f,this.speed=void 0===m?500:m,this.effect=o,this.showCloseButton=void 0===T||T,this.autoclose=void 0===R||R,this.autotimeout=void 0===y?3e3:y,this.notificationsGap=void 0===s?20:s,this.notificationsPadding=void 0===i?20:i,this.type=void 0===l?"outline":l,this.position=void 0===p?"right top":p,!this.checkRequirements()){console.error("You must specify 'title' or 'text' at least.");return}this.setContainer(),this.setWrapper(),this.setPosition(),this.showIcon&&this.setIcon(),this.showCloseButton&&this.setCloseButton(),this.setContent(),this.container.prepend(this.wrapper),this.setEffect(),this.notifyIn(this.selectedNotifyInEffect),this.autoclose&&this.autoClose(),this.setObserver()}return e=[{key:"checkRequirements",value:function(){return!!(this.title||this.text)}},{key:"setContainer",value:function(){var e=document.querySelector(".".concat(R.CONTAINER));e?this.container=e:(this.container=document.createElement("div"),this.container.classList.add(R.CONTAINER),document.body.appendChild(this.container)),this.notificationsPadding&&this.container.style.setProperty("--sn-notifications-padding","".concat(this.notificationsPadding,"px")),this.notificationsGap&&this.container.style.setProperty("--sn-notifications-gap","".concat(this.notificationsGap,"px"))}},{key:"setPosition",value:function(){this.container.classList["center"===this.position?"add":"remove"](R.IS_CENTER),this.container.classList[this.position.includes("left")?"add":"remove"](R.IS_LEFT),this.container.classList[this.position.includes("right")?"add":"remove"](R.IS_RIGHT),this.container.classList[this.position.includes("top")?"add":"remove"](R.IS_TOP),this.container.classList[this.position.includes("bottom")?"add":"remove"](R.IS_BOTTOM),this.container.classList[this.position.includes("x-center")?"add":"remove"](R.IS_X_CENTER),this.container.classList[this.position.includes("y-center")?"add":"remove"](R.IS_Y_CENTER)}},{key:"setCloseButton",value:function(){var e=this,t=document.createElement("div");t.classList.add(R.NOTIFY_CLOSE),t.innerHTML=g.CLOSE,this.wrapper.appendChild(t),t.addEventListener("click",function(){e.close()})}},{key:"setWrapper",value:function(){var e=this;switch(this.customWrapper?this.wrapper=m(this.customWrapper):this.wrapper=document.createElement("div"),this.wrapper.style.setProperty("--sn-notify-transition-duration","".concat(this.speed,"ms")),this.wrapper.classList.add(R.NOTIFY),this.type){case p.OUTLINE:this.wrapper.classList.add(R.NOTIFY_OUTLINE);break;case p.FILLED:this.wrapper.classList.add(R.NOTIFY_FILLED);break;default:this.wrapper.classList.add(R.NOTIFY_OUTLINE)}switch(this.status){case y.SUCCESS:this.wrapper.classList.add(R.NOTIFY_SUCCESS);break;case y.ERROR:this.wrapper.classList.add(R.NOTIFY_ERROR);break;case y.WARNING:this.wrapper.classList.add(R.NOTIFY_WARNING);break;case y.INFO:this.wrapper.classList.add(R.NOTIFY_INFO)}this.autoclose&&(this.wrapper.classList.add(R.NOTIFY_AUTOCLOSE),this.wrapper.style.setProperty("--sn-notify-autoclose-timeout","".concat(this.autotimeout+this.speed,"ms"))),this.customClass&&this.customClass.split(" ").forEach(function(t){e.wrapper.classList.add(t)})}},{key:"setContent",value:function(){var e,t,n=document.createElement("div");n.classList.add(R.NOTIFY_CONTENT),this.title&&((e=document.createElement("div")).classList.add(R.NOTIFY_TITLE),e.textContent=this.title.trim(),this.showCloseButton||(e.style.paddingRight="0")),this.text&&((t=document.createElement("div")).classList.add(R.NOTIFY_TEXT),t.innerHTML=this.text.trim(),this.title||(t.style.marginTop="0")),this.wrapper.appendChild(n),this.title&&n.appendChild(e),this.text&&n.appendChild(t)}},{key:"setIcon",value:function(){var e=_(function(e){switch(e){case y.SUCCESS:return g.SUCCESS;case y.ERROR:return g.ERROR;case y.WARNING:return g.WARNING;case y.INFO:return g.INFO}},"computedIcon"),t=document.createElement("div");t.classList.add(R.NOTIFY_ICON),t.innerHTML=this.customIcon||e(this.status),(this.status||this.customIcon)&&this.wrapper.appendChild(t)}},{key:"setObserver",value:function(){var e=this,t=new IntersectionObserver(function(t){t[0].intersectionRatio<=0&&e.close()},{threshold:0});setTimeout(function(){t.observe(e.wrapper)},this.speed)}},{key:"notifyIn",value:function(e){e(this)}},{key:"autoClose",value:function(){var e=this;setTimeout(function(){e.close()},this.autotimeout+this.speed)}},{key:"close",value:function(){this.notifyOut(this.selectedNotifyOutEffect)}},{key:"setEffect",value:function(){switch(this.effect){case E.FADE:this.selectedNotifyInEffect=O,this.selectedNotifyOutEffect=A;break;case E.SLIDE:this.selectedNotifyInEffect=v,this.selectedNotifyOutEffect=S;break;default:this.selectedNotifyInEffect=O,this.selectedNotifyOutEffect=A}}}],function(e,t){for(var n=0;nCurrent Ember default is to trigger at least one every 60 seconds.","An entry was added to the neighbor table.","An entry was removed from the neighbor table.","A neighbor table entry became stale because it had not been heard from.","A node joined or rejoined to the network via this node.","An entry was removed from the child table.","EZSP-UART only. An overflow error occurred in the UART.","EZSP-UART only. A framing error occurred in the UART.","EZSP-UART only. An overrun error occurred in the UART.","A message was dropped at the Network layer because the NWK frame counter was not higher than the last message seen from that source.","A message was dropped at the APS layer because the APS frame counter was not higher than the last message seen from that source.","EZSP-UART only. An XOFF was transmitted by the UART.","An encrypted message was dropped by the APS layer because the sender's key has not been authenticated. As a result, the key is not authorized for use in APS data messages.","A NWK encrypted message was received but dropped because decryption failed.","An APS encrypted message was received but dropped because decryption failed.","The number of failures to allocate a set of linked packet buffers. This doesn't necessarily mean that the packet buffer count was 0 at the time, but that the number requested was greater than the number free.","The number of relayed unicast packets.","The number of times a packet was dropped due to reaching the preset PHY-to-MAC queue limit. For each count, there may be more than 1 packet that was dropped due to the limit reached.","The number of times a packet was dropped due to the packet-validate library checking a packet and rejecting it due to length or other formatting problems.","The number of times the NWK retry queue is full and a new message failed to be added.","The number of times the PHY layer was unable to transmit due to a failed CCA (Clear Channel Assessment) attempt.","The number of times a NWK broadcast was dropped because the broadcast table was full.","The number of times a low-priority packet traffic arbitration request has been made.","The number of times a high-priority packet traffic arbitration request has been made.","The number of times a low-priority packet traffic arbitration request has been denied.","The number of times a high-priority packet traffic arbitration request has been denied.","The number of times a low-priority packet traffic arbitration transmission has been aborted.","The number of times a high-priority packet traffic arbitration transmission has been aborted.","The number of times an address conflict has caused node_id change, and an address conflict error is sent."],Y=["The total bytes of transmitted data within DATA frames. This can significantly vary if you have device types that transmit lots of data.","The total number of transmitted frames.","The number of transmitted DATA frames.","The number of transmitted ACK frames.","The number of transmitted NAK frames.","The number of re-transmitted DATA frames.","The number of transmitted frames flagged with 'not ready'.","The number of cancelled transmitted frames.","The total bytes of received data within DATA frames. This can significantly vary if you have device types that transmit lots of data.","The total number of received frames.","The number of received DATA frames.","The number of received ACK frames.","The number of received NAK frames.","The number of re-transmitted received DATA frames.","The number of received frames flagged with 'not ready'.","The number of cancelled received frames.","The number of received frames with CRC errors.","The number of received frames with communication errors.","The number of received frames that were too short.","The number of received frames that were too long.","The number of received frames with illegal control byte.","The number of received frames with illegal length for type.","The number of received frames with bad ACK number.","The number of DATA frames discarded due to lack of buffers.","The number of received duplicate re-transmitted DATA frames.","The number of DATA frames received out of sequence.","The number of received ACK timeouts."],L={[o.ROUTE_ERROR_NO_ROUTE_AVAILABLE]:"",[o.ROUTE_ERROR_TREE_LINK_FAILURE]:"",[o.ROUTE_ERROR_NON_TREE_LINK_FAILURE]:"",[o.ROUTE_ERROR_LOW_BATTERY_LEVEL]:"",[o.ROUTE_ERROR_NO_ROUTING_CAPACITY]:"",[o.ROUTE_ERROR_NO_INDIRECT_CAPACITY]:"",[o.ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY]:"",[o.ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE]:"",[o.ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED]:"",[o.ROUTE_ERROR_PARENT_LINK_FAILURE]:"",[o.ROUTE_ERROR_VALIDATE_ROUTE]:"",[o.ROUTE_ERROR_SOURCE_ROUTE_FAILURE]:"Indicates a message sent from the device encountered a broken link. The device prior to the broken link generated the error message and return it to the device.",[o.ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE]:"Indicates that a message sent to the device encountered a broken link. The device prior to the broken link generated the error message and forwarded it to the device via a randomly chosen neighbor.",[o.ROUTE_ERROR_ADDRESS_CONFLICT]:"",[o.ROUTE_ERROR_VERIFY_ADDRESSES]:"",[o.ROUTE_ERROR_PAN_IDENTIFIER_UPDATE]:"",[o.NETWORK_STATUS_NETWORK_ADDRESS_UPDATE]:"",[o.NETWORK_STATUS_BAD_FRAME_COUNTER]:"",[o.NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER]:"",[o.NETWORK_STATUS_UNKNOWN_COMMAND]:""},U=[203.6262,14.1578,226.4056,205.8569,2.0597,.0524,.008,.008,167.3364,163.6076,0,.0038,60,0,0,.0263,0,0,0,0,0,.0393,0,0,0,0,.2279,0,0,0,0,0,.0102,0,0,0,0,0,0,0,0],P=[10878,634,154,479,0,0,0,0,4063,480,480,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],F=[[5,10,!1],[5,10,!1],[5,10,!1],[0,0,!1],[3,5,!1],[3,5,!1],[5,10,!1],[5,10,!1],[5,10,!1],[0,0,!1],[-2,-2,!1],[-2,-2,!1],[1.3,1.6,!1],[0,0,!1],[0,0,!1],[3,6,!1],[0,0,!1],[0,0,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[10,20,!1],[10,20,!1],[-1,-1,!1],[0,0,!1],[10,20,!1],[10,20,!1],[0,0,!1],[0,0,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[10,15,!1],[-2,-2,!1],[0,0,!1],[0,0,!1],[0,0,!1],[0,0,!1],[0,0,!1],[0,0,!1],[-2,-2,!1]],x=[[0,0,!1],[0,0,!1],[0,0,!1],[0,0,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[0,0,!1],[0,0,!1],[0,0,!1],[0,0,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1],[-1,-1,!1]];function H(e,t,n,s=0,i=!1){if(-1===n&&-1===s){if(0!==e)return"is-danger"}else if(-2===n&&-2===s){if(0!==e)return"is-warning"}else if(0!==t&&0!==n){if(0===s&&(s=2*n),i?et*s)return"is-danger";if(i?et*n)return"is-warning"}}function W(e,t=""){let n=document.createElement("a");return n.textContent=e,n.className=`button ${t}`,n}function B(e){let t=document.createElement("div");return t.className="table-container pb-2",e&&t.append(e),t}function X(e,t,n,s=!1){let i=document.createElement("table"),r=document.createElement("tbody");if(i.className=`table is-fullwidth is-narrow is-hoverable is-bordered ${s?"is-clickable":""}`,e.length>0){let t=document.createElement("thead"),n=document.createElement("tr"),a=[];for(let t of e){let e=document.createElement("th");e.innerHTML=t,n.append(e),a.push(e)}if(s)for(let[e,t]of a.entries())t.addEventListener("click",()=>{!function(e,t){let n=[...e.rows],s="desc",i=e.getAttribute("sorting");if(i&&""!==i){let e=i.split(".");Number.parseInt(e[0],10)===t&&"desc"===e[1]&&(s="asc")}let r="desc"===s?(e,n)=>n.cells[t].innerHTML.localeCompare(e.cells[t].innerHTML,void 0,{numeric:!0}):(e,n)=>e.cells[t].innerHTML.localeCompare(n.cells[t].innerHTML,void 0,{numeric:!0});n.sort(r),e.setAttribute("sorting",`${t}.${s}`);let a=e.previousElementSibling?.children[0];if(a)for(let e=0;e0)for(let e of n){let t=document.createElement("tr");for(let n of e){let e=document.createElement("td");e.innerHTML=n.content,n.className&&(e.className=n.className),t.append(e)}r.append(t)}if(i.append(r),t.length>0){let e=document.createElement("tfoot"),n=document.createElement("tr");for(let e of t){let t=document.createElement("th");t.innerHTML=e,n.append(t)}e.append(n),i.append(e)}return i}function V(e,t){let n=document.createElement("div");n.className="card";let s=document.createElement("header");s.className="card-header";let i=document.createElement("p");i.className="card-header-title",i.innerHTML=e,s.append(i),n.append(s);let r=document.createElement("div");r.className="card-content";let a=document.createElement("div");a.className="content";let o=function(e){let t=document.createElement("ul");for(let n of e){let e=document.createElement("li");e.innerHTML=n,t.append(e)}return t}(t);return a.append(o),r.append(a),n.append(r),n}function G(e,t,n=""){let s=document.createElement("article");s.className=`message ${n}`;let i=document.createElement("div");if(i.className="message-header",i.textContent=e,s.append(i),""!==t){let e=document.createElement("div");e.className="message-body",e.innerHTML=t,s.append(e)}return s}class K extends Error{constructor(e,t){new N({status:"error",title:t,text:e}),super(`${t}: ${e}`)}}const $=(e,t=2)=>{let n=10**t;return Math.round(e*n)/n},j=(e,t=4)=>"0x"+("0".repeat(t)+e.toString(16)).slice(-1*t).toUpperCase();let Z="YYYY-MM-DD HH:mm:ss",q=0,z=0,Q=0;const J={lines:0,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,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]]},ea={all:[]},eo={all:[]};function el(){q=0,z=0,Q=0,e=void 0,J.lines=0,J.start=void 0,J.end=void 0,J.duration=0,J.startOffset=void 0,ee.fill(0),et.fill(0),en.all=[],en.avg.fill(0),en.avgPerDevice.fill(0);for(let e=0;eNumber.parseInt(e,10));if(41!==t.length)return;en.all.push([n,...t]);for(let e=0;e<41;e++){let n=t[e];ee[e]+=n,en.avgByHour[s][e]+=n}et[s]+=1;return}let r=e.indexOf(M);if(-1!==r){let t=e.slice(r+M.length).split(",").map(e=>Number.parseInt(e,10));if(27!==t.length)return;er.all.push([n,...t]);for(let e=0;e<27;e++){let n=t[e];es[e]+=n,er.avgByHour[s][e]+=n}ei[s]+=1;return}let a=e.indexOf(I);if(-1!==a){if(n0){let e=ea.all.at(-1);if(e){let t=e[0].getTime()+2500;if(e[1]===i&&e[2]===s&&n.getTime()0){let e=0;for(let n of ee){let s=n/t;en.avg[e]=$(s,2),en.avgPerDevice[e]=$(s/Q,4),e++}for(let e=0;e0){let e=0;for(let t of es){let s=t/n;er.avg[e]=$(s,2),er.avgPerDevice[e]=$(s/Q,4),e++}for(let e=0;e{el();let n=document.querySelector("#log-file-form"),s=document.querySelector("#hero-body"),i=document.querySelector("#menu-home"),l=document.querySelector("#section-home"),u=document.querySelector("#menu-stats"),c=document.querySelector("#section-stats"),d=document.querySelector("#menu-ncp-counters"),f=document.querySelector("#section-ncp-counters"),_=document.querySelector("#menu-ash-counters"),m=document.querySelector("#section-ash-counters"),T=document.querySelector("#menu-routing"),R=document.querySelector("#section-routing"),y=document.querySelector("#menu-tools"),p=document.querySelector("#section-tools"),E=document.querySelector("#menu-help"),g=document.querySelector("#section-help"),O=[[i,l],[u,c],[d,f],[_,m],[T,R],[y,p],[E,g]];for(let[e,t]of O)e.addEventListener("click",()=>{for(let[n,s]of(e.parentElement.className="is-active",t.className="section",O.filter(t=>t[0]!==e)))n.parentElement.className="",s.className="section is-hidden"});n.addEventListener("submit",async i=>{i.preventDefault(),el();let l=new FormData(n);if(Z=l.get("timestamp-format"),Number.isNaN(q=Number.parseInt(l.get("number-routers"),10))||q<0)throw new K("Number of routers must be at least 0.","Invalid number of routers");if(Number.isNaN(z=Number.parseInt(l.get("number-devices"),10))||z<0)throw new K("Number of end devices must be at least 0.","Invalid number of end devices");if(Number.isNaN(Q=q+z)||Q<=0)throw new K("Total number of devices must be at least 1.","Invalid total number of devices");e=l.get("log-file"),await ec(),function(e){let n=document.createElement("div");n.className="grid";let s=z>0?$(q/z,2):-1,i=[`Number of routers: ${q}`,`Number of end devices: ${z}`];-1!==s&&(i.push(`Routers to end devices ratio: ${s} (Ideal: above 0.5)`),Q>10&&s<.5&&i.push(`\u26A0 You may want to increase the number of routers in your network`));let r=V("Parameters",i),a=J.duration<5,o=V("Log file",[`Lines: ${J.lines}`,`Start: ${t(h)(J.start).format(Z)}`,`End: ${t(h)(J.end).format(Z)}`,`Ignore before (avoid starting "noise"): ${t(h)(J.startOffset).format(Z)}`,`Duration: ${$(J.duration,2)} hours ${a?'âš  This is likely too low to get relevant statistics':""}`,`NCP Counters: ${en.all.length}`,`ASH Counters: ${er.all.length}`,`Network/Router Errors: ${ea.all.length}`,`Failed pings (all successive attempts): ${eo.all.length}`]);n.append(r),n.append(o),e.append(n);let l={};for(let e of eo.all){let t=e[1];l[t]=1+(l[t]??0)}for(let t of Object.keys(l)){let n=l[t];n>J.duration&&e.append(G(`Too many failed pings for '${t}' (x${n})`,"This indicates an unreachable device on the network. If unavailable for long periods, consider disabling it to skip unnecessary network traffic.","is-warning"))}}(c),function(e){if(0===en.all.length)return;let n=["Timestamp"],s=[],i=[],a=[],o=[],l=[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]];for(let e=0;e<41;e++){n.push(`${r[e]}`);let t=en.avgPerDevice[e],s=U[e];i.push({content:s.toString(),className:"is-dark"}),a.push({content:t.toString(),className:k.includes(e)?"is-invisible":H(t,s,...F[e])}),o.push({content:en.avg[e].toString(),className:H(t,s,...F[e])});for(let t=0;t{d.remove();let t=B(X(n,[],s,!0));e.append(t)}),e.append(d)}(f),function(e){if(0===er.all.length)return;let n=["Timestamp"],s=[],i=[],r=[],o=[],l=[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]];for(let e=0;e<27;e++){n.push(`${a[e]}`);let t=er.avgPerDevice[e],s=P[e];i.push({content:s.toString(),className:"is-dark"}),r.push({content:t.toString(),className:H(t,s,...x[e])}),o.push({content:er.avg[e].toString(),className:H(t,s,...x[e])});for(let t=0;t{d.remove();let t=B(X(n,[],s,!0));e.append(t)}),e.append(d)}(m),function(e){if(0===ea.all.length)return;let n=[],s={};for(let e of ea.all){let i=e[1],r=e[2],a=e[3];void 0===s[r]&&(s[r]={}),s[r][i]=void 0===s[r][i]?a:s[r][i]+a,a>2&&n.push([{content:t(h)(e[0]).format(Z)},{content:`${i} / ${j(i)}`},{content:r},{content:a.toString()}])}let i=B(X(['Timestamp',"Device / Hex","Error",'Count'],[],n,!0));for(let t in s){let n=[];for(let e in s[t]){let i=$(s[t][e]/J.duration,4);i>.1&&n.push([{content:`${e} / ${j(Number.parseInt(e,10))}`},{content:i.toString(),className:H(i,.1,10,20)}])}if(n.length>0){let s=B(X(["Device / Hex","Errors per hour"],[],n,!0)),i=L[o[t]],r=G(`${t}`,""===i?"":`

${i}

`,"is-warning is-table-header");e.append(r),e.append(s)}}e.append(G("Errors appearing at least 3 times in succession","","is-danger is-table-header")),e.append(i)}(R),s.className="is-hidden",u.click()}),i.addEventListener("click",async()=>{}),u.addEventListener("click",async()=>{if(!e)throw new K("Load a log file from the menu first.","No log file")}),d.addEventListener("click",async()=>{if(!e)throw new K("Load a log file from the menu first.","No log file");if(0===en.all.length)throw new K("No NCP counters were found in the given log file.","No NCP counters found")}),_.addEventListener("click",async()=>{if(!e)throw new K("Load a log file from the menu first.","No log file");if(0===er.all.length)throw new K("No ASH counters were found in the given log file.","No ASH counters found")}),T.addEventListener("click",async()=>{if(!e)throw new K("Load a log file from the menu first.","No log file");0===ea.all.length&&new N({status:"success",title:"No network/route error found",text:"No network/router error was found in the given log file."})}),y.addEventListener("click",async()=>{});{let e=[];for(let t=0;t<41;t++)e.push([{content:r[t]},{content:U[t].toString()},{content:b[t]}]);let t=B(X(["NCP Counter","Ideal (Per Device)","Note"],[],e)),n=[];for(let e=0;e<27;e++)n.push([{content:a[e]},{content:P[e].toString()},{content:Y[e]}]);let s=B(X(["ASH Counter","Ideal (Per Device)","Note"],[],n));g.append(t),g.append(s)}if(window.location.hash){let e=document.querySelector(`#menu-${window.location.hash.slice(1)}`);e&&e.click()}}); +//# sourceMappingURL=index.3382268b.js.map diff --git a/index.f81b5c4a.js.map b/index.3382268b.js.map similarity index 52% rename from index.f81b5c4a.js.map rename to index.3382268b.js.map index 57a63ea..b115084 100644 --- a/index.f81b5c4a.js.map +++ b/index.3382268b.js.map @@ -1 +1 @@ -{"mappings":"IEiDI,E,S,E,C,E,O,G,E,U,C,E,O,C,C,C,IYvCQ,EAkMA,EAgCA,EAnOX,E,E,E,E,W,E,C,E,E,C,E,E,E,iB,A,O,I,A,C,E,S,C,E,G,K,E,O,C,C,E,C,O,C,G,K,E,C,I,E,C,C,E,A,Q,C,C,E,C,I,E,C,G,E,Q,C,C,E,O,C,C,E,C,E,E,I,C,E,O,C,E,E,O,E,E,O,A,C,I,E,A,M,uB,E,I,O,E,I,C,mB,C,C,E,Q,C,S,C,C,C,E,C,C,E,C,C,E,E,iB,C,G,A,C,E,E,Q,A,E,Q,S,C,C,C,MbHmB,EAAA,EAIX,WAIL,SAAS,IACL,OAAO,EAAa,KAAK,CAAC,KAAM,UACpC,CAQA,SAAS,EAAQ,CAAK,EAClB,OACI,aAAiB,OACjB,AAA0C,mBAA1C,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAEvC,CAEA,SAAS,EAAS,CAAK,EAGnB,OACI,AAAS,MAAT,GACA,AAA0C,oBAA1C,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAEvC,CAEA,SAAS,EAAW,CAAC,CAAE,CAAC,EACpB,OAAO,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAG,EACnD,CAEA,SAAS,EAAc,CAAG,MAId,EAHR,GAAI,OAAO,mBAAmB,CAC1B,OAAO,AAA2C,IAA3C,OAAO,mBAAm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a,CAAC,CAAC,MAAM,EAAE,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAExE,GACA,EAAK,KAAK,EAElB,CACJ","sources":["","node_modules/moment/moment.js","src/index.ts","node_modules/simple-notify/dist/simple-notify.mjs","node_modules/simple-notify/src/icons/close.svg","node_modules/simple-notify/src/icons/error.svg","node_modules/simple-notify/src/icons/info.svg","node_modules/simple-notify/src/icons/success.svg","node_modules/simple-notify/src/icons/warning.svg","node_modules/simple-notify/src/utils.ts","node_modules/simple-notify/src/consts.ts","node_modules/simple-notify/src/effects.ts","node_modules/simple-notify/src/index.ts","src/consts.ts","src/zh.ts","src/data.ts","src/dom.ts","src/notify-error.ts","src/utils.ts"],"sourcesContent":["\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequire0c64\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequire0c64\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"45fvw\", function(module, exports) {\n//! moment.js\n//! version : 2.30.1\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n(function(global, factory) {\n module.exports = factory();\n})(this, function() {\n \"use strict\";\n var hookCallback;\n function hooks() {\n return hookCallback.apply(null, arguments);\n }\n // This is done to register the method called with moment()\n // without creating circular dependencies.\n function setHookCallback(callback) {\n hookCallback = callback;\n }\n function isArray(input) {\n return input instanceof Array || Object.prototype.toString.call(input) === \"[object Array]\";\n }\n function isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return input != null && Object.prototype.toString.call(input) === \"[object Object]\";\n }\n function hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n }\n function isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) return Object.getOwnPropertyNames(obj).length === 0;\n else {\n var k;\n for(k in obj){\n if (hasOwnProp(obj, k)) return false;\n }\n return true;\n }\n }\n function isUndefined(input) {\n return input === void 0;\n }\n function isNumber(input) {\n return typeof input === \"number\" || Object.prototype.toString.call(input) === \"[object Number]\";\n }\n function isDate(input) {\n return input instanceof Date || Object.prototype.toString.call(input) === \"[object Date]\";\n }\n function map(arr, fn) {\n var res = [], i, arrLen = arr.length;\n for(i = 0; i < arrLen; ++i)res.push(fn(arr[i], i));\n return res;\n }\n function extend(a, b) {\n for(var i in b)if (hasOwnProp(b, i)) a[i] = b[i];\n if (hasOwnProp(b, \"toString\")) a.toString = b.toString;\n if (hasOwnProp(b, \"valueOf\")) a.valueOf = b.valueOf;\n return a;\n }\n function createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n }\n function defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidEra: null,\n invalidMonth: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false\n };\n }\n function getParsingFlags(m) {\n if (m._pf == null) m._pf = defaultParsingFlags();\n return m._pf;\n }\n var some;\n if (Array.prototype.some) some = Array.prototype.some;\n else some = function(fun) {\n var t = Object(this), len = t.length >>> 0, i;\n for(i = 0; i < len; i++){\n if (i in t && fun.call(this, t[i], i, t)) return true;\n }\n return false;\n };\n function isValid(m) {\n var flags = null, parsedParts = false, isNowValid = m._d && !isNaN(m._d.getTime());\n if (isNowValid) {\n flags = getParsingFlags(m);\n parsedParts = some.call(flags.parsedDateParts, function(i) {\n return i != null;\n });\n isNowValid = flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);\n if (m._strict) isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === undefined;\n }\n if (Object.isFrozen == null || !Object.isFrozen(m)) m._isValid = isNowValid;\n else return isNowValid;\n return m._isValid;\n }\n function createInvalid(flags) {\n var m = createUTC(NaN);\n if (flags != null) extend(getParsingFlags(m), flags);\n else getParsingFlags(m).userInvalidated = true;\n return m;\n }\n // Plugins that add properties should also add the key here (null value),\n // so we can properly clone ourselves.\n var momentProperties = hooks.momentProperties = [], updateInProgress = false;\n function copyConfig(to, from) {\n var i, prop, val, momentPropertiesLen = momentProperties.length;\n if (!isUndefined(from._isAMomentObject)) to._isAMomentObject = from._isAMomentObject;\n if (!isUndefined(from._i)) to._i = from._i;\n if (!isUndefined(from._f)) to._f = from._f;\n if (!isUndefined(from._l)) to._l = from._l;\n if (!isUndefined(from._strict)) to._strict = from._strict;\n if (!isUndefined(from._tzm)) to._tzm = from._tzm;\n if (!isUndefined(from._isUTC)) to._isUTC = from._isUTC;\n if (!isUndefined(from._offset)) to._offset = from._offset;\n if (!isUndefined(from._pf)) to._pf = getParsingFlags(from);\n if (!isUndefined(from._locale)) to._locale = from._locale;\n if (momentPropertiesLen > 0) for(i = 0; i < momentPropertiesLen; i++){\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) to[prop] = val;\n }\n return to;\n }\n // Moment prototype object\n function Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) this._d = new Date(NaN);\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n }\n function isMoment(obj) {\n return obj instanceof Moment || obj != null && obj._isAMomentObject != null;\n }\n function warn(msg) {\n if (hooks.suppressDeprecationWarnings === false && typeof console !== \"undefined\" && console.warn) console.warn(\"Deprecation warning: \" + msg);\n }\n function deprecate(msg, fn) {\n var firstTime = true;\n return extend(function() {\n if (hooks.deprecationHandler != null) hooks.deprecationHandler(null, msg);\n if (firstTime) {\n var args = [], arg, i, key, argLen = arguments.length;\n for(i = 0; i < argLen; i++){\n arg = \"\";\n if (typeof arguments[i] === \"object\") {\n arg += \"\\n[\" + i + \"] \";\n for(key in arguments[0])if (hasOwnProp(arguments[0], key)) arg += key + \": \" + arguments[0][key] + \", \";\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else arg = arguments[i];\n args.push(arg);\n }\n warn(msg + \"\\nArguments: \" + Array.prototype.slice.call(args).join(\"\") + \"\\n\" + new Error().stack);\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n }\n var deprecations = {};\n function deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) hooks.deprecationHandler(name, msg);\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n }\n hooks.suppressDeprecationWarnings = false;\n hooks.deprecationHandler = null;\n function isFunction(input) {\n return typeof Function !== \"undefined\" && input instanceof Function || Object.prototype.toString.call(input) === \"[object Function]\";\n }\n function set(config) {\n var prop, i;\n for(i in config)if (hasOwnProp(config, i)) {\n prop = config[i];\n if (isFunction(prop)) this[i] = prop;\n else this[\"_\" + i] = prop;\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + \"|\" + /\\d{1,2}/.source);\n }\n function mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig), prop;\n for(prop in childConfig)if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) res[prop] = childConfig[prop];\n else delete res[prop];\n }\n for(prop in parentConfig)if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n return res;\n }\n function Locale(config) {\n if (config != null) this.set(config);\n }\n var keys;\n if (Object.keys) keys = Object.keys;\n else keys = function(obj) {\n var i, res = [];\n for(i in obj)if (hasOwnProp(obj, i)) res.push(i);\n return res;\n };\n var defaultCalendar = {\n sameDay: \"[Today at] LT\",\n nextDay: \"[Tomorrow at] LT\",\n nextWeek: \"dddd [at] LT\",\n lastDay: \"[Yesterday at] LT\",\n lastWeek: \"[Last] dddd [at] LT\",\n sameElse: \"L\"\n };\n function calendar(key, mom, now) {\n var output = this._calendar[key] || this._calendar[\"sameElse\"];\n return isFunction(output) ? output.call(mom, now) : output;\n }\n function zeroFill(number, targetLength, forceSign) {\n var absNumber = \"\" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign = number >= 0;\n return (sign ? forceSign ? \"+\" : \"\" : \"-\") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;\n }\n var formattingTokens = /(\\[[^\\[]*\\])|(\\\\)?([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, localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {};\n // token: 'M'\n // padded: ['MM', 2]\n // ordinal: 'Mo'\n // callback: function () { this.month() + 1 }\n function addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === \"string\") func = function() {\n return this[callback]();\n };\n if (token) formatTokenFunctions[token] = func;\n if (padded) formatTokenFunctions[padded[0]] = function() {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n if (ordinal) formatTokenFunctions[ordinal] = function() {\n return this.localeData().ordinal(func.apply(this, arguments), token);\n };\n }\n function removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) return input.replace(/^\\[|\\]$/g, \"\");\n return input.replace(/\\\\/g, \"\");\n }\n function makeFormatFunction(format) {\n var array = format.match(formattingTokens), i, length;\n for(i = 0, length = array.length; i < length; i++)if (formatTokenFunctions[array[i]]) array[i] = formatTokenFunctions[array[i]];\n else array[i] = removeFormattingTokens(array[i]);\n return function(mom) {\n var output = \"\", i;\n for(i = 0; i < length; i++)output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];\n return output;\n };\n }\n // format date using native date object\n function formatMoment(m, format) {\n if (!m.isValid()) return m.localeData().invalidDate();\n format = expandFormat(format, m.localeData());\n formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);\n return formatFunctions[format](m);\n }\n function expandFormat(format, locale) {\n var i = 5;\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n localFormattingTokens.lastIndex = 0;\n while(i >= 0 && localFormattingTokens.test(format)){\n format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n return format;\n }\n var defaultLongDateFormat = {\n LTS: \"h:mm:ss A\",\n LT: \"h:mm A\",\n L: \"MM/DD/YYYY\",\n LL: \"MMMM D, YYYY\",\n LLL: \"MMMM D, YYYY h:mm A\",\n LLLL: \"dddd, MMMM D, YYYY h:mm A\"\n };\n function longDateFormat(key) {\n var format = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()];\n if (format || !formatUpper) return format;\n this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function(tok) {\n if (tok === \"MMMM\" || tok === \"MM\" || tok === \"DD\" || tok === \"dddd\") return tok.slice(1);\n return tok;\n }).join(\"\");\n return this._longDateFormat[key];\n }\n var defaultInvalidDate = \"Invalid date\";\n function invalidDate() {\n return this._invalidDate;\n }\n var defaultOrdinal = \"%d\", defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n function ordinal(number) {\n return this._ordinal.replace(\"%d\", number);\n }\n var defaultRelativeTime = {\n future: \"in %s\",\n past: \"%s ago\",\n s: \"a few seconds\",\n ss: \"%d seconds\",\n m: \"a minute\",\n mm: \"%d minutes\",\n h: \"an hour\",\n hh: \"%d hours\",\n d: \"a day\",\n dd: \"%d days\",\n w: \"a week\",\n ww: \"%d weeks\",\n M: \"a month\",\n MM: \"%d months\",\n y: \"a year\",\n yy: \"%d years\"\n };\n function relativeTime(number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);\n }\n function pastFuture(diff, output) {\n var format = this._relativeTime[diff > 0 ? \"future\" : \"past\"];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n }\n var aliases = {\n D: \"date\",\n dates: \"date\",\n date: \"date\",\n d: \"day\",\n days: \"day\",\n day: \"day\",\n e: \"weekday\",\n weekdays: \"weekday\",\n weekday: \"weekday\",\n E: \"isoWeekday\",\n isoweekdays: \"isoWeekday\",\n isoweekday: \"isoWeekday\",\n DDD: \"dayOfYear\",\n dayofyears: \"dayOfYear\",\n dayofyear: \"dayOfYear\",\n h: \"hour\",\n hours: \"hour\",\n hour: \"hour\",\n ms: \"millisecond\",\n milliseconds: \"millisecond\",\n millisecond: \"millisecond\",\n m: \"minute\",\n minutes: \"minute\",\n minute: \"minute\",\n M: \"month\",\n months: \"month\",\n month: \"month\",\n Q: \"quarter\",\n quarters: \"quarter\",\n quarter: \"quarter\",\n s: \"second\",\n seconds: \"second\",\n second: \"second\",\n gg: \"weekYear\",\n weekyears: \"weekYear\",\n weekyear: \"weekYear\",\n GG: \"isoWeekYear\",\n isoweekyears: \"isoWeekYear\",\n isoweekyear: \"isoWeekYear\",\n w: \"week\",\n weeks: \"week\",\n week: \"week\",\n W: \"isoWeek\",\n isoweeks: \"isoWeek\",\n isoweek: \"isoWeek\",\n y: \"year\",\n years: \"year\",\n year: \"year\"\n };\n function normalizeUnits(units) {\n return typeof units === \"string\" ? aliases[units] || aliases[units.toLowerCase()] : undefined;\n }\n function normalizeObjectUnits(inputObject) {\n var normalizedInput = {}, normalizedProp, prop;\n for(prop in inputObject)if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) normalizedInput[normalizedProp] = inputObject[prop];\n }\n return normalizedInput;\n }\n var priorities = {\n date: 9,\n day: 11,\n weekday: 11,\n isoWeekday: 11,\n dayOfYear: 4,\n hour: 13,\n millisecond: 16,\n minute: 14,\n month: 8,\n quarter: 7,\n second: 15,\n weekYear: 1,\n isoWeekYear: 1,\n week: 5,\n isoWeek: 5,\n year: 1\n };\n function getPrioritizedUnits(unitsObj) {\n var units = [], u;\n for(u in unitsObj)if (hasOwnProp(unitsObj, u)) units.push({\n unit: u,\n priority: priorities[u]\n });\n units.sort(function(a, b) {\n return a.priority - b.priority;\n });\n return units;\n }\n var match1 = /\\d/, match2 = /\\d\\d/, match3 = /\\d{3}/, match4 = /\\d{4}/, match6 = /[+-]?\\d{6}/, match1to2 = /\\d\\d?/, match3to4 = /\\d\\d\\d\\d?/, match5to6 = /\\d\\d\\d\\d\\d\\d?/, match1to3 = /\\d{1,3}/, match1to4 = /\\d{1,4}/, match1to6 = /[+-]?\\d{1,6}/, matchUnsigned = /\\d+/, matchSigned = /[+-]?\\d+/, matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n matchWord = /[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, match1to2NoLeadingZero = /^[1-9]\\d?/, match1to2HasZero = /^([1-9]\\d|\\d)/, regexes;\n regexes = {};\n function addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex) ? regex : function(isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n }\n function getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) return new RegExp(unescapeFormat(token));\n return regexes[token](config._strict, config._locale);\n }\n // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n function unescapeFormat(s) {\n return regexEscape(s.replace(\"\\\\\", \"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function(matched, p1, p2, p3, p4) {\n return p1 || p2 || p3 || p4;\n }));\n }\n function regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\n }\n function absFloor(number) {\n if (number < 0) // -0 -> 0\n return Math.ceil(number) || 0;\n else return Math.floor(number);\n }\n function toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion, value = 0;\n if (coercedNumber !== 0 && isFinite(coercedNumber)) value = absFloor(coercedNumber);\n return value;\n }\n var tokens = {};\n function addParseToken(token, callback) {\n var i, func = callback, tokenLen;\n if (typeof token === \"string\") token = [\n token\n ];\n if (isNumber(callback)) func = function(input, array) {\n array[callback] = toInt(input);\n };\n tokenLen = token.length;\n for(i = 0; i < tokenLen; i++)tokens[token[i]] = func;\n }\n function addWeekParseToken(token, callback) {\n addParseToken(token, function(input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n }\n function addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) tokens[token](input, config._a, config, token);\n }\n function isLeapYear(year) {\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n }\n var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8;\n // FORMATTING\n addFormatToken(\"Y\", 0, 0, function() {\n var y = this.year();\n return y <= 9999 ? zeroFill(y, 4) : \"+\" + y;\n });\n addFormatToken(0, [\n \"YY\",\n 2\n ], 0, function() {\n return this.year() % 100;\n });\n addFormatToken(0, [\n \"YYYY\",\n 4\n ], 0, \"year\");\n addFormatToken(0, [\n \"YYYYY\",\n 5\n ], 0, \"year\");\n addFormatToken(0, [\n \"YYYYYY\",\n 6,\n true\n ], 0, \"year\");\n // PARSING\n addRegexToken(\"Y\", matchSigned);\n addRegexToken(\"YY\", match1to2, match2);\n addRegexToken(\"YYYY\", match1to4, match4);\n addRegexToken(\"YYYYY\", match1to6, match6);\n addRegexToken(\"YYYYYY\", match1to6, match6);\n addParseToken([\n \"YYYYY\",\n \"YYYYYY\"\n ], YEAR);\n addParseToken(\"YYYY\", function(input, array) {\n array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n });\n addParseToken(\"YY\", function(input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n });\n addParseToken(\"Y\", function(input, array) {\n array[YEAR] = parseInt(input, 10);\n });\n // HELPERS\n function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n }\n // HOOKS\n hooks.parseTwoDigitYear = function(input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n };\n // MOMENTS\n var getSetYear = makeGetSet(\"FullYear\", true);\n function getIsLeapYear() {\n return isLeapYear(this.year());\n }\n function makeGetSet(unit, keepTime) {\n return function(value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else return get(this, unit);\n };\n }\n function get(mom, unit) {\n if (!mom.isValid()) return NaN;\n var d = mom._d, isUTC = mom._isUTC;\n switch(unit){\n case \"Milliseconds\":\n return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();\n case \"Seconds\":\n return isUTC ? d.getUTCSeconds() : d.getSeconds();\n case \"Minutes\":\n return isUTC ? d.getUTCMinutes() : d.getMinutes();\n case \"Hours\":\n return isUTC ? d.getUTCHours() : d.getHours();\n case \"Date\":\n return isUTC ? d.getUTCDate() : d.getDate();\n case \"Day\":\n return isUTC ? d.getUTCDay() : d.getDay();\n case \"Month\":\n return isUTC ? d.getUTCMonth() : d.getMonth();\n case \"FullYear\":\n return isUTC ? d.getUTCFullYear() : d.getFullYear();\n default:\n return NaN; // Just in case\n }\n }\n function set$1(mom, unit, value) {\n var d, isUTC, year, month, date;\n if (!mom.isValid() || isNaN(value)) return;\n d = mom._d;\n isUTC = mom._isUTC;\n switch(unit){\n case \"Milliseconds\":\n return void (isUTC ? d.setUTCMilliseconds(value) : d.setMilliseconds(value));\n case \"Seconds\":\n return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));\n case \"Minutes\":\n return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));\n case \"Hours\":\n return void (isUTC ? d.setUTCHours(value) : d.setHours(value));\n case \"Date\":\n return void (isUTC ? d.setUTCDate(value) : d.setDate(value));\n // case 'Day': // Not real\n // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));\n // case 'Month': // Not used because we need to pass two variables\n // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));\n case \"FullYear\":\n break; // See below ...\n default:\n return; // Just in case\n }\n year = value;\n month = mom.month();\n date = mom.date();\n date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;\n isUTC ? d.setUTCFullYear(year, month, date) : d.setFullYear(year, month, date);\n }\n // MOMENTS\n function stringGet(units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) return this[units]();\n return this;\n }\n function stringSet(units, value) {\n if (typeof units === \"object\") {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units), i, prioritizedLen = prioritized.length;\n for(i = 0; i < prioritizedLen; i++)this[prioritized[i].unit](units[prioritized[i].unit]);\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) return this[units](value);\n }\n return this;\n }\n function mod(n, x) {\n return (n % x + x) % x;\n }\n var indexOf;\n if (Array.prototype.indexOf) indexOf = Array.prototype.indexOf;\n else indexOf = function(o) {\n // I know\n var i;\n for(i = 0; i < this.length; ++i){\n if (this[i] === o) return i;\n }\n return -1;\n };\n function daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) return NaN;\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;\n }\n // FORMATTING\n addFormatToken(\"M\", [\n \"MM\",\n 2\n ], \"Mo\", function() {\n return this.month() + 1;\n });\n addFormatToken(\"MMM\", 0, 0, function(format) {\n return this.localeData().monthsShort(this, format);\n });\n addFormatToken(\"MMMM\", 0, 0, function(format) {\n return this.localeData().months(this, format);\n });\n // PARSING\n addRegexToken(\"M\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"MM\", match1to2, match2);\n addRegexToken(\"MMM\", function(isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n });\n addRegexToken(\"MMMM\", function(isStrict, locale) {\n return locale.monthsRegex(isStrict);\n });\n addParseToken([\n \"M\",\n \"MM\"\n ], function(input, array) {\n array[MONTH] = toInt(input) - 1;\n });\n addParseToken([\n \"MMM\",\n \"MMMM\"\n ], function(input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) array[MONTH] = month;\n else getParsingFlags(config).invalidMonth = input;\n });\n // LOCALES\n var defaultLocaleMonths = \"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"), defaultLocaleMonthsShort = \"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"), MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord;\n function localeMonths(m, format) {\n if (!m) return isArray(this._months) ? this._months : this._months[\"standalone\"];\n return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? \"format\" : \"standalone\"][m.month()];\n }\n function localeMonthsShort(m, format) {\n if (!m) return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort[\"standalone\"];\n return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? \"format\" : \"standalone\"][m.month()];\n }\n function handleStrictParse(monthName, format, strict) {\n var i, ii, mom, llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for(i = 0; i < 12; ++i){\n mom = createUTC([\n 2000,\n i\n ]);\n this._shortMonthsParse[i] = this.monthsShort(mom, \"\").toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, \"\").toLocaleLowerCase();\n }\n }\n if (strict) {\n if (format === \"MMM\") {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else if (format === \"MMM\") {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n function localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n if (this._monthsParseExact) return handleStrictParse.call(this, monthName, format, strict);\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for(i = 0; i < 12; i++){\n // make the regex if we don't have it already\n mom = createUTC([\n 2000,\n i\n ]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp(\"^\" + this.months(mom, \"\").replace(\".\", \"\") + \"$\", \"i\");\n this._shortMonthsParse[i] = new RegExp(\"^\" + this.monthsShort(mom, \"\").replace(\".\", \"\") + \"$\", \"i\");\n }\n if (!strict && !this._monthsParse[i]) {\n regex = \"^\" + this.months(mom, \"\") + \"|^\" + this.monthsShort(mom, \"\");\n this._monthsParse[i] = new RegExp(regex.replace(\".\", \"\"), \"i\");\n }\n // test the regex\n if (strict && format === \"MMMM\" && this._longMonthsParse[i].test(monthName)) return i;\n else if (strict && format === \"MMM\" && this._shortMonthsParse[i].test(monthName)) return i;\n else if (!strict && this._monthsParse[i].test(monthName)) return i;\n }\n }\n // MOMENTS\n function setMonth(mom, value) {\n if (!mom.isValid()) // No op\n return mom;\n if (typeof value === \"string\") {\n if (/^\\d+$/.test(value)) value = toInt(value);\n else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) return mom;\n }\n }\n var month = value, date = mom.date();\n date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));\n mom._isUTC ? mom._d.setUTCMonth(month, date) : mom._d.setMonth(month, date);\n return mom;\n }\n function getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else return get(this, \"Month\");\n }\n function getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n }\n function monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, \"_monthsRegex\")) computeMonthsParse.call(this);\n if (isStrict) return this._monthsShortStrictRegex;\n else return this._monthsShortRegex;\n } else {\n if (!hasOwnProp(this, \"_monthsShortRegex\")) this._monthsShortRegex = defaultMonthsShortRegex;\n return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;\n }\n }\n function monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, \"_monthsRegex\")) computeMonthsParse.call(this);\n if (isStrict) return this._monthsStrictRegex;\n else return this._monthsRegex;\n } else {\n if (!hasOwnProp(this, \"_monthsRegex\")) this._monthsRegex = defaultMonthsRegex;\n return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;\n }\n }\n function computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n var shortPieces = [], longPieces = [], mixedPieces = [], i, mom, shortP, longP;\n for(i = 0; i < 12; i++){\n // make the regex if we don't have it already\n mom = createUTC([\n 2000,\n i\n ]);\n shortP = regexEscape(this.monthsShort(mom, \"\"));\n longP = regexEscape(this.months(mom, \"\"));\n shortPieces.push(shortP);\n longPieces.push(longP);\n mixedPieces.push(longP);\n mixedPieces.push(shortP);\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n this._monthsRegex = new RegExp(\"^(\" + mixedPieces.join(\"|\") + \")\", \"i\");\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp(\"^(\" + longPieces.join(\"|\") + \")\", \"i\");\n this._monthsShortStrictRegex = new RegExp(\"^(\" + shortPieces.join(\"|\") + \")\", \"i\");\n }\n function createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date;\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n if (isFinite(date.getFullYear())) date.setFullYear(y);\n } else date = new Date(y, m, d, h, M, s, ms);\n return date;\n }\n function createUTCDate(y) {\n var date, args;\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n args = Array.prototype.slice.call(arguments);\n // preserve leap years using a full 400 year cycle, then reset\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n if (isFinite(date.getUTCFullYear())) date.setUTCFullYear(y);\n } else date = new Date(Date.UTC.apply(null, arguments));\n return date;\n }\n // start-of-first-week - start-of-year\n function firstWeekOffset(year, dow, doy) {\n var fwd = 7 + dow - doy, // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n return -fwdlw + fwd - 1;\n }\n // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear;\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n return {\n year: resYear,\n dayOfYear: resDayOfYear\n };\n }\n function weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear;\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n return {\n week: resWeek,\n year: resYear\n };\n }\n function weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n }\n // FORMATTING\n addFormatToken(\"w\", [\n \"ww\",\n 2\n ], \"wo\", \"week\");\n addFormatToken(\"W\", [\n \"WW\",\n 2\n ], \"Wo\", \"isoWeek\");\n // PARSING\n addRegexToken(\"w\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"ww\", match1to2, match2);\n addRegexToken(\"W\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"WW\", match1to2, match2);\n addWeekParseToken([\n \"w\",\n \"ww\",\n \"W\",\n \"WW\"\n ], function(input, week, config, token) {\n week[token.substr(0, 1)] = toInt(input);\n });\n // HELPERS\n // LOCALES\n function localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n }\n var defaultLocaleWeek = {\n dow: 0,\n doy: 6\n };\n function localeFirstDayOfWeek() {\n return this._week.dow;\n }\n function localeFirstDayOfYear() {\n return this._week.doy;\n }\n // MOMENTS\n function getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, \"d\");\n }\n function getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, \"d\");\n }\n // FORMATTING\n addFormatToken(\"d\", 0, \"do\", \"day\");\n addFormatToken(\"dd\", 0, 0, function(format) {\n return this.localeData().weekdaysMin(this, format);\n });\n addFormatToken(\"ddd\", 0, 0, function(format) {\n return this.localeData().weekdaysShort(this, format);\n });\n addFormatToken(\"dddd\", 0, 0, function(format) {\n return this.localeData().weekdays(this, format);\n });\n addFormatToken(\"e\", 0, 0, \"weekday\");\n addFormatToken(\"E\", 0, 0, \"isoWeekday\");\n // PARSING\n addRegexToken(\"d\", match1to2);\n addRegexToken(\"e\", match1to2);\n addRegexToken(\"E\", match1to2);\n addRegexToken(\"dd\", function(isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n });\n addRegexToken(\"ddd\", function(isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n });\n addRegexToken(\"dddd\", function(isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n });\n addWeekParseToken([\n \"dd\",\n \"ddd\",\n \"dddd\"\n ], function(input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) week.d = weekday;\n else getParsingFlags(config).invalidWeekday = input;\n });\n addWeekParseToken([\n \"d\",\n \"e\",\n \"E\"\n ], function(input, week, config, token) {\n week[token] = toInt(input);\n });\n // HELPERS\n function parseWeekday(input, locale) {\n if (typeof input !== \"string\") return input;\n if (!isNaN(input)) return parseInt(input, 10);\n input = locale.weekdaysParse(input);\n if (typeof input === \"number\") return input;\n return null;\n }\n function parseIsoWeekday(input, locale) {\n if (typeof input === \"string\") return locale.weekdaysParse(input) % 7 || 7;\n return isNaN(input) ? null : input;\n }\n // LOCALES\n function shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n }\n var defaultLocaleWeekdays = \"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"), defaultLocaleWeekdaysShort = \"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"), defaultLocaleWeekdaysMin = \"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord;\n function localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format) ? \"format\" : \"standalone\"];\n return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;\n }\n function localeWeekdaysShort(m) {\n return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;\n }\n function localeWeekdaysMin(m) {\n return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;\n }\n function handleStrictParse$1(weekdayName, format, strict) {\n var i, ii, mom, llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n for(i = 0; i < 7; ++i){\n mom = createUTC([\n 2000,\n 1\n ]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(mom, \"\").toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(mom, \"\").toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, \"\").toLocaleLowerCase();\n }\n }\n if (strict) {\n if (format === \"dddd\") {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === \"ddd\") {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === \"dddd\") {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === \"ddd\") {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n function localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n if (this._weekdaysParseExact) return handleStrictParse$1.call(this, weekdayName, format, strict);\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n for(i = 0; i < 7; i++){\n // make the regex if we don't have it already\n mom = createUTC([\n 2000,\n 1\n ]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp(\"^\" + this.weekdays(mom, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\");\n this._shortWeekdaysParse[i] = new RegExp(\"^\" + this.weekdaysShort(mom, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\");\n this._minWeekdaysParse[i] = new RegExp(\"^\" + this.weekdaysMin(mom, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\");\n }\n if (!this._weekdaysParse[i]) {\n regex = \"^\" + this.weekdays(mom, \"\") + \"|^\" + this.weekdaysShort(mom, \"\") + \"|^\" + this.weekdaysMin(mom, \"\");\n this._weekdaysParse[i] = new RegExp(regex.replace(\".\", \"\"), \"i\");\n }\n // test the regex\n if (strict && format === \"dddd\" && this._fullWeekdaysParse[i].test(weekdayName)) return i;\n else if (strict && format === \"ddd\" && this._shortWeekdaysParse[i].test(weekdayName)) return i;\n else if (strict && format === \"dd\" && this._minWeekdaysParse[i].test(weekdayName)) return i;\n else if (!strict && this._weekdaysParse[i].test(weekdayName)) return i;\n }\n }\n // MOMENTS\n function getSetDayOfWeek(input) {\n if (!this.isValid()) return input != null ? this : NaN;\n var day = get(this, \"Day\");\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, \"d\");\n } else return day;\n }\n function getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) return input != null ? this : NaN;\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, \"d\");\n }\n function getSetISODayOfWeek(input) {\n if (!this.isValid()) return input != null ? this : NaN;\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else return this.day() || 7;\n }\n function weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, \"_weekdaysRegex\")) computeWeekdaysParse.call(this);\n if (isStrict) return this._weekdaysStrictRegex;\n else return this._weekdaysRegex;\n } else {\n if (!hasOwnProp(this, \"_weekdaysRegex\")) this._weekdaysRegex = defaultWeekdaysRegex;\n return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;\n }\n }\n function weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, \"_weekdaysRegex\")) computeWeekdaysParse.call(this);\n if (isStrict) return this._weekdaysShortStrictRegex;\n else return this._weekdaysShortRegex;\n } else {\n if (!hasOwnProp(this, \"_weekdaysShortRegex\")) this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;\n }\n }\n function weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, \"_weekdaysRegex\")) computeWeekdaysParse.call(this);\n if (isStrict) return this._weekdaysMinStrictRegex;\n else return this._weekdaysMinRegex;\n } else {\n if (!hasOwnProp(this, \"_weekdaysMinRegex\")) this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;\n }\n }\n function computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp;\n for(i = 0; i < 7; i++){\n // make the regex if we don't have it already\n mom = createUTC([\n 2000,\n 1\n ]).day(i);\n minp = regexEscape(this.weekdaysMin(mom, \"\"));\n shortp = regexEscape(this.weekdaysShort(mom, \"\"));\n longp = regexEscape(this.weekdays(mom, \"\"));\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n this._weekdaysRegex = new RegExp(\"^(\" + mixedPieces.join(\"|\") + \")\", \"i\");\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n this._weekdaysStrictRegex = new RegExp(\"^(\" + longPieces.join(\"|\") + \")\", \"i\");\n this._weekdaysShortStrictRegex = new RegExp(\"^(\" + shortPieces.join(\"|\") + \")\", \"i\");\n this._weekdaysMinStrictRegex = new RegExp(\"^(\" + minPieces.join(\"|\") + \")\", \"i\");\n }\n // FORMATTING\n function hFormat() {\n return this.hours() % 12 || 12;\n }\n function kFormat() {\n return this.hours() || 24;\n }\n addFormatToken(\"H\", [\n \"HH\",\n 2\n ], 0, \"hour\");\n addFormatToken(\"h\", [\n \"hh\",\n 2\n ], 0, hFormat);\n addFormatToken(\"k\", [\n \"kk\",\n 2\n ], 0, kFormat);\n addFormatToken(\"hmm\", 0, 0, function() {\n return \"\" + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n });\n addFormatToken(\"hmmss\", 0, 0, function() {\n return \"\" + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);\n });\n addFormatToken(\"Hmm\", 0, 0, function() {\n return \"\" + this.hours() + zeroFill(this.minutes(), 2);\n });\n addFormatToken(\"Hmmss\", 0, 0, function() {\n return \"\" + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);\n });\n function meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function() {\n return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);\n });\n }\n meridiem(\"a\", true);\n meridiem(\"A\", false);\n // PARSING\n function matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n }\n addRegexToken(\"a\", matchMeridiem);\n addRegexToken(\"A\", matchMeridiem);\n addRegexToken(\"H\", match1to2, match1to2HasZero);\n addRegexToken(\"h\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"k\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"HH\", match1to2, match2);\n addRegexToken(\"hh\", match1to2, match2);\n addRegexToken(\"kk\", match1to2, match2);\n addRegexToken(\"hmm\", match3to4);\n addRegexToken(\"hmmss\", match5to6);\n addRegexToken(\"Hmm\", match3to4);\n addRegexToken(\"Hmmss\", match5to6);\n addParseToken([\n \"H\",\n \"HH\"\n ], HOUR);\n addParseToken([\n \"k\",\n \"kk\"\n ], function(input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n });\n addParseToken([\n \"a\",\n \"A\"\n ], function(input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n });\n addParseToken([\n \"h\",\n \"hh\"\n ], function(input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n });\n addParseToken(\"hmm\", function(input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken(\"hmmss\", function(input, array, config) {\n var pos1 = input.length - 4, pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken(\"Hmm\", function(input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n });\n addParseToken(\"Hmmss\", function(input, array, config) {\n var pos1 = input.length - 4, pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n });\n // LOCALES\n function localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + \"\").toLowerCase().charAt(0) === \"p\";\n }\n var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i, // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n getSetHour = makeGetSet(\"Hours\", true);\n function localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) return isLower ? \"pm\" : \"PM\";\n else return isLower ? \"am\" : \"AM\";\n }\n var baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n week: defaultLocaleWeek,\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n meridiemParse: defaultLocaleMeridiemParse\n };\n // internal storage for locale config files\n var locales = {}, localeFamilies = {}, globalLocale;\n function commonPrefix(arr1, arr2) {\n var i, minl = Math.min(arr1.length, arr2.length);\n for(i = 0; i < minl; i += 1){\n if (arr1[i] !== arr2[i]) return i;\n }\n return minl;\n }\n function normalizeLocale(key) {\n return key ? key.toLowerCase().replace(\"_\", \"-\") : key;\n }\n // pick the locale from the array\n // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n while(i < names.length){\n split = normalizeLocale(names[i]).split(\"-\");\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split(\"-\") : null;\n while(j > 0){\n locale = loadLocale(split.slice(0, j).join(\"-\"));\n if (locale) return locale;\n if (next && next.length >= j && commonPrefix(split, next) >= j - 1) break;\n j--;\n }\n i++;\n }\n return globalLocale;\n }\n function isLocaleNameSane(name) {\n // Prevent names that look like filesystem paths, i.e contain '/' or '\\'\n // Ensure name is available and function returns boolean\n return !!(name && name.match(\"^[^/\\\\\\\\]*$\"));\n }\n function loadLocale(name) {\n var oldLocale = null, aliasedRequire;\n // TODO: Find a better way to register and load all the locales in Node\n if (locales[name] === undefined && true && module && module.exports && isLocaleNameSane(name)) try {\n oldLocale = globalLocale._abbr;\n aliasedRequire = undefined;\n aliasedRequire(\"./locale/\" + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {\n // mark as not found to avoid repeating expensive file require call causing high CPU\n // when trying to find en-US, en_US, en-us for every format call\n locales[name] = null; // null means not found\n }\n return locales[name];\n }\n // This function will load locale and then set the global locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n function getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) data = getLocale(key);\n else data = defineLocale(key, values);\n if (data) // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n else if (typeof console !== \"undefined\" && console.warn) //warn user if arguments are passed but the locale could not be set\n console.warn(\"Locale \" + key + \" not found. Did you forget to load it?\");\n }\n return globalLocale._abbr;\n }\n function defineLocale(name, config) {\n if (config !== null) {\n var locale, parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple(\"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.\");\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) parentConfig = locales[config.parentLocale]._config;\n else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) parentConfig = locale._config;\n else {\n if (!localeFamilies[config.parentLocale]) localeFamilies[config.parentLocale] = [];\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n if (localeFamilies[name]) localeFamilies[name].forEach(function(x) {\n defineLocale(x.name, x.config);\n });\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n }\n function updateLocale(name, config) {\n if (config != null) {\n var locale, tmpLocale, parentConfig = baseConfig;\n if (locales[name] != null && locales[name].parentLocale != null) // Update existing child locale in-place to avoid memory-leaks\n locales[name].set(mergeConfigs(locales[name]._config, config));\n else {\n // MERGE\n tmpLocale = loadLocale(name);\n if (tmpLocale != null) parentConfig = tmpLocale._config;\n config = mergeConfigs(parentConfig, config);\n if (tmpLocale == null) // updateLocale is called for creating a new locale\n // Set abbr so it will have a name (getters return\n // undefined otherwise).\n config.abbr = name;\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n }\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n if (name === getSetGlobalLocale()) getSetGlobalLocale(name);\n } else if (locales[name] != null) delete locales[name];\n }\n return locales[name];\n }\n // returns locale data\n function getLocale(key) {\n var locale;\n if (key && key._locale && key._locale._abbr) key = key._locale._abbr;\n if (!key) return globalLocale;\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) return locale;\n key = [\n key\n ];\n }\n return chooseLocale(key);\n }\n function listLocales() {\n return keys(locales);\n }\n function checkOverflow(m) {\n var overflow, a = m._a;\n if (a && getParsingFlags(m).overflow === -2) {\n overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;\n if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) overflow = DATE;\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) overflow = WEEK;\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) overflow = WEEKDAY;\n getParsingFlags(m).overflow = overflow;\n }\n return m;\n }\n // iso 8601 regex\n // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n var extendedIsoRegex = /^\\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)?)?$/, basicIsoRegex = /^\\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)?)?$/, tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/, isoDates = [\n [\n \"YYYYYY-MM-DD\",\n /[+-]\\d{6}-\\d\\d-\\d\\d/\n ],\n [\n \"YYYY-MM-DD\",\n /\\d{4}-\\d\\d-\\d\\d/\n ],\n [\n \"GGGG-[W]WW-E\",\n /\\d{4}-W\\d\\d-\\d/\n ],\n [\n \"GGGG-[W]WW\",\n /\\d{4}-W\\d\\d/,\n false\n ],\n [\n \"YYYY-DDD\",\n /\\d{4}-\\d{3}/\n ],\n [\n \"YYYY-MM\",\n /\\d{4}-\\d\\d/,\n false\n ],\n [\n \"YYYYYYMMDD\",\n /[+-]\\d{10}/\n ],\n [\n \"YYYYMMDD\",\n /\\d{8}/\n ],\n [\n \"GGGG[W]WWE\",\n /\\d{4}W\\d{3}/\n ],\n [\n \"GGGG[W]WW\",\n /\\d{4}W\\d{2}/,\n false\n ],\n [\n \"YYYYDDD\",\n /\\d{7}/\n ],\n [\n \"YYYYMM\",\n /\\d{6}/,\n false\n ],\n [\n \"YYYY\",\n /\\d{4}/,\n false\n ]\n ], // iso time formats and regexes\n isoTimes = [\n [\n \"HH:mm:ss.SSSS\",\n /\\d\\d:\\d\\d:\\d\\d\\.\\d+/\n ],\n [\n \"HH:mm:ss,SSSS\",\n /\\d\\d:\\d\\d:\\d\\d,\\d+/\n ],\n [\n \"HH:mm:ss\",\n /\\d\\d:\\d\\d:\\d\\d/\n ],\n [\n \"HH:mm\",\n /\\d\\d:\\d\\d/\n ],\n [\n \"HHmmss.SSSS\",\n /\\d\\d\\d\\d\\d\\d\\.\\d+/\n ],\n [\n \"HHmmss,SSSS\",\n /\\d\\d\\d\\d\\d\\d,\\d+/\n ],\n [\n \"HHmmss\",\n /\\d\\d\\d\\d\\d\\d/\n ],\n [\n \"HHmm\",\n /\\d\\d\\d\\d/\n ],\n [\n \"HH\",\n /\\d\\d/\n ]\n ], aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i, // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n rfc2822 = /^(?:(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}))$/, obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -240,\n EST: -300,\n CDT: -300,\n CST: -360,\n MDT: -360,\n MST: -420,\n PDT: -420,\n PST: -480\n };\n // date from iso format\n function configFromISO(config) {\n var i, l, string = config._i, match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), allowTime, dateFormat, timeFormat, tzFormat, isoDatesLen = isoDates.length, isoTimesLen = isoTimes.length;\n if (match) {\n getParsingFlags(config).iso = true;\n for(i = 0, l = isoDatesLen; i < l; i++)if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for(i = 0, l = isoTimesLen; i < l; i++)if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || \" \") + isoTimes[i][0];\n break;\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) tzFormat = \"Z\";\n else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || \"\") + (tzFormat || \"\");\n configFromStringAndFormat(config);\n } else config._isValid = false;\n }\n function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10)\n ];\n if (secondStr) result.push(parseInt(secondStr, 10));\n return result;\n }\n function untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) return 2000 + year;\n else if (year <= 999) return 1900 + year;\n return year;\n }\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s.replace(/\\([^()]*\\)|[\\n\\t]/g, \" \").replace(/(\\s\\s+)/g, \" \").replace(/^\\s\\s*/, \"\").replace(/\\s\\s*$/, \"\");\n }\n function checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n }\n function calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) return obsOffsets[obsOffset];\n else if (militaryOffset) // the only allowed military tz is Z\n return 0;\n else {\n var hm = parseInt(numOffset, 10), m = hm % 100, h = (hm - m) / 100;\n return h * 60 + m;\n }\n }\n // date and time from ref 2822 format\n function configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i)), parsedArray;\n if (match) {\n parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);\n if (!checkWeekday(match[1], parsedArray, config)) return;\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n getParsingFlags(config).rfc2822 = true;\n } else config._isValid = false;\n }\n // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n configFromISO(config);\n if (config._isValid === false) delete config._isValid;\n else return;\n configFromRFC2822(config);\n if (config._isValid === false) delete config._isValid;\n else return;\n if (config._strict) config._isValid = false;\n else // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n hooks.createFromInputFallback = deprecate(\"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(config) {\n config._d = new Date(config._i + (config._useUTC ? \" UTC\" : \"\"));\n });\n // Pick the first defined of two or three arguments.\n function defaults(a, b, c) {\n if (a != null) return a;\n if (b != null) return b;\n return c;\n }\n function currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n if (config._useUTC) return [\n nowValue.getUTCFullYear(),\n nowValue.getUTCMonth(),\n nowValue.getUTCDate()\n ];\n return [\n nowValue.getFullYear(),\n nowValue.getMonth(),\n nowValue.getDate()\n ];\n }\n // convert an array to a date.\n // the array should mirror the parameters below\n // note: all values past the year are optional and will default to the lowest possible value.\n // [year, month, day , hour, minute, second, millisecond]\n function configFromArray(config) {\n var i, date, input = [], currentDate, expectedWeekday, yearToUse;\n if (config._d) return;\n currentDate = currentDateArray(config);\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) dayOfYearFromWeekInfo(config);\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) getParsingFlags(config)._overflowDayOfYear = true;\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for(i = 0; i < 3 && config._a[i] == null; ++i)config._a[i] = input[i] = currentDate[i];\n // Zero out whatever was not defaulted, including time\n for(; i < 7; i++)config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];\n // Check for 24:00:00.000\n if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);\n expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n if (config._nextDay) config._a[HOUR] = 24;\n // check for mismatching day of week\n if (config._w && typeof config._w.d !== \"undefined\" && config._w.d !== expectedWeekday) getParsingFlags(config).weekdayMismatch = true;\n }\n function dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) weekdayOverflow = true;\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n curWeek = weekOfYear(createLocal(), dow, doy);\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) weekdayOverflow = true;\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) weekdayOverflow = true;\n } else // default to beginning of week\n weekday = dow;\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) getParsingFlags(config)._overflowWeeks = true;\n else if (weekdayOverflow != null) getParsingFlags(config)._overflowWeekday = true;\n else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n }\n // constant that refers to the ISO standard\n hooks.ISO_8601 = function() {};\n // constant that refers to the RFC 2822 form\n hooks.RFC_2822 = function() {};\n // date from string and format string\n function configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = \"\" + config._i, i, parsedInput, tokens, token, skipped, stringLength = string.length, totalParsedInputLength = 0, era, tokenLen;\n tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];\n tokenLen = tokens.length;\n for(i = 0; i < tokenLen; i++){\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) getParsingFlags(config).unusedInput.push(skipped);\n string = string.slice(string.indexOf(parsedInput) + parsedInput.length);\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) getParsingFlags(config).empty = false;\n else getParsingFlags(config).unusedTokens.push(token);\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) getParsingFlags(config).unusedTokens.push(token);\n }\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;\n if (string.length > 0) getParsingFlags(config).unusedInput.push(string);\n // clear _12h flag if hour is <= 12\n if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) getParsingFlags(config).bigHour = undefined;\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);\n // handle era\n era = getParsingFlags(config).era;\n if (era !== null) config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n configFromArray(config);\n checkOverflow(config);\n }\n function meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n if (meridiem == null) // nothing to do\n return hour;\n if (locale.meridiemHour != null) return locale.meridiemHour(hour, meridiem);\n else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) hour += 12;\n if (!isPm && hour === 12) hour = 0;\n return hour;\n } else // this is not supposed to happen\n return hour;\n }\n // date from string and array of format strings\n function configFromStringAndArray(config) {\n var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false, configfLen = config._f.length;\n if (configfLen === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n for(i = 0; i < configfLen; i++){\n currentScore = 0;\n validFormatFound = false;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) tempConfig._useUTC = config._useUTC;\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n if (isValid(tempConfig)) validFormatFound = true;\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n getParsingFlags(tempConfig).score = currentScore;\n if (!bestFormatIsValid) {\n if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n if (validFormatFound) bestFormatIsValid = true;\n }\n } else if (currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n extend(config, bestMoment || tempConfig);\n }\n function configFromObject(config) {\n if (config._d) return;\n var i = normalizeObjectUnits(config._i), dayOrDate = i.day === undefined ? i.date : i.day;\n config._a = map([\n i.year,\n i.month,\n dayOrDate,\n i.hour,\n i.minute,\n i.second,\n i.millisecond\n ], function(obj) {\n return obj && parseInt(obj, 10);\n });\n configFromArray(config);\n }\n function createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, \"d\");\n res._nextDay = undefined;\n }\n return res;\n }\n function prepareConfig(config) {\n var input = config._i, format = config._f;\n config._locale = config._locale || getLocale(config._l);\n if (input === null || format === undefined && input === \"\") return createInvalid({\n nullInput: true\n });\n if (typeof input === \"string\") config._i = input = config._locale.preparse(input);\n if (isMoment(input)) return new Moment(checkOverflow(input));\n else if (isDate(input)) config._d = input;\n else if (isArray(format)) configFromStringAndArray(config);\n else if (format) configFromStringAndFormat(config);\n else configFromInput(config);\n if (!isValid(config)) config._d = null;\n return config;\n }\n function configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) config._d = new Date(hooks.now());\n else if (isDate(input)) config._d = new Date(input.valueOf());\n else if (typeof input === \"string\") configFromString(config);\n else if (isArray(input)) {\n config._a = map(input.slice(0), function(obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) configFromObject(config);\n else if (isNumber(input)) // from milliseconds\n config._d = new Date(input);\n else hooks.createFromInputFallback(config);\n }\n function createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n if (format === true || format === false) {\n strict = format;\n format = undefined;\n }\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n if (isObject(input) && isObjectEmpty(input) || isArray(input) && input.length === 0) input = undefined;\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n return createFromConfig(c);\n }\n function createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n }\n var prototypeMin = deprecate(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\", function() {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) return other < this ? this : other;\n else return createInvalid();\n }), prototypeMax = deprecate(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\", function() {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) return other > this ? this : other;\n else return createInvalid();\n });\n // Pick a moment m from moments so that m[fn](other) is true for all\n // other. This relies on the function fn to be transitive.\n //\n // moments should either be an array of moment objects or an array, whose\n // first element is an array of moment objects.\n function pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) moments = moments[0];\n if (!moments.length) return createLocal();\n res = moments[0];\n for(i = 1; i < moments.length; ++i)if (!moments[i].isValid() || moments[i][fn](res)) res = moments[i];\n return res;\n }\n // TODO: Use [].sort instead?\n function min() {\n var args = [].slice.call(arguments, 0);\n return pickBy(\"isBefore\", args);\n }\n function max() {\n var args = [].slice.call(arguments, 0);\n return pickBy(\"isAfter\", args);\n }\n var now = function() {\n return Date.now ? Date.now() : +new Date();\n };\n var ordering = [\n \"year\",\n \"quarter\",\n \"month\",\n \"week\",\n \"day\",\n \"hour\",\n \"minute\",\n \"second\",\n \"millisecond\"\n ];\n function isDurationValid(m) {\n var key, unitHasDecimal = false, i, orderLen = ordering.length;\n for(key in m){\n if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) return false;\n }\n for(i = 0; i < orderLen; ++i)if (m[ordering[i]]) {\n if (unitHasDecimal) return false; // only allow non-integers for smallest unit\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) unitHasDecimal = true;\n }\n return true;\n }\n function isValid$1() {\n return this._isValid;\n }\n function createInvalid$1() {\n return createDuration(NaN);\n }\n function Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration), years = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months = normalizedInput.month || 0, weeks = normalizedInput.week || normalizedInput.isoWeek || 0, days = normalizedInput.day || 0, hours = normalizedInput.hour || 0, minutes = normalizedInput.minute || 0, seconds = normalizedInput.second || 0, milliseconds = normalizedInput.millisecond || 0;\n this._isValid = isDurationValid(normalizedInput);\n // representation for dateAddRemove\n this._milliseconds = +milliseconds + seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 3600000; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days + weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months + quarters * 3 + years * 12;\n this._data = {};\n this._locale = getLocale();\n this._bubble();\n }\n function isDuration(obj) {\n return obj instanceof Duration;\n }\n function absRound(number) {\n if (number < 0) return Math.round(-1 * number) * -1;\n else return Math.round(number);\n }\n // compare two arrays, return the number of differences\n function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0, i;\n for(i = 0; i < len; i++)if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) diffs++;\n return diffs + lengthDiff;\n }\n // FORMATTING\n function offset(token, separator) {\n addFormatToken(token, 0, 0, function() {\n var offset = this.utcOffset(), sign = \"+\";\n if (offset < 0) {\n offset = -offset;\n sign = \"-\";\n }\n return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2);\n });\n }\n offset(\"Z\", \":\");\n offset(\"ZZ\", \"\");\n // PARSING\n addRegexToken(\"Z\", matchShortOffset);\n addRegexToken(\"ZZ\", matchShortOffset);\n addParseToken([\n \"Z\",\n \"ZZ\"\n ], function(input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n });\n // HELPERS\n // timezone chunker\n // '+10:00' > ['10', '00']\n // '-1530' > ['-15', '30']\n var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n function offsetFromString(matcher, string) {\n var matches = (string || \"\").match(matcher), chunk, parts, minutes;\n if (matches === null) return null;\n chunk = matches[matches.length - 1] || [];\n parts = (chunk + \"\").match(chunkOffset) || [\n \"-\",\n 0,\n 0\n ];\n minutes = +(parts[1] * 60) + toInt(parts[2]);\n return minutes === 0 ? 0 : parts[0] === \"+\" ? minutes : -minutes;\n }\n // Return a moment from input, that is local/utc/zone equivalent to model.\n function cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else return createLocal(input).local();\n }\n function getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset());\n }\n // HOOKS\n // This function will be called whenever a moment is mutated.\n // It is intended to keep the offset in sync with the timezone.\n hooks.updateOffset = function() {};\n // MOMENTS\n // keepLocalTime = true means only change the timezone, without\n // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n // +0200, so we adjust the time as needed, to be valid.\n //\n // Keeping the time actually adds/subtracts (one hour)\n // from the actual represented time. That is why we call updateOffset\n // a second time. In case it wants us to change the offset again\n // _changeInProgress == true case, then we have to adjust, because\n // there is no such time in the given timezone.\n function getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0, localAdjust;\n if (!this.isValid()) return input != null ? this : NaN;\n if (input != null) {\n if (typeof input === \"string\") {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) return this;\n } else if (Math.abs(input) < 16 && !keepMinutes) input = input * 60;\n if (!this._isUTC && keepLocalTime) localAdjust = getDateOffset(this);\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) this.add(localAdjust, \"m\");\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) addSubtract(this, createDuration(input - offset, \"m\"), 1, false);\n else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else return this._isUTC ? offset : getDateOffset(this);\n }\n function getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== \"string\") input = -input;\n this.utcOffset(input, keepLocalTime);\n return this;\n } else return -this.utcOffset();\n }\n function setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n }\n function setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n if (keepLocalTime) this.subtract(getDateOffset(this), \"m\");\n }\n return this;\n }\n function setOffsetToParsedOffset() {\n if (this._tzm != null) this.utcOffset(this._tzm, false, true);\n else if (typeof this._i === \"string\") {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) this.utcOffset(tZone);\n else this.utcOffset(0, true);\n }\n return this;\n }\n function hasAlignedHourOffset(input) {\n if (!this.isValid()) return false;\n input = input ? createLocal(input).utcOffset() : 0;\n return (this.utcOffset() - input) % 60 === 0;\n }\n function isDaylightSavingTime() {\n return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();\n }\n function isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) return this._isDSTShifted;\n var c = {}, other;\n copyConfig(c, this);\n c = prepareConfig(c);\n if (c._a) {\n other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else this._isDSTShifted = false;\n return this._isDSTShifted;\n }\n function isLocal() {\n return this.isValid() ? !this._isUTC : false;\n }\n function isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n }\n function isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n }\n // ASP.NET json date format regex\n var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/, // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n isoRegex = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n function createDuration(input, key) {\n var duration = input, // matching against regexp is expensive, do it on demand\n match = null, sign, ret, diffRes;\n if (isDuration(input)) duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months\n };\n else if (isNumber(input) || !isNaN(+input)) {\n duration = {};\n if (key) duration[key] = +input;\n else duration.milliseconds = +input;\n } else if (match = aspNetRegex.exec(input)) {\n sign = match[1] === \"-\" ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign\n };\n } else if (match = isoRegex.exec(input)) {\n sign = match[1] === \"-\" ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign)\n };\n } else if (duration == null) // checks for null or undefined\n duration = {};\n else if (typeof duration === \"object\" && (\"from\" in duration || \"to\" in duration)) {\n diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n ret = new Duration(duration);\n if (isDuration(input) && hasOwnProp(input, \"_locale\")) ret._locale = input._locale;\n if (isDuration(input) && hasOwnProp(input, \"_isValid\")) ret._isValid = input._isValid;\n return ret;\n }\n createDuration.fn = Duration.prototype;\n createDuration.invalid = createInvalid$1;\n function parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(\",\", \".\"));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n }\n function positiveMomentsDifference(base, other) {\n var res = {};\n res.months = other.month() - base.month() + (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, \"M\").isAfter(other)) --res.months;\n res.milliseconds = +other - +base.clone().add(res.months, \"M\");\n return res;\n }\n function momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) return {\n milliseconds: 0,\n months: 0\n };\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) res = positiveMomentsDifference(base, other);\n else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n return res;\n }\n // TODO: remove 'name' arg after deprecation is removed\n function createAdder(direction, name) {\n return function(val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(name, \"moment().\" + name + \"(period, number) is deprecated. Please use moment().\" + name + \"(number, period). \" + \"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\");\n tmp = val;\n val = period;\n period = tmp;\n }\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n }\n function addSubtract(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds, days = absRound(duration._days), months = absRound(duration._months);\n if (!mom.isValid()) // No op\n return;\n updateOffset = updateOffset == null ? true : updateOffset;\n if (months) setMonth(mom, get(mom, \"Month\") + months * isAdding);\n if (days) set$1(mom, \"Date\", get(mom, \"Date\") + days * isAdding);\n if (milliseconds) mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n if (updateOffset) hooks.updateOffset(mom, days || months);\n }\n var add = createAdder(1, \"add\"), subtract = createAdder(-1, \"subtract\");\n function isString(input) {\n return typeof input === \"string\" || input instanceof String;\n }\n // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n function isMomentInput(input) {\n return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === undefined;\n }\n function isMomentInputObject(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [\n \"years\",\n \"year\",\n \"y\",\n \"months\",\n \"month\",\n \"M\",\n \"days\",\n \"day\",\n \"d\",\n \"dates\",\n \"date\",\n \"D\",\n \"hours\",\n \"hour\",\n \"h\",\n \"minutes\",\n \"minute\",\n \"m\",\n \"seconds\",\n \"second\",\n \"s\",\n \"milliseconds\",\n \"millisecond\",\n \"ms\"\n ], i, property, propertyLen = properties.length;\n for(i = 0; i < propertyLen; i += 1){\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n return objectTest && propertyTest;\n }\n function isNumberOrStringArray(input) {\n var arrayTest = isArray(input), dataTypeTest = false;\n if (arrayTest) dataTypeTest = input.filter(function(item) {\n return !isNumber(item) && isString(input);\n }).length === 0;\n return arrayTest && dataTypeTest;\n }\n function isCalendarSpec(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [\n \"sameDay\",\n \"nextDay\",\n \"lastDay\",\n \"nextWeek\",\n \"lastWeek\",\n \"sameElse\"\n ], i, property;\n for(i = 0; i < properties.length; i += 1){\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n return objectTest && propertyTest;\n }\n function getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, \"days\", true);\n return diff < -6 ? \"sameElse\" : diff < -1 ? \"lastWeek\" : diff < 0 ? \"lastDay\" : diff < 1 ? \"sameDay\" : diff < 2 ? \"nextDay\" : diff < 7 ? \"nextWeek\" : \"sameElse\";\n }\n function calendar$1(time, formats) {\n // Support for single parameter, formats only overload to the calendar function\n if (arguments.length === 1) {\n if (!arguments[0]) {\n time = undefined;\n formats = undefined;\n } else if (isMomentInput(arguments[0])) {\n time = arguments[0];\n formats = undefined;\n } else if (isCalendarSpec(arguments[0])) {\n formats = arguments[0];\n time = undefined;\n }\n }\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(), sod = cloneWithOffset(now, this).startOf(\"day\"), format = hooks.calendarFormat(this, sod) || \"sameElse\", output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);\n return this.format(output || this.localeData().calendar(format, this, createLocal(now)));\n }\n function clone() {\n return new Moment(this);\n }\n function isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) return false;\n units = normalizeUnits(units) || \"millisecond\";\n if (units === \"millisecond\") return this.valueOf() > localInput.valueOf();\n else return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n function isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) return false;\n units = normalizeUnits(units) || \"millisecond\";\n if (units === \"millisecond\") return this.valueOf() < localInput.valueOf();\n else return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n function isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from), localTo = isMoment(to) ? to : createLocal(to);\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) return false;\n inclusivity = inclusivity || \"()\";\n return (inclusivity[0] === \"(\" ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === \")\" ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));\n }\n function isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input), inputMs;\n if (!(this.isValid() && localInput.isValid())) return false;\n units = normalizeUnits(units) || \"millisecond\";\n if (units === \"millisecond\") return this.valueOf() === localInput.valueOf();\n else {\n inputMs = localInput.valueOf();\n return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();\n }\n }\n function isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n }\n function isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n }\n function diff(input, units, asFloat) {\n var that, zoneDelta, output;\n if (!this.isValid()) return NaN;\n that = cloneWithOffset(input, this);\n if (!that.isValid()) return NaN;\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n units = normalizeUnits(units);\n switch(units){\n case \"year\":\n output = monthDiff(this, that) / 12;\n break;\n case \"month\":\n output = monthDiff(this, that);\n break;\n case \"quarter\":\n output = monthDiff(this, that) / 3;\n break;\n case \"second\":\n output = (this - that) / 1e3;\n break; // 1000\n case \"minute\":\n output = (this - that) / 6e4;\n break; // 1000 * 60\n case \"hour\":\n output = (this - that) / 36e5;\n break; // 1000 * 60 * 60\n case \"day\":\n output = (this - that - zoneDelta) / 864e5;\n break; // 1000 * 60 * 60 * 24, negate dst\n case \"week\":\n output = (this - that - zoneDelta) / 6048e5;\n break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default:\n output = this - that;\n }\n return asFloat ? output : absFloor(output);\n }\n function monthDiff(a, b) {\n if (a.date() < b.date()) // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -monthDiff(b, a);\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, \"months\"), anchor2, adjust;\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, \"months\");\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, \"months\");\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n }\n hooks.defaultFormat = \"YYYY-MM-DDTHH:mm:ssZ\";\n hooks.defaultFormatUtc = \"YYYY-MM-DDTHH:mm:ss[Z]\";\n function toString() {\n return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\");\n }\n function toISOString(keepOffset) {\n if (!this.isValid()) return null;\n var utc = keepOffset !== true, m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) return formatMoment(m, utc ? \"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\" : \"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\");\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) return this.toDate().toISOString();\n else return new Date(this.valueOf() + this.utcOffset() * 60000).toISOString().replace(\"Z\", formatMoment(m, \"Z\"));\n }\n return formatMoment(m, utc ? \"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\" : \"YYYY-MM-DD[T]HH:mm:ss.SSSZ\");\n }\n /**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */ function inspect() {\n if (!this.isValid()) return \"moment.invalid(/* \" + this._i + \" */)\";\n var func = \"moment\", zone = \"\", prefix, year, datetime, suffix;\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? \"moment.utc\" : \"moment.parseZone\";\n zone = \"Z\";\n }\n prefix = \"[\" + func + '(\"]';\n year = 0 <= this.year() && this.year() <= 9999 ? \"YYYY\" : \"YYYYYY\";\n datetime = \"-MM-DD[T]HH:mm:ss.SSS\";\n suffix = zone + '[\")]';\n return this.format(prefix + year + datetime + suffix);\n }\n function format(inputString) {\n if (!inputString) inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n }\n function from(time, withoutSuffix) {\n if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) return createDuration({\n to: this,\n from: time\n }).locale(this.locale()).humanize(!withoutSuffix);\n else return this.localeData().invalidDate();\n }\n function fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n }\n function to(time, withoutSuffix) {\n if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) return createDuration({\n from: this,\n to: time\n }).locale(this.locale()).humanize(!withoutSuffix);\n else return this.localeData().invalidDate();\n }\n function toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n }\n // If passed a locale key, it will set the locale for this\n // instance. Otherwise, it will return the locale configuration\n // variables for this instance.\n function locale(key) {\n var newLocaleData;\n if (key === undefined) return this._locale._abbr;\n else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) this._locale = newLocaleData;\n return this;\n }\n }\n var lang = deprecate(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\", function(key) {\n if (key === undefined) return this.localeData();\n else return this.locale(key);\n });\n function localeData() {\n return this._locale;\n }\n var MS_PER_SECOND = 1000, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = 3506328 * MS_PER_HOUR;\n // actual modulo - handles negative numbers (for dates before 1970):\n function mod$1(dividend, divisor) {\n return (dividend % divisor + divisor) % divisor;\n }\n function localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n else return new Date(y, m, d).valueOf();\n }\n function utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n else return Date.UTC(y, m, d);\n }\n function startOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === \"millisecond\" || !this.isValid()) return this;\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n switch(units){\n case \"year\":\n time = startOfDate(this.year(), 0, 1);\n break;\n case \"quarter\":\n time = startOfDate(this.year(), this.month() - this.month() % 3, 1);\n break;\n case \"month\":\n time = startOfDate(this.year(), this.month(), 1);\n break;\n case \"week\":\n time = startOfDate(this.year(), this.month(), this.date() - this.weekday());\n break;\n case \"isoWeek\":\n time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));\n break;\n case \"day\":\n case \"date\":\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n case \"hour\":\n time = this._d.valueOf();\n time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);\n break;\n case \"minute\":\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_MINUTE);\n break;\n case \"second\":\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_SECOND);\n break;\n }\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n function endOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === \"millisecond\" || !this.isValid()) return this;\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n switch(units){\n case \"year\":\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n case \"quarter\":\n time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;\n break;\n case \"month\":\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n case \"week\":\n time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;\n break;\n case \"isoWeek\":\n time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;\n break;\n case \"day\":\n case \"date\":\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case \"hour\":\n time = this._d.valueOf();\n time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;\n break;\n case \"minute\":\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n break;\n case \"second\":\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n break;\n }\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n function valueOf() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n }\n function unix() {\n return Math.floor(this.valueOf() / 1000);\n }\n function toDate() {\n return new Date(this.valueOf());\n }\n function toArray() {\n var m = this;\n return [\n m.year(),\n m.month(),\n m.date(),\n m.hour(),\n m.minute(),\n m.second(),\n m.millisecond()\n ];\n }\n function toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds()\n };\n }\n function toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n }\n function isValid$2() {\n return isValid(this);\n }\n function parsingFlags() {\n return extend({}, getParsingFlags(this));\n }\n function invalidAt() {\n return getParsingFlags(this).overflow;\n }\n function creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict\n };\n }\n addFormatToken(\"N\", 0, 0, \"eraAbbr\");\n addFormatToken(\"NN\", 0, 0, \"eraAbbr\");\n addFormatToken(\"NNN\", 0, 0, \"eraAbbr\");\n addFormatToken(\"NNNN\", 0, 0, \"eraName\");\n addFormatToken(\"NNNNN\", 0, 0, \"eraNarrow\");\n addFormatToken(\"y\", [\n \"y\",\n 1\n ], \"yo\", \"eraYear\");\n addFormatToken(\"y\", [\n \"yy\",\n 2\n ], 0, \"eraYear\");\n addFormatToken(\"y\", [\n \"yyy\",\n 3\n ], 0, \"eraYear\");\n addFormatToken(\"y\", [\n \"yyyy\",\n 4\n ], 0, \"eraYear\");\n addRegexToken(\"N\", matchEraAbbr);\n addRegexToken(\"NN\", matchEraAbbr);\n addRegexToken(\"NNN\", matchEraAbbr);\n addRegexToken(\"NNNN\", matchEraName);\n addRegexToken(\"NNNNN\", matchEraNarrow);\n addParseToken([\n \"N\",\n \"NN\",\n \"NNN\",\n \"NNNN\",\n \"NNNNN\"\n ], function(input, array, config, token) {\n var era = config._locale.erasParse(input, token, config._strict);\n if (era) getParsingFlags(config).era = era;\n else getParsingFlags(config).invalidEra = input;\n });\n addRegexToken(\"y\", matchUnsigned);\n addRegexToken(\"yy\", matchUnsigned);\n addRegexToken(\"yyy\", matchUnsigned);\n addRegexToken(\"yyyy\", matchUnsigned);\n addRegexToken(\"yo\", matchEraYearOrdinal);\n addParseToken([\n \"y\",\n \"yy\",\n \"yyy\",\n \"yyyy\"\n ], YEAR);\n addParseToken([\n \"yo\"\n ], function(input, array, config, token) {\n var match;\n if (config._locale._eraYearOrdinalRegex) match = input.match(config._locale._eraYearOrdinalRegex);\n if (config._locale.eraYearOrdinalParse) array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n else array[YEAR] = parseInt(input, 10);\n });\n function localeEras(m, format) {\n var i, l, date, eras = this._eras || getLocale(\"en\")._eras;\n for(i = 0, l = eras.length; i < l; ++i){\n switch(typeof eras[i].since){\n case \"string\":\n // truncate time\n date = hooks(eras[i].since).startOf(\"day\");\n eras[i].since = date.valueOf();\n break;\n }\n switch(typeof eras[i].until){\n case \"undefined\":\n eras[i].until = Infinity;\n break;\n case \"string\":\n // truncate time\n date = hooks(eras[i].until).startOf(\"day\").valueOf();\n eras[i].until = date.valueOf();\n break;\n }\n }\n return eras;\n }\n function localeErasParse(eraName, format, strict) {\n var i, l, eras = this.eras(), name, abbr, narrow;\n eraName = eraName.toUpperCase();\n for(i = 0, l = eras.length; i < l; ++i){\n name = eras[i].name.toUpperCase();\n abbr = eras[i].abbr.toUpperCase();\n narrow = eras[i].narrow.toUpperCase();\n if (strict) switch(format){\n case \"N\":\n case \"NN\":\n case \"NNN\":\n if (abbr === eraName) return eras[i];\n break;\n case \"NNNN\":\n if (name === eraName) return eras[i];\n break;\n case \"NNNNN\":\n if (narrow === eraName) return eras[i];\n break;\n }\n else if ([\n name,\n abbr,\n narrow\n ].indexOf(eraName) >= 0) return eras[i];\n }\n }\n function localeErasConvertYear(era, year) {\n var dir = era.since <= era.until ? 1 : -1;\n if (year === undefined) return hooks(era.since).year();\n else return hooks(era.since).year() + (year - era.offset) * dir;\n }\n function getEraName() {\n var i, l, val, eras = this.localeData().eras();\n for(i = 0, l = eras.length; i < l; ++i){\n // truncate time\n val = this.clone().startOf(\"day\").valueOf();\n if (eras[i].since <= val && val <= eras[i].until) return eras[i].name;\n if (eras[i].until <= val && val <= eras[i].since) return eras[i].name;\n }\n return \"\";\n }\n function getEraNarrow() {\n var i, l, val, eras = this.localeData().eras();\n for(i = 0, l = eras.length; i < l; ++i){\n // truncate time\n val = this.clone().startOf(\"day\").valueOf();\n if (eras[i].since <= val && val <= eras[i].until) return eras[i].narrow;\n if (eras[i].until <= val && val <= eras[i].since) return eras[i].narrow;\n }\n return \"\";\n }\n function getEraAbbr() {\n var i, l, val, eras = this.localeData().eras();\n for(i = 0, l = eras.length; i < l; ++i){\n // truncate time\n val = this.clone().startOf(\"day\").valueOf();\n if (eras[i].since <= val && val <= eras[i].until) return eras[i].abbr;\n if (eras[i].until <= val && val <= eras[i].since) return eras[i].abbr;\n }\n return \"\";\n }\n function getEraYear() {\n var i, l, dir, val, eras = this.localeData().eras();\n for(i = 0, l = eras.length; i < l; ++i){\n dir = eras[i].since <= eras[i].until ? 1 : -1;\n // truncate time\n val = this.clone().startOf(\"day\").valueOf();\n if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;\n }\n return this.year();\n }\n function erasNameRegex(isStrict) {\n if (!hasOwnProp(this, \"_erasNameRegex\")) computeErasParse.call(this);\n return isStrict ? this._erasNameRegex : this._erasRegex;\n }\n function erasAbbrRegex(isStrict) {\n if (!hasOwnProp(this, \"_erasAbbrRegex\")) computeErasParse.call(this);\n return isStrict ? this._erasAbbrRegex : this._erasRegex;\n }\n function erasNarrowRegex(isStrict) {\n if (!hasOwnProp(this, \"_erasNarrowRegex\")) computeErasParse.call(this);\n return isStrict ? this._erasNarrowRegex : this._erasRegex;\n }\n function matchEraAbbr(isStrict, locale) {\n return locale.erasAbbrRegex(isStrict);\n }\n function matchEraName(isStrict, locale) {\n return locale.erasNameRegex(isStrict);\n }\n function matchEraNarrow(isStrict, locale) {\n return locale.erasNarrowRegex(isStrict);\n }\n function matchEraYearOrdinal(isStrict, locale) {\n return locale._eraYearOrdinalRegex || matchUnsigned;\n }\n function computeErasParse() {\n var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l, erasName, erasAbbr, erasNarrow, eras = this.eras();\n for(i = 0, l = eras.length; i < l; ++i){\n erasName = regexEscape(eras[i].name);\n erasAbbr = regexEscape(eras[i].abbr);\n erasNarrow = regexEscape(eras[i].narrow);\n namePieces.push(erasName);\n abbrPieces.push(erasAbbr);\n narrowPieces.push(erasNarrow);\n mixedPieces.push(erasName);\n mixedPieces.push(erasAbbr);\n mixedPieces.push(erasNarrow);\n }\n this._erasRegex = new RegExp(\"^(\" + mixedPieces.join(\"|\") + \")\", \"i\");\n this._erasNameRegex = new RegExp(\"^(\" + namePieces.join(\"|\") + \")\", \"i\");\n this._erasAbbrRegex = new RegExp(\"^(\" + abbrPieces.join(\"|\") + \")\", \"i\");\n this._erasNarrowRegex = new RegExp(\"^(\" + narrowPieces.join(\"|\") + \")\", \"i\");\n }\n // FORMATTING\n addFormatToken(0, [\n \"gg\",\n 2\n ], 0, function() {\n return this.weekYear() % 100;\n });\n addFormatToken(0, [\n \"GG\",\n 2\n ], 0, function() {\n return this.isoWeekYear() % 100;\n });\n function addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [\n token,\n token.length\n ], 0, getter);\n }\n addWeekYearFormatToken(\"gggg\", \"weekYear\");\n addWeekYearFormatToken(\"ggggg\", \"weekYear\");\n addWeekYearFormatToken(\"GGGG\", \"isoWeekYear\");\n addWeekYearFormatToken(\"GGGGG\", \"isoWeekYear\");\n // ALIASES\n // PARSING\n addRegexToken(\"G\", matchSigned);\n addRegexToken(\"g\", matchSigned);\n addRegexToken(\"GG\", match1to2, match2);\n addRegexToken(\"gg\", match1to2, match2);\n addRegexToken(\"GGGG\", match1to4, match4);\n addRegexToken(\"gggg\", match1to4, match4);\n addRegexToken(\"GGGGG\", match1to6, match6);\n addRegexToken(\"ggggg\", match1to6, match6);\n addWeekParseToken([\n \"gggg\",\n \"ggggg\",\n \"GGGG\",\n \"GGGGG\"\n ], function(input, week, config, token) {\n week[token.substr(0, 2)] = toInt(input);\n });\n addWeekParseToken([\n \"gg\",\n \"GG\"\n ], function(input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n });\n // MOMENTS\n function getSetWeekYear(input) {\n return getSetWeekYearHelper.call(this, input, this.week(), this.weekday() + this.localeData()._week.dow, this.localeData()._week.dow, this.localeData()._week.doy);\n }\n function getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);\n }\n function getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n }\n function getISOWeeksInISOWeekYear() {\n return weeksInYear(this.isoWeekYear(), 1, 4);\n }\n function getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n }\n function getWeeksInWeekYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n }\n function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) return weekOfYear(this, dow, doy).year;\n else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) week = weeksTarget;\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n }\n function setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n }\n // FORMATTING\n addFormatToken(\"Q\", 0, \"Qo\", \"quarter\");\n // PARSING\n addRegexToken(\"Q\", match1);\n addParseToken(\"Q\", function(input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n });\n // MOMENTS\n function getSetQuarter(input) {\n return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);\n }\n // FORMATTING\n addFormatToken(\"D\", [\n \"DD\",\n 2\n ], \"Do\", \"date\");\n // PARSING\n addRegexToken(\"D\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"DD\", match1to2, match2);\n addRegexToken(\"Do\", function(isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict ? locale._dayOfMonthOrdinalParse || locale._ordinalParse : locale._dayOfMonthOrdinalParseLenient;\n });\n addParseToken([\n \"D\",\n \"DD\"\n ], DATE);\n addParseToken(\"Do\", function(input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n });\n // MOMENTS\n var getSetDayOfMonth = makeGetSet(\"Date\", true);\n // FORMATTING\n addFormatToken(\"DDD\", [\n \"DDDD\",\n 3\n ], \"DDDo\", \"dayOfYear\");\n // PARSING\n addRegexToken(\"DDD\", match1to3);\n addRegexToken(\"DDDD\", match3);\n addParseToken([\n \"DDD\",\n \"DDDD\"\n ], function(input, array, config) {\n config._dayOfYear = toInt(input);\n });\n // HELPERS\n // MOMENTS\n function getSetDayOfYear(input) {\n var dayOfYear = Math.round((this.clone().startOf(\"day\") - this.clone().startOf(\"year\")) / 864e5) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, \"d\");\n }\n // FORMATTING\n addFormatToken(\"m\", [\n \"mm\",\n 2\n ], 0, \"minute\");\n // PARSING\n addRegexToken(\"m\", match1to2, match1to2HasZero);\n addRegexToken(\"mm\", match1to2, match2);\n addParseToken([\n \"m\",\n \"mm\"\n ], MINUTE);\n // MOMENTS\n var getSetMinute = makeGetSet(\"Minutes\", false);\n // FORMATTING\n addFormatToken(\"s\", [\n \"ss\",\n 2\n ], 0, \"second\");\n // PARSING\n addRegexToken(\"s\", match1to2, match1to2HasZero);\n addRegexToken(\"ss\", match1to2, match2);\n addParseToken([\n \"s\",\n \"ss\"\n ], SECOND);\n // MOMENTS\n var getSetSecond = makeGetSet(\"Seconds\", false);\n // FORMATTING\n addFormatToken(\"S\", 0, 0, function() {\n return ~~(this.millisecond() / 100);\n });\n addFormatToken(0, [\n \"SS\",\n 2\n ], 0, function() {\n return ~~(this.millisecond() / 10);\n });\n addFormatToken(0, [\n \"SSS\",\n 3\n ], 0, \"millisecond\");\n addFormatToken(0, [\n \"SSSS\",\n 4\n ], 0, function() {\n return this.millisecond() * 10;\n });\n addFormatToken(0, [\n \"SSSSS\",\n 5\n ], 0, function() {\n return this.millisecond() * 100;\n });\n addFormatToken(0, [\n \"SSSSSS\",\n 6\n ], 0, function() {\n return this.millisecond() * 1000;\n });\n addFormatToken(0, [\n \"SSSSSSS\",\n 7\n ], 0, function() {\n return this.millisecond() * 10000;\n });\n addFormatToken(0, [\n \"SSSSSSSS\",\n 8\n ], 0, function() {\n return this.millisecond() * 100000;\n });\n addFormatToken(0, [\n \"SSSSSSSSS\",\n 9\n ], 0, function() {\n return this.millisecond() * 1000000;\n });\n // PARSING\n addRegexToken(\"S\", match1to3, match1);\n addRegexToken(\"SS\", match1to3, match2);\n addRegexToken(\"SSS\", match1to3, match3);\n var token, getSetMillisecond;\n for(token = \"SSSS\"; token.length <= 9; token += \"S\")addRegexToken(token, matchUnsigned);\n function parseMs(input, array) {\n array[MILLISECOND] = toInt((\"0.\" + input) * 1000);\n }\n for(token = \"S\"; token.length <= 9; token += \"S\")addParseToken(token, parseMs);\n getSetMillisecond = makeGetSet(\"Milliseconds\", false);\n // FORMATTING\n addFormatToken(\"z\", 0, 0, \"zoneAbbr\");\n addFormatToken(\"zz\", 0, 0, \"zoneName\");\n // MOMENTS\n function getZoneAbbr() {\n return this._isUTC ? \"UTC\" : \"\";\n }\n function getZoneName() {\n return this._isUTC ? \"Coordinated Universal Time\" : \"\";\n }\n var proto = Moment.prototype;\n proto.add = add;\n proto.calendar = calendar$1;\n proto.clone = clone;\n proto.diff = diff;\n proto.endOf = endOf;\n proto.format = format;\n proto.from = from;\n proto.fromNow = fromNow;\n proto.to = to;\n proto.toNow = toNow;\n proto.get = stringGet;\n proto.invalidAt = invalidAt;\n proto.isAfter = isAfter;\n proto.isBefore = isBefore;\n proto.isBetween = isBetween;\n proto.isSame = isSame;\n proto.isSameOrAfter = isSameOrAfter;\n proto.isSameOrBefore = isSameOrBefore;\n proto.isValid = isValid$2;\n proto.lang = lang;\n proto.locale = locale;\n proto.localeData = localeData;\n proto.max = prototypeMax;\n proto.min = prototypeMin;\n proto.parsingFlags = parsingFlags;\n proto.set = stringSet;\n proto.startOf = startOf;\n proto.subtract = subtract;\n proto.toArray = toArray;\n proto.toObject = toObject;\n proto.toDate = toDate;\n proto.toISOString = toISOString;\n proto.inspect = inspect;\n if (typeof Symbol !== \"undefined\" && Symbol.for != null) proto[Symbol.for(\"nodejs.util.inspect.custom\")] = function() {\n return \"Moment<\" + this.format() + \">\";\n };\n proto.toJSON = toJSON;\n proto.toString = toString;\n proto.unix = unix;\n proto.valueOf = valueOf;\n proto.creationData = creationData;\n proto.eraName = getEraName;\n proto.eraNarrow = getEraNarrow;\n proto.eraAbbr = getEraAbbr;\n proto.eraYear = getEraYear;\n proto.year = getSetYear;\n proto.isLeapYear = getIsLeapYear;\n proto.weekYear = getSetWeekYear;\n proto.isoWeekYear = getSetISOWeekYear;\n proto.quarter = proto.quarters = getSetQuarter;\n proto.month = getSetMonth;\n proto.daysInMonth = getDaysInMonth;\n proto.week = proto.weeks = getSetWeek;\n proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n proto.weeksInYear = getWeeksInYear;\n proto.weeksInWeekYear = getWeeksInWeekYear;\n proto.isoWeeksInYear = getISOWeeksInYear;\n proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n proto.date = getSetDayOfMonth;\n proto.day = proto.days = getSetDayOfWeek;\n proto.weekday = getSetLocaleDayOfWeek;\n proto.isoWeekday = getSetISODayOfWeek;\n proto.dayOfYear = getSetDayOfYear;\n proto.hour = proto.hours = getSetHour;\n proto.minute = proto.minutes = getSetMinute;\n proto.second = proto.seconds = getSetSecond;\n proto.millisecond = proto.milliseconds = getSetMillisecond;\n proto.utcOffset = getSetOffset;\n proto.utc = setOffsetToUTC;\n proto.local = setOffsetToLocal;\n proto.parseZone = setOffsetToParsedOffset;\n proto.hasAlignedHourOffset = hasAlignedHourOffset;\n proto.isDST = isDaylightSavingTime;\n proto.isLocal = isLocal;\n proto.isUtcOffset = isUtcOffset;\n proto.isUtc = isUtc;\n proto.isUTC = isUtc;\n proto.zoneAbbr = getZoneAbbr;\n proto.zoneName = getZoneName;\n proto.dates = deprecate(\"dates accessor is deprecated. Use date instead.\", getSetDayOfMonth);\n proto.months = deprecate(\"months accessor is deprecated. Use month instead\", getSetMonth);\n proto.years = deprecate(\"years accessor is deprecated. Use year instead\", getSetYear);\n proto.zone = deprecate(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\", getSetZone);\n proto.isDSTShifted = deprecate(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\", isDaylightSavingTimeShifted);\n function createUnix(input) {\n return createLocal(input * 1000);\n }\n function createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n }\n function preParsePostFormat(string) {\n return string;\n }\n var proto$1 = Locale.prototype;\n proto$1.calendar = calendar;\n proto$1.longDateFormat = longDateFormat;\n proto$1.invalidDate = invalidDate;\n proto$1.ordinal = ordinal;\n proto$1.preparse = preParsePostFormat;\n proto$1.postformat = preParsePostFormat;\n proto$1.relativeTime = relativeTime;\n proto$1.pastFuture = pastFuture;\n proto$1.set = set;\n proto$1.eras = localeEras;\n proto$1.erasParse = localeErasParse;\n proto$1.erasConvertYear = localeErasConvertYear;\n proto$1.erasAbbrRegex = erasAbbrRegex;\n proto$1.erasNameRegex = erasNameRegex;\n proto$1.erasNarrowRegex = erasNarrowRegex;\n proto$1.months = localeMonths;\n proto$1.monthsShort = localeMonthsShort;\n proto$1.monthsParse = localeMonthsParse;\n proto$1.monthsRegex = monthsRegex;\n proto$1.monthsShortRegex = monthsShortRegex;\n proto$1.week = localeWeek;\n proto$1.firstDayOfYear = localeFirstDayOfYear;\n proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n proto$1.weekdays = localeWeekdays;\n proto$1.weekdaysMin = localeWeekdaysMin;\n proto$1.weekdaysShort = localeWeekdaysShort;\n proto$1.weekdaysParse = localeWeekdaysParse;\n proto$1.weekdaysRegex = weekdaysRegex;\n proto$1.weekdaysShortRegex = weekdaysShortRegex;\n proto$1.weekdaysMinRegex = weekdaysMinRegex;\n proto$1.isPM = localeIsPM;\n proto$1.meridiem = localeMeridiem;\n function get$1(format, index, field, setter) {\n var locale = getLocale(), utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n }\n function listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n format = format || \"\";\n if (index != null) return get$1(format, index, field, \"month\");\n var i, out = [];\n for(i = 0; i < 12; i++)out[i] = get$1(format, i, field, \"month\");\n return out;\n }\n // ()\n // (5)\n // (fmt, 5)\n // (fmt)\n // (true)\n // (true, 5)\n // (true, fmt, 5)\n // (true, fmt)\n function listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === \"boolean\") {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n format = format || \"\";\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n format = format || \"\";\n }\n var locale = getLocale(), shift = localeSorted ? locale._week.dow : 0, i, out = [];\n if (index != null) return get$1(format, (index + shift) % 7, field, \"day\");\n for(i = 0; i < 7; i++)out[i] = get$1(format, (i + shift) % 7, field, \"day\");\n return out;\n }\n function listMonths(format, index) {\n return listMonthsImpl(format, index, \"months\");\n }\n function listMonthsShort(format, index) {\n return listMonthsImpl(format, index, \"monthsShort\");\n }\n function listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, \"weekdays\");\n }\n function listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, \"weekdaysShort\");\n }\n function listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, \"weekdaysMin\");\n }\n getSetGlobalLocale(\"en\", {\n eras: [\n {\n since: \"0001-01-01\",\n until: Infinity,\n offset: 1,\n name: \"Anno Domini\",\n narrow: \"AD\",\n abbr: \"AD\"\n },\n {\n since: \"0000-12-31\",\n until: -Infinity,\n offset: 1,\n name: \"Before Christ\",\n narrow: \"BC\",\n abbr: \"BC\"\n }\n ],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function(number) {\n var b = number % 10, output = toInt(number % 100 / 10) === 1 ? \"th\" : b === 1 ? \"st\" : b === 2 ? \"nd\" : b === 3 ? \"rd\" : \"th\";\n return number + output;\n }\n });\n // Side effect imports\n hooks.lang = deprecate(\"moment.lang is deprecated. Use moment.locale instead.\", getSetGlobalLocale);\n hooks.langData = deprecate(\"moment.langData is deprecated. Use moment.localeData instead.\", getLocale);\n var mathAbs = Math.abs;\n function abs() {\n var data = this._data;\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n return this;\n }\n function addSubtract$1(duration, input, value, direction) {\n var other = createDuration(input, value);\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n return duration._bubble();\n }\n // supports only 2.0-style add(1, 's') or add(duration)\n function add$1(input, value) {\n return addSubtract$1(this, input, value, 1);\n }\n // supports only 2.0-style subtract(1, 's') or subtract(duration)\n function subtract$1(input, value) {\n return addSubtract$1(this, input, value, -1);\n }\n function absCeil(number) {\n if (number < 0) return Math.floor(number);\n else return Math.ceil(number);\n }\n function bubble() {\n var milliseconds = this._milliseconds, days = this._days, months = this._months, data = this._data, seconds, minutes, hours, years, monthsFromDays;\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (!(milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0)) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n days += absFloor(hours / 24);\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n data.days = days;\n data.months = months;\n data.years = years;\n return this;\n }\n function daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return days * 4800 / 146097;\n }\n function monthsToDays(months) {\n // the reverse of daysToMonths\n return months * 146097 / 4800;\n }\n function as(units) {\n if (!this.isValid()) return NaN;\n var days, months, milliseconds = this._milliseconds;\n units = normalizeUnits(units);\n if (units === \"month\" || units === \"quarter\" || units === \"year\") {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n switch(units){\n case \"month\":\n return months;\n case \"quarter\":\n return months / 3;\n case \"year\":\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch(units){\n case \"week\":\n return days / 7 + milliseconds / 6048e5;\n case \"day\":\n return days + milliseconds / 864e5;\n case \"hour\":\n return days * 24 + milliseconds / 36e5;\n case \"minute\":\n return days * 1440 + milliseconds / 6e4;\n case \"second\":\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case \"millisecond\":\n return Math.floor(days * 864e5) + milliseconds;\n default:\n throw new Error(\"Unknown unit \" + units);\n }\n }\n }\n function makeAs(alias) {\n return function() {\n return this.as(alias);\n };\n }\n var asMilliseconds = makeAs(\"ms\"), asSeconds = makeAs(\"s\"), asMinutes = makeAs(\"m\"), asHours = makeAs(\"h\"), asDays = makeAs(\"d\"), asWeeks = makeAs(\"w\"), asMonths = makeAs(\"M\"), asQuarters = makeAs(\"Q\"), asYears = makeAs(\"y\"), valueOf$1 = asMilliseconds;\n function clone$1() {\n return createDuration(this);\n }\n function get$2(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + \"s\"]() : NaN;\n }\n function makeGetter(name) {\n return function() {\n return this.isValid() ? this._data[name] : NaN;\n };\n }\n var milliseconds = makeGetter(\"milliseconds\"), seconds = makeGetter(\"seconds\"), minutes = makeGetter(\"minutes\"), hours = makeGetter(\"hours\"), days = makeGetter(\"days\"), months = makeGetter(\"months\"), years = makeGetter(\"years\");\n function weeks() {\n return absFloor(this.days() / 7);\n }\n var round = Math.round, thresholds = {\n ss: 44,\n s: 45,\n m: 45,\n h: 22,\n d: 26,\n w: null,\n M: 11\n };\n // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n }\n function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n var duration = createDuration(posNegDuration).abs(), seconds = round(duration.as(\"s\")), minutes = round(duration.as(\"m\")), hours = round(duration.as(\"h\")), days = round(duration.as(\"d\")), months = round(duration.as(\"M\")), weeks = round(duration.as(\"w\")), years = round(duration.as(\"y\")), a = seconds <= thresholds.ss && [\n \"s\",\n seconds\n ] || seconds < thresholds.s && [\n \"ss\",\n seconds\n ] || minutes <= 1 && [\n \"m\"\n ] || minutes < thresholds.m && [\n \"mm\",\n minutes\n ] || hours <= 1 && [\n \"h\"\n ] || hours < thresholds.h && [\n \"hh\",\n hours\n ] || days <= 1 && [\n \"d\"\n ] || days < thresholds.d && [\n \"dd\",\n days\n ];\n if (thresholds.w != null) a = a || weeks <= 1 && [\n \"w\"\n ] || weeks < thresholds.w && [\n \"ww\",\n weeks\n ];\n a = a || months <= 1 && [\n \"M\"\n ] || months < thresholds.M && [\n \"MM\",\n months\n ] || years <= 1 && [\n \"y\"\n ] || [\n \"yy\",\n years\n ];\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n }\n // This function allows you to set the rounding function for relative time strings\n function getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) return round;\n if (typeof roundingFunction === \"function\") {\n round = roundingFunction;\n return true;\n }\n return false;\n }\n // This function allows you to set a threshold for relative time strings\n function getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) return false;\n if (limit === undefined) return thresholds[threshold];\n thresholds[threshold] = limit;\n if (threshold === \"s\") thresholds.ss = limit - 1;\n return true;\n }\n function humanize(argWithSuffix, argThresholds) {\n if (!this.isValid()) return this.localeData().invalidDate();\n var withSuffix = false, th = thresholds, locale, output;\n if (typeof argWithSuffix === \"object\") {\n argThresholds = argWithSuffix;\n argWithSuffix = false;\n }\n if (typeof argWithSuffix === \"boolean\") withSuffix = argWithSuffix;\n if (typeof argThresholds === \"object\") {\n th = Object.assign({}, thresholds, argThresholds);\n if (argThresholds.s != null && argThresholds.ss == null) th.ss = argThresholds.s - 1;\n }\n locale = this.localeData();\n output = relativeTime$1(this, !withSuffix, th, locale);\n if (withSuffix) output = locale.pastFuture(+this, output);\n return locale.postformat(output);\n }\n var abs$1 = Math.abs;\n function sign(x) {\n return (x > 0) - (x < 0) || +x;\n }\n function toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) return this.localeData().invalidDate();\n var seconds = abs$1(this._milliseconds) / 1000, days = abs$1(this._days), months = abs$1(this._months), minutes, hours, years, s, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign;\n if (!total) // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return \"P0D\";\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, \"\") : \"\";\n totalSign = total < 0 ? \"-\" : \"\";\n ymSign = sign(this._months) !== sign(total) ? \"-\" : \"\";\n daysSign = sign(this._days) !== sign(total) ? \"-\" : \"\";\n hmsSign = sign(this._milliseconds) !== sign(total) ? \"-\" : \"\";\n return totalSign + \"P\" + (years ? ymSign + years + \"Y\" : \"\") + (months ? ymSign + months + \"M\" : \"\") + (days ? daysSign + days + \"D\" : \"\") + (hours || minutes || seconds ? \"T\" : \"\") + (hours ? hmsSign + hours + \"H\" : \"\") + (minutes ? hmsSign + minutes + \"M\" : \"\") + (seconds ? hmsSign + s + \"S\" : \"\");\n }\n var proto$2 = Duration.prototype;\n proto$2.isValid = isValid$1;\n proto$2.abs = abs;\n proto$2.add = add$1;\n proto$2.subtract = subtract$1;\n proto$2.as = as;\n proto$2.asMilliseconds = asMilliseconds;\n proto$2.asSeconds = asSeconds;\n proto$2.asMinutes = asMinutes;\n proto$2.asHours = asHours;\n proto$2.asDays = asDays;\n proto$2.asWeeks = asWeeks;\n proto$2.asMonths = asMonths;\n proto$2.asQuarters = asQuarters;\n proto$2.asYears = asYears;\n proto$2.valueOf = valueOf$1;\n proto$2._bubble = bubble;\n proto$2.clone = clone$1;\n proto$2.get = get$2;\n proto$2.milliseconds = milliseconds;\n proto$2.seconds = seconds;\n proto$2.minutes = minutes;\n proto$2.hours = hours;\n proto$2.days = days;\n proto$2.weeks = weeks;\n proto$2.months = months;\n proto$2.years = years;\n proto$2.humanize = humanize;\n proto$2.toISOString = toISOString$1;\n proto$2.toString = toISOString$1;\n proto$2.toJSON = toISOString$1;\n proto$2.locale = locale;\n proto$2.localeData = localeData;\n proto$2.toIsoString = deprecate(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\", toISOString$1);\n proto$2.lang = lang;\n // FORMATTING\n addFormatToken(\"X\", 0, 0, \"unix\");\n addFormatToken(\"x\", 0, 0, \"valueOf\");\n // PARSING\n addRegexToken(\"x\", matchSigned);\n addRegexToken(\"X\", matchTimestamp);\n addParseToken(\"X\", function(input, array, config) {\n config._d = new Date(parseFloat(input) * 1000);\n });\n addParseToken(\"x\", function(input, array, config) {\n config._d = new Date(toInt(input));\n });\n //! moment.js\n hooks.version = \"2.30.1\";\n setHookCallback(createLocal);\n hooks.fn = proto;\n hooks.min = min;\n hooks.max = max;\n hooks.now = now;\n hooks.utc = createUTC;\n hooks.unix = createUnix;\n hooks.months = listMonths;\n hooks.isDate = isDate;\n hooks.locale = getSetGlobalLocale;\n hooks.invalid = createInvalid;\n hooks.duration = createDuration;\n hooks.isMoment = isMoment;\n hooks.weekdays = listWeekdays;\n hooks.parseZone = createInZone;\n hooks.localeData = getLocale;\n hooks.isDuration = isDuration;\n hooks.monthsShort = listMonthsShort;\n hooks.weekdaysMin = listWeekdaysMin;\n hooks.defineLocale = defineLocale;\n hooks.updateLocale = updateLocale;\n hooks.locales = listLocales;\n hooks.weekdaysShort = listWeekdaysShort;\n hooks.normalizeUnits = normalizeUnits;\n hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n hooks.calendarFormat = getCalendarFormat;\n hooks.prototype = proto;\n // currently HTML5 input type only supports 24-hour formats\n hooks.HTML5_FMT = {\n DATETIME_LOCAL: \"YYYY-MM-DDTHH:mm\",\n DATETIME_LOCAL_SECONDS: \"YYYY-MM-DDTHH:mm:ss\",\n DATETIME_LOCAL_MS: \"YYYY-MM-DDTHH:mm:ss.SSS\",\n DATE: \"YYYY-MM-DD\",\n TIME: \"HH:mm\",\n TIME_SECONDS: \"HH:mm:ss\",\n TIME_MS: \"HH:mm:ss.SSS\",\n WEEK: \"GGGG-[W]WW\",\n MONTH: \"YYYY-MM\"\n };\n return hooks;\n});\n\n});\n\n\nvar $45fvw = parcelRequire(\"45fvw\");\nfunction $37ea9347e68a07dc$var$t(t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction $37ea9347e68a07dc$var$e(t, e) {\n for(var s = 0; s < e.length; s++){\n var i = e[s];\n i.enumerable = i.enumerable || false;\n i.configurable = true;\n if (\"value\" in i) i.writable = true;\n Object.defineProperty(t, i.key, i);\n }\n}\nfunction $37ea9347e68a07dc$var$s(t, s, i) {\n if (s) $37ea9347e68a07dc$var$e(t.prototype, s);\n if (i) $37ea9347e68a07dc$var$e(t, i);\n return t;\n}\nvar $37ea9347e68a07dc$var$i = Object.defineProperty;\nvar $37ea9347e68a07dc$var$n = function(t, e) {\n return $37ea9347e68a07dc$var$i(t, \"name\", {\n value: e,\n configurable: !0\n });\n};\nvar $37ea9347e68a07dc$var$o = '\\n \\n\\n';\nvar $37ea9347e68a07dc$var$a = '\\n \\n\\n';\nvar $37ea9347e68a07dc$var$r = '\\n \\n\\n';\nvar $37ea9347e68a07dc$var$c = '\\n \\n\\n';\nvar $37ea9347e68a07dc$var$l = '\\n \\n\\n';\nvar $37ea9347e68a07dc$var$h = $37ea9347e68a07dc$var$n(function(t) {\n return new DOMParser().parseFromString(t, \"text/html\").body.childNodes[0];\n}, \"stringToHTML\"), $37ea9347e68a07dc$var$d = $37ea9347e68a07dc$var$n(function(t) {\n var e = new DOMParser().parseFromString(t, \"application/xml\");\n return document.importNode(e.documentElement, !0).outerHTML;\n}, \"getSvgNode\");\nvar $37ea9347e68a07dc$var$u = {\n CONTAINER: \"sn-notifications-container\",\n NOTIFY: \"sn-notify\",\n NOTIFY_CONTENT: \"sn-notify-content\",\n NOTIFY_ICON: \"sn-notify-icon\",\n NOTIFY_CLOSE: \"sn-notify-close\",\n NOTIFY_TITLE: \"sn-notify-title\",\n NOTIFY_TEXT: \"sn-notify-text\",\n IS_X_CENTER: \"sn-is-x-center\",\n IS_Y_CENTER: \"sn-is-y-center\",\n IS_CENTER: \"sn-is-center\",\n IS_LEFT: \"sn-is-left\",\n IS_RIGHT: \"sn-is-right\",\n IS_TOP: \"sn-is-top\",\n IS_BOTTOM: \"sn-is-bottom\",\n NOTIFY_OUTLINE: \"sn-notify-outline\",\n NOTIFY_FILLED: \"sn-notify-filled\",\n NOTIFY_ERROR: \"sn-notify-error\",\n NOTIFY_WARNING: \"sn-notify-warning\",\n NOTIFY_SUCCESS: \"sn-notify-success\",\n NOTIFY_INFO: \"sn-notify-info\",\n NOTIFY_FADE: \"sn-notify-fade\",\n NOTIFY_FADE_IN: \"sn-notify-fade-in\",\n NOTIFY_SLIDE: \"sn-notify-slide\",\n NOTIFY_SLIDE_IN: \"sn-notify-slide-in\",\n NOTIFY_AUTOCLOSE: \"sn-notify-autoclose\"\n}, $37ea9347e68a07dc$var$f = {\n ERROR: \"error\",\n WARNING: \"warning\",\n SUCCESS: \"success\",\n INFO: \"info\"\n}, $37ea9347e68a07dc$var$p = {\n OUTLINE: \"outline\",\n FILLED: \"filled\"\n}, $37ea9347e68a07dc$var$I = {\n FADE: \"fade\",\n SLIDE: \"slide\"\n}, $37ea9347e68a07dc$var$v = {\n CLOSE: $37ea9347e68a07dc$var$d($37ea9347e68a07dc$var$o),\n SUCCESS: $37ea9347e68a07dc$var$d($37ea9347e68a07dc$var$c),\n ERROR: $37ea9347e68a07dc$var$d($37ea9347e68a07dc$var$a),\n WARNING: $37ea9347e68a07dc$var$d($37ea9347e68a07dc$var$l),\n INFO: $37ea9347e68a07dc$var$d($37ea9347e68a07dc$var$r)\n};\nvar $37ea9347e68a07dc$var$N = $37ea9347e68a07dc$var$n(function(t) {\n t.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_FADE), setTimeout(function() {\n t.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_FADE_IN);\n }, 100);\n}, \"fadeIn\"), $37ea9347e68a07dc$var$O = $37ea9347e68a07dc$var$n(function(t) {\n t.wrapper.classList.remove($37ea9347e68a07dc$var$u.NOTIFY_FADE_IN), setTimeout(function() {\n t.wrapper.remove();\n }, t.speed);\n}, \"fadeOut\"), $37ea9347e68a07dc$var$T = $37ea9347e68a07dc$var$n(function(t) {\n t.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_SLIDE), setTimeout(function() {\n t.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_SLIDE_IN);\n }, 100);\n}, \"slideIn\"), $37ea9347e68a07dc$var$E = $37ea9347e68a07dc$var$n(function(t) {\n t.wrapper.classList.remove($37ea9347e68a07dc$var$u.NOTIFY_SLIDE_IN), setTimeout(function() {\n t.wrapper.remove();\n }, t.speed);\n}, \"slideOut\");\nvar $37ea9347e68a07dc$var$m = function() {\n \"use strict\";\n function e(s) {\n var i = this;\n $37ea9347e68a07dc$var$t(this, e);\n this.notifyOut = $37ea9347e68a07dc$var$n(function(t) {\n t(i);\n }, \"notifyOut\");\n var o = s.notificationsGap, a = o === void 0 ? 20 : o, r = s.notificationsPadding, c = r === void 0 ? 20 : r, l = s.status, h = l === void 0 ? \"success\" : l, d = s.effect, u = d === void 0 ? $37ea9347e68a07dc$var$I.FADE : d, f = s.type, p = f === void 0 ? \"outline\" : f, v = s.title, N = s.text, O = s.showIcon, T = O === void 0 ? !0 : O, E = s.customIcon, m = E === void 0 ? \"\" : E, w = s.customClass, y = w === void 0 ? \"\" : w, L = s.speed, C = L === void 0 ? 500 : L, F = s.showCloseButton, _ = F === void 0 ? !0 : F, S = s.autoclose, g = S === void 0 ? !0 : S, R = s.autotimeout, Y = R === void 0 ? 3e3 : R, x = s.position, A = x === void 0 ? \"right top\" : x, b = s.customWrapper, k = b === void 0 ? \"\" : b;\n if (this.customWrapper = k, this.status = h, this.title = v, this.text = N, this.showIcon = T, this.customIcon = m, this.customClass = y, this.speed = C, this.effect = u, this.showCloseButton = _, this.autoclose = g, this.autotimeout = Y, this.notificationsGap = a, this.notificationsPadding = c, this.type = p, this.position = A, !this.checkRequirements()) {\n console.error(\"You must specify 'title' or 'text' at least.\");\n return;\n }\n this.setContainer(), this.setWrapper(), this.setPosition(), this.showIcon && this.setIcon(), this.showCloseButton && this.setCloseButton(), this.setContent(), this.container.prepend(this.wrapper), this.setEffect(), this.notifyIn(this.selectedNotifyInEffect), this.autoclose && this.autoClose(), this.setObserver();\n }\n $37ea9347e68a07dc$var$s(e, [\n {\n key: \"checkRequirements\",\n value: function t() {\n return !!(this.title || this.text);\n }\n },\n {\n key: \"setContainer\",\n value: function t() {\n var t = document.querySelector(\".\".concat($37ea9347e68a07dc$var$u.CONTAINER));\n t ? this.container = t : (this.container = document.createElement(\"div\"), this.container.classList.add($37ea9347e68a07dc$var$u.CONTAINER), document.body.appendChild(this.container)), this.notificationsPadding && this.container.style.setProperty(\"--sn-notifications-padding\", \"\".concat(this.notificationsPadding, \"px\")), this.notificationsGap && this.container.style.setProperty(\"--sn-notifications-gap\", \"\".concat(this.notificationsGap, \"px\"));\n }\n },\n {\n key: \"setPosition\",\n value: function t() {\n this.container.classList[this.position === \"center\" ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_CENTER), this.container.classList[this.position.includes(\"left\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_LEFT), this.container.classList[this.position.includes(\"right\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_RIGHT), this.container.classList[this.position.includes(\"top\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_TOP), this.container.classList[this.position.includes(\"bottom\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_BOTTOM), this.container.classList[this.position.includes(\"x-center\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_X_CENTER), this.container.classList[this.position.includes(\"y-center\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_Y_CENTER);\n }\n },\n {\n key: \"setCloseButton\",\n value: function t() {\n var t = this;\n var e = document.createElement(\"div\");\n e.classList.add($37ea9347e68a07dc$var$u.NOTIFY_CLOSE), e.innerHTML = $37ea9347e68a07dc$var$v.CLOSE, this.wrapper.appendChild(e), e.addEventListener(\"click\", function() {\n t.close();\n });\n }\n },\n {\n key: \"setWrapper\",\n value: function t() {\n var t = this;\n switch(this.customWrapper ? this.wrapper = $37ea9347e68a07dc$var$h(this.customWrapper) : this.wrapper = document.createElement(\"div\"), this.wrapper.style.setProperty(\"--sn-notify-transition-duration\", \"\".concat(this.speed, \"ms\")), this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY), this.type){\n case $37ea9347e68a07dc$var$p.OUTLINE:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_OUTLINE);\n break;\n case $37ea9347e68a07dc$var$p.FILLED:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_FILLED);\n break;\n default:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_OUTLINE);\n }\n switch(this.status){\n case $37ea9347e68a07dc$var$f.SUCCESS:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_SUCCESS);\n break;\n case $37ea9347e68a07dc$var$f.ERROR:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_ERROR);\n break;\n case $37ea9347e68a07dc$var$f.WARNING:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_WARNING);\n break;\n case $37ea9347e68a07dc$var$f.INFO:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_INFO);\n break;\n }\n this.autoclose && (this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_AUTOCLOSE), this.wrapper.style.setProperty(\"--sn-notify-autoclose-timeout\", \"\".concat(this.autotimeout + this.speed, \"ms\"))), this.customClass && this.customClass.split(\" \").forEach(function(e) {\n t.wrapper.classList.add(e);\n });\n }\n },\n {\n key: \"setContent\",\n value: function t() {\n var t = document.createElement(\"div\");\n t.classList.add($37ea9347e68a07dc$var$u.NOTIFY_CONTENT);\n var e, s;\n this.title && (e = document.createElement(\"div\"), e.classList.add($37ea9347e68a07dc$var$u.NOTIFY_TITLE), e.textContent = this.title.trim(), this.showCloseButton || (e.style.paddingRight = \"0\")), this.text && (s = document.createElement(\"div\"), s.classList.add($37ea9347e68a07dc$var$u.NOTIFY_TEXT), s.innerHTML = this.text.trim(), this.title || (s.style.marginTop = \"0\")), this.wrapper.appendChild(t), this.title && t.appendChild(e), this.text && t.appendChild(s);\n }\n },\n {\n key: \"setIcon\",\n value: function t() {\n var t = $37ea9347e68a07dc$var$n(function(t) {\n switch(t){\n case $37ea9347e68a07dc$var$f.SUCCESS:\n return $37ea9347e68a07dc$var$v.SUCCESS;\n case $37ea9347e68a07dc$var$f.ERROR:\n return $37ea9347e68a07dc$var$v.ERROR;\n case $37ea9347e68a07dc$var$f.WARNING:\n return $37ea9347e68a07dc$var$v.WARNING;\n case $37ea9347e68a07dc$var$f.INFO:\n return $37ea9347e68a07dc$var$v.INFO;\n }\n }, \"computedIcon\"), e = document.createElement(\"div\");\n e.classList.add($37ea9347e68a07dc$var$u.NOTIFY_ICON), e.innerHTML = this.customIcon || t(this.status), (this.status || this.customIcon) && this.wrapper.appendChild(e);\n }\n },\n {\n key: \"setObserver\",\n value: function t() {\n var t = this;\n var e = new IntersectionObserver(function(e) {\n if (e[0].intersectionRatio <= 0) t.close();\n else return;\n }, {\n threshold: 0\n });\n setTimeout(function() {\n e.observe(t.wrapper);\n }, this.speed);\n }\n },\n {\n key: \"notifyIn\",\n value: function t(t) {\n t(this);\n }\n },\n {\n key: \"autoClose\",\n value: function t() {\n var t = this;\n setTimeout(function() {\n t.close();\n }, this.autotimeout + this.speed);\n }\n },\n {\n key: \"close\",\n value: function t() {\n this.notifyOut(this.selectedNotifyOutEffect);\n }\n },\n {\n key: \"setEffect\",\n value: function t() {\n switch(this.effect){\n case $37ea9347e68a07dc$var$I.FADE:\n this.selectedNotifyInEffect = $37ea9347e68a07dc$var$N, this.selectedNotifyOutEffect = $37ea9347e68a07dc$var$O;\n break;\n case $37ea9347e68a07dc$var$I.SLIDE:\n this.selectedNotifyInEffect = $37ea9347e68a07dc$var$T, this.selectedNotifyOutEffect = $37ea9347e68a07dc$var$E;\n break;\n default:\n this.selectedNotifyInEffect = $37ea9347e68a07dc$var$N, this.selectedNotifyOutEffect = $37ea9347e68a07dc$var$O;\n }\n }\n }\n ]);\n return e;\n}();\n$37ea9347e68a07dc$var$n($37ea9347e68a07dc$var$m, \"Notify\");\nvar $37ea9347e68a07dc$export$2e2bcd8739ae039 = $37ea9347e68a07dc$var$m;\nglobalThis.Notify = $37ea9347e68a07dc$export$2e2bcd8739ae039;\n\n\n/**\n * These should be kept in sync with zigbee-herdsman.\n */ /**\n * Defines the events reported to the application by the ::emberCounterHandler().\n * Usage of the destinationNodeId or data fields found in the EmberCounterInfo or EmberExtraCounterInfo\n * structs is denoted for counter types that use them.\n * (See comments accompanying enum definitions in this source file for details.)\n */ var $0c547add3190c50c$export$7d1f329b3260ae16;\n(function(EmberCounterType) {\n /**\n * The MAC received a broadcast Data frame, Command frame, or Beacon.\n * - destinationNodeId: BROADCAST_ADDRESS or Data frames or sender node ID for Beacon frames\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"MAC_RX_BROADCAST\"] = 0] = \"MAC_RX_BROADCAST\";\n /**\n * The MAC transmitted a broadcast Data frame, Command frame or Beacon.\n * - destinationNodeId: BROADCAST_ADDRESS\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"MAC_TX_BROADCAST\"] = 1] = \"MAC_TX_BROADCAST\";\n /**\n * The MAC received a unicast Data or Command frame.\n * - destinationNodeId: MAC layer source or EMBER_UNKNOWN_NODE_ID if no 16-bit source node ID is present in the frame\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"MAC_RX_UNICAST\"] = 2] = \"MAC_RX_UNICAST\";\n /**\n * The MAC successfully transmitted a unicast Data or Command frame.\n * Note: Only frames with a 16-bit destination node ID are counted.\n * - destinationNodeId: MAC layer destination address\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"MAC_TX_UNICAST_SUCCESS\"] = 3] = \"MAC_TX_UNICAST_SUCCESS\";\n /**\n * The MAC retried a unicast Data or Command frame after initial Tx attempt.\n * Note: CSMA-related failures are tracked separately via PHY_CCA_FAIL_COUNT.\n * - destinationNodeId: MAC layer destination or EMBER_UNKNOWN_NODE_ID if no 16-bit destination node ID is present in the frame\n * - data: number of retries (after initial Tx attempt) accumulated so far for this packet. (Should always be >0.)\n */ EmberCounterType[EmberCounterType[\"MAC_TX_UNICAST_RETRY\"] = 4] = \"MAC_TX_UNICAST_RETRY\";\n /**\n * The MAC unsuccessfully transmitted a unicast Data or Command frame.\n * Note: Only frames with a 16-bit destination node ID are counted.\n * - destinationNodeId: MAC layer destination address\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"MAC_TX_UNICAST_FAILED\"] = 5] = \"MAC_TX_UNICAST_FAILED\";\n /**\n * The APS layer received a data broadcast.\n * - destinationNodeId: sender's node ID\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"APS_DATA_RX_BROADCAST\"] = 6] = \"APS_DATA_RX_BROADCAST\";\n /** The APS layer transmitted a data broadcast. */ EmberCounterType[EmberCounterType[\"APS_DATA_TX_BROADCAST\"] = 7] = \"APS_DATA_TX_BROADCAST\";\n /**\n * The APS layer received a data unicast.\n * - destinationNodeId: sender's node ID\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"APS_DATA_RX_UNICAST\"] = 8] = \"APS_DATA_RX_UNICAST\";\n /**\n * The APS layer successfully transmitted a data unicast.\n * - destinationNodeId: NWK destination address\n * - data: number of APS retries (>=0) consumed for this unicast.\n */ EmberCounterType[EmberCounterType[\"APS_DATA_TX_UNICAST_SUCCESS\"] = 9] = \"APS_DATA_TX_UNICAST_SUCCESS\";\n /**\n * The APS layer retried a unicast Data frame.\n * This is a placeholder and is not used by the @c ::emberCounterHandler() callback.\n * Instead, the number of APS retries are returned in the data parameter of the callback\n * for the @c ::APS_DATA_TX_UNICAST_SUCCESS and @c ::APS_DATA_TX_UNICAST_FAILED types.\n * However, our supplied Counters component code will attempt to collect this information\n * from the aforementioned counters and populate this counter.\n * Note that this counter's behavior differs from that of @c ::MAC_TX_UNICAST_RETRY .\n */ EmberCounterType[EmberCounterType[\"APS_DATA_TX_UNICAST_RETRY\"] = 10] = \"APS_DATA_TX_UNICAST_RETRY\";\n /**\n * The APS layer unsuccessfully transmitted a data unicast.\n * - destinationNodeId: NWK destination address\n * - data: number of APS retries (>=0) consumed for this unicast.\n */ EmberCounterType[EmberCounterType[\"APS_DATA_TX_UNICAST_FAILED\"] = 11] = \"APS_DATA_TX_UNICAST_FAILED\";\n /** The network layer successfully submitted a new route discovery to the MAC. */ EmberCounterType[EmberCounterType[\"ROUTE_DISCOVERY_INITIATED\"] = 12] = \"ROUTE_DISCOVERY_INITIATED\";\n /** An entry was added to the neighbor table. */ EmberCounterType[EmberCounterType[\"NEIGHBOR_ADDED\"] = 13] = \"NEIGHBOR_ADDED\";\n /** An entry was removed from the neighbor table. */ EmberCounterType[EmberCounterType[\"NEIGHBOR_REMOVED\"] = 14] = \"NEIGHBOR_REMOVED\";\n /** A neighbor table entry became stale because it had not been heard from. */ EmberCounterType[EmberCounterType[\"NEIGHBOR_STALE\"] = 15] = \"NEIGHBOR_STALE\";\n /**\n * A node joined or rejoined to the network via this node.\n * - destinationNodeId: node ID of child\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"JOIN_INDICATION\"] = 16] = \"JOIN_INDICATION\";\n /**\n * An entry was removed from the child table.\n * - destinationNodeId: node ID of child\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"CHILD_REMOVED\"] = 17] = \"CHILD_REMOVED\";\n /** EZSP-UART only. An overflow error occurred in the UART. */ EmberCounterType[EmberCounterType[\"ASH_OVERFLOW_ERROR\"] = 18] = \"ASH_OVERFLOW_ERROR\";\n /** EZSP-UART only. A framing error occurred in the UART. */ EmberCounterType[EmberCounterType[\"ASH_FRAMING_ERROR\"] = 19] = \"ASH_FRAMING_ERROR\";\n /** EZSP-UART only. An overrun error occurred in the UART. */ EmberCounterType[EmberCounterType[\"ASH_OVERRUN_ERROR\"] = 20] = \"ASH_OVERRUN_ERROR\";\n /** A message was dropped at the Network layer because the NWK frame counter was not higher than the last message seen from that source. */ EmberCounterType[EmberCounterType[\"NWK_FRAME_COUNTER_FAILURE\"] = 21] = \"NWK_FRAME_COUNTER_FAILURE\";\n /**\n * A message was dropped at the APS layer because the APS frame counter was not higher than the last message seen from that source.\n * - destinationNodeId: node ID of MAC source that relayed the message\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"APS_FRAME_COUNTER_FAILURE\"] = 22] = \"APS_FRAME_COUNTER_FAILURE\";\n /** EZSP-UART only. An XOFF was transmitted by the UART. */ EmberCounterType[EmberCounterType[\"ASH_XOFF\"] = 23] = \"ASH_XOFF\";\n /**\n * An encrypted message was dropped by the APS layer because the sender's key has not been authenticated.\n * As a result, the key is not authorized for use in APS data messages.\n * - destinationNodeId: EMBER_NULL_NODE_ID\n * - data: APS key table index related to the sender\n */ EmberCounterType[EmberCounterType[\"APS_LINK_KEY_NOT_AUTHORIZED\"] = 24] = \"APS_LINK_KEY_NOT_AUTHORIZED\";\n /**\n * A NWK encrypted message was received but dropped because decryption failed.\n * - destinationNodeId: sender of the dropped packet\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"NWK_DECRYPTION_FAILURE\"] = 25] = \"NWK_DECRYPTION_FAILURE\";\n /**\n * An APS encrypted message was received but dropped because decryption failed.\n * - destinationNodeId: sender of the dropped packet\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"APS_DECRYPTION_FAILURE\"] = 26] = \"APS_DECRYPTION_FAILURE\";\n /**\n * The number of failures to allocate a set of linked packet buffers.\n * This doesn't necessarily mean that the packet buffer count was 0 at the time,\n * but that the number requested was greater than the number free.\n */ EmberCounterType[EmberCounterType[\"ALLOCATE_PACKET_BUFFER_FAILURE\"] = 27] = \"ALLOCATE_PACKET_BUFFER_FAILURE\";\n /**\n * The number of relayed unicast packets.\n * - destinationId: NWK layer destination address of relayed packet\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"RELAYED_UNICAST\"] = 28] = \"RELAYED_UNICAST\";\n /**\n * The number of times a packet was dropped due to reaching the preset PHY-to-MAC queue limit (sli_mac_phy_to_mac_queue_length).\n * The limit will determine how many messages are accepted by the PHY between calls to emberTick().\n * After that limit is reached, packets will be dropped. The counter records the number of dropped packets.\n *\n * NOTE: For each call to emberCounterHandler() there may be more than 1 packet that was dropped due to the limit reached.\n * The actual number of packets dropped will be returned in the 'data' parameter passed to that function.\n *\n * - destinationNodeId: not used\n * - data: number of dropped packets represented by this counter event\n * - phyIndex: present\n */ EmberCounterType[EmberCounterType[\"PHY_TO_MAC_QUEUE_LIMIT_REACHED\"] = 29] = \"PHY_TO_MAC_QUEUE_LIMIT_REACHED\";\n /**\n * The number of times a packet was dropped due to the packet-validate library checking a packet\n * and rejecting it due to length or other formatting problems.\n * - destinationNodeId: not used\n * - data: type of validation condition that failed\n */ EmberCounterType[EmberCounterType[\"PACKET_VALIDATE_LIBRARY_DROPPED_COUNT\"] = 30] = \"PACKET_VALIDATE_LIBRARY_DROPPED_COUNT\";\n /**\n * The number of times the NWK retry queue is full and a new message failed to be added.\n * - destinationNodeId; not used\n * - data: NWK retry queue size that has been exceeded\n */ EmberCounterType[EmberCounterType[\"TYPE_NWK_RETRY_OVERFLOW\"] = 31] = \"TYPE_NWK_RETRY_OVERFLOW\";\n /**\n * The number of times the PHY layer was unable to transmit due to a failed CCA (Clear Channel Assessment) attempt.\n * See also: MAC_TX_UNICAST_RETRY.\n * - destinationNodeId: MAC layer destination or EMBER_UNKNOWN_NODE_ID if no 16-bit destination node ID is present in the frame\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"PHY_CCA_FAIL_COUNT\"] = 32] = \"PHY_CCA_FAIL_COUNT\";\n /** The number of times a NWK broadcast was dropped because the broadcast table was full. */ EmberCounterType[EmberCounterType[\"BROADCAST_TABLE_FULL\"] = 33] = \"BROADCAST_TABLE_FULL\";\n /** The number of times a low-priority packet traffic arbitration request has been made. */ EmberCounterType[EmberCounterType[\"PTA_LO_PRI_REQUESTED\"] = 34] = \"PTA_LO_PRI_REQUESTED\";\n /** The number of times a high-priority packet traffic arbitration request has been made. */ EmberCounterType[EmberCounterType[\"PTA_HI_PRI_REQUESTED\"] = 35] = \"PTA_HI_PRI_REQUESTED\";\n /** The number of times a low-priority packet traffic arbitration request has been denied. */ EmberCounterType[EmberCounterType[\"PTA_LO_PRI_DENIED\"] = 36] = \"PTA_LO_PRI_DENIED\";\n /** The number of times a high-priority packet traffic arbitration request has been denied. */ EmberCounterType[EmberCounterType[\"PTA_HI_PRI_DENIED\"] = 37] = \"PTA_HI_PRI_DENIED\";\n /** The number of times a low-priority packet traffic arbitration transmission has been aborted. */ EmberCounterType[EmberCounterType[\"PTA_LO_PRI_TX_ABORTED\"] = 38] = \"PTA_LO_PRI_TX_ABORTED\";\n /** The number of times a high-priority packet traffic arbitration transmission has been aborted. */ EmberCounterType[EmberCounterType[\"PTA_HI_PRI_TX_ABORTED\"] = 39] = \"PTA_HI_PRI_TX_ABORTED\";\n /** The number of times an address conflict has caused node_id change, and an address conflict error is sent. */ EmberCounterType[EmberCounterType[\"ADDRESS_CONFLICT_SENT\"] = 40] = \"ADDRESS_CONFLICT_SENT\";\n})($0c547add3190c50c$export$7d1f329b3260ae16 || ($0c547add3190c50c$export$7d1f329b3260ae16 = {}));\nvar $0c547add3190c50c$export$ce7ab19ae6dc792d;\n(function(AshCounterType) {\n AshCounterType[AshCounterType[\"TX_DATA\"] = 0] = \"TX_DATA\";\n AshCounterType[AshCounterType[\"TX_ALL_FRAMES\"] = 1] = \"TX_ALL_FRAMES\";\n AshCounterType[AshCounterType[\"TX_DATA_FRAMES\"] = 2] = \"TX_DATA_FRAMES\";\n AshCounterType[AshCounterType[\"TX_ACK_FRAMES\"] = 3] = \"TX_ACK_FRAMES\";\n AshCounterType[AshCounterType[\"TX_NAK_FRAMES\"] = 4] = \"TX_NAK_FRAMES\";\n AshCounterType[AshCounterType[\"TX_RE_DATA_FRAMES\"] = 5] = \"TX_RE_DATA_FRAMES\";\n AshCounterType[AshCounterType[\"TX_N1_FRAMES\"] = 6] = \"TX_N1_FRAMES\";\n AshCounterType[AshCounterType[\"TX_CANCELLED\"] = 7] = \"TX_CANCELLED\";\n AshCounterType[AshCounterType[\"RX_DATA\"] = 8] = \"RX_DATA\";\n AshCounterType[AshCounterType[\"RX_ALL_FRAMES\"] = 9] = \"RX_ALL_FRAMES\";\n AshCounterType[AshCounterType[\"RX_DATA_FRAMES\"] = 10] = \"RX_DATA_FRAMES\";\n AshCounterType[AshCounterType[\"RX_ACK_FRAMES\"] = 11] = \"RX_ACK_FRAMES\";\n AshCounterType[AshCounterType[\"RX_NAK_FRAMES\"] = 12] = \"RX_NAK_FRAMES\";\n AshCounterType[AshCounterType[\"RX_RE_DATA_FRAMES\"] = 13] = \"RX_RE_DATA_FRAMES\";\n AshCounterType[AshCounterType[\"RX_N1_FRAMES\"] = 14] = \"RX_N1_FRAMES\";\n AshCounterType[AshCounterType[\"RX_CANCELLED\"] = 15] = \"RX_CANCELLED\";\n AshCounterType[AshCounterType[\"RX_CRC_ERRORS\"] = 16] = \"RX_CRC_ERRORS\";\n AshCounterType[AshCounterType[\"RX_COMM_ERRORS\"] = 17] = \"RX_COMM_ERRORS\";\n AshCounterType[AshCounterType[\"RX_TOO_SHORT\"] = 18] = \"RX_TOO_SHORT\";\n AshCounterType[AshCounterType[\"RX_TOO_LONG\"] = 19] = \"RX_TOO_LONG\";\n AshCounterType[AshCounterType[\"RX_BAD_CONTROL\"] = 20] = \"RX_BAD_CONTROL\";\n AshCounterType[AshCounterType[\"RX_BAD_LENGTH\"] = 21] = \"RX_BAD_LENGTH\";\n AshCounterType[AshCounterType[\"RX_BAD_ACK_NUMBER\"] = 22] = \"RX_BAD_ACK_NUMBER\";\n AshCounterType[AshCounterType[\"RX_NO_BUFFER\"] = 23] = \"RX_NO_BUFFER\";\n AshCounterType[AshCounterType[\"RX_DUPLICATES\"] = 24] = \"RX_DUPLICATES\";\n AshCounterType[AshCounterType[\"RX_OUT_OF_SEQUENCE\"] = 25] = \"RX_OUT_OF_SEQUENCE\";\n AshCounterType[AshCounterType[\"RX_ACK_TIMEOUTS\"] = 26] = \"RX_ACK_TIMEOUTS\";\n})($0c547add3190c50c$export$ce7ab19ae6dc792d || ($0c547add3190c50c$export$ce7ab19ae6dc792d = {}));\nconst $0c547add3190c50c$export$b29cac463fcff685 = 60;\nvar $0c547add3190c50c$export$128038c7eaec3edd;\n(function(EmberStackError) {\n // Error codes that a router uses to notify the message initiator about a broken route.\n EmberStackError[EmberStackError[\"ROUTE_ERROR_NO_ROUTE_AVAILABLE\"] = 0] = \"ROUTE_ERROR_NO_ROUTE_AVAILABLE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_TREE_LINK_FAILURE\"] = 1] = \"ROUTE_ERROR_TREE_LINK_FAILURE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_NON_TREE_LINK_FAILURE\"] = 2] = \"ROUTE_ERROR_NON_TREE_LINK_FAILURE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_LOW_BATTERY_LEVEL\"] = 3] = \"ROUTE_ERROR_LOW_BATTERY_LEVEL\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_NO_ROUTING_CAPACITY\"] = 4] = \"ROUTE_ERROR_NO_ROUTING_CAPACITY\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_NO_INDIRECT_CAPACITY\"] = 5] = \"ROUTE_ERROR_NO_INDIRECT_CAPACITY\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY\"] = 6] = \"ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE\"] = 7] = \"ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED\"] = 8] = \"ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_PARENT_LINK_FAILURE\"] = 9] = \"ROUTE_ERROR_PARENT_LINK_FAILURE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_VALIDATE_ROUTE\"] = 10] = \"ROUTE_ERROR_VALIDATE_ROUTE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_SOURCE_ROUTE_FAILURE\"] = 11] = \"ROUTE_ERROR_SOURCE_ROUTE_FAILURE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE\"] = 12] = \"ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_ADDRESS_CONFLICT\"] = 13] = \"ROUTE_ERROR_ADDRESS_CONFLICT\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_VERIFY_ADDRESSES\"] = 14] = \"ROUTE_ERROR_VERIFY_ADDRESSES\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_PAN_IDENTIFIER_UPDATE\"] = 15] = \"ROUTE_ERROR_PAN_IDENTIFIER_UPDATE\";\n EmberStackError[EmberStackError[\"NETWORK_STATUS_NETWORK_ADDRESS_UPDATE\"] = 16] = \"NETWORK_STATUS_NETWORK_ADDRESS_UPDATE\";\n EmberStackError[EmberStackError[\"NETWORK_STATUS_BAD_FRAME_COUNTER\"] = 17] = \"NETWORK_STATUS_BAD_FRAME_COUNTER\";\n EmberStackError[EmberStackError[\"NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER\"] = 18] = \"NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER\";\n EmberStackError[EmberStackError[\"NETWORK_STATUS_UNKNOWN_COMMAND\"] = 19] = \"NETWORK_STATUS_UNKNOWN_COMMAND\";\n})($0c547add3190c50c$export$128038c7eaec3edd || ($0c547add3190c50c$export$128038c7eaec3edd = {}));\n\n\nconst $f9b620c609316de1$export$2a174e0071931590 = 41;\nconst $f9b620c609316de1$export$ceb082b2eaf405bd = 27;\nconst $f9b620c609316de1$export$ec5a1f774e057f65 = 60000;\nconst $f9b620c609316de1$export$617c68ca378c1aaa = 1; // (min 1 NCP counters logged)\nconst $f9b620c609316de1$export$63c35f258aac6980 = /\\[.*?]/i;\nconst $f9b620c609316de1$export$303e55aba61750fd = \"[NCP COUNTERS] \";\nconst $f9b620c609316de1$export$95beb742938a6341 = \"[ASH COUNTERS] \";\nconst $f9b620c609316de1$export$bc2704b0770a3200 = \"Received network/route error \";\nconst $f9b620c609316de1$export$13864d84dc34e37e = `Failed to ping '`;\nconst $f9b620c609316de1$export$ccaab5dc19e79900 = \"attempt 2/2\";\nconst $f9b620c609316de1$export$a50f877c97ee07a = \"attempt 1/1\";\nconst $f9b620c609316de1$export$9fbd5a6de15875c7 = 25;\nconst $f9b620c609316de1$export$2301180df9108edd = 5;\nconst $f9b620c609316de1$export$bf44026d02a3660d = 0.8;\nconst $f9b620c609316de1$export$46dcdfd2c95be77f = 2500;\nconst $f9b620c609316de1$export$452af6364556dde = [\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).ROUTE_DISCOVERY_INITIATED,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).NEIGHBOR_ADDED,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).NEIGHBOR_REMOVED,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).NEIGHBOR_STALE,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).JOIN_INDICATION,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).CHILD_REMOVED,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_OVERFLOW_ERROR,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_FRAMING_ERROR,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_OVERRUN_ERROR,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_XOFF\n];\n\n\n\nconst $9a8cebc34540b0c1$export$230faf97f16ca50f = [\n /* MAC_RX_BROADCAST */ `The MAC received a broadcast Data frame, Command frame, or Beacon.`,\n /* MAC_TX_BROADCAST */ `The MAC transmitted a broadcast Data frame, Command frame or Beacon.`,\n /* MAC_RX_UNICAST */ `The MAC received a unicast Data or Command frame.`,\n /* MAC_TX_UNICAST_SUCCESS */ `The MAC successfully transmitted a unicast Data or Command frame. Note: Only frames with a 16-bit destination node ID are counted.`,\n /* MAC_TX_UNICAST_RETRY */ `The MAC retried a unicast Data or Command frame after initial Tx attempt. Note: CSMA-related failures are tracked separately via PHY_CCA_FAIL_COUNT.`,\n /* MAC_TX_UNICAST_FAILED */ `The MAC unsuccessfully transmitted a unicast Data or Command frame. Note: Only frames with a 16-bit destination node ID are counted.`,\n /* APS_DATA_RX_BROADCAST */ `The APS layer received a data broadcast.`,\n /* APS_DATA_TX_BROADCAST */ `The APS layer transmitted a data broadcast.`,\n /* APS_DATA_RX_UNICAST */ `The APS layer received a data unicast.`,\n /* APS_DATA_TX_UNICAST_SUCCESS */ `The APS layer successfully transmitted a data unicast.`,\n /* APS_DATA_TX_UNICAST_RETRY */ `The APS layer retried a unicast data frame.`,\n /* APS_DATA_TX_UNICAST_FAILED */ `The APS layer unsuccessfully transmitted a data unicast.`,\n /* ROUTE_DISCOVERY_INITIATED */ `The network layer successfully submitted a new route discovery to the MAC. Current Ember default is to trigger at least one every ${(0, $0c547add3190c50c$export$b29cac463fcff685)} seconds.`,\n /* NEIGHBOR_ADDED */ `An entry was added to the neighbor table.`,\n /* NEIGHBOR_REMOVED */ `An entry was removed from the neighbor table.`,\n /* NEIGHBOR_STALE */ `A neighbor table entry became stale because it had not been heard from.`,\n /* JOIN_INDICATION */ `A node joined or rejoined to the network via this node.`,\n /* CHILD_REMOVED */ `An entry was removed from the child table.`,\n /* ASH_OVERFLOW_ERROR */ `EZSP-UART only. An overflow error occurred in the UART.`,\n /* ASH_FRAMING_ERROR */ `EZSP-UART only. A framing error occurred in the UART.`,\n /* ASH_OVERRUN_ERROR */ `EZSP-UART only. An overrun error occurred in the UART.`,\n /* NWK_FRAME_COUNTER_FAILURE */ `A message was dropped at the Network layer because the NWK frame counter was not higher than the last message seen from that source.`,\n /* APS_FRAME_COUNTER_FAILURE */ `A message was dropped at the APS layer because the APS frame counter was not higher than the last message seen from that source.`,\n /* ASH_XOFF */ `EZSP-UART only. An XOFF was transmitted by the UART.`,\n /* APS_LINK_KEY_NOT_AUTHORIZED */ `An encrypted message was dropped by the APS layer because the sender's key has not been authenticated. As a result, the key is not authorized for use in APS data messages.`,\n /* NWK_DECRYPTION_FAILURE */ `A NWK encrypted message was received but dropped because decryption failed.`,\n /* APS_DECRYPTION_FAILURE */ `An APS encrypted message was received but dropped because decryption failed.`,\n /* ALLOCATE_PACKET_BUFFER_FAILURE */ `The number of failures to allocate a set of linked packet buffers. This doesn't necessarily mean that the packet buffer count was 0 at the time, but that the number requested was greater than the number free.`,\n /* RELAYED_UNICAST */ `The number of relayed unicast packets.`,\n /* PHY_TO_MAC_QUEUE_LIMIT_REACHED */ `The number of times a packet was dropped due to reaching the preset PHY-to-MAC queue limit. For each count, there may be more than 1 packet that was dropped due to the limit reached.`,\n /* PACKET_VALIDATE_LIBRARY_DROPPED_COUNT */ `The number of times a packet was dropped due to the packet-validate library checking a packet and rejecting it due to length or other formatting problems.`,\n /* TYPE_NWK_RETRY_OVERFLOW */ `The number of times the NWK retry queue is full and a new message failed to be added.`,\n /* PHY_CCA_FAIL_COUNT */ `The number of times the PHY layer was unable to transmit due to a failed CCA (Clear Channel Assessment) attempt.`,\n /* BROADCAST_TABLE_FULL */ `The number of times a NWK broadcast was dropped because the broadcast table was full.`,\n /* PTA_LO_PRI_REQUESTED */ `The number of times a low-priority packet traffic arbitration request has been made.`,\n /* PTA_HI_PRI_REQUESTED */ `The number of times a high-priority packet traffic arbitration request has been made.`,\n /* PTA_LO_PRI_DENIED */ `The number of times a low-priority packet traffic arbitration request has been denied.`,\n /* PTA_HI_PRI_DENIED */ `The number of times a high-priority packet traffic arbitration request has been denied.`,\n /* PTA_LO_PRI_TX_ABORTED */ `The number of times a low-priority packet traffic arbitration transmission has been aborted.`,\n /* PTA_HI_PRI_TX_ABORTED */ `The number of times a high-priority packet traffic arbitration transmission has been aborted.`,\n /* ADDRESS_CONFLICT_SENT */ `The number of times an address conflict has caused node_id change, and an address conflict error is sent.`\n];\nconst $9a8cebc34540b0c1$export$132b1ecb83473329 = [\n /* TX_DATA */ `The total bytes of transmitted data within DATA frames. This can significantly vary if you have device types that transmit lots of data.`,\n /* TX_ALL_FRAMES */ `The total number of transmitted frames.`,\n /* TX_DATA_FRAMES */ `The number of transmitted DATA frames.`,\n /* TX_ACK_FRAMES */ `The number of transmitted ACK frames.`,\n /* TX_NAK_FRAMES */ `The number of transmitted NAK frames.`,\n /* TX_RE_DATA_FRAMES */ `The number of re-transmitted DATA frames.`,\n /* TX_N1_FRAMES */ `The number of transmitted frames flagged with 'not ready'.`,\n /* TX_CANCELLED */ `The number of cancelled transmitted frames.`,\n /* RX_DATA */ `The total bytes of received data within DATA frames. This can significantly vary if you have device types that transmit lots of data.`,\n /* RX_ALL_FRAMES */ `The total number of received frames.`,\n /* RX_DATA_FRAMES */ `The number of received DATA frames.`,\n /* RX_ACK_FRAMES */ `The number of received ACK frames.`,\n /* RX_NAK_FRAMES */ `The number of received NAK frames.`,\n /* RX_RE_DATA_FRAMES */ `The number of re-transmitted received DATA frames.`,\n /* RX_N1_FRAMES */ `The number of received frames flagged with 'not ready'.`,\n /* RX_CANCELLED */ `The number of cancelled received frames.`,\n /* RX_CRC_ERRORS */ `The number of received frames with CRC errors.`,\n /* RX_COMM_ERRORS */ `The number of received frames with communication errors.`,\n /* RX_TOO_SHORT */ `The number of received frames that were too short.`,\n /* RX_TOO_LONG */ `The number of received frames that were too long.`,\n /* RX_BAD_CONTROL */ `The number of received frames with illegal control byte.`,\n /* RX_BAD_LENGTH */ `The number of received frames with illegal length for type.`,\n /* RX_BAD_ACK_NUMBER */ `The number of received frames with bad ACK number.`,\n /* RX_NO_BUFFER */ `The number of DATA frames discarded due to lack of buffers.`,\n /* RX_DUPLICATES */ `The number of received duplicate re-transmitted DATA frames.`,\n /* RX_OUT_OF_SEQUENCE */ `The number of DATA frames received out of sequence.`,\n /* RX_ACK_TIMEOUTS */ `The number of received ACK timeouts.`\n];\nconst $9a8cebc34540b0c1$export$9db4cc0e61dac12 = {\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_NO_ROUTE_AVAILABLE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_TREE_LINK_FAILURE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_NON_TREE_LINK_FAILURE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_LOW_BATTERY_LEVEL]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_NO_ROUTING_CAPACITY]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_NO_INDIRECT_CAPACITY]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_PARENT_LINK_FAILURE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_VALIDATE_ROUTE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_SOURCE_ROUTE_FAILURE]: `Indicates a message sent from the device encountered a broken link. The device prior to the broken link generated the error message and return it to the device.`,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE]: `Indicates that a message sent to the device encountered a broken link. The device prior to the broken link generated the error message and forwarded it to the device via a randomly chosen neighbor.`,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_ADDRESS_CONFLICT]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_VERIFY_ADDRESSES]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_PAN_IDENTIFIER_UPDATE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).NETWORK_STATUS_NETWORK_ADDRESS_UPDATE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).NETWORK_STATUS_BAD_FRAME_COUNTER]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).NETWORK_STATUS_UNKNOWN_COMMAND]: ``\n};\nconst $9a8cebc34540b0c1$export$28f5f2f1091db5f0 = [\n 203.6262,\n 14.1578,\n 226.4056,\n 205.8569,\n 2.0597,\n 0.0524,\n 0.008,\n 0.008,\n 167.3364,\n 163.6076,\n 0,\n 0.0038,\n (0, $0c547add3190c50c$export$b29cac463fcff685),\n 0,\n 0,\n 0.0263,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0.0393,\n 0,\n 0,\n 0,\n 0,\n 0.2279,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0.0102,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n];\nconst $9a8cebc34540b0c1$export$a91bc77486893ae8 = [\n 10878,\n 634,\n 154,\n 479,\n 0,\n 0,\n 0,\n 0,\n 4063,\n 480,\n 480,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n];\nconst $9a8cebc34540b0c1$export$78bd8f8c69d7a7b0 = 0.5;\nconst $9a8cebc34540b0c1$export$87d42d2c5a101eee = [\n [\n 5,\n 10,\n false\n ],\n [\n 5,\n 10,\n false\n ],\n [\n 5,\n 10,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 3,\n 5,\n false\n ],\n [\n 3,\n 5,\n false\n ],\n [\n 5,\n 10,\n false\n ],\n [\n 5,\n 10,\n false\n ],\n [\n 5,\n 10,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -2,\n -2,\n false\n ],\n [\n -2,\n -2,\n false\n ],\n [\n 1.3,\n 1.6,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 3,\n 6,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n 10,\n 20,\n false\n ],\n [\n 10,\n 20,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 10,\n 20,\n false\n ],\n [\n 10,\n 20,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n 10,\n 15,\n false\n ],\n [\n -2,\n -2,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -2,\n -2,\n false\n ]\n];\nconst $9a8cebc34540b0c1$export$973fb6872c2a8bcf = [\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ]\n];\n\n\nfunction $5be042668c706f09$export$1ad60231255d3d9a(value, ideal, badFactor, veryBadFactor = 0, higherBetter = false) {\n if (badFactor === -1 && veryBadFactor === -1) {\n if (value !== 0) return \"is-danger\";\n } else if (badFactor === -2 && veryBadFactor === -2) {\n if (value !== 0) return \"is-warning\";\n } else if (ideal !== 0 && badFactor !== 0) {\n if (veryBadFactor === 0) veryBadFactor = badFactor * 2;\n if (higherBetter ? value < ideal * veryBadFactor : value > ideal * veryBadFactor) return \"is-danger\";\n if (higherBetter ? value < ideal * badFactor : value > ideal * badFactor) return \"is-warning\";\n }\n return undefined;\n}\nfunction $5be042668c706f09$export$a511d684371cc9de(text, className = \"\") {\n const p = document.createElement(\"h3\");\n p.textContent = text;\n p.className = className;\n return p;\n}\nfunction $5be042668c706f09$export$a4e8ebef29d9bca5(text, className = \"\") {\n const p = document.createElement(\"p\");\n p.textContent = text;\n p.className = className;\n return p;\n}\nfunction $5be042668c706f09$export$15278ac1de423efe(text, className = \"\") {\n const a = document.createElement(\"a\");\n a.textContent = text;\n a.className = `button ${className}`;\n return a;\n}\nfunction $5be042668c706f09$export$61892979fbfca190(table) {\n const container = document.createElement(\"div\");\n container.className = \"table-container pb-2\";\n if (table) container.append(table);\n return container;\n}\nfunction $5be042668c706f09$export$d96816ff34d2479a(headCols, footCols, rows, sortable = false) {\n const table = document.createElement(\"table\");\n const tBody = document.createElement(\"tbody\");\n table.className = `table is-fullwidth is-narrow is-hoverable is-bordered ${sortable ? \"is-clickable\" : \"\"}`;\n if (headCols.length > 0) {\n const tHead = document.createElement(\"thead\");\n const tr = document.createElement(\"tr\");\n const cols = [];\n for (const headCol of headCols){\n const th = document.createElement(\"th\");\n th.innerHTML = headCol;\n tr.append(th);\n cols.push(th);\n }\n if (sortable) for (const [i, col] of cols.entries())col.addEventListener(\"click\", ()=>{\n $5be042668c706f09$export$a8f468ec3a62c6a1(tBody, i);\n });\n tHead.append(tr);\n table.append(tHead);\n }\n if (rows.length > 0) for (const row of rows){\n const tr = document.createElement(\"tr\");\n for (const cell of row){\n const td = document.createElement(\"td\");\n td.innerHTML = cell.content;\n if (cell.className) td.className = cell.className;\n tr.append(td);\n }\n tBody.append(tr);\n }\n table.append(tBody);\n if (footCols.length > 0) {\n const tFoot = document.createElement(\"tfoot\");\n const tr = document.createElement(\"tr\");\n for (const footCol of footCols){\n const th = document.createElement(\"th\");\n th.innerHTML = footCol;\n tr.append(th);\n }\n tFoot.append(tr);\n table.append(tFoot);\n }\n return table;\n}\nfunction $5be042668c706f09$export$8690041b1e066766(items) {\n const list = document.createElement(\"ul\");\n for (const item of items){\n const listItem = document.createElement(\"li\");\n listItem.innerHTML = item;\n list.append(listItem);\n }\n return list;\n}\nfunction $5be042668c706f09$export$d6954196905e525e(title, listItems) {\n const card = document.createElement(\"div\");\n card.className = \"card\";\n const cardHeader = document.createElement(\"header\");\n cardHeader.className = \"card-header\";\n const cardTitle = document.createElement(\"p\");\n cardTitle.className = \"card-header-title\";\n cardTitle.innerHTML = title;\n cardHeader.append(cardTitle);\n card.append(cardHeader);\n const cardContent = document.createElement(\"div\");\n cardContent.className = \"card-content\";\n const content = document.createElement(\"div\");\n content.className = \"content\";\n const list = $5be042668c706f09$export$8690041b1e066766(listItems);\n content.append(list);\n cardContent.append(content);\n card.append(cardContent);\n return card;\n}\nfunction $5be042668c706f09$export$80d602a56846f9b8(title, message, className = \"\") {\n const article = document.createElement(\"article\");\n article.className = `message ${className}`;\n const header = document.createElement(\"div\");\n header.className = \"message-header\";\n header.textContent = title;\n article.append(header);\n if (message !== \"\") {\n const body = document.createElement(\"div\");\n body.className = \"message-body\";\n body.innerHTML = message;\n article.append(body);\n }\n return article;\n}\nfunction $5be042668c706f09$export$a8f468ec3a62c6a1(tableBody, colIndex) {\n const rowsArray = [\n ...tableBody.rows\n ];\n let order = \"desc\";\n const tableSorting = tableBody.getAttribute(\"sorting\");\n if (tableSorting && tableSorting !== \"\") {\n const lastSorting = tableSorting.split(\".\");\n if (Number.parseInt(lastSorting[0], 10) === colIndex && lastSorting[1] === \"desc\") order = \"asc\";\n }\n const sortFn = order === \"desc\" ? (a, b)=>b.cells[colIndex].innerHTML.localeCompare(a.cells[colIndex].innerHTML, undefined, {\n numeric: true\n }) : (a, b)=>a.cells[colIndex].innerHTML.localeCompare(b.cells[colIndex].innerHTML, undefined, {\n numeric: true\n });\n rowsArray.sort(sortFn);\n tableBody.setAttribute(\"sorting\", `${colIndex}.${order}`);\n const tableHeadCols = tableBody.previousElementSibling?.children[0];\n if (tableHeadCols) for(let i = 0; i < tableHeadCols.children.length; i++)tableHeadCols.children[i].className = i === colIndex ? `is-sorted-${order}` : \"\";\n tableBody.append(...rowsArray);\n}\n\n\n\nclass $1351eccf802354f1$export$2b677cfa6519f8ab extends Error {\n constructor(message, title){\n // eslint-disable-next-line no-new\n new (0, $37ea9347e68a07dc$export$2e2bcd8739ae039)({\n status: \"error\",\n title: title,\n text: message\n });\n super(`${title}: ${message}`);\n }\n}\n\n\nconst $df5bef30413a053b$export$2077e0241d6afd3c = (n, precision = 2)=>{\n const factor = 10 ** precision;\n return Math.round(n * factor) / factor;\n};\nconst $df5bef30413a053b$export$7ea66e3774a60b67 = (input, padding = 4)=>{\n const padStr = \"0\".repeat(padding);\n return \"0x\" + (padStr + input.toString(16)).slice(-1 * padding).toUpperCase();\n};\n\n\n\n/** z2m default */ let $b4e14b6b8da86996$var$timestampFormat = \"YYYY-MM-DD HH:mm:ss\";\nlet $b4e14b6b8da86996$var$routers = 0;\nlet $b4e14b6b8da86996$var$endDevices = 0;\nlet $b4e14b6b8da86996$var$totalDevices = 0;\nlet $b4e14b6b8da86996$var$logFile;\nconst $b4e14b6b8da86996$var$logMetadata = {\n lines: 0,\n start: undefined,\n end: undefined,\n duration: 0,\n startOffset: undefined\n};\nconst $b4e14b6b8da86996$var$ncpCountersSum = [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n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 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ]\n ]\n};\nconst $b4e14b6b8da86996$var$networkRouteErrors = {\n all: []\n};\nconst $b4e14b6b8da86996$var$failedPings = {\n all: []\n};\nfunction $b4e14b6b8da86996$var$initVariables() {\n $b4e14b6b8da86996$var$routers = 0;\n $b4e14b6b8da86996$var$endDevices = 0;\n $b4e14b6b8da86996$var$totalDevices = 0;\n // @ts-expect-error whatever\n $b4e14b6b8da86996$var$logFile = undefined;\n $b4e14b6b8da86996$var$logMetadata.lines = 0;\n $b4e14b6b8da86996$var$logMetadata.start = undefined;\n $b4e14b6b8da86996$var$logMetadata.end = undefined;\n $b4e14b6b8da86996$var$logMetadata.duration = 0;\n $b4e14b6b8da86996$var$logMetadata.startOffset = undefined;\n $b4e14b6b8da86996$var$ncpCountersSum.fill(0);\n $b4e14b6b8da86996$var$ncpCountersHoursCount.fill(0);\n $b4e14b6b8da86996$var$ncpCounters.all = [];\n $b4e14b6b8da86996$var$ncpCounters.avg.fill(0);\n $b4e14b6b8da86996$var$ncpCounters.avgPerDevice.fill(0);\n for(let i = 0; i < $b4e14b6b8da86996$var$ncpCounters.avgForHour.length; i++)$b4e14b6b8da86996$var$ncpCounters.avgForHour[i].fill(0);\n $b4e14b6b8da86996$var$ashCountersSum.fill(0);\n $b4e14b6b8da86996$var$ashCountersHoursCount.fill(0);\n $b4e14b6b8da86996$var$ashCounters.all = [];\n $b4e14b6b8da86996$var$ashCounters.avg.fill(0);\n $b4e14b6b8da86996$var$ashCounters.avgPerDevice.fill(0);\n for(let i = 0; i < $b4e14b6b8da86996$var$ashCounters.avgForHour.length; i++)$b4e14b6b8da86996$var$ashCounters.avgForHour[i].fill(0);\n $b4e14b6b8da86996$var$networkRouteErrors.all = [];\n}\n// Adapted @from https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/read#example_2_-_handling_text_line_by_line\nasync function* $b4e14b6b8da86996$var$makeTextFileLineIterator(file) {\n const utf8Decoder = new TextDecoder(\"utf8\");\n const reader = file.stream().getReader();\n let { value: value, done: done } = await reader.read();\n let chunk = value ? utf8Decoder.decode(value, {\n stream: true\n }) : \"\";\n const re = /\\r\\n|\\n|\\r/gm;\n let startIndex = 0;\n for(;;){\n const result = re.exec(chunk);\n if (!result) {\n if (done) break;\n const remainder = chunk.slice(startIndex);\n ({ value: value, done: done } = await reader.read());\n chunk = remainder + (value ? utf8Decoder.decode(value, {\n stream: true\n }) : \"\");\n // eslint-disable-next-line no-multi-assign\n startIndex = re.lastIndex = 0;\n continue;\n }\n yield chunk.slice(startIndex, result.index);\n startIndex = re.lastIndex;\n }\n if (startIndex < chunk.length) // last line didn't end in a newline char\n yield chunk.slice(startIndex);\n}\nfunction $b4e14b6b8da86996$var$parseLogLine(line) {\n const timestampMatch = line.match((0, $f9b620c609316de1$export$63c35f258aac6980));\n if (!timestampMatch) // shouldn't happen with new logging, but just in case, ignore lines without timestamp\n return;\n $b4e14b6b8da86996$var$logMetadata.lines++;\n const timestampStr = timestampMatch[0].slice(1, -1);\n const timestamp = new Date(timestampStr);\n if (!$b4e14b6b8da86996$var$logMetadata.start) {\n $b4e14b6b8da86996$var$logMetadata.start = timestamp;\n $b4e14b6b8da86996$var$logMetadata.startOffset = new Date(timestamp.getTime() + (0, $f9b620c609316de1$export$ec5a1f774e057f65));\n }\n $b4e14b6b8da86996$var$logMetadata.end = timestamp;\n const hour = timestamp.getHours();\n const ncpCountersIndex = line.indexOf((0, $f9b620c609316de1$export$303e55aba61750fd));\n if (ncpCountersIndex !== -1) {\n const subLine = line.slice(ncpCountersIndex + (0, $f9b620c609316de1$export$303e55aba61750fd).length);\n const counters = subLine.split(\",\").map((v)=>Number.parseInt(v, 10));\n if (counters.length !== (0, $f9b620c609316de1$export$2a174e0071931590)) return;\n // @ts-expect-error length validated above\n $b4e14b6b8da86996$var$ncpCounters.all.push([\n timestamp,\n ...counters\n ]);\n for(let i = 0; i < (0, $f9b620c609316de1$export$2a174e0071931590); i++){\n // TODO: deal with 65535 & rollover\n const cI = counters[i];\n $b4e14b6b8da86996$var$ncpCountersSum[i] += cI;\n $b4e14b6b8da86996$var$ncpCounters.avgForHour[hour][i] += cI;\n }\n $b4e14b6b8da86996$var$ncpCountersHoursCount[hour] += 1;\n return;\n }\n const ashCountersIndex = line.indexOf((0, $f9b620c609316de1$export$95beb742938a6341));\n if (ashCountersIndex !== -1) {\n const subLine = line.slice(ashCountersIndex + (0, $f9b620c609316de1$export$95beb742938a6341).length);\n const counters = subLine.split(\",\").map((v)=>Number.parseInt(v, 10));\n if (counters.length !== (0, $f9b620c609316de1$export$ceb082b2eaf405bd)) return;\n // @ts-expect-error length validated above\n $b4e14b6b8da86996$var$ashCounters.all.push([\n timestamp,\n ...counters\n ]);\n for(let i = 0; i < (0, $f9b620c609316de1$export$ceb082b2eaf405bd); i++){\n const cI = counters[i];\n $b4e14b6b8da86996$var$ashCountersSum[i] += cI;\n $b4e14b6b8da86996$var$ashCounters.avgForHour[hour][i] += cI;\n }\n $b4e14b6b8da86996$var$ashCountersHoursCount[hour] += 1;\n return;\n }\n const networkRouteErrorIndex = line.indexOf((0, $f9b620c609316de1$export$bc2704b0770a3200));\n if (networkRouteErrorIndex !== -1) {\n // ignore network/route errors around Z2M start\n if (timestamp < $b4e14b6b8da86996$var$logMetadata.startOffset) return;\n const subLine = line.slice(networkRouteErrorIndex + (0, $f9b620c609316de1$export$bc2704b0770a3200).length);\n const splitLine = subLine.split(\" \"); // ['ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE', 'for', '\"38837\".']\n const error = splitLine[0];\n const device = Number.parseInt(splitLine[2].slice(1, -2), 10);\n if ($b4e14b6b8da86996$var$networkRouteErrors.all.length > 0) {\n const prev = $b4e14b6b8da86996$var$networkRouteErrors.all.at(-1);\n if (prev) {\n const countOffset = prev[0].getTime() + (0, $f9b620c609316de1$export$46dcdfd2c95be77f);\n // count duplicate errors within short period instead\n if (prev[1] === device && prev[2] === error && timestamp.getTime() < countOffset) {\n prev[3] += 1;\n return;\n }\n }\n }\n $b4e14b6b8da86996$var$networkRouteErrors.all.push([\n timestamp,\n device,\n error,\n 1\n ]);\n return;\n }\n const failedPingIndex = line.indexOf((0, $f9b620c609316de1$export$13864d84dc34e37e));\n if (failedPingIndex !== -1) {\n const subLine = line.slice(failedPingIndex + (0, $f9b620c609316de1$export$13864d84dc34e37e).length);\n // only count if all attempts failed\n if (subLine.includes((0, $f9b620c609316de1$export$ccaab5dc19e79900)) || subLine.includes((0, $f9b620c609316de1$export$a50f877c97ee07a))) {\n const device = subLine.slice(0, subLine.indexOf(`'`));\n $b4e14b6b8da86996$var$failedPings.all.push([\n timestamp,\n device\n ]);\n }\n // return;\n }\n}\nasync function $b4e14b6b8da86996$var$parseLogFile() {\n if (!$b4e14b6b8da86996$var$logFile) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Load a log file from the menu first.\", \"No log file\");\n for await (const line of $b4e14b6b8da86996$var$makeTextFileLineIterator($b4e14b6b8da86996$var$logFile))$b4e14b6b8da86996$var$parseLogLine(line);\n if (!$b4e14b6b8da86996$var$logMetadata.start || !$b4e14b6b8da86996$var$logMetadata.end) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Could not retrieve start or end timestamps from log file.\", \"Invalid start or end timestamp\");\n $b4e14b6b8da86996$var$logMetadata.duration = ($b4e14b6b8da86996$var$logMetadata.end.getTime() - $b4e14b6b8da86996$var$logMetadata.start.getTime()) / 1000 / 3600;\n if ($b4e14b6b8da86996$var$logMetadata.duration < (0, $f9b620c609316de1$export$617c68ca378c1aaa)) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Log analysis over such a duration would be irrelevant.\", \"Log duration too short\");\n const ncpCountersCount = $b4e14b6b8da86996$var$ncpCounters.all.length;\n if (ncpCountersCount > 0) {\n let i = 0;\n for (const c of $b4e14b6b8da86996$var$ncpCountersSum){\n const avg = c / ncpCountersCount;\n $b4e14b6b8da86996$var$ncpCounters.avg[i] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)(avg, 2);\n $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[i] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)(avg / $b4e14b6b8da86996$var$totalDevices, 4);\n i++;\n }\n // divide the computed sum to get actual average\n for(let hour = 0; hour < $b4e14b6b8da86996$var$ncpCounters.avgForHour.length; hour++)for(let counter = 0; counter < (0, $f9b620c609316de1$export$2a174e0071931590); counter++)$b4e14b6b8da86996$var$ncpCounters.avgForHour[hour][counter] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)($b4e14b6b8da86996$var$ncpCounters.avgForHour[hour][counter] / $b4e14b6b8da86996$var$ncpCountersHoursCount[hour], 2);\n }\n const ashCountersCount = $b4e14b6b8da86996$var$ashCounters.all.length;\n if (ashCountersCount > 0) {\n let i = 0;\n for (const c of $b4e14b6b8da86996$var$ashCountersSum){\n const avg = c / ashCountersCount;\n $b4e14b6b8da86996$var$ashCounters.avg[i] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)(avg, 2);\n $b4e14b6b8da86996$var$ashCounters.avgPerDevice[i] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)(avg / $b4e14b6b8da86996$var$totalDevices, 4);\n i++;\n }\n // divide the computed sum to get actual average\n for(let hour = 0; hour < $b4e14b6b8da86996$var$ashCounters.avgForHour.length; hour++)for(let counter = 0; counter < (0, $f9b620c609316de1$export$2a174e0071931590); counter++)$b4e14b6b8da86996$var$ashCounters.avgForHour[hour][counter] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)($b4e14b6b8da86996$var$ashCounters.avgForHour[hour][counter] / $b4e14b6b8da86996$var$ashCountersHoursCount[hour], 2);\n }\n}\nfunction $b4e14b6b8da86996$var$appendStatsSection(section) {\n const grid = document.createElement(\"div\");\n grid.className = \"grid\";\n const ratio = $b4e14b6b8da86996$var$endDevices > 0 ? (0, $df5bef30413a053b$export$2077e0241d6afd3c)($b4e14b6b8da86996$var$routers / $b4e14b6b8da86996$var$endDevices, 2) : -1;\n const parametersList = [\n `Number of routers: ${$b4e14b6b8da86996$var$routers}`,\n `Number of end devices: ${$b4e14b6b8da86996$var$endDevices}`\n ];\n if (ratio !== -1) {\n parametersList.push(`Routers to end devices ratio: ${ratio} (Ideal: above ${(0, $9a8cebc34540b0c1$export$78bd8f8c69d7a7b0)})`);\n const warningRatio = $b4e14b6b8da86996$var$totalDevices > 10 && ratio < (0, $9a8cebc34540b0c1$export$78bd8f8c69d7a7b0);\n if (warningRatio) parametersList.push(`\\u26A0 You may want to increase the number of routers in your network`);\n }\n const parametersCard = (0, $5be042668c706f09$export$d6954196905e525e)(\"Parameters\", parametersList);\n const warningDuration = $b4e14b6b8da86996$var$logMetadata.duration < (0, $f9b620c609316de1$export$2301180df9108edd);\n const logFileCard = (0, $5be042668c706f09$export$d6954196905e525e)(\"Log file\", [\n `Lines: ${$b4e14b6b8da86996$var$logMetadata.lines}`,\n `Start: ${(0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))($b4e14b6b8da86996$var$logMetadata.start).format($b4e14b6b8da86996$var$timestampFormat)}`,\n `End: ${(0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))($b4e14b6b8da86996$var$logMetadata.end).format($b4e14b6b8da86996$var$timestampFormat)}`,\n `Ignore before (avoid starting \"noise\"): ${(0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))($b4e14b6b8da86996$var$logMetadata.startOffset).format($b4e14b6b8da86996$var$timestampFormat)}`,\n `Duration: ${(0, $df5bef30413a053b$export$2077e0241d6afd3c)($b4e14b6b8da86996$var$logMetadata.duration, 2)} hours ${warningDuration ? '\\u26A0 This is likely too low to get relevant statistics' : \"\"}`,\n `NCP Counters: ${$b4e14b6b8da86996$var$ncpCounters.all.length}`,\n `ASH Counters: ${$b4e14b6b8da86996$var$ashCounters.all.length}`,\n `Network/Router Errors: ${$b4e14b6b8da86996$var$networkRouteErrors.all.length}`,\n `Failed pings (all successive attempts): ${$b4e14b6b8da86996$var$failedPings.all.length}`\n ]);\n grid.append(parametersCard);\n grid.append(logFileCard);\n section.append(grid);\n const failedPingsByDevice = {};\n for (const entry of $b4e14b6b8da86996$var$failedPings.all){\n const device = entry[1];\n failedPingsByDevice[device] = 1 + (failedPingsByDevice[device] ?? 0);\n }\n for (const device of Object.keys(failedPingsByDevice)){\n const count = failedPingsByDevice[device];\n // show only if at least one fail per hour\n if (count > $b4e14b6b8da86996$var$logMetadata.duration) section.append((0, $5be042668c706f09$export$80d602a56846f9b8)(`Too many failed pings for '${device}' (x${count})`, \"This indicates an unreachable device on the network. If unavailable for long periods, consider disabling it to skip unnecessary network traffic.\", \"is-warning\"));\n }\n}\nfunction $b4e14b6b8da86996$var$appendNCPCountersSection(section) {\n if ($b4e14b6b8da86996$var$ncpCounters.all.length === 0) return;\n const ncpCountersHeader = [\n \"Timestamp\"\n ];\n const ncpCountersRows = [];\n const ncpCountersIdealRows = [];\n const ncpCountersAvgPerDeviceRows = [];\n const ncpCountersAvgRows = [];\n const ncpCountersAvgForHourRows = [\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n []\n ];\n for(let i = 0; i < (0, $f9b620c609316de1$export$2a174e0071931590); i++){\n ncpCountersHeader.push(`${(0, $0c547add3190c50c$export$7d1f329b3260ae16)[i]}`);\n const counter = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[i];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[i];\n ncpCountersIdealRows.push({\n content: ideal.toString(),\n className: \"is-dark\"\n });\n ncpCountersAvgPerDeviceRows.push({\n content: counter.toString(),\n className: (0, $f9b620c609316de1$export$452af6364556dde).includes(i) ? \"is-invisible\" : (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[i])\n });\n ncpCountersAvgRows.push({\n content: $b4e14b6b8da86996$var$ncpCounters.avg[i].toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[i])\n });\n for(let hour = 0; hour < $b4e14b6b8da86996$var$ncpCounters.avgForHour.length; hour++)ncpCountersAvgForHourRows[hour].push({\n content: $b4e14b6b8da86996$var$ncpCounters.avgForHour[hour][i].toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)($b4e14b6b8da86996$var$ncpCounters.avgForHour[hour][i], ideal * $b4e14b6b8da86996$var$totalDevices, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[i])\n });\n }\n const tableContainerAvg = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"\",\n ...ncpCountersHeader.slice(1)\n ], [], [\n [\n {\n content: \"Ideal Per Device\"\n },\n ...ncpCountersIdealRows\n ],\n [\n {\n content: \"Average Per Device\"\n },\n ...ncpCountersAvgPerDeviceRows\n ],\n [\n {\n content: \"Average\"\n },\n ...ncpCountersAvgRows\n ]\n ]));\n const tableContainerAvgForHour = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"Average Hour Before\",\n ...ncpCountersHeader.slice(1)\n ], [], [\n [\n {\n content: \"00 (12AM)\"\n },\n ...ncpCountersAvgForHourRows[0]\n ],\n [\n {\n content: \"01 (01AM)\"\n },\n ...ncpCountersAvgForHourRows[1]\n ],\n [\n {\n content: \"02 (02AM)\"\n },\n ...ncpCountersAvgForHourRows[2]\n ],\n [\n {\n content: \"03 (03AM)\"\n },\n ...ncpCountersAvgForHourRows[3]\n ],\n [\n {\n content: \"04 (04AM)\"\n },\n ...ncpCountersAvgForHourRows[4]\n ],\n [\n {\n content: \"05 (05AM)\"\n },\n ...ncpCountersAvgForHourRows[5]\n ],\n [\n {\n content: \"06 (06AM)\"\n },\n ...ncpCountersAvgForHourRows[6]\n ],\n [\n {\n content: \"07 (07AM)\"\n },\n ...ncpCountersAvgForHourRows[7]\n ],\n [\n {\n content: \"08 (08AM)\"\n },\n ...ncpCountersAvgForHourRows[8]\n ],\n [\n {\n content: \"09 (09AM)\"\n },\n ...ncpCountersAvgForHourRows[9]\n ],\n [\n {\n content: \"10 (10AM)\"\n },\n ...ncpCountersAvgForHourRows[10]\n ],\n [\n {\n content: \"11 (11AM)\"\n },\n ...ncpCountersAvgForHourRows[11]\n ],\n [\n {\n content: \"12 (12PM)\"\n },\n ...ncpCountersAvgForHourRows[12]\n ],\n [\n {\n content: \"13 (01PM)\"\n },\n ...ncpCountersAvgForHourRows[13]\n ],\n [\n {\n content: \"14 (02PM)\"\n },\n ...ncpCountersAvgForHourRows[14]\n ],\n [\n {\n content: \"15 (03PM)\"\n },\n ...ncpCountersAvgForHourRows[15]\n ],\n [\n {\n content: \"16 (04PM)\"\n },\n ...ncpCountersAvgForHourRows[16]\n ],\n [\n {\n content: \"17 (05PM)\"\n },\n ...ncpCountersAvgForHourRows[17]\n ],\n [\n {\n content: \"18 (06PM)\"\n },\n ...ncpCountersAvgForHourRows[18]\n ],\n [\n {\n content: \"19 (07PM)\"\n },\n ...ncpCountersAvgForHourRows[19]\n ],\n [\n {\n content: \"20 (08PM)\"\n },\n ...ncpCountersAvgForHourRows[20]\n ],\n [\n {\n content: \"21 (09PM)\"\n },\n ...ncpCountersAvgForHourRows[21]\n ],\n [\n {\n content: \"22 (10PM)\"\n },\n ...ncpCountersAvgForHourRows[22]\n ],\n [\n {\n content: \"23 (11PM)\"\n },\n ...ncpCountersAvgForHourRows[23]\n ]\n ], true));\n for (const entry of $b4e14b6b8da86996$var$ncpCounters.all){\n const row = [\n {\n content: (0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))(entry[0]).format($b4e14b6b8da86996$var$timestampFormat)\n }\n ];\n for(let i = 0; i < (0, $f9b620c609316de1$export$2a174e0071931590); i++){\n const counter = entry[i + 1];\n row.push({\n content: counter.toString(),\n // @ts-expect-error Date is skipped in code, TS not narrowing\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter / $b4e14b6b8da86996$var$totalDevices, (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[i], ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[i])\n });\n }\n ncpCountersRows.push(row);\n }\n {\n const ashErrors = $b4e14b6b8da86996$var$ncpCountersSum[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_OVERFLOW_ERROR] + $b4e14b6b8da86996$var$ncpCountersSum[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_FRAMING_ERROR] + $b4e14b6b8da86996$var$ncpCountersSum[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_OVERRUN_ERROR] + $b4e14b6b8da86996$var$ncpCountersSum[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_XOFF];\n if (ashErrors !== 0) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`ASH errors detected (${ashErrors} times)`, \"This can indicate a bad connection with the adapter or an issue with the driver installed in the operating system.\", \"is-danger\");\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[(0, $0c547add3190c50c$export$7d1f329b3260ae16).PHY_CCA_FAIL_COUNT];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).PHY_CCA_FAIL_COUNT];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).PHY_CCA_FAIL_COUNT]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`CCA failure count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate interferences on the 2.4GHz band on or around the current channel (WiFi, other Zigbee...).\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ROUTE_DISCOVERY_INITIATED];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ROUTE_DISCOVERY_INITIATED];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ROUTE_DISCOVERY_INITIATED]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Initiated route discovery count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate general instability in the network (unresponsive devices, bad routers...).\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[(0, $0c547add3190c50c$export$7d1f329b3260ae16).MAC_TX_UNICAST_RETRY];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).MAC_TX_UNICAST_RETRY];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).MAC_TX_UNICAST_RETRY]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Packet retry count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate general instability in your network (unresponsive devices, bad routers...).\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ADDRESS_CONFLICT_SENT];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ADDRESS_CONFLICT_SENT];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ADDRESS_CONFLICT_SENT]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Address conflicts detected (${val} vs ${ideal} \"ideal\")`, \"This can indicate device(s) with poor firmware.\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[(0, $0c547add3190c50c$export$7d1f329b3260ae16).BROADCAST_TABLE_FULL];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).BROADCAST_TABLE_FULL];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).BROADCAST_TABLE_FULL]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Broadcast table full detected (${val} vs ${ideal} \"ideal\")`, \"This can indicate the network is relying too heavily on broadcasts (messages to the whole network or to groups).\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avg[(0, $0c547add3190c50c$export$7d1f329b3260ae16).NEIGHBOR_STALE];\n const ideal = 1;\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).NEIGHBOR_STALE]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Stale neighbors count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate poor link quality between devices. Note: This is influenced by pairing/re-pairing.\", cls);\n section.append(msg);\n }\n }\n section.append(tableContainerAvg);\n section.append(tableContainerAvgForHour);\n const showAllButton = (0, $5be042668c706f09$export$15278ac1de423efe)(\"Show All\", \"is-primary\");\n showAllButton.addEventListener(\"click\", ()=>{\n showAllButton.remove();\n const tableContainerAll = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)(ncpCountersHeader, [], ncpCountersRows, true));\n section.append(tableContainerAll);\n });\n section.append(showAllButton);\n}\nfunction $b4e14b6b8da86996$var$appendASHCountersSection(section) {\n if ($b4e14b6b8da86996$var$ashCounters.all.length === 0) return;\n const ashCountersHeader = [\n \"Timestamp\"\n ];\n const ashCountersRows = [];\n const ashCountersIdealRows = [];\n const ashCountersAvgPerDeviceRows = [];\n const ashCountersAvgRows = [];\n const ashCountersAvgForHourRows = [\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n []\n ];\n for(let i = 0; i < (0, $f9b620c609316de1$export$ceb082b2eaf405bd); i++){\n ashCountersHeader.push(`${(0, $0c547add3190c50c$export$ce7ab19ae6dc792d)[i]}`);\n const counter = $b4e14b6b8da86996$var$ashCounters.avgPerDevice[i];\n const ideal = (0, $9a8cebc34540b0c1$export$a91bc77486893ae8)[i];\n ashCountersIdealRows.push({\n content: ideal.toString(),\n className: \"is-dark\"\n });\n ashCountersAvgPerDeviceRows.push({\n content: counter.toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter, ideal, ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[i])\n });\n ashCountersAvgRows.push({\n content: $b4e14b6b8da86996$var$ashCounters.avg[i].toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter, ideal, ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[i])\n });\n for(let hour = 0; hour < $b4e14b6b8da86996$var$ashCounters.avgForHour.length; hour++)ashCountersAvgForHourRows[hour].push({\n content: $b4e14b6b8da86996$var$ashCounters.avgForHour[hour][i].toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)($b4e14b6b8da86996$var$ashCounters.avgForHour[hour][i], ideal * $b4e14b6b8da86996$var$totalDevices, ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[i])\n });\n }\n const tableContainerAvg = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"\",\n ...ashCountersHeader.slice(1)\n ], [], [\n [\n {\n content: \"Ideal Per Device\"\n },\n ...ashCountersIdealRows\n ],\n [\n {\n content: \"Average Per Device\"\n },\n ...ashCountersAvgPerDeviceRows\n ],\n [\n {\n content: \"Average\"\n },\n ...ashCountersAvgRows\n ]\n ]));\n const tableContainerAvgForHour = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"Average Hour Before\",\n ...ashCountersHeader.slice(1)\n ], [], [\n [\n {\n content: \"00 (12AM)\"\n },\n ...ashCountersAvgForHourRows[0]\n ],\n [\n {\n content: \"01 (01AM)\"\n },\n ...ashCountersAvgForHourRows[1]\n ],\n [\n {\n content: \"02 (02AM)\"\n },\n ...ashCountersAvgForHourRows[2]\n ],\n [\n {\n content: \"03 (03AM)\"\n },\n ...ashCountersAvgForHourRows[3]\n ],\n [\n {\n content: \"04 (04AM)\"\n },\n ...ashCountersAvgForHourRows[4]\n ],\n [\n {\n content: \"05 (05AM)\"\n },\n ...ashCountersAvgForHourRows[5]\n ],\n [\n {\n content: \"06 (06AM)\"\n },\n ...ashCountersAvgForHourRows[6]\n ],\n [\n {\n content: \"07 (07AM)\"\n },\n ...ashCountersAvgForHourRows[7]\n ],\n [\n {\n content: \"08 (08AM)\"\n },\n ...ashCountersAvgForHourRows[8]\n ],\n [\n {\n content: \"09 (09AM)\"\n },\n ...ashCountersAvgForHourRows[9]\n ],\n [\n {\n content: \"10 (10AM)\"\n },\n ...ashCountersAvgForHourRows[10]\n ],\n [\n {\n content: \"11 (11AM)\"\n },\n ...ashCountersAvgForHourRows[11]\n ],\n [\n {\n content: \"12 (12PM)\"\n },\n ...ashCountersAvgForHourRows[12]\n ],\n [\n {\n content: \"13 (01PM)\"\n },\n ...ashCountersAvgForHourRows[13]\n ],\n [\n {\n content: \"14 (02PM)\"\n },\n ...ashCountersAvgForHourRows[14]\n ],\n [\n {\n content: \"15 (03PM)\"\n },\n ...ashCountersAvgForHourRows[15]\n ],\n [\n {\n content: \"16 (04PM)\"\n },\n ...ashCountersAvgForHourRows[16]\n ],\n [\n {\n content: \"17 (05PM)\"\n },\n ...ashCountersAvgForHourRows[17]\n ],\n [\n {\n content: \"18 (06PM)\"\n },\n ...ashCountersAvgForHourRows[18]\n ],\n [\n {\n content: \"19 (07PM)\"\n },\n ...ashCountersAvgForHourRows[19]\n ],\n [\n {\n content: \"20 (08PM)\"\n },\n ...ashCountersAvgForHourRows[20]\n ],\n [\n {\n content: \"21 (09PM)\"\n },\n ...ashCountersAvgForHourRows[21]\n ],\n [\n {\n content: \"22 (10PM)\"\n },\n ...ashCountersAvgForHourRows[22]\n ],\n [\n {\n content: \"23 (11PM)\"\n },\n ...ashCountersAvgForHourRows[23]\n ]\n ], true));\n for (const entry of $b4e14b6b8da86996$var$ashCounters.all){\n const row = [\n {\n content: (0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))(entry[0]).format($b4e14b6b8da86996$var$timestampFormat)\n }\n ];\n for(let i = 0; i < (0, $f9b620c609316de1$export$ceb082b2eaf405bd); i++){\n const counter = entry[i + 1];\n row.push({\n content: counter.toString(),\n // @ts-expect-error Date is skipped in code, TS not narrowing\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter / $b4e14b6b8da86996$var$totalDevices, (0, $9a8cebc34540b0c1$export$a91bc77486893ae8)[i], ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[i])\n });\n }\n ashCountersRows.push(row);\n }\n {\n const val = $b4e14b6b8da86996$var$ashCounters.avgPerDevice[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).TX_N1_FRAMES];\n const ideal = (0, $9a8cebc34540b0c1$export$a91bc77486893ae8)[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).TX_N1_FRAMES];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).TX_N1_FRAMES]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`\"Not ready\" transaction count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate heavy spamming from devices. Zigbee2MQTT was forced to regulate the flow.\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ashCounters.avgPerDevice[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_NO_BUFFER];\n const ideal = (0, $9a8cebc34540b0c1$export$a91bc77486893ae8)[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_NO_BUFFER];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_NO_BUFFER]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Out of buffer count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate heavy spamming from devices. Zigbee2MQTT was forced to drop messages.\", cls);\n section.append(msg);\n }\n }\n {\n const rxBad = $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_CRC_ERRORS] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_COMM_ERRORS] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_TOO_SHORT] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_TOO_LONG] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_BAD_CONTROL] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_BAD_LENGTH] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_BAD_ACK_NUMBER] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_OUT_OF_SEQUENCE] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_ACK_TIMEOUTS];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(rxBad, 1, 5, 10, false);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Error count with received messages is high (${rxBad} times)`, \"This can indicate general instability (adapter/network).\", cls);\n section.append(msg);\n }\n }\n section.append(tableContainerAvg);\n section.append(tableContainerAvgForHour);\n const showAllButton = (0, $5be042668c706f09$export$15278ac1de423efe)(\"Show All\", \"is-primary\");\n showAllButton.addEventListener(\"click\", ()=>{\n showAllButton.remove();\n const tableContainerAll = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)(ashCountersHeader, [], ashCountersRows, true));\n section.append(tableContainerAll);\n });\n section.append(showAllButton);\n}\nfunction $b4e14b6b8da86996$var$appendRoutingSection(section) {\n if ($b4e14b6b8da86996$var$networkRouteErrors.all.length === 0) return;\n const rows = [];\n const errorsByDevice = {};\n for (const entry of $b4e14b6b8da86996$var$networkRouteErrors.all){\n const device = entry[1];\n const error = entry[2];\n const count = entry[3];\n if (errorsByDevice[error] === undefined) errorsByDevice[error] = {};\n errorsByDevice[error][device] = errorsByDevice[error][device] === undefined ? count : errorsByDevice[error][device] + count;\n if (count > 2) rows.push([\n {\n content: (0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))(entry[0]).format($b4e14b6b8da86996$var$timestampFormat)\n },\n {\n content: `${device} / ${(0, $df5bef30413a053b$export$7ea66e3774a60b67)(device)}`\n },\n {\n content: error\n },\n {\n content: count.toString()\n }\n ]);\n }\n const tableContainer = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n 'Timestamp',\n \"Device / Hex\",\n \"Error\",\n 'Count'\n ], [], rows, true));\n // eslint-disable-next-line guard-for-in\n for(const error in errorsByDevice){\n const rowsByError = [];\n // eslint-disable-next-line guard-for-in\n for(const k in errorsByDevice[error]){\n const deviceAvgPerHour = (0, $df5bef30413a053b$export$2077e0241d6afd3c)(errorsByDevice[error][k] / $b4e14b6b8da86996$var$logMetadata.duration, 4);\n // only display msg for device if average per hour is high\n if (deviceAvgPerHour > 0.1) rowsByError.push([\n {\n content: `${k} / ${(0, $df5bef30413a053b$export$7ea66e3774a60b67)(Number.parseInt(k, 10))}`\n },\n {\n content: deviceAvgPerHour.toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(deviceAvgPerHour, 0.1, 10, 20)\n }\n ]);\n }\n if (rowsByError.length > 0) {\n const tableContainer = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"Device / Hex\",\n \"Errors per hour\"\n ], [], rowsByError, true));\n const notice = (0, $9a8cebc34540b0c1$export$9db4cc0e61dac12)[(0, $0c547add3190c50c$export$128038c7eaec3edd)[error]];\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`${error}`, notice === \"\" ? `` : `

${notice}

`, \"is-warning is-table-header\");\n section.append(msg);\n section.append(tableContainer);\n }\n }\n section.append((0, $5be042668c706f09$export$80d602a56846f9b8)(`Errors appearing at least 3 times in succession`, ``, \"is-danger is-table-header\"));\n section.append(tableContainer);\n}\nwindow.addEventListener(\"load\", ()=>{\n $b4e14b6b8da86996$var$initVariables();\n const $loadForm = document.querySelector(\"#log-file-form\");\n const $heroBody = document.querySelector(\"#hero-body\");\n const $menuHomeLink = document.querySelector(\"#menu-home\");\n const $sectionHome = document.querySelector(\"#section-home\");\n const $menuStatsLink = document.querySelector(\"#menu-stats\");\n const $sectionStats = document.querySelector(\"#section-stats\");\n const $menuNcpCountersLink = document.querySelector(\"#menu-ncp-counters\");\n const $sectionNcpCounters = document.querySelector(\"#section-ncp-counters\");\n const $menuAshCountersLink = document.querySelector(\"#menu-ash-counters\");\n const $sectionAshCounters = document.querySelector(\"#section-ash-counters\");\n const $menuRoutingLink = document.querySelector(\"#menu-routing\");\n const $sectionRouting = document.querySelector(\"#section-routing\");\n const $menuToolsLink = document.querySelector(\"#menu-tools\");\n const $sectionTools = document.querySelector(\"#section-tools\");\n const $menuHelpLink = document.querySelector(\"#menu-help\");\n const $sectionHelp = document.querySelector(\"#section-help\");\n const menu = [\n [\n $menuHomeLink,\n $sectionHome\n ],\n [\n $menuStatsLink,\n $sectionStats\n ],\n [\n $menuNcpCountersLink,\n $sectionNcpCounters\n ],\n [\n $menuAshCountersLink,\n $sectionAshCounters\n ],\n [\n $menuRoutingLink,\n $sectionRouting\n ],\n [\n $menuToolsLink,\n $sectionTools\n ],\n [\n $menuHelpLink,\n $sectionHelp\n ]\n ];\n for (const [$link, $section] of menu)$link.addEventListener(\"click\", ()=>{\n // li\n $link.parentElement.className = \"is-active\";\n $section.className = \"section\";\n for (const [$otherLink, $otherSection] of menu.filter((m)=>m[0] !== $link)){\n $otherLink.parentElement.className = \"\";\n $otherSection.className = \"section is-hidden\";\n }\n });\n $loadForm.addEventListener(\"submit\", async (event)=>{\n event.preventDefault();\n $b4e14b6b8da86996$var$initVariables();\n const data = new FormData($loadForm);\n $b4e14b6b8da86996$var$timestampFormat = data.get(\"timestamp-format\");\n $b4e14b6b8da86996$var$routers = Number.parseInt(data.get(\"number-routers\"), 10);\n if (Number.isNaN($b4e14b6b8da86996$var$routers) || $b4e14b6b8da86996$var$routers < 0) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Number of routers must be at least 0.\", \"Invalid number of routers\");\n $b4e14b6b8da86996$var$endDevices = Number.parseInt(data.get(\"number-devices\"), 10);\n if (Number.isNaN($b4e14b6b8da86996$var$endDevices) || $b4e14b6b8da86996$var$endDevices < 0) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Number of end devices must be at least 0.\", \"Invalid number of end devices\");\n $b4e14b6b8da86996$var$totalDevices = $b4e14b6b8da86996$var$routers + $b4e14b6b8da86996$var$endDevices;\n if (Number.isNaN($b4e14b6b8da86996$var$totalDevices) || $b4e14b6b8da86996$var$totalDevices <= 0) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Total number of devices must be at least 1.\", \"Invalid total number of devices\");\n $b4e14b6b8da86996$var$logFile = data.get(\"log-file\");\n await $b4e14b6b8da86996$var$parseLogFile();\n $b4e14b6b8da86996$var$appendStatsSection($sectionStats);\n $b4e14b6b8da86996$var$appendNCPCountersSection($sectionNcpCounters);\n $b4e14b6b8da86996$var$appendASHCountersSection($sectionAshCounters);\n $b4e14b6b8da86996$var$appendRoutingSection($sectionRouting);\n $heroBody.className = \"is-hidden\";\n $menuStatsLink.click();\n });\n $menuHomeLink.addEventListener(\"click\", async ()=>{});\n $menuStatsLink.addEventListener(\"click\", async ()=>{\n if (!$b4e14b6b8da86996$var$logFile) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Load a log file from the menu first.\", \"No log file\");\n });\n $menuNcpCountersLink.addEventListener(\"click\", async ()=>{\n if (!$b4e14b6b8da86996$var$logFile) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Load a log file from the menu first.\", \"No log file\");\n if ($b4e14b6b8da86996$var$ncpCounters.all.length === 0) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"No NCP counters were found in the given log file.\", \"No NCP counters found\");\n });\n $menuAshCountersLink.addEventListener(\"click\", async ()=>{\n if (!$b4e14b6b8da86996$var$logFile) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Load a log file from the menu first.\", \"No log file\");\n if ($b4e14b6b8da86996$var$ashCounters.all.length === 0) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"No ASH counters were found in the given log file.\", \"No ASH counters found\");\n });\n $menuRoutingLink.addEventListener(\"click\", async ()=>{\n if (!$b4e14b6b8da86996$var$logFile) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Load a log file from the menu first.\", \"No log file\");\n if ($b4e14b6b8da86996$var$networkRouteErrors.all.length === 0) // eslint-disable-next-line no-new\n new (0, $37ea9347e68a07dc$export$2e2bcd8739ae039)({\n status: \"success\",\n title: \"No network/route error found\",\n text: `No network/router error was found in the given log file.`\n });\n });\n $menuToolsLink.addEventListener(\"click\", async ()=>{});\n // add dynamic part of the help section\n {\n const ncpCountersRows = [];\n for(let i = 0; i < (0, $f9b620c609316de1$export$2a174e0071931590); i++)ncpCountersRows.push([\n {\n content: (0, $0c547add3190c50c$export$7d1f329b3260ae16)[i]\n },\n {\n content: (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[i].toString()\n },\n {\n content: (0, $9a8cebc34540b0c1$export$230faf97f16ca50f)[i]\n }\n ]);\n const ncpCountersTable = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"NCP Counter\",\n \"Ideal (Per Device)\",\n \"Note\"\n ], [], ncpCountersRows));\n const ashCountersRows = [];\n for(let i = 0; i < (0, $f9b620c609316de1$export$ceb082b2eaf405bd); i++)ashCountersRows.push([\n {\n content: (0, $0c547add3190c50c$export$ce7ab19ae6dc792d)[i]\n },\n {\n content: (0, $9a8cebc34540b0c1$export$a91bc77486893ae8)[i].toString()\n },\n {\n content: (0, $9a8cebc34540b0c1$export$132b1ecb83473329)[i]\n }\n ]);\n const ashCountersTable = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"ASH Counter\",\n \"Ideal (Per Device)\",\n \"Note\"\n ], [], ashCountersRows));\n $sectionHelp.append(ncpCountersTable);\n $sectionHelp.append(ashCountersTable);\n }\n if (window.location.hash) {\n const link = document.querySelector(`#menu-${window.location.hash.slice(1)}`);\n if (link) link.click();\n }\n});\n\n\n//# sourceMappingURL=index.f81b5c4a.js.map\n","//! moment.js\n//! version : 2.30.1\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n global.moment = factory()\n}(this, (function () { 'use strict';\n\n var hookCallback;\n\n function hooks() {\n return hookCallback.apply(null, arguments);\n }\n\n // This is done to register the method called with moment()\n // without creating circular dependencies.\n function setHookCallback(callback) {\n hookCallback = callback;\n }\n\n function isArray(input) {\n return (\n input instanceof Array ||\n Object.prototype.toString.call(input) === '[object Array]'\n );\n }\n\n function isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return (\n input != null &&\n Object.prototype.toString.call(input) === '[object Object]'\n );\n }\n\n function hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n }\n\n function isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) {\n return Object.getOwnPropertyNames(obj).length === 0;\n } else {\n var k;\n for (k in obj) {\n if (hasOwnProp(obj, k)) {\n return false;\n }\n }\n return true;\n }\n }\n\n function isUndefined(input) {\n return input === void 0;\n }\n\n function isNumber(input) {\n return (\n typeof input === 'number' ||\n Object.prototype.toString.call(input) === '[object Number]'\n );\n }\n\n function isDate(input) {\n return (\n input instanceof Date ||\n Object.prototype.toString.call(input) === '[object Date]'\n );\n }\n\n function map(arr, fn) {\n var res = [],\n i,\n arrLen = arr.length;\n for (i = 0; i < arrLen; ++i) {\n res.push(fn(arr[i], i));\n }\n return res;\n }\n\n function extend(a, b) {\n for (var i in b) {\n if (hasOwnProp(b, i)) {\n a[i] = b[i];\n }\n }\n\n if (hasOwnProp(b, 'toString')) {\n a.toString = b.toString;\n }\n\n if (hasOwnProp(b, 'valueOf')) {\n a.valueOf = b.valueOf;\n }\n\n return a;\n }\n\n function createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n }\n\n function defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidEra: null,\n invalidMonth: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false,\n };\n }\n\n function getParsingFlags(m) {\n if (m._pf == null) {\n m._pf = defaultParsingFlags();\n }\n return m._pf;\n }\n\n var some;\n if (Array.prototype.some) {\n some = Array.prototype.some;\n } else {\n some = function (fun) {\n var t = Object(this),\n len = t.length >>> 0,\n i;\n\n for (i = 0; i < len; i++) {\n if (i in t && fun.call(this, t[i], i, t)) {\n return true;\n }\n }\n\n return false;\n };\n }\n\n function isValid(m) {\n var flags = null,\n parsedParts = false,\n isNowValid = m._d && !isNaN(m._d.getTime());\n if (isNowValid) {\n flags = getParsingFlags(m);\n parsedParts = some.call(flags.parsedDateParts, function (i) {\n return i != null;\n });\n isNowValid =\n flags.overflow < 0 &&\n !flags.empty &&\n !flags.invalidEra &&\n !flags.invalidMonth &&\n !flags.invalidWeekday &&\n !flags.weekdayMismatch &&\n !flags.nullInput &&\n !flags.invalidFormat &&\n !flags.userInvalidated &&\n (!flags.meridiem || (flags.meridiem && parsedParts));\n if (m._strict) {\n isNowValid =\n isNowValid &&\n flags.charsLeftOver === 0 &&\n flags.unusedTokens.length === 0 &&\n flags.bigHour === undefined;\n }\n }\n if (Object.isFrozen == null || !Object.isFrozen(m)) {\n m._isValid = isNowValid;\n } else {\n return isNowValid;\n }\n return m._isValid;\n }\n\n function createInvalid(flags) {\n var m = createUTC(NaN);\n if (flags != null) {\n extend(getParsingFlags(m), flags);\n } else {\n getParsingFlags(m).userInvalidated = true;\n }\n\n return m;\n }\n\n // Plugins that add properties should also add the key here (null value),\n // so we can properly clone ourselves.\n var momentProperties = (hooks.momentProperties = []),\n updateInProgress = false;\n\n function copyConfig(to, from) {\n var i,\n prop,\n val,\n momentPropertiesLen = momentProperties.length;\n\n if (!isUndefined(from._isAMomentObject)) {\n to._isAMomentObject = from._isAMomentObject;\n }\n if (!isUndefined(from._i)) {\n to._i = from._i;\n }\n if (!isUndefined(from._f)) {\n to._f = from._f;\n }\n if (!isUndefined(from._l)) {\n to._l = from._l;\n }\n if (!isUndefined(from._strict)) {\n to._strict = from._strict;\n }\n if (!isUndefined(from._tzm)) {\n to._tzm = from._tzm;\n }\n if (!isUndefined(from._isUTC)) {\n to._isUTC = from._isUTC;\n }\n if (!isUndefined(from._offset)) {\n to._offset = from._offset;\n }\n if (!isUndefined(from._pf)) {\n to._pf = getParsingFlags(from);\n }\n if (!isUndefined(from._locale)) {\n to._locale = from._locale;\n }\n\n if (momentPropertiesLen > 0) {\n for (i = 0; i < momentPropertiesLen; i++) {\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) {\n to[prop] = val;\n }\n }\n }\n\n return to;\n }\n\n // Moment prototype object\n function Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) {\n this._d = new Date(NaN);\n }\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n }\n\n function isMoment(obj) {\n return (\n obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n );\n }\n\n function warn(msg) {\n if (\n hooks.suppressDeprecationWarnings === false &&\n typeof console !== 'undefined' &&\n console.warn\n ) {\n console.warn('Deprecation warning: ' + msg);\n }\n }\n\n function deprecate(msg, fn) {\n var firstTime = true;\n\n return extend(function () {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(null, msg);\n }\n if (firstTime) {\n var args = [],\n arg,\n i,\n key,\n argLen = arguments.length;\n for (i = 0; i < argLen; i++) {\n arg = '';\n if (typeof arguments[i] === 'object') {\n arg += '\\n[' + i + '] ';\n for (key in arguments[0]) {\n if (hasOwnProp(arguments[0], key)) {\n arg += key + ': ' + arguments[0][key] + ', ';\n }\n }\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else {\n arg = arguments[i];\n }\n args.push(arg);\n }\n warn(\n msg +\n '\\nArguments: ' +\n Array.prototype.slice.call(args).join('') +\n '\\n' +\n new Error().stack\n );\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n }\n\n var deprecations = {};\n\n function deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(name, msg);\n }\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n }\n\n hooks.suppressDeprecationWarnings = false;\n hooks.deprecationHandler = null;\n\n function isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n }\n\n function set(config) {\n var prop, i;\n for (i in config) {\n if (hasOwnProp(config, i)) {\n prop = config[i];\n if (isFunction(prop)) {\n this[i] = prop;\n } else {\n this['_' + i] = prop;\n }\n }\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp(\n (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n '|' +\n /\\d{1,2}/.source\n );\n }\n\n function mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig),\n prop;\n for (prop in childConfig) {\n if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) {\n res[prop] = childConfig[prop];\n } else {\n delete res[prop];\n }\n }\n }\n for (prop in parentConfig) {\n if (\n hasOwnProp(parentConfig, prop) &&\n !hasOwnProp(childConfig, prop) &&\n isObject(parentConfig[prop])\n ) {\n // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n }\n }\n return res;\n }\n\n function Locale(config) {\n if (config != null) {\n this.set(config);\n }\n }\n\n var keys;\n\n if (Object.keys) {\n keys = Object.keys;\n } else {\n keys = function (obj) {\n var i,\n res = [];\n for (i in obj) {\n if (hasOwnProp(obj, i)) {\n res.push(i);\n }\n }\n return res;\n };\n }\n\n var defaultCalendar = {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n };\n\n function calendar(key, mom, now) {\n var output = this._calendar[key] || this._calendar['sameElse'];\n return isFunction(output) ? output.call(mom, now) : output;\n }\n\n function zeroFill(number, targetLength, forceSign) {\n var absNumber = '' + Math.abs(number),\n zerosToFill = targetLength - absNumber.length,\n sign = number >= 0;\n return (\n (sign ? (forceSign ? '+' : '') : '-') +\n Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n absNumber\n );\n }\n\n var formattingTokens =\n /(\\[[^\\[]*\\])|(\\\\)?([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,\n localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n formatFunctions = {},\n formatTokenFunctions = {};\n\n // token: 'M'\n // padded: ['MM', 2]\n // ordinal: 'Mo'\n // callback: function () { this.month() + 1 }\n function addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === 'string') {\n func = function () {\n return this[callback]();\n };\n }\n if (token) {\n formatTokenFunctions[token] = func;\n }\n if (padded) {\n formatTokenFunctions[padded[0]] = function () {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n }\n if (ordinal) {\n formatTokenFunctions[ordinal] = function () {\n return this.localeData().ordinal(\n func.apply(this, arguments),\n token\n );\n };\n }\n }\n\n function removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|\\]$/g, '');\n }\n return input.replace(/\\\\/g, '');\n }\n\n function makeFormatFunction(format) {\n var array = format.match(formattingTokens),\n i,\n length;\n\n for (i = 0, length = array.length; i < length; i++) {\n if (formatTokenFunctions[array[i]]) {\n array[i] = formatTokenFunctions[array[i]];\n } else {\n array[i] = removeFormattingTokens(array[i]);\n }\n }\n\n return function (mom) {\n var output = '',\n i;\n for (i = 0; i < length; i++) {\n output += isFunction(array[i])\n ? array[i].call(mom, format)\n : array[i];\n }\n return output;\n };\n }\n\n // format date using native date object\n function formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n formatFunctions[format] =\n formatFunctions[format] || makeFormatFunction(format);\n\n return formatFunctions[format](m);\n }\n\n function expandFormat(format, locale) {\n var i = 5;\n\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n\n localFormattingTokens.lastIndex = 0;\n while (i >= 0 && localFormattingTokens.test(format)) {\n format = format.replace(\n localFormattingTokens,\n replaceLongDateFormatTokens\n );\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n\n return format;\n }\n\n var defaultLongDateFormat = {\n LTS: 'h:mm:ss A',\n LT: 'h:mm A',\n L: 'MM/DD/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n };\n\n function longDateFormat(key) {\n var format = this._longDateFormat[key],\n formatUpper = this._longDateFormat[key.toUpperCase()];\n\n if (format || !formatUpper) {\n return format;\n }\n\n this._longDateFormat[key] = formatUpper\n .match(formattingTokens)\n .map(function (tok) {\n if (\n tok === 'MMMM' ||\n tok === 'MM' ||\n tok === 'DD' ||\n tok === 'dddd'\n ) {\n return tok.slice(1);\n }\n return tok;\n })\n .join('');\n\n return this._longDateFormat[key];\n }\n\n var defaultInvalidDate = 'Invalid date';\n\n function invalidDate() {\n return this._invalidDate;\n }\n\n var defaultOrdinal = '%d',\n defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n function ordinal(number) {\n return this._ordinal.replace('%d', number);\n }\n\n var defaultRelativeTime = {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n w: 'a week',\n ww: '%d weeks',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n };\n\n function relativeTime(number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return isFunction(output)\n ? output(number, withoutSuffix, string, isFuture)\n : output.replace(/%d/i, number);\n }\n\n function pastFuture(diff, output) {\n var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n }\n\n var aliases = {\n D: 'date',\n dates: 'date',\n date: 'date',\n d: 'day',\n days: 'day',\n day: 'day',\n e: 'weekday',\n weekdays: 'weekday',\n weekday: 'weekday',\n E: 'isoWeekday',\n isoweekdays: 'isoWeekday',\n isoweekday: 'isoWeekday',\n DDD: 'dayOfYear',\n dayofyears: 'dayOfYear',\n dayofyear: 'dayOfYear',\n h: 'hour',\n hours: 'hour',\n hour: 'hour',\n ms: 'millisecond',\n milliseconds: 'millisecond',\n millisecond: 'millisecond',\n m: 'minute',\n minutes: 'minute',\n minute: 'minute',\n M: 'month',\n months: 'month',\n month: 'month',\n Q: 'quarter',\n quarters: 'quarter',\n quarter: 'quarter',\n s: 'second',\n seconds: 'second',\n second: 'second',\n gg: 'weekYear',\n weekyears: 'weekYear',\n weekyear: 'weekYear',\n GG: 'isoWeekYear',\n isoweekyears: 'isoWeekYear',\n isoweekyear: 'isoWeekYear',\n w: 'week',\n weeks: 'week',\n week: 'week',\n W: 'isoWeek',\n isoweeks: 'isoWeek',\n isoweek: 'isoWeek',\n y: 'year',\n years: 'year',\n year: 'year',\n };\n\n function normalizeUnits(units) {\n return typeof units === 'string'\n ? aliases[units] || aliases[units.toLowerCase()]\n : undefined;\n }\n\n function normalizeObjectUnits(inputObject) {\n var normalizedInput = {},\n normalizedProp,\n prop;\n\n for (prop in inputObject) {\n if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) {\n normalizedInput[normalizedProp] = inputObject[prop];\n }\n }\n }\n\n return normalizedInput;\n }\n\n var priorities = {\n date: 9,\n day: 11,\n weekday: 11,\n isoWeekday: 11,\n dayOfYear: 4,\n hour: 13,\n millisecond: 16,\n minute: 14,\n month: 8,\n quarter: 7,\n second: 15,\n weekYear: 1,\n isoWeekYear: 1,\n week: 5,\n isoWeek: 5,\n year: 1,\n };\n\n function getPrioritizedUnits(unitsObj) {\n var units = [],\n u;\n for (u in unitsObj) {\n if (hasOwnProp(unitsObj, u)) {\n units.push({ unit: u, priority: priorities[u] });\n }\n }\n units.sort(function (a, b) {\n return a.priority - b.priority;\n });\n return units;\n }\n\n var match1 = /\\d/, // 0 - 9\n match2 = /\\d\\d/, // 00 - 99\n match3 = /\\d{3}/, // 000 - 999\n match4 = /\\d{4}/, // 0000 - 9999\n match6 = /[+-]?\\d{6}/, // -999999 - 999999\n match1to2 = /\\d\\d?/, // 0 - 99\n match3to4 = /\\d\\d\\d\\d?/, // 999 - 9999\n match5to6 = /\\d\\d\\d\\d\\d\\d?/, // 99999 - 999999\n match1to3 = /\\d{1,3}/, // 0 - 999\n match1to4 = /\\d{1,4}/, // 0 - 9999\n match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n matchUnsigned = /\\d+/, // 0 - inf\n matchSigned = /[+-]?\\d+/, // -inf - inf\n matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n matchWord =\n /[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,\n match1to2NoLeadingZero = /^[1-9]\\d?/, // 1-99\n match1to2HasZero = /^([1-9]\\d|\\d)/, // 0-99\n regexes;\n\n regexes = {};\n\n function addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex)\n ? regex\n : function (isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n }\n\n function getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) {\n return new RegExp(unescapeFormat(token));\n }\n\n return regexes[token](config._strict, config._locale);\n }\n\n // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n function unescapeFormat(s) {\n return regexEscape(\n s\n .replace('\\\\', '')\n .replace(\n /\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,\n function (matched, p1, p2, p3, p4) {\n return p1 || p2 || p3 || p4;\n }\n )\n );\n }\n\n function regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n }\n\n function absFloor(number) {\n if (number < 0) {\n // -0 -> 0\n return Math.ceil(number) || 0;\n } else {\n return Math.floor(number);\n }\n }\n\n function toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion,\n value = 0;\n\n if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n value = absFloor(coercedNumber);\n }\n\n return value;\n }\n\n var tokens = {};\n\n function addParseToken(token, callback) {\n var i,\n func = callback,\n tokenLen;\n if (typeof token === 'string') {\n token = [token];\n }\n if (isNumber(callback)) {\n func = function (input, array) {\n array[callback] = toInt(input);\n };\n }\n tokenLen = token.length;\n for (i = 0; i < tokenLen; i++) {\n tokens[token[i]] = func;\n }\n }\n\n function addWeekParseToken(token, callback) {\n addParseToken(token, function (input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n }\n\n function addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) {\n tokens[token](input, config._a, config, token);\n }\n }\n\n function isLeapYear(year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n }\n\n var YEAR = 0,\n MONTH = 1,\n DATE = 2,\n HOUR = 3,\n MINUTE = 4,\n SECOND = 5,\n MILLISECOND = 6,\n WEEK = 7,\n WEEKDAY = 8;\n\n // FORMATTING\n\n addFormatToken('Y', 0, 0, function () {\n var y = this.year();\n return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n });\n\n addFormatToken(0, ['YY', 2], 0, function () {\n return this.year() % 100;\n });\n\n addFormatToken(0, ['YYYY', 4], 0, 'year');\n addFormatToken(0, ['YYYYY', 5], 0, 'year');\n addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n // PARSING\n\n addRegexToken('Y', matchSigned);\n addRegexToken('YY', match1to2, match2);\n addRegexToken('YYYY', match1to4, match4);\n addRegexToken('YYYYY', match1to6, match6);\n addRegexToken('YYYYYY', match1to6, match6);\n\n addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n addParseToken('YYYY', function (input, array) {\n array[YEAR] =\n input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n });\n addParseToken('YY', function (input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n });\n addParseToken('Y', function (input, array) {\n array[YEAR] = parseInt(input, 10);\n });\n\n // HELPERS\n\n function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n }\n\n // HOOKS\n\n hooks.parseTwoDigitYear = function (input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n };\n\n // MOMENTS\n\n var getSetYear = makeGetSet('FullYear', true);\n\n function getIsLeapYear() {\n return isLeapYear(this.year());\n }\n\n function makeGetSet(unit, keepTime) {\n return function (value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else {\n return get(this, unit);\n }\n };\n }\n\n function get(mom, unit) {\n if (!mom.isValid()) {\n return NaN;\n }\n\n var d = mom._d,\n isUTC = mom._isUTC;\n\n switch (unit) {\n case 'Milliseconds':\n return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();\n case 'Seconds':\n return isUTC ? d.getUTCSeconds() : d.getSeconds();\n case 'Minutes':\n return isUTC ? d.getUTCMinutes() : d.getMinutes();\n case 'Hours':\n return isUTC ? d.getUTCHours() : d.getHours();\n case 'Date':\n return isUTC ? d.getUTCDate() : d.getDate();\n case 'Day':\n return isUTC ? d.getUTCDay() : d.getDay();\n case 'Month':\n return isUTC ? d.getUTCMonth() : d.getMonth();\n case 'FullYear':\n return isUTC ? d.getUTCFullYear() : d.getFullYear();\n default:\n return NaN; // Just in case\n }\n }\n\n function set$1(mom, unit, value) {\n var d, isUTC, year, month, date;\n\n if (!mom.isValid() || isNaN(value)) {\n return;\n }\n\n d = mom._d;\n isUTC = mom._isUTC;\n\n switch (unit) {\n case 'Milliseconds':\n return void (isUTC\n ? d.setUTCMilliseconds(value)\n : d.setMilliseconds(value));\n case 'Seconds':\n return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));\n case 'Minutes':\n return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));\n case 'Hours':\n return void (isUTC ? d.setUTCHours(value) : d.setHours(value));\n case 'Date':\n return void (isUTC ? d.setUTCDate(value) : d.setDate(value));\n // case 'Day': // Not real\n // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));\n // case 'Month': // Not used because we need to pass two variables\n // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));\n case 'FullYear':\n break; // See below ...\n default:\n return; // Just in case\n }\n\n year = value;\n month = mom.month();\n date = mom.date();\n date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;\n void (isUTC\n ? d.setUTCFullYear(year, month, date)\n : d.setFullYear(year, month, date));\n }\n\n // MOMENTS\n\n function stringGet(units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units]();\n }\n return this;\n }\n\n function stringSet(units, value) {\n if (typeof units === 'object') {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units),\n i,\n prioritizedLen = prioritized.length;\n for (i = 0; i < prioritizedLen; i++) {\n this[prioritized[i].unit](units[prioritized[i].unit]);\n }\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units](value);\n }\n }\n return this;\n }\n\n function mod(n, x) {\n return ((n % x) + x) % x;\n }\n\n var indexOf;\n\n if (Array.prototype.indexOf) {\n indexOf = Array.prototype.indexOf;\n } else {\n indexOf = function (o) {\n // I know\n var i;\n for (i = 0; i < this.length; ++i) {\n if (this[i] === o) {\n return i;\n }\n }\n return -1;\n };\n }\n\n function daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) {\n return NaN;\n }\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1\n ? isLeapYear(year)\n ? 29\n : 28\n : 31 - ((modMonth % 7) % 2);\n }\n\n // FORMATTING\n\n addFormatToken('M', ['MM', 2], 'Mo', function () {\n return this.month() + 1;\n });\n\n addFormatToken('MMM', 0, 0, function (format) {\n return this.localeData().monthsShort(this, format);\n });\n\n addFormatToken('MMMM', 0, 0, function (format) {\n return this.localeData().months(this, format);\n });\n\n // PARSING\n\n addRegexToken('M', match1to2, match1to2NoLeadingZero);\n addRegexToken('MM', match1to2, match2);\n addRegexToken('MMM', function (isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n });\n addRegexToken('MMMM', function (isStrict, locale) {\n return locale.monthsRegex(isStrict);\n });\n\n addParseToken(['M', 'MM'], function (input, array) {\n array[MONTH] = toInt(input) - 1;\n });\n\n addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) {\n array[MONTH] = month;\n } else {\n getParsingFlags(config).invalidMonth = input;\n }\n });\n\n // LOCALES\n\n var defaultLocaleMonths =\n 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n defaultLocaleMonthsShort =\n 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n defaultMonthsShortRegex = matchWord,\n defaultMonthsRegex = matchWord;\n\n function localeMonths(m, format) {\n if (!m) {\n return isArray(this._months)\n ? this._months\n : this._months['standalone'];\n }\n return isArray(this._months)\n ? this._months[m.month()]\n : this._months[\n (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n ? 'format'\n : 'standalone'\n ][m.month()];\n }\n\n function localeMonthsShort(m, format) {\n if (!m) {\n return isArray(this._monthsShort)\n ? this._monthsShort\n : this._monthsShort['standalone'];\n }\n return isArray(this._monthsShort)\n ? this._monthsShort[m.month()]\n : this._monthsShort[\n MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n ][m.month()];\n }\n\n function handleStrictParse(monthName, format, strict) {\n var i,\n ii,\n mom,\n llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for (i = 0; i < 12; ++i) {\n mom = createUTC([2000, i]);\n this._shortMonthsParse[i] = this.monthsShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n\n if (this._monthsParseExact) {\n return handleStrictParse.call(this, monthName, format, strict);\n }\n\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp(\n '^' + this.months(mom, '').replace('.', '') + '$',\n 'i'\n );\n this._shortMonthsParse[i] = new RegExp(\n '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n 'i'\n );\n }\n if (!strict && !this._monthsParse[i]) {\n regex =\n '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'MMMM' &&\n this._longMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'MMM' &&\n this._shortMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (!strict && this._monthsParse[i].test(monthName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function setMonth(mom, value) {\n if (!mom.isValid()) {\n // No op\n return mom;\n }\n\n if (typeof value === 'string') {\n if (/^\\d+$/.test(value)) {\n value = toInt(value);\n } else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) {\n return mom;\n }\n }\n }\n\n var month = value,\n date = mom.date();\n\n date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));\n void (mom._isUTC\n ? mom._d.setUTCMonth(month, date)\n : mom._d.setMonth(month, date));\n return mom;\n }\n\n function getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else {\n return get(this, 'Month');\n }\n }\n\n function getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n }\n\n function monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsShortStrictRegex;\n } else {\n return this._monthsShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsShortRegex')) {\n this._monthsShortRegex = defaultMonthsShortRegex;\n }\n return this._monthsShortStrictRegex && isStrict\n ? this._monthsShortStrictRegex\n : this._monthsShortRegex;\n }\n }\n\n function monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsStrictRegex;\n } else {\n return this._monthsRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsRegex')) {\n this._monthsRegex = defaultMonthsRegex;\n }\n return this._monthsStrictRegex && isStrict\n ? this._monthsStrictRegex\n : this._monthsRegex;\n }\n }\n\n function computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n shortP,\n longP;\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n shortP = regexEscape(this.monthsShort(mom, ''));\n longP = regexEscape(this.months(mom, ''));\n shortPieces.push(shortP);\n longPieces.push(longP);\n mixedPieces.push(longP);\n mixedPieces.push(shortP);\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._monthsShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n }\n\n function createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date;\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n if (isFinite(date.getFullYear())) {\n date.setFullYear(y);\n }\n } else {\n date = new Date(y, m, d, h, M, s, ms);\n }\n\n return date;\n }\n\n function createUTCDate(y) {\n var date, args;\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n args = Array.prototype.slice.call(arguments);\n // preserve leap years using a full 400 year cycle, then reset\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n if (isFinite(date.getUTCFullYear())) {\n date.setUTCFullYear(y);\n }\n } else {\n date = new Date(Date.UTC.apply(null, arguments));\n }\n\n return date;\n }\n\n // start-of-first-week - start-of-year\n function firstWeekOffset(year, dow, doy) {\n var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n fwd = 7 + dow - doy,\n // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n return -fwdlw + fwd - 1;\n }\n\n // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7,\n weekOffset = firstWeekOffset(year, dow, doy),\n dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n resYear,\n resDayOfYear;\n\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n\n return {\n year: resYear,\n dayOfYear: resDayOfYear,\n };\n }\n\n function weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n resWeek,\n resYear;\n\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n\n return {\n week: resWeek,\n year: resYear,\n };\n }\n\n function weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n }\n\n // FORMATTING\n\n addFormatToken('w', ['ww', 2], 'wo', 'week');\n addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n // PARSING\n\n addRegexToken('w', match1to2, match1to2NoLeadingZero);\n addRegexToken('ww', match1to2, match2);\n addRegexToken('W', match1to2, match1to2NoLeadingZero);\n addRegexToken('WW', match1to2, match2);\n\n addWeekParseToken(\n ['w', 'ww', 'W', 'WW'],\n function (input, week, config, token) {\n week[token.substr(0, 1)] = toInt(input);\n }\n );\n\n // HELPERS\n\n // LOCALES\n\n function localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n }\n\n var defaultLocaleWeek = {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n };\n\n function localeFirstDayOfWeek() {\n return this._week.dow;\n }\n\n function localeFirstDayOfYear() {\n return this._week.doy;\n }\n\n // MOMENTS\n\n function getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n function getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('d', 0, 'do', 'day');\n\n addFormatToken('dd', 0, 0, function (format) {\n return this.localeData().weekdaysMin(this, format);\n });\n\n addFormatToken('ddd', 0, 0, function (format) {\n return this.localeData().weekdaysShort(this, format);\n });\n\n addFormatToken('dddd', 0, 0, function (format) {\n return this.localeData().weekdays(this, format);\n });\n\n addFormatToken('e', 0, 0, 'weekday');\n addFormatToken('E', 0, 0, 'isoWeekday');\n\n // PARSING\n\n addRegexToken('d', match1to2);\n addRegexToken('e', match1to2);\n addRegexToken('E', match1to2);\n addRegexToken('dd', function (isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n });\n addRegexToken('ddd', function (isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n });\n addRegexToken('dddd', function (isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n });\n\n addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) {\n week.d = weekday;\n } else {\n getParsingFlags(config).invalidWeekday = input;\n }\n });\n\n addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n week[token] = toInt(input);\n });\n\n // HELPERS\n\n function parseWeekday(input, locale) {\n if (typeof input !== 'string') {\n return input;\n }\n\n if (!isNaN(input)) {\n return parseInt(input, 10);\n }\n\n input = locale.weekdaysParse(input);\n if (typeof input === 'number') {\n return input;\n }\n\n return null;\n }\n\n function parseIsoWeekday(input, locale) {\n if (typeof input === 'string') {\n return locale.weekdaysParse(input) % 7 || 7;\n }\n return isNaN(input) ? null : input;\n }\n\n // LOCALES\n function shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n }\n\n var defaultLocaleWeekdays =\n 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n defaultWeekdaysRegex = matchWord,\n defaultWeekdaysShortRegex = matchWord,\n defaultWeekdaysMinRegex = matchWord;\n\n function localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays)\n ? this._weekdays\n : this._weekdays[\n m && m !== true && this._weekdays.isFormat.test(format)\n ? 'format'\n : 'standalone'\n ];\n return m === true\n ? shiftWeekdays(weekdays, this._week.dow)\n : m\n ? weekdays[m.day()]\n : weekdays;\n }\n\n function localeWeekdaysShort(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n : m\n ? this._weekdaysShort[m.day()]\n : this._weekdaysShort;\n }\n\n function localeWeekdaysMin(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n : m\n ? this._weekdaysMin[m.day()]\n : this._weekdaysMin;\n }\n\n function handleStrictParse$1(weekdayName, format, strict) {\n var i,\n ii,\n mom,\n llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n\n for (i = 0; i < 7; ++i) {\n mom = createUTC([2000, 1]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(\n mom,\n ''\n ).toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n\n if (this._weekdaysParseExact) {\n return handleStrictParse$1.call(this, weekdayName, format, strict);\n }\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n\n mom = createUTC([2000, 1]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp(\n '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._shortWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._minWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n }\n if (!this._weekdaysParse[i]) {\n regex =\n '^' +\n this.weekdays(mom, '') +\n '|^' +\n this.weekdaysShort(mom, '') +\n '|^' +\n this.weekdaysMin(mom, '');\n this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'dddd' &&\n this._fullWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'ddd' &&\n this._shortWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'dd' &&\n this._minWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function getSetDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n var day = get(this, 'Day');\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, 'd');\n } else {\n return day;\n }\n }\n\n function getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, 'd');\n }\n\n function getSetISODayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else {\n return this.day() || 7;\n }\n }\n\n function weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysStrictRegex;\n } else {\n return this._weekdaysRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n this._weekdaysRegex = defaultWeekdaysRegex;\n }\n return this._weekdaysStrictRegex && isStrict\n ? this._weekdaysStrictRegex\n : this._weekdaysRegex;\n }\n }\n\n function weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysShortStrictRegex;\n } else {\n return this._weekdaysShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n }\n return this._weekdaysShortStrictRegex && isStrict\n ? this._weekdaysShortStrictRegex\n : this._weekdaysShortRegex;\n }\n }\n\n function weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysMinStrictRegex;\n } else {\n return this._weekdaysMinRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n }\n return this._weekdaysMinStrictRegex && isStrict\n ? this._weekdaysMinStrictRegex\n : this._weekdaysMinRegex;\n }\n }\n\n function computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var minPieces = [],\n shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n minp,\n shortp,\n longp;\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n minp = regexEscape(this.weekdaysMin(mom, ''));\n shortp = regexEscape(this.weekdaysShort(mom, ''));\n longp = regexEscape(this.weekdays(mom, ''));\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n\n this._weekdaysStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysMinStrictRegex = new RegExp(\n '^(' + minPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n function hFormat() {\n return this.hours() % 12 || 12;\n }\n\n function kFormat() {\n return this.hours() || 24;\n }\n\n addFormatToken('H', ['HH', 2], 0, 'hour');\n addFormatToken('h', ['hh', 2], 0, hFormat);\n addFormatToken('k', ['kk', 2], 0, kFormat);\n\n addFormatToken('hmm', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('hmmss', 0, 0, function () {\n return (\n '' +\n hFormat.apply(this) +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n addFormatToken('Hmm', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('Hmmss', 0, 0, function () {\n return (\n '' +\n this.hours() +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n function meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function () {\n return this.localeData().meridiem(\n this.hours(),\n this.minutes(),\n lowercase\n );\n });\n }\n\n meridiem('a', true);\n meridiem('A', false);\n\n // PARSING\n\n function matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n }\n\n addRegexToken('a', matchMeridiem);\n addRegexToken('A', matchMeridiem);\n addRegexToken('H', match1to2, match1to2HasZero);\n addRegexToken('h', match1to2, match1to2NoLeadingZero);\n addRegexToken('k', match1to2, match1to2NoLeadingZero);\n addRegexToken('HH', match1to2, match2);\n addRegexToken('hh', match1to2, match2);\n addRegexToken('kk', match1to2, match2);\n\n addRegexToken('hmm', match3to4);\n addRegexToken('hmmss', match5to6);\n addRegexToken('Hmm', match3to4);\n addRegexToken('Hmmss', match5to6);\n\n addParseToken(['H', 'HH'], HOUR);\n addParseToken(['k', 'kk'], function (input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n });\n addParseToken(['a', 'A'], function (input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n });\n addParseToken(['h', 'hh'], function (input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('Hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n });\n addParseToken('Hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n });\n\n // LOCALES\n\n function localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + '').toLowerCase().charAt(0) === 'p';\n }\n\n var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n getSetHour = makeGetSet('Hours', true);\n\n function localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'pm' : 'PM';\n } else {\n return isLower ? 'am' : 'AM';\n }\n }\n\n var baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n\n week: defaultLocaleWeek,\n\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n\n meridiemParse: defaultLocaleMeridiemParse,\n };\n\n // internal storage for locale config files\n var locales = {},\n localeFamilies = {},\n globalLocale;\n\n function commonPrefix(arr1, arr2) {\n var i,\n minl = Math.min(arr1.length, arr2.length);\n for (i = 0; i < minl; i += 1) {\n if (arr1[i] !== arr2[i]) {\n return i;\n }\n }\n return minl;\n }\n\n function normalizeLocale(key) {\n return key ? key.toLowerCase().replace('_', '-') : key;\n }\n\n // pick the locale from the array\n // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n function chooseLocale(names) {\n var i = 0,\n j,\n next,\n locale,\n split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (\n next &&\n next.length >= j &&\n commonPrefix(split, next) >= j - 1\n ) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n }\n\n function isLocaleNameSane(name) {\n // Prevent names that look like filesystem paths, i.e contain '/' or '\\'\n // Ensure name is available and function returns boolean\n return !!(name && name.match('^[^/\\\\\\\\]*$'));\n }\n\n function loadLocale(name) {\n var oldLocale = null,\n aliasedRequire;\n // TODO: Find a better way to register and load all the locales in Node\n if (\n locales[name] === undefined &&\n typeof module !== 'undefined' &&\n module &&\n module.exports &&\n isLocaleNameSane(name)\n ) {\n try {\n oldLocale = globalLocale._abbr;\n aliasedRequire = require;\n aliasedRequire('./locale/' + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {\n // mark as not found to avoid repeating expensive file require call causing high CPU\n // when trying to find en-US, en_US, en-us for every format call\n locales[name] = null; // null means not found\n }\n }\n return locales[name];\n }\n\n // This function will load locale and then set the global locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n function getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n } else {\n data = defineLocale(key, values);\n }\n\n if (data) {\n // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n } else {\n if (typeof console !== 'undefined' && console.warn) {\n //warn user if arguments are passed but the locale could not be set\n console.warn(\n 'Locale ' + key + ' not found. Did you forget to load it?'\n );\n }\n }\n }\n\n return globalLocale._abbr;\n }\n\n function defineLocale(name, config) {\n if (config !== null) {\n var locale,\n parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple(\n 'defineLocaleOverride',\n 'use moment.updateLocale(localeName, config) to change ' +\n 'an existing locale. moment.defineLocale(localeName, ' +\n 'config) should only be used for creating a new locale ' +\n 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n );\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) {\n parentConfig = locales[config.parentLocale]._config;\n } else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) {\n parentConfig = locale._config;\n } else {\n if (!localeFamilies[config.parentLocale]) {\n localeFamilies[config.parentLocale] = [];\n }\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config,\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n if (localeFamilies[name]) {\n localeFamilies[name].forEach(function (x) {\n defineLocale(x.name, x.config);\n });\n }\n\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n }\n\n function updateLocale(name, config) {\n if (config != null) {\n var locale,\n tmpLocale,\n parentConfig = baseConfig;\n\n if (locales[name] != null && locales[name].parentLocale != null) {\n // Update existing child locale in-place to avoid memory-leaks\n locales[name].set(mergeConfigs(locales[name]._config, config));\n } else {\n // MERGE\n tmpLocale = loadLocale(name);\n if (tmpLocale != null) {\n parentConfig = tmpLocale._config;\n }\n config = mergeConfigs(parentConfig, config);\n if (tmpLocale == null) {\n // updateLocale is called for creating a new locale\n // Set abbr so it will have a name (getters return\n // undefined otherwise).\n config.abbr = name;\n }\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n }\n\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else {\n // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n if (name === getSetGlobalLocale()) {\n getSetGlobalLocale(name);\n }\n } else if (locales[name] != null) {\n delete locales[name];\n }\n }\n }\n return locales[name];\n }\n\n // returns locale data\n function getLocale(key) {\n var locale;\n\n if (key && key._locale && key._locale._abbr) {\n key = key._locale._abbr;\n }\n\n if (!key) {\n return globalLocale;\n }\n\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) {\n return locale;\n }\n key = [key];\n }\n\n return chooseLocale(key);\n }\n\n function listLocales() {\n return keys(locales);\n }\n\n function checkOverflow(m) {\n var overflow,\n a = m._a;\n\n if (a && getParsingFlags(m).overflow === -2) {\n overflow =\n a[MONTH] < 0 || a[MONTH] > 11\n ? MONTH\n : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n ? DATE\n : a[HOUR] < 0 ||\n a[HOUR] > 24 ||\n (a[HOUR] === 24 &&\n (a[MINUTE] !== 0 ||\n a[SECOND] !== 0 ||\n a[MILLISECOND] !== 0))\n ? HOUR\n : a[MINUTE] < 0 || a[MINUTE] > 59\n ? MINUTE\n : a[SECOND] < 0 || a[SECOND] > 59\n ? SECOND\n : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n ? MILLISECOND\n : -1;\n\n if (\n getParsingFlags(m)._overflowDayOfYear &&\n (overflow < YEAR || overflow > DATE)\n ) {\n overflow = DATE;\n }\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n overflow = WEEK;\n }\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n overflow = WEEKDAY;\n }\n\n getParsingFlags(m).overflow = overflow;\n }\n\n return m;\n }\n\n // iso 8601 regex\n // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n var extendedIsoRegex =\n /^\\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)?)?$/,\n basicIsoRegex =\n /^\\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)?)?$/,\n tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n isoDates = [\n ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n ['YYYY-DDD', /\\d{4}-\\d{3}/],\n ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n ['YYYYYYMMDD', /[+-]\\d{10}/],\n ['YYYYMMDD', /\\d{8}/],\n ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n ['YYYYDDD', /\\d{7}/],\n ['YYYYMM', /\\d{6}/, false],\n ['YYYY', /\\d{4}/, false],\n ],\n // iso time formats and regexes\n isoTimes = [\n ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n ['HH:mm', /\\d\\d:\\d\\d/],\n ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n ['HHmm', /\\d\\d\\d\\d/],\n ['HH', /\\d\\d/],\n ],\n aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n rfc2822 =\n /^(?:(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}))$/,\n obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n };\n\n // date from iso format\n function configFromISO(config) {\n var i,\n l,\n string = config._i,\n match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n allowTime,\n dateFormat,\n timeFormat,\n tzFormat,\n isoDatesLen = isoDates.length,\n isoTimesLen = isoTimes.length;\n\n if (match) {\n getParsingFlags(config).iso = true;\n for (i = 0, l = isoDatesLen; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for (i = 0, l = isoTimesLen; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n } else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n configFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }\n\n function extractFromRFC2822Strings(\n yearStr,\n monthStr,\n dayStr,\n hourStr,\n minuteStr,\n secondStr\n ) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10),\n ];\n\n if (secondStr) {\n result.push(parseInt(secondStr, 10));\n }\n\n return result;\n }\n\n function untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) {\n return 2000 + year;\n } else if (year <= 999) {\n return 1900 + year;\n }\n return year;\n }\n\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^()]*\\)|[\\n\\t]/g, ' ')\n .replace(/(\\s\\s+)/g, ' ')\n .replace(/^\\s\\s*/, '')\n .replace(/\\s\\s*$/, '');\n }\n\n function checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n weekdayActual = new Date(\n parsedInput[0],\n parsedInput[1],\n parsedInput[2]\n ).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n }\n\n function calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) {\n return obsOffsets[obsOffset];\n } else if (militaryOffset) {\n // the only allowed military tz is Z\n return 0;\n } else {\n var hm = parseInt(numOffset, 10),\n m = hm % 100,\n h = (hm - m) / 100;\n return h * 60 + m;\n }\n }\n\n // date and time from ref 2822 format\n function configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i)),\n parsedArray;\n if (match) {\n parsedArray = extractFromRFC2822Strings(\n match[4],\n match[3],\n match[2],\n match[5],\n match[6],\n match[7]\n );\n if (!checkWeekday(match[1], parsedArray, config)) {\n return;\n }\n\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n getParsingFlags(config).rfc2822 = true;\n } else {\n config._isValid = false;\n }\n }\n\n // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n configFromRFC2822(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n if (config._strict) {\n config._isValid = false;\n } else {\n // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n }\n\n hooks.createFromInputFallback = deprecate(\n 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n function (config) {\n config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n }\n );\n\n // Pick the first defined of two or three arguments.\n function defaults(a, b, c) {\n if (a != null) {\n return a;\n }\n if (b != null) {\n return b;\n }\n return c;\n }\n\n function currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n if (config._useUTC) {\n return [\n nowValue.getUTCFullYear(),\n nowValue.getUTCMonth(),\n nowValue.getUTCDate(),\n ];\n }\n return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n }\n\n // convert an array to a date.\n // the array should mirror the parameters below\n // note: all values past the year are optional and will default to the lowest possible value.\n // [year, month, day , hour, minute, second, millisecond]\n function configFromArray(config) {\n var i,\n date,\n input = [],\n currentDate,\n expectedWeekday,\n yearToUse;\n\n if (config._d) {\n return;\n }\n\n currentDate = currentDateArray(config);\n\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n dayOfYearFromWeekInfo(config);\n }\n\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n if (\n config._dayOfYear > daysInYear(yearToUse) ||\n config._dayOfYear === 0\n ) {\n getParsingFlags(config)._overflowDayOfYear = true;\n }\n\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for (i = 0; i < 3 && config._a[i] == null; ++i) {\n config._a[i] = input[i] = currentDate[i];\n }\n\n // Zero out whatever was not defaulted, including time\n for (; i < 7; i++) {\n config._a[i] = input[i] =\n config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n }\n\n // Check for 24:00:00.000\n if (\n config._a[HOUR] === 24 &&\n config._a[MINUTE] === 0 &&\n config._a[SECOND] === 0 &&\n config._a[MILLISECOND] === 0\n ) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n\n config._d = (config._useUTC ? createUTCDate : createDate).apply(\n null,\n input\n );\n expectedWeekday = config._useUTC\n ? config._d.getUTCDay()\n : config._d.getDay();\n\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) {\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n }\n\n if (config._nextDay) {\n config._a[HOUR] = 24;\n }\n\n // check for mismatching day of week\n if (\n config._w &&\n typeof config._w.d !== 'undefined' &&\n config._w.d !== expectedWeekday\n ) {\n getParsingFlags(config).weekdayMismatch = true;\n }\n }\n\n function dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(\n w.GG,\n config._a[YEAR],\n weekOfYear(createLocal(), 1, 4).year\n );\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) {\n weekdayOverflow = true;\n }\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n\n curWeek = weekOfYear(createLocal(), dow, doy);\n\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) {\n weekdayOverflow = true;\n }\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) {\n weekdayOverflow = true;\n }\n } else {\n // default to beginning of week\n weekday = dow;\n }\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n getParsingFlags(config)._overflowWeeks = true;\n } else if (weekdayOverflow != null) {\n getParsingFlags(config)._overflowWeekday = true;\n } else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n }\n\n // constant that refers to the ISO standard\n hooks.ISO_8601 = function () {};\n\n // constant that refers to the RFC 2822 form\n hooks.RFC_2822 = function () {};\n\n // date from string and format string\n function configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = '' + config._i,\n i,\n parsedInput,\n tokens,\n token,\n skipped,\n stringLength = string.length,\n totalParsedInputLength = 0,\n era,\n tokenLen;\n\n tokens =\n expandFormat(config._f, config._locale).match(formattingTokens) || [];\n tokenLen = tokens.length;\n for (i = 0; i < tokenLen; i++) {\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n [])[0];\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) {\n getParsingFlags(config).unusedInput.push(skipped);\n }\n string = string.slice(\n string.indexOf(parsedInput) + parsedInput.length\n );\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) {\n getParsingFlags(config).empty = false;\n } else {\n getParsingFlags(config).unusedTokens.push(token);\n }\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) {\n getParsingFlags(config).unusedTokens.push(token);\n }\n }\n\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver =\n stringLength - totalParsedInputLength;\n if (string.length > 0) {\n getParsingFlags(config).unusedInput.push(string);\n }\n\n // clear _12h flag if hour is <= 12\n if (\n config._a[HOUR] <= 12 &&\n getParsingFlags(config).bigHour === true &&\n config._a[HOUR] > 0\n ) {\n getParsingFlags(config).bigHour = undefined;\n }\n\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(\n config._locale,\n config._a[HOUR],\n config._meridiem\n );\n\n // handle era\n era = getParsingFlags(config).era;\n if (era !== null) {\n config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n }\n\n configFromArray(config);\n checkOverflow(config);\n }\n\n function meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n\n if (meridiem == null) {\n // nothing to do\n return hour;\n }\n if (locale.meridiemHour != null) {\n return locale.meridiemHour(hour, meridiem);\n } else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) {\n hour += 12;\n }\n if (!isPm && hour === 12) {\n hour = 0;\n }\n return hour;\n } else {\n // this is not supposed to happen\n return hour;\n }\n }\n\n // date from string and array of format strings\n function configFromStringAndArray(config) {\n var tempConfig,\n bestMoment,\n scoreToBeat,\n i,\n currentScore,\n validFormatFound,\n bestFormatIsValid = false,\n configfLen = config._f.length;\n\n if (configfLen === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n\n for (i = 0; i < configfLen; i++) {\n currentScore = 0;\n validFormatFound = false;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) {\n tempConfig._useUTC = config._useUTC;\n }\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n\n if (isValid(tempConfig)) {\n validFormatFound = true;\n }\n\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n getParsingFlags(tempConfig).score = currentScore;\n\n if (!bestFormatIsValid) {\n if (\n scoreToBeat == null ||\n currentScore < scoreToBeat ||\n validFormatFound\n ) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n if (validFormatFound) {\n bestFormatIsValid = true;\n }\n }\n } else {\n if (currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n }\n\n extend(config, bestMoment || tempConfig);\n }\n\n function configFromObject(config) {\n if (config._d) {\n return;\n }\n\n var i = normalizeObjectUnits(config._i),\n dayOrDate = i.day === undefined ? i.date : i.day;\n config._a = map(\n [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n function (obj) {\n return obj && parseInt(obj, 10);\n }\n );\n\n configFromArray(config);\n }\n\n function createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, 'd');\n res._nextDay = undefined;\n }\n\n return res;\n }\n\n function prepareConfig(config) {\n var input = config._i,\n format = config._f;\n\n config._locale = config._locale || getLocale(config._l);\n\n if (input === null || (format === undefined && input === '')) {\n return createInvalid({ nullInput: true });\n }\n\n if (typeof input === 'string') {\n config._i = input = config._locale.preparse(input);\n }\n\n if (isMoment(input)) {\n return new Moment(checkOverflow(input));\n } else if (isDate(input)) {\n config._d = input;\n } else if (isArray(format)) {\n configFromStringAndArray(config);\n } else if (format) {\n configFromStringAndFormat(config);\n } else {\n configFromInput(config);\n }\n\n if (!isValid(config)) {\n config._d = null;\n }\n\n return config;\n }\n\n function configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) {\n config._d = new Date(hooks.now());\n } else if (isDate(input)) {\n config._d = new Date(input.valueOf());\n } else if (typeof input === 'string') {\n configFromString(config);\n } else if (isArray(input)) {\n config._a = map(input.slice(0), function (obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) {\n configFromObject(config);\n } else if (isNumber(input)) {\n // from milliseconds\n config._d = new Date(input);\n } else {\n hooks.createFromInputFallback(config);\n }\n }\n\n function createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n\n if (format === true || format === false) {\n strict = format;\n format = undefined;\n }\n\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n\n if (\n (isObject(input) && isObjectEmpty(input)) ||\n (isArray(input) && input.length === 0)\n ) {\n input = undefined;\n }\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n\n return createFromConfig(c);\n }\n\n function createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n }\n\n var prototypeMin = deprecate(\n 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other < this ? this : other;\n } else {\n return createInvalid();\n }\n }\n ),\n prototypeMax = deprecate(\n 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other > this ? this : other;\n } else {\n return createInvalid();\n }\n }\n );\n\n // Pick a moment m from moments so that m[fn](other) is true for all\n // other. This relies on the function fn to be transitive.\n //\n // moments should either be an array of moment objects or an array, whose\n // first element is an array of moment objects.\n function pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) {\n moments = moments[0];\n }\n if (!moments.length) {\n return createLocal();\n }\n res = moments[0];\n for (i = 1; i < moments.length; ++i) {\n if (!moments[i].isValid() || moments[i][fn](res)) {\n res = moments[i];\n }\n }\n return res;\n }\n\n // TODO: Use [].sort instead?\n function min() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isBefore', args);\n }\n\n function max() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isAfter', args);\n }\n\n var now = function () {\n return Date.now ? Date.now() : +new Date();\n };\n\n var ordering = [\n 'year',\n 'quarter',\n 'month',\n 'week',\n 'day',\n 'hour',\n 'minute',\n 'second',\n 'millisecond',\n ];\n\n function isDurationValid(m) {\n var key,\n unitHasDecimal = false,\n i,\n orderLen = ordering.length;\n for (key in m) {\n if (\n hasOwnProp(m, key) &&\n !(\n indexOf.call(ordering, key) !== -1 &&\n (m[key] == null || !isNaN(m[key]))\n )\n ) {\n return false;\n }\n }\n\n for (i = 0; i < orderLen; ++i) {\n if (m[ordering[i]]) {\n if (unitHasDecimal) {\n return false; // only allow non-integers for smallest unit\n }\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n unitHasDecimal = true;\n }\n }\n }\n\n return true;\n }\n\n function isValid$1() {\n return this._isValid;\n }\n\n function createInvalid$1() {\n return createDuration(NaN);\n }\n\n function Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration),\n years = normalizedInput.year || 0,\n quarters = normalizedInput.quarter || 0,\n months = normalizedInput.month || 0,\n weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n days = normalizedInput.day || 0,\n hours = normalizedInput.hour || 0,\n minutes = normalizedInput.minute || 0,\n seconds = normalizedInput.second || 0,\n milliseconds = normalizedInput.millisecond || 0;\n\n this._isValid = isDurationValid(normalizedInput);\n\n // representation for dateAddRemove\n this._milliseconds =\n +milliseconds +\n seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days + weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months + quarters * 3 + years * 12;\n\n this._data = {};\n\n this._locale = getLocale();\n\n this._bubble();\n }\n\n function isDuration(obj) {\n return obj instanceof Duration;\n }\n\n function absRound(number) {\n if (number < 0) {\n return Math.round(-1 * number) * -1;\n } else {\n return Math.round(number);\n }\n }\n\n // compare two arrays, return the number of differences\n function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (\n (dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n ) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }\n\n // FORMATTING\n\n function offset(token, separator) {\n addFormatToken(token, 0, 0, function () {\n var offset = this.utcOffset(),\n sign = '+';\n if (offset < 0) {\n offset = -offset;\n sign = '-';\n }\n return (\n sign +\n zeroFill(~~(offset / 60), 2) +\n separator +\n zeroFill(~~offset % 60, 2)\n );\n });\n }\n\n offset('Z', ':');\n offset('ZZ', '');\n\n // PARSING\n\n addRegexToken('Z', matchShortOffset);\n addRegexToken('ZZ', matchShortOffset);\n addParseToken(['Z', 'ZZ'], function (input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n });\n\n // HELPERS\n\n // timezone chunker\n // '+10:00' > ['10', '00']\n // '-1530' > ['-15', '30']\n var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n function offsetFromString(matcher, string) {\n var matches = (string || '').match(matcher),\n chunk,\n parts,\n minutes;\n\n if (matches === null) {\n return null;\n }\n\n chunk = matches[matches.length - 1] || [];\n parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n }\n\n // Return a moment from input, that is local/utc/zone equivalent to model.\n function cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff =\n (isMoment(input) || isDate(input)\n ? input.valueOf()\n : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else {\n return createLocal(input).local();\n }\n }\n\n function getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset());\n }\n\n // HOOKS\n\n // This function will be called whenever a moment is mutated.\n // It is intended to keep the offset in sync with the timezone.\n hooks.updateOffset = function () {};\n\n // MOMENTS\n\n // keepLocalTime = true means only change the timezone, without\n // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n // +0200, so we adjust the time as needed, to be valid.\n //\n // Keeping the time actually adds/subtracts (one hour)\n // from the actual represented time. That is why we call updateOffset\n // a second time. In case it wants us to change the offset again\n // _changeInProgress == true case, then we have to adjust, because\n // there is no such time in the given timezone.\n function getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0,\n localAdjust;\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n if (input != null) {\n if (typeof input === 'string') {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) {\n return this;\n }\n } else if (Math.abs(input) < 16 && !keepMinutes) {\n input = input * 60;\n }\n if (!this._isUTC && keepLocalTime) {\n localAdjust = getDateOffset(this);\n }\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) {\n this.add(localAdjust, 'm');\n }\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) {\n addSubtract(\n this,\n createDuration(input - offset, 'm'),\n 1,\n false\n );\n } else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else {\n return this._isUTC ? offset : getDateOffset(this);\n }\n }\n\n function getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== 'string') {\n input = -input;\n }\n\n this.utcOffset(input, keepLocalTime);\n\n return this;\n } else {\n return -this.utcOffset();\n }\n }\n\n function setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n }\n\n function setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n\n if (keepLocalTime) {\n this.subtract(getDateOffset(this), 'm');\n }\n }\n return this;\n }\n\n function setOffsetToParsedOffset() {\n if (this._tzm != null) {\n this.utcOffset(this._tzm, false, true);\n } else if (typeof this._i === 'string') {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) {\n this.utcOffset(tZone);\n } else {\n this.utcOffset(0, true);\n }\n }\n return this;\n }\n\n function hasAlignedHourOffset(input) {\n if (!this.isValid()) {\n return false;\n }\n input = input ? createLocal(input).utcOffset() : 0;\n\n return (this.utcOffset() - input) % 60 === 0;\n }\n\n function isDaylightSavingTime() {\n return (\n this.utcOffset() > this.clone().month(0).utcOffset() ||\n this.utcOffset() > this.clone().month(5).utcOffset()\n );\n }\n\n function isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) {\n return this._isDSTShifted;\n }\n\n var c = {},\n other;\n\n copyConfig(c, this);\n c = prepareConfig(c);\n\n if (c._a) {\n other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted =\n this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else {\n this._isDSTShifted = false;\n }\n\n return this._isDSTShifted;\n }\n\n function isLocal() {\n return this.isValid() ? !this._isUTC : false;\n }\n\n function isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n }\n\n function isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n }\n\n // ASP.NET json date format regex\n var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n isoRegex =\n /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n function createDuration(input, key) {\n var duration = input,\n // matching against regexp is expensive, do it on demand\n match = null,\n sign,\n ret,\n diffRes;\n\n if (isDuration(input)) {\n duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months,\n };\n } else if (isNumber(input) || !isNaN(+input)) {\n duration = {};\n if (key) {\n duration[key] = +input;\n } else {\n duration.milliseconds = +input;\n }\n } else if ((match = aspNetRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n };\n } else if ((match = isoRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign),\n };\n } else if (duration == null) {\n // checks for null or undefined\n duration = {};\n } else if (\n typeof duration === 'object' &&\n ('from' in duration || 'to' in duration)\n ) {\n diffRes = momentsDifference(\n createLocal(duration.from),\n createLocal(duration.to)\n );\n\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n\n ret = new Duration(duration);\n\n if (isDuration(input) && hasOwnProp(input, '_locale')) {\n ret._locale = input._locale;\n }\n\n if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n ret._isValid = input._isValid;\n }\n\n return ret;\n }\n\n createDuration.fn = Duration.prototype;\n createDuration.invalid = createInvalid$1;\n\n function parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(',', '.'));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n }\n\n function positiveMomentsDifference(base, other) {\n var res = {};\n\n res.months =\n other.month() - base.month() + (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, 'M').isAfter(other)) {\n --res.months;\n }\n\n res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n return res;\n }\n\n function momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) {\n return { milliseconds: 0, months: 0 };\n }\n\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) {\n res = positiveMomentsDifference(base, other);\n } else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n\n return res;\n }\n\n // TODO: remove 'name' arg after deprecation is removed\n function createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(\n name,\n 'moment().' +\n name +\n '(period, number) is deprecated. Please use moment().' +\n name +\n '(number, period). ' +\n 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n );\n tmp = val;\n val = period;\n period = tmp;\n }\n\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n }\n\n function addSubtract(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds,\n days = absRound(duration._days),\n months = absRound(duration._months);\n\n if (!mom.isValid()) {\n // No op\n return;\n }\n\n updateOffset = updateOffset == null ? true : updateOffset;\n\n if (months) {\n setMonth(mom, get(mom, 'Month') + months * isAdding);\n }\n if (days) {\n set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n }\n if (milliseconds) {\n mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n }\n if (updateOffset) {\n hooks.updateOffset(mom, days || months);\n }\n }\n\n var add = createAdder(1, 'add'),\n subtract = createAdder(-1, 'subtract');\n\n function isString(input) {\n return typeof input === 'string' || input instanceof String;\n }\n\n // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n function isMomentInput(input) {\n return (\n isMoment(input) ||\n isDate(input) ||\n isString(input) ||\n isNumber(input) ||\n isNumberOrStringArray(input) ||\n isMomentInputObject(input) ||\n input === null ||\n input === undefined\n );\n }\n\n function isMomentInputObject(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'years',\n 'year',\n 'y',\n 'months',\n 'month',\n 'M',\n 'days',\n 'day',\n 'd',\n 'dates',\n 'date',\n 'D',\n 'hours',\n 'hour',\n 'h',\n 'minutes',\n 'minute',\n 'm',\n 'seconds',\n 'second',\n 's',\n 'milliseconds',\n 'millisecond',\n 'ms',\n ],\n i,\n property,\n propertyLen = properties.length;\n\n for (i = 0; i < propertyLen; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function isNumberOrStringArray(input) {\n var arrayTest = isArray(input),\n dataTypeTest = false;\n if (arrayTest) {\n dataTypeTest =\n input.filter(function (item) {\n return !isNumber(item) && isString(input);\n }).length === 0;\n }\n return arrayTest && dataTypeTest;\n }\n\n function isCalendarSpec(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'sameDay',\n 'nextDay',\n 'lastDay',\n 'nextWeek',\n 'lastWeek',\n 'sameElse',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, 'days', true);\n return diff < -6\n ? 'sameElse'\n : diff < -1\n ? 'lastWeek'\n : diff < 0\n ? 'lastDay'\n : diff < 1\n ? 'sameDay'\n : diff < 2\n ? 'nextDay'\n : diff < 7\n ? 'nextWeek'\n : 'sameElse';\n }\n\n function calendar$1(time, formats) {\n // Support for single parameter, formats only overload to the calendar function\n if (arguments.length === 1) {\n if (!arguments[0]) {\n time = undefined;\n formats = undefined;\n } else if (isMomentInput(arguments[0])) {\n time = arguments[0];\n formats = undefined;\n } else if (isCalendarSpec(arguments[0])) {\n formats = arguments[0];\n time = undefined;\n }\n }\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(),\n sod = cloneWithOffset(now, this).startOf('day'),\n format = hooks.calendarFormat(this, sod) || 'sameElse',\n output =\n formats &&\n (isFunction(formats[format])\n ? formats[format].call(this, now)\n : formats[format]);\n\n return this.format(\n output || this.localeData().calendar(format, this, createLocal(now))\n );\n }\n\n function clone() {\n return new Moment(this);\n }\n\n function isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() > localInput.valueOf();\n } else {\n return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n }\n\n function isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() < localInput.valueOf();\n } else {\n return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n }\n\n function isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from),\n localTo = isMoment(to) ? to : createLocal(to);\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n return false;\n }\n inclusivity = inclusivity || '()';\n return (\n (inclusivity[0] === '('\n ? this.isAfter(localFrom, units)\n : !this.isBefore(localFrom, units)) &&\n (inclusivity[1] === ')'\n ? this.isBefore(localTo, units)\n : !this.isAfter(localTo, units))\n );\n }\n\n function isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input),\n inputMs;\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() === localInput.valueOf();\n } else {\n inputMs = localInput.valueOf();\n return (\n this.clone().startOf(units).valueOf() <= inputMs &&\n inputMs <= this.clone().endOf(units).valueOf()\n );\n }\n }\n\n function isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n }\n\n function isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n }\n\n function diff(input, units, asFloat) {\n var that, zoneDelta, output;\n\n if (!this.isValid()) {\n return NaN;\n }\n\n that = cloneWithOffset(input, this);\n\n if (!that.isValid()) {\n return NaN;\n }\n\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n units = normalizeUnits(units);\n\n switch (units) {\n case 'year':\n output = monthDiff(this, that) / 12;\n break;\n case 'month':\n output = monthDiff(this, that);\n break;\n case 'quarter':\n output = monthDiff(this, that) / 3;\n break;\n case 'second':\n output = (this - that) / 1e3;\n break; // 1000\n case 'minute':\n output = (this - that) / 6e4;\n break; // 1000 * 60\n case 'hour':\n output = (this - that) / 36e5;\n break; // 1000 * 60 * 60\n case 'day':\n output = (this - that - zoneDelta) / 864e5;\n break; // 1000 * 60 * 60 * 24, negate dst\n case 'week':\n output = (this - that - zoneDelta) / 6048e5;\n break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default:\n output = this - that;\n }\n\n return asFloat ? output : absFloor(output);\n }\n\n function monthDiff(a, b) {\n if (a.date() < b.date()) {\n // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -monthDiff(b, a);\n }\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, 'months'),\n anchor2,\n adjust;\n\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n }\n\n hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n function toString() {\n return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n }\n\n function toISOString(keepOffset) {\n if (!this.isValid()) {\n return null;\n }\n var utc = keepOffset !== true,\n m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) {\n return formatMoment(\n m,\n utc\n ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) {\n return this.toDate().toISOString();\n } else {\n return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n .toISOString()\n .replace('Z', formatMoment(m, 'Z'));\n }\n }\n return formatMoment(\n m,\n utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n\n /**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */\n function inspect() {\n if (!this.isValid()) {\n return 'moment.invalid(/* ' + this._i + ' */)';\n }\n var func = 'moment',\n zone = '',\n prefix,\n year,\n datetime,\n suffix;\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n zone = 'Z';\n }\n prefix = '[' + func + '(\"]';\n year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n datetime = '-MM-DD[T]HH:mm:ss.SSS';\n suffix = zone + '[\")]';\n\n return this.format(prefix + year + datetime + suffix);\n }\n\n function format(inputString) {\n if (!inputString) {\n inputString = this.isUtc()\n ? hooks.defaultFormatUtc\n : hooks.defaultFormat;\n }\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n }\n\n function from(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ to: this, from: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n }\n\n function to(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ from: this, to: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n }\n\n // If passed a locale key, it will set the locale for this\n // instance. Otherwise, it will return the locale configuration\n // variables for this instance.\n function locale(key) {\n var newLocaleData;\n\n if (key === undefined) {\n return this._locale._abbr;\n } else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) {\n this._locale = newLocaleData;\n }\n return this;\n }\n }\n\n var lang = deprecate(\n 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n function (key) {\n if (key === undefined) {\n return this.localeData();\n } else {\n return this.locale(key);\n }\n }\n );\n\n function localeData() {\n return this._locale;\n }\n\n var MS_PER_SECOND = 1000,\n MS_PER_MINUTE = 60 * MS_PER_SECOND,\n MS_PER_HOUR = 60 * MS_PER_MINUTE,\n MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n // actual modulo - handles negative numbers (for dates before 1970):\n function mod$1(dividend, divisor) {\n return ((dividend % divisor) + divisor) % divisor;\n }\n\n function localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return new Date(y, m, d).valueOf();\n }\n }\n\n function utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return Date.UTC(y, m, d);\n }\n }\n\n function startOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year(), 0, 1);\n break;\n case 'quarter':\n time = startOfDate(\n this.year(),\n this.month() - (this.month() % 3),\n 1\n );\n break;\n case 'month':\n time = startOfDate(this.year(), this.month(), 1);\n break;\n case 'week':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday()\n );\n break;\n case 'isoWeek':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1)\n );\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n case 'hour':\n time = this._d.valueOf();\n time -= mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n );\n break;\n case 'minute':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_MINUTE);\n break;\n case 'second':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_SECOND);\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function endOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n case 'quarter':\n time =\n startOfDate(\n this.year(),\n this.month() - (this.month() % 3) + 3,\n 1\n ) - 1;\n break;\n case 'month':\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n case 'week':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday() + 7\n ) - 1;\n break;\n case 'isoWeek':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1) + 7\n ) - 1;\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case 'hour':\n time = this._d.valueOf();\n time +=\n MS_PER_HOUR -\n mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n ) -\n 1;\n break;\n case 'minute':\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n break;\n case 'second':\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function valueOf() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n }\n\n function unix() {\n return Math.floor(this.valueOf() / 1000);\n }\n\n function toDate() {\n return new Date(this.valueOf());\n }\n\n function toArray() {\n var m = this;\n return [\n m.year(),\n m.month(),\n m.date(),\n m.hour(),\n m.minute(),\n m.second(),\n m.millisecond(),\n ];\n }\n\n function toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds(),\n };\n }\n\n function toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n }\n\n function isValid$2() {\n return isValid(this);\n }\n\n function parsingFlags() {\n return extend({}, getParsingFlags(this));\n }\n\n function invalidAt() {\n return getParsingFlags(this).overflow;\n }\n\n function creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict,\n };\n }\n\n addFormatToken('N', 0, 0, 'eraAbbr');\n addFormatToken('NN', 0, 0, 'eraAbbr');\n addFormatToken('NNN', 0, 0, 'eraAbbr');\n addFormatToken('NNNN', 0, 0, 'eraName');\n addFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\n addFormatToken('y', ['y', 1], 'yo', 'eraYear');\n addFormatToken('y', ['yy', 2], 0, 'eraYear');\n addFormatToken('y', ['yyy', 3], 0, 'eraYear');\n addFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\n addRegexToken('N', matchEraAbbr);\n addRegexToken('NN', matchEraAbbr);\n addRegexToken('NNN', matchEraAbbr);\n addRegexToken('NNNN', matchEraName);\n addRegexToken('NNNNN', matchEraNarrow);\n\n addParseToken(\n ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],\n function (input, array, config, token) {\n var era = config._locale.erasParse(input, token, config._strict);\n if (era) {\n getParsingFlags(config).era = era;\n } else {\n getParsingFlags(config).invalidEra = input;\n }\n }\n );\n\n addRegexToken('y', matchUnsigned);\n addRegexToken('yy', matchUnsigned);\n addRegexToken('yyy', matchUnsigned);\n addRegexToken('yyyy', matchUnsigned);\n addRegexToken('yo', matchEraYearOrdinal);\n\n addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\n addParseToken(['yo'], function (input, array, config, token) {\n var match;\n if (config._locale._eraYearOrdinalRegex) {\n match = input.match(config._locale._eraYearOrdinalRegex);\n }\n\n if (config._locale.eraYearOrdinalParse) {\n array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n } else {\n array[YEAR] = parseInt(input, 10);\n }\n });\n\n function localeEras(m, format) {\n var i,\n l,\n date,\n eras = this._eras || getLocale('en')._eras;\n for (i = 0, l = eras.length; i < l; ++i) {\n switch (typeof eras[i].since) {\n case 'string':\n // truncate time\n date = hooks(eras[i].since).startOf('day');\n eras[i].since = date.valueOf();\n break;\n }\n\n switch (typeof eras[i].until) {\n case 'undefined':\n eras[i].until = +Infinity;\n break;\n case 'string':\n // truncate time\n date = hooks(eras[i].until).startOf('day').valueOf();\n eras[i].until = date.valueOf();\n break;\n }\n }\n return eras;\n }\n\n function localeErasParse(eraName, format, strict) {\n var i,\n l,\n eras = this.eras(),\n name,\n abbr,\n narrow;\n eraName = eraName.toUpperCase();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n name = eras[i].name.toUpperCase();\n abbr = eras[i].abbr.toUpperCase();\n narrow = eras[i].narrow.toUpperCase();\n\n if (strict) {\n switch (format) {\n case 'N':\n case 'NN':\n case 'NNN':\n if (abbr === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNN':\n if (name === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNNN':\n if (narrow === eraName) {\n return eras[i];\n }\n break;\n }\n } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n return eras[i];\n }\n }\n }\n\n function localeErasConvertYear(era, year) {\n var dir = era.since <= era.until ? +1 : -1;\n if (year === undefined) {\n return hooks(era.since).year();\n } else {\n return hooks(era.since).year() + (year - era.offset) * dir;\n }\n }\n\n function getEraName() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].name;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].name;\n }\n }\n\n return '';\n }\n\n function getEraNarrow() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].narrow;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].narrow;\n }\n }\n\n return '';\n }\n\n function getEraAbbr() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].abbr;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].abbr;\n }\n }\n\n return '';\n }\n\n function getEraYear() {\n var i,\n l,\n dir,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n dir = eras[i].since <= eras[i].until ? +1 : -1;\n\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (\n (eras[i].since <= val && val <= eras[i].until) ||\n (eras[i].until <= val && val <= eras[i].since)\n ) {\n return (\n (this.year() - hooks(eras[i].since).year()) * dir +\n eras[i].offset\n );\n }\n }\n\n return this.year();\n }\n\n function erasNameRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNameRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNameRegex : this._erasRegex;\n }\n\n function erasAbbrRegex(isStrict) {\n if (!hasOwnProp(this, '_erasAbbrRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasAbbrRegex : this._erasRegex;\n }\n\n function erasNarrowRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNarrowRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNarrowRegex : this._erasRegex;\n }\n\n function matchEraAbbr(isStrict, locale) {\n return locale.erasAbbrRegex(isStrict);\n }\n\n function matchEraName(isStrict, locale) {\n return locale.erasNameRegex(isStrict);\n }\n\n function matchEraNarrow(isStrict, locale) {\n return locale.erasNarrowRegex(isStrict);\n }\n\n function matchEraYearOrdinal(isStrict, locale) {\n return locale._eraYearOrdinalRegex || matchUnsigned;\n }\n\n function computeErasParse() {\n var abbrPieces = [],\n namePieces = [],\n narrowPieces = [],\n mixedPieces = [],\n i,\n l,\n erasName,\n erasAbbr,\n erasNarrow,\n eras = this.eras();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n erasName = regexEscape(eras[i].name);\n erasAbbr = regexEscape(eras[i].abbr);\n erasNarrow = regexEscape(eras[i].narrow);\n\n namePieces.push(erasName);\n abbrPieces.push(erasAbbr);\n narrowPieces.push(erasNarrow);\n mixedPieces.push(erasName);\n mixedPieces.push(erasAbbr);\n mixedPieces.push(erasNarrow);\n }\n\n this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n this._erasNarrowRegex = new RegExp(\n '^(' + narrowPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n addFormatToken(0, ['gg', 2], 0, function () {\n return this.weekYear() % 100;\n });\n\n addFormatToken(0, ['GG', 2], 0, function () {\n return this.isoWeekYear() % 100;\n });\n\n function addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [token, token.length], 0, getter);\n }\n\n addWeekYearFormatToken('gggg', 'weekYear');\n addWeekYearFormatToken('ggggg', 'weekYear');\n addWeekYearFormatToken('GGGG', 'isoWeekYear');\n addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n // ALIASES\n\n // PARSING\n\n addRegexToken('G', matchSigned);\n addRegexToken('g', matchSigned);\n addRegexToken('GG', match1to2, match2);\n addRegexToken('gg', match1to2, match2);\n addRegexToken('GGGG', match1to4, match4);\n addRegexToken('gggg', match1to4, match4);\n addRegexToken('GGGGG', match1to6, match6);\n addRegexToken('ggggg', match1to6, match6);\n\n addWeekParseToken(\n ['gggg', 'ggggg', 'GGGG', 'GGGGG'],\n function (input, week, config, token) {\n week[token.substr(0, 2)] = toInt(input);\n }\n );\n\n addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n });\n\n // MOMENTS\n\n function getSetWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.week(),\n this.weekday() + this.localeData()._week.dow,\n this.localeData()._week.dow,\n this.localeData()._week.doy\n );\n }\n\n function getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.isoWeek(),\n this.isoWeekday(),\n 1,\n 4\n );\n }\n\n function getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n }\n\n function getISOWeeksInISOWeekYear() {\n return weeksInYear(this.isoWeekYear(), 1, 4);\n }\n\n function getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n }\n\n function getWeeksInWeekYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n }\n\n function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) {\n return weekOfYear(this, dow, doy).year;\n } else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) {\n week = weeksTarget;\n }\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n }\n\n function setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n }\n\n // FORMATTING\n\n addFormatToken('Q', 0, 'Qo', 'quarter');\n\n // PARSING\n\n addRegexToken('Q', match1);\n addParseToken('Q', function (input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n });\n\n // MOMENTS\n\n function getSetQuarter(input) {\n return input == null\n ? Math.ceil((this.month() + 1) / 3)\n : this.month((input - 1) * 3 + (this.month() % 3));\n }\n\n // FORMATTING\n\n addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n // PARSING\n\n addRegexToken('D', match1to2, match1to2NoLeadingZero);\n addRegexToken('DD', match1to2, match2);\n addRegexToken('Do', function (isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict\n ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n : locale._dayOfMonthOrdinalParseLenient;\n });\n\n addParseToken(['D', 'DD'], DATE);\n addParseToken('Do', function (input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n });\n\n // MOMENTS\n\n var getSetDayOfMonth = makeGetSet('Date', true);\n\n // FORMATTING\n\n addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n // PARSING\n\n addRegexToken('DDD', match1to3);\n addRegexToken('DDDD', match3);\n addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n config._dayOfYear = toInt(input);\n });\n\n // HELPERS\n\n // MOMENTS\n\n function getSetDayOfYear(input) {\n var dayOfYear =\n Math.round(\n (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n ) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('m', ['mm', 2], 0, 'minute');\n\n // PARSING\n\n addRegexToken('m', match1to2, match1to2HasZero);\n addRegexToken('mm', match1to2, match2);\n addParseToken(['m', 'mm'], MINUTE);\n\n // MOMENTS\n\n var getSetMinute = makeGetSet('Minutes', false);\n\n // FORMATTING\n\n addFormatToken('s', ['ss', 2], 0, 'second');\n\n // PARSING\n\n addRegexToken('s', match1to2, match1to2HasZero);\n addRegexToken('ss', match1to2, match2);\n addParseToken(['s', 'ss'], SECOND);\n\n // MOMENTS\n\n var getSetSecond = makeGetSet('Seconds', false);\n\n // FORMATTING\n\n addFormatToken('S', 0, 0, function () {\n return ~~(this.millisecond() / 100);\n });\n\n addFormatToken(0, ['SS', 2], 0, function () {\n return ~~(this.millisecond() / 10);\n });\n\n addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n addFormatToken(0, ['SSSS', 4], 0, function () {\n return this.millisecond() * 10;\n });\n addFormatToken(0, ['SSSSS', 5], 0, function () {\n return this.millisecond() * 100;\n });\n addFormatToken(0, ['SSSSSS', 6], 0, function () {\n return this.millisecond() * 1000;\n });\n addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n return this.millisecond() * 10000;\n });\n addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n return this.millisecond() * 100000;\n });\n addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n return this.millisecond() * 1000000;\n });\n\n // PARSING\n\n addRegexToken('S', match1to3, match1);\n addRegexToken('SS', match1to3, match2);\n addRegexToken('SSS', match1to3, match3);\n\n var token, getSetMillisecond;\n for (token = 'SSSS'; token.length <= 9; token += 'S') {\n addRegexToken(token, matchUnsigned);\n }\n\n function parseMs(input, array) {\n array[MILLISECOND] = toInt(('0.' + input) * 1000);\n }\n\n for (token = 'S'; token.length <= 9; token += 'S') {\n addParseToken(token, parseMs);\n }\n\n getSetMillisecond = makeGetSet('Milliseconds', false);\n\n // FORMATTING\n\n addFormatToken('z', 0, 0, 'zoneAbbr');\n addFormatToken('zz', 0, 0, 'zoneName');\n\n // MOMENTS\n\n function getZoneAbbr() {\n return this._isUTC ? 'UTC' : '';\n }\n\n function getZoneName() {\n return this._isUTC ? 'Coordinated Universal Time' : '';\n }\n\n var proto = Moment.prototype;\n\n proto.add = add;\n proto.calendar = calendar$1;\n proto.clone = clone;\n proto.diff = diff;\n proto.endOf = endOf;\n proto.format = format;\n proto.from = from;\n proto.fromNow = fromNow;\n proto.to = to;\n proto.toNow = toNow;\n proto.get = stringGet;\n proto.invalidAt = invalidAt;\n proto.isAfter = isAfter;\n proto.isBefore = isBefore;\n proto.isBetween = isBetween;\n proto.isSame = isSame;\n proto.isSameOrAfter = isSameOrAfter;\n proto.isSameOrBefore = isSameOrBefore;\n proto.isValid = isValid$2;\n proto.lang = lang;\n proto.locale = locale;\n proto.localeData = localeData;\n proto.max = prototypeMax;\n proto.min = prototypeMin;\n proto.parsingFlags = parsingFlags;\n proto.set = stringSet;\n proto.startOf = startOf;\n proto.subtract = subtract;\n proto.toArray = toArray;\n proto.toObject = toObject;\n proto.toDate = toDate;\n proto.toISOString = toISOString;\n proto.inspect = inspect;\n if (typeof Symbol !== 'undefined' && Symbol.for != null) {\n proto[Symbol.for('nodejs.util.inspect.custom')] = function () {\n return 'Moment<' + this.format() + '>';\n };\n }\n proto.toJSON = toJSON;\n proto.toString = toString;\n proto.unix = unix;\n proto.valueOf = valueOf;\n proto.creationData = creationData;\n proto.eraName = getEraName;\n proto.eraNarrow = getEraNarrow;\n proto.eraAbbr = getEraAbbr;\n proto.eraYear = getEraYear;\n proto.year = getSetYear;\n proto.isLeapYear = getIsLeapYear;\n proto.weekYear = getSetWeekYear;\n proto.isoWeekYear = getSetISOWeekYear;\n proto.quarter = proto.quarters = getSetQuarter;\n proto.month = getSetMonth;\n proto.daysInMonth = getDaysInMonth;\n proto.week = proto.weeks = getSetWeek;\n proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n proto.weeksInYear = getWeeksInYear;\n proto.weeksInWeekYear = getWeeksInWeekYear;\n proto.isoWeeksInYear = getISOWeeksInYear;\n proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n proto.date = getSetDayOfMonth;\n proto.day = proto.days = getSetDayOfWeek;\n proto.weekday = getSetLocaleDayOfWeek;\n proto.isoWeekday = getSetISODayOfWeek;\n proto.dayOfYear = getSetDayOfYear;\n proto.hour = proto.hours = getSetHour;\n proto.minute = proto.minutes = getSetMinute;\n proto.second = proto.seconds = getSetSecond;\n proto.millisecond = proto.milliseconds = getSetMillisecond;\n proto.utcOffset = getSetOffset;\n proto.utc = setOffsetToUTC;\n proto.local = setOffsetToLocal;\n proto.parseZone = setOffsetToParsedOffset;\n proto.hasAlignedHourOffset = hasAlignedHourOffset;\n proto.isDST = isDaylightSavingTime;\n proto.isLocal = isLocal;\n proto.isUtcOffset = isUtcOffset;\n proto.isUtc = isUtc;\n proto.isUTC = isUtc;\n proto.zoneAbbr = getZoneAbbr;\n proto.zoneName = getZoneName;\n proto.dates = deprecate(\n 'dates accessor is deprecated. Use date instead.',\n getSetDayOfMonth\n );\n proto.months = deprecate(\n 'months accessor is deprecated. Use month instead',\n getSetMonth\n );\n proto.years = deprecate(\n 'years accessor is deprecated. Use year instead',\n getSetYear\n );\n proto.zone = deprecate(\n 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n getSetZone\n );\n proto.isDSTShifted = deprecate(\n 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n isDaylightSavingTimeShifted\n );\n\n function createUnix(input) {\n return createLocal(input * 1000);\n }\n\n function createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n }\n\n function preParsePostFormat(string) {\n return string;\n }\n\n var proto$1 = Locale.prototype;\n\n proto$1.calendar = calendar;\n proto$1.longDateFormat = longDateFormat;\n proto$1.invalidDate = invalidDate;\n proto$1.ordinal = ordinal;\n proto$1.preparse = preParsePostFormat;\n proto$1.postformat = preParsePostFormat;\n proto$1.relativeTime = relativeTime;\n proto$1.pastFuture = pastFuture;\n proto$1.set = set;\n proto$1.eras = localeEras;\n proto$1.erasParse = localeErasParse;\n proto$1.erasConvertYear = localeErasConvertYear;\n proto$1.erasAbbrRegex = erasAbbrRegex;\n proto$1.erasNameRegex = erasNameRegex;\n proto$1.erasNarrowRegex = erasNarrowRegex;\n\n proto$1.months = localeMonths;\n proto$1.monthsShort = localeMonthsShort;\n proto$1.monthsParse = localeMonthsParse;\n proto$1.monthsRegex = monthsRegex;\n proto$1.monthsShortRegex = monthsShortRegex;\n proto$1.week = localeWeek;\n proto$1.firstDayOfYear = localeFirstDayOfYear;\n proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\n proto$1.weekdays = localeWeekdays;\n proto$1.weekdaysMin = localeWeekdaysMin;\n proto$1.weekdaysShort = localeWeekdaysShort;\n proto$1.weekdaysParse = localeWeekdaysParse;\n\n proto$1.weekdaysRegex = weekdaysRegex;\n proto$1.weekdaysShortRegex = weekdaysShortRegex;\n proto$1.weekdaysMinRegex = weekdaysMinRegex;\n\n proto$1.isPM = localeIsPM;\n proto$1.meridiem = localeMeridiem;\n\n function get$1(format, index, field, setter) {\n var locale = getLocale(),\n utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n }\n\n function listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n\n if (index != null) {\n return get$1(format, index, field, 'month');\n }\n\n var i,\n out = [];\n for (i = 0; i < 12; i++) {\n out[i] = get$1(format, i, field, 'month');\n }\n return out;\n }\n\n // ()\n // (5)\n // (fmt, 5)\n // (fmt)\n // (true)\n // (true, 5)\n // (true, fmt, 5)\n // (true, fmt)\n function listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === 'boolean') {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n }\n\n var locale = getLocale(),\n shift = localeSorted ? locale._week.dow : 0,\n i,\n out = [];\n\n if (index != null) {\n return get$1(format, (index + shift) % 7, field, 'day');\n }\n\n for (i = 0; i < 7; i++) {\n out[i] = get$1(format, (i + shift) % 7, field, 'day');\n }\n return out;\n }\n\n function listMonths(format, index) {\n return listMonthsImpl(format, index, 'months');\n }\n\n function listMonthsShort(format, index) {\n return listMonthsImpl(format, index, 'monthsShort');\n }\n\n function listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n }\n\n function listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n }\n\n function listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n }\n\n getSetGlobalLocale('en', {\n eras: [\n {\n since: '0001-01-01',\n until: +Infinity,\n offset: 1,\n name: 'Anno Domini',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: 'Before Christ',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n toInt((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n // Side effect imports\n\n hooks.lang = deprecate(\n 'moment.lang is deprecated. Use moment.locale instead.',\n getSetGlobalLocale\n );\n hooks.langData = deprecate(\n 'moment.langData is deprecated. Use moment.localeData instead.',\n getLocale\n );\n\n var mathAbs = Math.abs;\n\n function abs() {\n var data = this._data;\n\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n\n return this;\n }\n\n function addSubtract$1(duration, input, value, direction) {\n var other = createDuration(input, value);\n\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n\n return duration._bubble();\n }\n\n // supports only 2.0-style add(1, 's') or add(duration)\n function add$1(input, value) {\n return addSubtract$1(this, input, value, 1);\n }\n\n // supports only 2.0-style subtract(1, 's') or subtract(duration)\n function subtract$1(input, value) {\n return addSubtract$1(this, input, value, -1);\n }\n\n function absCeil(number) {\n if (number < 0) {\n return Math.floor(number);\n } else {\n return Math.ceil(number);\n }\n }\n\n function bubble() {\n var milliseconds = this._milliseconds,\n days = this._days,\n months = this._months,\n data = this._data,\n seconds,\n minutes,\n hours,\n years,\n monthsFromDays;\n\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (\n !(\n (milliseconds >= 0 && days >= 0 && months >= 0) ||\n (milliseconds <= 0 && days <= 0 && months <= 0)\n )\n ) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n\n days += absFloor(hours / 24);\n\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n data.days = days;\n data.months = months;\n data.years = years;\n\n return this;\n }\n\n function daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return (days * 4800) / 146097;\n }\n\n function monthsToDays(months) {\n // the reverse of daysToMonths\n return (months * 146097) / 4800;\n }\n\n function as(units) {\n if (!this.isValid()) {\n return NaN;\n }\n var days,\n months,\n milliseconds = this._milliseconds;\n\n units = normalizeUnits(units);\n\n if (units === 'month' || units === 'quarter' || units === 'year') {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n switch (units) {\n case 'month':\n return months;\n case 'quarter':\n return months / 3;\n case 'year':\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch (units) {\n case 'week':\n return days / 7 + milliseconds / 6048e5;\n case 'day':\n return days + milliseconds / 864e5;\n case 'hour':\n return days * 24 + milliseconds / 36e5;\n case 'minute':\n return days * 1440 + milliseconds / 6e4;\n case 'second':\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case 'millisecond':\n return Math.floor(days * 864e5) + milliseconds;\n default:\n throw new Error('Unknown unit ' + units);\n }\n }\n }\n\n function makeAs(alias) {\n return function () {\n return this.as(alias);\n };\n }\n\n var asMilliseconds = makeAs('ms'),\n asSeconds = makeAs('s'),\n asMinutes = makeAs('m'),\n asHours = makeAs('h'),\n asDays = makeAs('d'),\n asWeeks = makeAs('w'),\n asMonths = makeAs('M'),\n asQuarters = makeAs('Q'),\n asYears = makeAs('y'),\n valueOf$1 = asMilliseconds;\n\n function clone$1() {\n return createDuration(this);\n }\n\n function get$2(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + 's']() : NaN;\n }\n\n function makeGetter(name) {\n return function () {\n return this.isValid() ? this._data[name] : NaN;\n };\n }\n\n var milliseconds = makeGetter('milliseconds'),\n seconds = makeGetter('seconds'),\n minutes = makeGetter('minutes'),\n hours = makeGetter('hours'),\n days = makeGetter('days'),\n months = makeGetter('months'),\n years = makeGetter('years');\n\n function weeks() {\n return absFloor(this.days() / 7);\n }\n\n var round = Math.round,\n thresholds = {\n ss: 44, // a few seconds to seconds\n s: 45, // seconds to minute\n m: 45, // minutes to hour\n h: 22, // hours to day\n d: 26, // days to month/week\n w: null, // weeks to month\n M: 11, // months to year\n };\n\n // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n }\n\n function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n var duration = createDuration(posNegDuration).abs(),\n seconds = round(duration.as('s')),\n minutes = round(duration.as('m')),\n hours = round(duration.as('h')),\n days = round(duration.as('d')),\n months = round(duration.as('M')),\n weeks = round(duration.as('w')),\n years = round(duration.as('y')),\n a =\n (seconds <= thresholds.ss && ['s', seconds]) ||\n (seconds < thresholds.s && ['ss', seconds]) ||\n (minutes <= 1 && ['m']) ||\n (minutes < thresholds.m && ['mm', minutes]) ||\n (hours <= 1 && ['h']) ||\n (hours < thresholds.h && ['hh', hours]) ||\n (days <= 1 && ['d']) ||\n (days < thresholds.d && ['dd', days]);\n\n if (thresholds.w != null) {\n a =\n a ||\n (weeks <= 1 && ['w']) ||\n (weeks < thresholds.w && ['ww', weeks]);\n }\n a = a ||\n (months <= 1 && ['M']) ||\n (months < thresholds.M && ['MM', months]) ||\n (years <= 1 && ['y']) || ['yy', years];\n\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n }\n\n // This function allows you to set the rounding function for relative time strings\n function getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) {\n return round;\n }\n if (typeof roundingFunction === 'function') {\n round = roundingFunction;\n return true;\n }\n return false;\n }\n\n // This function allows you to set a threshold for relative time strings\n function getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) {\n return false;\n }\n if (limit === undefined) {\n return thresholds[threshold];\n }\n thresholds[threshold] = limit;\n if (threshold === 's') {\n thresholds.ss = limit - 1;\n }\n return true;\n }\n\n function humanize(argWithSuffix, argThresholds) {\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var withSuffix = false,\n th = thresholds,\n locale,\n output;\n\n if (typeof argWithSuffix === 'object') {\n argThresholds = argWithSuffix;\n argWithSuffix = false;\n }\n if (typeof argWithSuffix === 'boolean') {\n withSuffix = argWithSuffix;\n }\n if (typeof argThresholds === 'object') {\n th = Object.assign({}, thresholds, argThresholds);\n if (argThresholds.s != null && argThresholds.ss == null) {\n th.ss = argThresholds.s - 1;\n }\n }\n\n locale = this.localeData();\n output = relativeTime$1(this, !withSuffix, th, locale);\n\n if (withSuffix) {\n output = locale.pastFuture(+this, output);\n }\n\n return locale.postformat(output);\n }\n\n var abs$1 = Math.abs;\n\n function sign(x) {\n return (x > 0) - (x < 0) || +x;\n }\n\n function toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var seconds = abs$1(this._milliseconds) / 1000,\n days = abs$1(this._days),\n months = abs$1(this._months),\n minutes,\n hours,\n years,\n s,\n total = this.asSeconds(),\n totalSign,\n ymSign,\n daysSign,\n hmsSign;\n\n if (!total) {\n // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return 'P0D';\n }\n\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n totalSign = total < 0 ? '-' : '';\n ymSign = sign(this._months) !== sign(total) ? '-' : '';\n daysSign = sign(this._days) !== sign(total) ? '-' : '';\n hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n return (\n totalSign +\n 'P' +\n (years ? ymSign + years + 'Y' : '') +\n (months ? ymSign + months + 'M' : '') +\n (days ? daysSign + days + 'D' : '') +\n (hours || minutes || seconds ? 'T' : '') +\n (hours ? hmsSign + hours + 'H' : '') +\n (minutes ? hmsSign + minutes + 'M' : '') +\n (seconds ? hmsSign + s + 'S' : '')\n );\n }\n\n var proto$2 = Duration.prototype;\n\n proto$2.isValid = isValid$1;\n proto$2.abs = abs;\n proto$2.add = add$1;\n proto$2.subtract = subtract$1;\n proto$2.as = as;\n proto$2.asMilliseconds = asMilliseconds;\n proto$2.asSeconds = asSeconds;\n proto$2.asMinutes = asMinutes;\n proto$2.asHours = asHours;\n proto$2.asDays = asDays;\n proto$2.asWeeks = asWeeks;\n proto$2.asMonths = asMonths;\n proto$2.asQuarters = asQuarters;\n proto$2.asYears = asYears;\n proto$2.valueOf = valueOf$1;\n proto$2._bubble = bubble;\n proto$2.clone = clone$1;\n proto$2.get = get$2;\n proto$2.milliseconds = milliseconds;\n proto$2.seconds = seconds;\n proto$2.minutes = minutes;\n proto$2.hours = hours;\n proto$2.days = days;\n proto$2.weeks = weeks;\n proto$2.months = months;\n proto$2.years = years;\n proto$2.humanize = humanize;\n proto$2.toISOString = toISOString$1;\n proto$2.toString = toISOString$1;\n proto$2.toJSON = toISOString$1;\n proto$2.locale = locale;\n proto$2.localeData = localeData;\n\n proto$2.toIsoString = deprecate(\n 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n toISOString$1\n );\n proto$2.lang = lang;\n\n // FORMATTING\n\n addFormatToken('X', 0, 0, 'unix');\n addFormatToken('x', 0, 0, 'valueOf');\n\n // PARSING\n\n addRegexToken('x', matchSigned);\n addRegexToken('X', matchTimestamp);\n addParseToken('X', function (input, array, config) {\n config._d = new Date(parseFloat(input) * 1000);\n });\n addParseToken('x', function (input, array, config) {\n config._d = new Date(toInt(input));\n });\n\n //! moment.js\n\n hooks.version = '2.30.1';\n\n setHookCallback(createLocal);\n\n hooks.fn = proto;\n hooks.min = min;\n hooks.max = max;\n hooks.now = now;\n hooks.utc = createUTC;\n hooks.unix = createUnix;\n hooks.months = listMonths;\n hooks.isDate = isDate;\n hooks.locale = getSetGlobalLocale;\n hooks.invalid = createInvalid;\n hooks.duration = createDuration;\n hooks.isMoment = isMoment;\n hooks.weekdays = listWeekdays;\n hooks.parseZone = createInZone;\n hooks.localeData = getLocale;\n hooks.isDuration = isDuration;\n hooks.monthsShort = listMonthsShort;\n hooks.weekdaysMin = listWeekdaysMin;\n hooks.defineLocale = defineLocale;\n hooks.updateLocale = updateLocale;\n hooks.locales = listLocales;\n hooks.weekdaysShort = listWeekdaysShort;\n hooks.normalizeUnits = normalizeUnits;\n hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n hooks.calendarFormat = getCalendarFormat;\n hooks.prototype = proto;\n\n // currently HTML5 input type only supports 24-hour formats\n hooks.HTML5_FMT = {\n DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // \n DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // \n DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // \n DATE: 'YYYY-MM-DD', // \n TIME: 'HH:mm', // \n TIME_SECONDS: 'HH:mm:ss', // \n TIME_MS: 'HH:mm:ss.SSS', // \n WEEK: 'GGGG-[W]WW', // \n MONTH: 'YYYY-MM', // \n };\n\n return hooks;\n\n})));\n","import moment from 'moment';\nimport Notify from 'simple-notify';\n\nimport {\n ASH_COUNTER_TYPE_COUNT,\n ASH_COUNTERS_MATCH,\n DURATION_WARNING_FACTOR,\n EMBER_COUNTER_TYPE_COUNT,\n EMBER_COUNTERS_PER_DEVICE_IRRELEVANTS,\n FAILED_PING_1_ATTEMPT_MATCH,\n FAILED_PING_2_ATTEMPTS_MATCH,\n FAILED_PING_MATCH,\n MIN_DURATION,\n NCP_COUNTERS_MATCH,\n NETWORK_ROUTE_ERROR_MATCH,\n ROUTING_ERROR_DUP_IGNORE_MS,\n START_OFFSET,\n TIMESTAMP_REGEX,\n} from './consts';\nimport {\n ASH_COUNTERS_NOTICE,\n EMBER_STACK_ERRORS_NOTICE,\n IDEAL_ASH_COUNTERS,\n IDEAL_ASH_COUNTERS_FACTORS,\n IDEAL_NCP_COUNTERS,\n IDEAL_NCP_COUNTERS_FACTORS,\n IDEAL_ROUTER_RATIO,\n NCP_COUNTERS_NOTICE,\n} from './data';\nimport { getValueClassName, makeButton, makeListCard, makeMessage, makeTable, makeTableContainer } from './dom';\nimport { NotifyError } from './notify-error';\nimport {\n AshCounters,\n EmberCounters,\n LogAshCounters,\n LogFailedPings,\n LogMetadata,\n LogNcpCounters,\n LogNetworkRouteErrors,\n TableCellData,\n} from './types';\nimport { round, toHex } from './utils';\nimport { AshCounterType, EmberCounterType, EmberStackError } from './zh';\n\n/** z2m default */\nlet timestampFormat: string = 'YYYY-MM-DD HH:mm:ss';\nlet routers: number = 0;\nlet endDevices: number = 0;\nlet totalDevices: number = 0;\nlet logFile: File;\nconst logMetadata: LogMetadata = {\n lines: 0,\n start: undefined,\n end: undefined,\n duration: 0,\n startOffset: undefined,\n};\n\nconst ncpCountersSum: EmberCounters = [\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n];\nconst ncpCountersHoursCount: [\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n ],\n};\nconst ashCountersSum: AshCounters = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\nconst ashCountersHoursCount: [\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n\nconst ashCounters: LogAshCounters = {\n all: [],\n avg: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n avgPerDevice: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n avgForHour: [\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n ],\n};\n\nconst networkRouteErrors: LogNetworkRouteErrors = {\n all: [],\n};\n\nconst failedPings: LogFailedPings = {\n all: [],\n};\n\nfunction initVariables(): void {\n routers = 0;\n endDevices = 0;\n totalDevices = 0;\n // @ts-expect-error whatever\n logFile = undefined;\n logMetadata.lines = 0;\n logMetadata.start = undefined;\n logMetadata.end = undefined;\n logMetadata.duration = 0;\n logMetadata.startOffset = undefined;\n\n ncpCountersSum.fill(0);\n ncpCountersHoursCount.fill(0);\n ncpCounters.all = [];\n ncpCounters.avg.fill(0);\n ncpCounters.avgPerDevice.fill(0);\n\n for (let i = 0; i < ncpCounters.avgForHour.length; i++) {\n ncpCounters.avgForHour[i].fill(0);\n }\n\n ashCountersSum.fill(0);\n ashCountersHoursCount.fill(0);\n ashCounters.all = [];\n ashCounters.avg.fill(0);\n ashCounters.avgPerDevice.fill(0);\n\n for (let i = 0; i < ashCounters.avgForHour.length; i++) {\n ashCounters.avgForHour[i].fill(0);\n }\n\n networkRouteErrors.all = [];\n}\n\n// Adapted @from https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/read#example_2_-_handling_text_line_by_line\nasync function* makeTextFileLineIterator(file: File): AsyncGenerator {\n const utf8Decoder = new TextDecoder('utf8');\n const reader = file.stream().getReader();\n let { value, done } = await reader.read();\n let chunk = value ? utf8Decoder.decode(value, { stream: true }) : '';\n\n const re = /\\r\\n|\\n|\\r/gm;\n let startIndex = 0;\n\n for (;;) {\n const result = re.exec(chunk);\n\n if (!result) {\n if (done) {\n break;\n }\n\n const remainder = chunk.slice(startIndex);\n\n ({ value, done } = await reader.read());\n\n chunk = remainder + (value ? utf8Decoder.decode(value, { stream: true }) : '');\n // eslint-disable-next-line no-multi-assign\n startIndex = re.lastIndex = 0;\n\n continue;\n }\n\n yield chunk.slice(startIndex, result.index);\n\n startIndex = re.lastIndex;\n }\n\n if (startIndex < chunk.length) {\n // last line didn't end in a newline char\n yield chunk.slice(startIndex);\n }\n}\n\nfunction parseLogLine(line: string): void {\n const timestampMatch = line.match(TIMESTAMP_REGEX);\n\n if (!timestampMatch) {\n // shouldn't happen with new logging, but just in case, ignore lines without timestamp\n return;\n }\n\n logMetadata.lines++;\n\n const timestampStr = timestampMatch[0].slice(1, -1);\n const timestamp = new Date(timestampStr);\n\n if (!logMetadata.start) {\n logMetadata.start = timestamp;\n logMetadata.startOffset = new Date(timestamp.getTime() + START_OFFSET);\n }\n\n logMetadata.end = timestamp;\n const hour = timestamp.getHours();\n\n const ncpCountersIndex = line.indexOf(NCP_COUNTERS_MATCH);\n\n if (ncpCountersIndex !== -1) {\n const subLine = line.slice(ncpCountersIndex + NCP_COUNTERS_MATCH.length);\n const counters = subLine.split(',').map((v) => Number.parseInt(v, 10));\n\n if (counters.length !== EMBER_COUNTER_TYPE_COUNT) {\n return;\n }\n\n // @ts-expect-error length validated above\n ncpCounters.all.push([timestamp, ...counters]);\n\n for (let i = 0; i < EMBER_COUNTER_TYPE_COUNT; i++) {\n // TODO: deal with 65535 & rollover\n const cI = counters[i];\n ncpCountersSum[i] += cI;\n ncpCounters.avgForHour[hour][i] += cI;\n }\n\n ncpCountersHoursCount[hour] += 1;\n\n return;\n }\n\n const ashCountersIndex = line.indexOf(ASH_COUNTERS_MATCH);\n\n if (ashCountersIndex !== -1) {\n const subLine = line.slice(ashCountersIndex + ASH_COUNTERS_MATCH.length);\n const counters = subLine.split(',').map((v) => Number.parseInt(v, 10));\n\n if (counters.length !== ASH_COUNTER_TYPE_COUNT) {\n return;\n }\n\n // @ts-expect-error length validated above\n ashCounters.all.push([timestamp, ...counters]);\n\n for (let i = 0; i < ASH_COUNTER_TYPE_COUNT; i++) {\n const cI = counters[i];\n ashCountersSum[i] += cI;\n ashCounters.avgForHour[hour][i] += cI;\n }\n\n ashCountersHoursCount[hour] += 1;\n\n return;\n }\n\n const networkRouteErrorIndex = line.indexOf(NETWORK_ROUTE_ERROR_MATCH);\n\n if (networkRouteErrorIndex !== -1) {\n // ignore network/route errors around Z2M start\n if (timestamp < logMetadata.startOffset!) {\n return;\n }\n\n const subLine = line.slice(networkRouteErrorIndex + NETWORK_ROUTE_ERROR_MATCH.length);\n const splitLine = subLine.split(' '); // ['ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE', 'for', '\"38837\".']\n const error = splitLine[0];\n const device = Number.parseInt(splitLine[2].slice(1, -2), 10);\n\n if (networkRouteErrors.all.length > 0) {\n const prev = networkRouteErrors.all.at(-1);\n\n if (prev) {\n const countOffset = prev[0].getTime() + ROUTING_ERROR_DUP_IGNORE_MS;\n\n // count duplicate errors within short period instead\n if (prev[1] === device && prev[2] === error && timestamp.getTime() < countOffset) {\n prev[3] += 1;\n return;\n }\n }\n }\n\n networkRouteErrors.all.push([timestamp, device, error, 1]);\n\n return;\n }\n\n const failedPingIndex = line.indexOf(FAILED_PING_MATCH);\n\n if (failedPingIndex !== -1) {\n const subLine = line.slice(failedPingIndex + FAILED_PING_MATCH.length);\n\n // only count if all attempts failed\n if (subLine.includes(FAILED_PING_2_ATTEMPTS_MATCH) || subLine.includes(FAILED_PING_1_ATTEMPT_MATCH)) {\n const device = subLine.slice(0, subLine.indexOf(`'`));\n\n failedPings.all.push([timestamp, device]);\n }\n\n // return;\n }\n}\n\nasync function parseLogFile(): Promise {\n if (!logFile) {\n throw new NotifyError('Load a log file from the menu first.', 'No log file');\n }\n\n for await (const line of makeTextFileLineIterator(logFile)) {\n parseLogLine(line);\n }\n\n if (!logMetadata.start || !logMetadata.end) {\n throw new NotifyError('Could not retrieve start or end timestamps from log file.', 'Invalid start or end timestamp');\n }\n\n logMetadata.duration = (logMetadata.end.getTime() - logMetadata.start.getTime()) / 1000 / 3600;\n\n if (logMetadata.duration < MIN_DURATION) {\n throw new NotifyError('Log analysis over such a duration would be irrelevant.', 'Log duration too short');\n }\n\n const ncpCountersCount = ncpCounters.all.length;\n\n if (ncpCountersCount > 0) {\n let i = 0;\n\n for (const c of ncpCountersSum) {\n const avg = c / ncpCountersCount;\n\n ncpCounters.avg[i] = round(avg, 2);\n ncpCounters.avgPerDevice[i] = round(avg / totalDevices, 4);\n i++;\n }\n\n // divide the computed sum to get actual average\n for (let hour = 0; hour < ncpCounters.avgForHour.length; hour++) {\n for (let counter = 0; counter < EMBER_COUNTER_TYPE_COUNT; counter++) {\n ncpCounters.avgForHour[hour][counter] = round(ncpCounters.avgForHour[hour][counter] / ncpCountersHoursCount[hour], 2);\n }\n }\n }\n\n const ashCountersCount = ashCounters.all.length;\n\n if (ashCountersCount > 0) {\n let i = 0;\n\n for (const c of ashCountersSum) {\n const avg = c / ashCountersCount;\n\n ashCounters.avg[i] = round(avg, 2);\n ashCounters.avgPerDevice[i] = round(avg / totalDevices, 4);\n i++;\n }\n\n // divide the computed sum to get actual average\n for (let hour = 0; hour < ashCounters.avgForHour.length; hour++) {\n for (let counter = 0; counter < EMBER_COUNTER_TYPE_COUNT; counter++) {\n ashCounters.avgForHour[hour][counter] = round(ashCounters.avgForHour[hour][counter] / ashCountersHoursCount[hour], 2);\n }\n }\n }\n}\n\nfunction appendStatsSection(section: HTMLDivElement): void {\n const grid = document.createElement('div');\n grid.className = 'grid';\n\n const ratio = endDevices > 0 ? round(routers / endDevices, 2) : -1;\n const parametersList = [`Number of routers: ${routers}`, `Number of end devices: ${endDevices}`];\n\n if (ratio !== -1) {\n parametersList.push(`Routers to end devices ratio: ${ratio} (Ideal: above ${IDEAL_ROUTER_RATIO})`);\n\n const warningRatio = totalDevices > 10 && ratio < IDEAL_ROUTER_RATIO;\n\n if (warningRatio) {\n parametersList.push(`\\u26A0 You may want to increase the number of routers in your network`);\n }\n }\n\n const parametersCard = makeListCard('Parameters', parametersList);\n const warningDuration = logMetadata.duration < DURATION_WARNING_FACTOR;\n const logFileCard = makeListCard('Log file', [\n `Lines: ${logMetadata.lines}`,\n `Start: ${moment(logMetadata.start).format(timestampFormat)}`,\n `End: ${moment(logMetadata.end).format(timestampFormat)}`,\n `Ignore before (avoid starting \"noise\"): ${moment(logMetadata.startOffset).format(timestampFormat)}`,\n `Duration: ${round(logMetadata.duration, 2)} hours ${warningDuration ? '\\u26A0 This is likely too low to get relevant statistics' : ''}`,\n `NCP Counters: ${ncpCounters.all.length}`,\n `ASH Counters: ${ashCounters.all.length}`,\n `Network/Router Errors: ${networkRouteErrors.all.length}`,\n `Failed pings (all successive attempts): ${failedPings.all.length}`,\n ]);\n\n grid.append(parametersCard);\n grid.append(logFileCard);\n section.append(grid);\n\n const failedPingsByDevice: { [device: string /* friendly name */]: number } = {};\n\n for (const entry of failedPings.all) {\n const device = entry[1];\n\n failedPingsByDevice[device] = 1 + (failedPingsByDevice[device] ?? 0);\n }\n\n for (const device of Object.keys(failedPingsByDevice)) {\n const count = failedPingsByDevice[device];\n\n // show only if at least one fail per hour\n if (count > logMetadata.duration) {\n section.append(\n makeMessage(\n `Too many failed pings for '${device}' (x${count})`,\n 'This indicates an unreachable device on the network. If unavailable for long periods, consider disabling it to skip unnecessary network traffic.',\n 'is-warning',\n ),\n );\n }\n }\n}\n\nfunction appendNCPCountersSection(section: HTMLDivElement): void {\n if (ncpCounters.all.length === 0) {\n return;\n }\n\n const ncpCountersHeader: string[] = ['Timestamp'];\n const ncpCountersRows: TableCellData[][] = [];\n const ncpCountersIdealRows: TableCellData[] = [];\n const ncpCountersAvgPerDeviceRows: TableCellData[] = [];\n const ncpCountersAvgRows: TableCellData[] = [];\n const ncpCountersAvgForHourRows: [\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n ] = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];\n\n for (let i = 0; i < EMBER_COUNTER_TYPE_COUNT; i++) {\n ncpCountersHeader.push(`${EmberCounterType[i]}`);\n\n const counter = ncpCounters.avgPerDevice[i];\n const ideal = IDEAL_NCP_COUNTERS[i];\n\n ncpCountersIdealRows.push({ content: ideal.toString(), className: 'is-dark' });\n ncpCountersAvgPerDeviceRows.push({\n content: counter.toString(),\n className: EMBER_COUNTERS_PER_DEVICE_IRRELEVANTS.includes(i)\n ? 'is-invisible'\n : getValueClassName(counter, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[i]),\n });\n ncpCountersAvgRows.push({\n content: ncpCounters.avg[i].toString(),\n className: getValueClassName(counter, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[i]),\n });\n\n for (let hour = 0; hour < ncpCounters.avgForHour.length; hour++) {\n ncpCountersAvgForHourRows[hour].push({\n content: ncpCounters.avgForHour[hour][i].toString(),\n className: getValueClassName(ncpCounters.avgForHour[hour][i], ideal * totalDevices, ...IDEAL_NCP_COUNTERS_FACTORS[i]),\n });\n }\n }\n\n const tableContainerAvg = makeTableContainer(\n makeTable(\n ['', ...ncpCountersHeader.slice(1)],\n [],\n [\n [{ content: 'Ideal Per Device' }, ...ncpCountersIdealRows],\n [{ content: 'Average Per Device' }, ...ncpCountersAvgPerDeviceRows],\n [{ content: 'Average' }, ...ncpCountersAvgRows],\n ],\n ),\n );\n\n const tableContainerAvgForHour = makeTableContainer(\n makeTable(\n ['Average Hour Before', ...ncpCountersHeader.slice(1)],\n [],\n [\n [{ content: '00 (12AM)' }, ...ncpCountersAvgForHourRows[0]],\n [{ content: '01 (01AM)' }, ...ncpCountersAvgForHourRows[1]],\n [{ content: '02 (02AM)' }, ...ncpCountersAvgForHourRows[2]],\n [{ content: '03 (03AM)' }, ...ncpCountersAvgForHourRows[3]],\n [{ content: '04 (04AM)' }, ...ncpCountersAvgForHourRows[4]],\n [{ content: '05 (05AM)' }, ...ncpCountersAvgForHourRows[5]],\n [{ content: '06 (06AM)' }, ...ncpCountersAvgForHourRows[6]],\n [{ content: '07 (07AM)' }, ...ncpCountersAvgForHourRows[7]],\n [{ content: '08 (08AM)' }, ...ncpCountersAvgForHourRows[8]],\n [{ content: '09 (09AM)' }, ...ncpCountersAvgForHourRows[9]],\n [{ content: '10 (10AM)' }, ...ncpCountersAvgForHourRows[10]],\n [{ content: '11 (11AM)' }, ...ncpCountersAvgForHourRows[11]],\n [{ content: '12 (12PM)' }, ...ncpCountersAvgForHourRows[12]],\n [{ content: '13 (01PM)' }, ...ncpCountersAvgForHourRows[13]],\n [{ content: '14 (02PM)' }, ...ncpCountersAvgForHourRows[14]],\n [{ content: '15 (03PM)' }, ...ncpCountersAvgForHourRows[15]],\n [{ content: '16 (04PM)' }, ...ncpCountersAvgForHourRows[16]],\n [{ content: '17 (05PM)' }, ...ncpCountersAvgForHourRows[17]],\n [{ content: '18 (06PM)' }, ...ncpCountersAvgForHourRows[18]],\n [{ content: '19 (07PM)' }, ...ncpCountersAvgForHourRows[19]],\n [{ content: '20 (08PM)' }, ...ncpCountersAvgForHourRows[20]],\n [{ content: '21 (09PM)' }, ...ncpCountersAvgForHourRows[21]],\n [{ content: '22 (10PM)' }, ...ncpCountersAvgForHourRows[22]],\n [{ content: '23 (11PM)' }, ...ncpCountersAvgForHourRows[23]],\n ],\n true,\n ),\n );\n\n for (const entry of ncpCounters.all) {\n const row: TableCellData[] = [{ content: moment(entry[0]).format(timestampFormat) }];\n\n for (let i = 0; i < EMBER_COUNTER_TYPE_COUNT; i++) {\n const counter = entry[i + 1];\n\n row.push({\n content: counter.toString(),\n // @ts-expect-error Date is skipped in code, TS not narrowing\n className: getValueClassName(counter / totalDevices, IDEAL_NCP_COUNTERS[i], ...IDEAL_NCP_COUNTERS_FACTORS[i]),\n });\n }\n\n ncpCountersRows.push(row);\n }\n\n {\n const ashErrors =\n ncpCountersSum[EmberCounterType.ASH_OVERFLOW_ERROR] +\n ncpCountersSum[EmberCounterType.ASH_FRAMING_ERROR] +\n ncpCountersSum[EmberCounterType.ASH_OVERRUN_ERROR] +\n ncpCountersSum[EmberCounterType.ASH_XOFF];\n\n if (ashErrors !== 0) {\n const msg = makeMessage(\n `ASH errors detected (${ashErrors} times)`,\n 'This can indicate a bad connection with the adapter or an issue with the driver installed in the operating system.',\n 'is-danger',\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avgPerDevice[EmberCounterType.PHY_CCA_FAIL_COUNT];\n const ideal = IDEAL_NCP_COUNTERS[EmberCounterType.PHY_CCA_FAIL_COUNT];\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.PHY_CCA_FAIL_COUNT]);\n\n if (cls) {\n const msg = makeMessage(\n `CCA failure count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate interferences on the 2.4GHz band on or around the current channel (WiFi, other Zigbee...).',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avgPerDevice[EmberCounterType.ROUTE_DISCOVERY_INITIATED];\n const ideal = IDEAL_NCP_COUNTERS[EmberCounterType.ROUTE_DISCOVERY_INITIATED];\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.ROUTE_DISCOVERY_INITIATED]);\n\n if (cls) {\n const msg = makeMessage(\n `Initiated route discovery count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate general instability in the network (unresponsive devices, bad routers...).',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avgPerDevice[EmberCounterType.MAC_TX_UNICAST_RETRY];\n const ideal = IDEAL_NCP_COUNTERS[EmberCounterType.MAC_TX_UNICAST_RETRY];\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.MAC_TX_UNICAST_RETRY]);\n\n if (cls) {\n const msg = makeMessage(\n `Packet retry count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate general instability in your network (unresponsive devices, bad routers...).',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avgPerDevice[EmberCounterType.ADDRESS_CONFLICT_SENT];\n const ideal = IDEAL_NCP_COUNTERS[EmberCounterType.ADDRESS_CONFLICT_SENT];\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.ADDRESS_CONFLICT_SENT]);\n\n if (cls) {\n const msg = makeMessage(\n `Address conflicts detected (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate device(s) with poor firmware.',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avgPerDevice[EmberCounterType.BROADCAST_TABLE_FULL];\n const ideal = IDEAL_NCP_COUNTERS[EmberCounterType.BROADCAST_TABLE_FULL];\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.BROADCAST_TABLE_FULL]);\n\n if (cls) {\n const msg = makeMessage(\n `Broadcast table full detected (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate the network is relying too heavily on broadcasts (messages to the whole network or to groups).',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avg[EmberCounterType.NEIGHBOR_STALE];\n const ideal = 1;\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.NEIGHBOR_STALE]);\n\n if (cls) {\n const msg = makeMessage(\n `Stale neighbors count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate poor link quality between devices. Note: This is influenced by pairing/re-pairing.',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n section.append(tableContainerAvg);\n section.append(tableContainerAvgForHour);\n\n const showAllButton = makeButton('Show All', 'is-primary');\n\n showAllButton.addEventListener('click', () => {\n showAllButton.remove();\n\n const tableContainerAll = makeTableContainer(makeTable(ncpCountersHeader, [], ncpCountersRows, true));\n\n section.append(tableContainerAll);\n });\n\n section.append(showAllButton);\n}\n\nfunction appendASHCountersSection(section: HTMLDivElement): void {\n if (ashCounters.all.length === 0) {\n return;\n }\n\n const ashCountersHeader: string[] = ['Timestamp'];\n const ashCountersRows: TableCellData[][] = [];\n const ashCountersIdealRows: TableCellData[] = [];\n const ashCountersAvgPerDeviceRows: TableCellData[] = [];\n const ashCountersAvgRows: TableCellData[] = [];\n const ashCountersAvgForHourRows: [\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n ] = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];\n\n for (let i = 0; i < ASH_COUNTER_TYPE_COUNT; i++) {\n ashCountersHeader.push(`${AshCounterType[i]}`);\n\n const counter = ashCounters.avgPerDevice[i];\n const ideal = IDEAL_ASH_COUNTERS[i];\n\n ashCountersIdealRows.push({ content: ideal.toString(), className: 'is-dark' });\n ashCountersAvgPerDeviceRows.push({\n content: counter.toString(),\n className: getValueClassName(counter, ideal, ...IDEAL_ASH_COUNTERS_FACTORS[i]),\n });\n ashCountersAvgRows.push({\n content: ashCounters.avg[i].toString(),\n className: getValueClassName(counter, ideal, ...IDEAL_ASH_COUNTERS_FACTORS[i]),\n });\n\n for (let hour = 0; hour < ashCounters.avgForHour.length; hour++) {\n ashCountersAvgForHourRows[hour].push({\n content: ashCounters.avgForHour[hour][i].toString(),\n className: getValueClassName(ashCounters.avgForHour[hour][i], ideal * totalDevices, ...IDEAL_ASH_COUNTERS_FACTORS[i]),\n });\n }\n }\n\n const tableContainerAvg = makeTableContainer(\n makeTable(\n ['', ...ashCountersHeader.slice(1)],\n [],\n [\n [{ content: 'Ideal Per Device' }, ...ashCountersIdealRows],\n [{ content: 'Average Per Device' }, ...ashCountersAvgPerDeviceRows],\n [{ content: 'Average' }, ...ashCountersAvgRows],\n ],\n ),\n );\n\n const tableContainerAvgForHour = makeTableContainer(\n makeTable(\n ['Average Hour Before', ...ashCountersHeader.slice(1)],\n [],\n [\n [{ content: '00 (12AM)' }, ...ashCountersAvgForHourRows[0]],\n [{ content: '01 (01AM)' }, ...ashCountersAvgForHourRows[1]],\n [{ content: '02 (02AM)' }, ...ashCountersAvgForHourRows[2]],\n [{ content: '03 (03AM)' }, ...ashCountersAvgForHourRows[3]],\n [{ content: '04 (04AM)' }, ...ashCountersAvgForHourRows[4]],\n [{ content: '05 (05AM)' }, ...ashCountersAvgForHourRows[5]],\n [{ content: '06 (06AM)' }, ...ashCountersAvgForHourRows[6]],\n [{ content: '07 (07AM)' }, ...ashCountersAvgForHourRows[7]],\n [{ content: '08 (08AM)' }, ...ashCountersAvgForHourRows[8]],\n [{ content: '09 (09AM)' }, ...ashCountersAvgForHourRows[9]],\n [{ content: '10 (10AM)' }, ...ashCountersAvgForHourRows[10]],\n [{ content: '11 (11AM)' }, ...ashCountersAvgForHourRows[11]],\n [{ content: '12 (12PM)' }, ...ashCountersAvgForHourRows[12]],\n [{ content: '13 (01PM)' }, ...ashCountersAvgForHourRows[13]],\n [{ content: '14 (02PM)' }, ...ashCountersAvgForHourRows[14]],\n [{ content: '15 (03PM)' }, ...ashCountersAvgForHourRows[15]],\n [{ content: '16 (04PM)' }, ...ashCountersAvgForHourRows[16]],\n [{ content: '17 (05PM)' }, ...ashCountersAvgForHourRows[17]],\n [{ content: '18 (06PM)' }, ...ashCountersAvgForHourRows[18]],\n [{ content: '19 (07PM)' }, ...ashCountersAvgForHourRows[19]],\n [{ content: '20 (08PM)' }, ...ashCountersAvgForHourRows[20]],\n [{ content: '21 (09PM)' }, ...ashCountersAvgForHourRows[21]],\n [{ content: '22 (10PM)' }, ...ashCountersAvgForHourRows[22]],\n [{ content: '23 (11PM)' }, ...ashCountersAvgForHourRows[23]],\n ],\n true,\n ),\n );\n\n for (const entry of ashCounters.all) {\n const row: TableCellData[] = [{ content: moment(entry[0]).format(timestampFormat) }];\n\n for (let i = 0; i < ASH_COUNTER_TYPE_COUNT; i++) {\n const counter = entry[i + 1];\n\n row.push({\n content: counter.toString(),\n // @ts-expect-error Date is skipped in code, TS not narrowing\n className: getValueClassName(counter / totalDevices, IDEAL_ASH_COUNTERS[i], ...IDEAL_ASH_COUNTERS_FACTORS[i]),\n });\n }\n\n ashCountersRows.push(row);\n }\n\n {\n const val = ashCounters.avgPerDevice[AshCounterType.TX_N1_FRAMES];\n const ideal = IDEAL_ASH_COUNTERS[AshCounterType.TX_N1_FRAMES];\n const cls = getValueClassName(val, ideal, ...IDEAL_ASH_COUNTERS_FACTORS[AshCounterType.TX_N1_FRAMES]);\n\n if (cls) {\n const msg = makeMessage(\n `\"Not ready\" transaction count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate heavy spamming from devices. Zigbee2MQTT was forced to regulate the flow.',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ashCounters.avgPerDevice[AshCounterType.RX_NO_BUFFER];\n const ideal = IDEAL_ASH_COUNTERS[AshCounterType.RX_NO_BUFFER];\n const cls = getValueClassName(val, ideal, ...IDEAL_ASH_COUNTERS_FACTORS[AshCounterType.RX_NO_BUFFER]);\n\n if (cls) {\n const msg = makeMessage(\n `Out of buffer count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate heavy spamming from devices. Zigbee2MQTT was forced to drop messages.',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const rxBad =\n ashCounters.avg[AshCounterType.RX_CRC_ERRORS] +\n ashCounters.avg[AshCounterType.RX_COMM_ERRORS] +\n ashCounters.avg[AshCounterType.RX_TOO_SHORT] +\n ashCounters.avg[AshCounterType.RX_TOO_LONG] +\n ashCounters.avg[AshCounterType.RX_BAD_CONTROL] +\n ashCounters.avg[AshCounterType.RX_BAD_LENGTH] +\n ashCounters.avg[AshCounterType.RX_BAD_ACK_NUMBER] +\n ashCounters.avg[AshCounterType.RX_OUT_OF_SEQUENCE] +\n ashCounters.avg[AshCounterType.RX_ACK_TIMEOUTS];\n const cls = getValueClassName(rxBad, 1, 5, 10, false);\n\n if (cls) {\n const msg = makeMessage(\n `Error count with received messages is high (${rxBad} times)`,\n 'This can indicate general instability (adapter/network).',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n section.append(tableContainerAvg);\n section.append(tableContainerAvgForHour);\n\n const showAllButton = makeButton('Show All', 'is-primary');\n\n showAllButton.addEventListener('click', () => {\n showAllButton.remove();\n\n const tableContainerAll = makeTableContainer(makeTable(ashCountersHeader, [], ashCountersRows, true));\n\n section.append(tableContainerAll);\n });\n\n section.append(showAllButton);\n}\n\nfunction appendRoutingSection(section: HTMLDivElement): void {\n if (networkRouteErrors.all.length === 0) {\n return;\n }\n\n const rows: TableCellData[][] = [];\n const errorsByDevice: { [error: string /* EmberStackError */]: { [device: number]: number } } = {};\n\n for (const entry of networkRouteErrors.all) {\n const device = entry[1];\n const error = entry[2];\n const count = entry[3];\n\n if (errorsByDevice[error] === undefined) {\n errorsByDevice[error] = {};\n }\n\n errorsByDevice[error][device] = errorsByDevice[error][device] === undefined ? count : errorsByDevice[error][device] + count;\n\n if (count > 2) {\n rows.push([\n { content: moment(entry[0]).format(timestampFormat) },\n { content: `${device} / ${toHex(device)}` },\n { content: error },\n { content: count.toString() },\n ]);\n }\n }\n\n const tableContainer = makeTableContainer(\n makeTable(\n [\n 'Timestamp',\n 'Device / Hex',\n 'Error',\n 'Count',\n ],\n [],\n rows,\n true,\n ),\n );\n\n // eslint-disable-next-line guard-for-in\n for (const error in errorsByDevice) {\n const rowsByError: TableCellData[][] = [];\n\n // eslint-disable-next-line guard-for-in\n for (const k in errorsByDevice[error]) {\n const deviceAvgPerHour = round(errorsByDevice[error][k] / logMetadata.duration, 4);\n\n // only display msg for device if average per hour is high\n if (deviceAvgPerHour > 0.1) {\n rowsByError.push([\n { content: `${k} / ${toHex(Number.parseInt(k, 10))}` },\n { content: deviceAvgPerHour.toString(), className: getValueClassName(deviceAvgPerHour, 0.1, 10, 20) },\n ]);\n }\n }\n\n if (rowsByError.length > 0) {\n const tableContainer = makeTableContainer(makeTable(['Device / Hex', 'Errors per hour'], [], rowsByError, true));\n\n const notice = EMBER_STACK_ERRORS_NOTICE[EmberStackError[error as keyof typeof EmberStackError]];\n const msg = makeMessage(`${error}`, notice === '' ? `` : `

${notice}

`, 'is-warning is-table-header');\n\n section.append(msg);\n section.append(tableContainer);\n }\n }\n\n section.append(makeMessage(`Errors appearing at least 3 times in succession`, ``, 'is-danger is-table-header'));\n section.append(tableContainer);\n}\n\nwindow.addEventListener('load', () => {\n initVariables();\n\n const $loadForm = document.querySelector('#log-file-form')! as HTMLFormElement;\n const $heroBody = document.querySelector('#hero-body')!;\n const $menuHomeLink = document.querySelector('#menu-home')! as HTMLLinkElement;\n const $sectionHome = document.querySelector('#section-home')! as HTMLDivElement;\n const $menuStatsLink = document.querySelector('#menu-stats')! as HTMLLinkElement;\n const $sectionStats = document.querySelector('#section-stats')! as HTMLDivElement;\n const $menuNcpCountersLink = document.querySelector('#menu-ncp-counters')! as HTMLLinkElement;\n const $sectionNcpCounters = document.querySelector('#section-ncp-counters')! as HTMLDivElement;\n const $menuAshCountersLink = document.querySelector('#menu-ash-counters')! as HTMLLinkElement;\n const $sectionAshCounters = document.querySelector('#section-ash-counters')! as HTMLDivElement;\n const $menuRoutingLink = document.querySelector('#menu-routing')! as HTMLLinkElement;\n const $sectionRouting = document.querySelector('#section-routing')! as HTMLDivElement;\n const $menuToolsLink = document.querySelector('#menu-tools')! as HTMLLinkElement;\n const $sectionTools = document.querySelector('#section-tools')! as HTMLDivElement;\n const $menuHelpLink = document.querySelector('#menu-help')! as HTMLLinkElement;\n const $sectionHelp = document.querySelector('#section-help')! as HTMLDivElement;\n const menu: [HTMLLinkElement, HTMLDivElement][] = [\n [$menuHomeLink, $sectionHome],\n [$menuStatsLink, $sectionStats],\n [$menuNcpCountersLink, $sectionNcpCounters],\n [$menuAshCountersLink, $sectionAshCounters],\n [$menuRoutingLink, $sectionRouting],\n [$menuToolsLink, $sectionTools],\n [$menuHelpLink, $sectionHelp],\n ];\n\n for (const [$link, $section] of menu) {\n $link.addEventListener('click', () => {\n // li\n $link.parentElement!.className = 'is-active';\n $section.className = 'section';\n\n for (const [$otherLink, $otherSection] of menu.filter((m) => m[0] !== $link)) {\n $otherLink.parentElement!.className = '';\n $otherSection.className = 'section is-hidden';\n }\n });\n }\n\n $loadForm.addEventListener('submit', async (event: SubmitEvent) => {\n event.preventDefault();\n initVariables();\n const data = new FormData($loadForm);\n\n timestampFormat = data.get('timestamp-format') as string;\n\n routers = Number.parseInt(data.get('number-routers') as string, 10);\n\n if (Number.isNaN(routers) || routers < 0) {\n throw new NotifyError('Number of routers must be at least 0.', 'Invalid number of routers');\n }\n\n endDevices = Number.parseInt(data.get('number-devices') as string, 10);\n\n if (Number.isNaN(endDevices) || endDevices < 0) {\n throw new NotifyError('Number of end devices must be at least 0.', 'Invalid number of end devices');\n }\n\n totalDevices = routers + endDevices;\n\n if (Number.isNaN(totalDevices) || totalDevices <= 0) {\n throw new NotifyError('Total number of devices must be at least 1.', 'Invalid total number of devices');\n }\n\n logFile = data.get('log-file') as File;\n\n await parseLogFile();\n\n appendStatsSection($sectionStats);\n appendNCPCountersSection($sectionNcpCounters);\n appendASHCountersSection($sectionAshCounters);\n appendRoutingSection($sectionRouting);\n\n $heroBody.className = 'is-hidden';\n\n $menuStatsLink.click();\n });\n\n $menuHomeLink.addEventListener('click', async () => {});\n\n $menuStatsLink.addEventListener('click', async () => {\n if (!logFile) {\n throw new NotifyError('Load a log file from the menu first.', 'No log file');\n }\n });\n\n $menuNcpCountersLink.addEventListener('click', async () => {\n if (!logFile) {\n throw new NotifyError('Load a log file from the menu first.', 'No log file');\n }\n\n if (ncpCounters.all.length === 0) {\n throw new NotifyError('No NCP counters were found in the given log file.', 'No NCP counters found');\n }\n });\n\n $menuAshCountersLink.addEventListener('click', async () => {\n if (!logFile) {\n throw new NotifyError('Load a log file from the menu first.', 'No log file');\n }\n\n if (ashCounters.all.length === 0) {\n throw new NotifyError('No ASH counters were found in the given log file.', 'No ASH counters found');\n }\n });\n\n $menuRoutingLink.addEventListener('click', async () => {\n if (!logFile) {\n throw new NotifyError('Load a log file from the menu first.', 'No log file');\n }\n\n if (networkRouteErrors.all.length === 0) {\n // eslint-disable-next-line no-new\n new Notify({\n status: 'success',\n title: 'No network/route error found',\n text: `No network/router error was found in the given log file.`,\n });\n }\n });\n\n $menuToolsLink.addEventListener('click', async () => {});\n\n // add dynamic part of the help section\n {\n const ncpCountersRows: TableCellData[][] = [];\n\n for (let i = 0; i < EMBER_COUNTER_TYPE_COUNT; i++) {\n ncpCountersRows.push([\n { content: EmberCounterType[i] },\n { content: IDEAL_NCP_COUNTERS[i].toString() },\n { content: NCP_COUNTERS_NOTICE[i] },\n ]);\n }\n\n const ncpCountersTable = makeTableContainer(makeTable(['NCP Counter', 'Ideal (Per Device)', 'Note'], [], ncpCountersRows));\n\n const ashCountersRows: TableCellData[][] = [];\n\n for (let i = 0; i < ASH_COUNTER_TYPE_COUNT; i++) {\n ashCountersRows.push([\n { content: AshCounterType[i] },\n { content: IDEAL_ASH_COUNTERS[i].toString() },\n { content: ASH_COUNTERS_NOTICE[i] },\n ]);\n }\n\n const ashCountersTable = makeTableContainer(makeTable(['ASH Counter', 'Ideal (Per Device)', 'Note'], [], ashCountersRows));\n\n $sectionHelp.append(ncpCountersTable);\n $sectionHelp.append(ashCountersTable);\n }\n\n if (window.location.hash) {\n const link = document.querySelector(`#menu-${window.location.hash.slice(1)}`) as HTMLLinkElement;\n\n if (link) {\n link.click();\n }\n }\n});\n","function t(t,e){if(!(t instanceof e)){throw new TypeError(\"Cannot call a class as a function\")}}function e(t,e){for(var s=0;s\n \n\n","\n \n\n","\n \n\n","\n \n\n","\n \n\n","export const stringToHTML = (strHTML: string): HTMLElement => {\n const parser = new DOMParser(),\n content = 'text/html',\n DOM = parser.parseFromString(strHTML, content)\n\n return DOM.body.childNodes[0] as HTMLElement\n}\n\nexport const getSvgNode = (svg: string) => {\n const doc = new DOMParser().parseFromString(svg, 'application/xml')\n const node = document.importNode(doc.documentElement, true)\n return node.outerHTML\n}\n","import SvgClose from './icons/close.svg'\nimport SvgError from './icons/error.svg'\nimport SvgInfo from './icons/info.svg'\nimport SvgSuccess from './icons/success.svg'\nimport SvgWarning from './icons/warning.svg'\nimport { getSvgNode } from './utils'\n\nexport const CLASSNAMES = {\n CONTAINER: 'sn-notifications-container',\n NOTIFY: 'sn-notify',\n NOTIFY_CONTENT: 'sn-notify-content',\n NOTIFY_ICON: 'sn-notify-icon',\n NOTIFY_CLOSE: 'sn-notify-close',\n NOTIFY_TITLE: 'sn-notify-title',\n NOTIFY_TEXT: 'sn-notify-text',\n IS_X_CENTER: 'sn-is-x-center',\n IS_Y_CENTER: 'sn-is-y-center',\n IS_CENTER: 'sn-is-center',\n IS_LEFT: 'sn-is-left',\n IS_RIGHT: 'sn-is-right',\n IS_TOP: 'sn-is-top',\n IS_BOTTOM: 'sn-is-bottom',\n NOTIFY_OUTLINE: 'sn-notify-outline',\n NOTIFY_FILLED: 'sn-notify-filled',\n NOTIFY_ERROR: 'sn-notify-error',\n NOTIFY_WARNING: 'sn-notify-warning',\n NOTIFY_SUCCESS: 'sn-notify-success',\n NOTIFY_INFO: 'sn-notify-info',\n NOTIFY_FADE: 'sn-notify-fade',\n NOTIFY_FADE_IN: 'sn-notify-fade-in',\n NOTIFY_SLIDE: 'sn-notify-slide',\n NOTIFY_SLIDE_IN: 'sn-notify-slide-in',\n NOTIFY_AUTOCLOSE: 'sn-notify-autoclose'\n} as const\n\nexport const NOTIFY_STATUS_ENUMS = {\n ERROR: 'error',\n WARNING: 'warning',\n SUCCESS: 'success',\n INFO: 'info'\n} as const\n\nexport const NOTIFY_TYPE_ENUMS = {\n OUTLINE: 'outline',\n FILLED: 'filled'\n} as const\n\nexport const NOTIFY_ANIMATION_ENUMS = {\n FADE: 'fade',\n SLIDE: 'slide'\n} as const\n\nexport const ICONS = {\n CLOSE: getSvgNode(SvgClose),\n SUCCESS: getSvgNode(SvgSuccess),\n ERROR: getSvgNode(SvgError),\n WARNING: getSvgNode(SvgWarning),\n INFO: getSvgNode(SvgInfo)\n}\n","import { CLASSNAMES } from './consts'\nimport type Notify from './index'\n\nexport const fadeIn = (self: Notify): void => {\n self.wrapper.classList.add(CLASSNAMES.NOTIFY_FADE)\n setTimeout(() => {\n self.wrapper.classList.add(CLASSNAMES.NOTIFY_FADE_IN)\n }, 100)\n}\n\nexport const fadeOut = (self: Notify): void => {\n self.wrapper.classList.remove(CLASSNAMES.NOTIFY_FADE_IN)\n setTimeout(() => {\n self.wrapper.remove()\n }, self.speed)\n}\n\nexport const slideIn = (self: Notify): void => {\n self.wrapper.classList.add(CLASSNAMES.NOTIFY_SLIDE)\n setTimeout(() => {\n self.wrapper.classList.add(CLASSNAMES.NOTIFY_SLIDE_IN)\n }, 100)\n}\nexport const slideOut = (self: Notify): void => {\n self.wrapper.classList.remove(CLASSNAMES.NOTIFY_SLIDE_IN)\n setTimeout(() => {\n self.wrapper.remove()\n }, self.speed)\n}\n","import { CLASSNAMES, ICONS, NOTIFY_ANIMATION_ENUMS, NOTIFY_STATUS_ENUMS, NOTIFY_TYPE_ENUMS } from './consts'\nimport { fadeIn, fadeOut, slideIn, slideOut } from './effects'\nimport './style.css'\nimport type { IArgs, NotifyEffect, NotifyPosition, NotifyStatus, NotifyType } from './types'\nimport { stringToHTML } from './utils'\n\nexport default class Notify {\n wrapper: HTMLElement\n customWrapper: string\n container: HTMLElement\n status: NotifyStatus\n type: NotifyType\n effect: NotifyEffect\n position: NotifyPosition\n title: string\n text: string\n showIcon: boolean\n customIcon: string\n showCloseButton: boolean\n customClass: string\n speed: number\n autoclose: boolean\n autotimeout: number\n notificationsGap: number\n notificationsPadding: number\n selectedNotifyInEffect: (self: Notify) => void\n selectedNotifyOutEffect: (self: Notify) => void\n\n constructor(args: IArgs) {\n const {\n notificationsGap = 20,\n notificationsPadding = 20,\n status = 'success',\n effect = NOTIFY_ANIMATION_ENUMS.FADE,\n type = 'outline',\n title,\n text,\n showIcon = true,\n customIcon = '',\n customClass = '',\n speed = 500,\n showCloseButton = true,\n autoclose = true,\n autotimeout = 3000,\n position = 'right top',\n customWrapper = ''\n } = args\n\n this.customWrapper = customWrapper\n this.status = status\n this.title = title\n this.text = text\n this.showIcon = showIcon\n this.customIcon = customIcon\n this.customClass = customClass\n this.speed = speed\n this.effect = effect\n this.showCloseButton = showCloseButton\n this.autoclose = autoclose\n this.autotimeout = autotimeout\n this.notificationsGap = notificationsGap\n this.notificationsPadding = notificationsPadding\n this.type = type\n this.position = position\n\n if (!this.checkRequirements()) {\n console.error(\"You must specify 'title' or 'text' at least.\")\n return\n }\n\n // set outer container for all Notify's\n this.setContainer()\n\n // set wrapper for each Notify\n this.setWrapper()\n\n this.setPosition()\n\n // set icon in the left\n if (this.showIcon) this.setIcon()\n\n // set close button\n if (this.showCloseButton) this.setCloseButton()\n\n // set title, text\n this.setContent()\n\n // add the Notify to our container\n this.container.prepend(this.wrapper)\n\n // init effect\n this.setEffect()\n this.notifyIn(this.selectedNotifyInEffect)\n\n // init autoclose\n if (this.autoclose) this.autoClose()\n\n // check whether Notify is visible\n this.setObserver()\n }\n\n private checkRequirements(): boolean {\n return !!(this.title || this.text)\n }\n\n private setContainer(): void {\n const container: HTMLElement = document.querySelector(`.${CLASSNAMES.CONTAINER}`)\n if (container) {\n this.container = container\n } else {\n this.container = document.createElement('div')\n this.container.classList.add(CLASSNAMES.CONTAINER)\n document.body.appendChild(this.container)\n }\n\n if (this.notificationsPadding) {\n this.container.style.setProperty('--sn-notifications-padding', `${this.notificationsPadding}px`)\n }\n\n if (this.notificationsGap) {\n this.container.style.setProperty('--sn-notifications-gap', `${this.notificationsGap}px`)\n }\n }\n\n private setPosition(): void {\n this.container.classList[this.position === 'center' ? 'add' : 'remove'](CLASSNAMES.IS_CENTER)\n this.container.classList[this.position.includes('left') ? 'add' : 'remove'](CLASSNAMES.IS_LEFT)\n this.container.classList[this.position.includes('right') ? 'add' : 'remove'](CLASSNAMES.IS_RIGHT)\n this.container.classList[this.position.includes('top') ? 'add' : 'remove'](CLASSNAMES.IS_TOP)\n this.container.classList[this.position.includes('bottom') ? 'add' : 'remove'](CLASSNAMES.IS_BOTTOM)\n this.container.classList[this.position.includes('x-center') ? 'add' : 'remove'](CLASSNAMES.IS_X_CENTER)\n this.container.classList[this.position.includes('y-center') ? 'add' : 'remove'](CLASSNAMES.IS_Y_CENTER)\n }\n\n private setCloseButton(): void {\n const closeWrapper = document.createElement('div')\n closeWrapper.classList.add(CLASSNAMES.NOTIFY_CLOSE)\n closeWrapper.innerHTML = ICONS.CLOSE\n this.wrapper.appendChild(closeWrapper)\n\n closeWrapper.addEventListener('click', () => {\n this.close()\n })\n }\n\n private setWrapper(): void {\n if (this.customWrapper) {\n this.wrapper = stringToHTML(this.customWrapper)\n } else {\n this.wrapper = document.createElement('div')\n }\n this.wrapper.style.setProperty('--sn-notify-transition-duration', `${this.speed}ms`)\n\n // set classes\n this.wrapper.classList.add(CLASSNAMES.NOTIFY)\n\n switch (this.type) {\n case NOTIFY_TYPE_ENUMS.OUTLINE:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_OUTLINE)\n break\n case NOTIFY_TYPE_ENUMS.FILLED:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_FILLED)\n break\n default:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_OUTLINE)\n }\n\n switch (this.status) {\n case NOTIFY_STATUS_ENUMS.SUCCESS:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_SUCCESS)\n break\n case NOTIFY_STATUS_ENUMS.ERROR:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_ERROR)\n break\n case NOTIFY_STATUS_ENUMS.WARNING:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_WARNING)\n break\n case NOTIFY_STATUS_ENUMS.INFO:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_INFO)\n break\n }\n\n if (this.autoclose) {\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_AUTOCLOSE)\n this.wrapper.style.setProperty('--sn-notify-autoclose-timeout', `${this.autotimeout + this.speed}ms`)\n }\n\n if (this.customClass) {\n const classes = this.customClass.split(' ')\n classes.forEach((className) => {\n this.wrapper.classList.add(className)\n })\n }\n }\n\n private setContent(): void {\n const contentWrapper = document.createElement('div')\n contentWrapper.classList.add(CLASSNAMES.NOTIFY_CONTENT)\n\n let titleElement, textElement\n\n if (this.title) {\n titleElement = document.createElement('div')\n titleElement.classList.add(CLASSNAMES.NOTIFY_TITLE)\n titleElement.textContent = this.title.trim()\n if (!this.showCloseButton) titleElement.style.paddingRight = '0'\n }\n\n if (this.text) {\n textElement = document.createElement('div')\n textElement.classList.add(CLASSNAMES.NOTIFY_TEXT)\n textElement.innerHTML = this.text.trim()\n if (!this.title) textElement.style.marginTop = '0'\n }\n\n this.wrapper.appendChild(contentWrapper)\n if (this.title) contentWrapper.appendChild(titleElement)\n if (this.text) contentWrapper.appendChild(textElement)\n }\n\n private setIcon(): void {\n const computedIcon = (status: NotifyStatus) => {\n switch (status) {\n case NOTIFY_STATUS_ENUMS.SUCCESS:\n return ICONS.SUCCESS\n case NOTIFY_STATUS_ENUMS.ERROR:\n return ICONS.ERROR\n case NOTIFY_STATUS_ENUMS.WARNING:\n return ICONS.WARNING\n case NOTIFY_STATUS_ENUMS.INFO:\n return ICONS.INFO\n }\n }\n\n const iconWrapper = document.createElement('div')\n iconWrapper.classList.add(CLASSNAMES.NOTIFY_ICON)\n iconWrapper.innerHTML = this.customIcon || computedIcon(this.status)\n if (this.status || this.customIcon) this.wrapper.appendChild(iconWrapper)\n }\n\n private setObserver(): void {\n const observer = new IntersectionObserver(\n (entries) => {\n if (!(entries[0].intersectionRatio <= 0)) {\n return\n } else {\n this.close()\n }\n },\n {\n threshold: 0\n }\n )\n\n setTimeout(() => {\n observer.observe(this.wrapper)\n }, this.speed)\n }\n\n private notifyIn(callback: (p: Notify) => void): void {\n callback(this)\n }\n\n private notifyOut = (callback: (p: Notify) => void): void => {\n callback(this)\n }\n\n private autoClose(): void {\n setTimeout(() => {\n this.close()\n }, this.autotimeout + this.speed)\n }\n\n public close(): void {\n this.notifyOut(this.selectedNotifyOutEffect)\n }\n\n private setEffect(): void {\n switch (this.effect) {\n case NOTIFY_ANIMATION_ENUMS.FADE:\n this.selectedNotifyInEffect = fadeIn\n this.selectedNotifyOutEffect = fadeOut\n break\n case NOTIFY_ANIMATION_ENUMS.SLIDE:\n this.selectedNotifyInEffect = slideIn\n this.selectedNotifyOutEffect = slideOut\n break\n default:\n this.selectedNotifyInEffect = fadeIn\n this.selectedNotifyOutEffect = fadeOut\n }\n }\n}\n\n;(globalThis as any).Notify = Notify\n","import { EmberCounterType } from './zh';\n\nexport const EMBER_COUNTER_TYPE_COUNT = 41;\nexport const ASH_COUNTER_TYPE_COUNT = 27;\n\n/** Offset used to ignore certain errors during/right after zigbee2mqtt start (in seconds). */\nexport const START_OFFSET = 60000;\n/** Minimum duration (hours) for log analysis to be relevant. */\nexport const MIN_DURATION = 1; // (min 1 NCP counters logged)\n\nexport const TIMESTAMP_REGEX = /\\[.*?]/i;\nexport const NCP_COUNTERS_MATCH = '[NCP COUNTERS] ';\nexport const ASH_COUNTERS_MATCH = '[ASH COUNTERS] ';\nexport const NETWORK_ROUTE_ERROR_MATCH = 'Received network/route error ';\nexport const FAILED_PING_MATCH = `Failed to ping '`;\nexport const FAILED_PING_2_ATTEMPTS_MATCH = 'attempt 2/2';\nexport const FAILED_PING_1_ATTEMPT_MATCH = 'attempt 1/1';\n\n/** Number of network/router erros considered acceptable over 100h of runtime, for 100 devices. */\nexport const ACCEPTABLE_NETWORK_ROUTE_ERRORS_PER_100H_100D = 25;\n\nexport const DURATION_WARNING_FACTOR = 5;\nexport const ROUTER_RATIO_WARNING_FACTOR = 0.8;\n\n/** Timeframe within which duplicate network/route errors are ignored. */\nexport const ROUTING_ERROR_DUP_IGNORE_MS = 2500;\n\nexport const EMBER_COUNTERS_PER_DEVICE_IRRELEVANTS: EmberCounterType[] = [\n EmberCounterType.ROUTE_DISCOVERY_INITIATED,\n EmberCounterType.NEIGHBOR_ADDED,\n EmberCounterType.NEIGHBOR_REMOVED,\n EmberCounterType.NEIGHBOR_STALE,\n EmberCounterType.JOIN_INDICATION,\n EmberCounterType.CHILD_REMOVED,\n EmberCounterType.ASH_OVERFLOW_ERROR,\n EmberCounterType.ASH_FRAMING_ERROR,\n EmberCounterType.ASH_OVERRUN_ERROR,\n EmberCounterType.ASH_XOFF,\n];\n","/**\n * These should be kept in sync with zigbee-herdsman.\n */\n\n/**\n * Defines the events reported to the application by the ::emberCounterHandler().\n * Usage of the destinationNodeId or data fields found in the EmberCounterInfo or EmberExtraCounterInfo\n * structs is denoted for counter types that use them.\n * (See comments accompanying enum definitions in this source file for details.)\n */\nexport enum EmberCounterType {\n /**\n * The MAC received a broadcast Data frame, Command frame, or Beacon.\n * - destinationNodeId: BROADCAST_ADDRESS or Data frames or sender node ID for Beacon frames\n * - data: not used\n */\n MAC_RX_BROADCAST = 0,\n /**\n * The MAC transmitted a broadcast Data frame, Command frame or Beacon.\n * - destinationNodeId: BROADCAST_ADDRESS\n * - data: not used\n */\n MAC_TX_BROADCAST = 1,\n /**\n * The MAC received a unicast Data or Command frame.\n * - destinationNodeId: MAC layer source or EMBER_UNKNOWN_NODE_ID if no 16-bit source node ID is present in the frame\n * - data: not used\n */\n MAC_RX_UNICAST = 2,\n /**\n * The MAC successfully transmitted a unicast Data or Command frame.\n * Note: Only frames with a 16-bit destination node ID are counted.\n * - destinationNodeId: MAC layer destination address\n * - data: not used\n */\n MAC_TX_UNICAST_SUCCESS = 3,\n /**\n * The MAC retried a unicast Data or Command frame after initial Tx attempt.\n * Note: CSMA-related failures are tracked separately via PHY_CCA_FAIL_COUNT.\n * - destinationNodeId: MAC layer destination or EMBER_UNKNOWN_NODE_ID if no 16-bit destination node ID is present in the frame\n * - data: number of retries (after initial Tx attempt) accumulated so far for this packet. (Should always be >0.)\n */\n MAC_TX_UNICAST_RETRY = 4,\n /**\n * The MAC unsuccessfully transmitted a unicast Data or Command frame.\n * Note: Only frames with a 16-bit destination node ID are counted.\n * - destinationNodeId: MAC layer destination address\n * - data: not used\n */\n MAC_TX_UNICAST_FAILED = 5,\n /**\n * The APS layer received a data broadcast.\n * - destinationNodeId: sender's node ID\n * - data: not used\n */\n APS_DATA_RX_BROADCAST = 6,\n /** The APS layer transmitted a data broadcast. */\n APS_DATA_TX_BROADCAST = 7,\n /**\n * The APS layer received a data unicast.\n * - destinationNodeId: sender's node ID\n * - data: not used\n */\n APS_DATA_RX_UNICAST = 8,\n /**\n * The APS layer successfully transmitted a data unicast.\n * - destinationNodeId: NWK destination address\n * - data: number of APS retries (>=0) consumed for this unicast.\n */\n APS_DATA_TX_UNICAST_SUCCESS = 9,\n /**\n * The APS layer retried a unicast Data frame.\n * This is a placeholder and is not used by the @c ::emberCounterHandler() callback.\n * Instead, the number of APS retries are returned in the data parameter of the callback\n * for the @c ::APS_DATA_TX_UNICAST_SUCCESS and @c ::APS_DATA_TX_UNICAST_FAILED types.\n * However, our supplied Counters component code will attempt to collect this information\n * from the aforementioned counters and populate this counter.\n * Note that this counter's behavior differs from that of @c ::MAC_TX_UNICAST_RETRY .\n */\n APS_DATA_TX_UNICAST_RETRY = 10,\n /**\n * The APS layer unsuccessfully transmitted a data unicast.\n * - destinationNodeId: NWK destination address\n * - data: number of APS retries (>=0) consumed for this unicast.\n */\n APS_DATA_TX_UNICAST_FAILED = 11,\n /** The network layer successfully submitted a new route discovery to the MAC. */\n ROUTE_DISCOVERY_INITIATED = 12,\n /** An entry was added to the neighbor table. */\n NEIGHBOR_ADDED = 13,\n /** An entry was removed from the neighbor table. */\n NEIGHBOR_REMOVED = 14,\n /** A neighbor table entry became stale because it had not been heard from. */\n NEIGHBOR_STALE = 15,\n /**\n * A node joined or rejoined to the network via this node.\n * - destinationNodeId: node ID of child\n * - data: not used\n */\n JOIN_INDICATION = 16,\n /**\n * An entry was removed from the child table.\n * - destinationNodeId: node ID of child\n * - data: not used\n */\n CHILD_REMOVED = 17,\n /** EZSP-UART only. An overflow error occurred in the UART. */\n ASH_OVERFLOW_ERROR = 18,\n /** EZSP-UART only. A framing error occurred in the UART. */\n ASH_FRAMING_ERROR = 19,\n /** EZSP-UART only. An overrun error occurred in the UART. */\n ASH_OVERRUN_ERROR = 20,\n /** A message was dropped at the Network layer because the NWK frame counter was not higher than the last message seen from that source. */\n NWK_FRAME_COUNTER_FAILURE = 21,\n /**\n * A message was dropped at the APS layer because the APS frame counter was not higher than the last message seen from that source.\n * - destinationNodeId: node ID of MAC source that relayed the message\n * - data: not used\n */\n APS_FRAME_COUNTER_FAILURE = 22,\n /** EZSP-UART only. An XOFF was transmitted by the UART. */\n ASH_XOFF = 23,\n /**\n * An encrypted message was dropped by the APS layer because the sender's key has not been authenticated.\n * As a result, the key is not authorized for use in APS data messages.\n * - destinationNodeId: EMBER_NULL_NODE_ID\n * - data: APS key table index related to the sender\n */\n APS_LINK_KEY_NOT_AUTHORIZED = 24,\n /**\n * A NWK encrypted message was received but dropped because decryption failed.\n * - destinationNodeId: sender of the dropped packet\n * - data: not used\n */\n NWK_DECRYPTION_FAILURE = 25,\n /**\n * An APS encrypted message was received but dropped because decryption failed.\n * - destinationNodeId: sender of the dropped packet\n * - data: not used\n */\n APS_DECRYPTION_FAILURE = 26,\n /**\n * The number of failures to allocate a set of linked packet buffers.\n * This doesn't necessarily mean that the packet buffer count was 0 at the time,\n * but that the number requested was greater than the number free.\n */\n ALLOCATE_PACKET_BUFFER_FAILURE = 27,\n /**\n * The number of relayed unicast packets.\n * - destinationId: NWK layer destination address of relayed packet\n * - data: not used\n */\n RELAYED_UNICAST = 28,\n /**\n * The number of times a packet was dropped due to reaching the preset PHY-to-MAC queue limit (sli_mac_phy_to_mac_queue_length).\n * The limit will determine how many messages are accepted by the PHY between calls to emberTick().\n * After that limit is reached, packets will be dropped. The counter records the number of dropped packets.\n *\n * NOTE: For each call to emberCounterHandler() there may be more than 1 packet that was dropped due to the limit reached.\n * The actual number of packets dropped will be returned in the 'data' parameter passed to that function.\n *\n * - destinationNodeId: not used\n * - data: number of dropped packets represented by this counter event\n * - phyIndex: present\n */\n PHY_TO_MAC_QUEUE_LIMIT_REACHED = 29,\n /**\n * The number of times a packet was dropped due to the packet-validate library checking a packet\n * and rejecting it due to length or other formatting problems.\n * - destinationNodeId: not used\n * - data: type of validation condition that failed\n */\n PACKET_VALIDATE_LIBRARY_DROPPED_COUNT = 30,\n /**\n * The number of times the NWK retry queue is full and a new message failed to be added.\n * - destinationNodeId; not used\n * - data: NWK retry queue size that has been exceeded\n */\n TYPE_NWK_RETRY_OVERFLOW = 31,\n /**\n * The number of times the PHY layer was unable to transmit due to a failed CCA (Clear Channel Assessment) attempt.\n * See also: MAC_TX_UNICAST_RETRY.\n * - destinationNodeId: MAC layer destination or EMBER_UNKNOWN_NODE_ID if no 16-bit destination node ID is present in the frame\n * - data: not used\n */\n PHY_CCA_FAIL_COUNT = 32,\n /** The number of times a NWK broadcast was dropped because the broadcast table was full. */\n BROADCAST_TABLE_FULL = 33,\n /** The number of times a low-priority packet traffic arbitration request has been made. */\n PTA_LO_PRI_REQUESTED = 34,\n /** The number of times a high-priority packet traffic arbitration request has been made. */\n PTA_HI_PRI_REQUESTED = 35,\n /** The number of times a low-priority packet traffic arbitration request has been denied. */\n PTA_LO_PRI_DENIED = 36,\n /** The number of times a high-priority packet traffic arbitration request has been denied. */\n PTA_HI_PRI_DENIED = 37,\n /** The number of times a low-priority packet traffic arbitration transmission has been aborted. */\n PTA_LO_PRI_TX_ABORTED = 38,\n /** The number of times a high-priority packet traffic arbitration transmission has been aborted. */\n PTA_HI_PRI_TX_ABORTED = 39,\n /** The number of times an address conflict has caused node_id change, and an address conflict error is sent. */\n ADDRESS_CONFLICT_SENT = 40,\n}\n\nexport enum AshCounterType {\n TX_DATA = 0,\n TX_ALL_FRAMES = 1,\n TX_DATA_FRAMES = 2,\n TX_ACK_FRAMES = 3,\n TX_NAK_FRAMES = 4,\n TX_RE_DATA_FRAMES = 5,\n TX_N1_FRAMES = 6,\n TX_CANCELLED = 7,\n RX_DATA = 8,\n RX_ALL_FRAMES = 9,\n RX_DATA_FRAMES = 10,\n RX_ACK_FRAMES = 11,\n RX_NAK_FRAMES = 12,\n RX_RE_DATA_FRAMES = 13,\n RX_N1_FRAMES = 14,\n RX_CANCELLED = 15,\n RX_CRC_ERRORS = 16,\n RX_COMM_ERRORS = 17,\n RX_TOO_SHORT = 18,\n RX_TOO_LONG = 19,\n RX_BAD_CONTROL = 20,\n RX_BAD_LENGTH = 21,\n RX_BAD_ACK_NUMBER = 22,\n RX_NO_BUFFER = 23,\n RX_DUPLICATES = 24,\n RX_OUT_OF_SEQUENCE = 25,\n RX_ACK_TIMEOUTS = 26,\n}\n\nexport const MAX_TIME_MTORR_BROADCAST = 60;\n\nexport enum EmberStackError {\n // Error codes that a router uses to notify the message initiator about a broken route.\n ROUTE_ERROR_NO_ROUTE_AVAILABLE = 0x00,\n ROUTE_ERROR_TREE_LINK_FAILURE = 0x01,\n ROUTE_ERROR_NON_TREE_LINK_FAILURE = 0x02,\n ROUTE_ERROR_LOW_BATTERY_LEVEL = 0x03,\n ROUTE_ERROR_NO_ROUTING_CAPACITY = 0x04,\n ROUTE_ERROR_NO_INDIRECT_CAPACITY = 0x05,\n ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY = 0x06,\n ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE = 0x07,\n ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED = 0x08,\n ROUTE_ERROR_PARENT_LINK_FAILURE = 0x09,\n ROUTE_ERROR_VALIDATE_ROUTE = 0x0a,\n ROUTE_ERROR_SOURCE_ROUTE_FAILURE = 0x0b,\n ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE = 0x0c,\n ROUTE_ERROR_ADDRESS_CONFLICT = 0x0d,\n ROUTE_ERROR_VERIFY_ADDRESSES = 0x0e,\n ROUTE_ERROR_PAN_IDENTIFIER_UPDATE = 0x0f,\n\n NETWORK_STATUS_NETWORK_ADDRESS_UPDATE = 0x10,\n NETWORK_STATUS_BAD_FRAME_COUNTER = 0x11,\n NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER = 0x12,\n NETWORK_STATUS_UNKNOWN_COMMAND = 0x13,\n}\n","import { AshCounters, EmberCounters } from './types';\nimport { EmberStackError, MAX_TIME_MTORR_BROADCAST } from './zh';\n\nexport const NCP_COUNTERS_NOTICE: readonly string[] = [\n /* MAC_RX_BROADCAST */ `The MAC received a broadcast Data frame, Command frame, or Beacon.`,\n /* MAC_TX_BROADCAST */ `The MAC transmitted a broadcast Data frame, Command frame or Beacon.`,\n /* MAC_RX_UNICAST */ `The MAC received a unicast Data or Command frame.`,\n /* MAC_TX_UNICAST_SUCCESS */ `The MAC successfully transmitted a unicast Data or Command frame. Note: Only frames with a 16-bit destination node ID are counted.`,\n /* MAC_TX_UNICAST_RETRY */ `The MAC retried a unicast Data or Command frame after initial Tx attempt. Note: CSMA-related failures are tracked separately via PHY_CCA_FAIL_COUNT.`,\n /* MAC_TX_UNICAST_FAILED */ `The MAC unsuccessfully transmitted a unicast Data or Command frame. Note: Only frames with a 16-bit destination node ID are counted.`,\n /* APS_DATA_RX_BROADCAST */ `The APS layer received a data broadcast.`,\n /* APS_DATA_TX_BROADCAST */ `The APS layer transmitted a data broadcast.`,\n /* APS_DATA_RX_UNICAST */ `The APS layer received a data unicast.`,\n /* APS_DATA_TX_UNICAST_SUCCESS */ `The APS layer successfully transmitted a data unicast.`,\n /* APS_DATA_TX_UNICAST_RETRY */ `The APS layer retried a unicast data frame.`,\n /* APS_DATA_TX_UNICAST_FAILED */ `The APS layer unsuccessfully transmitted a data unicast.`,\n /* ROUTE_DISCOVERY_INITIATED */ `The network layer successfully submitted a new route discovery to the MAC. Current Ember default is to trigger at least one every ${MAX_TIME_MTORR_BROADCAST} seconds.`,\n /* NEIGHBOR_ADDED */ `An entry was added to the neighbor table.`,\n /* NEIGHBOR_REMOVED */ `An entry was removed from the neighbor table.`,\n /* NEIGHBOR_STALE */ `A neighbor table entry became stale because it had not been heard from.`,\n /* JOIN_INDICATION */ `A node joined or rejoined to the network via this node.`,\n /* CHILD_REMOVED */ `An entry was removed from the child table.`,\n /* ASH_OVERFLOW_ERROR */ `EZSP-UART only. An overflow error occurred in the UART.`,\n /* ASH_FRAMING_ERROR */ `EZSP-UART only. A framing error occurred in the UART.`,\n /* ASH_OVERRUN_ERROR */ `EZSP-UART only. An overrun error occurred in the UART.`,\n /* NWK_FRAME_COUNTER_FAILURE */ `A message was dropped at the Network layer because the NWK frame counter was not higher than the last message seen from that source.`,\n /* APS_FRAME_COUNTER_FAILURE */ `A message was dropped at the APS layer because the APS frame counter was not higher than the last message seen from that source.`,\n /* ASH_XOFF */ `EZSP-UART only. An XOFF was transmitted by the UART.`,\n /* APS_LINK_KEY_NOT_AUTHORIZED */ `An encrypted message was dropped by the APS layer because the sender's key has not been authenticated. As a result, the key is not authorized for use in APS data messages.`,\n /* NWK_DECRYPTION_FAILURE */ `A NWK encrypted message was received but dropped because decryption failed.`,\n /* APS_DECRYPTION_FAILURE */ `An APS encrypted message was received but dropped because decryption failed.`,\n /* ALLOCATE_PACKET_BUFFER_FAILURE */ `The number of failures to allocate a set of linked packet buffers. This doesn't necessarily mean that the packet buffer count was 0 at the time, but that the number requested was greater than the number free.`,\n /* RELAYED_UNICAST */ `The number of relayed unicast packets.`,\n /* PHY_TO_MAC_QUEUE_LIMIT_REACHED */ `The number of times a packet was dropped due to reaching the preset PHY-to-MAC queue limit. For each count, there may be more than 1 packet that was dropped due to the limit reached.`,\n /* PACKET_VALIDATE_LIBRARY_DROPPED_COUNT */ `The number of times a packet was dropped due to the packet-validate library checking a packet and rejecting it due to length or other formatting problems.`,\n /* TYPE_NWK_RETRY_OVERFLOW */ `The number of times the NWK retry queue is full and a new message failed to be added.`,\n /* PHY_CCA_FAIL_COUNT */ `The number of times the PHY layer was unable to transmit due to a failed CCA (Clear Channel Assessment) attempt.`,\n /* BROADCAST_TABLE_FULL */ `The number of times a NWK broadcast was dropped because the broadcast table was full.`,\n /* PTA_LO_PRI_REQUESTED */ `The number of times a low-priority packet traffic arbitration request has been made.`,\n /* PTA_HI_PRI_REQUESTED */ `The number of times a high-priority packet traffic arbitration request has been made.`,\n /* PTA_LO_PRI_DENIED */ `The number of times a low-priority packet traffic arbitration request has been denied.`,\n /* PTA_HI_PRI_DENIED */ `The number of times a high-priority packet traffic arbitration request has been denied.`,\n /* PTA_LO_PRI_TX_ABORTED */ `The number of times a low-priority packet traffic arbitration transmission has been aborted.`,\n /* PTA_HI_PRI_TX_ABORTED */ `The number of times a high-priority packet traffic arbitration transmission has been aborted.`,\n /* ADDRESS_CONFLICT_SENT */ `The number of times an address conflict has caused node_id change, and an address conflict error is sent.`,\n];\n\nexport const ASH_COUNTERS_NOTICE: readonly string[] = [\n /* TX_DATA */ `The total bytes of transmitted data within DATA frames. This can significantly vary if you have device types that transmit lots of data.`,\n /* TX_ALL_FRAMES */ `The total number of transmitted frames.`,\n /* TX_DATA_FRAMES */ `The number of transmitted DATA frames.`,\n /* TX_ACK_FRAMES */ `The number of transmitted ACK frames.`,\n /* TX_NAK_FRAMES */ `The number of transmitted NAK frames.`,\n /* TX_RE_DATA_FRAMES */ `The number of re-transmitted DATA frames.`,\n /* TX_N1_FRAMES */ `The number of transmitted frames flagged with 'not ready'.`,\n /* TX_CANCELLED */ `The number of cancelled transmitted frames.`,\n /* RX_DATA */ `The total bytes of received data within DATA frames. This can significantly vary if you have device types that transmit lots of data.`,\n /* RX_ALL_FRAMES */ `The total number of received frames.`,\n /* RX_DATA_FRAMES */ `The number of received DATA frames.`,\n /* RX_ACK_FRAMES */ `The number of received ACK frames.`,\n /* RX_NAK_FRAMES */ `The number of received NAK frames.`,\n /* RX_RE_DATA_FRAMES */ `The number of re-transmitted received DATA frames.`,\n /* RX_N1_FRAMES */ `The number of received frames flagged with 'not ready'.`,\n /* RX_CANCELLED */ `The number of cancelled received frames.`,\n /* RX_CRC_ERRORS */ `The number of received frames with CRC errors.`,\n /* RX_COMM_ERRORS */ `The number of received frames with communication errors.`,\n /* RX_TOO_SHORT */ `The number of received frames that were too short.`,\n /* RX_TOO_LONG */ `The number of received frames that were too long.`,\n /* RX_BAD_CONTROL */ `The number of received frames with illegal control byte.`,\n /* RX_BAD_LENGTH */ `The number of received frames with illegal length for type.`,\n /* RX_BAD_ACK_NUMBER */ `The number of received frames with bad ACK number.`,\n /* RX_NO_BUFFER */ `The number of DATA frames discarded due to lack of buffers.`,\n /* RX_DUPLICATES */ `The number of received duplicate re-transmitted DATA frames.`,\n /* RX_OUT_OF_SEQUENCE */ `The number of DATA frames received out of sequence.`,\n /* RX_ACK_TIMEOUTS */ `The number of received ACK timeouts.`,\n];\n\nexport const EMBER_STACK_ERRORS_NOTICE: Readonly> = {\n [EmberStackError.ROUTE_ERROR_NO_ROUTE_AVAILABLE]: ``,\n [EmberStackError.ROUTE_ERROR_TREE_LINK_FAILURE]: ``,\n [EmberStackError.ROUTE_ERROR_NON_TREE_LINK_FAILURE]: ``,\n [EmberStackError.ROUTE_ERROR_LOW_BATTERY_LEVEL]: ``,\n [EmberStackError.ROUTE_ERROR_NO_ROUTING_CAPACITY]: ``,\n [EmberStackError.ROUTE_ERROR_NO_INDIRECT_CAPACITY]: ``,\n [EmberStackError.ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY]: ``,\n [EmberStackError.ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE]: ``,\n [EmberStackError.ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED]: ``,\n [EmberStackError.ROUTE_ERROR_PARENT_LINK_FAILURE]: ``,\n [EmberStackError.ROUTE_ERROR_VALIDATE_ROUTE]: ``,\n [EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE]: `Indicates a message sent from the device encountered a broken link. The device prior to the broken link generated the error message and return it to the device.`,\n [EmberStackError.ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE]: `Indicates that a message sent to the device encountered a broken link. The device prior to the broken link generated the error message and forwarded it to the device via a randomly chosen neighbor.`,\n [EmberStackError.ROUTE_ERROR_ADDRESS_CONFLICT]: ``,\n [EmberStackError.ROUTE_ERROR_VERIFY_ADDRESSES]: ``,\n [EmberStackError.ROUTE_ERROR_PAN_IDENTIFIER_UPDATE]: ``,\n [EmberStackError.NETWORK_STATUS_NETWORK_ADDRESS_UPDATE]: ``,\n [EmberStackError.NETWORK_STATUS_BAD_FRAME_COUNTER]: ``,\n [EmberStackError.NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER]: ``,\n [EmberStackError.NETWORK_STATUS_UNKNOWN_COMMAND]: ``,\n};\n\n/**\n * @see index.html for details on these references\n */\nexport const IDEAL_NCP_COUNTERS: EmberCounters = [\n 203.6262, // MAC_RX_BROADCAST\n 14.1578, // MAC_TX_BROADCAST\n 226.4056, // MAC_RX_UNICAST\n 205.8569, // MAC_TX_UNICAST_SUCCESS\n 2.0597, // MAC_TX_UNICAST_RETRY\n 0.0524, // MAC_TX_UNICAST_FAILED\n 0.008, // APS_DATA_RX_BROADCAST\n 0.008, // APS_DATA_TX_BROADCAST\n 167.3364, // APS_DATA_RX_UNICAST\n 163.6076, // APS_DATA_TX_UNICAST_SUCCESS\n 0, // APS_DATA_TX_UNICAST_RETRY\n 0.0038, // APS_DATA_TX_UNICAST_FAILED\n MAX_TIME_MTORR_BROADCAST, // ROUTE_DISCOVERY_INITIATED\n 0, // NEIGHBOR_ADDED\n 0, // NEIGHBOR_REMOVED\n 0.0263, // NEIGHBOR_STALE\n 0, // JOIN_INDICATION\n 0, // CHILD_REMOVED\n 0, // ASH_OVERFLOW_ERROR\n 0, // ASH_FRAMING_ERROR\n 0, // ASH_OVERRUN_ERROR\n 0.0393, // NWK_FRAME_COUNTER_FAILURE\n 0, // APS_FRAME_COUNTER_FAILURE\n 0, // ASH_XOFF\n 0, // APS_LINK_KEY_NOT_AUTHORIZED\n 0, // NWK_DECRYPTION_FAILURE\n 0.2279, // APS_DECRYPTION_FAILURE\n 0, // ALLOCATE_PACKET_BUFFER_FAILURE\n 0, // RELAYED_UNICAST\n 0, // PHY_TO_MAC_QUEUE_LIMIT_REACHED\n 0, // PACKET_VALIDATE_LIBRARY_DROPPED_COUNT\n 0, // TYPE_NWK_RETRY_OVERFLOW\n 0.0102, // PHY_CCA_FAIL_COUNT\n 0, // BROADCAST_TABLE_FULL\n 0, // PTA_LO_PRI_REQUESTED\n 0, // PTA_HI_PRI_REQUESTED\n 0, // PTA_LO_PRI_DENIED\n 0, // PTA_HI_PRI_DENIED\n 0, // PTA_LO_PRI_TX_ABORTED\n 0, // PTA_HI_PRI_TX_ABORTED\n 0, // ADDRESS_CONFLICT_SENT\n];\n\n/**\n * @see index.html for details on these references\n */\nexport const IDEAL_ASH_COUNTERS: AshCounters = [\n 10878, // TX_DATA\n 634, // TX_ALL_FRAMES\n 154, // TX_DATA_FRAMES\n 479, // TX_ACK_FRAMES\n 0, // TX_NAK_FRAMES\n 0, // TX_RE_DATA_FRAMES\n 0, // TX_N1_FRAMES\n 0, // TX_CANCELLED\n 4063, // RX_DATA\n 480, // RX_ALL_FRAMES\n 480, // RX_DATA_FRAMES\n 0, // RX_ACK_FRAMES\n 0, // RX_NAK_FRAMES\n 0, // RX_RE_DATA_FRAMES\n 0, // RX_N1_FRAMES\n 0, // RX_CANCELLED\n 0, // RX_CRC_ERRORS\n 0, // RX_COMM_ERRORS\n 0, // RX_TOO_SHORT\n 0, // RX_TOO_LONG\n 0, // RX_BAD_CONTROL\n 0, // RX_BAD_LENGTH\n 0, // RX_BAD_ACK_NUMBER\n 0, // RX_NO_BUFFER\n 0, // RX_DUPLICATES\n 0, // RX_OUT_OF_SEQUENCE\n 0, // RX_ACK_TIMEOUTS\n];\n\nexport const IDEAL_ROUTER_RATIO = 0.5;\n\nexport const IDEAL_NCP_COUNTERS_FACTORS: [badFactor: number, veryBadFactor: number, higherBetter: boolean][] = [\n [5, 10, false], // MAC_RX_BROADCAST\n [5, 10, false], // MAC_TX_BROADCAST\n [5, 10, false], // MAC_RX_UNICAST\n [0, 0, false], // MAC_TX_UNICAST_SUCCESS\n [3, 5, false], // MAC_TX_UNICAST_RETRY\n [3, 5, false], // MAC_TX_UNICAST_FAILED\n [5, 10, false], // APS_DATA_RX_BROADCAST\n [5, 10, false], // APS_DATA_TX_BROADCAST\n [5, 10, false], // APS_DATA_RX_UNICAST\n [0, 0, false], // APS_DATA_TX_UNICAST_SUCCESS\n [-2, -2, false], // APS_DATA_TX_UNICAST_RETRY\n [-2, -2, false], // APS_DATA_TX_UNICAST_FAILED\n [1.3, 1.6, false], // ROUTE_DISCOVERY_INITIATED\n [0, 0, false], // NEIGHBOR_ADDED\n [0, 0, false], // NEIGHBOR_REMOVED\n [3, 6, false], // NEIGHBOR_STALE\n [0, 0, false], // JOIN_INDICATION\n [0, 0, false], // CHILD_REMOVED\n [-1, -1, false], // ASH_OVERFLOW_ERROR\n [-1, -1, false], // ASH_FRAMING_ERROR\n [-1, -1, false], // ASH_OVERRUN_ERROR\n [10, 20, false], // NWK_FRAME_COUNTER_FAILURE\n [10, 20, false], // APS_FRAME_COUNTER_FAILURE\n [-1, -1, false], // ASH_XOFF\n [0, 0, false], // APS_LINK_KEY_NOT_AUTHORIZED\n [10, 20, false], // NWK_DECRYPTION_FAILURE\n [10, 20, false], // APS_DECRYPTION_FAILURE\n [0, 0, false], // ALLOCATE_PACKET_BUFFER_FAILURE\n [0, 0, false], // RELAYED_UNICAST\n [-1, -1, false], // PHY_TO_MAC_QUEUE_LIMIT_REACHED\n [-1, -1, false], // PACKET_VALIDATE_LIBRARY_DROPPED_COUNT\n [-1, -1, false], // TYPE_NWK_RETRY_OVERFLOW\n [10, 15, false], // PHY_CCA_FAIL_COUNT\n [-2, -2, false], // BROADCAST_TABLE_FULL\n [0, 0, false], // PTA_LO_PRI_REQUESTED\n [0, 0, false], // PTA_HI_PRI_REQUESTED\n [0, 0, false], // PTA_LO_PRI_DENIED\n [0, 0, false], // PTA_HI_PRI_DENIED\n [0, 0, false], // PTA_LO_PRI_TX_ABORTED\n [0, 0, false], // PTA_HI_PRI_TX_ABORTED\n [-2, -2, false], // ADDRESS_CONFLICT_SENT\n];\n\nexport const IDEAL_ASH_COUNTERS_FACTORS: [badFactor: number, veryBadFactor: number, higherBetter: boolean][] = [\n [0, 0, false], // TX_DATA\n [0, 0, false], // TX_ALL_FRAMES\n [0, 0, false], // TX_DATA_FRAMES\n [0, 0, false], // TX_ACK_FRAMES\n [-1, -1, false], // TX_NAK_FRAMES\n [-1, -1, false], // TX_RE_DATA_FRAMES\n [-1, -1, false], // TX_N1_FRAMES\n [-1, -1, false], // TX_CANCELLED\n [0, 0, false], // RX_DATA\n [0, 0, false], // RX_ALL_FRAMES\n [0, 0, false], // RX_DATA_FRAMES\n [0, 0, false], // RX_ACK_FRAMES\n [-1, -1, false], // RX_NAK_FRAMES\n [-1, -1, false], // RX_RE_DATA_FRAMES\n [-1, -1, false], // RX_N1_FRAMES\n [-1, -1, false], // RX_CANCELLED\n [-1, -1, false], // RX_CRC_ERRORS\n [-1, -1, false], // RX_COMM_ERRORS\n [-1, -1, false], // RX_TOO_SHORT\n [-1, -1, false], // RX_TOO_LONG\n [-1, -1, false], // RX_BAD_CONTROL\n [-1, -1, false], // RX_BAD_LENGTH\n [-1, -1, false], // RX_BAD_ACK_NUMBER\n [-1, -1, false], // RX_NO_BUFFER\n [-1, -1, false], // RX_DUPLICATES\n [-1, -1, false], // RX_OUT_OF_SEQUENCE\n [-1, -1, false], // RX_ACK_TIMEOUTS\n];\n","import { TableCellData } from './types';\n\nexport type ValueClassName = 'is-danger' | 'is-warning';\n\n// If `badFactor` and `veryBadFactor` are -1, it means any value other than 0 should flag as is-danger\n// If `badFactor` and `veryBadFactor` are -2, it means any value other than 0 should flag as is-warning\nexport function getValueClassName(\n value: number,\n ideal: number,\n badFactor: number,\n veryBadFactor: number = 0,\n higherBetter: boolean = false,\n): ValueClassName | undefined {\n if (badFactor === -1 && veryBadFactor === -1) {\n if (value !== 0) {\n return 'is-danger';\n }\n } else if (badFactor === -2 && veryBadFactor === -2) {\n if (value !== 0) {\n return 'is-warning';\n }\n } else if (ideal !== 0 && badFactor !== 0) {\n if (veryBadFactor === 0) {\n veryBadFactor = badFactor * 2;\n }\n\n if (higherBetter ? value < ideal * veryBadFactor : value > ideal * veryBadFactor) {\n return 'is-danger';\n }\n\n if (higherBetter ? value < ideal * badFactor : value > ideal * badFactor) {\n return 'is-warning';\n }\n }\n\n return undefined;\n}\n\nexport function makeH3(text: string, className: string = ''): HTMLHeadElement {\n const p = document.createElement('h3');\n p.textContent = text;\n p.className = className;\n\n return p;\n}\n\nexport function makeParagraph(text: string, className: string = ''): HTMLParagraphElement {\n const p = document.createElement('p');\n p.textContent = text;\n p.className = className;\n\n return p;\n}\n\nexport function makeButton(text: string, className: string = ''): HTMLAnchorElement {\n const a = document.createElement('a');\n a.textContent = text;\n a.className = `button ${className}`;\n\n return a;\n}\n\nexport function makeTableContainer(table?: HTMLTableElement): HTMLDivElement {\n const container = document.createElement('div');\n container.className = 'table-container pb-2';\n\n if (table) {\n container.append(table);\n }\n\n return container;\n}\n\nexport function makeTable(headCols: string[], footCols: string[], rows: TableCellData[][], sortable: boolean = false): HTMLTableElement {\n const table = document.createElement('table');\n const tBody = document.createElement('tbody');\n table.className = `table is-fullwidth is-narrow is-hoverable is-bordered ${sortable ? 'is-clickable' : ''}`;\n\n if (headCols.length > 0) {\n const tHead = document.createElement('thead');\n const tr = document.createElement('tr');\n const cols: HTMLTableCellElement[] = [];\n\n for (const headCol of headCols) {\n const th = document.createElement('th');\n th.innerHTML = headCol;\n\n tr.append(th);\n cols.push(th);\n }\n\n if (sortable) {\n for (const [i, col] of cols.entries()) {\n col.addEventListener('click', () => {\n sortTable(tBody, i);\n });\n }\n }\n\n tHead.append(tr);\n table.append(tHead);\n }\n\n if (rows.length > 0) {\n for (const row of rows) {\n const tr = document.createElement('tr');\n\n for (const cell of row) {\n const td = document.createElement('td');\n td.innerHTML = cell.content;\n\n if (cell.className) {\n td.className = cell.className;\n }\n\n tr.append(td);\n }\n\n tBody.append(tr);\n }\n }\n\n table.append(tBody);\n\n if (footCols.length > 0) {\n const tFoot = document.createElement('tfoot');\n const tr = document.createElement('tr');\n\n for (const footCol of footCols) {\n const th = document.createElement('th');\n th.innerHTML = footCol;\n\n tr.append(th);\n }\n\n tFoot.append(tr);\n table.append(tFoot);\n }\n\n return table;\n}\n\nexport function makeList(items: string[]): HTMLUListElement {\n const list = document.createElement('ul');\n\n for (const item of items) {\n const listItem = document.createElement('li');\n listItem.innerHTML = item;\n\n list.append(listItem);\n }\n\n return list;\n}\n\nexport function makeListCard(title: string, listItems: string[]): HTMLDivElement {\n const card = document.createElement('div');\n card.className = 'card';\n\n const cardHeader = document.createElement('header');\n cardHeader.className = 'card-header';\n\n const cardTitle = document.createElement('p');\n cardTitle.className = 'card-header-title';\n cardTitle.innerHTML = title;\n\n cardHeader.append(cardTitle);\n card.append(cardHeader);\n\n const cardContent = document.createElement('div');\n cardContent.className = 'card-content';\n\n const content = document.createElement('div');\n content.className = 'content';\n\n const list = makeList(listItems);\n\n content.append(list);\n cardContent.append(content);\n card.append(cardContent);\n\n return card;\n}\n\nexport function makeMessage(title: string, message: string, className: string = ''): HTMLElement {\n const article = document.createElement('article');\n article.className = `message ${className}`;\n\n const header = document.createElement('div');\n header.className = 'message-header';\n header.textContent = title;\n\n article.append(header);\n\n if (message !== '') {\n const body = document.createElement('div');\n body.className = 'message-body';\n body.innerHTML = message;\n\n article.append(body);\n }\n\n return article;\n}\n\nexport function sortTable(tableBody: HTMLTableSectionElement, colIndex: number) {\n const rowsArray = [...tableBody.rows];\n let order: 'asc' | 'desc' = 'desc';\n const tableSorting = tableBody.getAttribute('sorting');\n\n if (tableSorting && tableSorting !== '') {\n const lastSorting = tableSorting.split('.');\n\n if (Number.parseInt(lastSorting[0], 10) === colIndex && lastSorting[1] === 'desc') {\n order = 'asc';\n }\n }\n\n const sortFn =\n order === 'desc'\n ? (a: HTMLTableRowElement, b: HTMLTableRowElement) =>\n b.cells[colIndex].innerHTML.localeCompare(a.cells[colIndex].innerHTML, undefined, { numeric: true })\n : (a: HTMLTableRowElement, b: HTMLTableRowElement) =>\n a.cells[colIndex].innerHTML.localeCompare(b.cells[colIndex].innerHTML, undefined, { numeric: true });\n\n rowsArray.sort(sortFn);\n\n tableBody.setAttribute('sorting', `${colIndex}.${order}`);\n\n const tableHeadCols = tableBody.previousElementSibling?.children[0];\n\n if (tableHeadCols) {\n for (let i = 0; i < tableHeadCols.children.length; i++) {\n tableHeadCols.children[i].className = i === colIndex ? `is-sorted-${order}` : '';\n }\n }\n\n tableBody.append(...rowsArray);\n}\n","import Notify from 'simple-notify';\n\nexport class NotifyError extends Error {\n constructor(message: string, title: string) {\n // eslint-disable-next-line no-new\n new Notify({\n status: 'error',\n title,\n text: message,\n });\n\n super(`${title}: ${message}`);\n }\n}\n","export const round = (n: number, precision: number = 2): number => {\n const factor = 10 ** precision;\n\n return Math.round(n * factor) / factor;\n};\n\n// @from zigbee2mqtt-frontend\nexport const toHex = (input: number, padding = 4): string => {\n const padStr = '0'.repeat(padding);\n return '0x' + (padStr + input.toString(16)).slice(-1 * padding).toUpperCase();\n};\n"],"names":["$b4e14b6b8da86996$var$logFile","$parcel$interopDefault","a","__esModule","default","EmberCounterType","AshCounterType","EmberStackError","$0c547add3190c50c$export$7d1f329b3260ae16","$0c547add3190c50c$export$ce7ab19ae6dc792d","$0c547add3190c50c$export$128038c7eaec3edd","$parcel$global","globalThis","$parcel$modules","$parcel$inits","parcelRequire","id","exports","init","module","call","err","Error","code","register","parcelRegister","factory","hooks","hookCallback","apply","arguments","isArray","input","Array","Object","prototype","toString","isObject","hasOwnProp","b","hasOwnProperty","isObjectEmpty","obj","k","getOwnPropertyNames","length","isUndefined","isNumber","isDate","Date","map","arr","fn","i","res","arrLen","push","extend","valueOf","createUTC","format","locale","strict","createLocalOrUTC","utc","getParsingFlags","m","_pf","empty","unusedTokens","unusedInput","overflow","charsLeftOver","nullInput","invalidEra","invalidMonth","invalidFormat","userInvalidated","iso","parsedDateParts","era","meridiem","rfc2822","weekdayMismatch","isValid","flags","parsedParts","isNowValid","_d","isNaN","getTime","some","invalidWeekday","_strict","undefined","bigHour","isFrozen","_isValid","createInvalid","NaN","fun","t","len","token","getSetMillisecond","momentProperties","updateInProgress","copyConfig","to","from","prop","val","momentPropertiesLen","_isAMomentObject","_i","_f","_l","_tzm","_isUTC","_offset","_locale","Moment","config","updateOffset","isMoment","warn","msg","suppressDeprecationWarnings","console","deprecate","firstTime","deprecationHandler","arg","key","args","argLen","slice","join","stack","deprecations","deprecateSimple","name","isFunction","Function","mergeConfigs","parentConfig","childConfig","Locale","set","zeroFill","number","targetLength","forceSign","absNumber","Math","abs","sign","pow","max","substr","keys","formattingTokens","localFormattingTokens","formatFunctions","formatTokenFunctions","addFormatToken","padded","ordinal","callback","func","localeData","formatMoment","expandFormat","makeFormatFunction","array","match","replace","mom","output","invalidDate","replaceLongDateFormatTokens","longDateFormat","lastIndex","test","aliases","D","dates","date","d","days","day","e","weekdays","weekday","E","isoweekdays","isoweekday","DDD","dayofyears","dayofyear","h","hours","hour","ms","milliseconds","millisecond","minutes","minute","M","months","month","Q","quarters","quarter","s","seconds","second","gg","weekyears","weekyear","GG","isoweekyears","isoweekyear","w","weeks","week","W","isoweeks","isoweek","y","years","year","normalizeUnits","units","toLowerCase","normalizeObjectUnits","inputObject","normalizedProp","normalizedInput","regexes","priorities","isoWeekday","dayOfYear","weekYear","isoWeekYear","isoWeek","match1","match2","match3","match4","match6","match1to2","match3to4","match5to6","match1to3","match1to4","match1to6","matchUnsigned","matchSigned","matchOffset","matchShortOffset","matchWord","match1to2NoLeadingZero","match1to2HasZero","addRegexToken","regex","strictRegex","isStrict","regexEscape","absFloor","ceil","floor","toInt","argumentForCoercion","coercedNumber","value","isFinite","tokens","addParseToken","tokenLen","addWeekParseToken","_w","isLeapYear","daysInYear","parseTwoDigitYear","parseInt","getSetYear","makeGetSet","unit","keepTime","set$1","get","isUTC","getUTCMilliseconds","getMilliseconds","getUTCSeconds","getSeconds","getUTCMinutes","getMinutes","getUTCHours","getHours","getUTCDate","getDate","getUTCDay","getDay","getUTCMonth","getMonth","getUTCFullYear","getFullYear","setUTCMilliseconds","setMilliseconds","setUTCSeconds","setSeconds","setUTCMinutes","setMinutes","setUTCHours","setHours","setUTCDate","setDate","setUTCFullYear","setFullYear","daysInMonth","modMonth","n","x","indexOf","o","monthsShort","monthsShortRegex","monthsRegex","monthsParse","defaultLocaleMonthsShort","split","MONTHS_IN_FORMAT","handleStrictParse","monthName","ii","llc","toLocaleLowerCase","_monthsParse","_longMonthsParse","_shortMonthsParse","setMonth","min","setUTCMonth","getSetMonth","computeMonthsParse","cmpLenRev","shortP","longP","shortPieces","longPieces","mixedPieces","sort","_monthsRegex","RegExp","_monthsShortRegex","_monthsStrictRegex","_monthsShortStrictRegex","createDate","createUTCDate","UTC","firstWeekOffset","dow","doy","fwd","dayOfYearFromWeeks","resYear","resDayOfYear","weekOfYear","resWeek","weekOffset","weeksInYear","weekOffsetNext","shiftWeekdays","ws","concat","weekdaysMin","weekdaysShort","weekdaysMinRegex","weekdaysShortRegex","weekdaysRegex","weekdaysParse","defaultLocaleWeekdaysShort","handleStrictParse$1","weekdayName","_weekdaysParse","_shortWeekdaysParse","_minWeekdaysParse","computeWeekdaysParse","minp","shortp","longp","minPieces","_weekdaysRegex","_weekdaysShortRegex","_weekdaysMinRegex","_weekdaysStrictRegex","_weekdaysShortStrictRegex","_weekdaysMinStrictRegex","hFormat","lowercase","matchMeridiem","_meridiemParse","kInput","_isPm","isPM","_meridiem","pos","pos1","pos2","globalLocale","getSetHour","baseConfig","calendar","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","LTS","LT","L","LL","LLL","LLLL","dayOfMonthOrdinalParse","relativeTime","future","past","ss","mm","hh","dd","ww","MM","yy","meridiemParse","locales","localeFamilies","normalizeLocale","loadLocale","oldLocale","_abbr","aliasedRequire","getSetGlobalLocale","values","data","getLocale","defineLocale","abbr","_config","parentLocale","forEach","chooseLocale","names","j","next","commonPrefix","arr1","arr2","minl","checkOverflow","_a","_overflowDayOfYear","_overflowWeeks","_overflowWeekday","extendedIsoRegex","basicIsoRegex","tzRegex","isoDates","isoTimes","aspNetJsonRegex","obsOffsets","UT","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","configFromISO","l","allowTime","dateFormat","timeFormat","tzFormat","string","exec","isoDatesLen","isoTimesLen","configFromStringAndFormat","configFromRFC2822","yearStr","monthStr","dayStr","hourStr","minuteStr","secondStr","result","weekdayStr","weekdayProvided","parsedInput","calculateOffset","obsOffset","militaryOffset","numOffset","hm","defaults","c","configFromArray","temp","weekdayOverflow","curWeek","nowValue","currentDate","expectedWeekday","yearToUse","now","_useUTC","createLocal","_week","_dayOfYear","_nextDay","ISO_8601","RFC_2822","isPm","skipped","stringLength","totalParsedInputLength","matched","p1","p2","p3","p4","meridiemHour","erasConvertYear","prepareConfig","preparse","configFromStringAndArray","tempConfig","bestMoment","scoreToBeat","currentScore","validFormatFound","bestFormatIsValid","configfLen","score","configFromString","createFromInputFallback","configFromObject","dayOrDate","add","prototypeMin","other","prototypeMax","pickBy","moments","ordering","Duration","duration","isDurationValid","unitHasDecimal","orderLen","parseFloat","_milliseconds","_days","_months","_data","_bubble","isDuration","absRound","round","offset","separator","utcOffset","offsetFromString","chunkOffset","matcher","parts","matches","chunk","cloneWithOffset","model","diff","clone","setTime","local","getDateOffset","getTimezoneOffset","isUtc","aspNetRegex","isoRegex","createDuration","base","ret","diffRes","parseIso","isBefore","positiveMomentsDifference","inp","isAfter","createAdder","direction","period","tmp","addSubtract","isAdding","invalid","subtract","isString","String","monthDiff","adjust","wholeMonthDiff","anchor","anchor2","newLocaleData","defaultFormat","defaultFormatUtc","lang","localStartOfDate","utcStartOfDate","matchEraAbbr","erasAbbrRegex","computeErasParse","erasName","erasAbbr","erasNarrow","abbrPieces","namePieces","narrowPieces","eras","narrow","_erasRegex","_erasNameRegex","_erasAbbrRegex","_erasNarrowRegex","addWeekYearFormatToken","getter","getSetWeekYearHelper","weeksTarget","setWeekAll","dayOfYearData","erasNameRegex","erasNarrowRegex","erasParse","_eraYearOrdinalRegex","eraYearOrdinalParse","_dayOfMonthOrdinalParse","_ordinalParse","_dayOfMonthOrdinalParseLenient","getSetDayOfMonth","getSetMinute","getSetSecond","parseMs","proto","preParsePostFormat","time","formats","arrayTest","dataTypeTest","filter","item","isMomentInputObject","property","objectTest","propertyTest","properties","propertyLen","isCalendarSpec","sod","startOf","calendarFormat","asFloat","that","zoneDelta","endOf","startOfDate","MS_PER_HOUR","dividend","MS_PER_MINUTE","MS_PER_SECOND","inputString","postformat","withoutSuffix","humanize","fromNow","toNow","invalidAt","localInput","isBetween","inclusivity","localFrom","localTo","isSame","inputMs","isSameOrAfter","isSameOrBefore","parsingFlags","prioritized","getPrioritizedUnits","unitsObj","u","priority","prioritizedLen","toArray","toObject","toDate","toISOString","keepOffset","inspect","prefix","datetime","suffix","zone","isLocal","Symbol","for","toJSON","unix","creationData","eraName","since","until","eraNarrow","eraAbbr","eraYear","dir","isoWeeks","weekInfo","weeksInWeekYear","isoWeeksInYear","isoWeeksInISOWeekYear","keepLocalTime","keepMinutes","localAdjust","_changeInProgress","parseZone","tZone","hasAlignedHourOffset","isDST","isUtcOffset","zoneAbbr","zoneName","isDSTShifted","_isDSTShifted","compareArrays","array1","array2","dontConvert","lengthDiff","diffs","proto$1","get$1","index","field","setter","listMonthsImpl","out","listWeekdaysImpl","localeSorted","shift","_calendar","_longDateFormat","formatUpper","toUpperCase","tok","_invalidDate","_ordinal","isFuture","_relativeTime","pastFuture","source","_eras","Infinity","isFormat","_monthsShort","_monthsParseExact","firstDayOfYear","firstDayOfWeek","_weekdays","_weekdaysMin","_weekdaysShort","_weekdaysParseExact","_fullWeekdaysParse","charAt","isLower","langData","mathAbs","addSubtract$1","absCeil","daysToMonths","monthsToDays","makeAs","alias","as","asMilliseconds","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asQuarters","asYears","makeGetter","thresholds","substituteTimeAgo","abs$1","toISOString$1","totalSign","ymSign","daysSign","hmsSign","total","toFixed","proto$2","monthsFromDays","argWithSuffix","argThresholds","withSuffix","th","assign","toIsoString","version","updateLocale","tmpLocale","relativeTimeRounding","roundingFunction","relativeTimeThreshold","threshold","limit","myMoment","HTML5_FMT","DATETIME_LOCAL","DATETIME_LOCAL_SECONDS","DATETIME_LOCAL_MS","DATE","TIME","TIME_SECONDS","TIME_MS","WEEK","MONTH","$45fvw","$37ea9347e68a07dc$var$i","defineProperty","$37ea9347e68a07dc$var$n","configurable","$37ea9347e68a07dc$var$h","DOMParser","parseFromString","body","childNodes","$37ea9347e68a07dc$var$d","document","importNode","documentElement","outerHTML","$37ea9347e68a07dc$var$u","CONTAINER","NOTIFY","NOTIFY_CONTENT","NOTIFY_ICON","NOTIFY_CLOSE","NOTIFY_TITLE","NOTIFY_TEXT","IS_X_CENTER","IS_Y_CENTER","IS_CENTER","IS_LEFT","IS_RIGHT","IS_TOP","IS_BOTTOM","NOTIFY_OUTLINE","NOTIFY_FILLED","NOTIFY_ERROR","NOTIFY_WARNING","NOTIFY_SUCCESS","NOTIFY_INFO","NOTIFY_FADE","NOTIFY_FADE_IN","NOTIFY_SLIDE","NOTIFY_SLIDE_IN","NOTIFY_AUTOCLOSE","$37ea9347e68a07dc$var$f","ERROR","WARNING","SUCCESS","INFO","$37ea9347e68a07dc$var$p","OUTLINE","FILLED","$37ea9347e68a07dc$var$I","FADE","SLIDE","$37ea9347e68a07dc$var$v","CLOSE","$37ea9347e68a07dc$var$N","wrapper","classList","setTimeout","$37ea9347e68a07dc$var$O","remove","speed","$37ea9347e68a07dc$var$T","$37ea9347e68a07dc$var$E","$37ea9347e68a07dc$var$m","$37ea9347e68a07dc$var$t","TypeError","notifyOut","notificationsGap","r","notificationsPadding","status","effect","f","type","v","title","N","text","O","showIcon","customIcon","customClass","F","showCloseButton","S","autoclose","R","autotimeout","position","customWrapper","checkRequirements","error","setContainer","setWrapper","setPosition","setIcon","setCloseButton","setContent","container","prepend","setEffect","notifyIn","selectedNotifyInEffect","autoClose","setObserver","querySelector","createElement","appendChild","style","setProperty","includes","innerHTML","addEventListener","close","textContent","trim","paddingRight","marginTop","IntersectionObserver","intersectionRatio","observe","selectedNotifyOutEffect","$37ea9347e68a07dc$var$e","enumerable","writable","Notify","$f9b620c609316de1$export$63c35f258aac6980","$f9b620c609316de1$export$303e55aba61750fd","$f9b620c609316de1$export$95beb742938a6341","$f9b620c609316de1$export$bc2704b0770a3200","$f9b620c609316de1$export$13864d84dc34e37e","$f9b620c609316de1$export$452af6364556dde","ROUTE_DISCOVERY_INITIATED","NEIGHBOR_ADDED","NEIGHBOR_REMOVED","NEIGHBOR_STALE","JOIN_INDICATION","CHILD_REMOVED","ASH_OVERFLOW_ERROR","ASH_FRAMING_ERROR","ASH_OVERRUN_ERROR","ASH_XOFF","$9a8cebc34540b0c1$export$230faf97f16ca50f","$9a8cebc34540b0c1$export$132b1ecb83473329","$9a8cebc34540b0c1$export$9db4cc0e61dac12","ROUTE_ERROR_NO_ROUTE_AVAILABLE","ROUTE_ERROR_TREE_LINK_FAILURE","ROUTE_ERROR_NON_TREE_LINK_FAILURE","ROUTE_ERROR_LOW_BATTERY_LEVEL","ROUTE_ERROR_NO_ROUTING_CAPACITY","ROUTE_ERROR_NO_INDIRECT_CAPACITY","ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY","ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE","ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED","ROUTE_ERROR_PARENT_LINK_FAILURE","ROUTE_ERROR_VALIDATE_ROUTE","ROUTE_ERROR_SOURCE_ROUTE_FAILURE","ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE","ROUTE_ERROR_ADDRESS_CONFLICT","ROUTE_ERROR_VERIFY_ADDRESSES","ROUTE_ERROR_PAN_IDENTIFIER_UPDATE","NETWORK_STATUS_NETWORK_ADDRESS_UPDATE","NETWORK_STATUS_BAD_FRAME_COUNTER","NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER","NETWORK_STATUS_UNKNOWN_COMMAND","$9a8cebc34540b0c1$export$28f5f2f1091db5f0","$9a8cebc34540b0c1$export$a91bc77486893ae8","$9a8cebc34540b0c1$export$87d42d2c5a101eee","$9a8cebc34540b0c1$export$973fb6872c2a8bcf","$5be042668c706f09$export$1ad60231255d3d9a","ideal","badFactor","veryBadFactor","higherBetter","$5be042668c706f09$export$15278ac1de423efe","className","$5be042668c706f09$export$61892979fbfca190","table","append","$5be042668c706f09$export$d96816ff34d2479a","headCols","footCols","rows","sortable","tBody","tHead","tr","cols","headCol","col","entries","$5be042668c706f09$export$a8f468ec3a62c6a1","tableBody","colIndex","rowsArray","order","tableSorting","getAttribute","lastSorting","Number","sortFn","cells","localeCompare","numeric","setAttribute","tableHeadCols","previousElementSibling","children","row","cell","td","content","tFoot","footCol","$5be042668c706f09$export$d6954196905e525e","listItems","card","cardHeader","cardTitle","cardContent","list","$5be042668c706f09$export$8690041b1e066766","items","listItem","$5be042668c706f09$export$80d602a56846f9b8","message","article","header","$1351eccf802354f1$export$2b677cfa6519f8ab","constructor","$df5bef30413a053b$export$2077e0241d6afd3c","precision","factor","$df5bef30413a053b$export$7ea66e3774a60b67","padding","padStr","repeat","$b4e14b6b8da86996$var$timestampFormat","$b4e14b6b8da86996$var$routers","$b4e14b6b8da86996$var$endDevices","$b4e14b6b8da86996$var$totalDevices","$b4e14b6b8da86996$var$logMetadata","lines","start","end","startOffset","$b4e14b6b8da86996$var$ncpCountersSum","$b4e14b6b8da86996$var$ncpCountersHoursCount","$b4e14b6b8da86996$var$ncpCounters","all","avg","avgPerDevice","avgForHour","$b4e14b6b8da86996$var$ashCountersSum","$b4e14b6b8da86996$var$ashCountersHoursCount","$b4e14b6b8da86996$var$ashCounters","$b4e14b6b8da86996$var$networkRouteErrors","$b4e14b6b8da86996$var$failedPings","$b4e14b6b8da86996$var$initVariables","fill","$b4e14b6b8da86996$var$makeTextFileLineIterator","file","utf8Decoder","TextDecoder","reader","stream","getReader","done","read","decode","re","startIndex","remainder","$b4e14b6b8da86996$var$parseLogFile","line","$b4e14b6b8da86996$var$parseLogLine","timestampMatch","timestamp","ncpCountersIndex","counters","subLine","cI","ashCountersIndex","networkRouteErrorIndex","splitLine","device","prev","at","countOffset","failedPingIndex","ncpCountersCount","counter","ashCountersCount","window","$loadForm","$heroBody","$menuHomeLink","$sectionHome","$menuStatsLink","$sectionStats","$menuNcpCountersLink","$sectionNcpCounters","$menuAshCountersLink","$sectionAshCounters","$menuRoutingLink","$sectionRouting","$menuToolsLink","$sectionTools","$menuHelpLink","$sectionHelp","menu","$link","$section","$otherLink","$otherSection","parentElement","event","preventDefault","FormData","$b4e14b6b8da86996$var$appendStatsSection","section","grid","ratio","parametersList","parametersCard","warningDuration","logFileCard","failedPingsByDevice","entry","count","$b4e14b6b8da86996$var$appendNCPCountersSection","ncpCountersHeader","ncpCountersRows","ncpCountersIdealRows","ncpCountersAvgPerDeviceRows","ncpCountersAvgRows","ncpCountersAvgForHourRows","tableContainerAvg","tableContainerAvgForHour","ashErrors","PHY_CCA_FAIL_COUNT","cls","MAC_TX_UNICAST_RETRY","ADDRESS_CONFLICT_SENT","BROADCAST_TABLE_FULL","showAllButton","tableContainerAll","$b4e14b6b8da86996$var$appendASHCountersSection","ashCountersHeader","ashCountersRows","ashCountersIdealRows","ashCountersAvgPerDeviceRows","ashCountersAvgRows","ashCountersAvgForHourRows","TX_N1_FRAMES","RX_NO_BUFFER","rxBad","RX_CRC_ERRORS","RX_COMM_ERRORS","RX_TOO_SHORT","RX_TOO_LONG","RX_BAD_CONTROL","RX_BAD_LENGTH","RX_BAD_ACK_NUMBER","RX_OUT_OF_SEQUENCE","RX_ACK_TIMEOUTS","$b4e14b6b8da86996$var$appendRoutingSection","errorsByDevice","tableContainer","rowsByError","deviceAvgPerHour","notice","click","ncpCountersTable","ashCountersTable","location","hash","link","close_default","error_default","info_default","success_default","warning_default","stringToHTML","__name","strHTML","getSvgNode","svg","doc","CLASSNAMES","NOTIFY_STATUS_ENUMS","NOTIFY_TYPE_ENUMS","NOTIFY_ANIMATION_ENUMS","ICONS","fadeIn","self","fadeOut","slideIn","slideOut","_Notify","closeWrapper","contentWrapper","titleElement","textElement","computedIcon","iconWrapper","observer"],"version":3,"file":"index.f81b5c4a.js.map"} \ No newline at end of file +{"mappings":"IEiDI,E,S,E,C,E,O,G,E,U,C,E,O,C,C,C,IYvCQ,EAkMA,EAgCA,EAnOX,E,E,E,E,W,E,C,E,E,C,E,E,E,iB,A,O,I,A,C,E,S,C,E,G,K,E,O,C,C,E,C,O,C,G,K,E,C,I,E,C,C,E,A,Q,C,C,E,C,I,E,C,G,E,Q,C,C,E,O,C,C,E,C,E,E,I,C,E,O,C,E,E,O,E,E,O,A,C,I,E,A,M,uB,E,I,O,E,I,C,mB,C,C,E,Q,C,S,C,C,C,E,C,C,E,C,C,E,E,iB,C,G,A,C,E,E,Q,A,E,Q,S,C,C,C,MbHmB,EAAA,EAIX,WAIL,SAAS,IACL,OAAO,EAAa,KAAK,CAAC,KAAM,UACpC,CAQA,SAAS,EAAQ,CAAK,EAClB,OACI,aAAiB,OACjB,AAA0C,mBAA1C,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAEvC,CAEA,SAAS,EAAS,CAAK,EAGnB,OACI,AAAS,MAAT,GACA,AAA0C,oBAA1C,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAEvC,CAEA,SAAS,EAAW,CAAC,CAAE,CAAC,EACpB,OAAO,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAG,EACnD,CAEA,SAAS,EAAc,CAAG,MAId,EAHR,GAAI,OAAO,mBAAmB,CAC1B,OAAO,AAA2C,IAA3C,OAAO,mBAAmB,CAAC,GAAK,MAAM,CAG7C,IAAK,KAAK,EACN,GAAI,EAAW,EAAK,GAChB,MAAO,CAAA,EAGf,MAAO,CAAA,CAEf,CAEA,SAAS,EAAY,CAAK,EACtB,OAAO,AAAU,KAAK,IAAf,CACX,CAEA,SAAS,EAAS,CAAK,EACnB,MACI,AAAiB,UAAjB,OAAO,GACP,AAA0C,oBAA1C,OAAO,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A,IAAlC,GAAmB,GAAG,CAAC,MAAM,EAE7B,IErnCZ,EFqnCuB,CACP,OAAQ,UACR,MAAO,+BACP,KAAM,0DACV,EAER,GAEA,EAAe,gBAAgB,CAAC,QAAS,UAAa,EAGtD,EACI,IAAM,EAAqC,EAAE,CAE7C,IAAK,IAAI,EAAI,EAAG,EWjoCgB,GXioCc,IAC1C,EAAgB,IAAI,CAAC,CACjB,CAAE,QAAS,AAAA,CAAgB,CAAC,EAAE,AAAC,EAC/B,CAAE,QAAS,AAAA,CAAkB,CAAC,EAAE,CAAC,QAAQ,EAAG,EAC5C,CAAE,QAAS,AAAA,CAAmB,CAAC,EAAE,AAAC,EACrC,EAGL,IAAM,EAAmB,AAAA,EAAmB,AAAA,EAAU,CAAC,cAAe,qBAAsB,OAAO,CAAE,EAAE,CAAE,IAEnG,EAAqC,EAAE,CAE7C,IAAK,IAAI,EAAI,EAAG,EW5oCc,GX4oCc,IACxC,EAAgB,IAAI,CAAC,CACjB,CAAE,QAAS,AAAA,CAAc,CAAC,EAAE,AAAC,EAC7B,CAAE,QAAS,AAAA,CAAkB,CAAC,EAAE,CAAC,QAAQ,EAAG,EAC5C,CAAE,QAAS,AAAA,CAAmB,CAAC,EAAE,AAAC,EACrC,EAGL,IAAM,EAAmB,AAAA,EAAmB,AAAA,EAAU,CAAC,cAAe,qBAAsB,OAAO,CAAE,EAAE,CAAE,IAEzG,EAAa,MAAM,CAAC,GACpB,EAAa,MAAM,CAAC,EACxB,CAEA,GAAI,OAAO,QAAQ,CAAC,IAAI,CAAE,CACtB,IAAM,EAAO,SAAS,aAAa,CAAC,CAAC,MAAM,EAAE,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAExE,GACA,EAAK,KAAK,EAElB,CACJ","sources":["","node_modules/moment/moment.js","src/index.ts","node_modules/simple-notify/dist/simple-notify.mjs","node_modules/simple-notify/src/icons/close.svg","node_modules/simple-notify/src/icons/error.svg","node_modules/simple-notify/src/icons/info.svg","node_modules/simple-notify/src/icons/success.svg","node_modules/simple-notify/src/icons/warning.svg","node_modules/simple-notify/src/utils.ts","node_modules/simple-notify/src/consts.ts","node_modules/simple-notify/src/effects.ts","node_modules/simple-notify/src/index.ts","src/consts.ts","src/zh.ts","src/data.ts","src/dom.ts","src/notify-error.ts","src/utils.ts"],"sourcesContent":["\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global = globalThis;\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequire0c64\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequire0c64\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"45fvw\", function(module, exports) {\n//! moment.js\n//! version : 2.30.1\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n(function(global, factory) {\n module.exports = factory();\n})(this, function() {\n \"use strict\";\n var hookCallback;\n function hooks() {\n return hookCallback.apply(null, arguments);\n }\n // This is done to register the method called with moment()\n // without creating circular dependencies.\n function setHookCallback(callback) {\n hookCallback = callback;\n }\n function isArray(input) {\n return input instanceof Array || Object.prototype.toString.call(input) === \"[object Array]\";\n }\n function isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return input != null && Object.prototype.toString.call(input) === \"[object Object]\";\n }\n function hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n }\n function isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) return Object.getOwnPropertyNames(obj).length === 0;\n else {\n var k;\n for(k in obj){\n if (hasOwnProp(obj, k)) return false;\n }\n return true;\n }\n }\n function isUndefined(input) {\n return input === void 0;\n }\n function isNumber(input) {\n return typeof input === \"number\" || Object.prototype.toString.call(input) === \"[object Number]\";\n }\n function isDate(input) {\n return input instanceof Date || Object.prototype.toString.call(input) === \"[object Date]\";\n }\n function map(arr, fn) {\n var res = [], i, arrLen = arr.length;\n for(i = 0; i < arrLen; ++i)res.push(fn(arr[i], i));\n return res;\n }\n function extend(a, b) {\n for(var i in b)if (hasOwnProp(b, i)) a[i] = b[i];\n if (hasOwnProp(b, \"toString\")) a.toString = b.toString;\n if (hasOwnProp(b, \"valueOf\")) a.valueOf = b.valueOf;\n return a;\n }\n function createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n }\n function defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidEra: null,\n invalidMonth: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false\n };\n }\n function getParsingFlags(m) {\n if (m._pf == null) m._pf = defaultParsingFlags();\n return m._pf;\n }\n var some;\n if (Array.prototype.some) some = Array.prototype.some;\n else some = function(fun) {\n var t = Object(this), len = t.length >>> 0, i;\n for(i = 0; i < len; i++){\n if (i in t && fun.call(this, t[i], i, t)) return true;\n }\n return false;\n };\n function isValid(m) {\n var flags = null, parsedParts = false, isNowValid = m._d && !isNaN(m._d.getTime());\n if (isNowValid) {\n flags = getParsingFlags(m);\n parsedParts = some.call(flags.parsedDateParts, function(i) {\n return i != null;\n });\n isNowValid = flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);\n if (m._strict) isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === undefined;\n }\n if (Object.isFrozen == null || !Object.isFrozen(m)) m._isValid = isNowValid;\n else return isNowValid;\n return m._isValid;\n }\n function createInvalid(flags) {\n var m = createUTC(NaN);\n if (flags != null) extend(getParsingFlags(m), flags);\n else getParsingFlags(m).userInvalidated = true;\n return m;\n }\n // Plugins that add properties should also add the key here (null value),\n // so we can properly clone ourselves.\n var momentProperties = hooks.momentProperties = [], updateInProgress = false;\n function copyConfig(to, from) {\n var i, prop, val, momentPropertiesLen = momentProperties.length;\n if (!isUndefined(from._isAMomentObject)) to._isAMomentObject = from._isAMomentObject;\n if (!isUndefined(from._i)) to._i = from._i;\n if (!isUndefined(from._f)) to._f = from._f;\n if (!isUndefined(from._l)) to._l = from._l;\n if (!isUndefined(from._strict)) to._strict = from._strict;\n if (!isUndefined(from._tzm)) to._tzm = from._tzm;\n if (!isUndefined(from._isUTC)) to._isUTC = from._isUTC;\n if (!isUndefined(from._offset)) to._offset = from._offset;\n if (!isUndefined(from._pf)) to._pf = getParsingFlags(from);\n if (!isUndefined(from._locale)) to._locale = from._locale;\n if (momentPropertiesLen > 0) for(i = 0; i < momentPropertiesLen; i++){\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) to[prop] = val;\n }\n return to;\n }\n // Moment prototype object\n function Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) this._d = new Date(NaN);\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n }\n function isMoment(obj) {\n return obj instanceof Moment || obj != null && obj._isAMomentObject != null;\n }\n function warn(msg) {\n if (hooks.suppressDeprecationWarnings === false && typeof console !== \"undefined\" && console.warn) console.warn(\"Deprecation warning: \" + msg);\n }\n function deprecate(msg, fn) {\n var firstTime = true;\n return extend(function() {\n if (hooks.deprecationHandler != null) hooks.deprecationHandler(null, msg);\n if (firstTime) {\n var args = [], arg, i, key, argLen = arguments.length;\n for(i = 0; i < argLen; i++){\n arg = \"\";\n if (typeof arguments[i] === \"object\") {\n arg += \"\\n[\" + i + \"] \";\n for(key in arguments[0])if (hasOwnProp(arguments[0], key)) arg += key + \": \" + arguments[0][key] + \", \";\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else arg = arguments[i];\n args.push(arg);\n }\n warn(msg + \"\\nArguments: \" + Array.prototype.slice.call(args).join(\"\") + \"\\n\" + new Error().stack);\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n }\n var deprecations = {};\n function deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) hooks.deprecationHandler(name, msg);\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n }\n hooks.suppressDeprecationWarnings = false;\n hooks.deprecationHandler = null;\n function isFunction(input) {\n return typeof Function !== \"undefined\" && input instanceof Function || Object.prototype.toString.call(input) === \"[object Function]\";\n }\n function set(config) {\n var prop, i;\n for(i in config)if (hasOwnProp(config, i)) {\n prop = config[i];\n if (isFunction(prop)) this[i] = prop;\n else this[\"_\" + i] = prop;\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + \"|\" + /\\d{1,2}/.source);\n }\n function mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig), prop;\n for(prop in childConfig)if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) res[prop] = childConfig[prop];\n else delete res[prop];\n }\n for(prop in parentConfig)if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n return res;\n }\n function Locale(config) {\n if (config != null) this.set(config);\n }\n var keys;\n if (Object.keys) keys = Object.keys;\n else keys = function(obj) {\n var i, res = [];\n for(i in obj)if (hasOwnProp(obj, i)) res.push(i);\n return res;\n };\n var defaultCalendar = {\n sameDay: \"[Today at] LT\",\n nextDay: \"[Tomorrow at] LT\",\n nextWeek: \"dddd [at] LT\",\n lastDay: \"[Yesterday at] LT\",\n lastWeek: \"[Last] dddd [at] LT\",\n sameElse: \"L\"\n };\n function calendar(key, mom, now) {\n var output = this._calendar[key] || this._calendar[\"sameElse\"];\n return isFunction(output) ? output.call(mom, now) : output;\n }\n function zeroFill(number, targetLength, forceSign) {\n var absNumber = \"\" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign = number >= 0;\n return (sign ? forceSign ? \"+\" : \"\" : \"-\") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;\n }\n var formattingTokens = /(\\[[^\\[]*\\])|(\\\\)?([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, localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {};\n // token: 'M'\n // padded: ['MM', 2]\n // ordinal: 'Mo'\n // callback: function () { this.month() + 1 }\n function addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === \"string\") func = function() {\n return this[callback]();\n };\n if (token) formatTokenFunctions[token] = func;\n if (padded) formatTokenFunctions[padded[0]] = function() {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n if (ordinal) formatTokenFunctions[ordinal] = function() {\n return this.localeData().ordinal(func.apply(this, arguments), token);\n };\n }\n function removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) return input.replace(/^\\[|\\]$/g, \"\");\n return input.replace(/\\\\/g, \"\");\n }\n function makeFormatFunction(format) {\n var array = format.match(formattingTokens), i, length;\n for(i = 0, length = array.length; i < length; i++)if (formatTokenFunctions[array[i]]) array[i] = formatTokenFunctions[array[i]];\n else array[i] = removeFormattingTokens(array[i]);\n return function(mom) {\n var output = \"\", i;\n for(i = 0; i < length; i++)output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];\n return output;\n };\n }\n // format date using native date object\n function formatMoment(m, format) {\n if (!m.isValid()) return m.localeData().invalidDate();\n format = expandFormat(format, m.localeData());\n formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);\n return formatFunctions[format](m);\n }\n function expandFormat(format, locale) {\n var i = 5;\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n localFormattingTokens.lastIndex = 0;\n while(i >= 0 && localFormattingTokens.test(format)){\n format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n return format;\n }\n var defaultLongDateFormat = {\n LTS: \"h:mm:ss A\",\n LT: \"h:mm A\",\n L: \"MM/DD/YYYY\",\n LL: \"MMMM D, YYYY\",\n LLL: \"MMMM D, YYYY h:mm A\",\n LLLL: \"dddd, MMMM D, YYYY h:mm A\"\n };\n function longDateFormat(key) {\n var format = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()];\n if (format || !formatUpper) return format;\n this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function(tok) {\n if (tok === \"MMMM\" || tok === \"MM\" || tok === \"DD\" || tok === \"dddd\") return tok.slice(1);\n return tok;\n }).join(\"\");\n return this._longDateFormat[key];\n }\n var defaultInvalidDate = \"Invalid date\";\n function invalidDate() {\n return this._invalidDate;\n }\n var defaultOrdinal = \"%d\", defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n function ordinal(number) {\n return this._ordinal.replace(\"%d\", number);\n }\n var defaultRelativeTime = {\n future: \"in %s\",\n past: \"%s ago\",\n s: \"a few seconds\",\n ss: \"%d seconds\",\n m: \"a minute\",\n mm: \"%d minutes\",\n h: \"an hour\",\n hh: \"%d hours\",\n d: \"a day\",\n dd: \"%d days\",\n w: \"a week\",\n ww: \"%d weeks\",\n M: \"a month\",\n MM: \"%d months\",\n y: \"a year\",\n yy: \"%d years\"\n };\n function relativeTime(number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);\n }\n function pastFuture(diff, output) {\n var format = this._relativeTime[diff > 0 ? \"future\" : \"past\"];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n }\n var aliases = {\n D: \"date\",\n dates: \"date\",\n date: \"date\",\n d: \"day\",\n days: \"day\",\n day: \"day\",\n e: \"weekday\",\n weekdays: \"weekday\",\n weekday: \"weekday\",\n E: \"isoWeekday\",\n isoweekdays: \"isoWeekday\",\n isoweekday: \"isoWeekday\",\n DDD: \"dayOfYear\",\n dayofyears: \"dayOfYear\",\n dayofyear: \"dayOfYear\",\n h: \"hour\",\n hours: \"hour\",\n hour: \"hour\",\n ms: \"millisecond\",\n milliseconds: \"millisecond\",\n millisecond: \"millisecond\",\n m: \"minute\",\n minutes: \"minute\",\n minute: \"minute\",\n M: \"month\",\n months: \"month\",\n month: \"month\",\n Q: \"quarter\",\n quarters: \"quarter\",\n quarter: \"quarter\",\n s: \"second\",\n seconds: \"second\",\n second: \"second\",\n gg: \"weekYear\",\n weekyears: \"weekYear\",\n weekyear: \"weekYear\",\n GG: \"isoWeekYear\",\n isoweekyears: \"isoWeekYear\",\n isoweekyear: \"isoWeekYear\",\n w: \"week\",\n weeks: \"week\",\n week: \"week\",\n W: \"isoWeek\",\n isoweeks: \"isoWeek\",\n isoweek: \"isoWeek\",\n y: \"year\",\n years: \"year\",\n year: \"year\"\n };\n function normalizeUnits(units) {\n return typeof units === \"string\" ? aliases[units] || aliases[units.toLowerCase()] : undefined;\n }\n function normalizeObjectUnits(inputObject) {\n var normalizedInput = {}, normalizedProp, prop;\n for(prop in inputObject)if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) normalizedInput[normalizedProp] = inputObject[prop];\n }\n return normalizedInput;\n }\n var priorities = {\n date: 9,\n day: 11,\n weekday: 11,\n isoWeekday: 11,\n dayOfYear: 4,\n hour: 13,\n millisecond: 16,\n minute: 14,\n month: 8,\n quarter: 7,\n second: 15,\n weekYear: 1,\n isoWeekYear: 1,\n week: 5,\n isoWeek: 5,\n year: 1\n };\n function getPrioritizedUnits(unitsObj) {\n var units = [], u;\n for(u in unitsObj)if (hasOwnProp(unitsObj, u)) units.push({\n unit: u,\n priority: priorities[u]\n });\n units.sort(function(a, b) {\n return a.priority - b.priority;\n });\n return units;\n }\n var match1 = /\\d/, match2 = /\\d\\d/, match3 = /\\d{3}/, match4 = /\\d{4}/, match6 = /[+-]?\\d{6}/, match1to2 = /\\d\\d?/, match3to4 = /\\d\\d\\d\\d?/, match5to6 = /\\d\\d\\d\\d\\d\\d?/, match1to3 = /\\d{1,3}/, match1to4 = /\\d{1,4}/, match1to6 = /[+-]?\\d{1,6}/, matchUnsigned = /\\d+/, matchSigned = /[+-]?\\d+/, matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n matchWord = /[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, match1to2NoLeadingZero = /^[1-9]\\d?/, match1to2HasZero = /^([1-9]\\d|\\d)/, regexes;\n regexes = {};\n function addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex) ? regex : function(isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n }\n function getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) return new RegExp(unescapeFormat(token));\n return regexes[token](config._strict, config._locale);\n }\n // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n function unescapeFormat(s) {\n return regexEscape(s.replace(\"\\\\\", \"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function(matched, p1, p2, p3, p4) {\n return p1 || p2 || p3 || p4;\n }));\n }\n function regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\n }\n function absFloor(number) {\n if (number < 0) // -0 -> 0\n return Math.ceil(number) || 0;\n else return Math.floor(number);\n }\n function toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion, value = 0;\n if (coercedNumber !== 0 && isFinite(coercedNumber)) value = absFloor(coercedNumber);\n return value;\n }\n var tokens = {};\n function addParseToken(token, callback) {\n var i, func = callback, tokenLen;\n if (typeof token === \"string\") token = [\n token\n ];\n if (isNumber(callback)) func = function(input, array) {\n array[callback] = toInt(input);\n };\n tokenLen = token.length;\n for(i = 0; i < tokenLen; i++)tokens[token[i]] = func;\n }\n function addWeekParseToken(token, callback) {\n addParseToken(token, function(input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n }\n function addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) tokens[token](input, config._a, config, token);\n }\n function isLeapYear(year) {\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n }\n var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8;\n // FORMATTING\n addFormatToken(\"Y\", 0, 0, function() {\n var y = this.year();\n return y <= 9999 ? zeroFill(y, 4) : \"+\" + y;\n });\n addFormatToken(0, [\n \"YY\",\n 2\n ], 0, function() {\n return this.year() % 100;\n });\n addFormatToken(0, [\n \"YYYY\",\n 4\n ], 0, \"year\");\n addFormatToken(0, [\n \"YYYYY\",\n 5\n ], 0, \"year\");\n addFormatToken(0, [\n \"YYYYYY\",\n 6,\n true\n ], 0, \"year\");\n // PARSING\n addRegexToken(\"Y\", matchSigned);\n addRegexToken(\"YY\", match1to2, match2);\n addRegexToken(\"YYYY\", match1to4, match4);\n addRegexToken(\"YYYYY\", match1to6, match6);\n addRegexToken(\"YYYYYY\", match1to6, match6);\n addParseToken([\n \"YYYYY\",\n \"YYYYYY\"\n ], YEAR);\n addParseToken(\"YYYY\", function(input, array) {\n array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n });\n addParseToken(\"YY\", function(input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n });\n addParseToken(\"Y\", function(input, array) {\n array[YEAR] = parseInt(input, 10);\n });\n // HELPERS\n function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n }\n // HOOKS\n hooks.parseTwoDigitYear = function(input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n };\n // MOMENTS\n var getSetYear = makeGetSet(\"FullYear\", true);\n function getIsLeapYear() {\n return isLeapYear(this.year());\n }\n function makeGetSet(unit, keepTime) {\n return function(value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else return get(this, unit);\n };\n }\n function get(mom, unit) {\n if (!mom.isValid()) return NaN;\n var d = mom._d, isUTC = mom._isUTC;\n switch(unit){\n case \"Milliseconds\":\n return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();\n case \"Seconds\":\n return isUTC ? d.getUTCSeconds() : d.getSeconds();\n case \"Minutes\":\n return isUTC ? d.getUTCMinutes() : d.getMinutes();\n case \"Hours\":\n return isUTC ? d.getUTCHours() : d.getHours();\n case \"Date\":\n return isUTC ? d.getUTCDate() : d.getDate();\n case \"Day\":\n return isUTC ? d.getUTCDay() : d.getDay();\n case \"Month\":\n return isUTC ? d.getUTCMonth() : d.getMonth();\n case \"FullYear\":\n return isUTC ? d.getUTCFullYear() : d.getFullYear();\n default:\n return NaN; // Just in case\n }\n }\n function set$1(mom, unit, value) {\n var d, isUTC, year, month, date;\n if (!mom.isValid() || isNaN(value)) return;\n d = mom._d;\n isUTC = mom._isUTC;\n switch(unit){\n case \"Milliseconds\":\n return void (isUTC ? d.setUTCMilliseconds(value) : d.setMilliseconds(value));\n case \"Seconds\":\n return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));\n case \"Minutes\":\n return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));\n case \"Hours\":\n return void (isUTC ? d.setUTCHours(value) : d.setHours(value));\n case \"Date\":\n return void (isUTC ? d.setUTCDate(value) : d.setDate(value));\n // case 'Day': // Not real\n // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));\n // case 'Month': // Not used because we need to pass two variables\n // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));\n case \"FullYear\":\n break; // See below ...\n default:\n return; // Just in case\n }\n year = value;\n month = mom.month();\n date = mom.date();\n date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;\n isUTC ? d.setUTCFullYear(year, month, date) : d.setFullYear(year, month, date);\n }\n // MOMENTS\n function stringGet(units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) return this[units]();\n return this;\n }\n function stringSet(units, value) {\n if (typeof units === \"object\") {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units), i, prioritizedLen = prioritized.length;\n for(i = 0; i < prioritizedLen; i++)this[prioritized[i].unit](units[prioritized[i].unit]);\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) return this[units](value);\n }\n return this;\n }\n function mod(n, x) {\n return (n % x + x) % x;\n }\n var indexOf;\n if (Array.prototype.indexOf) indexOf = Array.prototype.indexOf;\n else indexOf = function(o) {\n // I know\n var i;\n for(i = 0; i < this.length; ++i){\n if (this[i] === o) return i;\n }\n return -1;\n };\n function daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) return NaN;\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;\n }\n // FORMATTING\n addFormatToken(\"M\", [\n \"MM\",\n 2\n ], \"Mo\", function() {\n return this.month() + 1;\n });\n addFormatToken(\"MMM\", 0, 0, function(format) {\n return this.localeData().monthsShort(this, format);\n });\n addFormatToken(\"MMMM\", 0, 0, function(format) {\n return this.localeData().months(this, format);\n });\n // PARSING\n addRegexToken(\"M\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"MM\", match1to2, match2);\n addRegexToken(\"MMM\", function(isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n });\n addRegexToken(\"MMMM\", function(isStrict, locale) {\n return locale.monthsRegex(isStrict);\n });\n addParseToken([\n \"M\",\n \"MM\"\n ], function(input, array) {\n array[MONTH] = toInt(input) - 1;\n });\n addParseToken([\n \"MMM\",\n \"MMMM\"\n ], function(input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) array[MONTH] = month;\n else getParsingFlags(config).invalidMonth = input;\n });\n // LOCALES\n var defaultLocaleMonths = \"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"), defaultLocaleMonthsShort = \"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"), MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord;\n function localeMonths(m, format) {\n if (!m) return isArray(this._months) ? this._months : this._months[\"standalone\"];\n return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? \"format\" : \"standalone\"][m.month()];\n }\n function localeMonthsShort(m, format) {\n if (!m) return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort[\"standalone\"];\n return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? \"format\" : \"standalone\"][m.month()];\n }\n function handleStrictParse(monthName, format, strict) {\n var i, ii, mom, llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for(i = 0; i < 12; ++i){\n mom = createUTC([\n 2000,\n i\n ]);\n this._shortMonthsParse[i] = this.monthsShort(mom, \"\").toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, \"\").toLocaleLowerCase();\n }\n }\n if (strict) {\n if (format === \"MMM\") {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else if (format === \"MMM\") {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n function localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n if (this._monthsParseExact) return handleStrictParse.call(this, monthName, format, strict);\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for(i = 0; i < 12; i++){\n // make the regex if we don't have it already\n mom = createUTC([\n 2000,\n i\n ]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp(\"^\" + this.months(mom, \"\").replace(\".\", \"\") + \"$\", \"i\");\n this._shortMonthsParse[i] = new RegExp(\"^\" + this.monthsShort(mom, \"\").replace(\".\", \"\") + \"$\", \"i\");\n }\n if (!strict && !this._monthsParse[i]) {\n regex = \"^\" + this.months(mom, \"\") + \"|^\" + this.monthsShort(mom, \"\");\n this._monthsParse[i] = new RegExp(regex.replace(\".\", \"\"), \"i\");\n }\n // test the regex\n if (strict && format === \"MMMM\" && this._longMonthsParse[i].test(monthName)) return i;\n else if (strict && format === \"MMM\" && this._shortMonthsParse[i].test(monthName)) return i;\n else if (!strict && this._monthsParse[i].test(monthName)) return i;\n }\n }\n // MOMENTS\n function setMonth(mom, value) {\n if (!mom.isValid()) // No op\n return mom;\n if (typeof value === \"string\") {\n if (/^\\d+$/.test(value)) value = toInt(value);\n else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) return mom;\n }\n }\n var month = value, date = mom.date();\n date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));\n mom._isUTC ? mom._d.setUTCMonth(month, date) : mom._d.setMonth(month, date);\n return mom;\n }\n function getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else return get(this, \"Month\");\n }\n function getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n }\n function monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, \"_monthsRegex\")) computeMonthsParse.call(this);\n if (isStrict) return this._monthsShortStrictRegex;\n else return this._monthsShortRegex;\n } else {\n if (!hasOwnProp(this, \"_monthsShortRegex\")) this._monthsShortRegex = defaultMonthsShortRegex;\n return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;\n }\n }\n function monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, \"_monthsRegex\")) computeMonthsParse.call(this);\n if (isStrict) return this._monthsStrictRegex;\n else return this._monthsRegex;\n } else {\n if (!hasOwnProp(this, \"_monthsRegex\")) this._monthsRegex = defaultMonthsRegex;\n return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;\n }\n }\n function computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n var shortPieces = [], longPieces = [], mixedPieces = [], i, mom, shortP, longP;\n for(i = 0; i < 12; i++){\n // make the regex if we don't have it already\n mom = createUTC([\n 2000,\n i\n ]);\n shortP = regexEscape(this.monthsShort(mom, \"\"));\n longP = regexEscape(this.months(mom, \"\"));\n shortPieces.push(shortP);\n longPieces.push(longP);\n mixedPieces.push(longP);\n mixedPieces.push(shortP);\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n this._monthsRegex = new RegExp(\"^(\" + mixedPieces.join(\"|\") + \")\", \"i\");\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp(\"^(\" + longPieces.join(\"|\") + \")\", \"i\");\n this._monthsShortStrictRegex = new RegExp(\"^(\" + shortPieces.join(\"|\") + \")\", \"i\");\n }\n function createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date;\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n if (isFinite(date.getFullYear())) date.setFullYear(y);\n } else date = new Date(y, m, d, h, M, s, ms);\n return date;\n }\n function createUTCDate(y) {\n var date, args;\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n args = Array.prototype.slice.call(arguments);\n // preserve leap years using a full 400 year cycle, then reset\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n if (isFinite(date.getUTCFullYear())) date.setUTCFullYear(y);\n } else date = new Date(Date.UTC.apply(null, arguments));\n return date;\n }\n // start-of-first-week - start-of-year\n function firstWeekOffset(year, dow, doy) {\n var fwd = 7 + dow - doy, // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n return -fwdlw + fwd - 1;\n }\n // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear;\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n return {\n year: resYear,\n dayOfYear: resDayOfYear\n };\n }\n function weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear;\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n return {\n week: resWeek,\n year: resYear\n };\n }\n function weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n }\n // FORMATTING\n addFormatToken(\"w\", [\n \"ww\",\n 2\n ], \"wo\", \"week\");\n addFormatToken(\"W\", [\n \"WW\",\n 2\n ], \"Wo\", \"isoWeek\");\n // PARSING\n addRegexToken(\"w\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"ww\", match1to2, match2);\n addRegexToken(\"W\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"WW\", match1to2, match2);\n addWeekParseToken([\n \"w\",\n \"ww\",\n \"W\",\n \"WW\"\n ], function(input, week, config, token) {\n week[token.substr(0, 1)] = toInt(input);\n });\n // HELPERS\n // LOCALES\n function localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n }\n var defaultLocaleWeek = {\n dow: 0,\n doy: 6\n };\n function localeFirstDayOfWeek() {\n return this._week.dow;\n }\n function localeFirstDayOfYear() {\n return this._week.doy;\n }\n // MOMENTS\n function getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, \"d\");\n }\n function getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, \"d\");\n }\n // FORMATTING\n addFormatToken(\"d\", 0, \"do\", \"day\");\n addFormatToken(\"dd\", 0, 0, function(format) {\n return this.localeData().weekdaysMin(this, format);\n });\n addFormatToken(\"ddd\", 0, 0, function(format) {\n return this.localeData().weekdaysShort(this, format);\n });\n addFormatToken(\"dddd\", 0, 0, function(format) {\n return this.localeData().weekdays(this, format);\n });\n addFormatToken(\"e\", 0, 0, \"weekday\");\n addFormatToken(\"E\", 0, 0, \"isoWeekday\");\n // PARSING\n addRegexToken(\"d\", match1to2);\n addRegexToken(\"e\", match1to2);\n addRegexToken(\"E\", match1to2);\n addRegexToken(\"dd\", function(isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n });\n addRegexToken(\"ddd\", function(isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n });\n addRegexToken(\"dddd\", function(isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n });\n addWeekParseToken([\n \"dd\",\n \"ddd\",\n \"dddd\"\n ], function(input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) week.d = weekday;\n else getParsingFlags(config).invalidWeekday = input;\n });\n addWeekParseToken([\n \"d\",\n \"e\",\n \"E\"\n ], function(input, week, config, token) {\n week[token] = toInt(input);\n });\n // HELPERS\n function parseWeekday(input, locale) {\n if (typeof input !== \"string\") return input;\n if (!isNaN(input)) return parseInt(input, 10);\n input = locale.weekdaysParse(input);\n if (typeof input === \"number\") return input;\n return null;\n }\n function parseIsoWeekday(input, locale) {\n if (typeof input === \"string\") return locale.weekdaysParse(input) % 7 || 7;\n return isNaN(input) ? null : input;\n }\n // LOCALES\n function shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n }\n var defaultLocaleWeekdays = \"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"), defaultLocaleWeekdaysShort = \"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"), defaultLocaleWeekdaysMin = \"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord;\n function localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format) ? \"format\" : \"standalone\"];\n return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;\n }\n function localeWeekdaysShort(m) {\n return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;\n }\n function localeWeekdaysMin(m) {\n return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;\n }\n function handleStrictParse$1(weekdayName, format, strict) {\n var i, ii, mom, llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n for(i = 0; i < 7; ++i){\n mom = createUTC([\n 2000,\n 1\n ]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(mom, \"\").toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(mom, \"\").toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, \"\").toLocaleLowerCase();\n }\n }\n if (strict) {\n if (format === \"dddd\") {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === \"ddd\") {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === \"dddd\") {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === \"ddd\") {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) return ii;\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n function localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n if (this._weekdaysParseExact) return handleStrictParse$1.call(this, weekdayName, format, strict);\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n for(i = 0; i < 7; i++){\n // make the regex if we don't have it already\n mom = createUTC([\n 2000,\n 1\n ]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp(\"^\" + this.weekdays(mom, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\");\n this._shortWeekdaysParse[i] = new RegExp(\"^\" + this.weekdaysShort(mom, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\");\n this._minWeekdaysParse[i] = new RegExp(\"^\" + this.weekdaysMin(mom, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\");\n }\n if (!this._weekdaysParse[i]) {\n regex = \"^\" + this.weekdays(mom, \"\") + \"|^\" + this.weekdaysShort(mom, \"\") + \"|^\" + this.weekdaysMin(mom, \"\");\n this._weekdaysParse[i] = new RegExp(regex.replace(\".\", \"\"), \"i\");\n }\n // test the regex\n if (strict && format === \"dddd\" && this._fullWeekdaysParse[i].test(weekdayName)) return i;\n else if (strict && format === \"ddd\" && this._shortWeekdaysParse[i].test(weekdayName)) return i;\n else if (strict && format === \"dd\" && this._minWeekdaysParse[i].test(weekdayName)) return i;\n else if (!strict && this._weekdaysParse[i].test(weekdayName)) return i;\n }\n }\n // MOMENTS\n function getSetDayOfWeek(input) {\n if (!this.isValid()) return input != null ? this : NaN;\n var day = get(this, \"Day\");\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, \"d\");\n } else return day;\n }\n function getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) return input != null ? this : NaN;\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, \"d\");\n }\n function getSetISODayOfWeek(input) {\n if (!this.isValid()) return input != null ? this : NaN;\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else return this.day() || 7;\n }\n function weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, \"_weekdaysRegex\")) computeWeekdaysParse.call(this);\n if (isStrict) return this._weekdaysStrictRegex;\n else return this._weekdaysRegex;\n } else {\n if (!hasOwnProp(this, \"_weekdaysRegex\")) this._weekdaysRegex = defaultWeekdaysRegex;\n return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;\n }\n }\n function weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, \"_weekdaysRegex\")) computeWeekdaysParse.call(this);\n if (isStrict) return this._weekdaysShortStrictRegex;\n else return this._weekdaysShortRegex;\n } else {\n if (!hasOwnProp(this, \"_weekdaysShortRegex\")) this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;\n }\n }\n function weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, \"_weekdaysRegex\")) computeWeekdaysParse.call(this);\n if (isStrict) return this._weekdaysMinStrictRegex;\n else return this._weekdaysMinRegex;\n } else {\n if (!hasOwnProp(this, \"_weekdaysMinRegex\")) this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;\n }\n }\n function computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp;\n for(i = 0; i < 7; i++){\n // make the regex if we don't have it already\n mom = createUTC([\n 2000,\n 1\n ]).day(i);\n minp = regexEscape(this.weekdaysMin(mom, \"\"));\n shortp = regexEscape(this.weekdaysShort(mom, \"\"));\n longp = regexEscape(this.weekdays(mom, \"\"));\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n this._weekdaysRegex = new RegExp(\"^(\" + mixedPieces.join(\"|\") + \")\", \"i\");\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n this._weekdaysStrictRegex = new RegExp(\"^(\" + longPieces.join(\"|\") + \")\", \"i\");\n this._weekdaysShortStrictRegex = new RegExp(\"^(\" + shortPieces.join(\"|\") + \")\", \"i\");\n this._weekdaysMinStrictRegex = new RegExp(\"^(\" + minPieces.join(\"|\") + \")\", \"i\");\n }\n // FORMATTING\n function hFormat() {\n return this.hours() % 12 || 12;\n }\n function kFormat() {\n return this.hours() || 24;\n }\n addFormatToken(\"H\", [\n \"HH\",\n 2\n ], 0, \"hour\");\n addFormatToken(\"h\", [\n \"hh\",\n 2\n ], 0, hFormat);\n addFormatToken(\"k\", [\n \"kk\",\n 2\n ], 0, kFormat);\n addFormatToken(\"hmm\", 0, 0, function() {\n return \"\" + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n });\n addFormatToken(\"hmmss\", 0, 0, function() {\n return \"\" + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);\n });\n addFormatToken(\"Hmm\", 0, 0, function() {\n return \"\" + this.hours() + zeroFill(this.minutes(), 2);\n });\n addFormatToken(\"Hmmss\", 0, 0, function() {\n return \"\" + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);\n });\n function meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function() {\n return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);\n });\n }\n meridiem(\"a\", true);\n meridiem(\"A\", false);\n // PARSING\n function matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n }\n addRegexToken(\"a\", matchMeridiem);\n addRegexToken(\"A\", matchMeridiem);\n addRegexToken(\"H\", match1to2, match1to2HasZero);\n addRegexToken(\"h\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"k\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"HH\", match1to2, match2);\n addRegexToken(\"hh\", match1to2, match2);\n addRegexToken(\"kk\", match1to2, match2);\n addRegexToken(\"hmm\", match3to4);\n addRegexToken(\"hmmss\", match5to6);\n addRegexToken(\"Hmm\", match3to4);\n addRegexToken(\"Hmmss\", match5to6);\n addParseToken([\n \"H\",\n \"HH\"\n ], HOUR);\n addParseToken([\n \"k\",\n \"kk\"\n ], function(input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n });\n addParseToken([\n \"a\",\n \"A\"\n ], function(input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n });\n addParseToken([\n \"h\",\n \"hh\"\n ], function(input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n });\n addParseToken(\"hmm\", function(input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken(\"hmmss\", function(input, array, config) {\n var pos1 = input.length - 4, pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken(\"Hmm\", function(input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n });\n addParseToken(\"Hmmss\", function(input, array, config) {\n var pos1 = input.length - 4, pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n });\n // LOCALES\n function localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + \"\").toLowerCase().charAt(0) === \"p\";\n }\n var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i, // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n getSetHour = makeGetSet(\"Hours\", true);\n function localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) return isLower ? \"pm\" : \"PM\";\n else return isLower ? \"am\" : \"AM\";\n }\n var baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n week: defaultLocaleWeek,\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n meridiemParse: defaultLocaleMeridiemParse\n };\n // internal storage for locale config files\n var locales = {}, localeFamilies = {}, globalLocale;\n function commonPrefix(arr1, arr2) {\n var i, minl = Math.min(arr1.length, arr2.length);\n for(i = 0; i < minl; i += 1){\n if (arr1[i] !== arr2[i]) return i;\n }\n return minl;\n }\n function normalizeLocale(key) {\n return key ? key.toLowerCase().replace(\"_\", \"-\") : key;\n }\n // pick the locale from the array\n // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n function chooseLocale(names) {\n var i = 0, j, next, locale, split;\n while(i < names.length){\n split = normalizeLocale(names[i]).split(\"-\");\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split(\"-\") : null;\n while(j > 0){\n locale = loadLocale(split.slice(0, j).join(\"-\"));\n if (locale) return locale;\n if (next && next.length >= j && commonPrefix(split, next) >= j - 1) break;\n j--;\n }\n i++;\n }\n return globalLocale;\n }\n function isLocaleNameSane(name) {\n // Prevent names that look like filesystem paths, i.e contain '/' or '\\'\n // Ensure name is available and function returns boolean\n return !!(name && name.match(\"^[^/\\\\\\\\]*$\"));\n }\n function loadLocale(name) {\n var oldLocale = null, aliasedRequire;\n // TODO: Find a better way to register and load all the locales in Node\n if (locales[name] === undefined && true && module && module.exports && isLocaleNameSane(name)) try {\n oldLocale = globalLocale._abbr;\n aliasedRequire = undefined;\n aliasedRequire(\"./locale/\" + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {\n // mark as not found to avoid repeating expensive file require call causing high CPU\n // when trying to find en-US, en_US, en-us for every format call\n locales[name] = null; // null means not found\n }\n return locales[name];\n }\n // This function will load locale and then set the global locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n function getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) data = getLocale(key);\n else data = defineLocale(key, values);\n if (data) // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n else if (typeof console !== \"undefined\" && console.warn) //warn user if arguments are passed but the locale could not be set\n console.warn(\"Locale \" + key + \" not found. Did you forget to load it?\");\n }\n return globalLocale._abbr;\n }\n function defineLocale(name, config) {\n if (config !== null) {\n var locale, parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple(\"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.\");\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) parentConfig = locales[config.parentLocale]._config;\n else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) parentConfig = locale._config;\n else {\n if (!localeFamilies[config.parentLocale]) localeFamilies[config.parentLocale] = [];\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n if (localeFamilies[name]) localeFamilies[name].forEach(function(x) {\n defineLocale(x.name, x.config);\n });\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n }\n function updateLocale(name, config) {\n if (config != null) {\n var locale, tmpLocale, parentConfig = baseConfig;\n if (locales[name] != null && locales[name].parentLocale != null) // Update existing child locale in-place to avoid memory-leaks\n locales[name].set(mergeConfigs(locales[name]._config, config));\n else {\n // MERGE\n tmpLocale = loadLocale(name);\n if (tmpLocale != null) parentConfig = tmpLocale._config;\n config = mergeConfigs(parentConfig, config);\n if (tmpLocale == null) // updateLocale is called for creating a new locale\n // Set abbr so it will have a name (getters return\n // undefined otherwise).\n config.abbr = name;\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n }\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n if (name === getSetGlobalLocale()) getSetGlobalLocale(name);\n } else if (locales[name] != null) delete locales[name];\n }\n return locales[name];\n }\n // returns locale data\n function getLocale(key) {\n var locale;\n if (key && key._locale && key._locale._abbr) key = key._locale._abbr;\n if (!key) return globalLocale;\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) return locale;\n key = [\n key\n ];\n }\n return chooseLocale(key);\n }\n function listLocales() {\n return keys(locales);\n }\n function checkOverflow(m) {\n var overflow, a = m._a;\n if (a && getParsingFlags(m).overflow === -2) {\n overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;\n if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) overflow = DATE;\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) overflow = WEEK;\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) overflow = WEEKDAY;\n getParsingFlags(m).overflow = overflow;\n }\n return m;\n }\n // iso 8601 regex\n // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n var extendedIsoRegex = /^\\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)?)?$/, basicIsoRegex = /^\\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)?)?$/, tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/, isoDates = [\n [\n \"YYYYYY-MM-DD\",\n /[+-]\\d{6}-\\d\\d-\\d\\d/\n ],\n [\n \"YYYY-MM-DD\",\n /\\d{4}-\\d\\d-\\d\\d/\n ],\n [\n \"GGGG-[W]WW-E\",\n /\\d{4}-W\\d\\d-\\d/\n ],\n [\n \"GGGG-[W]WW\",\n /\\d{4}-W\\d\\d/,\n false\n ],\n [\n \"YYYY-DDD\",\n /\\d{4}-\\d{3}/\n ],\n [\n \"YYYY-MM\",\n /\\d{4}-\\d\\d/,\n false\n ],\n [\n \"YYYYYYMMDD\",\n /[+-]\\d{10}/\n ],\n [\n \"YYYYMMDD\",\n /\\d{8}/\n ],\n [\n \"GGGG[W]WWE\",\n /\\d{4}W\\d{3}/\n ],\n [\n \"GGGG[W]WW\",\n /\\d{4}W\\d{2}/,\n false\n ],\n [\n \"YYYYDDD\",\n /\\d{7}/\n ],\n [\n \"YYYYMM\",\n /\\d{6}/,\n false\n ],\n [\n \"YYYY\",\n /\\d{4}/,\n false\n ]\n ], // iso time formats and regexes\n isoTimes = [\n [\n \"HH:mm:ss.SSSS\",\n /\\d\\d:\\d\\d:\\d\\d\\.\\d+/\n ],\n [\n \"HH:mm:ss,SSSS\",\n /\\d\\d:\\d\\d:\\d\\d,\\d+/\n ],\n [\n \"HH:mm:ss\",\n /\\d\\d:\\d\\d:\\d\\d/\n ],\n [\n \"HH:mm\",\n /\\d\\d:\\d\\d/\n ],\n [\n \"HHmmss.SSSS\",\n /\\d\\d\\d\\d\\d\\d\\.\\d+/\n ],\n [\n \"HHmmss,SSSS\",\n /\\d\\d\\d\\d\\d\\d,\\d+/\n ],\n [\n \"HHmmss\",\n /\\d\\d\\d\\d\\d\\d/\n ],\n [\n \"HHmm\",\n /\\d\\d\\d\\d/\n ],\n [\n \"HH\",\n /\\d\\d/\n ]\n ], aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i, // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n rfc2822 = /^(?:(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}))$/, obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -240,\n EST: -300,\n CDT: -300,\n CST: -360,\n MDT: -360,\n MST: -420,\n PDT: -420,\n PST: -480\n };\n // date from iso format\n function configFromISO(config) {\n var i, l, string = config._i, match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), allowTime, dateFormat, timeFormat, tzFormat, isoDatesLen = isoDates.length, isoTimesLen = isoTimes.length;\n if (match) {\n getParsingFlags(config).iso = true;\n for(i = 0, l = isoDatesLen; i < l; i++)if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for(i = 0, l = isoTimesLen; i < l; i++)if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || \" \") + isoTimes[i][0];\n break;\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) tzFormat = \"Z\";\n else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || \"\") + (tzFormat || \"\");\n configFromStringAndFormat(config);\n } else config._isValid = false;\n }\n function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10)\n ];\n if (secondStr) result.push(parseInt(secondStr, 10));\n return result;\n }\n function untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) return 2000 + year;\n else if (year <= 999) return 1900 + year;\n return year;\n }\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s.replace(/\\([^()]*\\)|[\\n\\t]/g, \" \").replace(/(\\s\\s+)/g, \" \").replace(/^\\s\\s*/, \"\").replace(/\\s\\s*$/, \"\");\n }\n function checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n }\n function calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) return obsOffsets[obsOffset];\n else if (militaryOffset) // the only allowed military tz is Z\n return 0;\n else {\n var hm = parseInt(numOffset, 10), m = hm % 100, h = (hm - m) / 100;\n return h * 60 + m;\n }\n }\n // date and time from ref 2822 format\n function configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i)), parsedArray;\n if (match) {\n parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);\n if (!checkWeekday(match[1], parsedArray, config)) return;\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n getParsingFlags(config).rfc2822 = true;\n } else config._isValid = false;\n }\n // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n configFromISO(config);\n if (config._isValid === false) delete config._isValid;\n else return;\n configFromRFC2822(config);\n if (config._isValid === false) delete config._isValid;\n else return;\n if (config._strict) config._isValid = false;\n else // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n hooks.createFromInputFallback = deprecate(\"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(config) {\n config._d = new Date(config._i + (config._useUTC ? \" UTC\" : \"\"));\n });\n // Pick the first defined of two or three arguments.\n function defaults(a, b, c) {\n if (a != null) return a;\n if (b != null) return b;\n return c;\n }\n function currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n if (config._useUTC) return [\n nowValue.getUTCFullYear(),\n nowValue.getUTCMonth(),\n nowValue.getUTCDate()\n ];\n return [\n nowValue.getFullYear(),\n nowValue.getMonth(),\n nowValue.getDate()\n ];\n }\n // convert an array to a date.\n // the array should mirror the parameters below\n // note: all values past the year are optional and will default to the lowest possible value.\n // [year, month, day , hour, minute, second, millisecond]\n function configFromArray(config) {\n var i, date, input = [], currentDate, expectedWeekday, yearToUse;\n if (config._d) return;\n currentDate = currentDateArray(config);\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) dayOfYearFromWeekInfo(config);\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) getParsingFlags(config)._overflowDayOfYear = true;\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for(i = 0; i < 3 && config._a[i] == null; ++i)config._a[i] = input[i] = currentDate[i];\n // Zero out whatever was not defaulted, including time\n for(; i < 7; i++)config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];\n // Check for 24:00:00.000\n if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);\n expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n if (config._nextDay) config._a[HOUR] = 24;\n // check for mismatching day of week\n if (config._w && typeof config._w.d !== \"undefined\" && config._w.d !== expectedWeekday) getParsingFlags(config).weekdayMismatch = true;\n }\n function dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) weekdayOverflow = true;\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n curWeek = weekOfYear(createLocal(), dow, doy);\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) weekdayOverflow = true;\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) weekdayOverflow = true;\n } else // default to beginning of week\n weekday = dow;\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) getParsingFlags(config)._overflowWeeks = true;\n else if (weekdayOverflow != null) getParsingFlags(config)._overflowWeekday = true;\n else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n }\n // constant that refers to the ISO standard\n hooks.ISO_8601 = function() {};\n // constant that refers to the RFC 2822 form\n hooks.RFC_2822 = function() {};\n // date from string and format string\n function configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = \"\" + config._i, i, parsedInput, tokens, token, skipped, stringLength = string.length, totalParsedInputLength = 0, era, tokenLen;\n tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];\n tokenLen = tokens.length;\n for(i = 0; i < tokenLen; i++){\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) getParsingFlags(config).unusedInput.push(skipped);\n string = string.slice(string.indexOf(parsedInput) + parsedInput.length);\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) getParsingFlags(config).empty = false;\n else getParsingFlags(config).unusedTokens.push(token);\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) getParsingFlags(config).unusedTokens.push(token);\n }\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;\n if (string.length > 0) getParsingFlags(config).unusedInput.push(string);\n // clear _12h flag if hour is <= 12\n if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) getParsingFlags(config).bigHour = undefined;\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);\n // handle era\n era = getParsingFlags(config).era;\n if (era !== null) config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n configFromArray(config);\n checkOverflow(config);\n }\n function meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n if (meridiem == null) // nothing to do\n return hour;\n if (locale.meridiemHour != null) return locale.meridiemHour(hour, meridiem);\n else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) hour += 12;\n if (!isPm && hour === 12) hour = 0;\n return hour;\n } else // this is not supposed to happen\n return hour;\n }\n // date from string and array of format strings\n function configFromStringAndArray(config) {\n var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false, configfLen = config._f.length;\n if (configfLen === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n for(i = 0; i < configfLen; i++){\n currentScore = 0;\n validFormatFound = false;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) tempConfig._useUTC = config._useUTC;\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n if (isValid(tempConfig)) validFormatFound = true;\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n getParsingFlags(tempConfig).score = currentScore;\n if (!bestFormatIsValid) {\n if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n if (validFormatFound) bestFormatIsValid = true;\n }\n } else if (currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n extend(config, bestMoment || tempConfig);\n }\n function configFromObject(config) {\n if (config._d) return;\n var i = normalizeObjectUnits(config._i), dayOrDate = i.day === undefined ? i.date : i.day;\n config._a = map([\n i.year,\n i.month,\n dayOrDate,\n i.hour,\n i.minute,\n i.second,\n i.millisecond\n ], function(obj) {\n return obj && parseInt(obj, 10);\n });\n configFromArray(config);\n }\n function createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, \"d\");\n res._nextDay = undefined;\n }\n return res;\n }\n function prepareConfig(config) {\n var input = config._i, format = config._f;\n config._locale = config._locale || getLocale(config._l);\n if (input === null || format === undefined && input === \"\") return createInvalid({\n nullInput: true\n });\n if (typeof input === \"string\") config._i = input = config._locale.preparse(input);\n if (isMoment(input)) return new Moment(checkOverflow(input));\n else if (isDate(input)) config._d = input;\n else if (isArray(format)) configFromStringAndArray(config);\n else if (format) configFromStringAndFormat(config);\n else configFromInput(config);\n if (!isValid(config)) config._d = null;\n return config;\n }\n function configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) config._d = new Date(hooks.now());\n else if (isDate(input)) config._d = new Date(input.valueOf());\n else if (typeof input === \"string\") configFromString(config);\n else if (isArray(input)) {\n config._a = map(input.slice(0), function(obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) configFromObject(config);\n else if (isNumber(input)) // from milliseconds\n config._d = new Date(input);\n else hooks.createFromInputFallback(config);\n }\n function createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n if (format === true || format === false) {\n strict = format;\n format = undefined;\n }\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n if (isObject(input) && isObjectEmpty(input) || isArray(input) && input.length === 0) input = undefined;\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n return createFromConfig(c);\n }\n function createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n }\n var prototypeMin = deprecate(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\", function() {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) return other < this ? this : other;\n else return createInvalid();\n }), prototypeMax = deprecate(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\", function() {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) return other > this ? this : other;\n else return createInvalid();\n });\n // Pick a moment m from moments so that m[fn](other) is true for all\n // other. This relies on the function fn to be transitive.\n //\n // moments should either be an array of moment objects or an array, whose\n // first element is an array of moment objects.\n function pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) moments = moments[0];\n if (!moments.length) return createLocal();\n res = moments[0];\n for(i = 1; i < moments.length; ++i)if (!moments[i].isValid() || moments[i][fn](res)) res = moments[i];\n return res;\n }\n // TODO: Use [].sort instead?\n function min() {\n var args = [].slice.call(arguments, 0);\n return pickBy(\"isBefore\", args);\n }\n function max() {\n var args = [].slice.call(arguments, 0);\n return pickBy(\"isAfter\", args);\n }\n var now = function() {\n return Date.now ? Date.now() : +new Date();\n };\n var ordering = [\n \"year\",\n \"quarter\",\n \"month\",\n \"week\",\n \"day\",\n \"hour\",\n \"minute\",\n \"second\",\n \"millisecond\"\n ];\n function isDurationValid(m) {\n var key, unitHasDecimal = false, i, orderLen = ordering.length;\n for(key in m){\n if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) return false;\n }\n for(i = 0; i < orderLen; ++i)if (m[ordering[i]]) {\n if (unitHasDecimal) return false; // only allow non-integers for smallest unit\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) unitHasDecimal = true;\n }\n return true;\n }\n function isValid$1() {\n return this._isValid;\n }\n function createInvalid$1() {\n return createDuration(NaN);\n }\n function Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration), years = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months = normalizedInput.month || 0, weeks = normalizedInput.week || normalizedInput.isoWeek || 0, days = normalizedInput.day || 0, hours = normalizedInput.hour || 0, minutes = normalizedInput.minute || 0, seconds = normalizedInput.second || 0, milliseconds = normalizedInput.millisecond || 0;\n this._isValid = isDurationValid(normalizedInput);\n // representation for dateAddRemove\n this._milliseconds = +milliseconds + seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 3600000; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days + weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months + quarters * 3 + years * 12;\n this._data = {};\n this._locale = getLocale();\n this._bubble();\n }\n function isDuration(obj) {\n return obj instanceof Duration;\n }\n function absRound(number) {\n if (number < 0) return Math.round(-1 * number) * -1;\n else return Math.round(number);\n }\n // compare two arrays, return the number of differences\n function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0, i;\n for(i = 0; i < len; i++)if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) diffs++;\n return diffs + lengthDiff;\n }\n // FORMATTING\n function offset(token, separator) {\n addFormatToken(token, 0, 0, function() {\n var offset = this.utcOffset(), sign = \"+\";\n if (offset < 0) {\n offset = -offset;\n sign = \"-\";\n }\n return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2);\n });\n }\n offset(\"Z\", \":\");\n offset(\"ZZ\", \"\");\n // PARSING\n addRegexToken(\"Z\", matchShortOffset);\n addRegexToken(\"ZZ\", matchShortOffset);\n addParseToken([\n \"Z\",\n \"ZZ\"\n ], function(input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n });\n // HELPERS\n // timezone chunker\n // '+10:00' > ['10', '00']\n // '-1530' > ['-15', '30']\n var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n function offsetFromString(matcher, string) {\n var matches = (string || \"\").match(matcher), chunk, parts, minutes;\n if (matches === null) return null;\n chunk = matches[matches.length - 1] || [];\n parts = (chunk + \"\").match(chunkOffset) || [\n \"-\",\n 0,\n 0\n ];\n minutes = +(parts[1] * 60) + toInt(parts[2]);\n return minutes === 0 ? 0 : parts[0] === \"+\" ? minutes : -minutes;\n }\n // Return a moment from input, that is local/utc/zone equivalent to model.\n function cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else return createLocal(input).local();\n }\n function getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset());\n }\n // HOOKS\n // This function will be called whenever a moment is mutated.\n // It is intended to keep the offset in sync with the timezone.\n hooks.updateOffset = function() {};\n // MOMENTS\n // keepLocalTime = true means only change the timezone, without\n // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n // +0200, so we adjust the time as needed, to be valid.\n //\n // Keeping the time actually adds/subtracts (one hour)\n // from the actual represented time. That is why we call updateOffset\n // a second time. In case it wants us to change the offset again\n // _changeInProgress == true case, then we have to adjust, because\n // there is no such time in the given timezone.\n function getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0, localAdjust;\n if (!this.isValid()) return input != null ? this : NaN;\n if (input != null) {\n if (typeof input === \"string\") {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) return this;\n } else if (Math.abs(input) < 16 && !keepMinutes) input = input * 60;\n if (!this._isUTC && keepLocalTime) localAdjust = getDateOffset(this);\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) this.add(localAdjust, \"m\");\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) addSubtract(this, createDuration(input - offset, \"m\"), 1, false);\n else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else return this._isUTC ? offset : getDateOffset(this);\n }\n function getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== \"string\") input = -input;\n this.utcOffset(input, keepLocalTime);\n return this;\n } else return -this.utcOffset();\n }\n function setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n }\n function setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n if (keepLocalTime) this.subtract(getDateOffset(this), \"m\");\n }\n return this;\n }\n function setOffsetToParsedOffset() {\n if (this._tzm != null) this.utcOffset(this._tzm, false, true);\n else if (typeof this._i === \"string\") {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) this.utcOffset(tZone);\n else this.utcOffset(0, true);\n }\n return this;\n }\n function hasAlignedHourOffset(input) {\n if (!this.isValid()) return false;\n input = input ? createLocal(input).utcOffset() : 0;\n return (this.utcOffset() - input) % 60 === 0;\n }\n function isDaylightSavingTime() {\n return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();\n }\n function isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) return this._isDSTShifted;\n var c = {}, other;\n copyConfig(c, this);\n c = prepareConfig(c);\n if (c._a) {\n other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else this._isDSTShifted = false;\n return this._isDSTShifted;\n }\n function isLocal() {\n return this.isValid() ? !this._isUTC : false;\n }\n function isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n }\n function isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n }\n // ASP.NET json date format regex\n var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/, // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n isoRegex = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n function createDuration(input, key) {\n var duration = input, // matching against regexp is expensive, do it on demand\n match = null, sign, ret, diffRes;\n if (isDuration(input)) duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months\n };\n else if (isNumber(input) || !isNaN(+input)) {\n duration = {};\n if (key) duration[key] = +input;\n else duration.milliseconds = +input;\n } else if (match = aspNetRegex.exec(input)) {\n sign = match[1] === \"-\" ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign\n };\n } else if (match = isoRegex.exec(input)) {\n sign = match[1] === \"-\" ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign)\n };\n } else if (duration == null) // checks for null or undefined\n duration = {};\n else if (typeof duration === \"object\" && (\"from\" in duration || \"to\" in duration)) {\n diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n ret = new Duration(duration);\n if (isDuration(input) && hasOwnProp(input, \"_locale\")) ret._locale = input._locale;\n if (isDuration(input) && hasOwnProp(input, \"_isValid\")) ret._isValid = input._isValid;\n return ret;\n }\n createDuration.fn = Duration.prototype;\n createDuration.invalid = createInvalid$1;\n function parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(\",\", \".\"));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n }\n function positiveMomentsDifference(base, other) {\n var res = {};\n res.months = other.month() - base.month() + (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, \"M\").isAfter(other)) --res.months;\n res.milliseconds = +other - +base.clone().add(res.months, \"M\");\n return res;\n }\n function momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) return {\n milliseconds: 0,\n months: 0\n };\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) res = positiveMomentsDifference(base, other);\n else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n return res;\n }\n // TODO: remove 'name' arg after deprecation is removed\n function createAdder(direction, name) {\n return function(val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(name, \"moment().\" + name + \"(period, number) is deprecated. Please use moment().\" + name + \"(number, period). \" + \"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\");\n tmp = val;\n val = period;\n period = tmp;\n }\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n }\n function addSubtract(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds, days = absRound(duration._days), months = absRound(duration._months);\n if (!mom.isValid()) // No op\n return;\n updateOffset = updateOffset == null ? true : updateOffset;\n if (months) setMonth(mom, get(mom, \"Month\") + months * isAdding);\n if (days) set$1(mom, \"Date\", get(mom, \"Date\") + days * isAdding);\n if (milliseconds) mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n if (updateOffset) hooks.updateOffset(mom, days || months);\n }\n var add = createAdder(1, \"add\"), subtract = createAdder(-1, \"subtract\");\n function isString(input) {\n return typeof input === \"string\" || input instanceof String;\n }\n // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n function isMomentInput(input) {\n return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === undefined;\n }\n function isMomentInputObject(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [\n \"years\",\n \"year\",\n \"y\",\n \"months\",\n \"month\",\n \"M\",\n \"days\",\n \"day\",\n \"d\",\n \"dates\",\n \"date\",\n \"D\",\n \"hours\",\n \"hour\",\n \"h\",\n \"minutes\",\n \"minute\",\n \"m\",\n \"seconds\",\n \"second\",\n \"s\",\n \"milliseconds\",\n \"millisecond\",\n \"ms\"\n ], i, property, propertyLen = properties.length;\n for(i = 0; i < propertyLen; i += 1){\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n return objectTest && propertyTest;\n }\n function isNumberOrStringArray(input) {\n var arrayTest = isArray(input), dataTypeTest = false;\n if (arrayTest) dataTypeTest = input.filter(function(item) {\n return !isNumber(item) && isString(input);\n }).length === 0;\n return arrayTest && dataTypeTest;\n }\n function isCalendarSpec(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [\n \"sameDay\",\n \"nextDay\",\n \"lastDay\",\n \"nextWeek\",\n \"lastWeek\",\n \"sameElse\"\n ], i, property;\n for(i = 0; i < properties.length; i += 1){\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n return objectTest && propertyTest;\n }\n function getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, \"days\", true);\n return diff < -6 ? \"sameElse\" : diff < -1 ? \"lastWeek\" : diff < 0 ? \"lastDay\" : diff < 1 ? \"sameDay\" : diff < 2 ? \"nextDay\" : diff < 7 ? \"nextWeek\" : \"sameElse\";\n }\n function calendar$1(time, formats) {\n // Support for single parameter, formats only overload to the calendar function\n if (arguments.length === 1) {\n if (!arguments[0]) {\n time = undefined;\n formats = undefined;\n } else if (isMomentInput(arguments[0])) {\n time = arguments[0];\n formats = undefined;\n } else if (isCalendarSpec(arguments[0])) {\n formats = arguments[0];\n time = undefined;\n }\n }\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(), sod = cloneWithOffset(now, this).startOf(\"day\"), format = hooks.calendarFormat(this, sod) || \"sameElse\", output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);\n return this.format(output || this.localeData().calendar(format, this, createLocal(now)));\n }\n function clone() {\n return new Moment(this);\n }\n function isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) return false;\n units = normalizeUnits(units) || \"millisecond\";\n if (units === \"millisecond\") return this.valueOf() > localInput.valueOf();\n else return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n function isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) return false;\n units = normalizeUnits(units) || \"millisecond\";\n if (units === \"millisecond\") return this.valueOf() < localInput.valueOf();\n else return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n function isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from), localTo = isMoment(to) ? to : createLocal(to);\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) return false;\n inclusivity = inclusivity || \"()\";\n return (inclusivity[0] === \"(\" ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === \")\" ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));\n }\n function isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input), inputMs;\n if (!(this.isValid() && localInput.isValid())) return false;\n units = normalizeUnits(units) || \"millisecond\";\n if (units === \"millisecond\") return this.valueOf() === localInput.valueOf();\n else {\n inputMs = localInput.valueOf();\n return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();\n }\n }\n function isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n }\n function isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n }\n function diff(input, units, asFloat) {\n var that, zoneDelta, output;\n if (!this.isValid()) return NaN;\n that = cloneWithOffset(input, this);\n if (!that.isValid()) return NaN;\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n units = normalizeUnits(units);\n switch(units){\n case \"year\":\n output = monthDiff(this, that) / 12;\n break;\n case \"month\":\n output = monthDiff(this, that);\n break;\n case \"quarter\":\n output = monthDiff(this, that) / 3;\n break;\n case \"second\":\n output = (this - that) / 1e3;\n break; // 1000\n case \"minute\":\n output = (this - that) / 6e4;\n break; // 1000 * 60\n case \"hour\":\n output = (this - that) / 36e5;\n break; // 1000 * 60 * 60\n case \"day\":\n output = (this - that - zoneDelta) / 864e5;\n break; // 1000 * 60 * 60 * 24, negate dst\n case \"week\":\n output = (this - that - zoneDelta) / 6048e5;\n break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default:\n output = this - that;\n }\n return asFloat ? output : absFloor(output);\n }\n function monthDiff(a, b) {\n if (a.date() < b.date()) // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -monthDiff(b, a);\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, \"months\"), anchor2, adjust;\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, \"months\");\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, \"months\");\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n }\n hooks.defaultFormat = \"YYYY-MM-DDTHH:mm:ssZ\";\n hooks.defaultFormatUtc = \"YYYY-MM-DDTHH:mm:ss[Z]\";\n function toString() {\n return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\");\n }\n function toISOString(keepOffset) {\n if (!this.isValid()) return null;\n var utc = keepOffset !== true, m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) return formatMoment(m, utc ? \"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\" : \"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\");\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) return this.toDate().toISOString();\n else return new Date(this.valueOf() + this.utcOffset() * 60000).toISOString().replace(\"Z\", formatMoment(m, \"Z\"));\n }\n return formatMoment(m, utc ? \"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\" : \"YYYY-MM-DD[T]HH:mm:ss.SSSZ\");\n }\n /**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */ function inspect() {\n if (!this.isValid()) return \"moment.invalid(/* \" + this._i + \" */)\";\n var func = \"moment\", zone = \"\", prefix, year, datetime, suffix;\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? \"moment.utc\" : \"moment.parseZone\";\n zone = \"Z\";\n }\n prefix = \"[\" + func + '(\"]';\n year = 0 <= this.year() && this.year() <= 9999 ? \"YYYY\" : \"YYYYYY\";\n datetime = \"-MM-DD[T]HH:mm:ss.SSS\";\n suffix = zone + '[\")]';\n return this.format(prefix + year + datetime + suffix);\n }\n function format(inputString) {\n if (!inputString) inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n }\n function from(time, withoutSuffix) {\n if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) return createDuration({\n to: this,\n from: time\n }).locale(this.locale()).humanize(!withoutSuffix);\n else return this.localeData().invalidDate();\n }\n function fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n }\n function to(time, withoutSuffix) {\n if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) return createDuration({\n from: this,\n to: time\n }).locale(this.locale()).humanize(!withoutSuffix);\n else return this.localeData().invalidDate();\n }\n function toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n }\n // If passed a locale key, it will set the locale for this\n // instance. Otherwise, it will return the locale configuration\n // variables for this instance.\n function locale(key) {\n var newLocaleData;\n if (key === undefined) return this._locale._abbr;\n else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) this._locale = newLocaleData;\n return this;\n }\n }\n var lang = deprecate(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\", function(key) {\n if (key === undefined) return this.localeData();\n else return this.locale(key);\n });\n function localeData() {\n return this._locale;\n }\n var MS_PER_SECOND = 1000, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = 3506328 * MS_PER_HOUR;\n // actual modulo - handles negative numbers (for dates before 1970):\n function mod$1(dividend, divisor) {\n return (dividend % divisor + divisor) % divisor;\n }\n function localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n else return new Date(y, m, d).valueOf();\n }\n function utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n else return Date.UTC(y, m, d);\n }\n function startOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === \"millisecond\" || !this.isValid()) return this;\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n switch(units){\n case \"year\":\n time = startOfDate(this.year(), 0, 1);\n break;\n case \"quarter\":\n time = startOfDate(this.year(), this.month() - this.month() % 3, 1);\n break;\n case \"month\":\n time = startOfDate(this.year(), this.month(), 1);\n break;\n case \"week\":\n time = startOfDate(this.year(), this.month(), this.date() - this.weekday());\n break;\n case \"isoWeek\":\n time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));\n break;\n case \"day\":\n case \"date\":\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n case \"hour\":\n time = this._d.valueOf();\n time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);\n break;\n case \"minute\":\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_MINUTE);\n break;\n case \"second\":\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_SECOND);\n break;\n }\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n function endOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === \"millisecond\" || !this.isValid()) return this;\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n switch(units){\n case \"year\":\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n case \"quarter\":\n time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;\n break;\n case \"month\":\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n case \"week\":\n time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;\n break;\n case \"isoWeek\":\n time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;\n break;\n case \"day\":\n case \"date\":\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case \"hour\":\n time = this._d.valueOf();\n time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;\n break;\n case \"minute\":\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n break;\n case \"second\":\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n break;\n }\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n function valueOf() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n }\n function unix() {\n return Math.floor(this.valueOf() / 1000);\n }\n function toDate() {\n return new Date(this.valueOf());\n }\n function toArray() {\n var m = this;\n return [\n m.year(),\n m.month(),\n m.date(),\n m.hour(),\n m.minute(),\n m.second(),\n m.millisecond()\n ];\n }\n function toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds()\n };\n }\n function toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n }\n function isValid$2() {\n return isValid(this);\n }\n function parsingFlags() {\n return extend({}, getParsingFlags(this));\n }\n function invalidAt() {\n return getParsingFlags(this).overflow;\n }\n function creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict\n };\n }\n addFormatToken(\"N\", 0, 0, \"eraAbbr\");\n addFormatToken(\"NN\", 0, 0, \"eraAbbr\");\n addFormatToken(\"NNN\", 0, 0, \"eraAbbr\");\n addFormatToken(\"NNNN\", 0, 0, \"eraName\");\n addFormatToken(\"NNNNN\", 0, 0, \"eraNarrow\");\n addFormatToken(\"y\", [\n \"y\",\n 1\n ], \"yo\", \"eraYear\");\n addFormatToken(\"y\", [\n \"yy\",\n 2\n ], 0, \"eraYear\");\n addFormatToken(\"y\", [\n \"yyy\",\n 3\n ], 0, \"eraYear\");\n addFormatToken(\"y\", [\n \"yyyy\",\n 4\n ], 0, \"eraYear\");\n addRegexToken(\"N\", matchEraAbbr);\n addRegexToken(\"NN\", matchEraAbbr);\n addRegexToken(\"NNN\", matchEraAbbr);\n addRegexToken(\"NNNN\", matchEraName);\n addRegexToken(\"NNNNN\", matchEraNarrow);\n addParseToken([\n \"N\",\n \"NN\",\n \"NNN\",\n \"NNNN\",\n \"NNNNN\"\n ], function(input, array, config, token) {\n var era = config._locale.erasParse(input, token, config._strict);\n if (era) getParsingFlags(config).era = era;\n else getParsingFlags(config).invalidEra = input;\n });\n addRegexToken(\"y\", matchUnsigned);\n addRegexToken(\"yy\", matchUnsigned);\n addRegexToken(\"yyy\", matchUnsigned);\n addRegexToken(\"yyyy\", matchUnsigned);\n addRegexToken(\"yo\", matchEraYearOrdinal);\n addParseToken([\n \"y\",\n \"yy\",\n \"yyy\",\n \"yyyy\"\n ], YEAR);\n addParseToken([\n \"yo\"\n ], function(input, array, config, token) {\n var match;\n if (config._locale._eraYearOrdinalRegex) match = input.match(config._locale._eraYearOrdinalRegex);\n if (config._locale.eraYearOrdinalParse) array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n else array[YEAR] = parseInt(input, 10);\n });\n function localeEras(m, format) {\n var i, l, date, eras = this._eras || getLocale(\"en\")._eras;\n for(i = 0, l = eras.length; i < l; ++i){\n switch(typeof eras[i].since){\n case \"string\":\n // truncate time\n date = hooks(eras[i].since).startOf(\"day\");\n eras[i].since = date.valueOf();\n break;\n }\n switch(typeof eras[i].until){\n case \"undefined\":\n eras[i].until = Infinity;\n break;\n case \"string\":\n // truncate time\n date = hooks(eras[i].until).startOf(\"day\").valueOf();\n eras[i].until = date.valueOf();\n break;\n }\n }\n return eras;\n }\n function localeErasParse(eraName, format, strict) {\n var i, l, eras = this.eras(), name, abbr, narrow;\n eraName = eraName.toUpperCase();\n for(i = 0, l = eras.length; i < l; ++i){\n name = eras[i].name.toUpperCase();\n abbr = eras[i].abbr.toUpperCase();\n narrow = eras[i].narrow.toUpperCase();\n if (strict) switch(format){\n case \"N\":\n case \"NN\":\n case \"NNN\":\n if (abbr === eraName) return eras[i];\n break;\n case \"NNNN\":\n if (name === eraName) return eras[i];\n break;\n case \"NNNNN\":\n if (narrow === eraName) return eras[i];\n break;\n }\n else if ([\n name,\n abbr,\n narrow\n ].indexOf(eraName) >= 0) return eras[i];\n }\n }\n function localeErasConvertYear(era, year) {\n var dir = era.since <= era.until ? 1 : -1;\n if (year === undefined) return hooks(era.since).year();\n else return hooks(era.since).year() + (year - era.offset) * dir;\n }\n function getEraName() {\n var i, l, val, eras = this.localeData().eras();\n for(i = 0, l = eras.length; i < l; ++i){\n // truncate time\n val = this.clone().startOf(\"day\").valueOf();\n if (eras[i].since <= val && val <= eras[i].until) return eras[i].name;\n if (eras[i].until <= val && val <= eras[i].since) return eras[i].name;\n }\n return \"\";\n }\n function getEraNarrow() {\n var i, l, val, eras = this.localeData().eras();\n for(i = 0, l = eras.length; i < l; ++i){\n // truncate time\n val = this.clone().startOf(\"day\").valueOf();\n if (eras[i].since <= val && val <= eras[i].until) return eras[i].narrow;\n if (eras[i].until <= val && val <= eras[i].since) return eras[i].narrow;\n }\n return \"\";\n }\n function getEraAbbr() {\n var i, l, val, eras = this.localeData().eras();\n for(i = 0, l = eras.length; i < l; ++i){\n // truncate time\n val = this.clone().startOf(\"day\").valueOf();\n if (eras[i].since <= val && val <= eras[i].until) return eras[i].abbr;\n if (eras[i].until <= val && val <= eras[i].since) return eras[i].abbr;\n }\n return \"\";\n }\n function getEraYear() {\n var i, l, dir, val, eras = this.localeData().eras();\n for(i = 0, l = eras.length; i < l; ++i){\n dir = eras[i].since <= eras[i].until ? 1 : -1;\n // truncate time\n val = this.clone().startOf(\"day\").valueOf();\n if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;\n }\n return this.year();\n }\n function erasNameRegex(isStrict) {\n if (!hasOwnProp(this, \"_erasNameRegex\")) computeErasParse.call(this);\n return isStrict ? this._erasNameRegex : this._erasRegex;\n }\n function erasAbbrRegex(isStrict) {\n if (!hasOwnProp(this, \"_erasAbbrRegex\")) computeErasParse.call(this);\n return isStrict ? this._erasAbbrRegex : this._erasRegex;\n }\n function erasNarrowRegex(isStrict) {\n if (!hasOwnProp(this, \"_erasNarrowRegex\")) computeErasParse.call(this);\n return isStrict ? this._erasNarrowRegex : this._erasRegex;\n }\n function matchEraAbbr(isStrict, locale) {\n return locale.erasAbbrRegex(isStrict);\n }\n function matchEraName(isStrict, locale) {\n return locale.erasNameRegex(isStrict);\n }\n function matchEraNarrow(isStrict, locale) {\n return locale.erasNarrowRegex(isStrict);\n }\n function matchEraYearOrdinal(isStrict, locale) {\n return locale._eraYearOrdinalRegex || matchUnsigned;\n }\n function computeErasParse() {\n var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l, erasName, erasAbbr, erasNarrow, eras = this.eras();\n for(i = 0, l = eras.length; i < l; ++i){\n erasName = regexEscape(eras[i].name);\n erasAbbr = regexEscape(eras[i].abbr);\n erasNarrow = regexEscape(eras[i].narrow);\n namePieces.push(erasName);\n abbrPieces.push(erasAbbr);\n narrowPieces.push(erasNarrow);\n mixedPieces.push(erasName);\n mixedPieces.push(erasAbbr);\n mixedPieces.push(erasNarrow);\n }\n this._erasRegex = new RegExp(\"^(\" + mixedPieces.join(\"|\") + \")\", \"i\");\n this._erasNameRegex = new RegExp(\"^(\" + namePieces.join(\"|\") + \")\", \"i\");\n this._erasAbbrRegex = new RegExp(\"^(\" + abbrPieces.join(\"|\") + \")\", \"i\");\n this._erasNarrowRegex = new RegExp(\"^(\" + narrowPieces.join(\"|\") + \")\", \"i\");\n }\n // FORMATTING\n addFormatToken(0, [\n \"gg\",\n 2\n ], 0, function() {\n return this.weekYear() % 100;\n });\n addFormatToken(0, [\n \"GG\",\n 2\n ], 0, function() {\n return this.isoWeekYear() % 100;\n });\n function addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [\n token,\n token.length\n ], 0, getter);\n }\n addWeekYearFormatToken(\"gggg\", \"weekYear\");\n addWeekYearFormatToken(\"ggggg\", \"weekYear\");\n addWeekYearFormatToken(\"GGGG\", \"isoWeekYear\");\n addWeekYearFormatToken(\"GGGGG\", \"isoWeekYear\");\n // ALIASES\n // PARSING\n addRegexToken(\"G\", matchSigned);\n addRegexToken(\"g\", matchSigned);\n addRegexToken(\"GG\", match1to2, match2);\n addRegexToken(\"gg\", match1to2, match2);\n addRegexToken(\"GGGG\", match1to4, match4);\n addRegexToken(\"gggg\", match1to4, match4);\n addRegexToken(\"GGGGG\", match1to6, match6);\n addRegexToken(\"ggggg\", match1to6, match6);\n addWeekParseToken([\n \"gggg\",\n \"ggggg\",\n \"GGGG\",\n \"GGGGG\"\n ], function(input, week, config, token) {\n week[token.substr(0, 2)] = toInt(input);\n });\n addWeekParseToken([\n \"gg\",\n \"GG\"\n ], function(input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n });\n // MOMENTS\n function getSetWeekYear(input) {\n return getSetWeekYearHelper.call(this, input, this.week(), this.weekday() + this.localeData()._week.dow, this.localeData()._week.dow, this.localeData()._week.doy);\n }\n function getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);\n }\n function getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n }\n function getISOWeeksInISOWeekYear() {\n return weeksInYear(this.isoWeekYear(), 1, 4);\n }\n function getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n }\n function getWeeksInWeekYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n }\n function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) return weekOfYear(this, dow, doy).year;\n else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) week = weeksTarget;\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n }\n function setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n }\n // FORMATTING\n addFormatToken(\"Q\", 0, \"Qo\", \"quarter\");\n // PARSING\n addRegexToken(\"Q\", match1);\n addParseToken(\"Q\", function(input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n });\n // MOMENTS\n function getSetQuarter(input) {\n return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);\n }\n // FORMATTING\n addFormatToken(\"D\", [\n \"DD\",\n 2\n ], \"Do\", \"date\");\n // PARSING\n addRegexToken(\"D\", match1to2, match1to2NoLeadingZero);\n addRegexToken(\"DD\", match1to2, match2);\n addRegexToken(\"Do\", function(isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict ? locale._dayOfMonthOrdinalParse || locale._ordinalParse : locale._dayOfMonthOrdinalParseLenient;\n });\n addParseToken([\n \"D\",\n \"DD\"\n ], DATE);\n addParseToken(\"Do\", function(input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n });\n // MOMENTS\n var getSetDayOfMonth = makeGetSet(\"Date\", true);\n // FORMATTING\n addFormatToken(\"DDD\", [\n \"DDDD\",\n 3\n ], \"DDDo\", \"dayOfYear\");\n // PARSING\n addRegexToken(\"DDD\", match1to3);\n addRegexToken(\"DDDD\", match3);\n addParseToken([\n \"DDD\",\n \"DDDD\"\n ], function(input, array, config) {\n config._dayOfYear = toInt(input);\n });\n // HELPERS\n // MOMENTS\n function getSetDayOfYear(input) {\n var dayOfYear = Math.round((this.clone().startOf(\"day\") - this.clone().startOf(\"year\")) / 864e5) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, \"d\");\n }\n // FORMATTING\n addFormatToken(\"m\", [\n \"mm\",\n 2\n ], 0, \"minute\");\n // PARSING\n addRegexToken(\"m\", match1to2, match1to2HasZero);\n addRegexToken(\"mm\", match1to2, match2);\n addParseToken([\n \"m\",\n \"mm\"\n ], MINUTE);\n // MOMENTS\n var getSetMinute = makeGetSet(\"Minutes\", false);\n // FORMATTING\n addFormatToken(\"s\", [\n \"ss\",\n 2\n ], 0, \"second\");\n // PARSING\n addRegexToken(\"s\", match1to2, match1to2HasZero);\n addRegexToken(\"ss\", match1to2, match2);\n addParseToken([\n \"s\",\n \"ss\"\n ], SECOND);\n // MOMENTS\n var getSetSecond = makeGetSet(\"Seconds\", false);\n // FORMATTING\n addFormatToken(\"S\", 0, 0, function() {\n return ~~(this.millisecond() / 100);\n });\n addFormatToken(0, [\n \"SS\",\n 2\n ], 0, function() {\n return ~~(this.millisecond() / 10);\n });\n addFormatToken(0, [\n \"SSS\",\n 3\n ], 0, \"millisecond\");\n addFormatToken(0, [\n \"SSSS\",\n 4\n ], 0, function() {\n return this.millisecond() * 10;\n });\n addFormatToken(0, [\n \"SSSSS\",\n 5\n ], 0, function() {\n return this.millisecond() * 100;\n });\n addFormatToken(0, [\n \"SSSSSS\",\n 6\n ], 0, function() {\n return this.millisecond() * 1000;\n });\n addFormatToken(0, [\n \"SSSSSSS\",\n 7\n ], 0, function() {\n return this.millisecond() * 10000;\n });\n addFormatToken(0, [\n \"SSSSSSSS\",\n 8\n ], 0, function() {\n return this.millisecond() * 100000;\n });\n addFormatToken(0, [\n \"SSSSSSSSS\",\n 9\n ], 0, function() {\n return this.millisecond() * 1000000;\n });\n // PARSING\n addRegexToken(\"S\", match1to3, match1);\n addRegexToken(\"SS\", match1to3, match2);\n addRegexToken(\"SSS\", match1to3, match3);\n var token, getSetMillisecond;\n for(token = \"SSSS\"; token.length <= 9; token += \"S\")addRegexToken(token, matchUnsigned);\n function parseMs(input, array) {\n array[MILLISECOND] = toInt((\"0.\" + input) * 1000);\n }\n for(token = \"S\"; token.length <= 9; token += \"S\")addParseToken(token, parseMs);\n getSetMillisecond = makeGetSet(\"Milliseconds\", false);\n // FORMATTING\n addFormatToken(\"z\", 0, 0, \"zoneAbbr\");\n addFormatToken(\"zz\", 0, 0, \"zoneName\");\n // MOMENTS\n function getZoneAbbr() {\n return this._isUTC ? \"UTC\" : \"\";\n }\n function getZoneName() {\n return this._isUTC ? \"Coordinated Universal Time\" : \"\";\n }\n var proto = Moment.prototype;\n proto.add = add;\n proto.calendar = calendar$1;\n proto.clone = clone;\n proto.diff = diff;\n proto.endOf = endOf;\n proto.format = format;\n proto.from = from;\n proto.fromNow = fromNow;\n proto.to = to;\n proto.toNow = toNow;\n proto.get = stringGet;\n proto.invalidAt = invalidAt;\n proto.isAfter = isAfter;\n proto.isBefore = isBefore;\n proto.isBetween = isBetween;\n proto.isSame = isSame;\n proto.isSameOrAfter = isSameOrAfter;\n proto.isSameOrBefore = isSameOrBefore;\n proto.isValid = isValid$2;\n proto.lang = lang;\n proto.locale = locale;\n proto.localeData = localeData;\n proto.max = prototypeMax;\n proto.min = prototypeMin;\n proto.parsingFlags = parsingFlags;\n proto.set = stringSet;\n proto.startOf = startOf;\n proto.subtract = subtract;\n proto.toArray = toArray;\n proto.toObject = toObject;\n proto.toDate = toDate;\n proto.toISOString = toISOString;\n proto.inspect = inspect;\n if (typeof Symbol !== \"undefined\" && Symbol.for != null) proto[Symbol.for(\"nodejs.util.inspect.custom\")] = function() {\n return \"Moment<\" + this.format() + \">\";\n };\n proto.toJSON = toJSON;\n proto.toString = toString;\n proto.unix = unix;\n proto.valueOf = valueOf;\n proto.creationData = creationData;\n proto.eraName = getEraName;\n proto.eraNarrow = getEraNarrow;\n proto.eraAbbr = getEraAbbr;\n proto.eraYear = getEraYear;\n proto.year = getSetYear;\n proto.isLeapYear = getIsLeapYear;\n proto.weekYear = getSetWeekYear;\n proto.isoWeekYear = getSetISOWeekYear;\n proto.quarter = proto.quarters = getSetQuarter;\n proto.month = getSetMonth;\n proto.daysInMonth = getDaysInMonth;\n proto.week = proto.weeks = getSetWeek;\n proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n proto.weeksInYear = getWeeksInYear;\n proto.weeksInWeekYear = getWeeksInWeekYear;\n proto.isoWeeksInYear = getISOWeeksInYear;\n proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n proto.date = getSetDayOfMonth;\n proto.day = proto.days = getSetDayOfWeek;\n proto.weekday = getSetLocaleDayOfWeek;\n proto.isoWeekday = getSetISODayOfWeek;\n proto.dayOfYear = getSetDayOfYear;\n proto.hour = proto.hours = getSetHour;\n proto.minute = proto.minutes = getSetMinute;\n proto.second = proto.seconds = getSetSecond;\n proto.millisecond = proto.milliseconds = getSetMillisecond;\n proto.utcOffset = getSetOffset;\n proto.utc = setOffsetToUTC;\n proto.local = setOffsetToLocal;\n proto.parseZone = setOffsetToParsedOffset;\n proto.hasAlignedHourOffset = hasAlignedHourOffset;\n proto.isDST = isDaylightSavingTime;\n proto.isLocal = isLocal;\n proto.isUtcOffset = isUtcOffset;\n proto.isUtc = isUtc;\n proto.isUTC = isUtc;\n proto.zoneAbbr = getZoneAbbr;\n proto.zoneName = getZoneName;\n proto.dates = deprecate(\"dates accessor is deprecated. Use date instead.\", getSetDayOfMonth);\n proto.months = deprecate(\"months accessor is deprecated. Use month instead\", getSetMonth);\n proto.years = deprecate(\"years accessor is deprecated. Use year instead\", getSetYear);\n proto.zone = deprecate(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\", getSetZone);\n proto.isDSTShifted = deprecate(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\", isDaylightSavingTimeShifted);\n function createUnix(input) {\n return createLocal(input * 1000);\n }\n function createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n }\n function preParsePostFormat(string) {\n return string;\n }\n var proto$1 = Locale.prototype;\n proto$1.calendar = calendar;\n proto$1.longDateFormat = longDateFormat;\n proto$1.invalidDate = invalidDate;\n proto$1.ordinal = ordinal;\n proto$1.preparse = preParsePostFormat;\n proto$1.postformat = preParsePostFormat;\n proto$1.relativeTime = relativeTime;\n proto$1.pastFuture = pastFuture;\n proto$1.set = set;\n proto$1.eras = localeEras;\n proto$1.erasParse = localeErasParse;\n proto$1.erasConvertYear = localeErasConvertYear;\n proto$1.erasAbbrRegex = erasAbbrRegex;\n proto$1.erasNameRegex = erasNameRegex;\n proto$1.erasNarrowRegex = erasNarrowRegex;\n proto$1.months = localeMonths;\n proto$1.monthsShort = localeMonthsShort;\n proto$1.monthsParse = localeMonthsParse;\n proto$1.monthsRegex = monthsRegex;\n proto$1.monthsShortRegex = monthsShortRegex;\n proto$1.week = localeWeek;\n proto$1.firstDayOfYear = localeFirstDayOfYear;\n proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n proto$1.weekdays = localeWeekdays;\n proto$1.weekdaysMin = localeWeekdaysMin;\n proto$1.weekdaysShort = localeWeekdaysShort;\n proto$1.weekdaysParse = localeWeekdaysParse;\n proto$1.weekdaysRegex = weekdaysRegex;\n proto$1.weekdaysShortRegex = weekdaysShortRegex;\n proto$1.weekdaysMinRegex = weekdaysMinRegex;\n proto$1.isPM = localeIsPM;\n proto$1.meridiem = localeMeridiem;\n function get$1(format, index, field, setter) {\n var locale = getLocale(), utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n }\n function listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n format = format || \"\";\n if (index != null) return get$1(format, index, field, \"month\");\n var i, out = [];\n for(i = 0; i < 12; i++)out[i] = get$1(format, i, field, \"month\");\n return out;\n }\n // ()\n // (5)\n // (fmt, 5)\n // (fmt)\n // (true)\n // (true, 5)\n // (true, fmt, 5)\n // (true, fmt)\n function listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === \"boolean\") {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n format = format || \"\";\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n format = format || \"\";\n }\n var locale = getLocale(), shift = localeSorted ? locale._week.dow : 0, i, out = [];\n if (index != null) return get$1(format, (index + shift) % 7, field, \"day\");\n for(i = 0; i < 7; i++)out[i] = get$1(format, (i + shift) % 7, field, \"day\");\n return out;\n }\n function listMonths(format, index) {\n return listMonthsImpl(format, index, \"months\");\n }\n function listMonthsShort(format, index) {\n return listMonthsImpl(format, index, \"monthsShort\");\n }\n function listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, \"weekdays\");\n }\n function listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, \"weekdaysShort\");\n }\n function listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, \"weekdaysMin\");\n }\n getSetGlobalLocale(\"en\", {\n eras: [\n {\n since: \"0001-01-01\",\n until: Infinity,\n offset: 1,\n name: \"Anno Domini\",\n narrow: \"AD\",\n abbr: \"AD\"\n },\n {\n since: \"0000-12-31\",\n until: -Infinity,\n offset: 1,\n name: \"Before Christ\",\n narrow: \"BC\",\n abbr: \"BC\"\n }\n ],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function(number) {\n var b = number % 10, output = toInt(number % 100 / 10) === 1 ? \"th\" : b === 1 ? \"st\" : b === 2 ? \"nd\" : b === 3 ? \"rd\" : \"th\";\n return number + output;\n }\n });\n // Side effect imports\n hooks.lang = deprecate(\"moment.lang is deprecated. Use moment.locale instead.\", getSetGlobalLocale);\n hooks.langData = deprecate(\"moment.langData is deprecated. Use moment.localeData instead.\", getLocale);\n var mathAbs = Math.abs;\n function abs() {\n var data = this._data;\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n return this;\n }\n function addSubtract$1(duration, input, value, direction) {\n var other = createDuration(input, value);\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n return duration._bubble();\n }\n // supports only 2.0-style add(1, 's') or add(duration)\n function add$1(input, value) {\n return addSubtract$1(this, input, value, 1);\n }\n // supports only 2.0-style subtract(1, 's') or subtract(duration)\n function subtract$1(input, value) {\n return addSubtract$1(this, input, value, -1);\n }\n function absCeil(number) {\n if (number < 0) return Math.floor(number);\n else return Math.ceil(number);\n }\n function bubble() {\n var milliseconds = this._milliseconds, days = this._days, months = this._months, data = this._data, seconds, minutes, hours, years, monthsFromDays;\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (!(milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0)) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n days += absFloor(hours / 24);\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n data.days = days;\n data.months = months;\n data.years = years;\n return this;\n }\n function daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return days * 4800 / 146097;\n }\n function monthsToDays(months) {\n // the reverse of daysToMonths\n return months * 146097 / 4800;\n }\n function as(units) {\n if (!this.isValid()) return NaN;\n var days, months, milliseconds = this._milliseconds;\n units = normalizeUnits(units);\n if (units === \"month\" || units === \"quarter\" || units === \"year\") {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n switch(units){\n case \"month\":\n return months;\n case \"quarter\":\n return months / 3;\n case \"year\":\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch(units){\n case \"week\":\n return days / 7 + milliseconds / 6048e5;\n case \"day\":\n return days + milliseconds / 864e5;\n case \"hour\":\n return days * 24 + milliseconds / 36e5;\n case \"minute\":\n return days * 1440 + milliseconds / 6e4;\n case \"second\":\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case \"millisecond\":\n return Math.floor(days * 864e5) + milliseconds;\n default:\n throw new Error(\"Unknown unit \" + units);\n }\n }\n }\n function makeAs(alias) {\n return function() {\n return this.as(alias);\n };\n }\n var asMilliseconds = makeAs(\"ms\"), asSeconds = makeAs(\"s\"), asMinutes = makeAs(\"m\"), asHours = makeAs(\"h\"), asDays = makeAs(\"d\"), asWeeks = makeAs(\"w\"), asMonths = makeAs(\"M\"), asQuarters = makeAs(\"Q\"), asYears = makeAs(\"y\"), valueOf$1 = asMilliseconds;\n function clone$1() {\n return createDuration(this);\n }\n function get$2(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + \"s\"]() : NaN;\n }\n function makeGetter(name) {\n return function() {\n return this.isValid() ? this._data[name] : NaN;\n };\n }\n var milliseconds = makeGetter(\"milliseconds\"), seconds = makeGetter(\"seconds\"), minutes = makeGetter(\"minutes\"), hours = makeGetter(\"hours\"), days = makeGetter(\"days\"), months = makeGetter(\"months\"), years = makeGetter(\"years\");\n function weeks() {\n return absFloor(this.days() / 7);\n }\n var round = Math.round, thresholds = {\n ss: 44,\n s: 45,\n m: 45,\n h: 22,\n d: 26,\n w: null,\n M: 11\n };\n // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n }\n function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n var duration = createDuration(posNegDuration).abs(), seconds = round(duration.as(\"s\")), minutes = round(duration.as(\"m\")), hours = round(duration.as(\"h\")), days = round(duration.as(\"d\")), months = round(duration.as(\"M\")), weeks = round(duration.as(\"w\")), years = round(duration.as(\"y\")), a = seconds <= thresholds.ss && [\n \"s\",\n seconds\n ] || seconds < thresholds.s && [\n \"ss\",\n seconds\n ] || minutes <= 1 && [\n \"m\"\n ] || minutes < thresholds.m && [\n \"mm\",\n minutes\n ] || hours <= 1 && [\n \"h\"\n ] || hours < thresholds.h && [\n \"hh\",\n hours\n ] || days <= 1 && [\n \"d\"\n ] || days < thresholds.d && [\n \"dd\",\n days\n ];\n if (thresholds.w != null) a = a || weeks <= 1 && [\n \"w\"\n ] || weeks < thresholds.w && [\n \"ww\",\n weeks\n ];\n a = a || months <= 1 && [\n \"M\"\n ] || months < thresholds.M && [\n \"MM\",\n months\n ] || years <= 1 && [\n \"y\"\n ] || [\n \"yy\",\n years\n ];\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n }\n // This function allows you to set the rounding function for relative time strings\n function getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) return round;\n if (typeof roundingFunction === \"function\") {\n round = roundingFunction;\n return true;\n }\n return false;\n }\n // This function allows you to set a threshold for relative time strings\n function getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) return false;\n if (limit === undefined) return thresholds[threshold];\n thresholds[threshold] = limit;\n if (threshold === \"s\") thresholds.ss = limit - 1;\n return true;\n }\n function humanize(argWithSuffix, argThresholds) {\n if (!this.isValid()) return this.localeData().invalidDate();\n var withSuffix = false, th = thresholds, locale, output;\n if (typeof argWithSuffix === \"object\") {\n argThresholds = argWithSuffix;\n argWithSuffix = false;\n }\n if (typeof argWithSuffix === \"boolean\") withSuffix = argWithSuffix;\n if (typeof argThresholds === \"object\") {\n th = Object.assign({}, thresholds, argThresholds);\n if (argThresholds.s != null && argThresholds.ss == null) th.ss = argThresholds.s - 1;\n }\n locale = this.localeData();\n output = relativeTime$1(this, !withSuffix, th, locale);\n if (withSuffix) output = locale.pastFuture(+this, output);\n return locale.postformat(output);\n }\n var abs$1 = Math.abs;\n function sign(x) {\n return (x > 0) - (x < 0) || +x;\n }\n function toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) return this.localeData().invalidDate();\n var seconds = abs$1(this._milliseconds) / 1000, days = abs$1(this._days), months = abs$1(this._months), minutes, hours, years, s, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign;\n if (!total) // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return \"P0D\";\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, \"\") : \"\";\n totalSign = total < 0 ? \"-\" : \"\";\n ymSign = sign(this._months) !== sign(total) ? \"-\" : \"\";\n daysSign = sign(this._days) !== sign(total) ? \"-\" : \"\";\n hmsSign = sign(this._milliseconds) !== sign(total) ? \"-\" : \"\";\n return totalSign + \"P\" + (years ? ymSign + years + \"Y\" : \"\") + (months ? ymSign + months + \"M\" : \"\") + (days ? daysSign + days + \"D\" : \"\") + (hours || minutes || seconds ? \"T\" : \"\") + (hours ? hmsSign + hours + \"H\" : \"\") + (minutes ? hmsSign + minutes + \"M\" : \"\") + (seconds ? hmsSign + s + \"S\" : \"\");\n }\n var proto$2 = Duration.prototype;\n proto$2.isValid = isValid$1;\n proto$2.abs = abs;\n proto$2.add = add$1;\n proto$2.subtract = subtract$1;\n proto$2.as = as;\n proto$2.asMilliseconds = asMilliseconds;\n proto$2.asSeconds = asSeconds;\n proto$2.asMinutes = asMinutes;\n proto$2.asHours = asHours;\n proto$2.asDays = asDays;\n proto$2.asWeeks = asWeeks;\n proto$2.asMonths = asMonths;\n proto$2.asQuarters = asQuarters;\n proto$2.asYears = asYears;\n proto$2.valueOf = valueOf$1;\n proto$2._bubble = bubble;\n proto$2.clone = clone$1;\n proto$2.get = get$2;\n proto$2.milliseconds = milliseconds;\n proto$2.seconds = seconds;\n proto$2.minutes = minutes;\n proto$2.hours = hours;\n proto$2.days = days;\n proto$2.weeks = weeks;\n proto$2.months = months;\n proto$2.years = years;\n proto$2.humanize = humanize;\n proto$2.toISOString = toISOString$1;\n proto$2.toString = toISOString$1;\n proto$2.toJSON = toISOString$1;\n proto$2.locale = locale;\n proto$2.localeData = localeData;\n proto$2.toIsoString = deprecate(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\", toISOString$1);\n proto$2.lang = lang;\n // FORMATTING\n addFormatToken(\"X\", 0, 0, \"unix\");\n addFormatToken(\"x\", 0, 0, \"valueOf\");\n // PARSING\n addRegexToken(\"x\", matchSigned);\n addRegexToken(\"X\", matchTimestamp);\n addParseToken(\"X\", function(input, array, config) {\n config._d = new Date(parseFloat(input) * 1000);\n });\n addParseToken(\"x\", function(input, array, config) {\n config._d = new Date(toInt(input));\n });\n //! moment.js\n hooks.version = \"2.30.1\";\n setHookCallback(createLocal);\n hooks.fn = proto;\n hooks.min = min;\n hooks.max = max;\n hooks.now = now;\n hooks.utc = createUTC;\n hooks.unix = createUnix;\n hooks.months = listMonths;\n hooks.isDate = isDate;\n hooks.locale = getSetGlobalLocale;\n hooks.invalid = createInvalid;\n hooks.duration = createDuration;\n hooks.isMoment = isMoment;\n hooks.weekdays = listWeekdays;\n hooks.parseZone = createInZone;\n hooks.localeData = getLocale;\n hooks.isDuration = isDuration;\n hooks.monthsShort = listMonthsShort;\n hooks.weekdaysMin = listWeekdaysMin;\n hooks.defineLocale = defineLocale;\n hooks.updateLocale = updateLocale;\n hooks.locales = listLocales;\n hooks.weekdaysShort = listWeekdaysShort;\n hooks.normalizeUnits = normalizeUnits;\n hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n hooks.calendarFormat = getCalendarFormat;\n hooks.prototype = proto;\n // currently HTML5 input type only supports 24-hour formats\n hooks.HTML5_FMT = {\n DATETIME_LOCAL: \"YYYY-MM-DDTHH:mm\",\n DATETIME_LOCAL_SECONDS: \"YYYY-MM-DDTHH:mm:ss\",\n DATETIME_LOCAL_MS: \"YYYY-MM-DDTHH:mm:ss.SSS\",\n DATE: \"YYYY-MM-DD\",\n TIME: \"HH:mm\",\n TIME_SECONDS: \"HH:mm:ss\",\n TIME_MS: \"HH:mm:ss.SSS\",\n WEEK: \"GGGG-[W]WW\",\n MONTH: \"YYYY-MM\"\n };\n return hooks;\n});\n\n});\n\n\nvar $45fvw = parcelRequire(\"45fvw\");\nfunction $37ea9347e68a07dc$var$t(t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction $37ea9347e68a07dc$var$e(t, e) {\n for(var s = 0; s < e.length; s++){\n var i = e[s];\n i.enumerable = i.enumerable || false;\n i.configurable = true;\n if (\"value\" in i) i.writable = true;\n Object.defineProperty(t, i.key, i);\n }\n}\nfunction $37ea9347e68a07dc$var$s(t, s, i) {\n if (s) $37ea9347e68a07dc$var$e(t.prototype, s);\n if (i) $37ea9347e68a07dc$var$e(t, i);\n return t;\n}\nvar $37ea9347e68a07dc$var$i = Object.defineProperty;\nvar $37ea9347e68a07dc$var$n = function(t, e) {\n return $37ea9347e68a07dc$var$i(t, \"name\", {\n value: e,\n configurable: !0\n });\n};\nvar $37ea9347e68a07dc$var$o = '\\n \\n\\n';\nvar $37ea9347e68a07dc$var$a = '\\n \\n\\n';\nvar $37ea9347e68a07dc$var$r = '\\n \\n\\n';\nvar $37ea9347e68a07dc$var$c = '\\n \\n\\n';\nvar $37ea9347e68a07dc$var$l = '\\n \\n\\n';\nvar $37ea9347e68a07dc$var$h = $37ea9347e68a07dc$var$n(function(t) {\n return new DOMParser().parseFromString(t, \"text/html\").body.childNodes[0];\n}, \"stringToHTML\"), $37ea9347e68a07dc$var$d = $37ea9347e68a07dc$var$n(function(t) {\n var e = new DOMParser().parseFromString(t, \"application/xml\");\n return document.importNode(e.documentElement, !0).outerHTML;\n}, \"getSvgNode\");\nvar $37ea9347e68a07dc$var$u = {\n CONTAINER: \"sn-notifications-container\",\n NOTIFY: \"sn-notify\",\n NOTIFY_CONTENT: \"sn-notify-content\",\n NOTIFY_ICON: \"sn-notify-icon\",\n NOTIFY_CLOSE: \"sn-notify-close\",\n NOTIFY_TITLE: \"sn-notify-title\",\n NOTIFY_TEXT: \"sn-notify-text\",\n IS_X_CENTER: \"sn-is-x-center\",\n IS_Y_CENTER: \"sn-is-y-center\",\n IS_CENTER: \"sn-is-center\",\n IS_LEFT: \"sn-is-left\",\n IS_RIGHT: \"sn-is-right\",\n IS_TOP: \"sn-is-top\",\n IS_BOTTOM: \"sn-is-bottom\",\n NOTIFY_OUTLINE: \"sn-notify-outline\",\n NOTIFY_FILLED: \"sn-notify-filled\",\n NOTIFY_ERROR: \"sn-notify-error\",\n NOTIFY_WARNING: \"sn-notify-warning\",\n NOTIFY_SUCCESS: \"sn-notify-success\",\n NOTIFY_INFO: \"sn-notify-info\",\n NOTIFY_FADE: \"sn-notify-fade\",\n NOTIFY_FADE_IN: \"sn-notify-fade-in\",\n NOTIFY_SLIDE: \"sn-notify-slide\",\n NOTIFY_SLIDE_IN: \"sn-notify-slide-in\",\n NOTIFY_AUTOCLOSE: \"sn-notify-autoclose\"\n}, $37ea9347e68a07dc$var$f = {\n ERROR: \"error\",\n WARNING: \"warning\",\n SUCCESS: \"success\",\n INFO: \"info\"\n}, $37ea9347e68a07dc$var$p = {\n OUTLINE: \"outline\",\n FILLED: \"filled\"\n}, $37ea9347e68a07dc$var$I = {\n FADE: \"fade\",\n SLIDE: \"slide\"\n}, $37ea9347e68a07dc$var$v = {\n CLOSE: $37ea9347e68a07dc$var$d($37ea9347e68a07dc$var$o),\n SUCCESS: $37ea9347e68a07dc$var$d($37ea9347e68a07dc$var$c),\n ERROR: $37ea9347e68a07dc$var$d($37ea9347e68a07dc$var$a),\n WARNING: $37ea9347e68a07dc$var$d($37ea9347e68a07dc$var$l),\n INFO: $37ea9347e68a07dc$var$d($37ea9347e68a07dc$var$r)\n};\nvar $37ea9347e68a07dc$var$N = $37ea9347e68a07dc$var$n(function(t) {\n t.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_FADE), setTimeout(function() {\n t.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_FADE_IN);\n }, 100);\n}, \"fadeIn\"), $37ea9347e68a07dc$var$O = $37ea9347e68a07dc$var$n(function(t) {\n t.wrapper.classList.remove($37ea9347e68a07dc$var$u.NOTIFY_FADE_IN), setTimeout(function() {\n t.wrapper.remove();\n }, t.speed);\n}, \"fadeOut\"), $37ea9347e68a07dc$var$T = $37ea9347e68a07dc$var$n(function(t) {\n t.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_SLIDE), setTimeout(function() {\n t.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_SLIDE_IN);\n }, 100);\n}, \"slideIn\"), $37ea9347e68a07dc$var$E = $37ea9347e68a07dc$var$n(function(t) {\n t.wrapper.classList.remove($37ea9347e68a07dc$var$u.NOTIFY_SLIDE_IN), setTimeout(function() {\n t.wrapper.remove();\n }, t.speed);\n}, \"slideOut\");\nvar $37ea9347e68a07dc$var$m = function() {\n \"use strict\";\n function e(s) {\n var i = this;\n $37ea9347e68a07dc$var$t(this, e);\n this.notifyOut = $37ea9347e68a07dc$var$n(function(t) {\n t(i);\n }, \"notifyOut\");\n var o = s.notificationsGap, a = o === void 0 ? 20 : o, r = s.notificationsPadding, c = r === void 0 ? 20 : r, l = s.status, h = l === void 0 ? \"success\" : l, d = s.effect, u = d === void 0 ? $37ea9347e68a07dc$var$I.FADE : d, f = s.type, p = f === void 0 ? \"outline\" : f, v = s.title, N = s.text, O = s.showIcon, T = O === void 0 ? !0 : O, E = s.customIcon, m = E === void 0 ? \"\" : E, w = s.customClass, y = w === void 0 ? \"\" : w, L = s.speed, C = L === void 0 ? 500 : L, F = s.showCloseButton, _ = F === void 0 ? !0 : F, S = s.autoclose, g = S === void 0 ? !0 : S, R = s.autotimeout, Y = R === void 0 ? 3e3 : R, x = s.position, A = x === void 0 ? \"right top\" : x, b = s.customWrapper, k = b === void 0 ? \"\" : b;\n if (this.customWrapper = k, this.status = h, this.title = v, this.text = N, this.showIcon = T, this.customIcon = m, this.customClass = y, this.speed = C, this.effect = u, this.showCloseButton = _, this.autoclose = g, this.autotimeout = Y, this.notificationsGap = a, this.notificationsPadding = c, this.type = p, this.position = A, !this.checkRequirements()) {\n console.error(\"You must specify 'title' or 'text' at least.\");\n return;\n }\n this.setContainer(), this.setWrapper(), this.setPosition(), this.showIcon && this.setIcon(), this.showCloseButton && this.setCloseButton(), this.setContent(), this.container.prepend(this.wrapper), this.setEffect(), this.notifyIn(this.selectedNotifyInEffect), this.autoclose && this.autoClose(), this.setObserver();\n }\n $37ea9347e68a07dc$var$s(e, [\n {\n key: \"checkRequirements\",\n value: function t() {\n return !!(this.title || this.text);\n }\n },\n {\n key: \"setContainer\",\n value: function t() {\n var t = document.querySelector(\".\".concat($37ea9347e68a07dc$var$u.CONTAINER));\n t ? this.container = t : (this.container = document.createElement(\"div\"), this.container.classList.add($37ea9347e68a07dc$var$u.CONTAINER), document.body.appendChild(this.container)), this.notificationsPadding && this.container.style.setProperty(\"--sn-notifications-padding\", \"\".concat(this.notificationsPadding, \"px\")), this.notificationsGap && this.container.style.setProperty(\"--sn-notifications-gap\", \"\".concat(this.notificationsGap, \"px\"));\n }\n },\n {\n key: \"setPosition\",\n value: function t() {\n this.container.classList[this.position === \"center\" ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_CENTER), this.container.classList[this.position.includes(\"left\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_LEFT), this.container.classList[this.position.includes(\"right\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_RIGHT), this.container.classList[this.position.includes(\"top\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_TOP), this.container.classList[this.position.includes(\"bottom\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_BOTTOM), this.container.classList[this.position.includes(\"x-center\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_X_CENTER), this.container.classList[this.position.includes(\"y-center\") ? \"add\" : \"remove\"]($37ea9347e68a07dc$var$u.IS_Y_CENTER);\n }\n },\n {\n key: \"setCloseButton\",\n value: function t() {\n var t = this;\n var e = document.createElement(\"div\");\n e.classList.add($37ea9347e68a07dc$var$u.NOTIFY_CLOSE), e.innerHTML = $37ea9347e68a07dc$var$v.CLOSE, this.wrapper.appendChild(e), e.addEventListener(\"click\", function() {\n t.close();\n });\n }\n },\n {\n key: \"setWrapper\",\n value: function t() {\n var t = this;\n switch(this.customWrapper ? this.wrapper = $37ea9347e68a07dc$var$h(this.customWrapper) : this.wrapper = document.createElement(\"div\"), this.wrapper.style.setProperty(\"--sn-notify-transition-duration\", \"\".concat(this.speed, \"ms\")), this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY), this.type){\n case $37ea9347e68a07dc$var$p.OUTLINE:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_OUTLINE);\n break;\n case $37ea9347e68a07dc$var$p.FILLED:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_FILLED);\n break;\n default:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_OUTLINE);\n }\n switch(this.status){\n case $37ea9347e68a07dc$var$f.SUCCESS:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_SUCCESS);\n break;\n case $37ea9347e68a07dc$var$f.ERROR:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_ERROR);\n break;\n case $37ea9347e68a07dc$var$f.WARNING:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_WARNING);\n break;\n case $37ea9347e68a07dc$var$f.INFO:\n this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_INFO);\n break;\n }\n this.autoclose && (this.wrapper.classList.add($37ea9347e68a07dc$var$u.NOTIFY_AUTOCLOSE), this.wrapper.style.setProperty(\"--sn-notify-autoclose-timeout\", \"\".concat(this.autotimeout + this.speed, \"ms\"))), this.customClass && this.customClass.split(\" \").forEach(function(e) {\n t.wrapper.classList.add(e);\n });\n }\n },\n {\n key: \"setContent\",\n value: function t() {\n var t = document.createElement(\"div\");\n t.classList.add($37ea9347e68a07dc$var$u.NOTIFY_CONTENT);\n var e, s;\n this.title && (e = document.createElement(\"div\"), e.classList.add($37ea9347e68a07dc$var$u.NOTIFY_TITLE), e.textContent = this.title.trim(), this.showCloseButton || (e.style.paddingRight = \"0\")), this.text && (s = document.createElement(\"div\"), s.classList.add($37ea9347e68a07dc$var$u.NOTIFY_TEXT), s.innerHTML = this.text.trim(), this.title || (s.style.marginTop = \"0\")), this.wrapper.appendChild(t), this.title && t.appendChild(e), this.text && t.appendChild(s);\n }\n },\n {\n key: \"setIcon\",\n value: function t() {\n var t = $37ea9347e68a07dc$var$n(function(t) {\n switch(t){\n case $37ea9347e68a07dc$var$f.SUCCESS:\n return $37ea9347e68a07dc$var$v.SUCCESS;\n case $37ea9347e68a07dc$var$f.ERROR:\n return $37ea9347e68a07dc$var$v.ERROR;\n case $37ea9347e68a07dc$var$f.WARNING:\n return $37ea9347e68a07dc$var$v.WARNING;\n case $37ea9347e68a07dc$var$f.INFO:\n return $37ea9347e68a07dc$var$v.INFO;\n }\n }, \"computedIcon\"), e = document.createElement(\"div\");\n e.classList.add($37ea9347e68a07dc$var$u.NOTIFY_ICON), e.innerHTML = this.customIcon || t(this.status), (this.status || this.customIcon) && this.wrapper.appendChild(e);\n }\n },\n {\n key: \"setObserver\",\n value: function t() {\n var t = this;\n var e = new IntersectionObserver(function(e) {\n if (e[0].intersectionRatio <= 0) t.close();\n else return;\n }, {\n threshold: 0\n });\n setTimeout(function() {\n e.observe(t.wrapper);\n }, this.speed);\n }\n },\n {\n key: \"notifyIn\",\n value: function t(t) {\n t(this);\n }\n },\n {\n key: \"autoClose\",\n value: function t() {\n var t = this;\n setTimeout(function() {\n t.close();\n }, this.autotimeout + this.speed);\n }\n },\n {\n key: \"close\",\n value: function t() {\n this.notifyOut(this.selectedNotifyOutEffect);\n }\n },\n {\n key: \"setEffect\",\n value: function t() {\n switch(this.effect){\n case $37ea9347e68a07dc$var$I.FADE:\n this.selectedNotifyInEffect = $37ea9347e68a07dc$var$N, this.selectedNotifyOutEffect = $37ea9347e68a07dc$var$O;\n break;\n case $37ea9347e68a07dc$var$I.SLIDE:\n this.selectedNotifyInEffect = $37ea9347e68a07dc$var$T, this.selectedNotifyOutEffect = $37ea9347e68a07dc$var$E;\n break;\n default:\n this.selectedNotifyInEffect = $37ea9347e68a07dc$var$N, this.selectedNotifyOutEffect = $37ea9347e68a07dc$var$O;\n }\n }\n }\n ]);\n return e;\n}();\n$37ea9347e68a07dc$var$n($37ea9347e68a07dc$var$m, \"Notify\");\nvar $37ea9347e68a07dc$export$2e2bcd8739ae039 = $37ea9347e68a07dc$var$m;\nglobalThis.Notify = $37ea9347e68a07dc$export$2e2bcd8739ae039;\n\n\n/**\n * These should be kept in sync with zigbee-herdsman.\n */ /**\n * Defines the events reported to the application by the ::emberCounterHandler().\n * Usage of the destinationNodeId or data fields found in the EmberCounterInfo or EmberExtraCounterInfo\n * structs is denoted for counter types that use them.\n * (See comments accompanying enum definitions in this source file for details.)\n */ var $0c547add3190c50c$export$7d1f329b3260ae16;\n(function(EmberCounterType) {\n /**\n * The MAC received a broadcast Data frame, Command frame, or Beacon.\n * - destinationNodeId: BROADCAST_ADDRESS or Data frames or sender node ID for Beacon frames\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"MAC_RX_BROADCAST\"] = 0] = \"MAC_RX_BROADCAST\";\n /**\n * The MAC transmitted a broadcast Data frame, Command frame or Beacon.\n * - destinationNodeId: BROADCAST_ADDRESS\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"MAC_TX_BROADCAST\"] = 1] = \"MAC_TX_BROADCAST\";\n /**\n * The MAC received a unicast Data or Command frame.\n * - destinationNodeId: MAC layer source or EMBER_UNKNOWN_NODE_ID if no 16-bit source node ID is present in the frame\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"MAC_RX_UNICAST\"] = 2] = \"MAC_RX_UNICAST\";\n /**\n * The MAC successfully transmitted a unicast Data or Command frame.\n * Note: Only frames with a 16-bit destination node ID are counted.\n * - destinationNodeId: MAC layer destination address\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"MAC_TX_UNICAST_SUCCESS\"] = 3] = \"MAC_TX_UNICAST_SUCCESS\";\n /**\n * The MAC retried a unicast Data or Command frame after initial Tx attempt.\n * Note: CSMA-related failures are tracked separately via PHY_CCA_FAIL_COUNT.\n * - destinationNodeId: MAC layer destination or EMBER_UNKNOWN_NODE_ID if no 16-bit destination node ID is present in the frame\n * - data: number of retries (after initial Tx attempt) accumulated so far for this packet. (Should always be >0.)\n */ EmberCounterType[EmberCounterType[\"MAC_TX_UNICAST_RETRY\"] = 4] = \"MAC_TX_UNICAST_RETRY\";\n /**\n * The MAC unsuccessfully transmitted a unicast Data or Command frame.\n * Note: Only frames with a 16-bit destination node ID are counted.\n * - destinationNodeId: MAC layer destination address\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"MAC_TX_UNICAST_FAILED\"] = 5] = \"MAC_TX_UNICAST_FAILED\";\n /**\n * The APS layer received a data broadcast.\n * - destinationNodeId: sender's node ID\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"APS_DATA_RX_BROADCAST\"] = 6] = \"APS_DATA_RX_BROADCAST\";\n /** The APS layer transmitted a data broadcast. */ EmberCounterType[EmberCounterType[\"APS_DATA_TX_BROADCAST\"] = 7] = \"APS_DATA_TX_BROADCAST\";\n /**\n * The APS layer received a data unicast.\n * - destinationNodeId: sender's node ID\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"APS_DATA_RX_UNICAST\"] = 8] = \"APS_DATA_RX_UNICAST\";\n /**\n * The APS layer successfully transmitted a data unicast.\n * - destinationNodeId: NWK destination address\n * - data: number of APS retries (>=0) consumed for this unicast.\n */ EmberCounterType[EmberCounterType[\"APS_DATA_TX_UNICAST_SUCCESS\"] = 9] = \"APS_DATA_TX_UNICAST_SUCCESS\";\n /**\n * The APS layer retried a unicast Data frame.\n * This is a placeholder and is not used by the @c ::emberCounterHandler() callback.\n * Instead, the number of APS retries are returned in the data parameter of the callback\n * for the @c ::APS_DATA_TX_UNICAST_SUCCESS and @c ::APS_DATA_TX_UNICAST_FAILED types.\n * However, our supplied Counters component code will attempt to collect this information\n * from the aforementioned counters and populate this counter.\n * Note that this counter's behavior differs from that of @c ::MAC_TX_UNICAST_RETRY .\n */ EmberCounterType[EmberCounterType[\"APS_DATA_TX_UNICAST_RETRY\"] = 10] = \"APS_DATA_TX_UNICAST_RETRY\";\n /**\n * The APS layer unsuccessfully transmitted a data unicast.\n * - destinationNodeId: NWK destination address\n * - data: number of APS retries (>=0) consumed for this unicast.\n */ EmberCounterType[EmberCounterType[\"APS_DATA_TX_UNICAST_FAILED\"] = 11] = \"APS_DATA_TX_UNICAST_FAILED\";\n /** The network layer successfully submitted a new route discovery to the MAC. */ EmberCounterType[EmberCounterType[\"ROUTE_DISCOVERY_INITIATED\"] = 12] = \"ROUTE_DISCOVERY_INITIATED\";\n /** An entry was added to the neighbor table. */ EmberCounterType[EmberCounterType[\"NEIGHBOR_ADDED\"] = 13] = \"NEIGHBOR_ADDED\";\n /** An entry was removed from the neighbor table. */ EmberCounterType[EmberCounterType[\"NEIGHBOR_REMOVED\"] = 14] = \"NEIGHBOR_REMOVED\";\n /** A neighbor table entry became stale because it had not been heard from. */ EmberCounterType[EmberCounterType[\"NEIGHBOR_STALE\"] = 15] = \"NEIGHBOR_STALE\";\n /**\n * A node joined or rejoined to the network via this node.\n * - destinationNodeId: node ID of child\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"JOIN_INDICATION\"] = 16] = \"JOIN_INDICATION\";\n /**\n * An entry was removed from the child table.\n * - destinationNodeId: node ID of child\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"CHILD_REMOVED\"] = 17] = \"CHILD_REMOVED\";\n /** EZSP-UART only. An overflow error occurred in the UART. */ EmberCounterType[EmberCounterType[\"ASH_OVERFLOW_ERROR\"] = 18] = \"ASH_OVERFLOW_ERROR\";\n /** EZSP-UART only. A framing error occurred in the UART. */ EmberCounterType[EmberCounterType[\"ASH_FRAMING_ERROR\"] = 19] = \"ASH_FRAMING_ERROR\";\n /** EZSP-UART only. An overrun error occurred in the UART. */ EmberCounterType[EmberCounterType[\"ASH_OVERRUN_ERROR\"] = 20] = \"ASH_OVERRUN_ERROR\";\n /** A message was dropped at the Network layer because the NWK frame counter was not higher than the last message seen from that source. */ EmberCounterType[EmberCounterType[\"NWK_FRAME_COUNTER_FAILURE\"] = 21] = \"NWK_FRAME_COUNTER_FAILURE\";\n /**\n * A message was dropped at the APS layer because the APS frame counter was not higher than the last message seen from that source.\n * - destinationNodeId: node ID of MAC source that relayed the message\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"APS_FRAME_COUNTER_FAILURE\"] = 22] = \"APS_FRAME_COUNTER_FAILURE\";\n /** EZSP-UART only. An XOFF was transmitted by the UART. */ EmberCounterType[EmberCounterType[\"ASH_XOFF\"] = 23] = \"ASH_XOFF\";\n /**\n * An encrypted message was dropped by the APS layer because the sender's key has not been authenticated.\n * As a result, the key is not authorized for use in APS data messages.\n * - destinationNodeId: EMBER_NULL_NODE_ID\n * - data: APS key table index related to the sender\n */ EmberCounterType[EmberCounterType[\"APS_LINK_KEY_NOT_AUTHORIZED\"] = 24] = \"APS_LINK_KEY_NOT_AUTHORIZED\";\n /**\n * A NWK encrypted message was received but dropped because decryption failed.\n * - destinationNodeId: sender of the dropped packet\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"NWK_DECRYPTION_FAILURE\"] = 25] = \"NWK_DECRYPTION_FAILURE\";\n /**\n * An APS encrypted message was received but dropped because decryption failed.\n * - destinationNodeId: sender of the dropped packet\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"APS_DECRYPTION_FAILURE\"] = 26] = \"APS_DECRYPTION_FAILURE\";\n /**\n * The number of failures to allocate a set of linked packet buffers.\n * This doesn't necessarily mean that the packet buffer count was 0 at the time,\n * but that the number requested was greater than the number free.\n */ EmberCounterType[EmberCounterType[\"ALLOCATE_PACKET_BUFFER_FAILURE\"] = 27] = \"ALLOCATE_PACKET_BUFFER_FAILURE\";\n /**\n * The number of relayed unicast packets.\n * - destinationId: NWK layer destination address of relayed packet\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"RELAYED_UNICAST\"] = 28] = \"RELAYED_UNICAST\";\n /**\n * The number of times a packet was dropped due to reaching the preset PHY-to-MAC queue limit (sli_mac_phy_to_mac_queue_length).\n * The limit will determine how many messages are accepted by the PHY between calls to emberTick().\n * After that limit is reached, packets will be dropped. The counter records the number of dropped packets.\n *\n * NOTE: For each call to emberCounterHandler() there may be more than 1 packet that was dropped due to the limit reached.\n * The actual number of packets dropped will be returned in the 'data' parameter passed to that function.\n *\n * - destinationNodeId: not used\n * - data: number of dropped packets represented by this counter event\n * - phyIndex: present\n */ EmberCounterType[EmberCounterType[\"PHY_TO_MAC_QUEUE_LIMIT_REACHED\"] = 29] = \"PHY_TO_MAC_QUEUE_LIMIT_REACHED\";\n /**\n * The number of times a packet was dropped due to the packet-validate library checking a packet\n * and rejecting it due to length or other formatting problems.\n * - destinationNodeId: not used\n * - data: type of validation condition that failed\n */ EmberCounterType[EmberCounterType[\"PACKET_VALIDATE_LIBRARY_DROPPED_COUNT\"] = 30] = \"PACKET_VALIDATE_LIBRARY_DROPPED_COUNT\";\n /**\n * The number of times the NWK retry queue is full and a new message failed to be added.\n * - destinationNodeId; not used\n * - data: NWK retry queue size that has been exceeded\n */ EmberCounterType[EmberCounterType[\"TYPE_NWK_RETRY_OVERFLOW\"] = 31] = \"TYPE_NWK_RETRY_OVERFLOW\";\n /**\n * The number of times the PHY layer was unable to transmit due to a failed CCA (Clear Channel Assessment) attempt.\n * See also: MAC_TX_UNICAST_RETRY.\n * - destinationNodeId: MAC layer destination or EMBER_UNKNOWN_NODE_ID if no 16-bit destination node ID is present in the frame\n * - data: not used\n */ EmberCounterType[EmberCounterType[\"PHY_CCA_FAIL_COUNT\"] = 32] = \"PHY_CCA_FAIL_COUNT\";\n /** The number of times a NWK broadcast was dropped because the broadcast table was full. */ EmberCounterType[EmberCounterType[\"BROADCAST_TABLE_FULL\"] = 33] = \"BROADCAST_TABLE_FULL\";\n /** The number of times a low-priority packet traffic arbitration request has been made. */ EmberCounterType[EmberCounterType[\"PTA_LO_PRI_REQUESTED\"] = 34] = \"PTA_LO_PRI_REQUESTED\";\n /** The number of times a high-priority packet traffic arbitration request has been made. */ EmberCounterType[EmberCounterType[\"PTA_HI_PRI_REQUESTED\"] = 35] = \"PTA_HI_PRI_REQUESTED\";\n /** The number of times a low-priority packet traffic arbitration request has been denied. */ EmberCounterType[EmberCounterType[\"PTA_LO_PRI_DENIED\"] = 36] = \"PTA_LO_PRI_DENIED\";\n /** The number of times a high-priority packet traffic arbitration request has been denied. */ EmberCounterType[EmberCounterType[\"PTA_HI_PRI_DENIED\"] = 37] = \"PTA_HI_PRI_DENIED\";\n /** The number of times a low-priority packet traffic arbitration transmission has been aborted. */ EmberCounterType[EmberCounterType[\"PTA_LO_PRI_TX_ABORTED\"] = 38] = \"PTA_LO_PRI_TX_ABORTED\";\n /** The number of times a high-priority packet traffic arbitration transmission has been aborted. */ EmberCounterType[EmberCounterType[\"PTA_HI_PRI_TX_ABORTED\"] = 39] = \"PTA_HI_PRI_TX_ABORTED\";\n /** The number of times an address conflict has caused node_id change, and an address conflict error is sent. */ EmberCounterType[EmberCounterType[\"ADDRESS_CONFLICT_SENT\"] = 40] = \"ADDRESS_CONFLICT_SENT\";\n})($0c547add3190c50c$export$7d1f329b3260ae16 || ($0c547add3190c50c$export$7d1f329b3260ae16 = {}));\nvar $0c547add3190c50c$export$ce7ab19ae6dc792d;\n(function(AshCounterType) {\n AshCounterType[AshCounterType[\"TX_DATA\"] = 0] = \"TX_DATA\";\n AshCounterType[AshCounterType[\"TX_ALL_FRAMES\"] = 1] = \"TX_ALL_FRAMES\";\n AshCounterType[AshCounterType[\"TX_DATA_FRAMES\"] = 2] = \"TX_DATA_FRAMES\";\n AshCounterType[AshCounterType[\"TX_ACK_FRAMES\"] = 3] = \"TX_ACK_FRAMES\";\n AshCounterType[AshCounterType[\"TX_NAK_FRAMES\"] = 4] = \"TX_NAK_FRAMES\";\n AshCounterType[AshCounterType[\"TX_RE_DATA_FRAMES\"] = 5] = \"TX_RE_DATA_FRAMES\";\n AshCounterType[AshCounterType[\"TX_N1_FRAMES\"] = 6] = \"TX_N1_FRAMES\";\n AshCounterType[AshCounterType[\"TX_CANCELLED\"] = 7] = \"TX_CANCELLED\";\n AshCounterType[AshCounterType[\"RX_DATA\"] = 8] = \"RX_DATA\";\n AshCounterType[AshCounterType[\"RX_ALL_FRAMES\"] = 9] = \"RX_ALL_FRAMES\";\n AshCounterType[AshCounterType[\"RX_DATA_FRAMES\"] = 10] = \"RX_DATA_FRAMES\";\n AshCounterType[AshCounterType[\"RX_ACK_FRAMES\"] = 11] = \"RX_ACK_FRAMES\";\n AshCounterType[AshCounterType[\"RX_NAK_FRAMES\"] = 12] = \"RX_NAK_FRAMES\";\n AshCounterType[AshCounterType[\"RX_RE_DATA_FRAMES\"] = 13] = \"RX_RE_DATA_FRAMES\";\n AshCounterType[AshCounterType[\"RX_N1_FRAMES\"] = 14] = \"RX_N1_FRAMES\";\n AshCounterType[AshCounterType[\"RX_CANCELLED\"] = 15] = \"RX_CANCELLED\";\n AshCounterType[AshCounterType[\"RX_CRC_ERRORS\"] = 16] = \"RX_CRC_ERRORS\";\n AshCounterType[AshCounterType[\"RX_COMM_ERRORS\"] = 17] = \"RX_COMM_ERRORS\";\n AshCounterType[AshCounterType[\"RX_TOO_SHORT\"] = 18] = \"RX_TOO_SHORT\";\n AshCounterType[AshCounterType[\"RX_TOO_LONG\"] = 19] = \"RX_TOO_LONG\";\n AshCounterType[AshCounterType[\"RX_BAD_CONTROL\"] = 20] = \"RX_BAD_CONTROL\";\n AshCounterType[AshCounterType[\"RX_BAD_LENGTH\"] = 21] = \"RX_BAD_LENGTH\";\n AshCounterType[AshCounterType[\"RX_BAD_ACK_NUMBER\"] = 22] = \"RX_BAD_ACK_NUMBER\";\n AshCounterType[AshCounterType[\"RX_NO_BUFFER\"] = 23] = \"RX_NO_BUFFER\";\n AshCounterType[AshCounterType[\"RX_DUPLICATES\"] = 24] = \"RX_DUPLICATES\";\n AshCounterType[AshCounterType[\"RX_OUT_OF_SEQUENCE\"] = 25] = \"RX_OUT_OF_SEQUENCE\";\n AshCounterType[AshCounterType[\"RX_ACK_TIMEOUTS\"] = 26] = \"RX_ACK_TIMEOUTS\";\n})($0c547add3190c50c$export$ce7ab19ae6dc792d || ($0c547add3190c50c$export$ce7ab19ae6dc792d = {}));\nconst $0c547add3190c50c$export$b29cac463fcff685 = 60;\nvar $0c547add3190c50c$export$128038c7eaec3edd;\n(function(EmberStackError) {\n // Error codes that a router uses to notify the message initiator about a broken route.\n EmberStackError[EmberStackError[\"ROUTE_ERROR_NO_ROUTE_AVAILABLE\"] = 0] = \"ROUTE_ERROR_NO_ROUTE_AVAILABLE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_TREE_LINK_FAILURE\"] = 1] = \"ROUTE_ERROR_TREE_LINK_FAILURE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_NON_TREE_LINK_FAILURE\"] = 2] = \"ROUTE_ERROR_NON_TREE_LINK_FAILURE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_LOW_BATTERY_LEVEL\"] = 3] = \"ROUTE_ERROR_LOW_BATTERY_LEVEL\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_NO_ROUTING_CAPACITY\"] = 4] = \"ROUTE_ERROR_NO_ROUTING_CAPACITY\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_NO_INDIRECT_CAPACITY\"] = 5] = \"ROUTE_ERROR_NO_INDIRECT_CAPACITY\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY\"] = 6] = \"ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE\"] = 7] = \"ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED\"] = 8] = \"ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_PARENT_LINK_FAILURE\"] = 9] = \"ROUTE_ERROR_PARENT_LINK_FAILURE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_VALIDATE_ROUTE\"] = 10] = \"ROUTE_ERROR_VALIDATE_ROUTE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_SOURCE_ROUTE_FAILURE\"] = 11] = \"ROUTE_ERROR_SOURCE_ROUTE_FAILURE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE\"] = 12] = \"ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_ADDRESS_CONFLICT\"] = 13] = \"ROUTE_ERROR_ADDRESS_CONFLICT\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_VERIFY_ADDRESSES\"] = 14] = \"ROUTE_ERROR_VERIFY_ADDRESSES\";\n EmberStackError[EmberStackError[\"ROUTE_ERROR_PAN_IDENTIFIER_UPDATE\"] = 15] = \"ROUTE_ERROR_PAN_IDENTIFIER_UPDATE\";\n EmberStackError[EmberStackError[\"NETWORK_STATUS_NETWORK_ADDRESS_UPDATE\"] = 16] = \"NETWORK_STATUS_NETWORK_ADDRESS_UPDATE\";\n EmberStackError[EmberStackError[\"NETWORK_STATUS_BAD_FRAME_COUNTER\"] = 17] = \"NETWORK_STATUS_BAD_FRAME_COUNTER\";\n EmberStackError[EmberStackError[\"NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER\"] = 18] = \"NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER\";\n EmberStackError[EmberStackError[\"NETWORK_STATUS_UNKNOWN_COMMAND\"] = 19] = \"NETWORK_STATUS_UNKNOWN_COMMAND\";\n})($0c547add3190c50c$export$128038c7eaec3edd || ($0c547add3190c50c$export$128038c7eaec3edd = {}));\n\n\nconst $f9b620c609316de1$export$2a174e0071931590 = 41;\nconst $f9b620c609316de1$export$ceb082b2eaf405bd = 27;\nconst $f9b620c609316de1$export$ec5a1f774e057f65 = 60000;\nconst $f9b620c609316de1$export$617c68ca378c1aaa = 1; // (min 1 NCP counters logged)\nconst $f9b620c609316de1$export$63c35f258aac6980 = /\\[.*?]/i;\nconst $f9b620c609316de1$export$303e55aba61750fd = \"[NCP COUNTERS] \";\nconst $f9b620c609316de1$export$95beb742938a6341 = \"[ASH COUNTERS] \";\nconst $f9b620c609316de1$export$bc2704b0770a3200 = \"Received network/route error \";\nconst $f9b620c609316de1$export$13864d84dc34e37e = `Failed to ping '`;\nconst $f9b620c609316de1$export$ccaab5dc19e79900 = \"attempt 2/2\";\nconst $f9b620c609316de1$export$a50f877c97ee07a = \"attempt 1/1\";\nconst $f9b620c609316de1$export$9fbd5a6de15875c7 = 25;\nconst $f9b620c609316de1$export$2301180df9108edd = 5;\nconst $f9b620c609316de1$export$bf44026d02a3660d = 0.8;\nconst $f9b620c609316de1$export$46dcdfd2c95be77f = 2500;\nconst $f9b620c609316de1$export$452af6364556dde = [\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).ROUTE_DISCOVERY_INITIATED,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).NEIGHBOR_ADDED,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).NEIGHBOR_REMOVED,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).NEIGHBOR_STALE,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).JOIN_INDICATION,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).CHILD_REMOVED,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_OVERFLOW_ERROR,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_FRAMING_ERROR,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_OVERRUN_ERROR,\n (0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_XOFF\n];\n\n\n\nconst $9a8cebc34540b0c1$export$230faf97f16ca50f = [\n /* MAC_RX_BROADCAST */ `The MAC received a broadcast Data frame, Command frame, or Beacon.`,\n /* MAC_TX_BROADCAST */ `The MAC transmitted a broadcast Data frame, Command frame or Beacon.`,\n /* MAC_RX_UNICAST */ `The MAC received a unicast Data or Command frame.`,\n /* MAC_TX_UNICAST_SUCCESS */ `The MAC successfully transmitted a unicast Data or Command frame. Note: Only frames with a 16-bit destination node ID are counted.`,\n /* MAC_TX_UNICAST_RETRY */ `The MAC retried a unicast Data or Command frame after initial Tx attempt. Note: CSMA-related failures are tracked separately via PHY_CCA_FAIL_COUNT.`,\n /* MAC_TX_UNICAST_FAILED */ `The MAC unsuccessfully transmitted a unicast Data or Command frame. Note: Only frames with a 16-bit destination node ID are counted.`,\n /* APS_DATA_RX_BROADCAST */ `The APS layer received a data broadcast.`,\n /* APS_DATA_TX_BROADCAST */ `The APS layer transmitted a data broadcast.`,\n /* APS_DATA_RX_UNICAST */ `The APS layer received a data unicast.`,\n /* APS_DATA_TX_UNICAST_SUCCESS */ `The APS layer successfully transmitted a data unicast.`,\n /* APS_DATA_TX_UNICAST_RETRY */ `The APS layer retried a unicast data frame.`,\n /* APS_DATA_TX_UNICAST_FAILED */ `The APS layer unsuccessfully transmitted a data unicast.`,\n /* ROUTE_DISCOVERY_INITIATED */ `The network layer successfully submitted a new route discovery to the MAC. Current Ember default is to trigger at least one every ${(0, $0c547add3190c50c$export$b29cac463fcff685)} seconds.`,\n /* NEIGHBOR_ADDED */ `An entry was added to the neighbor table.`,\n /* NEIGHBOR_REMOVED */ `An entry was removed from the neighbor table.`,\n /* NEIGHBOR_STALE */ `A neighbor table entry became stale because it had not been heard from.`,\n /* JOIN_INDICATION */ `A node joined or rejoined to the network via this node.`,\n /* CHILD_REMOVED */ `An entry was removed from the child table.`,\n /* ASH_OVERFLOW_ERROR */ `EZSP-UART only. An overflow error occurred in the UART.`,\n /* ASH_FRAMING_ERROR */ `EZSP-UART only. A framing error occurred in the UART.`,\n /* ASH_OVERRUN_ERROR */ `EZSP-UART only. An overrun error occurred in the UART.`,\n /* NWK_FRAME_COUNTER_FAILURE */ `A message was dropped at the Network layer because the NWK frame counter was not higher than the last message seen from that source.`,\n /* APS_FRAME_COUNTER_FAILURE */ `A message was dropped at the APS layer because the APS frame counter was not higher than the last message seen from that source.`,\n /* ASH_XOFF */ `EZSP-UART only. An XOFF was transmitted by the UART.`,\n /* APS_LINK_KEY_NOT_AUTHORIZED */ `An encrypted message was dropped by the APS layer because the sender's key has not been authenticated. As a result, the key is not authorized for use in APS data messages.`,\n /* NWK_DECRYPTION_FAILURE */ `A NWK encrypted message was received but dropped because decryption failed.`,\n /* APS_DECRYPTION_FAILURE */ `An APS encrypted message was received but dropped because decryption failed.`,\n /* ALLOCATE_PACKET_BUFFER_FAILURE */ `The number of failures to allocate a set of linked packet buffers. This doesn't necessarily mean that the packet buffer count was 0 at the time, but that the number requested was greater than the number free.`,\n /* RELAYED_UNICAST */ `The number of relayed unicast packets.`,\n /* PHY_TO_MAC_QUEUE_LIMIT_REACHED */ `The number of times a packet was dropped due to reaching the preset PHY-to-MAC queue limit. For each count, there may be more than 1 packet that was dropped due to the limit reached.`,\n /* PACKET_VALIDATE_LIBRARY_DROPPED_COUNT */ `The number of times a packet was dropped due to the packet-validate library checking a packet and rejecting it due to length or other formatting problems.`,\n /* TYPE_NWK_RETRY_OVERFLOW */ `The number of times the NWK retry queue is full and a new message failed to be added.`,\n /* PHY_CCA_FAIL_COUNT */ `The number of times the PHY layer was unable to transmit due to a failed CCA (Clear Channel Assessment) attempt.`,\n /* BROADCAST_TABLE_FULL */ `The number of times a NWK broadcast was dropped because the broadcast table was full.`,\n /* PTA_LO_PRI_REQUESTED */ `The number of times a low-priority packet traffic arbitration request has been made.`,\n /* PTA_HI_PRI_REQUESTED */ `The number of times a high-priority packet traffic arbitration request has been made.`,\n /* PTA_LO_PRI_DENIED */ `The number of times a low-priority packet traffic arbitration request has been denied.`,\n /* PTA_HI_PRI_DENIED */ `The number of times a high-priority packet traffic arbitration request has been denied.`,\n /* PTA_LO_PRI_TX_ABORTED */ `The number of times a low-priority packet traffic arbitration transmission has been aborted.`,\n /* PTA_HI_PRI_TX_ABORTED */ `The number of times a high-priority packet traffic arbitration transmission has been aborted.`,\n /* ADDRESS_CONFLICT_SENT */ `The number of times an address conflict has caused node_id change, and an address conflict error is sent.`\n];\nconst $9a8cebc34540b0c1$export$132b1ecb83473329 = [\n /* TX_DATA */ `The total bytes of transmitted data within DATA frames. This can significantly vary if you have device types that transmit lots of data.`,\n /* TX_ALL_FRAMES */ `The total number of transmitted frames.`,\n /* TX_DATA_FRAMES */ `The number of transmitted DATA frames.`,\n /* TX_ACK_FRAMES */ `The number of transmitted ACK frames.`,\n /* TX_NAK_FRAMES */ `The number of transmitted NAK frames.`,\n /* TX_RE_DATA_FRAMES */ `The number of re-transmitted DATA frames.`,\n /* TX_N1_FRAMES */ `The number of transmitted frames flagged with 'not ready'.`,\n /* TX_CANCELLED */ `The number of cancelled transmitted frames.`,\n /* RX_DATA */ `The total bytes of received data within DATA frames. This can significantly vary if you have device types that transmit lots of data.`,\n /* RX_ALL_FRAMES */ `The total number of received frames.`,\n /* RX_DATA_FRAMES */ `The number of received DATA frames.`,\n /* RX_ACK_FRAMES */ `The number of received ACK frames.`,\n /* RX_NAK_FRAMES */ `The number of received NAK frames.`,\n /* RX_RE_DATA_FRAMES */ `The number of re-transmitted received DATA frames.`,\n /* RX_N1_FRAMES */ `The number of received frames flagged with 'not ready'.`,\n /* RX_CANCELLED */ `The number of cancelled received frames.`,\n /* RX_CRC_ERRORS */ `The number of received frames with CRC errors.`,\n /* RX_COMM_ERRORS */ `The number of received frames with communication errors.`,\n /* RX_TOO_SHORT */ `The number of received frames that were too short.`,\n /* RX_TOO_LONG */ `The number of received frames that were too long.`,\n /* RX_BAD_CONTROL */ `The number of received frames with illegal control byte.`,\n /* RX_BAD_LENGTH */ `The number of received frames with illegal length for type.`,\n /* RX_BAD_ACK_NUMBER */ `The number of received frames with bad ACK number.`,\n /* RX_NO_BUFFER */ `The number of DATA frames discarded due to lack of buffers.`,\n /* RX_DUPLICATES */ `The number of received duplicate re-transmitted DATA frames.`,\n /* RX_OUT_OF_SEQUENCE */ `The number of DATA frames received out of sequence.`,\n /* RX_ACK_TIMEOUTS */ `The number of received ACK timeouts.`\n];\nconst $9a8cebc34540b0c1$export$9db4cc0e61dac12 = {\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_NO_ROUTE_AVAILABLE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_TREE_LINK_FAILURE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_NON_TREE_LINK_FAILURE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_LOW_BATTERY_LEVEL]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_NO_ROUTING_CAPACITY]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_NO_INDIRECT_CAPACITY]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_PARENT_LINK_FAILURE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_VALIDATE_ROUTE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_SOURCE_ROUTE_FAILURE]: `Indicates a message sent from the device encountered a broken link. The device prior to the broken link generated the error message and return it to the device.`,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE]: `Indicates that a message sent to the device encountered a broken link. The device prior to the broken link generated the error message and forwarded it to the device via a randomly chosen neighbor.`,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_ADDRESS_CONFLICT]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_VERIFY_ADDRESSES]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).ROUTE_ERROR_PAN_IDENTIFIER_UPDATE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).NETWORK_STATUS_NETWORK_ADDRESS_UPDATE]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).NETWORK_STATUS_BAD_FRAME_COUNTER]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER]: ``,\n [(0, $0c547add3190c50c$export$128038c7eaec3edd).NETWORK_STATUS_UNKNOWN_COMMAND]: ``\n};\nconst $9a8cebc34540b0c1$export$28f5f2f1091db5f0 = [\n 203.6262,\n 14.1578,\n 226.4056,\n 205.8569,\n 2.0597,\n 0.0524,\n 0.008,\n 0.008,\n 167.3364,\n 163.6076,\n 0,\n 0.0038,\n (0, $0c547add3190c50c$export$b29cac463fcff685),\n 0,\n 0,\n 0.0263,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0.0393,\n 0,\n 0,\n 0,\n 0,\n 0.2279,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0.0102,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n];\nconst $9a8cebc34540b0c1$export$a91bc77486893ae8 = [\n 10878,\n 634,\n 154,\n 479,\n 0,\n 0,\n 0,\n 0,\n 4063,\n 480,\n 480,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n];\nconst $9a8cebc34540b0c1$export$78bd8f8c69d7a7b0 = 0.5;\nconst $9a8cebc34540b0c1$export$87d42d2c5a101eee = [\n [\n 5,\n 10,\n false\n ],\n [\n 5,\n 10,\n false\n ],\n [\n 5,\n 10,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 3,\n 5,\n false\n ],\n [\n 3,\n 5,\n false\n ],\n [\n 5,\n 10,\n false\n ],\n [\n 5,\n 10,\n false\n ],\n [\n 5,\n 10,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -2,\n -2,\n false\n ],\n [\n -2,\n -2,\n false\n ],\n [\n 1.3,\n 1.6,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 3,\n 6,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n 10,\n 20,\n false\n ],\n [\n 10,\n 20,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 10,\n 20,\n false\n ],\n [\n 10,\n 20,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n 10,\n 15,\n false\n ],\n [\n -2,\n -2,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -2,\n -2,\n false\n ]\n];\nconst $9a8cebc34540b0c1$export$973fb6872c2a8bcf = [\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n 0,\n 0,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ],\n [\n -1,\n -1,\n false\n ]\n];\n\n\nfunction $5be042668c706f09$export$1ad60231255d3d9a(value, ideal, badFactor, veryBadFactor = 0, higherBetter = false) {\n if (badFactor === -1 && veryBadFactor === -1) {\n if (value !== 0) return \"is-danger\";\n } else if (badFactor === -2 && veryBadFactor === -2) {\n if (value !== 0) return \"is-warning\";\n } else if (ideal !== 0 && badFactor !== 0) {\n if (veryBadFactor === 0) veryBadFactor = badFactor * 2;\n if (higherBetter ? value < ideal * veryBadFactor : value > ideal * veryBadFactor) return \"is-danger\";\n if (higherBetter ? value < ideal * badFactor : value > ideal * badFactor) return \"is-warning\";\n }\n return undefined;\n}\nfunction $5be042668c706f09$export$a511d684371cc9de(text, className = \"\") {\n const p = document.createElement(\"h3\");\n p.textContent = text;\n p.className = className;\n return p;\n}\nfunction $5be042668c706f09$export$a4e8ebef29d9bca5(text, className = \"\") {\n const p = document.createElement(\"p\");\n p.textContent = text;\n p.className = className;\n return p;\n}\nfunction $5be042668c706f09$export$15278ac1de423efe(text, className = \"\") {\n const a = document.createElement(\"a\");\n a.textContent = text;\n a.className = `button ${className}`;\n return a;\n}\nfunction $5be042668c706f09$export$61892979fbfca190(table) {\n const container = document.createElement(\"div\");\n container.className = \"table-container pb-2\";\n if (table) container.append(table);\n return container;\n}\nfunction $5be042668c706f09$export$d96816ff34d2479a(headCols, footCols, rows, sortable = false) {\n const table = document.createElement(\"table\");\n const tBody = document.createElement(\"tbody\");\n table.className = `table is-fullwidth is-narrow is-hoverable is-bordered ${sortable ? \"is-clickable\" : \"\"}`;\n if (headCols.length > 0) {\n const tHead = document.createElement(\"thead\");\n const tr = document.createElement(\"tr\");\n const cols = [];\n for (const headCol of headCols){\n const th = document.createElement(\"th\");\n th.innerHTML = headCol;\n tr.append(th);\n cols.push(th);\n }\n if (sortable) for (const [i, col] of cols.entries())col.addEventListener(\"click\", ()=>{\n $5be042668c706f09$export$a8f468ec3a62c6a1(tBody, i);\n });\n tHead.append(tr);\n table.append(tHead);\n }\n if (rows.length > 0) for (const row of rows){\n const tr = document.createElement(\"tr\");\n for (const cell of row){\n const td = document.createElement(\"td\");\n td.innerHTML = cell.content;\n if (cell.className) td.className = cell.className;\n tr.append(td);\n }\n tBody.append(tr);\n }\n table.append(tBody);\n if (footCols.length > 0) {\n const tFoot = document.createElement(\"tfoot\");\n const tr = document.createElement(\"tr\");\n for (const footCol of footCols){\n const th = document.createElement(\"th\");\n th.innerHTML = footCol;\n tr.append(th);\n }\n tFoot.append(tr);\n table.append(tFoot);\n }\n return table;\n}\nfunction $5be042668c706f09$export$8690041b1e066766(items) {\n const list = document.createElement(\"ul\");\n for (const item of items){\n const listItem = document.createElement(\"li\");\n listItem.innerHTML = item;\n list.append(listItem);\n }\n return list;\n}\nfunction $5be042668c706f09$export$d6954196905e525e(title, listItems) {\n const card = document.createElement(\"div\");\n card.className = \"card\";\n const cardHeader = document.createElement(\"header\");\n cardHeader.className = \"card-header\";\n const cardTitle = document.createElement(\"p\");\n cardTitle.className = \"card-header-title\";\n cardTitle.innerHTML = title;\n cardHeader.append(cardTitle);\n card.append(cardHeader);\n const cardContent = document.createElement(\"div\");\n cardContent.className = \"card-content\";\n const content = document.createElement(\"div\");\n content.className = \"content\";\n const list = $5be042668c706f09$export$8690041b1e066766(listItems);\n content.append(list);\n cardContent.append(content);\n card.append(cardContent);\n return card;\n}\nfunction $5be042668c706f09$export$80d602a56846f9b8(title, message, className = \"\") {\n const article = document.createElement(\"article\");\n article.className = `message ${className}`;\n const header = document.createElement(\"div\");\n header.className = \"message-header\";\n header.textContent = title;\n article.append(header);\n if (message !== \"\") {\n const body = document.createElement(\"div\");\n body.className = \"message-body\";\n body.innerHTML = message;\n article.append(body);\n }\n return article;\n}\nfunction $5be042668c706f09$export$a8f468ec3a62c6a1(tableBody, colIndex) {\n const rowsArray = [\n ...tableBody.rows\n ];\n let order = \"desc\";\n const tableSorting = tableBody.getAttribute(\"sorting\");\n if (tableSorting && tableSorting !== \"\") {\n const lastSorting = tableSorting.split(\".\");\n if (Number.parseInt(lastSorting[0], 10) === colIndex && lastSorting[1] === \"desc\") order = \"asc\";\n }\n const sortFn = order === \"desc\" ? (a, b)=>b.cells[colIndex].innerHTML.localeCompare(a.cells[colIndex].innerHTML, undefined, {\n numeric: true\n }) : (a, b)=>a.cells[colIndex].innerHTML.localeCompare(b.cells[colIndex].innerHTML, undefined, {\n numeric: true\n });\n rowsArray.sort(sortFn);\n tableBody.setAttribute(\"sorting\", `${colIndex}.${order}`);\n const tableHeadCols = tableBody.previousElementSibling?.children[0];\n if (tableHeadCols) for(let i = 0; i < tableHeadCols.children.length; i++)tableHeadCols.children[i].className = i === colIndex ? `is-sorted-${order}` : \"\";\n tableBody.append(...rowsArray);\n}\n\n\n\nclass $1351eccf802354f1$export$2b677cfa6519f8ab extends Error {\n constructor(message, title){\n // eslint-disable-next-line no-new\n new (0, $37ea9347e68a07dc$export$2e2bcd8739ae039)({\n status: \"error\",\n title: title,\n text: message\n });\n super(`${title}: ${message}`);\n }\n}\n\n\nconst $df5bef30413a053b$export$2077e0241d6afd3c = (n, precision = 2)=>{\n const factor = 10 ** precision;\n return Math.round(n * factor) / factor;\n};\nconst $df5bef30413a053b$export$7ea66e3774a60b67 = (input, padding = 4)=>{\n const padStr = \"0\".repeat(padding);\n return \"0x\" + (padStr + input.toString(16)).slice(-1 * padding).toUpperCase();\n};\n\n\n\n/** z2m default */ let $b4e14b6b8da86996$var$timestampFormat = \"YYYY-MM-DD HH:mm:ss\";\nlet $b4e14b6b8da86996$var$routers = 0;\nlet $b4e14b6b8da86996$var$endDevices = 0;\nlet $b4e14b6b8da86996$var$totalDevices = 0;\nlet $b4e14b6b8da86996$var$logFile;\nconst $b4e14b6b8da86996$var$logMetadata = {\n lines: 0,\n start: undefined,\n end: undefined,\n duration: 0,\n startOffset: undefined\n};\nconst $b4e14b6b8da86996$var$ncpCountersSum = [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n];\nconst $b4e14b6b8da86996$var$ncpCountersHoursCount = [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n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,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ],\n [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ]\n ]\n};\nconst $b4e14b6b8da86996$var$networkRouteErrors = {\n all: []\n};\nconst $b4e14b6b8da86996$var$failedPings = {\n all: []\n};\nfunction $b4e14b6b8da86996$var$initVariables() {\n $b4e14b6b8da86996$var$routers = 0;\n $b4e14b6b8da86996$var$endDevices = 0;\n $b4e14b6b8da86996$var$totalDevices = 0;\n // @ts-expect-error whatever\n $b4e14b6b8da86996$var$logFile = undefined;\n $b4e14b6b8da86996$var$logMetadata.lines = 0;\n $b4e14b6b8da86996$var$logMetadata.start = undefined;\n $b4e14b6b8da86996$var$logMetadata.end = undefined;\n $b4e14b6b8da86996$var$logMetadata.duration = 0;\n $b4e14b6b8da86996$var$logMetadata.startOffset = undefined;\n $b4e14b6b8da86996$var$ncpCountersSum.fill(0);\n $b4e14b6b8da86996$var$ncpCountersHoursCount.fill(0);\n $b4e14b6b8da86996$var$ncpCounters.all = [];\n $b4e14b6b8da86996$var$ncpCounters.avg.fill(0);\n $b4e14b6b8da86996$var$ncpCounters.avgPerDevice.fill(0);\n for(let i = 0; i < $b4e14b6b8da86996$var$ncpCounters.avgByHour.length; i++)$b4e14b6b8da86996$var$ncpCounters.avgByHour[i].fill(0);\n $b4e14b6b8da86996$var$ashCountersSum.fill(0);\n $b4e14b6b8da86996$var$ashCountersHoursCount.fill(0);\n $b4e14b6b8da86996$var$ashCounters.all = [];\n $b4e14b6b8da86996$var$ashCounters.avg.fill(0);\n $b4e14b6b8da86996$var$ashCounters.avgPerDevice.fill(0);\n for(let i = 0; i < $b4e14b6b8da86996$var$ashCounters.avgByHour.length; i++)$b4e14b6b8da86996$var$ashCounters.avgByHour[i].fill(0);\n $b4e14b6b8da86996$var$networkRouteErrors.all = [];\n}\n// Adapted @from https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/read#example_2_-_handling_text_line_by_line\nasync function* $b4e14b6b8da86996$var$makeTextFileLineIterator(file) {\n const utf8Decoder = new TextDecoder(\"utf8\");\n const reader = file.stream().getReader();\n let { value: value, done: done } = await reader.read();\n let chunk = value ? utf8Decoder.decode(value, {\n stream: true\n }) : \"\";\n const re = /\\r\\n|\\n|\\r/gm;\n let startIndex = 0;\n for(;;){\n const result = re.exec(chunk);\n if (!result) {\n if (done) break;\n const remainder = chunk.slice(startIndex);\n ({ value: value, done: done } = await reader.read());\n chunk = remainder + (value ? utf8Decoder.decode(value, {\n stream: true\n }) : \"\");\n // eslint-disable-next-line no-multi-assign\n startIndex = re.lastIndex = 0;\n continue;\n }\n yield chunk.slice(startIndex, result.index);\n startIndex = re.lastIndex;\n }\n if (startIndex < chunk.length) // last line didn't end in a newline char\n yield chunk.slice(startIndex);\n}\nfunction $b4e14b6b8da86996$var$parseLogLine(line) {\n const timestampMatch = line.match((0, $f9b620c609316de1$export$63c35f258aac6980));\n if (!timestampMatch) // shouldn't happen with new logging, but just in case, ignore lines without timestamp\n return;\n $b4e14b6b8da86996$var$logMetadata.lines++;\n const timestampStr = timestampMatch[0].slice(1, -1);\n const timestamp = new Date(timestampStr);\n if (!$b4e14b6b8da86996$var$logMetadata.start) {\n $b4e14b6b8da86996$var$logMetadata.start = timestamp;\n $b4e14b6b8da86996$var$logMetadata.startOffset = new Date(timestamp.getTime() + (0, $f9b620c609316de1$export$ec5a1f774e057f65));\n }\n $b4e14b6b8da86996$var$logMetadata.end = timestamp;\n const hour = timestamp.getHours();\n const ncpCountersIndex = line.indexOf((0, $f9b620c609316de1$export$303e55aba61750fd));\n if (ncpCountersIndex !== -1) {\n const subLine = line.slice(ncpCountersIndex + (0, $f9b620c609316de1$export$303e55aba61750fd).length);\n const counters = subLine.split(\",\").map((v)=>Number.parseInt(v, 10));\n if (counters.length !== (0, $f9b620c609316de1$export$2a174e0071931590)) return;\n // @ts-expect-error length validated above\n $b4e14b6b8da86996$var$ncpCounters.all.push([\n timestamp,\n ...counters\n ]);\n for(let i = 0; i < (0, $f9b620c609316de1$export$2a174e0071931590); i++){\n // TODO: deal with 65535 & rollover\n const cI = counters[i];\n $b4e14b6b8da86996$var$ncpCountersSum[i] += cI;\n $b4e14b6b8da86996$var$ncpCounters.avgByHour[hour][i] += cI;\n }\n $b4e14b6b8da86996$var$ncpCountersHoursCount[hour] += 1;\n return;\n }\n const ashCountersIndex = line.indexOf((0, $f9b620c609316de1$export$95beb742938a6341));\n if (ashCountersIndex !== -1) {\n const subLine = line.slice(ashCountersIndex + (0, $f9b620c609316de1$export$95beb742938a6341).length);\n const counters = subLine.split(\",\").map((v)=>Number.parseInt(v, 10));\n if (counters.length !== (0, $f9b620c609316de1$export$ceb082b2eaf405bd)) return;\n // @ts-expect-error length validated above\n $b4e14b6b8da86996$var$ashCounters.all.push([\n timestamp,\n ...counters\n ]);\n for(let i = 0; i < (0, $f9b620c609316de1$export$ceb082b2eaf405bd); i++){\n const cI = counters[i];\n $b4e14b6b8da86996$var$ashCountersSum[i] += cI;\n $b4e14b6b8da86996$var$ashCounters.avgByHour[hour][i] += cI;\n }\n $b4e14b6b8da86996$var$ashCountersHoursCount[hour] += 1;\n return;\n }\n const networkRouteErrorIndex = line.indexOf((0, $f9b620c609316de1$export$bc2704b0770a3200));\n if (networkRouteErrorIndex !== -1) {\n // ignore network/route errors around Z2M start\n if (timestamp < $b4e14b6b8da86996$var$logMetadata.startOffset) return;\n const subLine = line.slice(networkRouteErrorIndex + (0, $f9b620c609316de1$export$bc2704b0770a3200).length);\n const splitLine = subLine.split(\" \"); // ['ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE', 'for', '\"38837\".']\n const error = splitLine[0];\n const device = Number.parseInt(splitLine[2].slice(1, -2), 10);\n if ($b4e14b6b8da86996$var$networkRouteErrors.all.length > 0) {\n const prev = $b4e14b6b8da86996$var$networkRouteErrors.all.at(-1);\n if (prev) {\n const countOffset = prev[0].getTime() + (0, $f9b620c609316de1$export$46dcdfd2c95be77f);\n // count duplicate errors within short period instead\n if (prev[1] === device && prev[2] === error && timestamp.getTime() < countOffset) {\n prev[3] += 1;\n return;\n }\n }\n }\n $b4e14b6b8da86996$var$networkRouteErrors.all.push([\n timestamp,\n device,\n error,\n 1\n ]);\n return;\n }\n const failedPingIndex = line.indexOf((0, $f9b620c609316de1$export$13864d84dc34e37e));\n if (failedPingIndex !== -1) {\n const subLine = line.slice(failedPingIndex + (0, $f9b620c609316de1$export$13864d84dc34e37e).length);\n // only count if all attempts failed\n if (subLine.includes((0, $f9b620c609316de1$export$ccaab5dc19e79900)) || subLine.includes((0, $f9b620c609316de1$export$a50f877c97ee07a))) {\n const device = subLine.slice(0, subLine.indexOf(`'`));\n $b4e14b6b8da86996$var$failedPings.all.push([\n timestamp,\n device\n ]);\n }\n // return;\n }\n}\nasync function $b4e14b6b8da86996$var$parseLogFile() {\n if (!$b4e14b6b8da86996$var$logFile) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Load a log file from the menu first.\", \"No log file\");\n for await (const line of $b4e14b6b8da86996$var$makeTextFileLineIterator($b4e14b6b8da86996$var$logFile))$b4e14b6b8da86996$var$parseLogLine(line);\n if (!$b4e14b6b8da86996$var$logMetadata.start || !$b4e14b6b8da86996$var$logMetadata.end) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Could not retrieve start or end timestamps from log file.\", \"Invalid start or end timestamp\");\n $b4e14b6b8da86996$var$logMetadata.duration = ($b4e14b6b8da86996$var$logMetadata.end.getTime() - $b4e14b6b8da86996$var$logMetadata.start.getTime()) / 1000 / 3600;\n if ($b4e14b6b8da86996$var$logMetadata.duration < (0, $f9b620c609316de1$export$617c68ca378c1aaa)) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Log analysis over such a duration would be irrelevant.\", \"Log duration too short\");\n const ncpCountersCount = $b4e14b6b8da86996$var$ncpCounters.all.length;\n if (ncpCountersCount > 0) {\n let i = 0;\n for (const c of $b4e14b6b8da86996$var$ncpCountersSum){\n const avg = c / ncpCountersCount;\n $b4e14b6b8da86996$var$ncpCounters.avg[i] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)(avg, 2);\n $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[i] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)(avg / $b4e14b6b8da86996$var$totalDevices, 4);\n i++;\n }\n // divide the computed sum to get actual average\n for(let hour = 0; hour < $b4e14b6b8da86996$var$ncpCounters.avgByHour.length; hour++)for(let counter = 0; counter < (0, $f9b620c609316de1$export$2a174e0071931590); counter++)$b4e14b6b8da86996$var$ncpCounters.avgByHour[hour][counter] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)($b4e14b6b8da86996$var$ncpCounters.avgByHour[hour][counter] / $b4e14b6b8da86996$var$ncpCountersHoursCount[hour], 2);\n }\n const ashCountersCount = $b4e14b6b8da86996$var$ashCounters.all.length;\n if (ashCountersCount > 0) {\n let i = 0;\n for (const c of $b4e14b6b8da86996$var$ashCountersSum){\n const avg = c / ashCountersCount;\n $b4e14b6b8da86996$var$ashCounters.avg[i] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)(avg, 2);\n $b4e14b6b8da86996$var$ashCounters.avgPerDevice[i] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)(avg / $b4e14b6b8da86996$var$totalDevices, 4);\n i++;\n }\n // divide the computed sum to get actual average\n for(let hour = 0; hour < $b4e14b6b8da86996$var$ashCounters.avgByHour.length; hour++)for(let counter = 0; counter < (0, $f9b620c609316de1$export$2a174e0071931590); counter++)$b4e14b6b8da86996$var$ashCounters.avgByHour[hour][counter] = (0, $df5bef30413a053b$export$2077e0241d6afd3c)($b4e14b6b8da86996$var$ashCounters.avgByHour[hour][counter] / $b4e14b6b8da86996$var$ashCountersHoursCount[hour], 2);\n }\n}\nfunction $b4e14b6b8da86996$var$appendStatsSection(section) {\n const grid = document.createElement(\"div\");\n grid.className = \"grid\";\n const ratio = $b4e14b6b8da86996$var$endDevices > 0 ? (0, $df5bef30413a053b$export$2077e0241d6afd3c)($b4e14b6b8da86996$var$routers / $b4e14b6b8da86996$var$endDevices, 2) : -1;\n const parametersList = [\n `Number of routers: ${$b4e14b6b8da86996$var$routers}`,\n `Number of end devices: ${$b4e14b6b8da86996$var$endDevices}`\n ];\n if (ratio !== -1) {\n parametersList.push(`Routers to end devices ratio: ${ratio} (Ideal: above ${(0, $9a8cebc34540b0c1$export$78bd8f8c69d7a7b0)})`);\n const warningRatio = $b4e14b6b8da86996$var$totalDevices > 10 && ratio < (0, $9a8cebc34540b0c1$export$78bd8f8c69d7a7b0);\n if (warningRatio) parametersList.push(`\\u26A0 You may want to increase the number of routers in your network`);\n }\n const parametersCard = (0, $5be042668c706f09$export$d6954196905e525e)(\"Parameters\", parametersList);\n const warningDuration = $b4e14b6b8da86996$var$logMetadata.duration < (0, $f9b620c609316de1$export$2301180df9108edd);\n const logFileCard = (0, $5be042668c706f09$export$d6954196905e525e)(\"Log file\", [\n `Lines: ${$b4e14b6b8da86996$var$logMetadata.lines}`,\n `Start: ${(0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))($b4e14b6b8da86996$var$logMetadata.start).format($b4e14b6b8da86996$var$timestampFormat)}`,\n `End: ${(0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))($b4e14b6b8da86996$var$logMetadata.end).format($b4e14b6b8da86996$var$timestampFormat)}`,\n `Ignore before (avoid starting \"noise\"): ${(0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))($b4e14b6b8da86996$var$logMetadata.startOffset).format($b4e14b6b8da86996$var$timestampFormat)}`,\n `Duration: ${(0, $df5bef30413a053b$export$2077e0241d6afd3c)($b4e14b6b8da86996$var$logMetadata.duration, 2)} hours ${warningDuration ? '\\u26A0 This is likely too low to get relevant statistics' : \"\"}`,\n `NCP Counters: ${$b4e14b6b8da86996$var$ncpCounters.all.length}`,\n `ASH Counters: ${$b4e14b6b8da86996$var$ashCounters.all.length}`,\n `Network/Router Errors: ${$b4e14b6b8da86996$var$networkRouteErrors.all.length}`,\n `Failed pings (all successive attempts): ${$b4e14b6b8da86996$var$failedPings.all.length}`\n ]);\n grid.append(parametersCard);\n grid.append(logFileCard);\n section.append(grid);\n const failedPingsByDevice = {};\n for (const entry of $b4e14b6b8da86996$var$failedPings.all){\n const device = entry[1];\n failedPingsByDevice[device] = 1 + (failedPingsByDevice[device] ?? 0);\n }\n for (const device of Object.keys(failedPingsByDevice)){\n const count = failedPingsByDevice[device];\n // show only if at least one fail per hour\n if (count > $b4e14b6b8da86996$var$logMetadata.duration) section.append((0, $5be042668c706f09$export$80d602a56846f9b8)(`Too many failed pings for '${device}' (x${count})`, \"This indicates an unreachable device on the network. If unavailable for long periods, consider disabling it to skip unnecessary network traffic.\", \"is-warning\"));\n }\n}\nfunction $b4e14b6b8da86996$var$appendNCPCountersSection(section) {\n if ($b4e14b6b8da86996$var$ncpCounters.all.length === 0) return;\n const ncpCountersHeader = [\n \"Timestamp\"\n ];\n const ncpCountersRows = [];\n const ncpCountersIdealRows = [];\n const ncpCountersAvgPerDeviceRows = [];\n const ncpCountersAvgRows = [];\n const ncpCountersAvgForHourRows = [\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n []\n ];\n for(let i = 0; i < (0, $f9b620c609316de1$export$2a174e0071931590); i++){\n ncpCountersHeader.push(`${(0, $0c547add3190c50c$export$7d1f329b3260ae16)[i]}`);\n const counter = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[i];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[i];\n ncpCountersIdealRows.push({\n content: ideal.toString(),\n className: \"is-dark\"\n });\n ncpCountersAvgPerDeviceRows.push({\n content: counter.toString(),\n className: (0, $f9b620c609316de1$export$452af6364556dde).includes(i) ? \"is-invisible\" : (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[i])\n });\n ncpCountersAvgRows.push({\n content: $b4e14b6b8da86996$var$ncpCounters.avg[i].toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[i])\n });\n for(let hour = 0; hour < $b4e14b6b8da86996$var$ncpCounters.avgByHour.length; hour++)ncpCountersAvgForHourRows[hour].push({\n content: $b4e14b6b8da86996$var$ncpCounters.avgByHour[hour][i].toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)($b4e14b6b8da86996$var$ncpCounters.avgByHour[hour][i], ideal * $b4e14b6b8da86996$var$totalDevices, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[i])\n });\n }\n const tableContainerAvg = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"\",\n ...ncpCountersHeader.slice(1)\n ], [], [\n [\n {\n content: \"Ideal Per Device\"\n },\n ...ncpCountersIdealRows\n ],\n [\n {\n content: \"Average Per Device\"\n },\n ...ncpCountersAvgPerDeviceRows\n ],\n [\n {\n content: \"Average\"\n },\n ...ncpCountersAvgRows\n ]\n ]));\n const tableContainerAvgForHour = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"Average Hour Before\",\n ...ncpCountersHeader.slice(1)\n ], [], [\n [\n {\n content: \"00 (12AM)\"\n },\n ...ncpCountersAvgForHourRows[0]\n ],\n [\n {\n content: \"01 (01AM)\"\n },\n ...ncpCountersAvgForHourRows[1]\n ],\n [\n {\n content: \"02 (02AM)\"\n },\n ...ncpCountersAvgForHourRows[2]\n ],\n [\n {\n content: \"03 (03AM)\"\n },\n ...ncpCountersAvgForHourRows[3]\n ],\n [\n {\n content: \"04 (04AM)\"\n },\n ...ncpCountersAvgForHourRows[4]\n ],\n [\n {\n content: \"05 (05AM)\"\n },\n ...ncpCountersAvgForHourRows[5]\n ],\n [\n {\n content: \"06 (06AM)\"\n },\n ...ncpCountersAvgForHourRows[6]\n ],\n [\n {\n content: \"07 (07AM)\"\n },\n ...ncpCountersAvgForHourRows[7]\n ],\n [\n {\n content: \"08 (08AM)\"\n },\n ...ncpCountersAvgForHourRows[8]\n ],\n [\n {\n content: \"09 (09AM)\"\n },\n ...ncpCountersAvgForHourRows[9]\n ],\n [\n {\n content: \"10 (10AM)\"\n },\n ...ncpCountersAvgForHourRows[10]\n ],\n [\n {\n content: \"11 (11AM)\"\n },\n ...ncpCountersAvgForHourRows[11]\n ],\n [\n {\n content: \"12 (12PM)\"\n },\n ...ncpCountersAvgForHourRows[12]\n ],\n [\n {\n content: \"13 (01PM)\"\n },\n ...ncpCountersAvgForHourRows[13]\n ],\n [\n {\n content: \"14 (02PM)\"\n },\n ...ncpCountersAvgForHourRows[14]\n ],\n [\n {\n content: \"15 (03PM)\"\n },\n ...ncpCountersAvgForHourRows[15]\n ],\n [\n {\n content: \"16 (04PM)\"\n },\n ...ncpCountersAvgForHourRows[16]\n ],\n [\n {\n content: \"17 (05PM)\"\n },\n ...ncpCountersAvgForHourRows[17]\n ],\n [\n {\n content: \"18 (06PM)\"\n },\n ...ncpCountersAvgForHourRows[18]\n ],\n [\n {\n content: \"19 (07PM)\"\n },\n ...ncpCountersAvgForHourRows[19]\n ],\n [\n {\n content: \"20 (08PM)\"\n },\n ...ncpCountersAvgForHourRows[20]\n ],\n [\n {\n content: \"21 (09PM)\"\n },\n ...ncpCountersAvgForHourRows[21]\n ],\n [\n {\n content: \"22 (10PM)\"\n },\n ...ncpCountersAvgForHourRows[22]\n ],\n [\n {\n content: \"23 (11PM)\"\n },\n ...ncpCountersAvgForHourRows[23]\n ]\n ], true));\n for (const entry of $b4e14b6b8da86996$var$ncpCounters.all){\n const row = [\n {\n content: (0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))(entry[0]).format($b4e14b6b8da86996$var$timestampFormat)\n }\n ];\n for(let i = 0; i < (0, $f9b620c609316de1$export$2a174e0071931590); i++){\n const counter = entry[i + 1];\n row.push({\n content: counter.toString(),\n // @ts-expect-error Date is skipped in code, TS not narrowing\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter / $b4e14b6b8da86996$var$totalDevices, (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[i], ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[i])\n });\n }\n ncpCountersRows.push(row);\n }\n {\n const ashErrors = $b4e14b6b8da86996$var$ncpCountersSum[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_OVERFLOW_ERROR] + $b4e14b6b8da86996$var$ncpCountersSum[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_FRAMING_ERROR] + $b4e14b6b8da86996$var$ncpCountersSum[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_OVERRUN_ERROR] + $b4e14b6b8da86996$var$ncpCountersSum[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ASH_XOFF];\n if (ashErrors !== 0) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`ASH errors detected (${ashErrors} times)`, \"This can indicate a bad connection with the adapter or an issue with the driver installed in the operating system.\", \"is-danger\");\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[(0, $0c547add3190c50c$export$7d1f329b3260ae16).PHY_CCA_FAIL_COUNT];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).PHY_CCA_FAIL_COUNT];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).PHY_CCA_FAIL_COUNT]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`CCA failure count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate interferences on the 2.4GHz band on or around the current channel (WiFi, other Zigbee...).\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ROUTE_DISCOVERY_INITIATED];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ROUTE_DISCOVERY_INITIATED];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ROUTE_DISCOVERY_INITIATED]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Initiated route discovery count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate general instability in the network (unresponsive devices, bad routers...).\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[(0, $0c547add3190c50c$export$7d1f329b3260ae16).MAC_TX_UNICAST_RETRY];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).MAC_TX_UNICAST_RETRY];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).MAC_TX_UNICAST_RETRY]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Packet retry count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate general instability in your network (unresponsive devices, bad routers...).\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ADDRESS_CONFLICT_SENT];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ADDRESS_CONFLICT_SENT];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).ADDRESS_CONFLICT_SENT]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Address conflicts detected (${val} vs ${ideal} \"ideal\")`, \"This can indicate device(s) with poor firmware.\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avgPerDevice[(0, $0c547add3190c50c$export$7d1f329b3260ae16).BROADCAST_TABLE_FULL];\n const ideal = (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).BROADCAST_TABLE_FULL];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).BROADCAST_TABLE_FULL]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Broadcast table full detected (${val} vs ${ideal} \"ideal\")`, \"This can indicate the network is relying too heavily on broadcasts (messages to the whole network or to groups).\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ncpCounters.avg[(0, $0c547add3190c50c$export$7d1f329b3260ae16).NEIGHBOR_STALE];\n const ideal = 1;\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$87d42d2c5a101eee)[(0, $0c547add3190c50c$export$7d1f329b3260ae16).NEIGHBOR_STALE]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Stale neighbors count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate poor link quality between devices. Note: This is influenced by pairing/re-pairing.\", cls);\n section.append(msg);\n }\n }\n section.append(tableContainerAvg);\n section.append(tableContainerAvgForHour);\n const showAllButton = (0, $5be042668c706f09$export$15278ac1de423efe)(\"Show All\", \"is-primary\");\n showAllButton.addEventListener(\"click\", ()=>{\n showAllButton.remove();\n const tableContainerAll = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)(ncpCountersHeader, [], ncpCountersRows, true));\n section.append(tableContainerAll);\n });\n section.append(showAllButton);\n}\nfunction $b4e14b6b8da86996$var$appendASHCountersSection(section) {\n if ($b4e14b6b8da86996$var$ashCounters.all.length === 0) return;\n const ashCountersHeader = [\n \"Timestamp\"\n ];\n const ashCountersRows = [];\n const ashCountersIdealRows = [];\n const ashCountersAvgPerDeviceRows = [];\n const ashCountersAvgRows = [];\n const ashCountersAvgForHourRows = [\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n [],\n []\n ];\n for(let i = 0; i < (0, $f9b620c609316de1$export$ceb082b2eaf405bd); i++){\n ashCountersHeader.push(`${(0, $0c547add3190c50c$export$ce7ab19ae6dc792d)[i]}`);\n const counter = $b4e14b6b8da86996$var$ashCounters.avgPerDevice[i];\n const ideal = (0, $9a8cebc34540b0c1$export$a91bc77486893ae8)[i];\n ashCountersIdealRows.push({\n content: ideal.toString(),\n className: \"is-dark\"\n });\n ashCountersAvgPerDeviceRows.push({\n content: counter.toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter, ideal, ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[i])\n });\n ashCountersAvgRows.push({\n content: $b4e14b6b8da86996$var$ashCounters.avg[i].toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter, ideal, ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[i])\n });\n for(let hour = 0; hour < $b4e14b6b8da86996$var$ashCounters.avgByHour.length; hour++)ashCountersAvgForHourRows[hour].push({\n content: $b4e14b6b8da86996$var$ashCounters.avgByHour[hour][i].toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)($b4e14b6b8da86996$var$ashCounters.avgByHour[hour][i], ideal * $b4e14b6b8da86996$var$totalDevices, ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[i])\n });\n }\n const tableContainerAvg = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"\",\n ...ashCountersHeader.slice(1)\n ], [], [\n [\n {\n content: \"Ideal Per Device\"\n },\n ...ashCountersIdealRows\n ],\n [\n {\n content: \"Average Per Device\"\n },\n ...ashCountersAvgPerDeviceRows\n ],\n [\n {\n content: \"Average\"\n },\n ...ashCountersAvgRows\n ]\n ]));\n const tableContainerAvgForHour = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"Average Hour Before\",\n ...ashCountersHeader.slice(1)\n ], [], [\n [\n {\n content: \"00 (12AM)\"\n },\n ...ashCountersAvgForHourRows[0]\n ],\n [\n {\n content: \"01 (01AM)\"\n },\n ...ashCountersAvgForHourRows[1]\n ],\n [\n {\n content: \"02 (02AM)\"\n },\n ...ashCountersAvgForHourRows[2]\n ],\n [\n {\n content: \"03 (03AM)\"\n },\n ...ashCountersAvgForHourRows[3]\n ],\n [\n {\n content: \"04 (04AM)\"\n },\n ...ashCountersAvgForHourRows[4]\n ],\n [\n {\n content: \"05 (05AM)\"\n },\n ...ashCountersAvgForHourRows[5]\n ],\n [\n {\n content: \"06 (06AM)\"\n },\n ...ashCountersAvgForHourRows[6]\n ],\n [\n {\n content: \"07 (07AM)\"\n },\n ...ashCountersAvgForHourRows[7]\n ],\n [\n {\n content: \"08 (08AM)\"\n },\n ...ashCountersAvgForHourRows[8]\n ],\n [\n {\n content: \"09 (09AM)\"\n },\n ...ashCountersAvgForHourRows[9]\n ],\n [\n {\n content: \"10 (10AM)\"\n },\n ...ashCountersAvgForHourRows[10]\n ],\n [\n {\n content: \"11 (11AM)\"\n },\n ...ashCountersAvgForHourRows[11]\n ],\n [\n {\n content: \"12 (12PM)\"\n },\n ...ashCountersAvgForHourRows[12]\n ],\n [\n {\n content: \"13 (01PM)\"\n },\n ...ashCountersAvgForHourRows[13]\n ],\n [\n {\n content: \"14 (02PM)\"\n },\n ...ashCountersAvgForHourRows[14]\n ],\n [\n {\n content: \"15 (03PM)\"\n },\n ...ashCountersAvgForHourRows[15]\n ],\n [\n {\n content: \"16 (04PM)\"\n },\n ...ashCountersAvgForHourRows[16]\n ],\n [\n {\n content: \"17 (05PM)\"\n },\n ...ashCountersAvgForHourRows[17]\n ],\n [\n {\n content: \"18 (06PM)\"\n },\n ...ashCountersAvgForHourRows[18]\n ],\n [\n {\n content: \"19 (07PM)\"\n },\n ...ashCountersAvgForHourRows[19]\n ],\n [\n {\n content: \"20 (08PM)\"\n },\n ...ashCountersAvgForHourRows[20]\n ],\n [\n {\n content: \"21 (09PM)\"\n },\n ...ashCountersAvgForHourRows[21]\n ],\n [\n {\n content: \"22 (10PM)\"\n },\n ...ashCountersAvgForHourRows[22]\n ],\n [\n {\n content: \"23 (11PM)\"\n },\n ...ashCountersAvgForHourRows[23]\n ]\n ], true));\n for (const entry of $b4e14b6b8da86996$var$ashCounters.all){\n const row = [\n {\n content: (0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))(entry[0]).format($b4e14b6b8da86996$var$timestampFormat)\n }\n ];\n for(let i = 0; i < (0, $f9b620c609316de1$export$ceb082b2eaf405bd); i++){\n const counter = entry[i + 1];\n row.push({\n content: counter.toString(),\n // @ts-expect-error Date is skipped in code, TS not narrowing\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(counter / $b4e14b6b8da86996$var$totalDevices, (0, $9a8cebc34540b0c1$export$a91bc77486893ae8)[i], ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[i])\n });\n }\n ashCountersRows.push(row);\n }\n {\n const val = $b4e14b6b8da86996$var$ashCounters.avgPerDevice[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).TX_N1_FRAMES];\n const ideal = (0, $9a8cebc34540b0c1$export$a91bc77486893ae8)[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).TX_N1_FRAMES];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).TX_N1_FRAMES]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`\"Not ready\" transaction count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate heavy spamming from devices. Zigbee2MQTT was forced to regulate the flow.\", cls);\n section.append(msg);\n }\n }\n {\n const val = $b4e14b6b8da86996$var$ashCounters.avgPerDevice[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_NO_BUFFER];\n const ideal = (0, $9a8cebc34540b0c1$export$a91bc77486893ae8)[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_NO_BUFFER];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(val, ideal, ...(0, $9a8cebc34540b0c1$export$973fb6872c2a8bcf)[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_NO_BUFFER]);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Out of buffer count is high (${val} vs ${ideal} \"ideal\")`, \"This can indicate heavy spamming from devices. Zigbee2MQTT was forced to drop messages.\", cls);\n section.append(msg);\n }\n }\n {\n const rxBad = $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_CRC_ERRORS] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_COMM_ERRORS] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_TOO_SHORT] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_TOO_LONG] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_BAD_CONTROL] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_BAD_LENGTH] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_BAD_ACK_NUMBER] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_OUT_OF_SEQUENCE] + $b4e14b6b8da86996$var$ashCounters.avg[(0, $0c547add3190c50c$export$ce7ab19ae6dc792d).RX_ACK_TIMEOUTS];\n const cls = (0, $5be042668c706f09$export$1ad60231255d3d9a)(rxBad, 1, 5, 10, false);\n if (cls) {\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`Error count with received messages is high (${rxBad} times)`, \"This can indicate general instability (adapter/network).\", cls);\n section.append(msg);\n }\n }\n section.append(tableContainerAvg);\n section.append(tableContainerAvgForHour);\n const showAllButton = (0, $5be042668c706f09$export$15278ac1de423efe)(\"Show All\", \"is-primary\");\n showAllButton.addEventListener(\"click\", ()=>{\n showAllButton.remove();\n const tableContainerAll = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)(ashCountersHeader, [], ashCountersRows, true));\n section.append(tableContainerAll);\n });\n section.append(showAllButton);\n}\nfunction $b4e14b6b8da86996$var$appendRoutingSection(section) {\n if ($b4e14b6b8da86996$var$networkRouteErrors.all.length === 0) return;\n const rows = [];\n const errorsByDevice = {};\n for (const entry of $b4e14b6b8da86996$var$networkRouteErrors.all){\n const device = entry[1];\n const error = entry[2];\n const count = entry[3];\n if (errorsByDevice[error] === undefined) errorsByDevice[error] = {};\n errorsByDevice[error][device] = errorsByDevice[error][device] === undefined ? count : errorsByDevice[error][device] + count;\n if (count > 2) rows.push([\n {\n content: (0, (/*@__PURE__*/$parcel$interopDefault($45fvw)))(entry[0]).format($b4e14b6b8da86996$var$timestampFormat)\n },\n {\n content: `${device} / ${(0, $df5bef30413a053b$export$7ea66e3774a60b67)(device)}`\n },\n {\n content: error\n },\n {\n content: count.toString()\n }\n ]);\n }\n const tableContainer = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n 'Timestamp',\n \"Device / Hex\",\n \"Error\",\n 'Count'\n ], [], rows, true));\n // eslint-disable-next-line guard-for-in\n for(const error in errorsByDevice){\n const rowsByError = [];\n // eslint-disable-next-line guard-for-in\n for(const k in errorsByDevice[error]){\n const deviceAvgPerHour = (0, $df5bef30413a053b$export$2077e0241d6afd3c)(errorsByDevice[error][k] / $b4e14b6b8da86996$var$logMetadata.duration, 4);\n // only display msg for device if average per hour is high\n if (deviceAvgPerHour > 0.1) rowsByError.push([\n {\n content: `${k} / ${(0, $df5bef30413a053b$export$7ea66e3774a60b67)(Number.parseInt(k, 10))}`\n },\n {\n content: deviceAvgPerHour.toString(),\n className: (0, $5be042668c706f09$export$1ad60231255d3d9a)(deviceAvgPerHour, 0.1, 10, 20)\n }\n ]);\n }\n if (rowsByError.length > 0) {\n const tableContainer = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"Device / Hex\",\n \"Errors per hour\"\n ], [], rowsByError, true));\n const notice = (0, $9a8cebc34540b0c1$export$9db4cc0e61dac12)[(0, $0c547add3190c50c$export$128038c7eaec3edd)[error]];\n const msg = (0, $5be042668c706f09$export$80d602a56846f9b8)(`${error}`, notice === \"\" ? `` : `

${notice}

`, \"is-warning is-table-header\");\n section.append(msg);\n section.append(tableContainer);\n }\n }\n section.append((0, $5be042668c706f09$export$80d602a56846f9b8)(`Errors appearing at least 3 times in succession`, ``, \"is-danger is-table-header\"));\n section.append(tableContainer);\n}\nwindow.addEventListener(\"load\", ()=>{\n $b4e14b6b8da86996$var$initVariables();\n const $loadForm = document.querySelector(\"#log-file-form\");\n const $heroBody = document.querySelector(\"#hero-body\");\n const $menuHomeLink = document.querySelector(\"#menu-home\");\n const $sectionHome = document.querySelector(\"#section-home\");\n const $menuStatsLink = document.querySelector(\"#menu-stats\");\n const $sectionStats = document.querySelector(\"#section-stats\");\n const $menuNcpCountersLink = document.querySelector(\"#menu-ncp-counters\");\n const $sectionNcpCounters = document.querySelector(\"#section-ncp-counters\");\n const $menuAshCountersLink = document.querySelector(\"#menu-ash-counters\");\n const $sectionAshCounters = document.querySelector(\"#section-ash-counters\");\n const $menuRoutingLink = document.querySelector(\"#menu-routing\");\n const $sectionRouting = document.querySelector(\"#section-routing\");\n const $menuToolsLink = document.querySelector(\"#menu-tools\");\n const $sectionTools = document.querySelector(\"#section-tools\");\n const $menuHelpLink = document.querySelector(\"#menu-help\");\n const $sectionHelp = document.querySelector(\"#section-help\");\n const menu = [\n [\n $menuHomeLink,\n $sectionHome\n ],\n [\n $menuStatsLink,\n $sectionStats\n ],\n [\n $menuNcpCountersLink,\n $sectionNcpCounters\n ],\n [\n $menuAshCountersLink,\n $sectionAshCounters\n ],\n [\n $menuRoutingLink,\n $sectionRouting\n ],\n [\n $menuToolsLink,\n $sectionTools\n ],\n [\n $menuHelpLink,\n $sectionHelp\n ]\n ];\n for (const [$link, $section] of menu)$link.addEventListener(\"click\", ()=>{\n // li\n $link.parentElement.className = \"is-active\";\n $section.className = \"section\";\n for (const [$otherLink, $otherSection] of menu.filter((m)=>m[0] !== $link)){\n $otherLink.parentElement.className = \"\";\n $otherSection.className = \"section is-hidden\";\n }\n });\n $loadForm.addEventListener(\"submit\", async (event)=>{\n event.preventDefault();\n $b4e14b6b8da86996$var$initVariables();\n const data = new FormData($loadForm);\n $b4e14b6b8da86996$var$timestampFormat = data.get(\"timestamp-format\");\n $b4e14b6b8da86996$var$routers = Number.parseInt(data.get(\"number-routers\"), 10);\n if (Number.isNaN($b4e14b6b8da86996$var$routers) || $b4e14b6b8da86996$var$routers < 0) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Number of routers must be at least 0.\", \"Invalid number of routers\");\n $b4e14b6b8da86996$var$endDevices = Number.parseInt(data.get(\"number-devices\"), 10);\n if (Number.isNaN($b4e14b6b8da86996$var$endDevices) || $b4e14b6b8da86996$var$endDevices < 0) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Number of end devices must be at least 0.\", \"Invalid number of end devices\");\n $b4e14b6b8da86996$var$totalDevices = $b4e14b6b8da86996$var$routers + $b4e14b6b8da86996$var$endDevices;\n if (Number.isNaN($b4e14b6b8da86996$var$totalDevices) || $b4e14b6b8da86996$var$totalDevices <= 0) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Total number of devices must be at least 1.\", \"Invalid total number of devices\");\n $b4e14b6b8da86996$var$logFile = data.get(\"log-file\");\n await $b4e14b6b8da86996$var$parseLogFile();\n $b4e14b6b8da86996$var$appendStatsSection($sectionStats);\n $b4e14b6b8da86996$var$appendNCPCountersSection($sectionNcpCounters);\n $b4e14b6b8da86996$var$appendASHCountersSection($sectionAshCounters);\n $b4e14b6b8da86996$var$appendRoutingSection($sectionRouting);\n $heroBody.className = \"is-hidden\";\n $menuStatsLink.click();\n });\n $menuHomeLink.addEventListener(\"click\", async ()=>{});\n $menuStatsLink.addEventListener(\"click\", async ()=>{\n if (!$b4e14b6b8da86996$var$logFile) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Load a log file from the menu first.\", \"No log file\");\n });\n $menuNcpCountersLink.addEventListener(\"click\", async ()=>{\n if (!$b4e14b6b8da86996$var$logFile) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Load a log file from the menu first.\", \"No log file\");\n if ($b4e14b6b8da86996$var$ncpCounters.all.length === 0) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"No NCP counters were found in the given log file.\", \"No NCP counters found\");\n });\n $menuAshCountersLink.addEventListener(\"click\", async ()=>{\n if (!$b4e14b6b8da86996$var$logFile) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Load a log file from the menu first.\", \"No log file\");\n if ($b4e14b6b8da86996$var$ashCounters.all.length === 0) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"No ASH counters were found in the given log file.\", \"No ASH counters found\");\n });\n $menuRoutingLink.addEventListener(\"click\", async ()=>{\n if (!$b4e14b6b8da86996$var$logFile) throw new (0, $1351eccf802354f1$export$2b677cfa6519f8ab)(\"Load a log file from the menu first.\", \"No log file\");\n if ($b4e14b6b8da86996$var$networkRouteErrors.all.length === 0) // eslint-disable-next-line no-new\n new (0, $37ea9347e68a07dc$export$2e2bcd8739ae039)({\n status: \"success\",\n title: \"No network/route error found\",\n text: `No network/router error was found in the given log file.`\n });\n });\n $menuToolsLink.addEventListener(\"click\", async ()=>{});\n // add dynamic part of the help section\n {\n const ncpCountersRows = [];\n for(let i = 0; i < (0, $f9b620c609316de1$export$2a174e0071931590); i++)ncpCountersRows.push([\n {\n content: (0, $0c547add3190c50c$export$7d1f329b3260ae16)[i]\n },\n {\n content: (0, $9a8cebc34540b0c1$export$28f5f2f1091db5f0)[i].toString()\n },\n {\n content: (0, $9a8cebc34540b0c1$export$230faf97f16ca50f)[i]\n }\n ]);\n const ncpCountersTable = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"NCP Counter\",\n \"Ideal (Per Device)\",\n \"Note\"\n ], [], ncpCountersRows));\n const ashCountersRows = [];\n for(let i = 0; i < (0, $f9b620c609316de1$export$ceb082b2eaf405bd); i++)ashCountersRows.push([\n {\n content: (0, $0c547add3190c50c$export$ce7ab19ae6dc792d)[i]\n },\n {\n content: (0, $9a8cebc34540b0c1$export$a91bc77486893ae8)[i].toString()\n },\n {\n content: (0, $9a8cebc34540b0c1$export$132b1ecb83473329)[i]\n }\n ]);\n const ashCountersTable = (0, $5be042668c706f09$export$61892979fbfca190)((0, $5be042668c706f09$export$d96816ff34d2479a)([\n \"ASH Counter\",\n \"Ideal (Per Device)\",\n \"Note\"\n ], [], ashCountersRows));\n $sectionHelp.append(ncpCountersTable);\n $sectionHelp.append(ashCountersTable);\n }\n if (window.location.hash) {\n const link = document.querySelector(`#menu-${window.location.hash.slice(1)}`);\n if (link) link.click();\n }\n});\n\n\n//# sourceMappingURL=index.3382268b.js.map\n","//! moment.js\n//! version : 2.30.1\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n global.moment = factory()\n}(this, (function () { 'use strict';\n\n var hookCallback;\n\n function hooks() {\n return hookCallback.apply(null, arguments);\n }\n\n // This is done to register the method called with moment()\n // without creating circular dependencies.\n function setHookCallback(callback) {\n hookCallback = callback;\n }\n\n function isArray(input) {\n return (\n input instanceof Array ||\n Object.prototype.toString.call(input) === '[object Array]'\n );\n }\n\n function isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return (\n input != null &&\n Object.prototype.toString.call(input) === '[object Object]'\n );\n }\n\n function hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n }\n\n function isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) {\n return Object.getOwnPropertyNames(obj).length === 0;\n } else {\n var k;\n for (k in obj) {\n if (hasOwnProp(obj, k)) {\n return false;\n }\n }\n return true;\n }\n }\n\n function isUndefined(input) {\n return input === void 0;\n }\n\n function isNumber(input) {\n return (\n typeof input === 'number' ||\n Object.prototype.toString.call(input) === '[object Number]'\n );\n }\n\n function isDate(input) {\n return (\n input instanceof Date ||\n Object.prototype.toString.call(input) === '[object Date]'\n );\n }\n\n function map(arr, fn) {\n var res = [],\n i,\n arrLen = arr.length;\n for (i = 0; i < arrLen; ++i) {\n res.push(fn(arr[i], i));\n }\n return res;\n }\n\n function extend(a, b) {\n for (var i in b) {\n if (hasOwnProp(b, i)) {\n a[i] = b[i];\n }\n }\n\n if (hasOwnProp(b, 'toString')) {\n a.toString = b.toString;\n }\n\n if (hasOwnProp(b, 'valueOf')) {\n a.valueOf = b.valueOf;\n }\n\n return a;\n }\n\n function createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n }\n\n function defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidEra: null,\n invalidMonth: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false,\n };\n }\n\n function getParsingFlags(m) {\n if (m._pf == null) {\n m._pf = defaultParsingFlags();\n }\n return m._pf;\n }\n\n var some;\n if (Array.prototype.some) {\n some = Array.prototype.some;\n } else {\n some = function (fun) {\n var t = Object(this),\n len = t.length >>> 0,\n i;\n\n for (i = 0; i < len; i++) {\n if (i in t && fun.call(this, t[i], i, t)) {\n return true;\n }\n }\n\n return false;\n };\n }\n\n function isValid(m) {\n var flags = null,\n parsedParts = false,\n isNowValid = m._d && !isNaN(m._d.getTime());\n if (isNowValid) {\n flags = getParsingFlags(m);\n parsedParts = some.call(flags.parsedDateParts, function (i) {\n return i != null;\n });\n isNowValid =\n flags.overflow < 0 &&\n !flags.empty &&\n !flags.invalidEra &&\n !flags.invalidMonth &&\n !flags.invalidWeekday &&\n !flags.weekdayMismatch &&\n !flags.nullInput &&\n !flags.invalidFormat &&\n !flags.userInvalidated &&\n (!flags.meridiem || (flags.meridiem && parsedParts));\n if (m._strict) {\n isNowValid =\n isNowValid &&\n flags.charsLeftOver === 0 &&\n flags.unusedTokens.length === 0 &&\n flags.bigHour === undefined;\n }\n }\n if (Object.isFrozen == null || !Object.isFrozen(m)) {\n m._isValid = isNowValid;\n } else {\n return isNowValid;\n }\n return m._isValid;\n }\n\n function createInvalid(flags) {\n var m = createUTC(NaN);\n if (flags != null) {\n extend(getParsingFlags(m), flags);\n } else {\n getParsingFlags(m).userInvalidated = true;\n }\n\n return m;\n }\n\n // Plugins that add properties should also add the key here (null value),\n // so we can properly clone ourselves.\n var momentProperties = (hooks.momentProperties = []),\n updateInProgress = false;\n\n function copyConfig(to, from) {\n var i,\n prop,\n val,\n momentPropertiesLen = momentProperties.length;\n\n if (!isUndefined(from._isAMomentObject)) {\n to._isAMomentObject = from._isAMomentObject;\n }\n if (!isUndefined(from._i)) {\n to._i = from._i;\n }\n if (!isUndefined(from._f)) {\n to._f = from._f;\n }\n if (!isUndefined(from._l)) {\n to._l = from._l;\n }\n if (!isUndefined(from._strict)) {\n to._strict = from._strict;\n }\n if (!isUndefined(from._tzm)) {\n to._tzm = from._tzm;\n }\n if (!isUndefined(from._isUTC)) {\n to._isUTC = from._isUTC;\n }\n if (!isUndefined(from._offset)) {\n to._offset = from._offset;\n }\n if (!isUndefined(from._pf)) {\n to._pf = getParsingFlags(from);\n }\n if (!isUndefined(from._locale)) {\n to._locale = from._locale;\n }\n\n if (momentPropertiesLen > 0) {\n for (i = 0; i < momentPropertiesLen; i++) {\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) {\n to[prop] = val;\n }\n }\n }\n\n return to;\n }\n\n // Moment prototype object\n function Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) {\n this._d = new Date(NaN);\n }\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n }\n\n function isMoment(obj) {\n return (\n obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n );\n }\n\n function warn(msg) {\n if (\n hooks.suppressDeprecationWarnings === false &&\n typeof console !== 'undefined' &&\n console.warn\n ) {\n console.warn('Deprecation warning: ' + msg);\n }\n }\n\n function deprecate(msg, fn) {\n var firstTime = true;\n\n return extend(function () {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(null, msg);\n }\n if (firstTime) {\n var args = [],\n arg,\n i,\n key,\n argLen = arguments.length;\n for (i = 0; i < argLen; i++) {\n arg = '';\n if (typeof arguments[i] === 'object') {\n arg += '\\n[' + i + '] ';\n for (key in arguments[0]) {\n if (hasOwnProp(arguments[0], key)) {\n arg += key + ': ' + arguments[0][key] + ', ';\n }\n }\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else {\n arg = arguments[i];\n }\n args.push(arg);\n }\n warn(\n msg +\n '\\nArguments: ' +\n Array.prototype.slice.call(args).join('') +\n '\\n' +\n new Error().stack\n );\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n }\n\n var deprecations = {};\n\n function deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(name, msg);\n }\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n }\n\n hooks.suppressDeprecationWarnings = false;\n hooks.deprecationHandler = null;\n\n function isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n }\n\n function set(config) {\n var prop, i;\n for (i in config) {\n if (hasOwnProp(config, i)) {\n prop = config[i];\n if (isFunction(prop)) {\n this[i] = prop;\n } else {\n this['_' + i] = prop;\n }\n }\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp(\n (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n '|' +\n /\\d{1,2}/.source\n );\n }\n\n function mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig),\n prop;\n for (prop in childConfig) {\n if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) {\n res[prop] = childConfig[prop];\n } else {\n delete res[prop];\n }\n }\n }\n for (prop in parentConfig) {\n if (\n hasOwnProp(parentConfig, prop) &&\n !hasOwnProp(childConfig, prop) &&\n isObject(parentConfig[prop])\n ) {\n // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n }\n }\n return res;\n }\n\n function Locale(config) {\n if (config != null) {\n this.set(config);\n }\n }\n\n var keys;\n\n if (Object.keys) {\n keys = Object.keys;\n } else {\n keys = function (obj) {\n var i,\n res = [];\n for (i in obj) {\n if (hasOwnProp(obj, i)) {\n res.push(i);\n }\n }\n return res;\n };\n }\n\n var defaultCalendar = {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n };\n\n function calendar(key, mom, now) {\n var output = this._calendar[key] || this._calendar['sameElse'];\n return isFunction(output) ? output.call(mom, now) : output;\n }\n\n function zeroFill(number, targetLength, forceSign) {\n var absNumber = '' + Math.abs(number),\n zerosToFill = targetLength - absNumber.length,\n sign = number >= 0;\n return (\n (sign ? (forceSign ? '+' : '') : '-') +\n Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n absNumber\n );\n }\n\n var formattingTokens =\n /(\\[[^\\[]*\\])|(\\\\)?([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,\n localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n formatFunctions = {},\n formatTokenFunctions = {};\n\n // token: 'M'\n // padded: ['MM', 2]\n // ordinal: 'Mo'\n // callback: function () { this.month() + 1 }\n function addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === 'string') {\n func = function () {\n return this[callback]();\n };\n }\n if (token) {\n formatTokenFunctions[token] = func;\n }\n if (padded) {\n formatTokenFunctions[padded[0]] = function () {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n }\n if (ordinal) {\n formatTokenFunctions[ordinal] = function () {\n return this.localeData().ordinal(\n func.apply(this, arguments),\n token\n );\n };\n }\n }\n\n function removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|\\]$/g, '');\n }\n return input.replace(/\\\\/g, '');\n }\n\n function makeFormatFunction(format) {\n var array = format.match(formattingTokens),\n i,\n length;\n\n for (i = 0, length = array.length; i < length; i++) {\n if (formatTokenFunctions[array[i]]) {\n array[i] = formatTokenFunctions[array[i]];\n } else {\n array[i] = removeFormattingTokens(array[i]);\n }\n }\n\n return function (mom) {\n var output = '',\n i;\n for (i = 0; i < length; i++) {\n output += isFunction(array[i])\n ? array[i].call(mom, format)\n : array[i];\n }\n return output;\n };\n }\n\n // format date using native date object\n function formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n formatFunctions[format] =\n formatFunctions[format] || makeFormatFunction(format);\n\n return formatFunctions[format](m);\n }\n\n function expandFormat(format, locale) {\n var i = 5;\n\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n\n localFormattingTokens.lastIndex = 0;\n while (i >= 0 && localFormattingTokens.test(format)) {\n format = format.replace(\n localFormattingTokens,\n replaceLongDateFormatTokens\n );\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n\n return format;\n }\n\n var defaultLongDateFormat = {\n LTS: 'h:mm:ss A',\n LT: 'h:mm A',\n L: 'MM/DD/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n };\n\n function longDateFormat(key) {\n var format = this._longDateFormat[key],\n formatUpper = this._longDateFormat[key.toUpperCase()];\n\n if (format || !formatUpper) {\n return format;\n }\n\n this._longDateFormat[key] = formatUpper\n .match(formattingTokens)\n .map(function (tok) {\n if (\n tok === 'MMMM' ||\n tok === 'MM' ||\n tok === 'DD' ||\n tok === 'dddd'\n ) {\n return tok.slice(1);\n }\n return tok;\n })\n .join('');\n\n return this._longDateFormat[key];\n }\n\n var defaultInvalidDate = 'Invalid date';\n\n function invalidDate() {\n return this._invalidDate;\n }\n\n var defaultOrdinal = '%d',\n defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n function ordinal(number) {\n return this._ordinal.replace('%d', number);\n }\n\n var defaultRelativeTime = {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n w: 'a week',\n ww: '%d weeks',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n };\n\n function relativeTime(number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return isFunction(output)\n ? output(number, withoutSuffix, string, isFuture)\n : output.replace(/%d/i, number);\n }\n\n function pastFuture(diff, output) {\n var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n }\n\n var aliases = {\n D: 'date',\n dates: 'date',\n date: 'date',\n d: 'day',\n days: 'day',\n day: 'day',\n e: 'weekday',\n weekdays: 'weekday',\n weekday: 'weekday',\n E: 'isoWeekday',\n isoweekdays: 'isoWeekday',\n isoweekday: 'isoWeekday',\n DDD: 'dayOfYear',\n dayofyears: 'dayOfYear',\n dayofyear: 'dayOfYear',\n h: 'hour',\n hours: 'hour',\n hour: 'hour',\n ms: 'millisecond',\n milliseconds: 'millisecond',\n millisecond: 'millisecond',\n m: 'minute',\n minutes: 'minute',\n minute: 'minute',\n M: 'month',\n months: 'month',\n month: 'month',\n Q: 'quarter',\n quarters: 'quarter',\n quarter: 'quarter',\n s: 'second',\n seconds: 'second',\n second: 'second',\n gg: 'weekYear',\n weekyears: 'weekYear',\n weekyear: 'weekYear',\n GG: 'isoWeekYear',\n isoweekyears: 'isoWeekYear',\n isoweekyear: 'isoWeekYear',\n w: 'week',\n weeks: 'week',\n week: 'week',\n W: 'isoWeek',\n isoweeks: 'isoWeek',\n isoweek: 'isoWeek',\n y: 'year',\n years: 'year',\n year: 'year',\n };\n\n function normalizeUnits(units) {\n return typeof units === 'string'\n ? aliases[units] || aliases[units.toLowerCase()]\n : undefined;\n }\n\n function normalizeObjectUnits(inputObject) {\n var normalizedInput = {},\n normalizedProp,\n prop;\n\n for (prop in inputObject) {\n if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) {\n normalizedInput[normalizedProp] = inputObject[prop];\n }\n }\n }\n\n return normalizedInput;\n }\n\n var priorities = {\n date: 9,\n day: 11,\n weekday: 11,\n isoWeekday: 11,\n dayOfYear: 4,\n hour: 13,\n millisecond: 16,\n minute: 14,\n month: 8,\n quarter: 7,\n second: 15,\n weekYear: 1,\n isoWeekYear: 1,\n week: 5,\n isoWeek: 5,\n year: 1,\n };\n\n function getPrioritizedUnits(unitsObj) {\n var units = [],\n u;\n for (u in unitsObj) {\n if (hasOwnProp(unitsObj, u)) {\n units.push({ unit: u, priority: priorities[u] });\n }\n }\n units.sort(function (a, b) {\n return a.priority - b.priority;\n });\n return units;\n }\n\n var match1 = /\\d/, // 0 - 9\n match2 = /\\d\\d/, // 00 - 99\n match3 = /\\d{3}/, // 000 - 999\n match4 = /\\d{4}/, // 0000 - 9999\n match6 = /[+-]?\\d{6}/, // -999999 - 999999\n match1to2 = /\\d\\d?/, // 0 - 99\n match3to4 = /\\d\\d\\d\\d?/, // 999 - 9999\n match5to6 = /\\d\\d\\d\\d\\d\\d?/, // 99999 - 999999\n match1to3 = /\\d{1,3}/, // 0 - 999\n match1to4 = /\\d{1,4}/, // 0 - 9999\n match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n matchUnsigned = /\\d+/, // 0 - inf\n matchSigned = /[+-]?\\d+/, // -inf - inf\n matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n matchWord =\n /[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,\n match1to2NoLeadingZero = /^[1-9]\\d?/, // 1-99\n match1to2HasZero = /^([1-9]\\d|\\d)/, // 0-99\n regexes;\n\n regexes = {};\n\n function addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex)\n ? regex\n : function (isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n }\n\n function getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) {\n return new RegExp(unescapeFormat(token));\n }\n\n return regexes[token](config._strict, config._locale);\n }\n\n // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n function unescapeFormat(s) {\n return regexEscape(\n s\n .replace('\\\\', '')\n .replace(\n /\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,\n function (matched, p1, p2, p3, p4) {\n return p1 || p2 || p3 || p4;\n }\n )\n );\n }\n\n function regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n }\n\n function absFloor(number) {\n if (number < 0) {\n // -0 -> 0\n return Math.ceil(number) || 0;\n } else {\n return Math.floor(number);\n }\n }\n\n function toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion,\n value = 0;\n\n if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n value = absFloor(coercedNumber);\n }\n\n return value;\n }\n\n var tokens = {};\n\n function addParseToken(token, callback) {\n var i,\n func = callback,\n tokenLen;\n if (typeof token === 'string') {\n token = [token];\n }\n if (isNumber(callback)) {\n func = function (input, array) {\n array[callback] = toInt(input);\n };\n }\n tokenLen = token.length;\n for (i = 0; i < tokenLen; i++) {\n tokens[token[i]] = func;\n }\n }\n\n function addWeekParseToken(token, callback) {\n addParseToken(token, function (input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n }\n\n function addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) {\n tokens[token](input, config._a, config, token);\n }\n }\n\n function isLeapYear(year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n }\n\n var YEAR = 0,\n MONTH = 1,\n DATE = 2,\n HOUR = 3,\n MINUTE = 4,\n SECOND = 5,\n MILLISECOND = 6,\n WEEK = 7,\n WEEKDAY = 8;\n\n // FORMATTING\n\n addFormatToken('Y', 0, 0, function () {\n var y = this.year();\n return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n });\n\n addFormatToken(0, ['YY', 2], 0, function () {\n return this.year() % 100;\n });\n\n addFormatToken(0, ['YYYY', 4], 0, 'year');\n addFormatToken(0, ['YYYYY', 5], 0, 'year');\n addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n // PARSING\n\n addRegexToken('Y', matchSigned);\n addRegexToken('YY', match1to2, match2);\n addRegexToken('YYYY', match1to4, match4);\n addRegexToken('YYYYY', match1to6, match6);\n addRegexToken('YYYYYY', match1to6, match6);\n\n addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n addParseToken('YYYY', function (input, array) {\n array[YEAR] =\n input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n });\n addParseToken('YY', function (input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n });\n addParseToken('Y', function (input, array) {\n array[YEAR] = parseInt(input, 10);\n });\n\n // HELPERS\n\n function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n }\n\n // HOOKS\n\n hooks.parseTwoDigitYear = function (input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n };\n\n // MOMENTS\n\n var getSetYear = makeGetSet('FullYear', true);\n\n function getIsLeapYear() {\n return isLeapYear(this.year());\n }\n\n function makeGetSet(unit, keepTime) {\n return function (value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else {\n return get(this, unit);\n }\n };\n }\n\n function get(mom, unit) {\n if (!mom.isValid()) {\n return NaN;\n }\n\n var d = mom._d,\n isUTC = mom._isUTC;\n\n switch (unit) {\n case 'Milliseconds':\n return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();\n case 'Seconds':\n return isUTC ? d.getUTCSeconds() : d.getSeconds();\n case 'Minutes':\n return isUTC ? d.getUTCMinutes() : d.getMinutes();\n case 'Hours':\n return isUTC ? d.getUTCHours() : d.getHours();\n case 'Date':\n return isUTC ? d.getUTCDate() : d.getDate();\n case 'Day':\n return isUTC ? d.getUTCDay() : d.getDay();\n case 'Month':\n return isUTC ? d.getUTCMonth() : d.getMonth();\n case 'FullYear':\n return isUTC ? d.getUTCFullYear() : d.getFullYear();\n default:\n return NaN; // Just in case\n }\n }\n\n function set$1(mom, unit, value) {\n var d, isUTC, year, month, date;\n\n if (!mom.isValid() || isNaN(value)) {\n return;\n }\n\n d = mom._d;\n isUTC = mom._isUTC;\n\n switch (unit) {\n case 'Milliseconds':\n return void (isUTC\n ? d.setUTCMilliseconds(value)\n : d.setMilliseconds(value));\n case 'Seconds':\n return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));\n case 'Minutes':\n return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));\n case 'Hours':\n return void (isUTC ? d.setUTCHours(value) : d.setHours(value));\n case 'Date':\n return void (isUTC ? d.setUTCDate(value) : d.setDate(value));\n // case 'Day': // Not real\n // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));\n // case 'Month': // Not used because we need to pass two variables\n // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));\n case 'FullYear':\n break; // See below ...\n default:\n return; // Just in case\n }\n\n year = value;\n month = mom.month();\n date = mom.date();\n date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;\n void (isUTC\n ? d.setUTCFullYear(year, month, date)\n : d.setFullYear(year, month, date));\n }\n\n // MOMENTS\n\n function stringGet(units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units]();\n }\n return this;\n }\n\n function stringSet(units, value) {\n if (typeof units === 'object') {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units),\n i,\n prioritizedLen = prioritized.length;\n for (i = 0; i < prioritizedLen; i++) {\n this[prioritized[i].unit](units[prioritized[i].unit]);\n }\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units](value);\n }\n }\n return this;\n }\n\n function mod(n, x) {\n return ((n % x) + x) % x;\n }\n\n var indexOf;\n\n if (Array.prototype.indexOf) {\n indexOf = Array.prototype.indexOf;\n } else {\n indexOf = function (o) {\n // I know\n var i;\n for (i = 0; i < this.length; ++i) {\n if (this[i] === o) {\n return i;\n }\n }\n return -1;\n };\n }\n\n function daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) {\n return NaN;\n }\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1\n ? isLeapYear(year)\n ? 29\n : 28\n : 31 - ((modMonth % 7) % 2);\n }\n\n // FORMATTING\n\n addFormatToken('M', ['MM', 2], 'Mo', function () {\n return this.month() + 1;\n });\n\n addFormatToken('MMM', 0, 0, function (format) {\n return this.localeData().monthsShort(this, format);\n });\n\n addFormatToken('MMMM', 0, 0, function (format) {\n return this.localeData().months(this, format);\n });\n\n // PARSING\n\n addRegexToken('M', match1to2, match1to2NoLeadingZero);\n addRegexToken('MM', match1to2, match2);\n addRegexToken('MMM', function (isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n });\n addRegexToken('MMMM', function (isStrict, locale) {\n return locale.monthsRegex(isStrict);\n });\n\n addParseToken(['M', 'MM'], function (input, array) {\n array[MONTH] = toInt(input) - 1;\n });\n\n addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) {\n array[MONTH] = month;\n } else {\n getParsingFlags(config).invalidMonth = input;\n }\n });\n\n // LOCALES\n\n var defaultLocaleMonths =\n 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n defaultLocaleMonthsShort =\n 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n defaultMonthsShortRegex = matchWord,\n defaultMonthsRegex = matchWord;\n\n function localeMonths(m, format) {\n if (!m) {\n return isArray(this._months)\n ? this._months\n : this._months['standalone'];\n }\n return isArray(this._months)\n ? this._months[m.month()]\n : this._months[\n (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n ? 'format'\n : 'standalone'\n ][m.month()];\n }\n\n function localeMonthsShort(m, format) {\n if (!m) {\n return isArray(this._monthsShort)\n ? this._monthsShort\n : this._monthsShort['standalone'];\n }\n return isArray(this._monthsShort)\n ? this._monthsShort[m.month()]\n : this._monthsShort[\n MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n ][m.month()];\n }\n\n function handleStrictParse(monthName, format, strict) {\n var i,\n ii,\n mom,\n llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for (i = 0; i < 12; ++i) {\n mom = createUTC([2000, i]);\n this._shortMonthsParse[i] = this.monthsShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n\n if (this._monthsParseExact) {\n return handleStrictParse.call(this, monthName, format, strict);\n }\n\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp(\n '^' + this.months(mom, '').replace('.', '') + '$',\n 'i'\n );\n this._shortMonthsParse[i] = new RegExp(\n '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n 'i'\n );\n }\n if (!strict && !this._monthsParse[i]) {\n regex =\n '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'MMMM' &&\n this._longMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'MMM' &&\n this._shortMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (!strict && this._monthsParse[i].test(monthName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function setMonth(mom, value) {\n if (!mom.isValid()) {\n // No op\n return mom;\n }\n\n if (typeof value === 'string') {\n if (/^\\d+$/.test(value)) {\n value = toInt(value);\n } else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) {\n return mom;\n }\n }\n }\n\n var month = value,\n date = mom.date();\n\n date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));\n void (mom._isUTC\n ? mom._d.setUTCMonth(month, date)\n : mom._d.setMonth(month, date));\n return mom;\n }\n\n function getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else {\n return get(this, 'Month');\n }\n }\n\n function getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n }\n\n function monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsShortStrictRegex;\n } else {\n return this._monthsShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsShortRegex')) {\n this._monthsShortRegex = defaultMonthsShortRegex;\n }\n return this._monthsShortStrictRegex && isStrict\n ? this._monthsShortStrictRegex\n : this._monthsShortRegex;\n }\n }\n\n function monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsStrictRegex;\n } else {\n return this._monthsRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsRegex')) {\n this._monthsRegex = defaultMonthsRegex;\n }\n return this._monthsStrictRegex && isStrict\n ? this._monthsStrictRegex\n : this._monthsRegex;\n }\n }\n\n function computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n shortP,\n longP;\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n shortP = regexEscape(this.monthsShort(mom, ''));\n longP = regexEscape(this.months(mom, ''));\n shortPieces.push(shortP);\n longPieces.push(longP);\n mixedPieces.push(longP);\n mixedPieces.push(shortP);\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._monthsShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n }\n\n function createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date;\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n if (isFinite(date.getFullYear())) {\n date.setFullYear(y);\n }\n } else {\n date = new Date(y, m, d, h, M, s, ms);\n }\n\n return date;\n }\n\n function createUTCDate(y) {\n var date, args;\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n args = Array.prototype.slice.call(arguments);\n // preserve leap years using a full 400 year cycle, then reset\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n if (isFinite(date.getUTCFullYear())) {\n date.setUTCFullYear(y);\n }\n } else {\n date = new Date(Date.UTC.apply(null, arguments));\n }\n\n return date;\n }\n\n // start-of-first-week - start-of-year\n function firstWeekOffset(year, dow, doy) {\n var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n fwd = 7 + dow - doy,\n // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n return -fwdlw + fwd - 1;\n }\n\n // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7,\n weekOffset = firstWeekOffset(year, dow, doy),\n dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n resYear,\n resDayOfYear;\n\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n\n return {\n year: resYear,\n dayOfYear: resDayOfYear,\n };\n }\n\n function weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n resWeek,\n resYear;\n\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n\n return {\n week: resWeek,\n year: resYear,\n };\n }\n\n function weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n }\n\n // FORMATTING\n\n addFormatToken('w', ['ww', 2], 'wo', 'week');\n addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n // PARSING\n\n addRegexToken('w', match1to2, match1to2NoLeadingZero);\n addRegexToken('ww', match1to2, match2);\n addRegexToken('W', match1to2, match1to2NoLeadingZero);\n addRegexToken('WW', match1to2, match2);\n\n addWeekParseToken(\n ['w', 'ww', 'W', 'WW'],\n function (input, week, config, token) {\n week[token.substr(0, 1)] = toInt(input);\n }\n );\n\n // HELPERS\n\n // LOCALES\n\n function localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n }\n\n var defaultLocaleWeek = {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n };\n\n function localeFirstDayOfWeek() {\n return this._week.dow;\n }\n\n function localeFirstDayOfYear() {\n return this._week.doy;\n }\n\n // MOMENTS\n\n function getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n function getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('d', 0, 'do', 'day');\n\n addFormatToken('dd', 0, 0, function (format) {\n return this.localeData().weekdaysMin(this, format);\n });\n\n addFormatToken('ddd', 0, 0, function (format) {\n return this.localeData().weekdaysShort(this, format);\n });\n\n addFormatToken('dddd', 0, 0, function (format) {\n return this.localeData().weekdays(this, format);\n });\n\n addFormatToken('e', 0, 0, 'weekday');\n addFormatToken('E', 0, 0, 'isoWeekday');\n\n // PARSING\n\n addRegexToken('d', match1to2);\n addRegexToken('e', match1to2);\n addRegexToken('E', match1to2);\n addRegexToken('dd', function (isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n });\n addRegexToken('ddd', function (isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n });\n addRegexToken('dddd', function (isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n });\n\n addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) {\n week.d = weekday;\n } else {\n getParsingFlags(config).invalidWeekday = input;\n }\n });\n\n addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n week[token] = toInt(input);\n });\n\n // HELPERS\n\n function parseWeekday(input, locale) {\n if (typeof input !== 'string') {\n return input;\n }\n\n if (!isNaN(input)) {\n return parseInt(input, 10);\n }\n\n input = locale.weekdaysParse(input);\n if (typeof input === 'number') {\n return input;\n }\n\n return null;\n }\n\n function parseIsoWeekday(input, locale) {\n if (typeof input === 'string') {\n return locale.weekdaysParse(input) % 7 || 7;\n }\n return isNaN(input) ? null : input;\n }\n\n // LOCALES\n function shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n }\n\n var defaultLocaleWeekdays =\n 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n defaultWeekdaysRegex = matchWord,\n defaultWeekdaysShortRegex = matchWord,\n defaultWeekdaysMinRegex = matchWord;\n\n function localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays)\n ? this._weekdays\n : this._weekdays[\n m && m !== true && this._weekdays.isFormat.test(format)\n ? 'format'\n : 'standalone'\n ];\n return m === true\n ? shiftWeekdays(weekdays, this._week.dow)\n : m\n ? weekdays[m.day()]\n : weekdays;\n }\n\n function localeWeekdaysShort(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n : m\n ? this._weekdaysShort[m.day()]\n : this._weekdaysShort;\n }\n\n function localeWeekdaysMin(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n : m\n ? this._weekdaysMin[m.day()]\n : this._weekdaysMin;\n }\n\n function handleStrictParse$1(weekdayName, format, strict) {\n var i,\n ii,\n mom,\n llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n\n for (i = 0; i < 7; ++i) {\n mom = createUTC([2000, 1]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(\n mom,\n ''\n ).toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n\n if (this._weekdaysParseExact) {\n return handleStrictParse$1.call(this, weekdayName, format, strict);\n }\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n\n mom = createUTC([2000, 1]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp(\n '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._shortWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._minWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n }\n if (!this._weekdaysParse[i]) {\n regex =\n '^' +\n this.weekdays(mom, '') +\n '|^' +\n this.weekdaysShort(mom, '') +\n '|^' +\n this.weekdaysMin(mom, '');\n this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'dddd' &&\n this._fullWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'ddd' &&\n this._shortWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'dd' &&\n this._minWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function getSetDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n var day = get(this, 'Day');\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, 'd');\n } else {\n return day;\n }\n }\n\n function getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, 'd');\n }\n\n function getSetISODayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else {\n return this.day() || 7;\n }\n }\n\n function weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysStrictRegex;\n } else {\n return this._weekdaysRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n this._weekdaysRegex = defaultWeekdaysRegex;\n }\n return this._weekdaysStrictRegex && isStrict\n ? this._weekdaysStrictRegex\n : this._weekdaysRegex;\n }\n }\n\n function weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysShortStrictRegex;\n } else {\n return this._weekdaysShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n }\n return this._weekdaysShortStrictRegex && isStrict\n ? this._weekdaysShortStrictRegex\n : this._weekdaysShortRegex;\n }\n }\n\n function weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysMinStrictRegex;\n } else {\n return this._weekdaysMinRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n }\n return this._weekdaysMinStrictRegex && isStrict\n ? this._weekdaysMinStrictRegex\n : this._weekdaysMinRegex;\n }\n }\n\n function computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var minPieces = [],\n shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n minp,\n shortp,\n longp;\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n minp = regexEscape(this.weekdaysMin(mom, ''));\n shortp = regexEscape(this.weekdaysShort(mom, ''));\n longp = regexEscape(this.weekdays(mom, ''));\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n\n this._weekdaysStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysMinStrictRegex = new RegExp(\n '^(' + minPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n function hFormat() {\n return this.hours() % 12 || 12;\n }\n\n function kFormat() {\n return this.hours() || 24;\n }\n\n addFormatToken('H', ['HH', 2], 0, 'hour');\n addFormatToken('h', ['hh', 2], 0, hFormat);\n addFormatToken('k', ['kk', 2], 0, kFormat);\n\n addFormatToken('hmm', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('hmmss', 0, 0, function () {\n return (\n '' +\n hFormat.apply(this) +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n addFormatToken('Hmm', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('Hmmss', 0, 0, function () {\n return (\n '' +\n this.hours() +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n function meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function () {\n return this.localeData().meridiem(\n this.hours(),\n this.minutes(),\n lowercase\n );\n });\n }\n\n meridiem('a', true);\n meridiem('A', false);\n\n // PARSING\n\n function matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n }\n\n addRegexToken('a', matchMeridiem);\n addRegexToken('A', matchMeridiem);\n addRegexToken('H', match1to2, match1to2HasZero);\n addRegexToken('h', match1to2, match1to2NoLeadingZero);\n addRegexToken('k', match1to2, match1to2NoLeadingZero);\n addRegexToken('HH', match1to2, match2);\n addRegexToken('hh', match1to2, match2);\n addRegexToken('kk', match1to2, match2);\n\n addRegexToken('hmm', match3to4);\n addRegexToken('hmmss', match5to6);\n addRegexToken('Hmm', match3to4);\n addRegexToken('Hmmss', match5to6);\n\n addParseToken(['H', 'HH'], HOUR);\n addParseToken(['k', 'kk'], function (input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n });\n addParseToken(['a', 'A'], function (input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n });\n addParseToken(['h', 'hh'], function (input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('Hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n });\n addParseToken('Hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n });\n\n // LOCALES\n\n function localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + '').toLowerCase().charAt(0) === 'p';\n }\n\n var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n getSetHour = makeGetSet('Hours', true);\n\n function localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'pm' : 'PM';\n } else {\n return isLower ? 'am' : 'AM';\n }\n }\n\n var baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n\n week: defaultLocaleWeek,\n\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n\n meridiemParse: defaultLocaleMeridiemParse,\n };\n\n // internal storage for locale config files\n var locales = {},\n localeFamilies = {},\n globalLocale;\n\n function commonPrefix(arr1, arr2) {\n var i,\n minl = Math.min(arr1.length, arr2.length);\n for (i = 0; i < minl; i += 1) {\n if (arr1[i] !== arr2[i]) {\n return i;\n }\n }\n return minl;\n }\n\n function normalizeLocale(key) {\n return key ? key.toLowerCase().replace('_', '-') : key;\n }\n\n // pick the locale from the array\n // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n function chooseLocale(names) {\n var i = 0,\n j,\n next,\n locale,\n split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (\n next &&\n next.length >= j &&\n commonPrefix(split, next) >= j - 1\n ) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n }\n\n function isLocaleNameSane(name) {\n // Prevent names that look like filesystem paths, i.e contain '/' or '\\'\n // Ensure name is available and function returns boolean\n return !!(name && name.match('^[^/\\\\\\\\]*$'));\n }\n\n function loadLocale(name) {\n var oldLocale = null,\n aliasedRequire;\n // TODO: Find a better way to register and load all the locales in Node\n if (\n locales[name] === undefined &&\n typeof module !== 'undefined' &&\n module &&\n module.exports &&\n isLocaleNameSane(name)\n ) {\n try {\n oldLocale = globalLocale._abbr;\n aliasedRequire = require;\n aliasedRequire('./locale/' + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {\n // mark as not found to avoid repeating expensive file require call causing high CPU\n // when trying to find en-US, en_US, en-us for every format call\n locales[name] = null; // null means not found\n }\n }\n return locales[name];\n }\n\n // This function will load locale and then set the global locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n function getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n } else {\n data = defineLocale(key, values);\n }\n\n if (data) {\n // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n } else {\n if (typeof console !== 'undefined' && console.warn) {\n //warn user if arguments are passed but the locale could not be set\n console.warn(\n 'Locale ' + key + ' not found. Did you forget to load it?'\n );\n }\n }\n }\n\n return globalLocale._abbr;\n }\n\n function defineLocale(name, config) {\n if (config !== null) {\n var locale,\n parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple(\n 'defineLocaleOverride',\n 'use moment.updateLocale(localeName, config) to change ' +\n 'an existing locale. moment.defineLocale(localeName, ' +\n 'config) should only be used for creating a new locale ' +\n 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n );\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) {\n parentConfig = locales[config.parentLocale]._config;\n } else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) {\n parentConfig = locale._config;\n } else {\n if (!localeFamilies[config.parentLocale]) {\n localeFamilies[config.parentLocale] = [];\n }\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config,\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n if (localeFamilies[name]) {\n localeFamilies[name].forEach(function (x) {\n defineLocale(x.name, x.config);\n });\n }\n\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n }\n\n function updateLocale(name, config) {\n if (config != null) {\n var locale,\n tmpLocale,\n parentConfig = baseConfig;\n\n if (locales[name] != null && locales[name].parentLocale != null) {\n // Update existing child locale in-place to avoid memory-leaks\n locales[name].set(mergeConfigs(locales[name]._config, config));\n } else {\n // MERGE\n tmpLocale = loadLocale(name);\n if (tmpLocale != null) {\n parentConfig = tmpLocale._config;\n }\n config = mergeConfigs(parentConfig, config);\n if (tmpLocale == null) {\n // updateLocale is called for creating a new locale\n // Set abbr so it will have a name (getters return\n // undefined otherwise).\n config.abbr = name;\n }\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n }\n\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else {\n // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n if (name === getSetGlobalLocale()) {\n getSetGlobalLocale(name);\n }\n } else if (locales[name] != null) {\n delete locales[name];\n }\n }\n }\n return locales[name];\n }\n\n // returns locale data\n function getLocale(key) {\n var locale;\n\n if (key && key._locale && key._locale._abbr) {\n key = key._locale._abbr;\n }\n\n if (!key) {\n return globalLocale;\n }\n\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) {\n return locale;\n }\n key = [key];\n }\n\n return chooseLocale(key);\n }\n\n function listLocales() {\n return keys(locales);\n }\n\n function checkOverflow(m) {\n var overflow,\n a = m._a;\n\n if (a && getParsingFlags(m).overflow === -2) {\n overflow =\n a[MONTH] < 0 || a[MONTH] > 11\n ? MONTH\n : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n ? DATE\n : a[HOUR] < 0 ||\n a[HOUR] > 24 ||\n (a[HOUR] === 24 &&\n (a[MINUTE] !== 0 ||\n a[SECOND] !== 0 ||\n a[MILLISECOND] !== 0))\n ? HOUR\n : a[MINUTE] < 0 || a[MINUTE] > 59\n ? MINUTE\n : a[SECOND] < 0 || a[SECOND] > 59\n ? SECOND\n : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n ? MILLISECOND\n : -1;\n\n if (\n getParsingFlags(m)._overflowDayOfYear &&\n (overflow < YEAR || overflow > DATE)\n ) {\n overflow = DATE;\n }\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n overflow = WEEK;\n }\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n overflow = WEEKDAY;\n }\n\n getParsingFlags(m).overflow = overflow;\n }\n\n return m;\n }\n\n // iso 8601 regex\n // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n var extendedIsoRegex =\n /^\\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)?)?$/,\n basicIsoRegex =\n /^\\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)?)?$/,\n tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n isoDates = [\n ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n ['YYYY-DDD', /\\d{4}-\\d{3}/],\n ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n ['YYYYYYMMDD', /[+-]\\d{10}/],\n ['YYYYMMDD', /\\d{8}/],\n ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n ['YYYYDDD', /\\d{7}/],\n ['YYYYMM', /\\d{6}/, false],\n ['YYYY', /\\d{4}/, false],\n ],\n // iso time formats and regexes\n isoTimes = [\n ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n ['HH:mm', /\\d\\d:\\d\\d/],\n ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n ['HHmm', /\\d\\d\\d\\d/],\n ['HH', /\\d\\d/],\n ],\n aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n rfc2822 =\n /^(?:(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}))$/,\n obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n };\n\n // date from iso format\n function configFromISO(config) {\n var i,\n l,\n string = config._i,\n match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n allowTime,\n dateFormat,\n timeFormat,\n tzFormat,\n isoDatesLen = isoDates.length,\n isoTimesLen = isoTimes.length;\n\n if (match) {\n getParsingFlags(config).iso = true;\n for (i = 0, l = isoDatesLen; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for (i = 0, l = isoTimesLen; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n } else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n configFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }\n\n function extractFromRFC2822Strings(\n yearStr,\n monthStr,\n dayStr,\n hourStr,\n minuteStr,\n secondStr\n ) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10),\n ];\n\n if (secondStr) {\n result.push(parseInt(secondStr, 10));\n }\n\n return result;\n }\n\n function untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) {\n return 2000 + year;\n } else if (year <= 999) {\n return 1900 + year;\n }\n return year;\n }\n\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^()]*\\)|[\\n\\t]/g, ' ')\n .replace(/(\\s\\s+)/g, ' ')\n .replace(/^\\s\\s*/, '')\n .replace(/\\s\\s*$/, '');\n }\n\n function checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n weekdayActual = new Date(\n parsedInput[0],\n parsedInput[1],\n parsedInput[2]\n ).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n }\n\n function calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) {\n return obsOffsets[obsOffset];\n } else if (militaryOffset) {\n // the only allowed military tz is Z\n return 0;\n } else {\n var hm = parseInt(numOffset, 10),\n m = hm % 100,\n h = (hm - m) / 100;\n return h * 60 + m;\n }\n }\n\n // date and time from ref 2822 format\n function configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i)),\n parsedArray;\n if (match) {\n parsedArray = extractFromRFC2822Strings(\n match[4],\n match[3],\n match[2],\n match[5],\n match[6],\n match[7]\n );\n if (!checkWeekday(match[1], parsedArray, config)) {\n return;\n }\n\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n getParsingFlags(config).rfc2822 = true;\n } else {\n config._isValid = false;\n }\n }\n\n // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n configFromRFC2822(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n if (config._strict) {\n config._isValid = false;\n } else {\n // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n }\n\n hooks.createFromInputFallback = deprecate(\n 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n function (config) {\n config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n }\n );\n\n // Pick the first defined of two or three arguments.\n function defaults(a, b, c) {\n if (a != null) {\n return a;\n }\n if (b != null) {\n return b;\n }\n return c;\n }\n\n function currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n if (config._useUTC) {\n return [\n nowValue.getUTCFullYear(),\n nowValue.getUTCMonth(),\n nowValue.getUTCDate(),\n ];\n }\n return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n }\n\n // convert an array to a date.\n // the array should mirror the parameters below\n // note: all values past the year are optional and will default to the lowest possible value.\n // [year, month, day , hour, minute, second, millisecond]\n function configFromArray(config) {\n var i,\n date,\n input = [],\n currentDate,\n expectedWeekday,\n yearToUse;\n\n if (config._d) {\n return;\n }\n\n currentDate = currentDateArray(config);\n\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n dayOfYearFromWeekInfo(config);\n }\n\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n if (\n config._dayOfYear > daysInYear(yearToUse) ||\n config._dayOfYear === 0\n ) {\n getParsingFlags(config)._overflowDayOfYear = true;\n }\n\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for (i = 0; i < 3 && config._a[i] == null; ++i) {\n config._a[i] = input[i] = currentDate[i];\n }\n\n // Zero out whatever was not defaulted, including time\n for (; i < 7; i++) {\n config._a[i] = input[i] =\n config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n }\n\n // Check for 24:00:00.000\n if (\n config._a[HOUR] === 24 &&\n config._a[MINUTE] === 0 &&\n config._a[SECOND] === 0 &&\n config._a[MILLISECOND] === 0\n ) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n\n config._d = (config._useUTC ? createUTCDate : createDate).apply(\n null,\n input\n );\n expectedWeekday = config._useUTC\n ? config._d.getUTCDay()\n : config._d.getDay();\n\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) {\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n }\n\n if (config._nextDay) {\n config._a[HOUR] = 24;\n }\n\n // check for mismatching day of week\n if (\n config._w &&\n typeof config._w.d !== 'undefined' &&\n config._w.d !== expectedWeekday\n ) {\n getParsingFlags(config).weekdayMismatch = true;\n }\n }\n\n function dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(\n w.GG,\n config._a[YEAR],\n weekOfYear(createLocal(), 1, 4).year\n );\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) {\n weekdayOverflow = true;\n }\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n\n curWeek = weekOfYear(createLocal(), dow, doy);\n\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) {\n weekdayOverflow = true;\n }\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) {\n weekdayOverflow = true;\n }\n } else {\n // default to beginning of week\n weekday = dow;\n }\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n getParsingFlags(config)._overflowWeeks = true;\n } else if (weekdayOverflow != null) {\n getParsingFlags(config)._overflowWeekday = true;\n } else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n }\n\n // constant that refers to the ISO standard\n hooks.ISO_8601 = function () {};\n\n // constant that refers to the RFC 2822 form\n hooks.RFC_2822 = function () {};\n\n // date from string and format string\n function configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = '' + config._i,\n i,\n parsedInput,\n tokens,\n token,\n skipped,\n stringLength = string.length,\n totalParsedInputLength = 0,\n era,\n tokenLen;\n\n tokens =\n expandFormat(config._f, config._locale).match(formattingTokens) || [];\n tokenLen = tokens.length;\n for (i = 0; i < tokenLen; i++) {\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n [])[0];\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) {\n getParsingFlags(config).unusedInput.push(skipped);\n }\n string = string.slice(\n string.indexOf(parsedInput) + parsedInput.length\n );\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) {\n getParsingFlags(config).empty = false;\n } else {\n getParsingFlags(config).unusedTokens.push(token);\n }\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) {\n getParsingFlags(config).unusedTokens.push(token);\n }\n }\n\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver =\n stringLength - totalParsedInputLength;\n if (string.length > 0) {\n getParsingFlags(config).unusedInput.push(string);\n }\n\n // clear _12h flag if hour is <= 12\n if (\n config._a[HOUR] <= 12 &&\n getParsingFlags(config).bigHour === true &&\n config._a[HOUR] > 0\n ) {\n getParsingFlags(config).bigHour = undefined;\n }\n\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(\n config._locale,\n config._a[HOUR],\n config._meridiem\n );\n\n // handle era\n era = getParsingFlags(config).era;\n if (era !== null) {\n config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n }\n\n configFromArray(config);\n checkOverflow(config);\n }\n\n function meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n\n if (meridiem == null) {\n // nothing to do\n return hour;\n }\n if (locale.meridiemHour != null) {\n return locale.meridiemHour(hour, meridiem);\n } else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) {\n hour += 12;\n }\n if (!isPm && hour === 12) {\n hour = 0;\n }\n return hour;\n } else {\n // this is not supposed to happen\n return hour;\n }\n }\n\n // date from string and array of format strings\n function configFromStringAndArray(config) {\n var tempConfig,\n bestMoment,\n scoreToBeat,\n i,\n currentScore,\n validFormatFound,\n bestFormatIsValid = false,\n configfLen = config._f.length;\n\n if (configfLen === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n\n for (i = 0; i < configfLen; i++) {\n currentScore = 0;\n validFormatFound = false;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) {\n tempConfig._useUTC = config._useUTC;\n }\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n\n if (isValid(tempConfig)) {\n validFormatFound = true;\n }\n\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n getParsingFlags(tempConfig).score = currentScore;\n\n if (!bestFormatIsValid) {\n if (\n scoreToBeat == null ||\n currentScore < scoreToBeat ||\n validFormatFound\n ) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n if (validFormatFound) {\n bestFormatIsValid = true;\n }\n }\n } else {\n if (currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n }\n\n extend(config, bestMoment || tempConfig);\n }\n\n function configFromObject(config) {\n if (config._d) {\n return;\n }\n\n var i = normalizeObjectUnits(config._i),\n dayOrDate = i.day === undefined ? i.date : i.day;\n config._a = map(\n [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n function (obj) {\n return obj && parseInt(obj, 10);\n }\n );\n\n configFromArray(config);\n }\n\n function createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, 'd');\n res._nextDay = undefined;\n }\n\n return res;\n }\n\n function prepareConfig(config) {\n var input = config._i,\n format = config._f;\n\n config._locale = config._locale || getLocale(config._l);\n\n if (input === null || (format === undefined && input === '')) {\n return createInvalid({ nullInput: true });\n }\n\n if (typeof input === 'string') {\n config._i = input = config._locale.preparse(input);\n }\n\n if (isMoment(input)) {\n return new Moment(checkOverflow(input));\n } else if (isDate(input)) {\n config._d = input;\n } else if (isArray(format)) {\n configFromStringAndArray(config);\n } else if (format) {\n configFromStringAndFormat(config);\n } else {\n configFromInput(config);\n }\n\n if (!isValid(config)) {\n config._d = null;\n }\n\n return config;\n }\n\n function configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) {\n config._d = new Date(hooks.now());\n } else if (isDate(input)) {\n config._d = new Date(input.valueOf());\n } else if (typeof input === 'string') {\n configFromString(config);\n } else if (isArray(input)) {\n config._a = map(input.slice(0), function (obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) {\n configFromObject(config);\n } else if (isNumber(input)) {\n // from milliseconds\n config._d = new Date(input);\n } else {\n hooks.createFromInputFallback(config);\n }\n }\n\n function createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n\n if (format === true || format === false) {\n strict = format;\n format = undefined;\n }\n\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n\n if (\n (isObject(input) && isObjectEmpty(input)) ||\n (isArray(input) && input.length === 0)\n ) {\n input = undefined;\n }\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n\n return createFromConfig(c);\n }\n\n function createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n }\n\n var prototypeMin = deprecate(\n 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other < this ? this : other;\n } else {\n return createInvalid();\n }\n }\n ),\n prototypeMax = deprecate(\n 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other > this ? this : other;\n } else {\n return createInvalid();\n }\n }\n );\n\n // Pick a moment m from moments so that m[fn](other) is true for all\n // other. This relies on the function fn to be transitive.\n //\n // moments should either be an array of moment objects or an array, whose\n // first element is an array of moment objects.\n function pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) {\n moments = moments[0];\n }\n if (!moments.length) {\n return createLocal();\n }\n res = moments[0];\n for (i = 1; i < moments.length; ++i) {\n if (!moments[i].isValid() || moments[i][fn](res)) {\n res = moments[i];\n }\n }\n return res;\n }\n\n // TODO: Use [].sort instead?\n function min() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isBefore', args);\n }\n\n function max() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isAfter', args);\n }\n\n var now = function () {\n return Date.now ? Date.now() : +new Date();\n };\n\n var ordering = [\n 'year',\n 'quarter',\n 'month',\n 'week',\n 'day',\n 'hour',\n 'minute',\n 'second',\n 'millisecond',\n ];\n\n function isDurationValid(m) {\n var key,\n unitHasDecimal = false,\n i,\n orderLen = ordering.length;\n for (key in m) {\n if (\n hasOwnProp(m, key) &&\n !(\n indexOf.call(ordering, key) !== -1 &&\n (m[key] == null || !isNaN(m[key]))\n )\n ) {\n return false;\n }\n }\n\n for (i = 0; i < orderLen; ++i) {\n if (m[ordering[i]]) {\n if (unitHasDecimal) {\n return false; // only allow non-integers for smallest unit\n }\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n unitHasDecimal = true;\n }\n }\n }\n\n return true;\n }\n\n function isValid$1() {\n return this._isValid;\n }\n\n function createInvalid$1() {\n return createDuration(NaN);\n }\n\n function Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration),\n years = normalizedInput.year || 0,\n quarters = normalizedInput.quarter || 0,\n months = normalizedInput.month || 0,\n weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n days = normalizedInput.day || 0,\n hours = normalizedInput.hour || 0,\n minutes = normalizedInput.minute || 0,\n seconds = normalizedInput.second || 0,\n milliseconds = normalizedInput.millisecond || 0;\n\n this._isValid = isDurationValid(normalizedInput);\n\n // representation for dateAddRemove\n this._milliseconds =\n +milliseconds +\n seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days + weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months + quarters * 3 + years * 12;\n\n this._data = {};\n\n this._locale = getLocale();\n\n this._bubble();\n }\n\n function isDuration(obj) {\n return obj instanceof Duration;\n }\n\n function absRound(number) {\n if (number < 0) {\n return Math.round(-1 * number) * -1;\n } else {\n return Math.round(number);\n }\n }\n\n // compare two arrays, return the number of differences\n function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (\n (dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n ) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }\n\n // FORMATTING\n\n function offset(token, separator) {\n addFormatToken(token, 0, 0, function () {\n var offset = this.utcOffset(),\n sign = '+';\n if (offset < 0) {\n offset = -offset;\n sign = '-';\n }\n return (\n sign +\n zeroFill(~~(offset / 60), 2) +\n separator +\n zeroFill(~~offset % 60, 2)\n );\n });\n }\n\n offset('Z', ':');\n offset('ZZ', '');\n\n // PARSING\n\n addRegexToken('Z', matchShortOffset);\n addRegexToken('ZZ', matchShortOffset);\n addParseToken(['Z', 'ZZ'], function (input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n });\n\n // HELPERS\n\n // timezone chunker\n // '+10:00' > ['10', '00']\n // '-1530' > ['-15', '30']\n var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n function offsetFromString(matcher, string) {\n var matches = (string || '').match(matcher),\n chunk,\n parts,\n minutes;\n\n if (matches === null) {\n return null;\n }\n\n chunk = matches[matches.length - 1] || [];\n parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n }\n\n // Return a moment from input, that is local/utc/zone equivalent to model.\n function cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff =\n (isMoment(input) || isDate(input)\n ? input.valueOf()\n : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else {\n return createLocal(input).local();\n }\n }\n\n function getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset());\n }\n\n // HOOKS\n\n // This function will be called whenever a moment is mutated.\n // It is intended to keep the offset in sync with the timezone.\n hooks.updateOffset = function () {};\n\n // MOMENTS\n\n // keepLocalTime = true means only change the timezone, without\n // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n // +0200, so we adjust the time as needed, to be valid.\n //\n // Keeping the time actually adds/subtracts (one hour)\n // from the actual represented time. That is why we call updateOffset\n // a second time. In case it wants us to change the offset again\n // _changeInProgress == true case, then we have to adjust, because\n // there is no such time in the given timezone.\n function getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0,\n localAdjust;\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n if (input != null) {\n if (typeof input === 'string') {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) {\n return this;\n }\n } else if (Math.abs(input) < 16 && !keepMinutes) {\n input = input * 60;\n }\n if (!this._isUTC && keepLocalTime) {\n localAdjust = getDateOffset(this);\n }\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) {\n this.add(localAdjust, 'm');\n }\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) {\n addSubtract(\n this,\n createDuration(input - offset, 'm'),\n 1,\n false\n );\n } else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else {\n return this._isUTC ? offset : getDateOffset(this);\n }\n }\n\n function getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== 'string') {\n input = -input;\n }\n\n this.utcOffset(input, keepLocalTime);\n\n return this;\n } else {\n return -this.utcOffset();\n }\n }\n\n function setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n }\n\n function setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n\n if (keepLocalTime) {\n this.subtract(getDateOffset(this), 'm');\n }\n }\n return this;\n }\n\n function setOffsetToParsedOffset() {\n if (this._tzm != null) {\n this.utcOffset(this._tzm, false, true);\n } else if (typeof this._i === 'string') {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) {\n this.utcOffset(tZone);\n } else {\n this.utcOffset(0, true);\n }\n }\n return this;\n }\n\n function hasAlignedHourOffset(input) {\n if (!this.isValid()) {\n return false;\n }\n input = input ? createLocal(input).utcOffset() : 0;\n\n return (this.utcOffset() - input) % 60 === 0;\n }\n\n function isDaylightSavingTime() {\n return (\n this.utcOffset() > this.clone().month(0).utcOffset() ||\n this.utcOffset() > this.clone().month(5).utcOffset()\n );\n }\n\n function isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) {\n return this._isDSTShifted;\n }\n\n var c = {},\n other;\n\n copyConfig(c, this);\n c = prepareConfig(c);\n\n if (c._a) {\n other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted =\n this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else {\n this._isDSTShifted = false;\n }\n\n return this._isDSTShifted;\n }\n\n function isLocal() {\n return this.isValid() ? !this._isUTC : false;\n }\n\n function isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n }\n\n function isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n }\n\n // ASP.NET json date format regex\n var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n isoRegex =\n /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n function createDuration(input, key) {\n var duration = input,\n // matching against regexp is expensive, do it on demand\n match = null,\n sign,\n ret,\n diffRes;\n\n if (isDuration(input)) {\n duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months,\n };\n } else if (isNumber(input) || !isNaN(+input)) {\n duration = {};\n if (key) {\n duration[key] = +input;\n } else {\n duration.milliseconds = +input;\n }\n } else if ((match = aspNetRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n };\n } else if ((match = isoRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign),\n };\n } else if (duration == null) {\n // checks for null or undefined\n duration = {};\n } else if (\n typeof duration === 'object' &&\n ('from' in duration || 'to' in duration)\n ) {\n diffRes = momentsDifference(\n createLocal(duration.from),\n createLocal(duration.to)\n );\n\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n\n ret = new Duration(duration);\n\n if (isDuration(input) && hasOwnProp(input, '_locale')) {\n ret._locale = input._locale;\n }\n\n if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n ret._isValid = input._isValid;\n }\n\n return ret;\n }\n\n createDuration.fn = Duration.prototype;\n createDuration.invalid = createInvalid$1;\n\n function parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(',', '.'));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n }\n\n function positiveMomentsDifference(base, other) {\n var res = {};\n\n res.months =\n other.month() - base.month() + (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, 'M').isAfter(other)) {\n --res.months;\n }\n\n res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n return res;\n }\n\n function momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) {\n return { milliseconds: 0, months: 0 };\n }\n\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) {\n res = positiveMomentsDifference(base, other);\n } else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n\n return res;\n }\n\n // TODO: remove 'name' arg after deprecation is removed\n function createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(\n name,\n 'moment().' +\n name +\n '(period, number) is deprecated. Please use moment().' +\n name +\n '(number, period). ' +\n 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n );\n tmp = val;\n val = period;\n period = tmp;\n }\n\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n }\n\n function addSubtract(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds,\n days = absRound(duration._days),\n months = absRound(duration._months);\n\n if (!mom.isValid()) {\n // No op\n return;\n }\n\n updateOffset = updateOffset == null ? true : updateOffset;\n\n if (months) {\n setMonth(mom, get(mom, 'Month') + months * isAdding);\n }\n if (days) {\n set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n }\n if (milliseconds) {\n mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n }\n if (updateOffset) {\n hooks.updateOffset(mom, days || months);\n }\n }\n\n var add = createAdder(1, 'add'),\n subtract = createAdder(-1, 'subtract');\n\n function isString(input) {\n return typeof input === 'string' || input instanceof String;\n }\n\n // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n function isMomentInput(input) {\n return (\n isMoment(input) ||\n isDate(input) ||\n isString(input) ||\n isNumber(input) ||\n isNumberOrStringArray(input) ||\n isMomentInputObject(input) ||\n input === null ||\n input === undefined\n );\n }\n\n function isMomentInputObject(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'years',\n 'year',\n 'y',\n 'months',\n 'month',\n 'M',\n 'days',\n 'day',\n 'd',\n 'dates',\n 'date',\n 'D',\n 'hours',\n 'hour',\n 'h',\n 'minutes',\n 'minute',\n 'm',\n 'seconds',\n 'second',\n 's',\n 'milliseconds',\n 'millisecond',\n 'ms',\n ],\n i,\n property,\n propertyLen = properties.length;\n\n for (i = 0; i < propertyLen; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function isNumberOrStringArray(input) {\n var arrayTest = isArray(input),\n dataTypeTest = false;\n if (arrayTest) {\n dataTypeTest =\n input.filter(function (item) {\n return !isNumber(item) && isString(input);\n }).length === 0;\n }\n return arrayTest && dataTypeTest;\n }\n\n function isCalendarSpec(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'sameDay',\n 'nextDay',\n 'lastDay',\n 'nextWeek',\n 'lastWeek',\n 'sameElse',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, 'days', true);\n return diff < -6\n ? 'sameElse'\n : diff < -1\n ? 'lastWeek'\n : diff < 0\n ? 'lastDay'\n : diff < 1\n ? 'sameDay'\n : diff < 2\n ? 'nextDay'\n : diff < 7\n ? 'nextWeek'\n : 'sameElse';\n }\n\n function calendar$1(time, formats) {\n // Support for single parameter, formats only overload to the calendar function\n if (arguments.length === 1) {\n if (!arguments[0]) {\n time = undefined;\n formats = undefined;\n } else if (isMomentInput(arguments[0])) {\n time = arguments[0];\n formats = undefined;\n } else if (isCalendarSpec(arguments[0])) {\n formats = arguments[0];\n time = undefined;\n }\n }\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(),\n sod = cloneWithOffset(now, this).startOf('day'),\n format = hooks.calendarFormat(this, sod) || 'sameElse',\n output =\n formats &&\n (isFunction(formats[format])\n ? formats[format].call(this, now)\n : formats[format]);\n\n return this.format(\n output || this.localeData().calendar(format, this, createLocal(now))\n );\n }\n\n function clone() {\n return new Moment(this);\n }\n\n function isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() > localInput.valueOf();\n } else {\n return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n }\n\n function isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() < localInput.valueOf();\n } else {\n return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n }\n\n function isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from),\n localTo = isMoment(to) ? to : createLocal(to);\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n return false;\n }\n inclusivity = inclusivity || '()';\n return (\n (inclusivity[0] === '('\n ? this.isAfter(localFrom, units)\n : !this.isBefore(localFrom, units)) &&\n (inclusivity[1] === ')'\n ? this.isBefore(localTo, units)\n : !this.isAfter(localTo, units))\n );\n }\n\n function isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input),\n inputMs;\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() === localInput.valueOf();\n } else {\n inputMs = localInput.valueOf();\n return (\n this.clone().startOf(units).valueOf() <= inputMs &&\n inputMs <= this.clone().endOf(units).valueOf()\n );\n }\n }\n\n function isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n }\n\n function isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n }\n\n function diff(input, units, asFloat) {\n var that, zoneDelta, output;\n\n if (!this.isValid()) {\n return NaN;\n }\n\n that = cloneWithOffset(input, this);\n\n if (!that.isValid()) {\n return NaN;\n }\n\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n units = normalizeUnits(units);\n\n switch (units) {\n case 'year':\n output = monthDiff(this, that) / 12;\n break;\n case 'month':\n output = monthDiff(this, that);\n break;\n case 'quarter':\n output = monthDiff(this, that) / 3;\n break;\n case 'second':\n output = (this - that) / 1e3;\n break; // 1000\n case 'minute':\n output = (this - that) / 6e4;\n break; // 1000 * 60\n case 'hour':\n output = (this - that) / 36e5;\n break; // 1000 * 60 * 60\n case 'day':\n output = (this - that - zoneDelta) / 864e5;\n break; // 1000 * 60 * 60 * 24, negate dst\n case 'week':\n output = (this - that - zoneDelta) / 6048e5;\n break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default:\n output = this - that;\n }\n\n return asFloat ? output : absFloor(output);\n }\n\n function monthDiff(a, b) {\n if (a.date() < b.date()) {\n // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -monthDiff(b, a);\n }\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, 'months'),\n anchor2,\n adjust;\n\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n }\n\n hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n function toString() {\n return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n }\n\n function toISOString(keepOffset) {\n if (!this.isValid()) {\n return null;\n }\n var utc = keepOffset !== true,\n m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) {\n return formatMoment(\n m,\n utc\n ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) {\n return this.toDate().toISOString();\n } else {\n return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n .toISOString()\n .replace('Z', formatMoment(m, 'Z'));\n }\n }\n return formatMoment(\n m,\n utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n\n /**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */\n function inspect() {\n if (!this.isValid()) {\n return 'moment.invalid(/* ' + this._i + ' */)';\n }\n var func = 'moment',\n zone = '',\n prefix,\n year,\n datetime,\n suffix;\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n zone = 'Z';\n }\n prefix = '[' + func + '(\"]';\n year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n datetime = '-MM-DD[T]HH:mm:ss.SSS';\n suffix = zone + '[\")]';\n\n return this.format(prefix + year + datetime + suffix);\n }\n\n function format(inputString) {\n if (!inputString) {\n inputString = this.isUtc()\n ? hooks.defaultFormatUtc\n : hooks.defaultFormat;\n }\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n }\n\n function from(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ to: this, from: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n }\n\n function to(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ from: this, to: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n }\n\n // If passed a locale key, it will set the locale for this\n // instance. Otherwise, it will return the locale configuration\n // variables for this instance.\n function locale(key) {\n var newLocaleData;\n\n if (key === undefined) {\n return this._locale._abbr;\n } else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) {\n this._locale = newLocaleData;\n }\n return this;\n }\n }\n\n var lang = deprecate(\n 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n function (key) {\n if (key === undefined) {\n return this.localeData();\n } else {\n return this.locale(key);\n }\n }\n );\n\n function localeData() {\n return this._locale;\n }\n\n var MS_PER_SECOND = 1000,\n MS_PER_MINUTE = 60 * MS_PER_SECOND,\n MS_PER_HOUR = 60 * MS_PER_MINUTE,\n MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n // actual modulo - handles negative numbers (for dates before 1970):\n function mod$1(dividend, divisor) {\n return ((dividend % divisor) + divisor) % divisor;\n }\n\n function localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return new Date(y, m, d).valueOf();\n }\n }\n\n function utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return Date.UTC(y, m, d);\n }\n }\n\n function startOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year(), 0, 1);\n break;\n case 'quarter':\n time = startOfDate(\n this.year(),\n this.month() - (this.month() % 3),\n 1\n );\n break;\n case 'month':\n time = startOfDate(this.year(), this.month(), 1);\n break;\n case 'week':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday()\n );\n break;\n case 'isoWeek':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1)\n );\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n case 'hour':\n time = this._d.valueOf();\n time -= mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n );\n break;\n case 'minute':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_MINUTE);\n break;\n case 'second':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_SECOND);\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function endOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n case 'quarter':\n time =\n startOfDate(\n this.year(),\n this.month() - (this.month() % 3) + 3,\n 1\n ) - 1;\n break;\n case 'month':\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n case 'week':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday() + 7\n ) - 1;\n break;\n case 'isoWeek':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1) + 7\n ) - 1;\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case 'hour':\n time = this._d.valueOf();\n time +=\n MS_PER_HOUR -\n mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n ) -\n 1;\n break;\n case 'minute':\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n break;\n case 'second':\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function valueOf() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n }\n\n function unix() {\n return Math.floor(this.valueOf() / 1000);\n }\n\n function toDate() {\n return new Date(this.valueOf());\n }\n\n function toArray() {\n var m = this;\n return [\n m.year(),\n m.month(),\n m.date(),\n m.hour(),\n m.minute(),\n m.second(),\n m.millisecond(),\n ];\n }\n\n function toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds(),\n };\n }\n\n function toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n }\n\n function isValid$2() {\n return isValid(this);\n }\n\n function parsingFlags() {\n return extend({}, getParsingFlags(this));\n }\n\n function invalidAt() {\n return getParsingFlags(this).overflow;\n }\n\n function creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict,\n };\n }\n\n addFormatToken('N', 0, 0, 'eraAbbr');\n addFormatToken('NN', 0, 0, 'eraAbbr');\n addFormatToken('NNN', 0, 0, 'eraAbbr');\n addFormatToken('NNNN', 0, 0, 'eraName');\n addFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\n addFormatToken('y', ['y', 1], 'yo', 'eraYear');\n addFormatToken('y', ['yy', 2], 0, 'eraYear');\n addFormatToken('y', ['yyy', 3], 0, 'eraYear');\n addFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\n addRegexToken('N', matchEraAbbr);\n addRegexToken('NN', matchEraAbbr);\n addRegexToken('NNN', matchEraAbbr);\n addRegexToken('NNNN', matchEraName);\n addRegexToken('NNNNN', matchEraNarrow);\n\n addParseToken(\n ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],\n function (input, array, config, token) {\n var era = config._locale.erasParse(input, token, config._strict);\n if (era) {\n getParsingFlags(config).era = era;\n } else {\n getParsingFlags(config).invalidEra = input;\n }\n }\n );\n\n addRegexToken('y', matchUnsigned);\n addRegexToken('yy', matchUnsigned);\n addRegexToken('yyy', matchUnsigned);\n addRegexToken('yyyy', matchUnsigned);\n addRegexToken('yo', matchEraYearOrdinal);\n\n addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\n addParseToken(['yo'], function (input, array, config, token) {\n var match;\n if (config._locale._eraYearOrdinalRegex) {\n match = input.match(config._locale._eraYearOrdinalRegex);\n }\n\n if (config._locale.eraYearOrdinalParse) {\n array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n } else {\n array[YEAR] = parseInt(input, 10);\n }\n });\n\n function localeEras(m, format) {\n var i,\n l,\n date,\n eras = this._eras || getLocale('en')._eras;\n for (i = 0, l = eras.length; i < l; ++i) {\n switch (typeof eras[i].since) {\n case 'string':\n // truncate time\n date = hooks(eras[i].since).startOf('day');\n eras[i].since = date.valueOf();\n break;\n }\n\n switch (typeof eras[i].until) {\n case 'undefined':\n eras[i].until = +Infinity;\n break;\n case 'string':\n // truncate time\n date = hooks(eras[i].until).startOf('day').valueOf();\n eras[i].until = date.valueOf();\n break;\n }\n }\n return eras;\n }\n\n function localeErasParse(eraName, format, strict) {\n var i,\n l,\n eras = this.eras(),\n name,\n abbr,\n narrow;\n eraName = eraName.toUpperCase();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n name = eras[i].name.toUpperCase();\n abbr = eras[i].abbr.toUpperCase();\n narrow = eras[i].narrow.toUpperCase();\n\n if (strict) {\n switch (format) {\n case 'N':\n case 'NN':\n case 'NNN':\n if (abbr === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNN':\n if (name === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNNN':\n if (narrow === eraName) {\n return eras[i];\n }\n break;\n }\n } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n return eras[i];\n }\n }\n }\n\n function localeErasConvertYear(era, year) {\n var dir = era.since <= era.until ? +1 : -1;\n if (year === undefined) {\n return hooks(era.since).year();\n } else {\n return hooks(era.since).year() + (year - era.offset) * dir;\n }\n }\n\n function getEraName() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].name;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].name;\n }\n }\n\n return '';\n }\n\n function getEraNarrow() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].narrow;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].narrow;\n }\n }\n\n return '';\n }\n\n function getEraAbbr() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].abbr;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].abbr;\n }\n }\n\n return '';\n }\n\n function getEraYear() {\n var i,\n l,\n dir,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n dir = eras[i].since <= eras[i].until ? +1 : -1;\n\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (\n (eras[i].since <= val && val <= eras[i].until) ||\n (eras[i].until <= val && val <= eras[i].since)\n ) {\n return (\n (this.year() - hooks(eras[i].since).year()) * dir +\n eras[i].offset\n );\n }\n }\n\n return this.year();\n }\n\n function erasNameRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNameRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNameRegex : this._erasRegex;\n }\n\n function erasAbbrRegex(isStrict) {\n if (!hasOwnProp(this, '_erasAbbrRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasAbbrRegex : this._erasRegex;\n }\n\n function erasNarrowRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNarrowRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNarrowRegex : this._erasRegex;\n }\n\n function matchEraAbbr(isStrict, locale) {\n return locale.erasAbbrRegex(isStrict);\n }\n\n function matchEraName(isStrict, locale) {\n return locale.erasNameRegex(isStrict);\n }\n\n function matchEraNarrow(isStrict, locale) {\n return locale.erasNarrowRegex(isStrict);\n }\n\n function matchEraYearOrdinal(isStrict, locale) {\n return locale._eraYearOrdinalRegex || matchUnsigned;\n }\n\n function computeErasParse() {\n var abbrPieces = [],\n namePieces = [],\n narrowPieces = [],\n mixedPieces = [],\n i,\n l,\n erasName,\n erasAbbr,\n erasNarrow,\n eras = this.eras();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n erasName = regexEscape(eras[i].name);\n erasAbbr = regexEscape(eras[i].abbr);\n erasNarrow = regexEscape(eras[i].narrow);\n\n namePieces.push(erasName);\n abbrPieces.push(erasAbbr);\n narrowPieces.push(erasNarrow);\n mixedPieces.push(erasName);\n mixedPieces.push(erasAbbr);\n mixedPieces.push(erasNarrow);\n }\n\n this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n this._erasNarrowRegex = new RegExp(\n '^(' + narrowPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n addFormatToken(0, ['gg', 2], 0, function () {\n return this.weekYear() % 100;\n });\n\n addFormatToken(0, ['GG', 2], 0, function () {\n return this.isoWeekYear() % 100;\n });\n\n function addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [token, token.length], 0, getter);\n }\n\n addWeekYearFormatToken('gggg', 'weekYear');\n addWeekYearFormatToken('ggggg', 'weekYear');\n addWeekYearFormatToken('GGGG', 'isoWeekYear');\n addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n // ALIASES\n\n // PARSING\n\n addRegexToken('G', matchSigned);\n addRegexToken('g', matchSigned);\n addRegexToken('GG', match1to2, match2);\n addRegexToken('gg', match1to2, match2);\n addRegexToken('GGGG', match1to4, match4);\n addRegexToken('gggg', match1to4, match4);\n addRegexToken('GGGGG', match1to6, match6);\n addRegexToken('ggggg', match1to6, match6);\n\n addWeekParseToken(\n ['gggg', 'ggggg', 'GGGG', 'GGGGG'],\n function (input, week, config, token) {\n week[token.substr(0, 2)] = toInt(input);\n }\n );\n\n addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n });\n\n // MOMENTS\n\n function getSetWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.week(),\n this.weekday() + this.localeData()._week.dow,\n this.localeData()._week.dow,\n this.localeData()._week.doy\n );\n }\n\n function getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.isoWeek(),\n this.isoWeekday(),\n 1,\n 4\n );\n }\n\n function getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n }\n\n function getISOWeeksInISOWeekYear() {\n return weeksInYear(this.isoWeekYear(), 1, 4);\n }\n\n function getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n }\n\n function getWeeksInWeekYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n }\n\n function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) {\n return weekOfYear(this, dow, doy).year;\n } else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) {\n week = weeksTarget;\n }\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n }\n\n function setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n }\n\n // FORMATTING\n\n addFormatToken('Q', 0, 'Qo', 'quarter');\n\n // PARSING\n\n addRegexToken('Q', match1);\n addParseToken('Q', function (input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n });\n\n // MOMENTS\n\n function getSetQuarter(input) {\n return input == null\n ? Math.ceil((this.month() + 1) / 3)\n : this.month((input - 1) * 3 + (this.month() % 3));\n }\n\n // FORMATTING\n\n addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n // PARSING\n\n addRegexToken('D', match1to2, match1to2NoLeadingZero);\n addRegexToken('DD', match1to2, match2);\n addRegexToken('Do', function (isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict\n ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n : locale._dayOfMonthOrdinalParseLenient;\n });\n\n addParseToken(['D', 'DD'], DATE);\n addParseToken('Do', function (input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n });\n\n // MOMENTS\n\n var getSetDayOfMonth = makeGetSet('Date', true);\n\n // FORMATTING\n\n addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n // PARSING\n\n addRegexToken('DDD', match1to3);\n addRegexToken('DDDD', match3);\n addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n config._dayOfYear = toInt(input);\n });\n\n // HELPERS\n\n // MOMENTS\n\n function getSetDayOfYear(input) {\n var dayOfYear =\n Math.round(\n (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n ) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('m', ['mm', 2], 0, 'minute');\n\n // PARSING\n\n addRegexToken('m', match1to2, match1to2HasZero);\n addRegexToken('mm', match1to2, match2);\n addParseToken(['m', 'mm'], MINUTE);\n\n // MOMENTS\n\n var getSetMinute = makeGetSet('Minutes', false);\n\n // FORMATTING\n\n addFormatToken('s', ['ss', 2], 0, 'second');\n\n // PARSING\n\n addRegexToken('s', match1to2, match1to2HasZero);\n addRegexToken('ss', match1to2, match2);\n addParseToken(['s', 'ss'], SECOND);\n\n // MOMENTS\n\n var getSetSecond = makeGetSet('Seconds', false);\n\n // FORMATTING\n\n addFormatToken('S', 0, 0, function () {\n return ~~(this.millisecond() / 100);\n });\n\n addFormatToken(0, ['SS', 2], 0, function () {\n return ~~(this.millisecond() / 10);\n });\n\n addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n addFormatToken(0, ['SSSS', 4], 0, function () {\n return this.millisecond() * 10;\n });\n addFormatToken(0, ['SSSSS', 5], 0, function () {\n return this.millisecond() * 100;\n });\n addFormatToken(0, ['SSSSSS', 6], 0, function () {\n return this.millisecond() * 1000;\n });\n addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n return this.millisecond() * 10000;\n });\n addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n return this.millisecond() * 100000;\n });\n addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n return this.millisecond() * 1000000;\n });\n\n // PARSING\n\n addRegexToken('S', match1to3, match1);\n addRegexToken('SS', match1to3, match2);\n addRegexToken('SSS', match1to3, match3);\n\n var token, getSetMillisecond;\n for (token = 'SSSS'; token.length <= 9; token += 'S') {\n addRegexToken(token, matchUnsigned);\n }\n\n function parseMs(input, array) {\n array[MILLISECOND] = toInt(('0.' + input) * 1000);\n }\n\n for (token = 'S'; token.length <= 9; token += 'S') {\n addParseToken(token, parseMs);\n }\n\n getSetMillisecond = makeGetSet('Milliseconds', false);\n\n // FORMATTING\n\n addFormatToken('z', 0, 0, 'zoneAbbr');\n addFormatToken('zz', 0, 0, 'zoneName');\n\n // MOMENTS\n\n function getZoneAbbr() {\n return this._isUTC ? 'UTC' : '';\n }\n\n function getZoneName() {\n return this._isUTC ? 'Coordinated Universal Time' : '';\n }\n\n var proto = Moment.prototype;\n\n proto.add = add;\n proto.calendar = calendar$1;\n proto.clone = clone;\n proto.diff = diff;\n proto.endOf = endOf;\n proto.format = format;\n proto.from = from;\n proto.fromNow = fromNow;\n proto.to = to;\n proto.toNow = toNow;\n proto.get = stringGet;\n proto.invalidAt = invalidAt;\n proto.isAfter = isAfter;\n proto.isBefore = isBefore;\n proto.isBetween = isBetween;\n proto.isSame = isSame;\n proto.isSameOrAfter = isSameOrAfter;\n proto.isSameOrBefore = isSameOrBefore;\n proto.isValid = isValid$2;\n proto.lang = lang;\n proto.locale = locale;\n proto.localeData = localeData;\n proto.max = prototypeMax;\n proto.min = prototypeMin;\n proto.parsingFlags = parsingFlags;\n proto.set = stringSet;\n proto.startOf = startOf;\n proto.subtract = subtract;\n proto.toArray = toArray;\n proto.toObject = toObject;\n proto.toDate = toDate;\n proto.toISOString = toISOString;\n proto.inspect = inspect;\n if (typeof Symbol !== 'undefined' && Symbol.for != null) {\n proto[Symbol.for('nodejs.util.inspect.custom')] = function () {\n return 'Moment<' + this.format() + '>';\n };\n }\n proto.toJSON = toJSON;\n proto.toString = toString;\n proto.unix = unix;\n proto.valueOf = valueOf;\n proto.creationData = creationData;\n proto.eraName = getEraName;\n proto.eraNarrow = getEraNarrow;\n proto.eraAbbr = getEraAbbr;\n proto.eraYear = getEraYear;\n proto.year = getSetYear;\n proto.isLeapYear = getIsLeapYear;\n proto.weekYear = getSetWeekYear;\n proto.isoWeekYear = getSetISOWeekYear;\n proto.quarter = proto.quarters = getSetQuarter;\n proto.month = getSetMonth;\n proto.daysInMonth = getDaysInMonth;\n proto.week = proto.weeks = getSetWeek;\n proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n proto.weeksInYear = getWeeksInYear;\n proto.weeksInWeekYear = getWeeksInWeekYear;\n proto.isoWeeksInYear = getISOWeeksInYear;\n proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n proto.date = getSetDayOfMonth;\n proto.day = proto.days = getSetDayOfWeek;\n proto.weekday = getSetLocaleDayOfWeek;\n proto.isoWeekday = getSetISODayOfWeek;\n proto.dayOfYear = getSetDayOfYear;\n proto.hour = proto.hours = getSetHour;\n proto.minute = proto.minutes = getSetMinute;\n proto.second = proto.seconds = getSetSecond;\n proto.millisecond = proto.milliseconds = getSetMillisecond;\n proto.utcOffset = getSetOffset;\n proto.utc = setOffsetToUTC;\n proto.local = setOffsetToLocal;\n proto.parseZone = setOffsetToParsedOffset;\n proto.hasAlignedHourOffset = hasAlignedHourOffset;\n proto.isDST = isDaylightSavingTime;\n proto.isLocal = isLocal;\n proto.isUtcOffset = isUtcOffset;\n proto.isUtc = isUtc;\n proto.isUTC = isUtc;\n proto.zoneAbbr = getZoneAbbr;\n proto.zoneName = getZoneName;\n proto.dates = deprecate(\n 'dates accessor is deprecated. Use date instead.',\n getSetDayOfMonth\n );\n proto.months = deprecate(\n 'months accessor is deprecated. Use month instead',\n getSetMonth\n );\n proto.years = deprecate(\n 'years accessor is deprecated. Use year instead',\n getSetYear\n );\n proto.zone = deprecate(\n 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n getSetZone\n );\n proto.isDSTShifted = deprecate(\n 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n isDaylightSavingTimeShifted\n );\n\n function createUnix(input) {\n return createLocal(input * 1000);\n }\n\n function createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n }\n\n function preParsePostFormat(string) {\n return string;\n }\n\n var proto$1 = Locale.prototype;\n\n proto$1.calendar = calendar;\n proto$1.longDateFormat = longDateFormat;\n proto$1.invalidDate = invalidDate;\n proto$1.ordinal = ordinal;\n proto$1.preparse = preParsePostFormat;\n proto$1.postformat = preParsePostFormat;\n proto$1.relativeTime = relativeTime;\n proto$1.pastFuture = pastFuture;\n proto$1.set = set;\n proto$1.eras = localeEras;\n proto$1.erasParse = localeErasParse;\n proto$1.erasConvertYear = localeErasConvertYear;\n proto$1.erasAbbrRegex = erasAbbrRegex;\n proto$1.erasNameRegex = erasNameRegex;\n proto$1.erasNarrowRegex = erasNarrowRegex;\n\n proto$1.months = localeMonths;\n proto$1.monthsShort = localeMonthsShort;\n proto$1.monthsParse = localeMonthsParse;\n proto$1.monthsRegex = monthsRegex;\n proto$1.monthsShortRegex = monthsShortRegex;\n proto$1.week = localeWeek;\n proto$1.firstDayOfYear = localeFirstDayOfYear;\n proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\n proto$1.weekdays = localeWeekdays;\n proto$1.weekdaysMin = localeWeekdaysMin;\n proto$1.weekdaysShort = localeWeekdaysShort;\n proto$1.weekdaysParse = localeWeekdaysParse;\n\n proto$1.weekdaysRegex = weekdaysRegex;\n proto$1.weekdaysShortRegex = weekdaysShortRegex;\n proto$1.weekdaysMinRegex = weekdaysMinRegex;\n\n proto$1.isPM = localeIsPM;\n proto$1.meridiem = localeMeridiem;\n\n function get$1(format, index, field, setter) {\n var locale = getLocale(),\n utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n }\n\n function listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n\n if (index != null) {\n return get$1(format, index, field, 'month');\n }\n\n var i,\n out = [];\n for (i = 0; i < 12; i++) {\n out[i] = get$1(format, i, field, 'month');\n }\n return out;\n }\n\n // ()\n // (5)\n // (fmt, 5)\n // (fmt)\n // (true)\n // (true, 5)\n // (true, fmt, 5)\n // (true, fmt)\n function listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === 'boolean') {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n }\n\n var locale = getLocale(),\n shift = localeSorted ? locale._week.dow : 0,\n i,\n out = [];\n\n if (index != null) {\n return get$1(format, (index + shift) % 7, field, 'day');\n }\n\n for (i = 0; i < 7; i++) {\n out[i] = get$1(format, (i + shift) % 7, field, 'day');\n }\n return out;\n }\n\n function listMonths(format, index) {\n return listMonthsImpl(format, index, 'months');\n }\n\n function listMonthsShort(format, index) {\n return listMonthsImpl(format, index, 'monthsShort');\n }\n\n function listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n }\n\n function listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n }\n\n function listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n }\n\n getSetGlobalLocale('en', {\n eras: [\n {\n since: '0001-01-01',\n until: +Infinity,\n offset: 1,\n name: 'Anno Domini',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: 'Before Christ',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n toInt((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n // Side effect imports\n\n hooks.lang = deprecate(\n 'moment.lang is deprecated. Use moment.locale instead.',\n getSetGlobalLocale\n );\n hooks.langData = deprecate(\n 'moment.langData is deprecated. Use moment.localeData instead.',\n getLocale\n );\n\n var mathAbs = Math.abs;\n\n function abs() {\n var data = this._data;\n\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n\n return this;\n }\n\n function addSubtract$1(duration, input, value, direction) {\n var other = createDuration(input, value);\n\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n\n return duration._bubble();\n }\n\n // supports only 2.0-style add(1, 's') or add(duration)\n function add$1(input, value) {\n return addSubtract$1(this, input, value, 1);\n }\n\n // supports only 2.0-style subtract(1, 's') or subtract(duration)\n function subtract$1(input, value) {\n return addSubtract$1(this, input, value, -1);\n }\n\n function absCeil(number) {\n if (number < 0) {\n return Math.floor(number);\n } else {\n return Math.ceil(number);\n }\n }\n\n function bubble() {\n var milliseconds = this._milliseconds,\n days = this._days,\n months = this._months,\n data = this._data,\n seconds,\n minutes,\n hours,\n years,\n monthsFromDays;\n\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (\n !(\n (milliseconds >= 0 && days >= 0 && months >= 0) ||\n (milliseconds <= 0 && days <= 0 && months <= 0)\n )\n ) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n\n days += absFloor(hours / 24);\n\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n data.days = days;\n data.months = months;\n data.years = years;\n\n return this;\n }\n\n function daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return (days * 4800) / 146097;\n }\n\n function monthsToDays(months) {\n // the reverse of daysToMonths\n return (months * 146097) / 4800;\n }\n\n function as(units) {\n if (!this.isValid()) {\n return NaN;\n }\n var days,\n months,\n milliseconds = this._milliseconds;\n\n units = normalizeUnits(units);\n\n if (units === 'month' || units === 'quarter' || units === 'year') {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n switch (units) {\n case 'month':\n return months;\n case 'quarter':\n return months / 3;\n case 'year':\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch (units) {\n case 'week':\n return days / 7 + milliseconds / 6048e5;\n case 'day':\n return days + milliseconds / 864e5;\n case 'hour':\n return days * 24 + milliseconds / 36e5;\n case 'minute':\n return days * 1440 + milliseconds / 6e4;\n case 'second':\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case 'millisecond':\n return Math.floor(days * 864e5) + milliseconds;\n default:\n throw new Error('Unknown unit ' + units);\n }\n }\n }\n\n function makeAs(alias) {\n return function () {\n return this.as(alias);\n };\n }\n\n var asMilliseconds = makeAs('ms'),\n asSeconds = makeAs('s'),\n asMinutes = makeAs('m'),\n asHours = makeAs('h'),\n asDays = makeAs('d'),\n asWeeks = makeAs('w'),\n asMonths = makeAs('M'),\n asQuarters = makeAs('Q'),\n asYears = makeAs('y'),\n valueOf$1 = asMilliseconds;\n\n function clone$1() {\n return createDuration(this);\n }\n\n function get$2(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + 's']() : NaN;\n }\n\n function makeGetter(name) {\n return function () {\n return this.isValid() ? this._data[name] : NaN;\n };\n }\n\n var milliseconds = makeGetter('milliseconds'),\n seconds = makeGetter('seconds'),\n minutes = makeGetter('minutes'),\n hours = makeGetter('hours'),\n days = makeGetter('days'),\n months = makeGetter('months'),\n years = makeGetter('years');\n\n function weeks() {\n return absFloor(this.days() / 7);\n }\n\n var round = Math.round,\n thresholds = {\n ss: 44, // a few seconds to seconds\n s: 45, // seconds to minute\n m: 45, // minutes to hour\n h: 22, // hours to day\n d: 26, // days to month/week\n w: null, // weeks to month\n M: 11, // months to year\n };\n\n // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n }\n\n function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n var duration = createDuration(posNegDuration).abs(),\n seconds = round(duration.as('s')),\n minutes = round(duration.as('m')),\n hours = round(duration.as('h')),\n days = round(duration.as('d')),\n months = round(duration.as('M')),\n weeks = round(duration.as('w')),\n years = round(duration.as('y')),\n a =\n (seconds <= thresholds.ss && ['s', seconds]) ||\n (seconds < thresholds.s && ['ss', seconds]) ||\n (minutes <= 1 && ['m']) ||\n (minutes < thresholds.m && ['mm', minutes]) ||\n (hours <= 1 && ['h']) ||\n (hours < thresholds.h && ['hh', hours]) ||\n (days <= 1 && ['d']) ||\n (days < thresholds.d && ['dd', days]);\n\n if (thresholds.w != null) {\n a =\n a ||\n (weeks <= 1 && ['w']) ||\n (weeks < thresholds.w && ['ww', weeks]);\n }\n a = a ||\n (months <= 1 && ['M']) ||\n (months < thresholds.M && ['MM', months]) ||\n (years <= 1 && ['y']) || ['yy', years];\n\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n }\n\n // This function allows you to set the rounding function for relative time strings\n function getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) {\n return round;\n }\n if (typeof roundingFunction === 'function') {\n round = roundingFunction;\n return true;\n }\n return false;\n }\n\n // This function allows you to set a threshold for relative time strings\n function getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) {\n return false;\n }\n if (limit === undefined) {\n return thresholds[threshold];\n }\n thresholds[threshold] = limit;\n if (threshold === 's') {\n thresholds.ss = limit - 1;\n }\n return true;\n }\n\n function humanize(argWithSuffix, argThresholds) {\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var withSuffix = false,\n th = thresholds,\n locale,\n output;\n\n if (typeof argWithSuffix === 'object') {\n argThresholds = argWithSuffix;\n argWithSuffix = false;\n }\n if (typeof argWithSuffix === 'boolean') {\n withSuffix = argWithSuffix;\n }\n if (typeof argThresholds === 'object') {\n th = Object.assign({}, thresholds, argThresholds);\n if (argThresholds.s != null && argThresholds.ss == null) {\n th.ss = argThresholds.s - 1;\n }\n }\n\n locale = this.localeData();\n output = relativeTime$1(this, !withSuffix, th, locale);\n\n if (withSuffix) {\n output = locale.pastFuture(+this, output);\n }\n\n return locale.postformat(output);\n }\n\n var abs$1 = Math.abs;\n\n function sign(x) {\n return (x > 0) - (x < 0) || +x;\n }\n\n function toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var seconds = abs$1(this._milliseconds) / 1000,\n days = abs$1(this._days),\n months = abs$1(this._months),\n minutes,\n hours,\n years,\n s,\n total = this.asSeconds(),\n totalSign,\n ymSign,\n daysSign,\n hmsSign;\n\n if (!total) {\n // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return 'P0D';\n }\n\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n totalSign = total < 0 ? '-' : '';\n ymSign = sign(this._months) !== sign(total) ? '-' : '';\n daysSign = sign(this._days) !== sign(total) ? '-' : '';\n hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n return (\n totalSign +\n 'P' +\n (years ? ymSign + years + 'Y' : '') +\n (months ? ymSign + months + 'M' : '') +\n (days ? daysSign + days + 'D' : '') +\n (hours || minutes || seconds ? 'T' : '') +\n (hours ? hmsSign + hours + 'H' : '') +\n (minutes ? hmsSign + minutes + 'M' : '') +\n (seconds ? hmsSign + s + 'S' : '')\n );\n }\n\n var proto$2 = Duration.prototype;\n\n proto$2.isValid = isValid$1;\n proto$2.abs = abs;\n proto$2.add = add$1;\n proto$2.subtract = subtract$1;\n proto$2.as = as;\n proto$2.asMilliseconds = asMilliseconds;\n proto$2.asSeconds = asSeconds;\n proto$2.asMinutes = asMinutes;\n proto$2.asHours = asHours;\n proto$2.asDays = asDays;\n proto$2.asWeeks = asWeeks;\n proto$2.asMonths = asMonths;\n proto$2.asQuarters = asQuarters;\n proto$2.asYears = asYears;\n proto$2.valueOf = valueOf$1;\n proto$2._bubble = bubble;\n proto$2.clone = clone$1;\n proto$2.get = get$2;\n proto$2.milliseconds = milliseconds;\n proto$2.seconds = seconds;\n proto$2.minutes = minutes;\n proto$2.hours = hours;\n proto$2.days = days;\n proto$2.weeks = weeks;\n proto$2.months = months;\n proto$2.years = years;\n proto$2.humanize = humanize;\n proto$2.toISOString = toISOString$1;\n proto$2.toString = toISOString$1;\n proto$2.toJSON = toISOString$1;\n proto$2.locale = locale;\n proto$2.localeData = localeData;\n\n proto$2.toIsoString = deprecate(\n 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n toISOString$1\n );\n proto$2.lang = lang;\n\n // FORMATTING\n\n addFormatToken('X', 0, 0, 'unix');\n addFormatToken('x', 0, 0, 'valueOf');\n\n // PARSING\n\n addRegexToken('x', matchSigned);\n addRegexToken('X', matchTimestamp);\n addParseToken('X', function (input, array, config) {\n config._d = new Date(parseFloat(input) * 1000);\n });\n addParseToken('x', function (input, array, config) {\n config._d = new Date(toInt(input));\n });\n\n //! moment.js\n\n hooks.version = '2.30.1';\n\n setHookCallback(createLocal);\n\n hooks.fn = proto;\n hooks.min = min;\n hooks.max = max;\n hooks.now = now;\n hooks.utc = createUTC;\n hooks.unix = createUnix;\n hooks.months = listMonths;\n hooks.isDate = isDate;\n hooks.locale = getSetGlobalLocale;\n hooks.invalid = createInvalid;\n hooks.duration = createDuration;\n hooks.isMoment = isMoment;\n hooks.weekdays = listWeekdays;\n hooks.parseZone = createInZone;\n hooks.localeData = getLocale;\n hooks.isDuration = isDuration;\n hooks.monthsShort = listMonthsShort;\n hooks.weekdaysMin = listWeekdaysMin;\n hooks.defineLocale = defineLocale;\n hooks.updateLocale = updateLocale;\n hooks.locales = listLocales;\n hooks.weekdaysShort = listWeekdaysShort;\n hooks.normalizeUnits = normalizeUnits;\n hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n hooks.calendarFormat = getCalendarFormat;\n hooks.prototype = proto;\n\n // currently HTML5 input type only supports 24-hour formats\n hooks.HTML5_FMT = {\n DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // \n DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // \n DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // \n DATE: 'YYYY-MM-DD', // \n TIME: 'HH:mm', // \n TIME_SECONDS: 'HH:mm:ss', // \n TIME_MS: 'HH:mm:ss.SSS', // \n WEEK: 'GGGG-[W]WW', // \n MONTH: 'YYYY-MM', // \n };\n\n return hooks;\n\n})));\n","import moment from 'moment';\nimport Notify from 'simple-notify';\n\nimport {\n ASH_COUNTER_TYPE_COUNT,\n ASH_COUNTERS_MATCH,\n DURATION_WARNING_FACTOR,\n EMBER_COUNTER_TYPE_COUNT,\n EMBER_COUNTERS_PER_DEVICE_IRRELEVANTS,\n FAILED_PING_1_ATTEMPT_MATCH,\n FAILED_PING_2_ATTEMPTS_MATCH,\n FAILED_PING_MATCH,\n MIN_DURATION,\n NCP_COUNTERS_MATCH,\n NETWORK_ROUTE_ERROR_MATCH,\n ROUTING_ERROR_DUP_IGNORE_MS,\n START_OFFSET,\n TIMESTAMP_REGEX,\n} from './consts';\nimport {\n ASH_COUNTERS_NOTICE,\n EMBER_STACK_ERRORS_NOTICE,\n IDEAL_ASH_COUNTERS,\n IDEAL_ASH_COUNTERS_FACTORS,\n IDEAL_NCP_COUNTERS,\n IDEAL_NCP_COUNTERS_FACTORS,\n IDEAL_ROUTER_RATIO,\n NCP_COUNTERS_NOTICE,\n} from './data';\nimport { getValueClassName, makeButton, makeListCard, makeMessage, makeTable, makeTableContainer } from './dom';\nimport { NotifyError } from './notify-error';\nimport {\n AshCounters,\n EmberCounters,\n LogAshCounters,\n LogFailedPings,\n LogMetadata,\n LogNcpCounters,\n LogNetworkRouteErrors,\n TableCellData,\n} from './types';\nimport { round, toHex } from './utils';\nimport { AshCounterType, EmberCounterType, EmberStackError } from './zh';\n\n/** z2m default */\nlet timestampFormat: string = 'YYYY-MM-DD HH:mm:ss';\nlet routers: number = 0;\nlet endDevices: number = 0;\nlet totalDevices: number = 0;\nlet logFile: File;\nconst logMetadata: LogMetadata = {\n lines: 0,\n start: undefined,\n end: undefined,\n duration: 0,\n startOffset: undefined,\n};\n\nconst ncpCountersSum: EmberCounters = [\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n];\nconst ncpCountersHoursCount: [\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\nconst ncpCounters: LogNcpCounters = {\n all: [],\n avg: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n ],\n};\nconst ashCountersSum: AshCounters = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\nconst ashCountersHoursCount: [\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n number,\n] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n\nconst ashCounters: LogAshCounters = {\n all: [],\n avg: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n avgPerDevice: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n avgByHour: [\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n ],\n};\n\nconst networkRouteErrors: LogNetworkRouteErrors = {\n all: [],\n};\n\nconst failedPings: LogFailedPings = {\n all: [],\n};\n\nfunction initVariables(): void {\n routers = 0;\n endDevices = 0;\n totalDevices = 0;\n // @ts-expect-error whatever\n logFile = undefined;\n logMetadata.lines = 0;\n logMetadata.start = undefined;\n logMetadata.end = undefined;\n logMetadata.duration = 0;\n logMetadata.startOffset = undefined;\n\n ncpCountersSum.fill(0);\n ncpCountersHoursCount.fill(0);\n ncpCounters.all = [];\n ncpCounters.avg.fill(0);\n ncpCounters.avgPerDevice.fill(0);\n\n for (let i = 0; i < ncpCounters.avgByHour.length; i++) {\n ncpCounters.avgByHour[i].fill(0);\n }\n\n ashCountersSum.fill(0);\n ashCountersHoursCount.fill(0);\n ashCounters.all = [];\n ashCounters.avg.fill(0);\n ashCounters.avgPerDevice.fill(0);\n\n for (let i = 0; i < ashCounters.avgByHour.length; i++) {\n ashCounters.avgByHour[i].fill(0);\n }\n\n networkRouteErrors.all = [];\n}\n\n// Adapted @from https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/read#example_2_-_handling_text_line_by_line\nasync function* makeTextFileLineIterator(file: File): AsyncGenerator {\n const utf8Decoder = new TextDecoder('utf8');\n const reader = file.stream().getReader();\n let { value, done } = await reader.read();\n let chunk = value ? utf8Decoder.decode(value, { stream: true }) : '';\n\n const re = /\\r\\n|\\n|\\r/gm;\n let startIndex = 0;\n\n for (;;) {\n const result = re.exec(chunk);\n\n if (!result) {\n if (done) {\n break;\n }\n\n const remainder = chunk.slice(startIndex);\n\n ({ value, done } = await reader.read());\n\n chunk = remainder + (value ? utf8Decoder.decode(value, { stream: true }) : '');\n // eslint-disable-next-line no-multi-assign\n startIndex = re.lastIndex = 0;\n\n continue;\n }\n\n yield chunk.slice(startIndex, result.index);\n\n startIndex = re.lastIndex;\n }\n\n if (startIndex < chunk.length) {\n // last line didn't end in a newline char\n yield chunk.slice(startIndex);\n }\n}\n\nfunction parseLogLine(line: string): void {\n const timestampMatch = line.match(TIMESTAMP_REGEX);\n\n if (!timestampMatch) {\n // shouldn't happen with new logging, but just in case, ignore lines without timestamp\n return;\n }\n\n logMetadata.lines++;\n\n const timestampStr = timestampMatch[0].slice(1, -1);\n const timestamp = new Date(timestampStr);\n\n if (!logMetadata.start) {\n logMetadata.start = timestamp;\n logMetadata.startOffset = new Date(timestamp.getTime() + START_OFFSET);\n }\n\n logMetadata.end = timestamp;\n const hour = timestamp.getHours();\n\n const ncpCountersIndex = line.indexOf(NCP_COUNTERS_MATCH);\n\n if (ncpCountersIndex !== -1) {\n const subLine = line.slice(ncpCountersIndex + NCP_COUNTERS_MATCH.length);\n const counters = subLine.split(',').map((v) => Number.parseInt(v, 10));\n\n if (counters.length !== EMBER_COUNTER_TYPE_COUNT) {\n return;\n }\n\n // @ts-expect-error length validated above\n ncpCounters.all.push([timestamp, ...counters]);\n\n for (let i = 0; i < EMBER_COUNTER_TYPE_COUNT; i++) {\n // TODO: deal with 65535 & rollover\n const cI = counters[i];\n ncpCountersSum[i] += cI;\n ncpCounters.avgByHour[hour][i] += cI;\n }\n\n ncpCountersHoursCount[hour] += 1;\n\n return;\n }\n\n const ashCountersIndex = line.indexOf(ASH_COUNTERS_MATCH);\n\n if (ashCountersIndex !== -1) {\n const subLine = line.slice(ashCountersIndex + ASH_COUNTERS_MATCH.length);\n const counters = subLine.split(',').map((v) => Number.parseInt(v, 10));\n\n if (counters.length !== ASH_COUNTER_TYPE_COUNT) {\n return;\n }\n\n // @ts-expect-error length validated above\n ashCounters.all.push([timestamp, ...counters]);\n\n for (let i = 0; i < ASH_COUNTER_TYPE_COUNT; i++) {\n const cI = counters[i];\n ashCountersSum[i] += cI;\n ashCounters.avgByHour[hour][i] += cI;\n }\n\n ashCountersHoursCount[hour] += 1;\n\n return;\n }\n\n const networkRouteErrorIndex = line.indexOf(NETWORK_ROUTE_ERROR_MATCH);\n\n if (networkRouteErrorIndex !== -1) {\n // ignore network/route errors around Z2M start\n if (timestamp < logMetadata.startOffset!) {\n return;\n }\n\n const subLine = line.slice(networkRouteErrorIndex + NETWORK_ROUTE_ERROR_MATCH.length);\n const splitLine = subLine.split(' '); // ['ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE', 'for', '\"38837\".']\n const error = splitLine[0];\n const device = Number.parseInt(splitLine[2].slice(1, -2), 10);\n\n if (networkRouteErrors.all.length > 0) {\n const prev = networkRouteErrors.all.at(-1);\n\n if (prev) {\n const countOffset = prev[0].getTime() + ROUTING_ERROR_DUP_IGNORE_MS;\n\n // count duplicate errors within short period instead\n if (prev[1] === device && prev[2] === error && timestamp.getTime() < countOffset) {\n prev[3] += 1;\n return;\n }\n }\n }\n\n networkRouteErrors.all.push([timestamp, device, error, 1]);\n\n return;\n }\n\n const failedPingIndex = line.indexOf(FAILED_PING_MATCH);\n\n if (failedPingIndex !== -1) {\n const subLine = line.slice(failedPingIndex + FAILED_PING_MATCH.length);\n\n // only count if all attempts failed\n if (subLine.includes(FAILED_PING_2_ATTEMPTS_MATCH) || subLine.includes(FAILED_PING_1_ATTEMPT_MATCH)) {\n const device = subLine.slice(0, subLine.indexOf(`'`));\n\n failedPings.all.push([timestamp, device]);\n }\n\n // return;\n }\n}\n\nasync function parseLogFile(): Promise {\n if (!logFile) {\n throw new NotifyError('Load a log file from the menu first.', 'No log file');\n }\n\n for await (const line of makeTextFileLineIterator(logFile)) {\n parseLogLine(line);\n }\n\n if (!logMetadata.start || !logMetadata.end) {\n throw new NotifyError('Could not retrieve start or end timestamps from log file.', 'Invalid start or end timestamp');\n }\n\n logMetadata.duration = (logMetadata.end.getTime() - logMetadata.start.getTime()) / 1000 / 3600;\n\n if (logMetadata.duration < MIN_DURATION) {\n throw new NotifyError('Log analysis over such a duration would be irrelevant.', 'Log duration too short');\n }\n\n const ncpCountersCount = ncpCounters.all.length;\n\n if (ncpCountersCount > 0) {\n let i = 0;\n\n for (const c of ncpCountersSum) {\n const avg = c / ncpCountersCount;\n\n ncpCounters.avg[i] = round(avg, 2);\n ncpCounters.avgPerDevice[i] = round(avg / totalDevices, 4);\n i++;\n }\n\n // divide the computed sum to get actual average\n for (let hour = 0; hour < ncpCounters.avgByHour.length; hour++) {\n for (let counter = 0; counter < EMBER_COUNTER_TYPE_COUNT; counter++) {\n ncpCounters.avgByHour[hour][counter] = round(ncpCounters.avgByHour[hour][counter] / ncpCountersHoursCount[hour], 2);\n }\n }\n }\n\n const ashCountersCount = ashCounters.all.length;\n\n if (ashCountersCount > 0) {\n let i = 0;\n\n for (const c of ashCountersSum) {\n const avg = c / ashCountersCount;\n\n ashCounters.avg[i] = round(avg, 2);\n ashCounters.avgPerDevice[i] = round(avg / totalDevices, 4);\n i++;\n }\n\n // divide the computed sum to get actual average\n for (let hour = 0; hour < ashCounters.avgByHour.length; hour++) {\n for (let counter = 0; counter < EMBER_COUNTER_TYPE_COUNT; counter++) {\n ashCounters.avgByHour[hour][counter] = round(ashCounters.avgByHour[hour][counter] / ashCountersHoursCount[hour], 2);\n }\n }\n }\n}\n\nfunction appendStatsSection(section: HTMLDivElement): void {\n const grid = document.createElement('div');\n grid.className = 'grid';\n\n const ratio = endDevices > 0 ? round(routers / endDevices, 2) : -1;\n const parametersList = [`Number of routers: ${routers}`, `Number of end devices: ${endDevices}`];\n\n if (ratio !== -1) {\n parametersList.push(`Routers to end devices ratio: ${ratio} (Ideal: above ${IDEAL_ROUTER_RATIO})`);\n\n const warningRatio = totalDevices > 10 && ratio < IDEAL_ROUTER_RATIO;\n\n if (warningRatio) {\n parametersList.push(`\\u26A0 You may want to increase the number of routers in your network`);\n }\n }\n\n const parametersCard = makeListCard('Parameters', parametersList);\n const warningDuration = logMetadata.duration < DURATION_WARNING_FACTOR;\n const logFileCard = makeListCard('Log file', [\n `Lines: ${logMetadata.lines}`,\n `Start: ${moment(logMetadata.start).format(timestampFormat)}`,\n `End: ${moment(logMetadata.end).format(timestampFormat)}`,\n `Ignore before (avoid starting \"noise\"): ${moment(logMetadata.startOffset).format(timestampFormat)}`,\n `Duration: ${round(logMetadata.duration, 2)} hours ${warningDuration ? '\\u26A0 This is likely too low to get relevant statistics' : ''}`,\n `NCP Counters: ${ncpCounters.all.length}`,\n `ASH Counters: ${ashCounters.all.length}`,\n `Network/Router Errors: ${networkRouteErrors.all.length}`,\n `Failed pings (all successive attempts): ${failedPings.all.length}`,\n ]);\n\n grid.append(parametersCard);\n grid.append(logFileCard);\n section.append(grid);\n\n const failedPingsByDevice: { [device: string /* friendly name */]: number } = {};\n\n for (const entry of failedPings.all) {\n const device = entry[1];\n\n failedPingsByDevice[device] = 1 + (failedPingsByDevice[device] ?? 0);\n }\n\n for (const device of Object.keys(failedPingsByDevice)) {\n const count = failedPingsByDevice[device];\n\n // show only if at least one fail per hour\n if (count > logMetadata.duration) {\n section.append(\n makeMessage(\n `Too many failed pings for '${device}' (x${count})`,\n 'This indicates an unreachable device on the network. If unavailable for long periods, consider disabling it to skip unnecessary network traffic.',\n 'is-warning',\n ),\n );\n }\n }\n}\n\nfunction appendNCPCountersSection(section: HTMLDivElement): void {\n if (ncpCounters.all.length === 0) {\n return;\n }\n\n const ncpCountersHeader: string[] = ['Timestamp'];\n const ncpCountersRows: TableCellData[][] = [];\n const ncpCountersIdealRows: TableCellData[] = [];\n const ncpCountersAvgPerDeviceRows: TableCellData[] = [];\n const ncpCountersAvgRows: TableCellData[] = [];\n const ncpCountersAvgForHourRows: [\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n ] = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];\n\n for (let i = 0; i < EMBER_COUNTER_TYPE_COUNT; i++) {\n ncpCountersHeader.push(`${EmberCounterType[i]}`);\n\n const counter = ncpCounters.avgPerDevice[i];\n const ideal = IDEAL_NCP_COUNTERS[i];\n\n ncpCountersIdealRows.push({ content: ideal.toString(), className: 'is-dark' });\n ncpCountersAvgPerDeviceRows.push({\n content: counter.toString(),\n className: EMBER_COUNTERS_PER_DEVICE_IRRELEVANTS.includes(i)\n ? 'is-invisible'\n : getValueClassName(counter, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[i]),\n });\n ncpCountersAvgRows.push({\n content: ncpCounters.avg[i].toString(),\n className: getValueClassName(counter, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[i]),\n });\n\n for (let hour = 0; hour < ncpCounters.avgByHour.length; hour++) {\n ncpCountersAvgForHourRows[hour].push({\n content: ncpCounters.avgByHour[hour][i].toString(),\n className: getValueClassName(ncpCounters.avgByHour[hour][i], ideal * totalDevices, ...IDEAL_NCP_COUNTERS_FACTORS[i]),\n });\n }\n }\n\n const tableContainerAvg = makeTableContainer(\n makeTable(\n ['', ...ncpCountersHeader.slice(1)],\n [],\n [\n [{ content: 'Ideal Per Device' }, ...ncpCountersIdealRows],\n [{ content: 'Average Per Device' }, ...ncpCountersAvgPerDeviceRows],\n [{ content: 'Average' }, ...ncpCountersAvgRows],\n ],\n ),\n );\n\n const tableContainerAvgForHour = makeTableContainer(\n makeTable(\n ['Average Hour Before', ...ncpCountersHeader.slice(1)],\n [],\n [\n [{ content: '00 (12AM)' }, ...ncpCountersAvgForHourRows[0]],\n [{ content: '01 (01AM)' }, ...ncpCountersAvgForHourRows[1]],\n [{ content: '02 (02AM)' }, ...ncpCountersAvgForHourRows[2]],\n [{ content: '03 (03AM)' }, ...ncpCountersAvgForHourRows[3]],\n [{ content: '04 (04AM)' }, ...ncpCountersAvgForHourRows[4]],\n [{ content: '05 (05AM)' }, ...ncpCountersAvgForHourRows[5]],\n [{ content: '06 (06AM)' }, ...ncpCountersAvgForHourRows[6]],\n [{ content: '07 (07AM)' }, ...ncpCountersAvgForHourRows[7]],\n [{ content: '08 (08AM)' }, ...ncpCountersAvgForHourRows[8]],\n [{ content: '09 (09AM)' }, ...ncpCountersAvgForHourRows[9]],\n [{ content: '10 (10AM)' }, ...ncpCountersAvgForHourRows[10]],\n [{ content: '11 (11AM)' }, ...ncpCountersAvgForHourRows[11]],\n [{ content: '12 (12PM)' }, ...ncpCountersAvgForHourRows[12]],\n [{ content: '13 (01PM)' }, ...ncpCountersAvgForHourRows[13]],\n [{ content: '14 (02PM)' }, ...ncpCountersAvgForHourRows[14]],\n [{ content: '15 (03PM)' }, ...ncpCountersAvgForHourRows[15]],\n [{ content: '16 (04PM)' }, ...ncpCountersAvgForHourRows[16]],\n [{ content: '17 (05PM)' }, ...ncpCountersAvgForHourRows[17]],\n [{ content: '18 (06PM)' }, ...ncpCountersAvgForHourRows[18]],\n [{ content: '19 (07PM)' }, ...ncpCountersAvgForHourRows[19]],\n [{ content: '20 (08PM)' }, ...ncpCountersAvgForHourRows[20]],\n [{ content: '21 (09PM)' }, ...ncpCountersAvgForHourRows[21]],\n [{ content: '22 (10PM)' }, ...ncpCountersAvgForHourRows[22]],\n [{ content: '23 (11PM)' }, ...ncpCountersAvgForHourRows[23]],\n ],\n true,\n ),\n );\n\n for (const entry of ncpCounters.all) {\n const row: TableCellData[] = [{ content: moment(entry[0]).format(timestampFormat) }];\n\n for (let i = 0; i < EMBER_COUNTER_TYPE_COUNT; i++) {\n const counter = entry[i + 1];\n\n row.push({\n content: counter.toString(),\n // @ts-expect-error Date is skipped in code, TS not narrowing\n className: getValueClassName(counter / totalDevices, IDEAL_NCP_COUNTERS[i], ...IDEAL_NCP_COUNTERS_FACTORS[i]),\n });\n }\n\n ncpCountersRows.push(row);\n }\n\n {\n const ashErrors =\n ncpCountersSum[EmberCounterType.ASH_OVERFLOW_ERROR] +\n ncpCountersSum[EmberCounterType.ASH_FRAMING_ERROR] +\n ncpCountersSum[EmberCounterType.ASH_OVERRUN_ERROR] +\n ncpCountersSum[EmberCounterType.ASH_XOFF];\n\n if (ashErrors !== 0) {\n const msg = makeMessage(\n `ASH errors detected (${ashErrors} times)`,\n 'This can indicate a bad connection with the adapter or an issue with the driver installed in the operating system.',\n 'is-danger',\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avgPerDevice[EmberCounterType.PHY_CCA_FAIL_COUNT];\n const ideal = IDEAL_NCP_COUNTERS[EmberCounterType.PHY_CCA_FAIL_COUNT];\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.PHY_CCA_FAIL_COUNT]);\n\n if (cls) {\n const msg = makeMessage(\n `CCA failure count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate interferences on the 2.4GHz band on or around the current channel (WiFi, other Zigbee...).',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avgPerDevice[EmberCounterType.ROUTE_DISCOVERY_INITIATED];\n const ideal = IDEAL_NCP_COUNTERS[EmberCounterType.ROUTE_DISCOVERY_INITIATED];\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.ROUTE_DISCOVERY_INITIATED]);\n\n if (cls) {\n const msg = makeMessage(\n `Initiated route discovery count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate general instability in the network (unresponsive devices, bad routers...).',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avgPerDevice[EmberCounterType.MAC_TX_UNICAST_RETRY];\n const ideal = IDEAL_NCP_COUNTERS[EmberCounterType.MAC_TX_UNICAST_RETRY];\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.MAC_TX_UNICAST_RETRY]);\n\n if (cls) {\n const msg = makeMessage(\n `Packet retry count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate general instability in your network (unresponsive devices, bad routers...).',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avgPerDevice[EmberCounterType.ADDRESS_CONFLICT_SENT];\n const ideal = IDEAL_NCP_COUNTERS[EmberCounterType.ADDRESS_CONFLICT_SENT];\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.ADDRESS_CONFLICT_SENT]);\n\n if (cls) {\n const msg = makeMessage(\n `Address conflicts detected (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate device(s) with poor firmware.',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avgPerDevice[EmberCounterType.BROADCAST_TABLE_FULL];\n const ideal = IDEAL_NCP_COUNTERS[EmberCounterType.BROADCAST_TABLE_FULL];\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.BROADCAST_TABLE_FULL]);\n\n if (cls) {\n const msg = makeMessage(\n `Broadcast table full detected (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate the network is relying too heavily on broadcasts (messages to the whole network or to groups).',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ncpCounters.avg[EmberCounterType.NEIGHBOR_STALE];\n const ideal = 1;\n const cls = getValueClassName(val, ideal, ...IDEAL_NCP_COUNTERS_FACTORS[EmberCounterType.NEIGHBOR_STALE]);\n\n if (cls) {\n const msg = makeMessage(\n `Stale neighbors count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate poor link quality between devices. Note: This is influenced by pairing/re-pairing.',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n section.append(tableContainerAvg);\n section.append(tableContainerAvgForHour);\n\n const showAllButton = makeButton('Show All', 'is-primary');\n\n showAllButton.addEventListener('click', () => {\n showAllButton.remove();\n\n const tableContainerAll = makeTableContainer(makeTable(ncpCountersHeader, [], ncpCountersRows, true));\n\n section.append(tableContainerAll);\n });\n\n section.append(showAllButton);\n}\n\nfunction appendASHCountersSection(section: HTMLDivElement): void {\n if (ashCounters.all.length === 0) {\n return;\n }\n\n const ashCountersHeader: string[] = ['Timestamp'];\n const ashCountersRows: TableCellData[][] = [];\n const ashCountersIdealRows: TableCellData[] = [];\n const ashCountersAvgPerDeviceRows: TableCellData[] = [];\n const ashCountersAvgRows: TableCellData[] = [];\n const ashCountersAvgForHourRows: [\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n TableCellData[],\n ] = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];\n\n for (let i = 0; i < ASH_COUNTER_TYPE_COUNT; i++) {\n ashCountersHeader.push(`${AshCounterType[i]}`);\n\n const counter = ashCounters.avgPerDevice[i];\n const ideal = IDEAL_ASH_COUNTERS[i];\n\n ashCountersIdealRows.push({ content: ideal.toString(), className: 'is-dark' });\n ashCountersAvgPerDeviceRows.push({\n content: counter.toString(),\n className: getValueClassName(counter, ideal, ...IDEAL_ASH_COUNTERS_FACTORS[i]),\n });\n ashCountersAvgRows.push({\n content: ashCounters.avg[i].toString(),\n className: getValueClassName(counter, ideal, ...IDEAL_ASH_COUNTERS_FACTORS[i]),\n });\n\n for (let hour = 0; hour < ashCounters.avgByHour.length; hour++) {\n ashCountersAvgForHourRows[hour].push({\n content: ashCounters.avgByHour[hour][i].toString(),\n className: getValueClassName(ashCounters.avgByHour[hour][i], ideal * totalDevices, ...IDEAL_ASH_COUNTERS_FACTORS[i]),\n });\n }\n }\n\n const tableContainerAvg = makeTableContainer(\n makeTable(\n ['', ...ashCountersHeader.slice(1)],\n [],\n [\n [{ content: 'Ideal Per Device' }, ...ashCountersIdealRows],\n [{ content: 'Average Per Device' }, ...ashCountersAvgPerDeviceRows],\n [{ content: 'Average' }, ...ashCountersAvgRows],\n ],\n ),\n );\n\n const tableContainerAvgForHour = makeTableContainer(\n makeTable(\n ['Average Hour Before', ...ashCountersHeader.slice(1)],\n [],\n [\n [{ content: '00 (12AM)' }, ...ashCountersAvgForHourRows[0]],\n [{ content: '01 (01AM)' }, ...ashCountersAvgForHourRows[1]],\n [{ content: '02 (02AM)' }, ...ashCountersAvgForHourRows[2]],\n [{ content: '03 (03AM)' }, ...ashCountersAvgForHourRows[3]],\n [{ content: '04 (04AM)' }, ...ashCountersAvgForHourRows[4]],\n [{ content: '05 (05AM)' }, ...ashCountersAvgForHourRows[5]],\n [{ content: '06 (06AM)' }, ...ashCountersAvgForHourRows[6]],\n [{ content: '07 (07AM)' }, ...ashCountersAvgForHourRows[7]],\n [{ content: '08 (08AM)' }, ...ashCountersAvgForHourRows[8]],\n [{ content: '09 (09AM)' }, ...ashCountersAvgForHourRows[9]],\n [{ content: '10 (10AM)' }, ...ashCountersAvgForHourRows[10]],\n [{ content: '11 (11AM)' }, ...ashCountersAvgForHourRows[11]],\n [{ content: '12 (12PM)' }, ...ashCountersAvgForHourRows[12]],\n [{ content: '13 (01PM)' }, ...ashCountersAvgForHourRows[13]],\n [{ content: '14 (02PM)' }, ...ashCountersAvgForHourRows[14]],\n [{ content: '15 (03PM)' }, ...ashCountersAvgForHourRows[15]],\n [{ content: '16 (04PM)' }, ...ashCountersAvgForHourRows[16]],\n [{ content: '17 (05PM)' }, ...ashCountersAvgForHourRows[17]],\n [{ content: '18 (06PM)' }, ...ashCountersAvgForHourRows[18]],\n [{ content: '19 (07PM)' }, ...ashCountersAvgForHourRows[19]],\n [{ content: '20 (08PM)' }, ...ashCountersAvgForHourRows[20]],\n [{ content: '21 (09PM)' }, ...ashCountersAvgForHourRows[21]],\n [{ content: '22 (10PM)' }, ...ashCountersAvgForHourRows[22]],\n [{ content: '23 (11PM)' }, ...ashCountersAvgForHourRows[23]],\n ],\n true,\n ),\n );\n\n for (const entry of ashCounters.all) {\n const row: TableCellData[] = [{ content: moment(entry[0]).format(timestampFormat) }];\n\n for (let i = 0; i < ASH_COUNTER_TYPE_COUNT; i++) {\n const counter = entry[i + 1];\n\n row.push({\n content: counter.toString(),\n // @ts-expect-error Date is skipped in code, TS not narrowing\n className: getValueClassName(counter / totalDevices, IDEAL_ASH_COUNTERS[i], ...IDEAL_ASH_COUNTERS_FACTORS[i]),\n });\n }\n\n ashCountersRows.push(row);\n }\n\n {\n const val = ashCounters.avgPerDevice[AshCounterType.TX_N1_FRAMES];\n const ideal = IDEAL_ASH_COUNTERS[AshCounterType.TX_N1_FRAMES];\n const cls = getValueClassName(val, ideal, ...IDEAL_ASH_COUNTERS_FACTORS[AshCounterType.TX_N1_FRAMES]);\n\n if (cls) {\n const msg = makeMessage(\n `\"Not ready\" transaction count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate heavy spamming from devices. Zigbee2MQTT was forced to regulate the flow.',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const val = ashCounters.avgPerDevice[AshCounterType.RX_NO_BUFFER];\n const ideal = IDEAL_ASH_COUNTERS[AshCounterType.RX_NO_BUFFER];\n const cls = getValueClassName(val, ideal, ...IDEAL_ASH_COUNTERS_FACTORS[AshCounterType.RX_NO_BUFFER]);\n\n if (cls) {\n const msg = makeMessage(\n `Out of buffer count is high (${val} vs ${ideal} \"ideal\")`,\n 'This can indicate heavy spamming from devices. Zigbee2MQTT was forced to drop messages.',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n {\n const rxBad =\n ashCounters.avg[AshCounterType.RX_CRC_ERRORS] +\n ashCounters.avg[AshCounterType.RX_COMM_ERRORS] +\n ashCounters.avg[AshCounterType.RX_TOO_SHORT] +\n ashCounters.avg[AshCounterType.RX_TOO_LONG] +\n ashCounters.avg[AshCounterType.RX_BAD_CONTROL] +\n ashCounters.avg[AshCounterType.RX_BAD_LENGTH] +\n ashCounters.avg[AshCounterType.RX_BAD_ACK_NUMBER] +\n ashCounters.avg[AshCounterType.RX_OUT_OF_SEQUENCE] +\n ashCounters.avg[AshCounterType.RX_ACK_TIMEOUTS];\n const cls = getValueClassName(rxBad, 1, 5, 10, false);\n\n if (cls) {\n const msg = makeMessage(\n `Error count with received messages is high (${rxBad} times)`,\n 'This can indicate general instability (adapter/network).',\n cls,\n );\n\n section.append(msg);\n }\n }\n\n section.append(tableContainerAvg);\n section.append(tableContainerAvgForHour);\n\n const showAllButton = makeButton('Show All', 'is-primary');\n\n showAllButton.addEventListener('click', () => {\n showAllButton.remove();\n\n const tableContainerAll = makeTableContainer(makeTable(ashCountersHeader, [], ashCountersRows, true));\n\n section.append(tableContainerAll);\n });\n\n section.append(showAllButton);\n}\n\nfunction appendRoutingSection(section: HTMLDivElement): void {\n if (networkRouteErrors.all.length === 0) {\n return;\n }\n\n const rows: TableCellData[][] = [];\n const errorsByDevice: { [error: string /* EmberStackError */]: { [device: number]: number } } = {};\n\n for (const entry of networkRouteErrors.all) {\n const device = entry[1];\n const error = entry[2];\n const count = entry[3];\n\n if (errorsByDevice[error] === undefined) {\n errorsByDevice[error] = {};\n }\n\n errorsByDevice[error][device] = errorsByDevice[error][device] === undefined ? count : errorsByDevice[error][device] + count;\n\n if (count > 2) {\n rows.push([\n { content: moment(entry[0]).format(timestampFormat) },\n { content: `${device} / ${toHex(device)}` },\n { content: error },\n { content: count.toString() },\n ]);\n }\n }\n\n const tableContainer = makeTableContainer(\n makeTable(\n [\n 'Timestamp',\n 'Device / Hex',\n 'Error',\n 'Count',\n ],\n [],\n rows,\n true,\n ),\n );\n\n // eslint-disable-next-line guard-for-in\n for (const error in errorsByDevice) {\n const rowsByError: TableCellData[][] = [];\n\n // eslint-disable-next-line guard-for-in\n for (const k in errorsByDevice[error]) {\n const deviceAvgPerHour = round(errorsByDevice[error][k] / logMetadata.duration, 4);\n\n // only display msg for device if average per hour is high\n if (deviceAvgPerHour > 0.1) {\n rowsByError.push([\n { content: `${k} / ${toHex(Number.parseInt(k, 10))}` },\n { content: deviceAvgPerHour.toString(), className: getValueClassName(deviceAvgPerHour, 0.1, 10, 20) },\n ]);\n }\n }\n\n if (rowsByError.length > 0) {\n const tableContainer = makeTableContainer(makeTable(['Device / Hex', 'Errors per hour'], [], rowsByError, true));\n\n const notice = EMBER_STACK_ERRORS_NOTICE[EmberStackError[error as keyof typeof EmberStackError]];\n const msg = makeMessage(`${error}`, notice === '' ? `` : `

${notice}

`, 'is-warning is-table-header');\n\n section.append(msg);\n section.append(tableContainer);\n }\n }\n\n section.append(makeMessage(`Errors appearing at least 3 times in succession`, ``, 'is-danger is-table-header'));\n section.append(tableContainer);\n}\n\nwindow.addEventListener('load', () => {\n initVariables();\n\n const $loadForm = document.querySelector('#log-file-form')! as HTMLFormElement;\n const $heroBody = document.querySelector('#hero-body')!;\n const $menuHomeLink = document.querySelector('#menu-home')! as HTMLLinkElement;\n const $sectionHome = document.querySelector('#section-home')! as HTMLDivElement;\n const $menuStatsLink = document.querySelector('#menu-stats')! as HTMLLinkElement;\n const $sectionStats = document.querySelector('#section-stats')! as HTMLDivElement;\n const $menuNcpCountersLink = document.querySelector('#menu-ncp-counters')! as HTMLLinkElement;\n const $sectionNcpCounters = document.querySelector('#section-ncp-counters')! as HTMLDivElement;\n const $menuAshCountersLink = document.querySelector('#menu-ash-counters')! as HTMLLinkElement;\n const $sectionAshCounters = document.querySelector('#section-ash-counters')! as HTMLDivElement;\n const $menuRoutingLink = document.querySelector('#menu-routing')! as HTMLLinkElement;\n const $sectionRouting = document.querySelector('#section-routing')! as HTMLDivElement;\n const $menuToolsLink = document.querySelector('#menu-tools')! as HTMLLinkElement;\n const $sectionTools = document.querySelector('#section-tools')! as HTMLDivElement;\n const $menuHelpLink = document.querySelector('#menu-help')! as HTMLLinkElement;\n const $sectionHelp = document.querySelector('#section-help')! as HTMLDivElement;\n const menu: [HTMLLinkElement, HTMLDivElement][] = [\n [$menuHomeLink, $sectionHome],\n [$menuStatsLink, $sectionStats],\n [$menuNcpCountersLink, $sectionNcpCounters],\n [$menuAshCountersLink, $sectionAshCounters],\n [$menuRoutingLink, $sectionRouting],\n [$menuToolsLink, $sectionTools],\n [$menuHelpLink, $sectionHelp],\n ];\n\n for (const [$link, $section] of menu) {\n $link.addEventListener('click', () => {\n // li\n $link.parentElement!.className = 'is-active';\n $section.className = 'section';\n\n for (const [$otherLink, $otherSection] of menu.filter((m) => m[0] !== $link)) {\n $otherLink.parentElement!.className = '';\n $otherSection.className = 'section is-hidden';\n }\n });\n }\n\n $loadForm.addEventListener('submit', async (event: SubmitEvent) => {\n event.preventDefault();\n initVariables();\n const data = new FormData($loadForm);\n\n timestampFormat = data.get('timestamp-format') as string;\n\n routers = Number.parseInt(data.get('number-routers') as string, 10);\n\n if (Number.isNaN(routers) || routers < 0) {\n throw new NotifyError('Number of routers must be at least 0.', 'Invalid number of routers');\n }\n\n endDevices = Number.parseInt(data.get('number-devices') as string, 10);\n\n if (Number.isNaN(endDevices) || endDevices < 0) {\n throw new NotifyError('Number of end devices must be at least 0.', 'Invalid number of end devices');\n }\n\n totalDevices = routers + endDevices;\n\n if (Number.isNaN(totalDevices) || totalDevices <= 0) {\n throw new NotifyError('Total number of devices must be at least 1.', 'Invalid total number of devices');\n }\n\n logFile = data.get('log-file') as File;\n\n await parseLogFile();\n\n appendStatsSection($sectionStats);\n appendNCPCountersSection($sectionNcpCounters);\n appendASHCountersSection($sectionAshCounters);\n appendRoutingSection($sectionRouting);\n\n $heroBody.className = 'is-hidden';\n\n $menuStatsLink.click();\n });\n\n $menuHomeLink.addEventListener('click', async () => {});\n\n $menuStatsLink.addEventListener('click', async () => {\n if (!logFile) {\n throw new NotifyError('Load a log file from the menu first.', 'No log file');\n }\n });\n\n $menuNcpCountersLink.addEventListener('click', async () => {\n if (!logFile) {\n throw new NotifyError('Load a log file from the menu first.', 'No log file');\n }\n\n if (ncpCounters.all.length === 0) {\n throw new NotifyError('No NCP counters were found in the given log file.', 'No NCP counters found');\n }\n });\n\n $menuAshCountersLink.addEventListener('click', async () => {\n if (!logFile) {\n throw new NotifyError('Load a log file from the menu first.', 'No log file');\n }\n\n if (ashCounters.all.length === 0) {\n throw new NotifyError('No ASH counters were found in the given log file.', 'No ASH counters found');\n }\n });\n\n $menuRoutingLink.addEventListener('click', async () => {\n if (!logFile) {\n throw new NotifyError('Load a log file from the menu first.', 'No log file');\n }\n\n if (networkRouteErrors.all.length === 0) {\n // eslint-disable-next-line no-new\n new Notify({\n status: 'success',\n title: 'No network/route error found',\n text: `No network/router error was found in the given log file.`,\n });\n }\n });\n\n $menuToolsLink.addEventListener('click', async () => {});\n\n // add dynamic part of the help section\n {\n const ncpCountersRows: TableCellData[][] = [];\n\n for (let i = 0; i < EMBER_COUNTER_TYPE_COUNT; i++) {\n ncpCountersRows.push([\n { content: EmberCounterType[i] },\n { content: IDEAL_NCP_COUNTERS[i].toString() },\n { content: NCP_COUNTERS_NOTICE[i] },\n ]);\n }\n\n const ncpCountersTable = makeTableContainer(makeTable(['NCP Counter', 'Ideal (Per Device)', 'Note'], [], ncpCountersRows));\n\n const ashCountersRows: TableCellData[][] = [];\n\n for (let i = 0; i < ASH_COUNTER_TYPE_COUNT; i++) {\n ashCountersRows.push([\n { content: AshCounterType[i] },\n { content: IDEAL_ASH_COUNTERS[i].toString() },\n { content: ASH_COUNTERS_NOTICE[i] },\n ]);\n }\n\n const ashCountersTable = makeTableContainer(makeTable(['ASH Counter', 'Ideal (Per Device)', 'Note'], [], ashCountersRows));\n\n $sectionHelp.append(ncpCountersTable);\n $sectionHelp.append(ashCountersTable);\n }\n\n if (window.location.hash) {\n const link = document.querySelector(`#menu-${window.location.hash.slice(1)}`) as HTMLLinkElement;\n\n if (link) {\n link.click();\n }\n }\n});\n","function t(t,e){if(!(t instanceof e)){throw new TypeError(\"Cannot call a class as a function\")}}function e(t,e){for(var s=0;s\n \n\n","\n \n\n","\n \n\n","\n \n\n","\n \n\n","export const stringToHTML = (strHTML: string): HTMLElement => {\n const parser = new DOMParser(),\n content = 'text/html',\n DOM = parser.parseFromString(strHTML, content)\n\n return DOM.body.childNodes[0] as HTMLElement\n}\n\nexport const getSvgNode = (svg: string) => {\n const doc = new DOMParser().parseFromString(svg, 'application/xml')\n const node = document.importNode(doc.documentElement, true)\n return node.outerHTML\n}\n","import SvgClose from './icons/close.svg'\nimport SvgError from './icons/error.svg'\nimport SvgInfo from './icons/info.svg'\nimport SvgSuccess from './icons/success.svg'\nimport SvgWarning from './icons/warning.svg'\nimport { getSvgNode } from './utils'\n\nexport const CLASSNAMES = {\n CONTAINER: 'sn-notifications-container',\n NOTIFY: 'sn-notify',\n NOTIFY_CONTENT: 'sn-notify-content',\n NOTIFY_ICON: 'sn-notify-icon',\n NOTIFY_CLOSE: 'sn-notify-close',\n NOTIFY_TITLE: 'sn-notify-title',\n NOTIFY_TEXT: 'sn-notify-text',\n IS_X_CENTER: 'sn-is-x-center',\n IS_Y_CENTER: 'sn-is-y-center',\n IS_CENTER: 'sn-is-center',\n IS_LEFT: 'sn-is-left',\n IS_RIGHT: 'sn-is-right',\n IS_TOP: 'sn-is-top',\n IS_BOTTOM: 'sn-is-bottom',\n NOTIFY_OUTLINE: 'sn-notify-outline',\n NOTIFY_FILLED: 'sn-notify-filled',\n NOTIFY_ERROR: 'sn-notify-error',\n NOTIFY_WARNING: 'sn-notify-warning',\n NOTIFY_SUCCESS: 'sn-notify-success',\n NOTIFY_INFO: 'sn-notify-info',\n NOTIFY_FADE: 'sn-notify-fade',\n NOTIFY_FADE_IN: 'sn-notify-fade-in',\n NOTIFY_SLIDE: 'sn-notify-slide',\n NOTIFY_SLIDE_IN: 'sn-notify-slide-in',\n NOTIFY_AUTOCLOSE: 'sn-notify-autoclose'\n} as const\n\nexport const NOTIFY_STATUS_ENUMS = {\n ERROR: 'error',\n WARNING: 'warning',\n SUCCESS: 'success',\n INFO: 'info'\n} as const\n\nexport const NOTIFY_TYPE_ENUMS = {\n OUTLINE: 'outline',\n FILLED: 'filled'\n} as const\n\nexport const NOTIFY_ANIMATION_ENUMS = {\n FADE: 'fade',\n SLIDE: 'slide'\n} as const\n\nexport const ICONS = {\n CLOSE: getSvgNode(SvgClose),\n SUCCESS: getSvgNode(SvgSuccess),\n ERROR: getSvgNode(SvgError),\n WARNING: getSvgNode(SvgWarning),\n INFO: getSvgNode(SvgInfo)\n}\n","import { CLASSNAMES } from './consts'\nimport type Notify from './index'\n\nexport const fadeIn = (self: Notify): void => {\n self.wrapper.classList.add(CLASSNAMES.NOTIFY_FADE)\n setTimeout(() => {\n self.wrapper.classList.add(CLASSNAMES.NOTIFY_FADE_IN)\n }, 100)\n}\n\nexport const fadeOut = (self: Notify): void => {\n self.wrapper.classList.remove(CLASSNAMES.NOTIFY_FADE_IN)\n setTimeout(() => {\n self.wrapper.remove()\n }, self.speed)\n}\n\nexport const slideIn = (self: Notify): void => {\n self.wrapper.classList.add(CLASSNAMES.NOTIFY_SLIDE)\n setTimeout(() => {\n self.wrapper.classList.add(CLASSNAMES.NOTIFY_SLIDE_IN)\n }, 100)\n}\nexport const slideOut = (self: Notify): void => {\n self.wrapper.classList.remove(CLASSNAMES.NOTIFY_SLIDE_IN)\n setTimeout(() => {\n self.wrapper.remove()\n }, self.speed)\n}\n","import { CLASSNAMES, ICONS, NOTIFY_ANIMATION_ENUMS, NOTIFY_STATUS_ENUMS, NOTIFY_TYPE_ENUMS } from './consts'\nimport { fadeIn, fadeOut, slideIn, slideOut } from './effects'\nimport './style.css'\nimport type { IArgs, NotifyEffect, NotifyPosition, NotifyStatus, NotifyType } from './types'\nimport { stringToHTML } from './utils'\n\nexport default class Notify {\n wrapper: HTMLElement\n customWrapper: string\n container: HTMLElement\n status: NotifyStatus\n type: NotifyType\n effect: NotifyEffect\n position: NotifyPosition\n title: string\n text: string\n showIcon: boolean\n customIcon: string\n showCloseButton: boolean\n customClass: string\n speed: number\n autoclose: boolean\n autotimeout: number\n notificationsGap: number\n notificationsPadding: number\n selectedNotifyInEffect: (self: Notify) => void\n selectedNotifyOutEffect: (self: Notify) => void\n\n constructor(args: IArgs) {\n const {\n notificationsGap = 20,\n notificationsPadding = 20,\n status = 'success',\n effect = NOTIFY_ANIMATION_ENUMS.FADE,\n type = 'outline',\n title,\n text,\n showIcon = true,\n customIcon = '',\n customClass = '',\n speed = 500,\n showCloseButton = true,\n autoclose = true,\n autotimeout = 3000,\n position = 'right top',\n customWrapper = ''\n } = args\n\n this.customWrapper = customWrapper\n this.status = status\n this.title = title\n this.text = text\n this.showIcon = showIcon\n this.customIcon = customIcon\n this.customClass = customClass\n this.speed = speed\n this.effect = effect\n this.showCloseButton = showCloseButton\n this.autoclose = autoclose\n this.autotimeout = autotimeout\n this.notificationsGap = notificationsGap\n this.notificationsPadding = notificationsPadding\n this.type = type\n this.position = position\n\n if (!this.checkRequirements()) {\n console.error(\"You must specify 'title' or 'text' at least.\")\n return\n }\n\n // set outer container for all Notify's\n this.setContainer()\n\n // set wrapper for each Notify\n this.setWrapper()\n\n this.setPosition()\n\n // set icon in the left\n if (this.showIcon) this.setIcon()\n\n // set close button\n if (this.showCloseButton) this.setCloseButton()\n\n // set title, text\n this.setContent()\n\n // add the Notify to our container\n this.container.prepend(this.wrapper)\n\n // init effect\n this.setEffect()\n this.notifyIn(this.selectedNotifyInEffect)\n\n // init autoclose\n if (this.autoclose) this.autoClose()\n\n // check whether Notify is visible\n this.setObserver()\n }\n\n private checkRequirements(): boolean {\n return !!(this.title || this.text)\n }\n\n private setContainer(): void {\n const container: HTMLElement = document.querySelector(`.${CLASSNAMES.CONTAINER}`)\n if (container) {\n this.container = container\n } else {\n this.container = document.createElement('div')\n this.container.classList.add(CLASSNAMES.CONTAINER)\n document.body.appendChild(this.container)\n }\n\n if (this.notificationsPadding) {\n this.container.style.setProperty('--sn-notifications-padding', `${this.notificationsPadding}px`)\n }\n\n if (this.notificationsGap) {\n this.container.style.setProperty('--sn-notifications-gap', `${this.notificationsGap}px`)\n }\n }\n\n private setPosition(): void {\n this.container.classList[this.position === 'center' ? 'add' : 'remove'](CLASSNAMES.IS_CENTER)\n this.container.classList[this.position.includes('left') ? 'add' : 'remove'](CLASSNAMES.IS_LEFT)\n this.container.classList[this.position.includes('right') ? 'add' : 'remove'](CLASSNAMES.IS_RIGHT)\n this.container.classList[this.position.includes('top') ? 'add' : 'remove'](CLASSNAMES.IS_TOP)\n this.container.classList[this.position.includes('bottom') ? 'add' : 'remove'](CLASSNAMES.IS_BOTTOM)\n this.container.classList[this.position.includes('x-center') ? 'add' : 'remove'](CLASSNAMES.IS_X_CENTER)\n this.container.classList[this.position.includes('y-center') ? 'add' : 'remove'](CLASSNAMES.IS_Y_CENTER)\n }\n\n private setCloseButton(): void {\n const closeWrapper = document.createElement('div')\n closeWrapper.classList.add(CLASSNAMES.NOTIFY_CLOSE)\n closeWrapper.innerHTML = ICONS.CLOSE\n this.wrapper.appendChild(closeWrapper)\n\n closeWrapper.addEventListener('click', () => {\n this.close()\n })\n }\n\n private setWrapper(): void {\n if (this.customWrapper) {\n this.wrapper = stringToHTML(this.customWrapper)\n } else {\n this.wrapper = document.createElement('div')\n }\n this.wrapper.style.setProperty('--sn-notify-transition-duration', `${this.speed}ms`)\n\n // set classes\n this.wrapper.classList.add(CLASSNAMES.NOTIFY)\n\n switch (this.type) {\n case NOTIFY_TYPE_ENUMS.OUTLINE:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_OUTLINE)\n break\n case NOTIFY_TYPE_ENUMS.FILLED:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_FILLED)\n break\n default:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_OUTLINE)\n }\n\n switch (this.status) {\n case NOTIFY_STATUS_ENUMS.SUCCESS:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_SUCCESS)\n break\n case NOTIFY_STATUS_ENUMS.ERROR:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_ERROR)\n break\n case NOTIFY_STATUS_ENUMS.WARNING:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_WARNING)\n break\n case NOTIFY_STATUS_ENUMS.INFO:\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_INFO)\n break\n }\n\n if (this.autoclose) {\n this.wrapper.classList.add(CLASSNAMES.NOTIFY_AUTOCLOSE)\n this.wrapper.style.setProperty('--sn-notify-autoclose-timeout', `${this.autotimeout + this.speed}ms`)\n }\n\n if (this.customClass) {\n const classes = this.customClass.split(' ')\n classes.forEach((className) => {\n this.wrapper.classList.add(className)\n })\n }\n }\n\n private setContent(): void {\n const contentWrapper = document.createElement('div')\n contentWrapper.classList.add(CLASSNAMES.NOTIFY_CONTENT)\n\n let titleElement, textElement\n\n if (this.title) {\n titleElement = document.createElement('div')\n titleElement.classList.add(CLASSNAMES.NOTIFY_TITLE)\n titleElement.textContent = this.title.trim()\n if (!this.showCloseButton) titleElement.style.paddingRight = '0'\n }\n\n if (this.text) {\n textElement = document.createElement('div')\n textElement.classList.add(CLASSNAMES.NOTIFY_TEXT)\n textElement.innerHTML = this.text.trim()\n if (!this.title) textElement.style.marginTop = '0'\n }\n\n this.wrapper.appendChild(contentWrapper)\n if (this.title) contentWrapper.appendChild(titleElement)\n if (this.text) contentWrapper.appendChild(textElement)\n }\n\n private setIcon(): void {\n const computedIcon = (status: NotifyStatus) => {\n switch (status) {\n case NOTIFY_STATUS_ENUMS.SUCCESS:\n return ICONS.SUCCESS\n case NOTIFY_STATUS_ENUMS.ERROR:\n return ICONS.ERROR\n case NOTIFY_STATUS_ENUMS.WARNING:\n return ICONS.WARNING\n case NOTIFY_STATUS_ENUMS.INFO:\n return ICONS.INFO\n }\n }\n\n const iconWrapper = document.createElement('div')\n iconWrapper.classList.add(CLASSNAMES.NOTIFY_ICON)\n iconWrapper.innerHTML = this.customIcon || computedIcon(this.status)\n if (this.status || this.customIcon) this.wrapper.appendChild(iconWrapper)\n }\n\n private setObserver(): void {\n const observer = new IntersectionObserver(\n (entries) => {\n if (!(entries[0].intersectionRatio <= 0)) {\n return\n } else {\n this.close()\n }\n },\n {\n threshold: 0\n }\n )\n\n setTimeout(() => {\n observer.observe(this.wrapper)\n }, this.speed)\n }\n\n private notifyIn(callback: (p: Notify) => void): void {\n callback(this)\n }\n\n private notifyOut = (callback: (p: Notify) => void): void => {\n callback(this)\n }\n\n private autoClose(): void {\n setTimeout(() => {\n this.close()\n }, this.autotimeout + this.speed)\n }\n\n public close(): void {\n this.notifyOut(this.selectedNotifyOutEffect)\n }\n\n private setEffect(): void {\n switch (this.effect) {\n case NOTIFY_ANIMATION_ENUMS.FADE:\n this.selectedNotifyInEffect = fadeIn\n this.selectedNotifyOutEffect = fadeOut\n break\n case NOTIFY_ANIMATION_ENUMS.SLIDE:\n this.selectedNotifyInEffect = slideIn\n this.selectedNotifyOutEffect = slideOut\n break\n default:\n this.selectedNotifyInEffect = fadeIn\n this.selectedNotifyOutEffect = fadeOut\n }\n }\n}\n\n;(globalThis as any).Notify = Notify\n","import { EmberCounterType } from './zh';\n\nexport const EMBER_COUNTER_TYPE_COUNT = 41;\nexport const ASH_COUNTER_TYPE_COUNT = 27;\n\n/** Offset used to ignore certain errors during/right after zigbee2mqtt start (in seconds). */\nexport const START_OFFSET = 60000;\n/** Minimum duration (hours) for log analysis to be relevant. */\nexport const MIN_DURATION = 1; // (min 1 NCP counters logged)\n\nexport const TIMESTAMP_REGEX = /\\[.*?]/i;\nexport const NCP_COUNTERS_MATCH = '[NCP COUNTERS] ';\nexport const ASH_COUNTERS_MATCH = '[ASH COUNTERS] ';\nexport const NETWORK_ROUTE_ERROR_MATCH = 'Received network/route error ';\nexport const FAILED_PING_MATCH = `Failed to ping '`;\nexport const FAILED_PING_2_ATTEMPTS_MATCH = 'attempt 2/2';\nexport const FAILED_PING_1_ATTEMPT_MATCH = 'attempt 1/1';\n\n/** Number of network/router erros considered acceptable over 100h of runtime, for 100 devices. */\nexport const ACCEPTABLE_NETWORK_ROUTE_ERRORS_PER_100H_100D = 25;\n\nexport const DURATION_WARNING_FACTOR = 5;\nexport const ROUTER_RATIO_WARNING_FACTOR = 0.8;\n\n/** Timeframe within which duplicate network/route errors are ignored. */\nexport const ROUTING_ERROR_DUP_IGNORE_MS = 2500;\n\nexport const EMBER_COUNTERS_PER_DEVICE_IRRELEVANTS: EmberCounterType[] = [\n EmberCounterType.ROUTE_DISCOVERY_INITIATED,\n EmberCounterType.NEIGHBOR_ADDED,\n EmberCounterType.NEIGHBOR_REMOVED,\n EmberCounterType.NEIGHBOR_STALE,\n EmberCounterType.JOIN_INDICATION,\n EmberCounterType.CHILD_REMOVED,\n EmberCounterType.ASH_OVERFLOW_ERROR,\n EmberCounterType.ASH_FRAMING_ERROR,\n EmberCounterType.ASH_OVERRUN_ERROR,\n EmberCounterType.ASH_XOFF,\n];\n","/**\n * These should be kept in sync with zigbee-herdsman.\n */\n\n/**\n * Defines the events reported to the application by the ::emberCounterHandler().\n * Usage of the destinationNodeId or data fields found in the EmberCounterInfo or EmberExtraCounterInfo\n * structs is denoted for counter types that use them.\n * (See comments accompanying enum definitions in this source file for details.)\n */\nexport enum EmberCounterType {\n /**\n * The MAC received a broadcast Data frame, Command frame, or Beacon.\n * - destinationNodeId: BROADCAST_ADDRESS or Data frames or sender node ID for Beacon frames\n * - data: not used\n */\n MAC_RX_BROADCAST = 0,\n /**\n * The MAC transmitted a broadcast Data frame, Command frame or Beacon.\n * - destinationNodeId: BROADCAST_ADDRESS\n * - data: not used\n */\n MAC_TX_BROADCAST = 1,\n /**\n * The MAC received a unicast Data or Command frame.\n * - destinationNodeId: MAC layer source or EMBER_UNKNOWN_NODE_ID if no 16-bit source node ID is present in the frame\n * - data: not used\n */\n MAC_RX_UNICAST = 2,\n /**\n * The MAC successfully transmitted a unicast Data or Command frame.\n * Note: Only frames with a 16-bit destination node ID are counted.\n * - destinationNodeId: MAC layer destination address\n * - data: not used\n */\n MAC_TX_UNICAST_SUCCESS = 3,\n /**\n * The MAC retried a unicast Data or Command frame after initial Tx attempt.\n * Note: CSMA-related failures are tracked separately via PHY_CCA_FAIL_COUNT.\n * - destinationNodeId: MAC layer destination or EMBER_UNKNOWN_NODE_ID if no 16-bit destination node ID is present in the frame\n * - data: number of retries (after initial Tx attempt) accumulated so far for this packet. (Should always be >0.)\n */\n MAC_TX_UNICAST_RETRY = 4,\n /**\n * The MAC unsuccessfully transmitted a unicast Data or Command frame.\n * Note: Only frames with a 16-bit destination node ID are counted.\n * - destinationNodeId: MAC layer destination address\n * - data: not used\n */\n MAC_TX_UNICAST_FAILED = 5,\n /**\n * The APS layer received a data broadcast.\n * - destinationNodeId: sender's node ID\n * - data: not used\n */\n APS_DATA_RX_BROADCAST = 6,\n /** The APS layer transmitted a data broadcast. */\n APS_DATA_TX_BROADCAST = 7,\n /**\n * The APS layer received a data unicast.\n * - destinationNodeId: sender's node ID\n * - data: not used\n */\n APS_DATA_RX_UNICAST = 8,\n /**\n * The APS layer successfully transmitted a data unicast.\n * - destinationNodeId: NWK destination address\n * - data: number of APS retries (>=0) consumed for this unicast.\n */\n APS_DATA_TX_UNICAST_SUCCESS = 9,\n /**\n * The APS layer retried a unicast Data frame.\n * This is a placeholder and is not used by the @c ::emberCounterHandler() callback.\n * Instead, the number of APS retries are returned in the data parameter of the callback\n * for the @c ::APS_DATA_TX_UNICAST_SUCCESS and @c ::APS_DATA_TX_UNICAST_FAILED types.\n * However, our supplied Counters component code will attempt to collect this information\n * from the aforementioned counters and populate this counter.\n * Note that this counter's behavior differs from that of @c ::MAC_TX_UNICAST_RETRY .\n */\n APS_DATA_TX_UNICAST_RETRY = 10,\n /**\n * The APS layer unsuccessfully transmitted a data unicast.\n * - destinationNodeId: NWK destination address\n * - data: number of APS retries (>=0) consumed for this unicast.\n */\n APS_DATA_TX_UNICAST_FAILED = 11,\n /** The network layer successfully submitted a new route discovery to the MAC. */\n ROUTE_DISCOVERY_INITIATED = 12,\n /** An entry was added to the neighbor table. */\n NEIGHBOR_ADDED = 13,\n /** An entry was removed from the neighbor table. */\n NEIGHBOR_REMOVED = 14,\n /** A neighbor table entry became stale because it had not been heard from. */\n NEIGHBOR_STALE = 15,\n /**\n * A node joined or rejoined to the network via this node.\n * - destinationNodeId: node ID of child\n * - data: not used\n */\n JOIN_INDICATION = 16,\n /**\n * An entry was removed from the child table.\n * - destinationNodeId: node ID of child\n * - data: not used\n */\n CHILD_REMOVED = 17,\n /** EZSP-UART only. An overflow error occurred in the UART. */\n ASH_OVERFLOW_ERROR = 18,\n /** EZSP-UART only. A framing error occurred in the UART. */\n ASH_FRAMING_ERROR = 19,\n /** EZSP-UART only. An overrun error occurred in the UART. */\n ASH_OVERRUN_ERROR = 20,\n /** A message was dropped at the Network layer because the NWK frame counter was not higher than the last message seen from that source. */\n NWK_FRAME_COUNTER_FAILURE = 21,\n /**\n * A message was dropped at the APS layer because the APS frame counter was not higher than the last message seen from that source.\n * - destinationNodeId: node ID of MAC source that relayed the message\n * - data: not used\n */\n APS_FRAME_COUNTER_FAILURE = 22,\n /** EZSP-UART only. An XOFF was transmitted by the UART. */\n ASH_XOFF = 23,\n /**\n * An encrypted message was dropped by the APS layer because the sender's key has not been authenticated.\n * As a result, the key is not authorized for use in APS data messages.\n * - destinationNodeId: EMBER_NULL_NODE_ID\n * - data: APS key table index related to the sender\n */\n APS_LINK_KEY_NOT_AUTHORIZED = 24,\n /**\n * A NWK encrypted message was received but dropped because decryption failed.\n * - destinationNodeId: sender of the dropped packet\n * - data: not used\n */\n NWK_DECRYPTION_FAILURE = 25,\n /**\n * An APS encrypted message was received but dropped because decryption failed.\n * - destinationNodeId: sender of the dropped packet\n * - data: not used\n */\n APS_DECRYPTION_FAILURE = 26,\n /**\n * The number of failures to allocate a set of linked packet buffers.\n * This doesn't necessarily mean that the packet buffer count was 0 at the time,\n * but that the number requested was greater than the number free.\n */\n ALLOCATE_PACKET_BUFFER_FAILURE = 27,\n /**\n * The number of relayed unicast packets.\n * - destinationId: NWK layer destination address of relayed packet\n * - data: not used\n */\n RELAYED_UNICAST = 28,\n /**\n * The number of times a packet was dropped due to reaching the preset PHY-to-MAC queue limit (sli_mac_phy_to_mac_queue_length).\n * The limit will determine how many messages are accepted by the PHY between calls to emberTick().\n * After that limit is reached, packets will be dropped. The counter records the number of dropped packets.\n *\n * NOTE: For each call to emberCounterHandler() there may be more than 1 packet that was dropped due to the limit reached.\n * The actual number of packets dropped will be returned in the 'data' parameter passed to that function.\n *\n * - destinationNodeId: not used\n * - data: number of dropped packets represented by this counter event\n * - phyIndex: present\n */\n PHY_TO_MAC_QUEUE_LIMIT_REACHED = 29,\n /**\n * The number of times a packet was dropped due to the packet-validate library checking a packet\n * and rejecting it due to length or other formatting problems.\n * - destinationNodeId: not used\n * - data: type of validation condition that failed\n */\n PACKET_VALIDATE_LIBRARY_DROPPED_COUNT = 30,\n /**\n * The number of times the NWK retry queue is full and a new message failed to be added.\n * - destinationNodeId; not used\n * - data: NWK retry queue size that has been exceeded\n */\n TYPE_NWK_RETRY_OVERFLOW = 31,\n /**\n * The number of times the PHY layer was unable to transmit due to a failed CCA (Clear Channel Assessment) attempt.\n * See also: MAC_TX_UNICAST_RETRY.\n * - destinationNodeId: MAC layer destination or EMBER_UNKNOWN_NODE_ID if no 16-bit destination node ID is present in the frame\n * - data: not used\n */\n PHY_CCA_FAIL_COUNT = 32,\n /** The number of times a NWK broadcast was dropped because the broadcast table was full. */\n BROADCAST_TABLE_FULL = 33,\n /** The number of times a low-priority packet traffic arbitration request has been made. */\n PTA_LO_PRI_REQUESTED = 34,\n /** The number of times a high-priority packet traffic arbitration request has been made. */\n PTA_HI_PRI_REQUESTED = 35,\n /** The number of times a low-priority packet traffic arbitration request has been denied. */\n PTA_LO_PRI_DENIED = 36,\n /** The number of times a high-priority packet traffic arbitration request has been denied. */\n PTA_HI_PRI_DENIED = 37,\n /** The number of times a low-priority packet traffic arbitration transmission has been aborted. */\n PTA_LO_PRI_TX_ABORTED = 38,\n /** The number of times a high-priority packet traffic arbitration transmission has been aborted. */\n PTA_HI_PRI_TX_ABORTED = 39,\n /** The number of times an address conflict has caused node_id change, and an address conflict error is sent. */\n ADDRESS_CONFLICT_SENT = 40,\n}\n\nexport enum AshCounterType {\n TX_DATA = 0,\n TX_ALL_FRAMES = 1,\n TX_DATA_FRAMES = 2,\n TX_ACK_FRAMES = 3,\n TX_NAK_FRAMES = 4,\n TX_RE_DATA_FRAMES = 5,\n TX_N1_FRAMES = 6,\n TX_CANCELLED = 7,\n RX_DATA = 8,\n RX_ALL_FRAMES = 9,\n RX_DATA_FRAMES = 10,\n RX_ACK_FRAMES = 11,\n RX_NAK_FRAMES = 12,\n RX_RE_DATA_FRAMES = 13,\n RX_N1_FRAMES = 14,\n RX_CANCELLED = 15,\n RX_CRC_ERRORS = 16,\n RX_COMM_ERRORS = 17,\n RX_TOO_SHORT = 18,\n RX_TOO_LONG = 19,\n RX_BAD_CONTROL = 20,\n RX_BAD_LENGTH = 21,\n RX_BAD_ACK_NUMBER = 22,\n RX_NO_BUFFER = 23,\n RX_DUPLICATES = 24,\n RX_OUT_OF_SEQUENCE = 25,\n RX_ACK_TIMEOUTS = 26,\n}\n\nexport const MAX_TIME_MTORR_BROADCAST = 60;\n\nexport enum EmberStackError {\n // Error codes that a router uses to notify the message initiator about a broken route.\n ROUTE_ERROR_NO_ROUTE_AVAILABLE = 0x00,\n ROUTE_ERROR_TREE_LINK_FAILURE = 0x01,\n ROUTE_ERROR_NON_TREE_LINK_FAILURE = 0x02,\n ROUTE_ERROR_LOW_BATTERY_LEVEL = 0x03,\n ROUTE_ERROR_NO_ROUTING_CAPACITY = 0x04,\n ROUTE_ERROR_NO_INDIRECT_CAPACITY = 0x05,\n ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY = 0x06,\n ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE = 0x07,\n ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED = 0x08,\n ROUTE_ERROR_PARENT_LINK_FAILURE = 0x09,\n ROUTE_ERROR_VALIDATE_ROUTE = 0x0a,\n ROUTE_ERROR_SOURCE_ROUTE_FAILURE = 0x0b,\n ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE = 0x0c,\n ROUTE_ERROR_ADDRESS_CONFLICT = 0x0d,\n ROUTE_ERROR_VERIFY_ADDRESSES = 0x0e,\n ROUTE_ERROR_PAN_IDENTIFIER_UPDATE = 0x0f,\n\n NETWORK_STATUS_NETWORK_ADDRESS_UPDATE = 0x10,\n NETWORK_STATUS_BAD_FRAME_COUNTER = 0x11,\n NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER = 0x12,\n NETWORK_STATUS_UNKNOWN_COMMAND = 0x13,\n}\n","import { AshCounters, EmberCounters } from './types';\nimport { EmberStackError, MAX_TIME_MTORR_BROADCAST } from './zh';\n\nexport const NCP_COUNTERS_NOTICE: readonly string[] = [\n /* MAC_RX_BROADCAST */ `The MAC received a broadcast Data frame, Command frame, or Beacon.`,\n /* MAC_TX_BROADCAST */ `The MAC transmitted a broadcast Data frame, Command frame or Beacon.`,\n /* MAC_RX_UNICAST */ `The MAC received a unicast Data or Command frame.`,\n /* MAC_TX_UNICAST_SUCCESS */ `The MAC successfully transmitted a unicast Data or Command frame. Note: Only frames with a 16-bit destination node ID are counted.`,\n /* MAC_TX_UNICAST_RETRY */ `The MAC retried a unicast Data or Command frame after initial Tx attempt. Note: CSMA-related failures are tracked separately via PHY_CCA_FAIL_COUNT.`,\n /* MAC_TX_UNICAST_FAILED */ `The MAC unsuccessfully transmitted a unicast Data or Command frame. Note: Only frames with a 16-bit destination node ID are counted.`,\n /* APS_DATA_RX_BROADCAST */ `The APS layer received a data broadcast.`,\n /* APS_DATA_TX_BROADCAST */ `The APS layer transmitted a data broadcast.`,\n /* APS_DATA_RX_UNICAST */ `The APS layer received a data unicast.`,\n /* APS_DATA_TX_UNICAST_SUCCESS */ `The APS layer successfully transmitted a data unicast.`,\n /* APS_DATA_TX_UNICAST_RETRY */ `The APS layer retried a unicast data frame.`,\n /* APS_DATA_TX_UNICAST_FAILED */ `The APS layer unsuccessfully transmitted a data unicast.`,\n /* ROUTE_DISCOVERY_INITIATED */ `The network layer successfully submitted a new route discovery to the MAC. Current Ember default is to trigger at least one every ${MAX_TIME_MTORR_BROADCAST} seconds.`,\n /* NEIGHBOR_ADDED */ `An entry was added to the neighbor table.`,\n /* NEIGHBOR_REMOVED */ `An entry was removed from the neighbor table.`,\n /* NEIGHBOR_STALE */ `A neighbor table entry became stale because it had not been heard from.`,\n /* JOIN_INDICATION */ `A node joined or rejoined to the network via this node.`,\n /* CHILD_REMOVED */ `An entry was removed from the child table.`,\n /* ASH_OVERFLOW_ERROR */ `EZSP-UART only. An overflow error occurred in the UART.`,\n /* ASH_FRAMING_ERROR */ `EZSP-UART only. A framing error occurred in the UART.`,\n /* ASH_OVERRUN_ERROR */ `EZSP-UART only. An overrun error occurred in the UART.`,\n /* NWK_FRAME_COUNTER_FAILURE */ `A message was dropped at the Network layer because the NWK frame counter was not higher than the last message seen from that source.`,\n /* APS_FRAME_COUNTER_FAILURE */ `A message was dropped at the APS layer because the APS frame counter was not higher than the last message seen from that source.`,\n /* ASH_XOFF */ `EZSP-UART only. An XOFF was transmitted by the UART.`,\n /* APS_LINK_KEY_NOT_AUTHORIZED */ `An encrypted message was dropped by the APS layer because the sender's key has not been authenticated. As a result, the key is not authorized for use in APS data messages.`,\n /* NWK_DECRYPTION_FAILURE */ `A NWK encrypted message was received but dropped because decryption failed.`,\n /* APS_DECRYPTION_FAILURE */ `An APS encrypted message was received but dropped because decryption failed.`,\n /* ALLOCATE_PACKET_BUFFER_FAILURE */ `The number of failures to allocate a set of linked packet buffers. This doesn't necessarily mean that the packet buffer count was 0 at the time, but that the number requested was greater than the number free.`,\n /* RELAYED_UNICAST */ `The number of relayed unicast packets.`,\n /* PHY_TO_MAC_QUEUE_LIMIT_REACHED */ `The number of times a packet was dropped due to reaching the preset PHY-to-MAC queue limit. For each count, there may be more than 1 packet that was dropped due to the limit reached.`,\n /* PACKET_VALIDATE_LIBRARY_DROPPED_COUNT */ `The number of times a packet was dropped due to the packet-validate library checking a packet and rejecting it due to length or other formatting problems.`,\n /* TYPE_NWK_RETRY_OVERFLOW */ `The number of times the NWK retry queue is full and a new message failed to be added.`,\n /* PHY_CCA_FAIL_COUNT */ `The number of times the PHY layer was unable to transmit due to a failed CCA (Clear Channel Assessment) attempt.`,\n /* BROADCAST_TABLE_FULL */ `The number of times a NWK broadcast was dropped because the broadcast table was full.`,\n /* PTA_LO_PRI_REQUESTED */ `The number of times a low-priority packet traffic arbitration request has been made.`,\n /* PTA_HI_PRI_REQUESTED */ `The number of times a high-priority packet traffic arbitration request has been made.`,\n /* PTA_LO_PRI_DENIED */ `The number of times a low-priority packet traffic arbitration request has been denied.`,\n /* PTA_HI_PRI_DENIED */ `The number of times a high-priority packet traffic arbitration request has been denied.`,\n /* PTA_LO_PRI_TX_ABORTED */ `The number of times a low-priority packet traffic arbitration transmission has been aborted.`,\n /* PTA_HI_PRI_TX_ABORTED */ `The number of times a high-priority packet traffic arbitration transmission has been aborted.`,\n /* ADDRESS_CONFLICT_SENT */ `The number of times an address conflict has caused node_id change, and an address conflict error is sent.`,\n];\n\nexport const ASH_COUNTERS_NOTICE: readonly string[] = [\n /* TX_DATA */ `The total bytes of transmitted data within DATA frames. This can significantly vary if you have device types that transmit lots of data.`,\n /* TX_ALL_FRAMES */ `The total number of transmitted frames.`,\n /* TX_DATA_FRAMES */ `The number of transmitted DATA frames.`,\n /* TX_ACK_FRAMES */ `The number of transmitted ACK frames.`,\n /* TX_NAK_FRAMES */ `The number of transmitted NAK frames.`,\n /* TX_RE_DATA_FRAMES */ `The number of re-transmitted DATA frames.`,\n /* TX_N1_FRAMES */ `The number of transmitted frames flagged with 'not ready'.`,\n /* TX_CANCELLED */ `The number of cancelled transmitted frames.`,\n /* RX_DATA */ `The total bytes of received data within DATA frames. This can significantly vary if you have device types that transmit lots of data.`,\n /* RX_ALL_FRAMES */ `The total number of received frames.`,\n /* RX_DATA_FRAMES */ `The number of received DATA frames.`,\n /* RX_ACK_FRAMES */ `The number of received ACK frames.`,\n /* RX_NAK_FRAMES */ `The number of received NAK frames.`,\n /* RX_RE_DATA_FRAMES */ `The number of re-transmitted received DATA frames.`,\n /* RX_N1_FRAMES */ `The number of received frames flagged with 'not ready'.`,\n /* RX_CANCELLED */ `The number of cancelled received frames.`,\n /* RX_CRC_ERRORS */ `The number of received frames with CRC errors.`,\n /* RX_COMM_ERRORS */ `The number of received frames with communication errors.`,\n /* RX_TOO_SHORT */ `The number of received frames that were too short.`,\n /* RX_TOO_LONG */ `The number of received frames that were too long.`,\n /* RX_BAD_CONTROL */ `The number of received frames with illegal control byte.`,\n /* RX_BAD_LENGTH */ `The number of received frames with illegal length for type.`,\n /* RX_BAD_ACK_NUMBER */ `The number of received frames with bad ACK number.`,\n /* RX_NO_BUFFER */ `The number of DATA frames discarded due to lack of buffers.`,\n /* RX_DUPLICATES */ `The number of received duplicate re-transmitted DATA frames.`,\n /* RX_OUT_OF_SEQUENCE */ `The number of DATA frames received out of sequence.`,\n /* RX_ACK_TIMEOUTS */ `The number of received ACK timeouts.`,\n];\n\nexport const EMBER_STACK_ERRORS_NOTICE: Readonly> = {\n [EmberStackError.ROUTE_ERROR_NO_ROUTE_AVAILABLE]: ``,\n [EmberStackError.ROUTE_ERROR_TREE_LINK_FAILURE]: ``,\n [EmberStackError.ROUTE_ERROR_NON_TREE_LINK_FAILURE]: ``,\n [EmberStackError.ROUTE_ERROR_LOW_BATTERY_LEVEL]: ``,\n [EmberStackError.ROUTE_ERROR_NO_ROUTING_CAPACITY]: ``,\n [EmberStackError.ROUTE_ERROR_NO_INDIRECT_CAPACITY]: ``,\n [EmberStackError.ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY]: ``,\n [EmberStackError.ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE]: ``,\n [EmberStackError.ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED]: ``,\n [EmberStackError.ROUTE_ERROR_PARENT_LINK_FAILURE]: ``,\n [EmberStackError.ROUTE_ERROR_VALIDATE_ROUTE]: ``,\n [EmberStackError.ROUTE_ERROR_SOURCE_ROUTE_FAILURE]: `Indicates a message sent from the device encountered a broken link. The device prior to the broken link generated the error message and return it to the device.`,\n [EmberStackError.ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE]: `Indicates that a message sent to the device encountered a broken link. The device prior to the broken link generated the error message and forwarded it to the device via a randomly chosen neighbor.`,\n [EmberStackError.ROUTE_ERROR_ADDRESS_CONFLICT]: ``,\n [EmberStackError.ROUTE_ERROR_VERIFY_ADDRESSES]: ``,\n [EmberStackError.ROUTE_ERROR_PAN_IDENTIFIER_UPDATE]: ``,\n [EmberStackError.NETWORK_STATUS_NETWORK_ADDRESS_UPDATE]: ``,\n [EmberStackError.NETWORK_STATUS_BAD_FRAME_COUNTER]: ``,\n [EmberStackError.NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER]: ``,\n [EmberStackError.NETWORK_STATUS_UNKNOWN_COMMAND]: ``,\n};\n\n/**\n * @see index.html for details on these references\n */\nexport const IDEAL_NCP_COUNTERS: EmberCounters = [\n 203.6262, // MAC_RX_BROADCAST\n 14.1578, // MAC_TX_BROADCAST\n 226.4056, // MAC_RX_UNICAST\n 205.8569, // MAC_TX_UNICAST_SUCCESS\n 2.0597, // MAC_TX_UNICAST_RETRY\n 0.0524, // MAC_TX_UNICAST_FAILED\n 0.008, // APS_DATA_RX_BROADCAST\n 0.008, // APS_DATA_TX_BROADCAST\n 167.3364, // APS_DATA_RX_UNICAST\n 163.6076, // APS_DATA_TX_UNICAST_SUCCESS\n 0, // APS_DATA_TX_UNICAST_RETRY\n 0.0038, // APS_DATA_TX_UNICAST_FAILED\n MAX_TIME_MTORR_BROADCAST, // ROUTE_DISCOVERY_INITIATED\n 0, // NEIGHBOR_ADDED\n 0, // NEIGHBOR_REMOVED\n 0.0263, // NEIGHBOR_STALE\n 0, // JOIN_INDICATION\n 0, // CHILD_REMOVED\n 0, // ASH_OVERFLOW_ERROR\n 0, // ASH_FRAMING_ERROR\n 0, // ASH_OVERRUN_ERROR\n 0.0393, // NWK_FRAME_COUNTER_FAILURE\n 0, // APS_FRAME_COUNTER_FAILURE\n 0, // ASH_XOFF\n 0, // APS_LINK_KEY_NOT_AUTHORIZED\n 0, // NWK_DECRYPTION_FAILURE\n 0.2279, // APS_DECRYPTION_FAILURE\n 0, // ALLOCATE_PACKET_BUFFER_FAILURE\n 0, // RELAYED_UNICAST\n 0, // PHY_TO_MAC_QUEUE_LIMIT_REACHED\n 0, // PACKET_VALIDATE_LIBRARY_DROPPED_COUNT\n 0, // TYPE_NWK_RETRY_OVERFLOW\n 0.0102, // PHY_CCA_FAIL_COUNT\n 0, // BROADCAST_TABLE_FULL\n 0, // PTA_LO_PRI_REQUESTED\n 0, // PTA_HI_PRI_REQUESTED\n 0, // PTA_LO_PRI_DENIED\n 0, // PTA_HI_PRI_DENIED\n 0, // PTA_LO_PRI_TX_ABORTED\n 0, // PTA_HI_PRI_TX_ABORTED\n 0, // ADDRESS_CONFLICT_SENT\n];\n\n/**\n * @see index.html for details on these references\n */\nexport const IDEAL_ASH_COUNTERS: AshCounters = [\n 10878, // TX_DATA\n 634, // TX_ALL_FRAMES\n 154, // TX_DATA_FRAMES\n 479, // TX_ACK_FRAMES\n 0, // TX_NAK_FRAMES\n 0, // TX_RE_DATA_FRAMES\n 0, // TX_N1_FRAMES\n 0, // TX_CANCELLED\n 4063, // RX_DATA\n 480, // RX_ALL_FRAMES\n 480, // RX_DATA_FRAMES\n 0, // RX_ACK_FRAMES\n 0, // RX_NAK_FRAMES\n 0, // RX_RE_DATA_FRAMES\n 0, // RX_N1_FRAMES\n 0, // RX_CANCELLED\n 0, // RX_CRC_ERRORS\n 0, // RX_COMM_ERRORS\n 0, // RX_TOO_SHORT\n 0, // RX_TOO_LONG\n 0, // RX_BAD_CONTROL\n 0, // RX_BAD_LENGTH\n 0, // RX_BAD_ACK_NUMBER\n 0, // RX_NO_BUFFER\n 0, // RX_DUPLICATES\n 0, // RX_OUT_OF_SEQUENCE\n 0, // RX_ACK_TIMEOUTS\n];\n\nexport const IDEAL_ROUTER_RATIO = 0.5;\n\nexport const IDEAL_NCP_COUNTERS_FACTORS: [badFactor: number, veryBadFactor: number, higherBetter: boolean][] = [\n [5, 10, false], // MAC_RX_BROADCAST\n [5, 10, false], // MAC_TX_BROADCAST\n [5, 10, false], // MAC_RX_UNICAST\n [0, 0, false], // MAC_TX_UNICAST_SUCCESS\n [3, 5, false], // MAC_TX_UNICAST_RETRY\n [3, 5, false], // MAC_TX_UNICAST_FAILED\n [5, 10, false], // APS_DATA_RX_BROADCAST\n [5, 10, false], // APS_DATA_TX_BROADCAST\n [5, 10, false], // APS_DATA_RX_UNICAST\n [0, 0, false], // APS_DATA_TX_UNICAST_SUCCESS\n [-2, -2, false], // APS_DATA_TX_UNICAST_RETRY\n [-2, -2, false], // APS_DATA_TX_UNICAST_FAILED\n [1.3, 1.6, false], // ROUTE_DISCOVERY_INITIATED\n [0, 0, false], // NEIGHBOR_ADDED\n [0, 0, false], // NEIGHBOR_REMOVED\n [3, 6, false], // NEIGHBOR_STALE\n [0, 0, false], // JOIN_INDICATION\n [0, 0, false], // CHILD_REMOVED\n [-1, -1, false], // ASH_OVERFLOW_ERROR\n [-1, -1, false], // ASH_FRAMING_ERROR\n [-1, -1, false], // ASH_OVERRUN_ERROR\n [10, 20, false], // NWK_FRAME_COUNTER_FAILURE\n [10, 20, false], // APS_FRAME_COUNTER_FAILURE\n [-1, -1, false], // ASH_XOFF\n [0, 0, false], // APS_LINK_KEY_NOT_AUTHORIZED\n [10, 20, false], // NWK_DECRYPTION_FAILURE\n [10, 20, false], // APS_DECRYPTION_FAILURE\n [0, 0, false], // ALLOCATE_PACKET_BUFFER_FAILURE\n [0, 0, false], // RELAYED_UNICAST\n [-1, -1, false], // PHY_TO_MAC_QUEUE_LIMIT_REACHED\n [-1, -1, false], // PACKET_VALIDATE_LIBRARY_DROPPED_COUNT\n [-1, -1, false], // TYPE_NWK_RETRY_OVERFLOW\n [10, 15, false], // PHY_CCA_FAIL_COUNT\n [-2, -2, false], // BROADCAST_TABLE_FULL\n [0, 0, false], // PTA_LO_PRI_REQUESTED\n [0, 0, false], // PTA_HI_PRI_REQUESTED\n [0, 0, false], // PTA_LO_PRI_DENIED\n [0, 0, false], // PTA_HI_PRI_DENIED\n [0, 0, false], // PTA_LO_PRI_TX_ABORTED\n [0, 0, false], // PTA_HI_PRI_TX_ABORTED\n [-2, -2, false], // ADDRESS_CONFLICT_SENT\n];\n\nexport const IDEAL_ASH_COUNTERS_FACTORS: [badFactor: number, veryBadFactor: number, higherBetter: boolean][] = [\n [0, 0, false], // TX_DATA\n [0, 0, false], // TX_ALL_FRAMES\n [0, 0, false], // TX_DATA_FRAMES\n [0, 0, false], // TX_ACK_FRAMES\n [-1, -1, false], // TX_NAK_FRAMES\n [-1, -1, false], // TX_RE_DATA_FRAMES\n [-1, -1, false], // TX_N1_FRAMES\n [-1, -1, false], // TX_CANCELLED\n [0, 0, false], // RX_DATA\n [0, 0, false], // RX_ALL_FRAMES\n [0, 0, false], // RX_DATA_FRAMES\n [0, 0, false], // RX_ACK_FRAMES\n [-1, -1, false], // RX_NAK_FRAMES\n [-1, -1, false], // RX_RE_DATA_FRAMES\n [-1, -1, false], // RX_N1_FRAMES\n [-1, -1, false], // RX_CANCELLED\n [-1, -1, false], // RX_CRC_ERRORS\n [-1, -1, false], // RX_COMM_ERRORS\n [-1, -1, false], // RX_TOO_SHORT\n [-1, -1, false], // RX_TOO_LONG\n [-1, -1, false], // RX_BAD_CONTROL\n [-1, -1, false], // RX_BAD_LENGTH\n [-1, -1, false], // RX_BAD_ACK_NUMBER\n [-1, -1, false], // RX_NO_BUFFER\n [-1, -1, false], // RX_DUPLICATES\n [-1, -1, false], // RX_OUT_OF_SEQUENCE\n [-1, -1, false], // RX_ACK_TIMEOUTS\n];\n","import { TableCellData } from './types';\n\nexport type ValueClassName = 'is-danger' | 'is-warning';\n\n// If `badFactor` and `veryBadFactor` are -1, it means any value other than 0 should flag as is-danger\n// If `badFactor` and `veryBadFactor` are -2, it means any value other than 0 should flag as is-warning\nexport function getValueClassName(\n value: number,\n ideal: number,\n badFactor: number,\n veryBadFactor: number = 0,\n higherBetter: boolean = false,\n): ValueClassName | undefined {\n if (badFactor === -1 && veryBadFactor === -1) {\n if (value !== 0) {\n return 'is-danger';\n }\n } else if (badFactor === -2 && veryBadFactor === -2) {\n if (value !== 0) {\n return 'is-warning';\n }\n } else if (ideal !== 0 && badFactor !== 0) {\n if (veryBadFactor === 0) {\n veryBadFactor = badFactor * 2;\n }\n\n if (higherBetter ? value < ideal * veryBadFactor : value > ideal * veryBadFactor) {\n return 'is-danger';\n }\n\n if (higherBetter ? value < ideal * badFactor : value > ideal * badFactor) {\n return 'is-warning';\n }\n }\n\n return undefined;\n}\n\nexport function makeH3(text: string, className: string = ''): HTMLHeadElement {\n const p = document.createElement('h3');\n p.textContent = text;\n p.className = className;\n\n return p;\n}\n\nexport function makeParagraph(text: string, className: string = ''): HTMLParagraphElement {\n const p = document.createElement('p');\n p.textContent = text;\n p.className = className;\n\n return p;\n}\n\nexport function makeButton(text: string, className: string = ''): HTMLAnchorElement {\n const a = document.createElement('a');\n a.textContent = text;\n a.className = `button ${className}`;\n\n return a;\n}\n\nexport function makeTableContainer(table?: HTMLTableElement): HTMLDivElement {\n const container = document.createElement('div');\n container.className = 'table-container pb-2';\n\n if (table) {\n container.append(table);\n }\n\n return container;\n}\n\nexport function makeTable(headCols: string[], footCols: string[], rows: TableCellData[][], sortable: boolean = false): HTMLTableElement {\n const table = document.createElement('table');\n const tBody = document.createElement('tbody');\n table.className = `table is-fullwidth is-narrow is-hoverable is-bordered ${sortable ? 'is-clickable' : ''}`;\n\n if (headCols.length > 0) {\n const tHead = document.createElement('thead');\n const tr = document.createElement('tr');\n const cols: HTMLTableCellElement[] = [];\n\n for (const headCol of headCols) {\n const th = document.createElement('th');\n th.innerHTML = headCol;\n\n tr.append(th);\n cols.push(th);\n }\n\n if (sortable) {\n for (const [i, col] of cols.entries()) {\n col.addEventListener('click', () => {\n sortTable(tBody, i);\n });\n }\n }\n\n tHead.append(tr);\n table.append(tHead);\n }\n\n if (rows.length > 0) {\n for (const row of rows) {\n const tr = document.createElement('tr');\n\n for (const cell of row) {\n const td = document.createElement('td');\n td.innerHTML = cell.content;\n\n if (cell.className) {\n td.className = cell.className;\n }\n\n tr.append(td);\n }\n\n tBody.append(tr);\n }\n }\n\n table.append(tBody);\n\n if (footCols.length > 0) {\n const tFoot = document.createElement('tfoot');\n const tr = document.createElement('tr');\n\n for (const footCol of footCols) {\n const th = document.createElement('th');\n th.innerHTML = footCol;\n\n tr.append(th);\n }\n\n tFoot.append(tr);\n table.append(tFoot);\n }\n\n return table;\n}\n\nexport function makeList(items: string[]): HTMLUListElement {\n const list = document.createElement('ul');\n\n for (const item of items) {\n const listItem = document.createElement('li');\n listItem.innerHTML = item;\n\n list.append(listItem);\n }\n\n return list;\n}\n\nexport function makeListCard(title: string, listItems: string[]): HTMLDivElement {\n const card = document.createElement('div');\n card.className = 'card';\n\n const cardHeader = document.createElement('header');\n cardHeader.className = 'card-header';\n\n const cardTitle = document.createElement('p');\n cardTitle.className = 'card-header-title';\n cardTitle.innerHTML = title;\n\n cardHeader.append(cardTitle);\n card.append(cardHeader);\n\n const cardContent = document.createElement('div');\n cardContent.className = 'card-content';\n\n const content = document.createElement('div');\n content.className = 'content';\n\n const list = makeList(listItems);\n\n content.append(list);\n cardContent.append(content);\n card.append(cardContent);\n\n return card;\n}\n\nexport function makeMessage(title: string, message: string, className: string = ''): HTMLElement {\n const article = document.createElement('article');\n article.className = `message ${className}`;\n\n const header = document.createElement('div');\n header.className = 'message-header';\n header.textContent = title;\n\n article.append(header);\n\n if (message !== '') {\n const body = document.createElement('div');\n body.className = 'message-body';\n body.innerHTML = message;\n\n article.append(body);\n }\n\n return article;\n}\n\nexport function sortTable(tableBody: HTMLTableSectionElement, colIndex: number) {\n const rowsArray = [...tableBody.rows];\n let order: 'asc' | 'desc' = 'desc';\n const tableSorting = tableBody.getAttribute('sorting');\n\n if (tableSorting && tableSorting !== '') {\n const lastSorting = tableSorting.split('.');\n\n if (Number.parseInt(lastSorting[0], 10) === colIndex && lastSorting[1] === 'desc') {\n order = 'asc';\n }\n }\n\n const sortFn =\n order === 'desc'\n ? (a: HTMLTableRowElement, b: HTMLTableRowElement) =>\n b.cells[colIndex].innerHTML.localeCompare(a.cells[colIndex].innerHTML, undefined, { numeric: true })\n : (a: HTMLTableRowElement, b: HTMLTableRowElement) =>\n a.cells[colIndex].innerHTML.localeCompare(b.cells[colIndex].innerHTML, undefined, { numeric: true });\n\n rowsArray.sort(sortFn);\n\n tableBody.setAttribute('sorting', `${colIndex}.${order}`);\n\n const tableHeadCols = tableBody.previousElementSibling?.children[0];\n\n if (tableHeadCols) {\n for (let i = 0; i < tableHeadCols.children.length; i++) {\n tableHeadCols.children[i].className = i === colIndex ? `is-sorted-${order}` : '';\n }\n }\n\n tableBody.append(...rowsArray);\n}\n","import Notify from 'simple-notify';\n\nexport class NotifyError extends Error {\n constructor(message: string, title: string) {\n // eslint-disable-next-line no-new\n new Notify({\n status: 'error',\n title,\n text: message,\n });\n\n super(`${title}: ${message}`);\n }\n}\n","export const round = (n: number, precision: number = 2): number => {\n const factor = 10 ** precision;\n\n return Math.round(n * factor) / factor;\n};\n\n// @from zigbee2mqtt-frontend\nexport const toHex = (input: number, padding = 4): string => {\n const padStr = '0'.repeat(padding);\n return '0x' + (padStr + input.toString(16)).slice(-1 * padding).toUpperCase();\n};\n"],"names":["$b4e14b6b8da86996$var$logFile","$parcel$interopDefault","a","__esModule","default","EmberCounterType","AshCounterType","EmberStackError","$0c547add3190c50c$export$7d1f329b3260ae16","$0c547add3190c50c$export$ce7ab19ae6dc792d","$0c547add3190c50c$export$128038c7eaec3edd","$parcel$global","globalThis","$parcel$modules","$parcel$inits","parcelRequire","id","exports","init","module","call","err","Error","code","register","parcelRegister","factory","hooks","hookCallback","apply","arguments","isArray","input","Array","Object","prototype","toString","isObject","hasOwnProp","b","hasOwnProperty","isObjectEmpty","obj","k","getOwnPropertyNames","length","isUndefined","isNumber","isDate","Date","map","arr","fn","i","res","arrLen","push","extend","valueOf","createUTC","format","locale","strict","createLocalOrUTC","utc","getParsingFlags","m","_pf","empty","unusedTokens","unusedInput","overflow","charsLeftOver","nullInput","invalidEra","invalidMonth","invalidFormat","userInvalidated","iso","parsedDateParts","era","meridiem","rfc2822","weekdayMismatch","isValid","flags","parsedParts","isNowValid","_d","isNaN","getTime","some","invalidWeekday","_strict","undefined","bigHour","isFrozen","_isValid","createInvalid","NaN","fun","t","len","token","getSetMillisecond","momentProperties","updateInProgress","copyConfig","to","from","prop","val","momentPropertiesLen","_isAMomentObject","_i","_f","_l","_tzm","_isUTC","_offset","_locale","Moment","config","updateOffset","isMoment","warn","msg","suppressDeprecationWarnings","console","deprecate","firstTime","deprecationHandler","arg","key","args","argLen","slice","join","stack","deprecations","deprecateSimple","name","isFunction","Function","mergeConfigs","parentConfig","childConfig","Locale","set","zeroFill","number","targetLength","forceSign","absNumber","Math","abs","sign","pow","max","substr","keys","formattingTokens","localFormattingTokens","formatFunctions","formatTokenFunctions","addFormatToken","padded","ordinal","callback","func","localeData","formatMoment","expandFormat","makeFormatFunction","array","match","replace","mom","output","invalidDate","replaceLongDateFormatTokens","longDateFormat","lastIndex","test","aliases","D","dates","date","d","days","day","e","weekdays","weekday","E","isoweekdays","isoweekday","DDD","dayofyears","dayofyear","h","hours","hour","ms","milliseconds","millisecond","minutes","minute","M","months","month","Q","quarters","quarter","s","seconds","second","gg","weekyears","weekyear","GG","isoweekyears","isoweekyear","w","weeks","week","W","isoweeks","isoweek","y","years","year","normalizeUnits","units","toLowerCase","normalizeObjectUnits","inputObject","normalizedProp","normalizedInput","regexes","priorities","isoWeekday","dayOfYear","weekYear","isoWeekYear","isoWeek","match1","match2","match3","match4","match6","match1to2","match3to4","match5to6","match1to3","match1to4","match1to6","matchUnsigned","matchSigned","matchOffset","matchShortOffset","matchWord","match1to2NoLeadingZero","match1to2HasZero","addRegexToken","regex","strictRegex","isStrict","regexEscape","absFloor","ceil","floor","toInt","argumentForCoercion","coercedNumber","value","isFinite","tokens","addParseToken","tokenLen","addWeekParseToken","_w","isLeapYear","daysInYear","parseTwoDigitYear","parseInt","getSetYear","makeGetSet","unit","keepTime","set$1","get","isUTC","getUTCMilliseconds","getMilliseconds","getUTCSeconds","getSeconds","getUTCMinutes","getMinutes","getUTCHours","getHours","getUTCDate","getDate","getUTCDay","getDay","getUTCMonth","getMonth","getUTCFullYear","getFullYear","setUTCMilliseconds","setMilliseconds","setUTCSeconds","setSeconds","setUTCMinutes","setMinutes","setUTCHours","setHours","setUTCDate","setDate","setUTCFullYear","setFullYear","daysInMonth","modMonth","n","x","indexOf","o","monthsShort","monthsShortRegex","monthsRegex","monthsParse","defaultLocaleMonthsShort","split","MONTHS_IN_FORMAT","handleStrictParse","monthName","ii","llc","toLocaleLowerCase","_monthsParse","_longMonthsParse","_shortMonthsParse","setMonth","min","setUTCMonth","getSetMonth","computeMonthsParse","cmpLenRev","shortP","longP","shortPieces","longPieces","mixedPieces","sort","_monthsRegex","RegExp","_monthsShortRegex","_monthsStrictRegex","_monthsShortStrictRegex","createDate","createUTCDate","UTC","firstWeekOffset","dow","doy","fwd","dayOfYearFromWeeks","resYear","resDayOfYear","weekOfYear","resWeek","weekOffset","weeksInYear","weekOffsetNext","shiftWeekdays","ws","concat","weekdaysMin","weekdaysShort","weekdaysMinRegex","weekdaysShortRegex","weekdaysRegex","weekdaysParse","defaultLocaleWeekdaysShort","handleStrictParse$1","weekdayName","_weekdaysParse","_shortWeekdaysParse","_minWeekdaysParse","computeWeekdaysParse","minp","shortp","longp","minPieces","_weekdaysRegex","_weekdaysShortRegex","_weekdaysMinRegex","_weekdaysStrictRegex","_weekdaysShortStrictRegex","_weekdaysMinStrictRegex","hFormat","lowercase","matchMeridiem","_meridiemParse","kInput","_isPm","isPM","_meridiem","pos","pos1","pos2","globalLocale","getSetHour","baseConfig","calendar","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","LTS","LT","L","LL","LLL","LLLL","dayOfMonthOrdinalParse","relativeTime","future","past","ss","mm","hh","dd","ww","MM","yy","meridiemParse","locales","localeFamilies","normalizeLocale","loadLocale","oldLocale","_abbr","aliasedRequire","getSetGlobalLocale","values","data","getLocale","defineLocale","abbr","_config","parentLocale","forEach","chooseLocale","names","j","next","commonPrefix","arr1","arr2","minl","checkOverflow","_a","_overflowDayOfYear","_overflowWeeks","_overflowWeekday","extendedIsoRegex","basicIsoRegex","tzRegex","isoDates","isoTimes","aspNetJsonRegex","obsOffsets","UT","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","configFromISO","l","allowTime","dateFormat","timeFormat","tzFormat","string","exec","isoDatesLen","isoTimesLen","configFromStringAndFormat","configFromRFC2822","yearStr","monthStr","dayStr","hourStr","minuteStr","secondStr","result","weekdayStr","weekdayProvided","parsedInput","calculateOffset","obsOffset","militaryOffset","numOffset","hm","defaults","c","configFromArray","temp","weekdayOverflow","curWeek","nowValue","currentDate","expectedWeekday","yearToUse","now","_useUTC","createLocal","_week","_dayOfYear","_nextDay","ISO_8601","RFC_2822","isPm","skipped","stringLength","totalParsedInputLength","matched","p1","p2","p3","p4","meridiemHour","erasConvertYear","prepareConfig","preparse","configFromStringAndArray","tempConfig","bestMoment","scoreToBeat","currentScore","validFormatFound","bestFormatIsValid","configfLen","score","configFromString","createFromInputFallback","configFromObject","dayOrDate","add","prototypeMin","other","prototypeMax","pickBy","moments","ordering","Duration","duration","isDurationValid","unitHasDecimal","orderLen","parseFloat","_milliseconds","_days","_months","_data","_bubble","isDuration","absRound","round","offset","separator","utcOffset","offsetFromString","chunkOffset","matcher","parts","matches","chunk","cloneWithOffset","model","diff","clone","setTime","local","getDateOffset","getTimezoneOffset","isUtc","aspNetRegex","isoRegex","createDuration","base","ret","diffRes","parseIso","isBefore","positiveMomentsDifference","inp","isAfter","createAdder","direction","period","tmp","addSubtract","isAdding","invalid","subtract","isString","String","monthDiff","adjust","wholeMonthDiff","anchor","anchor2","newLocaleData","defaultFormat","defaultFormatUtc","lang","localStartOfDate","utcStartOfDate","matchEraAbbr","erasAbbrRegex","computeErasParse","erasName","erasAbbr","erasNarrow","abbrPieces","namePieces","narrowPieces","eras","narrow","_erasRegex","_erasNameRegex","_erasAbbrRegex","_erasNarrowRegex","addWeekYearFormatToken","getter","getSetWeekYearHelper","weeksTarget","setWeekAll","dayOfYearData","erasNameRegex","erasNarrowRegex","erasParse","_eraYearOrdinalRegex","eraYearOrdinalParse","_dayOfMonthOrdinalParse","_ordinalParse","_dayOfMonthOrdinalParseLenient","getSetDayOfMonth","getSetMinute","getSetSecond","parseMs","proto","preParsePostFormat","time","formats","arrayTest","dataTypeTest","filter","item","isMomentInputObject","property","objectTest","propertyTest","properties","propertyLen","isCalendarSpec","sod","startOf","calendarFormat","asFloat","that","zoneDelta","endOf","startOfDate","MS_PER_HOUR","dividend","MS_PER_MINUTE","MS_PER_SECOND","inputString","postformat","withoutSuffix","humanize","fromNow","toNow","invalidAt","localInput","isBetween","inclusivity","localFrom","localTo","isSame","inputMs","isSameOrAfter","isSameOrBefore","parsingFlags","prioritized","getPrioritizedUnits","unitsObj","u","priority","prioritizedLen","toArray","toObject","toDate","toISOString","keepOffset","inspect","prefix","datetime","suffix","zone","isLocal","Symbol","for","toJSON","unix","creationData","eraName","since","until","eraNarrow","eraAbbr","eraYear","dir","isoWeeks","weekInfo","weeksInWeekYear","isoWeeksInYear","isoWeeksInISOWeekYear","keepLocalTime","keepMinutes","localAdjust","_changeInProgress","parseZone","tZone","hasAlignedHourOffset","isDST","isUtcOffset","zoneAbbr","zoneName","isDSTShifted","_isDSTShifted","compareArrays","array1","array2","dontConvert","lengthDiff","diffs","proto$1","get$1","index","field","setter","listMonthsImpl","out","listWeekdaysImpl","localeSorted","shift","_calendar","_longDateFormat","formatUpper","toUpperCase","tok","_invalidDate","_ordinal","isFuture","_relativeTime","pastFuture","source","_eras","Infinity","isFormat","_monthsShort","_monthsParseExact","firstDayOfYear","firstDayOfWeek","_weekdays","_weekdaysMin","_weekdaysShort","_weekdaysParseExact","_fullWeekdaysParse","charAt","isLower","langData","mathAbs","addSubtract$1","absCeil","daysToMonths","monthsToDays","makeAs","alias","as","asMilliseconds","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asQuarters","asYears","makeGetter","thresholds","substituteTimeAgo","abs$1","toISOString$1","totalSign","ymSign","daysSign","hmsSign","total","toFixed","proto$2","monthsFromDays","argWithSuffix","argThresholds","withSuffix","th","assign","toIsoString","version","updateLocale","tmpLocale","relativeTimeRounding","roundingFunction","relativeTimeThreshold","threshold","limit","myMoment","HTML5_FMT","DATETIME_LOCAL","DATETIME_LOCAL_SECONDS","DATETIME_LOCAL_MS","DATE","TIME","TIME_SECONDS","TIME_MS","WEEK","MONTH","$45fvw","$37ea9347e68a07dc$var$i","defineProperty","$37ea9347e68a07dc$var$n","configurable","$37ea9347e68a07dc$var$h","DOMParser","parseFromString","body","childNodes","$37ea9347e68a07dc$var$d","document","importNode","documentElement","outerHTML","$37ea9347e68a07dc$var$u","CONTAINER","NOTIFY","NOTIFY_CONTENT","NOTIFY_ICON","NOTIFY_CLOSE","NOTIFY_TITLE","NOTIFY_TEXT","IS_X_CENTER","IS_Y_CENTER","IS_CENTER","IS_LEFT","IS_RIGHT","IS_TOP","IS_BOTTOM","NOTIFY_OUTLINE","NOTIFY_FILLED","NOTIFY_ERROR","NOTIFY_WARNING","NOTIFY_SUCCESS","NOTIFY_INFO","NOTIFY_FADE","NOTIFY_FADE_IN","NOTIFY_SLIDE","NOTIFY_SLIDE_IN","NOTIFY_AUTOCLOSE","$37ea9347e68a07dc$var$f","ERROR","WARNING","SUCCESS","INFO","$37ea9347e68a07dc$var$p","OUTLINE","FILLED","$37ea9347e68a07dc$var$I","FADE","SLIDE","$37ea9347e68a07dc$var$v","CLOSE","$37ea9347e68a07dc$var$N","wrapper","classList","setTimeout","$37ea9347e68a07dc$var$O","remove","speed","$37ea9347e68a07dc$var$T","$37ea9347e68a07dc$var$E","$37ea9347e68a07dc$var$m","$37ea9347e68a07dc$var$t","TypeError","notifyOut","notificationsGap","r","notificationsPadding","status","effect","f","type","v","title","N","text","O","showIcon","customIcon","customClass","F","showCloseButton","S","autoclose","R","autotimeout","position","customWrapper","checkRequirements","error","setContainer","setWrapper","setPosition","setIcon","setCloseButton","setContent","container","prepend","setEffect","notifyIn","selectedNotifyInEffect","autoClose","setObserver","querySelector","createElement","appendChild","style","setProperty","includes","innerHTML","addEventListener","close","textContent","trim","paddingRight","marginTop","IntersectionObserver","intersectionRatio","observe","selectedNotifyOutEffect","$37ea9347e68a07dc$var$e","enumerable","writable","Notify","$f9b620c609316de1$export$63c35f258aac6980","$f9b620c609316de1$export$303e55aba61750fd","$f9b620c609316de1$export$95beb742938a6341","$f9b620c609316de1$export$bc2704b0770a3200","$f9b620c609316de1$export$13864d84dc34e37e","$f9b620c609316de1$export$452af6364556dde","ROUTE_DISCOVERY_INITIATED","NEIGHBOR_ADDED","NEIGHBOR_REMOVED","NEIGHBOR_STALE","JOIN_INDICATION","CHILD_REMOVED","ASH_OVERFLOW_ERROR","ASH_FRAMING_ERROR","ASH_OVERRUN_ERROR","ASH_XOFF","$9a8cebc34540b0c1$export$230faf97f16ca50f","$9a8cebc34540b0c1$export$132b1ecb83473329","$9a8cebc34540b0c1$export$9db4cc0e61dac12","ROUTE_ERROR_NO_ROUTE_AVAILABLE","ROUTE_ERROR_TREE_LINK_FAILURE","ROUTE_ERROR_NON_TREE_LINK_FAILURE","ROUTE_ERROR_LOW_BATTERY_LEVEL","ROUTE_ERROR_NO_ROUTING_CAPACITY","ROUTE_ERROR_NO_INDIRECT_CAPACITY","ROUTE_ERROR_INDIRECT_TRANSACTION_EXPIRY","ROUTE_ERROR_TARGET_DEVICE_UNAVAILABLE","ROUTE_ERROR_TARGET_ADDRESS_UNALLOCATED","ROUTE_ERROR_PARENT_LINK_FAILURE","ROUTE_ERROR_VALIDATE_ROUTE","ROUTE_ERROR_SOURCE_ROUTE_FAILURE","ROUTE_ERROR_MANY_TO_ONE_ROUTE_FAILURE","ROUTE_ERROR_ADDRESS_CONFLICT","ROUTE_ERROR_VERIFY_ADDRESSES","ROUTE_ERROR_PAN_IDENTIFIER_UPDATE","NETWORK_STATUS_NETWORK_ADDRESS_UPDATE","NETWORK_STATUS_BAD_FRAME_COUNTER","NETWORK_STATUS_BAD_KEY_SEQUENCE_NUMBER","NETWORK_STATUS_UNKNOWN_COMMAND","$9a8cebc34540b0c1$export$28f5f2f1091db5f0","$9a8cebc34540b0c1$export$a91bc77486893ae8","$9a8cebc34540b0c1$export$87d42d2c5a101eee","$9a8cebc34540b0c1$export$973fb6872c2a8bcf","$5be042668c706f09$export$1ad60231255d3d9a","ideal","badFactor","veryBadFactor","higherBetter","$5be042668c706f09$export$15278ac1de423efe","className","$5be042668c706f09$export$61892979fbfca190","table","append","$5be042668c706f09$export$d96816ff34d2479a","headCols","footCols","rows","sortable","tBody","tHead","tr","cols","headCol","col","entries","$5be042668c706f09$export$a8f468ec3a62c6a1","tableBody","colIndex","rowsArray","order","tableSorting","getAttribute","lastSorting","Number","sortFn","cells","localeCompare","numeric","setAttribute","tableHeadCols","previousElementSibling","children","row","cell","td","content","tFoot","footCol","$5be042668c706f09$export$d6954196905e525e","listItems","card","cardHeader","cardTitle","cardContent","list","$5be042668c706f09$export$8690041b1e066766","items","listItem","$5be042668c706f09$export$80d602a56846f9b8","message","article","header","$1351eccf802354f1$export$2b677cfa6519f8ab","constructor","$df5bef30413a053b$export$2077e0241d6afd3c","precision","factor","$df5bef30413a053b$export$7ea66e3774a60b67","padding","padStr","repeat","$b4e14b6b8da86996$var$timestampFormat","$b4e14b6b8da86996$var$routers","$b4e14b6b8da86996$var$endDevices","$b4e14b6b8da86996$var$totalDevices","$b4e14b6b8da86996$var$logMetadata","lines","start","end","startOffset","$b4e14b6b8da86996$var$ncpCountersSum","$b4e14b6b8da86996$var$ncpCountersHoursCount","$b4e14b6b8da86996$var$ncpCounters","all","avg","avgPerDevice","avgByHour","$b4e14b6b8da86996$var$ashCountersSum","$b4e14b6b8da86996$var$ashCountersHoursCount","$b4e14b6b8da86996$var$ashCounters","$b4e14b6b8da86996$var$networkRouteErrors","$b4e14b6b8da86996$var$failedPings","$b4e14b6b8da86996$var$initVariables","fill","$b4e14b6b8da86996$var$makeTextFileLineIterator","file","utf8Decoder","TextDecoder","reader","stream","getReader","done","read","decode","re","startIndex","remainder","$b4e14b6b8da86996$var$parseLogFile","line","$b4e14b6b8da86996$var$parseLogLine","timestampMatch","timestamp","ncpCountersIndex","counters","subLine","cI","ashCountersIndex","networkRouteErrorIndex","splitLine","device","prev","at","countOffset","failedPingIndex","ncpCountersCount","counter","ashCountersCount","window","$loadForm","$heroBody","$menuHomeLink","$sectionHome","$menuStatsLink","$sectionStats","$menuNcpCountersLink","$sectionNcpCounters","$menuAshCountersLink","$sectionAshCounters","$menuRoutingLink","$sectionRouting","$menuToolsLink","$sectionTools","$menuHelpLink","$sectionHelp","menu","$link","$section","$otherLink","$otherSection","parentElement","event","preventDefault","FormData","$b4e14b6b8da86996$var$appendStatsSection","section","grid","ratio","parametersList","parametersCard","warningDuration","logFileCard","failedPingsByDevice","entry","count","$b4e14b6b8da86996$var$appendNCPCountersSection","ncpCountersHeader","ncpCountersRows","ncpCountersIdealRows","ncpCountersAvgPerDeviceRows","ncpCountersAvgRows","ncpCountersAvgForHourRows","tableContainerAvg","tableContainerAvgForHour","ashErrors","PHY_CCA_FAIL_COUNT","cls","MAC_TX_UNICAST_RETRY","ADDRESS_CONFLICT_SENT","BROADCAST_TABLE_FULL","showAllButton","tableContainerAll","$b4e14b6b8da86996$var$appendASHCountersSection","ashCountersHeader","ashCountersRows","ashCountersIdealRows","ashCountersAvgPerDeviceRows","ashCountersAvgRows","ashCountersAvgForHourRows","TX_N1_FRAMES","RX_NO_BUFFER","rxBad","RX_CRC_ERRORS","RX_COMM_ERRORS","RX_TOO_SHORT","RX_TOO_LONG","RX_BAD_CONTROL","RX_BAD_LENGTH","RX_BAD_ACK_NUMBER","RX_OUT_OF_SEQUENCE","RX_ACK_TIMEOUTS","$b4e14b6b8da86996$var$appendRoutingSection","errorsByDevice","tableContainer","rowsByError","deviceAvgPerHour","notice","click","ncpCountersTable","ashCountersTable","location","hash","link","close_default","error_default","info_default","success_default","warning_default","stringToHTML","__name","strHTML","getSvgNode","svg","doc","CLASSNAMES","NOTIFY_STATUS_ENUMS","NOTIFY_TYPE_ENUMS","NOTIFY_ANIMATION_ENUMS","ICONS","fadeIn","self","fadeOut","slideIn","slideOut","_Notify","closeWrapper","contentWrapper","titleElement","textElement","computedIcon","iconWrapper","observer"],"version":3,"file":"index.3382268b.js.map"} \ No newline at end of file diff --git a/index.html b/index.html index 506342f..1b23ed3 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Zigbee2MQTT Ember Helper

Zigbee2MQTT Ember Helper

Version: 1.2.0

Get a better understanding of your Zigbee network using Zigbee2MQTT with Ember driver (for EmberZNet-based adapter).

Enter your network details and provide the log file in the form above.

 

Compatible with Zigbee2MQTT version 1.37.0 or later.

Warning

The information given is only meant to be indicative and may not be entirely relevant depending on your specific network/environment.

Values for identifying potential issues remain arbitrary until improved with more feedback.

Processing is done locally in your browser. Your log file doesn't leave your computer.

Changelog

[1.2.x]

- Add average for each hour

- Add failed pings detection.


[1.1.x]

- Add ability to sort relevant tables. Improve Routing table 'by error' display.

- Improve Routing tab to more closely relate to the logic behind network/routing errors.

- Added messages for identified possible issues in NCP/ASH counters.

- "Ideal" NCP Counters are now based on a 720-hour sample (associated log file available for download in Help section).

\ No newline at end of file +Zigbee2MQTT Ember Helper

Zigbee2MQTT Ember Helper

Version: 1.2.1

Get a better understanding of your Zigbee network using Zigbee2MQTT with Ember driver (for EmberZNet-based adapter).

Enter your network details and provide the log file in the form above.

 

Compatible with Zigbee2MQTT version 1.37.0 or later.

Warning

The information given is only meant to be indicative and may not be entirely relevant depending on your specific network/environment.

Values for identifying potential issues remain arbitrary until improved with more feedback.

Processing is done locally in your browser. Your log file doesn't leave your computer.

Changelog

[1.2.x]

- Add counters average by hour.

- Add failed pings detection.


[1.1.x]

- Add ability to sort relevant tables. Improve Routing table 'by error' display.

- Improve Routing tab to more closely relate to the logic behind network/routing errors.

- Added messages for identified possible issues in NCP/ASH counters.

- "Ideal" NCP Counters are now based on a 720-hour sample (associated log file available for download in Help section).

\ No newline at end of file