';show("dash")}
function welcome(){var n=esc(cur.name.split(" ")[0]);
D.innerHTML='
✓
Hi '+n+',
Welcome to Talkmii
You’re verified! Now complete your profile by adding a profile picture and a cover image.
';
document.getElementById("wlGo").onclick=function(){fin(true)};document.getElementById("wlLater").onclick=function(){fin(false)};show("dash")}
function fin(go){api("welcomed");cur.welcomed=true;show("app");mark();if(go){try{render();openSetup(1)}catch(e){}}}
var UP_TOT=1,UP_DN=0;
var VS={id:null,idN:0,idP:[],v:null,vN:0,vP:[]};
function newSid(){return Math.random().toString(36).slice(2,12)+Date.now().toString(36)}
function sendPart(kind,sid,i,blob){function go(t){return fetch("index.php?a=vchunk&sid="+sid+"&k="+kind+"&i="+i+"&n=1",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/octet-stream"},body:blob}).then(function(r){return r.text().then(function(t2){var j;try{j=JSON.parse(t2)}catch(e){throw new Error("The server refused the upload (error "+r.status+").")}if(j.err)throw new Error(j.err)})}).catch(function(e){if(t<2)return new Promise(function(ok){setTimeout(ok,400)}).then(function(){return go(t+1)});throw e})}return go(0)}
addEventListener("message",function(e){var d=e.data;if(!gF||e.source!==gF.contentWindow||!d)return;
if(d.tm==="vlogout"){out();return}
if(d.tm==="idfile"&&cur&&d.blob){VS.id=newSid();VS.idP=[];var CH=2097152,B=d.blob,k=Math.max(1,Math.ceil(B.size/CH));VS.idN=k;for(var q=0;q