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

System.register(["bootstrap","vendor/filesaver","lodash-src","angular-strap","angular-route","angular-sanitize","angular-dragdrop","angular-bindonce","angular-ui","jquery","angular","app/core/config","lodash","./core/core"],function(a){var b,c,d,e,f,g;return{setters:[function(a){},function(a){},function(a){},function(a){},function(a){},function(a){},function(a){},function(a){},function(a){},function(a){b=a},function(a){c=a},function(a){d=a},function(a){e=a},function(a){f=a}],execute:function(){g=function(){function a(){this.preBootModules=[],this.registerFunctions={},this.ngModuleDependencies=[]}return a.prototype.useModule=function(a){return this.preBootModules?this.preBootModules.push(a):e["default"].extend(a,this.registerFunctions),this.ngModuleDependencies.push(a.name),a},a.prototype.init=function(){var a=this,g=c["default"].module("grafana",[]);g.constant("grafanaVersion","@grafanaVersion@"),g.config(["$locationProvider","$controllerProvider","$compileProvider","$filterProvider","$httpProvider","$provide",function(b,c,e,f,g,h){"development"!==d["default"].buildInfo.env&&e.debugInfoEnabled(!1),g.useApplyAsync(!0),a.registerFunctions.controller=c.register,a.registerFunctions.directive=e.directive,a.registerFunctions.factory=h.factory,a.registerFunctions.service=h.service,a.registerFunctions.filter=f.register,h.decorator("$http",["$delegate","$templateCache",function(a,b){var c=a.get;return a.get=function(a,d){return a.match(/\.html$/)&&(b.get(a)||(a+="?v="+(new Date).getTime())),c(a,d)},a}])}]),this.ngModuleDependencies=["grafana.core","ngRoute","ngSanitize","$strap.directives","ang-drag-drop","grafana","pasvaz.bindonce","ui.bootstrap","ui.bootstrap.tpls"];var h=["controllers","directives","factories","services","filters","routes"];e["default"].each(h,function(b){var d="grafana."+b;a.useModule(c["default"].module(d,[]))}),this.useModule(f.coreModule);var i=[System["import"]("app/features/all")];Promise.all(i).then(function(){b["default"].fn.tooltip.defaults.animation=!1,c["default"].bootstrap(document,a.ngModuleDependencies).invoke(function(){e["default"].each(a.preBootModules,function(b){e["default"].extend(b,a.registerFunctions)}),a.preBootModules=null})})["catch"](function(a){console.log("Application boot failed:",a)})},a}(),a("GrafanaApp",g),a("default",new g)}}});