1(()=>{let h=new DOMParser,l=null,t,a,i,s=!1,d=!0,c=!1,u=0,p=[],g=[],o=[],n=null,w=0;const r=4;let m=0,v=!0,f=[];const b=void 0!==window.requestIdleCallback,A=e=>{g[0]!=e&&(g.unshift(e),30<g.length&&(g.length=30),localStorage.setItem("scroll_ids",g.join(",")))},E=(e,t,r,n)=>{r={id:r,ele:e,title:n,url:t,top:e?.offsetTop||0,idx:o.length+1};return o.push(r),r},x=function(){var e,t=window.scrollY+.25*_viewportHeight;let r;for(e of o){if(e.top>=t)break;r=e}return r},R=(e,t=!0)=>{e.querySelectorAll(".grv-article-css").forEach(e=>{e.id&&!f.includes(e.id)&&(f.push(e.id),t)&&document.head.insertBefore(e,document.head.lastChild)})},y=(e,t)=>{var r=document.createElement("div"),t=(r.setAttribute("class",t||"content"),document.createElement("div"));return t.setAttribute("class","main"),t.appendChild(e),r.appendChild(t),r},V=e=>{var t;for(t of e.querySelectorAll("script")){var r,n=document.createElement("script");for(r of t.attributes)n.setAttribute(r.name,r.value);n.innerHTML=t.innerHTML,t.parentNode.replaceChild(n,t)}},G=(c,u,p)=>{return fetch(p.url).then(d=>{if(d.ok)return d.text().then(r=>{r=h.parseFromString(r,"text/html"),u.title=r.querySelector("title")?.textContent||"Untitled";var n=c,o=u,e=p.url,t=(p.id,d),l=r.querySelectorAll("#page-header.has-hero, #hero-header, #hero-image-header, #page .content:not(.more-content)"),t={body:r,response:t,items:l};if(l&&l.length){let t=document.createDocumentFragment();l&&t.append(...l),R(r);var a=[...r.querySelectorAll("script#pageinfo, script#grvchartbeat, script#grvpublytics")];let e=!1;if(0<a.length){for(let e=0;e<a.length;e++)"pageinfo"===a[e].id&&("ga4"===a[e].className?(a[e].innerHTML=a[e].innerHTML.replace(/"context":".*?"/,'"context":"scroll"'),a[e].innerHTML=a[e].innerHTML.replace(/window.dataLayer.push\({"event":"pageview",(.*?)}\)/,'gtag("event","page_view",{$1});')):a[e].innerHTML=a[e].innerHTML.replace(/"cd4":".*?"/,'"cd4":"scroll"'));if(o._viewed)a.forEach(e=>{t.append(e)}),e=!0;else{let t=document.createDocumentFragment();a.forEach(e=>{t.append(e)}),V(t),o._info=t}}V(t);var i,s,l=t.querySelector(".GRVVideo, .GRVMultiVideo");l&&((i=document.createElement("div")).setAttribute("class","GRVMpuWrapper inf-scroll-mpu"),i.style.minHeight="250px",(s=document.createElement("div")).setAttribute("class","GRVAd"),s.setAttribute("data-ad-type","mpu"),s.setAttribute("data-ad-sizes","[[300,250]]"),s.setAttribute("data-ad-refreshmapping","always"),i.appendChild(s),l.replaceWith(i)),n.appendChild(t),e&&(S(o),T(o)),GRVProcessArticle(n),n.dispatchEvent(new Event("infscrollpage",{bubbles:!0})),window.GRVAds.que.push(()=>{GRVAds.findNewAdContainers(!0,n),GRVAds.findNewVideoContainers(!0,n)})}else console.log("lastPageReached",[r,e]);return t});throw new Error(d.statusText)}).catch(e=>{var t=document.createElement("div"),r=(t.style.cssText="min-height:100vh",document.createElement("h2"));r.innerText=e.message+": "+p.title,t.appendChild(r),c.appendChild(y(t))})},C=async()=>{b?d&&(i&&(cancelIdleCallback(i),i=!1),a&&a.abort(),await L()):await L(),v&&(p.filter(e=>!g.includes(e.id)).length<1&&(console.log("loadNextPage: no new articles found on page load - clearing previous"),g.length=0,g.push(parseInt(u)),localStorage.setItem("scroll_ids",","+parseInt(u)+",")),v=!1);var e,t,r,n,o=(()=>{let e=m;for(;;){if((e=++e>=p.length?0:e)==m)return null;if(-1==g.indexOf(p[e].id))return m=e,p[e]}})();if(o)return(n=document.createElement("div")).setAttribute("id","page-"+(w+1)),n.setAttribute("class","inf-scroll-page"),n.style.cssText="min-height:100vh",e=n=n,t=document.createDocumentFragment(),(r=document.createElement("div")).setAttribute("class","separator"),r.setAttribute("data-txt",window.GRVNextArticleText||"â¼â¼   NEXT ARTICLE   â¼â¼"),t.appendChild(y(r,"content p-sep")),t.appendChild(e),l.parentNode.insertBefore(t,l.nextElementSibling),l=n,r=E(n,o.url,o.id,o.title),G(n,r,o).then(e=>{s=!1,I()||(c=!1)}).catch(e=>{console.log("loadNextPage: "+e)});window.removeEventListener("scroll",_,{passive:!0}),console.log("loadNextPage: no new articles found")},L=()=>{d=!0;var e=(a=new AbortController).signal;const r=window.GRVScrollIndex||"/wp-json/grv-media/v2/posts/scroll";return fetch(r,{signal:e}).then(e=>{var t;return e.ok?e.json().then(e=>
1{e.forEach(e=>{p.push(e)}),d=!1}):(t=new Error(e.statusText),console.log("onIndexError",[t,r,e]),{response:e})}).catch(e=>{console.log("onIndexError",[e,r])})},S=e=>{var t,r;"undefined"!=typeof pSUPERFLY&&void 0!==pSUPERFLY.virtualPage&&(t=window.grvGetChartbeatData?.(n.id))&&(r=new URL(n.url),pSUPERFLY.virtualPage({sections:t.sections,authors:t.authors,path:r.pathname+r.search,title:n.title}))},T=e=>{var t=window.grvGetPublyticsData?.(n.id);t&&publytics("pageview",{props:{author:t.author,category:t.category,publish_date:t.publish_date,context:"scroll"}})},I=(e=1.2)=>l?.getBoundingClientRect().bottom<_viewportHeight*e;let _=e=>{var t=x();t.idx!==n?.idx&&(n=t,history.replaceState(null,n.title,n.url),document.title=n.title,n._viewed||(n._viewed=!0,n._info&&(n.ele.append(n._info),S(n),T(n)),A(n.id),window.GRVAds.que.push(()=>{GRVAds.trackPageView?.()}))),s||(c?I()||(c=!1):I(2)&&(s=!0,c=!0,++w>r||C()))};const q=()=>{var e;1<n.idx&&(e=window.scrollY-n.top+t,window.removeEventListener("scroll",_,{passive:!0}),scrollTo(0,e))};window.GRVModules=window.GRVModules||[],window.GRVModules.push(()=>{var e;document.body.classList.forEach(e=>{e.match(/postid-[0-9]/)&&(u=parseInt(e.replace("postid-","")))}),(n=E(null,location.href,parseInt(u),document.title))._viewed=!0,t=document.querySelector("#page-header.has-hero, #hero-header, #page .content")?.offsetTop,window.addEventListener("unload",q),g=(e=localStorage.getItem("scroll_ids"))?e.split(",").map(e=>parseInt(e)):[],A(n.id),b&&(i=requestIdleCallback(L)),R(document,!1),(l=document.querySelector("#page .more-content")?.previousElementSibling)&&(I()&&(c=!0),_=throttle(_,200),window.addEventListener("scroll",_,{passive:!0})),window.GRVAds=window.GRVAds||{},window.GRVAds.que=window.GRVAds.que||[]})})();
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.