/* Wheelie Home: cinematic intro, sign-in, iPhone-style home screen */ (function(){ 'use strict'; if(window.__wsb)return;window.__wsb=1; var SB='https://yzzxvjrzniuhxebqqrsy.supabase.co',KEY='sb_publishable_DKyw5S1dkCuu_g98yfx1xA_FgeTNtyJ'; var P='#FF6FB5',B='#5BC0F8'; function ls(k,v){try{if(v===undefined)return localStorage.getItem(k);if(v===null)localStorage.removeItem(k);else localStorage.setItem(k,v)}catch(e){return null}} function ss(k,v){try{if(v===undefined)return sessionStorage.getItem(k);sessionStorage.setItem(k,v)}catch(e){return null}} var reduce=false;try{reduce=matchMedia('(prefers-reduced-motion: reduce)').matches}catch(e){} var $=function(s,r){return (r||document).querySelector(s)}; /* ---------- icons ---------- */ var G={ talk:'', mic:'', read:'', listen:'', trips:'', fly:'', create:'', todo:'', chats:'', tour:'', memory:'', studio:'', account:'', help:'' }; function svg(n,w){return ''} /* ---------- style ---------- */ var css=document.createElement('style');css.id='wsbCss'; css.textContent= /* hide the old Home while the springboard is up */ 'html body.whon.wsb #whome{visibility:hidden!important}html body.whon.wsb #wnvBox,html body.whon.wsb .wtg,html body.whon.wsb #wnvBox *{display:none!important}'+ '#wSpring{position:fixed;inset:0;z-index:2147483620;display:none;color:#fff;font-family:-apple-system,"SF Pro Text",system-ui,sans-serif;overflow:hidden;background:#000;-webkit-user-select:none;user-select:none}'+ 'html body.whon.wsb #wSpring{display:block}'+ '#wSpring .wall{position:absolute;inset:-20%;pointer-events:none}'+ '#wSpring .wall i{position:absolute;border-radius:50%;filter:blur(60px);opacity:.55;animation:wsDrift 18s ease-in-out infinite alternate}'+ '#wSpring .wall .a{width:70vw;height:70vw;left:4%;top:8%;background:'+P+';opacity:.32}'+ '#wSpring .wall .b{width:80vw;height:80vw;right:2%;bottom:6%;background:'+B+';opacity:.26;animation-delay:-9s}'+ '@keyframes wsDrift{to{transform:translate(8%,6%) scale(1.12)}}'+ '#wSpring .scr{position:absolute;inset:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:calc(env(safe-area-inset-top,0px) + 22px) 20px calc(env(safe-area-inset-bottom,0px) + 150px)}'+ '#wSpring .hd{display:flex;align-items:flex-end;justify-content:space-between;margin:4px 4px 18px}'+ '#wSpring .hd b{display:block;font:700 34px/1.05 -apple-system,"SF Pro Display",system-ui;letter-spacing:-.8px}'+ '#wSpring .hd small{display:block;font:600 15px -apple-system,system-ui;color:rgba(255,255,255,.62);margin-top:6px;letter-spacing:.2px}'+ /* widgets */ '#wSpring .wg{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:26px}'+ '#wSpring .wd{position:relative;aspect-ratio:1;max-width:100%;border-radius:26px;padding:16px;box-sizing:border-box;border:1px solid rgba(255,255,255,.14);background:rgba(30,30,36,.55);-webkit-backdrop-filter:blur(30px) saturate(1.6);backdrop-filter:blur(30px) saturate(1.6);overflow:hidden;text-align:left;color:#fff;font:inherit;display:flex;flex-direction:column;justify-content:space-between}'+ '#wSpring .wd .wsFace{width:66px;height:66px;border-radius:50%;background:url(wheelie.jpg) center/cover;box-shadow:0 0 0 3px #000,0 0 0 5.5px '+P+',0 0 26px rgba(255,111,181,.55);animation:wsBreath 3.6s ease-in-out infinite}'+ '@keyframes wsBreath{50%{box-shadow:0 0 0 3px #000,0 0 0 5.5px '+B+',0 0 30px rgba(91,192,248,.6)}}'+ '#wSpring .wd b{font:700 19px/1.15 -apple-system,system-ui;letter-spacing:-.3px}'+ '#wSpring .wd small{display:flex;align-items:center;gap:6px;font:600 14px -apple-system,system-ui;color:rgba(255,255,255,.7);margin-top:3px}'+ '#wSpring .wd .eq{display:inline-flex;gap:2.5px;align-items:center;height:14px}#wSpring .wd .eq s{width:3px;border-radius:2px;background:'+P+';height:40%;animation:wsEq 1s ease-in-out infinite}'+ '#wSpring .wd .eq s:nth-child(2){animation-delay:.15s;background:'+B+'}#wSpring .wd .eq s:nth-child(3){animation-delay:.3s}#wSpring .wd .eq s:nth-child(4){animation-delay:.45s;background:'+B+'}'+ '@keyframes wsEq{50%{height:100%}}'+ '#wSpring .day{font:700 15px -apple-system,system-ui;color:'+P+';letter-spacing:.6px;text-transform:uppercase}'+ '#wSpring .num{font:300 64px/1 -apple-system,"SF Pro Display",system-ui;letter-spacing:-2px;margin-top:2px}'+ '#wSpring .tm{font:600 15px -apple-system,system-ui;color:rgba(255,255,255,.72)}'+ /* app grid */ '#wSpring .grid{display:grid;grid-template-columns:repeat(4,1fr);row-gap:22px;column-gap:8px;justify-items:center}'+ '#wSpring .ap{border:0;background:none;color:#fff;padding:0;display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;font:inherit;-webkit-tap-highlight-color:transparent}'+ '#wSpring .ic{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--c);background:radial-gradient(circle at 32% 24%,rgba(255,255,255,.2),rgba(22,22,28,.92) 62%);box-shadow:inset 0 0 0 2px var(--c),0 8px 22px rgba(0,0,0,.55),0 0 22px color-mix(in srgb,var(--c) 38%,transparent);transition:transform .35s cubic-bezier(.2,1.5,.35,1)}'+ '#wSpring .ic svg{filter:drop-shadow(0 0 6px color-mix(in srgb,var(--c) 75%,transparent))}'+ '#wSpring .ap:active .ic,#wSpring .dk button:active .ic{transform:scale(.88);transition-duration:.08s}'+ '#wSpring .ap span{font:600 12.5px -apple-system,system-ui;letter-spacing:.1px;text-shadow:0 1px 4px rgba(0,0,0,.8);max-width:84px;text-align:center;line-height:1.15}'+ '#wSpring .wd:active{transform:scale(.96)}#wSpring .wd{transition:transform .35s cubic-bezier(.2,1.5,.35,1)}'+ /* ask pill */ '#wSpring .ask{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom,0px) + 122px);height:36px;padding:0 16px;border-radius:999px;border:0;display:flex;align-items:center;gap:7px;color:#fff;font:600 14px -apple-system,system-ui;background:rgba(60,60,68,.55);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}'+ /* dock */ '#wSpring .dk{position:absolute;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 12px);height:96px;border-radius:34px;display:flex;align-items:center;justify-content:space-around;padding:0 6px;background:rgba(48,48,56,.48);-webkit-backdrop-filter:blur(34px) saturate(1.7);backdrop-filter:blur(34px) saturate(1.7);border:1px solid rgba(255,255,255,.12)}'+ '#wSpring .dk button{border:0;background:none;padding:0;color:#fff;display:flex;flex-direction:column;align-items:center;gap:5px;font:600 11.5px -apple-system,system-ui}'+ '#wSpring .dk .ic{width:58px;height:58px}'+ '#wSpring .dk .orb .ic{width:72px;height:72px;color:#010101;background:'+P+';box-shadow:0 0 0 3px #000,0 0 0 5.5px #fff,0 0 30px rgba(255,111,181,.7);margin-top:-10px}'+ '#wSpring .dk .orb .ic svg{filter:none}'+ '#wSpring .dk .orb .ic::after{content:"";position:absolute;width:72px;height:72px;border-radius:50%;box-shadow:0 0 0 0 rgba(255,111,181,.6);animation:wsPing 2.4s ease-out infinite}'+ '@keyframes wsPing{to{box-shadow:0 0 0 22px rgba(255,111,181,0)}}'+ /* entrance */ '#wSpring.in .hd,#wSpring.in .wd,#wSpring.in .ap,#wSpring.in .dk,#wSpring.in .ask{animation:wsIn .7s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--i,0)*28ms)}'+ '@keyframes wsIn{from{opacity:0;transform:scale(1.35) translateY(10px)}to{opacity:1;transform:none}}'+ '#wSpring.in .ask{animation-name:wsInA}@keyframes wsInA{from{opacity:0;transform:translateX(-50%) scale(1.3)}to{opacity:1;transform:translateX(-50%)}}'+ /* app-open zoom */ '.wsZoom{position:fixed;z-index:2147483647;border-radius:50%;pointer-events:none;background:#000;box-shadow:inset 0 0 0 3px var(--c),0 0 60px color-mix(in srgb,var(--c) 60%,transparent);display:flex;align-items:center;justify-content:center;color:var(--c);transition:all .42s cubic-bezier(.3,.9,.2,1)}'+ '.wsZoom.full{left:0!important;top:0!important;width:100vw!important;height:100vh!important;border-radius:0;box-shadow:inset 0 0 0 0 var(--c)}'+ '.wsZoom svg{transition:transform .42s cubic-bezier(.3,.9,.2,1),opacity .4s}.wsZoom.full svg{transform:scale(3);opacity:.9}.wsZoom.out{opacity:0;transition:opacity .3s}'+ /* sheets: intro + sign-in + help */ '.wsLayer{position:fixed;inset:0;z-index:2147483647;background:#000;color:#fff;font-family:-apple-system,"SF Pro Text",system-ui,sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;text-align:center}'+ '.wsLayer.bye{opacity:0;transform:scale(1.06);transition:opacity .6s ease,transform .6s ease}'+ /* intro */ '#wIntro .ln{position:absolute;top:50%;height:2px;width:120vw;border-radius:2px;margin-top:-90px}'+ '#wIntro .ln.p{background:'+P+';box-shadow:0 0 18px '+P+',0 0 40px '+P+';left:-130vw;animation:wiLp 1.1s cubic-bezier(.6,0,.2,1) .15s forwards}'+ '#wIntro .ln.b{background:'+B+';box-shadow:0 0 18px '+B+',0 0 40px '+B+';right:-130vw;margin-top:-86px;animation:wiLb 1.1s cubic-bezier(.6,0,.2,1) .15s forwards}'+ '@keyframes wiLp{60%{opacity:1}to{left:100vw;opacity:0}}@keyframes wiLb{60%{opacity:1}to{right:100vw;opacity:0}}'+ '#wIntro .fl{position:absolute;top:50%;left:50%;width:60px;height:60px;margin:-120px 0 0 -30px;border-radius:50%;background:radial-gradient(closest-side,#fff,rgba(255,255,255,.5) 40%,rgba(255,255,255,0));opacity:0;animation:wiFl .7s ease-out .72s forwards}'+ '@keyframes wiFl{30%{opacity:1;transform:scale(1.6)}to{opacity:0;transform:scale(9)}}'+ '#wIntro .ring{width:168px;height:168px;border-radius:50%;padding:6px;background:conic-gradient('+P+' 0 50%,'+B+' 50% 100%);opacity:0;transform:scale(.4) rotate(-90deg);animation:wiRing 1.1s cubic-bezier(.2,1.3,.3,1) .85s forwards;box-shadow:0 0 70px rgba(255,111,181,.45),0 0 120px rgba(91,192,248,.3)}'+ '#wIntro .ring i{display:block;width:100%;height:100%;border-radius:50%;border:5px solid #000;box-sizing:border-box;background:url(wheelie.jpg) center/cover}'+ '@keyframes wiRing{to{opacity:1;transform:none}}'+ '#wIntro h1{margin:30px 0 0;font:800 56px/1 -apple-system,"SF Pro Display",system-ui;letter-spacing:-2px;display:flex;justify-content:center}'+ '#wIntro h1 span{display:inline-block;opacity:0;transform:translateY(40px);filter:blur(8px);animation:wiCh .8s cubic-bezier(.16,1,.3,1) forwards}'+ '@keyframes wiCh{to{opacity:1;transform:none;filter:none}}'+ '#wIntro p{margin:14px 0 0;font:500 19px -apple-system,system-ui;color:rgba(255,255,255,.72);opacity:0;animation:wiCh .9s ease 2.05s forwards;transform:translateY(12px)}'+ '#wIntro .sk{position:absolute;bottom:calc(env(safe-area-inset-bottom,0px) + 26px);font:600 14px -apple-system,system-ui;color:rgba(255,255,255,.45);opacity:0;animation:wiCh .6s ease 1.4s forwards}'+ /* sign-in */ '#wSign{justify-content:flex-start;padding:calc(env(safe-area-inset-top,0px) + 12vh) 24px calc(env(safe-area-inset-bottom,0px) + 26px);box-sizing:border-box;animation:wsFade .6s ease both}'+ '@keyframes wsFade{from{opacity:0}}'+ '#wSign .wall{position:absolute;inset:-20%;pointer-events:none}#wSign .wall i{position:absolute;border-radius:50%;filter:blur(70px)}'+ '#wSign .wall .a{width:80vw;height:80vw;left:-10%;top:-6%;background:'+P+';opacity:.28}#wSign .wall .b{width:80vw;height:80vw;right:-14%;bottom:-4%;background:'+B+';opacity:.22}'+ '#wSign .wsAv{position:relative;width:118px;height:118px;border-radius:50%;padding:5px;background:conic-gradient('+P+' 0 50%,'+B+' 50% 100%);box-shadow:0 0 50px rgba(255,111,181,.4);animation:wiRing .9s cubic-bezier(.2,1.3,.3,1) both}'+ '#wSign .wsAv i{display:block;width:100%;height:100%;border-radius:50%;border:4px solid #000;box-sizing:border-box;background:url(wheelie.jpg) center/cover}'+ '#wSign h2{position:relative;margin:26px 0 8px;font:800 34px/1.1 -apple-system,"SF Pro Display",system-ui;letter-spacing:-1px;animation:wiCh .8s cubic-bezier(.16,1,.3,1) .15s both}'+ '#wSign .sub{position:relative;margin:0 0 auto;max-width:320px;font:500 17px/1.4 -apple-system,system-ui;color:rgba(255,255,255,.7);animation:wiCh .8s ease .3s both}'+ '#wSign .wsBt{position:relative;width:100%;max-width:380px;display:flex;flex-direction:column;gap:12px;margin-top:28px;animation:wiCh .8s cubic-bezier(.16,1,.3,1) .45s both}'+ '#wSign .sb{height:58px;border-radius:16px;border:0;display:flex;align-items:center;justify-content:center;gap:10px;font:600 19px -apple-system,system-ui;letter-spacing:-.2px;transition:transform .3s cubic-bezier(.2,1.5,.35,1)}'+ '#wSign .sb:active{transform:scale(.96)}'+ '#wSign .sb.wsA{background:#fefefe!important;color:#010101!important;border:0!important}#wSign .sb.wsG{background:#1c1c22!important;color:#fff!important;border:1px solid rgba(255,255,255,.22)!important}#wSign button:focus{outline:none}#wSign button:focus-visible{outline:3px solid '+P+';outline-offset:3px}'+ '#wSign .nn{border:0;background:none;color:rgba(255,255,255,.7);font:600 17px -apple-system,system-ui;height:48px;margin-top:2px}'+ '#wSign .wsNote{min-height:22px;font:500 15px/1.35 -apple-system,system-ui;color:'+B+';margin-top:4px}'+ '#wSign .fine{font:500 12.5px/1.4 -apple-system,system-ui;color:rgba(255,255,255,.4);margin-top:8px}'+ /* help sheet */ '#wHelp{background:rgba(0,0,0,.6);justify-content:flex-end;animation:wsFade .3s ease both}'+ '#wHelp .bx{width:100%;box-sizing:border-box;background:#1a1a20;border-radius:28px 28px 0 0;padding:22px 20px calc(env(safe-area-inset-bottom,0px) + 22px);display:flex;flex-direction:column;gap:12px;animation:wsUp .45s cubic-bezier(.16,1,.3,1) both;text-align:left}'+ '@keyframes wsUp{from{transform:translateY(100%)}}'+ '#wHelp h3{margin:0 0 4px;font:800 26px -apple-system,system-ui}'+ '#wHelp a,#wHelp button{height:60px;border-radius:18px;border:0;display:flex;align-items:center;gap:12px;padding:0 18px;font:700 18px -apple-system,system-ui;text-decoration:none;color:#fff;background:#2a2a32}'+ '#wHelp .r{background:#d42a3a}'+ (reduce?'#wSpring *,#wIntro *,#wSign *,.wsZoom{animation:none!important;transition:none!important}#wIntro .ring,#wIntro h1 span,#wIntro p{opacity:1!important;transform:none!important;filter:none!important}':''); (document.head||document.documentElement).appendChild(css); /* ---------- auth ---------- */ function auth(){try{return JSON.parse(ls('wAuth')||'null')}catch(e){return null}} function firstName(){var a=auth();var n=(a&&a.name)||ls('wMyName')||'Wayed';return String(n).split(' ')[0]} (function catchReturn(){ var h=location.hash||'';if(h.indexOf('access_token=')<0)return; var q={};h.slice(1).split('&').forEach(function(kv){var p=kv.split('=');q[p[0]]=decodeURIComponent(p[1]||'')}); try{history.replaceState(null,'',location.pathname+location.search)}catch(e){} ls('wAuth',JSON.stringify({token:q.access_token,refresh:q.refresh_token,at:Date.now()})); fetch(SB+'/auth/v1/user',{headers:{apikey:KEY,Authorization:'Bearer '+q.access_token}}).then(function(r){return r.json()}).then(function(u){ var m=(u&&u.user_metadata)||{};var a=auth()||{};a.email=u.email;a.name=m.full_name||m.name||'';a.id=u.id;ls('wAuth',JSON.stringify(a));if(a.name)ls('wMyName',a.name.split(' ')[0]);paint(); }).catch(function(){}); })(); var provs=null; function providers(){return provs||(provs=fetch(SB+'/auth/v1/settings',{headers:{apikey:KEY}}).then(function(r){return r.json()}).then(function(j){return j.external||{}}).catch(function(){return {}}))} function signIn(p,msg){ providers().then(function(x){ if(x[p]){location.href=SB+'/auth/v1/authorize?provider='+p+'&redirect_to='+encodeURIComponent(location.origin+location.pathname);return} msg.textContent=(p=='apple'?'Sign in with Apple':'Google sign-in')+' turns on very soon. Tap "Not now" and everything still works.'; }); } /* ---------- layers ---------- */ function layer(id,html){var d=document.createElement('div');d.id=id;d.className='wsLayer';d.innerHTML=html;document.body.appendChild(d);return d} function close(d,cb){if(!d)return cb&&cb();d.classList.add('bye');setTimeout(function(){d.remove();cb&&cb()},reduce?0:600)} function intro(done){ var word='Wheelie'.split('').map(function(c,i){return ''+c+''}).join(''); var d=layer('wIntro','

'+word+'

Your friend for every day.

Tap to skip
'); d.setAttribute('role','img');d.setAttribute('aria-label','Wheelie'); var t=setTimeout(go,reduce?600:3500),gone=false; function go(){if(gone)return;gone=true;clearTimeout(t);close(d,done)} d.addEventListener('click',go); } function signSheet(force,done){ var a=auth(); var d=layer('wSign','
'+ (a&&a.token?'

You’re signed in

'+(a.email||'Welcome back')+'

':'

Welcome to Wheelie

Sign in so your books, trips and chats follow you to every device.

')+ '
'+(a&&a.token?'': ''+ ''+ '
Wheelie is free. We never sell your information.
')+'
'); d.setAttribute('role','dialog');d.setAttribute('aria-label','Sign in'); var m=$('#wsMsg',d); var ap=$('#wsApple',d),gg=$('#wsGoogle',d),no=$('#wsNo',d),out=$('#wsOut',d); if(ap)ap.onclick=function(){signIn('apple',m)}; if(gg)gg.onclick=function(){signIn('google',m)}; if(out)out.onclick=function(){ls('wAuth',null);close(d,done);paint()}; no.onclick=function(){ls('wSignSkip','1');close(d,done)}; } function helpSheet(){ var d=layer('wHelp',''); d.onclick=function(e){if(e.target===d||e.target.id=='whX')d.remove()}; } /* ---------- springboard ---------- */ function leave(){document.body.classList.remove('whon');var h=$('#whome');h&&h.classList.remove('on')} function tab(t){leave();setTimeout(function(){var b=$('#menu [data-tab='+t+']')||$('[data-tab='+t+']');b&&b.click()},30)} var APPS={ talk:['Talk',P,'mic',function(){window.whSayT=Date.now()+3000;try{whGo('talk','')}catch(e){}try{whTalkNow()}catch(e){}}], chat:['Ask',P,'talk',function(){try{whGo('talk','')}catch(e){}setTimeout(function(){var t=$('#t');t&&t.focus()},300)}], read:['Read',P,'read',function(){whGo('read',"Let's read together.")}], listen:['Listen',B,'listen',function(){whGo('listen',"Let's listen.")}], trips:['Trips',B,'trips','trips.html'], fly:['Flights',B,'fly','flights.html'], create:['Create',P,'create',function(){whGo('create',"Let's make something.")}], todo:['To-do',B,'todo',function(){whGo('todo','Here are your reminders')}], chats:['Chats',P,'chats',function(){try{wThr()}catch(e){whGo('talk','')}}], tour:['Tour',B,'tour','tour.html'], memory:['Memory',P,'memory',function(){tab('mem')}], studio:['Studio',B,'studio',function(){tab('studio')}], account:['Account',P,'account',function(){signSheet(true)}], help:['Help','#FF4D6A','help',function(){helpSheet()}] }; var GRID=['create','todo','chats','tour','memory','studio','account','help']; var DOCK=['read','listen','talk','trips','fly']; function iconBtn(k,cls,i){var a=APPS[k];return ''} var S=null; function greet(){var h=new Date().getHours();return h<5?'Good night':h<12?'Good morning':h<17?'Good afternoon':'Good evening'} function paint(){ if(!S)return; var d=new Date(),DAYS=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],MON=['January','February','March','April','May','June','July','August','September','October','November','December']; $('.hd b',S).textContent=greet()+', '+firstName(); $('.hd small',S).textContent=DAYS[d.getDay()]+', '+MON[d.getMonth()]+' '+d.getDate(); $('.day',S).textContent=DAYS[d.getDay()].slice(0,3); $('.num',S).textContent=d.getDate(); $('.tm',S).textContent=d.toLocaleTimeString([],{hour:'numeric',minute:'2-digit'}); } function build(){ S=document.createElement('div');S.id='wSpring';S.setAttribute('role','region');S.setAttribute('aria-label','Wheelie home screen'); var i=0; S.innerHTML='
'+ '
'+ '
'+ '
'+ '
'+GRID.map(function(k){return iconBtn(k,'ap',3+(i++))}).join('')+'
'+ ''+ ''; document.body.appendChild(S); S.addEventListener('click',function(e){var b=e.target.closest('[data-app]');if(!b)return;open(b)}); paint();setInterval(paint,30000); } function open(btn){ var k=btn.getAttribute('data-app'),a=APPS[k];if(!a)return; try{navigator.vibrate&&navigator.vibrate(8)}catch(e){} if(k=='account'||k=='help'){a[3]();return} var ic=btn.querySelector('.ic')||btn,r=ic.getBoundingClientRect(); var z=document.createElement('div');z.className='wsZoom';z.style.cssText='--c:'+a[1]+';left:'+r.left+'px;top:'+r.top+'px;width:'+r.width+'px;height:'+r.height+'px'; z.innerHTML=svg(a[2],30);document.body.appendChild(z); requestAnimationFrame(function(){requestAnimationFrame(function(){z.classList.add('full')})}); setTimeout(function(){ if(typeof a[3]=='string'){location.href=a[3];setTimeout(function(){z.remove()},4000);return} try{a[3]()}catch(e){} z.classList.add('out');setTimeout(function(){z.remove()},320); },reduce?0:400); } function replay(){if(!S||reduce)return;S.classList.remove('in');void S.offsetWidth;S.classList.add('in');paint()} function start(){ document.body.classList.add('wsb');build(); new MutationObserver(function(){var on=document.body.classList.contains('whon');if(on&&!S.__on){S.__on=1;try{wClose(true)}catch(e){}replay()}else if(!on)S.__on=0}).observe(document.body,{attributes:true,attributeFilter:['class']}); if(document.body.classList.contains('whon')){S.__on=1;replay()} window.addEventListener('pageshow',function(e){if(e.persisted){var z=document.querySelector('.wsZoom');z&&z.remove()}}); var a=auth(); var first=!ss('wIntro')&&!ls('wGoTalk'); if(first){ss('wIntro','1');intro(function(){if(!(a&&a.token)&&!ls('wSignSkip'))signSheet();else replay()})} } if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',function(){setTimeout(start,0)});else start(); window.wSignIn=signSheet; })();