/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;} function _objectSpread(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:'';var eventActionlData=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'';var eventLabelData=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'';var eventData=arguments.length>3&&arguments[3]!==undefined?arguments[3]:'';window.dataLayer=window.dataLayer||[];window.dataLayer.push(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},eventCategoryData?{eventCategory:eventCategoryData}:{}),eventActionlData?{eventAction:eventActionlData}:{}),eventLabelData?{eventLabel:eventLabelData}:{}),eventData?{event:eventData}:{}));} Drupal.behaviors.gtmParagraphCtaClickHandler={attach:function attach(context){var primaryButtons=$('.bui-button.bui-button--primary',context);var secondaryButtons=$('.bui-button.bui-button--secondary',context);var paragraphCta=$('.paragraph--type--quote__cta',context);if(primaryButtons.length){$(once('gtmPrimaryButtonClickHandler',primaryButtons)).each(function(index){var buttonUrl=$(this).attr('href');$(this).on('click',function(){dataLayerPush('Primary CTA Click',index+1,buttonUrl,'primary_cta_click');});});} if(secondaryButtons.length){$(once('gtmSecondaryButtonClickHandler',secondaryButtons)).each(function(index){var buttonUrl=$(this).attr('href');$(this).on('click',function(){dataLayerPush('Secondary CTA Click',index+1,buttonUrl,'secondary_cta_click');});});} if(paragraphCta.length){$(once('gtmParagraphCtaClickHandler',paragraphCta)).each(function(index){var ctaUrl=$(this).attr('href');$(this).on('click',function(){dataLayerPush('Paragraph CTA Click',index+1,ctaUrl,'paragraph_cta_click');});});}}};})(jQuery,Drupal,window,once);; function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;} function _objectSpread(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:'';window.dataLayer=window.dataLayer||[];window.dataLayer.push(_objectSpread({event:'video_click'},videoUrl?{eventAction:videoUrl}:{}));} Drupal.behaviors.gtmYoutubeTextEmbedClickElement={attach:function attach(context){var iframeSelectors='.field--includes-embeded-video iframe[data-src*="youtube"], .field--includes-embeded-video iframe[src*="youtube"]';var iframeElements=once('gtmYoutubeEmbedClick',iframeSelectors,context);if(iframeElements.length){window.focus();var iframeListener=window.addEventListener('blur',function(){iframeElements.forEach(function(iframe){if(document.activeElement===iframe){var videoUrl=iframe.getAttribute('data-src')||iframe.getAttribute('src');dataLayerPush(videoUrl);}});window.removeEventListener('blur',iframeListener);});}}};})(Drupal,window,document,once);; (function($,Drupal,window,once){var progressBar=$('#scrolling-progress-bar');var isClickCT=$('body').hasClass('page-node-type-click-magazine-article');var isDesktop=window.matchMedia('screen and (min-width: 1025px)').matches;var pageContent=$('.region__content');function getScrollingProgress(element){var coordinates=element.getBoundingClientRect();var headerHeight=$('.header').outerHeight(true);var highlightedRegionHeight=$('.region__highlighted').outerHeight(true);var footerHeight=$('.footer').outerHeight(true);var height=document.documentElement.scrollHeight-document.documentElement.clientHeight;var calculatedHeight=height-headerHeight-highlightedRegionHeight-footerHeight;var progressPercentage=0;if(isClickCT){var nodeHeaderHeight=$('.node__header').outerHeight(true);pageContent=$('.node__content');calculatedHeight=height-nodeHeaderHeight-footerHeight;} progressBar.addClass('visible');if(coordinates.top<0){progressPercentage=Math.abs(coordinates.top)/calculatedHeight*100;} return progressPercentage<=100?progressPercentage:100;} function showScrollingProgress(element){element.setAttribute('value',getScrollingProgress(pageContent[0]));} Drupal.behaviors.scrollingProgressBar={attach:function attach(){var timeout;if(progressBar.length&&isDesktop){$(once('initScrollingProgressBar',progressBar)).each(function(){window.addEventListener('scroll',function(){if(timeout){window.cancelAnimationFrame(timeout);} timeout=window.requestAnimationFrame(function(){showScrollingProgress(progressBar[0]);});});});}}};})(jQuery,Drupal,window,once);; (function($,Drupal){function DropButton(dropbutton,settings){const options=$.extend({title:Drupal.t('List additional actions')},settings);const $dropbutton=$(dropbutton);this.$dropbutton=$dropbutton;this.$list=$dropbutton.find('.dropbutton');this.$actions=this.$list.find('li').addClass('dropbutton-action');if(this.$actions.length>1){const $primary=this.$actions.slice(0,1);const $secondary=this.$actions.slice(1);$secondary.addClass('secondary-action');$primary.after(Drupal.theme('dropbuttonToggle',options));this.$dropbutton.addClass('dropbutton-multiple').on({'mouseleave.dropbutton':this.hoverOut.bind(this),'mouseenter.dropbutton':this.hoverIn.bind(this),'focusout.dropbutton':this.focusOut.bind(this),'focusin.dropbutton':this.focusIn.bind(this)});}else this.$dropbutton.addClass('dropbutton-single');}function dropbuttonClickHandler(e){e.preventDefault();$(e.target).closest('.dropbutton-wrapper').toggleClass('open');}Drupal.behaviors.dropButton={attach(context,settings){const dropbuttons=once('dropbutton','.dropbutton-wrapper',context);if(dropbuttons.length){const body=once('dropbutton-click','body');if(body.length)$(body).on('click','.dropbutton-toggle',dropbuttonClickHandler);dropbuttons.forEach((dropbutton)=>{DropButton.dropbuttons.push(new DropButton(dropbutton,settings.dropbutton));});}}};$.extend(DropButton,{dropbuttons:[]});$.extend(DropButton.prototype,{toggle(show){const isBool=typeof show==='boolean';show=isBool?show:!this.$dropbutton.hasClass('open');this.$dropbutton.toggleClass('open',show);},hoverIn(){if(this.timerID)window.clearTimeout(this.timerID);},hoverOut(){this.timerID=window.setTimeout(this.close.bind(this),500);},open(){this.toggle(true);},close(){this.toggle(false);},focusOut(e){this.hoverOut.call(this,e);},focusIn(e){this.hoverIn.call(this,e);}});$.extend(Drupal.theme,{dropbuttonToggle(options){return `
  • `;}});Drupal.DropButton=DropButton;})(jQuery,Drupal);; (function($,Drupal,document,once){Drupal.behaviors.flagBookmarkAlterAnonymous={attach:function attach(context){var flag=$('.flag-bookmark--anonymous',context);if(flag.length){$(once('flagBookmarkAnonymousInit',flag)).each(function(){var flagElement=$(this);var flagMessage=$(this).find('.js-flag-message--anonymous');var setHideflagMessage;flagElement.on('click',function(){clearTimeout(setHideflagMessage);flagMessage.addClass('show');}).on('mouseenter',function(){clearTimeout(setHideflagMessage);}).on('mouseleave',function(){setHideflagMessage=setTimeout(function(){flagMessage.removeClass('show');},500);});$(document).on('click',function(e){if(flagMessage.hasClass('show')&&!flagElement.is(e.target)&&flagElement.has(e.target).length===0){flagMessage.removeClass('show');}});});}}};})(jQuery,Drupal,document,once);; (function($,Drupal,drupalSettings,window,once){function dataLayerPush(event){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:event});} Drupal.behaviors.signinToolTip={attach:function attach(context){var isHidden=drupalSettings.hideSignInPopUp;var signinBlock=$('.block-sso-account-button--guest',context);var signinTooltip=signinBlock.find('.block-signin__tooltip');var signinTooltipCloseButton=signinTooltip.find('.tooltip__close');var signinTooltipCookieName='Drupal.hideEntity__signinTooltip';var signinTooltipShowTimeout=2000;var signinTooltipHideTimeout=15000;if(signinBlock.length&&signinTooltip.length&&!isHidden&&!Cookies.get(signinTooltipCookieName)){setTimeout(function(){$(once('showTooltip',signinTooltip)).each(function(){var currentSigninTooltip=$(this);currentSigninTooltip.addClass('show');setTimeout(function(){currentSigninTooltip.removeClass('show');Cookies.set(signinTooltipCookieName,'true');},signinTooltipHideTimeout);});},signinTooltipShowTimeout);$(once('closeTooltip',signinTooltipCloseButton)).on('click',function(){$(this).parent(signinTooltip).removeClass('show');dataLayerPush('login_popup_closed');Cookies.set(signinTooltipCookieName,'true',{expires:7});});}}};})(jQuery,Drupal,drupalSettings,window,once);; function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;} function _objectSpread(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:'';window.dataLayer=window.dataLayer||[];window.dataLayer.push(_objectSpread(_objectSpread({eventCategory:'Header',eventAction:'Click Submenu'},eventLabelData?{eventLabel:eventLabelData}:{}),{},{event:'gaIntEvent'}));} function getBreadcrumbsOfMenuItem(element){var isMenuTeaser=element.hasClass('node--view-mode-menu-teaser');var currentMenuItemLinkText=$.trim($(element).text());var secondLevelParentLinkText=$.trim($(element).parents('.menu-item-level--1').children('.menu-item__link--level-1').text());var firstLevelParentLinkText=$.trim($(element).parents('.menu-item-level--0').children('.menu-item__link--level-0').text());var breadcrumb="".concat(firstLevelParentLinkText,"|").concat(secondLevelParentLinkText,"|").concat(currentMenuItemLinkText);if(isMenuTeaser){var teaserTitle=element.find('.node--view-mode-menu-teaser__title').text()||element.find('.bui-card__title > a').text();var teaserTitleText=$.trim(teaserTitle);breadcrumb="".concat(firstLevelParentLinkText,"|Teaser|").concat(teaserTitleText);} return breadcrumb;} Drupal.behaviors.gtmMainMenuClickHandler={attach:function attach(context){var menuItemsWithSubmenu=$('.header .menu--main .menu-item-level--0.menu-item--expanded',context);var thirdLevelMenuLinks=menuItemsWithSubmenu.find('.menu-item__link--level-2');var viewAllMenuLinks=menuItemsWithSubmenu.find('.menu-dropdown__submenu .menu-item__link-parent');var menuTeasers=menuItemsWithSubmenu.find('.node--view-mode-menu-teaser');if(thirdLevelMenuLinks.length){$(once('gtmThirdLevelLinkClickHandler',thirdLevelMenuLinks)).each(function(){var eventLabelData=getBreadcrumbsOfMenuItem($(this));$(this).on('click',function(){dataLayerPush(eventLabelData);});});} if(viewAllMenuLinks.length){$(once('gtmViewAllMenuLinkClickHandler',viewAllMenuLinks)).each(function(){var eventLabelData=getBreadcrumbsOfMenuItem($(this));$(this).on('click',function(){dataLayerPush(eventLabelData);});});} if(menuTeasers.length){$(once('gtmMenuTeaserClickHandler',menuTeasers)).each(function(){var eventLabelData=getBreadcrumbsOfMenuItem($(this));$(this).on('click',function(){dataLayerPush(eventLabelData);});});}}};})(jQuery,Drupal,window,once);; (function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`
    `+'
     
    '+'
    '+'
    '+'
     
    '+'
    ');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`
    ${e.message}
    `);}});}},displayError(string){const error=$('
    ').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; /* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1){Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){Array.prototype.forEach.call(this.messageWrapper.querySelectorAll('[data-drupal-message-id]'),(message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);; (function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={};elementSettings.url=$(el.form).attr('action');elementSettings.setClick=true;elementSettings.event='click';elementSettings.progress={type:'throbber'};elementSettings.base=el.id;elementSettings.element=el;Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element&&this.element.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=$.parseJSON(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='
     
    ';return `
    ${throbber}${messageMarkup}
    `;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'
     
    ';Drupal.theme.ajaxProgressMessage=(message)=>`
    ${message}
    `;Drupal.theme.ajaxProgressBar=($element)=>$('
    ').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.id}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('
    ').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;let $newContent=$($.parseHTML(response.data,document,true));$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` * `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){if(typeof response.data==='string'){Drupal.deprecationError({message:'Passing a string to the Drupal.ajax.add_css() method is deprecated in 10.1.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3154948.'});$('head').prepend(response.data);return;}const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){const offset=$(response.selector).offset();let scrollTarget=response.selector;while($(scrollTarget).scrollTop()===0&&$(scrollTarget).parent())scrollTarget=$(scrollTarget).parent();if(offset.top-10<$(scrollTarget).scrollTop())scrollTarget.get(0).scrollTo({top:offset.top-10,behavior:'smooth'});}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&settings.isInProgress&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);; (function(Drupal){Drupal.theme.ajaxProgressThrobber=function(){return"
    \n \n
    ";};Drupal.theme.ajaxProgressIndicatorFullscreen=function(){return"
    \n \n
    ";};})(Drupal);; (function($,Drupal,drupalSettings,once){const data=drupalSettings.search_suggestion.data;const minLength=drupalSettings.search_suggestion.minLength;function highlightKeywords(value,term){term=term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,'\\$1');term=term.split(' ').join('|');return String(value).replace(new RegExp('(?![^&;]+;)(?!<[^<>]*)('+term+')(?![^<>]*>)(?![^&;]+;)','gi'),'$1');}$.widget('custom.searchSuggestion',$.ui.autocomplete,{_renderItem:function(ul,item){return $('
  • ').data('ui-autocomplete-item',item).append('
    '+highlightKeywords(item.value,this.term)+'
    ').appendTo(ul);},_renderMenu:function(ul,items){const that=this;$.each(items,function(index,item){that._renderItemData(ul,item);});$(ul).prepend('
  • '+this.term+'
  • ');}});function removeDuplicateValue(results){const uniqueResults=[];$.each(results,function(key,value){let exists=false;$.each(uniqueResults,function(k,val2){if(value.value===val2.value)exists=true;;});if(exists===false)uniqueResults.push(value);});return uniqueResults;}function initializeAutocomplete(form,data){const formInput=form.find('input[name="search_keyword"]');const suggestionConfig={appendTo:formInput.parent(),autoFocus:false,minLength,maxResults:8,position:{my:'left bottom',at:'left bottom',of:formInput},open:function(event,ui){form.find('.ui-autocomplete').off('menufocus');},select:function(event,ui){let searchTerm=(typeof ui.item!='undefined')?ui.item.value:this.value;formInput.val(searchTerm);form.submit();},source:function(request,response){const results=$.ui.autocomplete.filter(data,request.term);const uniqueResults=removeDuplicateValue(results);response(uniqueResults.slice(0,this.options.maxResults));}};return formInput.searchSuggestion(suggestionConfig).focus(function(){if($(this).val().length!==0&&$(this).val().length>=minLength)$(this).searchSuggestion('search',$(this).val());});}Drupal.behaviors.searchSuggestions={attach:function(context){$(once('initializeAutocomplete','form.block--search')).each(function(){initializeAutocomplete($(this),data);});$(once('initializeAutocompleteSecondary','#configurable-search-form')).each(function(){initializeAutocomplete($(this),data);});$(once('initializeAutocompleteHelp','#search-help-form')).each(function(){initializeAutocomplete($(this),data);});}};})(jQuery,Drupal,drupalSettings,once);; (function($,Drupal,window,once){var isMobile=window.matchMedia('screen and (max-width: 1024px)');var isCompactHeader=$('body').hasClass('compact-header');Drupal.behaviors.headerSearchBlock={attach:function attach(){var searchBlock=$('.header .block-search-form');var textInput=searchBlock.find('input.form-text');var resetButton=searchBlock.find('.button__reset');var searchFormState=function searchFormState(state){if(state==='typed'){searchBlock.addClass('block-search-form--typed');} if(state==='clear'){searchBlock.removeClass('block-search-form--typed');textInput.val('');} if(state==='focused'){searchBlock.addClass('block-search-form--focused');} if(state==='unfocused'){searchBlock.removeClass('block-search-form--focused');}};if(searchBlock.length){$(once('textInputEvents',textInput)).each(function(){if($(this).val().trim()!==''){searchFormState('typed');} $(this).on('change keyup',function(){if($(this).val().trim()!==''){searchFormState('typed');}else{searchFormState('clear');}});$(this).focus(function(){searchFormState('focused');}).blur(function(){searchFormState('unfocused');});});$(once('resetButtonEvents',resetButton)).each(function(){$(this).on('click',function(e){e.preventDefault();searchFormState('clear');});});}}};Drupal.behaviors.headerMobileSearchBlock={attach:function attach(){var header=$('.header');var searchBlock=header.find('.block-search-form');var educationNavigation=$('.education-top-navigation__items');var educationNavigationToggler=$('#education-top-navigation__toggler');function mobileSearchFormOpen(){var open=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;var block=arguments.length>1?arguments[1]:undefined;var textInput=block.find('input.form-text');if(open){block.addClass('open');$('body').addClass('no-scroll');setTimeout(function(){textInput.focus();},100);Drupal.behaviors.headerOverlay.show();if(header.hasClass('open')){var menuToggler=header.find('#mobile-menu-toggler');var menu=header.find('.header-bottom');menuToggler.add(menu).removeClass('open');}else{header.addClass('open');} if(educationNavigation.length&&educationNavigation.hasClass('open')){educationNavigation.add(educationNavigationToggler).removeClass('open');}}else{textInput.blur();block.add(header).removeClass('open');$('body').removeClass('no-scroll');Drupal.behaviors.headerOverlay.hide();}} function mobileSearchButton(mq,block){var searchMobileToggler=block.find('#mobile-search-toggler');var headerOverlay=$('.header-overlay');if(mq.matches||isCompactHeader){$(once('mobileTogglerEvents',searchMobileToggler)).click(function(e){e.preventDefault();if(!block.hasClass('open')){mobileSearchFormOpen(true,block);}else{mobileSearchFormOpen(false,block);}});headerOverlay.click(function(){mobileSearchFormOpen(false,block);});}else{mobileSearchFormOpen(false,block);}} if(searchBlock.length){$(once('searchBlockEvents',searchBlock)).each(function(){var _this=this;mobileSearchButton(isMobile,$(this));isMobile.addEventListener('change',function(mq){return mobileSearchButton(mq,$(_this));});});}}};})(jQuery,Drupal,window,once);;