//>>built
define("dojox/date/relative",["dojox/main","dojo/_base/lang","dojo/date/locale","dojo/i18n"],function(f,m,k,n){function l(a){a=new Date(a);a.setHours(0,0,0,0);return a}f=m.getObject("date.relative",!0,f);var c=dojo.delegate,p=k._getGregorianBundle,d=k.format;f.format=function(a,b){b=b||{};var g=l(b.relativeDate||new Date),h=g.getTime()-l(a).getTime(),e={locale:b.locale};return 0===h?d(a,c(e,{selector:"time"})):5184E5>=h&&0<h&&!1!==b.weekCheck?d(a,c(e,{selector:"date",datePattern:"EEE"}))+" "+d(a,
c(e,{selector:"time",formatLength:"short"})):a.getFullYear()==g.getFullYear()?(g=p(n.normalizeLocale(b.locale)),d(a,c(e,{selector:"date",datePattern:g["dateFormatItem-MMMd"]}))):d(a,c(e,{selector:"date",formatLength:"medium",locale:b.locale}))};return f});