/*! grafana - v3.1.0 - 2016-07-18
 * Copyright (c) 2016 Torkel Ödegaard; Licensed Apache-2.0 */

System.register(["lodash","angular","moment","../core_module"],function(a){var b,c,d,e;return{setters:[function(a){b=a},function(a){c=a},function(a){d=a},function(a){e=a}],execute:function(){e["default"].filter("stringSort",function(){return function(a){return a.sort()}}),e["default"].filter("slice",function(){return function(a,c,d){if(!b["default"].isUndefined(a))return a.slice(c,d)}}),e["default"].filter("stringify",function(){return function(a){return b["default"].isObject(a)&&!b["default"].isArray(a)?c["default"].toJson(a):b["default"].isNull(a)?null:a.toString()}}),e["default"].filter("moment",function(){return function(a,b){switch(b){case"ago":return d["default"](a).fromNow()}return d["default"](a).fromNow()}}),e["default"].filter("noXml",function(){var a=function(a){return b["default"].isString(a)?a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;"):a};return function(c){return b["default"].isArray(c)?b["default"].map(c,a):a(c)}}),e["default"].filter("interpolateTemplateVars",["templateSrv",function(a){var b=function(b,c){var d;return d=c.ctrl&&c.ctrl.panel?c.ctrl.panel.scopedVars:c.row.scopedVars,a.replaceWithText(b,d)};return b.$stateful=!0,b}]),a("default",{})}}});