Date.CultureStrings=Date.CultureStrings||{};Date.CultureStrings["mk-MK"]={name:"mk-MK",englishName:"Macedonian (Former Yugoslav Republic of Macedonia)",nativeName:"македонски јазик (Македонија)",Sunday:"недела",Monday:"понеделник",Tuesday:"вторник",Wednesday:"среда",Thursday:"четврток",Friday:"петок",Saturday:"сабота",Sun:"нед",Mon:"пон",Tue:"втр",Wed:"срд",Thu:"чет",Fri:"пет",Sat:"саб",Su:"не",Mo:"по",Tu:"вт",We:"ср",Th:"че",Fr:"пе",Sa:"са",S_Sun_Initial:"н",M_Mon_Initial:"п",T_Tue_Initial:"в",W_Wed_Initial:"с",T_Thu_Initial:"ч",F_Fri_Initial:"п",S_Sat_Initial:"с",January:"јануари",February:"февруари",March:"март",April:"април",May:"мај",June:"јуни",July:"јули",August:"август",September:"септември",October:"октомври",November:"ноември",December:"декември",Jan_Abbr:"јан",Feb_Abbr:"фев",Mar_Abbr:"мар",Apr_Abbr:"апр",May_Abbr:"мај",Jun_Abbr:"јун",Jul_Abbr:"јул",Aug_Abbr:"авг",Sep_Abbr:"сеп",Oct_Abbr:"окт",Nov_Abbr:"ное",Dec_Abbr:"дек",AM:"",PM:"",firstDayOfWeek:1,twoDigitYearMax:2029,mdy:"dmy","M/d/yyyy":"dd.MM.yyyy","dddd, MMMM dd, yyyy":"dddd, dd MMMM yyyy","h:mm tt":"HH:mm","h:mm:ss tt":"HH:mm:ss","dddd, MMMM dd, yyyy h:mm:ss tt":"dddd, dd MMMM yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss":"yyyy-MM-ddTHH:mm:ss","yyyy-MM-dd HH:mm:ssZ":"yyyy-MM-dd HH:mm:ssZ","ddd, dd MMM yyyy HH:mm:ss":"ddd, dd MMM yyyy HH:mm:ss","MMMM dd":"dd MMMM","MMMM, yyyy":"MMMM yyyy","/jan(uary)?/":"јан(уари)?","/feb(ruary)?/":"фев(руари)?","/mar(ch)?/":"мар(т)?","/apr(il)?/":"апр(ил)?","/may/":"мај","/jun(e)?/":"јун(и)?","/jul(y)?/":"јул(и)?","/aug(ust)?/":"авг(уст)?","/sep(t(ember)?)?/":"сеп(тември)?","/oct(ober)?/":"окт(омври)?","/nov(ember)?/":"ное(мври)?","/dec(ember)?/":"дек(ември)?","/^su(n(day)?)?/":"^не(д(ела)?)?","/^mo(n(day)?)?/":"^по(н(еделник)?)?","/^tu(e(s(day)?)?)?/":"^вт(р(рник)?)?","/^we(d(nesday)?)?/":"^ср(д(да)?)?","/^th(u(r(s(day)?)?)?)?/":"^че(т(врток)?)?","/^fr(i(day)?)?/":"^пе(т(ок)?)?","/^sa(t(urday)?)?/":"^са(б(ота)?)?","/^next/":"^next","/^last|past|prev(ious)?/":"^last|past|prev(ious)?","/^(\\+|aft(er)?|from|hence)/":"^(\\+|aft(er)?|from|hence)","/^(\\-|bef(ore)?|ago)/":"^(\\-|bef(ore)?|ago)","/^yes(terday)?/":"^yes(terday)?","/^t(od(ay)?)?/":"^t(od(ay)?)?","/^tom(orrow)?/":"^tom(orrow)?","/^n(ow)?/":"^n(ow)?","/^ms|milli(second)?s?/":"^ms|milli(second)?s?","/^sec(ond)?s?/":"^sec(ond)?s?","/^mn|min(ute)?s?/":"^mn|min(ute)?s?","/^h(our)?s?/":"^h(our)?s?","/^w(eek)?s?/":"^w(eek)?s?","/^m(onth)?s?/":"^m(onth)?s?","/^d(ay)?s?/":"^d(ay)?s?","/^y(ear)?s?/":"^y(ear)?s?","/^(a|p)/":"^(a|p)","/^(a\\.?m?\\.?|p\\.?m?\\.?)/":"^(a\\.?m?\\.?|p\\.?m?\\.?)","/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)/":"^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)","/^\\s*(st|nd|rd|th)/":"^\\s*(st|nd|rd|th)","/^\\s*(\\:|a(?!u|p)|p)/":"^\\s*(\\:|a(?!u|p)|p)",LINT:"LINT",TOT:"TOT",CHAST:"CHAST",NZST:"NZST",NFT:"NFT",SBT:"SBT",AEST:"AEST",ACST:"ACST",JST:"JST",CWST:"CWST",CT:"CT",ICT:"ICT",MMT:"MMT",BIOT:"BST",NPT:"NPT",IST:"IST",PKT:"PKT",AFT:"AFT",MSK:"MSK",IRST:"IRST",FET:"FET",EET:"EET",CET:"CET",UTC:"UTC",GMT:"GMT",CVT:"CVT",GST:"GST",BRT:"BRT",NST:"NST",AST:"AST",EST:"EST",CST:"CST",MST:"MST",PST:"PST",AKST:"AKST",MIT:"MIT",HST:"HST",SST:"SST",BIT:"BIT",CHADT:"CHADT",NZDT:"NZDT",AEDT:"AEDT",ACDT:"ACDT",AZST:"AZST",IRDT:"IRDT",EEST:"EEST",CEST:"CEST",BST:"BST",PMDT:"PMDT",ADT:"ADT",NDT:"NDT",EDT:"EDT",CDT:"CDT",MDT:"MDT",PDT:"PDT",AKDT:"AKDT",HADT:"HADT"};Date.CultureStrings.lang="mk-MK";(function(){var f=Date;var b=Date.CultureStrings?Date.CultureStrings.lang:null;var e={};var i={getFromKey:function(l,j){var k;if(Date.CultureStrings&&Date.CultureStrings[j]&&Date.CultureStrings[j][l]){k=Date.CultureStrings[j][l]}else{k=i.buildFromDefault(l)}if(l.charAt(0)==="/"){k=i.buildFromRegex(l,j)}return k},getFromObjectValues:function(m,j){var l,k={};for(l in m){if(m.hasOwnProperty(l)){k[l]=i.getFromKey(m[l],j)}}return k},getFromObjectKeys:function(m,j){var l,k={};for(l in m){if(m.hasOwnProperty(l)){k[i.getFromKey(l,j)]=m[l]}}return k},getFromArray:function(j,k){var l=[];for(var m=0;m<j.length;m++){if(m in j){l[m]=i.getFromKey(j[m],k)}}return l},buildFromDefault:function(l){var j,n,k,m;switch(l){case"name":j="en-US";break;case"englishName":j="English (United States)";break;case"nativeName":j="English (United States)";break;case"twoDigitYearMax":j=2049;break;case"firstDayOfWeek":j=0;break;default:j=l;k=l.split("_");n=k.length;if(n>1&&l.charAt(0)!=="/"){m=k[(n-1)].toLowerCase();if(m==="initial"||m==="abbr"){j=k[0]}}break}return j},buildFromRegex:function(l,j){var k;if(Date.CultureStrings&&Date.CultureStrings[j]&&Date.CultureStrings[j][l]){k=new RegExp(Date.CultureStrings[j][l],"i")}else{k=new RegExp(l.replace(new RegExp("/","g"),""),"i")}return k}};var a=function(l,k){for(var j in k){if(k.hasOwnProperty(j)){l[j]=k[j]}}};var h=function(k,l){var j=(l)?l:b;e[k]=k;if(typeof k==="object"){if(k instanceof Array){return i.getFromArray(k,j)}else{return i.getFromObjectKeys(k,j)}}else{return i.getFromKey(k,j)}};var c=function(o){var k=Date.Config.i18n+o+".js";var m=document.getElementsByTagName("head")[0]||document.documentElement;var j=document.createElement("script");j.src=k;var n=false;var l={done:function(){}};j.onload=j.onreadystatechange=function(){if(!n&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){l.done();m.removeChild(j)}};setTimeout(function(){m.insertBefore(j,m.firstChild)},0);return{done:function(p){l.done=function(){if(p){setTimeout(p,0)}}}}};var d={buildFromMethodHash:function(k){var j;for(j in k){if(k.hasOwnProperty(j)){k[j]=d[k[j]]()}}return k},timeZoneDST:function(){var j={CHADT:"+1345",NZDT:"+1300",AEDT:"+1100",ACDT:"+1030",AZST:"+0500",IRDT:"+0430",EEST:"+0300",CEST:"+0200",BST:"+0100",PMDT:"-0200",ADT:"-0300",NDT:"-0230",EDT:"-0400",CDT:"-0500",MDT:"-0600",PDT:"-0700",AKDT:"-0800",HADT:"-0900"};return h(j)},timeZoneStandard:function(){var j={LINT:"+1400",TOT:"+1300",CHAST:"+1245",NZST:"+1200",NFT:"+1130",SBT:"+1100",AEST:"+1000",ACST:"+0930",JST:"+0900",CWST:"+0845",CT:"+0800",ICT:"+0700",MMT:"+0630",BST:"+0600",NPT:"+0545",IST:"+0530",PKT:"+0500",AFT:"+0430",MSK:"+0400",IRST:"+0330",FET:"+0300",EET:"+0200",CET:"+0100",GMT:"+0000",UTC:"+0000",CVT:"-0100",GST:"-0200",BRT:"-0300",NST:"-0330",AST:"-0400",EST:"-0500",CST:"-0600",MST:"-0700",PST:"-0800",AKST:"-0900",MIT:"-0930",HST:"-1000",SST:"-1100",BIT:"-1200"};return h(j)},timeZones:function(k){var j;k.timezones=[];for(j in k.abbreviatedTimeZoneStandard){if(k.abbreviatedTimeZoneStandard.hasOwnProperty(j)){k.timezones.push({name:j,offset:k.abbreviatedTimeZoneStandard[j]})}}for(j in k.abbreviatedTimeZoneDST){if(k.abbreviatedTimeZoneDST.hasOwnProperty(j)){k.timezones.push({name:j,offset:k.abbreviatedTimeZoneDST[j],dst:true})}}return k.timezones},days:function(){return h(["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"])},dayAbbr:function(){return h(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])},dayShortNames:function(){return h(["Su","Mo","Tu","We","Th","Fr","Sa"])},dayFirstLetters:function(){return h(["S_Sun_Initial","M_Mon_Initial","T_Tues_Initial","W_Wed_Initial","T_Thu_Initial","F_Fri_Initial","S_Sat_Initial"])},months:function(){return h(["January","February","March","April","May","June","July","August","September","October","November","December"])},monthAbbr:function(){return h(["Jan_Abbr","Feb_Abbr","Mar_Abbr","Apr_Abbr","May_Abbr","Jun_Abbr","Jul_Abbr","Aug_Abbr","Sep_Abbr","Oct_Abbr","Nov_Abbr","Dec_Abbr"])},formatPatterns:function(){return i.getFromObjectValues({shortDate:"M/d/yyyy",longDate:"dddd, MMMM dd, yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss",monthDay:"MMMM dd",yearMonth:"MMMM, yyyy"},Date.i18n.currentLanguage())},regex:function(){return i.getFromObjectValues({inTheMorning:"/( in the )(morn(ing)?)\\b/",thisMorning:"/(this )(morn(ing)?)\\b/",amThisMorning:"/(\b\\d(am)? )(this )(morn(ing)?)/",inTheEvening:"/( in the )(even(ing)?)\\b/",thisEvening:"/(this )(even(ing)?)\\b/",pmThisEvening:"/(\b\\d(pm)? )(this )(even(ing)?)/",jan:"/jan(uary)?/",feb:"/feb(ruary)?/",mar:"/mar(ch)?/",apr:"/apr(il)?/",may:"/may/",jun:"/jun(e)?/",jul:"/jul(y)?/",aug:"/aug(ust)?/",sep:"/sep(t(ember)?)?/",oct:"/oct(ober)?/",nov:"/nov(ember)?/",dec:"/dec(ember)?/",sun:"/^su(n(day)?)?/",mon:"/^mo(n(day)?)?/",tue:"/^tu(e(s(day)?)?)?/",wed:"/^we(d(nesday)?)?/",thu:"/^th(u(r(s(day)?)?)?)?/",fri:"/fr(i(day)?)?/",sat:"/^sa(t(urday)?)?/",future:"/^next/",past:"/^last|past|prev(ious)?/",add:"/^(\\+|aft(er)?|from|hence)/",subtract:"/^(\\-|bef(ore)?|ago)/",yesterday:"/^yes(terday)?/",today:"/^t(od(ay)?)?/",tomorrow:"/^tom(orrow)?/",now:"/^n(ow)?/",millisecond:"/^ms|milli(second)?s?/",second:"/^sec(ond)?s?/",minute:"/^mn|min(ute)?s?/",hour:"/^h(our)?s?/",week:"/^w(eek)?s?/",month:"/^m(onth)?s?/",day:"/^d(ay)?s?/",year:"/^y(ear)?s?/",shortMeridian:"/^(a|p)/",longMeridian:"/^(a\\.?m?\\.?|p\\.?m?\\.?)/",timezone:"/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)/",ordinalSuffix:"/^\\s*(st|nd|rd|th)/",timeContext:"/^\\s*(\\:|a(?!u|p)|p)/"},Date.i18n.currentLanguage())}};var g=function(){var j=i.getFromObjectValues({name:"name",englishName:"englishName",nativeName:"nativeName",amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:"firstDayOfWeek",twoDigitYearMax:"twoDigitYearMax",dateElementOrder:"mdy"},Date.i18n.currentLanguage());var k=d.buildFromMethodHash({dayNames:"days",abbreviatedDayNames:"dayAbbr",shortestDayNames:"dayShortNames",firstLetterDayNames:"dayFirstLetters",monthNames:"months",abbreviatedMonthNames:"monthAbbr",formatPatterns:"formatPatterns",regexPatterns:"regex",abbreviatedTimeZoneDST:"timeZoneDST",abbreviatedTimeZoneStandard:"timeZoneStandard"});a(j,k);d.timeZones(j);return j};f.i18n={__:function(j,k){return h(j,k)},currentLanguage:function(){return b||"en-US"},setLanguage:function(l,m,j){var k=false;if(m||l==="en-US"||(!!Date.CultureStrings&&!!Date.CultureStrings[l])){b=l;Date.CultureStrings=Date.CultureStrings||{};Date.CultureStrings.lang=l;Date.CultureInfo=new g()}else{if(!(!!Date.CultureStrings&&!!Date.CultureStrings[l])){if(typeof exports!=="undefined"&&this.exports!==exports){try{require("../i18n/"+l+".js");b=l;Date.CultureStrings.lang=l;Date.CultureInfo=new g()}catch(n){throw new Error("The DateJS IETF language tag '"+l+"' could not be loaded by Node. It likely does not exist.")}}else{if(Date.Config&&Date.Config.i18n){k=true;c(l).done(function(){b=l;Date.CultureStrings=Date.CultureStrings||{};Date.CultureStrings.lang=l;Date.CultureInfo=new g();f.Parsing.Normalizer.buildReplaceData();if(f.Grammar){f.Grammar.buildGrammarFormats()}if(j){setTimeout(j,0)}})}else{Date.console.error("The DateJS IETF language tag '"+l+"' is not available and has not been loaded.");return false}}}}f.Parsing.Normalizer.buildReplaceData();if(f.Grammar){f.Grammar.buildGrammarFormats()}if(!k&&j){setTimeout(j,0)}},getLoggedKeys:function(){return e},updateCultureInfo:function(){Date.CultureInfo=new g()}};f.i18n.updateCultureInfo()}());(function(){var b=Date,a=b.prototype,c=function(f,e){if(!e){e=2}return("000"+f).slice(e*-1)};if(typeof window!=="undefined"&&typeof window.console!=="undefined"&&typeof window.console.log!=="undefined"){b.console=console}else{b.console={log:function(){},error:function(){}}}b.Config=b.Config||{};b.initOverloads=function(){if(!b.now){b._now=function e(){return new Date().getTime()}}else{if(!b._now){b._now=b.now}}b.now=function(f){if(f){return b.present()}else{return b._now()}};if(!a.toISOString){a.toISOString=function(){return this.getUTCFullYear()+"-"+c(this.getUTCMonth()+1)+"-"+c(this.getUTCDate())+"T"+c(this.getUTCHours())+":"+c(this.getUTCMinutes())+":"+c(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1000).toFixed(3)).slice(2,5)+"Z"}}if(a._toString===undefined){a._toString=a.toString}};b.initOverloads();b.today=function(){return new Date().clearTime()};b.present=function(){return new Date()};b.compare=function(f,e){if(isNaN(f)||isNaN(e)){throw new Error(f+" - "+e)}else{if(f instanceof Date&&e instanceof Date){return(f<e)?-1:(f>e)?1:0}else{throw new TypeError(f+" - "+e)}}};b.equals=function(f,e){return(f.compareTo(e)===0)};b.getDayName=function(e){return Date.CultureInfo.dayNames[e]};b.getDayNumberFromName=function(f){var k=Date.CultureInfo.dayNames,e=Date.CultureInfo.abbreviatedDayNames,j=Date.CultureInfo.shortestDayNames,h=f.toLowerCase();for(var g=0;g<k.length;g++){if(k[g].toLowerCase()===h||e[g].toLowerCase()===h||j[g].toLowerCase()===h){return g}}return -1};b.getMonthNumberFromName=function(f){var j=Date.CultureInfo.monthNames,e=Date.CultureInfo.abbreviatedMonthNames,h=f.toLowerCase();for(var g=0;g<j.length;g++){if(j[g].toLowerCase()===h||e[g].toLowerCase()===h){return g}}return -1};b.getMonthName=function(e){return Date.CultureInfo.monthNames[e]};b.isLeapYear=function(e){return((e%4===0&&e%100!==0)||e%400===0)};b.getDaysInMonth=function(e,f){if(!f&&b.validateMonth(e)){f=e;e=Date.today().getFullYear()}return[31,(b.isLeapYear(e)?29:28),31,30,31,30,31,31,30,31,30,31][f]};a.getDaysInMonth=function(){return b.getDaysInMonth(this.getFullYear(),this.getMonth())};b.getTimezoneAbbreviation=function(f,h){var e,g=(h||false)?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard;for(e in g){if(g.hasOwnProperty(e)){if(g[e]===f){return e}}}return null};b.getTimezoneOffset=function(f,j){var g,e=[],h=Date.CultureInfo.timezones;if(!f){f=(new Date()).getTimezone()}for(g=0;g<h.length;g++){if(h[g].name===f.toUpperCase()){e.push(g)}}if(!h[e[0]]){return null}if(e.length===1||!j){return h[e[0]].offset}else{for(g=0;g<e.length;g++){if(h[e[g]].dst){return h[e[g]].offset}}}};b.getQuarter=function(f){f=f||new Date();var e=[1,2,3,4];return e[Math.floor(f.getMonth()/3)]};b.getDaysLeftInQuarter=function(e){e=e||new Date();var f=new Date(e);f.setMonth(f.getMonth()+3-f.getMonth()%3,0);return Math.floor((f-e)/86400000)};var d=function(h,g,e,f){f=f?f:"Object";if(typeof h==="undefined"){return false}else{if(typeof h!=="number"){throw new TypeError(h+" is not a Number.")}else{if(h<g||h>e){return false}}}return true};b.validateMillisecond=function(e){return d(e,0,999,"millisecond")};b.validateSecond=function(e){return d(e,0,59,"second")};b.validateMinute=function(e){return d(e,0,59,"minute")};b.validateHour=function(e){return d(e,0,23,"hour")};b.validateDay=function(f,e,g){if(e===undefined||e===null||g===undefined||g===null){return false}return d(f,1,b.getDaysInMonth(e,g),"day")};b.validateWeek=function(e){return d(e,0,53,"week")};b.validateMonth=function(e){return d(e,0,11,"month")};b.validateYear=function(e){return d(e,-271822,275760,"year")};b.validateTimezone=function(f){var e={ACDT:1,ACST:1,ACT:1,ADT:1,AEDT:1,AEST:1,AFT:1,AKDT:1,AKST:1,AMST:1,AMT:1,ART:1,AST:1,AWDT:1,AWST:1,AZOST:1,AZT:1,BDT:1,BIOT:1,BIT:1,BOT:1,BRT:1,BST:1,BTT:1,CAT:1,CCT:1,CDT:1,CEDT:1,CEST:1,CET:1,CHADT:1,CHAST:1,CHOT:1,ChST:1,CHUT:1,CIST:1,CIT:1,CKT:1,CLST:1,CLT:1,COST:1,COT:1,CST:1,CT:1,CVT:1,CWST:1,CXT:1,DAVT:1,DDUT:1,DFT:1,EASST:1,EAST:1,EAT:1,ECT:1,EDT:1,EEDT:1,EEST:1,EET:1,EGST:1,EGT:1,EIT:1,EST:1,FET:1,FJT:1,FKST:1,FKT:1,FNT:1,GALT:1,GAMT:1,GET:1,GFT:1,GILT:1,GIT:1,GMT:1,GST:1,GYT:1,HADT:1,HAEC:1,HAST:1,HKT:1,HMT:1,HOVT:1,HST:1,ICT:1,IDT:1,IOT:1,IRDT:1,IRKT:1,IRST:1,IST:1,JST:1,KGT:1,KOST:1,KRAT:1,KST:1,LHST:1,LINT:1,MAGT:1,MART:1,MAWT:1,MDT:1,MET:1,MEST:1,MHT:1,MIST:1,MIT:1,MMT:1,MSK:1,MST:1,MUT:1,MVT:1,MYT:1,NCT:1,NDT:1,NFT:1,NPT:1,NST:1,NT:1,NUT:1,NZDT:1,NZST:1,OMST:1,ORAT:1,PDT:1,PET:1,PETT:1,PGT:1,PHOT:1,PHT:1,PKT:1,PMDT:1,PMST:1,PONT:1,PST:1,PYST:1,PYT:1,RET:1,ROTT:1,SAKT:1,SAMT:1,SAST:1,SBT:1,SCT:1,SGT:1,SLST:1,SRT:1,SST:1,SYOT:1,TAHT:1,THA:1,TFT:1,TJT:1,TKT:1,TLT:1,TMT:1,TOT:1,TVT:1,UCT:1,ULAT:1,UTC:1,UYST:1,UYT:1,UZT:1,VET:1,VLAT:1,VOLT:1,VOST:1,VUT:1,WAKT:1,WAST:1,WAT:1,WEDT:1,WEST:1,WET:1,WST:1,YAKT:1,YEKT:1,Z:1};return(e[f]===1)};b.validateTimezoneOffset=function(e){return(e>-841&&e<721)}}());(function(){var c=Date,b=c.prototype,f=function(j,i){if(!i){i=2}return("000"+j).slice(i*-1)};var h=function(m){var i={},j=this,n,k;k=function(u,p,q){if(u==="day"){var s=(m.month!==undefined)?m.month:j.getMonth();var o=(m.year!==undefined)?m.year:j.getFullYear();return c[p](q,o,s)}else{return c[p](q)}};for(n in m){if(hasOwnProperty.call(m,n)){var l="validate"+n.charAt(0).toUpperCase()+n.slice(1);if(c[l]&&m[n]!==null&&k(n,l,m[n])){i[n]=m[n]}}}return i};b.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};b.setTimeToNow=function(){var i=new Date();this.setHours(i.getHours());this.setMinutes(i.getMinutes());this.setSeconds(i.getSeconds());this.setMilliseconds(i.getMilliseconds());return this};b.clone=function(){return new Date(this.getTime())};b.compareTo=function(i){return Date.compare(this,i)};b.equals=function(i){return Date.equals(this,(i!==undefined?i:new Date()))};b.between=function(j,i){return this.getTime()>=j.getTime()&&this.getTime()<=i.getTime()};b.isAfter=function(i){return this.compareTo(i||new Date())===1};b.isBefore=function(i){return(this.compareTo(i||new Date())===-1)};b.isToday=b.isSameDay=function(i){return this.clone().clearTime().equals((i||new Date()).clone().clearTime())};b.addMilliseconds=function(i){if(!i){return this}this.setTime(this.getTime()+i*1);return this};b.addSeconds=function(i){if(!i){return this}return this.addMilliseconds(i*1000)};b.addMinutes=function(i){if(!i){return this}return this.addMilliseconds(i*60000)};b.addHours=function(i){if(!i){return this}return this.addMilliseconds(i*3600000)};b.addDays=function(i){if(!i){return this}this.setDate(this.getDate()+i*1);return this};b.addWeekdays=function(k){if(!k){return this}var i=this.getDay();var j=(Math.ceil(Math.abs(k)/7));if(i===0||i===6){if(k>0){this.next().monday();this.addDays(-1);i=this.getDay()}}if(k<0){while(k<0){this.addDays(-1);i=this.getDay();if(i!==0&&i!==6){k++}}return this}else{if(k>5||(6-i)<=k){k=k+(j*2)}}return this.addDays(k)};b.addWeeks=function(i){if(!i){return this}return this.addDays(i*7)};b.addMonths=function(i){if(!i){return this}var j=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+i*1);this.setDate(Math.min(j,c.getDaysInMonth(this.getFullYear(),this.getMonth())));return this};b.addQuarters=function(i){if(!i){return this}return this.addMonths(i*3)};b.addYears=function(i){if(!i){return this}return this.addMonths(i*12)};b.add=function(j){if(typeof j==="number"){this._orient=j;return this}var i=j;if(i.day){if((i.day-this.getDate())!==0){this.setDate(i.day)}}if(i.milliseconds){this.addMilliseconds(i.milliseconds)}if(i.seconds){this.addSeconds(i.seconds)}if(i.minutes){this.addMinutes(i.minutes)}if(i.hours){this.addHours(i.hours)}if(i.weeks){this.addWeeks(i.weeks)}if(i.months){this.addMonths(i.months)}if(i.years){this.addYears(i.years)}if(i.days){this.addDays(i.days)}return this};b.getWeek=function(j){var i,k=new Date(this.valueOf());if(j){k.addMinutes(k.getTimezoneOffset());i=k.clone()}else{i=this}var l=(i.getDay()+6)%7;k.setDate(k.getDate()-l+3);var m=k.valueOf();k.setMonth(0,1);if(k.getDay()!==4){k.setMonth(0,1+((4-k.getDay())+7)%7)}return 1+Math.ceil((m-k)/604800000)};b.getISOWeek=function(){return f(this.getWeek(true))};b.setWeek=function(i){if((i-this.getWeek())===0){if(this.getDay()!==1){return this.moveToDayOfWeek(1,(this.getDay()>1?-1:1))}else{return this}}else{return this.moveToDayOfWeek(1,(this.getDay()>1?-1:1)).addWeeks(i-this.getWeek())}};b.setQuarter=function(i){var j=Math.abs(((i-1)*3)+1);return this.setMonth(j,1)};b.getQuarter=function(){return Date.getQuarter(this)};b.getDaysLeftInQuarter=function(){return Date.getDaysLeftInQuarter(this)};b.moveToNthOccurrence=function(j,k){if(j==="Weekday"){if(k>0){this.moveToFirstDayOfMonth();if(this.is().weekday()){k-=1}}else{if(k<0){this.moveToLastDayOfMonth();if(this.is().weekday()){k+=1}}else{return this}}return this.addWeekdays(k)}var i=0;if(k>0){i=k-1}else{if(k===-1){this.moveToLastDayOfMonth();if(this.getDay()!==j){this.moveToDayOfWeek(j,-1)}return this}}return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(j,+1).addWeeks(i)};var d=function(k,j,i){return function(m,l){var n=(m-this[k]()+i*(l||+1))%i;return this[j]((n===0)?n+=i*(l||+1):n)}};b.moveToDayOfWeek=d("getDay","addDays",7);b.moveToMonth=d("getMonth","addMonths",12);b.getOrdinate=function(){var i=this.getDate();return a(i)};b.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/86400000)+1};b.getTimezone=function(){return c.getTimezoneAbbreviation(this.getUTCOffset(),this.isDaylightSavingTime())};b.setTimezoneOffset=function(k){var i=this.getTimezoneOffset(),j=Number(k)*-6/10;return(j||j===0)?this.addMinutes(j-i):this};b.setTimezone=function(i){return this.setTimezoneOffset(c.getTimezoneOffset(i))};b.hasDaylightSavingTime=function(){return(Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset())};b.isDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==this.getTimezoneOffset()};b.getUTCOffset=function(j){var k=(j||this.getTimezoneOffset())*-10/6,i;if(k<0){i=(k-10000).toString();return i.charAt(0)+i.substr(2)}else{i=(k+10000).toString();return"+"+i.substr(1)}};b.getElapsed=function(i){return(i||new Date())-this};b.set=function(j){j=h.call(this,j);var k;for(k in j){if(hasOwnProperty.call(j,k)){var i=k.charAt(0).toUpperCase()+k.slice(1);var l,m;if(k!=="week"&&k!=="month"&&k!=="timezone"&&k!=="timezoneOffset"){i+="s"}l="add"+i;m="get"+i;if(k==="month"){l=l+"s"}else{if(k==="year"){m="getFullYear"}}if(k!=="day"&&k!=="timezone"&&k!=="timezoneOffset"&&k!=="week"&&k!=="hour"){this[l](j[k]-this[m]())}else{if(k==="timezone"||k==="timezoneOffset"||k==="week"||k==="hour"){this["set"+i](j[k])}}}}if(j.day){this.addDays(j.day-this.getDate())}return this};b.moveToFirstDayOfMonth=function(){return this.set({day:1})};b.moveToLastDayOfMonth=function(){return this.set({day:c.getDaysInMonth(this.getFullYear(),this.getMonth())})};var a=function(i){switch(i*1){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}};var g=function(i){var k,j=Date.CultureInfo.formatPatterns;switch(i){case"d":return this.toString(j.shortDate);case"D":return this.toString(j.longDate);case"F":return this.toString(j.fullDateTime);case"m":return this.toString(j.monthDay);case"r":case"R":k=this.clone().addMinutes(this.getTimezoneOffset());return k.toString(j.rfc1123)+" GMT";case"s":return this.toString(j.sortableDateTime);case"t":return this.toString(j.shortTime);case"T":return this.toString(j.longTime);case"u":k=this.clone().addMinutes(this.getTimezoneOffset());return k.toString(j.universalSortableDateTime);case"y":return this.toString(j.yearMonth);default:return false}};var e=function(i){return function(j){if(j.charAt(0)==="\\"){return j.replace("\\","")}switch(j){case"hh":return f(i.getHours()<13?(i.getHours()===0?12:i.getHours()):(i.getHours()-12));case"h":return i.getHours()<13?(i.getHours()===0?12:i.getHours()):(i.getHours()-12);case"HH":return f(i.getHours());case"H":return i.getHours();case"mm":return f(i.getMinutes());case"m":return i.getMinutes();case"ss":return f(i.getSeconds());case"s":return i.getSeconds();case"yyyy":return f(i.getFullYear(),4);case"yy":return f(i.getFullYear());case"y":return i.getFullYear();case"E":case"dddd":return Date.CultureInfo.dayNames[i.getDay()];case"ddd":return Date.CultureInfo.abbreviatedDayNames[i.getDay()];case"dd":return f(i.getDate());case"d":return i.getDate();case"MMMM":return Date.CultureInfo.monthNames[i.getMonth()];case"MMM":return Date.CultureInfo.abbreviatedMonthNames[i.getMonth()];case"MM":return f((i.getMonth()+1));case"M":return i.getMonth()+1;case"t":return i.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return i.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"S":return a(i.getDate());case"W":return i.getWeek();case"WW":return i.getISOWeek();case"Q":return"Q"+i.getQuarter();case"q":return String(i.getQuarter());case"z":return i.getTimezone();case"Z":case"X":return Date.getTimezoneOffset(i.getTimezone());case"ZZ":return i.getTimezoneOffset()*-60;case"u":return i.getDay();case"L":return(c.isLeapYear(i.getFullYear()))?1:0;case"B":return"@"+((i.getUTCSeconds()+(i.getUTCMinutes()*60)+((i.getUTCHours()+1)*3600))/86.4);default:return j}}};b.toString=function(k,j){if(!j&&k&&k.length===1){output=g.call(this,k);if(output){return output}}var i=e(this);return k?k.replace(/((\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S|q|Q|WW?W?W?)(?![^\[]*\]))/g,i).replace(/\[|\]/g,""):this._toString()}}());(function(){var s=Date,h=s.prototype,n=Number.prototype;h._orient=+1;h._nth=null;h._is=false;h._same=false;h._isSecond=false;n._dateElement="days";h.next=function(){this._move=true;this._orient=+1;return this};s.next=function(){return s.today().next()};h.last=h.prev=h.previous=function(){this._move=true;this._orient=-1;return this};s.last=s.prev=s.previous=function(){return s.today().last()};h.is=function(){this._is=true;return this};h.same=function(){this._same=true;this._isSecond=false;return this};h.today=function(){return this.same().day()};h.weekday=function(){if(this._nth){return v("Weekday").call(this)}if(this._move){return this.addWeekdays(this._orient)}if(this._is){this._is=false;return(!this.is().sat()&&!this.is().sun())}return false};h.weekend=function(){if(this._is){this._is=false;return(this.is().sat()||this.is().sun())}return false};h.at=function(k){return(typeof k==="string")?s.parse(this.toString("d")+" "+k):this.set(k)};n.fromNow=n.after=function(k){var l={};l[this._dateElement]=this;return((!k)?new Date():k.clone()).add(l)};n.ago=n.before=function(k){var x={},l=(this._dateElement[this._dateElement.length-1]!=="s")?this._dateElement+"s":this._dateElement;x[l]=this*-1;return((!k)?new Date():k.clone()).add(x)};var f=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),i=("january february march april may june july august september october november december").split(/\s/),j=("Millisecond Second Minute Hour Day Week Month Year Quarter Weekday").split(/\s/),o=("Milliseconds Seconds Minutes Hours Date Week Month FullYear Quarter").split(/\s/),b=("final first second third fourth fifth").split(/\s/),w;h.toObject=function(){var l={};for(var k=0;k<j.length;k++){if(this["get"+o[k]]){l[j[k].toLowerCase()]=this["get"+o[k]]()}}return l};s.fromObject=function(k){k.week=null;return Date.today().set(k)};var v=function(k){return function(){if(this._is){this._is=false;return this.getDay()===k}if(this._move){this._move=null}if(this._nth!==null){if(this._isSecond){this.addSeconds(this._orient*-1)}this._isSecond=false;var x=this._nth;this._nth=null;var l=this.clone().moveToLastDayOfMonth();this.moveToNthOccurrence(k,x);if(this>l){throw new RangeError(s.getDayName(k)+" does not occur "+x+" times in the month of "+s.getMonthName(l.getMonth())+" "+l.getFullYear()+".")}return this}return this.moveToDayOfWeek(k,this._orient)}};var g=function(k){return function(){var x=s.today(),l=k-x.getDay();if(k===0&&Date.CultureInfo.firstDayOfWeek===1&&x.getDay()!==0){l=l+7}return x.addDays(l)}};var c=function(k){return function(){if(this._is){this._is=false;return this.getMonth()===k}return this.moveToMonth(k,this._orient)}};var m=function(k){return function(){return s.today().set({month:k,day:1})}};var u=function(y,x,l){for(var k=0;k<y.length;k++){s[y[k].toUpperCase()]=s[y[k].toUpperCase().substring(0,3)]=k;s[y[k]]=s[y[k].substring(0,3)]=x(k);h[y[k]]=h[y[k].substring(0,3)]=l(k)}};u(f,g,v);u(i,m,c);var d=function(k){return function(){if(this._isSecond){this._isSecond=false;return this}if(this._same){this._same=this._is=false;var A=this.toObject(),z=(arguments[0]||new Date()).toObject(),y="",x=k.toLowerCase();x=(x[x.length-1]==="s")?x.substring(0,x.length-1):x;for(var l=(j.length-1);l>-1;l--){y=j[l].toLowerCase();if(A[y]!==z[y]){return false}if(x===y){break}}return true}if(k.substring(k.length-1)!=="s"){k+="s"}if(this._move){this._move=null}return this["add"+k](this._orient)}};var e=function(k){return function(){this._dateElement=k;return this}};for(var q=0;q<j.length;q++){w=j[q].toLowerCase();if(w!=="weekday"){h[w]=h[w+"s"]=d(j[q]);n[w]=n[w+"s"]=e(w+"s")}}h._ss=d("Second");var a=function(k){return function(l){if(this._same){return this._ss(arguments[0])}if(l||l===0){return this.moveToNthOccurrence(l,k)}this._nth=k;if(k===2&&(l===undefined||l===null)){this._isSecond=true;return this.addSeconds(this._orient)}return this}};for(var p=0;p<b.length;p++){h[b[p]]=(p===0)?a(-1):a(p)}}());(function(){Date.Parsing={Exception:function(d){this.message="Parse error at '"+d.substring(0,10)+" ...'"}};var b=Date.Parsing;var c={standard:[0,31,59,90,120,151,181,212,243,273,304,334],leap:[0,31,60,91,121,152,182,213,244,274,305,335]};b.isLeapYear=function(d){return((d%4===0)&&(d%100!==0))||(d%400===0)};var a={multiReplace:function(g,f){var d;for(d in f){if(Object.prototype.hasOwnProperty.call(f,d)){var e;if(typeof f[d]==="function"){}else{e=(f[d] instanceof RegExp)?f[d]:new RegExp(f[d],"g")}g=g.replace(e,d)}}return g},getDayOfYearFromWeek:function(f){var h,e,g;f.weekDay=(!f.weekDay&&f.weekDay!==0)?1:f.weekDay;h=new Date(f.year,0,4);e=h.getDay()===0?7:h.getDay();g=e+3;f.dayOfYear=((f.week*7)+(f.weekDay===0?7:f.weekDay))-g;return f},getDayOfYear:function(f,d){if(!f.dayOfYear){f=a.getDayOfYearFromWeek(f)}for(var e=0;e<=d.length;e++){if(f.dayOfYear<d[e]||e===d.length){f.day=f.day?f.day:(f.dayOfYear-d[e-1]);break}else{f.month=e}}return f},adjustForTimeZone:function(e,d){var f;if(e.zone.toUpperCase()==="Z"||(e.zone_hours===0&&e.zone_minutes===0)){f=-d.getTimezoneOffset()}else{f=(e.zone_hours*60)+(e.zone_minutes||0);if(e.zone_sign==="+"){f*=-1}f-=d.getTimezoneOffset()}d.setMinutes(d.getMinutes()+f);return d},setDefaults:function(d){d.year=d.year||Date.today().getFullYear();d.hours=d.hours||0;d.minutes=d.minutes||0;d.seconds=d.seconds||0;d.milliseconds=d.milliseconds||0;if(!(!d.month&&(d.week||d.dayOfYear))){d.month=d.month||0;d.day=d.day||1}return d},dataNum:function(g,e,d,f){var h=g*1;if(e){if(f){return g?e(g)*1:g}else{return g?e(h):g}}else{if(!d){return g?h:g}else{return(g&&typeof g!=="undefined")?h:g}}},timeDataProcess:function(f){var e={};for(var d in f.data){if(f.data.hasOwnProperty(d)){e[d]=f.ignore[d]?f.data[d]:a.dataNum(f.data[d],f.mods[d],f.explict[d],f.postProcess[d])}}if(f.data.secmins){f.data.secmins=f.data.secmins.replace(",",".")*60;if(!e.minutes){e.minutes=f.data.secmins}else{if(!e.seconds){e.seconds=f.data.secmins}}delete f.secmins}return e},buildTimeObjectFromData:function(d){var e=a.timeDataProcess({data:{year:d[1],month:d[5],day:d[7],week:d[8],dayOfYear:d[10],hours:d[15],zone_hours:d[23],zone_minutes:d[24],zone:d[21],zone_sign:d[22],weekDay:d[9],minutes:d[16],seconds:d[19],milliseconds:d[20],secmins:d[18]},mods:{month:function(f){return f-1},weekDay:function(f){f=Math.abs(f);return(f===7?0:f)},minutes:function(f){return f.replace(":","")},seconds:function(f){return Math.floor((f.replace(":","").replace(",","."))*1)},milliseconds:function(f){return(f.replace(",",".")*1000)}},postProcess:{minutes:true,seconds:true,milliseconds:true},explict:{zone_hours:true,zone_minutes:true},ignore:{zone:true,zone_sign:true,secmins:true}});return e},addToHash:function(h,f,g){f=f;g=g;var d=f.length;for(var e=0;e<d;e++){h[f[e]]=g[e]}return h},combineRegex:function(e,d){return new RegExp("(("+e.source+")\\s("+d.source+"))")},getDateNthString:function(f,d,e){if(f){return Date.today().addDays(e).toString("d")}else{if(d){return Date.today().last()[e]().toString("d")}}},buildRegexData:function(g){var e=[];var d=g.length;for(var f=0;f<d;f++){if(Object.prototype.toString.call(g[f])==="[object Array]"){e.push(this.combineRegex(g[f][0],g[f][1]))}else{e.push(g[f])}}return e}};b.processTimeObject=function(f){var e,d;a.setDefaults(f);d=(b.isLeapYear(f.year))?c.leap:c.standard;if(!f.month&&(f.week||f.dayOfYear)){a.getDayOfYear(f,d)}else{f.dayOfYear=d[f.month]+f.day}e=new Date(f.year,f.month,f.day,f.hours,f.minutes,f.seconds,f.milliseconds);if(f.zone){a.adjustForTimeZone(f,e)}return e};b.ISO={regex:/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-4])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?\s?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,parse:function(d){var f,e=d.match(this.regex);if(!e||!e.length){return null}f=a.buildTimeObjectFromData(e);if(!f.year||(!f.year&&(!f.month&&!f.day)&&(!f.week&&!f.dayOfYear))){return null}return b.processTimeObject(f)}};b.Numeric={isNumeric:function(d){return !isNaN(parseFloat(d))&&isFinite(d)},regex:/\b([0-1]?[0-9])([0-3]?[0-9])([0-2]?[0-9]?[0-9][0-9])\b/i,parse:function(f){var g,e,h={},d=Date.CultureInfo.dateElementOrder.split("");if(!(this.isNumeric(f))||(f[0]==="+"&&f[0]==="-")){return null}if(f.length<5&&f.indexOf(".")<0&&f.indexOf("/")<0){h.year=f;return b.processTimeObject(h)}g=f.match(this.regex);if(!g||!g.length){return null}for(e=0;e<d.length;e++){switch(d[e]){case"d":h.day=g[e+1];break;case"m":h.month=(g[e+1]-1);break;case"y":h.year=g[e+1];break}}return b.processTimeObject(h)}};b.Normalizer={regexData:function(){var d=Date.CultureInfo.regexPatterns;return a.buildRegexData([d.tomorrow,d.yesterday,[d.past,d.mon],[d.past,d.tue],[d.past,d.wed],[d.past,d.thu],[d.past,d.fri],[d.past,d.sat],[d.past,d.sun]])},basicReplaceHash:function(){var d=Date.CultureInfo.regexPatterns;return{January:d.jan.source,February:d.feb,March:d.mar,April:d.apr,May:d.may,June:d.jun,July:d.jul,August:d.aug,September:d.sep,October:d.oct,November:d.nov,December:d.dec,"":/\bat\b/gi," ":/\s{2,}/,am:d.inTheMorning,"9am":d.thisMorning,pm:d.inTheEvening,"7pm":d.thisEvening}},keys:function(){return[a.getDateNthString(true,false,1),a.getDateNthString(true,false,-1),a.getDateNthString(false,true,"monday"),a.getDateNthString(false,true,"tuesday"),a.getDateNthString(false,true,"wednesday"),a.getDateNthString(false,true,"thursday"),a.getDateNthString(false,true,"friday"),a.getDateNthString(false,true,"saturday"),a.getDateNthString(false,true,"sunday")]},buildRegexFunctions:function(){var d=Date.CultureInfo.regexPatterns;var g=Date.i18n.__;var e=new RegExp("(\\b\\d\\d?("+g("AM")+"|"+g("PM")+")? )("+d.tomorrow.source.slice(1)+")","i");var f=new RegExp(d.today.source+"(?!\\s*([+-]))\\b");this.replaceFuncs=[[f,function(h){return(h.length>1)?Date.today().toString("d"):h}],[e,function(j,h){var i=Date.today().addDays(1).toString("d");return(i+" "+h)}],[d.amThisMorning,function(i,h){return h}],[d.pmThisEvening,function(i,h){return h}]]},buildReplaceData:function(){this.buildRegexFunctions();this.replaceHash=a.addToHash(this.basicReplaceHash(),this.keys(),this.regexData())},stringReplaceFuncs:function(e){for(var d=0;d<this.replaceFuncs.length;d++){e=e.replace(this.replaceFuncs[d][0],this.replaceFuncs[d][1])}return e},parse:function(d){d=this.stringReplaceFuncs(d);d=a.multiReplace(d,this.replaceHash);try{var g=d.split(/([\s\-\.\,\/\x27]+)/);if(g.length===3&&b.Numeric.isNumeric(g[0])&&b.Numeric.isNumeric(g[2])&&(g[2].length>=4)){if(Date.CultureInfo.dateElementOrder[0]==="d"){d="1/"+g[0]+"/"+g[2]}}}catch(f){}return d}};b.Normalizer.buildReplaceData()}());(function(){var a=Date.Parsing;var c=a.Operators={rtoken:function(i){return function(j){var k=j.match(i);if(k){return([k[0],j.substring(k[0].length)])}else{throw new a.Exception(j)}}},token:function(){return function(i){return c.rtoken(new RegExp("^\\s*"+i+"\\s*"))(i)}},stoken:function(i){return c.rtoken(new RegExp("^"+i))},until:function(i){return function(j){var k=[],m=null;while(j.length){try{m=i.call(this,j)}catch(l){k.push(m[0]);j=m[1];continue}break}return[k,j]}},many:function(i){return function(j){var m=[],k=null;while(j.length){try{k=i.call(this,j)}catch(l){return[m,j]}m.push(k[0]);j=k[1]}return[m,j]}},optional:function(i){return function(j){var k=null;try{k=i.call(this,j)}catch(l){return[null,j]}return[k[0],k[1]]}},not:function(i){return function(j){try{i.call(this,j)}catch(k){return[null,j]}throw new a.Exception(j)}},ignore:function(i){return i?function(j){var k=null;k=i.call(this,j);return[null,k[1]]}:null},product:function(){var k=arguments[0],l=Array.prototype.slice.call(arguments,1),m=[];for(var j=0;j<k.length;j++){m.push(c.each(k[j],l))}return m},cache:function(n){var j={},m=0,i=[],o=Date.Config.CACHE_MAX||100000,l=null;var k=function(){if(m===o){for(var q=0;q<10;q++){var p=i.shift();if(p){delete j[p];m--}}}};return function(p){k();try{l=j[p]=(j[p]||n.call(this,p))}catch(q){l=j[p]=q}m++;i.push(p);if(l instanceof a.Exception){throw l}else{return l}}},any:function(){var i=arguments;return function(k){var l=null;for(var j=0;j<i.length;j++){if(i[j]==null){continue}try{l=(i[j].call(this,k))}catch(m){l=null}if(l){return l}}throw new a.Exception(k)}},each:function(){var i=arguments;return function(k){var n=[],l=null;for(var j=0;j<i.length;j++){if(i[j]==null){continue}try{l=(i[j].call(this,k))}catch(m){throw new a.Exception(k)}n.push(l[0]);k=l[1]}return[n,k]}},all:function(){var j=arguments,i=i;return i.each(i.optional(j))},sequence:function(i,j,k){j=j||c.rtoken(/^\s*/);k=k||null;if(i.length===1){return i[0]}return function(o){var p=null,u=null;var w=[];for(var n=0;n<i.length;n++){try{p=i[n].call(this,o)}catch(v){break}w.push(p[0]);try{u=j.call(this,p[1])}catch(m){u=null;break}o=u[1]}if(!p){throw new a.Exception(o)}if(u){throw new a.Exception(u[1])}if(k){try{p=k.call(this,p[1])}catch(l){throw new a.Exception(p[1])}}return[w,(p?p[1]:o)]}},between:function(j,k,i){i=i||j;var l=c.each(c.ignore(j),k,c.ignore(i));return function(m){var n=l.call(this,m);return[[n[0][0],r[0][2]],n[1]]}},list:function(i,j,k){j=j||c.rtoken(/^\s*/);k=k||null;return(i instanceof Array?c.each(c.product(i.slice(0,-1),c.ignore(j)),i.slice(-1),c.ignore(k)):c.each(c.many(c.each(i,c.ignore(j))),px,c.ignore(k)))},set:function(i,j,k){j=j||c.rtoken(/^\s*/);k=k||null;return function(C){var l=null,n=null,m=null,o=null,u=[[],C],B=false;for(var w=0;w<i.length;w++){m=null;n=null;l=null;B=(i.length===1);try{l=i[w].call(this,C)}catch(z){continue}o=[[l[0]],l[1]];if(l[1].length>0&&!B){try{m=j.call(this,l[1])}catch(A){B=true}}else{B=true}if(!B&&m[1].length===0){B=true}if(!B){var x=[];for(var v=0;v<i.length;v++){if(w!==v){x.push(i[v])}}n=c.set(x,j).call(this,m[1]);if(n[0].length>0){o[0]=o[0].concat(n[0]);o[1]=n[1]}}if(o[1].length<u[1].length){u=o}if(u[1].length===0){break}}if(u[0].length===0){return u}if(k){try{m=k.call(this,u[1])}catch(y){throw new a.Exception(u[1])}u[1]=m[1]}return u}},forward:function(i,j){return function(k){return i[j].call(this,k)}},replace:function(j,i){return function(k){var l=j.call(this,k);return[i,l[1]]}},process:function(j,i){return function(k){var l=j.call(this,k);return[i.call(this,l[0]),l[1]]}},min:function(i,j){return function(k){var l=j.call(this,k);if(l[0].length<i){throw new a.Exception(k)}return l}}};var h=function(j){function i(){var k=null,n=[],m,l;if(arguments.length>1){k=Array.prototype.slice.call(arguments)}else{if(arguments[0] instanceof Array){k=arguments[0]}}if(k){m=k.shift();if(m.length>0){k.unshift(m[l]);n.push(j.apply(null,k));k.shift();return n}}else{return j.apply(null,arguments)}}return i};var g="optional not ignore cache".split(/\s/);for(var d=0;d<g.length;d++){c[g[d]]=h(c[g[d]])}var f=function(i){return function(){if(arguments[0] instanceof Array){return i.apply(null,arguments[0])}else{return i.apply(null,arguments)}}};var e="each any all".split(/\s/);for(var b=0;b<e.length;b++){c[e[b]]=f(c[e[b]])}}());(function(){var c=Date;var d=function(g){var h=[];for(var f=0;f<g.length;f++){if(g[f] instanceof Array){h=h.concat(d(g[f]))}else{if(g[f]){h.push(g[f])}}}return h};var b=function(){if(this.meridian&&(this.hour||this.hour===0)){if(this.meridian==="a"&&this.hour>11&&Date.Config.strict24hr){throw"Invalid hour and meridian combination"}else{if(this.meridian==="p"&&this.hour<12&&Date.Config.strict24hr){throw"Invalid hour and meridian combination"}else{if(this.meridian==="p"&&this.hour<12){this.hour=this.hour+12}else{if(this.meridian==="a"&&this.hour===12){this.hour=0}}}}}};var e=function(){var f=new Date();if((this.hour||this.minute)&&(!this.month&&!this.year&&!this.day)){this.day=f.getDate()}if(!this.year){this.year=f.getFullYear()}if(!this.month&&this.month!==0){this.month=f.getMonth()}if(!this.day){this.day=1}if(!this.hour){this.hour=0}if(!this.minute){this.minute=0}if(!this.second){this.second=0}if(!this.millisecond){this.millisecond=0}};var a={getToday:function(){if(this.now||"hour minute second".indexOf(this.unit)!==-1){return new Date()}else{return c.today()}},setDaysFromWeekday:function(f,g){var h;g=g||1;this.unit="day";h=(c.getDayNumberFromName(this.weekday)-f.getDay());this.days=h?((h+(g*7))%7):(g*7);return this},setMonthsFromMonth:function(f,g){var h;g=g||1;this.unit="month";h=(this.month-f.getMonth());this.months=h?((h+(g*12))%12):(g*12);this.month=null;return this},setDMYFromWeekday:function(){var f=Date[this.weekday]();this.day=f.getDate();if(!this.month){this.month=f.getMonth()}this.year=f.getFullYear();return this},setUnitValue:function(f){if(!this.value&&this.operator&&this.operator!==null&&this[this.unit+"s"]&&this[this.unit+"s"]!==null){this[this.unit+"s"]=this[this.unit+"s"]+((this.operator==="add")?1:-1)+(this.value||0)*f}else{if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value){this.value=1}this[this.unit+"s"]=this.value*f}}},generateDateFromWeeks:function(){var f=(this.weekday!==undefined)?this.weekday:"today";var g=Date[f]().addWeeks(this.weeks);if(this.now){g.setTimeToNow()}return g}};c.Translator={hour:function(f){return function(){this.hour=Number(f)}},minute:function(f){return function(){this.minute=Number(f)}},second:function(f){return function(){this.second=Number(f)}},secondAndMillisecond:function(f){return function(){var g=f.match(/^([0-5][0-9])\.([0-9]{1,3})/);this.second=Number(g[1]);this.millisecond=Number(g[2])}},meridian:function(f){return function(){this.meridian=f.slice(0,1).toLowerCase()}},timezone:function(f){return function(){var g=f.replace(/[^\d\+\-]/g,"");if(g.length){this.timezoneOffset=Number(g)}else{this.timezone=f.toLowerCase()}}},day:function(f){var g=f[0];return function(){this.day=Number(g.match(/\d+/)[0]);if(this.day<1){throw"invalid day"}}},month:function(f){return function(){this.month=(f.length===3)?"jan feb mar apr may jun jul aug sep oct nov dec".indexOf(f)/4:Number(f)-1;if(this.month<0){throw"invalid month"}}},year:function(f){return function(){var g=Number(f);this.year=((f.length>2)?g:(g+(((g+2000)<Date.CultureInfo.twoDigitYearMax)?2000:1900)))}},rday:function(f){return function(){switch(f){case"yesterday":this.days=-1;break;case"tomorrow":this.days=1;break;case"today":this.days=0;break;case"now":this.days=0;this.now=true;break}}},finishExact:function(f){var h;f=(f instanceof Array)?f:[f];for(var g=0;g<f.length;g++){if(f[g]){f[g].call(this)}}e.call(this);b.call(this);if(this.day>c.getDaysInMonth(this.year,this.month)){throw new RangeError(this.day+" is not a valid value for days.")}h=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond);if(this.year<100){h.setFullYear(this.year)}if(this.timezone){h.set({timezone:this.timezone})}else{if(this.timezoneOffset){h.set({timezoneOffset:this.timezoneOffset})}}return h},finish:function(f){var h,n,j,g;f=(f instanceof Array)?d(f):[f];if(f.length===0){return null}for(var k=0;k<f.length;k++){if(typeof f[k]==="function"){f[k].call(this)}}if(this.now&&!this.unit&&!this.operator){return new Date()}else{h=a.getToday.call(this)}n=!!(this.days&&this.days!==null||this.orient||this.operator);j=((this.orient==="past"||this.operator==="subtract")?-1:1);if(this.month&&this.unit==="week"){this.value=this.month+1;delete this.month;delete this.day}if((this.month||this.month===0)&&"year day hour minute second".indexOf(this.unit)!==-1){if(!this.value){this.value=this.month+1}this.month=null;n=true}if(!n&&this.weekday&&!this.day&&!this.days){a.setDMYFromWeekday.call(this)}if(n&&this.weekday&&this.unit!=="month"&&this.unit!=="week"){a.setDaysFromWeekday.call(this,h,j)}if(this.weekday&&this.unit!=="week"&&!this.day&&!this.days){g=Date[this.weekday]();this.day=g.getDate();if(g.getMonth()!==h.getMonth()){this.month=g.getMonth()}}if(this.month&&this.unit==="day"&&this.operator){if(!this.value){this.value=(this.month+1)}this.month=null}if(this.value!=null&&this.month!=null&&this.year!=null){this.day=this.value*1}if(this.month&&!this.day&&this.value){h.set({day:this.value*1});if(!n){this.day=this.value*1}}if(!this.month&&this.value&&this.unit==="month"&&!this.now){this.month=this.value;n=true}if(n&&(this.month||this.month===0)&&this.unit!=="year"){a.setMonthsFromMonth.call(this,h,j)}if(!this.unit){this.unit="day"}a.setUnitValue.call(this,j);b.call(this);if((this.month||this.month===0)&&!this.day){this.day=1}if(!this.orient&&!this.operator&&this.unit==="week"&&this.value&&!this.day&&!this.month){return Date.today().setWeek(this.value)}if(this.unit==="week"&&this.weeks&&!this.day&&!this.month){return a.generateDateFromWeeks.call(this)}if(n&&this.timezone&&this.day&&this.days){this.day=this.days}if(n){h.add(this)}else{h.set(this)}if(this.timezone){this.timezone=this.timezone.toUpperCase();var m=c.getTimezoneOffset(this.timezone);var l;if(h.hasDaylightSavingTime()){l=c.getTimezoneAbbreviation(m,h.isDaylightSavingTime());if(l!==this.timezone){if(h.isDaylightSavingTime()){h.addHours(-1)}else{h.addHours(1)}}}h.setTimezoneOffset(m)}return h}}}());(function(){var f=Date;f.Grammar={};var j=f.Parsing.Operators,e=f.Grammar,l=f.Translator,c;c=function(){return j.each(j.any.apply(null,arguments),j.not(e.ctoken2("timeContext")))};e.datePartDelimiter=j.rtoken(/^([\s\-\.\,\/\x27]+)/);e.timePartDelimiter=j.stoken(":");e.whiteSpace=j.rtoken(/^\s*/);e.generalDelimiter=j.rtoken(/^(([\s\,]|at|@|on)+)/);var a={};e.ctoken=function(p){var o=a[p];if(!o){var q=Date.CultureInfo.regexPatterns;var n=p.split(/\s+/),m=[];for(var g=0;g<n.length;g++){m.push(j.replace(j.rtoken(q[n[g]]),n[g]))}o=a[p]=j.any.apply(null,m)}return o};e.ctoken2=function(g){return j.rtoken(Date.CultureInfo.regexPatterns[g])};var b=function(m,g,n,o){if(o){e[m]=j.cache(j.process(j.each(j.rtoken(g),j.optional(e.ctoken2(o))),n))}else{e[m]=j.cache(j.process(j.rtoken(g),n))}};var h=function(g,m){return j.cache(j.process(e.ctoken2(g),m))};var k={};var d=function(g){k[g]=(k[g]||e.format(g)[0]);return k[g]};e.allformats=function(m){var n=[];if(m instanceof Array){for(var g=0;g<m.length;g++){n.push(d(m[g]))}}else{n.push(d(m))}return n};e.formats=function(m){if(m instanceof Array){var n=[];for(var g=0;g<m.length;g++){n.push(d(m[g]))}return j.any.apply(null,n)}else{return d(m)}};var i={timeFormats:function(){var g,o=["h","hh","H","HH","m","mm","s","ss","ss.s","z","zz"],m=[/^(0[0-9]|1[0-2]|[1-9])/,/^(0[0-9]|1[0-2])/,/^([0-1][0-9]|2[0-3]|[0-9])/,/^([0-1][0-9]|2[0-3])/,/^([0-5][0-9]|[0-9])/,/^[0-5][0-9]/,/^([0-5][0-9]|[0-9])/,/^[0-5][0-9]/,/^[0-5][0-9]\.[0-9]{1,3}/,/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/,/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/],n=[l.hour,l.hour,l.hour,l.minute,l.minute,l.second,l.second,l.secondAndMillisecond,l.timezone,l.timezone,l.timezone];for(g=0;g<o.length;g++){b(o[g],m[g],n[g])}e.hms=j.cache(j.sequence([e.H,e.m,e.s],e.timePartDelimiter));e.t=h("shortMeridian",l.meridian);e.tt=h("longMeridian",l.meridian);e.zzz=h("timezone",l.timezone);e.timeSuffix=j.each(j.ignore(e.whiteSpace),j.set([e.tt,e.zzz]));e.time=j.each(j.optional(j.ignore(j.stoken("T"))),e.hms,e.timeSuffix)},dateFormats:function(){var g=function(){return j.set(arguments,e.datePartDelimiter)};var m,q=["d","dd","M","MM","y","yy","yyy","yyyy"],o=[/^([0-2]\d|3[0-1]|\d)/,/^([0-2]\d|3[0-1])/,/^(1[0-2]|0\d|\d)/,/^(1[0-2]|0\d)/,/^(\d+)/,/^(\d\d)/,/^(\d\d?\d?\d?)/,/^(\d\d\d\d)/],p=[l.day,l.day,l.month,l.month,l.year,l.year,l.year,l.year],n=["ordinalSuffix","ordinalSuffix"];for(m=0;m<q.length;m++){b(q[m],o[m],p[m],n[m])}e.MMM=e.MMMM=j.cache(j.process(e.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),l.month));e.ddd=e.dddd=j.cache(j.process(e.ctoken("sun mon tue wed thu fri sat"),function(u){return function(){this.weekday=u}}));e.day=c(e.d,e.dd);e.month=c(e.M,e.MMM);e.year=c(e.yyyy,e.yy);e.mdy=g(e.ddd,e.month,e.day,e.year);e.ymd=g(e.ddd,e.year,e.month,e.day);e.dmy=g(e.ddd,e.day,e.month,e.year);e.date=function(u){return((e[Date.CultureInfo.dateElementOrder]||e.mdy).call(this,u))}},relative:function(){e.orientation=j.process(e.ctoken("past future"),function(g){return function(){this.orient=g}});e.operator=j.process(e.ctoken("add subtract"),function(g){return function(){this.operator=g}});e.rday=j.process(e.ctoken("yesterday tomorrow today now"),l.rday);e.unit=j.process(e.ctoken("second minute hour day week month year"),function(g){return function(){this.unit=g}})}};e.buildGrammarFormats=function(){a={};i.timeFormats();i.dateFormats();i.relative();e.value=j.process(j.rtoken(/^([-+]?\d+)?(st|nd|rd|th)?/),function(g){return function(){this.value=g.replace(/\D/g,"")}});e.expression=j.set([e.rday,e.operator,e.value,e.unit,e.orientation,e.ddd,e.MMM]);e.format=j.process(j.many(j.any(j.process(j.rtoken(/^(dd?d?d?(?!e)|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(g){if(e[g]){return e[g]}else{throw f.Parsing.Exception(g)}}),j.process(j.rtoken(/^[^dMyhHmstz]+/),function(g){return j.ignore(j.stoken(g))}))),function(g){return j.process(j.each.apply(null,g),l.finishExact)});e._start=j.process(j.set([e.date,e.time,e.expression],e.generalDelimiter,e.whiteSpace),l.finish)};e.buildGrammarFormats();e._formats=e.formats(['"yyyy-MM-ddTHH:mm:ssZ"',"yyyy-MM-ddTHH:mm:ss.sz","yyyy-MM-ddTHH:mm:ssZ","yyyy-MM-ddTHH:mm:ssz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mmZ","yyyy-MM-ddTHH:mmz","yyyy-MM-ddTHH:mm","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","MMddyyyy","ddMMyyyy","Mddyyyy","ddMyyyy","Mdyyyy","dMyyyy","yyyy","Mdyy","dMyy","d"]);e.start=function(g){try{var m=e._formats.call({},g);if(m[1].length===0){return m}}catch(n){}return e._start.call({},g)}}());(function(){var a=Date;var b={removeOrds:function(d){ords=d.match(/\b(\d+)(?:st|nd|rd|th)\b/);d=((ords&&ords.length===2)?d.replace(ords[0],ords[1]):d);return d},grammarParser:function(d){var f=null;try{f=a.Grammar.start.call({},d.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1"))}catch(g){return null}return((f[1].length===0)?f[0]:null)},nativeFallback:function(f){var d;try{d=Date._parse(f);return(d||d===0)?new Date(d):null}catch(g){return null}}};function c(e){var f;if(!e){return null}if(e instanceof Date){return e.clone()}if(e.length>=4&&e.charAt(0)!=="0"&&e.charAt(0)!=="+"&&e.charAt(0)!=="-"){f=a.Parsing.ISO.parse(e)||a.Parsing.Numeric.parse(e)}if(f instanceof Date&&!isNaN(f.getTime())){return f}else{e=a.Parsing.Normalizer.parse(b.removeOrds(e));f=b.grammarParser(e);if(f!==null){return f}else{return b.nativeFallback(e)}}}if(!a._parse){a._parse=a.parse}a.parse=c;Date.getParseFunction=function(e){var d=Date.Grammar.allformats(e);return function(g){var h=null;for(var f=0;f<d.length;f++){try{h=d[f].call({},g)}catch(j){continue}if(h[1].length===0){return h[0]}}return null}};a.parseExact=function(d,e){return a.getParseFunction(e)(d)}}());(function(){var b=Date,a=b.prototype,f=function(h,g){if(!g){g=2}return("000"+h).slice(g*-1)};var e={d:"dd","%d":"dd",D:"ddd","%a":"ddd",j:"dddd",l:"dddd","%A":"dddd",S:"S",F:"MMMM","%B":"MMMM",m:"MM","%m":"MM",M:"MMM","%b":"MMM","%h":"MMM",n:"M",Y:"yyyy","%Y":"yyyy",y:"yy","%y":"yy",g:"h","%I":"h",G:"H",h:"hh",H:"HH","%H":"HH",i:"mm","%M":"mm",s:"ss","%S":"ss","%r":"hh:mm tt","%R":"H:mm","%T":"H:mm:ss","%X":"t","%x":"d","%e":"d","%D":"MM/dd/yy","%n":"\\n","%t":"\\t",e:"z",T:"z","%z":"z","%Z":"z",Z:"ZZ",N:"u",w:"u","%w":"u",W:"W","%V":"W"};var c={substitutes:function(g){return e[g]},interpreted:function(h,g){var l;switch(h){case"%u":return g.getDay()+1;case"z":return g.getOrdinalNumber();case"%j":return f(g.getOrdinalNumber(),3);case"%U":var k=g.clone().set({month:0,day:1}).addDays(-1).moveToDayOfWeek(0),j=g.clone().addDays(1).moveToDayOfWeek(0,-1);return(j<k)?"00":f((j.getOrdinalNumber()-k.getOrdinalNumber())/7+1);case"%W":return f(g.getWeek());case"t":return b.getDaysInMonth(g.getFullYear(),g.getMonth());case"o":case"%G":return g.setWeek(g.getISOWeek()).toString("yyyy");case"%g":return g._format("%G").slice(-2);case"a":case"%p":return t("tt").toLowerCase();case"A":return t("tt").toUpperCase();case"u":return f(g.getMilliseconds(),3);case"I":return(g.isDaylightSavingTime())?1:0;case"O":return g.getUTCOffset();case"P":l=g.getUTCOffset();return l.substring(0,l.length-2)+":"+l.substring(l.length-2);case"B":var i=new Date();return Math.floor(((i.getHours()*3600)+(i.getMinutes()*60)+i.getSeconds()+(i.getTimezoneOffset()+60)*60)/86.4);case"c":return g.toISOString().replace(/\"/g,"");case"U":return b.strtotime("now");case"%c":return t("d")+" "+t("t");case"%C":return Math.floor(g.getFullYear()/100+1)}},shouldOverrideDefaults:function(g){switch(g){case"%e":return true;default:return false}},parse:function(h,i){var g,j=i||new Date();g=c.substitutes(h);if(g){return g}g=c.interpreted(h,j);if(g){return g}else{return h}}};b.normalizeFormat=function(h,g){return h.replace(/(%|\\)?.|%%/g,function(i){return c.parse(i,g)})};b.strftime=function(h,g){var i=Date.parse(g);return i._format(h)};b.strtotime=function(g){var h=b.parse(g);return Math.round(b.UTC(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate(),h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds())/1000)};var d=function(g){return function(i){var h,j=false;if(i.charAt(0)==="\\"||i.substring(0,2)==="%%"){return i.replace("\\","").replace("%%","%")}j=c.shouldOverrideDefaults(i);h=b.normalizeFormat(i,g);if(h){return g.toString(h,j)}}};a._format=function(h){var g=d(this);if(!h){return this._toString()}else{return h.replace(/(%|\\)?.|%%/g,g)}};if(!a.format){a.format=a._format}}());(function(){var b=function(f){return function(){return this[f]}};var e=function(f){return function(g){this[f]=g;return this}};var c=["years","months","days","hours","minutes","seconds","milliseconds"];var a=function(h,f){for(var g=0;g<f.length;g++){var k=f[g],j=k.slice(0,1).toUpperCase()+k.slice(1);h.prototype[k]=0;h.prototype["get"+j]=b(k);h.prototype["set"+j]=e(k)}};var d=function(l,f,i,j,h){if(arguments.length===1&&typeof l==="number"){var g=(l<0)?-1:+1;var k=Math.abs(l);this.setDays(Math.floor(k/86400000)*g);k=k%86400000;this.setHours(Math.floor(k/3600000)*g);k=k%3600000;this.setMinutes(Math.floor(k/60000)*g);k=k%60000;this.setSeconds(Math.floor(k/1000)*g);k=k%1000;this.setMilliseconds(k*g)}else{this.set(l,f,i,j,h)}this.getTotalMilliseconds=function(){return(this.getDays()*86400000)+(this.getHours()*3600000)+(this.getMinutes()*60000)+(this.getSeconds()*1000)};this.compareTo=function(o){var n=new Date(1970,1,1,this.getHours(),this.getMinutes(),this.getSeconds()),m;if(o===null){m=new Date(1970,1,1,0,0,0)}else{m=new Date(1970,1,1,o.getHours(),o.getMinutes(),o.getSeconds())}return(n<m)?-1:(n>m)?1:0};this.equals=function(m){return(this.compareTo(m)===0)};this.add=function(m){return(m===null)?this:this.addSeconds(m.getTotalMilliseconds()/1000)};this.subtract=function(m){return(m===null)?this:this.addSeconds(-m.getTotalMilliseconds()/1000)};this.addDays=function(m){return new d(this.getTotalMilliseconds()+(m*86400000))};this.addHours=function(m){return new d(this.getTotalMilliseconds()+(m*3600000))};this.addMinutes=function(m){return new d(this.getTotalMilliseconds()+(m*60000))};this.addSeconds=function(m){return new d(this.getTotalMilliseconds()+(m*1000))};this.addMilliseconds=function(m){return new d(this.getTotalMilliseconds()+m)};this.get12HourHour=function(){return(this.getHours()>12)?this.getHours()-12:(this.getHours()===0)?12:this.getHours()};this.getDesignator=function(){return(this.getHours()<12)?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator};this.toString=function(n){this._toString=function(){if(this.getDays()!==null&&this.getDays()>0){return this.getDays()+"."+this.getHours()+":"+this.p(this.getMinutes())+":"+this.p(this.getSeconds())}else{return this.getHours()+":"+this.p(this.getMinutes())+":"+this.p(this.getSeconds())}};this.p=function(o){return(o.toString().length<2)?"0"+o:o};var m=this;return n?n.replace(/dd?|HH?|hh?|mm?|ss?|tt?/g,function(o){switch(o){case"d":return m.getDays();case"dd":return m.p(m.getDays());case"H":return m.getHours();case"HH":return m.p(m.getHours());case"h":return m.get12HourHour();case"hh":return m.p(m.get12HourHour());case"m":return m.getMinutes();case"mm":return m.p(m.getMinutes());case"s":return m.getSeconds();case"ss":return m.p(m.getSeconds());case"t":return((m.getHours()<12)?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator).substring(0,1);case"tt":return(m.getHours()<12)?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator}}):this._toString()};return this};a(d,c.slice(2));d.prototype.set=function(j,f,h,i,g){this.setDays(j||this.getDays());this.setHours(f||this.getHours());this.setMinutes(h||this.getMinutes());this.setSeconds(i||this.getSeconds());this.setMilliseconds(g||this.getMilliseconds())};Date.prototype.getTimeOfDay=function(){return new d(0,this.getHours(),this.getMinutes(),this.getSeconds(),this.getMilliseconds())};Date.TimeSpan=d;if(typeof window!=="undefined"){window.TimeSpan=d}}());(function(){var c=["years","months","days","hours","minutes","seconds","milliseconds"];var b=function(h){return function(){return this[h]}};var f=function(h){return function(i){this[h]=i;return this}};var a=function(k,h){for(var j=0;j<h.length;j++){var m=h[j],l=m.slice(0,1).toUpperCase()+m.slice(1);k.prototype[m]=0;k.prototype["get"+l]=b(m);k.prototype["set"+l]=f(m)}};var e=function(h,k,j,i){function l(){k.addMonths(-h);i.months++;if(i.months===12){i.years++;i.months=0}}if(h===+1){while(k>j){l()}}else{while(k<j){l()}}i.months--;i.months*=h;i.years*=h};var g=function(i,h,j){var k=(false===(h.isDaylightSavingTime()===j.isDaylightSavingTime()));if(k&&i===1){h.addHours(-1)}else{if(k){h.addHours(1)}}};var d=function(n,h,u,p,k,s,j){if(arguments.length===7){this.set(n,h,u,p,k,s,j)}else{if(arguments.length===2&&arguments[0] instanceof Date&&arguments[1] instanceof Date){var i=arguments[0].clone();var m=arguments[1].clone();var l=(i>m)?+1:-1;this.dates={start:arguments[0].clone(),end:arguments[1].clone()};e(l,i,m,this);g(l,i,m);var q=m-i;if(q!==0){var o=new TimeSpan(q);this.set(this.years,this.months,o.getDays(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds())}}}return this};a(d,c);d.prototype.set=function(l,h,n,i,k,m,j){this.setYears(l||this.getYears());this.setMonths(h||this.getMonths());this.setDays(n||this.getDays());this.setHours(i||this.getHours());this.setMinutes(k||this.getMinutes());this.setSeconds(m||this.getSeconds());this.setMilliseconds(j||this.getMilliseconds())};Date.TimePeriod=d;if(typeof window!=="undefined"){window.TimePeriod=d}}());