1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[411],{68720:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/news/out",function(){return n(75923)}])},75923:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return g},default:function(){return j}});var r=n(85893),i=n(11163),a=n(67294),l=n(9008),o=n.n(l),s=n(41664),c=n.n(s),d=n(82080),u=n(22345),m=n(44279),p=n(46160);let h=async(e,t)=>{try{let t=e=>{try{let t=new URL(e);t.hash="",["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].forEach(e=>t.searchParams.delete(e));let n=t.pathname.replace(/\/$/,"");return"".concat(t.origin).concat(n)}catch(t){return e.replace(/\/$/,"")}},n=e=>{let t=e.match(/<description><!\[CDATA\[(.*?)\]\]><\/description>|<description>(.*?)<\/description>/),n=e.match(/<content:encoded><!\[CDATA\[(.*?)\]\]><\/content:encoded>|<content:encoded>(.*?)<\/content:encoded>/),r=e.match(/<summary><!\[CDATA\[(.*?)\]\]><\/summary>|<summary>(.*?)<\/summary>/),i=e.match(/<media:description><!\[CDATA\[(.*?)\]\]><\/media:description>|<media:description>(.*?)<\/media:description>/),a=(null==t?void 0:t[1])||(null==t?void 0:t[2])||(null==n?void 0:n[1])||(null==n?void 0:n[2])||(null==r?void 0:r[1])||(null==r?void 0:r[2])||(null==i?void 0:i[1])||(null==i?void 0:i[2])||"";return a?String(a).replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").trim().substring(0,300):""},r=new URL(e),i=r.hostname;for(let a of["/rss","/feed","/feed.xml","/rss.xml","/atom.xml"])try{let l="".concat(r.protocol,"//").concat(i).concat(a),o=await fetch(l,{headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},signal:AbortSignal.timeout(5e3)});if(o.ok){let r;let i=await o.text(),a=/<item>([\s\S]*?)<\/item>/g;for(;null!==(r=a.exec(i));){let i=r[1],a=i.match(/<link>(.*?)<\/link>/),l=i.match(/<guid[^>]*>(.*?)<\/guid>/),o=(null==a?void 0:a[1])||(null==l?void 0:l[1])||"";if(!o)continue;let s=t(o),c=t(e);if(s===c||c.startsWith(s)||s.startsWith(c)){let e=n(i);if(e.length>20)return e}}}}catch(e){continue}return null}catch(e){return console.warn("Failed to fetch preview text from RSS:",e),null}};var f=n(74847),x=n(20169),w=n.n(x);let v={"Missing or invalid URL parameter":"newsOutbound.errors.missingUrl","Invalid URL format":"newsOutbound.errors.invalidFormat","Only HTTP and HTTPS URLs are allowed":"newsOutbound.errors.invalidProtocol","Invalid URL: missing hostname":"newsOutbound.errors.missingHostname","Failed to decode URL parameter":"newsOutbound.errors.decodeFailed"},b=e=>{try{return decodeURIComponent(e)}catch(t){return e}};var g=!0,j=e=>{let{initialError:t=null,initialPreviewData:n=null}=e,l=(0,i.useRouter)(),s=(0,f.vf)(),[x,g]=(0,a.useState)(t),[j,N]=(0,a.useState)(n),[_,y]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(t||n||!l.isReady)return;let{u:e,t:r,s:i,d:a,x:o}=l.query;if(!e||"string"!=typeof e){g("Missing or invalid URL parameter");return}try{let t;let n=atob(e);try{t=new URL(n)}catch(e){g("Invalid URL format");return}if("http:"!==t.protocol&&"https:"!==t.protocol){g("Only HTTP and HTTPS URLs are allowed");return}if(!t.hostname||0===t.hostname.length){g("Invalid URL: missing hostname");return}let l="string"==typeof r?b(r):void 0,s="string"==typeof i?b(i):void 0,c="string"==typeof a?b(a):void 0,d="string"==typeof o?b(o):void 0;N({url:n,title:l,source:s,date:c,excerpt:d}),d||(y(!0),h(n,s).then(e=>{e&&N(t=>t?{...t,excerpt:e}:t),y(!1)}).catch(()=>{y(!1)}))}catch(e){console.error("Error decoding preview data:",e),g("Failed to decode URL parameter")}},[l.isReady,l.query,t,n]);let O=(0,a.useMemo)(()=>{if(!(null==j?void 0:j.date))return null;try{return(0,p.u5)(j.date)}catch(e){return j.date}},[null==j?void 0:j.date]);return x?(0,r.jsxs)(d.IE,{children:[(0,r.jsx)(o(),{children:(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"})}),(0,r.jsx)(u.W2,{children:(0,r.jsxs)("div",{className:w().errorContainer,children:[(0,r.jsx)("h1",{className:w().errorTitle,children:s.t("newsOutbound.invalidLink")}),(0,r.jsx)("p",{className:w().errorMessage,children:v[x]?s.t(v[x]):x}),(0,r.jsx)(c(),{href:"/news",className:w().backLink,children:s.t("newsOutbound.backToNews")})]})})]}):j?(0,r.jsxs)(d.IE,{children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("title",{children:j.title?s.t("newsOutbound.titleWithArticle",{title:j.title}):s.t("newsOutbound.title")})]}),(0,r.jsx)(u.W2,{children:(0,r.jsx)("div",{className:w().previewContainer,children:(0,r.jsxs)("div",{className:w().previewCard,children:[j.title&&(0,r.jsx)("h1",{className:w().title,children:j.title}),(j.source||O)&&(0,r.jsxs)("div",{className:w().meta,children:[j.source&&(0,r.jsx)("span",{className:w().source,children:j.source}),j.source&&O&&(0,r.jsx)("span",{className:w().metaSeparator,children:"â¢"}),O&&(0,r.jsx)("span",{className:w().date,children:O})]}),j.excerpt?(0,r.jsx)("div",{className:w().excerpt,children:j.excerpt}):_?null:(0,r.jsx)("div",{className:w().excerptFallback,children:j.title?j.source?s.t("newsOutbound.fallbackWithTitleAndSource",{title:j.title,source:j.source}):s.t("newsOutbound.fallbackWithTitle",{title:j.title}):s.t("newsOutbound.fallback")}),(0,r.jsx)("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:w().ctaButton,onClick:()=>{(null==j?void 0:j.url)&&(0,m._Y)("Outbound Links","Outbound Links","News:preview",j.url)},children:j.source?s.t("newsOutbound.cta",{source:j.source}):s.t("newsOutbound.ctaNoSource")}),(0,r.jsx)("p",{className:w().disclaimer,children:s.t("newsOutbound.disclaimer")})]})})})]}):(0,r.jsxs)(d.IE,{children:[(0,r.jsx)(o(),{children:(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"})}),(0,r.jsx)(u.W2,{children:(0,r.jsx)("div",{className:w().loadingContainer,"aria-busy":"true"})})]})}},20169:function(e){e.exports={"app-font-size":"16",breakpoint:"breakpoint","number-lines":"number-lines",previewContainer:"ppXUdE",previewCard:"_2QHxmY",title:"TNTuO8",meta:"RNAwI2",source:"_6uLoPU",metaSeparator:"I1fQZI",date:"sCROnA",excerpt:"EmOwX0",excerptFallback:"_7mcexG",ctaButton:"vcPyxf",disclaimer:"WQxjgy",errorContainer:"oPtl1C",loadingContainer:"IO6Ki1",errorTitle:"_1Q7zYj",errorMessage:"_3rJX6L",backLink:"PzdjDa"}}},function(e){e.O(0,[4697,7964,1812,794,8065,3208,2978,3182,1153,4881,2345,9774,2888,179],function(){return e(e.s=68720)}),_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.