!function(u){function e(e){for(var t,n,r=e[0],o=e[1],_=0,i=[];_{if(i){const r=new e.DougsClient,o=Date.now();let n=-1;_.height<1e3&&(u.clientHeight===_.height&&u.clientWidth===_.width||(_.height=u.clientHeight,_.clientHeight=u.clientHeight,_.style.height=u.clientHeight,_.width=u.clientWidth,_.clientWidth=u.clientWidth,_.style.width=u.clientWidth,i.viewport(0,0,u.clientWidth,u.clientHeight))),function e(){window.requestAnimationFrame(e);var t=Date.now();t>=n+1e3/30&&(t=(n=t)-o,r.update(t,u.clientHeight,u.clientWidth),r.render())}()}else alert("Failed to initialize WebGL")})}]);