1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(Drupal){'use strict';Drupal.behaviors.addToAny={attach:function(context,settings){if(context!==document&&window.a2a)a2a.init_all();}};})(Drupal);; 3(function(Drupal,once){'use strict';Drupal.behaviors.basicAdsTracking={attach:function(context){once('ad-view-tracking','article[data-ad-id]',context).forEach(function(adElement){const adId=adElement.getAttribute('data-ad-id');const placement=adElement.getAttribute('data-ad-placement')||'';const encoded=encodeURIComponent(placement);if(placement!==''){const url='/ad/view/'+adId+(placement?'?placement='+encoded:'');window.fetch(url,{method:'GET',credentials:'same-origin'}).catch(function(error){console.debug('Ad view tracking failed:',error);});}});}};})(Drupal,once);; 4(function(Drupal,once){'use strict';Drupal.behaviors.basicAdsAsync={attach:function(context){once('basic-ad-async','.basic-ad-async',context).forEach(function(el){const term=el.getAttribute('data-term');if(!term)return;const count=el.getAttribute('data-count')||'1';const bust=Date.now().toString(36)+Math.random().toString(36).slice(2);const url=Drupal.url('ad/fragment/'+term)+'?count='+encodeURIComponent(count)+'&_='+bust;window.fetch(url,{credentials:'same-origin',headers:{'X-Requested-With':'XMLHttpRequest'}}).then(function(response){return response.ok&&response.status!==204?response.text():'';}).then(function(html){if(html){el.innerHTML=html;Drupal.attachBehaviors(el);}else el.style.display='none';}).catch(function(error){console.debug('Basic Ads async load failed:',error);});});}};})(Drupal,once);; 5(function(Drupal,once){'use strict';function fixSplideRoles(root){root.querySelectorAll?.('li.splide__slide[role]').forEach(function(li){var role=li.getAttribute('role');if(role==='tabpanel'||role==='group'){li.removeAttribute('role');li.removeAttribute('aria-roledescription');}});}function hasName(a){if(a.getAttribute('aria-label')||a.hasAttribute('aria-labelledby')||a.getAttribute('title'))return true;if(a.textContent.trim()!=='')return true;return Array.prototype.some.call(a.querySelectorAll('img'),function(img){return (img.getAttribute('alt')||'').trim()!=='';});}function nameFromHref(a){var last=(a.pathname||'').split('/').filter(Boolean).pop()||'';var words=decodeURIComponent(last).replace(/\.[a-z0-9]+$/i,'').replace(/[-_+]+/g,' ').trim();return words||a.hostname||Drupal.t('Read more');}function fixNamelessLinks(root){if(!root.querySelectorAll)return;root.querySelectorAll('a[href]').forEach(function(a){if(a.closest('[aria-hidden="true"]')||hasName(a))return;var imagey=a.querySelector('img')||a.querySelector('[style*="background-image"]')||/background-image/.test(a.getAttribute('style')||'');if(!imagey)return;var twin=Array.prototype.find.call(document.querySelectorAll('a[href]'),function(b){return b!==a&&b.href===a.href&&hasName(b);});if(twin){a.setAttribute('aria-hidden','true');a.setAttribute('tabindex','-1');}else a.setAttribute('aria-label',nameFromHref(a));a.querySelectorAll('img:not([alt])').forEach(function(img){img.setAttribute('alt','');});});}Drupal.behaviors.etypeA11yRepairs={attach:function(context){fixNamelessLinks(context);fixSplideRoles(context);once('etype-a11y-repairs','body',context).forEach(function(body){new MutationObserver(function(records){records.forEach(function(record){if(record.type==='attributes'&&record.target.matches('li.splide__slide'))fixSplideRoles(record.target.parentElement||record.target);record.addedNodes.forEach(function(node){if(node.nodeType===1){fixNamelessLinks(node);fixSplideRoles(node);}});});}).observe(body,{childList:true,subtree:true,attributes:true,attributeFilter:['role']});});}};})(Drupal,once);; 6(function($,Drupal){"use strict";Drupal.behaviors.etypeForm={attach:function(context,settings){$("select").addClass("select");}};})(jQuery,Drupal);; 7(function(Drupal,once){'use strict';function hasName(iframe){var title=iframe.getAttribute('title');return (title&&title.trim()!=='')||iframe.hasAttribute('aria-label')||iframe.hasAttribute('aria-labelledby');}function addTitle(iframe){if(hasName(iframe))return;var host='';try{host=new URL(iframe.getAttribute('src')||'',window.location.href).hostname.replace(/^www\./,'');}catch(e){}if(host&&host!==window.location.hostname.replace(/^www\./,''))iframe.setAttribute('title',Drupal.t('Embedded content from @host',{'@host':host}));else iframe.setAttribute('title',Drupal.t('Embedded content'));}function sweep(root){if(root.matches&&root.matches('iframe'))addTitle(root);if(root.querySelectorAll)root.querySelectorAll('iframe').forEach(addTitle);}Drupal.behaviors.etypeIframeTitle={attach:function(context){sweep(context);once('etype-iframe-title','body',context).forEach(function(body){new MutationObserver(function(records){records.forEach(function(record){record.addedNodes.forEac
7h(function(node){if(node.nodeType===1)sweep(node);});});}).observe(body,{childList:true,subtree:true});});}};})(Drupal,once);; 8!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o;};}());}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o];}return e;}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof (i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c;}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break;}catch(e){}}return e?o[e]:o;}},remove:function(t,n){r(t,"",e({},n,{expires:-1}));},withAttributes:function(n){return t(this.converter,e({},this.attributes,n));},withConverter:function(n){return t(e({},this.converter,n),this.attributes);}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}});}({read:function(e){return '"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent);}},{path:"/"});return t;}));; 9(function(Drupal,once){"use strict";Drupal.behaviors.etypeloginPageBehavior={attach(context){once('etype-login-redirect','a[href*="/etype-login"]',context).forEach((el)=>{el.addEventListener('click',()=>{Cookies.set('redirectDestination',window.location.pathname);});});once('etype-logout-redirect','a[href*="/user/logout"]',context).forEach((el)=>{el.addEventListener('click',()=>{Cookies.remove('redirectDestination');});});}};})(Drupal,once);; 10(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label"> </div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description"> </div>'+'</div>');};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(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; 11/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ 12loadjs=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)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}
12function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();; 13/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 14(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);; 15((Drupal)=>{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(){this.messageWrapper.querySelectorAll('[data-drupal-message-id]').forEach((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);; 16(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}`;
16once('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={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,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?.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.hasOwnProperty(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=JSON.parse(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl.hasOwnProperty(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;
16$(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.hasOwnProperty(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='<div class="throbber"> </div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen"> </div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
16d}`,$.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)=>$('<div></div>').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;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
16$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(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},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){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){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&typeof settings.isInProgress==='function'&&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);; 17(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);; 18(function(Drupal,drupalSettings){'use strict';Drupal.behaviors.klaro={config:false,manager:false,observing:false,needCallBehaviors:false,ready:false,attach:function(context,settings){if(!settings.klaro)return;if(typeof klaro==='undefined')document.querySelector('#klaro-js').addEventListener("load",()=>{Drupal.behaviors.klaro.proceed(context,settings);});else Drupal.behaviors.klaro.proceed(context,settings);},proceed:function(context,settings){if(!Drupal.behaviors.klaro.config){settings.klaro.config.services.forEac
18h(function(service,a_index){settings.klaro.config.services[a_index].callback=Drupal.behaviors.klaro.serviceCallback;['onInit','onAccept','onDecline'].forEach(function(hook){const code=service[hook];if(code&&code.length>0)settings.klaro.config.services[a_index][hook]=function(opts){try{Function('opts',code)(opts);}catch(error){console.error('Error executing '+hook+' code for service "'+service.name+'":',error);}};});service.cookies.forEach(function(cookie,c_index){settings.klaro.config.services[a_index]['cookies'][c_index]=[new RegExp(cookie[0],'i'),cookie[1]||'/',cookie[2]||location.host];});});Drupal.behaviors.klaro.config=settings.klaro.config;}Drupal.behaviors.klaro.klaroDecorateWrapper(context,settings);context.querySelectorAll('a[data-name]')?.forEach((item)=>{item.removeAttribute('data-href');});if(!Drupal.behaviors.klaro.manager)Drupal.behaviors.klaro.manager=klaro.getManager(Drupal.behaviors.klaro.config);if(settings.klaro.dialog_mode==='silent')Drupal.behaviors.klaro.manager.confirmed=true;klaro.setup(Drupal.behaviors.klaro.config);Drupal.behaviors.klaro.klaroElementObserver();let learn_more_link=document.querySelector('a.cm-link.cn-learn-more');if(learn_more_link){let label_open_consent_dialog=Drupal.t("Open consent dialog",{},{context:'klaro'});learn_more_link.setAttribute('title',label_open_consent_dialog);learn_more_link.setAttribute('role','button');learn_more_link.setAttribute('aria-haspopup','dialog');}if(!Drupal.behaviors.klaro.manager)Drupal.behaviors.klaro.manager=klaro.getManager(Drupal.behaviors.klaro.config);if(context===document){var elements=once('klaro','body',context);Array.prototype.forEach.call(elements,function(){if(settings.klaro.show_toggle_button&&!document.getElementById('klaro_toggle_dialog')){var button_label=Drupal.t("Manage consents",{},{context:'klaro'});var button_html='<button id="klaro_toggle_dialog" aria-label="'+button_label+'" aria-haspopup="dialog" title="'+button_label+'" type="button" class="klaro_toggle_dialog klaro_toggle_dialog_override" rel="open-consent-manager"></button>';document.body.insertAdjacentHTML('afterbegin',button_html);}});}else{for(var app in Drupal.behaviors.klaro.manager.executedOnce)if(Drupal.behaviors.klaro.manager.executedOnce[app])if(document.querySelectorAll('[data-name="'+app+'"][data-src]:not([src])').length>0)Drupal.behaviors.klaro.manager.applyConsents();}var elements=once('klaro-thumbnail','.klaro.cm-as-context-notice',context);Array.prototype.forEach.call(elements,function(el){let klaro_elem=(el.closest('.field'))?.querySelector('[data-modified-by-klaro]');let thumbnail=klaro_elem?.getAttribute('data-thumbnail');let title=klaro_elem?.getAttribute('title');if(thumbnail){el.parentElement.style.backgroundImage='url('+thumbnail+')';el.parentElement.style.backgroundSize='cover';el.parentElement.style.backgroundPosition='center';el.firstChild.style.backgroundColor='rgba(250, 250, 250, 0.75)';}if(title){let title_elem=document.createElement('p');title_elem.textContent=title;el.firstChild.prepend(title_elem);}});Drupal.behaviors.klaro.config.services.forEach(function(service,a_index){if(service.contextualConsentText){var elements=once('klaro-text','[data-type="placeholder"][data-name="'+service.name+'"] div.context-notice > p:first-child',context);if(elements.length>0){let title_elem=document.createElement('p');title_elem.innerHTML=service.contextualConsentText;Array.prototype.forEach.call(elements,function(el){el.parentNode.replaceChild(title_elem.cloneNode(true),el);});}}});var elements=once('klaro-consent-link','[data-type="placeholder"] div.context-notice');var title=Drupal.t("Open the Consent Management Dialog",{},{context:'klaro'});var linktext=Drupal.t("Manage privacy settings",{},{context:'klaro'});Array.prototype.forEach.call(elements,function(el){el.insertAdjacentHTML('beforeend',`<p class="cm-dialog-link"><a href="#" title="${title}" rel="open-consent-manager">${linktext}</a></p>`);});if(Drupal.behaviors.klaro.needCallBehaviors&&context===document){Drupal.behaviors.klaro.needCallBehaviors=false;Drupal.attachBehaviors(document,drupalSettings);}Drupal.behaviors.klaro.ready=true;},serviceCallback:function(consent,service){if(Drupal.behaviors.klaro.manager&&service.onlyOnce&&Drupal.behaviors.klaro.manager.executedOnce[service.name])return;if(service.callbackCode.length>
180)try{Function('consent','service',service.callbackCode)(consent,service);}catch(error){console.error('Error executing callback code for service "'+service.name+'":',error);}if(!consent)return;var elements=document.querySelectorAll('[data-name="'+service.name+'"][data-id]');if(elements.length>0){Array.prototype.forEach.call(elements,function(element){element.setAttribute('id',element.getAttribute('data-id'));});if(Drupal.behaviors.klaro.ready)Drupal.attachBehaviors(document,drupalSettings);else Drupal.behaviors.klaro.needCallBehaviors=true;}let knownBehaviors=Object.keys(Drupal.behaviors);var elements=document.querySelectorAll('[data-name="'+service.name+'"][src]');if(!elements)return;var source_tags=document.querySelectorAll('source[data-name="'+service.name+'"]');if(source_tags.length>0){var loading_state;for(var i=0;i<source_tags.length;i++){loading_state=source_tags[i].parentElement.readyState;if(loading_state==0||loading_state==1)source_tags[i].parentElement.load();}}function processBehaviors(){for(let name in Drupal.behaviors)if(knownBehaviors.indexOf(name)===-1){Drupal.behaviors[name].attach(document,drupalSettings);knownBehaviors.push(name);}}Array.prototype.forEach.call(elements,function(element){if(element.complete)processBehaviors();else element.addEventListener('load',processBehaviors);});},klaroDecorateWrapper:function(context,settings){settings.klaro.config.services.forEach(function(service,a_index){service.wrapperIdentifier.forEach(function(wrapperIdentifier){var elements=once('klaro-wrap',wrapperIdentifier,context);Array.prototype.forEach.call(elements,function(el){if(el){var wrapper=document.createElement('div');wrapper.setAttribute('data-name',service.name);wrapper.setAttribute('data-original-display',getComputedStyle(el).display);el.parentNode.insertBefore(wrapper,el);wrapper.appendChild(el);}});});});},klaroElementObserver:function(){var targetNode=document.getElementById("klaro");if(Drupal.behaviors.klaro.observing||!targetNode)return;Drupal.behaviors.klaro.observing=true;const config={childList:true,subtree:true};const callback=(mutationList,observer)=>{for(const mutation of mutationList)if(mutation.type==="childList")Drupal.behaviors.klaro.klaroElementMutator();};const observer=new MutationObserver(callback);observer.observe(targetNode,config);Drupal.behaviors.klaro.klaroElementMutator();},klaroElementMutator:function(){var labels=document.querySelectorAll('#klaro label');if(labels.length>0){for(var i=0;i<labels.length;i++){labels[i].setAttribute('onkeydown','Drupal.behaviors.klaro.KlaroToggleService(event)');labels[i].setAttribute('aria-labelledby',labels[i].getAttribute('for')+'-title');labels[i].setAttribute('aria-describedby',labels[i].getAttribute('for')+'-description');if(labels[i].previousElementSibling&&labels[i].previousElementSibling.tagName=='INPUT'){labels[i].previousElementSibling.setAttribute('tabindex','0');labels[i].removeAttribute('tabindex');}}document.querySelector('#klaro input:not(:disabled)+label')?.focus();}if(document.querySelector('.cm-modal.cm-klaro')){var elem=document.querySelector('.cm-modal.cm-klaro');elem.setAttribute('role','dialog');elem.setAttribute('aria-modal','true');elem.querySelector('.cm-header .title').setAttribute('id','cm-modal-title');elem.setAttribute('aria-labelledby','cm-modal-title');}if(drupalSettings.klaro.show_close_button){if(document.querySelector('#klaro-cookie-notice'))var elem=document.querySelector('#klaro-cookie-notice');else{if(document.querySelector('.cm-modal.cm-klaro')){var elem=document.querySelector('.cm-modal.cm-klaro');if((Drupal.behaviors.klaro.manager.confirmed)&&(!Drupal.behaviors.klaro.config.mustConsent))elem=false;}}if(elem&&!document.querySelector('.klaro-close')){var close_label=Drupal.t("Close dialog and decline all",{},{context:'klaro'});var close_html='<button title="'+close_label+'" type="button" class="cn-decline klaro-close" tabindex="0" aria-label="'+close_label+'"></button>';elem.insertAdjacentHTML('beforeend',close_html);;document.querySelector('.klaro-close')?.addEventListener('click',(e)=>{Drupal.behaviors.klaro.manager.changeAll(false);Drupal.behaviors.klaro.manager.saveAndApplyConsents();},false);document.querySelector('.klaro').classList.add('klaro-close-enabled');document.querySelector('.klaro .cookie-modal .cm-modal .hide')?.remove();}}},KlaroToggleService:function(event){if(event.key==="Enter"){event.target.click();
18event.target.focus();}}};Drupal.behaviors.klaroLink={attach:function(context,settings){var elements=once('klaroLink','[rel*="open-consent-manager"], [href*="#klaro"], .open-consent-manager',context);Array.prototype.forEach.call(elements,function(element){element.addEventListener('click',function(event){klaro.show(Drupal.behaviors.klaro.config);event.preventDefault();return false;});});}};})(Drupal,drupalSettings);; 19(function(Drupal,once){'use strict';function maxHeight(elements){let tallest=0;elements.forEach((el)=>{const h=el.offsetHeight;if(h>tallest)tallest=h;});return tallest;}function equalSliderHeadline(){const slider=document.querySelector('#slider .mdslideshow');const headline=document.querySelector('#headlines .region-headlines');if(!slider)return;slider.style.removeProperty('height');if(headline)headline.style.removeProperty('height');const rows=document.querySelectorAll('.mdslideshow .views-row');const rowMax=maxHeight(Array.from(rows));const padding=20;let target;if(window.innerWidth>759&&headline){const headlineHeight=headline.offsetHeight;target=rowMax>headlineHeight?rowMax+padding:headlineHeight-3;}else target=rowMax+padding;slider.style.height=target+'px';}Drupal.behaviors.mdTheNewsLayout={attach(context){once('mdtn-equalheight','#slider',context).forEach(()=>{equalSliderHeadline();window.addEventListener('resize',equalSliderHeadline);});['node--type-photo','node--type-video'].forEach((cls)=>{const wrapClass=cls.indexOf('photo')!==-1?'photo-list':'video-list';const teasers=context.querySelectorAll('.'+cls+'.node--teaser');if(!teasers.length)return;const parent=teasers[0].parentNode;if(parent&&!parent.classList.contains(wrapClass)){const wrap=document.createElement('div');wrap.className=wrapClass+' clearfix';parent.insertBefore(wrap,teasers[0]);teasers.forEach((t)=>wrap.appendChild(t));}});once('mdtn-blockhover','.block',context).forEach((block)=>{block.addEventListener('mouseenter',()=>block.classList.add('blockhover'));block.addEventListener('mouseleave',()=>block.classList.remove('blockhover'));});once('mdtn-editorspick','#editorspick .view-content',context).forEach((view)=>{const rows=view.querySelectorAll('.views-row');if(!rows.length)return;const h=maxHeight(Array.from(rows));view.style.minHeight=h+'px';rows.forEach((r)=>{r.style.minHeight=h+'px';});});once('mdtn-caret','.more-link a, .view-all a',context).forEach((a)=>{const i=document.createElement('i');i.className='fa-solid fa-caret-right';i.setAttribute('aria-hidden','true');a.appendChild(document.createTextNode('Â '));a.appendChild(i);});}};})(Drupal,once);; 20((Drupal,once)=>{const PAGE_SIZE=5;Drupal.behaviors.mdthenewsHeadlines={attach(context){const lists=once('mdthenews-headlines','#headlines .item-list ul',context);lists.forEach((ul)=>{const items=Array.from(ul.children).filter((n)=>n.tagName==='LI');if(items.length<=PAGE_SIZE)return;const pages=[];for(let i=0;i<items.length;i+=PAGE_SIZE)pages.push(items.slice(i,i+PAGE_SIZE));const holder=document.createElement('div');holder.className='holder';ul.parentNode.insertBefore(holder,ul.nextSibling);const showPage=(index)=>{pages.forEach((page,p)=>{page.forEach((li)=>{li.style.display=p===index?'':'none';});});Array.from(holder.children).forEach((dot,d)=>{dot.classList.toggle('jp-current',d===index);});};pages.forEach((_,i)=>{const dot=document.createElement('a');dot.href='#';dot.setAttribute('aria-label',`Page ${i+1}`);dot.addEventListener('click',(e)=>{e.preventDefault();showPage(i);});holder.appendChild(dot);});showPage(0);});}};})(Drupal,once);; 21(function(Drupal,once){'use strict';const BODY_OPEN='pushmenu-open';function open(){document.body.classList.add(BODY_OPEN);}function close(){document.body.classList.remove(BODY_OPEN);}function toggle(e){if(e)e.preventDefault();document.body.classList.toggle(BODY_OPEN);}Drupal.behaviors.mdTheNewsPushmenu={attach(context){once('mdtn-pushmenu-trigger','.btn-flyout-trigger',context).forEach((trigger)=>{trigger.addEventListener('click',toggle);});once('mdtn-pushmenu-overlay','body',context).forEach(()=>{document.addEventListener('click',(e)=>{if(!document.body.classList.contains(BODY_OPEN))return;if(e.target.closest('#left-flyout-nav, .region-pushmenu, .btn-flyout-trigger'))return;close();});document.addEventListener('keydown',(e)=>{if(e.key==='Escape')close();});});}};})(Drupal,once);; 22(function(Drupal,once){'use strict';const DEFAULTS={type:'loop',perPage:1,arrows:true,pagination:false,speed:600,interval:5000,autoplay:true,pauseOnHover:true};function buildHolder(splideEl,instance){const slideCount=instance.length;if(!slideCount)return;const holder=document.createElement('div');holder.className='holder';for(let i=0;i<slideCount;i++){const a=document.createElement('a');a.href='#';a.setAttribute('aria-label','Page '+(i+1));if(i===instance.index)a.className='jp-current';a.addEventListener('click',(e)=>{e.preventDefault();instance.go(i);});holder.appendChild(a);}splideEl.appendChild(holder);instance.on('move',(newIndex)=>{holder.querySelectorAll('a').forEach((a,i)=>{a.classList.toggle('jp-current',i===newIndex);});});}function buildSplideStructure(host){if(host.querySelector('.splide'))return host.querySelector('.splide');const inner=host.querySelector('.mdslideshow')||host;const slides=inner.querySelectorAll('.views-row');if(!slides.length)return null;const splide=document.createElement('div');
22splide.className='splide mdslideshow-splide';const track=document.createElement('div');track.className='splide__track';const list=document.createElement('ul');list.className='splide__list';track.appendChild(list);splide.appendChild(track);slides.forEach((slide)=>{const li=document.createElement('li');li.className='splide__slide';li.appendChild(slide);list.appendChild(li);});inner.appendChild(splide);return splide;}function whenInstanceReady(el,cb,tries){tries=tries||40;if(el.splide){cb(el.splide);return;}if(tries<=0)return;setTimeout(()=>whenInstanceReady(el,cb,tries-1),50);}Drupal.behaviors.mdTheNewsSlider={attach(context){if(typeof window.Splide==='undefined')return;once('mdtn-slider','#slider',context).forEach((host)=>{const existing=host.querySelector('.splide');if(existing){whenInstanceReady(existing,(instance)=>{buildHolder(existing,instance);});return;}let opts={};const raw=host.getAttribute('data-splide');if(raw)try{opts=JSON.parse(raw);}catch(e){}const target=buildSplideStructure(host);if(!target)return;const instance=new window.Splide(target,Object.assign({},DEFAULTS,opts)).mount();buildHolder(target,instance);});}};})(Drupal,once);; 23(function(Drupal,once){'use strict';const TOUCH_MQ='(max-width: 1017px)';const MOBILE_MQ='(max-width: 760px)';const BODY_NAV_OPEN='main-nav-open';const ACCOUNT_ITEM_CLASS='sf-account-item';Drupal.behaviors.mdTheNewsNavToggle={attach(context){once('mdtn-nav-toggle','.btn-navbar-navtoggle',context).forEach((btn)=>{btn.addEventListener('click',(e)=>{e.preventDefault();const open=document.body.classList.toggle(BODY_NAV_OPEN);btn.setAttribute('aria-expanded',open?'true':'false');});});}};Drupal.behaviors.mdTheNewsNav={attach(context){once('mdtn-nav','.the-nav, .region-superfish',context).forEach((nav)=>{nav.querySelectorAll('li').forEach((li)=>{if(!li.querySelector(':scope > ul'))return;const link=li.querySelector(':scope > a');if(!link)return;link.addEventListener('click',(e)=>{if(!window.matchMedia(TOUCH_MQ).matches)return;if(!li.classList.contains('is-open')){e.preventDefault();if(li.parentNode)li.parentNode.querySelectorAll(':scope > li.is-open').forEach((s)=>{if(s!==li)s.classList.remove('is-open');});li.classList.add('is-open');}});});});}};function syncMobileSocial(){const block=document.querySelector('#block-md-thenews-socialmediablockfortiempostheme');const navbar=document.querySelector('#nav .wrap .navbar.container');const headerRight=document.querySelector('.region-header-right');
23if(!block||!navbar||!headerRight)return;const isMobile=window.matchMedia(MOBILE_MQ).matches;const isInNavbar=navbar.contains(block);if(isMobile&&!isInNavbar){block.classList.add('mobile-in-navbar');navbar.appendChild(block);}else{if(!isMobile&&isInNavbar){block.classList.remove('mobile-in-navbar');headerRight.appendChild(block);}}}function syncAccountLinks(){const target=document.querySelector('#nav .region-superfish ul.sf-menu');const source=document.querySelector('#block-md-thenews-usermenu ul');if(!target||!source)return;const present=target.querySelectorAll(':scope > li.'+ACCOUNT_ITEM_CLASS);const wantsAccount=window.matchMedia(MOBILE_MQ).matches;if(wantsAccount&&!present.length)Array.from(source.children).forEach((li,i)=>{if(li.tagName!=='LI')return;const clone=li.cloneNode(true);clone.classList.add(ACCOUNT_ITEM_CLASS);if(i===0)clone.classList.add(ACCOUNT_ITEM_CLASS+'-first');target.appendChild(clone);});else{if(!wantsAccount&&present.length)present.forEach((li)=>li.remove());}}let mqlBound=false;Drupal.behaviors.mdTheNewsNavAccount={attach(){syncAccountLinks();syncMobileSocial();if(!mqlBound){mqlBound=true;const mql=window.matchMedia(MOBILE_MQ);mql.addEventListener('change',syncAccountLinks);mql.addEventListener('change',syncMobileSocial);}}};})(Drupal,once);; 24/*! 25 * hoverIntent v1.10.1 // 2019.10.05 // jQuery v1.7.0+ 26 * http://briancherne.github.io/jquery-hoverIntent/ 27 * 28 * You may use hoverIntent under the terms of the MIT license. Basically that 29 * means you are free to use hoverIntent as long as this header is left intact. 30 * Copyright 2007-2019 Brian Cherne 31 */ 32!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";function track(ev){cX=ev.pageX,cY=ev.pageY}var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity)return $el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev]);s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval)};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),(typeof cfg.out==="function")||(cfg.out=cfg.over)):cfg=(typeof handlerOut==="function")?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});function handleHover(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){!function(ev,$el,s,out){var data=$el.data("hoverIntent");data&&delete data[s.id],out.apply($el[0],[ev])}(ev,$el,state,cfg.out)},cfg.timeout)}}return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}});; 33(function($){$.fn.sfsmallscreen=function(options){options=$.extend({mode:'inactive',type:'accordion',breakpoint:768,breakpointUnit:'px',useragent:'',title:'',addSelected:false,menuClasses:false,hyperlinkClasses:false,excludeClass_menu:'',excludeClass_hyperlink:'',includeClass_menu:'',includeClass_hyperlink:'',accordionButton:1,expandText:'Expand',collapseText:'Collapse'},options);function refine(menu){const refined=menu.clone();const rm=refined.find('span.sf-sub-indicator');const rh=refined.find('.sf-smallscreen-remove');const mm=refined.find('ul.sf-multicolumn');for(let a=0;a<rh.length;a++)rh.eq(a).replaceWith(rh.eq(a).html());if(options.accordionButton===2||options.type==='select'){for(let b=0;b<rm.length;b++)rm.eq(b).remove();}if(mm.length>0){mm.removeClass('sf-multicolumn');const ol=refined.find('div.sf-multicolumn-column > ol');for(let o=0;o<ol.length;o++)ol.eq(o).replaceWith('<ul>'+ol.eq(o).html()+'</ul>');const elements=['div.sf-multicolumn-column','.sf-multicolumn-wrapper > ol','li.sf-multicolumn-wrapper'];for(let i=0;i<elements.length;i++){let obj=refined.find(elements[i]);for(let t=0;t<obj.length;t++)obj.eq(t).replaceWith(obj.eq(t).html());}refined.find('.sf-multicolumn-column').removeClass('sf-multicolumn-column');}refined.add(refined.find('*')).css({width:''});return refined;}function toSelect(menu,level){let items='';const childLI=$(menu).children('li');for(let a=0;a<childLI.length;a++){const list=childLI.eq(a);const parent=list.children('a, span');for(let b=0;b<parent.length;b++){const item=parent.eq(b);const path=(item.is('a')&&!!item.attr('href'))?item.attr('href'):'';const itemClone=item.clone();let classes=(options.hyperlinkClasses)?((options.excludeClass_hyperlink&&itemClone.hasClass(options.excludeClass_hyperlink))?itemClone.removeClass(options.excludeClass_hyperlink).attr('class'):itemClone.attr('class')):'';classes=(options.includeClass_hyperlink&&!itemClone.hasClass(options.includeClass_hyperlink))?((options.hyperlinkClasses)?itemClone.addClass(options.includeClass_hyperlink).attr('class'):options.includeClass_hyperlink):classe
33s;if(options.addSelected&&item.hasClass('active'))classes+=' active';classes=classes?' class="'+classes+'"':'';const disable=path===''||path==='#'?' disabled="disabled"':'';const subIndicator=1<level?Array(level).join('-')+' ':'';items+='<option value="'+path+'"'+classes+disable+'>'+subIndicator+item.text().trim()+'</option>';const childUL=list.find('> ul');for(let u=0;u<childUL.length;u++)items+=toSelect(childUL.eq(u),level+1);}}return items;}function convert(menu){const menuID=menu.attr('id');const refinedMenu=refine(menu);if(options.type==='accordion'){const toggleID=menuID+'-toggle';const accordionID=menuID+'-accordion';if($('#'+accordionID).length!==0)return;const styleClass=menu.attr('class').split(' ').filter(function(item){return item.indexOf('sf-style-')>-1?item:'';});const accordion=$(refinedMenu).attr('id',accordionID);accordion.removeClass('sf-horizontal sf-vertical sf-navbar sf-shadow sf-js-enabled');accordion.addClass('sf-accordion sf-hidden').attr('aria-hidden','true');accordion.find('li').each(function(){$(this).removeAttr('style').removeClass('sfHover').attr('id',$(this).attr('id')+'-accordion');});accordion.children('ul').removeAttr('style').not('.sf-hidden').addClass('sf-hidden').attr('aria-hidden','true');accordion.find('ul').each(function(){$(this).removeAttr('style').not('.sf-hidden').addClass('sf-hidden').attr('aria-hidden','true');});const toggle='<div class="sf-accordion-toggle '+styleClass+'"><a href="#" id="'+toggleID+'"><span>'+options.title+'</span></a></div>';if(options.accordionButton===2){accordion.addClass('sf-accordion-with-buttons');const parent=accordion.find('li.menuparent');for(let i=0;i<parent.length;i++)parent.eq(i).prepend('<a href="#" class="sf-accordion-button">'+options.expandText+'</a>');}menu.before(toggle).before(accordion).hide();const $accordionElement=$('#'+accordionID);const buttonElement=(options.accordionButton<2)?'a.menuparent,span.nolink.menuparent':'a.sf-accordion-button';const $button=$accordionElement.find(buttonElement);$('#'+toggleID).on('click',function(e){e.preventDefault();$(this).toggleClass('sf-expanded');if($accordionElement.hasClass('sf-expanded')){$accordionElement.add($accordionElement.find('li.sf-expanded')).removeClass('sf-expanded').end().children('ul').hide().end().hide().addClass('sf-hidden').attr('aria-hidden','true').show();if(options.accordionButton===2)$accordionElement.find('a.sf-accordion-button').text(options.expandText);}else $accordionElement.addClass('sf-expanded').hide().removeClass('sf-hidden').attr('aria-hidden','false').show();});$button.on('click',function(e){if($(this).closest('li').children('ul').length===0)return;e.preventDefault();const $parent=$(this).closest('li');if(options.accordionButton===1&&$parent.children('a.menuparent,span.nolink.menuparent').length>0&&$parent.children('ul').children('li.sf-clone-parent').length===0){let cloneLink=$parent.children('a.menuparent').clone();cloneLink.removeClass('menuparent sf-with-ul').children('.sf-sub-indicator').remove();cloneLink=$('<li class="sf-clone-parent" />').html(cloneLink);$parent.children('ul').addClass('sf-has-clone-parent').prepend(cloneLink);}if(options.accordionButton===0||options.accordionButton===1)$accordionElement.find('a.is-active:not(.menuparent)').on('click',function(e){$accordionElement.removeClass('sf-expanded').addClass('sf-hidden').attr('aria-hidden','true');});if(options.accordionButton===2)$accordionElement.find('a.is-active').on('click',function(e){$accordionElement.removeClass('sf-expanded').addClass('sf-hidden').attr('aria-hidden','true');});if($parent.hasClass('sf-expanded')){$parent.children('ul').slideUp('fast',function(){$(this).closest('li').removeClass('sf-expanded').end().addClass('sf-hidden').attr('aria-hidden','true').show();});if(options.accordionButton===2&&$parent.children('.sf-accordion-button').length>0)$parent.children('.sf-accordion-button').text(options.expandText);}else $parent.children('ul').hide().removeClass('sf-hidden').attr('aria-hidden','false').slideDown('fast').end().addClass('sf-expanded').children('a.sf-accordion-button').text(options.collapseText).end().siblings('li.sf-expanded').children('ul').slideUp('fast',function(){$(this).closest('li').removeClass('sf-expanded').end().addClass('sf-hidden').attr('aria-hidden','true').show();}).parent().children('a.sf-accordion-button').text(options.expandText);});}else{const menuClone=menu.clone();let classes=options.menuClasses?((options.excludeClass_menu&&menuClone.hasClass(options.excludeClass_menu))?menuClone.removeClass(options.excludeClass_menu).attr('class'):menuClone.attr('class')):'';classes=options.includeClass_menu&&!menuClone.hasClass(options.includeClass_menu)?((options.menuClasses)?menuClone.addClass(options.includeClass_menu).attr('class'):options.includeClass_menu):classes;
33classes=classes?' class="'+classes+'"':'';if($('#'+menuID+'-select').length!==0)return;const newMenu=toSelect(refinedMenu,1);const selectList=$('<select '+classes+' id="'+menuID+'-select"/>').html('<option>'+options.title+'</option>'+newMenu).change(function(){if($('option:selected',this).index())window.location=selectList.val();});if(options.addSelected)selectList.find('.active').attr('selected',!0);menu.before(selectList).hide();}}function turnBack(menu){const id='#'+menu.attr('id');$(id+'-'+options.type).remove();if(options.type==='accordion')$(id+'-toggle').parent('div').remove();$(id).css('display','');}for(let s=0;s<this.length;s++){const menu=$(this).eq(s);const mode=options.mode;if(menu.children('li').length===0){}else if(mode==='always_active')convert(menu);else if(mode==='window_width'){const breakpoint=options.breakpointUnit==='em'?options.breakpoint*parseFloat($('body').css('font-size')):options.breakpoint;const windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;let timer;if((typeof Modernizr==='undefined'||typeof Modernizr.mq!=='function')&&windowWidth<breakpoint)convert(menu);else{if(typeof Modernizr!=='undefined'&&typeof Modernizr.mq==='function'&&Modernizr.mq('(max-width:'+(breakpoint-1)+'px)'))convert(menu);}$(window).resize(function(){clearTimeout(timer);timer=setTimeout(function(){const windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;if((typeof Modernizr==='undefined'||typeof Modernizr.mq!=='function')&&windowWidth<breakpoint)convert(menu);else if(typeof Modernizr!=='undefined'&&typeof Modernizr.mq==='function'&&Modernizr.mq('(max-width:'+(breakpoint-1)+'px)'))convert(menu);else turnBack(menu);},50);});}else if(mode==='useragent_custom'){if(options.useragent!==''){const ua=RegExp(options.useragent,'i');if(navigator.userAgent.match(ua))convert(menu);}}else{if(mode==='useragent_predefined'&&navigator.userAgent.match(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i))convert(menu);}}return this;};})(jQuery);; 34(function($){$.fn.supersubs=function(options){const superfish_options=$.extend({},$.fn.supersubs.defaults,options);let size;let o;for(let a=0;a<this.length;a++){let $$=$(this).eq(a);o=$.meta?$.extend({},superfish_options,$$.data()):superfish_options;if($$.hasClass('sf-navbar'))$$=$$.children('li').children('ul');let $ULs=$$.find('ul');if($ULs.length){let fontsize=$('<li id="menu-fontsize">—</li>');size=fontsize.attr('style','padding:0;position:absolute;top:-99999em;width:auto;').appendTo($$)[0].clientWidth;fontsize.remove();for(let b=0;b<$ULs.length;b++){let $ul=$ULs.eq(b);if(o.multicolumn&&$ul.hasClass('sf-multicolumn')&&$ul.find('.sf-multicolumn-column').length>0){let $column=$ul.find('div.sf-multicolumn-column > ol');let mwWidth=0;for(let d=0;d<$column.length;d++){resize($column.eq(d));let colWidth=Math.ceil($column.width());$column.css({width:colWidth}).parents('.sf-multicolumn-column').css({width:colWidth});mwWidth+=colWidth;}$ul.add($ul.find('li.sf-multicolumn-wrapper, li.sf-multicolumn-wrapper > ol')).css({width:mwWidth});}else resize($ul);}}}function resize($ul){const $LIs=$ul.children();const $As=$LIs.children('a');$LIs.css('white-space','nowrap');$ul.add($LIs).add($As).css({float:'none',width:'auto'});let emWidth=$ul.get(0).clientWidth/size;emWidth+=o.extraWidth;if(emWidth>o.maxWidth)emWidth=o.maxWidth;else{if(emWidth<o.minWidth)emWidth=o.minWidth;}emWidth+='em';$ul.css({width:emWidth});$LIs.add($As).css({float:'',width:'',whiteSpace:''});for(let c=0;c<$LIs.length;c++){let $childUl=$LIs.eq(c).children('ul');let offsetDirection=$childUl.css('left')!==undefined?'left':'right';$childUl.css(offsetDirection,'100%');}}return this;};$.fn.supersubs.defaults={multicolumn:true,minWidth:12,maxWidth:27,extraWidth:1};})(jQuery);; 35(function($){$.fn.supposition=function(){const $w=$(window);const _offset=function(dir){return window[dir==='y'?'pageYOffset':'pageXOffset']||document.documentElement&&document.documentElement[dir==='y'?'scrollTop':'scrollLeft']||document.body[dir==='y'?'scrollTop':'scrollLeft'];};const onHide=function(){this.css({bottom:''});};const onBeforeShow=function(){this.each(function(){const $u=$(this);$u.css('display','block');const $mul=$u.closest('.sf-menu');const level=$u.parents('ul').length;const menuWidth=$u.width();const menuParentWidth=$u.closest('li').outerWidth(true);const menuParentLeft=$u.closest('li').offset().left;const totalRight=$w.width()+_offset('x');const menuRight=$u.offset().left+menuWidth;const exactMenuWidth=menuRight>(menuParentWidth+menuParentLeft)?menuWidth-(menuRight-(menuParentWidth+menuParentLeft)):menuWidth;if($u.parents('.sf-js-enabled').hasClass('rtl')){if(menuParentLeft<exactMenuWidth){if($mul.hasClass('sf-horizontal')&&level===1||$mul.hasClass('sf-navbar')&&level===2)$u.css({left:0,right:'auto'});else $u.css({left:menuParentWidth+'px',right:'auto'});$u.parent().addClass('sf-supposition-active');}}else{if(menuRight>totalRight&&menuParentLeft>menuWidth){if($mul.hasClass('sf-horizontal')&&level===1||$mul.hasClass('sf-navbar')&&level===2)$u.css({right:0,left:'auto'});else $u.css({right:menuParentWidth+'px',left:'auto'});$u.parent().addClass('sf-supposition-active');}}const windowHeight=$w.height();const offsetTop=$u.offset().top;const menuParentShadow=$mul.hasClass('sf-shadow')&&$u.css('padding-bottom').length>0?parseInt($u.css('padding-bottom').slice(0,-2)):0;const menuParentHeight=$mul.hasClass('sf-vertical')?'-'+menuParentShadow:$u.parent().outerHeight(true)-menuParentShadow;const menuHeight=$u.height();const baseline=windowHeight+_offset('y');const expandUp=(offsetTop+menuHeight>baseline)&&(offsetTop>
35menuHeight);if(expandUp)$u.css({bottom:menuParentHeight+'px',top:'auto'});$u.css('display','none');});};return this.each(function(){const options=$.fn.superfish.optionsList[this.serial];const _onBeforeShow=options.onBeforeShow;const _onHide=options.onHide;$.extend($.fn.superfish.optionsList[this.serial],{onBeforeShow:function(){onBeforeShow.call(this);_onBeforeShow.call(this);},onHide:function(){onHide.call(this);_onHide.call(this);}});});};})(jQuery);;
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.