HomeCollectionThe CrystalsThe ConstellationThe ExchangeNight WireThe FamilyDistributorsSign InContact
Your Night Desk
Good evening, friend.
The family kept the lights low for you. Here’s your corner of the night.
My star path
✦✦✦✦✦✦✦✦
Every star is earned.
New to the circle. Your star rises as you grow with the family.
Nothing shared yet — your first post starts here.
THE WIRE BY EMAIL
Checking…
One night-edition email each Sunday. Leave any time.
Around the family · preview numbers
My family
12 members
3 new this month — two in Spanish, one in Mandarin. Welcome them.
This month
14 shares
2 gatherings attended · 5 forecasts cast on the floor.
Next gathering
Toronto
Friday Jul 18, 8pm — the office with the amethyst geode. 31 seats left.
Announcements
- TonightThe Night Edition preview is live — walk the new site and tell us where it creaks.
- Jul 18 · TorontoSummer gathering at the office — bring someone who sleeps badly.
- NewBrochures in Spanish and Chinese are in Resources, fresh from the press.
The sky so far
Your constellation.
✦✦✦✦✦✦✦✦
Stars reflect community recognition, not income. Distributor earnings are not guaranteed and depend on individual effort.
Share the night
Someone you love sleeps badly.
Your link, your language, your people. That’s the whole business.
(function(){var cv=document.getElementById("dust");if(cv){var cx=cv.getContext("2d"),W,H;function size(){W=cv.width=innerWidth;H=cv.height=innerHeight}size();addEventListener("resize",size);var P=[];var C=[[255,217,138],[159,176,255],[240,243,255]];function spawn(x,y,sp,s){var c=C[Math.random()*3|0];P.push({x:x,y:y,vx:(Math.random()-.5)*(sp||1.2),vy:(Math.random()-.5)*1.2,life:1,decay:.012+Math.random()*.02,s:s||(1+Math.random()*2.2),c:c,tw:Math.random()*6.28})}addEventListener("mousemove",function(e){for(var i=0;i<3;i++)spawn(e.clientX+(Math.random()-.5)*10,e.clientY+(Math.random()-.5)*10,.9)});setInterval(function(){spawn(Math.random()*W,Math.random()*H*.6,.3,1)},300);function loop(){cx.clearRect(0,0,W,H);cx.globalCompositeOperation="lighter";for(var i=P.length-1;i>=0;i--){var p=P[i];p.x+=p.vx;p.y+=p.vy;p.life-=p.decay;p.tw+=.25;if(p.life<=0){P.splice(i,1);continue}var a=p.life*(.55+.45*Math.sin(p.tw));var g=cx.createRadialGradient(p.x,p.y,0,p.x,p.y,p.s*3.2);g.addColorStop(0,"rgba("+p.c[0]+","+p.c[1]+","+p.c[2]+","+a+")");g.addColorStop(1,"rgba("+p.c[0]+","+p.c[1]+","+p.c[2]+",0)");cx.fillStyle=g;cx.beginPath();cx.arc(p.x,p.y,p.s*3.2,0,6.28);cx.fill()}requestAnimationFrame(loop)}loop()}var io=new IntersectionObserver(function(es){es.forEach(function(e){if(e.isIntersecting)e.target.classList.add("awake")})},{threshold:.15});document.querySelectorAll(".awaken").forEach(function(el){io.observe(el)});setTimeout(function(){document.querySelectorAll(".bar i").forEach(function(b){var w=b.getAttribute("data-w");if(w)b.style.width=w})},700);})();
(function(){var root=document.getElementById('lloydLang');if(!root)return;var btn=root.querySelector('.ll-btn');btn.addEventListener('click',function(e){e.stopPropagation();root.classList.toggle('ll-open');});document.addEventListener('click',function(){root.classList.remove('ll-open');});function sw(code){var done=false;if(window.Weglot){if(Weglot.switchTo){Weglot.switchTo(code);done=true;}}if(!done){var a=document.getElementById('weglot-language-'+code);if(a){a.click();}}}var opts=root.querySelectorAll('.ll-opt');opts.forEach(function(o){o.addEventListener('click',function(e){e.preventDefault();var code=o.getAttribute('data-wg');sw(code);var el=root.querySelector('.ll-cur');if(el){el.textContent=code.toUpperCase();}root.classList.remove('ll-open');});});function setCur(){var cur='';if(window.Weglot){if(Weglot.getCurrentLang){cur=Weglot.getCurrentLang();}}if(cur){var el=root.querySelector('.ll-cur');if(el){el.textContent=(''+cur).toUpperCase();}}}setTimeout(setCur,900);})();
(function(){var btn=document.querySelector('.lb-btn');if(btn){btn.addEventListener('click',function(e){e.preventDefault();document.documentElement.classList.toggle('lbopen');});}var menu=document.querySelector('.lb-menu');if(menu){menu.addEventListener('click',function(){document.documentElement.classList.remove('lbopen');});}})();
var FB={apiKey:"AIzaSyB5tTrcs8q8-avMJurjiSxzL9QimPVr_jo",authDomain:"sleepm-bd88a.firebaseapp.com",projectId:"sleepm-bd88a"};var AMP=String.fromCharCode(38);var DOOR="/?page_id=5641"+AMP+"preview=true";function el(i){return document.getElementById(i);}function ajax(fields,cb){var x=new XMLHttpRequest();x.open("POST","/wp-admin/admin-ajax.php");x.setRequestHeader("Content-Type","application/x-www-form-urlencoded");x.onload=function(){var j=null;try{j=JSON.parse(x.responseText);}catch(e){}cb(j);};x.onerror=function(){cb(null);};x.send(fields);}function ini(n){var p=n.split(" ");var s=p[0].charAt(0);if(p.length!==1){s=s+p[p.length-1].charAt(0);}return s.toUpperCase();}function chip(st){var s=document.createElement("span");s.className="pepchip "+(st==="publish"?"chipLive":"chipPending");s.textContent=(st==="publish"?"Live on the wall":"Awaiting the nod");return s;}function row(title,st){var d=document.createElement("div");d.className="peprow";var t=document.createElement("span");t.textContent=title;d.appendChild(t);d.appendChild(chip(st));return d;}function renderMine(posts){var box=el("pepMine");while(box.firstChild){box.removeChild(box.firstChild);}if(!posts){box.appendChild(document.createElement("p"));box.firstChild.className="pepempty";box.firstChild.textContent="Nothing shared yet — your first post starts here.";return;}if(posts.length===0){var e0=document.createElement("p");e0.className="pepempty";e0.textContent="Nothing shared yet — your first post starts here.";box.appendChild(e0);return;}var i;for(i=0;i!==posts.length;i++){box.appendChild(row(posts[i].title,posts[i].status));}}function showDist(d){if(d){var c2=el("pepDist");c2.style.display="";c2.textContent="Distributor "+d+" \u00b7 unverified";el("pepDid").value=d;el("pepDgo").textContent="Update my ID";}}function boot(){if(!window.firebase){return false;}if(!firebase.apps.length){firebase.initializeApp(FB);}if(!el("pepName")){return false;}if(el("pepName").getAttribute("data-on")==="1"){return true;}el("pepName").setAttribute("data-on","1");var auth=firebase.auth();auth.onAuthStateChanged(function(u){if(!u){location.href=DOOR;return;}var nm=u.displayName;if(!nm){nm=u.email.split("@")[0];}el("pepName").textContent=nm.split(" ")[0];el("pepPname").textContent=nm;el("pepPemail").textContent=u.email;if(u.photoURL){el("pepAvaImg").src=u.photoURL;el("pepAvaImg").style.display="";el("pepMono").style.display="none";}else{el("pepMono").textContent=ini(nm);}u.getIdToken().then(function(t){ajax("action=pepper_fp_mine"+AMP+"fp_token="+encodeURIComponent(t),function(j){if(j){if(j.success){renderMine(j.data.posts);showDist(j.data.dist);}}});});});el("pepOut").addEventListener("click",function(e){e.preventDefault();auth.signOut().then(function(){location.href=DOOR;});});el("pepGo").addEventListener("click",function(e){e.preventDefault();var T=el("pepT").value,B=el("pepB").value,M=el("pepMsg");M.textContent="";if(T.replace(/\s/g,"")===""){M.textContent="Give it a short title first.";return;}el("pepGo").style.pointerEvents="none";el("pepGo").style.opacity=".55";auth.currentUser.getIdToken().then(function(t){ajax("action=pepper_fp_submit"+AMP+"fp_token="+encodeURIComponent(t)+AMP+"fp_title="+encodeURIComponent(T)+AMP+"fp_body="+encodeURIComponent(B),function(j){el("pepGo").style.pointerEvents="";el("pepGo").style.opacity="";if(j){if(j.success){M.textContent=j.data.msg;var box=el("pepMine");var emp=box.querySelector(".pepempty");if(emp){box.removeChild(emp);}box.insertBefore(row(T,"pending"),box.firstChild);el("pepT").value="";el("pepB").value="";return;}if(j.data){M.textContent=j.data.msg;return;}}M.textContent="Something slipped — try again.";});});});el("pepDgo").addEventListener("click",function(e){e.preventDefault();var D=el("pepDid").value,M=el("pepDmsg");M.textContent="";if(D.replace(/\s/g,"")===""){M.textContent="Type your ID first.";return;}auth.currentUser.getIdToken().then(function(t){ajax("action=pepper_fp_sync"+AMP+"fp_token="+encodeURIComponent(t)+AMP+"fp_dist_id="+encodeURIComponent(D),function(j){if(j){if(j.success){M.textContent=j.data.msg;showDist(j.data.dist);return;}if(j.data){M.textContent=j.data.msg;return;}}M.textContent="Something slipped — try again.";});});});return true;}var kn=0;var kt=setInterval(function(){kn++;if(boot()){clearInterval(kt);}if(kn===30){clearInterval(kt);}},400);
var cn=0;var ct=setInterval(function(){cn++;var done=false;if(window.firebase){if(firebase.apps.length){firebase.auth().onAuthStateChanged(function(u){if(u){var links=document.querySelectorAll("nav a, .lb-menu a");var i;for(i=0;i!==links.length;i++){if(links[i].textContent.replace(/\s/g,"")==="SignIn"){links[i].textContent="My Desk";}}}});done=true;}}if(done){clearInterval(ct);}if(cn===30){clearInterval(ct);}},500);
var fzn=0;var fzt=setInterval(function(){fzn++;var t=document.getElementById("pepT");var ok=false;if(t){if(t.getAttribute("data-on2")!=="1"){var touch=("ontouchstart" in window);var narrow=Math.max(window.innerWidth,820)===820;if(!touch){if(!narrow){t.setAttribute("data-on2","1");t.focus({preventScroll:true});ok=true;}else{ok=true;}}else{ok=true;}}else{ok=true;}}if(ok){clearInterval(fzt);}if(fzn===24){clearInterval(fzt);}},500);
function pgGlow(elm,on){if(on){elm.style.setProperty("border-color","#ffd98a","important");elm.style.setProperty("box-shadow","0 0 0 2px rgba(255,217,138,.55), 0 0 22px rgba(255,217,138,.35), 0 0 44px rgba(255,217,138,.18)","important");elm.style.setProperty("background","rgba(255,255,255,.07)","important");elm.style.setProperty("caret-color","#ffd98a","important");}else{elm.style.removeProperty("border-color");elm.style.removeProperty("box-shadow");elm.style.removeProperty("background");}}function pgHook(id){var e2=document.getElementById(id);if(!e2){return false;}if(e2.getAttribute("data-glow")==="1"){return true;}e2.setAttribute("data-glow","1");e2.addEventListener("focus",function(){pgGlow(e2,true);});e2.addEventListener("blur",function(){pgGlow(e2,false);});if(document.activeElement===e2){pgGlow(e2,true);}return true;}var gn=0;var gt=setInterval(function(){gn++;var a=pgHook("pepT");var b=pgHook("pepB");var d=pgHook("pepDid");if(a){if(b){if(d){clearInterval(gt);}}}if(gn===24){clearInterval(gt);}},500);
function el2(i){return document.getElementById(i);}function xfd(fd,cb){var x=new XMLHttpRequest();x.open("POST","/wp-admin/admin-ajax.php");x.onload=function(){var j=null;try{j=JSON.parse(x.responseText);}catch(e){}cb(j);};x.onerror=function(){cb(null);};x.send(fd);}function rowP(title){var d=document.createElement("div");d.className="peprow";var t=document.createElement("span");t.textContent=title;d.appendChild(t);var s=document.createElement("span");s.className="pepchip chipPending";s.textContent="Awaiting the nod";d.appendChild(s);return d;}function clearFile(){el2("pepF").value="";el2("pepFname").textContent="";el2("pepFprev").style.display="none";el2("pepFx").style.display="none";}function hookPhoto(){var go=el2("pepGo");if(!go){return false;}if(!window.firebase){return false;}if(!firebase.apps.length){return false;}if(go.getAttribute("data-photo")==="1"){return true;}var ng=go.cloneNode(true);go.parentNode.replaceChild(ng,go);ng.setAttribute("data-photo","1");var auth=firebase.auth();ng.addEventListener("click",function(e){e.preventDefault();var T=el2("pepT").value,B=el2("pepB").value,M=el2("pepMsg");M.textContent="";if(T.replace(/\s/g,"")===""){M.textContent="Give it a short title first.";return;}if(!auth.currentUser){M.textContent="Please sign in again.";return;}ng.style.pointerEvents="none";ng.style.opacity=".55";M.textContent="Sharing\u2026";auth.currentUser.getIdToken().then(function(t){var fd=new FormData();fd.append("action","pepper_fp_submit");fd.append("fp_token",t);fd.append("fp_title",T);fd.append("fp_body",B);var f=el2("pepF").files[0];if(f){fd.append("fp_photo",f,f.name);}xfd(fd,function(j){ng.style.pointerEvents="";ng.style.opacity="";if(j){if(j.success){M.textContent=j.data.msg;var box=el2("pepMine");var emp=box.querySelector(".pepempty");if(emp){box.removeChild(emp);}box.insertBefore(rowP(T),box.firstChild);el2("pepT").value="";el2("pepB").value="";clearFile();return;}if(j.data){M.textContent=j.data.msg;return;}}M.textContent="Something slipped \u2014 try again.";});});});el2("pepFbtn").addEventListener("click",function(e){e.preventDefault();el2("pepF").click();});el2("pepFx").addEventListener("click",function(e){e.preventDefault();clearFile();});el2("pepF").addEventListener("change",function(){var f=el2("pepF").files[0];if(!f){clearFile();return;}el2("pepFname").textContent=f.name;el2("pepFx").style.display="";var u=URL.createObjectURL(f);var pv=el2("pepFprev");pv.src=u;pv.style.display="";});el2("pepAvaBtn").addEventListener("click",function(e){e.preventDefault();el2("pepAvaF").click();});el2("pepAvaF").addEventListener("change",function(){var f=el2("pepAvaF").files[0];if(!f){return;}var M=el2("pepAvaMsg");M.textContent="Uploading\u2026";auth.currentUser.getIdToken().then(function(t){var fd=new FormData();fd.append("action","pepper_fp_avatar");fd.append("fp_token",t);fd.append("fp_photo",f,f.name);xfd(fd,function(j){if(j){if(j.success){auth.currentUser.updateProfile({photoURL:j.data.url}).then(function(){var im=el2("pepAvaImg");im.src=j.data.url;im.style.display="";el2("pepMono").style.display="none";M.textContent="Photo updated.";});return;}if(j.data){M.textContent=j.data.msg;return;}}M.textContent="Something slipped \u2014 try again.";});});});return true;}var pn2=0;var pt2=setInterval(function(){pn2++;if(hookPhoto()){clearInterval(pt2);}if(pn2===30){clearInterval(pt2);}},500);
function el3(i){return document.getElementById(i);}function hookR2(){var av=document.querySelector(".pepava");var hv=el3("pepAvaHover");var fI=el3("pepAvaF");if(!av){return false;}if(!hv){return false;}if(av.getAttribute("data-r2")==="1"){return true;}av.setAttribute("data-r2","1");av.addEventListener("mouseenter",function(){hv.style.display="flex";});av.addEventListener("mouseleave",function(){hv.style.display="none";});av.addEventListener("click",function(e){e.preventDefault();fI.click();});var la=document.querySelector("label[for=ptA]");if(la){la.addEventListener("click",function(){setTimeout(function(){var t=el3("pepT");if(t){t.focus({preventScroll:true});if(window.pgGlow){pgGlow(t,true);}}},120);});}return true;}function relight(){var t=el3("pepT");if(t){if(document.activeElement!==t){t.focus({preventScroll:true});}if(window.pgGlow){pgGlow(t,true);}}}var rn=0;var rt=setInterval(function(){rn++;if(hookR2()){clearInterval(rt);}if(rn===30){clearInterval(rt);}},500);setTimeout(relight,1800);setTimeout(relight,3500);
function pepPingWelcome(){
if(sessionStorage.getItem('pepWelcomePinged')==='1'){return;}
if(window.firebase){
if(firebase.auth){
firebase.auth().onAuthStateChanged(function(u){
if(u){
if(sessionStorage.getItem('pepWelcomePinged')!=='1'){
sessionStorage.setItem('pepWelcomePinged','1');
u.getIdToken().then(function(t){
var x=new XMLHttpRequest();
x.open('POST','/wp-admin/admin-ajax.php');
x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
var AMP=String.fromCharCode(38);
x.send('action=pepper_fp_welcome'+AMP+'token='+encodeURIComponent(t));
});
}
}
});
}
}
}
setTimeout(pepPingWelcome,1500);