=Yt(n._months);t.isValid()&&(i=null==i||i,r&&t._d.setTime(t._d.valueOf()+r*s),a&&E(t,"Date",A(t,"Date")+a*s),o&&de(t,A(t,"Month")+o*s),i&&e.updateOffset(t,a||o))}function $t(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function qt(t,n){var s=t||wt(),i=Tt(s,this).startOf("day"),r=e.calendarFormat(this,i)||"sameElse",a=n&&(O(n[r])?n[r].call(this,s):n[r]);return this.format(a||this.localeData().calendar(r,this,wt(s)))}