1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[58974],{8567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return a.workAsyncStorageInstance}});let a=n(17828)},12030:(e,t,n)=>{"use strict";n.d(t,{Eg:()=>i,kj:()=>o,tf:()=>l});var a=n(12115),r=n(48663),s=n(33310);function l(e){try{fetch("/api/beacon/puzzle",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),keepalive:!0,cache:"no-store"}).catch(()=>{})}catch(e){}}function i(e){let[t,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let t=()=>n(function(e){let t=null!=e?e:(0,r.y3)(new Date),{days:n}=(0,s.WM)();return{summary:(0,s.EZ)(n,t),days:n,today:t,puzzles:(0,s.o2)()}}(e));t();let a=e=>{(!e.key||e.key.startsWith("sn:streak")||e.key.startsWith("sn:puzzle"))&&t()};return window.addEventListener(s.Se,t),window.addEventListener("storage",a),()=>{window.removeEventListener(s.Se,t),window.removeEventListener("storage",a)}},[e]),t}function o(){let[e,t]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=(0,r.y3)(new Date),n=()=>{let n=new Date,a=(0,r.cy)(n),s=Math.floor(a/36e5),l=Math.floor(a%36e5/6e4);t({text:s>0?"".concat(s," h ").concat(l," min"):"".concat(Math.max(1,l)," min"),rolledOver:(0,r.y3)(n)!==e})};n();let a=window.setInterval(n,3e4);return()=>window.clearInterval(a)},[]),e}}
1,15239:(e,t,n)=>{"use strict";n.d(t,{default:()=>r.a});var a=n(54652),r=n.n(a)},17828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return a}});let a=(0,n(64054).createAsyncLocalStorage)()},18303:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var a=n(95155),r=n(12115),s=n(52619),l=n.n(s),i=n(57305),o=n(50445),c=n(67155);function d(){let[e,t]=(0,r.useState)({kind:"init"});if((0,r.useEffect)(()=>{let e=!1;try{e="1"===window.localStorage.getItem(i.Jv)}catch(e){}if(e)return void t({kind:"hidden"});let n=(0,i.zg)();if(!n)return void t({kind:"prompt"});t({kind:"loading",place:n});let a=!0;return fetch("/api/sky/tonight?".concat((0,i.eU)(n)),{headers:{Accept:"application/json"}}).then(e=>e.json()).then(e=>{a&&t((null==e?void 0:e.success)?{kind:"ready",place:n,sky:e.data}:{kind:"error",place:n})}).catch(()=>{a&&t({kind:"error",place:n})}),()=>{a=!1}},[]),"hidden"===e.kind)return null;let n="place"in e?e.place:null,s=n?(0,i.xI)(n):"/tonight",d="Your sky tonight",u=["The space station, the Moon and the planets from your city, in your local time.","Pick a place once; this card remembers it on this device only."],h=null;if(("loading"===e.kind||"init"===e.kind)&&(u=["",""]),"error"===e.kind&&n&&(d="Tonight over ".concat(n.name),u=["Tonight's sky could not be loaded just now.",""]),"ready"===e.kind){let t=e.sky,n=t.place.tz;d="Tonight over ".concat(t.place.citySlug?t.place.name:"your place");let a=t.nextIss,r=t.elementsError?"ISS times are unavailable right now.":a&&t.nextIssIsTonight?"ISS ".concat((0,o.Hi)(a.startIso,n),", ").concat((0,c.zs)(a),", up to ").concat(Math.round(a.maxElevationDeg),"\xb0"):a?"No visible ISS pass tonight; next ".concat((0,o.EE)(a.startIso,n)," at ").concat((0,o.Hi)(a.startIso,n)):"No visible ISS pass in the next few days.",s=t.planets.filter(e=>e.up).map(e=>e.name);u=[r,"Moon ".concat(t.moon.phaseName.toLowerCase(),", ").concat(t.moon.illuminatedPct,"% lit").concat(s.length?". Planets up: ".concat(s.join(", ")):"").concat(t.launches.length?". A launch you could see: ".concat(t.launches[0].title):"",".")],a&&t.nextIssIsTonight&&(h="ISS at ".concat((0,o.Hi)(a.startIso,n),": it ").concat((0,c.uJ)(a)," and reaches ").concat(Math.round(a.maxElevationDeg)," degrees."))}return(0,a.jsxs)("section",{"data-sky-card":!0,"aria-labelledby":"home-sky-h",className:"h-[176px] sm:h-[156px] mt-6 rounded-[var(--radius-console)] border border-[var(--line)] bg-[var(--surface)] p-4 md:p-[18px] flex flex-col overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsx)("h3",{id:"home-sky-h",className:"text-[16px] font-semibold text-[var(--ink)] truncate",children:d}),(0,a.jsx)("button",{type:"button",onClick:()=>{try{window.localStorage.setItem(i.Jv,"1")}catch(e){}t({kind:"hidden"})},className:"-mt-2 -mr-2 shrink-0 min-h-[44px] min-w-[44px] text-[13px] text-[var(--ink-3)] hover:text-[var(--ink)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--ember)] rounded-[var(--radius-control)]",children:"Hide"})]}),(0,a.jsx)("div",{className:"flex-1 min-h-0 -mt-1",children:"loading"===e.kind||"init"===e.kind?(0,a.jsxs)("div",{"aria-hidden":"true",className:"space-y-2 pt-1",children:[(0,a.jsx)("div",{className:"h-4 w-3/4 rounded bg-[var(--elev)]"}
1),(0,a.jsx)("div",{className:"h-4 w-1/2 rounded bg-[var(--elev)]"})]}):(0,a.jsxs)(a.Fragment,{children:[h&&(0,a.jsx)("p",{className:"sr-only",children:h}),(0,a.jsx)("p",{className:"text-[14px] text-[var(--ink)] truncate","aria-hidden":!!h||void 0,children:u[0]}),(0,a.jsx)("p",{className:"text-[13px] text-[var(--ink-2)] line-clamp-2 sm:truncate",children:u[1]})]})}),(0,a.jsx)("div",{children:(0,a.jsx)(l(),{href:s,className:"inline-flex items-center min-h-[44px] text-[13px] text-[var(--ink-2)] underline decoration-[var(--line-2)] underline-offset-4 hover:text-[var(--ember)]",children:"prompt"===e.kind?"Pick your place":"Full sky tonight"})})]})}},21581:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var a=n(95155),r=n(52619),s=n.n(r),l=n(34456),i=n(48663),o=n(12030);function c(e){var t;let{number:n,dateLabel:r,firstDateLabel:c,headingLevel:d="h2",className:u=""}=e,h=(0,o.Eg)(n>=1?(0,i.YQ)(n):void 0),m=n>=1?null==h?void 0:h.puzzles.results[String(n)]:void 0,x=null!=(t=null==h?void 0:h.summary.current)?t:0,p=n>=1;return(0,a.jsxs)("section",{"aria-labelledby":"daily-puzzle-card",className:"rounded-[var(--radius-console)] border border-[var(--line)] bg-[var(--surface)] p-5 ".concat(u),children:[(0,a.jsx)("p",{className:"text-xs uppercase tracking-[0.14em] text-[var(--ink-3)]",children:p?"Daily Space Puzzle \xb7 ".concat(r):"Daily Space Puzzle"}),(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-baseline justify-between gap-2",children:[(0,a.jsx)(d,{id:"daily-puzzle-card",className:"text-[17px] font-semibold text-[var(--ink)]",children:p?"Today's puzzle: #".concat(n):"Puzzle #1 opens ".concat(c)}),x>=2&&(0,a.jsxs)("span",{className:"text-[13px] text-[var(--ink-2)]",children:[(0,a.jsx)("span",{className:"font-mono tabular-nums text-[var(--ember)]",children:x}),"-day streak"]})]}),(0,a.jsx)("p",{className:"mt-2 text-[14px] leading-relaxed text-[var(--ink-2)]",children:m?"".concat((0,l.Xb)(m)," (").concat((0,l.Gx)(m),"). The answer, its source and what to read next are on the puzzle page."):"One space question a day with an official source behind the answer. Two tries. The same puzzle for everyone; a new one at 00:00 UTC."}),(0,a.jsxs)(s(),{href:"/puzzle",className:"mt-4 inline-flex min-h-[44px] items-center gap-2 rounded-[var(--radius-control)] border border-[var(--line-2)] px-4 text-[14px] font-semibold text-[var(--ink)] hover:border-[var(--line-hot)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ember)]",children:[p?m?"See the answer and share":"Play today's puzzle":"See how it works",(0,a.jsx)("span",{"aria-hidden":"true",children:"â"})]})]})}},24437:(e,t,n)=>{"use strict";function a(e){let{reason:t,children:n}=e;return n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return a}}),n(24553)},34456:(e,t,n)=>{"use strict";function a(e){let t=e.solved?Math.max(0,e.tries-1):Math.max(1,e.tries);return"\uD83D\uDFE5".repeat(t)+(e.solved?"\uD83D\uDFE9":"")}function r(e){return"".concat(e.solved?e.tries:"X","/").concat(2)}function s(e){return e.solved?1===e.tries?"Solved on the first try":"Solved on the second try":"Missed"}function l(e){let{number:t,result:n,streak:s,origin:l}=e,i=["SpaceNexus Daily Space Puzzle #".concat(t),"".concat(a(n)," ").concat(r(n))];return s>=2&&i.push("".concat("\uD83D\uDD25"," ").concat(s,"-day streak")),i.push("".concat(l.replace(/\/$/,""),"/puzzle/").concat(t,"?ref=share")),i.join("\n")}n.d(t,{AZ:()=>a,Gx:()=>r,Lu:()=>l,Xb:()=>s})},36552:(e,t,n)=>{"use strict";function a(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return a}}),n(95155),n(47650),n(8567),n(77278)},44503:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var a=n(95155),r=n(12115);let s=e=>String(e).padStart(2,"0");function l(e){if(!Number.isFinite(e))return{live:!1,valid:!1,days:0,text:"Tâ--:--:--",words:"Countdown unavailable"};if(e<=0)return{live:!0,valid:!0,days:0,text:"Tâ0",words:"Scheduled time reached"};let t=Math.floor(e/1e3),n=Math.floor(t/86400),a=Math.floor(t%86400/3600),r=M
1ath.floor(t%3600/60),l=t%60,i=(e,t)=>"".concat(e," ").concat(t).concat(1===e?"":"s");return n>=1?{live:!1,valid:!0,days:n,text:"Tâ".concat(n,"d ").concat(s(a),":").concat(s(r)),words:"T minus ".concat(i(n,"day")," ").concat(i(a,"hour")," ").concat(i(r,"minute"))}:{live:!1,valid:!0,days:0,text:"Tâ".concat(s(a),":").concat(s(r),":").concat(s(l)),words:"T minus ".concat(i(a,"hour")," ").concat(i(r,"minute")," ").concat(i(l,"second"))}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();if(null==e||""===e)return NaN;let n=e instanceof Date?e.getTime():new Date(e).getTime();return Number.isNaN(n)?NaN:n-t}let o={clock:"text-[clamp(3.2rem,7.4vw,5.6rem)] leading-[0.92] tracking-[-0.03em] font-bold",lg:"text-[1.875rem] leading-[1.1] font-bold",md:"text-[0.9375rem] leading-none font-medium"};function c(e){let{to:t,size:n="lg",className:s=""}=e,[c,d]=(0,r.useState)(()=>l(i(t)));(0,r.useEffect)(()=>{let e=()=>d(l(i(t)));e();let n=window.setInterval(e,1e3);return()=>window.clearInterval(n)},[t]);let u=c.text.match(/^T\u2212(\d+)(d)\s(.*)$/);return(0,a.jsx)("time",{dateTime:"string"==typeof t?t:t instanceof Date?t.toISOString():void 0,"aria-live":"off",role:"timer","aria-label":c.words,suppressHydrationWarning:!0,className:"inline-block font-mono tabular-nums ".concat(o[n]," ").concat(s),style:{color:c.live?"var(--go)":"var(--ink)"},"data-live":c.live?"true":"false",children:(0,a.jsx)("span",{"aria-hidden":"true",suppressHydrationWarning:!0,children:c.live||!c.valid?c.text:u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{style:{color:"var(--ember)"},children:["T","â"]}),u[1],(0,a.jsx)("span",{style:{color:"var(--ember)"},children:"d"})," ",u[3]]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{style:{color:"var(--ember)"},children:["T","â"]}),c.text.slice(2)]})})})}},50445:(e,t,n)=>{"use strict";n.d(t,{AN:()=>d,D0:()=>s,EE:()=>o,Hi:()=>i,SK:()=>u,VO:()=>x,VZ:()=>h,cn:()=>l,ni:()=>m,sy:()=>c});let a=["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"],r={N:"north",NNE:"north-northeast",NE:"northeast",ENE:"east-northeast",E:"east",ESE:"east-southeast",SE:"southeast",SSE:"south-southeast",S:"south",SSW:"south-southwest",SW:"southwest",WSW:"west-southwest",W:"west",WNW:"west-northwest",NW:"northwest",NNW:"north-northwest"};function s(e){return a[Math.round((e%360+360)%360/22.5)%16]}function l(e){return r[s(e)]}function i(e,t){return new Date(e).toLocaleTimeString("en-US",{timeZone:t,hour:"numeric",minute:"2-digit"})}function o(e,t){let n=new Date(e),a=n.toLocaleDateString("en-US",{timeZone:t,weekday:"short"}),r=n.toLocaleDateString("en-US",{timeZone:t,day:"numeric"}),s=n.toLocaleDateString("en-US",{timeZone:t,month:"short"});return"".concat(a," ").concat(r," ").concat(s)}function c(e,t){return new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit"}).format(e).slice(0,10)}function d(e,t){let n=new Date(e),a=t;for(let e of["en-US","en-GB","en-AU","en-NZ","en-IN"])try{var r;let s=null==(r=new Intl.DateTimeFormat(e,{timeZone:t,timeZoneName:"short"}).formatToParts(n).find(e=>"timeZoneName"===e.type))?void 0:r.value;if(!s)continue;if("en-US"===e&&(a=s),!/^(GMT|UTC)[+-]/.test(s))return s}catch(e){}return a}function u(e){return"".concat(e.slice(11,16)," UTC")}function h(e){let t=Math.round(e/60);return t<1?"under a minute":"".concat(t," min")}function m(e){let t=Math.round(e);return t>=70?"".concat(t,"\xb0, nearly overhead"):t>=45?"".concat(t,"\xb0, high in the sky"):t>=25?"".concat(t,"\xb0, halfway up"):"".concat(t,"\xb0, low")}function x(e){let t=Math.round(10*e)/10;return t<0?"â".concat(Math.abs(t).toFixed(1)):"+".concat(t.toFixed(1))}},54652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return o},getImageProps:function(){return i}});let a=n(28140),r=n(75040),s=n(81356),l=a._(n(71124));function i(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let o=s.Image},57305:(e,t,n)=>{"use strict";n.d(t,{J2:()=>l,Jv:()=>m,OP:()=>s,Po:()=>i,Vg:()=>x,eU:()=>v,fQ:()=>u,m5:()=>f,mb:()=>r,oI:()=>c,sN:()=>o,u1:()=>d,xI:()=>g,zg:()=>p});var a=n(28703);let r="Your position is rounded to 0.1 degree (about 10 km) on your device before it is used. That roun
1ded point is saved in this browser so the page remembers your place (Forget clears it), and we store it only if you ask for email alerts.";function s(e){return Number((.1*Math.round(e/.1)).toFixed(1))||0}function l(e){return{label:"".concat(e.name,", ").concat("USA"===e.country?e.area:e.country),name:e.name,lat:e.lat,lon:e.lon,tz:e.tz,citySlug:e.slug}}function i(e,t,n){let a="string"==typeof e?Number(e):e,r="string"==typeof t?Number(t):t;if("number"!=typeof a||"number"!=typeof r||!Number.isFinite(a)||!Number.isFinite(r)||Math.abs(a)>90||Math.abs(r)>180||!function(e){if("string"!=typeof e||e.length<3||e.length>64||!/^[A-Za-z0-9_+\-/]+$/.test(e))return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),!0}catch(e){return!1}}(n))return null;let l=s(a),i=s(r);return{label:"Near ".concat("".concat(Math.abs(l).toFixed(1),"\xb0").concat(l>=0?"N":"S",", ").concat(Math.abs(i).toFixed(1),"\xb0").concat(i>=0?"E":"W")),name:"your location",lat:l,lon:i,tz:n,citySlug:null}}function o(e){let t=e?(0,a.l5)(e):null;return t?l(t):null}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r=null;for(let s of a._u){let a=function(e,t){let n=e=>e*Math.PI/180,a=n(t.lat-e.lat),r=n(t.lon-e.lon);return 12742*Math.asin(Math.sqrt(Math.sin(a/2)**2+Math.cos(n(e.lat))*Math.cos(n(t.lat))*Math.sin(r/2)**2))}({lat:e,lon:t},s);a<=n&&(!r||a<r.km)&&(r={city:s,km:a})}return r}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=e.trim().toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,"");if(!n)return[];let r=e=>e.toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,""),s=[];for(let e of a._u){let t=r(e.name),a="".concat(r(e.area)," ").concat(r(e.country)),l=-1;t.startsWith(n)?l=3:t.split(/[\s-]+/).some(e=>e.startsWith(n))?l=2:t.includes(n)?l=1:a.includes(n)&&(l=0),l>=0&&s.push({c:e,score:l})}return s.sort((e,t)=>t.score-e.score||e.c.name.localeCompare(t.c.name)).slice(0,t).map(e=>e.c)}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return e?a._u.filter(t=>t.tz===e).slice(0,t):[]}let h="sn:sky-place:v1",m="sn:sky-card-dismissed:v1",x="sn:sky-night:v1";function p(){try{var e;let t=window.localStorage.getItem(h);return t&&(e=JSON.parse(t))&&"object"==typeof e?"city"===e.kind&&"string"==typeof e.slug?o(e.slug):"point"===e.kind?i(e.lat,e.lon,e.tz):null:null}catch(e){return null}}function f(e){try{if(e)window.localStorage.setItem(h,JSON.stringify(e.citySlug?{kind:"city",slug:e.citySlug}:{kind:"point",lat:s(e.lat),lon:s(e.lon),tz:e.tz}));else window.localStorage.removeItem(h)}catch(e){}}function v(e){return e.citySlug?"city=".concat(encodeURIComponent(e.citySlug)):"lat=".concat(e.lat.toFixed(1),"&lon=").concat(e.lon.toFixed(1),"&tz=").concat(encodeURIComponent(e.tz))}function g(e){return e.citySlug?"/tonight/".concat(e.citySlug):"/tonight?".concat(v(e))}},63342:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var a=n(95155),r=n(12115),s=n(82873),l=n(19021);function i(e){let{eventId:t,label:n,aside:i}=e,[o,c]=(0,r.useState)(!1),d=(0,r.useId)();return(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2",children:[(0,a.jsx)("a",{href:"/launch/".concat(t,"#alerts"),role:"button","aria-expanded":o,"aria-controls":d,"data-cta":"reminder",onClick:e=>{e.preventDefault(),c(e=>!e)},onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e=>!e))},className:"btn-primary text-[14.5px] py-2.5 px-5",children:"Remind me at Tâ1h"}),i]}),(0,a.jsxs)("p",{className:"mt-2 text-[12.5px] text-[var(--ink-3)]",children:["No account needed. ",l.qU]}),(0,a.jsx)("div",{id:d,hidden:!o,className:"mt-3 max-w-[560px]",children:o&&(0,a.jsx)(s.default,{eventId:t,label:n,source:"homepage-hero",compact:!0})})]})}},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{bindSnapshot:function(){return l},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return i}});let n=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,
1configurable:!0});class a{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}static bind(e){return e}}let r="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return r?new r:new a}function l(e){return r?r.bind(e):a.bind(e)}function i(){return r?r.snapshot():function(e,...t){return e(...t)}}},67155:(e,t,n)=>{"use strict";n.d(t,{dA:()=>l,eA:()=>o,rw:()=>i,uJ:()=>r,zs:()=>c});var a=n(50445);function r(e){let t=(0,a.cn)(e.startAz);return"shadow"===e.startEdge?"appears out of Earth's shadow, already ".concat(e.startEl,"\xb0 up in the ").concat(t):"twilight"===e.startEdge?"is already ".concat(e.startEl,"\xb0 up in the ").concat(t," when the sky gets dark enough"):"comes into view low in the ".concat(t)}function s(e,t){let n=(0,a.cn)(e.endAz),r=(0,a.Hi)(e.endIso,t);return"shadow"===e.endEdge?"fades into Earth's shadow ".concat(e.endEl,"\xb0 up in the ").concat(n," at ").concat(r):"twilight"===e.endEdge?"is lost in the brightening dawn sky ".concat(e.endEl,"\xb0 up in the ").concat(n," at ").concat(r):"drops below 10\xb0 in the ".concat(n," at ").concat(r)}function l(e,t){return e.peakIso===e.startIso||e.maxElevationDeg-e.startEl<1?"".concat(r(e)," (its highest point while you can see it), then ").concat(s(e,t)):"".concat(r(e),", climbs to ").concat((0,a.ni)(e.maxElevationDeg)," in the ").concat((0,a.cn)(e.peakAz)," at ").concat((0,a.Hi)(e.peakIso,t),", then ").concat(s(e,t))}function i(e){return"shadow"===e.startEdge?"Appears":"twilight"===e.startEdge?"Visible from":"Comes into view"}function o(e){return"shadow"===e.endEdge?"Fades":"twilight"===e.endEdge?"Dawn":"Drops low"}function c(e){return"horizon"===e.startEdge?"low in the ".concat((0,a.D0)(e.startAz)):"".concat(e.startEl,"\xb0 up in the ").concat((0,a.D0)(e.startAz))}},69584:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m,mediumYouTubeThumbnail:()=>o});var a=n(95155),r=n(12115),s=n(47650),l=n(15239),i=n(40471);function o(e){return e.replace(/^(https:\/\/i\d?\.ytimg\.com\/vi(?:_webp)?\/[^/]+\/)(?:hq|sd|maxres)default(_live)?\.(jpg|webp)(?:\?.*)?$/,(e,t,n,a)=>"".concat(t,"mqdefault").concat(null!=n?n:"",".").concat(a))}function c(e){return e>=1e3?"".concat((e/1e3).toFixed(1),"K"):e.toString()}let d=["https://www.youtube-nocookie.com","https://www.youtube.com"];function u(e){let{stream:t}=e,[n,s]=(0,r.useState)(!1),[l,i]=(0,r.useState)(!0===t.isMajorEvent),c=(0,r.useRef)(null),u=(0,r.useRef)(!1);return((0,r.useEffect)(()=>{if(!l)return;s(!1),u.current=!1;let e=e=>{if(d.includes(e.origin)){u.current=!0;try{if("string"==typeof e.data){var t;let n=JSON.parse(e.data);((null==n?void 0:n.event)==="onError"||(null==n||null==(t=n.info)?void 0:t.playerState)===-1)&&s(!0)}}catch(e){}}};window.addEventListener("message",e);let n=!1,a=window.setTimeout(()=>{Promise.all([new Promise(e=>{let t=document.createElement("img"),n=window.setTimeout(()=>e(!1),8e3);t.onload=()=>{window.clearTimeout(n),e(!1)},t.onerror=()=>{window.clearTimeout(n),e(!0)},t.src="https://www.youtube-nocookie.com/favicon.ico?_=".concat(Date.now())}),fetch("https://www.youtube-nocookie.com/embed/".concat(t.videoId),{mode:"no-cors",cache:"no-store"}).then(()=>!1,()=>!0)]).then(e=>{let[t,a]=e;t&&a&&!n&&!u.current&&s(!0)})},2e3);return()=>{n=!0,window.removeEventListener("message",e),window.clearTimeout(a)}},[t.videoId,l]),n)?(0,a.jsx)("div",{className:"relative w-full",style:{paddingBottom:"56.25%"},children:(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-gradient-to-br from-slate-900 to-black p-6",children:[(0,a.jsx)("div",{className:"mb-4 w-16 h-16 rounded-full bg-red-500/10 border border-red-500/20 flex items-center justify-center",children:(0,a.jsx)("svg",{className:"w-8 h-8 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})})}),(0,a.jsx)("p",{className:"text-white text-lg font-semibold mb-1 text-center",children:"This stream can't play embedded here"}),(0,a.jsx)("p",{className:"text-slate-400 text-sm mb-4 text-center max-w-sm",children:"The streamer may restrict embedding, or a network filter on your connection may block embedded players. Watching directly on YouTube works either way."}),(0,a.jsxs)("a",{href:"https://www.youtube.com/watch?v=".concat(t.videoId),target:"_blank",rel:"noopener noreferrer",className:"btn-primary inline-flex items-center gap-2 px-6 py-3",children:[(0,a.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"
1currentColor",children:[(0,a.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814z"}),(0,a.jsx)("path",{d:"M9.545 15.568V8.432L15.818 12l-6.273 3.568z",fill:"white"})]}),"Watch on YouTube"]})]})}):l?(0,a.jsxs)("div",{className:"relative w-full",style:{paddingBottom:"56.25%"},children:[(0,a.jsx)("iframe",{ref:c,src:"https://www.youtube-nocookie.com/embed/".concat(t.videoId,"?autoplay=1&mute=").concat(+!!t.isMajorEvent,"&enablejsapi=1"),title:t.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"absolute inset-0 w-full h-full",onError:()=>s(!0)}),(0,a.jsxs)("div",{className:"absolute bottom-3 left-3 right-3 z-20 flex items-center justify-between",children:[(0,a.jsxs)("button",{onClick:()=>s(!0),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-black/80 text-white/80 text-xs hover:text-white hover:bg-black/95 transition-colors border border-white/10",children:[(0,a.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})}),"Video not loading?"]}),(0,a.jsxs)("a",{href:"https://www.youtube.com/watch?v=".concat(t.videoId),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-red-600/90 text-white text-xs font-medium hover:bg-red-500 transition-colors",children:[(0,a.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})}),"Watch on YouTube"]})]})]}):(0,a.jsx)("div",{className:"relative w-full",style:{paddingBottom:"56.25%"},children:(0,a.jsxs)("button",{type:"button",onClick:()=>i(!0),className:"group absolute inset-0 w-full h-full bg-black text-left","aria-label":"Play live stream: ".concat(t.title),children:[t.thumbnailUrl?(0,a.jsx)("img",{src:o(t.thumbnailUrl),alt:"",className:"absolute inset-0 w-full h-full object-cover opacity-80 group-hover:opacity-100 transition-opacity",loading:"eager"}):null,(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-black/20"}),(0,a.jsxs)("span",{className:"absolute top-3 left-3 inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-red-600 text-white text-xs font-semibold uppercase tracking-wide",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-white animate-pulse","aria-hidden":"true"}),"Live"]}),(0,a.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsx)("span",{className:"w-20 h-14 rounded-2xl bg-red-600 group-hover:bg-red-500 flex items-center justify-center shadow-2xl transition-colors",children:(0,a.jsx)("svg",{className:"w-8 h-8 text-white ml-1",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M8 5v14l11-7z"})})})}),(0,a.jsx)("span",{className:"absolute bottom-3 left-3 right-3 text-white text-sm font-medium line-clamp-2 drop-shadow",children:t.title})]})})}function h(e){let{streams:t,selectedVideoId:n,onSelect:r}=e;return(0,a.jsx)("div",{className:"flex gap-3 overflow-x-auto pb-2 scrollbar-hide",children:t.map(e=>(0,a.jsxs)("button",{onClick:()=>r(e),className:"flex-shrink-0 flex items-center gap-3 p-2 pr-4 rounded-xl border transition-all duration-200 ".concat(e.videoId===n?"border-red-500/50 bg-red-500/10":"border-white/[0.06] bg-white/[0.03] hover:border-white/15 hover:bg-white/[0.05]"),children:[(0,a.jsxs)("div",{className:"relative w-20 h-12 rounded-lg overflow-hidden bg-space-800 flex-shrink-0",children:[e.thumbnailUrl?(0,a.jsx)(l.default,{src:o(e.thumbnailUrl),alt:e.title,fill:!0,className:"object-cover",unoptimized:!0}):(0,a.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,a.jsx)("svg",{className:"w-6 h-6 text-white/30",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),(0,a.jsx)("span",{className:"absolute top-1 left-1 px-1.5 py-0.5 rounded bg-red-500 text-xs font-bold text-white leading-none",children:"LIVE"})]}),(0,a.jsxs)("div",{className:"text-left min-w-0",children:[(0,a.jsxs)("div",{className:"text-xs font-medium text-white truncate max-w-[140px] flex items-center gap-1.5",children:[e.channelName,"x"===e.platform?(0,a.jsx)("svg",{className:"w-3 h-3 text-white/60 flex-shrink-0",viewBox:"0 0 24 24",fill:"
1currentColor",children:(0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}):(0,a.jsx)("svg",{className:"w-3 h-3 text-red-400/60 flex-shrink-0",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814z"})})]}),(0,a.jsx)("div",{className:"text-xs text-slate-400 flex items-center gap-1 mt-0.5",children:"x"===e.platform?(0,a.jsx)("span",{children:"on X"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:[(0,a.jsx)("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"})]}),c(e.viewerCount)]})})]})]},e.videoId))})}function m(){let[e,t]=(0,r.useState)([]),[n,l]=(0,r.useState)(null),[o,d]=(0,r.useState)(null),[m,x]=(0,r.useState)(null),[p,f]=(0,r.useState)(""),[v,g]=(0,r.useState)(!1),[b,w]=(0,r.useState)(!1),[j,y]=(0,r.useState)(null);if((0,r.useEffect)(()=>{y(document.getElementById("livestream-slot-top"))},[]),(0,r.useEffect)(()=>{let e=!0,n=async()=>{try{let[a,r]=await Promise.all([fetch("/api/livestreams").catch(()=>null),fetch("/api/live").catch(()=>null)]);if(!e)return;if(null==a?void 0:a.ok){let e=(await a.json()).streams||[];t(e),e.length>0?l(t=>t&&e.find(e=>e.videoId===t.videoId)?t:e[0]):l(null)}if(null==r?void 0:r.ok){var n;let e=await r.json();e.nextStream&&d({title:e.nextStream.title||"Upcoming Launch",provider:e.nextStream.provider||"",scheduledTime:e.nextStream.scheduledTime});let t=(null==(n=e.liveNow)?void 0:n[0])||e.nextStream;x((null==t?void 0:t.id)?{id:t.id,name:t.launchName||t.title||"Launch discussion",launchDate:t.scheduledTime||null,isLive:!0===t.isLive}:null)}}catch(e){}finally{e&&g(!0)}};n();let a=setInterval(n,6e4);return()=>{e=!1,clearInterval(a)}},[]),(0,r.useEffect)(()=>{if(!(null==o?void 0:o.scheduledTime)||e.length>0)return void f("");let t=()=>{let e=Date.now(),t=new Date(o.scheduledTime).getTime()-e;if(t<=0)return void f("Starting soon...");let n=Math.floor(t/864e5),a=Math.floor(t%864e5/36e5),r=Math.floor(t%36e5/6e4),s=Math.floor(t%6e4/1e3),l=[];n>0&&l.push("".concat(n,"d")),l.push("".concat(a,"h")),l.push("".concat(r,"m")),l.push("".concat(s,"s")),f(l.join(" "))};t();let n=setInterval(t,1e3);return()=>clearInterval(n)},[o,e.length]),!v)return null;if(0===e.length){let e=(null==o?void 0:o.scheduledTime)?(new Date(o.scheduledTime).getTime()-Date.now())/36e5:1/0,t=e<=6&&e>0,n=e<=0;return b?null:o&&p&&(e<=48&&e>0||n)?(0,a.jsx)("section",{className:"relative z-10",children:(0,a.jsxs)("div",{className:"relative overflow-hidden bg-gradient-to-r from-indigo-950 via-[#0c0a20] to-cyan-950 border-b border-white/[0.08]",children:[(0,a.jsx)("button",{onClick:()=>w(!0),className:"absolute top-3 right-3 z-20 w-8 h-8 flex items-center justify-center rounded-full bg-white/[0.06] hover:bg-white/[0.12] text-slate-400 hover:text-white transition-colors","aria-label":"Dismiss",children:(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,a.jsx)("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-indigo-500/[0.08] rounded-full blur-[120px] animate-pulse"}),(0,a.jsx)("div",{className:"absolute bottom-0 right-1/4 w-96 h-96 bg-cyan-500/[0.06] rounded-full blur-[120px]"}),t&&(0,a.jsx)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-red-500/[0.04] rounded-full blur-[150px] animate-pulse"}),(0,a.jsx)("div",{className:"relative container mx-auto px-4 py-8 md:py-10",children:(0,a.jsxs)("div",{className:"flex flex-col items-center text-center gap-5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("span",{className:"relative flex h-2.5 w-2.5",children:[(0,a.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ".concat(t?"bg-red-500":"bg-amber-400")}),(0,a.jsx)("span",{className:"relative inline-flex rounded-full h-2.5 w-2.5 ".concat(t?"bg-red-500":"bg-amber-400")})]}),(0,a.jsx)("span",{className:"text-xs font-bold uppercase tracking-widest ".concat(t?"text-red-400":"text-amber-400"),children:n?"Starting Soon":e<=1?"Launching in Under 1 Hour":t?"Launching in ".concat(Math.ceil(e)," Hours"):e<=24?"Launc
1hing Today":e<=48?"Launching Tomorrow":""})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-display font-bold text-white leading-tight",children:["Watch ",o.title," Live"]}),o.provider&&(0,a.jsx)("p",{className:"text-sm text-slate-400 mt-1.5",children:o.provider})]}),(0,a.jsx)("div",{className:"flex items-center gap-3 sm:gap-4",children:p.split(" ").map((e,n)=>{let r=e.slice(0,-1),s=e.slice(-1);return(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("span",{className:"text-4xl sm:text-5xl md:text-6xl font-mono font-bold tabular-nums ".concat(t?"text-red-400":"text-white"),children:r.padStart(2,"0")}),(0,a.jsx)("span",{className:"text-xs sm:text-xs text-slate-500 uppercase tracking-wider mt-1",children:{d:"days",h:"hrs",m:"min",s:"sec"}[s]||s})]},n)})}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-3 mt-1",children:[(0,a.jsxs)("a",{href:"/live",className:"inline-flex items-center gap-2 px-6 py-3 rounded-xl text-sm font-semibold text-white transition-all ".concat(t?"bg-red-600 hover:bg-red-500 shadow-lg shadow-red-500/20":"bg-indigo-600 hover:bg-indigo-500 shadow-lg shadow-indigo-500/20"),children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})}),t?"Go to Live Page":"Set a Reminder"]}),(0,a.jsxs)("a",{href:"/ignition",className:"inline-flex items-center gap-2 px-6 py-3 rounded-xl bg-white/[0.06] border border-white/[0.08] text-sm font-medium text-white hover:bg-white/[0.1] hover:border-white/15 transition-all",children:["Moon Base Tracker",(0,a.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})})]})}):o&&p?(0,a.jsx)("section",{className:"relative z-10 py-6",children:(0,a.jsx)("div",{className:"container mx-auto px-4",children:(0,a.jsxs)("div",{className:"relative overflow-hidden rounded-2xl border border-white/[0.08] bg-gradient-to-br from-slate-900/80 via-space-900/60 to-indigo-950/40 backdrop-blur-sm",children:[(0,a.jsx)("div",{className:"absolute top-0 right-0 w-64 h-64 bg-indigo-500/[0.05] rounded-full blur-3xl"}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 w-48 h-48 bg-cyan-500/[0.05] rounded-full blur-3xl"}),(0,a.jsx)("div",{className:"relative p-6 md:p-8",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 flex-shrink-0",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"w-14 h-14 rounded-full bg-white/[0.05] border border-white/[0.08] flex items-center justify-center",children:(0,a.jsx)("svg",{className:"w-7 h-7 text-slate-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),(0,a.jsx)("span",{className:"absolute -top-0.5 -right-0.5 w-3.5 h-3.5 bg-amber-500 rounded-full border-2 border-slate-900"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-slate-300 uppercase tracking-wider",children:"Upcoming Launch"}),(0,a.jsx)("p",{className:"text-xs text-slate-500 mt-0.5",children:"Livestream coverage will begin automatically"})]})]}),(0,a.jsxs)("div",{className:"flex-1 text-center md:text-left",children:[(0,a.jsx)("p",{className:"text-sm text-slate-400 mb-1",children:"Next livestream expected"}),(0,a.jsxs)("h3",{className:"text-lg md:text-xl font-bold text-white mb-2 line-clamp-1",children:[o.title,o.provider&&(0,a.jsxs)("span",{className:"text-sm font-normal text-slate-400 ml-2",children:["\xb7 ",o.provider]})]}),(0,a.jsx)("div",{className:"flex items-center justify-center md:justify-start gap-2",children:p.split(" ").map((e,t)=>{let n=e.slice(0,-1),r=e.slice(-1);return(0,a.jsxs)("div",{className:"flex items-baseline gap-0.5",children:[(0,a.jsx)("span",{className:"text-2xl md:text-3xl font-mono font-bold text-white tabular-nums",children:n}),(0,a.jsx)("span",{className:"text-sm text-slate-500 font-medium",children:r})]},t)})})]}),(0,a.jsxs)("div",{className:"flex-shrink-0 flex flex-col gap-2",children:[(0,a.jsxs)("a",{href:"/live",className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-xl bg-white/[0.06] border border-white/[0.08] text-sm font-medium text-white hover:bg-white/[0.1] hover:border-white/15 transition-all",children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})}
1),"View Launch Schedule"]}),(0,a.jsx)("a",{href:"/mission-control",className:"inline-flex items-center justify-center gap-2 px-5 py-2.5 rounded-xl text-xs font-medium text-slate-400 hover:text-white transition-colors",children:"Mission Control â"})]})]})})]})})}):null}let N=n||e[0],k=e.length>1,S=e.some(e=>e.isMajorEvent),z=(0,a.jsxs)("section",{className:"relative z-10 py-6".concat(S?" major-event-live":""),children:[S&&(0,a.jsx)("div",{className:"h-0.5 mb-6 bg-gradient-to-r from-transparent via-amber-500 to-transparent"}),(0,a.jsxs)("div",{className:"container mx-auto px-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-5 flex-wrap",children:[(0,a.jsxs)("span",{className:"relative flex h-3 w-3",children:[(0,a.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-500 opacity-75"}),(0,a.jsx)("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-red-500"})]}),(0,a.jsx)("h2",{className:"text-xl md:text-2xl font-display font-bold text-white uppercase tracking-wider",children:S?"Major Event: Live":"Live Now"}),S&&(0,a.jsx)("span",{className:"px-2.5 py-1 rounded-full bg-amber-500/15 text-amber-300 text-xs font-bold uppercase tracking-widest border border-amber-500/30",children:"Flagship Coverage"}),(0,a.jsx)("div",{className:"flex-1 h-px bg-gradient-to-r from-red-500/40 to-transparent"})]}),k&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(h,{streams:e,selectedVideoId:N.videoId,onSelect:l})}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[(0,a.jsxs)("div",{className:"".concat(m?"lg:col-span-2":"lg:col-span-3"," space-y-4"),children:[(0,a.jsxs)("div",{className:"relative w-full bg-space-900 rounded-xl overflow-hidden border border-white/[0.08] shadow-lg shadow-black/20",children:["x"===N.platform?(0,a.jsx)("div",{className:"relative w-full",style:{paddingBottom:"56.25%"},children:(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-gradient-to-br from-slate-900 to-black p-6",children:[(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)("svg",{className:"w-12 h-12 text-white",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),(0,a.jsx)("p",{className:"text-white text-lg font-semibold mb-1 text-center line-clamp-2",children:N.title}),(0,a.jsxs)("p",{className:"text-slate-400 text-sm mb-4",children:["Live on X from @",N.channelId]}),(0,a.jsxs)("a",{href:N.watchUrl||N.embedUrl,target:"_blank",rel:"noopener noreferrer",className:"btn-secondary inline-flex items-center gap-2 px-6 py-3",children:[(0,a.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Watch on X"]})]})}):(0,a.jsx)(u,{stream:N}),(0,a.jsxs)("div",{className:"absolute top-3 left-3 z-10 flex items-center gap-2",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-red-600/90 text-white text-xs font-bold shadow-lg",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 bg-white rounded-full animate-pulse"}),"LIVE"]}),"x"===N.platform&&(0,a.jsxs)("span",{className:"flex items-center gap-1 px-2 py-1 rounded-md bg-black/80 text-white text-xs font-medium",children:[(0,a.jsx)("svg",{className:"w-3 h-3",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"X"]})]})]}),(0,a.jsxs)("div",{className:"card-glass p-4",children:[(0,a.jsx)("h3",{className:"text-base md:text-lg font-semibold text-white mb-1 line-clamp-2",children:N.title}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3 text-sm text-slate-400",children:[(0,a.jsx)("span",{className:"font-medium text-white/70",children:N.channelName}),"youtube"===N.platform&&(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsxs)("svg",{className:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 20 20",children:[(0,a.jsx)("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"})]}),c(N.viewerCount)," watching"]}),N.watchUrl&&(0,a.jsx)("a",{href:N.watchUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-white/50 hover:text-white transition-colors",children:"x"===N.platform?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"
1currentColor",children:(0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"Watch on X"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814z"})}),"Watch on YouTube"]})})]})]})]}),m&&(0,a.jsx)("div",{className:"lg:col-span-1",children:(0,a.jsx)(i.A,{eventId:m.id,eventName:m.name,launchDate:m.launchDate,isLive:m.isLive},m.id)})]})]})]});return S&&j?(0,s.createPortal)(z,j):z}},78699:(e,t,n)=>{"use strict";n.d(t,{$v:()=>i,Gw:()=>o,V_:()=>r,Xs:()=>a,cf:()=>l,z_:()=>s});let a={advertisement:"Advertisement",sponsored:"Sponsored",partnerContent:"Partner content",featured:"Featured",presentedBy:"Presented by",enhancedListing:"Enhanced listing (paid)"},r="The sponsor had no role in selecting, analysing or reviewing this data and did not see it before publication.",s=["/space-stocks","/markets-daily","/rankings","/report-cards","/moon","/reports/monthly","/chart","/promises","/funding-tracker","/tonight","/programs","/orbital-data-centers","/embed/space-score"];function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof document?void 0:document;return!e||!!e.querySelector('meta[name="'.concat("sn-sponsor-free",'"][content="1"]'))}let i=[{key:"weekly-economy-brief",label:"State of the Space Economy (weekly brief)",routes:["/ai-insights/[slug]"],insightSlugPrefix:"state-of-the-space-economy-"},{key:"whos-hiring",label:"Who's Hiring in Space (weekly)",routes:["/ai-insights/[slug]"],insightSlugPrefix:"whos-hiring-week-of-"},{key:"hiring-index",label:"Space Hiring Index (monthly)",routes:["/hiring-index","/hiring-index/[month]"]},{key:"launch-slips",label:"Launch Slip Index",routes:["/launch-slips"]},{key:"state-of-space-report",label:"State of the Space Industry report",routes:["/reports/state-of-space-2026"]},{key:"jobs-widget",label:"Embeddable jobs widget",routes:["/widgets/jobs"]}];i.map(e=>e.key);let o="sponsored noopener noreferrer"},87264:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,52619,23)),Promise.resolve().then(n.t.bind(n,81356,23)),Promise.resolve().then(n.bind(n,24437)),Promise.resolve().then(n.bind(n,36552)),Promise.resolve().then(n.bind(n,81410)),Promise.resolve().then(n.bind(n,21581)),Promise.resolve().then(n.bind(n,63342)),Promise.resolve().then(n.bind(n,18303)),Promise.resolve().then(n.bind(n,69584)),Promise.resolve().then(n.bind(n,80820)),Promise.resolve().then(n.bind(n,45830)),Promise.resolve().then(n.bind(n,12643)),Promise.resolve().then(n.bind(n,44503))}},e=>{e.O(0,[52619,36489,81356,82873,80820,12643,33310,45830,28703,81410,80422,28441,31255,77358],()=>e(e.s=87264)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.