(function(){window.spLoader={components:[],loadingComponents:0,componentsLoaded:0,componentsFailed:0,setBodyAsLoaded:function(){console.log(spLoader.componentsLoaded+'/'+(spLoader.componentsLoaded+spLoader.componentsFailed)+' Components loaded, '+spLoader.componentsFailed+'/'+(spLoader.componentsLoaded+spLoader.componentsFailed)+' components failed')},addLoadingComponent:function(){spLoader.loadingComponents+=1},componentLoaded:function(){spLoader.loadingComponents-=1;spLoader.componentsLoaded+=1;if(spLoader.loadingComponents===0){spLoader.setBodyAsLoaded()}},componentFailed:function(){spLoader.loadingComponents-=1;spLoader.componentsFailed+=1;if(spLoader.loadingComponents===0){spLoader.setBodyAsLoaded()}},DataService:{getAllItems:function(webUrl,listTitle,fieldInternalNamesCSV,filterBooleanFieldInternalName,rowLimit,orderFieldInternalName,order,successCallback,failCallback){var _context;if(webUrl){_context=new SP.ClientContext(webUrl)}else{_context=new SP.ClientContext.get_current()}var list=_context.get_web().get_lists().getByTitle(listTitle);var queryFilter=filterBooleanFieldInternalName?"1":"";var orderByFilter="";var rowLimitFilter=""+rowLimit+"";var caml=""+queryFilter+orderByFilter+""+rowLimitFilter+"";var query=new SP.CamlQuery();query.set_viewXml(caml);var listItems=list.getItems(query);var results=_context.loadQuery(listItems,'Include('+fieldInternalNamesCSV+')');_context.executeQueryAsync(function(){successCallback(results)},function(sender,args){failCallback(sender,args)});return caml}},initSPLoader:function(callback){String.prototype.replaceAll=function(search,replacement){var target=this;search=search.replace(/[.*+?^${}()|[\]\\]/g,'\\$&');return target.replace(new RegExp(search,'g'),replacement)};String.prototype.toStringValue=function(){if(this.indexOf("0){var repeatElementTemplate=info.repeatElement.outerHTML;for(i=0;i