Cánh cửa
Chào mừng trở lại với đêm nay.
Một chìa khóa cho mọi thứ — bàn làm việc của bạn, Night Wire và gia đình. Tài khoản sẽ được mở ngay khi ra mắt; đây là bản xem trước, nên cửa vẫn đang mở.
Đăng ký bằng tài khoản Google
hoặc
Khi tạo tài khoản, bạn đồng ý với Điều khoản và Điều kiện cũng như Chính sách Bảo mật của chúng tôi.
Tài khoản sẽ được kích hoạt ngay khi ra mắt. Cho đến lúc đó, đây là bản xem trước của trang tổng quan.
Bạn đã là nhà phân phối? Hệ thống quản lý nội bộ hiện tại của bạn vẫn tiếp tục hoạt động — khi ra mắt, liên kết này sẽ dẫn trực tiếp đến hệ thống đó.
Bạn chưa là thành viên?
Trên bầu trời vẫn còn chỗ trống .
(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(){function f(p){var i=p&&p.querySelector('.fi');if(i){try{i.focus({preventScroll:true})}catch(e){i.focus()}}}var si=document.getElementById('tabSI'),cr=document.getElementById('tabCR'),pSI=document.querySelector('.pSI'),pCR=document.querySelector('.pCR');if(si)si.addEventListener('change',function(){if(si.checked)f(pSI)});if(cr)cr.addEventListener('change',function(){if(cr.checked)f(pCR)});if(window.innerWidth>820&&!('ontouchstart' in window)){setTimeout(function(){f(pSI)},450);}})();
(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 DESK="/?page_id=5642"+AMP+"preview=true";function boot(){if(!window.firebase){return false;}if(!firebase.apps.length){firebase.initializeApp(FB);}var auth=firebase.auth();var panels=document.querySelectorAll(".apanel");if(panels.length!==2){return false;}var p0=panels[0],p1=panels[1];function q(p,s){return p.querySelector(s);}var siE=q(p0,"input[type=email]"),siP=q(p0,"input[type=password]"),siB=q(p0,"a.btn"),siG=q(p0,"a.gbtn");var crN=q(p1,"input[type=text]"),crE=q(p1,"input[type=email]"),crP=q(p1,"input[type=password]"),crB=q(p1,"a.btn"),crG=q(p1,"a.gbtn");if(!siB){return false;}if(siB.getAttribute("data-pepperdoor")==="1"){return true;}siB.setAttribute("data-pepperdoor","1");function msgEl(after){var d=document.createElement("div");d.className="authmsg";after.parentNode.insertBefore(d,after.nextSibling);return d;}var m0=msgEl(siB),m1=msgEl(crB);function nice(code){if(code==="auth/invalid-credential"){return "That email and password do not match our ledger.";}if(code==="auth/wrong-password"){return "That password does not match. Try again, slowly.";}if(code==="auth/user-not-found"){return "No account under that email yet. Try Create Account.";}if(code==="auth/email-already-in-use"){return "That email already has a key. Use Sign In.";}if(code==="auth/weak-password"){return "Choose a stronger password (6 characters or more).";}if(code==="auth/invalid-email"){return "That email does not look right.";}if(code==="auth/popup-closed-by-user"){return "Google window closed. Try again when ready.";}return "Something slipped. Try again in a moment.";}function go(){location.href=DESK;}function busy(b,on){if(on){b.style.opacity=".55";b.style.pointerEvents="none";}else{b.style.opacity="";b.style.pointerEvents="";}}function doSignIn(e){if(e){e.preventDefault();}if(auth.currentUser){go();return;}m0.textContent="";var em=siE.value,pw=siP.value;if(em===""){m0.textContent="Your email, please.";return;}if(pw===""){m0.textContent="And your password.";return;}busy(siB,true);auth.signInWithEmailAndPassword(em,pw).then(go)["catch"](function(err){busy(siB,false);m0.textContent=nice(err.code);});}function doCreate(e){if(e){e.preventDefault();}m1.textContent="";var nm=crN.value,em=crE.value,pw=crP.value;if(nm.replace(/\s/g,"")===""){m1.textContent="Tell us your name first.";return;}if(em===""){m1.textContent="Your email, please.";return;}if(pw===""){m1.textContent="Choose a password (6 characters or more).";return;}busy(crB,true);auth.createUserWithEmailAndPassword(em,pw).then(function(cred){return cred.user.updateProfile({displayName:nm}).then(go);})["catch"](function(err){busy(crB,false);m1.textContent=nice(err.code);});}function doGoogle(e){if(e){e.preventDefault();}var prov=new firebase.auth.GoogleAuthProvider();auth.signInWithPopup(prov).then(go)["catch"](function(err){var t=nice(err.code);m0.textContent=t;m1.textContent=t;});}siB.addEventListener("click",doSignIn);crB.addEventListener("click",doCreate);siG.addEventListener("click",doGoogle);crG.addEventListener("click",doGoogle);siP.addEventListener("keydown",function(e){if(e.key==="Enter"){doSignIn(e);}});crP.addEventListener("keydown",function(e){if(e.key==="Enter"){doCreate(e);}});auth.onAuthStateChanged(function(u){if(u){siB.textContent="Enter your desk "+String.fromCharCode(8594);}});return true;}var dn=0;var dt=setInterval(function(){dn++;if(boot()){clearInterval(dt);}if(dn===30){clearInterval(dt);}},400);