1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function($,Drupal,Cookies,window,location){Drupal.behaviors.sourceCodeOverrides={attach:function(context,settings){var libSettings=settings.atgeSourceCodes.sourceCodes,defaultSourceCode=libSettings['default'],mobileDefault=libSettings['mobile_default'],queryParamName=libSettings['query_param_name'],cookieName=libSettings['cookie_name'],$field=$('[name="'+libSettings['field_name']+'"]'),mobileBreakpoint=768;var queryParams=new URLSearchParams(location.search),secCookie='campaign';let defaultSourceCodeBlog='203606';let currentUrl=window.location.pathname;let isBlogUrl=currentUrl.startsWith('/blog')||currentUrl.startsWith('/blogrequest');if(queryParams.has(queryParamName)){var qValue=queryParams.get(queryParamName);if(qValue==defaultSourceCodeBlog&&isBlogUrl===true){let cookieValue=Cookies.get(cookieName);if(cookieValue!==undefined&&cookieValue!=='')qValue=cookieValue;}$field.val(qValue);Cookies.set(secCookie,qValue);if(cookieName&&cookieName!=='')Cookies.set(cookieName,qValue);}else if(cookieName&&cookieName!==''&&Cookies.get(cookieName))$field.val(Cookies.get(cookieName));else{if(Cookies.get(secCookie)){const srcPartial=Cookies.get(secCookie).split('&'),srcString=srcPartial[0].split('='),srcVal=srcString[0];$field.val(srcVal);}}if(window.innerWidth<mobileBreakpoint&&mobileDefault)if($field.val()===defaultSourceCode)$field.val(mobileDefault);}};})(jQuery,Drupal,Cookies,window,location);; 3(function($,Drupal,drupalSettings){if(!Drupal.atgeUtilityAnchor)Drupal.atgeUtilityAnchor={};Drupal.behaviors.atgeUtilityAnchor={anchor:function(elementId){elementId=elementId.replace('#','');let element=document.getElementById(elementId);if(element)element.scrollIntoView({behavior:"smooth"});},setScrollPadding:function(stickElements){let height=0;stickElements.forEach((element)=>{height+=$(element).outerHeight();});$('html').css('scroll-padding-top',height+'px');}};})(jQuery,Drupal,drupalSettings);; 4(function($,Drupal,drupalSettings){if(!Drupal.atgeMediaCoverImageInteractions)Drupal.atgeMediaCoverImageInteractions={};Drupal.behaviors.atgeMediaCoverImageInteractions={attach:function(context,settings){const videoInline=$('.c-media.video-inline, .p-banner__media.e-video--active');const videoModal='.c-media.video-modal';$(videoModal).find('.e-video--external').each(function(){if($(window).width()<768)$(this).removeClass('video-modal').addClass('video-inline');});$(videoModal).find('.e-video--internal').each(function(){if($(window).width()<768)$(this).removeClass('video-modal').addClass('video-inline');});Drupal.behaviors.atgeMediaCoverImageInteractions.ieObjectFitFix('.e-media-cover-img');function hideOnExtVideo(cover,video){let clickedVideoId=$(video).attr('id');let vidInfoDiv=$(video).find('.atge-youtube-data');let youTubeVidId=$(vidInfoDiv).data('videoId');if(typeof atgeAddYouTubeCode==='function'){window.clickedVideo=clickedVideoId;atgeAddYouTubeCode();}cover.fadeOut();if(window.videosOnPage)window.videosOnPage.map(function(video){if(typeof video.player.playVideo==='function')if(youTubeVidId===video.id)video.player.playVideo();else video.player.stopVideo();});$(video).find('.yt-player').each(function(j,player){player.contentWindow.postMessage('{"event":"command","func":"'+'playVideo'+'","args":""}','*');});$(videoInline).find('.e-video--external').not($(video)).find('.yt-player').each(function(j,player){player.contentWindow.postMessage('{"event":"command","func":"'+'pauseVideo'+'","args":""}','*');});}$(videoInline).find('.e-video--external').each(function(i,video){$(video).find('.e-media-cover-img').on('click',function(){if(drupalSettings.atge_utility.isGdprEnabled){if(Drupal.behaviors.atgeYoutubeGdpr.youtubeAllowed())hideOnExtVideo($(this),video);}else hideOnExtVideo($(this),video);});});$(videoInline).find('.e-video--internal').each(function(i,video){$(video).find('.e-media-cover-img').on('click',function(){$(this).fadeOut();if($(video).closest('.c-banner').length>0)if($(window).width()>=768){$('.c-banner-videobutton').addClass('c-banner-videobutton--pause');$('.c-banner-videobutton').removeClass('c-banner-videobutton--play hidden');}$(video).find('.e-media__video--banner').each(function(j,player){if(player.paused){player.play();$(videoInline).find('.e-video--internal').not($(video)).find('.e-media__video--banner').each(function(k,player2){player2.pause();});}else player.pause();});});});},ieObjectFitFix:function(imgTarget){function ieObjectFitFix(){var userAgent,ieReg,ie;const width=$(window).width();userAgent=window.navigator.userAgent;ieReg=/msie|Trident.*rv[ :]*11\./gi;ie=ieReg.test(userAgent);if(ie&&width>
4767)$(imgTarget).each(function(){var imgUrl=$(this).prop('src'),imgHeight=$(this).height();if(imgUrl)$(this).wrap($('<div>',{class:'custom-object-fit',style:'background-image: url('+encodeURIComponent(imgUrl)+'); height:'+imgHeight+'px;'}));});}$(window).on('load',ieObjectFitFix);$(window).resize(ieObjectFitFix);}};})(jQuery,Drupal,drupalSettings);; 5(function(Drupal,drupalSettings,window){'use strict';if(!Drupal.chmPerformance)Drupal.chmPerformance={};Drupal.chmPerformance.EventQueue={queue:[],isProcessing:false,add:function(eventData){this.queue.push({timestamp:performance.now(),data:eventData});this.process();},process:function(){if(this.isProcessing||this.queue.length===0)return;this.isProcessing=true;if(window.requestIdleCallback)window.requestIdleCallback(this._processEvents.bind(this),{timeout:2000});else window.setTimeout(this._processEvents.bind(this),0);},_processEvents:function(){while(this.queue.length>0){var event=this.queue.shift();this._sendEvent(event);}this.isProcessing=false;},_sendEvent:function(event){if(typeof window.gtag!=='undefined')window.gtag('event',event.data.eventName,event.data.eventParams);if(typeof window.dataLayer!=='undefined')window.dataLayer.push(event.data);}};Drupal.chmPerformance.DeferredScriptLoader={scriptsToLoad:[{src:'https://www.googletagmanager.com/gtag/js?id=GA_ID',async:true,defer:true,priority:'high'}],loadedScripts:{},init:function(){if(window.requestIdleCallback)window.requestIdleCallback(this.loadHighPriorityScripts.bind(this),{timeout:3000});else window.setTimeout(this.loadHighPriorityScripts.bind(this),1000);this.attachInteractionListeners();},loadHighPriorityScripts:function(){var self=this;this.scriptsToLoad.forEach(function(script){if(script.priority==='high'&&!self.loadedScripts[script.src])self.loadScript(script);});},attachInteractionListeners:function(){var self=this;var events=['click','touchstart','scroll'];events.forEach(function(eventName){document.addEventListener(eventName,function(){self.loadLowPriorityScripts();},{once:true});});},loadLowPriorityScripts:function(){var self=this;this.scriptsToLoad.forEach(function(script){if(script.priority!=='high'&&!self.loadedScripts[script.src])self.loadScript(script);});},loadScript:function(scriptConfig){var script=document.createElement('script');script.src=scriptConfig.src;script.async=scriptConfig.async||false;script.defer=scriptConfig.defer||false;script.onload=function(){Drupal.chmPerformance.DeferredScriptLoader.loadedScripts[scriptConfig.src]=true;};document.head.appendChild(script);}};Drupal.chmPerformance.NavigationMonitor={init:function(){if(window.PerformanceObserver)try{var observer=new PerformanceObserver(function(list){});observer.observe({entryTypes:['longtask']});}catch(e){}this.monitorNavigationTiming();},monitorNavigationTiming:function(){window.addEventListener('load',function(){var perfData=window.performance.timing;var pageLoadTime=perfData.loadEventEnd-perfData.navigationStart;Drupal.chmPerformance.EventQueue.add({eventName:'page_load_time',eventParam
5s:{value:pageLoadTime,event_category:'performance'}});});}};Drupal.chmPerformance.MobileMenuOptimization={init:function(){var menuButtons=document.querySelectorAll('[data-mobile-menu-trigger]');var self=this;menuButtons.forEach(function(button){button.addEventListener('click',function(e){e.target.classList.add('active');window.requestAnimationFrame(function(){Drupal.chmPerformance.EventQueue.add({eventName:'mobile_menu_click',eventParams:{menu_item:e.target.textContent,event_category:'navigation'}});});});});}};Drupal.chmPerformance.MobileMenuOptimization={init:function(){var menuButtons=document.querySelectorAll('[data-mobile-menu-trigger]');menuButtons.forEach(function(button){button.addEventListener('click',function(e){e.target.classList.add('active');window.requestAnimationFrame(function(){Drupal.chmPerformance.EventQueue.add({eventName:'mobile_menu_click',eventParams:{menu_item:e.target.textContent,event_category:'navigation'}});});});});}};Drupal.behaviors.chmPerformanceOptimization={attach:function(context,settings){Drupal.chmPerformance.DeferredScriptLoader.init();Drupal.chmPerformance.NavigationMonitor.init();Drupal.chmPerformance.MobileMenuOptimization.init();}};})(Drupal,drupalSettings,window);; 6(function($,Drupal,drupalSettings){if(!Drupal.atgeYoutubeGdpr)Drupal.atgeYoutubeGdpr={};Drupal.behaviors.atgeYoutubeGdpr={attach:function(context,settings){if(drupalSettings.atge_utility.isGdprEnabled){$('.e-media-cover-img').hover(function(){if(!Drupal.behaviors.atgeYoutubeGdpr.youtubeAllowed())$(this).removeClass('e-media-icon--play');},function(){if(!Drupal.behaviors.atgeYoutubeGdpr.youtubeAllowed())$(this).addClass('e-media-icon--play');});$(document).on('click',` 7 #truste-consent-buttons #truste-consent-button, 8 .accessibleGsOptedOutMsg .submitPreferencesButtonLower, 9 .accessibleGsOptedOutMsg .acceptAllButtonLower`,()=>{setTimeout(()=>{if(Drupal.behaviors.atgeYoutubeGdpr.youtubeAllowed())Drupal.behaviors.atgeYoutubeGdpr.bannerCloseAddIframe();},1500);});document.addEventListener("click",(e)=>{const accepted=e.composedPath().find((el)=>el.matches?.(` 10 .gdpr_accessible:has(.categoryPanelAccessible:last-child .accessibleSwitch button.off.active) .submitPreferencesButtonLower, 11 .gdpr_accessible .acceptAllButtonLower`));const declined=e.composedPath().find((el)=>el.matches?.(` 12 .gdpr_accessible:has(.categoryPanelAccessible:last-child .accessibleSwitch button.on.active) .submitPreferencesButtonLower, 13 .gdpr_accessible .declineAllButtonLower`));if(accepted)setTimeout(()=>{if(Drupal.behaviors.atgeYoutubeGdpr.youtubeAllowed())Drupal.behaviors.atgeYoutubeGdpr.bannerCloseAddIframe();},1500);else{if(declined){if(window.videosOnPage)window.videosOnPage.forEach((video)=>video.player.pauseVideo());$(".atge-youtube-data").each(function(){Drupal.behaviors.atgeYoutubeGdpr.addGdprBanner($(this),$(this).data());});}}});}},youtubeAllowed:function(){const allowedCategories=Drupal.behaviors.atgeBaseGlobalFunctions.getCookie('cmapi_cookie_privacy');const consentModel=undefined!==window.trustArcCustom&&window.trustArcCustom.consentModel?window.trustArcCustom.consentModel:'';if(allowedCategories)return allowedCategories.includes('4');else return consentModel==='opt-out';},gdprBannerClosed:function(){const bannerClosed=Drupal.behaviors.atgeUtilityCookies.getCookie('cmapi_cookie_privacy');return bannerClosed;},addGdprBanner:function(youtubeData,dataset){const youtubeGdprText=drupalSettings.atge_gdpr_global.youtube_gdpr_text||'';const cookieText='<h4 class="cookie-text">'+youtubeGdprText+'</h4>';const gdprLayer='<div class="gdpr-banner-layer"></div>';const containerId=$('#'+dataset.containerId);const $coverImg=youtubeData.siblings('.e-media-cover-img');$coverImg.show();if($coverImg[0]){if($coverImg.find('.gdpr-banner').length)return;$coverImg.append('<div class="gdpr-banner"></div>');$coverImg.find('.gdpr-banner')[0].insertAdjacentHTML('beforeend',cookieText+gdprLayer);}else{const cover='<img title="'+dataset.title+'" src="https://img.youtube.com/vi/'+dataset.videoId+'/maxresdefault.jpg">';const gdprBanner='<div name="gdpr-banner" class="gdpr-banner e-media-cover-img e-media-icon--play has-objectfit"></div>';containerId[0].insertAdjacentHTML('beforeend',cover);containerId.find('img').wrap(gdprBanner);containerId.find('.gdpr-banner')[0].insertAdjacentHTML('beforeend',cookieText+gdprLayer);}},bannerCloseAddIframe:function(){$('.atge-youtube-data').each(function(){const dataset=$(this).data();Drupal.behaviors.atgeYoutubeGdpr.removeGdprBanner($(this),dataset);});},removeGdprBanner:function(youtubeData,dataset){if(youtubeData.siblings('.e-media-cover-img')[0])youtubeData.siblings('.e-media-cover-img').find('.gdpr-banner').remove();else $('#'+dataset.containerId).find('.gdpr-banner').remove();}};})(jQuery,Drupal,drupalSettings);; 14(function($,Drupal,drupalSettings){if(!Drupal.atgeAddYoutubeAsync)Drupal.atgeAddYoutubeAsync={};Drupal.behaviors.atgeAddYoutubeAsync={attach:function(context,settings){window.atgeAddYouTubeCode=function(){var tag=document.createElement('script');tag.src="https://www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);setTimeout(function(){$(once('addYoutubeIframe','.atge-youtube-data',context)).each(function(){const dataset=$(this).data();const youtubeData=$(this);if(drupalSettings.atge_utility.isGdprEnabled)if(!Drupal.behaviors.atgeYoutubeGdpr.youtubeAllowed())Drupal.behaviors.atgeYoutubeGdpr.addGdprBanner(youtubeData,dataset);});},1000);};},bannerCheckGdpr:function(context){$(once('addYoutubeIframe','.atge-youtube-data',context)).each(function(){const dataset=$(this).data();const youtubeData=$(this);if(drupalSettings.atge_utility.isGdprEnabled)if(!Drupal.behaviors.atgeYoutubeGdpr.youtubeAllowed())Drupal.behaviors.atgeYoutubeGdpr.addGdprBanner(youtubeData,dataset);});},createVideos:function(){var clickedVideo=window.clickedVideo;var vidInfoDiv=$('#'+clickedVideo).find('.atge-youtube-data');var vidId=$(vidInfoDiv).data('videoId');var videoIds=getAllVideoIds('.atge-youtube-data');var iphoneAgent=navigator.userAgent.includes('iPhone');window.videosOnPage=videoIds.map(function(id){let splitedId=id.split('____');let player=new YT.Player('player-'+id,{height:'390',width:'640',videoId:splitedId[0],playerVars:{rel:0,autoplay:(vidId===id)?1:0,mute:(iphoneAgent)?1:0},events:{'onStateChange':function(event){const themeAbbv=drupalSettings.atge_base.global.theme_abbv;if(themeAbbv==='chm')if(event.data===YT.PlayerState.PLAYING){idClicked=$('[data-vi
14deo-id="'+id+'"]');if(!idClicked.attr('data-is-modal'))$('[data-video-id="'+id+'"]').parent().siblings().remove();}if(themeAbbv=='cv')if(window.matchMedia("(orientation: landscape)").matches&&window.matchMedia("(pointer: coarse)").matches)if(event.data===YT.PlayerState.PLAYING){let video=$('[data-video-id="'+id+'"]').parent('.e-video--external');if(video.parents('.c-embedded').length>0){$('body').addClass('cc-bg-black');if(video.parents('.video-inline').length>0){let iframe=video.find('iframe');iframe.addClass('landscape-yt-video');video.append('<div class="close-btn"></div>');video.find('.close-btn').on('click',function(){iframe.removeClass('landscape-yt-video');$('body').removeClass('cc-bg-black');$(this).remove();});}else{if(video.parents('.video-modal').length>0){let windowHeight=$(window).height();let videoParent=video.parents('.c-video');let closeBtn=videoParent.find('.e-modal--close');let videoContentInner=videoParent.find('.e-modal--content-inner');let iframeModal=videoParent.find('iframe');videoContentInner.css('margin',0);iframeModal.add(videoContentInner).css('height',windowHeight);iframeModal.add(closeBtn).css('position','fixed');closeBtn.css('top','48px');videoParent.find('.e-modal--close').on('click',function(){$('body').removeClass('cc-bg-black');});}}}}if(themeAbbv==='rum'){let contentBio='';if(event.data===YT.PlayerState.PLAYING){if($('[data-video-id="'+id+'"]').parents(".testimonial-carousel-portrait").length){contentBio=$('[data-video-id="'+id+'"]').parents(".p-rum-carousel__item--inner");$(contentBio).find(".p-rum-carousel__content").fadeOut();$(contentBio).find(".p-carousel__bio").fadeOut();}window.videosOnPage.forEach(function(video){if(typeof video.player.stopVideo==='function')if(video.id!==id){video.player.stopVideo();if($('[data-video-id="'+video.id+'"]').parents(".testimonial-carousel-portrait").length){contentBio=$('[data-video-id="'+video.id+'"]').parents(".p-rum-carousel__item--inner");$(contentBio).find(".p-rum-carousel__content").fadeIn();$(contentBio).find(".p-carousel__bio").fadeIn();}}});}if(event.data===YT.PlayerState.PAUSED||event.data===YT.PlayerState.ENDED)if($('[data-video-id="'+id+'"]').parents(".testimonial-carousel-portrait").length){contentBio=$('[data-video-id="'+id+'"]').parents(".p-rum-carousel__item--inner");$(contentBio).find(".p-rum-carousel__content").fadeIn();$(contentBio).find(".p-carousel__bio").fadeIn();}}if(themeAbbv==='auc'){const accordionItem=$(`[data-video-id="${id}"]`).closest('.p-accordion__item');if(event.data===YT.PlayerState.PLAYING){accordionItem.find('.p-accordion__item--group').fadeOut('fast');accordionItem.find('.p-accordion__item--media').addClass('is-playing');}if(event.data===YT.PlayerState.PAUSED||event.data===YT.PlayerState.ENDED){accordionItem.find('.p-accordion__item--group').fadeIn('fast');accordionItem.find('.p-accordion__item--media').removeClass('is-playing');}}}}});return {id,player};});}};})(jQuery,Drupal,drupalSettings);function onYouTubeIframeAPIReady(){if(drupalSettings.atge_utility.isGdprEnabled){if(Drupal.behaviors.atgeYoutubeGdpr.youtubeAllowed())Drupal.behaviors.atgeAddYoutubeAsync.createVideos();}else Drupal.behaviors.atgeAddYoutubeAsync.createVideos();}function getAllVideoIds(selector){var videoIds=[];var allYouTubeData=document.querySelectorAll(selector);allYouTubeData.forEach(function(el){videoIds.push(el.dataset.videoId);});return videoIds;}; 15(function($,Drupal,once){Drupal.behaviors.betterExposedFilters={attach:function(context){$('.bef-tree input[type=checkbox], .bef-checkboxes input[type=checkbox]').change(function(){_bef_highlight(this,context);}).filter(':checked').closest('.form-item',context).addClass('highlight');}};function _bef_highlight(elem,context){$elem=$(elem,context);$elem.attr('checked')?$elem.closest('.form-item',context).addClass('highlight'):$elem.closest('.form-item',context).removeClass('highlight');}Drupal.behaviors.autosubmitExcludeTextfield={attach:function(context,settings){if(!settings.better_exposed_filters?.autosubmit_exclude_textfield)return;$(once('autosubmit-exclude-textfield','.bef-exposed-form *[type="text"]',context)).each(function(){$(this).attr('data-bef-auto-submit-exclude','');});}};Drupal.behaviors.befSingleCheckboxFix={attach:function(context,settings){once('befSingleCheckboxFix','form.views-exposed-form',context).forEach((form)=>{const $form=$(form);const $checkboxes=$form.find('input[type="checkbox"].single-checkbox');$form.on('submit',function(){$checkboxes.each(function(){const $checkbox=$(this);const name=$checkbox.attr('name');$form.find('input[type="hidden"][name="'+name+'"]').remove();if(!$checkbox.is(':checked'))$('<input>').attr({type:'hidden',name,value:0}).appendTo($form);});});});}};})(jQuery,Drupal,once);;
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.