");var s=document.getElementById("progress-error");s&&(s.style.display="block");var n=this._createErrorMessage(r,e),i=document.getElementById("progress-error-detail");i&&(i.innerHTML=this._escapeHtml(n)+"
"+o)},AppLoader.prototype.task=function(r,e,t,o){var s=!1!==o;this.loadingProgressMap[r]="not started",this.dependencySpec[r]={dependencies:e,loader:t,mandatory:s}},AppLoader.prototype.jsFileTask=function(r,e,t,o){var s={},n={},i=!1,a=function(){if(!i&&4===p.readyState)if(i=!0,200===p.status&&p.responseText)n.successCb?n.successCb(p.responseText):s.source=p.responseText;else{var r="could not request "+t+" got "+p.status;n.errorCb?n.errorCb(r):s.error=r}},p=new XMLHttpRequest;p.open("GET",t),p.onload=a,p.onreadystatechange=a,p.onerror=function(r){n.errorCb?n.errorCb(r):s.error=r},p.send(),this.task(r,e,(function(r,e){var t=function(t){try{var o=document.createElement("script");o.appendChild(document.createTextNode(t)),document.body.appendChild(o),r()}catch(r){e(r)}};void 0!==s.error?e(s.error):void 0!==s.source?t(s.source):(n.errorCb=e,n.successCb=t)}),o)},AppLoader.prototype.start=function(){this._startTasksWithAllFulfilledDeps()}