YUI.add("datatable-formatters",function(u,a){var l=u.Lang,e=l.isValue,r=u.Escape.html,t=u.ClassNameManager.getClassName,o=function(a){return t("datatable",a)},c=function(a,t){return e(a)?r(a.toString()):t||""},n={button:function(a){var t=o("button"),e="<button>"+(a.buttonLabel||"Click")+"</button>";return a.allowHTML=!0,function(a){return a.className=t,e}},"boolean":function(a){var e=a.booleanLabels||this.get("booleanLabels")||{"true":"true","false":"false"};return function(a){var t=a.value;return t||!1===t?(a.className=o(t=t?"true":"false"),e[t]):t}},currency:function(a){var e=o("currency"),r=a.currencyFormat||this.get("currencyFormat"),n=u.Number.format;return function(a){a.className=e;var t=parseFloat(a.value);return t||0===t?n(t,r):a.value}},_date:function(t){var e=o("date"),r=u.Date.format;return t={format:t},function(a){return a.className=e,r(a.value,t)}},date:function(a){return n._date(a.dateFormat||this.get("dateFormat"))},localDate:function(){return n._date("%x")},localTime:function(){return n._date("%X")},localDateTime:function(){return n._date("%c")},email:function(a){var r=o("email"),n=a.linkFrom,u=a.emptyCellValue,l=(this.getColumn(n)||{}).emptyCellValue;return a.allowHTML=!0,function(a){var t=c(a.value,u),e=n?c(a.data[n],l):t;return a.className=r,e?'<a href="mailto:'+e+'">'+t+"</a>":t}},link:function(a){var r=o("link"),n=a.linkFrom,u=a.emptyCellValue,l=(this.getColumn(n)||{}).emptyCellValue;return a.allowHTML=!0,function(a){var t=c(a.value,u),e=n?c(a.data[n],l):t;return a.className=r,e?'<a href="'+e+'">'+t+"</a>":t}},number:function(a){var e=o("number"),r=a.numberFormat||this.get("numberFormat"),n=u.Number.format;return function(a){a.className=e;var t=parseFloat(a.value);return t||0===t?n(t,r):a.value}},lookup:function(a){var t,e,r,n=o("lookup"),u=a.lookupTable||{};if(l.isArray(u))for(t=u,u={},e=0,r=t.length;e<r;++e)u[t[e].value]=t[e].text;return function(a){return a.className=n,u[a.value]}}};u.mix(u.DataTable.BodyView.Formatters,n)},"patched-v3.18.4",{requires:["datatable-body","datatype-number-format","datatype-date-format","escape"]});