(globalThis.TURBOPACK_remote_chunk_loading_global_prj_Ea8QNpCs22Ye85AIRZ6hT1aa8n7z||(globalThis.TURBOPACK_remote_chunk_loading_global_prj_Ea8QNpCs22Ye85AIRZ6hT1aa8n7z=[])).push(["object"==typeof document?document.currentScript:void 0,28679,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(30086),i=e.i(9694),a=e.i(4534),l=e.i(64864),s=e.i(52236),o=e.i(78213);let u={0:"text-fg-sev-none",1:"text-fg-sev-light",2:"text-fg-sev-moderate",3:"text-fg-sev-severe"},c={0:"bg-sev-none",1:"bg-sev-light",2:"bg-sev-moderate",3:"bg-sev-severe"},d={0:"bg-sev-none/16",1:"bg-sev-light/16",2:"bg-sev-moderate/16",3:"bg-sev-severe/16"},f={wind:r.Wind,snow:r.CloudSnow,rain:r.CloudRain,fog:r.CloudFog},h={cause:{Icon:r.AlertTriangle,text:"text-fg-sev-severe",label:"Fits"},maybe:{Icon:r.CircleAlert,text:"text-fg-sev-moderate",label:"Could add"},clear:{Icon:r.Check,text:"text-fg-sev-none",label:"Ruled out"},unknown:{Icon:r.CircleAlert,text:"text-fg-tertiary",label:"Unknown"}};function p({tint:e,children:n}){return(0,t.jsx)("span",{className:(0,s.cn)("flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-control",e),children:n})}function m({glyph:e,level:n}){if("inbound"===e)return(0,t.jsx)(r.InboundGlyph,{className:"size-7 text-plane"});if("storm"===e)return(0,t.jsx)(r.StormGlyph,{className:(0,s.cn)("size-7",u[n])});if("warning"===e)return(0,t.jsx)(r.WarningGlyph,{className:(0,s.cn)("size-7",u[n])});let i=f[e];return(0,t.jsx)(i,{size:18,strokeWidth:2.2,className:u[n],"aria-hidden":!0})}function g({level:e}){return(0,t.jsx)("div",{className:"flex shrink-0 flex-col gap-stack-xs","aria-hidden":!0,children:[3,2,1,0].map(n=>(0,t.jsx)("span",{className:(0,s.cn)("h-1.5 w-10 rounded-full",nl(e=>!e),className:"flex min-h-13 w-full press-97 cursor-pointer items-center gap-inline py-row-y text-left",children:[(0,t.jsx)(p,{tint:d[e.level],children:(0,t.jsx)(m,{glyph:"warning",level:e.level})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-card-title",children:e.title}),(0,t.jsx)("span",{className:"text-body-sm text-fg-secondary",children:c.verdict})]}),(0,t.jsx)("span",{className:(0,s.cn)("shrink-0 text-body-strong whitespace-nowrap tabular",u[e.level]),children:e.value}),(0,t.jsx)(r.ChevronRight,{size:16,strokeWidth:2.4,"aria-hidden":!0,className:(0,s.cn)("shrink-0 text-fg-tertiary transition-transform duration-base ease-standard",i?"rotate-270":"rotate-90")})]}),(0,t.jsx)(a.Reveal,{open:i,children:(0,t.jsx)(a.Rise,{children:(0,t.jsxs)("div",{id:o,className:"flex flex-col gap-stack pt-1 pb-3.5 pl-10",children:[e.times.map(e=>(0,t.jsxs)("p",{className:"text-verdict-note text-fg-secondary tabular",children:[e.label," was ",(0,t.jsx)("s",{className:"text-fg-tertiary",children:e.was}),", now"," ",(0,t.jsx)("span",{className:"font-semibold text-fg",children:e.now})]},e.label)),c.checks.map(e=>{let n=h[e.state];return(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(n.Icon,{size:16,strokeWidth:2.4,"aria-hidden":!0,className:(0,s.cn)("mt-0.5 shrink-0",n.text)}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsxs)("p",{className:"text-row-title",children:[e.title,(0,t.jsx)("span",{className:(0,s.cn)("ml-2 text-chip",n.text),children:n.label})]}),(0,t.jsx)("p",{className:"text-body-sm text-fg-secondary",children:e.detail})]})]},e.key)}),c.note&&(0,t.jsx)("p",{className:"rounded-control bg-surface-muted px-3 py-2.5 text-body-sm",children:c.note}),(0,t.jsx)("p",{className:"text-caption text-fg-tertiary",children:"Our read from live flight and FAA data. Airlines don’t share delay reasons in real time."})]})})})]})}e.s(["default",0,function({title:e="Delay Risk",level:n,note:c,riskLevel:f,updated:h,drivers:m,posted:b,historyNote:y}){let w=b?3:2;return(0,t.jsxs)(i.default,{title:e,meta:h&&(0,t.jsx)(l.Pill,{className:"px-2.5 py-1",children:h}),children:[(0,t.jsxs)("div",{"data-testid":"weather-risk","data-risk-level":f??"unknown","data-known-delay":b?.minutes,className:"flex items-center justify-between gap-inline-sm",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)("p",{className:(0,s.cn)("text-verdict",u[n]),children:o.LEVEL_WORD[n]}),(0,t.jsx)("p",{className:"text-verdict-note text-fg-secondary",children:c})]}),(0,t.jsx)(g,{level:n})]}),(0,t.jsxs)("div",{className:"flex flex-col divide-y divide-subtle border-t border-subtle",children:[b&&(0,t.jsx)(v,{posted:b}),m.map((e,n)=>(0,t.jsx)(a.Rise,{i:n+w,children:(0,t.jsx)(x,{d:e})},e.key)),!b&&0===m.length&&(0,t.jsxs)("div",{className:"flex min-h-13 items-center gap-inline py-row-y",children:[(0,t.jsx)(p,{tint:d[0],children:(0,t.jsx)(r.CircleCheck,{size:16,className:"text-sev-none"})}),(0,t.jsx)("span",{className:"flex-1 text-card-title",children:"No weather drivers"}),(0,t.jsx)("span",{className:"text-body-strong text-fg-sev-none",children:"Clear"})]})]}),y&&(0,t.jsx)("p",{"data-testid":"flight-history",className:"text-caption text-fg-secondary",title:"Late = cancelled or arrived 15+ minutes behind schedule. Source: BTS On-Time Performance.",children:y})]})}])},64720,e=>{"use strict";var t=e.i(43476),n=e.i(58785),r=e.i(26320),i=e.i(30086),a=e.i(71645),l=e.i(54719),s=e.i(78295),o=e.i(9875),u=e.i(52236),c=e.i(4534);let d={sun:"sun",moon:"moon",cloud:"cloud",rain:"rain",storm:"bolt",snow:"snow",fog:"fog",wind:"wind"},f={"partly-day":"cloud-sun","partly-night":"cloud-moon"},h=new Map;function p({kind:e,fallback:n,className:r}){let i=function(e){let t=d[e],n=f[e],[r,i]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let t;if(!n)return;let r=!0;return(!(t=h.get(n))&&(t=fetch((0,o.withBase)(`/figma/${n}.svg`)).then(e=>e.ok?e.text():"").then(e=>[...e.matchAll(/]*\sd="([^"]+)"/g)].map(e=>e[1])).catch(()=>[]),h.set(n,t)),t).then(t=>r&&i({kind:e,paths:t})),()=>{r=!1}},[n,e]),t)?(0,l.subpaths)(s.FLINT_PATHS[t]):r?.kind===e&&r.paths.length?r.paths:null}(e),m=(0,a.useRef)(null),g=(0,l.animIconIdle)(e);return((0,a.useLayoutEffect)(()=>{let e=m.current;if(!e||(0,c.reducedMotion)())return;let t=l.ANIM_ICON,n=[],r=[...e.querySelectorAll("[data-stroke]")],i=r.map(e=>e.getTotalLength()),a=i.indexOf(Math.max(...i)),s=[r[a],...r.filter((e,t)=>t!==a)];s.forEach((e,r)=>n.push(e.animate([{strokeDashoffset:1,opacity:0},{opacity:1,offset:.01},{strokeDashoffset:0,opacity:1}],{duration:r?t.part.durationMs:t.body.durationMs,delay:r?t.part.delayMs+(r-1)*t.part.staggerMs:0,easing:(0,c.bezier)(r?t.part.ease:t.body.ease),fill:"backwards"})));let o={iterations:l.LOOP_RUNS};if("spin"===g)n.push(e.animate([{rotate:"0deg"},{rotate:"360deg"}],{...o,duration:t.spin.durationMs,delay:t.spin.delayMs}));else if("drift"===g){let r=t.drift.px*e.getBoundingClientRect().width/24;n.push(e.animate([{translate:"0 0",easing:"ease-in-out"},{translate:`${r}px 0`,easing:"ease-in-out"},{translate:"0 0"}],{...o,duration:t.drift.durationMs,delay:t.drift.delayMs}))}else if("rain"===g)s.slice(1).forEach((e,r)=>n.push(e.animate([{translate:`0 ${t.fall.from}px`,opacity:0},{opacity:1,offset:.3},{translate:`0 ${t.fall.to}px`,opacity:0}],{...o,duration:t.fall.durationMs,delay:t.fall.delayMs+r%3*t.fall.staggerMs,easing:"ease-in"})));else{let r=e.querySelector("[data-glow]");r&&n.push(r.animate([{opacity:0,easing:"ease-in-out"},{opacity:t.glow.opacity,easing:"ease-in-out"},{opacity:0}],{...o,duration:t.glow.durationMs,delay:t.glow.delayMs}))}return()=>n.forEach(e=>e.cancel())},[i,g]),i)?(0,t.jsxs)("svg",{ref:m,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:(0,u.cn)("overflow-visible",r),children:["glow"===g&&(0,t.jsx)("path",{"data-glow":!0,d:i[0],strokeWidth:l.ANIM_ICON.glow.width,className:"stroke-sev-light",opacity:0}),i.map((e,n)=>(0,t.jsx)("path",{"data-stroke":!0,d:e,pathLength:1,strokeDasharray:"1 1"},n))]}):(0,t.jsx)(t.Fragment,{children:n})}var m=e.i(9694),g=e.i(64864),x=e.i(36966),v=e.i(81614);let b={sun:i.Sun,moon:i.Moon,"partly-day":i.CloudSun,"partly-night":i.CloudMoon,cloud:i.Cloud,rain:i.CloudRain,storm:i.CloudLightning,snow:i.CloudSnow,fog:i.CloudFog,wind:i.Wind},y={success:"bg-success-subtle text-fg-success",neutral:"bg-surface-muted text-fg-secondary",warning:"bg-warning-subtle text-fg-warning",danger:"bg-danger-subtle text-fg-danger"},w={unknown:"bg-surface-sunken",vfr:"bg-fc-vfr",mvfr:"bg-fc-mvfr",ifr:"bg-fc-ifr",lifr:"bg-fc-lifr"};function N(e,t,n,r){let i=e.slice(t,n+1).map((e,n)=>`${(t+n)*r+r/2},${e}`);return 0===t&&i.unshift(`0,${e[0]}`),n===e.length-1&&i.push(`${e.length*r},${e[n]}`),`M${i.join("L")}`}function j({title:e,icon:n,place:r,as:a="h2"}){return(0,t.jsxs)(a,{className:(0,u.cn)("flex items-center justify-between gap-inline","animate-fade-rise"),children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-inline-sm",children:[(0,t.jsx)(n,{className:(0,u.cn)("size-4 shrink-0 text-fg-secondary","animate-strip-plane"),style:{"--plane-dy":n===i.PlaneLanding?"-12px":"12px"},"aria-hidden":!0}),(0,t.jsx)("span",{className:"text-body-strong",children:e})]}),r&&(0,t.jsx)(g.Pill,{className:"shrink-0",children:r})]})}function A({title:e,verdict:s,category:o,hours:c,markerIndex:d,markerLabel:f}){var h;let m,g,j=(0,r.useUnits)(),k=d??0,[M,$]=(0,a.useState)(k),S=(0,a.useRef)(null),T=(m=Math.min(...h=c.map(e=>e.tempF)),g=Math.max(...h)-m||1,h.map(e=>18+(1-(e-m)/g)*20)),[E,L]=(0,a.useState)(v.STRIP_COL_W);(0,a.useLayoutEffect)(()=>{let e=S.current;if(!e)return;let t=()=>L((0,v.stripColumnWidth)(e.clientWidth));t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]),(0,a.useLayoutEffect)(()=>{let e=S.current;e&&(e.scrollLeft=(0,v.stripScrollFor)({index:k,colW:E,width:e.clientWidth,columns:c.length,inset:parseFloat(getComputedStyle(e).paddingLeft)||0}))},[k,E,c.length]);let R=c[M]??c[0];if(!R)return null;let{first:C,last:P,step:D}=(0,l.stripOpening)(k,c.length),I=e=>({"--hour-i":D(e)});return(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsxs)("div",{className:(0,u.cn)("flex items-start justify-between gap-inline-sm rounded-control px-3 py-2.5",y[s.tone],"animate-verdict-pop"),children:[(0,t.jsx)("p",{"data-testid":"forecast-verdict",className:"text-body-strong",children:s.text}),o&&(0,t.jsx)("span",{"data-testid":"flight-category",title:x.FLIGHT_CATEGORY_PRESENTATION[o].label,className:(0,u.cn)("shrink-0 rounded-inner px-1.5 py-px text-caption font-semibold text-fg-on-solid",w[o]),children:x.FLIGHT_CATEGORY_PRESENTATION[o].short})]}),(0,t.jsxs)("div",{ref:S,className:"hourly-strip-scope -mx-card scrollbar-none overflow-x-auto px-card",role:"group","aria-label":`${e}, hourly`,children:[(0,t.jsx)("div",{className:"mb-stack-sm flex",style:{width:c.length*E},"aria-hidden":!0,children:c.map((e,n)=>(0,t.jsx)("span",{className:(0,u.cn)("flex shrink-0 justify-center text-caption",n===d?"text-fg-interactive":"invisible","animate-hour-rise"),style:{width:E,...I(n)},children:f},e.key))}),(0,t.jsxs)("div",{className:"relative pt-stack pb-2",style:{width:c.length*E},children:[(0,t.jsx)("div",{"aria-hidden":!0,"data-testid":"strip-highlight",className:(0,u.cn)("absolute inset-y-0 left-0 rounded-control bg-surface-muted transition-transform duration-base ease-standard","animate-hour-rise"),style:{width:E,transform:`translateX(${M*E}px)`,...I(k)}}),(0,t.jsxs)("div",{className:"relative flex flex-col gap-stack-xs","aria-hidden":!0,children:[(0,t.jsx)("div",{className:"flex",children:c.map((e,n)=>{let r=b[e.icon],i=n===M;return(0,t.jsxs)("div",{className:"flex shrink-0 animate-hour-rise flex-col items-center gap-stack-xs",style:{width:E,...I(n)},children:[(0,t.jsx)("span",{className:(0,u.cn)("text-label tabular",i?"text-fg":"text-fg-secondary"),children:e.label}),i?(0,t.jsx)(p,{kind:e.icon,className:"size-6 text-fg",fallback:(0,t.jsx)(r,{className:"size-6 text-fg"})},`${n}-${e.icon}`):(0,t.jsx)(r,{className:"size-6 text-fg-secondary"})]},e.key)})}),(0,t.jsxs)("div",{className:"relative flex",style:{height:56},children:[(0,t.jsxs)("svg",{width:c.length*E,height:56,className:"absolute inset-y-0 left-0 overflow-visible",fill:"none",strokeWidth:2,children:[C>0&&(0,t.jsx)("path",{d:N(T,0,C,E),className:"stroke-interactive"}),(0,t.jsx)("path",{d:N(T,C,P,E),pathLength:1,strokeDasharray:"1 1",className:"animate-line-draw stroke-interactive"}),P{let i=r===M,a=T[r];return(0,t.jsxs)("div",{className:"relative shrink-0 animate-hour-rise",style:{width:E,height:56,...I(r)},children:[(0,t.jsx)("svg",{width:E,height:56,className:"absolute inset-0 overflow-visible",children:(0,t.jsx)("circle",{cx:E/2,cy:a,r:i?4.5:2.5,className:"animate-plot-in fill-interactive transition-all duration-base ease-standard"})}),(0,t.jsx)("span",{className:(0,u.cn)("absolute inset-x-0 animate-plot-in text-center text-body-sm tabular",i?"text-body-strong":"text-fg-secondary"),style:{top:a-24},children:(0,n.formatTemp)(e.tempF,j)})]},e.key)})]}),(0,t.jsx)("div",{className:"flex",children:c.map((e,r)=>(0,t.jsxs)("div",{className:"flex shrink-0 animate-hour-rise flex-col items-center gap-stack-xs",style:{width:E,...I(r)},children:[(0,t.jsxs)("span",{className:(0,u.cn)("flex items-center gap-0.5 text-caption tabular",(e.precipPct??0)>0?"text-fg-info":"text-fg-tertiary"),children:[(0,t.jsx)(i.Droplet,{className:(0,u.cn)("size-3 shrink-0",(e.precipPct??0)>0&&"fill-current")}),null!=e.precipPct?`${Math.round(e.precipPct)}%`:"—"]}),(0,t.jsxs)("span",{className:"flex items-center gap-1 text-caption text-fg-secondary tabular",children:[null!=e.windFromDeg&&(0,t.jsx)(i.WindDirection,{className:"h-2.5 w-2 shrink-0",style:{transform:`rotate(${e.windFromDeg+180}deg)`}}),null!=e.windMph?(0,n.formatMph)(e.windMph,j):"—"]})]},e.key))})]}),(0,t.jsx)("div",{className:"absolute inset-0 flex",children:c.map((e,r)=>(0,t.jsx)("button",{type:"button","aria-pressed":r===M,"aria-label":`${e.label}, ${e.condition}, ${(0,n.formatTemp)(e.tempF,j)}`,onClick:()=>$(r),className:"shrink-0 rounded-control",style:{width:E}},e.key))})]})]}),(0,t.jsxs)("dl",{"aria-live":"polite","data-testid":"strip-readout",className:(0,u.cn)("flex items-center justify-between rounded-control bg-surface-muted px-3 py-2 text-body-sm","animate-fade-rise"),style:{"--fade-delay":`${l.STRIP_OPENING.readoutDelayMs}ms`},children:[(0,t.jsx)("dt",{className:"sr-only",children:"Selected hour"}),(0,t.jsxs)("dd",{className:"sr-only",children:[R.label,", ",R.condition]}),[{label:"Vis",value:null==R.visMi?"—":void 0!==R.ceilingFt&&R.visMi>=6?"metric"===j?"10+ km":"6+ mi":(0,n.formatVisibility)(+R.visMi.toFixed(1),j),alert:null!=R.visMi&&R.visMi=30},{label:"Humidity",value:null!=R.humidity?`${R.humidity}%`:"—",alert:!1,warn:!1}].map(e=>(0,t.jsxs)("div",{className:"flex items-baseline gap-inline-xs",children:[(0,t.jsx)("dt",{className:"text-fg-secondary",children:e.label}),(0,t.jsx)("dd",{className:(0,u.cn)("animate-fade-in text-body-strong tabular",e.alert&&"text-fg-danger",e.warn&&"text-fg-warning"),children:e.value},M)]},e.label))]})]})}e.s(["HourlyStripBody",0,A,"StripHeader",0,j,"default",0,function({title:e,icon:n,place:r,...i}){return(0,t.jsxs)(m.default,{children:[(0,t.jsx)(j,{title:e,icon:n,place:r}),(0,t.jsx)(A,{title:e,...i})]})}],64720)},32193,e=>{"use strict";var t=e.i(43476),n=e.i(30086),r=e.i(81418);e.i(84616);var i=e.i(46194),a=e.i(21449),l=e.i(80635),s=e.i(91529),o=e.i(2586),u=e.i(82661),c=e.i(52518),d=e.i(26320),f=e.i(6256),h=e.i(79231);let p={car:n.Car,security:r.ShieldCheck,plane:n.Plane};e.s(["LEAVE_BY_ICON",0,p,"default",0,function({context:e,title:n="Be at the airport by"}){let r=(0,o.useNow)(3e4),m="flight-leg"===e.kind?e.data?.flight:null,g=(0,c.useTsaWaitInfo)(m?.origin.icao),x=(0,l.useAirportWeather)(m?.origin.icao),v=(0,u.useSatrad)(),b=(0,s.useDriveTime)(m?.origin.icao),y=(0,d.useUnits)();if((0,h.flightPending)(e))return(0,t.jsx)(h.default,{title:n,shape:"rows"});if(!m||null==r)return null;let w=(0,i.leaveByModel)({flight:m,nowMs:r,tsa:g,hourly:x?.hourly,drive:b.drive,driveAsk:b.ask,driveDistanceNm:b.distanceNm,units:y});if(!w)return null;let N=m.origin.iata??m.origin.icao;return(0,t.jsx)(f.default,{late:w.late,delayNote:w.delayNote,label:w.label,time:w.time,relative:w.relative,steps:w.steps.map(e=>({...e,icon:p[e.icon]})),assumptions:w.assumptions,credit:w.credit,onAddDrive:b.add,backdrop:{code:N,lat:m.origin.position.lat,lon:m.origin.position.lon,ts:v,time:v?(0,a.formatLocalTime)(1e3*v,m.origin.timezone):null}})}])},6256,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(81140),i=e.i(20783),a=e.i(30030),l=e.i(26330),s=e.i(3536),o=e.i(65491),u=e.i(10772),c=e.i(53660),d=e.i(74606),f=e.i(96626),h=e.i(48425),p=e.i(91918),m=e.i(69340),g=e.i(86312),x=e.i(85369),v=Object.defineProperty,b=(e,t)=>v(e,"name",{value:t,configurable:!0}),y="Popover",[w,N]=(0,a.createContextScope)(y,[c.createPopperScope]),j=(0,c.createPopperScope)(),[A,k]=w(y),M=b(e=>{let{__scopePopover:r,children:i,open:a,defaultOpen:l,onOpenChange:s,modal:o=!1}=e,d=j(r),f=n.useRef(null),[h,p]=n.useState(!1),[g,x]=(0,m.useControllableState)({prop:a,defaultProp:l??!1,onChange:s,caller:y});return(0,t.jsx)(c.Root,{...d,children:(0,t.jsx)(A,{scope:r,contentId:(0,u.useId)(),triggerRef:f,open:g,onOpenChange:x,onOpenToggle:n.useCallback(()=>x(e=>!e),[x]),hasCustomAnchor:h,onCustomAnchorAdd:n.useCallback(()=>p(!0),[]),onCustomAnchorRemove:n.useCallback(()=>p(!1),[]),modal:o,children:i})})},"Popover"),$=n.forwardRef(b(function(e,r){let{__scopePopover:i,...a}=e,l=k("PopoverAnchor",i),s=j(i),{onCustomAnchorAdd:o,onCustomAnchorRemove:u}=l;return n.useEffect(()=>(o(),()=>u()),[o,u]),(0,t.jsx)(c.Anchor,{...s,...a,ref:r})},"PopoverAnchor")),S=n.forwardRef(b(function(e,n){let{__scopePopover:a,...l}=e,s=k("PopoverTrigger",a),o=j(a),u=(0,i.useComposedRefs)(n,s.triggerRef),d=(0,t.jsx)(h.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":W(s.open),...l,ref:u,onClick:(0,r.composeEventHandlers)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?d:(0,t.jsx)(c.Anchor,{asChild:!0,...o,children:d})},"PopoverTrigger")),T="PopoverPortal",[E,L]=w(T,{forceMount:void 0}),R=b(e=>{let{__scopePopover:n,forceMount:r,children:i,container:a}=e,l=k(T,n);return(0,t.jsx)(E,{scope:n,forceMount:r,children:(0,t.jsx)(f.Presence,{present:r||l.open,children:(0,t.jsx)(d.Portal,{asChild:!0,container:a,children:i})})})},"PopoverPortal"),C="PopoverContent",P=n.forwardRef(b(function(e,n){let r=L(C,e.__scopePopover),{forceMount:i=r.forceMount,...a}=e,l=k(C,e.__scopePopover);return(0,t.jsx)(f.Presence,{present:i||l.open,children:l.modal?(0,t.jsx)(I,{...a,ref:n}):(0,t.jsx)(O,{...a,ref:n})})},"PopoverContent")),D=(0,p.createSlot)("PopoverContent.RemoveScroll"),I=n.forwardRef(b(function(e,a){let l=k(C,e.__scopePopover),s=n.useRef(null),o=(0,i.useComposedRefs)(a,s),u=n.useRef(!1);return n.useEffect(()=>{let e=s.current;if(e)return(0,g.hideOthers)(e)},[]),(0,t.jsx)(x.RemoveScroll,{as:D,allowPinchZoom:!0,children:(0,t.jsx)(F,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),u.current||l.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;u.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),O=n.forwardRef(b(function(e,r){let i=k(C,e.__scopePopover),a=n.useRef(!1),l=n.useRef(!1);return(0,t.jsx)(F,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||i.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let n=t.target;i.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})},"PopoverContentNonModal")),F=n.forwardRef(b(function(e,n){let{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:m,...g}=e,x=k(C,r),v=j(r);return(0,s.useFocusGuards)(),(0,t.jsx)(o.FocusScope,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:u,children:(0,t.jsx)(l.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:m,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:p,onDismiss:()=>x.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,t.jsx)(c.Content,{"data-state":W(x.open),role:"dialog",id:x.contentId,...v,...g,ref:n,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),_=n.forwardRef(b(function(e,n){let{__scopePopover:i,...a}=e,l=k("PopoverClose",i);return(0,t.jsx)(h.Primitive.button,{type:"button",...a,ref:n,onClick:(0,r.composeEventHandlers)(e.onClick,()=>l.onOpenChange(!1))})},"PopoverClose")),z=n.forwardRef(b(function(e,n){let{__scopePopover:r,...i}=e,a=j(r);return(0,t.jsx)(c.Arrow,{...a,...i,ref:n})},"PopoverArrow"));function W(e){return e?"open":"closed"}b(W,"getState"),e.s(["Anchor",0,$,"Arrow",0,z,"Close",0,_,"Content",0,P,"Popover",0,M,"PopoverAnchor",0,$,"PopoverArrow",0,z,"PopoverClose",0,_,"PopoverContent",0,P,"PopoverPortal",0,R,"PopoverTrigger",0,S,"Portal",0,R,"Root",0,M,"Trigger",0,S,"createPopoverScope",0,N],78761);var B=e.i(78761),B=B,H=e.i(30086),G=e.i(9694),V=e.i(58148),U=e.i(52236);function K(e,t,n){let r=2**n*256,i=Math.sin(e*Math.PI/180);return[(t+180)/360*r,(.5-Math.log((1+i)/(1-i))/(4*Math.PI))*r]}var Y=e.i(9875);let X=new Map;function Z(e){let t=X.get(e);return t||(t=fetch((0,Y.withBase)(`/basemap/${e}.json`)).then(e=>e.ok?e.json():null).catch(()=>null).then(t=>(t||X.delete(e),t)),X.set(e,t)),t}var q=e.i(82661),Q=e.i(4534);let J=`calc(100% - ${30}px) 53px`,ee=[{px:1.5,from:50,to:130},{px:3,from:110,to:210},{px:6,from:180,to:300}],et={width:420,height:240,transformOrigin:"390px 53px"};function en({lat:e,lon:r,ts:i}){let a=(0,Q.loopRuns)(),[l,s]=K(e,r,7),o=l-390,u=s-53,c=function(e){let t=e.join(","),[r,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=!0;return Promise.all(t.split(",").map(Z)).then(n=>{e&&i({id:t,cells:n.filter(e=>!!e)})}),()=>{e=!1}},[t]),r?.id===t?r.cells:null}(function(e,t){let n=e=>Math.min(15,Math.max(0,Math.floor(e/2048))),r=[];for(let i=n(e);i({...e,src:(0,q.satradTileUrl)(i,e.x,e.y,7)}));return(0,t.jsxs)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[(0,t.jsxs)("div",{className:"absolute top-0 right-0 animate-ken-burns opacity-75 mix-blend-multiply",style:{...et,...a},children:[c&&(0,t.jsxs)("svg",{className:"absolute inset-0 size-full animate-fade-in",viewBox:`${o} ${u} 420 240`,children:[(0,t.jsx)("rect",{x:o,y:u,width:420,height:240,className:"fill-surface-hero-deep/45"}),c.map((e,n)=>(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:e.land,fillRule:"evenodd",className:"fill-fg-on-solid"}),(0,t.jsx)("path",{d:e.urban,className:"fill-surface-hero-deep/18"}),(0,t.jsx)("path",{d:e.lakes,className:"fill-surface-hero-deep/45"}),(0,t.jsx)("path",{d:e.rivers,strokeWidth:.75,className:"fill-none stroke-surface-hero-deep/45"}),(0,t.jsx)("path",{d:e.roads,strokeWidth:.75,className:"fill-none stroke-surface-hero-deep/30"}),(0,t.jsx)("path",{d:e.states,strokeWidth:.75,className:"fill-none stroke-surface-hero-deep/35"}),(0,t.jsx)("path",{d:e.borders,className:"fill-none stroke-surface-hero-deep/60"})]},n))]}),d.map(e=>(0,t.jsx)("img",{src:e.src,alt:"",width:256,height:256,onLoad:e=>{e.currentTarget.dataset.loaded=""},className:"absolute max-w-none opacity-0 mix-blend-multiply transition-opacity duration-deliberate data-loaded:opacity-100",style:{left:e.left,top:e.top}},`${e.x}:${e.y}`))]}),ee.map(({px:e,from:n,to:r})=>(0,t.jsx)("div",{className:"absolute inset-0",style:{backdropFilter:`blur(${e}px)`,WebkitBackdropFilter:`blur(${e}px)`,maskImage:`radial-gradient(circle at ${J}, transparent ${n}px, black ${r}px)`}},e)),(0,t.jsx)("div",{className:"absolute top-0 right-0 animate-ken-burns",style:{...et,...a},children:(0,t.jsxs)("span",{className:"absolute",style:{left:390,top:53},children:[(0,t.jsx)("span",{className:"absolute -top-1.25 -left-1.25 size-2.5 rounded-full bg-fg-on-solid ring-3 ring-fg-on-solid/35"}),(0,t.jsx)("span",{className:"absolute -top-3.5 -left-3.5 size-7 animate-pin-ring rounded-full border-2 border-fg-on-solid/70",style:a})]})})]})}function er({code:e,time:n}){return(0,t.jsxs)("p",{className:"text-right text-stamp tabular",children:[e," · live satellite ",n]})}let ei="flex min-w-0 items-center gap-inline-sm rounded-tile bg-fg-on-solid/10 px-2.5 py-1.75 backdrop-blur-md @leave-by-tiles:flex-col @leave-by-tiles:items-stretch @leave-by-tiles:gap-px @leave-by-tiles:py-2";e.s(["default",0,function({label:e,time:n,relative:r,steps:i,assumptions:a,late:l=!1,delayNote:s,backdrop:o=null,credit:u,onAddDrive:c}){let d=i.find(e=>e.icon===H.Car);return(0,t.jsxs)(G.default,{className:"relative isolate overflow-hidden bg-linear-to-br from-surface-hero to-surface-hero-deep text-fg-on-solid [clip-path:inset(0_round_var(--radius-card))]",children:[o&&(0,t.jsx)(en,{...o}),(0,t.jsxs)("div",{className:"@container relative flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center gap-inline-sm text-overline-strong",children:[(0,t.jsx)(H.Car,{size:15,"aria-hidden":!0,className:"shrink-0"}),(0,t.jsx)("span",{className:"min-w-0",children:e}),(0,t.jsxs)(B.Root,{children:[(0,t.jsx)(B.Trigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","data-testid":"leave-by-info","aria-label":"What these times assume",className:"-my-1.5 flex size-6 shrink-0 press-92 items-center justify-center rounded-full focus-visible:ring-2 focus-visible:ring-fg-on-solid focus-visible:outline-none",children:(0,t.jsx)(H.Info,{size:14,"aria-hidden":!0})})}),(0,t.jsx)(B.Portal,{children:(0,t.jsx)(B.Content,{side:"bottom",align:"start",sideOffset:6,collisionPadding:16,className:"z-50 max-w-72 animate-fade-in rounded-control border border-subtle bg-surface-floating p-3 text-body-sm text-fg shadow-floating outline-none",children:a})})]})]}),(0,t.jsxs)("p",{className:"mt-0.5 flex flex-wrap items-baseline gap-x-2.5",children:[(0,t.jsx)("span",{"data-testid":"leave-by-time",className:(0,U.cn)("text-hero tabular",l&&"text-warning"),children:(0,t.jsx)(V.default,{value:n})}),(0,t.jsx)("span",{"data-testid":"leave-by-relative",className:"text-label tabular",children:(0,t.jsx)(V.default,{value:r})})]}),s&&(0,t.jsx)("p",{"data-testid":"leave-by-delay",className:"mt-1 text-body-sm",children:s}),(0,t.jsx)("ul",{className:"mt-2.5 flex flex-col gap-stack-xs @leave-by-tiles:flex-row @leave-by-tiles:gap-stack-sm",children:i.map(({icon:e,title:n,detail:r,addsDrive:i,busy:a})=>{let l=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e,{size:14,"aria-hidden":!0,className:"shrink-0 @leave-by-tiles:mb-0.5"}),(0,t.jsx)("span",{className:"shrink-0 truncate text-step tabular",children:n}),(0,t.jsx)("span",{className:"ml-auto line-clamp-2 min-w-0 text-right text-caption @leave-by-tiles:ml-0 @leave-by-tiles:text-left",children:r})]});return i&&c?(0,t.jsx)("li",{className:"flex min-w-0 @leave-by-tiles:flex-1",children:(0,t.jsx)("button",{type:"button","data-testid":"leave-by-add-drive","aria-busy":a,"aria-disabled":a,onClick:a?void 0:c,className:(0,U.cn)(ei,"w-full press-97 text-left hover:bg-fg-on-solid/15 focus-visible:ring-2 focus-visible:ring-fg-on-solid focus-visible:outline-none"),children:l})},"drive"):(0,t.jsx)("li",{className:(0,U.cn)(ei,"@leave-by-tiles:flex-1"),children:l},n)})}),(0,t.jsx)("p",{className:"sr-only","aria-live":"polite",children:d&&!d.busy?`${d.title}. ${d.detail}`:""}),(u||o?.time)&&(0,t.jsxs)("div",{className:"mt-stack flex flex-wrap items-baseline gap-x-inline-sm",children:[u&&(0,t.jsx)("p",{"data-testid":"leave-by-credit",className:"text-stamp",children:u}),o?.time&&(0,t.jsx)("div",{className:"ml-auto",children:(0,t.jsx)(er,{code:o.code,time:o.time})})]})]})]})}],6256)},57748,43640,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(30086),i=e.i(9694),a=e.i(4534),l=e.i(93195),s=e.i(52236),o=e.i(75019),u=e.i(55529),c=e.i(81614);let d={LGT:"light","LGT-MDT":"light-to-moderate",MDT:"moderate",SEV:"severe"};var f=e.i(58785);function h(e){let t=(e.turbulence?.timeline??[]).map(e=>({mile:(0,l.nmToMi)(e.distanceNm),level:(0,l.turbLevel)(e.level)})),n=[],r=-2;return t.forEach((e,i)=>{let a=e.level?l.RIDE_SEVERITY[e.level]:0;if(!a)return;let s=t[i-1],o=t[i+1],u=s?(s.mile+e.mile)/2:e.mile,c=o?(e.mile+o.mile)/2:e.mile,d=n[n.length-1];d&&r===i-1&&d.severity===a?d.endMile=c:n.push({severity:a,startMile:u,endMile:c}),r=i}),n}function p(e,t,n,r,i){let a=1e3*Math.round((0,l.routeAltitudeAt)(e,t)/1e3),s=a>0?(0,f.formatFeet)(a,r):"Ground",o=(0,l.minutesIntoFlight)(e,t),c=Date.parse(e.takeoffAt??"");if(null==o||!Number.isFinite(c))return s;let d=new Date(c+6e4*o).toISOString(),h=(0,u.formatClock)(d,n);if(!h)return s;let p=i&&t>=(0,l.routeMiles)(e)?(0,u.dayMarker)(e.takeoffAt,n,d,i):null;return`${h}${p?` ${p}`:""} \xb7 ${s}`}function m(e,t,n,r,i){return`${(0,f.formatMiles)(t,i)} of ${(0,f.formatMiles)((0,l.routeMiles)(e),i)}, ${n}: ${r}`}function g(e,t){let n=(0,f.formatFeet)((0,l.cruiseFeet)(e),t);return"assumed"===e.cruiseSource?`assumed cruise ${n}`:`cruising at ${n}`}function x(e,t){if(!e.advisories?.available)return{state:"unavailable"};let n=(0,o.advisoryHitsV1)(e);return 0===n.length?{state:"none",note:(0,o.routeHorizonNoteV1)(e)??"We checked the official pilot warnings along your route."}:{state:"hits",rows:n.map(e=>(function(e,t){let n;if("turbulence"===e.kind){let r,i,a,l=(r=e.summary.toLowerCase(),Object.values(d).sort((e,t)=>t.length-e.length).find(e=>RegExp(`\\b${e}\\b`).test(r))??null);n=`${l?`${(l[0]?.toUpperCase()??"")+l.slice(1).replace(/-/g," ")} bumps`:"Bumpy air"}${i=e.lowerFt?(0,f.formatFeet)(e.lowerFt,t):null,a=null!=e.upperFt?(0,f.formatFeet)(e.upperFt,t):null,i&&a?` between ${i} and ${a}`:a?` up to ${a}`:i?` above ${i}`:""}`}else{let r,i=(r=e.summary.match(/tops (above|to) FL(\d{2,3})/))?{above:"above"===r[1],ft:100*Number(r[2])}:null;n=i?`Storm clouds reaching ${i.above?"above ":""}${(0,f.formatFeet)(i.ft,t)}`:null!=e.upperFt?`Storm clouds reaching ${(0,f.formatFeet)(e.upperFt,t)}`:"Storm clouds"}return{key:`${e.id}-${e.startAt}`,kind:e.kind,source:e.source,title:"convective"===e.kind?"Thunderstorm warning":"Turbulence warning",body:"below"===e.relation?`${n}, below your cruising height.`:`${n}, ${e.when}.`}})(e,t))}}let v={takeoff:"Planes may need de-icing before takeoff.",landing:"Snow and ice can slow landings."},b={takeoff:"Strong winds can mean a bumpy climb and fewer runways in use.",landing:"Strong winds can mean a bumpy descent and fewer runways in use."},y={thunderstorms:{takeoff:"Storms can pause takeoffs.",landing:"Storms can pause landings."},snow:v,"freezing-precipitation":v,"low-visibility":{takeoff:"Low visibility spaces planes further apart, so takeoffs run slower.",landing:"Low visibility spaces planes further apart, so landings run slower."},gusts:b,wind:b};function w(e,t,n){let{kind:r}=e.verdict;if("success"===e.verdict.tone||"good"===r)return null;let i=y[r]?.[t];return{event:t,severity:l.TONE_SEVERITY[e.verdict.tone],neutral:"neutral"===e.verdict.tone,kind:r,title:e.verdict.text,body:`${e.code} \xb7 ${(0,c.hourLabelAt)(e.hour.validAt,n)}.${i?` ${i}`:""}`}}function N(e,t){let n=h(e);return 0!==n.length&&e.turbulence?{severity:Math.max(...n.map(e=>e.severity)),body:(0,o.routeHeadlineV1)(e,t),seatbelt:(0,o.seatbeltAdvised)(e)}:null}e.s(["airportRow",0,w,"bumpyRow",0,N,"chopStretches",0,h,"cruiseHint",0,g,"routeWeatherCard",0,function(e,t){return t?{state:"message",message:"Route weather is unavailable right now."}:e?"not-applicable"===e.status?{state:"none"}:"beyond-forecast"===e.status?{state:"message",message:o.BEYOND_FORECAST_MESSAGE}:"ok"===e.status&&e.turbulence&&(0,l.routeMiles)(e)?{state:"ready",result:e}:{state:"message",message:"Route weather is unavailable for this flight right now."}:{state:"loading"}},"scrubTag",0,p,"scrubValueText",0,m,"warningsSection",0,x],43640);let j=[10,20,30,40],A={0:"fill-sev-none",1:"fill-sev-light",2:"fill-sev-moderate",3:"fill-sev-severe"},k={0:"stroke-sev-none",1:"stroke-sev-light",2:"stroke-sev-moderate",3:"stroke-sev-severe"},M={0:"fill-sev-none/30",1:"fill-sev-light/30",2:"fill-sev-moderate/30",3:"fill-sev-severe/30"},$={0:"bg-sev-none",1:"bg-sev-light",2:"bg-sev-moderate",3:"bg-sev-severe"},S={0:"bg-sev-none/18 text-fg-sev-none",1:"bg-sev-light/18 text-fg-sev-light",2:"bg-sev-moderate/18 text-fg-sev-moderate",3:"bg-sev-severe/18 text-fg-sev-severe"},T="bg-surface-muted text-fg-secondary",E={unknown:r.CircleAlert,alert:r.CircleAlert,thunderstorms:r.CloudLightning,"low-visibility":r.CloudFog,"low-ceiling":r.Cloud,gusts:r.Wind,wind:r.Wind,snow:r.CloudSnow,"freezing-precipitation":r.CloudSnow,"heavy-rain":r.CloudRain},L={unknown:null,sigmet:"SIGMET",airmet:"AIRMET"},R=(e,t,n)=>Math.min(n,Math.max(t,e));function C({icon:e,tint:n,title:r,chip:i,titleTestId:a,children:l}){return(0,t.jsxs)("li",{className:"flex items-center gap-inline py-1.5",children:[(0,t.jsx)("span",{className:(0,s.cn)("flex size-8 shrink-0 items-center justify-center rounded-control",n),children:(0,t.jsx)(e,{className:"size-4","aria-hidden":!0})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("p",{className:"flex flex-wrap items-center gap-x-1.5 text-body-strong",children:[(0,t.jsx)("span",{"data-testid":a,children:r}),i]}),l&&(0,t.jsx)("div",{className:"text-body-sm text-fg-secondary",children:l})]})]})}function P({row:e}){return(0,t.jsx)(C,{icon:E[e.kind],tint:e.neutral?T:S[e.severity],title:e.title,titleTestId:`${e.event}-verdict`,children:e.body})}e.s(["default",0,function({result:e,originCode:u,destinationCode:c,originTz:d,destinationTz:f,takeoff:v,landing:b,progressPct:y,units:E}){let D=(0,a.loopRuns)(),I=(0,l.routeMiles)(e),O={takeoff:v,landing:b},[F,_]=(0,n.useState)(null),z=F??(0,l.defaultMile)(e,y,O),[W,B]=(0,n.useState)(!1),H=(0,n.useRef)(null),G=(0,n.useId)().replace(/[^\w-]/g,""),V=()=>{H.current&&window.clearTimeout(H.current.timer),H.current=null};(0,n.useEffect)(()=>V,[]);let U=e=>8+e/I*310,K=e=>142-Math.min(e,l.CHART_TOP_FT)/l.CHART_TOP_FT*112,Y=t=>[U(t),K((0,l.routeAltitudeAt)(e,t))],X=(e,t)=>{let n=[e];for(let r=1;re&&i{let[n,r]=Y(e);return`${t?"L":"M"}${n.toFixed(1)} ${r.toFixed(1)}`}).join(" ")},Z=(0,l.statusAtMile)(e,z,O),q=p(e,z,d,E,f),Q=(0,l.hazardBands)(e),J=h(e),[ee,et]=Y(z),en=R(ee,70,256),er=[[v,l.END_AT.takeoff],[b,l.END_AT.landing]].flatMap(([e,t])=>{let n=l.TONE_SEVERITY[e?.verdict.tone??"success"];return e&&n?[{x:8+310*t,big:Math.min(3,n+ +("thunderstorms"===e.verdict.kind)),small:Math.max(0,n-1)}]:[]}),ei=x(e,E),ea=N(e,E),el=v&&w(v,"takeoff",d),es=b&&w(b,"landing",f),eo=(e,t)=>{let n=e.getBoundingClientRect();_(R(((t-n.left)/n.width*326-8)/310*I,0,I))};return(0,t.jsxs)(i.default,{title:"Route weather",meta:(0,t.jsxs)("span",{"data-testid":"route-profile-status",className:(0,s.cn)("inline-flex shrink-0 items-center gap-1 rounded-full px-2 py-1 text-label whitespace-nowrap",S[Z.severity]),children:[(0,t.jsx)("span",{className:(0,s.cn)("size-2 shrink-0 rounded-full",$[Z.severity])}),Z.short]}),children:[(0,t.jsx)("div",{role:"slider",tabIndex:0,"aria-label":"Move along the route","aria-valuemin":0,"aria-valuemax":Math.round(I),"aria-valuenow":Math.round(z),"aria-valuetext":m(e,z,q,[Z.label,...Z.also].join(". "),E),"data-testid":"route-profile-scrubber",className:"cursor-grab touch-pan-y rounded-control outline-none select-none focus-visible:outline-2 focus-visible:outline-focus active:cursor-grabbing",onPointerDown:e=>{if(V(),"touch"!==e.pointerType){e.currentTarget.setPointerCapture(e.pointerId),eo(e.currentTarget,e.clientX);return}let t=e.currentTarget,{pointerId:n,clientX:r,clientY:i}=e;H.current={id:n,x:r,y:i,timer:window.setTimeout(()=>{H.current=null,t.setPointerCapture(n),eo(t,r)},260)}},onPointerMove:e=>{e.currentTarget.hasPointerCapture(e.pointerId)?eo(e.currentTarget,e.clientX):H.current?.id===e.pointerId&&Math.hypot(e.clientX-H.current.x,e.clientY-H.current.y)>8&&V()},onPointerUp:V,onPointerCancel:V,onContextMenu:e=>e.preventDefault(),onKeyDown:e=>{let t=I/50,n={ArrowRight:z+t,ArrowUp:z+t,ArrowLeft:z-t,ArrowDown:z-t,PageUp:z+I/10,PageDown:z-I/10,Home:0,End:I};e.key in n&&(e.preventDefault(),_(R(n[e.key],0,I)))},children:(0,t.jsxs)("svg",{viewBox:"0 0 326 150",className:"w-full","aria-hidden":!0,children:[(0,t.jsxs)("defs",{children:[(0,t.jsx)("filter",{id:`soft-${G}`,x:"-20%",y:"-20%",width:"140%",height:"140%",children:(0,t.jsx)("feGaussianBlur",{stdDeviation:"4"})}),(0,t.jsx)("filter",{id:`blob-${G}`,x:"-100%",y:"-100%",width:"300%",height:"300%",children:(0,t.jsx)("feGaussianBlur",{stdDeviation:"9"})})]}),j.map(e=>(0,t.jsx)("line",{x1:8,x2:318,y1:K(1e3*e),y2:K(1e3*e),className:"stroke-(--border-color-subtle)",strokeWidth:1},e)),(0,t.jsx)("line",{x1:8,x2:318,y1:142,y2:142,className:"stroke-(--border-color-subtle)",strokeWidth:1}),er.map(e=>(0,t.jsxs)("g",{filter:`url(#blob-${G})`,opacity:.75,children:[(0,t.jsx)("circle",{cx:e.x,cy:108,r:20,className:A[e.big]}),(0,t.jsx)("circle",{cx:e.x+8,cy:128,r:14,className:A[e.small]})]},e.x)),Q.map(e=>{let n=U(e.startMile),r=K(e.upperFt),i=Math.max(10,U(e.endMile)-n),a=Math.max(8,K(e.lowerFt)-r),o=(0,l.advisorySeverity)(e),u="below"===e.relation&&"opacity-50";return(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{x:n,y:r,width:i,height:a,rx:10,filter:`url(#soft-${G})`,className:(0,s.cn)(3===o?"fill-sev-severe/40":"fill-sev-moderate/40",u)}),(0,t.jsx)("rect",{"data-testid":"hazard-band",x:n,y:r,width:i,height:a,rx:4,fill:"none",strokeWidth:1,strokeDasharray:"3 2",className:(0,s.cn)(k[o],u)})]},e.id)}),(0,t.jsx)("path",{d:X(z,I),fill:"none",strokeWidth:2.2,strokeDasharray:"5 5",className:"stroke-fg-tertiary"}),(0,t.jsx)("path",{d:X(0,z),fill:"none",strokeWidth:3,strokeLinecap:"round",className:"stroke-fg"}),J.map((n,r)=>{let i=U(n.startMile)+4,a=U(n.endMile)-4;if(a-iArray.from({length:2*u+1},(t,n)=>`${n?"L":"M"}${(i+(a-i)*n/(2*u)).toFixed(1)} ${(o+e+(n%2?-2.5:2.5)).toFixed(1)}`).join(" ");return(0,t.jsxs)("g",{"data-testid":"chop-stretch",fill:"none",strokeWidth:1.6,strokeLinejoin:"round",className:(0,s.cn)("animate-chop-bob",k[n.severity]),style:{"--bob-delay":`${200*r}ms`,...D},children:[(0,t.jsx)("path",{d:c(-3)}),(0,t.jsx)("path",{d:c(3)})]},n.startMile)}),(0,t.jsx)("line",{x1:ee,x2:ee,y1:6,y2:142,strokeWidth:1,className:"stroke-fg-tertiary"}),(0,t.jsx)("circle",{cx:ee,cy:et,r:11,className:(0,s.cn)("origin-center animate-ring transform-fill",M[Z.severity]),style:D}),(0,t.jsx)("circle",{cx:ee,cy:et,r:5.5,strokeWidth:2,className:"fill-fg stroke-surface"}),(0,t.jsx)("rect",{x:en-68,y:3,width:136,height:22,rx:11,className:"fill-surface-muted"}),(0,t.jsx)("text",{"data-testid":"route-profile-tag",x:en,y:14,textAnchor:"middle",dominantBaseline:"central",fontSize:11.5,fontWeight:600,className:"fill-fg tabular",children:q})]})}),(0,t.jsxs)("div",{className:"-mt-1 flex items-baseline justify-between",children:[(0,t.jsx)("span",{className:"text-body-strong font-bold",children:u}),(0,t.jsxs)("span",{className:"flex-1 px-4 text-center text-caption text-fg-tertiary",children:["Hold and drag to scrub the flight · ",g(e,E)]}),(0,t.jsx)("span",{className:"text-body-strong font-bold",children:c})]}),(0,t.jsxs)("section",{className:"flex flex-col gap-stack-xs border-t border-subtle pt-stack-sm",children:[(0,t.jsxs)("button",{type:"button","aria-expanded":W,onClick:()=>B(e=>!e),className:"flex press-95 items-center gap-1 self-start text-overline text-fg-tertiary",children:["Pilot weather warnings",(0,t.jsx)("span",{className:"sr-only",children:": what these are"}),(0,t.jsx)(r.CircleAlert,{className:"size-3",strokeWidth:2.4,"aria-hidden":!0})]}),(0,t.jsx)(a.Reveal,{open:W,children:(0,t.jsxs)(a.Rise,{className:"flex flex-col gap-stack-2xs rounded-tile bg-surface-muted px-3 py-2.5",children:[(0,t.jsx)("p",{className:"text-body-sm font-semibold",children:"What these are"}),(0,t.jsx)("p",{className:"text-body-sm text-fg-secondary",children:"Official warnings sent to pilots. A SIGMET flags serious weather for every plane, like severe turbulence, icing or big storms. An AIRMET is milder and matters mostly for small planes. Airlines plan around both, so a warning on your route can mean a reroute or a bumpy patch, not a cancellation."})]})}),(0,t.jsxs)("ul",{className:"flex flex-col",children:["hits"===ei.state&&ei.rows.map(e=>{let n=(0,l.advisorySeverity)(e),i=L[e.source];return(0,t.jsx)(C,{icon:"convective"===e.kind?r.CloudLightning:r.Wind,tint:S[n],title:e.title,chip:i&&(0,t.jsx)("span",{className:(0,s.cn)("rounded-inner px-1.5 text-caption font-bold",S[n]),children:i}),children:e.body},e.key)}),"none"===ei.state&&(0,t.jsx)(C,{icon:r.Check,tint:S[0],title:"No warnings on your route",children:ei.note}),"unavailable"===ei.state&&(0,t.jsx)(C,{icon:r.CircleAlert,tint:T,title:"Couldn't check pilot warnings"}),el&&(0,t.jsx)(P,{row:el}),ea&&(0,t.jsxs)(C,{icon:r.Wind,tint:S[ea.severity],title:"Bumpy air forecast",children:[ea.body&&(0,t.jsx)("p",{children:ea.body}),ea.seatbelt&&(0,t.jsx)("p",{className:"text-fg",children:o.SEATBELT_ADVICE})]}),es&&(0,t.jsx)(P,{row:es})]})]}),(0,t.jsx)("p",{className:"text-caption text-fg-tertiary",children:l.PROFILE_NOTE})]})}],57748)},8116,e=>{"use strict";var t=e.i(43476),n=e.i(9694),r=e.i(64864),i=e.i(52236),a=e.i(94893);function l(e){if(null!=e&&0!==e)return e>0?"text-fg-danger":"text-fg-success"}function s({row:e}){let{deltaMin:n}=e;return(0,t.jsxs)("div",{"data-testid":"timetable-event",className:"flex items-center justify-between gap-inline py-2.5",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)("span",{className:"truncate text-body-strong",children:e.label}),(0,t.jsxs)("span",{"data-testid":"timetable-scheduled",className:"text-row-note text-fg-tertiary tabular",children:["Scheduled ",e.scheduled]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-stack-2xs",children:[(0,t.jsx)("span",{"data-testid":"timetable-predicted",className:(0,i.cn)("text-headline tabular",l(n)),children:e.predicted}),null!=n&&(0,t.jsx)(r.Pill,{tone:n>0?"danger":"success",className:"text-chip whitespace-nowrap",children:(0,a.formatDelta)(n)??"On time"})]})]})}function o({row:e}){return(0,t.jsxs)("div",{"data-testid":"timetable-taxi",className:"flex items-center justify-between gap-inline py-0.5 pl-3 text-body-sm text-fg-secondary",children:[(0,t.jsx)("span",{children:"Taxi"}),(0,t.jsxs)("span",{className:"tabular",children:[e.predicted,(0,t.jsxs)("span",{className:"text-fg-tertiary",children:[" · Scheduled ",e.scheduled]})]})]})}function u({total:e}){let n=null==e.deltaMin?null:(0,a.formatDelta)(e.deltaMin);return(0,t.jsxs)("div",{"data-testid":"timetable-total",className:"flex min-w-0 flex-1 flex-col gap-stack-2xs rounded-xl bg-surface-muted px-3 py-2.5",children:[(0,t.jsx)("span",{className:"text-row-note text-fg-tertiary",children:e.label}),(0,t.jsx)("span",{className:"text-headline tabular",children:e.predicted}),(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-inline-xs",children:[(0,t.jsxs)("span",{className:"text-row-note text-fg-tertiary tabular",children:["Scheduled ",(0,t.jsx)("span",{className:"whitespace-nowrap",children:e.scheduled})]}),n&&(0,t.jsx)("span",{"data-testid":"timetable-total-delta",className:(0,i.cn)("ml-auto text-row-stat whitespace-nowrap tabular",l(e.deltaMin)),children:n})]})]})}e.s(["default",0,function({title:e="Timetable",sections:r,totals:i}){return(0,t.jsxs)(n.default,{title:e,subtitle:"Scheduled, Estimated, and Predicted",children:[r.map(e=>(0,t.jsxs)(n.FlightCardSection,{className:"gap-0",children:[(0,t.jsx)("h3",{"data-testid":"timetable-section",className:"pb-stack-sm text-card-section text-fg-tertiary",children:e.label}),e.rows.map((e,n)=>"event"===e.kind?(0,t.jsx)(s,{row:e},n):(0,t.jsx)(o,{row:e},n))]},e.label)),(0,t.jsx)(n.FlightCardSection,{className:"flex-row gap-inline-sm",children:i.map(e=>(0,t.jsx)(u,{total:e},e.label))})]})}])},8150,e=>{"use strict";var t=e.i(43476),n=e.i(30086),r=e.i(9694);e.s(["default",0,function({lines:{title:e,detail:i}}){return(0,t.jsxs)(r.default,{className:"flex-row items-center gap-inline",children:[(0,t.jsx)(n.Clock,{className:"size-6 shrink-0","aria-hidden":!0}),(0,t.jsxs)("div",{"data-testid":"timezone-card",className:"flex min-w-0 flex-1 flex-col gap-stack-2xs",children:[(0,t.jsx)("p",{className:"text-title",children:e}),(0,t.jsx)("p",{className:"text-body-sm text-fg-secondary tabular",children:i})]})]})}])},30250,e=>{"use strict";var t=e.i(43476),n=e.i(9694),r=e.i(64864),i=e.i(30086),a=e.i(71645),l=e.i(52236),s=e.i(4534);let o={neutral:"text-fg-tertiary",success:"text-sev-none",moderate:"text-sev-moderate"},u={neutral:"text-fg",success:"text-fg-sev-none",moderate:"text-fg-sev-moderate"};e.s(["default",0,function({summary:e}){let c=function(e,t=900){let[n,r]=(0,a.useState)(0),i=(0,a.useRef)(0);return(0,a.useLayoutEffect)(()=>{if(!t||window.matchMedia("(prefers-reduced-motion: reduce)").matches){i.current=e,r(e);return}let n=i.current,a=performance.now(),l=0,s=o=>{let u=Math.min(1,(o-a)/t);i.current=n+(e-n)*(1-(1-u)**3),r(Math.round(i.current)),ucancelAnimationFrame(l)},[e,t]),n}(e.speed),d=(0,s.loopRuns)("start"),f="tailwind"===e.direction;return(0,t.jsxs)(n.default,{title:e.title,meta:(0,t.jsx)(r.Pill,{tone:e.tone,className:"py-1",children:e.pill}),children:[(0,t.jsxs)("div",{className:"flex items-center gap-inline",children:[(0,t.jsx)("span",{"data-testid":"winds-aloft-arrow",className:(0,l.cn)("flex shrink-0",!f&&"-scale-x-100"),children:(0,t.jsx)(i.WindArrow,{className:(0,l.cn)("h-6 w-18 animate-wind-flow",o[e.verdictTone]),style:d})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-center text-center",children:[(0,t.jsxs)("p",{"data-testid":"winds-aloft-verdict",className:(0,l.cn)("text-verdict-sm tabular",u[e.verdictTone]),children:[c," ",e.speedUnit," ",e.direction]}),(0,t.jsx)("p",{"data-testid":"winds-aloft-effect",className:"px-2 text-body text-balance text-fg-secondary",children:e.effect})]})]}),(0,t.jsx)("hr",{className:"border-subtle"}),(0,t.jsx)("dl",{className:"grid grid-cols-3 gap-inline",children:e.stats.map(e=>(0,t.jsxs)("div",{"data-testid":"winds-aloft-stat",className:"flex flex-col-reverse",children:[(0,t.jsx)("dt",{className:"text-stat-label text-fg-secondary uppercase",children:e.label}),(0,t.jsx)("dd",{className:"text-title tabular",children:e.value})]},e.label))})]})}],30250)},79231,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(65161),i=e.i(9694),a=e.i(4534);let{shimmerAfterMs:l,shimmerMs:s}=r.SKELETON;e.s(["default",0,function({title:e,shape:r}){let o=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=o.current;if(!e||(0,a.reducedMotion)())return;let t=[],n=window.setTimeout(()=>{t=[...e.querySelectorAll("[data-sk]")].map(e=>{let t=e.animate([{backgroundPosition:"-240px 0"},{backgroundPosition:"calc(100% + 240px) 0"}],{duration:s,iterations:1/0,easing:"linear"});return t.startTime=0,t})},l);return()=>{window.clearTimeout(n),t.forEach(e=>e.cancel())}},[]);let u=(e,n)=>(0,t.jsx)("span",{"data-sk":!0,"aria-hidden":"true",className:`block rounded-inner bg-surface-muted ${e} bg-[linear-gradient(90deg,transparent,color-mix(in_srgb,var(--color-fg)_7%,transparent),transparent)] bg-[length:240px_100%] bg-no-repeat`},n);return(0,t.jsx)("div",{ref:o,"data-card-skeleton":!0,role:"status","aria-label":`Loading ${e}`,children:(0,t.jsxs)(i.default,{title:"flight"===r?void 0:e,children:["flight"===r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[u("size-9 rounded-full"),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-stack-xs",children:[u("h-5 w-2/5"),u("h-2.5 w-1/3")]}),u("h-6 w-18 rounded-full")]}),[0,1].map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-stack-xs",children:[u("h-2.5 w-1/5"),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[u("h-9 w-2/5"),u("h-8 w-16")]}),u("h-2.5 w-1/3")]},e))]}),"text"!==r&&"stats"!==r&&"flight"!==r&&(0,t.jsxs)("div",{className:"flex flex-col gap-stack-xs",children:[u("h-7 w-2/5"),u("h-3 w-3/4")]}),"strip"===r&&(0,t.jsx)("div",{className:"grid grid-cols-6 gap-inline-sm",children:[0,1,2,3,4,5].map(e=>(0,t.jsxs)("div",{className:"flex flex-col items-center gap-stack-xs",children:[u("h-2.5 w-3/5"),u("size-6 rounded-full"),u("h-3 w-1/2")]},e))}),"bars"===r&&(0,t.jsx)("div",{className:"flex h-16 items-end gap-0.5",children:Array.from({length:12},(e,t)=>u("h-full flex-1",t))}),"meter"===r&&u("h-2 w-full rounded-full"),"rows"===r&&(0,t.jsx)("div",{className:"flex flex-col gap-stack-sm",children:[0,1,2].map(e=>u("h-8 w-full",e))}),"picture"===r&&u("h-36 w-full"),"stats"===r&&(0,t.jsx)("div",{className:"grid grid-cols-3 gap-inline",children:[0,1,2].map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-stack-xs",children:[u("h-7 w-3/5"),u("h-2.5 w-4/5")]},e))}),"text"===r&&(0,t.jsxs)("div",{className:"flex flex-col gap-stack-sm",children:[u("h-3 w-full"),u("h-3 w-11/12"),u("h-3 w-3/5")]})]})})},"flightPending",0,function(e){return"flight-leg"===e.kind&&!e.data?.flight&&e.data?.loading===!0}])},67795,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(52236),i=e.i(9875),a=e.i(10751);let l=new Set(["6E","A3","AA","AC","AD","AF","AI","AM","AR","AS","AT","AV","AY","AZ","B6","BA","BR","CA","CI","CM","CX","CZ","DL","DY","EI","EK","ET","EW","EY","F8","F9","FI","FR","G4","GA","HA","HU","HX","IB","JL","KE","KL","KQ","LA","LH","LO","LX","LY","MH","MS","MU","MX","NH","NZ","OS","OZ","PD","PR","QF","QR","SA","SK","SN","SQ","SV","SY","TG","TK","TP","TS","U2","UA","UX","VA","VB","VN","VS","VY","W6","WN","WS","WY","XP","Y4","YX"]),s={"6E":"#000099",A3:"#002677",AA:"#0078d2",AC:"#f01428",AD:"#014e84",AF:"#051039",AI:"#da0e29",AM:"#0b2343",AR:"#0078be",AS:"#01426a",AT:"#c20831",AV:"#da291c",AY:"#0b0b44",AZ:"#0b1560",B6:"#0000aa",BA:"#01122c",BR:"#007a4e",CA:"#e91d25",CI:"#23569d",CM:"#0032a0",CX:"#005d63",CZ:"#008bcb",DL:"#e01933",DY:"#e5212d",EI:"#006472",EK:"#d71921",ET:"#2e7d32",EW:"#871c54",EY:"#b08747",F8:"#8c0ac8",F9:"#006643",FI:"#102f6c",FR:"#073590",G4:"#01579b",GA:"#343c52",HA:"#5a2d82",HU:"#cb0303",HX:"#9b1b30",IB:"#d7192d",JL:"#cc0000",KE:"#051766",KL:"#00a1de",KQ:"#c8102e",LA:"#1b0088",LH:"#05164d",LO:"#252668",LX:"#cc0000",LY:"#1b358f",MH:"#14467b",MS:"#003067",MU:"#264f89",MX:"#051833",NH:"#00146e",NZ:"#008392",OS:"#d81e05",OZ:"#d60815",PD:"#112855",PR:"#001f60",QF:"#df0000",QR:"#5c0931",SA:"#163683",SK:"#000066",SN:"#e5002b",SQ:"#00266b",SV:"#00803e",SY:"#004785",TG:"#4a0f7a",TK:"#c90019",TP:"#00805e",TS:"#002855",U2:"#ff6600",UA:"#002244",UX:"#2d69e1",VA:"#e10a0a",VB:"#00ae42",VN:"#0685aa",VS:"#e10a0a",VY:"#fff000",W6:"#d74da5",WN:"#304cb2",WS:"#00a3ad",WY:"#00728e",XP:"#4c12a1",Y4:"#a12885",YX:"#1b365d",NK:"#ffec00","9E":"#de1634",MQ:"#260e62",OO:"#00529b"},o="#ffffff",u="#161616";function c(e){let[t,n,r]=[1,3,5].map(t=>{let n=parseInt(e.slice(t,t+2),16)/255;return nt-e);return(n+.05)/(r+.05)}let f={dark:["#161616","#262626"],light:["#f5f5f5","#ffffff"]},h={dark:o,light:u},p=new Map,m=new Map;e.s(["default",0,function({iata:e,size:c=36,className:g}){let x=function(e,t){let n=s[e];if(!n)return null;let r=`${t}|${e}`,i=p.get(r);!i&&(i=f[t].some(e=>1.5>d(n,e))?{bg:h[t],fg:n}:{bg:n,fg:d(n,o)>=d(n,u)?o:u},p.set(r,i));return i}(e,(0,a.useIsDark)()?"dark":"light"),v=l.has(e)?(0,i.withBase)(`/airlines/${e}.svg`):null,[b,y]=(0,n.useState)(null);(0,n.useEffect)(()=>{if(!v||m.has(v))return;let e=new Image;return e.onload=()=>m.set(v,!0),e.onerror=()=>{m.set(v,!1),y(v)},e.src=v,()=>{e.onload=null,e.onerror=null}},[v]);let w=v&&b!==v&&!1!==m.get(v)?`url(${v}) center / contain no-repeat`:null;return(0,t.jsx)("span",{"aria-hidden":"true","data-testid":"airline-logo",className:(0,r.cn)("grid shrink-0 place-items-center font-extrabold",!x&&"bg-surface-muted text-fg",g),style:{width:c,height:c,borderRadius:.26*c,fontSize:.36*c,background:x?.bg,color:x?.fg},children:w?(0,t.jsx)("span",{"data-testid":"airline-mark",className:"bg-current",style:{width:2*c/3,height:2*c/3,mask:w,WebkitMask:w}}):e})}],67795)},9224,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(20973),i=e.i(4534);e.s(["default",0,function({value:e}){let[a,l]=(0,n.useState)(null),s=(0,n.useRef)(e),o=(0,n.useRef)([]);return((0,n.useEffect)(()=>{let t=s.current;if(s.current=e,t===e||(0,i.reducedMotion)())return void l(null);let n=Math.max(t.length,e.length),a=t.toUpperCase().padEnd(n," ").split(""),u=e.toUpperCase().padEnd(n," ").split(""),c=[...a];l([...c]);let d=[],f=0;return u.forEach((e,t)=>{(0,r.flapSequence)(a[t],e,(0,r.flapSpins)()).forEach((e,n)=>{let a=t*r.FLAP_STAGGER_MS+n*r.FLAP_STEP_MS;f=Math.max(f,a),d.push(window.setTimeout(()=>{c[t]=e,l([...c]),o.current[t]?.animate([{transform:`perspective(${r.FLAP_TILT.perspectivePx}px) rotateX(${r.FLAP_TILT.deg}deg)`},{transform:"none"}],{duration:r.FLAP_STEP_MS,easing:(0,i.bezier)(r.FLAP_TILT.ease)})},a))})}),d.push(window.setTimeout(()=>l(null),f+r.FLAP_STEP_MS)),()=>d.forEach(clearTimeout)},[e]),a)?(0,t.jsx)("span",{"aria-label":e,className:"inline-flex",children:a.map((e,n)=>(0,t.jsx)("span",{ref:e=>{o.current[n]=e},"aria-hidden":"true",className:"inline-block whitespace-pre",style:{transformOrigin:"50% 60%"},children:e},n))}):(0,t.jsx)(t.Fragment,{children:e})}])},9694,64864,e=>{"use strict";var t=e.i(43476),n=e.i(52236);function r({children:e,className:i}){return(0,t.jsx)("h3",{className:(0,n.cn)("text-overline text-fg-secondary",i),children:e})}e.s(["FlightCardSection",0,function({label:e,children:i,className:a}){return(0,t.jsxs)("section",{className:(0,n.cn)("-mx-card flex flex-col gap-stack-sm border-t border-subtle px-card pt-stack",a),children:[null!=e&&(0,t.jsx)(r,{children:e}),i]})},"SectionLabel",0,r,"default",0,function({title:e,subtitle:r,meta:i,children:a,className:l}){return(0,t.jsxs)("article",{className:(0,n.cn)("flex flex-col gap-stack rounded-card bg-surface p-card text-fg",l),children:[(null!=e||null!=i)&&(0,t.jsxs)("header",{className:"flex items-start justify-between gap-inline",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-stack-2xs",children:[null!=e&&(0,t.jsx)("h2",{className:"text-card-title",children:e}),null!=r&&(0,t.jsx)("p",{className:"text-body-sm text-fg-secondary",children:r})]}),null!=i&&(0,t.jsx)("div",{className:"flex shrink-0 items-center text-caption text-fg-tertiary",children:i})]}),a]})}],9694);let i={neutral:"bg-surface-muted text-fg-secondary",interactive:"bg-interactive-subtle text-fg-interactive",premium:"bg-premium-subtle text-fg-premium",success:"bg-success-subtle text-fg-success",warning:"bg-warning-subtle text-fg-warning",danger:"bg-danger-subtle text-fg-danger",info:"bg-info-subtle text-fg-info"};e.s(["Pill",0,function({tone:e="neutral",icon:r,children:a,className:l}){return(0,t.jsxs)("span",{className:(0,n.cn)("inline-flex items-center gap-inline-xs rounded-full px-2 py-0.5 text-label tabular",i[e],l),children:[r&&(0,t.jsx)(r,{className:"size-3.5 shrink-0","aria-hidden":!0}),a]})},"StatCell",0,function({label:e,value:r,icon:i,align:a="start",labelVariant:l="caption",valueClassName:s,className:o}){return(0,t.jsxs)("div",{className:(0,n.cn)("flex flex-col gap-stack-2xs","end"===a&&"items-end text-right",o),children:[(0,t.jsx)("span",{className:(0,n.cn)("text-fg-secondary","overline"===l?"text-overline":"text-caption"),children:e}),(0,t.jsxs)("span",{className:(0,n.cn)("flex items-center gap-inline-xs text-body-strong tabular",s),children:[i&&(0,t.jsx)(i,{className:"size-4 shrink-0","aria-hidden":!0}),r]})]})}],64864)},94966,e=>{"use strict";var t=e.i(43476),n=e.i(30086),r=e.i(71645),i=e.i(65161),a=e.i(46168),l=e.i(39959),s=e.i(63445),o=e.i(52236),u=e.i(9694),c=e.i(67795),d=e.i(9224),f=e.i(85599),h=e.i(4534),p=e.i(522),m=e.i(58148),g=e.i(90741),x=e.i(70727);let v={neutral:"",success:"text-fg-success",warning:"text-fg-warning",danger:"text-fg-danger"};function b({icon:e,gate:n,missing:r="Gate not assigned"}){return n?(0,t.jsxs)("span",{className:"inline-flex h-[31px] items-center gap-1 rounded-lg bg-black px-2.5 text-xl font-bold tracking-tight text-white tabular shadow-[inset_0_0_0_1px_rgba(255,255,255,0.12)]",children:[(0,t.jsx)(e,{className:"size-[13px] shrink-0",strokeWidth:3,"aria-hidden":!0}),(0,t.jsx)(d.default,{value:n})]}):(0,t.jsx)("span",{className:"text-caption text-fg-tertiary",children:r})}function y({endpoint:e}){return(0,t.jsxs)("p",{className:"flex items-baseline gap-2",children:[(0,t.jsx)("span",{className:(0,o.cn)("text-display font-semibold tabular",v[e.delay.tone]),children:(0,t.jsx)(m.default,{value:e.time??i.LATE_VALUE.placeholder})}),e.changed&&(0,t.jsx)("span",{className:"text-caption text-fg-tertiary tabular line-through",children:e.scheduled})]})}function w({endpoint:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"data-testid":"overview-delay-label",className:(0,o.cn)("font-semibold",v[e.delay.tone]),children:e.delay.label}),e.relative?` • ${e.relative}`:""]})}let N="text-[10px] leading-[18px] font-semibold tracking-[1px] text-fg uppercase";function j({from:e,to:i,progress:l,moment:s,taxiing:u=!1,catchUp:c=null}){let d=Math.max(0,Math.min(1,l)),f=(0,r.useRef)(null),p=(0,r.useRef)(null),m=(0,r.useRef)(null),g=(0,r.useRef)(null),x=(0,r.useRef)(null),v=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{if(null==c||(0,h.reducedMotion)())return;let e={duration:a.CATCH_UP.durationMs,easing:(0,h.ease)("glide")};g.current?.animate([{flexGrow:c,offset:0}],e),x.current?.animate([{flexGrow:1-c,offset:0}],e)},[c]),(0,r.useLayoutEffect)(()=>{if(!s||v.current===s.id||(v.current=s.id,(0,h.reducedMotion)()))return;let e=`translateX(-${a.GATE_OUT.pushbackPx}px)`;if("gateOut"===s.kind&&f.current?.animate([{transform:"none"},{transform:e}],{duration:a.GATE_OUT.pushbackMs,delay:a.GATE_OUT.pushbackAt,easing:(0,h.ease)("glide"),fill:"backwards"}),"takeoff"===s.kind){let t=a.TAKEOFF,[n,r,i]=t.trailScale,l=`translateY(-${t.liftPx}px) rotate(-${t.pitchDeg}deg) scale(${t.liftScale})`;f.current?.animate([{transform:e},{transform:"none"}],{duration:t.rollMs,easing:(0,h.ease)("depart"),fill:"backwards"}),p.current?.animate([{transform:"none"},{transform:"none",offset:t.rotateAt/t.durationMs,easing:(0,h.ease)("spring")},{transform:l,offset:t.levelAt/t.durationMs,easing:(0,h.ease)("arrive")},{transform:"none",offset:t.settleAt/t.durationMs},{transform:"none"}],{duration:t.durationMs}),m.current?.animate([{opacity:0,transform:`scaleX(${n})`},{opacity:0,transform:`scaleX(${n})`,offset:t.trailFrom/t.durationMs},{opacity:1,transform:`scaleX(${r})`,offset:t.levelAt/t.durationMs},{opacity:0,transform:`scaleX(${i})`,offset:t.trailGoneAt/t.durationMs},{opacity:0,transform:`scaleX(${i})`}],{duration:t.durationMs})}if("landing"===s.kind){let e=a.LANDING;p.current?.animate([{transform:"none",easing:(0,h.ease)("glide")},{transform:`rotate(-${e.flareDeg}deg)`,offset:e.touchdownAt/e.durationMs,easing:(0,h.ease)("spring")},{transform:`translateY(${e.bouncePx}px) rotate(-${e.bounceDeg}deg)`,offset:e.bounceAt/e.durationMs},{transform:"none",offset:e.settledAt/e.durationMs},{transform:"none"}],{duration:e.durationMs})}},[s]),(0,t.jsxs)("div",{role:"progressbar","aria-label":`Flight progress, ${e} to ${i}`,"aria-valuenow":Math.round(100*d),"aria-valuemin":0,"aria-valuemax":100,className:"flex items-center gap-inline-sm",children:[(0,t.jsx)("span",{className:"text-tag text-fg-tertiary",children:e}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center",children:[(0,t.jsx)("div",{ref:g,"data-testid":"flight-progress",className:(0,o.cn)("h-[3px] basis-0 rounded-sm bg-info transition-[flex-grow] duration-1000","ease-glide"),style:{flexGrow:d}}),(0,t.jsx)("span",{ref:f,className:"inline-flex",style:u?{transform:`translateX(-${a.GATE_OUT.pushbackPx}px)`}:void 0,children:(0,t.jsxs)("span",{ref:p,className:"relative inline-flex",style:{transformOrigin:"55% 55%"},children:[(0,t.jsx)("span",{ref:m,"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 right-[60%] h-0.5 w-[30px] -translate-y-1/2 rounded-full bg-gradient-to-r from-transparent to-[color-mix(in_srgb,var(--color-fg-info)_75%,transparent)] opacity-0",style:{transformOrigin:"right center"}}),(0,t.jsx)(n.PlaneGlyph,{size:24})]})}),(0,t.jsx)("div",{ref:x,className:(0,o.cn)("h-px basis-0 bg-[var(--border-color-subtle)] transition-[flex-grow] duration-1000","ease-glide"),style:{flexGrow:1-d}})]}),(0,t.jsx)("span",{className:"text-tag text-fg",children:i})]})}function A({label:e,value:n}){return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-px",children:[(0,t.jsx)("span",{className:"text-stat-label text-fg-tertiary",children:e}),(0,t.jsx)("span",{className:"text-row-title tabular",children:n})]})}function k({m:e,from:i,to:a,moment:l,catchUp:s}){return(0,t.jsxs)("div",{"data-testid":"overview-in-flight",className:"flex flex-col gap-stack px-4 pt-3 pb-3.5",children:[(0,t.jsxs)("div",{"data-testid":"in-flight-landing",children:[(0,t.jsx)("p",{"data-testid":"in-flight-heading",className:N,children:(0,t.jsx)(m.default,{value:e.heading})}),(0,t.jsxs)("div",{className:"mt-px flex items-center justify-between gap-inline",children:[(0,t.jsx)("span",{"data-testid":"in-flight-countdown",className:"text-hero tabular",children:(0,t.jsx)(m.default,{value:e.hero})}),(0,t.jsx)(b,{icon:n.ArrowDownRight,gate:e.gate,missing:"Gate not assigned yet"})]}),(0,t.jsxs)("div",{className:"mt-1 flex items-center justify-between gap-inline tabular",children:[e.time&&(0,t.jsxs)("p",{"data-testid":"in-flight-arrival",className:"text-body-sm text-fg-secondary",children:[e.lead," ",(0,t.jsxs)("span",{className:(0,o.cn)("font-semibold",v[e.delay.tone]||"text-fg"),children:[e.time," · ",e.delay.label]})]}),e.place.length>0&&(0,t.jsx)("p",{className:"ml-auto text-caption text-fg-tertiary",children:e.place.map(({label:e,value:n},i)=>(0,t.jsxs)(r.Fragment,{children:[i>0&&" · ",e," ",(0,t.jsx)("b",{className:"font-semibold text-fg",children:n})]},e))})]})]}),(0,t.jsx)(j,{from:i,to:a,progress:e.progress,moment:l,taxiing:"taxiing"===e.stage,catchUp:s}),e.staleNote&&(0,t.jsxs)("p",{role:"status","data-testid":"stale-position",className:"flex items-start gap-inline-sm rounded-control bg-warning-subtle px-3 py-2 text-row-note text-fg-warning",children:[(0,t.jsx)(n.Clock,{className:"size-4 shrink-0","aria-hidden":!0}),e.staleNote]}),e.live&&(0,t.jsxs)("div",{"data-testid":"in-flight-live",className:"grid grid-cols-3 gap-inline border-t border-subtle pt-stack",children:[(0,t.jsx)(A,{label:"Altitude",value:e.live.altitude}),(0,t.jsx)(A,{label:"Speed",value:e.live.speed}),e.live.toGo&&(0,t.jsx)(A,{label:"To go",value:e.live.toGo})]})]})}e.s(["GateBadge",0,b,"HEADING",0,N,"default",0,function({overview:e,inFlight:d,status:m,actions:v,distance:j,children:A}){let{carrier:M,airline:$,number:S,dateLabel:T,chip:E,departureHeading:L,arrivalHeading:R,departure:C,arrival:P,duration:D,progress:I}=e,O=C.code,F=P.code,[_,z]=(0,r.useState)(()=>(0,a.seenStatus)(m));_.status!==m&&z((0,a.seeStatus)(_,m));let W=_.moment;(0,r.useEffect)(()=>{if(!W)return;let e=setTimeout(()=>z(a.endMoment),a.MOMENT_MAX_MS);return()=>clearTimeout(e)},[W]);let B=(0,s.progressKey)(e),H=d?d.progress:I,G=()=>(0,i.catchUpFrom)((0,l.lastSeenProgress)(B),H),[V,U]=(0,r.useState)(()=>({key:B,from:G()}));V.key!==B&&U({key:B,from:G()}),(0,r.useEffect)(()=>{(0,l.rememberProgress)(B,H)},[B,H]),(0,r.useEffect)(()=>{if(null==V.from)return;let e=window.setTimeout(()=>U(e=>({...e,from:null})),a.CATCH_UP.durationMs);return()=>clearTimeout(e)},[V]);let K=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{let e=V.from;null==e||(0,h.reducedMotion)()||K.current?.animate([{width:`${100*e}%`,offset:0}],{duration:a.CATCH_UP.durationMs,easing:(0,h.ease)("glide")})},[V]),(0,t.jsxs)(u.default,{className:"gap-0 p-0",children:[(0,t.jsxs)("header",{"data-testid":"flight-overview",className:"relative flex items-center gap-3 px-4 py-3.5",children:[(0,t.jsx)(c.default,{iata:M,size:36}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("h2",{className:"flex items-center gap-px text-title leading-[22px] font-semibold",children:[O,(0,t.jsx)(p.default,{children:(0,t.jsx)(n.PlaneGlyph,{size:28})}),(0,t.jsx)("span",{className:"sr-only",children:" to "}),F]}),(0,t.jsxs)("p",{className:"mt-px text-caption leading-[14px] text-fg-tertiary uppercase",children:[$," ",S,T?` • ${T}`:""]})]}),m&&(0,t.jsx)(g.default,{on:(0,a.seatbeltOn)(m),chime:W?.kind==="gateOut"||W?.kind==="atGate"}),(0,t.jsx)(x.default,{chip:E}),v]}),(0,t.jsx)("hr",{className:"mx-4 border-subtle"}),(0,t.jsx)(f.default,{swapKey:d?"in-flight":"ground",children:d?(0,t.jsx)(k,{m:d,from:O,to:F,moment:W,catchUp:V.from}):(0,t.jsxs)("div",{className:"flex flex-col gap-2 px-4 pt-3 pb-3.5",children:[(0,t.jsx)("p",{className:N,children:L}),(0,t.jsxs)("div",{"data-testid":"overview-departure",children:[(0,t.jsxs)("div",{className:"flex h-[35px] items-center justify-between",children:[(0,t.jsx)(y,{endpoint:C}),(0,t.jsx)(b,{icon:n.ArrowUpRight,gate:C.gate})]}),(0,t.jsxs)("div",{className:"mt-1 flex justify-between text-caption text-fg-tertiary tabular",children:[(0,t.jsx)("p",{children:(0,t.jsx)(w,{endpoint:C})}),C.terminal&&(0,t.jsxs)("p",{children:["Terminal"," ",(0,t.jsx)("b",{className:"font-semibold text-fg",children:C.terminal})]})]})]}),(0,t.jsxs)("div",{className:"flex h-[26px] items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[12px] whitespace-nowrap text-fg-tertiary",children:[D,j].filter(Boolean).join(" • ")}),(0,t.jsx)("div",{className:"relative h-px flex-1 bg-[var(--border-color-subtle)]",children:I>0&&(0,t.jsx)("div",{ref:K,"data-testid":"flight-progress",className:(0,o.cn)("absolute -top-px left-0 h-[3px] rounded-sm bg-fg-info transition-[width] duration-1000","ease-glide"),style:{width:`${100*Math.min(1,I)}%`}})})]}),(0,t.jsx)("p",{className:N,children:R}),(0,t.jsxs)("div",{"data-testid":"overview-arrival",children:[(0,t.jsxs)("div",{className:"flex h-[35px] items-center justify-between",children:[(0,t.jsx)(y,{endpoint:P}),(0,t.jsx)(b,{icon:n.ArrowDownRight,gate:P.gate})]}),(0,t.jsxs)("div",{className:"mt-1 flex justify-between text-caption text-fg-tertiary tabular",children:[(0,t.jsx)("p",{children:(0,t.jsx)(w,{endpoint:P})}),P.terminal&&(0,t.jsxs)("p",{children:["Terminal"," ",(0,t.jsx)("b",{className:"font-semibold text-fg",children:P.terminal})]})]})]})]})}),A&&(0,t.jsx)("div",{className:"px-4 pb-4 empty:hidden",children:A})]})}])},85599,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(13737),i=e.i(65161),a=e.i(4534);let{heightMs:l,fadeMs:s}=i.HEIGHT_SWAP;e.s(["default",0,function({swapKey:e,children:i}){let o=(0,n.useRef)(null),u=(0,n.useRef)(null),c=(0,n.useRef)(e);return(0,n.useLayoutEffect)(()=>{let t=o.current;if(!t)return;let n=u.current,i=t.offsetHeight;if(u.current=i,c.current===e)return;c.current=e;let d=(0,a.reducedMotion)();null==n||n===i||d||t.animate([{height:`${n}px`},{height:`${i}px`}],{duration:l,easing:(0,a.ease)("arrive")}),t.firstElementChild?.animate([{opacity:0},{opacity:1}],{duration:d?r.REDUCED_FADE_MS:s,easing:(0,a.ease)("glide")})}),(0,t.jsx)("div",{ref:o,className:"overflow-hidden",children:(0,t.jsx)("div",{children:i},e)})}])},522,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(46168),i=e.i(4534);e.s(["default",0,function({size:e=28,children:a}){let l=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{if((0,i.reducedMotion)()||!l.current)return;let e=r.PLANE_IN,t={duration:e.durationMs,delay:e.delayMs,easing:(0,i.bezier)(e.ease),fill:"both"},n=t=>`translate(${e.x[t]}px, ${e.y[t]}px) scale(${e.scale[t]})`;l.current.animate([{transform:n(0),opacity:0},{opacity:1,offset:e.opaqueAt},{transform:n(1),offset:e.moveAt},{transform:n(2),opacity:1}],t),s.current?.animate(e.contrail.opacity.map((t,n)=>({opacity:t,transform:`scaleX(${e.contrail.scaleX[n]})`,offset:[0,e.contrail.peakAt,1][n]})),t)},[]),(0,t.jsxs)("span",{className:"relative flex-none",style:{width:e,height:e},children:[(0,t.jsx)("span",{ref:s,"aria-hidden":"true",className:"pointer-events-none absolute right-[70%] h-0.5 w-[26px] rounded-[1px] bg-gradient-to-r from-transparent to-[color-mix(in_srgb,var(--color-fg-info)_70%,transparent)] opacity-0",style:{top:e/2-1,transformOrigin:"right center"}}),(0,t.jsx)("span",{ref:l,className:"block",children:a})]})}])},58148,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(13737),i=e.i(65161);function a(e){let t=e.trim(),n=/^(\d{1,2}):(\d{2})\s*([AP]M)?$/i.exec(t);if(n){let e=Number(n[1])%12;return n[3]?"PM"===n[3].toUpperCase()&&(e+=12):e=Number(n[1]),60*e+Number(n[2])}let r=/^(?:(\d+)\s*h)?\s*(?:(\d+)\s*m(?:in)?)?$/i.exec(t);if(r&&(r[1]||r[2]))return 60*Number(r[1]??0)+Number(r[2]??0);let i=/^-?\d+(?:[.,]\d+)?$/.test(t)?Number(t.replace(",",".")):NaN;return Number.isFinite(i)?i:null}var l=e.i(4534);let{inMs:s,outMs:o,charStaggerMs:u}={inMs:320,outMs:200,charStaggerMs:30};e.s(["default",0,function({value:e}){let c=(0,n.useRef)(e),[d,f]=(0,n.useState)(null),h=(0,n.useRef)(null),[p,m]=(0,n.useState)(0);if((0,n.useLayoutEffect)(()=>{if(c.current===e){c.current=e;return}if((0,i.lateValueArrives)(c.current,e)){f(null),m(e=>e+1),c.current=e;return}let t=function(e,t){if(e===t)return null;let n=a(e),r=a(t),i=Math.max(e.length,t.length),l=e.padStart(i,"\0"),s=t.padStart(i,"\0"),o=[],u=0;for(let e=0;e=i?"chars":"word",direction:null!=n&&null!=r&&r{let e=h.current;if(!d||!e)return;let t="up"===d.plan.direction?1:-1,n=(0,l.reducedMotion)(),i=[...e.querySelectorAll("[data-roll]")],a=i.flatMap((e,a)=>{let c=e.querySelector("[data-now]"),d=e.querySelector("[data-was]"),f=n?0:(i.length-1-a)*u,h=(e,t)=>n?[{opacity:+(0===e)},{opacity:+(0===t)}]:[{transform:`translateY(${e}%)`,opacity:+(0===e)},{transform:`translateY(${t}%)`,opacity:+(0===t)}];return[c?.animate(h(100*t,0),{duration:n?r.REDUCED_FADE_MS:s,delay:f,easing:(0,l.ease)("arrive"),fill:"both"}),d?.animate(h(0,-100*t),{duration:n?r.REDUCED_FADE_MS:o,delay:f,easing:(0,l.ease)("depart"),fill:"both"})].filter(e=>null!=e)}),c=!1;return Promise.all(a.map(e=>e.finished)).then(()=>{c||f(null)}).catch(()=>{}),()=>{c=!0}},[d]),!d&&p>0)return(0,t.jsx)("span",{className:"animate-late-in",children:e},p);if(!d)return(0,t.jsx)(t.Fragment,{children:e});let g=(e,n,r)=>(0,t.jsxs)("span",{"data-roll":!0,className:"relative inline-block overflow-hidden align-bottom whitespace-pre",children:[(0,t.jsx)("span",{"data-now":!0,className:"inline-block",children:e||"​"}),(0,t.jsx)("span",{"data-was":!0,"aria-hidden":"true",className:"absolute top-0 right-0 inline-block",children:n})]},r);return(0,t.jsx)("span",{ref:h,className:"whitespace-pre",children:"word"===d.plan.mode?g(e,d.from,"word"):d.plan.chars.map((e,n)=>e.changed?g(e.char,e.was,n):(0,t.jsx)("span",{children:e.char},n))})}],58148)},90741,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(13737),i=e.i(46168),a=e.i(52236),l=e.i(4534);e.s(["default",0,function({on:e,chime:s}){let o=(0,n.useRef)(null),u=(0,n.useRef)(null),[c,d]=(0,n.useState)(e),f=(0,n.useRef)(e);return((0,n.useLayoutEffect)(()=>{let t=f.current;if(f.current=e,e&&d(!0),t===e||!o.current){e||d(!1);return}let n=(0,l.reducedMotion)();if(e){o.current.animate(n?[{opacity:0},{opacity:1}]:[{opacity:0,transform:`scale(${i.SEATBELT.onScale})`},{opacity:1,transform:"none"}],{duration:n?r.REDUCED_FADE_MS:i.SEATBELT.onMs,easing:(0,l.ease)("spring"),fill:"both"}),s&&!n&&u.current?.animate([{opacity:i.SEATBELT.ringOpacity,transform:`scale(${i.SEATBELT.ringScale[0]})`},{opacity:0,transform:`scale(${i.SEATBELT.ringScale[1]})`}],{duration:i.SEATBELT.ringMs,delay:i.GATE_OUT.signOn,easing:(0,l.ease)("arrive")});return}d(!0),o.current.animate(s&&!n?[{transform:"none",opacity:1},{transform:`scale(${i.SEATBELT.chimeScale})`,opacity:1,offset:i.SEATBELT.chimeAt},{transform:"none",opacity:1,offset:i.SEATBELT.settleAt},{transform:"none",opacity:0}]:[{opacity:1},{opacity:0}],{duration:s&&!n?i.AT_GATE.hideAt:i.SEATBELT.offMs,easing:(0,l.ease)("standard"),fill:"both"}).finished.then(()=>d(!1)).catch(()=>{})},[e,s]),c)?(0,t.jsxs)("span",{role:"img","aria-label":"Seatbelt sign on","data-testid":"seatbelt-sign",className:"relative inline-grid size-6 shrink-0 place-items-center",children:[(0,t.jsx)("span",{ref:u,"aria-hidden":"true",className:"absolute inset-0 rounded-full border-[1.5px] border-fg-info opacity-0"}),(0,t.jsx)("span",{ref:o,className:(0,a.cn)("inline-grid place-items-center",e?"text-fg-info":"text-fg-tertiary"),children:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:"size-[18px]",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"13",cy:"4.5",r:"2",fill:"currentColor",stroke:"none"}),(0,t.jsx)("path",{d:"M13 8v6h4.5l1.5 6"}),(0,t.jsx)("path",{d:"M8.5 7v9.5h6"}),(0,t.jsx)("path",{d:"M9.5 12.5h7",strokeWidth:2.6})]})})]}):null}])},70727,e=>{"use strict";var t=e.i(43476),n=e.i(30086),r=e.i(4534),i=e.i(58148),a=e.i(52236);let l={scheduled:"bg-info-subtle text-fg-info",info:"bg-info-chip text-fg-info",success:"bg-success-chip text-fg-success",danger:"bg-danger-chip text-fg-danger",warning:"bg-warning-chip text-fg-warning",neutral:"bg-surface-muted text-fg-secondary"},s={scheduled:n.CalendarDays,updating:n.Clock,taxiing:n.Plane,returned:n.Clock,landed:n.CheckCircle2,late:n.Clock,"on-time":n.CheckCircle2,stale:n.Clock};e.s(["default",0,function({chip:e}){return(0,t.jsxs)("span",{"data-testid":"flight-status-chip",className:(0,a.cn)("inline-flex shrink-0 items-center gap-1 rounded-full px-2 py-1 text-chip whitespace-nowrap tabular",l["scheduled"===e.kind?"scheduled":e.tone]),children:[function(e){if("airborne"===e.kind)return(0,t.jsx)(r.LiveDot,{tone:"info",className:"mr-0.5"});let n=s[e.kind];return n?(0,t.jsx)(n,{className:e.check?"size-4 shrink-0":"size-3.5 shrink-0","aria-hidden":!0}):null}(e),(0,t.jsx)(i.default,{value:e.label})]})}])},39959,63445,e=>{"use strict";let t="flights.lastSeenProgress";function n(e){let n=()=>{try{let n=JSON.parse(e()?.getItem(t)??"{}");return n&&"object"==typeof n?n:{}}catch{return{}}};return{lastSeenProgress(e){let t=n()[e];return"number"==typeof t?t:null},rememberProgress(r,i){let a=n();delete a[r],a[r]=i;let l=Object.entries(a).slice(-30);try{e()?.setItem(t,JSON.stringify(Object.fromEntries(l)))}catch{}}}}e.s(["createLastSeenProgress",0,n,"progressKey",0,e=>`${e.identIcao}:${e.departure.code}:${e.dateLabel??""}`],63445);let{lastSeenProgress:r,rememberProgress:i}=n(()=>localStorage);e.s(["lastSeenProgress",0,r,"rememberProgress",0,i],39959)},84616,21449,e=>{"use strict";e.i(46194),e.s([],84616),e.i(55529),e.s(["formatLocalTime",0,function(e,t){try{return new Intl.DateTimeFormat("en-US",{timeZone:t,hour:"numeric",minute:"2-digit",hour12:!0}).format(new Date(e))}catch{return""}}],21449)},53297,e=>{"use strict";var t=e.i(71645),n=e.i(47401),r=e.i(81789),i=e.i(7386),a=e.i(73052),l=e.i(38160);function s(e){let t=t=>{(0,l.isItinerariesStorageKey)(t.key)&&e()};return window.addEventListener(i.ITINERARIES_CHANGED,e),window.addEventListener("storage",t),()=>{window.removeEventListener(i.ITINERARIES_CHANGED,e),window.removeEventListener("storage",t)}}let o=(0,t.createContext)(null);e.s(["SavedItinerariesOverride",0,o,"useSavedItineraries",0,function(){let e=(0,t.useContext)(o),[n,r]=(0,t.useState)([]);return(0,t.useEffect)(()=>{if(e)return;let t=()=>r((0,a.loadItineraries)());return t(),s(t)},[e]),e??n},"useTrackedItineraries",0,function(){let[e,l]=(0,t.useState)([]),o=(0,t.useRef)(e),u=e=>{o.current=e,l(e)};(0,t.useEffect)(()=>{let e=()=>u((0,a.loadItineraries)());return e(),s(e)},[]);let c=(0,t.useRef)(new Set);return(0,t.useEffect)(()=>{let e=!1,t=async()=>{if(document.hidden||Date.now()-(0,i.lastItinerariesSaveAt)()(0,r.refreshLegSnapshot)(i).then(r=>{r&&!e&&u(o.current.map(e=>e.id!==t?e:{...e,legs:e.legs.map(e=>e.id===i.id?(0,n.mergeSnapshotIntoLeg)(e,r):e)}))}).catch(()=>{})))};t();let l=setInterval(t,12e4),s=()=>{document.hidden||t()};return document.addEventListener("visibilitychange",s),()=>{e=!0,clearInterval(l),document.removeEventListener("visibilitychange",s)}},[]),e}])},80635,e=>{"use strict";var t=e.i(71645),n=e.i(51871),r=e.i(64891);e.s(["useAirportHazards",0,function(e){let i=(0,n.useStoreVersion)();return(0,t.useEffect)(()=>{e&&r.v1HazardsStore.ensure(e)},[e,i]),e?r.v1HazardsStore.get(e):null},"useAirportWeather",0,function(e){let i=(0,n.useStoreVersion)();return(0,t.useEffect)(()=>{e&&r.v1WeatherStore.ensure(e)},[e,i]),e?r.v1WeatherStore.get(e):null},"useAirportWeatherStatus",0,function(e){return(0,n.useLoadStatus)(r.v1WeatherStore,e)}])},91529,82661,e=>{"use strict";var t=e.i(71645),n=e.i(30374);let r={drive:null,distanceNm:null};e.s(["useDriveTime",0,function(e){let[i,a]=(0,t.useState)({icao:e,ask:"idle",...r}),l=i.icao===e?i:null,s=l?.ask??"idle",o=(0,t.useCallback)(()=>{var t;if(!e||"asking"===s)return;a({icao:e,ask:"asking",...r});let i="u"i.getCurrentPosition(async({coords:i})=>{let a=await t({airport:e,from:{lat:i.latitude,lon:i.longitude}});n(a.ok?a.data.drive?{ask:"idle",drive:{asOf:a.data.asOf,...a.data.drive},distanceNm:null}:{ask:"too-far",drive:null,distanceNm:a.data.distanceNm}:{ask:"failed",...r})},e=>n({ask:e.code===e.PERMISSION_DENIED?"declined":"failed",...r}),{maximumAge:3e5,timeout:15e3}))).then(t=>a(n=>n.icao===e?{icao:e,...t}:n))},[e,s]);return{drive:l?.drive??null,ask:s,distanceNm:l?.distanceNm??null,add:o}}],91529);let i="84a572b507ab4d74a572b507abed744b",a="https://api.weather.com/v3/TileServer",l=null,s=0;e.s(["satradTileUrl",0,function(e,t,n,r){return`${a}/tile/satrad?ts=${e}&xyz=${t}:${n}:${r}&apiKey=${i}`},"useSatrad",0,function(){let[e,n]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let e=!0,t=()=>void((!l||Date.now()-s>6e5)&&(s=Date.now(),l=fetch(`${a}/series/productSet/PPAcore?apiKey=${i}`).then(e=>e.ok?e.json():null).then(e=>e?.seriesInfo?.satrad?.series?.[0]?.ts??null).catch(()=>null).then(e=>(null==e&&(s=0),e))),l).then(t=>{e&&null!=t&&n(t)});t();let r=setInterval(t,6e5);return()=>{e=!1,clearInterval(r)}},[]),e}],82661)},52518,e=>{"use strict";var t=e.i(71645),n=e.i(64891),r=e.i(51871);e.s(["useTsaWaitInfo",0,function(e){let i=(0,r.useStoreVersion)();return(0,t.useEffect)(()=>{e&&n.v1TsaStore.ensure(e)},[e,i]),e?n.v1TsaStore.get(e):null},"useTsaWaitStatus",0,function(e){return(0,r.useLoadStatus)(n.v1TsaStore,e)}])},64891,e=>{"use strict";var t=e.i(56669),n=e.i(51871),r=e.i(30374);let i=["status","weather","hazards","impact","tsa","narratives","turbulence","capacity","deicing"],a=new Map,l=(0,n.createStore)({fetcher:async e=>{let[t="",n]=e.split("|"),l=await r.v1.airport(t,n);if(!l.ok){if("http"===l.reason&&l.status{e?l.ensure(`${e}|${t}`):(0,n.notifyStores)()})}async function u(e,t=(0,r.units)()){let n=e?await (0,r.icaoOf)(e):null;return n?l.load(`${n}|${t}`):null}function c(e,t=(0,r.units)()){if(!e)return null;let n=s(e,t);return n?l.status(n)?l.get(n):void 0:void 0===n?void 0:null}function d(e,t,n=(0,r.units)()){let i=e?s(e,n):null,a=i?l.status(i):null;if(!i||!a)return null;let o=l.get(i),u=o?.goodAt[t]??null;return{failed:a.failed||!!o?.resource.unavailable.includes(t),at:u}}function f(e){return{get(t){let n=c(t);return void 0===n?void 0:n?.resource[e]??null},status:t=>d(t,e),ensure:e=>o(e)}}let h=f("status"),p=f("weather"),m=f("hazards"),g=f("impact"),x=f("tsa");f("narratives");let v=f("capacity"),b=f("deicing");e.s(["airportOf",0,function(e,n){let r=e.airport,i=r.iata??n.toUpperCase();return(0,t.getAirportByIata)(i)??{iata:i,icao:r.icao,name:r.name,city:r.city,state:r.state??void 0,country:r.country,lat:r.position.lat,lng:r.position.lon,timezone:r.timezone,rank:999}},"airportSectionStatus",0,d,"bareAirport",0,function(e,t){return{iata:e,icao:"",name:t?.name??e,city:t?.city??"",country:t?.country??"",lat:0,lng:0,timezone:"UTC",rank:999}},"ensureAirport",0,o,"isBareAirport",0,e=>0===e.lat&&0===e.lng,"loadAirport",0,u,"readAirport",0,c,"v1CapacityStore",0,v,"v1DeicingStore",0,b,"v1HazardsStore",0,m,"v1ImpactStore",0,g,"v1StatusStore",0,h,"v1TsaStore",0,x,"v1WeatherStore",0,p])},53660,e=>{"use strict";let t;var n=e.i(71645);let r=["top","right","bottom","left"],i=Math.min,a=Math.max,l=Math.round,s=Math.floor,o=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}function m(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let x=["left","right"],v=["right","left"],b=["top","bottom"],y=["bottom","top"];function w(e){let t=d(e);return u[t]+e.slice(t.length)}function N(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function j(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function A(e,t,n){let r,{reference:i,floating:a}=e,l=m(t),s=h(m(t)),o=p(s),u=d(t),c=i.x+i.width/2-a.width/2,g=i.y+i.height/2-a.height/2,x=i[o]/2-a[o]/2;switch(u){case"top":r={x:c,y:i.y-a.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:g};break;case"left":r={x:i.x-a.width,y:g};break;default:r={x:i.x,y:i.y}}let v=f(t);return v&&(r[s]+=x*("end"===v?1:-1)*(n&&"y"===l?-1:1)),r}async function k(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:a,rects:l,elements:s,strategy:o}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=c(t,e),m=N(p),g=s[h?"floating"===f?"reference":"floating":f],x=j(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:o})),v="floating"===f?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await (null==a.isElement?void 0:a.isElement(b))&&await (null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=j(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:o}):v);return{top:(x.top-w.top+m.top)/y.y,bottom:(w.bottom-x.bottom+m.bottom)/y.y,left:(x.left-w.left+m.left)/y.x,right:(w.right-x.right+m.right)/y.x}}let M=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:k},o=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=A(u,r,o),f=r,h=0,p={};for(let n=0;ne[t]>=0)}let T=new Set(["left","top"]);async function E(e,t){let{placement:n,platform:r,elements:i}=e,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=d(n),s=f(n),o="y"===m(n),u=T.has(l)?-1:1,h=a&&o?-1:1,p=c(t,e),{mainAxis:g,crossAxis:x,alignmentAxis:v}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof v&&(x="end"===s?-1*v:v),o?{x:x*h,y:g*u}:{x:g*u,y:x*h}}function L(){return"u">typeof window}function R(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function C(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function P(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return!!L()&&(e instanceof Node||e instanceof C(e).Node)}function I(e){return!!L()&&(e instanceof Element||e instanceof C(e).Element)}function O(e){return!!L()&&(e instanceof HTMLElement||e instanceof C(e).HTMLElement)}function F(e){return!(!L()||"u"!!e&&"none"!==e;function G(e){let t=I(e)?K(e):e;return H(t.transform)||H(t.translate)||H(t.scale)||H(t.rotate)||H(t.perspective)||!V()&&(H(t.backdropFilter)||H(t.filter))||W.test(t.willChange||"")||B.test(t.contain||"")}function V(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function U(e){return/^(html|body|#document)$/.test(R(e))}function K(e){return C(e).getComputedStyle(e)}function Y(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if("html"===R(e))return e;let t=e.assignedSlot||e.parentNode||F(e)&&e.host||P(e);return F(t)?t.host:t}function Z(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=X(t);return U(n)?(t.ownerDocument||t).body:O(n)&&_(n)?n:e(n)}(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),l=C(i);if(!a)return t.concat(i,Z(i,[],n));{let e=q(l);return t.concat(l,l.visualViewport||[],_(i)?i:[],e&&n?Z(e):[])}}function q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=O(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,o=l(n)!==a||l(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function J(e){return I(e)?e:e.contextElement}function ee(e){let t=J(e);if(!O(t))return o(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Q(t),s=(a?l(n.width):n.width)/r,u=(a?l(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}let et=o(0);function en(e){let t=C(e);return V()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:et}function er(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),l=J(e),s=o(1);t&&(r?I(r)&&(s=ee(r)):s=ee(e));let u=(void 0===(i=n)&&(i=!1),r&&i&&r===C(l))?en(l):o(0),c=(a.left+u.x)/s.x,d=(a.top+u.y)/s.y,f=a.width/s.x,h=a.height/s.y;if(l&&r){let e=C(l),t=I(r)?C(r):r,n=e,i=q(n);for(;i&&t!==n;){let e=ee(i),t=i.getBoundingClientRect(),r=K(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,h*=e.y,c+=a,d+=l,i=q(n=C(i))}}return j({width:f,height:h,x:c,y:d})}function ei(e,t){let n=Y(e).scrollLeft;return t?t.left+n:er(P(e)).left+n}function ea(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ei(e,n),y:n.top+t.scrollTop}}function el(e,t,n){var r;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=C(e),a=P(e),l=i.visualViewport,s=a.clientWidth,o=a.clientHeight,u=0,c=0;if(l){let e=!V()||"fixed"===t;r?e||(u=-l.offsetLeft,c=-l.offsetTop):(s=l.width,o=l.height,e&&(u=l.offsetLeft,c=l.offsetTop))}if(0>=ei(a)){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(a).scrollbarGutter?i/2:i;lI(e)&&"body"!==R(e)),i=null,a="fixed"===K(e).position,l=a?X(e):e;for(;I(l)&&!U(l);){let e=K(l),t=G(l),n=i?i.position:a?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==l),l=X(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=el(t,s[0],l),u=o.top,c=o.right,d=o.bottom,f=o.left;for(let e=1;e({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:s,platform:o,elements:u,middlewareData:d}=t,{element:g,padding:x=0}=c(e,t)||{};if(null==g)return{};let v=N(x),b={x:n,y:r},y=h(m(l)),w=p(y),j=await o.getDimensions(g),A="y"===y,k=A?"clientHeight":"clientWidth",M=s.reference[w]+s.reference[y]-b[y]-s.floating[w],$=b[y]-s.reference[y],S=await (null==o.getOffsetParent?void 0:o.getOffsetParent(g)),T=S?S[k]:0;T&&await (null==o.isElement?void 0:o.isElement(S))||(T=u.floating[k]||s.floating[w]);let E=T/2-j[w]/2-1,L=i(v[A?"top":"left"],E),R=i(v[A?"bottom":"right"],E),C=T-j[w]-R,P=T/2-j[w]/2+(M/2-$/2),D=a(L,i(P,C)),I=!d.arrow&&null!=f(l)&&P!==D&&s.reference[w]/2-(Ptypeof document?n.useLayoutEffect:function(){};function eg(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eg(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ex(e){return"u"{t.current=e}),t}var ey=e.i(48425),ew=e.i(43476),eN=Object.defineProperty,ej=n.forwardRef(eN(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,ew.jsx)(ey.Primitive.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ew.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0})),eA=e.i(20783),ek=e.i(30030),eM=e.i(30207),e$=e.i(34620);function eS(e){let[t,r]=n.useState(void 0);return(0,e$.useLayoutEffect)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(0,Object.defineProperty)(eS,"name",{value:"useSize",configurable:!0});var eT=Object.defineProperty,eE=(e,t)=>eT(e,"name",{value:t,configurable:!0}),eL="Popper",[eR,eC]=(0,ek.createContextScope)(eL),[eP,eD]=eR(eL),eI=eE(e=>{let{__scopePopper:t,children:r}=e,[i,a]=n.useState(null),[l,s]=n.useState(void 0);return(0,ew.jsx)(eP,{scope:t,anchor:i,onAnchorChange:a,placementState:l,setPlacementState:s,children:r})},"Popper"),eO=n.forwardRef(eE(function(e,t){let{__scopePopper:r,virtualRef:i,...a}=e,l=eD("PopperAnchor",r),s=n.useRef(null),o=l.onAnchorChange,u=n.useCallback(e=>{s.current=e,e&&o(e)},[o]),c=(0,eA.useComposedRefs)(t,u),d=n.useRef(null);n.useEffect(()=>{if(!i)return;let e=d.current;d.current=i.current,e!==d.current&&o(d.current)});let f=l.placementState&&eU(l.placementState),h=f?.[0],p=f?.[1];return i?null:(0,ew.jsx)(ey.Primitive.div,{"data-radix-popper-side":h,"data-radix-popper-align":p,...a,ref:c})},"PopperAnchor")),eF="PopperContent",[e_,ez]=eR(eF),eW=n.forwardRef(eE(function(e,t){var r,l,o,u,N,j,A,k,L,R,D,I,O;let F,_,z,W,B,H,{__scopePopper:G,side:V="bottom",sideOffset:U=0,align:K="center",alignOffset:Y=0,arrowPadding:X=0,avoidCollisions:q=!0,collisionBoundary:Q=[],collisionPadding:ee=0,sticky:et="partial",hideWhenDetached:en=!1,updatePositionStrategy:ei="optimized",onPlaced:ea,...el}=e,es=eD(eF,G),[eo,eu]=n.useState(null),ec=(0,eA.useComposedRefs)(t,eu),[eN,ej]=n.useState(null),ek=eS(eN),eT=ek?.width??0,eL=ek?.height??0,eR="number"==typeof ee?ee:{top:0,right:0,bottom:0,left:0,...ee},eC=Array.isArray(Q)?Q:[Q],eP=eC.length>0,eI={padding:eR,boundary:eC.filter(eG),altBoundary:eP},{refs:eO,floatingStyles:ez,placement:eW,isPositioned:eB,middlewareData:eH}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:s}={},transform:o=!0,whileElementsMounted:u,open:c}=e,[d,f]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=n.useState(i);eg(h,i)||p(i);let[m,g]=n.useState(null),[x,v]=n.useState(null),b=n.useCallback(e=>{e!==j.current&&(j.current=e,g(e))},[]),y=n.useCallback(e=>{e!==A.current&&(A.current=e,v(e))},[]),w=l||m,N=s||x,j=n.useRef(null),A=n.useRef(null),k=n.useRef(d),$=null!=u,S=eb(u),T=eb(a),E=eb(c),L=n.useCallback(()=>{var e,n;let i,a,l;if(!j.current||!A.current)return;let s={placement:t,strategy:r,middleware:h};T.current&&(s.platform=T.current),(e=j.current,n=A.current,i=new Map,a=null!=s?s:{},l={...ed,...a.platform,_c:i},M(e,n,{...a,platform:l})).then(e=>{let t={...e,isPositioned:!1!==E.current};R.current&&!eg(k.current,t)&&(k.current=t,ep.flushSync(()=>{f(t)}))})},[h,t,r,T,E]);em(()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let R=n.useRef(!1);em(()=>(R.current=!0,()=>{R.current=!1}),[]),em(()=>{if(w&&(j.current=w),N&&(A.current=N),w&&N){if(S.current)return S.current(w,N,L);L()}},[w,N,L,S,$]);let C=n.useMemo(()=>({reference:j,floating:A,setReference:b,setFloating:y}),[b,y]),P=n.useMemo(()=>({reference:w,floating:N}),[w,N]),D=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!P.floating)return e;let t=ev(P.floating,d.x),n=ev(P.floating,d.y);return o?{...e,transform:"translate("+t+"px, "+n+"px)",...ex(P.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,o,P.floating,d.x,d.y]);return n.useMemo(()=>({...d,update:L,refs:C,elements:P,floatingStyles:D}),[d,L,C,P,D])}({strategy:"fixed",placement:V+("center"!==K?"-"+K:""),whileElementsMounted:eE((...e)=>(function(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,h=J(e),p=o||u?[...h?Z(h):[],...t?Z(t):[]]:[];p.forEach(e=>{o&&e.addEventListener("scroll",n),u&&e.addEventListener("resize",n)});let m=h&&d?function(e,t,n){let r,l=null,o=P(e);function u(){var e;clearTimeout(r),null==(e=l)||e.disconnect(),l=null}function c(n,d){void 0===n&&(n=!1),void 0===d&&(d=1),u();let f=e.getBoundingClientRect(),{left:h,top:p,width:m,height:g}=f;if(n||t(),!m||!g)return;let x={rootMargin:-s(p)+"px "+-s(o.clientWidth-(h+m))+"px "+-s(o.clientHeight-(p+g))+"px "+-s(h)+"px",threshold:a(0,i(1,d))||1},v=!0;function b(t){let n=t[0].intersectionRatio;if(!ef(f,e.getBoundingClientRect()))return c();if(n!==d){if(!v)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}v=!1}try{l=new IntersectionObserver(b,{...x,root:o.ownerDocument})}catch(e){l=new IntersectionObserver(b,x)}l.observe(e)}let d=C(e),f=()=>c(n);return d.addEventListener("resize",f),c(!0),()=>{d.removeEventListener("resize",f),u()}}(h,n,u):null,g=-1,x=null;c&&(x=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&x&&t&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=x)||e.observe(t)})),n()}),h&&!f&&x.observe(h),t&&x.observe(t));let v=f?er(e):null;return f&&function t(){let r=er(e);v&&!ef(v,r)&&n(),v=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{o&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=x)||e.disconnect(),x=null,f&&cancelAnimationFrame(l)}})(...e,{animationFrame:"always"===ei}),"whileElementsMounted"),elements:{reference:es.anchor},middleware:[{name:(F={name:"offset",options:l=r={mainAxis:U+eL,alignmentAxis:Y},async fn(e){var t,n;let{x:r,y:i,placement:a,middlewareData:s}=e,o=await E(e,l);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:r+o.x,y:i+o.y,data:{...o,placement:a}}}}).name,fn:F.fn,options:[r,void 0]},q&&{name:(_={name:"shift",options:N=u={mainAxis:!0,crossAxis:!1,limiter:"partial"===et?{fn:(o=void 0,{options:o={},fn(e){var t,n,r,i;let{x:a,y:l,placement:s,rects:u,middlewareData:f}=e,{offset:p=0,mainAxis:g=!0,crossAxis:x=!0}=c(o,e),v={x:a,y:l},b=m(s),y=h(b),w=v[y],N=v[b],j=c(p,e),A="number"==typeof j?{mainAxis:j,crossAxis:0}:{mainAxis:null!=(t=j.mainAxis)?t:0,crossAxis:null!=(n=j.crossAxis)?n:0};if(g){let e="y"===y?"height":"width",t=u.reference[y]-u.floating[e]+A.mainAxis,n=u.reference[y]+u.reference[e]-A.mainAxis;wn&&(w=n)}if(x){let e="y"===y?"width":"height",t=T.has(d(s)),n=u.reference[b]-u.floating[e]+(t&&(null==(r=f.offset)?void 0:r[b])||0)+(t?0:A.crossAxis),a=u.reference[b]+u.reference[e]+(t?0:(null==(i=f.offset)?void 0:i[b])||0)-(t?A.crossAxis:0);Na&&(N=a)}return{[y]:w,[b]:N}}}).fn,options:[void 0,void 0]}:void 0,...eI},async fn(e){let{x:t,y:n,placement:r,platform:l}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=c(N,e),f={x:t,y:n},p=await l.detectOverflow(e,d),g=m(r),x=h(g),v=f[x],b=f[g],y=(e,t)=>a(t+p["y"===e?"top":"left"],i(t,t-p["y"===e?"bottom":"right"]));s&&(v=y(x,v)),o&&(b=y(g,b));let w=u.fn({...e,[x]:v,[g]:b});return{...w,data:{x:w.x-t,y:w.y-n,enabled:{[x]:s,[g]:o}}}}}).name,fn:_.fn,options:[u,void 0]},q&&{name:(z={name:"flip",options:A=j={...eI},async fn(e){var t,n,r,i,a,l,s,o;let u,N,j,{placement:k,middlewareData:M,rects:$,initialPlacement:S,platform:T,elements:E}=e,{mainAxis:L=!0,crossAxis:R=!0,fallbackPlacements:C,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:I=!0,...O}=c(A,e);if(null!=(t=M.arrow)&&t.alignmentOffset)return{};let F=d(k),_=m(S),z=d(S)===S,W=await (null==T.isRTL?void 0:T.isRTL(E.floating)),B=C||(z||!I?[w(S)]:(u=w(S),[g(S),u,g(u)])),H="none"!==D;!C&&H&&B.push(...(N=f(S),j=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?v:x;return t?x:v;case"left":case"right":return t?b:y;default:return[]}}(d(S),"start"===D,W),N&&(j=j.map(e=>e+"-"+N),I&&(j=j.concat(j.map(g)))),j));let G=[S,...B],V=await T.detectOverflow(e,O),U=[],K=(null==(n=M.flip)?void 0:n.overflows)||[];if(L&&U.push(V[F]),R){let e,t,n,r,i=(l=k,s=$,void 0===(o=W)&&(o=!1),e=f(l),n=p(t=h(m(l))),r="x"===t?e===(o?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[n]>s.floating[n]&&(r=w(r)),[r,w(r)]);U.push(V[i[0]],V[i[1]])}if(K=[...K,{placement:k,overflows:U}],!U.every(e=>em(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:K},reset:{placement:t}};let n=null==(i=K.filter(e=>e.overflows[0]e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(P){case"bestFit":{let e=null==(a=K.filter(e=>{if(H){let t=m(e.placement);return t===_||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=S}if(k!==n)return{reset:{placement:n}}}return{}}}).name,fn:z.fn,options:[j,void 0]},{name:(W={name:"size",options:L=k={...eI,apply:eE(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${a}px`)},"apply")},async fn(e){let t,n,{placement:r,rects:l,platform:s,elements:o}=e,{apply:u=()=>{},...h}=c(L,e),p=await s.detectOverflow(e,h),g=d(r),x=f(r),v="y"===m(r),{width:b,height:y}=l.floating;"top"===g||"bottom"===g?(t=g,n=x===(await (null==s.isRTL?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(n=g,t="end"===x?"top":"bottom");let w=y-p.top-p.bottom,N=b-p.left-p.right,j=i(y-p[t],w),A=i(b-p[n],N),k=e.middlewareData.shift,M=!k,$=j,S=A;null!=k&&k.enabled.x&&(S=N),null!=k&&k.enabled.y&&($=w),M&&!x&&(v?S=b-2*a(p.left,p.right):$=y-2*a(p.top,p.bottom)),await u({...e,availableWidth:S,availableHeight:$});let T=await s.getDimensions(o.floating);return b!==T.width||y!==T.height?{reset:{rects:!0}}:{}}}).name,fn:W.fn,options:[k,void 0]},eN&&{name:(B={name:"arrow",options:D=R={element:eN,padding:X},fn(e){let{element:t,padding:n}="function"==typeof D?D(e):D;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eh({element:t.current,padding:n}).fn(e):{}:t?eh({element:t,padding:n}).fn(e):{}}}).name,fn:B.fn,options:[R,void 0]},eV({arrowWidth:eT,arrowHeight:eL}),en&&{name:(H={name:"hide",options:O=I={strategy:"referenceHidden",...eI,boundary:eP?eI.boundary:void 0},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...i}=c(O,e);switch(r){case"referenceHidden":{let r=$(await n.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:S(r)}}}case"escaped":{let r=$(await n.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:S(r)}}}default:return{}}}}).name,fn:H.fn,options:[I,void 0]}]}),eK=es.setPlacementState;(0,e$.useLayoutEffect)(()=>(eK(eW),()=>{eK(void 0)}),[eW,eK]);let[eY,eX]=eU(eW),eZ=(0,eM.useCallbackRef)(ea);(0,e$.useLayoutEffect)(()=>{eB&&eZ?.()},[eB,eZ]);let eq=eH.arrow?.x,eQ=eH.arrow?.y,eJ=eH.arrow?.centerOffset!==0,[e0,e1]=n.useState();return(0,e$.useLayoutEffect)(()=>{eo&&e1(window.getComputedStyle(eo).zIndex)},[eo]),(0,ew.jsx)("div",{ref:eO.setFloating,"data-radix-popper-content-wrapper":"",style:{...ez,transform:eB?ez.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:e0,"--radix-popper-transform-origin":[eH.transformOrigin?.x,eH.transformOrigin?.y].join(" "),...eH.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ew.jsx)(e_,{scope:G,placedSide:eY,placedAlign:eX,onArrowChange:ej,arrowX:eq,arrowY:eQ,shouldHideArrow:eJ,children:(0,ew.jsx)(ey.Primitive.div,{"data-side":eY,"data-align":eX,...el,ref:ec,style:{...el.style,animation:eB?el.style?.animation:"none"}})})})},"PopperContent")),eB={top:"bottom",right:"left",bottom:"top",left:"right"},eH=n.forwardRef(eE(function(e,t){let{__scopePopper:n,...r}=e,i=ez("PopperArrow",n),a=eB[i.placedSide];return(0,ew.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ew.jsx)(ej,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function eG(e){return null!==e}eE(eG,"isNotNull");var eV=eE(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,l=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[o,u]=eU(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+l/2,f=(i.arrow?.y??0)+s/2,h="",p="";return"bottom"===o?(h=a?c:`${d}px`,p=`${-s}px`):"top"===o?(h=a?c:`${d}px`,p=`${r.floating.height+s}px`):"right"===o?(h=`${-s}px`,p=a?c:`${f}px`):"left"===o&&(h=`${r.floating.width+s}px`,p=a?c:`${f}px`),{data:{x:h,y:p}}}}),"transformOrigin");function eU(e){let[t,n="center"]=e.split("-");return[t,n]}eE(eU,"getSideAndAlignFromPlacement"),e.s(["Anchor",0,eO,"Arrow",0,eH,"Content",0,eW,"Root",0,eI,"createPopperScope",0,eC],53660)},81418,e=>{"use strict";let t=(0,e.i(75254).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],81418)},47970,e=>{"use strict";var t=e.i(81614);e.s(["stripBanner",0,function(e,n){if(!e)return{verdict:null,category:null};let r=e.flightCategory.atFlightTime,i=r&&"unknown"!==r?r:null,a=e.hazards??[],l=e=>a.some(t=>t.kind===e);if("ifr"===i||"lifr"===i){let e=(0,t.hazardVerdict)(a.filter(e=>"low-ceiling"!==e.kind&&"low-visibility"!==e.kind),n);if("danger"===e.tone)return{category:i,verdict:e};let r=l("low-ceiling"),s=l("low-visibility"),o=r&&s?"Low clouds and visibility":s?"Low visibility":"Low clouds";return{category:i,verdict:{tone:"danger",kind:s?"low-visibility":"low-ceiling",short:o,text:`${o} may delay your ${n}`}}}return{category:i,verdict:(0,t.hazardVerdict)(a,n)}}])},25393,e=>{"use strict";var t=e.i(58785),n=e.i(36966);let r={calm:"Forecast winds on the direct route barely change your flight time.",moves:(e,t)=>`Forecast winds on the direct route ${e} about ${t} min against still air.`,footnote:"From the GRAF wind forecast at your cruise level on the direct route, against the filed airspeed."},i={calm:"The filed plan expects winds to barely change your flight time.",moves:(e,t)=>`The filed plan expects winds to ${e} about ${t} min against still air.`,footnote:"Worked out from the filed plan (its airspeed, distance and time, less about 25 min for climb and descent), not a live wind reading."};e.s(["windsAloftView",0,function(e,a,l){let s=null!=e.cruiseAltitudeFt&&e.cruiseAltitudeFt>=1e4?(0,t.formatFeet)(100*Math.round(e.cruiseAltitudeFt/100),a):null,o=l?{...l,effect:2>Math.abs(l.minutesSaved)?"calm":l.windKt>=0?"tailwind":"headwind"}:{airspeedKt:e.airspeedKt,groundSpeedKt:e.groundspeedKt,windKt:e.windKt,minutesSaved:e.timeSavedMinutes,effect:e.effect},u=o.windKt>=0,c=Math.abs(Math.round(o.minutesSaved)),d="calm"===o.effect||"unknown"===o.effect,f=u?"tailwind":"headwind",h=l?r:i,{label:p,tone:m}=n.WIND_EFFECT_PRESENTATION[o.effect];return{title:s?`Winds at ${s}`:"Winds at cruise",pill:d?p:`${u?"Saves":"Adds"} ${c} min`,tone:m,verdictTone:d?"neutral":u?"success":"moderate",verdict:`${(0,t.formatKnots)(Math.abs(o.windKt),a)} ${f}`,speed:(0,t.convertKnots)(Math.abs(o.windKt),a),speedUnit:(0,t.speedUnit)(a),direction:f,effect:d?h.calm:h.moves(u?"save":"add",c),stats:[{label:u?"Tailwind":"Headwind",value:(0,t.formatKnots)(Math.abs(o.windKt),a)},{label:"Over ground",value:(0,t.formatKnots)(o.groundSpeedKt,a)},{label:"Through air",value:(0,t.formatKnots)(o.airspeedKt,a)}],footnote:h.footnote}}])},65766,e=>{"use strict";e.i(2052);let t=(e,t)=>new Date(e).toLocaleTimeString("en-US",{hour:"numeric",timeZone:t}).replace(/\s*AM$/,"a").replace(/\s*PM$/,"p"),n=108e5,r=e=>{let t=e?Date.parse(e):NaN;return Number.isFinite(t)?t:null};function i(e,t){let i=e.map(e=>({d:e,start:r(e.start)})).filter(e=>null!=e.start&&e.start>t-n&&e.startt.start-e.start).slice(0,14),a=[],l=new Map,s=0;for(let{d:e,start:n}of i){let i=r(e.end);if(null==i){t-n90||(a.push({ms:i,minutes:o}),e.runway&&l.set(e.runway,(l.get(e.runway)??0)+1))}if(a.lengthe.ms-t.ms),t-a.at(-1).ms>36e5))return null;let o=a.map((e,t)=>({at:new Date(1e3*Math.floor(e.ms/1e3)).toISOString().replace(".000Z","Z"),minutes:e.minutes,medianMinutes:Math.round((e=>{let t=[...e].sort((e,t)=>e-t);if(!t.length)return null;let n=Math.floor(t.length/2);return t.length%2?t[n]:(t[n-1]+t[n])/2})(a.slice(Math.max(0,t-5+1),t+1).map(e=>e.minutes)))}));return{taxis:o,currentMinutes:o.at(-1).medianMinutes,taxiingCount:s,runways:[...l.entries()].sort((e,t)=>t[1]-e[1]).map(([e])=>e).slice(0,3)}}let a={out:{taxi:"taxi out",Taxi:"Taxi out",flights:"departures",Flights:"Departures",path:"from the gate to takeoff"},in:{taxi:"taxi in",Taxi:"Taxi in",flights:"arrivals",Flights:"Arrivals",path:"from landing to the gate"}};function l(e,t,n,r){let i,l=a[e],s=t.map(e=>({ms:Date.parse(e.at),minutes:e.minutes})),o=t.map(e=>({ms:Date.parse(e.at),minutes:e.medianMinutes})),u=n.currentMinutes,c=n.taxiingCount,d=null==r?0:u-r,f=d>=5?`Slow ${l.taxi}, about ${u} min`:dnew Date(e).toLocaleTimeString("en-US",{hour:"numeric",timeZone:t}),u={faa:{a:"an FAA rate",the:"the FAA rate",theMany:"the FAA rates",note:e=>`The dashed line is the FAA ${e} rate. Red hours run over it.`},predicted:{a:"a predicted rate",the:"the predicted rate",theMany:"the predicted rates",note:e=>`The dashed line is the ${e} rate we predict for the forecast weather. Red hours run over it.`}},c={arrivals:{plural:"Arrivals",noun:"arrival",you:"You land",whenOver:"Expect holds then.",whenNear:"so short holds are possible",whenBusy:"so holds are unlikely"},departures:{plural:"Departures",noun:"departure",you:"You take off",whenOver:"Expect delays then.",whenNear:"so short delays are possible",whenBusy:"so delays are unlikely"}},d=["","an hour","two hours","three hours","four hours","five hours","six hours","seven hours","eight hours","nine hours"];e.s(["HOUR",0,36e5,"MIN",0,6e4,"congestionLevel",0,function(e){return e>100?3:e>=95?2:+(e>=85)},"hourTick",0,t,"hourlyCapacityOutlook",0,function(e,n,r,{direction:i="arrivals",you:a}={}){let l=e.rateKind;if("unknown"===l)return null;let f=u[l],h=c[i],p=e.hours.filter(e=>Date.parse(e.endAt)>n),m=p.map(e=>{var t;return t=e[i],"faa"===l?{rate:t.faaRate,percent:t.faaLoadPercent,level:t.faaCongestionLevel}:{rate:t.predictedRate,percent:t.predictedLoadPercent,level:t.predictedCongestionLevel}}),g=p.map((e,i)=>{let l=Date.parse(e.startAt),{percent:u,level:c}=m[i];return{ms:l,percent:u,level:null==u?null:s[c],label:t(l,r),name:o(l,r),current:l=l&&a.atMsnull==g[t].level||null==e?[]:[e]))].sort((e,t)=>e-t);if(!x.length)return null;let v=f.note(h.noun);if(!a){let e,t,n,r,i,a,l;return{bars:g,...(e=1===x.length?`${f.the} of ${x[0]} an hour`:`${f.theMany} of ${x[0]} to ${x.at(-1)} an hour`,n=(t=g.filter(e=>null!=e.level).length)===g.length?`next ${t} ${1===t?"hour":"hours"}`:`${t} ${1===t?"hour":"hours"} with ${f.a}`,r=g.filter(e=>3===e.level),i=g.filter(e=>2===e.level),a=g.filter(e=>(e.level??0)>=1),l=e=>{let[t,n]=e;return t.current?n?`now and at ${n.name}`:"now":`at ${t.name}${n?` and ${n.name}`:""}`},r.length?{headline:`Over capacity ${l(r)}`,subtitle:`${h.plural} top ${e} in ${r.length} of the ${n}. ${h.whenOver}`}:i.length?{headline:`Close to the limit ${l(i)}`,subtitle:`${h.plural} come near ${e} in ${i.length} of the ${n}, ${h.whenNear}.`}:a.length?{headline:"Busy, but under the limit",subtitle:`${h.plural} stay under ${e}, ${h.whenBusy}.`}:{headline:"Room to spare",subtitle:`${h.plural} stay well under ${e}.`}),note:v}}let b=g.findIndex(e=>e.you);return g[b]?.level==null?null:{bars:g,...function(e,t,n,r,i,a){let l,s=e[t],u=t;e.forEach((t,n)=>{null!=t.level&&t.percent>e[u].percent&&(u=n)});let c=e[u].level>=1,f=n.code,h=r.the.replace(/^the /,""),p=n.time??o(s.ms,a),m=d[l=Math.abs(u-t)]??`${l} hours`,g=`Your ${p} ${i.noun}`,[,x,v]=[[3===s.level,`${i.you} in an over-capacity hour`,`${g} is in an hour over ${f}'s ${h}`],[2===s.level,`${i.you} close to the ${i.noun} limit`,`${g} is in an hour close to ${f}'s ${h}`],[c&&ut,`${i.you} before the ${i.noun} rush`,`${g} is ${m} before ${f}'s busiest hour`],[c,`${i.you} in the busiest hour`,`${g} is in ${f}'s busiest hour`],[!0,`${i.you} with room to spare`,`No hour around your ${p} ${i.noun} is busy at ${f}`]].find(([e])=>e);return{headline:x,subtitle:v}}(g,b,a,f,h,r),note:v}},"taxiIn",0,function(e,t){let n=i(e.map(e=>({start:e.actualOn,end:e.actualIn,runway:e.runwayOn})),t);if(!n)return null;let{taxis:r,...a}=n;return{arrivals:r.map(({at:e,...t})=>({gateInAt:e,...t})),...a}},"taxiOut",0,function(e,t){let n=i(e.map(e=>({start:e.actualOut,end:e.actualOff,runway:e.runwayOff})),t);if(!n)return null;let{taxis:r,...a}=n;return{departures:r.map(({at:e,...t})=>({takeoffAt:e,...t})),...a}},"taxiTime",0,function(e,t=null){return l("out",e.departures.map(({takeoffAt:e,...t})=>({at:e,...t})),e,t)},"taxiTimeIn",0,function(e){return l("in",e.arrivals.map(({gateInAt:e,...t})=>({at:e,...t})),e,null)}])},99847,e=>{"use strict";var t=e.i(36966),n=e.i(55529),r=e.i(65766),i=e.i(81614),a=e.i(58785),l=e.i(11383);let s=e=>e>=2,o={2:"possible",3:"likely"},u=e=>new Date(e).toISOString(),c=(e,t)=>(0,i.hourLabelAt)(u(e),t),d=(e,t)=>void 0===t?e.hours:e.hours.filter(e=>Date.parse(e.endAt)>t),f=e=>e.map(e=>({validAt:e.startAt}));function h(e,t){return[t,t+1,t-1].filter(t=>t>=0&&te[n].level>e[t].level?n:t)}function p(e,t,n){let r=t,i=t;for(;r>0&&e[r-1].level>=n;)r--;for(;i=n;)i++;return[r,i]}e.s(["DEICING_ALERT_LEVEL",0,3,"DEICING_LEVEL_WORD",0,{0:"none",1:"low",2:"moderate",3:"high"},"DEICING_LIKELY_PERCENT",0,60,"deicingOutlook",0,function(e,m,g,x,v,b="imperial"){let y,w,N,j,A,k=d(e,v);if(!k.length)return null;let M=f(k);if(m){let e=(0,i.hourIndexAt)(M,m);if(null===e)return null;y=e,w=h(k,e)}else{y=Math.max(0,(0,i.hourIndexAt)(M,u(v))??0);let e=k.findIndex(e=>s(e.level));if(-1===e)return null;let[,t]=p(k,e,2);w=e;for(let n=e;nk[w].chancePercent&&(w=n)}let $=k[w];if(!s($.level))return null;let S=$.level,T=o[S],E=e=>Date.parse(k[e].startAt),[L,R]=p(k,w,S),C=R>L?function(e,t,n){let r=e=>{let t=(0,i.localHourAt)(u(e),n);return[t%12||12,t>=12?"PM":"AM"]},[a,l]=r(e),[s,o]=r(t);return l===o?`${a} to ${s} ${o}`:`${a} ${l} to ${s} ${o}`}(E(L),E(R),x):null;if(m){N=`De-icing ${T} before takeoff`;let e=(0,n.formatClock)(m,x)??c(E(y),x);j=`${$.chancePercent}% chance ${w===y?"at":"around"} your ${e} departure`,A=w===y?"At departure":`At ${c(E(w),x)}`}else{let e=L===y?"now":`from ${c(E(L),x)}`;N=`De-icing ${T} ${e}`,j=`Peaks at ${$.chancePercent}% around ${c(E(w),x)}`,A=`At ${c(E(w),x)}`}let P="none"===$.severity||"unknown"===$.severity?null:t.DEICING_SEVERITY_PRESENTATION[$.severity],D=[null!=$.temperatureC?(0,a.formatTemp)((0,a.cToF)($.temperatureC),b):null,$.condition&&"unknown"!==$.condition?t.CONDITION_PRESENTATION[$.condition].label:null].filter(Boolean).join(" · ")||null,I=(3===S?"Plan on extra time at the de-icing pad after you board. ":"")+`TWC de-icing forecast for ${g}`+(e.generatedAt?`, updated ${(0,l.agoLabel)(new Date(e.generatedAt),v)}`:"")+". Whether to de-ice is the crew’s call.";return{level:S,headline:N,subtitle:j,bars:k.map((e,t)=>({ms:E(t),label:(0,r.hourTick)(E(t),x),name:c(E(t),x),chancePercent:e.chancePercent,level:e.level,focus:t===y})),windowLabel:`${3===S?"Likely":"Possible"} window`,window:C,severity:P?.label??null,severityTone:P?.tone??null,conditionsLabel:A,conditions:D,note:I,chartLabel:`De-icing chance by hour at ${g}`}},"deicingReportedHour",0,function(e,t,n){if(!e)return null;let r=d(e,n),a=(0,i.hourIndexAt)(f(r),t);return null===a?null:r[h(r,a)]},"deicingShown",0,s])},78213,e=>{"use strict";var t=e.i(36966),n=e.i(55529),r=e.i(99847),i=e.i(81614),a=e.i(56194),l=e.i(84209),s=e.i(97510);let o={low:0,elevated:1,high:3},u={minor:2,moderate:3,severe:3},c={thunder:"storm","ground-stop":"storm",gust:"wind",wind:"wind",visibility:"fog",ceiling:"fog",winter:"snow",precip:"rain","airport-delay":"warning","inbound-late":"inbound",history:"warning"};function d(e,t){return{key:`${e.kind}-${e.end}`,glyph:c[e.kind],title:e.label,value:t,level:e.severity}}let f={unknown:"warning",thunderstorms:"storm",gusts:"wind",wind:"wind","freezing-precipitation":"snow",snow:"snow","heavy-rain":"rain","low-visibility":"fog","low-ceiling":"fog",alert:"warning"},h=["storm","wind","snow","rain","fog"],p=e=>`${e.ident} from ${e.from} ${e.landed?"landed":"lands"} ${e.inText}${e.lateMin>5?`, ${e.lateMin}m late`:""}`;function m(e){return{key:"inbound",glyph:"inbound",title:"Inbound aircraft",value:e.tightTurn?e.late?"Running late":"Tight turn":e.late?"In time":"On time",detail:p(e),level:e.tightTurn?"severe"===e.arrivalLevel?3:2:0}}let g=/inbound flights delayed|ground stop|ground delay/i;function x(e){let{origin:t,destination:n,past:r}=e,i=[],a=e.inbound;if(a){let e=a.tightScheduledTurn;i.push(e&&a.late?{key:"inbound",title:"Inbound plane",state:"cause",short:"the late inbound plane",detail:`${p(a)}. That is too close to the scheduled departure to turn around.`}:e?{key:"inbound",title:"Inbound plane",state:"maybe",short:"a short turn for the inbound plane",detail:`${p(a)}. That leaves a short turn before the scheduled departure.`}:{key:"inbound",title:"Inbound plane",state:"clear",detail:`${p(a)}. That leaves time to turn around.`})}else e.rememberedInbound?i.push({key:"inbound",title:"Inbound plane",state:"maybe",short:"the late inbound plane",detail:`${e.rememberedInbound}.`}):i.push({key:"inbound",title:"Inbound plane",state:"unknown",detail:"The airline hasn’t said which plane flies this trip yet."});let l=r?void 0:e.destActivity?.find(e=>g.test(e)),s=r?void 0:e.originActivity?.find(e=>g.test(e)||/departure/i.test(e)),o=(l??s??"").match(/due to (.+?)\.?$/i)?.[1],u=e.weather;if(u?i.push({key:"weather",title:"Weather",state:u.level>=2?"cause":"maybe",short:`the weather at ${u.code}`,detail:`${u.title}.`}):r?i.push({key:"weather",title:"Weather",state:"unknown",detail:`We don’t have the weather record for ${t} at that time.`}):o?i.push({key:"weather",title:"Weather",state:"maybe",short:`the weather at ${l?n:t}`,detail:`Clear here, but ${o} at ${l?n:t} are behind the FAA hold below.`}):i.push({key:"weather",title:"Weather",state:"clear",detail:`No weather trouble at ${t} or ${n} around your times.`}),l){let e;i.push({key:"faa",title:"Air traffic control",state:"cause",short:`an FAA hold on flights to ${n}`,detail:(e=l.match(/average of (\d+) min\w*(?: due to (.+))?/i))?`The FAA is holding flights headed to ${n} for about ${e[1]}m${e[2]?`, because of ${e[2].replace(/\.$/,"")} there`:""}.`:`FAA at ${n}: ${l.replace(/\.$/,"")}.`})}else s?i.push({key:"faa",title:"Air traffic control",state:"cause",short:`an FAA hold at ${t}`,detail:`FAA at ${t}: ${s.replace(/\.$/,"")}.`}):r?i.push({key:"faa",title:"Air traffic control",state:"unknown",detail:"We only see FAA programs live, not from earlier in the day."}):e.originActivity&&e.destActivity?i.push({key:"faa",title:"Air traffic control",state:"clear",detail:`No FAA ground stop or delay program at ${t} or ${n}.`}):i.push({key:"faa",title:"Air traffic control",state:"unknown",detail:`We can’t see FAA ground stops or delay programs at ${t} or ${n}.`});if(!r&&null!=e.originDepMins){let n=e.originDepMins>=15;i.push({key:"airport",title:`${t} departures`,state:n?"maybe":"clear",short:`a backed-up ${t}`,detail:n?`${t} departures are averaging ${e.originDepMins}m late right now.`:`No departure delays reported at ${t} right now.`})}let c=i.find(e=>"cause"===e.state),d=i.find(e=>"maybe"===e.state),f=i[0]?.state==="clear",h=a?.landed?"The inbound plane landed in time. ":"The inbound plane lands in time. ",m=i.some(e=>"unknown"===e.state&&"inbound"!==e.key),x=c?`Likely ${c.short}`:d?`Possibly ${d.short}`:m?f?"Not the inbound plane":"Cause unknown":"Likely the airline’s own",v=e.airline?`The ${e.airline} app`:"The airline’s app";return{verdict:x,checks:i,note:c||d?null:m?`${f?h:""}${r?`We can’t check what else was going on at ${t} back then.`:"We couldn’t check every cause right now."}`:`Nothing outside ${e.airline??"the airline"} explains it, so it’s likely on their side: crew, maintenance, or ground handling. ${v} may say more.`}}let v=(e,t)=>(0,n.formatClock)(e,t)??"—";function b(e,t){if(e)try{return new Intl.DateTimeFormat("en-US",{timeZone:t,hour:"numeric",hour12:!0}).format(new Date(e))}catch{return}}let y=e=>{if(!e)return null;let t=Date.parse(e);return Number.isNaN(t)?null:t};function w(e){return"none"!==e&&"unknown"!==e}function N(e,n,r){if(!r)return null;let i="origin"===e?r.departures:r.arrivals;if(!w(i.delayLevel))return null;let a=r.hazards.map(e=>t.HAZARD_KIND_PRESENTATION[e].label);return{key:`airport-${e}`,glyph:"warning",title:`${n} ${"origin"===e?"departures":"arrivals"} running late`,value:null!=i.averageDelayMinutes?`avg ${i.averageDelayMinutes}m`:void 0,detail:r.cause??(a.length>0?a.join(" · "):void 0),level:u[i.delayLevel]}}let j=e=>"danger"===e.tone?3:2;e.s(["LEVEL_WORD",0,{0:"Low",1:"Elevated",2:"Moderate",3:"High"},"delayRiskModel",0,function(e){let c,p,g,A,{flight:k,risk:M,now:$}=e;if(k.cancelled||k.diverted)return null;let S=k.origin.iata??k.origin.icao,T=k.destination.iata??k.destination.icao,E=k.origin.timezone,L=k.destination.timezone,R=k.times.gateOut,C=k.times.gateIn,P=Math.max(k.delay.departureMinutes??0,k.delay.arrivalMinutes??0),D=k.delay.level,I=w(D)&&!C.actual,O=M&&"unknown"!==M.level?M:null;if(!I&&(!O||!(0,s.shouldShowRisk)(O,P)))return null;let F=R.best,_=C.best,z=e.originImpact??[],W=e.destinationImpact??[],B=[R.actual?null:(0,a.impactNote)(z,(0,i.hourIndexAt)(z,F),S,"origin"),(0,a.impactNote)(W,(0,i.hourIndexAt)(W,_),T,"destination")].filter(e=>null!==e),H=(0,s.riskSummary)(O),G=(H?[H.banner,...H.factors]:[]).filter(e=>!!e&&"inbound-late"!==e.kind),V=e=>"origin"===e?b(F,E):b(_,L),U=(p=k.inbound,A=y(g=p?.times.gateIn.best??null),p&&null!==A?{ident:p.ident.iata??p.ident.icao,from:p.origin.city||p.origin.iata||p.origin.icao,landed:!!p.times.gateIn.actual,inAt:A,inText:(0,n.formatClockOn)(g,k.times.gateOut.best,k.origin.timezone)??"—",lateMin:Math.max(0,p.delay.arrivalMinutes??0),arrivalLevel:p.delay.arrivalLevel,late:p.late,tightTurn:p.tightTurn,tightScheduledTurn:p.tightScheduledTurn}:null),K=y(F),Y=!R.actual&&null!==K&&null!==$&&K-$d(e,"origin"===e.end||"destination"===e.end?V(e.end):void 0)),...B.map(e=>{let t;return{key:`impact-${e.end}`,glyph:(t=new Set(e.hazards.map(e=>f[e])),h.find(e=>t.has(e))??"warning"),title:e.label,value:V(e.end),detail:e.detail,level:j(e)}}),...X?[X]:[],...[!R.actual&&(I||Y)?N("origin",S,e.originStatus):null,I?N("destination",T,e.destinationStatus):null].filter(e=>null!==e)];U&&!R.actual&&Z.push(m(U));let q=O&&"unknown"!==O.level?o[O.level]:0;if(!I)return{level:q,note:O?s.HORIZON_NOTE[O.horizon]:"",riskLevel:O?.level,drivers:Z};let Q=k.delay.departureMinutes??0,J=k.delay.arrivalMinutes??0,ee=k.delay.departureLevel;if(w(ee)&&R.scheduled&&F){let t=[...G.map(e=>({title:e.label,code:"destination"===e.end?T:S,level:e.severity})),...B.map(e=>({title:e.detail?`${e.label}: ${e.detail}`:e.label,code:"origin"===e.end?S:T,level:j(e)})),...X?[{title:`${X.level===r.DEICING_ALERT_LEVEL?"Likely":"Possible"} de-icing at ${S}`,code:S,level:X.level}]:[]].sort((e,t)=>t.level-e.level)[0],n=k.ident.airline,i=[{label:"Departure",was:v(R.scheduled,E),now:v(F,E)}];C.scheduled&&_&&w(k.delay.arrivalLevel)&&i.push({label:"Arrival",was:v(C.scheduled,L),now:v(_,L)}),c={title:R.actual?"Left late":"Departure delay posted",minutes:Q,value:(0,l.formatMinutes)(Q),level:u[ee],times:i,why:x({origin:S,destination:T,airline:n.name!==n.icao?n.name:null,past:null!==K&&null!==$&&K{"use strict";var t=e.i(36966),n=e.i(55529),r=e.i(81614),i=e.i(58785);e.s(["endpointStripV1",0,function({code:e,departure:a,weather:l,flightIso:s,tz:o}){if(!e)return{state:"none"};if(void 0===l)return{state:"loading"};let u=l?.hourly??[];if(0===u.length)return{state:"unavailable"};let c=s?Date.parse(s):NaN;if(c>=Date.parse(u.at(-1).validAt)+36e5)return{state:"none"};let d=(0,r.hourIndexAt)(u,s);if(null==d&&c>=Date.parse(u[0].validAt))return{state:"unavailable"};let f=null==d?0:Math.max(0,Math.min(d-24,u.length-48)),h=u.slice(f,f+48),p=null==d?null:d-f;return{state:"ready",key:`${e}-${null!=p?h[p].validAt:s}`,place:s&&null!=p?`${e} \xb7 ${(0,n.formatClock)(s,o)??"—"}`:e,hours:h.map(e=>{let n=t.CONDITION_PRESENTATION[e.condition].label;return{key:e.validAt,label:(0,r.hourLabelAt)(e.validAt,o),icon:(0,r.conditionIcon)(e.condition,(0,r.localHourAt)(e.validAt,o)),tempF:(0,i.cToF)(e.temperatureC),precipPct:e.precipitationChancePercent,windMph:(0,i.ktToMph)(e.windKt),windFromDeg:e.windDirectionDeg,condition:n,visMi:(0,i.mToMi)(e.visibilityM),gustMph:null!=e.gustKt?(0,i.ktToMph)(e.gustKt):null,humidity:e.humidityPercent,...null!=e.flightCategory?{ceilingFt:e.ceilingFt}:{}}}),markerIndex:p,markerLabel:a?"Departure":"Arrival"}}])},81614,e=>{"use strict";var t=e.i(36966),n=e.i(944),r=e.i(2052);function i(e,t){return(0,r.localHour)(Date.parse(e),t)??12}let a={unknown:"cloud",clear:"sun","mostly-clear":"partly-day","partly-cloudy":"partly-day","mostly-cloudy":"cloud",cloudy:"cloud",fog:"fog",haze:"fog",smoke:"fog",dust:"fog",windy:"wind",drizzle:"rain","freezing-drizzle":"snow",showers:"rain",rain:"rain","heavy-rain":"rain","freezing-rain":"snow",sleet:"snow","wintry-mix":"snow",flurries:"snow","snow-showers":"snow",snow:"snow","heavy-snow":"snow","blowing-snow":"snow",hail:"snow","scattered-thunderstorms":"storm",thunderstorms:"storm","tropical-storm":"storm",hurricane:"storm",tornado:"storm"},l={unknown:{high:"Bad weather",other:"Weather"},gusts:{high:"Strong gusts",other:"Gusty winds"},wind:{high:"High winds",other:"High winds"},"low-visibility":{high:"Very low visibility",other:"Low visibility"},"low-ceiling":{high:"Very low clouds",other:"Low clouds"},thunderstorms:{high:"Thunderstorms forecast",other:"Thunderstorms nearby"},"freezing-precipitation":{high:"Freezing precipitation",other:"Freezing precipitation"},snow:{high:"Heavy snow",other:"Winter weather"},"heavy-rain":{high:"Heavy rain",other:"Heavy rain"},alert:{high:"Weather alert",other:"Weather alert"}},s=new Set(["low-ceiling","low-visibility"]),o=e=>"moderate"===e.delayRisk&&s.has(e.kind);e.s(["STRIP_COL_W",0,60,"conditionIcon",0,function(e,t){let n=a[e];return t=20?"sun"===n?"moon":"partly-day"===n?"partly-night":n:n},"forecastHourKey",0,e=>e.validTimeLocal.slice(0,13),"hazardVerdict",0,function(e,r){let i=e=>2*(0,t.rankOf)(n.V1_HAZARD_LEVELS,e.delayRisk)+ +!o(e),a=null;for(let t of e??[])(!a||i(t)>i(a))&&(a=t);if(!a)return{tone:"success",kind:"good",short:"Good conditions",text:`Good conditions for ${r}`};let s="high"===a.delayRisk,u=l[a.kind][s?"high":"other"];return{tone:s?"danger":o(a)?"neutral":"warning",kind:a.kind,short:u,text:`${u} at ${r}`}},"hourIndexAt",0,function(e,t){if(!t||0===e.length)return null;let n=Date.parse(t);if(Number.isNaN(n))return null;let r=e.findIndex(e=>{let t=Date.parse(e.validAt);return n>=t&&n=i-36e5&&n=12?"PM":"AM"}`},"instantHourKey",0,function(e,t){let n=new Date(e);if(Number.isNaN(n.getTime()))return null;try{let e=Object.fromEntries(new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",hourCycle:"h23"}).formatToParts(n).map(e=>[e.type,e.value]));return`${e.year}-${e.month}-${e.day}T${e.hour}`}catch{return null}},"localHourAt",0,i,"stripColumnWidth",0,function(e){if(!(e>0))return 60;let t=Math.max(1,Math.floor(e/60));return t%2==0&&(t-=1),e/t},"stripScrollFor",0,function({index:e,colW:t,width:n,columns:r,inset:i}){return Math.min(Math.max(0,r*t+2*i-n),Math.max(0,i+(e+.5)*t-n/2))}])},56194,e=>{"use strict";var t=e.i(36966);e.s(["impactNote",0,function(e,n,r,i){let a=null==n?void 0:e[n];if(!a||"moderate"!==a.level&&"high"!==a.level)return null;let l=a.hazards.map(e=>t.HAZARD_KIND_PRESENTATION[e].label);return{end:i,label:`TWC rates weather impact ${t.IMPACT_LEVEL_PRESENTATION[a.level].label} at ${r}`,detail:l.length>0?l.join(" · "):void 0,hazards:a.hazards,tone:"high"===a.level?"danger":"warning"}}])},78137,81800,39338,e=>{"use strict";var t=e.i(55529);function n(e,t=Date.now()){let r=Date.parse(e);if(Number.isNaN(r))return"";let i=Math.floor((t-r)/6e4);if(i6e5,arrivalGate:x||null}}],39338);let i={"taxiing-out":"taxiing",airborne:"airborne",landed:"landed"},a=e=>{let t=e?Date.parse(e):NaN;return Number.isFinite(t)?t:null};function l(e,n,r,i){let a=e-n;return a>=6e4?{heading:r.soon,hero:(0,t.formatSpan)(Math.ceil(a/6e4))}:a>-3e5||!i?{heading:r.due,hero:"Now"}:{heading:r.overdue,hero:i}}e.s(["inFlightModel",0,function({flight:e,now:s,units:o,stale:u=!1}){if(u||e.cancelled||e.diverted)return null;let c=i[e.status];if(!c)return null;let{landing:d,gateIn:f}=e.times,h=e.destination.timezone,p=a(d.best),m=a(f.best),g="landed"===c,x=(0,t.eventTime)(d,h).time,v=(0,t.eventTime)(f,h).time,b=g?null!=m?l(m,s,{soon:"At the gate in",due:"Arriving at the gate",overdue:"Due at the gate"},v):null:null!=p?l(p,s,{soon:"Lands in",due:"Landing",overdue:"Due to land"},x):null!=m?l(m,s,{soon:"Arrives in",due:"Arriving",overdue:"Due to arrive"},v):null,y=(0,t.endTime)(e,"arrival").time,w=g?x:null,{label:N,tone:j}=(0,t.endDelay)(e,"arrival"),A="airborne"===c?e.position:null,k=e.remainingDistanceNm??null,{terminal:M}=e.destination,$=e.destination.baggageClaim??null,S=A?.reportedAt??null,T=a(S);return{stage:c,...b??{heading:"Arriving",hero:y??"—"},lead:w?"Landed":"Arrives",time:w??y,delay:{label:N,tone:j},gate:e.destination.gate,terminal:M,baggageClaim:$,place:[...M?[{label:"Terminal",value:M}]:[],...$?[{label:"Baggage",value:$}]:[]],progress:(0,t.flightProgress)(e),live:A?{altitude:(0,r.formatFeet)(Math.round(A.altitudeFt),o),speed:(0,r.formatKnots)(A.groundspeedKt,o),toGo:null!=k?(0,r.formatMiles)(k*r.MI_PER_NM,o):null}:null,staleNote:S&&null!=T&&s-T>6e5?`Last position ${n(S,s)}. The landing time may be off.`:null}}],78137)},46194,e=>{"use strict";var t=e.i(36966),n=e.i(55529),r=e.i(2052),i=e.i(81614),a=e.i(84209),l=e.i(58785);let s={unknown:null,clear:null,"mostly-clear":null,"partly-cloudy":null,"mostly-cloudy":null,cloudy:null,fog:null,haze:null,smoke:null,dust:null,windy:null,drizzle:"rain","freezing-drizzle":"ice",showers:"rain",rain:"rain","heavy-rain":"rain","freezing-rain":"ice",sleet:"ice","wintry-mix":"ice",flurries:"ice","snow-showers":"ice",snow:"ice","heavy-snow":"ice","blowing-snow":"ice",hail:null,"scattered-thunderstorms":"storm",thunderstorms:"storm","tropical-storm":"storm",hurricane:"storm",tornado:null};function o(e,t,n,i){let a=(0,r.localHour)(t,i);if(null==a)return null;let l=e=>(0,r.localDateStr)(new Date(e).toISOString(),i);return l(t)!==l(n)?null:e?.find(e=>e.hour===a)?.waitMinutes??null}function u({outMs:e,nowMs:t,tsaLiveMin:n,tsaTypicalMin:r=null,road:i=null}){if(!Number.isFinite(e)||!Number.isFinite(t))return null;let a=e-t;if(a864e5?null:{arriveByMs:o,gateByMs:e-27e5,boardsMs:e-21e5,tsa:l,road:i,totalMin:s,late:c}}function c(e,t,n){let r=u(e);if(r?.tsa.source!=="default")return r;let i=o(t,r.arriveByMs,e.nowMs,n);if(null==i)return r;let a=u({...e,tsaTypicalMin:i});if(!a)return null;let l=o(t,a.arriveByMs,e.nowMs,n);return null!=l&&l>i?u({...e,tsaTypicalMin:l}):a}let d={live:"Live wait now",typical:"Typical, not live",default:"Our estimate, not live"},f=e=>e.charAt(0).toUpperCase()+e.slice(1);e.s(["BOARDING_MIN",0,35,"leaveByModel",0,function({flight:e,nowMs:r,tsa:o,hourly:u,drive:h=null,driveAsk:p,driveDistanceNm:m=null,units:g="imperial"}){let x=(0,n.phaseAt)(e,r);if("preflight"!==x&&"at-airport"!==x||e.times.gateOut.actual)return null;let v=e.origin.iata??e.origin.icao,b=e.origin.timezone,y=u??[],w=e=>{let t={outMs:e,nowMs:r,tsaLiveMin:o?.live?o.waitMinutes:null},n=c(t,o?.typical,b);if(!n)return null;let a=(0,i.hourIndexAt)(y,new Date(n.arriveByMs).toISOString()),u=n.late?null:function(e){if(!e)return null;let t=s[e.condition];return"ice"===t?{padMin:20,label:"snow or ice on the roads"}:"storm"===t?{padMin:15,label:"storms on the roads"}:e.precipitationChancePercent>=50||"rain"===t?{padMin:10,label:"rain on the roads"}:null!=e.gustKt&&(0,l.ktToMph)(e.gustKt)>=40?{padMin:5,label:"gusty winds"}:null}(null==a?null:y[a]);return u?c({...t,road:u},o?.typical,b):n},{gateOut:N}=e.times,j=N.scheduled?Date.parse(N.scheduled):NaN,A=N.best?Date.parse(N.best):NaN,k=Number.isNaN(j)||Ak,S=M??($?w(A):null);if(!S)return null;let T=e=>(0,n.formatClock)(new Date(e).toISOString(),b)??"",E=(0,n.endDelay)(e,"departure").late&&A>k?$?`Delayed to ${T(A)}. This plan is for the new time.`:`Delayed to ${T(A)}. Delays can shrink, so this plan is for ${T(k)}.`:null,L={icon:"security",title:`${S.tsa.minutes} min security`,detail:d[S.tsa.source]},R=h&&r-Date.parse(h.asOf)r,W=Math.max(1,Math.ceil(Math.abs(_-r)/6e4));return{late:S.late||!z,label:S.late?"Cutting it close: be at the gate by":P?`Leave for ${v} by`:`Be at ${v} by`,time:T(_),relative:z?`in ${(0,a.formatMinutes)(W)}`:`${(0,a.formatMinutes)(W)} ago`,steps:F,assumptions:`Planning assumptions, not from your airline: 15 min to walk, 10 min at the gate, boarding 35 min before departure.${S.road?" The weather buffer is our rule of thumb.":""}`,...E&&{delayNote:E},...P&&{credit:t.DRIVE_SOURCE_PRESENTATION[P.source].label}}}])},75019,e=>{"use strict";var t=e.i(36966),n=e.i(944),r=e.i(81614),i=e.i(93195),a=e.i(95921);e.i(55529);var l=e.i(58785);let s={unknown:null,sigmet:"SIGMET",airmet:"forecaster advisory"},o=e=>e?Date.parse(e):NaN;function u(e){let t=o(e.issuedAt),n=o(e.takeoffAt),r=o(e.landingAt);return(e,i)=>(0,a.describeWindow)({level:"light",peakGtg:0,startMs:e,endMs:i,startMile:0,endMile:0,lightAround:!1},n,r,t)}e.s(["BEYOND_FORECAST_MESSAGE",0,"Route turbulence appears about 3 days before departure.","SEATBELT_ADVICE",0,"Keep your seatbelt fastened whenever you’re seated.","advisoryHitsV1",0,function(e){let t=u(e);return(e.advisories?.hits??[]).flatMap(e=>{let n=s[e.source];if("unknown"===e.kind||"unknown"===e.relation||!n)return[];let r=t(o(e.startAt),o(e.endAt)),i=(e.lowerFt??0)>=1e4&&"on the final approach"===r?"during the descent":(e.lowerFt??0)>=1e4&&"just after takeoff"===r?"during the climb":r;return[{...e,kind:e.kind,relation:e.relation,sourceLabel:n,when:i}]})},"endpointConditionsV1",0,function(e,t,n,i){let a=t?.hourly??[],l=(0,r.hourIndexAt)(a,n),s=null!=l?a[l]:void 0;return e&&s?{code:e.iata??e.icao,hour:s,verdict:(0,r.hazardVerdict)(e.hazards,i),gusty:(e.hazards??[]).some(e=>"gusts"===e.kind)}:null},"endpointWarningTextV1",0,function(e,t="imperial"){let n=e.gusty&&null!=e.hour.gustKt?`, gusts to ${(0,l.formatMph)((0,l.ktToMph)(e.hour.gustKt),t)}`:"";return`${e.verdict.text} (${e.code}${n})`},"routeHeadlineV1",0,function(e,r){let s,c=(0,i.hazardBands)(e).filter(e=>"convective"===e.kind&&"conflict"===e.relation).length,d=function(e,r,l,s,u){var c,d;let f,h=(0,i.turbulenceWindows)(e),p=null;if(null!=r&&0===h.length)p="light"===r?"Mostly smooth; brief light chop is possible.":"smooth"===r?"Smooth air expected along the route.":"Smooth air expected for the rest of the route.";else if(null!=r){let e=h.reduce((e,t)=>(0,a.levelRank)(t.level)>(0,a.levelRank)(e.level)||(0,a.levelRank)(t.level)===(0,a.levelRank)(e.level)&&o(t.startAt)>o(e.startAt)?t:e);p=`${t.TURBULENCE_LEVEL_PRESENTATION[e.level].phrase} possible ${s(o(e.startAt),o(e.endAt))}${e.lightAround?", with light chop around it":""}.`}if(u>0){let e=1===u?"A thunderstorm advisory covers part of your route":"Thunderstorm advisories cover parts of your route";return 0===h.length&&"light"!==r?`Clear-air turbulence isn't forecast, but ${e.charAt(0).toLowerCase()}${e.slice(1)}.`:`${p} ${e} too.`}let m=l.filter(e=>"turbulence"===e.kind&&e.rank>=(0,t.rankOf)(n.V1_PIREP_INTENSITIES,"moderate")).sort((e,t)=>Number(t.flightLevel>=180)-Number(e.flightLevel>=180)||e.distanceNm-t.distanceNm)[0];return m&&null!=r&&(0,a.levelRank)(r)0?c/d:.5)=.85?"near arrival":"along your route"}.`:p}(e,(0,i.turbLevel)(e.turbulence?.maxLevel),(s=o(e.issuedAt),e.pireps.flatMap(e=>{let r;if("unknown"===e.kind||"unknown"===e.intensity)return[];let a=Math.round(e.altitudeFt/100);return[{id:e.id,kind:e.kind,rank:(0,t.rankOf)(n.V1_PIREP_INTENSITIES,e.intensity),flightLevel:a,altitudeLabel:(r=100*a)(0,i.turbulenceWindows)(e).length>0],75019)},94893,e=>{"use strict";var t=e.i(55529),n=e.i(10680);let r=(e,n)=>(0,t.formatClock)(e,n)??"—",i=e=>{if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null};function a([e,t]){let n=i(e),r=i(t);return null!=n&&null!=r?r-n:null}let l=e=>null!=e&&e>=0,s=e=>l(e)?(0,n.ghostDuration)(e):"—";function o(e,t,n){let i=a([t.scheduled,t.best]);return{kind:"event",label:e,scheduled:r(t.scheduled,n),predicted:r(t.best,n),deltaMin:t.known&&null!=i?Math.round(i/6e4):null}}function u(e,t){return{kind:"taxi",scheduled:s(a([e.scheduled,t.scheduled])),predicted:s(a([e.best,t.best]))}}function c(e,t,n){let r=a([t.scheduled,n.scheduled]),i=a([t.best,n.best]);return{label:e,scheduled:s(r),predicted:s(i),deltaMin:t.known&&n.known&&l(r)&&l(i)?Math.round((i-r)/6e4):null}}let d=(e,t)=>e?`${e} \xb7 ${t}`:t;e.s(["eventTimes",0,e=>({scheduled:e.scheduled,best:e.best,known:"actual"===e.bestSource||"estimated"===e.bestSource}),"formatDelta",0,function(e){return 0===e?null:`${e>0?"+":"−"}${(0,n.ghostDuration)(6e4*e)}`},"timetableModel",0,function({gateOut:e,takeoff:t,landing:n,gateIn:r},{origin:i,destination:a}){return{sections:[{label:d(i.iata,"Departure"),rows:[o("Gate departure",e,i.timezone),u(e,t),o("Take off",t,i.timezone)]},{label:d(a.iata,"Arrival"),rows:[o("Landing",n,a.timezone),u(n,r),o("Gate arrival",r,a.timezone)]}],totals:[c("Air time",t,n),c("Total time",e,r)]}}])},61110,e=>{"use strict";var t=e.i(84209);function n(e,t,n){return new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:n}).formatToParts(t).find(e=>"timeZoneName"===e.type)?.value}function r(e,t){let r=n(e,t,"longOffset");if("GMT"===r)return 0;let i=r?.match(/GMT([+-])(\d{1,2}):?(\d{2})?/);if(!i)return NaN;let a=60*Number(i[2])+Number(i[3]??0);return"-"===i[1]?-a:a}let i=(e,t)=>new Intl.DateTimeFormat("en-US",{timeZone:t,hour:"numeric",minute:"2-digit",hour12:!0}).format(e),a={"Europe/Guernsey":"Europe/London","Europe/Isle_of_Man":"Europe/London","Europe/Jersey":"Europe/London"};function l(e,t){let r=n(e,t,"long");return r&&r!==n(e,t,"longOffset")?r:null}function s(e,t,n){let a=new Date(n);if(Number.isNaN(a.getTime()))return null;try{let n=r(t,a)-r(e,a);if(!Number.isFinite(n))return null;return{diffMinutes:n,arrivalLocal:i(a,t),arrivalAtOrigin:i(a,e)}}catch{return null}}function o(e,n,r){let i=e.diffMinutes;if(0===i)return{title:"No Timezone Change",detail:"Both airports keep the same clock time"};let a=(0,t.formatMinutes)(Math.abs(i));return{title:`${a} Timezone Change`,detail:`${r} is ${a} ${i{"use strict";let t=(e,t)=>Math.max(0,Math.floor((t-e.getTime())/6e4));function n(e,r=Date.now()){let i=t(e,r);if(i=5},"updatedAgo",0,r,"updatedChip",0,function(e,n=Date.now()){return 1>t(e,n)?"Updated just now":`Updated ${r(e,n)}`},"updatedLabel",0,function(e,t=Date.now()){return`Updated ${n(e,t)}`}])},7212,e=>{"use strict";function t(e,n,r,i=20){return(e+i*r)/(n+i)}e.s(["MIN_FLIGHT_N",0,10,"MIN_ROUTE_N",0,30,"NOTABLE_OFFSET",0,2,"historyOffset",0,function(e){if(!e)return{points:0,displayRate:null,basis:null};let n=e.globalLateRate,r=e.flight&&e.flight.n>=10?e.flight:null,i=e.route&&e.route.n>=30?e.route:null,a=0;r&&(a+=24*(t(r.late,r.n,n)-n)),i&&(a+=17*(t(i.late,i.n,n)-n));let l=r?"flight":i?"route":null,s=r??i;return{points:Math.round(10*Math.max(-5,Math.min(15,a)))/10,displayRate:s?s.late/s.n:null,basis:l}}])},36655,e=>{"use strict";let t=new Set(["ORD","EWR","JFK","LGA","SFO","BOS","DEN"]);e.s(["scoreAirportWeather",0,function(e,n,r){if(!e)return[];let i=(t.has(n.toUpperCase()),1),a="origin"===r,l=[],s=(e,t,n,a)=>l.push({kind:e,end:r,label:t,severity:n,points:Math.round(a*i*10)/10});if(e.freezingPrecip?s("winter",`Freezing precipitation at ${n}`,3,19):e.snow&&s("winter",`Snow at ${n}`,2,a?10:7),e.thunder){let t=e.thunderChance??1;t>0&&s("thunder",t>=.6?`Thunderstorms at ${n}`:`Thunderstorms possible at ${n}`,t>=.6?3:2,(a?18:11)*t)}e.heavyPrecip&&s("precip",`Heavy precipitation at ${n}`,1,5);let o=e.visibilityMi;null!==o&&o=35?s("gust",`Gusts ${Math.round(c)} mph at ${n}`,2,4):null!==c&&c>=25?s("gust",`Gusts ${Math.round(c)} mph at ${n}`,1,1):null!==d&&d>=20&&s("wind",`Wind ${Math.round(d)} mph at ${n}`,1,4),l},"scoreInbound",0,function(e,t,n){if(null===e||e=90)return[];let[r,i]=e>=90?[45,3]:e>=45?[27,2]:[3,1];return[{kind:"inbound-late",end:"inbound",label:`Inbound aircraft ${Math.round(e)} min late into ${n}`,severity:i,points:r}]}])},97510,e=>{"use strict";let t={low:"Low",elevated:"Elevated",high:"High"},n={low:1,elevated:2,high:3},r={live:"Based on current conditions",forecast:"Based on forecast","beyond-forecast":"Beyond forecast range"},i=new Set(["thunder","ground-stop","winter"]);e.s(["DELAY_FLOOR_MIN",0,15,"HORIZON_NOTE",0,r,"riskSummary",0,function(e){if(!e||"unknown"===e.level)return null;let a=e.factors.filter(e=>"history"!==e.kind).slice(0,3),l=a.find(e=>e.severity>=2&&i.has(e.kind))??null;return{level:e.level,label:t[e.level],bars:n[e.level],horizonNote:r[e.horizon],confidence:e.confidence,banner:l,factors:a.filter(e=>e!==l)}},"shouldShowRisk",0,function(e,t){return!!e&&"unknown"!==e.level&&!("low"===e.level&&t>=15)}])},30787,e=>{"use strict";var t=e.i(7212),n=e.i(36655);function r(e){return e>=18?"high":e>=8?"elevated":"low"}let i=e=>e.reduce((e,t)=>e+t.points,0);e.s(["ELEVATED_AT",0,8,"HIGH_AT",0,18,"scoreFlightRisk",0,function(e){let{origin:a,destination:l,horizon:s}=e,o=function(e){let n=(0,t.historyOffset)(e);if(n.pointst.points-e.points),x=Math.max(0,Math.min(100,Math.round((m+o.points)*10)/10)),v=r(x);return"low"===v&&g.some(e=>3===e.severity)&&(v="elevated"),"high"===v&&m{"use strict";let t={follow:.5,maxPx:120,armPx:64,pitchDeg:e.i(46168).TAKEOFF.pitchDeg,holdPx:48,holdMs:200,takeoff:{durationMs:600,x:64,y:-24,climbDeg:20},settleMs:320,armHaptic:"light"};e.s(["BOARD",0,{roomMs:320,riseAt:160},"CAROUSEL_RISE",0,{cards:2,durationMs:600,staggerMs:70},"LEAVE",0,{slidePx:24,fadeMs:200,closeMs:320},"PULL",0,t,"REDUCED_FADE_MS",0,120,"nextRows",0,function(e,t,n){let r=new Set(t),i=new Map(e.map(e=>[e.key,e.motion])),a=new Map,l=null;for(let t of e){if(r.has(t.key)){l=t.key;continue}a.set(l,[...a.get(l)??[],{key:t.key,motion:"leave"}])}let s=[...a.get(null)??[]];for(let e of t){let t=i.get(e),r=void 0===t?n.has(e)?"return":"board":"leave"===t?"return":t;s.push({key:e,motion:r},...a.get(e)??[])}return s},"pullArmed",0,function(e){return e>=t.armPx},"pullDistance",0,function(e){return Math.min(t.maxPx,Math.max(0,e*t.follow))},"pullPitch",0,function(e){return t.pitchDeg*Math.min(1,Math.max(0,e)/t.armPx)}])},65161,e=>{"use strict";let t={placeholder:"—",fadeMs:200};e.s(["HEIGHT_SWAP",0,{heightMs:320,fadeMs:200},"LATE_VALUE",0,t,"PROGRESS_EASE",0,{durationMs:1e3},"REORDER",0,{leaveMs:200,glideMs:320},"SKELETON",0,{shimmerAfterMs:300,shimmerMs:1200},"SLOT",0,{fadeMs:200,heightMs:320,closeMs:256,waveWindowMs:100,waveStepMs:70,riseMs:600,riseFromPx:16,riseFromScale:.985},"catchUpFrom",0,function(e,t){if(null==e||!Number.isFinite(e))return null;let n=Math.max(0,Math.min(1,e));return t-n>=.005?n:null},"lateValueArrives",0,function(e,n){return e.trim()===t.placeholder&&n!==e},"reorderPlan",0,function(e,t){let n=new Set(e),r=new Set(t);return{leaving:e.filter(e=>!r.has(e)),entering:t.filter(e=>!n.has(e))}}])},46168,e=>{"use strict";let t={scheduled:0,"taxiing-out":1,airborne:2,landed:3,arrived:4},n={"taxiing-out":"gateOut",airborne:"takeoff",landed:"landing",arrived:"atGate",diverted:"disrupted",cancelled:"disrupted","returned-to-gate":"disrupted"};function r(e,i,{onScreen:a,seen:l=[]}){if(null==e||e===i||!a)return null;let s=n[i];if(!s||l.includes(s))return null;if("disrupted"===s)return s;let o=t[e],u=t[i];return null!=o&&null!=u&&u>o?s:null}let i={rollMs:700,rotateAt:560,levelAt:900,durationMs:1600,pitchDeg:12,liftPx:5,liftScale:1.12,settleAt:1500,trailFrom:400,trailGoneAt:1400,trailScale:[.2,1,.4],chipAt:700,headline:820,signOffMs:150,haptics:[{at:0,kind:"light"},{at:560,kind:"medium"}]},a=i.durationMs;e.s(["AT_GATE",0,{pulseMs:300,fadeMs:400,hideAt:900,headline:200,durationMs:1e3,haptics:[{at:0,kind:"light"},{at:160,kind:"light"}]},"CATCH_UP",0,{durationMs:900},"DISRUPTED",0,{durationMs:320,haptics:[{at:0,kind:"warning"}]},"GATE_OUT",0,{signOn:0,headline:120,pushbackAt:200,pushbackMs:500,pushbackPx:6,durationMs:900,haptics:[{at:0,kind:"light"},{at:160,kind:"light"}]},"LANDING",0,{flareMs:300,flareDeg:6,touchdownAt:300,bouncePx:2,bounceDeg:2,bounceAt:380,settledAt:600,rollEndAt:1e3,chipAt:400,headline:500,weatherAt:700,durationMs:1400,haptics:[{at:300,kind:"soft"}]},"MOMENT_MAX_MS",0,a,"PLANE_IN",0,{delayMs:250,durationMs:1100,ease:[.22,1,.36,1],x:[-30,3,0],y:[7,-1,0],scale:[.55,1.04,1],moveAt:.78,opaqueAt:.55,contrail:{opacity:[0,1,0],scaleX:[.2,1,.4],peakAt:.4}},"SEATBELT",0,{onMs:300,onScale:.8,ringMs:600,ringScale:[.8,1.6],ringOpacity:.9,chimeScale:1.12,chimeAt:.2,settleAt:.4,offMs:150},"TAKEOFF",0,i,"endMoment",0,e=>e.moment?{...e,moment:null}:e,"momentFor",0,r,"seatbeltOn",0,function(e){return"taxiing-out"===e||"landed"===e},"seeStatus",0,function(e,t){if(e.status===t)return e;let n=t&&e.status?r(e.status,t,{onScreen:!0}):null;if(!n)return{...e,status:t,moment:null};let i=e.count+1;return{status:t,moment:{kind:n,id:i},count:i}},"seenStatus",0,e=>({status:e,moment:null,count:0})])},20973,e=>{"use strict";let t=" ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";e.s(["FLAP_BOARD_RETURN_MS",0,4e3,"FLAP_SPIN_STEP_MS",0,70,"FLAP_STAGGER_MS",0,70,"FLAP_STEP_MS",0,55,"FLAP_TILT",0,{deg:-75,perspectivePx:120,ease:[0,0,.58,1]},"createWordBag",0,function(e,t,n){let r=[],i=t,a=!0;return{next:()=>(r.length||(()=>{let l=a?e.filter(e=>e!==t):[...e];a=!1;for(let e=l.length-1;e>0;e--){let t=Math.floor(n()*(e+1));[l[e],l[t]]=[l[t],l[e]]}l.length>1&&l[l.length-1]===i&&([l[0],l[l.length-1]]=[l[l.length-1],l[0]]),r=l})(),i=r.pop()??i),left:()=>r.length}},"flapSequence",0,function(e,n,r){if(e===n)return[];if(!t.includes(n))return[n];let i=t.indexOf(n),a=[];for(let e=Math.max(0,r);e>=1;e--)a.push(t[(i-e+t.length)%t.length]);return a.push(n),a},"flapSpins",0,(e=Math.random)=>3+Math.floor(3*e()),"nextOnDrum",0,function(e){return t[(t.indexOf(t.includes(e)?e:" ")+1)%t.length]},"twoRowField",0,function(e,t){let n=e.toUpperCase(),r=n.indexOf(" ");return(r{let n=e.slice(0,t),r=Math.floor((t-n.length)/2);return[...n.padStart(r+n.length).padEnd(t)]})}])}]);