varDateFormatter;!function(){"use strict";vare,t,a,r,n,o;n=864e5,o=3600,e=function(e,t){return"string"==typeofe&&"string"==typeoft&&e.toLowerCase()===t.toLowerCase()},t=function(e,a,r){varn=r||"0",o=e.toString();returno.length<a?t(n+o,a):o},a=function(e){vart,r;for(e=e||{},t=1;t<arguments.length;t++)if(r=arguments[t])for(varninr)r.hasOwnProperty(n)&&("object"==typeofr[n]?a(e[n],r[n]):e[n]=r[n]);returne},r={dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(e){vart=e%10,a={1:"st",2:"nd",3:"rd"};return1!==Math.floor(e%100/10)&&a[t]?a[t]:"th"}},separators:/[ \-+\/\.T:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},DateFormatter=function(e){vart=this,n=a(r,e);t.dateSettings=n.dateSettings,t.separators=n.separators,t.validParts=n.validParts,t.intParts=n.intParts,t.tzParts=n.tzParts,t.tzClip=n.tzClip},DateFormatter.prototype={constructor:DateFormatter,parseDate:function(t,a){varr,n,o,i,s,d,u,l,f,c,m=this,h=!1,g=!1,p=m.dateSettings,y={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!t)returnvoid0;if(tinstanceofDate)returnt;if("number"==typeoft)returnnewDate(t);if("U"===a)returno=parseInt(t),o?newDate(1e3*o):t;if("string"!=typeoft)return"";if(r=a.match(m.validParts),!r||0===r.length)thrownewError("Invalid date format definition.");for(n=t.replace(m.separators,"\x00").split("\x00"),o=0;o<n.length;o++)switch(i=n[o],s=parseInt(i),r[o]){case"y":case"Y":f=i.length,2===f?y.year=parseInt((70>s?"20":"19")+i):4===f&&(y.year=s),h=!0;break;case"m":case"n":case"M":case"F":isNaN(i)?(d=p.monthsShort.indexOf(i),d>-1&&(y.month=d+1),d=p.months.indexOf(i),d>-1&&(y.month=d+1)):s>=1&&12>=s&&(y.month=s),h=!0;break;case"d":case"j":s>=1&&31>=s&&(y.day=s),h=!0;break;case"g":case"h":u=r.indexOf("a")>-1?r.indexOf("a"):r.indexOf("A")>-1?r.indexOf("A"):-1,c=n[u],u>-1?(l=e(c,p.meridiem[0])?0:e(c,p.meridiem[1])?12:-1,s>=1&&12>=s&&l>-1?y.hour=s+l-1:s>=0&&23>=s&&(y.hour=s)):s>=0&&23>=s&&(y.hour=s),g=!0;break;case"G":case"H":s>=0&&23>=s&&(y.hour=s),g=!0;break;case"i":s>=0&&59>=s&&(y.min=s),g=!0;break;case"s":s>=0&&59>=s&&(y.sec=s),g=!0}if(h===!0&&y.year&&y.month&&y.day)y.date=newDate(y.year,y.month-1,y.day,y.hour,y.min,y.sec,0);else{if(g!==!0)return!1;y.date=newDate(0,0,0,y.hour,y.min,y.sec,0)}returny.date},guessDate:function(e,t){if("string"!=typeofe)returne;vara,r,n,o,i=this,s=e.replace(i.separators,"\x00").split("\x00"),d=/^[djmn]/g,u=t.match(i.validParts),l=newDate,f=0;if(!d.test(u[0]))returne;for(r=0;r<s.length;r++){switch(f=2,n=s[r],o=parseInt(n.substr(0,2)),r){case0:"m"===u[0]||"n"===u[0]?l.setMonth(o-1):l.setDate(o);break;case1:"m"===u[0]||"n"===u[0]?l.setDate(o):l.setMonth(o-1);break;case2:a=l.getFullYear(),n.length<4?(l.setFullYear(parseInt(a.toString().substr(0,4-n.length)+n)),f=n.length):(l.setFullYear=parseInt(n.substr(0,4)),f=4);break;case3:l.setHours(o);break;case4:l.setMinutes(o);break;case5:l.setSeconds(o)}n.substr(f).length>0&&s.splice(r+1,0,n.substr(f))}returnl},parseFormat:function(e,a){varr,i=this,s=i.dateSettings,d=/\\?(.?)/gi,u=function(e,t){returnr[e]?r[e]():t};returnr={d:function(){returnt(r.j(),2)},D:function(){returns.daysShort[r.w()]},j:function(){returna.getDate()},l:function(){returns.days[r.w()]},N:function(){returnr.w()||7},w:function(){returna.getDay()},z:function(){vare=newDate(r.Y(),r.n()-1,r.j()),t=newDate(r.Y(),0,1);returnMath.round((e-t)/n)},W:function(){vare=newDate(r.Y(),r.n()-1,r.j()-r.N()+3),a=newDate(e.getFullYear(),0,4);returnt(1+Math.round((e-a)/n/7),2)},F:function(){returns.months[a.getMonth()]},m:function