1/* demoload2 */(function(){try{var _p=window.cnPlayBuildGlitch;if(typeof _p==='function'&&!_p.__cnBootWrap){window.cnPlayBuildGlitch=function(a,b,c){c=c||{};if(c.hold){try{window.__cnPbBootCover=true;}catch(e){}}return _p(a,function(rel){var r=rel;if(typeof rel==='function'){r=function(){try{window.__cnPbBootCover=false;}catch(e){}try{rel();}catch(e){};};}if(typeof b==='function')b(r);},c);};window.cnPlayBuildGlitch.__cnBootWrap=1;}}catch(e){}})();(function(){"use strict";var RAILS_SELECTOR=".blueprint-rails .blueprint-card",CARD_VIDEO_SEL=".card-video",modal=null,els={},autoplayTimer=null,currentData=null,atvRestoreUrl=null;function isElementVisible(el){if(!el)return!1;var rect=el.getBoundingClientRect();if(rect.width<=0||rect.height<=0)return!1;var cs=window.getComputedStyle(el);return cs.display!=="none"&&cs.visibility!=="hidden"&&parseFloat(cs.opacity||"1")>.01}function isBuildModeActive(){var b=document.body;if(!b)return!1;if(b.classList.contains("cn-pb-fill-mode"))return!0;var panel=document.querySelector(".cn-pb-visible, .cn-pb-fill, .cn-pb-panel");return isElementVisible(panel)}function neuterProjectionFor(card){!card||card.__cnAtvBound||(card.__cnAtvBound=!0,card.setAttribute("data-bp-bound","true"),card.classList.add("cn-atv-rail-card"))}function neuterAll(){document.querySelectorAll(RAILS_SELECTOR).forEach(neuterProjectionFor),document.querySelectorAll(".bp-projection-overlay").forEach(function(el){el.parentNode&&el.parentNode.removeChild(el)})}function cacheEls(){return modal=document.getElementById("cnAtvDetail"),modal?(els.bg=modal.querySelector('[data-role="bg"]'),els.video=modal.querySelector('[data-role="video"]'),els.eyebrow=modal.querySelector('[data-role="eyebrow"]'),els.title=modal.querySelector('[data-role="title"]'),els.meta=modal.querySelector('[data-role="meta"]'),els.desc=modal.querySelector('[data-role="desc"]'),els.cast=modal.querySelector('[data-role="cast"]'),els.cta=modal.querySelector('[data-role="cta"]'),els.ctaLabel=modal.querySelector('[data-role="cta-label"]'),els.play=modal.querySelector('[data-role="play"]'),els.mute=modal.querySelector('[data-role="mute"]'),els.storyNote=modal.querySelector('[data-role="story-note"]'),els.moments=modal.querySelector('[data-role="moments"]'),els.momentsRow=modal.querySelector('[data-role="moments-row"]'),!0):!1}var pagePausedVids=[],skipResumeOnce=!1;function quiescePageVideos(){pagePausedVids=[];try{Array.prototype.forEach.call(document.querySelectorAll("video"),function(v){if(!(modal&&modal.contains(v))&&!v.paused&&!v.ended)try{v.pause(),v.muted=!0,pagePausedVids.push(v)}catch{}})}catch{}}function resumePageVideos(){var list=pagePausedVids;pagePausedVids=[],list.forEach(function(v){try{if(!document.contains(v))return;var r=v.getBoundingClientRect();if(r.bottom<0||r.top>window.innerHeight||!r.width)return;var p=v.play();p&&p.catch&&p.catch(function(){})}catch{}})}function isMp4(url){return url?/\.(mp4|webm|mov)(\?|#|$)/i.test(url)||url.indexOf("wp-content/uploads")!==-1||url.indexOf("assets/uploads")!==-1||url.indexOf("/media/")!==-1:!1}function openModal(data){if(!(!modal&&!cacheEls())&&!isBuildModeActive()){currentData=data;try{if(data.permalink){if(!atvRestoreUrl){var cleanHome=new URL(location.href);cleanHome.searchParams.delete("campaign"),atvRestoreUrl=cleanHome.pathname+cleanHome.search}history.replaceState(history.state,"",new URL(data.permalink).pathname)}}catch{}quiescePageVideos();var bg=data.background||data.hero_image||"";els.bg.style.backgroundImage=bg?'url("'+bg.replace(/"/g,"%22")+'")':"",els.bg.classList.remove("is-hidden"),els.video.classList.remove("is-visible"),els.video.pause(),els.video.removeAttribute("src"),els.video.muted=!0,els.video.loop=!0,els.mute.dataset.state="muted";var eyebrowBits=[];data.artist&&eyebrowBits.push(data.artist),data.label&&eyebrowBits.push(data.label),els.eyebrow.textContent=eyebrowBits.join(" · ");var mgrEl=modal.querySelector('[data-role="manager"]');mgrEl&&(data.manager?(mgrEl.textContent="Manager â "+data.manager,mgrEl.hidden=!1):(mgrEl.textContent="",mgrEl.hidden=!0)),els.title.textContent=data.title||"";var metaBits=[];data.year&&metaBits.push(data.year),data.type&&metaBits.push(data.type),data.tags&&data.tags.length&&metaBits.push(data.tags.slice(0,3).join(" · ")),els.meta.innerHTML="",metaBits.forEac
1h(function(b,i){if(i>0){var sep=document.createElement("span");sep.className="cn-atv-dot",sep.textContent="·",els.meta.appendChild(sep)}var s=document.createElement("span");s.textContent=b,els.meta.appendChild(s)}),els.desc.textContent=data.description||"",function(){var old=els.meta.parentNode.querySelector(".cn-atv-brief");old&&old.remove();var cb=data.campaign_brief;if(!cb||!(cb.singles||cb.projects||cb.videos||cb.moments))return;var brief=document.createElement("div");brief.className="cn-atv-brief";function chip(n,lab,title,cls){if(n){var s=document.createElement("span");s.className="cn-atv-brief-chip"+(cls?" "+cls:""),title&&(s.title=title),s.innerHTML="<b>"+n+"</b>"+lab,brief.appendChild(s)}}var gapTxt="";if(cb.single_dates&&cb.single_dates.length){for(var parts=[],gi=0;gi<cb.single_dates.length;gi++){var dd=cb.single_dates[gi],lbl=dd;try{var dj=new Date(dd+"T12:00:00");lbl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][dj.getMonth()]+" "+dj.getDate()+", "+dj.getFullYear()}catch{}gi>0&&cb.single_gaps_days&&cb.single_gaps_days[gi-1]!=null&&(lbl+=" (+"+cb.single_gaps_days[gi-1]+"d)"),parts.push(lbl)}gapTxt="Single drops: "+parts.join(" â ")}chip(cb.singles," single"+(cb.singles===1?"":"s"),gapTxt),chip(cb.projects," "+(cb.type?cb.type:"project")+(cb.projects===1?"":"s"),"Full project release"+(cb.projects===1?"":"s")+" inside this campaign"),chip(cb.videos," video"+(cb.videos===1?"":"s"),"Music videos / visuals shipped"),chip(cb.press," press/TV","Press + TV performance moments"),chip(cb.live," live/tour","Touring, on-sales and live-demand moments"),chip(cb.key_moments," key moment"+(cb.key_moments===1?"":"s"),"The campaignâs biggest levers â marked â
on the timeline below","cn-atv-brief-chip--key");var spanTxt=cb.months>18?Math.round(cb.months/6)/2+"-yr arc":cb.months+" mo";if(chip(cb.moments," moments · "+spanTxt,"Every documented move, first post to last â including the payoff years"),cb.singles||cb.projects){var needBits=[];cb.singles&&needBits.push(cb.singles+" finished single"+(cb.singles===1?"":"s")),cb.projects&&needBits.push((cb.projects===1?/^[aeiou]/i.test(cb.type||"")?"an ":"a ":cb.projects+" ")+(cb.type?cb.type:"project")+(cb.projects===1?"":"s")+"âs worth of songs"),cb.videos&&needBits.push(cb.videos+" video"+(cb.videos===1?"":"s")+" (phone-shot works)");var needs=document.createElement("div");needs.className="cn-atv-brief-needs",needs.textContent="To run this play youâd need: "+needBits.join(" + "),brief.appendChild(needs)}els.meta.insertAdjacentElement("afterend",brief)}(),data.results?(els.cast.textContent=data.results,els.cast.classList.remove("is-hidden")):(els.cast.textContent="",els.cast.classList.add("is-hidden"));var isDemo=!!data.is_demo,buildKey=data.build_key?String(data.build_key):"",demoStory=!1;try{data.__demoStory=demoStory}catch{}els.ctaLabel&&(els.ctaLabel.textContent=isDemo?"Try the demo":"Open in Build Mode"),els.cta&&(els.cta.setAttribute("href","#"),els.cta.classList.add("cn-atv-cta--demo"));var hasTrailer=!!data.trailer_url,hasPreview=!!data.card_video,playLabel=els.play?els.play.querySelector("span"):null;demoStory?(els.play.disabled=!1,els.play.style.display="",els.play.classList.add("cn-atv-play--story"),playLabel&&(playLabel.textContent="Play Story"),els.mute.style.display="none",els.storyNote&&(els.storyNote.hidden=!1)):(els.play.classList.remove("cn-atv-play--story"),playLabel&&(playLabel.textContent="Trailer"),els.play.disabled=!(hasTrailer||hasPreview),els.play.style.display=hasTrailer||hasPreview?"":"none",els.mute.style.display=hasTrailer||hasPreview?"":"none",els.storyNote&&(els.storyNote.hidden=!0));try{var mtitle=modal.querySelector('[data-role="moments-title"]');mtitle&&(mtitle.textContent=(data.artist||"The artist")+" did this")}catch{}ATV_IS_SAFARI?setTimeout(function(){renderMoments(data.moments||[])},0):renderMoments(data.moments||[]),modal.classList.add("is-open"),modal.setAttribute("aria-hidden","false"),document.documentElement.classList.add("cn-atv-locked"),document.body.classList.add("cn-atv-open"),clearTimeout(autoplayTimer);var delay=typeof data.autoplay_delay=="number"?data.autoplay_delay:1.5;if(ATV_IS_SAFARI&&(delay=0),hasTrailer||hasPreview){try{var tUrl=currentData&&(currentData.trailer_url||currentData.card_video);tUrl&&isMp4(tUrl)&&els.video&&els.video.src!==tUrl&&(els.video.preload="auto",els.video.src=tUrl,els.video.load())}catch{}autoplayTimer=setTimeout(function(){startTrailer(!0)},Math.max(0,delay)*1e3)}}}function renderMoments(moments){if(!els.moments||!els.momentsRow)return;try{Array.prototype.forEach.call(els.momentsRow.querySelectorAll("video"),function(v){try{v.pause()}catch{}try{v.getAttribute("src")&&(v.removeAttribute("src"),v.load())}catch{}})}catch{}if(els.momentsRow.innerHTML="",stopMomentsAutoScroll(),!moments.length){els.moments.setAttribute("aria-hidden","true"),els.moments.classList.remove("is-visible");return}function buildCard(m,idx){var card=document.createElement("article");
1card.className="cn-atv-ig",card.style.animationDelay=.04*idx+"s",m.key_moment&&card.classList.add("cn-atv-ig--key");var media=document.createElement("div");if(media.className="cn-atv-ig-media",m.media_type==="video"&&m.media_url)media.classList.add("cn-pb-v5-card-media"),m.annotation&&media.setAttribute("data-pop-desc",m.annotation);else if(m.media_url){media.classList.add("cn-pb-v5-card-media");var popText=m.annotation||m.caption||m.title||"";popText&&media.setAttribute("data-pop-desc",popText),media.setAttribute("data-pop-img","1")}if(m.date_label){var dchip=document.createElement("span");dchip.className="cn-atv-ig-date",dchip.textContent=m.date_label,media.appendChild(dchip)}if(m.key_moment){var kchip=document.createElement("span");kchip.className="cn-atv-ig-key",kchip.title=m.key_note||"One of the biggest levers in this campaign",kchip.textContent="â
KEY MOMENT",media.appendChild(kchip)}var badge=document.createElement("span");if(m.platform!=="moment"&&(badge.className="cn-atv-ig-badge",badge.title="Instagram",badge.innerHTML='<svg viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" width="12" height="12"><rect x="3" y="3" width="18" height="18" rx="5"/><circle cx="12" cy="12" r="4"/><circle cx="17.5" cy="6.5" r="1" fill="#fff" stroke="none"/></svg>',media.appendChild(badge)),m.media_type==="video"&&m.media_url){var v=document.createElement("video");v.dataset.src=m.media_url,v.muted=!0,v.loop=!0,v.playsInline=!0,v.setAttribute("playsinline",""),v.setAttribute("preload","none");var posterUrl="";try{window.cnPosterFor&&(posterUrl=window.cnPosterFor(m.media_url))}catch{}posterUrl&&(v.setAttribute("poster",posterUrl),v.style.backgroundImage='url("'+posterUrl.replace(/"/g,"%22")+'")',v.style.backgroundSize="cover",v.style.backgroundPosition="center",v.style.backgroundRepeat="no-repeat",media.classList.add("is-loaded")),v.addEventListener("loadeddata",function(){media.classList.add("is-loaded")}),v.addEventListener("canplay",function(){media.classList.add("is-loaded")}),v.readyState>=2&&media.classList.add("is-loaded"),v.addEventListener("error",function(){media.classList.remove("is-loaded"),media.classList.add("cn-atv-ig-media--empty")}),media.appendChild(v);var play=document.createElement("span");play.className="cn-atv-ig-play",play.innerHTML='<svg viewBox="0 0 24 24" fill="#fff" width="22" height="22"><polygon points="8,5 19,12 8,19"/></svg>',media.appendChild(play)}else if(m.media_url){var img=document.createElement("img");img.loading="eager",img.decoding="async",img.alt="",img.addEventListener("load",function(){media.classList.add("is-loaded")}),img.addEventListener("error",function(){media.classList.add("cn-atv-ig-media--empty")}),img.src=m.media_url,img.complete&&img.naturalWidth>0&&media.classList.add("is-loaded"),media.appendChild(img)}else media.classList.add("cn-atv-ig-media--empty");if(m.likes||m.comments_count){var eng=document.createElement("div");eng.className="cn-atv-ig-engagement",m.likes&&(eng.innerHTML+='<span class="cn-atv-ig-stat"><svg viewBox="0 0 24 24" fill="#ed4956" width="12" height="12"><path d="M12 21s-7-4.5-9.5-9.2C.8 8.6 2.3 5 6 5c2 0 3.4 1.1 4 2.2C10.6 6.1 12 5 14 5c3.7 0 5.2 3.6 3.5 6.8C19 16.5 12 21 12 21z"/></svg>'+m.likes+"</span>"),m.comments_count&&(eng.innerHTML+='<span class="cn-atv-ig-stat"><svg viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" width="12" height="12"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>'+m.comments_count+"</span>"),media.appendChild(eng)}card.appendChild(media);var isMoment=m.platform==="moment"||!m.username;if(isMoment){var mcap=document.createElement("div");mcap.className="cn-atv-ig-caption";var mtitle=document.createElement("strong");mtitle.textContent=m.title||m.caption||"",mcap.appendChild(mtitle),card.appendChild(mcap)}else{var user=m.username,head=document.createElement("div");head.className="cn-atv-ig-head";var avatar=document.createElement("span");avatar.className="cn-atv-ig-avatar",avatar.textContent=user.charAt(0).toUpperCase(),head.appendChild(avatar);var who=document.createElement("span");
1if(who.className="cn-atv-ig-user",who.textContent=user,head.appendChild(who),m.verified){var vbadge=document.createElement("span");vbadge.className="cn-atv-ig-verified",vbadge.setAttribute("aria-label","Verified"),vbadge.innerHTML='<svg viewBox="0 0 24 24" width="12" height="12"><circle cx="12" cy="12" r="10" fill="#3897f0"/><path d="M9 12l2 2 4-4" stroke="#fff" stroke-width="2" fill="none"/></svg>',head.appendChild(vbadge)}if(card.appendChild(head),m.caption){var cap=document.createElement("div");cap.className="cn-atv-ig-caption";var bold=document.createElement("strong");bold.textContent=user,cap.appendChild(bold),cap.appendChild(document.createTextNode(" "+m.caption)),card.appendChild(cap)}}return card}moments.forEach(function(m,idx){els.momentsRow.appendChild(buildCard(m,idx))}),moments.forEach(function(m,idx){var clone=buildCard(m,idx);clone.setAttribute("aria-hidden","true"),els.momentsRow.appendChild(clone)}),els.moments.setAttribute("aria-hidden","false"),els.moments.classList.add("is-visible"),initMomentsGate(),startMomentsAutoScroll()}var momentsIo=null,atvPlayQ=[],atvPumpT=null,ATV_IS_SAFARI=function(){try{var u=navigator.userAgent;return/Safari/.test(u)&&!/Chrome|Chromium|CriOS|Edg|OPR|Android/.test(u)}catch{return!1}}();function atvHydrate(v){if(!v.getAttribute("src")&&v.dataset&&v.dataset.src){v.setAttribute("src",v.dataset.src);try{v.load()}catch{}}}function atvRelease(v){try{v.pause()}catch{}if(ATV_IS_SAFARI&&v.getAttribute("src"))try{v.removeAttribute("src"),v.load()}catch{}}function atvGatePlay(v){try{if(v.getAttribute("src")&&v.readyState>=2){var p0=v.play();p0&&p0.catch&&p0.catch(function(){});return}}catch{}if(atvPlayQ.indexOf(v)===-1&&atvPlayQ.push(v),!atvPumpT){var drain=function(){atvPumpT=null;for(var started=0;atvPlayQ.length&&started<2;){var x=atvPlayQ.shift();if(document.body.contains(x)){try{atvHydrate(x),x.preload="auto";var p=x.play();p&&p.catch&&p.catch(function(){})}catch{}started++}}atvPlayQ.length&&(atvPumpT=setTimeout(drain,160))};drain()}}function initMomentsGate(){if(teardownMomentsGate(),!!els.momentsRow){var vids=els.momentsRow.querySelectorAll("video");if(!("IntersectionObserver"in window)){Array.prototype.forEach.call(vids,function(v){try{atvHydrate(v),v.preload="auto",v.play().catch(function(){})}catch{}});return}momentsIo=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var v=entries[i].target;entries[i].isIntersecting?atvGatePlay(v):atvRelease(v)}},{rootMargin:"80px 600px 80px 600px",threshold:.01}),Array.prototype.forEach.call(vids,function(v){momentsIo.observe(v)})}}function teardownMomentsGate(){if(momentsIo){try{momentsIo.disconnect()}catch{}momentsIo=null}atvPlayQ=[],atvPumpT&&(clearTimeout(atvPumpT),atvPumpT=null)}function formatMomentDate(iso){if(!iso)return"";var parts=iso.split("-");if(parts.length!==3)return iso;var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],m=months[parseInt(parts[1],10)-1]||"";return m+" "+parseInt(parts[2],10)+", "+parts[0]}var momentsScrollTimer=null,momentsHoverPaused=!1;function startMomentsAutoScroll(){if(stopMomentsAutoScroll(),!!els.momentsRow){var row=els.momentsRow;momentsHoverPaused=!1;var pxPerTick=1;if(momentsScrollTimer=setInterval(function(){if(!momentsHoverPaused){var half=row.scrollWidth/2;row.scrollLeft>=half?row.scrollLeft=row.scrollLeft-half:row.scrollLeft+=pxPerTick}},16),!row.dataset.cnAtvHoverBound){row.dataset.cnAtvHoverBound="1";var hoverCard=null;row.addEventListener("mouseover",function(e){var card=e.target.closest(".cn-atv-ig");if(!(!card||card===hoverCard)){hoverCard=card,momentsHoverPaused=!0;var vid=card.querySelector("video");if(vid){els.video&&!els.video.paused&&(els.video.muted=!0),Array.prototype.forEach.call(row.querySelectorAll("video"),function(v){v!==vid&&(v.muted=!0)}),atvHydrate(vid),vid.muted=!1,vid.volume=1;var pr=vid.play();pr&&pr.catch&&pr.catch(function(){})}}}),row.addEventListener("mouseleave",function(){hoverCard=null,momentsHoverPaused=!1,Array.prototype.forEach.call(row.querySelectorAll("video"),function(v){v.muted=!0}),els.video&&els.video.classList.contains("is-visible")&&!(els.mute&&els.mute.dataset.state==="muted")&&(els.video.muted=!1,els.video.play().catch(function(){}))})}}}function stopMomentsAutoScroll(){momentsScrollTimer&&(clearInterval(momentsScrollTimer),momentsScrollTimer=null)}function closeModal(){if(modal){try{atvRestoreUrl&&(history.replaceState(history.state,"",atvRestoreUrl),atvRestoreUrl=null)}catch{}clearTimeout(autoplayTimer),autoplayTimer=null,momentsWarmGen++;try{momentsWarmAbort&&(momentsWarmAbort.abort(),momentsWarmAbort=null)}catch{}stopMomentsAutoScroll(),teardownMomentsGate();try{var relVids=Array.prototype.slice.call(modal.querySelectorAll(".cn-atv-ig video"));relVids.forEach(function(v){try{v.pause()}catch{}}),function releaseChunk(){for(var n=0;relVids.length&&n<6;){var v=relVids.shift();n++;try{v.getAttribute("src")&&(v.removeAttribute("src"),v.load())}catch{}}relVids.length&&requestAnimationFrame(releaseChunk)}()}catch{}modal.classList.remove("is-open"),modal.setAttribute("aria-hidden","true"),document.documentElement.classList.remove("cn-atv-locked"),document.body.classList.remove("cn-atv-open");try{els.video.pause()}catch{}els.video.removeAttribute("src"),els.video.load(),els.video.classList.remove("is-visible"),currentData=null,skipResumeOnce?(skipResumeOnce=!1,pagePausedVids=[]):resumePageVideos()}}function startTrailer(withSound){if(currentData){var url=currentData.trailer_url||currentData.card_video;
1if(url){if(!isMp4(url)){window.open(url,"_blank","noopener");return}els.video.src!==url&&(els.video.src=url);var tv=currentData?parseFloat(currentData.trailer_volume):NaN;isNaN(tv)&&(tv=100);try{els.video.volume=Math.max(0,Math.min(1,tv/100))}catch{}els.video.muted=!withSound,els.mute.dataset.state=els.video.muted?"muted":"on",els.video.readyState>=3?els.video.classList.add("is-visible"):els.video.addEventListener("playing",function(){els.video.classList.add("is-visible")},{once:!0});var p=els.video.play();p&&typeof p.catch=="function"&&p.catch(function(){if(withSound)try{els.video.muted=!0,els.mute.dataset.state="muted";var p2=els.video.play();p2&&p2.catch&&p2.catch(function(){})}catch{}})}}}function toggleMute(){if(!els.video.src){startTrailer(!0);return}els.video.muted=!els.video.muted,els.mute.dataset.state=els.video.muted?"muted":"on"}function openTrailerLightbox(url){if(typeof window.playTrailerModal!="function")return!1;var tm=document.getElementById("trailerModal");if(!tm)return!1;var wasMuted=els.video?els.video.muted:!0;try{els.video.muted=!0,els.mute.dataset.state="muted"}catch{}window.playTrailerModal(url),tm.style.zIndex="1000001";var mo=new MutationObserver(function(){if(!tm.classList.contains("active")){mo.disconnect();try{if(modal&&modal.classList.contains("is-open")){els.video.muted=wasMuted,els.mute.dataset.state=wasMuted?"muted":"on";var p=els.video.play();p&&p.catch&&p.catch(function(){})}}catch{}}});return mo.observe(tm,{attributes:!0,attributeFilter:["class"]}),!0}function openDemoBuildMode(){var fallbackUrl=currentData&¤tData.cta_url||null,buildKey=currentData&¤tData.build_key?String(currentData.build_key):"";try{if(buildKey&&typeof window.cnPbIsHardLocked=="function"&&window.cnPbIsHardLocked(buildKey)&&!(typeof window.cnPbLockedDemoPreview=="function"&&window.cnPbLockedDemoPreview(buildKey))){closeModal(),setTimeout(function(){typeof window.cnOpenBuildMode=="function"&&window.cnOpenBuildMode(1,buildKey)},60);return}}catch{}var release=null;typeof window.cnPlayBuildGlitch=="function"&&window.cnPlayBuildGlitch(null,function(rel){release=rel},{hold:!0});var dropCover=function(){release&&(release(),release=null)},waitForBuilder=function(){var tries=0,maxTries=ATV_IS_SAFARI?50:240,iv=setInterval(function(){var panel=document.querySelector("#cn-phase-builder"),visible=!1;if(panel){var r=panel.getBoundingClientRect();visible=r.width>0&&r.height>0}(visible||++tries>maxTries)&&(clearInterval(iv),setTimeout(dropCover,60))},50)};try{buildKey?(window.cnEnableBuildDemo=!0,window.cnForceBuildDemo=!1,window.__cnPbDemoGuideRan=!1,window.__cnPbDemoAutoPicking=!1):(window.cnEnableBuildDemo=!0,window.cnForceBuildDemo=!0,window.__cnPbDemoGuideRan=!1,window.__cnPbDemoAutoPicking=!1)}catch{}skipResumeOnce=!0,closeModal(),setTimeout(function(){typeof window.cnOpenBuildMode=="function"?(window.cnOpenBuildMode(1,buildKey||void 0),waitForBuilder()):fallbackUrl?window.location.href=fallbackUrl:dropCover()},60)}function playStory(){closeModal(),setTimeout(function(){if(window.jQuery&&window.jQuery("#play-story-btn, .play-story-btn").length){window.jQuery("#play-story-btn, .play-story-btn").first().trigger("click");return}var btn=document.querySelector("#play-story-btn, .play-story-btn");if(btn){btn.click();return}typeof window.__cnPbPlayStory=="function"&&window.__cnPbPlayStory()},80)}var cache={},mediaPreloaded={},momentsWarmGen=0,momentsWarmAbort=null;function preloadMomentsMedia(data){if(!data)return;var myGen=momentsWarmGen,urls=[],seen={};function add(u){u&&!seen[u]&&!mediaPreloaded[u]&&(seen[u]=!0,urls.push(u))}(data.moments||[]).slice(0,8).forEach(function(m){m&&m.media_url&&add(m.media_url)});var i=0;function nextOne(){if(!(i>=urls.length||myGen!==momentsWarmGen)&&!(!modal||!modal.classList.contains("is-open"))){var url=urls[i++];mediaPreloaded[url]=!0;try{momentsWarmAbort=typeof AbortController<"u"?new AbortController:null,fetch(url,{credentials:"same-origin",priority:"low",signal:momentsWarmAbort?momentsWarmAbort.signal:void 0}).then(function(r){return r.blob()}).then(nextOne,nextOne)}catch{nextOne()}}}setTimeout(nextOne,1600)}var inflight={};function fetchBlueprint(id){if(cache[id])return Promise.resolve(cache[id]);if(inflight[id])return inflight[id];var base=window.CN_ATV_DETAIL&&window.CN_ATV_DETAIL.rest||"/wp-json/cn-atv/v1/blueprint/";return inflight[id]=fetch(base+id,{credentials:"same-origin"}).then(function(r){return r.ok?r.json():Promise.reject(r.status)}).then(function(json){return cache[id]=json,delete inflight[id],preloadMomentsMedia(json),json}).catch(function(err){throw delete inflight[id],err}),inflight[id]}var openingId=null;function onCardClick(e){var card=e.target.closest(RAILS_SELECTOR);if(card&&!isBuildModeActive()&&!e.target.closest("[data-cn-atv-skip]")){var id=card.getAttribute("data-id");if(id&&(e.preventDefault(),e.stopImmediatePropagation(),openingId!==id)){if(openingId=id,card.classList.add("cn-atv-card-opening"),ATV_IS_SAFARI)try{quiescePageVideos()}catch{}if(els&&els.video&&els.video.paused)try{els.video.load();var blessP=els.video.play();blessP&&typeof blessP.catch=="function"&&blessP.catch(function(){}),els.video.pause()}catch{}var settle=function(){openingId=null,card.classList.remove("cn-atv-card-opening")};fetchBlueprint(id).then(function(json){settle(),openModal(json)}).catch(function(err){settle()})}}}
1function initAtvVideoPopout(){if(window.__cnAtvVpopBound)return;window.__cnAtvVpopBound=!0;var SEL=".cn-atv-ig-media.cn-pb-v5-card-media",POP_DELAY=250,hoverTimer=null,hideTimer=null,typeRAF=null,pop=null,popVid=null,popImg=null,backdrop=null,desc=null,descCopy=null,preloadedSrc=null,srcVideo=null;function ensurePop(){if(!pop){if(backdrop=document.createElement("div"),backdrop.className="cn-pb-vbackdrop",backdrop.setAttribute("aria-hidden","true"),document.body.appendChild(backdrop),pop=document.createElement("div"),pop.className="cn-pb-vpop",pop.setAttribute("aria-hidden","true"),pop.innerHTML='<div class="cn-pb-vpop-inner"><video class="cn-pb-vpop-video" muted loop playsinline preload="auto"></video><img class="cn-pb-vpop-img" alt="" style="display:none;width:100%;height:100%;object-fit:cover;"><div class="cn-pb-vpop-scan"></div><div class="cn-pb-vpop-band"></div><div class="cn-pb-vpop-tint"></div></div>',document.body.appendChild(pop),popVid=pop.querySelector(".cn-pb-vpop-video"),popImg=pop.querySelector(".cn-pb-vpop-img"),!document.getElementById("cn-vdesc-font")){var f=document.createElement("link");f.id="cn-vdesc-font",f.rel="stylesheet",f.href="https://fonts.googleapis.com/css2?family=VT323&family=Silkscreen:wght@400;700&display=swap",document.head.appendChild(f)}desc=document.createElement("div"),desc.className="cn-pb-vdesc",desc.setAttribute("aria-hidden","true"),desc.innerHTML='<div class="cn-pb-vdesc-screen"><div class="cn-pb-vdesc-roll"></div><div class="cn-pb-vdesc-vig"></div><div class="cn-pb-vdesc-scan"></div><div class="cn-pb-vdesc-head"><span>CAMPAIGN.NETWORK ⦠SECURE TERMINAL</span><span class="tag">SESSION: ARCHIVE</span></div><div class="cn-pb-vdesc-sys">> DECRYPTING ARCHIVE <span class="ok">[OK]</span></div><div class="cn-pb-vdesc-sys">> LOADING TRACK FILE: STORY.LOG <span class="ok">[OK]</span></div><div class="cn-pb-vdesc-title">// STORY.LOG</div><div class="cn-pb-vdesc-body"><p><span class="cn-pb-vdesc-copy"></span><span class="cn-pb-vdesc-cursor"></span></p></div><div class="cn-pb-vdesc-prompt">> END OF FILE <span class="live">_</span></div></div>',document.body.appendChild(desc),descCopy=desc.querySelector(".cn-pb-vdesc-copy"),pop.addEventListener("mouseleave",hidePop),pop.addEventListener("click",hidePop)}}function preload(video){if(video){ensurePop();var src=video.currentSrc||video.src;if(!(!src||src===preloadedSrc))try{popVid.src=src,popVid.muted=!0,popVid.load(),preloadedSrc=src}catch{}}}function showPop(media,video,img){var isImg=!video&&img;if(!(!isImg&&(!video||!video.videoWidth||!video.videoHeight))&&!(isImg&&(!img.naturalWidth||!img.naturalHeight))){if(ensurePop(),srcVideo=video||null,isImg){try{popVid.pause()}catch{}popVid.style.display="none",popImg.style.display="block",popImg.src=img.currentSrc||img.src}else{popImg.style.display="none",popVid.style.display="";var src=video.currentSrc||video.src;if(src&&src!==preloadedSrc)try{popVid.src=src,preloadedSrc=src}catch{}}var ar=isImg?img.naturalWidth/img.naturalHeight:video.videoWidth/video.videoHeight,rect=media.getBoundingClientRect(),pad=16,vh=window.innerHeight,vw=window.innerWidth,descText=(media.getAttribute("data-pop-desc")||"").trim(),descGap=descText?14:0,descReserve=descText?Math.min(Math.max(vh*.34,200),430):0,maxH=Math.min(vh-pad*2-(descReserve?descReserve+descGap:0),560),maxW=Math.min(vw-pad*2,760),tw=maxW,th=tw/ar;th>maxH&&(th=maxH,tw=th*ar);var cx=rect.left+rect.width/2,cy=rect.top+rect.height/2,left=Math.max(pad,Math.min(cx-tw/2,vw-tw-pad)),pairH=th+(descReserve?descReserve+descGap:0),pairTop=Math.max(pad,Math.min(cy-pairH/2,vh-pairH-pad)),top=pairTop;pop.style.left=left+"px",pop.style.top=top+"px",pop.style.width=tw+"px",pop.style.height=th+"px";try{if(!isImg){popVid.currentTime=video.currentTime||0,popVid.muted=!1,typeof popVid.volume=="number"&&(popVid.volume=.85);var p=popVid.play();p&&p.catch&&p.catch(function(){}),video.muted=!0}}catch{}if(descText){var descTop=top+th+descGap,descH=Math.min(descReserve,vh-descTop-pad);desc.style.left=left+"px",desc.style.top=descTop+"px",desc.style.width=tw+"px",desc.style.height=descH+"px",fillDesc(descText)}else fillDesc("");pop.offsetWidth,backdrop&&backdrop.classList.add("cn-pb-vbackdrop--on"),pop.setAttribute("aria-hidden","false"),pop.classList.add("cn-pb-vpop--on")}}function stopType(){typeRAF&&(cancelAnimationFrame(typeRAF),typeRAF=null),cnTypeSfx().stop()}function cnTypeSfx(){if(!window.__cnTypeSfx){var au=null;window.__cnTypeSfx={start:function(){var cfg=window.cnTranslationEngine&&window.cnTranslationEngine.typingSfx||(window.CN_ATV_DETAIL&&CN_ATV_DETAIL.typing_sfx_url?{url:CN_ATV_DETAIL.typing_sfx_url,volume:CN_ATV_DETAIL.typing_sfx_volume}:{});if(cfg.url){var v=parseFloat(cfg.volume);if(isNaN(v)&&(v=60),!(v<=0))try{au||(au=new Audio(cfg.url),au.loop=!0,au.preload="auto"),au.volume=Math.max(0,Math.min(1,v/100));try{au.currentTime=0}catch{}var p=au.play();p&&p.catch&&p.catch(function(){})}catch{}}},stop:function(){try{au&&au.pause()}catch{}}}}return window.__cnTypeSfx}function fillDesc(text){if(!descCopy)return;if(stopType(),text=(text||"").toString().trim(),!text){descCopy.textContent="",desc.setAttribute("aria-hidden","true"),desc.classList.remove("cn-pb-vdesc--on");return}descCopy.textContent="",desc.setAttribute("aria-hidden","false"),desc.classList.add("cn-pb-vdesc--on");var mIdx=text.search(/\byour move\b\s*:/i),pre=mIdx>=0?text.slice(0,mIdx):text,move=mIdx>=0?text.slice(mIdx):"",preNode=document.createTextNode("");
1descCopy.appendChild(preNode);var moveSpan=null;move&&(moveSpan=document.createElement("span"),moveSpan.className="cn-pb-vdesc-move",descCopy.appendChild(moveSpan));function paint(n){n<=pre.length?(preNode.textContent=pre.slice(0,n),moveSpan&&(moveSpan.textContent="")):(preNode.textContent=pre,moveSpan&&(moveSpan.textContent=move.slice(0,n-pre.length)))}var reduce=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(reduce){paint(text.length);return}cnTypeSfx().start();var i=0,last=0,SPEED=22;function step(ts){last||(last=ts),ts-last>=SPEED&&(last=ts,i=Math.min(i+2,text.length),paint(i)),i<text.length?typeRAF=requestAnimationFrame(step):(typeRAF=null,cnTypeSfx().stop())}typeRAF=requestAnimationFrame(step)}function hidePop(){if(hoverTimer&&(clearTimeout(hoverTimer),hoverTimer=null),hideTimer&&(clearTimeout(hideTimer),hideTimer=null),!(!pop||!pop.classList.contains("cn-pb-vpop--on"))){pop.classList.remove("cn-pb-vpop--on"),pop.setAttribute("aria-hidden","true"),backdrop&&backdrop.classList.remove("cn-pb-vbackdrop--on");try{popVid.muted=!0,popVid.pause()}catch{}desc&&(stopType(),desc.classList.remove("cn-pb-vdesc--on"),desc.setAttribute("aria-hidden","true"),descCopy&&(descCopy.textContent="")),srcVideo=null}}document.addEventListener("mouseover",function(e){var media=e.target.closest&&e.target.closest(SEL);if(media){var from=e.relatedTarget;if(!(from&&media.contains(from))){var video=media.querySelector("video"),img=!video&&media.getAttribute("data-pop-img")?media.querySelector("img"):null;if(!(!video&&!img)){hideTimer&&(clearTimeout(hideTimer),hideTimer=null),video&&preload(video),hoverTimer&&clearTimeout(hoverTimer);var delay=pop&&pop.classList.contains("cn-pb-vpop--on")?90:POP_DELAY;hoverTimer=setTimeout(function(){if(media.matches(":hover")){if(img){if(img.naturalWidth){showPop(media,null,img);return}try{img.addEventListener("load",function(){media.matches(":hover")&&showPop(media,null,img)},{once:!0})}catch{}return}if(video.videoWidth&&video.videoHeight){showPop(media,video);return}var ran=!1,once=function(){ran||(ran=!0,media.matches(":hover")&&showPop(media,video))};try{video.addEventListener("loadedmetadata",once,{once:!0})}catch{}try{video.load&&video.load()}catch{}setTimeout(once,600)}},delay)}}}}),document.addEventListener("mouseout",function(e){var media=e.target.closest&&e.target.closest(SEL);if(media){var to=e.relatedTarget;to&&media.contains(to)||to&&to.closest&&to.closest(SEL)||(hoverTimer&&(clearTimeout(hoverTimer),hoverTimer=null),hideTimer&&clearTimeout(hideTimer),hideTimer=setTimeout(function(){hideTimer=null,pop&&pop.classList.contains("cn-pb-vpop--on")&&!pop.matches(":hover")&&hidePop()},60))}}),window.addEventListener("scroll",hidePop),window.addEventListener("resize",hidePop),document.addEventListener("keydown",function(e){e.key==="Escape"&&hidePop()})}function init(){cacheEls(),neuterAll(),initAtvVideoPopout(),document.addEventListener("click",onCardClick,!0);try{var dlId=new URLSearchParams(location.search).get("campaign");if(dlId){var dlTries=0,dlOpen=function(){var dlCard=document.querySelector(RAILS_SELECTOR+'[data-id="'+dlId+'"]');if(dlCard){dlCard.click();return}++dlTries<25&&setTimeout(dlOpen,200)};setTimeout(dlOpen,250)}}catch{}var prefetchedHover={};function onHoverPrefetch(e){var t=e.target;if(!(!t||!t.closest)){var card=t.closest(RAILS_SELECTOR+", [data-blueprint-id]");if(card){var id=card.getAttribute("data-id")||card.getAttribute("data-blueprint-id");!id||prefetchedHover[id]||(prefetchedHover[id]=!0,fetchBlueprint(id).catch(function(){prefetchedHover[id]=!1}))}}}document.addEventListener("mouseenter",onHoverPrefetch,!0),document.addEventListener("touchstart",onHoverPrefetch,{capture:!0,passive:!0});function idleWarmTrending(){for(var cards=document.querySelectorAll('[data-cn-section="trending"] .blueprint-card[data-id]'),base=window.CN_ATV_DETAIL&&window.CN_ATV_DETAIL.rest||"/wp-json/cn-atv/v1/blueprint/",ids=[],i=0;i<cards.length&&ids.length<8;i++){var id=cards[i].getAttribute("data-id");id&&/^\d+$/.test(id)&&ids.indexOf(id)===-1&&ids.push(id)}(function nextWarm(){var id2=ids.shift();if(id2){if(cache[id2]){nextWarm();return}try{fetch(base+id2,{credentials:"same-origin",priority:"low"}).then(function(){setTimeout(nextWarm,400)},function(){setTimeout(nextWarm,400)})}catch{setTimeout(nextWarm,400)}}})()}"requestIdleCallback"in window?setTimeout(function(){requestIdleCallback(idleWarmTrending,{timeout:4e3})},5e3):setTimeout(idleWarmTrending,6e3),window.cnAtvDetailPrefetch=function(id){id&&fetchBlueprint(id).catch(function(){})},window.cnAtvDetailOpen=function(id){return id?fetchBlueprint(id).then(openModal).catch(function(err){}):Promise.reject("no id")},function(){var id="";
1try{id=new URLSearchParams(window.location.search).get("cn_atv")||""}catch{}id&&setTimeout(function(){window.cnAtvDetailOpen(id)},650)}(),function(){var run=function(){var ids=[],seen={},push=function(id){id&&!seen[id]&&(seen[id]=1,ids.push(id))},demoCard=document.querySelector(".blueprint-card.cn-sour-demo-trigger");push(demoCard?demoCard.getAttribute("data-id"):null),document.querySelectorAll(".cn-stream-grid-tile--build-demo[data-blueprint-id], .cn-stream-grid-tile[data-blueprint-id]").forEach(function(t){push(t.getAttribute("data-blueprint-id"))}),document.querySelectorAll(".blueprint-card[data-id]").forEach(function(c,i){i<6&&push(c.getAttribute("data-id"))}),ids.forEach(function(id,i){setTimeout(function(){fetchBlueprint(id).catch(function(){})},i*350)})};"requestIdleCallback"in window?requestIdleCallback(run,{timeout:ATV_IS_SAFARI?1200:2500}):setTimeout(run,ATV_IS_SAFARI?800:1200)}(),modal&&(modal.addEventListener("click",function(e){e.target.closest("[data-close]")&&closeModal()}),els.cta&&els.cta.addEventListener("click",function(e){if(currentData&&(currentData.is_demo||currentData.build_key)){e.preventDefault(),openDemoBuildMode();return}e.preventDefault(),closeModal();var gate=document.querySelector('a[data-request-access-modal="true"], .cn-request-access-trigger');gate?gate.click():currentData&&(currentData.cta_url||currentData.permalink)&&(window.location.href=currentData.cta_url||currentData.permalink)}),els.play&&els.play.addEventListener("click",function(){if(clearTimeout(autoplayTimer),currentData&¤tData.__demoStory){playStory();return}var url=currentData&&(currentData.trailer_url||currentData.card_video);url&&isMp4(url)&&openTrailerLightbox(url)||startTrailer(!0)}),els.mute&&els.mute.addEventListener("click",toggleMute)),document.addEventListener("keydown",function(e){if(e.key==="Escape"&&modal&&modal.classList.contains("is-open")){var tm=document.getElementById("trailerModal");if(tm&&tm.classList.contains("active"))return;closeModal()}});var mo=new MutationObserver(function(muts){for(var i=0;i<muts.length;i++)for(var added=muts[i].addedNodes,j=0;j<added.length;j++){var n=added[j];n.nodeType===1&&(n.matches&&n.matches(RAILS_SELECTOR)?neuterProjectionFor(n):n.querySelectorAll&&n.querySelectorAll(RAILS_SELECTOR).forEach(neuterProjectionFor),n.classList&&n.classList.contains("bp-projection-overlay")&&n.parentNode&&n.parentNode.removeChild(n))}});mo.observe(document.body,{childList:!0,subtree:!0})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})();
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.