var Camea;(Camea||(Camea={})).secToMMSS=function(t){var e,n=Math.floor(t/3600),o=Math.floor((t-3600*n)/60),t=t-3600*n-60*o,n="";return(e=o<10?"0":e)+o+":"+(n=t<10?"0":n)+t},function(t){function l(){return!(!navigator.userAgent.match(/MSIE/)&&!navigator.userAgent.match(/Trident/))}function a(t,e){r("text/csv","utf-8",""+t.replace(/[.]/g,","),e,"csv")}function r(t,e,n,o,r){var s,i,a,c;if(e=null!==(e=void 0===e?null:e)?";charset="+e:"",(l()||navigator.userAgent.match(/Edge/))&&window.navigator.msSaveOrOpenBlob){if("image/png"===t){for(s=atob(n.replace("data:image/png;base64,","")),i=new Array(s.length),a=0;a  ',n.innerHTML+=t,document.body.appendChild(e),document.body.appendChild(n),location.reload()},t.saveGraphToPNG=function(t,e,n){var o=document.createElement("img");Dygraph.Export.asPNG(t,o,null,n),console.log(o.textContent),r("image/png",null,o.src,e,"png")},t.saveGraphDataToCSV=function(t,e){a(t.replace(/,/g,";"),e)},t.saveTableDataToCSV=function(t,e){for(var n,o,r="",s=document.getElementsByClassName(t)[0],i=0;i