1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4503],{5876:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(37876);s(14232);var a=s(28766);let l=({text:e,className:t=""})=>(0,r.jsxs)("div",{className:`flex flex-col justify-center items-center ${t}`,children:[(0,r.jsxs)("div",{className:"relative w-10 h-10","aria-hidden":!0,children:[(0,r.jsx)("div",{className:"absolute inset-0 rounded-full border-2 border-gray-200 border-t-blue-600 animate-spin"}),(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,r.jsx)("img",{src:a.A.src??a.A,alt:"",className:"w-6 h-6 object-contain pointer-events-none"})})]}),e&&(0,r.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:e})]})},49086:(e,t,s)=>{s.d(t,{I:()=>w,A:()=>y});var r=s(37876),a=s(76623),l=s(14232);function n({children:e,initialVisibleCount:t=3,expandLabel:s,collapseLabel:a,label:i,defaultOpen:o=!1,className:d=""}){let[u,m]=(0,l.useState)(o),[x,h]=(0,l.useState)(!1),f=(0,l.useId)(),g=l.Children.toArray(e),p=g.length>t,b=x?g:g.slice(0,t);return 0===g.length?null:(0,r.jsxs)("section",{className:`overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm ${d}`,children:[i&&(0,r.jsxs)("button",{type:"button","aria-controls":f,"aria-expanded":u,onClick:()=>m(e=>!e),className:`flex w-full items-center justify-between px-4 py-3 text-left transition-colors hover:bg-gray-50 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-gray-500 sm:px-5 ${u?"border-b border-gray-100":""}`,children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsx)("span",{className:"flex h-7 w-7 items-center justify-center rounded-full bg-amber-50 text-amber-600",children:(0,r.jsx)(c,{className:"h-4 w-4"})}),(0,r.jsx)("h2",{className:"text-sm font-semibold text-gray-900",children:i})]}),(0,r.jsxs)("span",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"rounded-full bg-gray-100 px-2 py-0.5 text-xs font-medium tabular-nums text-gray-600",children:g.length}),(0,r.jsx)("svg",{className:`h-4 w-4 text-gray-400 transition-transform ${u?"rotate-180":""}`,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})]})]}),(0,r.jsx)("div",{id:f,className:"divide-y divide-gray-100","aria-live":"polite",hidden:!!i&&!u,children:b}),(!i||u)&&p&&(0,r.jsx)("button",{type:"button","aria-controls":f,"aria-expanded":x,onClick:()=>h(e=>!e),className:"w-full border-t border-gray-100 bg-gray-50/70 px-4 py-2.5 text-sm font-medium text-gray-600 transition-colors hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-gray-500",children:x?a:s})]})}function i({children:e,meta:t,title:s,defaultExpanded:a=!1,className:n=""}){let[o,d]=(0,l.useState)(a),u=(0,l.useId)(),m=l.Children.toArray(e).length>0;return(0,r.jsxs)("article",{className:`relative bg-white transition-colors hover:bg-gray-50/60 ${n}`,children:[(0,r.jsxs)("button",{type:"button","aria-controls":m?u:void 0,"aria-expanded":m?o:void 0,disabled:!m,onClick:()=>m&&d(e=>!e),className:"flex w-full items-start gap-3 px-4 py-3.5 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-gray-500 disabled:cursor-default sm:px-5",children:[(0,r.jsx)("span",{className:"mt-0.5 flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-amber-50 text-amber-600",children:(0,r.jsx)(c,{className:"h-3.5 w-3.5"})}),(0,r.jsxs)("span",{className:"min-w-0 flex-1",children:[s,t]}),m&&(0,r.jsx)("svg",{className:`mt-1 h-4 w-4 flex-shrink-0 text-gray-400 transition-transform ${o?"rotate-180":""}`,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})]}),m&&o&&(0,r.jsx)("div",{id:u,className:"pb-4 pl-[3.75rem] pr-5",children:e})]})}function c({className:e="h-5 w-5"}){return(0,r.jsx)("svg",{className:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.16
17 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})})}function o({children:e,className:t=""}){return 0===l.Children.toArray(e).length?null:(0,r.jsx)("span",{className:`mt-1.5 flex flex-wrap items-center gap-1.5 ${t}`,children:e})}function d({children:e,tone:t="neutral",className:s=""}){let a={danger:"bg-red-50 text-red-700 ring-red-600/20",warning:"bg-amber-50 text-amber-700 ring-amber-600/20",neutral:"bg-gray-100 text-gray-600 ring-gray-300/40"};return(0,r.jsx)("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium ring-1 ring-inset ${a[t]||a.neutral} ${s}`,children:e})}function u({items:e=[],maxVisible:t=3,renderItem:s,overflowLabel:a}){if(0===e.length)return null;let l=e.slice(0,t),n=e.length-l.length;return(0,r.jsxs)(r.Fragment,{children:[l.map((e,t)=>s(e,t)),n>0&&(0,r.jsx)(d,{className:"text-gray-500",children:a?a(n):`+${n}`})]})}function m({children:e,className:t=""}){return e?(0,r.jsx)("span",{className:`block text-sm font-semibold leading-5 text-gray-900 ${t}`,children:e}):null}function x({children:e,className:t=""}){return e?(0,r.jsx)("p",{className:`whitespace-pre-line text-sm leading-6 text-gray-600 ${t}`,children:e}):null}function h({href:e,children:t,className:s=""}){return e?(0,r.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:`mt-2 inline-flex items-center text-xs font-medium text-blue-600 hover:text-blue-800 ${s}`,children:[t,(0,r.jsx)("svg",{className:"ml-1 h-3 w-3",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})})]}):null}var f=s(73865),g=s(78240);function p({effect:e}){let{t}=(0,f.B)(),s={1:t("effectLabel1"),2:t("effectLabel2"),3:t("effectLabel3"),4:t("effectLabel4"),5:t("effectLabel5"),6:t("effectLabel6"),7:t("effectLabel7"),8:t("effectLabel8"),9:t("effectLabel9")}[e]||e;if(!s)return null;let a=["1","2","3"].includes(e);return(0,r.jsx)(d,{tone:a?"danger":"warning",children:s})}function b({label:e}){return(0,r.jsx)(d,{children:e})}function j(e){let{stops:t}=(0,g.X5)(e),{allRoutes:s}=(0,g.Ve)(e,{withShapes:!1});return{stopNames:(0,l.useMemo)(()=>{if(!t)return{};let e={};for(let s of t)e[s.stop_id]=s.stop_name;return e},[t]),routeNames:(0,l.useMemo)(()=>{if(!s||0===s.length)return{};let e={};for(let t of s){let s=t.route||t;e[s.route_id]=s.route_long_name||s.route_short_name||s.route_id}return e},[s])}}function v({alert:e,stopNames:t={},routeNames:s={}}){let{t:l}=(0,f.B)(),n={1:l("causeLabel1"),2:l("causeLabel2"),3:l("causeLabel3"),4:l("causeLabel4"),5:l("causeLabel5"),6:l("causeLabel6"),7:l("causeLabel7"),8:l("causeLabel8"),9:l("causeLabel9"),10:l("causeLabel10"),11:l("causeLabel11"),12:l("causeLabel12")}[e.cause],c=(e.affected_route_ids||[]).map(e=>s[e]||e),d=(e.affected_stop_ids||[]).map(e=>t[e]||e),g=[...c.map((e,t)=>({key:`route-${t}`,label:e})),...d.map((e,t)=>({key:`stop-${t}`,label:e}))];return(0,r.jsxs)(i,{defaultExpanded:!1,title:(0,r.jsx)(m,{children:e.header_text||n||l("alertsTitle")}),meta:(0,r.jsxs)(o,{children:[e.effect&&(0,r.jsx)(p,{effect:e.effect}),(0,r.jsx)(u,{items:g,renderItem:e=>(0,r.jsx)(b,{label:e.label},e.key)}),n&&n!==l("causeLabel1")&&n!==l("causeLabel2")&&(0,r.jsx)("span",{className:"text-xs text-gray-500",children:n})]}),children:[(0,r.jsx)(x,{children:e.description_text}),(0,r.jsx)(a.A,{alert:e}),(0,r.jsx)(h,{href:e.url,children:l("alertsMoreInfo")})]})}function N(e,{routeIds:t,stopIds:s,tripIds:r,includeNetworkWide:a=!1}={}){let{alerts:n,isLoading:i}=(0,g.Gn)(e);return{alerts:(0,l.useMemo)(()=>{if(!n||0===n.length)return[];let e=new Set((t||[]).map(String)),l=new Set((s||[]).map(String)),i=new Set((r||[]).map(String));return e.size>0||l.size>0||i.size>0||a?n.filter(t=>{let s=t.affected_route_ids||[],r=t.affected_stop_ids||[],n=t.affected_trip_ids||[];return 0===s.length&&0===r.length&&0===n.length?a:!!(e.size>0&&s.some(t=>e.has(String(t)))||l.size>0&&r.some(e=>l.has(String(e)))||i.size>0&&n.some(e=>
1i.has(String(e))))}):n},[n,t,s,r,a]),isLoading:i}}function w({networkSlug:e,routeIds:t,stopIds:s,tripIds:a,includeNetworkWide:l,className:i=""}){let{alerts:c,isLoading:o}=N(e,{routeIds:t,stopIds:s,tripIds:a,includeNetworkWide:l}),{stopNames:d,routeNames:u}=j(e),{t:m}=(0,f.B)();return o||!c||0===c.length?null:(0,r.jsx)(n,{className:i,label:m("alertsTitle"),initialVisibleCount:3,expandLabel:m("alertsViewAll").replace("{n}",c.length),collapseLabel:m("alertsShowFewer"),children:c.map((e,t)=>(0,r.jsx)(v,{alert:e,stopNames:d,routeNames:u},e.id||t))})}function y({networkSlug:e,routeIds:t,stopIds:s,tripIds:a,includeNetworkWide:l}){let{alerts:i,isLoading:c}=N(e,{routeIds:t,stopIds:s,tripIds:a,includeNetworkWide:l}),{stopNames:o,routeNames:d}=j(e),{t:u}=(0,f.B)();return c||!i||0===i.length?null:(0,r.jsxs)("div",{className:"mt-12 mb-4",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold tracking-tight text-gray-900 mb-2",children:u("alertsTitle")}),(0,r.jsx)("p",{className:"text-gray-600 mb-6",children:u("alertsSubtitle")}),(0,r.jsx)(n,{initialVisibleCount:3,expandLabel:u("alertsViewAll").replace("{n}",i.length),collapseLabel:u("alertsShowFewer"),children:i.map((e,t)=>(0,r.jsx)(v,{alert:e,stopNames:o,routeNames:d},e.id||t))})]})}},49915:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(37876),a=s(60570),l=s(48230),n=s.n(l);function i({pages:e}){return(0,r.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,r.jsxs)("ol",{role:"list",className:"flex items-center space-x-4 pt-6",children:[(0,r.jsx)("li",{children:(0,r.jsx)("div",{children:(0,r.jsxs)(n(),{href:"/",className:"text-gray-400 hover:text-gray-500",children:[(0,r.jsx)(a.A,{"aria-hidden":"true",className:"h-5 w-5 flex-shrink-0"}),(0,r.jsx)("span",{className:"sr-only",children:"Home"})]})})}),e.map(e=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("svg",{fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",className:"h-5 w-5 flex-shrink-0 text-gray-300",children:(0,r.jsx)("path",{d:"M5.555 17.776l8-16 .894.448-8 16-.894-.448z"})}),(0,r.jsx)(n(),{href:e.href,"aria-current":e.current?"page":void 0,className:"ml-4 text-sm font-medium text-gray-500 hover:text-gray-700",children:e.name})]})},e.name))]})})}},56785:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(12107),a=s(34299),l=s(89099),n=s(74880);function i({networkName:e,networkSlug:t,network:s}){let c=(0,l.useRouter)(),o=s??n.Y.getNetwork(t),d=[{name:"Trains",href:`/networks/${t}/`,icon:r.A},{name:"Statistics",href:`/networks/${t}/statistics/`,icon:a.A},...["ttc","stm","translink"].includes(t)?[{name:"Metro Map",href:`/networks/${t}/metromap/`,icon:r.A}]:[]].map(e=>{let s="Trains"===e.name&&(c.asPath===`/networks/${t}/`||c.asPath.includes(`/networks/${t}/trains`)||c.asPath.includes(`/networks/${t}/train`))||"Stations"===e.name&&c.asPath.includes(`/networks/${t}/stations`)||"Routes"===e.name&&c.asPath.includes(`/networks/${t}/routes`)||"Statistics"===e.name&&c.asPath.includes(`/networks/${t}/statistics`)||"Metro Map"===e.name&&c.asPath.includes(`/networks/${t}/metromap`);return{...e,isActive:s}});return{networkName:e,networkSlug:t,network:o,links:d}}},76623:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(37876),a=s(73865);function l({alert:e}){let{t}=(0,a.B)(),s=e.original_header_text,n=e.original_description_text;return(null!=s&&s!==(e.header_text||"")||null!=n&&n!==(e.description_text||""))&&(s||n)?(0,r.jsxs)("details",{className:"mt-2 text-sm",children:[(0,r.jsx)("summary",{className:"cursor-pointer font-medium underline focus-visible:outline focus-visible:outline-2",children:t("alertsViewOriginal")}),(0,r.jsxs)("div",{className:"mt-2 space-y-1 whitespace-pre-wrap",dir:"auto",children:[s&&(0,r.jsx)("p",{className:"font-medium",children:s}),n&&(0,r.jsx)("p",{children:n})]})]}):null}}}]);
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.