varDateFormatter;!function(){"use strict";vare,t,a,n,r,o;r=864e5,o=3600,e=function(e,t){return"string"==typeofe&&"string"==typeoft&&e.toLowerCase()===t.toLowerCase()},t=function(e,a,n){varr=n||"0",o=e.toString();returno.length<a?t(r+o,a):o},a=function(e){vart,n;for(e=e||{},t=1;t<arguments.length;t++)if(n=arguments[t])for(varrinn)n.hasOwnProperty(r)&&("object"==typeofn[r]?a(e[r],n[r]):e[r]=n[r]);returne},n={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,r=a(n,e);t.dateSettings=r.dateSettings,t.separators=r.separators,t.validParts=r.validParts,t.intParts=r.intParts,t.tzParts=r.tzParts,t.tzClip=r.tzClip},DateFormatter.prototype={constructor:DateFormatter,parseDate:function(t,a){varn,r,o,i,s,d,u,l,f,c,h=this,m=!1,g=!1,p=h.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(n=a.match(h.validParts),!n||0===n.length)thrownewError("Invalid date format definition.");for(r=t.replace(h.separators,"\x00").split("\x00"),o=0;o<r.length;o++)switch(i=r[o],s=parseInt(i),n[o]){case"y":case"Y":f=i.length,2===f?y.year=parseInt((70>s?"20":"19")+i):4===f&&(y.year=s),m=!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),m=!0;break;case"d":case"j":s>=1&&31>=s&&(y.day=s),m=!0;break;case"g":case"h":u=n.indexOf("a")>-1?n.indexOf("a"):n.indexOf("A")>-1?n.indexOf("A"):-1,c=r[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(m===!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,n,r,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(n=0;n<s.length;n++){switch(f=2,r=s[n],o=parseInt(r.substr(0,2)),n){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(),r.length<4?(l.setFullYear(parseInt(a.toString().substr(0,4-r.length)+r)),f=r.length):(l.setFullYear=parseInt(r.substr(0,4)),f=4);break;case3:l.setHours(o);break;case4:l.setMinutes(o);break;case5:l.setSeconds(o)}r.substr(f).length>0&&s.splice(n+1,0,r.substr(f))}returnl},parseFormat:function(e,a){varn,i=this,s=i.dateSettings,d=/\\?(.?)/gi,u=function(e,t){returnn[e]?n[e]():t};returnn={d:function(){returnt(n.j(),2)},D:function(){returns.daysShort[n.w()]},j:function(){returna.getDate()},l:function(){returns.days[n.w()]},N:function(){returnn.w()||7},w:function(){returna.getDay()},z:function(){vare=newDate(n.Y(),n.n()-1,n.j()),t=newDate(n.Y(),0,1);returnMath.round((e-t)/r)},W:function(){vare=newDate(n.Y(),n.n()-1,n.j()-n.N()+3),a=newDate(e.getFullYear(),0,4);returnt(1+Math.round((e-a)/r/7),2)},F:function(){returns.months[a.getMonth()]},m:function