1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[215],{2131:(e,t,a)=>{"use strict";a.d(t,{B:()=>i});var l=a(5155),n=a(2115);a(5603);let r="#60a5fa",s="#f87171";function i(e){let{route:t}=e,i=(0,n.useRef)(null),o=(0,n.useRef)(null);return((0,n.useEffect)(()=>{if(!i.current||t.length<2)return;let e=i.current,l=!1;return a.e(761).then(a.t.bind(a,5027,23)).then(a=>{var n;if(l||!e)return;let i="default"in a&&a.default?a.default:a;null==(n=o.current)||n.remove();let c=t.map(e=>[e.lat,e.lng]),d=i.map(e,{scrollWheelZoom:!1,attributionControl:!0});o.current=d,i.tileLayer("https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://carto.com/attributions">CARTO</a>',maxZoom:19}).addTo(d);let u=i.polyline(c,{color:"#4ec65c",weight:3,opacity:.95}).addTo(d);i.circleMarker(c[0],{radius:6,color:r,fillColor:r,fillOpacity:1,weight:1}).addTo(d),i.circleMarker(c[c.length-1],{radius:6,color:s,fillColor:s,fillOpacity:1,weight:1}).addTo(d),d.fitBounds(u.getBounds(),{padding:[28,28]}),requestAnimationFrame(()=>d.invalidateSize())}),()=>{var e;l=!0,null==(e=o.current)||e.remove(),o.current=null}},[t]),t.length<2)?(0,l.jsx)("p",{className:"text-[var(--muted)] text-sm",children:"Not enough GPS data to trace a route."}):(0,l.jsx)("div",{ref:i,className:"route-map w-full h-72 rounded-lg overflow-hidden border border-[var(--border)]"})}},3737:(e,t,a)=>{"use strict";a.d(t,{P:()=>s,l:()=>r});var l=a(8489);let n=["tempF","probe2TempF","probe3TempF","probe4TempF"];function r(e,t){return n.flatMap((a,n)=>{let r=e.readings.map(e=>e[a]).filter(e=>"number"==typeof e);return 0===r.length?[]:[{index:n,label:(0,l.h2)(t,n,e),maxF:Math.max(...r),avgF:r.reduce((e,t)=>e+t,0)/r.length}]})}function s(e){return 0===e.length?null:e.reduce((e,t)=>t.maxF>e.maxF?t:e)}},5603:()=>{},6827:(e,t,a)=>{"use strict";a.d(t,{_:()=>n,z:()=>r});let l="utvtron.undoStash";function n(e){sessionStorage.setItem(l,JSON.stringify(e))}function r(){let e=sessionStorage.getItem(l);if(!e)return null;sessionStorage.removeItem(l);try{let t=JSON.parse(e);if(Date.now()-t.deletedAt>15e3)return null;return t}catch(e){return null}}},6912:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>C});var l=a(5155),n=a(2115),r=a(2619),s=a.n(r),i=a(63),o=a(4567),c=a(5719),d=a(6827),u=a(3398),m=a(3245),x=a(2131),h=a(7557),p=a(9776),v=a(8489),g=a(3737),b=a(1434),f=a(8551);let j={0:"Clear",1:"Mostly clear",2:"Partly cloudy",3:"Overcast",45:"Fog",48:"Fog",51:"Light drizzle",53:"Drizzle",55:"Heavy drizzle",56:"Freezing drizzle",57:"Freezing drizzle",61:"Light rain",63:"Rain",65:"Heavy rain",66:"Freezing rain",67:"Freezing rain",71:"Light snow",73:"Snow",75:"Heavy snow",77:"Snow grains",80:"Light showers",81:"Showers",82:"Heavy showers",85:"Snow showers",86:"Snow showers",95:"Thunderstorm",96:"Thunderstorm",99:"Thunderstorm"};async function N(e,t,a){let l=Date.now()-a<7776e6,n=new Date(a).toISOString().slice(0,10),r="".concat(l?"https://api.open-meteo.com/v1/forecast":"https://archive-api.open-meteo.com/v1/archive","?latitude=").concat(e.toFixed(4),"&longitude=").concat(t.toFixed(4))+"&start_date=".concat(n,"&end_date=").concat(n)+"&hourly=temperature_2m,relative_humidity_2m,weather_code&temperature_unit=fahrenheit&timezone=auto";try{let e=await fetch(r);if(!e.ok)return null;let t=(await e.json()).hourly;if(!t||0===t.time.length)return null;let l=0,n=1/0;for(let e=0;e<t.time.length;e++){let r=Math.abs(new Date(t.time[e]).getTime()-a);r<n&&(n=r,l=e)}let s=t.temperature_2m[l],i=t.relative_humidity_2m[l],o=t.weather_code[l];if("number"!=typeof s||"number"!=typeof i)return null;return{tempF:s,humidityPct:i,weatherCode:o,fetchedAt:Date.now()}}catch(e){return null}}var w=a(6086);let F="rounded-xl border border-[var(--border)] bg-white/[0.03] p-3",y="rounded-xl border border-[var(--border)] bg-white/[0.03] px-4 py-3.5 text-sm placeholder:text-[var(--muted)]",S="rounded-2xl border border-[var(--border)] bg-gradient-to-b from-white/[0.04] to-white/[0.01] shadow-[0_12px_32px_-16px_rgba(0,0,0,0.7)]";function E(){var e,t,a,r,E;let C=(0,i.useSearchParams)(),M=(0,i.useRouter)(),k=C.get("id"),{prefs:_}
1=(0,b.g)(),T=_.tempUnit,[L,R]=(0,n.useState)(!1),[D,z]=(0,n.useState)(null),[O,U]=(0,n.useState)(null),[G,P]=(0,n.useState)(""),[I,B]=(0,n.useState)(""),[A,H]=(0,n.useState)(""),[X,J]=(0,n.useState)(""),[q,W]=(0,n.useState)(""),[Z,V]=(0,n.useState)("idle"),[Y,K]=(0,n.useState)(!1),[Q,$]=(0,n.useState)(null),[ee,et]=(0,n.useState)(""),[ea,el]=(0,n.useState)(["","","",""]),en=(0,n.useRef)(!0);if((0,n.useEffect)(()=>{var e,t,a,l,n,r,s;let i=k&&null!=(e=(0,o.Ht)(k))?e:null,d=(null==i?void 0:i.vehicleId)&&null!=(t=(0,c.Dh)(i.vehicleId))?t:null;z(i),U(d),P(null!=(a=null==i?void 0:i.label)?a:""),B(null!=(l=null==i?void 0:i.notes)?l:""),H(null!=(n=null==i?void 0:i.mountNotes)?n:""),J(null!=(r=null==i?void 0:i.routeName)?r:""),W((null!=(s=null==i?void 0:i.tags)?s:[]).join(", ")),el([0,1,2,3].map(e=>{var t,a,l,n;return null!=(n=null!=(l=null==i||null==(t=i.probeLabels)?void 0:t[e])?l:null==d||null==(a=d.probeLabels)?void 0:a[e])?n:""})),R(!0),en.current=!0},[k]),(0,n.useEffect)(()=>{var e;if(!D||D.isDemo||D.weather)return;let t=null==(e=D.route)?void 0:e[0];if(!t)return;let a=!1;return N(t.lat,t.lng,D.startedAt).then(e=>{if(a||!e)return;let t={...D,weather:e};(0,o.E1)(t),z(t)}),()=>{a=!0}},[null==D?void 0:D.id]),(0,n.useEffect)(()=>{if(!D||!L)return;if(en.current){en.current=!1;return}V("saving");let e=window.setTimeout(()=>{let e=q.split(",").map(e=>e.trim()).filter(Boolean),t=G.trim()||D.label,a={...D,label:t,notes:I,mountNotes:A.trim()||void 0,routeName:X.trim()||void 0,tags:e};(0,o.E1)(a),z(a),V("saved")},600);return()=>window.clearTimeout(e)},[G,I,A,X,q,L]),!L)return(0,l.jsx)("p",{className:"text-[var(--muted)] px-5 pt-10",children:"Loadingâ¦"});if(!D)return(0,l.jsx)("p",{className:"text-[var(--muted)] px-5 pt-10",children:"Session not found."});let er=(0,u.eh)(D),es=(0,h.I)(D,O),ei=(0,p.R)(er,O,D),eo=(0,g.l)(D,O),ec=(0,g.P)(eo),ed=null!=(e=D.route)?e:[],eu=(null!=(t=D.impactEvents)?t:[]).map(e=>({x:e.t})),em=(0,o.GW)().filter(e=>e.id!==D.id&&!e.isDemo),ex=[...new Set(em.map(e=>e.routeName).filter(e=>!!e))].sort((e,t)=>e.localeCompare(t)),eh=async()=>{$(null),K(!0);try{await (0,h.k)(D,O)}catch(e){$(e instanceof Error?e.message:"Share failed.")}finally{K(!1)}},ep=[null!==er.distanceMiles,null!==er.maxSpeedMph,er.impactEventCount>0,null!==er.elevationGainFt].filter(Boolean).length;return(0,l.jsxs)(w.G,{children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("input",{value:G,onChange:e=>P(e.target.value),"aria-label":"Ride name",className:"text-xl font-bold tracking-tight bg-transparent outline-none border-b border-transparent focus:border-[var(--border)] min-w-0 flex-1 -mx-0.5 px-0.5"}),D.isDemo&&(0,l.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-[var(--accent)] border border-[var(--accent)]/40 rounded-full px-1.5 py-0.5 shrink-0",children:"Sample"})]}),O&&(0,l.jsx)("div",{className:"text-sm text-[var(--muted)] mt-0.5",children:O.name}),D.mountNotes&&(0,l.jsx)("p",{className:"text-sm text-[var(--muted)] mt-1 leading-snug",children:D.mountNotes}),(0,l.jsx)("p",{className:"text-sm text-[var(--foreground)]/80 mt-2 leading-snug",children:ei}),(0,l.jsxs)("p",{className:"text-xs text-[var(--muted)] mt-1 tabular-nums",children:[new Date(D.startedAt).toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}),D.weather&&(0,l.jsxs)("span",{children:[" \xb7 ",(0,f._E)(D.weather.tempF,T)," ",null!=(E=j[D.weather.weatherCode])?E:"Unknown"," \xb7"," ",Math.round(D.weather.humidityPct),"% humidity"]})]})]}),(0,l.jsx)(s(),{href:"/history",className:"text-sm text-[var(--muted)] underline shrink-0 pt-1",children:"Back"})]}),er.hasTempData?(0,l.jsxs)("div",{className:"grid grid-cols-3 gap-3 text-center",children:[(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-2xl font-bold tabular-nums",children:(0,f._E)(null!=(a=null==ec?void 0:ec.maxF)?a:er.maxTempF,T)}),(0,l.jsxs)("div",{className:"text-xs text-[var(--muted)]",children:["max",ec?" ".concat(ec.label):""]})]}),(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-2xl font-bold tabular-nums",children:(0,f._E)(null!=(r=null==ec?void 0:ec.avgF)?r:er.avgTempF,T)}),(0,l.jsxs)("div",{className:"text-xs text-[var(--muted)]",children:["avg",ec?" ".concat(ec.label):""]})]}),(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-2xl font-bold tabular-nums",children:Math.round(er.durationMs/6e4)}),(0,l.jsx)("div",{className:"text-xs text-[var(--muted)]",children:"min"})]})]}):(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3 text-center",children:[(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-2xl font-bold tabular-nums",children:Math.round(er.durationMs/6e4)}),(0,l.jsx)("div",{className:"text-xs text-[var(--muted)]",children:"min"})]}),null!==er.distanceMiles&&(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-2xl font-bold tabular-nums",children:er.distanceMiles.toFixed(1)}),(0,l.jsx)("div",{className:"text-xs text-[var(--muted)]",children:"miles"})]}),null!==er.maxSpeedMph&&(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-2xl font-bold tabular-nums",children:er.maxSpeedMph.toFixed(0)}),(0,l.jsx)("div",{className:"text-xs text-[var(--muted)]",children:"max mph"})]}),null!==er.elevationGainFt&&(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-2xl font-bold tabular-nums",children:Math.round(er.elevationGainFt)}),(0,l.jsxs)("div",{className:"text-xs text-[var(--muted)]",children:["ft climbed",null!==er.maxGradePct?" \xb7 ".concat(er.maxGradePct.toFixed(0),"% max"):""]})]}),(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-2xl font-bold tabular-nums",children:er.impactEventCount}),(0,l.jsxs)("div",{className:"text-xs text-[var(--muted)]",children:["impact",1===er.impactEventCount?"":"s",null!==er.max
1ImpactG?" \xb7 ".concat(er.maxImpactG.toFixed(1),"g"):""]})]})]}),eo.length>1&&(0,l.jsx)("div",{className:"grid gap-3 text-center ".concat(2===eo.length?"grid-cols-2":"grid-cols-3"),children:eo.map(e=>(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-xl font-bold tabular-nums",children:(0,f._E)(e.maxF,T)}),(0,l.jsx)("div",{className:"text-xs text-[var(--muted)]",children:e.label})]},e.index))}),er.hasTempData&&ep>0&&(0,l.jsxs)("div",{className:"grid gap-3 text-center ".concat({1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-2"}[ep]),children:[null!==er.distanceMiles&&(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-xl font-bold tabular-nums",children:er.distanceMiles.toFixed(1)}),(0,l.jsx)("div",{className:"text-xs text-[var(--muted)]",children:"miles"})]}),null!==er.maxSpeedMph&&(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-xl font-bold tabular-nums",children:er.maxSpeedMph.toFixed(0)}),(0,l.jsx)("div",{className:"text-xs text-[var(--muted)]",children:"max mph"})]}),null!==er.elevationGainFt&&(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-xl font-bold tabular-nums",children:Math.round(er.elevationGainFt)}),(0,l.jsxs)("div",{className:"text-xs text-[var(--muted)]",children:["ft climbed",null!==er.maxGradePct?" \xb7 ".concat(er.maxGradePct.toFixed(0),"% max"):""]})]}),er.impactEventCount>0&&(0,l.jsxs)("div",{className:F,children:[(0,l.jsx)("div",{className:"text-xl font-bold tabular-nums",children:er.impactEventCount}),(0,l.jsxs)("div",{className:"text-xs text-[var(--muted)]",children:["impact",1===er.impactEventCount?"":"s",null!==er.maxImpactG?" (max ".concat(er.maxImpactG.toFixed(1),"g)"):""]})]})]}),er.hasTempData&&(0,l.jsx)("div",{className:"".concat(S," p-4"),children:(0,l.jsx)(m.bB,{series:es,markers:eu,thresholdF:null==O?void 0:O.alertThresholdF,formatY:e=>"".concat((0,f.SU)(e,T).toFixed(0),"\xb0")})}),ed.length>=2&&(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-xs font-semibold text-[var(--muted)] uppercase tracking-widest mb-2",children:"Route"}),(0,l.jsx)("div",{className:"".concat(S," p-4"),children:(0,l.jsx)(x.B,{route:ed})})]}),em.length>0&&(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsxs)("select",{value:ee,onChange:e=>et(e.target.value),className:"flex-1 ".concat(y),children:[(0,l.jsx)("option",{value:"",children:"Compare toâ¦"}),em.map(e=>(0,l.jsx)("option",{value:e.id,children:e.label},e.id))]}),(0,l.jsx)("button",{onClick:()=>{ee&&M.push("/history/compare?a=".concat(D.id,"&b=").concat(ee))},disabled:!ee,className:"".concat("rounded-xl border border-[var(--border)] bg-white/[0.03] font-semibold py-3.5 active:scale-[0.98] transition-transform"," px-5 disabled:opacity-40"),children:"Compare"})]}),eo.length>0&&(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("h2",{className:"text-xs font-semibold text-[var(--muted)] uppercase tracking-widest",children:"Probe names for this ride"}),eo.map(e=>{var t;return(0,l.jsx)("input",{value:null!=(t=ea[e.index])?t:"",onChange:t=>el(a=>a.map((a,l)=>l===e.index?t.target.value:a)),placeholder:v.JF[e.index],className:y},e.index)}),(0,l.jsx)("button",{type:"button",onClick:()=>{let e=ea.map(e=>e.trim()),t={...D,probeLabels:e.some(Boolean)?e:void 0};(0,o.E1)(t),z(t),V("saved")},className:"text-sm text-[var(--accent)] underline self-start",children:"Save names"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[ed.length>=2&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("input",{value:X,onChange:e=>J(e.target.value),placeholder:"Route name (e.g. North Loop) â groups repeat rides",list:"route-name-options",className:y}),(0,l.jsx)("datalist",{id:"route-name-options",children:ex.map(e=>(0,l.jsx)("option",{value:e},e))})]}),(0,l.jsx)("input",{value:A,onChange:e=>H(e.target.value),placeholder:"Probe mounts (e.g. Outlet duct \xb7 Cabin ambient \xb7 Engine bay)",className:y}),(0,l.jsx)("textarea",{value:I,onChange:e=>B(e.target.value),placeholder:"Notes (e.g. what you noticed, trail conditions)",rows:3,className:y}),(0,l.jsx)("input",{value:q,onChange:e=>W(e.target.value),placeholder:"Tags, comma separated (e.g. hot day, hill climbing)",className:y}),(0,l.jsx)("p",{className:"text-xs text-[var(--muted)] min-h-[1rem]",children:"saving"===Z?"Savingâ¦":"saved"===Z?"Saved":""})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("button",{onClick:eh,disabled:Y,className:"w-full ".concat("rounded-xl bg-gradient-to-b from-[#4dc95f] to-[var(--accent)] text-black font-semibold py-3.5 shadow-[0_8px_20px_-6px_rgba(63,185,80,0.5)] active:scale-[0.98] transition-transform disabled:opacity-50"),children:Y?"Renderingâ¦":"Share ride"}),(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 px-0.5",children:[(0,l.jsx)("button",{onClick:()=>{let e=new Blob([(0,o.om)(D)],{type:"text/csv"}),t=URL.createObjectURL(e),a=document.createElement("a");a.href=t,a.download="".concat(D.label.replace(/\s+/g,"-"),"-").concat(D.id.slice(0,8),".csv"),a.click(),URL.revokeObjectURL(t)},className:"text-sm text-[var(--muted)] underline",children:"Export CSV"}),ed.length>=2&&(0,l.jsx)("button",{onClick:()=>{let e=new Blob([function(e){var t;let a=(null!=(t=e.route)?t:[]).map(t=>{let a=new Date(e.startedAt+t.t).toISOString(),l="number"==typeof t.altitudeM?"<ele>".concat(t.altitudeM.toFixed(1),"</ele>"):"";return' <trkpt lat="'.concat(t.lat,'" lon="').concat(t.lng,'">').concat(l,"<time>").concat(a,"</time></trkpt>")}).join("\n");return'<?xml version="1.0" encoding="UTF-8"?>\n<gpx version="1.1" creator="utvtron" xmlns="http://www.topografix.com/GPX/1/1">\n <trk>\n <name>'.concat(e.label.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),"</name>\n <trkseg>\n").concat(a,"\n </trkseg>\n </trk>\n</gpx>\n")}(D)],{type:"application/gpx+xml"}),t=URL.createObjectURL(e),a=document.createElement("a");a.href=t,a.download="".concat(D.label.replace(/\s+/g,"-"),"-").concat(D.id.slice(0,8),".gpx"),a.click(),URL.revokeObjectURL(t)},className:"text-sm text-[var(--muted)] underline",children:"Export GPX"})]})]}),Q&&(0,l.jsx)("p",{className:"text-sm text-red-400",children:Q}),(0,l.jsx)("button",{onClick:()=>{(0,d._)({kind:"session",data:D,deletedAt:Date.now()}),(0,o.ME)(D.id),M.push("/history")},className:"text-sm text-red-400 underline self-start mt-2",children:"Delete ride"})]})}function C(){return(0,l.jsx)(n.Suspense,{children:(0,l.jsx)(E,{})})}},7557:(e,t,a)=>{"use strict";a.d(t,{I:()=>d,k:()=>u});var l=a(3048),n=a(8489),r=a(3737),s=a(9616),i=a(8551),o=a(3398);let c=["tempF","probe2TempF","probe3TempF","probe4TempF"];function d(e,t){return c.map((a,l)=>({label:(0,n.h2)(t,l,e),color:n.Cl[l],points:e.readings.filter(e=>"number"==typeof e[a]).map(e=>({x:e.t,y:e[a]}
1))})).filter(e=>e.points.length>0)}async function u(e,t){var a,n,c;let u=(0,o.eh)(e),m=d(e,t),x=(0,s.lX)().tempUnit,h=(0,r.l)(e,t),p=(0,r.P)(h),v=Object.fromEntries(h.map(e=>[e.label,(0,i._E)(e.maxF,x)])),g=await (0,l.z)({title:e.label,subtitle:[null==t?void 0:t.name,new Date(e.startedAt).toLocaleDateString()].filter(Boolean).join(" \xb7 "),footnote:(null==(a=e.mountNotes)?void 0:a.trim())||void 0,stats:[...p?[{label:p.label,value:(0,i._E)(p.maxF,x)}]:[],{label:"min",value:"".concat(Math.round(u.durationMs/6e4))},...null!==u.distanceMiles?[{label:"miles",value:u.distanceMiles.toFixed(1)}]:[],...p||null===u.maxSpeedMph?[]:[{label:"max mph",value:u.maxSpeedMph.toFixed(0)}],...u.impactEventCount>0||!p?[{label:"impacts",value:String(u.impactEventCount)}]:[]],series:m,seriesPeaks:v,thresholdF:null==t?void 0:t.alertThresholdF});if(!g)throw Error("Couldn't render an image on this device.");let b=new File([g],"".concat(e.label.replace(/\s+/g,"-"),".png"),{type:"image/png"});if(navigator.share&&(null==(n=(c=navigator).canShare)?void 0:n.call(c,{files:[b]}))){try{await navigator.share({files:[b],title:e.label})}catch(e){if(e instanceof Error&&"AbortError"!==e.name)throw Error("Share was cancelled or failed.")}return}let f=URL.createObjectURL(g),j=document.createElement("a");j.href=f,j.download=b.name,j.click(),URL.revokeObjectURL(f)}},9208:(e,t,a)=>{Promise.resolve().then(a.bind(a,6912))},9776:(e,t,a)=>{"use strict";a.d(t,{R:()=>s,m:()=>i});var l=a(9616),n=a(8551),r=a(3737);function s(e,t,a){let s=(0,l.lX)().tempUnit,i=["".concat(Math.round(e.durationMs/6e4)," min")];null!==e.distanceMiles&&i.push("".concat(e.distanceMiles.toFixed(1)," mi"));let o=a?(0,r.P)((0,r.l)(a,t)):null;return o?(i.push("".concat(o.label," ").concat((0,n._E)(o.maxF,s)," peak")),(null==t?void 0:t.alertThresholdF)!==void 0&&i.push(o.maxF>=t.alertThresholdF?"over ".concat((0,n._E)(t.alertThresholdF,s)," alert"):"under ".concat((0,n._E)(t.alertThresholdF,s)," alert"))):e.hasTempData?(i.push("".concat((0,n._E)(e.maxTempF,s)," peak")),(null==t?void 0:t.alertThresholdF)!==void 0&&i.push(e.maxTempF>=t.alertThresholdF?"over ".concat((0,n._E)(t.alertThresholdF,s)," alert"):"under ".concat((0,n._E)(t.alertThresholdF,s)," alert"))):i.push("no probe"),e.impactEventCount>0&&i.push("".concat(e.impactEventCount," impact").concat(1===e.impactEventCount?"":"s")),i.join(" \xb7 ")}function i(e){let t=(0,l.lX)().tempUnit,a=["".concat(Math.round(e.durationMs/6e4)," min")];return null!==e.distanceMiles&&a.push("".concat(e.distanceMiles.toFixed(1)," mi")),e.hasTempData&&a.push("".concat((0,n._E)(e.hottestMaxF||e.maxTempF,t)," max")),e.impactEventCount>0&&a.push("".concat(e.impactEventCount," impact").concat(1===e.impactEventCount?"":"s")),a.join(" \xb7 ")}}},e=>{e.O(0,[804,226,863,301,176,767,392,371,441,968,358],()=>e(e.s=9208)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.