var UR=UR||{};UR.events={publish:function(a,d){if(a.KeepAlive){console.debug("Received KeepAlive from server")}else{var c=a.Layout;var b=c.Controls;_.forEach(b,function(f){if(a.ID!==d.ID){console.debug("Event from unloaded remote "+a.ID+", unloading remote...");UR.client.instance.stopRemote(d);return}if(f.Text){UR.render.setText(f);UR.render.setSliderText(f)}if(f.ProgressMax){UR.render.setSliderMaxProgress(f)}if(f.Progress){var e=model.current_sync_queue[f.ID];if(e!==undefined&&e!==f.Progress){return}if(e!==undefined&&e===f.Progress){model.current_sync_queue[f.ID]=undefined}UR.render.setSliderProgress(f)}if(f.Icon){UR.render.setIcon(f)}if(f.Image){UR.render.setImage(f)}if(f.Checked){UR.render.setChecked(f)}})}}};