UNPKG

@offsetpartners/react-components

Version:

React Components for Figure and Offset

9 lines 747 kB
(function(Rr,ia){typeof exports=="object"&&typeof module<"u"?ia(exports,require("react-dom"),require("react")):typeof define=="function"&&define.amd?define(["exports","react-dom","react"],ia):(Rr=typeof globalThis<"u"?globalThis:Rr||self,ia(Rr.figure={},Rr.ReactDOM,Rr.React))})(this,function(Rr,ia,W){"use strict";const ng=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function ag(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const oa=ng(ia),QE=ag(ia),pe=ng(W),V=ag(W),JE=e=>!e||!Array.isArray(e)?e:[].concat([],...e),eM=(e,t=2,r=".",n=",")=>{try{t=Math.abs(t),t=isNaN(t)?2:t;const a=e<0?"-":"";let i=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),o=i.length>3?i.length%3:0;return a+(o?i.substr(0,o)+n:"")+i.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+n)+(t?r+Math.abs(e-i).toFixed(t).slice(2):"")}catch{}};var Fs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function br(e){var t=e.default;if(typeof t=="function"){var r=function(){return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Na,Vs=oa.default;if(process.env.NODE_ENV==="production")Na=Vs.createRoot,Vs.hydrateRoot;else{var ig=Vs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Na=function(e,t){ig.usingClientEntryPoint=!0;try{return Vs.createRoot(e,t)}finally{ig.usingClientEntryPoint=!1}}}//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var og;function te(){return og.apply(null,arguments)}function tM(e){og=e}function rn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Da(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Rt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function yf(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Rt(e,t))return!1;return!0}function Or(e){return e===void 0}function In(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function no(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function sg(e,t){var r=[],n,a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function sa(e,t){for(var r in t)Rt(t,r)&&(e[r]=t[r]);return Rt(t,"toString")&&(e.toString=t.toString),Rt(t,"valueOf")&&(e.valueOf=t.valueOf),e}function gn(e,t,r,n){return Ag(e,t,r,n,!0).utc()}function rM(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ht(e){return e._pf==null&&(e._pf=rM()),e._pf}var bf;Array.prototype.some?bf=Array.prototype.some:bf=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Cf(e){if(e._isValid==null){var t=ht(e),r=bf.call(t.parsedDateParts,function(a){return a!=null}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n}return e._isValid}function Ls(e){var t=gn(NaN);return e!=null?sa(ht(t),e):ht(t).userInvalidated=!0,t}var lg=te.momentProperties=[],_f=!1;function xf(e,t){var r,n,a,i=lg.length;if(Or(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Or(t._i)||(e._i=t._i),Or(t._f)||(e._f=t._f),Or(t._l)||(e._l=t._l),Or(t._strict)||(e._strict=t._strict),Or(t._tzm)||(e._tzm=t._tzm),Or(t._isUTC)||(e._isUTC=t._isUTC),Or(t._offset)||(e._offset=t._offset),Or(t._pf)||(e._pf=ht(t)),Or(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=lg[r],a=t[n],Or(a)||(e[n]=a);return e}function ao(e){xf(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),_f===!1&&(_f=!0,te.updateOffset(this),_f=!1)}function nn(e){return e instanceof ao||e!=null&&e._isAMomentObject!=null}function ug(e){te.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function jr(e,t){var r=!0;return sa(function(){if(te.deprecationHandler!=null&&te.deprecationHandler(null,e),r){var n=[],a,i,o,s=arguments.length;for(i=0;i<s;i++){if(a="",typeof arguments[i]=="object"){a+=` [`+i+"] ";for(o in arguments[0])Rt(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}ug(e+` Arguments: `+Array.prototype.slice.call(n).join("")+` `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var cg={};function fg(e,t){te.deprecationHandler!=null&&te.deprecationHandler(e,t),cg[e]||(ug(t),cg[e]=!0)}te.suppressDeprecationWarnings=!1,te.deprecationHandler=null;function yn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function nM(e){var t,r;for(r in e)Rt(e,r)&&(t=e[r],yn(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function wf(e,t){var r=sa({},e),n;for(n in t)Rt(t,n)&&(Da(e[n])&&Da(t[n])?(r[n]={},sa(r[n],e[n]),sa(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)Rt(e,n)&&!Rt(t,n)&&Da(e[n])&&(r[n]=sa({},r[n]));return r}function Sf(e){e!=null&&this.set(e)}var Pf;Object.keys?Pf=Object.keys:Pf=function(e){var t,r=[];for(t in e)Rt(e,t)&&r.push(t);return r};var aM={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function iM(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return yn(n)?n.call(t,r):n}function bn(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var Of=/(\[[^\[]*\])|(\\)?([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,$s=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ef={},oi={};function Je(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(oi[e]=a),t&&(oi[t[0]]=function(){return bn(a.apply(this,arguments),t[1],t[2])}),r&&(oi[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function oM(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function sM(e){var t=e.match(Of),r,n;for(r=0,n=t.length;r<n;r++)oi[t[r]]?t[r]=oi[t[r]]:t[r]=oM(t[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=yn(t[o])?t[o].call(a,e):t[o];return i}}function js(e,t){return e.isValid()?(t=dg(t,e.localeData()),Ef[t]=Ef[t]||sM(t),Ef[t](e)):e.localeData().invalidDate()}function dg(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for($s.lastIndex=0;r>=0&&$s.test(e);)e=e.replace($s,n),$s.lastIndex=0,r-=1;return e}var lM={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function uM(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Of).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var cM="Invalid date";function fM(){return this._invalidDate}var dM="%d",vM=/\d{1,2}/;function hM(e){return this._ordinal.replace("%d",e)}var pM={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function mM(e,t,r,n){var a=this._relativeTime[r];return yn(a)?a(e,t,r,n):a.replace(/%d/i,e)}function gM(e,t){var r=this._relativeTime[e>0?"future":"past"];return yn(r)?r(t):r.replace(/%s/i,t)}var io={};function dr(e,t){var r=e.toLowerCase();io[r]=io[r+"s"]=io[t]=e}function Wr(e){return typeof e=="string"?io[e]||io[e.toLowerCase()]:void 0}function Mf(e){var t={},r,n;for(n in e)Rt(e,n)&&(r=Wr(n),r&&(t[r]=e[n]));return t}var vg={};function vr(e,t){vg[e]=t}function yM(e){var t=[],r;for(r in e)Rt(e,r)&&t.push({unit:r,priority:vg[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}function Ws(e){return e%4===0&&e%100!==0||e%400===0}function Yr(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function yt(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Yr(t)),r}function si(e,t){return function(r){return r!=null?(hg(this,e,r),te.updateOffset(this,t),this):Ys(this,e)}}function Ys(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function hg(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&Ws(e.year())&&e.month()===1&&e.date()===29?(r=yt(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Gs(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function bM(e){return e=Wr(e),yn(this[e])?this[e]():this}function CM(e,t){if(typeof e=="object"){e=Mf(e);var r=yM(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=Wr(e),yn(this[e]))return this[e](t);return this}var pg=/\d/,Tr=/\d\d/,mg=/\d{3}/,Rf=/\d{4}/,zs=/[+-]?\d{6}/,Ut=/\d\d?/,gg=/\d\d\d\d?/,yg=/\d\d\d\d\d\d?/,Hs=/\d{1,3}/,Tf=/\d{1,4}/,Us=/[+-]?\d{1,6}/,li=/\d+/,qs=/[+-]?\d+/,_M=/Z|[+-]\d\d:?\d\d/gi,Bs=/Z|[+-]\d\d(?::?\d\d)?/gi,xM=/[+-]?\d+(\.\d{1,3})?/,oo=/[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,Ks;Ks={};function Ve(e,t,r){Ks[e]=yn(t)?t:function(n,a){return n&&r?r:t}}function wM(e,t){return Rt(Ks,e)?Ks[e](t._strict,t._locale):new RegExp(SM(e))}function SM(e){return Nr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function Nr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Nf={};function Lt(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),In(t)&&(n=function(i,o){o[t]=yt(i)}),a=e.length,r=0;r<a;r++)Nf[e[r]]=n}function so(e,t){Lt(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function PM(e,t,r){t!=null&&Rt(Nf,e)&&Nf[e](t,r._a,r,e)}var hr=0,Fn=1,Cn=2,or=3,an=4,Vn=5,ka=6,OM=7,EM=8;function MM(e,t){return(e%t+t)%t}var er;Array.prototype.indexOf?er=Array.prototype.indexOf:er=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Gs(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=MM(t,12);return e+=(t-r)/12,r===1?Ws(e)?29:28:31-r%7%2}Je("M",["MM",2],"Mo",function(){return this.month()+1}),Je("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Je("MMMM",0,0,function(e){return this.localeData().months(this,e)}),dr("month","M"),vr("month",8),Ve("M",Ut),Ve("MM",Ut,Tr),Ve("MMM",function(e,t){return t.monthsShortRegex(e)}),Ve("MMMM",function(e,t){return t.monthsRegex(e)}),Lt(["M","MM"],function(e,t){t[Fn]=yt(e)-1}),Lt(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Fn]=a:ht(r).invalidMonth=e});var RM="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),bg="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Cg=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,TM=oo,NM=oo;function DM(e,t){return e?rn(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Cg).test(t)?"format":"standalone"][e.month()]:rn(this._months)?this._months:this._months.standalone}function kM(e,t){return e?rn(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Cg.test(t)?"format":"standalone"][e.month()]:rn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function AM(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=gn([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=er.call(this._shortMonthsParse,o),a!==-1?a:null):(a=er.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=er.call(this._shortMonthsParse,o),a!==-1?a:(a=er.call(this._longMonthsParse,o),a!==-1?a:null)):(a=er.call(this._longMonthsParse,o),a!==-1?a:(a=er.call(this._shortMonthsParse,o),a!==-1?a:null))}function IM(e,t,r){var n,a,i;if(this._monthsParseExact)return AM.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=gn([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function _g(e,t){var r;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=yt(t);else if(t=e.localeData().monthsParse(t),!In(t))return e}return r=Math.min(e.date(),Gs(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function xg(e){return e!=null?(_g(this,e),te.updateOffset(this,!0),this):Ys(this,"Month")}function FM(){return Gs(this.year(),this.month())}function VM(e){return this._monthsParseExact?(Rt(this,"_monthsRegex")||wg.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Rt(this,"_monthsShortRegex")||(this._monthsShortRegex=TM),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function LM(e){return this._monthsParseExact?(Rt(this,"_monthsRegex")||wg.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Rt(this,"_monthsRegex")||(this._monthsRegex=NM),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function wg(){function e(o,s){return s.length-o.length}var t=[],r=[],n=[],a,i;for(a=0;a<12;a++)i=gn([2e3,a]),t.push(this.monthsShort(i,"")),r.push(this.months(i,"")),n.push(this.months(i,"")),n.push(this.monthsShort(i,""));for(t.sort(e),r.sort(e),n.sort(e),a=0;a<12;a++)t[a]=Nr(t[a]),r[a]=Nr(r[a]);for(a=0;a<24;a++)n[a]=Nr(n[a]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}Je("Y",0,0,function(){var e=this.year();return e<=9999?bn(e,4):"+"+e}),Je(0,["YY",2],0,function(){return this.year()%100}),Je(0,["YYYY",4],0,"year"),Je(0,["YYYYY",5],0,"year"),Je(0,["YYYYYY",6,!0],0,"year"),dr("year","y"),vr("year",1),Ve("Y",qs),Ve("YY",Ut,Tr),Ve("YYYY",Tf,Rf),Ve("YYYYY",Us,zs),Ve("YYYYYY",Us,zs),Lt(["YYYYY","YYYYYY"],hr),Lt("YYYY",function(e,t){t[hr]=e.length===2?te.parseTwoDigitYear(e):yt(e)}),Lt("YY",function(e,t){t[hr]=te.parseTwoDigitYear(e)}),Lt("Y",function(e,t){t[hr]=parseInt(e,10)});function lo(e){return Ws(e)?366:365}te.parseTwoDigitYear=function(e){return yt(e)+(yt(e)>68?1900:2e3)};var Sg=si("FullYear",!0);function $M(){return Ws(this.year())}function jM(e,t,r,n,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,a,i,o),s}function uo(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Xs(e,t,r){var n=7+t-r,a=(7+uo(e,0,n).getUTCDay()-t)%7;return-a+n-1}function Pg(e,t,r,n,a){var i=(7+r-n)%7,o=Xs(e,n,a),s=1+7*(t-1)+i+o,l,u;return s<=0?(l=e-1,u=lo(l)+s):s>lo(e)?(l=e+1,u=s-lo(e)):(l=e,u=s),{year:l,dayOfYear:u}}function co(e,t,r){var n=Xs(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+Ln(o,t,r)):a>Ln(e.year(),t,r)?(i=a-Ln(e.year(),t,r),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Ln(e,t,r){var n=Xs(e,t,r),a=Xs(e+1,t,r);return(lo(e)-n+a)/7}Je("w",["ww",2],"wo","week"),Je("W",["WW",2],"Wo","isoWeek"),dr("week","w"),dr("isoWeek","W"),vr("week",5),vr("isoWeek",5),Ve("w",Ut),Ve("ww",Ut,Tr),Ve("W",Ut),Ve("WW",Ut,Tr),so(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=yt(e)});function WM(e){return co(e,this._week.dow,this._week.doy).week}var YM={dow:0,doy:6};function zM(){return this._week.dow}function HM(){return this._week.doy}function UM(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function qM(e){var t=co(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Je("d",0,"do","day"),Je("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Je("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Je("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Je("e",0,0,"weekday"),Je("E",0,0,"isoWeekday"),dr("day","d"),dr("weekday","e"),dr("isoWeekday","E"),vr("day",11),vr("weekday",11),vr("isoWeekday",11),Ve("d",Ut),Ve("e",Ut),Ve("E",Ut),Ve("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ve("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ve("dddd",function(e,t){return t.weekdaysRegex(e)}),so(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:ht(r).invalidWeekday=e}),so(["d","e","E"],function(e,t,r,n){t[n]=yt(e)});function BM(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function KM(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Df(e,t){return e.slice(t,7).concat(e.slice(0,t))}var GM="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Og="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),XM="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ZM=oo,QM=oo,JM=oo;function eR(e,t){var r=rn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Df(r,this._week.dow):e?r[e.day()]:r}function tR(e){return e===!0?Df(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function rR(e){return e===!0?Df(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function nR(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=gn([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=er.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=er.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=er.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=er.call(this._weekdaysParse,o),a!==-1||(a=er.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=er.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=er.call(this._shortWeekdaysParse,o),a!==-1||(a=er.call(this._weekdaysParse,o),a!==-1)?a:(a=er.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=er.call(this._minWeekdaysParse,o),a!==-1||(a=er.call(this._weekdaysParse,o),a!==-1)?a:(a=er.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function aR(e,t,r){var n,a,i;if(this._weekdaysParseExact)return nR.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=gn([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function iR(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=BM(e,this.localeData()),this.add(e-t,"d")):t}function oR(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function sR(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=KM(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function lR(e){return this._weekdaysParseExact?(Rt(this,"_weekdaysRegex")||kf.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Rt(this,"_weekdaysRegex")||(this._weekdaysRegex=ZM),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function uR(e){return this._weekdaysParseExact?(Rt(this,"_weekdaysRegex")||kf.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Rt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=QM),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function cR(e){return this._weekdaysParseExact?(Rt(this,"_weekdaysRegex")||kf.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Rt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=JM),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function kf(){function e(c,f){return f.length-c.length}var t=[],r=[],n=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=gn([2e3,1]).day(i),s=Nr(this.weekdaysMin(o,"")),l=Nr(this.weekdaysShort(o,"")),u=Nr(this.weekdays(o,"")),t.push(s),r.push(l),n.push(u),a.push(s),a.push(l),a.push(u);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Af(){return this.hours()%12||12}function fR(){return this.hours()||24}Je("H",["HH",2],0,"hour"),Je("h",["hh",2],0,Af),Je("k",["kk",2],0,fR),Je("hmm",0,0,function(){return""+Af.apply(this)+bn(this.minutes(),2)}),Je("hmmss",0,0,function(){return""+Af.apply(this)+bn(this.minutes(),2)+bn(this.seconds(),2)}),Je("Hmm",0,0,function(){return""+this.hours()+bn(this.minutes(),2)}),Je("Hmmss",0,0,function(){return""+this.hours()+bn(this.minutes(),2)+bn(this.seconds(),2)});function Eg(e,t){Je(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Eg("a",!0),Eg("A",!1),dr("hour","h"),vr("hour",13);function Mg(e,t){return t._meridiemParse}Ve("a",Mg),Ve("A",Mg),Ve("H",Ut),Ve("h",Ut),Ve("k",Ut),Ve("HH",Ut,Tr),Ve("hh",Ut,Tr),Ve("kk",Ut,Tr),Ve("hmm",gg),Ve("hmmss",yg),Ve("Hmm",gg),Ve("Hmmss",yg),Lt(["H","HH"],or),Lt(["k","kk"],function(e,t,r){var n=yt(e);t[or]=n===24?0:n}),Lt(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),Lt(["h","hh"],function(e,t,r){t[or]=yt(e),ht(r).bigHour=!0}),Lt("hmm",function(e,t,r){var n=e.length-2;t[or]=yt(e.substr(0,n)),t[an]=yt(e.substr(n)),ht(r).bigHour=!0}),Lt("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[or]=yt(e.substr(0,n)),t[an]=yt(e.substr(n,2)),t[Vn]=yt(e.substr(a)),ht(r).bigHour=!0}),Lt("Hmm",function(e,t,r){var n=e.length-2;t[or]=yt(e.substr(0,n)),t[an]=yt(e.substr(n))}),Lt("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[or]=yt(e.substr(0,n)),t[an]=yt(e.substr(n,2)),t[Vn]=yt(e.substr(a))});function dR(e){return(e+"").toLowerCase().charAt(0)==="p"}var vR=/[ap]\.?m?\.?/i,hR=si("Hours",!0);function pR(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Rg={calendar:aM,longDateFormat:lM,invalidDate:cM,ordinal:dM,dayOfMonthOrdinalParse:vM,relativeTime:pM,months:RM,monthsShort:bg,week:YM,weekdays:GM,weekdaysMin:XM,weekdaysShort:Og,meridiemParse:vR},Kt={},fo={},vo;function mR(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function Tg(e){return e&&e.toLowerCase().replace("_","-")}function gR(e){for(var t=0,r,n,a,i;t<e.length;){for(i=Tg(e[t]).split("-"),r=i.length,n=Tg(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=Zs(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&mR(i,n)>=r-1)break;r--}t++}return vo}function yR(e){return e.match("^[^/\\\\]*$")!=null}function Zs(e){var t=null,r;if(Kt[e]===void 0&&typeof module<"u"&&module&&module.exports&&yR(e))try{t=vo._abbr,r=require,r("./locale/"+e),la(t)}catch{Kt[e]=null}return Kt[e]}function la(e,t){var r;return e&&(Or(t)?r=$n(e):r=If(e,t),r?vo=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),vo._abbr}function If(e,t){if(t!==null){var r,n=Rg;if(t.abbr=e,Kt[e]!=null)fg("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=Kt[e]._config;else if(t.parentLocale!=null)if(Kt[t.parentLocale]!=null)n=Kt[t.parentLocale]._config;else if(r=Zs(t.parentLocale),r!=null)n=r._config;else return fo[t.parentLocale]||(fo[t.parentLocale]=[]),fo[t.parentLocale].push({name:e,config:t}),null;return Kt[e]=new Sf(wf(n,t)),fo[e]&&fo[e].forEach(function(a){If(a.name,a.config)}),la(e),Kt[e]}else return delete Kt[e],null}function bR(e,t){if(t!=null){var r,n,a=Rg;Kt[e]!=null&&Kt[e].parentLocale!=null?Kt[e].set(wf(Kt[e]._config,t)):(n=Zs(e),n!=null&&(a=n._config),t=wf(a,t),n==null&&(t.abbr=e),r=new Sf(t),r.parentLocale=Kt[e],Kt[e]=r),la(e)}else Kt[e]!=null&&(Kt[e].parentLocale!=null?(Kt[e]=Kt[e].parentLocale,e===la()&&la(e)):Kt[e]!=null&&delete Kt[e]);return Kt[e]}function $n(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return vo;if(!rn(e)){if(t=Zs(e),t)return t;e=[e]}return gR(e)}function CR(){return Pf(Kt)}function Ff(e){var t,r=e._a;return r&&ht(e).overflow===-2&&(t=r[Fn]<0||r[Fn]>11?Fn:r[Cn]<1||r[Cn]>Gs(r[hr],r[Fn])?Cn:r[or]<0||r[or]>24||r[or]===24&&(r[an]!==0||r[Vn]!==0||r[ka]!==0)?or:r[an]<0||r[an]>59?an:r[Vn]<0||r[Vn]>59?Vn:r[ka]<0||r[ka]>999?ka:-1,ht(e)._overflowDayOfYear&&(t<hr||t>Cn)&&(t=Cn),ht(e)._overflowWeeks&&t===-1&&(t=OM),ht(e)._overflowWeekday&&t===-1&&(t=EM),ht(e).overflow=t),e}var _R=/^\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)?)?$/,xR=/^\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)?)?$/,wR=/Z|[+-]\d\d(?::?\d\d)?/,Qs=[["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]],Vf=[["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/]],SR=/^\/?Date\((-?\d+)/i,PR=/^(?:(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}))$/,OR={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ng(e){var t,r,n=e._i,a=_R.exec(n)||xR.exec(n),i,o,s,l,u=Qs.length,c=Vf.length;if(a){for(ht(e).iso=!0,t=0,r=u;t<r;t++)if(Qs[t][1].exec(a[1])){o=Qs[t][0],i=Qs[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,r=c;t<r;t++)if(Vf[t][1].exec(a[3])){s=(a[2]||" ")+Vf[t][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(a[4])if(wR.exec(a[4]))l="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(l||""),$f(e)}else e._isValid=!1}function ER(e,t,r,n,a,i){var o=[MR(e),bg.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function MR(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function RR(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function TR(e,t,r){if(e){var n=Og.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return ht(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function NR(e,t,r){if(e)return OR[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function Dg(e){var t=PR.exec(RR(e._i)),r;if(t){if(r=ER(t[4],t[3],t[2],t[5],t[6],t[7]),!TR(t[1],r,e))return;e._a=r,e._tzm=NR(t[8],t[9],t[10]),e._d=uo.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ht(e).rfc2822=!0}else e._isValid=!1}function DR(e){var t=SR.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ng(e),e._isValid===!1)delete e._isValid;else return;if(Dg(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:te.createFromInputFallback(e)}te.createFromInputFallback=jr("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ui(e,t,r){return e!=null?e:t!=null?t:r}function kR(e){var t=new Date(te.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Lf(e){var t,r,n=[],a,i,o;if(!e._d){for(a=kR(e),e._w&&e._a[Cn]==null&&e._a[Fn]==null&&AR(e),e._dayOfYear!=null&&(o=ui(e._a[hr],a[hr]),(e._dayOfYear>lo(o)||e._dayOfYear===0)&&(ht(e)._overflowDayOfYear=!0),r=uo(o,0,e._dayOfYear),e._a[Fn]=r.getUTCMonth(),e._a[Cn]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[or]===24&&e._a[an]===0&&e._a[Vn]===0&&e._a[ka]===0&&(e._nextDay=!0,e._a[or]=0),e._d=(e._useUTC?uo:jM).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[or]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(ht(e).weekdayMismatch=!0)}}function AR(e){var t,r,n,a,i,o,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,r=ui(t.GG,e._a[hr],co(qt(),1,4).year),n=ui(t.W,1),a=ui(t.E,1),(a<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,u=co(qt(),i,o),r=ui(t.gg,e._a[hr],u.year),n=ui(t.w,u.week),t.d!=null?(a=t.d,(a<0||a>6)&&(l=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),n<1||n>Ln(r,i,o)?ht(e)._overflowWeeks=!0:l!=null?ht(e)._overflowWeekday=!0:(s=Pg(r,n,a,i,o),e._a[hr]=s.year,e._dayOfYear=s.dayOfYear)}te.ISO_8601=function(){},te.RFC_2822=function(){};function $f(e){if(e._f===te.ISO_8601){Ng(e);return}if(e._f===te.RFC_2822){Dg(e);return}e._a=[],ht(e).empty=!0;var t=""+e._i,r,n,a,i,o,s=t.length,l=0,u,c;for(a=dg(e._f,e._locale).match(Of)||[],c=a.length,r=0;r<c;r++)i=a[r],n=(t.match(wM(i,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&ht(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),l+=n.length),oi[i]?(n?ht(e).empty=!1:ht(e).unusedTokens.push(i),PM(i,n,e)):e._strict&&!n&&ht(e).unusedTokens.push(i);ht(e).charsLeftOver=s-l,t.length>0&&ht(e).unusedInput.push(t),e._a[or]<=12&&ht(e).bigHour===!0&&e._a[or]>0&&(ht(e).bigHour=void 0),ht(e).parsedDateParts=e._a.slice(0),ht(e).meridiem=e._meridiem,e._a[or]=IR(e._locale,e._a[or],e._meridiem),u=ht(e).era,u!==null&&(e._a[hr]=e._locale.erasConvertYear(u,e._a[hr])),Lf(e),Ff(e)}function IR(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function FR(e){var t,r,n,a,i,o,s=!1,l=e._f.length;if(l===0){ht(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<l;a++)i=0,o=!1,t=xf({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],$f(t),Cf(t)&&(o=!0),i+=ht(t).charsLeftOver,i+=ht(t).unusedTokens.length*10,ht(t).score=i,s?i<n&&(n=i,r=t):(n==null||i<n||o)&&(n=i,r=t,o&&(s=!0));sa(e,r||t)}function VR(e){if(!e._d){var t=Mf(e._i),r=t.day===void 0?t.date:t.day;e._a=sg([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Lf(e)}}function LR(e){var t=new ao(Ff(kg(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function kg(e){var t=e._i,r=e._f;return e._locale=e._locale||$n(e._l),t===null||r===void 0&&t===""?Ls({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),nn(t)?new ao(Ff(t)):(no(t)?e._d=t:rn(r)?FR(e):r?$f(e):$R(e),Cf(e)||(e._d=null),e))}function $R(e){var t=e._i;Or(t)?e._d=new Date(te.now()):no(t)?e._d=new Date(t.valueOf()):typeof t=="string"?DR(e):rn(t)?(e._a=sg(t.slice(0),function(r){return parseInt(r,10)}),Lf(e)):Da(t)?VR(e):In(t)?e._d=new Date(t):te.createFromInputFallback(e)}function Ag(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Da(e)&&yf(e)||rn(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,LR(i)}function qt(e,t,r,n){return Ag(e,t,r,n,!1)}var jR=jr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ls()}),WR=jr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ls()});function Ig(e,t){var r,n;if(t.length===1&&rn(t[0])&&(t=t[0]),!t.length)return qt();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function YR(){var e=[].slice.call(arguments,0);return Ig("isBefore",e)}function zR(){var e=[].slice.call(arguments,0);return Ig("isAfter",e)}var HR=function(){return Date.now?Date.now():+new Date},ho=["year","quarter","month","week","day","hour","minute","second","millisecond"];function UR(e){var t,r=!1,n,a=ho.length;for(t in e)if(Rt(e,t)&&!(er.call(ho,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[ho[n]]){if(r)return!1;parseFloat(e[ho[n]])!==yt(e[ho[n]])&&(r=!0)}return!0}function qR(){return this._isValid}function BR(){return on(NaN)}function Js(e){var t=Mf(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=UR(t),this._milliseconds=+c+u*1e3+l*6e4+s*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=$n(),this._bubble()}function el(e){return e instanceof Js}function jf(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function KR(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<n;o++)(r&&e[o]!==t[o]||!r&&yt(e[o])!==yt(t[o]))&&i++;return i+a}function Fg(e,t){Je(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+bn(~~(r/60),2)+t+bn(~~r%60,2)})}Fg("Z",":"),Fg("ZZ",""),Ve("Z",Bs),Ve("ZZ",Bs),Lt(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Wf(Bs,e)});var GR=/([\+\-]|\d\d)/gi;function Wf(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(GR)||["-",0,0],i=+(a[1]*60)+yt(a[2]),i===0?0:a[0]==="+"?i:-i)}function Yf(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(nn(e)||no(e)?e.valueOf():qt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),te.updateOffset(r,!1),r):qt(e).local()}function zf(e){return-Math.round(e._d.getTimezoneOffset())}te.updateOffset=function(){};function XR(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Wf(Bs,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=zf(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?jg(this,on(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,te.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:zf(this)}function ZR(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function QR(e){return this.utcOffset(0,e)}function JR(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zf(this),"m")),this}function e2(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Wf(_M,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function t2(e){return this.isValid()?(e=e?qt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function r2(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function n2(){if(!Or(this._isDSTShifted))return this._isDSTShifted;var e={},t;return xf(e,this),e=kg(e),e._a?(t=e._isUTC?gn(e._a):qt(e._a),this._isDSTShifted=this.isValid()&&KR(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function a2(){return this.isValid()?!this._isUTC:!1}function i2(){return this.isValid()?this._isUTC:!1}function Vg(){return this.isValid()?this._isUTC&&this._offset===0:!1}var o2=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,s2=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function on(e,t){var r=e,n=null,a,i,o;return el(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:In(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=o2.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:yt(n[Cn])*a,h:yt(n[or])*a,m:yt(n[an])*a,s:yt(n[Vn])*a,ms:yt(jf(n[ka]*1e3))*a}):(n=s2.exec(e))?(a=n[1]==="-"?-1:1,r={y:Aa(n[2],a),M:Aa(n[3],a),w:Aa(n[4],a),d:Aa(n[5],a),h:Aa(n[6],a),m:Aa(n[7],a),s:Aa(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=l2(qt(r.from),qt(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new Js(r),el(e)&&Rt(e,"_locale")&&(i._locale=e._locale),el(e)&&Rt(e,"_isValid")&&(i._isValid=e._isValid),i}on.fn=Js.prototype,on.invalid=BR;function Aa(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Lg(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function l2(e,t){var r;return e.isValid()&&t.isValid()?(t=Yf(t,e),e.isBefore(t)?r=Lg(e,t):(r=Lg(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function $g(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(fg(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=on(r,n),jg(this,a,e),this}}function jg(e,t,r,n){var a=t._milliseconds,i=jf(t._days),o=jf(t._months);!e.isValid()||(n=n==null?!0:n,o&&_g(e,Ys(e,"Month")+o*r),i&&hg(e,"Date",Ys(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&te.updateOffset(e,i||o))}var u2=$g(1,"add"),c2=$g(-1,"subtract");function Wg(e){return typeof e=="string"||e instanceof String}function f2(e){return nn(e)||no(e)||Wg(e)||In(e)||v2(e)||d2(e)||e===null||e===void 0}function d2(e){var t=Da(e)&&!yf(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=n.length;for(a=0;a<o;a+=1)i=n[a],r=r||Rt(e,i);return t&&r}function v2(e){var t=rn(e),r=!1;return t&&(r=e.filter(function(n){return!In(n)&&Wg(e)}).length===0),t&&r}function h2(e){var t=Da(e)&&!yf(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||Rt(e,i);return t&&r}function p2(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function m2(e,t){arguments.length===1&&(arguments[0]?f2(arguments[0])?(e=arguments[0],t=void 0):h2(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||qt(),n=Yf(r,this).startOf("day"),a=te.calendarFormat(this,n)||"sameElse",i=t&&(yn(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,qt(r)))}function g2(){return new ao(this)}function y2(e,t){var r=nn(e)?e:qt(e);return this.isValid()&&r.isValid()?(t=Wr(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function b2(e,t){var r=nn(e)?e:qt(e);return this.isValid()&&r.isValid()?(t=Wr(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function C2(e,t,r,n){var a=nn(e)?e:qt(e),i=nn(t)?t:qt(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function _2(e,t){var r=nn(e)?e:qt(e),n;return this.isValid()&&r.isValid()?(t=Wr(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function x2(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function w2(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function S2(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=Yf(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=Wr(t),t){case"year":i=tl(this,n)/12;break;case"month":i=tl(this,n);break;case"quarter":i=tl(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:Yr(i)}function tl(e,t){if(e.date()<t.date())return-tl(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}te.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",te.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function P2(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function O2(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?js(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):yn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",js(r,"Z")):js(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function E2(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function M2(e){e||(e=this.isUtc()?te.defaultFormatUtc:te.defaultFormat);var t=js(this,e);return this.localeData().postformat(t)}function R2(e,t){return this.isValid()&&(nn(e)&&e.isValid()||qt(e).isValid())?on({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function T2(e){return this.from(qt(),e)}function N2(e,t){return this.isValid()&&(nn(e)&&e.isValid()||qt(e).isValid())?on({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function D2(e){return this.to(qt(),e)}function Yg(e){var t;return e===void 0?this._locale._abbr:(t=$n(e),t!=null&&(this._locale=t),this)}var zg=jr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Hg(){return this._locale}var rl=1e3,ci=60*rl,nl=60*ci,Ug=(365*400+97)*24*nl;function fi(e,t){return(e%t+t)%t}function qg(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Ug:new Date(e,t,r).valueOf()}function Bg(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Ug:Date.UTC(e,t,r)}function k2(e){var t,r;if(e=Wr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Bg:qg,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fi(t+(this._isUTC?0:this.utcOffset()*ci),nl);break;case"minute":t=this._d.valueOf(),t-=fi(t,ci);break;case"second":t=this._d.valueOf(),t-=fi(t,rl);break}return this._d.setTime(t),te.updateOffset(this,!0),this}function A2(e){var t,r;if(e=Wr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Bg:qg,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=nl-fi(t+(this._isUTC?0:this.utcOffset()*ci),nl)-1;break;case"minute":t=this._d.valueOf(),t+=ci-fi(t,ci)-1;break;case"second":t=this._d.valueOf(),t+=rl-fi(t,rl)-1;break}return this._d.setTime(t),te.updateOffset(this,!0),this}function I2(){return this._d.valueOf()-(this._offset||0)*6e4}function F2(){return Math.floor(this.valueOf()/1e3)}function V2(){return new Date(this.valueOf())}function L2(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function $2(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function j2(){return this.isValid()?this.toISOString():null}function W2(){return Cf(this)}function Y2(){return sa({},ht(this))}function z2(){return ht(this).overflow}function H2(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Je("N",0,0,"eraAbbr"),Je("NN",0,0,"eraAbbr"),Je("NNN",0,0,"eraAbbr"),Je("NNNN",0,0,"eraName"),Je("NNNNN",0,0,"eraNarrow"),Je("y",["y",1],"yo","eraYear"),Je("y",["yy",2],0,"eraYear"),Je("y",["yyy",3],0,"eraYear"),Je("y",["yyyy",4],0,"eraYear"),Ve("N",Hf),Ve("NN",Hf),Ve("NNN",Hf),Ve("NNNN",tT),Ve("NNNNN",rT),Lt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?ht(r).era=a:ht(r).invalidEra=e}),Ve("y",li),Ve("yy",li),Ve("yyy",li),Ve("yyyy",li),Ve("yo",nT),Lt(["y","yy","yyy","yyyy"],hr),Lt(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[hr]=r._locale.eraYearOrdinalParse(e,a):t[hr]=parseInt(e,10)});function U2(e,t){var r,n,a,i=this._eras||$n("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=te(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=te(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function q2(e,t,r){var n,a,i=this.eras(),o,s,l;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),s=i[n].abbr.toUpperCase(),l=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return i[n];break;case"NNNN":if(o===e)return i[n];break;case"NNNNN":if(l===e)return i[n];break}else if([o,s,l].indexOf(e)>=0)return i[n]}function B2(e,t){var r=e.since<=e.until?1:-1;return t===void 0?te(e.since).year():te(e.since).year()+(t-e.offset)*r}function K2(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function G2(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function X2(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function Z2(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-te(a[e].since).year())*r+a[e].offset;return this.year()}function Q2(e){return Rt(this,"_erasNameRegex")||Uf.call(this),e?this._erasNameRegex:this._erasRegex}function J2(e){return Rt(this,"_erasAbbrRegex")||Uf.call(this),e?this._erasAbbrRegex:this._erasRegex}function eT(e){return Rt(this,"_erasNarrowRegex")||Uf.call(this),e?this._erasNarrowRegex:this._erasRegex}function Hf(e,t){return t.erasAbbrRegex(e)}function tT(e,t){return t.erasNameRegex(e