PageSourceSearch

https://sportlandhessenbewegt.de/sites/sportlandhessenbewegt.hesse…Kl15lRaZoNrwfZSgzv6kGW2390FyUkN01ntNT5Y81x7

js sportlandhessenbewegt.de collected 2026-10-07 00:07:26 UTC 246,527 bytes, 16 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function($,Drupal,once){Drupal.behaviors.betterExposedFilters={attach:function(context){$('.bef-tree input[type=checkbox], .bef-checkboxes input[type=checkbox]').change(function(){_bef_highlight(this,context);}).filter(':checked').closest('.form-item',context).addClass('highlight');}};function _bef_highlight(elem,context){$elem=$(elem,context);$elem.attr('checked')?$elem.closest('.form-item',context).addClass('highlight'):$elem.closest('.form-item',context).removeClass('highlight');}Drupal.behaviors.autosubmitExcludeTextfield={attach:function(context,settings){if(!settings.better_exposed_filters?.autosubmit_exclude_textfield)return;$(once('autosubmit-exclude-textfield','.bef-exposed-form',context)).each(function(){$(this).find('*[type="text"]').attr('data-bef-auto-submit-exclude','');});}};})(jQuery,Drupal,once);;
3(function(Drupal,drupalSettings){Drupal.behaviors.activeLinks={attach(context){const path=drupalSettings.path;const queryString=JSON.stringify(path.currentQuery);const querySelector=queryString?`[data-drupal-link-query="${CSS.escape(queryString)}"]`:':not([data-drupal-link-query])';const originalSelectors=[`[data-drupal-link-system-path="${CSS.escape(path.currentPath)}"]`];let selectors;if(path.isFront)originalSelectors.push('[data-drupal-link-system-path="<front>"]');selectors=[].concat(originalSelectors.map((selector)=>`${selector}:not([data-drupal-language]):not([hreflang])`),originalSelectors.map((selector)=>`li${selector}[data-drupal-language="${path.currentLanguage}"]`),originalSelectors.map((selector)=>`a${selector}[hreflang="${path.currentLanguage}"]`));selectors=selectors.map((current)=>current+querySelector);context.querySelectorAll(selectors.join(',')).forEach((activeLink)=>{activeLink.classList.add('is-active');activeLink.setAttribute('aria-current','page');});},detach(context,settings,trigger){if(trigger==='unload')context.querySelectorAll('[data-drupal-link-system-path].is-active').forEach((activeLink)=>{activeLink.classList.remove('is-active');activeLink.removeAttribute('aria-current');});}};})(Drupal,drupalSettings);;
4(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">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</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);;
5/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
6loadjs=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}
6function 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}();;
7/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
8Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};;
9(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);;
10((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})=>
10{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);;
11(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={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[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[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;
11$(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='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</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
11d}`,$.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));
11$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);;
12(function($,Drupal,drupalSettings){Drupal.behaviors.jqueryUiDatepickerLocale={attach:function attach(context,settings){$.datepicker.regional['drupal-locale']=$.extend({closeText:Drupal.t('Done'),prevText:Drupal.t('Prev'),nextText:Drupal.t('Next'),currentText:Drupal.t('Today'),monthNames:[Drupal.t('January',{},{context:'Long month name'}),Drupal.t('February',{},{context:'Long month name'}),Drupal.t('March',{},{context:'Long month name'}),Drupal.t('April',{},{context:'Long month name'}),Drupal.t('May',{},{context:'Long month name'}),Drupal.t('June',{},{context:'Long month name'}),Drupal.t('July',{},{context:'Long month name'}),Drupal.t('August',{},{context:'Long month name'}),Drupal.t('September',{},{context:'Long month name'}),Drupal.t('October',{},{context:'Long month name'}),Drupal.t('November',{},{context:'Long month name'}),Drupal.t('December',{},{context:'Long month name'})],monthNamesShort:[Drupal.t('Jan'),Drupal.t('Feb'),Drupal.t('Mar'),Drupal.t('Apr'),Drupal.t('May'),Drupal.t('Jun'),Drupal.t('Jul'),Drupal.t('Aug'),Drupal.t('Sep'),Drupal.t('Oct'),Drupal.t('Nov'),Drupal.t('Dec')],dayNames:[Drupal.t('Sunday'),Drupal.t('Monday'),Drupal.t('Tuesday'),Drupal.t('Wednesday'),Drupal.t('Thursday'),Drupal.t('Friday'),Drupal.t('Saturday')],dayNamesShort:[Drupal.t('Sun'),Drupal.t('Mon'),Drupal.t('Tue'),Drupal.t('Wed'),Drupal.t('Thu'),Drupal.t('Fri'),Drupal.t('Sat')],dayNamesMin:[Drupal.t('Su'),Drupal.t('Mo'),Drupal.t('Tu'),Drupal.t('We'),Drupal.t('Th'),Drupal.t('Fr'),Drupal.t('Sa')],dateFormat:Drupal.t('mm/dd/yy'),firstDay:0,isRTL:0},drupalSettings.jquery.ui.datepicker);$.datepicker.setDefaults($.datepicker.regional[settings.jquery.ui.datepicker.langCode]);}};})(jQuery,Drupal,drupalSettings);;
13"use strict";!function(factory,jQuery,Zepto){"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof exports?module.exports=factory(require("jquery")):factory(jQuery||Zepto);}((function($){var Mask=function(el,mask,options){var p={invalid:[],getCaret:function(){try{var sel,pos=0,ctrl=el.get(0),dSel=document.selection,cSelStart=ctrl.selectionStart;return dSel&&-1===navigator.appVersion.indexOf("MSIE 10")?((sel=dSel.createRange()).moveStart("character",-p.val().length),pos=sel.text.length):(cSelStart||"0"===cSelStart)&&(pos=cSelStart),pos;}catch(e){}},setCaret:function(pos){try{if(el.is(":focus")){var range,ctrl=el.get(0);ctrl.setSelectionRange?ctrl.setSelectionRange(pos,pos):((range=ctrl.createTextRange()).collapse(!0),range.moveEnd("character",pos),range.moveStart("character",pos),range.select());}}catch(e){}}
13,events:function(){el.on("keydown.mask",(function(e){el.data("mask-keycode",e.keyCode||e.which),el.data("mask-previus-value",el.val());})).on($.jMaskGlobals.useInput?"input.mask":"keyup.mask",p.behaviour).on("paste.mask drop.mask",(function(){setTimeout((function(){el.keydown().keyup();}),100);})).on("change.mask",(function(){el.data("changed",!0);})).on("blur.mask",(function(){oldValue===p.val()||el.data("changed")||el.trigger("change"),el.data("changed",!1);})).on("blur.mask",(function(){oldValue=p.val();})).on("focus.mask",(function(e){!0===options.selectOnFocus&&$(e.target).select();})).on("focusout.mask",(function(){options.clearIfNotMatch&&!regexMask.test(p.val())&&p.val("");}));},getRegexMask:function(){for(var translation,pattern,optional,recursive,oRecursive,r,maskChunks=[],i=0;i<mask.length;i++)(translation=jMask.translation[mask.charAt(i)])?(pattern=translation.pattern.toString().replace(/.{1}$|^.{1}/g,""),optional=translation.optional,(recursive=translation.recursive)?(maskChunks.push(mask.charAt(i)),oRecursive={digit:mask.charAt(i),pattern}):maskChunks.push(optional||recursive?pattern+"?":pattern)):maskChunks.push(mask.charAt(i).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));return r=maskChunks.join(""),oRecursive&&(r=r.replace(new RegExp("("+oRecursive.digit+"(.*"+oRecursive.digit+")?)"),"($1)?").replace(new RegExp(oRecursive.digit,"g"),oRecursive.pattern)),new RegExp(r);},destroyEvents:function(){el.off(["input","keydown","keyup","paste","drop","blur","focusout",""].join(".mask "));},val:function(v){var r,method=el.is("input")?"val":"text";return arguments.length>0?(el[method]()!==v&&el[method](v),r=el):r=el[method](),r;},calculateCaretPosition:function(caretPos,newVal){var newValL=newVal.length,oValue=el.data("mask-previus-value")||"",oValueL=oValue.length;return 8===el.data("mask-keycode")&&oValue!==newVal?caretPos-=newVal.slice(0,caretPos).length-oValue.slice(0,caretPos).length:oValue!==newVal&&(caretPos>=oValueL?caretPos=newValL:caretPos+=newVal.slice(0,caretPos).length-oValue.slice(0,caretPos).length),caretPos;},behaviour:function(e){e=e||window.event,p.invalid=[];var keyCode=el.data("mask-keycode");if(-1===$.inArray(keyCode,jMask.byPassKeys)){var newVal=p.getMasked(),caretPos=p.getCaret();return setTimeout((function(caretPos,newVal){p.setCaret(p.calculateCaretPosition(caretPos,newVal));}),10,caretPos,newVal),p.val(newVal),p.setCaret(caretPos),p.callbacks(e);}},getMasked:function(skipMaskChars,val){var lastMaskChar,check,lastUntranslatedMaskChar,buf=[],value=void 0===val?p.val():val+"",m=0,maskLen=mask.length,v=0,valLen=value.length,offset=1,addMethod="push",resetPos=-1;for(options.reverse?(addMethod="unshift",offset=-1,lastMaskChar=0,m=maskLen-1,v=valLen-1,check=function(){return m>-1&&v>-1;}):(lastMaskChar=maskLen-1,check=function(){return m<maskLen&&v<valLen;});check();){var maskDigit=mask.charAt(m),valDigit=value.charAt(v),translation=jMask.translation[maskDigit];translation?(valDigit.match(translation.pattern)?(buf[addMethod](valDigit),translation.recursive&&(-1===resetPos?resetPos=m:m===lastMaskChar&&(m=resetPos-offset),lastMaskChar===resetPos&&(m-=offset)),m+=offset):valDigit===lastUntranslatedMaskChar?lastUntranslatedMaskChar=void 0:translation.optional?(m+=offset,v-=offset):translation.fallback?(buf[addMethod](translation.fallback),m+=offset,v-=offset):p.invalid.push({p:v,v:valDigit,e:translation.pattern}),v+=offset):(skipMaskChars||buf[addMethod](maskDigit),valDigit===maskDigit?v+=offset:lastUntranslatedMaskChar=maskDigit,m+=offset);}var lastMaskCharDigit=mask.charAt(lastMaskChar);return maskLen!==valLen+1||jMask.translation[lastMaskCharDigit]||buf.push(lastMaskCharDigit),buf.join("");},callbacks:function(e){var val=p.val(),changed=val!==oldValue,defaultArgs=[val,e,el,options],callback=function(name,criteria,args){"function"==typeof options[name]&&criteria&&options[name].apply(this,args);};callback("onChange",!0===changed,defaultArgs),callback("onKeyPress",!0===changed,defaultArgs),callback("onComplete",val.length===mask.length,defaultArgs),callback("onInvalid",p.invalid.length>0,[val,e,el,p.invalid,options]);}};el=$(el);var regexMask,jMask=this,oldValue=p.val();mask="function"==typeof mask?mask(p.val(),void 0,el,options):mask,jMask.mask=mask,jMask.options=options,jMask.remove=function(){var caret=p.getCaret();return p.destroyEvents(),p.val(jMask.getCleanVal()),p.setCaret(caret),el;},jMask.getCleanVal=function(){return p.getMasked(!0);},jMask.getMaskedVal=function(val){return p.getMasked(!1,val);},jMask.init=function(onlyMask){if(onlyMask=onlyMask||!1,options=options||{},jMask.clearIfNotMatch=$.jMaskGlobals.clearIfNotMatch,jMask.byPassKeys=$.jMaskGlobals.byPassKeys,jMask.translation=$.extend({},$.jMaskGlobals.translation,options.translation),jMask=$.extend(!0,{},jMask,options),regexMask=p.getRegexMask(),onlyMask)p.events(),p.val(p.getMasked());else{options.placeholder&&el.attr("placeholder",options.placeholder),el.data("mask")&&el.attr("autocomplete","off");for(var i=0,maxlength=!0;i<mask.length;i++){var translation=jMask.translation[mask.charAt(i)];if(translation&&translation.recursive){maxlength=!1;break;}}maxlength&&el.attr("maxlength",mask.length),p.destroyEvents(),p.events();var caret=p.getCaret();p.val(p.getMasked()),p.setCaret(caret);}},jMask.init(!el.is("input"));};$.maskWatchers={};var HTMLAttributes=function(){var input=$(this),options={},mask=input.attr("data-mask");if(input.attr("data-mask-reverse")&&(options.reverse=!0),input.attr("data-mask-clearifnotmatch")&&(options.clearIfNotMatch=!0),"true"===input.attr("data-mask-selectonfocus")&&(options.selectOnFocus=!0),notSameMaskObject(input,mask,options))return input.data("mask",new Mask(this,mask,options));},notSameMaskObject=function(field,mask,options){options=options||{};var maskObject=$(field).data("mask"),stringify=JSON.stringify,value=$(field).val()||$(field).text();try{return "function"==typeof mask&&(mask=mask(value)),"object"!=typeof maskObject||stringify(maskObject.options)!==stringify(options)||maskObject.mask!==mask;}catch(e){}};$.fn.mask=function(mask,options){options=options||{};var selector=this.selector,globals=$.jMaskGlobals,interval=globals.watchInterval,watchInputs=options.watchInputs||globals.watchInputs,maskFunction=function(){if(notSameMaskObject(this,mask,options))return $(this).data("mask",new Mask(this,mask,options));};return $(this).each(maskFunction),selector&&""!==selector&&watchInputs&&(clearInterval($.maskWatchers[selector]),$.maskWatchers[selector]=setInterval((function(){$(document).find(selector).each(maskFunction);}),interval)),this;},$.fn.masked=function(val){return this.data("mask").getMaskedVal(val);},$.fn.unmask=function(){return clearInterval($.maskWatchers[this.selector]),delete $.maskWatchers[this.selector],this.each((function(){var dataMask=$(this).data("mask");dataMask&&dataMask.remove().removeData("mask");}));},$.fn.cleanVal=function(){return this.data("mask").getCleanVal();},$.applyDataMask=function(selector){((selector=selector||$.jMaskGlobals.maskElements) instanceof $?selector:$(selector)).filter($.jMaskGlobals.dataMaskAttr).each(HTMLAttributes);};var eventName,isSupported,el,globals={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&(eventName="input",el=document.createElement("div"),(isSupported=(eventName="on"+eventName) in el)||(el.setAttribute(eventName,"return;"),isSupported="function"==typeof el[eventName]),el=null,isSupported),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};$.jMaskGlobals=$.jMaskGlobals||{},(globals=$.jMaskGlobals=$.extend(!0,{},globals,$.jMaskGlobals)).dataMask&&$.applyDataMask(),setInterval((function(){$.jMaskGlobals.watchDataMask&&$.applyDataMask();}),globals.watchInterval);}),window.jQuery,window.Zepto),function(root,doc,factory){"function"==typeof define&&define.amd?define(["jquery"],(function($){return factory($,root,doc),$.mobile;})):factory(root.jQuery,root,doc);}(this,document,(function(jQuery,window,document,undefined){var factory;factory=function($){return $.extend($.support,{orientation:"orientation" in window&&"onorientationchange" in window}),$.support;},"function"==typeof define&&define.amd?define("support/orientation",["jquery"],factory):factory(jQuery),function(factory){"function"==typeof define&&define.amd?define("events/throttledresize",["jquery"],factory):factory(jQuery);}((function($){var heldCall,curr,diff,lastCall=0,handler=function(){curr=(new Date()).getTime(),(diff=curr-lastCall)>=250?(lastCall=curr,$(this).trigger("throttledresize")):(heldCall&&clearTimeout(heldCall),heldCall=setTimeout(handler,250-diff));};return $.event.special.throttledresize={setup:function(){$(this).bind("resize",handler);},teardown:function(){$(this).unbind("resize",handler);}},$.event.special.throttledresize;})),function(factory){"function"==typeof define&&define.amd?define("events/orientationchange",["jquery","../support/orientation","./throttledresize"],factory):factory(jQuery);}((function($){var get_orientation,last_orientation,initial_orientation_is_landscape,initial_orientation_is_default,ww,wh,win=$(window),event_name="orientationchange",portrait_map={0:!0,180:!0};function handler(){var orientation=get_orientation();orientation!==last_orientation&&(last_orientation=orientation,win.trigger(event_name));}return $.support.orientation&&(50,initial_orientation_is_landscape=(ww=window.innerWidth||win.width())>(wh=window.innerHeight||win.height())&&ww-wh>50,initial_orientation_is_default=portrait_map[window.orientation],(initial_orientation_is_landscape&&initial_orientation_is_default||!initial_orientation_is_landscape&&!initial_orientation_is_default)&&(portrait_map={"-90":!0,90:!0})),$.event.special.orientationchange=$.extend({}
13,$.event.special.orientationchange,{setup:function(){if($.support.orientation&&!$.event.special.orientationchange.disabled)return !1;last_orientation=get_orientation(),win.bind("throttledresize",handler);},teardown:function(){if($.support.orientation&&!$.event.special.orientationchange.disabled)return !1;win.unbind("throttledresize",handler);},add:function(handleObj){var old_handler=handleObj.handler;handleObj.handler=function(event){return event.orientation=get_orientation(),old_handler.apply(this,arguments);};}}),$.event.special.orientationchange.orientation=get_orientation=function(){var elem=document.documentElement;return ($.support.orientation?portrait_map[window.orientation]:elem&&elem.clientWidth/elem.clientHeight<1.1)?"portrait":"landscape";},$.fn[event_name]=function(fn){return fn?this.bind(event_name,fn):this.trigger(event_name);},$.attrFn&&($.attrFn[event_name]=!0),$.event.special;})),function(factory){"function"==typeof define&&define.amd?define("events/scroll",["jquery"],factory):factory(jQuery);}((function($){return $.each(["scrollstart","scrollstop"],(function(i,name){$.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);},$.attrFn&&($.attrFn[name]=!0);})),$.event.special.scrollstart={enabled:!0,setup:function(){var scrolling,timer,thisObject=this,$this=$(thisObject);function trigger(event,state){var originalEventType=event.type;scrolling=state,event.type=scrolling?"scrollstart":"scrollstop",$.event.dispatch.call(thisObject,event),event.type=originalEventType;}var scrollStartHandler=$.event.special.scrollstart.handler=function(event){$.event.special.scrollstart.enabled&&(scrolling||trigger(event,!0),clearTimeout(timer),timer=setTimeout((function(){trigger(event,!1);}),50));};$this.on("touchmove scroll",scrollStartHandler);},teardown:function(){$(this).off("touchmove scroll",$.event.special.scrollstart.handler);}},$.each({scrollstop:"scrollstart"},(function(event,sourceEvent){$.event.special[event]={setup:function(){$(this).bind(sourceEvent,$.noop);},teardown:function(){$(this).unbind(sourceEvent);}};})),$.event.special;})),function(factory){"function"==typeof define&&define.amd?define("vmouse",["jquery"],factory):factory(jQuery);}((function($){var threshold,i,dataPropertyName="virtualMouseBindings",touchTargetPropertyName="virtualTouchID",touchEventProps="clientX clientY pageX pageY screenX screenY".split(" "),virtualEventNames="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),generalProps="altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),mouseHookProps=$.event.mouseHooks?$.event.mouseHooks.props:[],mouseEventProps=generalProps.concat(mouseHookProps),activeDocHandlers={},resetTimerID=0,startX=0,startY=0,didScroll=!1,clickBlockList=[],blockMouseTriggers=!1,blockTouchTriggers=!1,eventCaptureSupported="addEventListener" in document,$document=$(document),nextTouchID=1,lastTouchID=0;function getNativeEvent(event){for(;event&&void 0!==event.originalEvent;)event=event.originalEvent;return event;}function getVirtualBindingFlags(element){for(var b,k,flags={};element;){for(k in b=$.data(element,dataPropertyName))b[k]&&(flags[k]=flags.hasVirtualBinding=!0);element=element.parentNode;}return flags;}function disableTouchBindings(){blockTouchTriggers=!0;}function enableMouseBindings(){lastTouchID=0,clickBlockList.length=0,blockMouseTriggers=!1,disableTouchBindings();}function disableMouseBindings(){blockTouchTriggers=!1;}function clearResetTimer(){resetTimerID&&(clearTimeout(resetTimerID),resetTimerID=0);}function startResetTimer(){clearResetTimer(),resetTimerID=setTimeout((function(){resetTimerID=0,enableMouseBindings();}),$.vmouse.resetTimerDuration);}function triggerVirtualEvent(eventType,event,flags){var ve;return (flags&&flags[eventType]||!flags&&function(element,eventType){for(var b;element;){if((b=$.data(element,dataPropertyName))&&(!eventType||b[eventType]))return element;element=element.parentNode;}return null;}(event.target,eventType))&&(ve=function(event,eventType){var oe,props,ne,prop,ct,touch,i,j,len,t=event.type;if((event=$.Event(event)).type=eventType,oe=event.originalEvent,props=generalProps,t.search(/^(mouse|click)/)>-1&&(props=mouseEventProps),oe)for(i=props.length;i;)event[prop=props[--i]]=oe[prop];if(t.search(/mouse(down|up)|click/)>-1&&!event.which&&(event.which=1),-1!==t.search(/^touch/)&&(t=(ne=getNativeEvent(oe)).touches,ct=ne.changedTouches,touch=t&&t.length?t[0]:ct&&ct.length?ct[0]:undefined))for(j=0,len=touchEventProps.length;j<len;j++)event[prop=touchEventProps[j]]=touch[prop];return event;}(event,eventType),$(event.target).trigger(ve)),ve;}function mouseEventCallback(event){var ve,touchID=$.data(event.target,touchTargetPropertyName);"click"===event.type&&"touchstart"===$.data(event.target,"lastTouchType")&&setTimeout((function(){"touchstart"===$.data(event.target,"lastTouchType")&&(enableMouseBindings(),delete $.data(event.target).lastTouchType,mouseEventCallback(event));}),$.vmouse.maximumTimeBetweenTouches),blockMouseTriggers||lastTouchID&&lastTouchID===touchID||
13(ve=triggerVirtualEvent("v"+event.type,event))&&(ve.isDefaultPrevented()&&event.preventDefault(),ve.isPropagationStopped()&&event.stopPropagation(),ve.isImmediatePropagationStopped()&&event.stopImmediatePropagation());}function handleTouchStart(event){var target,flags,t,touches=getNativeEvent(event).touches;touches&&1===touches.length&&(flags=getVirtualBindingFlags(target=event.target),$.data(event.target,"lastTouchType",event.type),flags.hasVirtualBinding&&(lastTouchID=nextTouchID++,$.data(target,touchTargetPropertyName,lastTouchID),clearResetTimer(),disableMouseBindings(),didScroll=!1,t=getNativeEvent(event).touches[0],startX=t.pageX,startY=t.pageY,triggerVirtualEvent("vmouseover",event,flags),triggerVirtualEvent("vmousedown",event,flags)));}function handleScroll(event){blockTouchTriggers||(didScroll||triggerVirtualEvent("vmousecancel",event,getVirtualBindingFlags(event.target)),$.data(event.target,"lastTouchType",event.type),didScroll=!0,startResetTimer());}function handleTouchMove(event){if(!blockTouchTriggers){var t=getNativeEvent(event).touches[0],didCancel=didScroll,moveThreshold=$.vmouse.moveDistanceThreshold,flags=getVirtualBindingFlags(event.target);$.data(event.target,"lastTouchType",event.type),(didScroll=didScroll||Math.abs(t.pageX-startX)>moveThreshold||Math.abs(t.pageY-startY)>moveThreshold)&&!didCancel&&triggerVirtualEvent("vmousecancel",event,flags),triggerVirtualEvent("vmousemove",event,flags),startResetTimer();}}function handleTouchEnd(event){if(!blockTouchTriggers&&$.data(event.target,"lastTouchType")!==undefined){disableTouchBindings(),delete $.data(event.target).lastTouchType;var ve,t,flags=getVirtualBindingFlags(event.target);triggerVirtualEvent("vmouseup",event,flags),didScroll||(ve=triggerVirtualEvent("vclick",event,flags))&&ve.isDefaultPrevented()&&(t=getNativeEvent(event).changedTouches[0],clickBlockList.push({touchID:lastTouchID,x:t.clientX,y:t.clientY}),blockMouseTriggers=!0),triggerVirtualEvent("vmouseout",event,flags),didScroll=!1,startResetTimer();}}function hasVirtualBindings(ele){var k,bindings=$.data(ele,dataPropertyName);if(bindings)for(k in bindings)if(bindings[k])return !0;return !1;}function dummyMouseHandler(){}function getSpecialEventObject(eventType){var realType=eventType.substr(1);return {setup:function(){hasVirtualBindings(this)||$.data(this,dataPropertyName,{}),$.data(this,dataPropertyName)[eventType]=!0,activeDocHandlers[eventType]=(activeDocHandlers[eventType]||0)+1,1===activeDocHandlers[eventType]&&$document.bind(realType,mouseEventCallback),$(this).bind(realType,dummyMouseHandler),eventCaptureSupported&&(activeDocHandlers.touchstart=(activeDocHandlers.touchstart||0)+1,1===activeDocHandlers.touchstart&&$document.bind("touchstart",handleTouchStart).bind("touchend",handleTouchEnd).bind("touchmove",handleTouchMove).bind("scroll",handleScroll));},teardown:function(){--activeDocHandlers[eventType],activeDocHandlers[eventType]||$document.unbind(realType,mouseEventCallback),eventCaptureSupported&&(--activeDocHandlers.touchstart,activeDocHandlers.touchstart||$document.unbind("touchstart",handleTouchStart).unbind("touchmove",handleTouchMove).unbind("touchend",handleTouchEnd).unbind("scroll",handleScroll));var $this=$(this),bindings=$.data(this,dataPropertyName);bindings&&(bindings[eventType]=!1),$this.unbind(realType,dummyMouseHandler),hasVirtualBindings(this)||$this.removeData(dataPropertyName);}};}for($.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500,maximumTimeBetweenTouches:100},i=0;i<virtualEventNames.length;i++)$.event.special[virtualEventNames[i]]=getSpecialEventObject(virtualEventNames[i]);eventCaptureSupported&&document.addEventListener("click",(function(e){var x,y,ele,i,o,cnt=clickBlockList.length,target=e.target;if(cnt)for(x=e.clientX,y=e.clientY,threshold=$.vmouse.clickDistanceThreshold,ele=target;ele;){for(i=0;i<cnt;i++)if(o=clickBlockList[i],0,ele===target&&Math.abs(o.x-x)<threshold&&Math.abs(o.y-y)<threshold||$.data(ele,touchTargetPropertyName)===o.touchID)return e.preventDefault(),void e.stopPropagation();ele=ele.parentNode;}}),!0);})),function(factory){"function"==typeof define&&define.amd?define("ns",["jquery"],factory):factory(jQuery);}((function($){return $.mobile={version:"@VERSION"},$.mobile;})),function(factory){"function"==typeof define&&define.amd?define("support/touch",["jquery","../ns"],factory):factory(jQuery);}((function($){var support={touch:"ontouchend" in document};
13return $.mobile.support=$.mobile.support||{},$.extend($.support,support),$.extend($.mobile.support,support),$.support;})),function(factory){"function"==typeof define&&define.amd?define("events/touch",["jquery","../vmouse","../support/touch"],factory):factory(jQuery);}((function($){var $document=$(document),supportTouch=$.mobile.support.touch,touchStartEvent=supportTouch?"touchstart":"mousedown",touchStopEvent=supportTouch?"touchend":"mouseup",touchMoveEvent=supportTouch?"touchmove":"mousemove";function triggerCustomEvent(obj,eventType,event,bubble){var originalType=event.type;event.type=eventType,bubble?$.event.trigger(event,undefined,obj):$.event.dispatch.call(obj,event),event.type=originalType;}return $.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight".split(" "),(function(i,name){$.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);},$.attrFn&&($.attrFn[name]=!0);})),$.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var thisObject=this,$this=$(thisObject),isTaphold=!1;$this.bind("vmousedown",(function(event){if(isTaphold=!1,event.which&&1!==event.which)return !0;var timer,clickHandler,origTarget=event.target;function clearTapTimer(){timer&&($this.bind("vclick",clickHandler),clearTimeout(timer));}function clearTapHandlers(){clearTapTimer(),$this.unbind("vclick",clickHandler).unbind("vmouseup",clearTapTimer),$document.unbind("vmousecancel",clearTapHandlers);}clickHandler=function(event){clearTapHandlers(),isTaphold||origTarget!==event.target?isTaphold&&event.preventDefault():triggerCustomEvent(thisObject,"tap",event);},$this.bind("vmouseup",clearTapTimer),$document.bind("vmousecancel",clearTapHandlers),timer=setTimeout((function(){$.event.special.tap.emitTapOnTaphold||(isTaphold=!0),timer=0,triggerCustomEvent(thisObject,"taphold",$.Event("taphold",{target:origTarget}));}),$.event.special.tap.tapholdThreshold);}));},teardown:function(){$(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),$document.unbind("vmousecancel");}},$.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:window.devicePixelRatio>=2?15:30,verticalDistanceThreshold:window.devicePixelRatio>=2?15:30,getLocation:function(event){var winPageX=window.pageXOffset,winPageY=window.pageYOffset,x=event.clientX,y=event.clientY;return 0===event.pageY&&Math.floor(y)>Math.floor(event.pageY)||0===event.pageX&&Math.floor(x)>Math.floor(event.pageX)?(x-=winPageX,y-=winPageY):(y<event.pageY-winPageY||x<event.pageX-winPageX)&&(x=event.pageX-winPageX,y=event.pageY-winPageY),{x,y};},start:function(event){var data=event.originalEvent.touches?event.originalEvent.touches[0]:event,location=$.event.special.swipe.getLocation(data);return {time:(new Date()).getTime(),coords:[location.x,location.y],origin:$(event.target)};},stop:function(event){var data=event.originalEvent.touches?event.originalEvent.touches[0]:event,location=$.event.special.swipe.getLocation(data);return {time:(new Date()).getTime(),coords:[location.x,location.y]};},handleSwipe:function(start,stop,thisObject,origTarget){if(stop.time-start.time<$.event.special.swipe.durationThreshold&&Math.abs(start.coords[0]-stop.coords[0])>$.event.special.swipe.horizontalDistanceThreshold&&Math.abs(start.coords[1]-stop.coords[1])<$.event.special.swipe.verticalDistanceThreshold){var direction=start.coords[0]>stop.coords[0]?"swipeleft":"swiperight";return triggerCustomEvent(thisObject,"swipe",$.Event("swipe",{target:origTarget,swipestart:start,swipestop:stop}),!0),triggerCustomEvent(thisObject,direction,$.Event(direction,{target:origTarget,swipestart:start,swipestop:stop}),!0),!0;}return !1;},eventInProgress:!1,setup:function(){var events,thisObject=this,$this=$(thisObject),context={};(events=$.data(this,"mobile-events"))||(events={length:0},$.data(this,"mobile-events",events)),events.length++,events.swipe=context,context.start=function(event){if(!$.event.special.swipe.eventInProgress){$.event.special.swipe.eventInProgress=!0;var stop,start=$.event.special.swipe.start(event),origTarget=event.target,emitted=!1;context.move=function(event){start&&!event.isDefaultPrevented()&&(stop=$.event.special.swipe.stop(event),emitted||(emitted=$.event.special.swipe.handleSwipe(start,stop,thisObject,origTarget))&&($.event.special.swipe.eventInProgress=!1),Math.abs(start.coords[0]-stop.coords[0])>$.event.special.swipe.scrollSupressionThreshold&&event.preventDefault());},context.stop=function(){emitted=!0,$.event.special.swipe.eventInProgress=!1,$document.off(touchMoveEvent,context.move),context.move=null;},$document.on(touchMoveEvent,context.move).one(touchStopEvent,context.stop);}},$this.on(touchStartEvent,context.start);},teardown:function(){var events,context;(events=$.data(this,"mobile-events"))&&(context=events.swipe,delete events.swipe,events.length--,0===events.length&&$.removeData(this,"mobile-events")),context&&(context.start&&$(this).off(touchStartEvent,context.start),context.move&&$document.off(touchMoveEvent,context.move),context.stop&&$document.off(touchStopEvent,context.stop));}},$.each({taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},(function(event,sourceEvent){$.event.special[event]={setup:function(){$(this).bind(sourceEvent,$.noop);},teardown:function(){$(this).unbind(sourceEvent);}};})),$.event.special;}));})),function($,sr){jQuery.fn[sr]=function(fn){return fn?this.bind("resize",(func=fn,function(){var obj=this,args=arguments;timeout?clearTimeout(timeout):execAsap&&func.apply(obj,args),timeout=setTimeout((function(){execAsap||func.apply(obj,args),timeout=null;}),threshold||100);})):this.trigger(sr);var func,threshold,execAsap,timeout;};}(jQuery,"smartresize"),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],factory):(global=global||self).Util=factory(global.jQuery);}(this,(function($){$=$&&$.hasOwnProperty("default")?$.default:$;var TRANSITION_END="transitionend";function transitionEndEmulator(duration){var _this=this,called=!1;return $(this).one(Util.TRANSITION_END,(function(){called=!0;})),setTimeout((function(){called||Util.triggerTransitionEnd(_this);}),duration),this;}var Util={TRANSITION_END:"bsTransitionEnd",getUID:function(prefix){do prefix+=~~(1e6*Math.random());while(document.getElementById(prefix));return prefix;}
13,getSelectorFromElement:function(element){var selector=element.getAttribute("data-target");if(!selector||"#"===selector){var hrefAttr=element.getAttribute("href");selector=hrefAttr&&"#"!==hrefAttr?hrefAttr.trim():"";}try{return document.querySelector(selector)?selector:null;}catch(err){return null;}},getTransitionDurationFromElement:function(element){if(!element)return 0;var transitionDuration=$(element).css("transition-duration"),transitionDelay=$(element).css("transition-delay"),floatTransitionDuration=parseFloat(transitionDuration),floatTransitionDelay=parseFloat(transitionDelay);return floatTransitionDuration||floatTransitionDelay?(transitionDuration=transitionDuration.split(",")[0],transitionDelay=transitionDelay.split(",")[0],1e3*(parseFloat(transitionDuration)+parseFloat(transitionDelay))):0;},reflow:function(element){return element.offsetHeight;},triggerTransitionEnd:function(element){$(element).trigger(TRANSITION_END);},supportsTransitionEnd:function(){return Boolean(TRANSITION_END);},isElement:function(obj){return (obj[0]||obj).nodeType;},typeCheckConfig:function(componentName,config,configTypes){for(var property in configTypes)if(Object.prototype.hasOwnProperty.call(configTypes,property)){var expectedTypes=configTypes[property],value=config[property],valueType=value&&Util.isElement(value)?"element":(obj=value,{}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(expectedTypes).test(valueType))throw new Error(componentName.toUpperCase()+': Option "'+property+'" provided type "'+valueType+'" but expected type "'+expectedTypes+'".');}var obj;},findShadowRoot:function(element){if(!document.documentElement.attachShadow)return null;if("function"==typeof element.getRootNode){var root=element.getRootNode();return root instanceof ShadowRoot?root:null;}return element instanceof ShadowRoot?element:element.parentNode?Util.findShadowRoot(element.parentNode):null;}};return $.fn.emulateTransitionEnd=transitionEndEmulator,$.event.special[Util.TRANSITION_END]={bindType:TRANSITION_END,delegateType:TRANSITION_END,handle:function(event){if($(event.target).is(this))return event.handleObj.handler.apply(this,arguments);}},Util;})),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],factory):(global=global||self).Alert=factory(global.jQuery,global.Util);}(this,(function($,Util){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value" in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor);}}$=$&&$.hasOwnProperty("default")?$.default:$,Util=Util&&Util.hasOwnProperty("default")?Util.default:Util;var NAME="alert",JQUERY_NO_CONFLICT=$.fn[NAME],Event={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},ClassName_ALERT="alert",ClassName_FADE="fade",ClassName_SHOW="show",Alert=function(){function Alert(element){this._element=element;}var Constructor,protoProps,staticProps,_proto=Alert.prototype;return _proto.close=function(element){var rootElement=this._element;element&&(rootElement=this._getRootElement(element)),this._triggerCloseEvent(rootElement).isDefaultPrevented()||this._removeElement(rootElement);},_proto.dispose=function(){$.removeData(this._element,"bs.alert"),this._element=null;},_proto._getRootElement=function(element){var selector=Util.getSelectorFromElement(element),parent=!1;return selector&&(parent=document.querySelector(selector)),parent||(parent=$(element).closest("."+ClassName_ALERT)[0]),parent;},_proto._triggerCloseEvent=function(element){var closeEvent=$.Event(Event.CLOSE);return $(element).trigger(closeEvent),closeEvent;},_proto._removeElement=function(element){var _this=this;if($(element).removeClass(ClassName_SHOW),$(element).hasClass(ClassName_FADE)){var transitionDuration=Util.getTransitionDurationFromElement(element);$(element).one(Util.TRANSITION_END,(function(event){return _this._destroyElement(element,event);})).emulateTransitionEnd(transitionDuration);}else this._destroyElement(element);},_proto._destroyElement=function(element){$(element).detach().trigger(Event.CLOSED).remove();},Alert._jQueryInterface=function(config){return this.each((function(){var $element=$(this),data=$element.data("bs.alert");
13data||(data=new Alert(this),$element.data("bs.alert",data)),"close"===config&&data[config](this);}));},Alert._handleDismiss=function(alertInstance){return function(event){event&&event.preventDefault(),alertInstance.close(this);};},Constructor=Alert,staticProps=[{key:"VERSION",get:function(){return "4.3.1";}}],(protoProps=null)&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Alert;}();return $(document).on(Event.CLICK_DATA_API,'[data-dismiss="alert"]',Alert._handleDismiss(new Alert())),$.fn[NAME]=Alert._jQueryInterface,$.fn[NAME].Constructor=Alert,$.fn[NAME].noConflict=function(){return $.fn[NAME]=JQUERY_NO_CONFLICT,Alert._jQueryInterface;},Alert;})),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],factory):(global=global||self).Collapse=factory(global.jQuery,global.Util);}(this,(function($,Util){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value" in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor);}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter((function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable;})))),ownKeys.forEach((function(key){_defineProperty(target,key,source[key]);}));}return target;}$=$&&$.hasOwnProperty("default")?$.default:$,Util=Util&&Util.hasOwnProperty("default")?Util.default:Util;var NAME="collapse",DATA_KEY="bs.collapse",EVENT_KEY="."+DATA_KEY,JQUERY_NO_CONFLICT=$.fn[NAME],Default={toggle:!0,parent:""},DefaultType={toggle:"boolean",parent:"(string|element)"},Event={SHOW:"show"+EVENT_KEY,SHOWN:"shown"+EVENT_KEY,HIDE:"hide"+EVENT_KEY,HIDDEN:"hidden"+EVENT_KEY,CLICK_DATA_API:"click.bs.collapse.data-api"},ClassName_SHOW="show",ClassName_COLLAPSE="collapse",ClassName_COLLAPSING="collapsing",ClassName_COLLAPSED="collapsed",Dimension_WIDTH="width",Dimension_HEIGHT="height",Selector_ACTIVES=".show, .collapsing",Selector_DATA_TOGGLE='[data-toggle="collapse"]',Collapse=function(){function Collapse(element,config){this._isTransitioning=!1,this._element=element,this._config=this._getConfig(config),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+element.id+'"],[data-toggle="collapse"][data-target="#'+element.id+'"]'));for(var toggleList=[].slice.call(document.querySelectorAll(Selector_DATA_TOGGLE)),i=0,len=toggleList.length;i<len;i++){var elem=toggleList[i],selector=Util.getSelectorFromElement(elem),filterElement=[].slice.call(document.querySelectorAll(selector)).filter((function(foundElem){return foundElem===element;}));null!==selector&&filterElement.length>0&&(this._selector=selector,this._triggerArray.push(elem));}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle();}var Constructor,protoProps,staticProps,_proto=Collapse.prototype;return _proto.toggle=function(){$(this._element).hasClass(ClassName_SHOW)?this.hide():this.show();},_proto.show=function(){var actives,activesData,_this=this;if(!this._isTransitioning&&!$(this._element).hasClass(ClassName_SHOW)&&(this._parent&&0===(actives=[].slice.call(this._parent.querySelectorAll(Selector_ACTIVES)).filter((function(elem){return "string"==typeof _this._config.parent?elem.getAttribute("data-parent")===_this._config.parent:elem.classList.contains(ClassName_COLLAPSE);}))).length&&(actives=null),!(actives&&(activesData=$(actives).not(this._selector).data(DATA_KEY))&&activesData._isTransitioning))){var startEvent=$.Event(Event.SHOW);if($(this._element).trigger(startEvent),!startEvent.isDefaultPrevented()){actives&&(Collapse._jQueryInterface.call($(actives).not(this._selector),"hide"),activesData||$(actives).data(DATA_KEY,null));var dimension=this._getDimension();$(this._element).removeClass(ClassName_COLLAPSE).addClass(ClassName_COLLAPSING),this._element.style[dimension]=0,this._triggerArray.length&&$(this._triggerArray).removeClass(ClassName_COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var scrollSize="scroll"+(dimension[0].toUpperCase()+dimension.slice(1)),transitionDuration=Util.getTransitionDurationFromElement(this._element);$(this._element).one(Util.TRANSITION_END,(function(){$(_this._element).removeClass(ClassName_COLLAPSING).addClass(ClassName_COLLAPSE).addClass(ClassName_SHOW),_this._element.style[dimension]="",_this.setTransitioning(!1),$(_this._element).trigger(Event.SHOWN);})).emulateTransitionEnd(transitionDuration),this._element.style[dimension]=this._element[scrollSize]+"px";}}},_proto.hide=function(){var _this2=this;if(!this._isTransitioning&&$(this._element).hasClass(ClassName_SHOW)){var startEvent=$.Event(Event.HIDE);if($(this._element).trigger(startEvent),!startEvent.isDefaultPrevented()){var dimension=this._getDimension();this._element.style[dimension]=this._element.getBoundingClientRect()[dimension]+"px",Util.reflow(this._element),$(this._element).addClass(ClassName_COLLAPSING).removeClass(ClassName_COLLAPSE).removeClass(ClassName_SHOW);var triggerArrayLength=this._triggerArray.length;if(triggerArrayLength>0)for(var i=0;i<triggerArrayLength;i++){var trigger=this._triggerArray[i],selector=Util.getSelectorFromElement(trigger);if(null!==selector)$([].slice.call(document.querySelectorAll(selector))).hasClass(ClassName_SHOW)||$(trigger).addClass(ClassName_COLLAPSED).attr("aria-expanded",!1);}this.setTransitioning(!0);this._element.style[dimension]="";var transitionDuration=Util.getTransitionDurationFromElement(this._element);$(this._element).one(Util.TRANSITION_END,(function(){_this2.setTransitioning(!1),$(_this2._element).removeClass(ClassName_COLLAPSING).addClass(ClassName_COLLAPSE).trigger(Event.HIDDEN);})).emulateTransitionEnd(transitionDuration);}}},_proto.setTransitioning=function(isTransitioning){this._isTransitioning=isTransitioning;},_proto.dispose=function(){$.removeData(this._element,DATA_KEY),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null;},_proto._getConfig=function(config){return (config=_objectSpread({},Default,config)).toggle=Boolean(config.toggle),Util.typeCheckConfig(NAME,config,DefaultType),config;},_proto._getDimension=function(){return $(this._element).hasClass(Dimension_WIDTH)?Dimension_WIDTH:Dimension_HEIGHT;},_proto._getParent=function(){var parent,_this3=this;Util.isElement(this._config.parent)?(parent=this._config.parent,void 0!==this._config.parent.jquery&&(parent=this._config.parent[0])):parent=document.querySelector(this._config.parent);var selector='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',children=[].slice.call(parent.querySelectorAll(selector));return $(children).each((function(i,element){_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element),[element]);})),parent;},_proto._addAriaAndCollapsedClass=function(element,triggerArray){var isOpen=$(element).hasClass(ClassName_SHOW);triggerArray.length&&$(triggerArray).toggleClass(ClassName_COLLAPSED,!isOpen).attr("aria-expanded",isOpen);},Collapse._getTargetFromElement=function(element){var selector=Util.getSelectorFromElement(element);return selector?document.querySelector(selector):null;},Collapse._jQueryInterface=function(config){return this.each((function(){var $this=$(this),data=$this.data(DATA_KEY),_config=_objectSpread({},Default,$this.data(),"object"==typeof config&&config?config:{});if(!data&&_config.toggle&&/show|hide/.test(config)&&(_config.toggle=!1),data||(data=new Collapse(this,_config),$this.data(DATA_KEY,data)),"string"==typeof config){if(void 0===data[config])throw new TypeError('No method n
13amed "'+config+'"');data[config]();}}));},Constructor=Collapse,staticProps=[{key:"VERSION",get:function(){return "4.3.1";}},{key:"Default",get:function(){return Default;}}],(protoProps=null)&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Collapse;}();return $(document).on(Event.CLICK_DATA_API,Selector_DATA_TOGGLE,(function(event){"A"===event.currentTarget.tagName&&event.preventDefault();var $trigger=$(this),selector=Util.getSelectorFromElement(this),selectors=[].slice.call(document.querySelectorAll(selector));$(selectors).each((function(){var $target=$(this),config=$target.data(DATA_KEY)?"toggle":$trigger.data();Collapse._jQueryInterface.call($target,config);}));})),$.fn[NAME]=Collapse._jQueryInterface,$.fn[NAME].Constructor=Collapse,$.fn[NAME].noConflict=function(){return $.fn[NAME]=JQUERY_NO_CONFLICT,Collapse._jQueryInterface;},Collapse;})),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],factory):(global=global||self).Carousel=factory(global.jQuery,global.Util);}(this,(function($,Util){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value" in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor);}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter((function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable;})))),ownKeys.forEach((function(key){_defineProperty(target,key,source[key]);}));}return target;}$=$&&$.hasOwnProperty("default")?$.default:$,Util=Util&&Util.hasOwnProperty("default")?Util.default:Util;var NAME="carousel",DATA_KEY="bs.carousel",EVENT_KEY="."+DATA_KEY,JQUERY_NO_CONFLICT=$.fn[NAME],Default={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},DefaultType={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Direction_NEXT="next",Direction_PREV="prev",Direction_LEFT="left",Direction_RIGHT="right",Event={SLIDE:"slide"+EVENT_KEY,SLID:"slid"+EVENT_KEY,KEYDOWN:"keydown"+EVENT_KEY,MOUSEENTER:"mouseenter"+EVENT_KEY,MOUSELEAVE:"mouseleave"+EVENT_KEY,TOUCHSTART:"touchstart"+EVENT_KEY,TOUCHMOVE:"touchmove"+EVENT_KEY,TOUCHEND:"touchend"+EVENT_KEY,POINTERDOWN:"pointerdown"+EVENT_KEY,POINTERUP:"pointerup"+EVENT_KEY,DRAG_START:"dragstart"+EVENT_KEY,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},ClassName_CAROUSEL="carousel",ClassName_ACTIVE="active",ClassName_SLIDE="slide",ClassName_RIGHT="carousel-item-right",ClassName_LEFT="carousel-item-left",ClassName_NEXT="carousel-item-next",ClassName_PREV="carousel-item-prev",ClassName_POINTER_EVENT="pointer-event",Selector_ACTIVE=".active",Selector_ACTIVE_ITEM=".active.carousel-item",Selector_ITEM=".carousel-item",Selector_ITEM_IMG=".carousel-item img",Selector_NEXT_PREV=".carousel-item-next, .carousel-item-prev",Selector_INDICATORS=".carousel-indicators",Selector_DATA_SLIDE="[data-slide], [data-slide-to]",Selector_DATA_RIDE='[data-ride="carousel"]',PointerType={TOUCH:"touch",PEN:"pen"},Carousel=function(){function Carousel(element,config){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(config),this._element=element,this._indicatorsElement=this._element.querySelector(Selector_INDICATORS),this._touchSupported="ontouchstart" in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners();}var Constructor,protoProps,staticProps,_proto=Carousel.prototype;return _proto.next=function(){this._isSliding||this._slide(Direction_NEXT);},_proto.nextWhenVisible=function(){!document.hidden&&$(this._element).is(":visible")&&"hidden"
13!==$(this._element).css("visibility")&&this.next();},_proto.prev=function(){this._isSliding||this._slide(Direction_PREV);},_proto.pause=function(event){event||(this._isPaused=!0),this._element.querySelector(Selector_NEXT_PREV)&&(Util.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null;},_proto.cycle=function(event){event||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval));},_proto.to=function(index){var _this=this;this._activeElement=this._element.querySelector(Selector_ACTIVE_ITEM);var activeIndex=this._getItemIndex(this._activeElement);if(!(index>this._items.length-1||index<0))if(this._isSliding)$(this._element).one(Event.SLID,(function(){return _this.to(index);}));else{if(activeIndex===index)return this.pause(),void this.cycle();var direction=index>activeIndex?Direction_NEXT:Direction_PREV;this._slide(direction,this._items[index]);}},_proto.dispose=function(){$(this._element).off(EVENT_KEY),$.removeData(this._element,DATA_KEY),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null;},_proto._getConfig=function(config){return config=_objectSpread({},Default,config),Util.typeCheckConfig(NAME,config,DefaultType),config;},_proto._handleSwipe=function(){var absDeltax=Math.abs(this.touchDeltaX);if(!(absDeltax<=40)){var direction=absDeltax/this.touchDeltaX;direction>0&&this.prev(),direction<0&&this.next();}},_proto._addEventListeners=function(){var _this2=this;this._config.keyboard&&$(this._element).on(Event.KEYDOWN,(function(event){return _this2._keydown(event);})),"hover"===this._config.pause&&$(this._element).on(Event.MOUSEENTER,(function(event){return _this2.pause(event);})).on(Event.MOUSELEAVE,(function(event){return _this2.cycle(event);})),this._config.touch&&this._addTouchEventListeners();},_proto._addTouchEventListeners=function(){var _this3=this;if(this._touchSupported){var start=function(event){_this3._pointerEvent&&PointerType[event.originalEvent.pointerType.toUpperCase()]?_this3.touchStartX=event.originalEvent.clientX:_this3._pointerEvent||(_this3.touchStartX=event.originalEvent.touches[0].clientX);},end=function(event){_this3._pointerEvent&&PointerType[event.originalEvent.pointerType.toUpperCase()]&&(_this3.touchDeltaX=event.originalEvent.clientX-_this3.touchStartX),_this3._handleSwipe(),"hover"===_this3._config.pause&&(_this3.pause(),_this3.touchTimeout&&clearTimeout(_this3.touchTimeout),_this3.touchTimeout=setTimeout((function(event){return _this3.cycle(event);}),500+_this3._config.interval));};$(this._element.querySelectorAll(Selector_ITEM_IMG)).on(Event.DRAG_START,(function(e){return e.preventDefault();})),this._pointerEvent?($(this._element).on(Event.POINTERDOWN,(function(event){return start(event);})),$(this._element).on(Event.POINTERUP,(function(event){return end(event);})),this._element.classList.add(ClassName_POINTER_EVENT)):($(this._element).on(Event.TOUCHSTART,(function(event){return start(event);})),$(this._element).on(Event.TOUCHMOVE,(function(event){return function(event){event.originalEvent.touches&&event.originalEvent.touches.length>1?_this3.touchDeltaX=0:_this3.touchDeltaX=event.originalEvent.touches[0].clientX-_this3.touchStartX;}(event);})),$(this._element).on(Event.TOUCHEND,(function(event){return end(event);})));}},_proto._keydown=function(event){if(!/input|textarea/i.test(event.target.tagName))switch(event.which){case 37:event.preventDefault(),this.prev();break;case 39:event.preventDefault(),this.next();}},_proto._getItemIndex=function(element){return this._items=element&&element.parentNode?[].slice.call(element.parentNode.querySelectorAll(Selector_ITEM)):[],this._items.indexOf(element);},_proto._getItemByDirection=function(direction,activeElement){var isNextDirection=direction===Direction_NEXT,isPrevDirection=direction===Direction_PREV,activeIndex=this._getItemIndex(activeElement),lastItemIndex=this._items.length-1;if((isPrevDirection&&0===activeIndex||isNextDirection&&activeIndex===lastItemIndex)&&!this._config.wrap)return activeElement;var itemIndex=(activeIndex+(direction===Direction_PREV?-1:1))%this._items.length;return -1===itemIndex?this._items[this._items.length-1]:this._items[itemIndex];},_proto._triggerSlideEvent=function(relatedTarget,eventDirectionName){var targetIndex=this._getItemIndex(relatedTarget),fromIndex=this._getItemIndex(this._element.querySelector(Selector_ACTIVE_ITEM)),slideEvent=$.Event(Event.SLIDE,{relatedTarget,direction:eventDirectionName,from:fromIndex,to:targetIndex});return $(this._element).trigger(slideEvent),slideEvent;},_proto._setActiveIndicatorElement=function(element){if(this._indicatorsElement){var indicators=[].slice.call(this._indicatorsElement.querySelectorAll(Selector_ACTIVE));$(indicators).removeClass(ClassName_ACTIVE);var nextIndicator=this._indicatorsElement.children[this._getItemIndex(element)];nextIndicator&&$(nextIndicator).addClass(ClassName_ACTIVE);}},_proto._slide=function(direction,element){var directionalClassName,orderClassName,eventDirectionName,_this4=this,activeElement=this._element.querySelector(Selector_ACTIVE_ITEM),activeElementIndex=this._getItemIndex(activeElement),nextElement=element||activeElement&&this._getItemByDirection(direction,activeElement),nextElementIndex=this._getItemIndex(nextElement),isCycling=Boolean(this._interval);if(direction===Direction_NEXT?(directionalClassName=ClassName_LEFT,orderClassName=ClassName_NEXT,eventDirectionName=
13Direction_LEFT):(directionalClassName=ClassName_RIGHT,orderClassName=ClassName_PREV,eventDirectionName=Direction_RIGHT),nextElement&&$(nextElement).hasClass(ClassName_ACTIVE))this._isSliding=!1;else{if(!this._triggerSlideEvent(nextElement,eventDirectionName).isDefaultPrevented()&&activeElement&&nextElement){this._isSliding=!0,isCycling&&this.pause(),this._setActiveIndicatorElement(nextElement);var slidEvent=$.Event(Event.SLID,{relatedTarget:nextElement,direction:eventDirectionName,from:activeElementIndex,to:nextElementIndex});if($(this._element).hasClass(ClassName_SLIDE)){$(nextElement).addClass(orderClassName),Util.reflow(nextElement),$(activeElement).addClass(directionalClassName),$(nextElement).addClass(directionalClassName);var nextElementInterval=parseInt(nextElement.getAttribute("data-interval"),10);nextElementInterval?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=nextElementInterval):this._config.interval=this._config.defaultInterval||this._config.interval;var transitionDuration=Util.getTransitionDurationFromElement(activeElement);$(activeElement).one(Util.TRANSITION_END,(function(){$(nextElement).removeClass(directionalClassName+" "+orderClassName).addClass(ClassName_ACTIVE),$(activeElement).removeClass(ClassName_ACTIVE+" "+orderClassName+" "+directionalClassName),_this4._isSliding=!1,setTimeout((function(){return $(_this4._element).trigger(slidEvent);}),0);})).emulateTransitionEnd(transitionDuration);}else $(activeElement).removeClass(ClassName_ACTIVE),$(nextElement).addClass(ClassName_ACTIVE),this._isSliding=!1,$(this._element).trigger(slidEvent);isCycling&&this.cycle();}}},Carousel._jQueryInterface=function(config){return this.each((function(){var data=$(this).data(DATA_KEY),_config=_objectSpread({},Default,$(this).data());"object"==typeof config&&(_config=_objectSpread({},_config,config));var action="string"==typeof config?config:_config.slide;if(data||(data=new Carousel(this,_config),$(this).data(DATA_KEY,data)),"number"==typeof config)data.to(config);else if("string"==typeof action){if(void 0===data[action])throw new TypeError('No method named "'+action+'"');data[action]();}else _config.interval&&_config.ride&&(data.pause(),data.cycle());}));},Carousel._dataApiClickHandler=function(event){var selector=Util.getSelectorFromElement(this);if(selector){var target=$(selector)[0];if(target&&$(target).hasClass(ClassName_CAROUSEL)){var config=_objectSpread({},$(target).data(),$(this).data()),slideIndex=this.getAttribute("data-slide-to");slideIndex&&(config.interval=!1),Carousel._jQueryInterface.call($(target),config),slideIndex&&$(target).data(DATA_KEY).to(slideIndex),event.preventDefault();}}},Constructor=Carousel,staticProps=[{key:"VERSION",get:function(){return "4.3.1";}},{key:"Default",get:function(){return Default;}}],(protoProps=null)&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Carousel;}();return $(document).on(Event.CLICK_DATA_API,Selector_DATA_SLIDE,Carousel._dataApiClickHandler),$(window).on(Event.LOAD_DATA_API,(function(){for(var carousels=[].slice.call(document.querySelectorAll(Selector_DATA_RIDE)),i=0,len=carousels.length;i<len;i++){var $carousel=$(carousels[i]);Carousel._jQueryInterface.call($carousel,$carousel.data());}})),$.fn[NAME]=Carousel._jQueryInterface,$.fn[NAME].Constructor=Carousel,$.fn[NAME].noConflict=function(){return $.fn[NAME]=JQUERY_NO_CONFLICT,Carousel._jQueryInterface;},Carousel;})),function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],factory):(global=global||self).Modal=factory(global.jQuery,global.Util);}(this,(function($,Util){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value" in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor);}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter((function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable;})))),ownKeys.forEach((function(key){_defineProperty(target,key,source[key]);}));}return target;}$=$&&$.hasOwnProperty("default")?$.default:$,Util=Util&&Util.hasOwnProperty("default")?Util.default:Util;var NAME="modal",EVENT_KEY=".bs.modal",JQUERY_NO_CONFLICT=$.fn[NAME],Default={backdrop:!0,keyboard:!0,focus:!0,show:!0},DefaultType={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Event={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},ClassName_SCROLLABLE="modal-dialog-scrollable",ClassName_SCROLLBAR_MEASURER="modal-scrollbar-measure",ClassName_BACKDROP="modal-backdrop",ClassName_OPEN="modal-open",ClassName_FADE="fade",ClassName_SHOW="show",Selector_DIALOG=".modal-dialog",Selector_MODAL_BODY=".modal-body",Selector_DATA_TOGGLE='[data-toggle="modal"]',Selector_DATA_DISMISS='[data-dismiss="modal"]',Selector_FIXED_CONTENT=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Selector_STICKY_CONTENT=".sticky-top",Modal=function(){function Modal(element,config){this._config=this._getConfig(config),this._element=element,this._dialog=element.querySelector(Selector_DIALOG),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0;}var Constructor,protoProps,staticProps,_proto=Modal.prototype;return _proto.toggle=function(relatedTarget){return this._isShown?this.hide():this.show(relatedTarget);},_proto.show=function(relatedTarget){var _this=this;if(!this._isShown&&!this._isTransitioning){$(this._element).hasClass(ClassName_FADE)&&(this._isTransitioning=!0);var showEvent=$.Event(Event.SHOW,{relatedTarget});$(this._element).trigger(showEvent),this._isShown||showEvent.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),$(this._element).on(Event.CLICK_DISMISS,Selector_DATA_DISMISS,(function(event){return _this.hide(event);})),$(this._dialog).on(Event.MOUSEDOWN_DISMISS,(function(){$(_this._element).one(Event.MOUSEUP_DISMISS,(function(event){$(event.target).is(_this._element)&&(_this._ignoreBackdropClick=!0);}));})),this._showBackdrop((function(){return _this._showElement(relatedTarget);})));}},_proto.hide=function(event){var _this2=this;if(event&&event.preventDefault(),this._isShown&&!this._isTransitioning){var hideEvent=$.Event(Event.HIDE);if($(this._element).trigger(hideEvent),this._isShown&&!hideEvent.isDefaultPrevented()){this._isShown=!1;var transition=$(this._element).hasClass(ClassName_FADE);if(transition&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),$(document).off(Event.FOCUSIN),$(this._element).removeClass(ClassName_SHOW),$(this._element).off(Event.CLICK_DISMISS),$(this._dialog).off(Event.MOUSEDOWN_DISMISS),transition){var transitionDuration=Util.getTransitionDurationFromElement(this._element);$(this._element).one(Util.TRANSITION_END,(function(event){return _this2._hideModal(event);})).emulateTransitionEnd(transitionDuration);}else this._hideModal();}}},_proto.dispose=function(){[window,this._element,this._dialog].forEach((function(htmlElement){return $(htmlElement).off(EVENT_KEY);}
13)),$(document).off(Event.FOCUSIN),$.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null;},_proto.handleUpdate=function(){this._adjustDialog();},_proto._getConfig=function(config){return config=_objectSpread({},Default,config),Util.typeCheckConfig(NAME,config,DefaultType),config;},_proto._showElement=function(relatedTarget){var _this3=this,transition=$(this._element).hasClass(ClassName_FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),$(this._dialog).hasClass(ClassName_SCROLLABLE)?this._dialog.querySelector(Selector_MODAL_BODY).scrollTop=0:this._element.scrollTop=0,transition&&Util.reflow(this._element),$(this._element).addClass(ClassName_SHOW),this._config.focus&&this._enforceFocus();var shownEvent=$.Event(Event.SHOWN,{relatedTarget}),transitionComplete=function(){_this3._config.focus&&_this3._element.focus(),_this3._isTransitioning=!1,$(_this3._element).trigger(shownEvent);};if(transition){var transitionDuration=Util.getTransitionDurationFromElement(this._dialog);$(this._dialog).one(Util.TRANSITION_END,transitionComplete).emulateTransitionEnd(transitionDuration);}else transitionComplete();},_proto._enforceFocus=function(){var _this4=this;$(document).off(Event.FOCUSIN).on(Event.FOCUSIN,(function(event){document!==event.target&&_this4._element!==event.target&&0===$(_this4._element).has(event.target).length&&_this4._element.focus();}));},_proto._setEscapeEvent=function(){var _this5=this;this._isShown&&this._config.keyboard?$(this._element).on(Event.KEYDOWN_DISMISS,(function(event){27===event.which&&(event.preventDefault(),_this5.hide());})):this._isShown||$(this._element).off(Event.KEYDOWN_DISMISS);},_proto._setResizeEvent=function(){var _this6=this;this._isShown?$(window).on(Event.RESIZE,(function(event){return _this6.handleUpdate(event);})):$(window).off(Event.RESIZE);},_proto._hideModal=function(){var _this7=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop((function(){$(document.body).removeClass(ClassName_OPEN),_this7._resetAdjustments(),_this7._resetScrollbar(),$(_this7._element).trigger(Event.HIDDEN);}));},_proto._removeBackdrop=function(){this._backdrop&&($(this._backdrop).remove(),this._backdrop=null);},_proto._showBackdrop=function(callback){var _this8=this,animate=$(this._element).hasClass(ClassName_FADE)?ClassName_FADE:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=ClassName_BACKDROP,animate&&this._backdrop.classList.add(animate),$(this._backdrop).appendTo(document.body),$(this._element).on(Event.CLICK_DISMISS,(function(event){_this8._ignoreBackdropClick?_this8._ignoreBackdropClick=!1:event.target===event.currentTarget&&("static"===_this8._config.backdrop?_this8._element.focus():_this8.hide());})),animate&&Util.reflow(this._backdrop),$(this._backdrop).addClass(ClassName_SHOW),!callback)return;if(!animate)return void callback();var backdropTransitionDuration=Util.getTransitionDurationFromElement(this._backdrop);$(this._backdrop).one(Util.TRANSITION_END,callback).emulateTransitionEnd(backdropTransitionDuration);}else if(!this._isShown&&this._backdrop){$(this._backdrop).removeClass(ClassName_SHOW);var callbackRemove=function(){_this8._removeBackdrop(),callback&&callback();};if($(this._element).hasClass(ClassName_FADE)){var _backdropTransitionDuration=Util.getTransitionDurationFromElement(this._backdrop);$(this._backdrop).one(Util.TRANSITION_END,callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);}else callbackRemove();}else callback&&callback();},_proto._adjustDialog=function(){var isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&isModalOverflowing&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!isModalOverflowing&&(this._element.style.paddingRight=this._scrollbarWidth+"px");},_proto._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight="";},_proto._checkScrollbar=function(){var rect=document.body.getBoundingClientRect();this._isBodyOverflowing=rect.left+rect.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth();},_proto._setScrollbar=function(){var _this9=this;if(this._isBodyOverflowing){var fixedContent=[].slice.call(document.querySelectorAll(Selector_FIXED_CONTENT)),stickyContent=[].slice.call(document.querySelectorAll(Selector_STICKY_CONTENT));$(fixedContent).each((function(index,element){var actualPadding=element.style.paddingRight,calculatedPadding=$(element).css("padding-right");$(element).data("padding-right",actualPadding).css("padding-right",parseFloat(calculatedPadding)+_this9._scrollbarWidth+"px");})),$(stickyContent).each((function(index,element){var actualMargin=element.style.marginRight,calculatedMargin=$(element).css("margin-right");$(element).data("margin-right",actualMargin).css("margin-right",parseFloat(calculatedMargin)-_this9._scrollbarWidth+"px");}));var actualPadding=document.body.style.paddingRight,calculatedPadding=$(document.body).css("padding-right");$(document.body).data("padding-right",actualPadding).css("padding-right",parseFloat(calculatedPadding)+this._scrollbarWidth+"px");}$(document.body).addClass(ClassName_OPEN);},_proto._resetScrollbar=function(){var fixedContent=[].slice.call(document.querySelectorAll(Selector_FIXED_CONTENT));$(fixedContent).each((function(index,element){var padding=$(element).data("padding-right");$(element).removeData("padding-right"),element.style.paddingRight=padding||"";}));var elements=[].slice.call(document.querySelectorAll(""+Selector_STICKY_CONTENT));$(elements).each((function(index,element){var margin=$(element).data("margin-right");void 0!==margin&&$(element).css("margin-right",margin).removeData("margin-right");}));var padding=$(document.body).data("padding-right");$(document.body).removeData("padding-right"),document.body.style.paddingRight=padding||"";},_proto._getScrollbarWidth=function(){var scrollDiv=document.createElement("div");scrollDiv.className=ClassName_SCROLLBAR_MEASURER,document.body.appendChild(scrollDiv);var scrollbarWidth=scrollDiv.getBoundingClientRect().width-scrollDiv.clientWidth;return document.body.removeChild(scrollDiv),scrollbarWidth;},Modal._jQueryInterface=function(config,relatedTarget){return this.each((function(){var data=$(this).data("bs.modal"),_config=_objectSpread({},Default,$(this).data(),"object"==typeof config&&config?config:{});if(data||(data=new Modal(this,_config),$(this).data("bs.modal",data)),"string"==typeof config){if(void 0===data[config])throw new TypeError('No method n
13amed "'+config+'"');data[config](relatedTarget);}else _config.show&&data.show(relatedTarget);}));},Constructor=Modal,staticProps=[{key:"VERSION",get:function(){return "4.3.1";}},{key:"Default",get:function(){return Default;}}],(protoProps=null)&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Modal;}();return $(document).on(Event.CLICK_DATA_API,Selector_DATA_TOGGLE,(function(event){var target,_this10=this,selector=Util.getSelectorFromElement(this);selector&&(target=document.querySelector(selector));var config=$(target).data("bs.modal")?"toggle":_objectSpread({},$(target).data(),$(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||event.preventDefault();var $target=$(target).one(Event.SHOW,(function(showEvent){showEvent.isDefaultPrevented()||$target.one(Event.HIDDEN,(function(){$(_this10).is(":visible")&&_this10.focus();}));}));Modal._jQueryInterface.call($(target),config,this);})),$.fn[NAME]=Modal._jQueryInterface,$.fn[NAME].Constructor=Modal,$.fn[NAME].noConflict=function(){return $.fn[NAME]=JQUERY_NO_CONFLICT,Modal._jQueryInterface;},Modal;})),function($,Drupal,Modernizr){Drupal.behaviors.hw_filterOverlayer={},Drupal.behaviors.hw_filterOverlayer=function(element,eventName,AniTime){if(!element)return !1;Modernizr=Modernizr||window.Modernizr,eventName=eventName||"fadeOut",AniTime=AniTime||250;var htmlBody=$("html, body"),_eventName=eventName,bodyClass="function"==typeof $.fn.modal?"modal-open":"overlayer-active",fadeFilterOverlay=function(e){element[_eventName=e||_eventName](AniTime,(function(){"fadeIn"===_eventName?(htmlBody.addClass(bodyClass),$(this).on("click.hw_filterOverlayer",(function(){htmlBody.removeClass(bodyClass),fadeFilterOverlay("fadeOut");}))):(htmlBody.removeClass(bodyClass),$(this).off("click.hw_filterOverlayer"));}));};fadeFilterOverlay();};}(jQuery,Drupal,Modernizr),function($,Drupal){Drupal.theme.hw_breakpoints=function(){var MaxSizes={xs:0,sm:575,md:767,lg:1023,xl:1365,xxl:1439,xxxl:1679,xxxxl:Number.MAX_VALUE},currentSize=null,triggerEventIfBreakpointChanged=function(eventName){var size,windowWidth=window.innerWidth||$(window).width();$.each(MaxSizes,(function(key,maxSize){return !(windowWidth<=maxSize)||(size=key,!1);})),size!==currentSize&&(currentSize=size,$(window).trigger(eventName,[currentSize]));};$(window).on("resize",(function(e){triggerEventIfBreakpointChanged("breakpointChange");})),$((function(e){window.setTimeout((function(){triggerEventIfBreakpointChanged("breakpointInit");}),0);}));};}(jQuery,Drupal),function($,Drupal,Modernizr,once){Drupal.theme.hw_anwendungsintegration=function(context,settings){Modernizr=Modernizr||window.Modernizr,context=context||document,settings=settings||Drupal.settings,$(once("hw_anwendungsintegration",".hw-application-integration .intrinsic-container",context)).each((function(){var $container=$(this);new function(){var that=this,$spinner='<div class="spinnerLoader"><div class="loaderimage"><div class="pulser"></div></div></div>',$appint=$(".media-type-appint",$container),$iframe={},$orientation="",$cache={height:0},$sizes={xs:"xs",sm:"sm",md:"md",lg:"lg"};$(document).ready((function(e){that.initDom();})),this.initDom=function(e){if(!($iframe=$("iframe",$container)).length)return !1;$iframe.hasClass("iframe-type--invers")?that._resizeFrameTypeInvers():that._resizeFrameTypeRatio();var replacementText=$(".hw-replacementtext",$container);Modernizr.touchevents&&replacementText.length>0&&($iframe.parents(".embed-responsive-wrapper").first().remove(),replacementText.show());},this._resizeFrameTypeInvers=function(){$cache.height=that._getFrameHeight(),Modernizr.touchevents?($(window).on("orientationchange.hw_anwendungsintegration",(function(e){$orientation=e.orientation;})),$(window).on("breakpointInit.hw_anwendungsintegration",(function(e,size){$(window).orientationchange(),size in $sizes&&"portrait"===$orientation&&that._checkFrameDimension();})).on("breakpointChange.hw_anwendungsintegration",(function(e,size){size in $sizes&&"portrait"===$orientation?that._checkFrameDimension():that._setFrameHeightInvers($cache.height);}))):$(window).on("breakpointInit.hw_anwendungsintegration",(function(e,size){size in $sizes&&that._checkFrameDimension();})).on("breakpointChange.hw_anwendungsintegration",(function(e,size){size in $sizes?that._checkFrameDimension():that._setFrameHeightInvers($cache.height);}));},this._resizeFrameTypeRatio=function(){$(window).smartresize((function(){$appint.a
13ppend($spinner);var frameSrc=$iframe.attr("src");$iframe.attr("src",frameSrc),window.setTimeout((function(){$(".spinnerLoader",$appint).remove();}),750);}));},this._checkFrameDimension=function(){window.setTimeout((function(){var wHeight=that._getWindowHeight();if(Math.floor($cache.height/wHeight*100)>66){var new_height=that._getWindowWidth();that._setFrameHeightInvers(new_height);}else that._setFrameHeightInvers($cache.height);}),250);},this._getWindowHeight=function(){var h=$(window).height();return parseInt(h);},this._getWindowWidth=function(){var w=$(window).width();return parseInt(w);},this._getFrameHeight=function(){var h=$iframe.height();return parseInt(h);},this._setFrameHeightInvers=function(h){$appint.append($spinner);var frameSrc=$iframe.attr("src");$iframe.height(h),$iframe.attr("height",h),$iframe.attr("src",frameSrc),window.setTimeout((function(){$(".spinnerLoader",$appint).remove();}),750);};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,drupalSettings,once){Drupal.behaviors.hw_autocomplete={},Drupal.behaviors.hw_autocomplete={attach:function(context,settings){context=context||document,settings=settings||Drupal.settings,$(once("hw_autocomplete","input.ui-autocomplete-input",context)).each((function(){var $autocomplete=$(this);$(document).ready((function(event){$autocomplete.autocomplete({cache:{},messages:{noResults:Drupal.t("No results found"),results:function(count){return count+(count>1?" "+Drupal.t("results are"):" "+Drupal.t("result is"))+" "+Drupal.t("available, use up and down arrow keys to navigate.");}}});}));}));}};}(jQuery,Drupal,drupalSettings,once),function($,Drupal,once){Drupal.theme.hw_carousel=function(context,settings){$(once("hw_carousel",".carousel",context)).each((function(){var $element=$(this);new function(){var tallest,that=this,$window=$(window),$items=$element.find(".carousel-item"),heights=[];$(document).ready((function(event){that.initDom();})),this.initDom=function(event){that._setTouch(),that._setActiveSlide(),that._normalizeItemHeight(),that._triggerPlayPauseBtn(),$window.on("resize.hw_carousel",$.proxy(that._resizer,this));},this._setTouch=function(){$element.carousel({touch:!0});var activeSlide=$element.find(".active").index()+1;$element.find(".activeItem").html(activeSlide);},this._setActiveSlide=function(){$element.on("slid.bs.carousel",(function(e){var activeSlide=$element.find(".active").index()+1;$element.find(".activeItem").html(activeSlide);}));},this._normalizeItemHeight=function(){$items.each((function(){heights.push($(this).height());})),tallest=Math.max.apply(null,heights),$items.each((function(){$(this).css("min-height",tallest+"px");}));},this._triggerPlayPauseBtn=function(){const controlSliderBtn=$("#controlSliderBtn",$element);if(controlSliderBtn.length){const icon=$("> i",controlSliderBtn);controlSliderBtn.on("click.hw_carousel",(function(){icon.hasClass("bi-pause-circle-fill")?($(this).attr({"aria-label":Drupal.t("Start automatic movement")}),icon.toggleClass("bi-pause-circle-fill bi-play-circle-fill"),$element.carousel("pause")):($(this).attr({"aria-label":Drupal.t("Stop automatic movement")}),icon.toggleClass("bi-play-circle-fill bi-pause-circle-fill"),$element.carousel("cycle"));}));}},this._resizer=function(){tallest=0,heights.length=0,$items.each((function(){$(this).css("min-height","0");})),that._normalizeItemHeight();};}();}));};}(jQuery,Drupal,once),function($,Drupal,once){Drupal.behaviors.hw_clearField={},Drupal.behaviors.hw_clearField={attach:function(context,settings){$(once("hw_clearField",".form--icon-clear > .icon--clear",context)).each((function(){var _this=this;$(document).ready((function(event){var clearIcon=$(_this),fieldID=clearIcon.data("id");clearIcon.on("click.hw_clearField",(function(e){e.preventDefault();var input=$("input#"+fieldID);""!==input.val()&&(input.hasClass("form-autocomplete")?input.addClass("form-autocomplete-clear").keyup((function(){})).val("").trigger("keyup").focus():input.addClass("form-text-clear").keyup((function(){})).val("").trigger("keyup").focus());})).on("keydown.hw_clearField",(function(e){if(13===e.which){e.preventDefault(),e.stopImmediatePropagation();var input=$("input#"+fieldID);""!==input.val()&&(input.hasClass("form-autocomplete")?input.addClass("form-autocomplete-clear").keyup((function(){})).val("").trigger("keyup").focus():input.addClass("form-text-clear").keyup((function(){})).val("").trigger("keyup").focus());}}));}));}));}};}(jQuery,Drupal,once),function($,Drupal,Modernizr,once){Drupal.theme.hw_HighlightComponentBackgroun
13dImage=function(context,settings){context=context||document,settings=settings||Drupal.settings,Modernizr=Modernizr||window.Modernizr,$(once("hw_HighlightComponentBackgroundImage",".page__content .full-image-highlight-component",context)).each((function(){var $element=$(this);new function(){var that=this,$window=$(window),$parent=$element.closest(".bg-black"),$textContainer=$(".text-content",$parent),$myImage=$("img",$element),$bgGradiant=$(".bg-linear-gradiant",$element),$textHeight=0;$(document).ready((function(event){that.initDom();})),this.initDom=function(event){that._resizer(),window.setTimeout((function(){$bgGradiant.addClass("bg-show");}),300);},this._resizer=function(){that._getBgImgProportions(),that._setBgElProportions(),$window.smartresize((function(e){that._getBgImgProportions(),that._setBgElProportions();}));},this._setBgElProportions=function(){var elH=2*$textHeight;$myImage.css("min-height",elH);},this._getBgImgProportions=function(){$textHeight=$textContainer.height();};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,Modernizr,once){Drupal.theme.hw_imageGallery=function(context,settings){Modernizr=Modernizr||window.Modernizr,context=context||document,settings=settings||Drupal.settings,$(once("hw_imageGallery",".modal--gallery",context)).each((function(){var $modalGallery=$(this);new function(){const that=this,$dialogID=$modalGallery.attr("id"),$nid=parseInt($dialogID.replace("bildergalerie","")),$modalDialog=$(".hw-gallery-modal",$modalGallery),$scrollToTop=$(".scrollToTop",$modalGallery),$closeButton=$("#galleryClose",$modalGallery),$filterOverlay=$("#filterOverlay",context),$overlayCache={zindex:
13parseInt($filterOverlay.css("z-index"))},$socialSharingBtn=$(".social-sharing-buttons > ul a",$modalGallery);$(document).ready((function(event){that.initDom();})),this.initDom=function(event){that._bs_modalEvents(),that._modalKeydown(),that._resizer(),that._toTopLink(),that._backDrop(),that._closeButton();},this._bs_modalEvents=function(){$modalGallery.on("shown.bs.modal",(function(e){$filterOverlay.css({"z-index":$overlayCache.zindex+1}),Drupal.behaviors.hw_filterOverlayer($filterOverlay,"fadeIn",200);})),$modalGallery.on("hidden.bs.modal.bs.modal",(function(e){$filterOverlay.css({"z-index":$overlayCache.zindex}),Drupal.behaviors.hw_filterOverlayer($filterOverlay,"fadeOut",200);}));},this._modalKeydown=function(){$modalGallery.keydown((function(e){$(this).is(":focus")&&9===e.which&&e.shiftKey&&($closeButton.focus(),e.preventDefault());}));},this._toTopLink=function(){$(".scrollToTop-link",$modalGallery).click((function(e){e.preventDefault(),window.setTimeout((function(){$socialSharingBtn.length?$socialSharingBtn.first().focus():$("#media-image-first-"+$nid,$modalDialog).focus();}),400);}));},this._backDrop=function(){$socialSharingBtn.length&&$socialSharingBtn.first().keydown((function(e){9===e.which&&e.shiftKey&&(e.preventDefault(),window.setTimeout((function(){$closeButton.focus();}),0));})),$("#media-image-first-"+$nid,$modalDialog).keydown((function(e){9===e.which&&e.shiftKey&&(e.preventDefault(),window.setTimeout((function(){$socialSharingBtn.length?$socialSharingBtn.last().focus():$closeButton.focus();}),0));}));},this._closeButton=function(){$closeButton.keydown((function(e){9===e.which&&(e.shiftKey?(e.preventDefault(),window.setTimeout((function(){$modalGallery.animate({scrollTop:document.body.scrollHeight},{duration:200,complete:function(){window.setTimeout((function(){$("a",$scrollToTop).focus();}),200);}});}),0)):(e.preventDefault(),window.setTimeout((function(){$socialSharingBtn.length?$socialSharingBtn.first().focus():$("#media-image-first-"+$nid,$modalDialog).focus();}),0)));}));},this._resizer=function(){Modernizr.touchevents?$(window).on("orientationchange.hw_imageGallery",(function(e){$modalGallery.is(":visible")&&($(".scrollToTop",$modalGallery).hide(),$modalGallery.modal("hide"));})):$(window).smartresize((function(){$modalGallery.is(":visible")&&($(".scrollToTop",$modalGallery).hide(),$modalGallery.modal("hide"));}));};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,once){Drupal.theme.hw_lazyLoader=function(context,settings){context=context||document,settings=settings||Drupal.settings,$(once("hw_lazyLoader",".main-content",context)).each((function(){$(this);new function(){var that=this;$(context).ready((function(event){that.initDom();})),this.initDom=function(event){context.addEventListener("lazybeforeunveil",(function(e){var obj=$(e.target);obj.hasClass("mediabox")&&obj.parent().prepend('<div class="spinnerLoader page-loader"><div class="loaderimage"><div class="pulser"></div></div></div>');})),context.addEventListener("lazyloaded",(function(e){var obj=$(e.target);obj.hasClass("mediabox")&&setTimeout((function(){obj.prev(".spinnerLoader").remove();}),300);})),$(context).on("lazybeforesizes",(function(e){e.detail.width=$(e.target).parents(".mediabox").first().innerWidth()||e.detail.width;}));};}();}));};}(jQuery,Drupal,once),function($,Drupal,drupalSettings,Cookies,once){Drupal.behaviors.hw_messageBox={},Drupal.behaviors.hw_messageBox={attach:function(context,settings){settings=settings||drupalSettings,$(once("hw_messageBox",".config-pages-messagebox-wrapper",context)).each((function(){const $wrapper=$(this);$(document).ready((function(event){let cookie_version;try{cookie_version=Cookies.get("Drupal.hessenweb.messagebox");}catch(err){}settings.hw_messagebox.msg_visibility&&settings.hw_messagebox.msg_version!==parseInt(cookie_version)&&$.ajax({url:Drupal.url("hw-show-messagebox"),type:"POST",dataType:"json",data:JSON.stringify({current_url_path:window.location.pathname,cookie_version:cookie_version||null}),cache:!1,async:!1,namespace:"hw-messagebox",success:function(response){"string"==typeof response.markup&&($wrapper.html(response.markup),$(".close",$wrapper).on("click.hw_messageBox",(function(e){$.ajax({url:Drupal.url("hw-hide-messagebox"),async:!0,namespace:"hw-messagebox",error:function(xhr,ajaxOptions,thrownError){console.error(xhr.status),console.error(xhr.responseText);}});})));},error:function(xhr,ajaxOptions,thrownError){console.error(xhr.status),console.error(xhr.responseText);}});}));}));}};}(jQuery,Drupal,drupalSettings,window.Cookies,once),function($,Drupal,Modernizr,once){Drupal.theme.hw_navbarInpage=function(context,settings){Modernizr=Modernizr||window.Modernizr,context=context||document,settings=settings||Drupal.settings,$(once("hw_navbarInpage",".inpage-nav",context)).each((function(){const $element=$(this);new function(){const that=this,$window=$(window),$body=$("body, html",context),$mainWrapper=$("#main",context),$mainContent=$(".page__content",$mainWrapper),$footer=$("footer",context),$inp
13ageNav=$("ul.inpage-menu",$element),$headlines=[],$offset=$($body).hasClass("user-logged-in")?120:10;$(document).ready((function(event){if($body.hasClass("path-frontpage")||!$body.hasClass("page-node-type-hw-dossier"))return !1;that.initDom();})),this.initDom=function(event){that._getAllHeadlines(),that._createInpageNav(),that._setAsideWidth(),that._setNavPosition(),that._highlight_NavItemLinks(),$window.on("scroll.hw_navbarInpage",$.proxy(that._scrollPage,this)),$window.on("resize.hw_navbarInpage",$.proxy(that._resizer,this));},this._getAllHeadlines=function(){$("h2.inpage-headline",$mainContent).each((function(i,v){$(this).parent().attr({id:"inpage-headline-"+i,tabindex:"-1"}),$headlines[i]=v;}));},this._createInpageNav=function(){return $headlines.length<1?($element.remove(),!1):(that._navVisibility(),$.each($headlines,(function(i,v){let title=$(v).text();title=title.trim();const navItem=$("<li>",{class:"page-item"}),navLink=$("<a>",{href:"#inpage-headline-"+i,class:"page-link outline-offset--nav-link",title,"aria-label":title});navLink.html('<span class="link-text">'+title+"</span>"),navLink.on("click.hw_navbarInpage",that._click),navItem.append(navLink),$inpageNav.append(navItem);})),!0);},this._highlight_NavItemLinks=function(){const items=$(".inpage-menu").find(".page-link"),sections=[];let result;items.each((function(i,v){const hash=$(this).attr("href"),section=$(hash);section&&sections.push(section);}));for(let i=0;i<sections.length;i++){const section=sections[i],sectionHeight=section.height(),sectionTop=section.offset().top,windowTop=that._getScrollPosition(),windoHeight=that._getWindowHeight();if(windowTop<=sectionTop&&sectionHeight+sectionTop<windowTop+windoHeight){result=sections[i].attr("id");break;}}result&&(items.removeClass("is-active").parent().removeClass("is-active"),$('a[href="#'+result+'"]',$inpageNav).addClass("is-active").blur().parent().addClass("is-active"));},this._scrollPage=function(){that._setNavPosition(),that._highlight_NavItemLinks();},this._getScrollPosition=function(){return $window.scrollTop();},this._setNavPosition=function(){const scrollHeight=that._getScrollPosition()+that._getWindowHeight(),footerTop=$footer.offset().top;if(scrollHeight>=footerTop){const b=scrollHeight-footerTop+120;$element.css({bottom:b+"px"});}else $element.css({bottom:"120px"});},this._click=function(e){that._removeHash();let flag=!1;const targetSelector=this.hash,$target=$(targetSelector);return $body.animate({scrollTop:$target.offset().top-$offset},{duration:500,step:function(now,fx){const newOffset=$target.offset().top-$offset;fx.end!==newOffset&&(fx.end=newOffset);},complete:function(){flag||(window.setTimeout((function(){const tabable=$target.parents("article").first().find("*[tabindex != '-1']:focusable:not(.visually-hidden)").first();tabable.length?tabable.focus():$target.trigger("focus");}),0),flag=!0);}}),!1;},this._removeHash=function(){history.replaceState("",document.title,window.location.origin+window.location.pathname+window.location.search);},this._getWindowWidth=function(){const w=$window.outerWidth();return parseInt(w);},this._getWindowHeight=function(){const h=$window.height();return parseInt(h);},this._setAsideWidth=function(){let factor=50;that._getWindowWidth()>=1680&&(factor=100);const w=that._getWindowWidth()-$mainWrapper.width()-$mainWrapper.offset().left-factor;$element.width(w);},this._navVisibility=function(){that._getWindowWidth()>=1024?$element.show():$element.hide();},this._resizer=function(){that._setAsideWidth(),that._setNavPosition(),that._navVisibility();};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,Modernizr,once){Drupal.theme.hw_navbarMain=function(context,settings){Modernizr=Modernizr||window.Modernizr,context=context||document,$(once("hw_navbarMain",".navbar-offcanvas.sticky-top",context)).each((function(){const $mainNav=$(this);new function(){const that=this;let $window=$(window),$body=$("body",context),$headerBrandBlock=$(".block--hw-radix-standard-branding",context),$mainNavInnerBottomPos=0,$mainNavInner=$("> .container > .row",$mainNav),$footer=$(".page__footer > #footer",context),$init=!0;$(document).ready((function(event){that.initDom();})),this.initDom=function(event){if($body.hasClass("user-logged-in"))return !1;window.setTimeout((function(){that._setNavbarMainPosition();}),500),that._resizer(),$window.on("scroll.hw_navbarMain",$.proxy(that._setNavbarMainByScroll,this));},this._getBodyTop=function(){return parseInt($body.css("padding-top"));},this._getWindowWidth=function(){const w=$window.outerWidth();return parseInt(w);},this._getWindowHeight=function(){const h=$window.height();return parseInt(h);},this._setNavbarMainByScroll=function(){$init||that._setNavbarMainPosition();},this._getScrollPosition=function(){return $window.scrollTop();},this._setNavbarMainPosition=function(){const windowWidth=that._getWindowWidth();windowWidth>=1366?0===$mainNavInnerBottomPos?($mainNavInnerBottomPos=that._getMainNavInnerBottomPosition()-(windowWidth>=1920?75:50),window.setTimeout((function(){that._setMainNavTopPosition();}),250)):that._setMainNavTopPosition():($mainNav.css({top:""}),that._resetScaleClasses($headerBrandBlock)),$init=!1;},this._setMainNavTopPosition=function(){let scrollPos,scrollHeight,footerTop,myTop;if(scrollPos=that._getScrollPosition(),scrollHeight=scrollPos+that._getWindowHeight()-$mainNavInnerBottomPos,footerTop=$footer.offset().top,scrollHeight>=footerTop){myTop=scrollHeight-footerTop,$mainNav.css({top:-myTop+"px"});myTop>=75-($headerBrandBlock.height()-75)?that._toggleScaleClasses($headerBrandBlock,"down"):that._toggleScaleClasses($headerBrandBlock,"up");}else $mainNav.css({top:""}),that._toggleScaleClasses($headerBrandBlock,"up");},this._toggleScaleClasses=function(elem,scale){"down"===scale?(elem.hasClass("animate-scale-0")||elem.addClass("animate-scale-0"),elem.hasClass("animate-scale-1")&&elem.removeClass("animate-scale-1")):(elem.hasClass("animate-scale-1")||elem.addClass("animate-scale-1"),elem.hasClass("animate-scale-0")&&elem.removeClass("animate-scale-0"));},this._resetScaleClasses=function(elem){elem.hasClass("animate-scale-0")&&elem.removeClass("animate-scale-0"),elem.hasClass("animate-scale-1")&&elem.removeClass("animate-scale-1");},this._getMainNavInnerBottomPosition=function(){const h=parseInt($mainNav.css("padding-top"))+$mainNavInner.height();return that._getWindowHeight()-h;},this._resizer=function(){$mainNavInnerBottomPos=0,Modernizr.touchevents?$window.on("orientationchange.hw_navbarToggle",(function(){$mainNavInnerBottomPos=0,that._setNavbarMainPosition();})):$window.smartresize((function(e){$mainNavInnerBottomPos=0,that._setNavbarMainPosition();}));};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,Modernizr,once){Drupal.theme.hw_navbarToggle=function(context,settings){context=context||document,settings=settings||Drupal.settings,Modernizr=Modernizr||window.Modernizr,$(once("hw_navbarToggle",".navbar__buttons",context)).each((function(){const $element=$(this);new function(){const that=this;let $window=$(window),$body=$("body",context),$toolbar_bar=$("#toolbar-bar",context),$toolbar_tray=$("#toolbar-item-administration-tray",$toolbar_bar),$navbar_nav=$(".navbar-offcanvas.sticky-top",context),$header_brand=$(".header-brand:not(.header-brand-gallery)",context),$h_brand_top=parseInt($header_brand.css("top")),$offCanvas=$(".offcanvas-collapse",context),$scrollToTop=$(".scrollToTop",$offCanvas),$navbarToggle=$("#navToggle",$element),$navbar_close=$("#navToggleClose",context),$main=$("#main",context),$main_inner=$("> .main",$main),$page_footer=$(".page__footer",context),$footer_zIndex=$page_footer.css("z-index"),$aside=$(".aside__container",context),$filterOverlay=$("#filterOverlay",context),$z_Indices_mobile=800,$z_Indices_desktop=805;$(document).ready((function(event){that.initDom();})),this.initDom=function(event){that._setLeftMainItemActive(),that._offCanvasInitLayer(),that._offCanvasMenuToggleEvent(),that._closeOffCanvasMenuEvent(),that._toolbarAdminHandler(),that._setFixedElementsTopPos(),that._setDataBreakpoint(),that._resizer(),that._offCanvasEscapeKey();},this._offCanvasInitLayer=function(){const w=that._getWindowWidth();if(w>=1366){const max_width=that._getNavbarMaxWidth();$offCanvas.css({left:-w+max_width+"px"});}},this._offCanvasResetLayer=function(){$offCanvas.hasClass("open")&&(Drupal.behaviors.hw_filterOverlayer($filterOverlay,"fadeOut",200),$offCanvas.toggleClass("open")),that._toggleNavToggleButton(!1),that._switchItemActiveState(!0);const w=that._getWindowWidth();if(w>=1366){const max_width=that._getNavbarMaxWidth();$offCanvas.css({left:-w+max_width+"px"});}else $offCanvas.css({left:"",width:""});that._fadePageFooter(100,1),$navbar_close.addClass("hide");},this._offCanvasOpenLayer=function(){const w=that._getWindowWidth();let max_width=that._getNavbarMaxWidth();const padding_top=that._getBodyTop();
13$page_footer.fadeTo(100,0,(function(){$(this).css("z-index","-1"),Drupal.behaviors.hw_filterOverlayer($filterOverlay,"fadeIn",200),max_width+=that._getVerticalToolbarWidth(),$offCanvas.css({left:max_width+"px",width:w-max_width+"px",top:padding_top}).toggleClass("open"),that._toggleNavToggleButton(!0),that._switchItemActiveState(!1),that._scrollToParentByActiveItem(),$navbar_close.removeClass("hide");}));},this._offCanvasCloseLayer=function(){Drupal.behaviors.hw_filterOverlayer($filterOverlay,"fadeOut",200),window.setTimeout((function(){const w=that._getWindowWidth(),max_width=that._getNavbarMaxWidth(),padding_top=that._getBodyTop();$navbar_close.addClass("hide"),$offCanvas.toggleClass("open").css({left:-w+max_width+"px",width:"",top:padding_top+"px"}),that._toggleNavToggleButton(!1),that._switchItemActiveState(!0),that._fadePageFooter(100,1);}),200);},this._offCanvasMenuToggleEvent=function(){$navbarToggle.on("click.hw_navbarToggle",(function(){$offCanvas.hasClass("open")?that._offCanvasCloseLayer():(that._scrollUpByScaledHeaderBrand(),that._offCanvasOpenLayer(),that._offCanvasSetFocusFirstItem(200,!1));})).keydown((function(e){27===e.which&&($offCanvas.hasClass("open")&&that._offCanvasCloseLayer(),e.preventDefault()),9===e.which&&$offCanvas.hasClass("open")&&(e.shiftKey?that._offCanvasCloseLayer():(that._offCanvasSetFocusFirstItem(0,!0),e.preventDefault()));}));},this._offCanvasSetFocusFirstItem=function(timeout,focus){const mainNav=$("ul.main-menu",$offCanvas);$("> li",mainNav).each((function(index,item){const level0=$(this),linkLevel0=$("> a",level0),layerAlreadyOpen=!!$offCanvas.hasClass("open");if(linkLevel0.length>0)return window.setTimeout((function(){focus&&linkLevel0.focus(),linkLevel0.keydown((function(e){9===e.which&&e.shiftKey&&window.setTimeout((function(){$navbar_close.focus(),e.preventDefault();}),100);}));}),layerAlreadyOpen?0:400),!1;{const mainSubNav=$("ul.navbar-nav-sub",level0),mainSubList=$("> li",mainSubNav);for(let i=0;i<mainSubList.length;i++){const linkLevel1=$("> a",$(mainSubList[i]));if(linkLevel1.length>0)return window.setTimeout((function(){focus&&linkLevel1.focus(),linkLevel1.keydown((function(e){const _e=e;9===_e.which&&_e.shiftKey&&window.setTimeout((function(){$navbar_close.focus(),_e.preventDefault();}),100);}));}),layerAlreadyOpen?0:2*timeout),!1;}}}));},this._closeOffCanvasMenuEvent=function(){$navbar_close.on("click.hw_navbarToggle",(function(){that._offCanvasCloseLayer(),window.setTimeout((function(){$navbarToggle.focus();}),200);})).keydown((function(e){9===e.which&&(e.preventDefault(),e.shiftKey?$offCanvas.animate({scrollTop:document.body.scrollHeight},{duration:200,complete:function(){window.setTimeout((function(){const scrollToTopLink=$("a",$scrollToTop);if(scrollToTopLink.is(":visible"))scrollToTopLink.focus();else{const mainNav=$("ul.main-menu",$offCanvas),lastLevel0=$("> li",mainNav).last();if(lastLevel0.length){const mainSubNav=$("ul.navbar-nav-sub",lastLevel0),lastLevel1=$("> li",mainSubNav);lastLevel1.length?lastLevel1.find("> a").focus():lastLevel0.find("> a").focus();}}}),200);}}):window.setTimeout((function(){that._offCanvasSetFocusFirstItem(0,!0);}),0));}));},this._toolbarAdminHandler=function(){$toolbar_bar.length>0&&($("> .toolbar-tab > a",$toolbar_bar).on("click.hw_navbarToggle",(function(){window.setTimeout((function(){const top=that._getBodyTop();that._setFixedElementsTopPos(top),that._offCanvasResetLayer();}),0);})),$(".toolbar-toggle-orientation button",$toolbar_bar).on("click.hw_navbarToggle",(function(){window.setTimeout((function(){const top=that._getBodyTop();that._setFixedElementsTopPos(top),that._offCanvasResetLayer();}),0);})));},this._setFixedElementsTopPos=function(top){if($body.hasClass("user-logged-in")){const myTop=top||that._getBodyTop();that._getWindowWidth()>=1366?($navbar_nav.css({top:myTop}),$header_brand.css({top:$h_brand_top+myTop,left:that._getVerticalToolbarWidth()})):($navbar_nav.css({top:""}),$header_brand.css({top:$h_brand_top,left:0})),$aside.css({top:myTop}),$filterOverlay.css({top:myTop});}},this._getBodyTop=function(){return parseInt($body.css("padding-top"));},this._getBodyLeft=function(){return parseInt($body.css("margin-left"));},this._getWindowWidth=function(){return $window.outerWidth();},this._getNavbarMaxWidth=function(){let max_width=parseInt($navbar_nav.css("max-width"));return max_width=isNaN(max_width)?0:max_width,max_width;},this._getVerticalToolbarWidth=function(){return $toolbar_tray.hasClass("toolbar-tray-vertical")?$toolbar_tray.width():0;},this._fadePageFooter=function(aniTime,opacity,timeout){aniTime=aniTime||100,opacity=opacity||1,timeout=timeout||200,window.setTimeout((function(){const w=that._getWindowWidth();$footer_zIndex=w>=1366?$z_Indices_desktop:$z_Indices_mobile,$page_footer.css("z-index",$footer_zIndex).fadeTo(aniTime,opacity);}),timeout);},this._resizer=function(){that._setContainerHeight(),that._setBodyPaddingTop(),that._changeNavItemTitleAttr(),Modernizr.touchevents?$window.on("orientationchange.hw_navbarToggle",(function(){that._setContainerHeight(),that._setBodyPaddingTop(),that._offCanvasResetLayer(),that._changeNavItemTitleAttr();})):$window.smartresize((function(){that._setContainerHeight(),that._setBodyPaddingTop(),that._offCanvasResetLayer(),that._changeNavItemTitleAttr();}));},this._setContainerHeight=function(){if(that._getWindowWidth()>=1366){const h=$window.height()-16;$main_inner.css({"min-height":h});}else that._resetContainerHeight();},this._setBodyPaddingTop=function(){if($toolbar_bar.length>0){let h;$toolbar_tray.hasClass("toolbar-tray-horizontal")?(h=$toolbar_bar.height()+$toolbar_tray.height(),that._getBodyTop()!==h&&($body.css({"padding-top":h+"px"}),that._setFixedElementsTopPos(h))):(h=$toolbar_bar.height(),that._getBodyTop()!==h&&($body.css({"padding-top":h+"px"}),that._setFixedElementsTopPos(h)));}},this._setDataBreakpoint=function(){$window.on("breakpointInit.hw_navbarToggle",(function(e,size){$(".main-menu",$offCanvas).attr("data-breakpoint",size);})).on("breakpointChange.hw_navbarToggle",(function(e,size){$(".main-menu",$offCanvas).attr("data-breakpoint",size);}));},this._resetContainerHeight=function(){$main_inner.css({"min-height":""});},this._toggleNavToggleButton=function(state){$navbarToggle.attr("data-expanded",state).attr("aria-expanded",state);},this._changeNavItemTitleAttr=function(){const w=that._getWindowWidth(),navItemLinks=$(".btn-navbar",$element);w>=1366?($navbarToggle.length&&($navbarToggle.get(0).removeAttribute("title"),$(">
13 span",$navbarToggle).length||$navbarToggle.append('<span class="d-none d-xl-block">'+$navbarToggle.data("drupal-link-title")+"</span>")),navItemLinks.each((function(){this.removeAttribute("title"),$("> span",$(this)).length||$(this).append('<span class="d-none d-xl-block">'+$(this).data("drupal-link-title")+"</span>");}))):($navbarToggle.length&&($navbarToggle.get(0).setAttribute("title",$navbarToggle.data("drupal-link-title")),$("> span",$navbarToggle).length&&$("> span",$navbarToggle).remove()),navItemLinks.each((function(){this.setAttribute("title",$(this).data("drupal-link-title")),$("> span",$(this)).length&&$("> span",$(this)).remove();})));},this._setLeftMainItemActive=function(){let pathname,containerCollection;pathname=window.location.pathname.toLowerCase(),containerCollection=$body.data("container-collection")||"",containerCollection.length>0&&(containerCollection=("/"===containerCollection.charAt(0)?"":"/")+containerCollection),$(".btn-navbar",$element).each((function(){$(this).removeClass("item-active"),$(this).removeAttr("aria-current");const action=$(this).attr("data-action").toLowerCase(),regex=new RegExp("^"+action+"/");if(action===pathname||action&&regex.test(pathname)){$(this).attr({"data-expanded":!0,"aria-current":"page"}).addClass("item-active");const url_string=window.location.href;(new URL(url_string).searchParams.get("search_api_fulltext")||"").length>0?window.setTimeout((function(){$("#search-overview-entry-count-info",context).length>0?$("#search-overview-entry-count-info",context).focus():that._setMainContentElementFocused($(this));}),0):that._setMainContentElementFocused($(this));}else action.toLowerCase()===containerCollection.toLowerCase()&&$(this).attr({"data-expanded":!0,"aria-current":"page"}).addClass("item-active");}));},this._setMainContentElementFocused=function(item){const selector=item.data("focus-selector"),element=item.data("focus-element");selector&&element&&window.setTimeout((function(){const elem=$("."+selector,context);elem.length>0?elem.first().find(element).first().focus():window.setTimeout((function(){if($(".card-main-header",context).length>0&&$("#media-overview-entry-count-info",context).length>0)$(".card-main-header > a",context).attr("aria-describedby","media-overview-entry-count-info").focus();else{const tabables=$main_inner.find("*[tabindex != '-1']:focusable"),index=tabables.index(this);tabables.eq(index+1).focus();}}),0);}),0);},this._switchItemActiveState=function(state){$(".btn-navbar",$element).each((function(){$(this).hasClass("item-active")&&$(this).attr("data-expanded",state);}));},this._scrollToParentByActiveItem=function(){var elem,distance,mainNav=$("ul.main-menu",$offCanvas),activeItem=$("a.is-active",mainNav);if(activeItem.length>0)that._getWindowWidth()>=768?(elem=activeItem.parents("li.level-0.active").first(),distance=10):(elem=activeItem.parent("li.level-1.active").first(),distance=50),that._scrollToItem(elem.attr("id"),distance);},this._scrollToItem=function(element,distance){if($("#"+element).eq(0).length<1)return !1;$offCanvas.scrollTop(0);const offCanvasTop=$offCanvas.offset().top,t=document.getElementById(element).getBoundingClientRect().top+document.documentElement.scrollTop-offCanvasTop-distance;$offCanvas.animate({scrollTop:t},250);},this._scrollUpByScaledHeaderBrand=function(){var scrollPos,myScroll;$header_brand.hasClass("animate-scale-0")&&(myScroll=(scrollPos=$window.scrollTop())-(scrollPos+$window.height()-$("> #footer",$page_footer).offset().top),$("html,body").animate({scrollTop:myScroll},250));},this._offCanvasEscapeKey=function(){$offCanvas.keydown((function(e){27===e.keyCode&&$offCanvas.hasClass("open")&&(that._offCanvasCloseLayer(),window.setTimeout((function(){$navbarToggle.focus();}),400));}));};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,once){Drupal.theme.hw_navbarMedia=function(context,settings){context=context||document,settings=settings||Drupal.settings,$(once("hw_navbarMedia",".media-navigation",context)).each((function(){var $mediaNav=$(this);new function(){var that=this;$(document).ready((function(event){that.initDom();})),this.initDom=function(event){$("a.link",$mediaNav).each((function(){if($(this).attr("aria-describedby",null),$(this).hasClass("active")){var _this=$(this);return window.setTimeout((function(){_this.focus(),_this.attr("aria-describedby","media-overview-entry-count-info");}),0),!1;}}));};}();}));};}(jQuery,Drupal,once),function($,Drupal,Modernizr,once){Drupal.theme.hw_navbarMeta=function(context,settings){Modernizr=Modernizr||window.Modernizr,context=context||document,settings=settings||Drupal.settings,$(once("hw_navbarMeta",".meta-navigation",context)).each((function(){var $metaNav=$(this);new function(){var that=this,$window=$(window),$footer=$(".footer__navigation > .block",context);
13$(document).ready((function(event){that.initDom();})),this.initDom=function(event){$footer.length||($footer=$("<div />",{class:"block block--hw-radix-standard-footer"}),$(".footer__navigation",context).append($footer)),that._resizer();},this._moveMetaNav=function(){if(0===$(".meta-navigation",$footer).length){let mm,row,col;mm=$("ul.meta-menu-list",$metaNav).clone(),"object"==typeof mm&&($("> li > a.menu-svg-icons-link",mm).each((function(){const svg=$("> svg",$(this)),linkTextObj=$('<span class="link-text">'+svg.data("drupal-link-title")+"</span>");$(this).append(linkTextObj),svg.remove();})),col=$('<nav class="col pl-0 pr-0" role="navigation" aria-label="'+Drupal.t("Meta navigation")+'"></nav>'),col.append(mm),row=$('<div class="row meta-navigation"></div>'),row.append(col),$footer.append(row));}},this._removeMetaNav=function(){$(".meta-navigation",$footer).length>0&&$(".meta-navigation",$footer).remove();},this._getWindowWidth=function(){var w=$window.outerWidth();return parseInt(w);},this._moveNavigation=function(){that._getWindowWidth()<1366?that._moveMetaNav():that._removeMetaNav();},this._resizer=function(){that._moveNavigation(),$window.smartresize((function(e){that._moveNavigation();}));};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,once){Drupal.behaviors.hw_numberField={},Drupal.behaviors.hw_numberField={attach:function(context,settings){var that=this;$(once("hw_numberField","input.form-number",context)).each((function(){var number=$(this);$(document).ready((function(event){var countingDown=number.prev(".icon--counting-down"),countingUp=number.next(".icon--counting-up"),min=number.attr("min"),cache=min;that.initCounting(number,min,0),countingDown.on("click.hw_numberField",(function(e){e.preventDefault(),that.initCounting(number,min,0);try{number.get(0).stepDown();}catch(ex){}(cache!==number.val()||number.hasClass("reset"))&&(number.change(),cache=number.val(),number.removeClass("reset"));})),countingUp.on("click.hw_numberField",(function(e){e.preventDefault(),that.initCounting(number,min,1);try{number.get(0).stepUp();}catch(ex){}(cache!==number.val()||number.hasClass("reset"))&&(number.change(),cache=number.val(),number.removeClass("reset"));}));}));}));}},Drupal.behaviors.hw_numberField.initCounting=function(number,min,counting){""===number.val()&&(min?number.val(min-counting):number.val("0"));};}(jQuery,Drupal,once),function($,Drupal,Modernizr,once){Drupal.theme.hw_responsiveTable=function(context,settings){Modernizr=Modernizr||window.Modernizr,context=context||document,settings=settings||Drupal.settings,$(once("hw_responsiveTable","#page-content table.table",context)).each((function(){var $table=$(this);new function(){var $wHeight,$wrapper,$article,$caption,$capClone,$capSide,that=this,$window=$(window),$sizes={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl",xxl:"xxl",xxxl:"xxxl",xxxxl:"xxxxl"};$(document).ready((function(event){that.initDom();})),this.initDom=function(event){that._prepareTableWrapper(),that._setTableWrapperBreakpointClasses(),that._renderTableByScopeHeaders(),that._getTableCaption();},this._prepareTableWrapper=function(){$table.parent(".table-responsive").length<1&&$table.wrap('<div class="table-responsive" tabindex="-1"></div>');},this._setTableWrapperBreakpointClasses=function(){$wrapper=$table.parent(),$window.on("breakpointInit.hw_responsiveTable",(function(e,size){$wrapper.removeClass((function(index,className){return (className.match(/([^|\s]*)table-responsive-([\S]*)/g)||[]).join(" ");})).addClass("table-responsive-"+$sizes[size]);})).on("breakpointChange.hw_responsiveTable",(function(e,size){$wrapper.removeClass((function(index,className){return (className.match(/([^|\s]*)table-responsive-([\S]*)/g)||[]).join(" ");})).addClass("table-responsive-"+$sizes[size]);}));},this._renderTableByScopeHeaders=function(){$article=$table.parents("article").first(),$table.is(".sticky-row, .sticky-col, .sticky-both")?(that._setWidthForScopeRowStickyHeaders(),that._renderTableWrapperByOversizedWidth(),that._resizer(!0)):(that._setWidthForScopeRowStickyHeaders(),that._resizer(!1));}
13,this._setWidthForScopeRowStickyHeaders=function(){var wPercent,minWidth;$("tr > *",$table).each((function(){this.style.width&&(wPercent=this.style.width.replace(/\D/g,""),minWidth=Math.floor($article.width()/100*wPercent),$(this).css({"min-width":minWidth+"px"}));}));},this._renderTableWrapperByOversizedWidth=function(){$wHeight=that._getWindowHeight()-(that._getWindowWidth()<576?200:100),$table.width()>$article.width()?$wrapper.css({"overflow-x":"auto","max-height":$wHeight}):$wrapper.css({"overflow-x":"unset","max-height":""});},this._resizer=function(sticky){Modernizr.touchevents?$window.on("orientationchange.hw_responsiveTable",(function(e){window.setTimeout((function(){that._setWidthForScopeRowStickyHeaders(),sticky&&that._renderTableWrapperByOversizedWidth(),that._positionTableCaption();}),250);})):$window.smartresize((function(){that._setWidthForScopeRowStickyHeaders(),sticky&&that._renderTableWrapperByOversizedWidth(),that._positionTableCaption();}));},this._getTableCaption=function(){($caption=$("caption",$table)).length&&($capSide=$caption.css("caption-side")||"bottom",($capClone=$('<p class="table-caption" aria-hidden="true" />')).html($caption.html())),that._positionTableCaption();},this._positionTableCaption=function(){$caption&&($table.width()>$article.width()?($caption.addClass("sr-only"),"bottom"===$capSide?$wrapper.after($capClone):$wrapper.before($capClone)):($caption.removeClass("sr-only"),"bottom"===$capSide?$wrapper.next(".table-caption").remove():$wrapper.prev(".table-caption").remove()));},this._getWindowHeight=function(){var h=$window.height();return parseInt(h);},this._getWindowWidth=function(){var w=$window.outerWidth();return parseInt(w);};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,once){Drupal.theme.hw_scrollToAnchor=function(context,settings){context=context||document,settings=settings||Drupal.settings,$(once("hw_scrollToAnchor",".main-content",context)).each((function(){new function(){const that=this,$body=$("body, html",context),$offset=$($body).hasClass("user-logged-in")?120:10;$(context).ready((function(event){that.initDom();})),this.initDom=function(event){window.setTimeout((function(){that._scrollToAnchorByDirectCall();}),0);},this._scrollToAnchorByDirectCall=function(){let flag=!1;const hash=window.location.hash||"",regex=new RegExp("^#skip|navbar-collapse|bildergalerie");if(hash.length&&!1===regex.test(hash)){const target=$(hash,context),inPageNavHeadline=$("> h2.inpage-headline",target).length;$body.animate({scrollTop:0},0,(function(){$(this).animate({scrollTop:$(hash).offset().top-$offset},{duration:1e3,step:function(now,fx){let newOffset=$(hash).offset().top-$offset;fx.end!==newOffset&&(fx.end=newOffset);},complete:function(){!flag&&inPageNavHeadline&&(window.setTimeout((function(){const tabable=target.parents("article").first().find("*[tabindex != '-1']:focusable:not(.visually-hidden)").first();tabable.length?tabable.focus():target.trigger("focus");}),0),flag=!0);}});}));}};}();}));};}(jQuery,Drupal,once),function($,Drupal,Modernizr,once){Drupal.theme.hw_scrollTop=function(context,settings){Modernizr=Modernizr||window.Modernizr,context=context||document,settings=settings||Drupal.settings,$(once("hw_scrollTop",".scrollToTop",context)).each((function(){var $element=$(this);new function(){var that=this,$window=$(window),$body=$("body,html",context),$footer=$("footer",context),$navabrOffcanvas=$(".navbar-collapse",context),$init=!0,$modal=null,$fadeTime=Modernizr.touchevents?0:200;$(document).ready((function(event){that.initDom();})),this.initDom=function(event){that._initButtonByRegion();},this._initButtonByRegion=function(){$element.hasClass("inpage")?(that._event_page_ToTopButton(),window.setTimeout((function(){that._setToTopButtonPosition();}),100),$window.on("scroll.hw_scrollTop",$.proxy(that._setToTopButtonByScroll,this)),$window.on("resize.hw_scrollTop",$.proxy(that._resizer,this))):$element.hasClass("mainpage")?that._event_page_ToTopButton():$element.hasClass("nav-offcanvas")?(that._event_mainNav_ToTopButton(),$element.hide(),$navabrOffcanvas.on("scroll.hw_scrollTop",$.proxy(that._mainNavToTopBtnController,this))):$element.hasClass("inmodal")&&($element.hide(),that._event_modal_ToTopButton(),$(document).on("shown.bs.modal",(function(){($modal=$(".modal.show")).on("scroll.hw_scrollTop",$.proxy(that._modalToTopBtnController,this));})));},this._event_page_ToTopButton=function(){Modernizr.touchevents?$("a",$element).on("click.hw_scrollTop",(function(e){e.preventDefault(),$body.animate({scrollTop:0},200,(function(){window.setTimeout((function(){return that._getWindowWidth()>=1366?$("#header-banner",context).focus():$("#header-banner-mobile",context).focus(),!0;}),0);}));})):$("a",$element).on("mousedown.hw_scrollTop",(function(e){e.preventDefault(),0===e.button&&$body.animate({scrollTop:0},200,(function(){window.setTimeout((function(){return that._getWindowWidth()>=1366?$("#header-banner",context).focus():$("#header-banner-mobile",context).focus(),!0;}),0);}));})).on("focus.hw_scrollTop",(function(e){e.preventDefault(),$(this).key
13down((function(e){e.stopImmediatePropagation(),13===e.which&&window.setTimeout((function(){$body.animate({scrollTop:0},200,(function(){window.setTimeout((function(){const navElement=$("nav.sprungmarken",context);navElement.removeClass("sr-only");const skipLinks=$("> ul a",navElement);return that._getWindowWidth()>=1366?skipLinks.get(0).focus():skipLinks.get(1).focus(),!0;}),0);}));}),0);}));}));},this._event_mainNav_ToTopButton=function(){$("a",$element).on("click.hw_scrollTop",(function(e){e.preventDefault(),$navabrOffcanvas.animate({scrollTop:0},200,(function(){window.setTimeout((function(){const mainNav=$("ul.main-menu",$navabrOffcanvas);return $("> li",mainNav).each((function(index,item){const level0=$(this),linkLevel0=$("> a",level0);if(linkLevel0.length>0)return window.setTimeout((function(){linkLevel0.focus();}),0),!1;{const mainSubNav=$("ul.navbar-nav-sub",level0),mainSubList=$("> li",mainSubNav);for(let i=0;i<mainSubList.length;i++){const linkLevel1=$("> a",$(mainSubList[i]));if(linkLevel1.length>0)return window.setTimeout((function(){linkLevel1.focus();}),0),!1;}}})),!0;}),0);}));}));},this._event_modal_ToTopButton=function(){$("a",$element).on("click.hw_scrollTop",(function(e){return e.preventDefault(),$modal.animate({scrollTop:0},200,(function(){window.setTimeout((function(){$modal.focus();}),0);})),!1;}));},this._setToTopButtonByScroll=function(){$init||that._setToTopButtonPosition();},this._getScrollPosition=function(){return $window.scrollTop();},this._setToTopButtonPosition=function(){if($footer.length){var scrollPos=that._getScrollPosition(),scrollHeight=scrollPos+that._getWindowHeight(),footerTop=$footer.offset().top;if(scrollHeight>=footerTop){var b=scrollHeight-footerTop+20;$element.css({bottom:b+"px"});}else $element.css({bottom:"20px"});scrollPos>=160&&that._getWindowWidth()>=1024?$element.fadeIn($fadeTime):$element.fadeOut($fadeTime);}$init=!1;},this._mainNavToTopBtnController=function(){window.setTimeout((function(){if(that._getWindowWidth()>=1024)$("> div",$navabrOffcanvas).offset().top<-160?$element.fadeIn($fadeTime):$element.fadeOut($fadeTime);else that._getWindowHeight()+30<$("> .container-fluid",$navabrOffcanvas).height()?$element.fadeIn($fadeTime):$element.fadeOut($fadeTime);}),0);},this._modalToTopBtnController=function(){var scrollPos=$modal.scrollTop(),showHeight=$modal.prop("scrollHeight")-that._getWindowHeight();that._getWindowWidth()>=1366?scrollPos>=160&&that._getWindowWidth()>=1366||scrollPos===showHeight&&that._getWindowWidth()<1366?$element.fadeIn($fadeTime):$element.fadeOut($fadeTime):$element.hide();},this._getWindowHeight=function(){var h=$window.height();return parseInt(h);},this._getWindowWidth=function(){var w=$window.outerWidth();return parseInt(w);},this._resizer=function(){that._setToTopButtonPosition();};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,drupalSettings,once){Drupal.behaviors.hw_searchApi={},Drupal.behaviors.hw_searchApi={attach:function(context,settings){context=context||document,settings=settings||Drupal.settings,$(once("hw_searchApi","form.hw-views-exposed-search-form",context)).each((function(){var $form=$(this),$search_action_selection=$('.form-item-search-form-action input[type="radio"]',$form),$search_input=$("#edit-search-api-fulltext",$form),$actions=drupalSettings.hw_search_api.actions;$(document).ready((function(event){$search_action_selection.on("change.hw_searchApi",(function(){if($form.attr("action",$actions[$(this).val()]),$search_input.length){$search_input.attr("data-search-api-autocomplete-search",$(this).val());var autocomplete_path=$search_input.data("autocomplete-path"),autocomplete_path_part=autocomplete_path.substr(0,autocomplete_path.indexOf("?")).substr(autocomplete_path.lastIndexOf("/")+1);$search_input.attr("data-autocomplete-path",$search_input.data("autocomplete-path").replace(autocomplete_path_part,$(this).val())),$search_input.val().trim().length>0&&window.setTimeout((function(){return $form.submit(),!0;}),500);}}));}));}));}};}(jQuery,Drupal,drupalSettings,once),function($,Drupal,Modernizr,once){Drupal.theme.hw_selectField=function(context,settings){context=context||document,settings=settings||Drupal.settings,Modernizr=Modernizr||window.Modernizr,$(once("hw_selectField","
13select.form-select",context)).each((function(globalIndex,selectField){var $element=$(this);new function(){var $styledSelect,$iconSelect,$list,$listItems,$sortList,$sortedList,$currentChar,$previousChar,$ariaDescByCache,that=this,$setIntervalObj=null,$hasError=$element.hasClass("error"),$selectedText=$element.find("option:selected").text(),$selectedVal=$element.find("option:selected").val(),$numberOfOptions=$element.children("option").length;$(document).ready((function(event){if(Modernizr.touchevents)return !1;that.initDom();})),this.initDom=function(event){that.buildPseudoSelectField(),that.setEvents();},this.buildPseudoSelectField=function(){$element.addClass("s-hidden"),$element.after('<div class="styledSelect"></div>'),$styledSelect=$element.next("div.styledSelect"),$iconSelect=$styledSelect.nextAll(".icon--select");var comboIndex=++globalIndex;$element.parents(".form-item").first().find('label[for="'+$element.attr("id")+'"]').attr({id:$element.attr("id")+"--"+comboIndex}),$styledSelect.attr({id:$element.attr("id")+"--"+comboIndex,"aria-labelledby":$element.attr("id")+"--"+comboIndex,role:"combobox","aria-controls":"select-listbox--"+comboIndex,"aria-owns":"select-listbox--"+comboIndex,"aria-expanded":"false","aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":"",tabindex:"0"}),$hasError?($styledSelect.addClass("error").nextAll(".icon").addClass("error"),void 0!==$element.attr("aria-describedby")?$styledSelect.attr({"aria-describedby":$element.attr("aria-describedby")+" "+$element.attr("id")+"--error-msg"}):$styledSelect.attr({"aria-describedby":$element.attr("id")+"--error-msg"})):void 0!==$element.attr("aria-describedby")&&$styledSelect.attr({"aria-describedby":$element.attr("aria-describedby")}),$ariaDescByCache=$styledSelect.attr("aria-describedby"),$styledSelect.text($element.children("option").eq(0).text()),$list=$("<ul />",{id:"select-listbox--"+comboIndex,class:"options",role:"listbox","aria-labelledby":$element.attr("id")+"--"+comboIndex,tabindex:"-1"}).insertAfter($styledSelect);for(var i=0;i<$numberOfOptions;i++)$("<li />",{id:"combo"+comboIndex+"-"+i,class:$element.children("option").eq(i).attr("class"),text:$element.children("option").eq(i).text(),rel:$element.children("option").eq(i).val(),role:"option","aria-selected":"false"}).appendTo($list);$sortedList=$listItems=$list.children("li"),$styledSelect.text($selectedText),$listItems.each((function(){$(this).attr("rel")===$selectedVal&&$(this).addClass("selected").attr("aria-selected","true");})),$sortList=Array.prototype.sort.bind($sortedList),that.doSort(true);},this.setEvents=function(){$styledSelect.on("click.hw_selectField",that.toggleStyledSelect),$iconSelect.on("click.hw_selectField",that.toggleStyledSelect),$listItems.on("click.hw_selectField",(function(e){e.stopPropagation();var rel=$(this).attr("rel");$("li",$list).removeClass("selected").attr("aria-selected","false"),$(this).addClass("selected").attr("aria-selected","true"),$styledSelect.text($(this).text()).removeClass("active").attr({"aria-expanded":"false","aria-activedescendant":""}).focus(),rel===$selectedVal?$element.val(rel):($selectedVal=rel,$element.change((function(){})).val(rel).trigger("change")),$list.hide(),that.setArrowState();})),$list.on("mousedown.hw_selectField",(function(){$styledSelect.addClass("focus");})).on("mouseup.hw_selectField",(function(){$styledSelect.removeClass("focus").focus();})),$(document).on("click.hw_selectField",that.hideOptionsList),$(window).on("blur.hw_selectField",that.hideOptionsList),document.addEventListener("keydown",that.selectionHandler);},this.selectionHandler=function(e){if($styledSelect.is(":focus")){$styledSelect.attr({"aria-describedby":null});var changeVal=!1,triggerChange=!1,inactiveChange=!1,cache={},scroll=!1,activeObj=null,active=$(".selected",$list).get(0)||$("li",$list).first().get(0);active.classList.remove("selected");var x=e.which;switch(!0){case x>=39&&x<=40:that.preventEvent(e),active=active.nextElementSibling||active,scroll=changeVal=!0,$styledSelect.hasClass("active")||(triggerChange=inactiveChange=!0);break;case x>=37&&x<=38:that.preventEvent(e),active=active.previousElementSibling||active,scroll=changeVal=!0,$styledSelect.hasClass("active")||(triggerChange=inactiveChange=!0);break;case 34===x:that.preventEvent(e),$styledSelect.hasClass("active")?(active=that.setItemPageUpDown(x,active)||active,scroll=changeVal=!0):(active=active.nextElementSibling||active,triggerChange=changeVal=inactiveChange=!0);break;case 35===x:that.preventEvent(e),active=$("li",$list).last().get(0),scroll=changeVal=!0,$styledSelect.hasClass("active")||(triggerChange=inactiveChange=!0);break;case 33===x:that.preventEvent(e),$styledSelect.hasClass("active")?(active=that.setItemPageUpDown(x,active)||active,scroll=changeVal=!0):(active=active.previousElementSibling||active,triggerChange=changeVal=inactiveChange=!0);break;case 36===x:that.preventEvent(e),active=$("li",$list).first().get(0),scroll=changeVal=!0,$styledSelect.hasClass("active")||(triggerChange=inactiveChange=!0);break;case 32===x:that.preventEvent(e),$styledSelect.hasClass("active")||$styledSelect.addClass("active").attr({"aria-expanded":"true","aria-activedescendant":active.getAttribute("id")}).next("ul.options").slideDown(0,(function(){that.setArrowState(),that.drawOptionsList();}));break;case 27===x:that.preventEvent(e),$styledSelect.hasClass("active")&&($styledSelect.removeClass("active").attr({"aria-expanded":"false","aria-activedescendant":""}).next("ul.options").hide(),that.setArrowState(),triggerChange=changeVal=!0);break;case 13===x:$styledSelect.hasClass("active")?($styledSelect.removeClass("active").attr({"aria-expanded":"false","aria-activedescendant":""}).next("ul.options").hide(),triggerChange=changeVal=!0,$("li",$list).attr({"aria-selected":"false"}),active.setAttribute("aria-selected","true")):$styledSelect.addClass("active").attr({"aria-expanded":"true","aria-activedescendant":active.getAttribute("id")}).next("ul.options").slideDown(0,(function(){that.drawOptionsList();})),that.setArrowState();break;case 9===x:$styledSelect.hasClass("active")&&($styledSelect.removeClass("active").attr({"aria-expanded":"false","aria-activedescendant":""}).next("ul.options").hide(),that.setArrowState(),triggerChange=changeVal=!0,window.setTimeout((function(){$styledSelect.focus();}),0));break;case x>=65&&x<=90:var index=0;
13if($listItems.each((function(){$(this).attr("rel").length>0&&($(this).text().toUpperCase().charCodeAt(0)===x&&("object"!=typeof cache[x]&&(cache[x]={}),cache[x][index++]=this));})),($currentChar=x)!==$previousChar&&"object"==typeof cache[x]&&($(".iterate",$list).removeClass("iterate"),$previousChar=$currentChar),"object"==typeof cache[x]){var len=Object.keys(cache[x]).length;$.each(cache[x],(function(i,item1){return i==len-1?(active=item1||active,scroll=changeVal=!0,$(".iterate",$list).removeClass("iterate"),!1):item1.classList.contains("iterate")?void 0:((active=item1||active).classList.add("iterate"),scroll=changeVal=!0,!1);}));}$styledSelect.hasClass("active")||(inactiveChange=!0);}if(active.classList.add("selected"),scroll&&that.scrollInnerList(),changeVal){var rel=(activeObj=$(active)).attr("rel");$styledSelect.text(activeObj.text()).attr({"aria-activedescendant":activeObj.attr("id")}),triggerChange?rel===$selectedVal?$element.val(rel):($selectedVal=rel,$element.change((function(){})).val(rel).trigger("change")):$element.val(rel);}inactiveChange?$styledSelect.attr({"aria-describedby":active.getAttribute("id")}):$styledSelect.attr({"aria-describedby":$ariaDescByCache});}},this.toggleStyledSelect=function(e){e.stopPropagation(),$("div.styledSelect.active").each((function(){$(this).attr("id")!==$styledSelect.attr("id")&&($(this).removeClass("active").attr({"aria-expanded":"false","aria-activedescendant":""}).next("ul.options").hide(),that.setArrowState($(this)));})),"i"===e.currentTarget.localName&&$styledSelect.focus(),$styledSelect.hasClass("active")?($styledSelect.removeClass("active").attr({"aria-expanded":"false","aria-activedescendant":""}).next("ul.options").hide(0),that.setArrowState(),that.drawOptionsList()):$styledSelect.addClass("active").attr("aria-expanded","true").next("ul.options").slideDown(0,(function(){that.setArrowState(),that.drawOptionsList();}));},this.drawOptionsList=function(){if($styledSelect.hasClass("active")){var main=$("main.main"),windowHeight=$(window).height(),mainHeight=settings.user.uid>0?main.outerHeight():main.height(),selectOffsetTop=$styledSelect.offset().top,selectMainTop=selectOffsetTop-$styledSelect.height(),selectMainBottom=mainHeight-selectOffsetTop+$styledSelect.height(),selectScrollTop=selectOffsetTop-$(document).scrollTop(),itemHeight=$listItems.eq(0).outerHeight(),listHeight=$numberOfOptions*itemHeight,maxHeight=0;windowHeight-selectScrollTop<windowHeight/2?($list.addClass("above"),listHeight<selectMainTop?(listHeight=listHeight>(maxHeight=15*itemHeight)?maxHeight:listHeight,$list.height(listHeight)):(selectMainTop=Math.floor(selectMainTop/itemHeight)*itemHeight,$list.height(selectMainTop))):($list.removeClass("above"),listHeight<selectMainBottom?(listHeight=listHeight>(maxHeight=15*itemHeight)?maxHeight:listHeight,$list.height(listHeight)):(selectMainBottom=Math.floor(selectMainBottom/itemHeight)*itemHeight,$list.height(selectMainBottom))),that.posSelectedItem();}else $list.height(0);},this.hideOptionsList=function(){$styledSelect.hasClass("active")&&($styledSelect.removeClass("active").attr({"aria-expanded":"false","aria-activedescendant":""}),$list.hide(),that.setArrowState());},this.posSelectedItem=function(){window.setTimeout((function(){var selectedItem=$(".selected",$list)||$("li",$list).first();selectedItem&&$list.scrollTop($list.scrollTop()+selectedItem.position().top);}),0);},this.scrollInnerList=function(){window.setTimeout((function(){var selectedItem=$(".selected",$list)||$("li",$list).first();clearInterval($setIntervalObj),$setIntervalObj=window.setInterval((function(){clearInterval($setIntervalObj),$setIntervalObj=null,$list.animate({scrollTop:$list.scrollTop()+selectedItem.position().top-$list.height()/2+selectedItem.height()/2},100,"swing");}),100);}),10);},this.setItemPageUpDown=function(x,active){var optionPager={},ret=null,listHeight=$list.outerHeight(),myListItems=$("li",$list),itemHeight=myListItems.eq(0).outerHeight(),blockIndex=Math.floor(listHeight/itemHeight),itemIndex=$(active).index();optionPager[0]=myListItems.get(0),optionPager[$numberOfOptions-1]=myListItems.get($numberOfOptions-1);for(var paging=!0,i=1;paging;)(blockIndex*=i)<$numberOfOptions?(optionPager[blockIndex]=myListItems.get(blockIndex),i+=1):paging=!1;if(33===x){var tmpArr=[];for(var name in optionPager)tmpArr[name]=optionPager[name];for(var len=tmpArr.length;len--;)if(void 0!==tmpArr[len]&&itemIndex>len){ret=tmpArr[len];break;}}else $.each(optionPager,(function(i){if(itemIndex<i)return ret=myListItems.get(i),!1;}));return ret;},this.setArrowState=function(obj){obj=obj||$styledSelect,$styledSelect.hasClass("active")?(obj.nextAll(".icon-dropdown--open").removeClass("hidden"),obj.nextAll(".icon-dropdown--close").addClass("hidden")):(obj.nextAll(".icon-dropdown--open").addClass("hidden"),obj.nextAll(".icon-dropdown--close").removeClass("hidden"));},this.preventEvent=function(e){e.preventDefault(),e.stopImmediatePropagation();},this.doSort=function(ascending){return $sortList((function(a,b){var aText=$(a).text().charAt(0),bText=$
13(b).text().charAt(0);return aText<bText?ascending?-1:1:aText>bText?ascending?1:-1:0;})),$sortedList;};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,once){Drupal.theme.hw_sprungmarken=function(context,settings){context=context||document,settings=settings||Drupal.settings,$(once("hw_sprungmarken","nav.sprungmarken",context)).each((function(){const $navElement=$(this);new function(){const that=this,$body=$("body, html",context),$ul=$("> ul",$navElement),$navToggleBtn=$(".navbar-toggler",context),$header_brand=$(".header-brand:not(.header-brand-gallery)",context),$offset=$($body).hasClass("user-logged-in")?80:10,regex=new RegExp("#inpage-headline-*");$(context).ready((function(){that.initDom();})),this.initDom=function(){if($navElement.hasClass("include-inpage-navigation")){const inPageNavigation=$("ul.inpage-menu",context);let inPageItemLinks,setIntervalFeq,setIntervalObj,inPageLinkArr;setIntervalFeq=0,setIntervalObj=window.setInterval((function(){inPageItemLinks=$("a.page-link",inPageNavigation),inPageItemLinks.length&&(clearInterval(setIntervalObj),setIntervalObj=null,inPageLinkArr=$.makeArray(inPageItemLinks),$.each(inPageLinkArr,(function(){let href=$(this).attr("href"),title=$(this).text();title=title.trim();const navLink=$("<a>",{class:"sr-only sr-only-focusable",href});navLink.text(title);const navLinkItem=$("<li>",{class:"position-absolute"}).append(navLink);$ul.append(navLinkItem);})),that._skipEventHandler()),setIntervalFeq>20&&(clearInterval(setIntervalObj),setIntervalObj=null,that._skipEventHandler()),setIntervalFeq++;}),100);}else that._skipEventHandler();},this._skipEventHandler=function(){$("a",$ul).focusin((function(){$navElement.removeClass("sr-only"),$header_brand.hasClass("animate-scale-0")&&$body.animate({scrollTop:0},250),$(".navbar-collapse",context).hasClass("open")&&$navToggleBtn.trigger("click");})).focusout((function(){$navElement.addClass("sr-only");})).click((function(e){const $hash=this.hash,$target=$($hash,context);let flag=!1;$navElement.addClass("sr-only"),regex.test(this.hash)?that._skipToAndFocus(this):window.setTimeout((function(){$body.animate({scrollTop:"#header-banner"===$hash?0:$target.offset().top},{duration:250,complete:function(){flag||($target.trigger("focus"),flag=!0);}});}),50),e.preventDefault(),e.stopImmediatePropagation();})).keydown((function(e){27===e.which&&($navElement.addClass("sr-only"),e.preventDefault());}));},this._skipToAndFocus=function(self){const $target=$(self.hash);if($target.length<1)return !1;let flag=!1;$body.animate({scrollTop:$target.offset().top-$offset},{duration:500,step:function(now,fx){const newOffset=$target.offset().top-$offset;fx.end!==newOffset&&(fx.end=newOffset);},complete:function(){flag||(window.setTimeout((function(){const tabable=$target.parents("article").first().find("*[tabindex != '-1']:focusable:not(.visually-hidden)").first();tabable.length?tabable.focus():$target.trigger("focus");}),0),flag=!0);}});};}();}));};}(jQuery,Drupal,once),function($,Drupal,Modernizr,once){Drupal.theme.hw_stickyHeaderTable=function(context,settings){Modernizr=Modernizr||window.Modernizr,context=context||document,settings=settings||Drupal.settings,$(once("hw_stickyHeaderTable","#page-content",context)).each((function(){var $page=$(this);new function(){var that=this,$window=$(window),$tables={},$headers=[];$(document).ready((function(event){that.initDom();})),this.initDom=function(event){that._getTables(),that._onScrollWindow(),that._resizer();},this._getTables=function(){if(!($tables=$("table.sticky-row",$page)).length)return !1;that._getTableHeaders();},this._getTableHeaders=function(){var table,row;$tables.each((function(k,v){table=$(this),$headers[k]=[],$("> * > tr",table).each((function(){(row=$(this)).children("th").first().length>0&&$headers[k].push(row);})),that._onScrollTable(table);}));},this._isScrollableTable=function(table){return "none"!==table.parent().css("max-height");},this._onScrollWindow=function(){$window.on("scroll.hw_stickyHeaderTable",$.proxy(that._scrollController,this,{scrollable:!1,resized:!1}));},this._onScrollTable=function(table){that._isScrollableTable(table)&&table.parent().off("scroll.hw_stickyHeaderTable").on("scroll.hw_stickyHeaderTable",$.proxy(that._scrollController,this,{scrollable:!0,resized:!1}));},this._scrollController=function(args){var table,rows,row,prev_row,rowIndex,eLimit,offsetTop,scrollTop;$.each($headers,(function(tableIndex,t){if(table=$tables.eq(tableIndex),rows=$(this),args.resized&&(args.scrollable=that._isScrollableTable(table)),args.scrollable){if(!that._isScrollableTable(table))return;if(rows.length>1)for(rowIndex=0;rowIndex<rows.length;rowIndex++)row=rows[rowIndex],prev_row=[rowIndex-1] in rows?rows[rowIndex-1]:null,offsetTop=row.offset().top-table.offset().top,scrollTop=table.parent().scrollTop(),eLimit=offsetTop-scrollTop,that._controllSickyHeaderRows(prev_row,eLimit,rowIndex);}else{if(rows.length>1)for(rowIndex=0;rowIndex<rows.length;rowIndex++)row=rows[rowIndex],prev_row=[rowIndex-1] in rows?rows[rowIndex-1]:null,offsetTop=row.offset().top,scrollTop=$(window).scrollTop(),eLimit=offsetTop-scrollTop,that._controllSickyHeaderRows(prev_row,eLimit,rowIndex);}}));},this._controllSickyHeaderRows=function(prev_row,eLimit,rowIndex){var bound=0;prev_row&&(bound=prev_row.outerHeight()),eLimit<bound&&rowIndex>0&&that._hideStickyHeaderRows(prev_row,bound,eLimit),eLimit>0&&that._showStickyHeaderRows(prev_row,bound,eLimit);},this._hideStickyHeaderRows=function(prev_row,bound,eLimit){var _th;prev_row&&(_th=$("> th",prev_row),eLimit>0?_th.css({top:-(bound-eLimit)}):_th.hasClass("z-index-n1")||_th.addClass("z-index-n1"));},this._showStickyHeaderRows=function(prev_row,bound,eLimit){var _th;prev_row&&((_th=$("> th",prev_row)).hasClass("z-index-n1")&&_th.removeClass("z-index-n1"),eLimit<bound?_th.css({top:-(bound-eLimit)}):-1!==_th.css("top")&&_th.css({top:-1}));},this._resizer=function(){Modernizr.touchevents?$window.on("orientationchange.hw_stickyHeaderTable",(function(e){that._getTables(),that._scrollController({scrollable:!1,resized:!0});})):$window.smartresize((function(){that._getTables(),that._scrollController({scrollable:!1,resized:!0});}));};}();}));};}(jQuery,Drupal,Modernizr,once),function($,Drupal,once){Drupal.behaviors.hw_tippy={},Drupal.behaviors.hw_tippy={attach:function(context,settings){if(window.tippy){var $window=$(window);tippy.setDefaultProps({theme:"hessenweb",placement:"right-start",popperOptions:{strategy:"fixed"},aria:{content:"auto",expanded:"auto"}}),$(once("hw_tippy",".js-webform-element-help",context)).each((function(){var _this=this,$element=$(this);$(document).ready((function(event){var instance=_this._tippy,windowWidth=parseInt($window.outerWidth());windowWidth<1366?instance.setProps({placement:"top"}):instance.setProps({placement:"right-start"}),$window.smartresize((function(e){instance.hide(),(windowWidth=parseInt($(this).outerWidth()))<1366?instance.setProps({placement:"top"}):instance.setProps({placement:"right-start"});})),$element.on("focusin.hw_tippy",(function(){var fieldset,self=$(this),myID="",myDescBy="";if(self.next(".hw-aria-tooltip").length<1){(myID=self.parent().attr("for"))||(fieldset=self.parents("fieldset").first(),myID=fieldset.attr("id"),myDescBy=fieldset.attr("aria-describedby"));var aria_help=$('<div id="'+myID+'--hidden" class="hw-aria-tooltip visually-hidden" role="note"></div>');aria_help.html(self.data("webform-help")),self.after(aria_help),window.setTimeout((function(){self.attr({"aria-expanded":"true","aria-describedby":myID+"--hidden"+(myDescBy?" "+myDescBy:"")});}),1e3);}})).on("focusout.hw_tippy",(function(){var self=$(this);self.attr({"aria-expanded":"false","aria-describedby":null}),self.nextAll(".hw-aria-tooltip").remove();})).on("keydown.hw_tippy",(function(e){var self=$(this);13===e.which&&window.setTimeout((function(){var myID=self.parent().attr("for");
13$("#"+myID,context).focus();}),0);}));}));}));}}};}(jQuery,Drupal,once),function($,Drupal,drupalSettings,Modernizr,Cookies,once,DrupalTwoClickSolution){Modernizr=Modernizr||window.Modernizr,DrupalTwoClickSolution=DrupalTwoClickSolution||{},Drupal.behaviors.TwoClickSolution={attach:function(context,settings){context=context||document,settings=settings||Drupal.settings,$(once("TwoClickSolution",".main-content",context)).each((function(){var mainPage=$(this);mainPage.html().trim().length<1||$(document).ready((function(){DrupalTwoClickSolution.var={context,settings,main_page:mainPage,tcs_cta:$("svg.social-media-settings",context).parent(".nav-link"),media_article:$(".media-tcs-article",mainPage),imageLayer:$(".social-privacy-two-click-layer",context),modal_layer:$("#modal-two-click-solution",context),channel_list:["facebook","twitter","youtube","instagram","mastodon"],modal_popup_contents:drupalSettings.modal_tcs.popup_content,tcs_data:{facebook:{name:"Facebook",status:"0",switchable:"1"},twitter:{name:"X",status:"0",switchable:"1"},youtube:{name:"YouTube",status:"0",switchable:"1"},instagram:{name:"Instagram",status:"0",switchable:"1"},mastodon:{name:"Mastodon",status:"0",switchable:"1"}},showAllChannels:!1,saveBtn:{},closeBtn:{},videoRatio:16/9,maxHeight:550,breakpointXS:375,breakpointSM:576,breakpointMD:768,breakpointLG:1024,breakpointXXXL:1680,timeOut:250},DrupalTwoClickSolution.init(),DrupalTwoClickSolution.var.tcs_cta.on("click.TwoClickSolution",(function(e){e.preventDefault(),DrupalTwoClickSolution.setShowAllChannelsState(!0),DrupalTwoClickSolution.showModalLayer(null,null);})).on("focus.TwoClickSolution",(function(e){e.preventDefault();var self=$(this);self.keydown((function(e){e.stopImmediatePropagation(),13===e.which&&window.setTimeout((function(){self.trigger("click.TwoClickSolution");}),0);}));})),DrupalTwoClickSolution.var.imageLayer.on("click.TwoClickSolution",(function(e){e.preventDefault();var showAllChannels,matches=$(this).parent().attr("class").match(/media\-type\-([a-zA-Z0-9\-]+)/i),channel_name="";null!==matches?matches.hasOwnProperty(1)?(channel_name=matches[1],showAllChannels=!1):showAllChannels=!1:showAllChannels=!0,DrupalTwoClickSolution.setShowAllChannelsState(showAllChannels),DrupalTwoClickSolution.showModalLayer($(this),channel_name);})).on("focus.TwoClickSolution",(function(e){e.preventDefault();var self=$(this);self.keydown((function(e){e.stopImmediatePropagation(),13===e.which&&window.setTimeout((function(){self.trigger("click.TwoClickSolution");}),0);}));}));}));}));},detach:function(context,settings,trigger){$(once.remove("TwoClickSolution",".main-content",context)).each((function(){}));}},DrupalTwoClickSolution.init=function(){$.each(drupalSettings.app_integration,(function(k,v){DrupalTwoClickSolution.var.channel_list.push("appint-"+v.id),DrupalTwoClickSolution.var.tcs_data["appint-"+v.id]={name:v.subtitle,status:"0",switchable:"1"};})),DrupalTwoClickSolution.loadCookies(),DrupalTwoClickSolution.checkAccess(null),DrupalTwoClickSolution.var.media_article.each((function(k,v){$(this).attr("id","media-tcs-article-"+k);}));},DrupalTwoClickSolution.initModal=function(){DrupalTwoClickSolution.var.modal_layer.modal({backdrop:"static",keyboard:!0,focus:!0,show:!1});},DrupalTwoClickSolution.showModalLayer=function(layer,channel_name){DrupalTwoClickSolution.initModal();var myModal=DrupalTwoClickSolution.var.modal_layer;DrupalTwoClickSolution.var.saveBtn=$("#modal-save-btn",myModal),DrupalTwoClickSolution.var.closeBtn=$(".close",myModal),DrupalTwoClickSolution.var.saveBtn.on("click.hw_twoClickSolution",(function(e){DrupalTwoClickSolution.saveTCSonClick(layer),DrupalTwoClickSolution.refocusAfterCloseModal(layer);})).keydown((function(e){if(9===e.which){if(e.shiftKey){var selectStatus=$("#selectTable .selectStatus:not(.d-none)",DrupalTwoClickSolution.var.modal_layer).last();window.setTimeout((function(){$(".selectStatusBtn",selectStatus).focus();}),0);}else window.setTimeout((function(){DrupalTwoClickSolution.var.closeBtn.focus();}),0);e.preventDefault();}})),DrupalTwoClickSolution.var.closeBtn.click((function(e){DrupalTwoClickSolution.hideModalLayer();}
13)).keydown((function(e){9===e.which&&(e.shiftKey?window.setTimeout((function(){DrupalTwoClickSolution.var.saveBtn.focus();}),0):window.setTimeout((function(){$(".modal-body a",DrupalTwoClickSolution.var.modal_layer).first().focus();}),0),e.preventDefault());})),DrupalTwoClickSolution.displayAllStatus(myModal,layer,channel_name),myModal.modal("handleUpdate").modal("show"),myModal.on("shown.bs.modal",(function(e){$(this).focus();})),myModal.keydown((function(e){$(this).is(":focus")&&9===e.which&&e.shiftKey&&(DrupalTwoClickSolution.var.saveBtn.focus(),e.preventDefault());})),window.setTimeout((function(){var tabables=myModal.find("*[tabindex != '-1']:focusable"),index=tabables.index(this);tabables.eq(index+1).keydown((function(e){9===e.which&&e.shiftKey&&(DrupalTwoClickSolution.var.closeBtn.focus(),e.preventDefault());}));}),4*DrupalTwoClickSolution.var.timeOut),myModal.on("hidden.bs.modal",(function(e){DrupalTwoClickSolution.var.saveBtn.off("click.hw_twoClickSolution"),DrupalTwoClickSolution.setShowAllChannelsState(!1),DrupalTwoClickSolution.disposeModalLayer(),DrupalTwoClickSolution.refocusAfterCloseModal(layer);})),layer||DrupalTwoClickSolution.scrollTo(),DrupalTwoClickSolution.modalResizer(myModal);},DrupalTwoClickSolution.hideModalLayer=function(){DrupalTwoClickSolution.var.modal_layer.modal("hide");},DrupalTwoClickSolution.disposeModalLayer=function(){DrupalTwoClickSolution.var.modal_layer.modal("dispose");},DrupalTwoClickSolution.displayAllStatus=function(modal,layer,channel_name){DrupalTwoClickSolution.loadCookies();const modalPopupContent=$("#modalPopupContent",modal),popup_content=DrupalTwoClickSolution.var.modal_popup_contents[channel_name]||DrupalTwoClickSolution.var.modal_popup_contents.default;modalPopupContent.empty().append(popup_content);var e='<tbody><tr class="selectStatus header"><td '+(DrupalTwoClickSolution.var.showAllChannels?"":'class="d-none"')+'><span id="perma_status_all" class="selectStatusBtn" role="switch" aria-checked="false" tabindex="0"><div class="switch" aria-labelledby="label_perma_status_all"><span class="slider"></span></div></span></td><td '+(DrupalTwoClickSolution.var.showAllChannels?"":'class="d-none"')+'><span id="label_perma_status_all" class="smclabel" title="'+Drupal.t("All")+'" aria-label="'+Drupal.t("Approval and activation of all social media channels")+'">'+Drupal.t("All")+"</span></td></tr>";$.each(DrupalTwoClickSolution.var.tcs_data,(function(t,s){e+='<tr class="status'+s.status+" selectStatus"+(DrupalTwoClickSolution.var.showAllChannels?"0"===s.switchable?" d-none":"":channel_name===t?" single":" d-none")+'" name="'+t+'"><td><span id="perma_status_'+t+'_follow" class="selectStatusBtn status'+s.status+'" data-switchable="'+s.switchable+'" role="switch" aria-checked="'+("0"===s.status?"false":"true")+'" tabindex="0"><div class="switch" aria-labelledby="label_perma_status_'+t+'_follow"><span class="slider"></span></div></span></td><td><span id="label_perma_status_'+t+'_follow" class="smclabel" title="'+s.name+'" aria-label="'+Drupal.t("Approval and activation of the social media channel:")+" "+t+'">'+s.name+"</span></td></tr>";})),e+="</tbody>";var selectTable=$("#selectTable",modal);selectTable.empty().append(e);var selectStatusBtn=$(".selectStatusBtn",selectTable);DrupalTwoClickSolution.checkSelectedStatusBtns(selectStatusBtn),selectStatusBtn.on("click.TwoClickSolution",(function(event){event.preventDefault(),event.stopImmediatePropagation(),$(this).toggleClass("status0").toggleClass("status1"),"false"===$(this).attr("aria-checked")?$(this).attr("aria-checked","true"):$(this).attr("aria-checked","false"),"perma_status_all"===$(this).attr("id")?$(this).hasClass("status1")?($(this).removeClass("status0").addClass("status1").attr("aria-checked","true"),selectStatusBtn.each((function(){"perma_status_all"!==$(this).attr("id")&&1===$(this).data("switchable")&&$(this).removeClass("status0").addClass("status1").attr("aria-checked","true");}))):($(this).removeClass("status1").addClass("status0").attr("aria-checked","false"),selectStatusBtn.each((function(){"perma_status_all"!==$(this).attr("id")&&1===$(this).data("switchable")&&$(this).removeClass("status1").addClass("status0").attr("aria-checked","fal
13se");}))):DrupalTwoClickSolution.checkSelectedStatusBtns(selectStatusBtn);})).on("focus.TwoClickSolution",(function(event){event.preventDefault(),event.stopImmediatePropagation();var self=$(this);self.keypress((function(e){e.stopImmediatePropagation(),13!==e.which&&32!==e.which||window.setTimeout((function(){self.trigger("click.TwoClickSolution");}),0);}));})),$(".smclabel",selectTable).on("click.TwoClickSolution",(function(){$(this).parents(".selectStatus").first().find(".selectStatusBtn").trigger("click.TwoClickSolution");}));},DrupalTwoClickSolution.checkSelectedStatusBtns=function(selectStatusBtn){var allSelected=!0;selectStatusBtn.each((function(){"perma_status_all"!==$(this).attr("id")&&1===$(this).data("switchable")&&$(this).hasClass("status0")&&(allSelected=!1);})),allSelected?selectStatusBtn.eq(0).addClass("status1").attr("aria-checked","true"):selectStatusBtn.eq(0).removeClass("status1").attr("aria-checked","false");},DrupalTwoClickSolution.saveTCSonClick=function(layer){var scrollID;layer&&(scrollID=layer.parents(".media-tcs-article").first().attr("id"),$(".social-privacy-wrapper","#"+scrollID).addClass("layer-activated")),DrupalTwoClickSolution.saveCookies(),DrupalTwoClickSolution.checkAccess(layer),DrupalTwoClickSolution.hideModalLayer(),layer&&window.setTimeout((function(){scrollID||(scrollID=layer.parents(".media-tcs-article").first().attr("id")),DrupalTwoClickSolution.scrollTo("#"+scrollID);}),4*DrupalTwoClickSolution.var.timeOut);},DrupalTwoClickSolution.refocusAfterCloseModal=function(layer){window.setTimeout((function(){layer?layer.focus():DrupalTwoClickSolution.var.tcs_cta.focus();}),DrupalTwoClickSolution.var.timeOut);},DrupalTwoClickSolution.setShowAllChannelsState=function(state){DrupalTwoClickSolution.var.showAllChannels=state;},DrupalTwoClickSolution.loadCookies=function(){if(DrupalTwoClickSolution.ifSavedCookies()){var e=sessionStorage.getItem("tcs_data");if(e){var sessionData=JSON.parse(e);$.each(sessionData,(function(k,v){k in DrupalTwoClickSolution.var.tcs_data&&sessionData[k].name!==DrupalTwoClickSolution.var.tcs_data[k].name&&(sessionData[k].name=DrupalTwoClickSolution.var.tcs_data[k].name);})),Object.keys(DrupalTwoClickSolution.var.tcs_data).length>Object.keys(sessionData).length&&(sessionData=$.extend({},DrupalTwoClickSolution.var.tcs_data,sessionData)),DrupalTwoClickSolution.var.tcs_data=sessionData;}}},DrupalTwoClickSolution.ifSavedCookies=function(){try{return "1"===sessionStorage.getItem("tcs_data_saved");}catch(e){return !1;}},DrupalTwoClickSolution.saveCookies=function(){$.each(DrupalTwoClickSolution.var.tcs_data,(function(e,t){$('tr[name="'+e+'"] .status1').length?t.status="1":t.status="0";}));var e=DrupalTwoClickSolution.var.tcs_data;sessionStorage.setItem("tcs_data",JSON.stringify(e)),sessionStorage.setItem("tcs_data_saved","1");},DrupalTwoClickSolution.checkAccess=function(layer){var i=1;$.each(DrupalTwoClickSolution.var.channel_list,(function(e,t){try{if("0"===DrupalTwoClickSolution.var.tcs_data[t].status)switch(Drupal.AblePlayerPlugin.resetCalledInstances(),t){case "youtube":Drupal.AblePlayerPlugin.resetVideoFramesController();case "youtube":case "facebook":case "instagram":case "twitter":case "mastodon":$(".media-type-"+t,DrupalTwoClickSolution.var.main_page).each((function(){$(this).attr("id","smc-wrapper-"+i++),DrupalTwoClickSolution.unloadSocialMediaChannel($(this));}));break;default:/^appint\-([\d]+)$/i.test(t)&&DrupalTwoClickSolution.unloadApplicationIntegrationFrame(t);}else switch(t){case "youtube":Drupal.AblePlayerPlugin.loadVideoFrameController(layer),layer&&layer.focus();case "youtube":case "facebook":case "instagram":case "twitter":case "mastodon":$(".media-type-"+t,DrupalTwoClickSolution.var.main_page).each((function(){$(this).attr("id","smc-wrapper-"+i++),DrupalTwoClickSolution.loadSocialMediaChannel($(this));}));break;default:/^appint\-([\d]+)$/i.test(t)&&DrupalTwoClickSolution.loadApplicationIntegrationFrame(t);}}catch(s){}}));},DrupalTwoClickSolution.checkAccessByChannel=function(channel){return !!DrupalTwoClickSolution.ifSavedCookies()&&"0"!==DrupalTwoClickSolution.var.tcs_data[channel].status;},DrupalTwoClickSolution.loadSocialMediaChannel=function(obj){$(".smcFrameLayer",obj).removeClass("showlayer").hide();var renderedSMC=$(".renderedSMC",obj);if(renderedSMC.length>0)renderedSMC.css({visibility:"visible"}).show();
13else{var channel_code=$("textarea",obj).val();switch(!0){case obj.hasClass("media-type-facebook"):DrupalTwoClickSolution.renderFacebookCode(obj);break;case obj.hasClass("media-type-twitter"):DrupalTwoClickSolution.renderTwitterCode(obj,channel_code);break;case obj.hasClass("media-type-youtube"):DrupalTwoClickSolution.renderYoutubeCode(obj,channel_code);break;case obj.hasClass("media-type-instagram"):DrupalTwoClickSolution.renderInstagramCode(obj,channel_code);break;case obj.hasClass("media-type-mastodon"):DrupalTwoClickSolution.renderMastodonCode(obj);break;default:obj.append('<div class="renderedSMN">'+channel_code+"</div>"),$(".renderedSMC",obj).css({visibility:"hidden"}).hide();}}},DrupalTwoClickSolution.unloadSocialMediaChannel=function(obj){var renderedSMC=$(".renderedSMC",obj);switch(!0){case obj.hasClass("media-type-facebook"):renderedSMC.length>0&&$("iframe",renderedSMC).attr("src").match(/\/plugins\/video.php/g)&&renderedSMC.remove();break;case obj.hasClass("media-type-twitter"):renderedSMC.length>0&&$(".twitter-tweet",renderedSMC).length>0&&renderedSMC.remove();break;case obj.hasClass("media-type-youtube"):case obj.hasClass("media-type-mastodon"):renderedSMC.length>0&&renderedSMC.remove();}$(".smcFrameLayer",obj).addClass("showlayer").show(),$(".renderedSMC",obj).css({visibility:"hidden"}).hide();},DrupalTwoClickSolution.loadApplicationIntegrationFrame=function(t){var iframeContainer=$("#"+t,DrupalTwoClickSolution.var.main_page);if(!$("iframe",iframeContainer).length){var iframeCode=iframeContainer.find("textarea").val();$('> div[class^="embed-"]',iframeContainer).removeClass("unload").append(iframeCode),$(".smcFrameLayer",iframeContainer).removeClass("showlayer").hide(),once.remove("hw_anwendungsintegration",$(iframeContainer.parent().get(0))),Drupal.attachBehaviors(DrupalTwoClickSolution.var.context,DrupalTwoClickSolution.var.settings);}},DrupalTwoClickSolution.unloadApplicationIntegrationFrame=function(t){var iframeContainer=$("#"+t,DrupalTwoClickSolution.var.main_page);$("iframe",iframeContainer).length&&($("iframe",iframeContainer).remove(),$('> div[class^="embed-"]',iframeContainer).addClass("unload"),$(".smcFrameLayer",iframeContainer).addClass("showlayer").show());},DrupalTwoClickSolution.renderMastodonCode=function(obj){if(!$(".smcFrameLayer",obj).hasClass("showlayer")){var renderedSMC,channel_code=$("textarea",obj).val();DrupalTwoClickSolution.fixMastodonTimeLineResponsive(obj,channel_code),Modernizr.touchevents?$(window).on("orientationchange.TwoClickSolution",(function(e){window.setTimeout((function(){(renderedSMC=$(".renderedSMC",obj).remove()).length>0&&renderedSMC.remove(),DrupalTwoClickSolution.fixMastodonTimeLineResponsive(obj,channel_code);}),DrupalTwoClickSolution.var.timeOut);})):$(window).smartresize((function(){(renderedSMC=$(".renderedSMC",obj).remove()).length>0&&renderedSMC.remove(),DrupalTwoClickSolution.fixMastodonTimeLineResponsive(obj,channel_code);})),channel_code.match(/\<script(.*?)\<\/script\>/g)||DrupalTwoClickSolution.fixMastodonTimeLine();}},DrupalTwoClickSolution.fixMastodonTimeLineResponsive=function(obj,channel_code){let type="";channel_code.match(/\/([\d]+)\/embed/g)?type="toot":channel_code.match(/\/api\/v1\/accounts/g)&&(type="api_v1_feed"),DrupalTwoClickSolution.renderedSMCMastodon(obj,channel_code,type);},DrupalTwoClickSolution.renderedSMCMastodon=function(obj,channel_code,type){switch($.ajaxPrefilter((function(options){if(-1!==$.inArray(options.namespace,["mastodon-json-feed"])&&$("link.mastodon-custom-styles","head").length<1){const stylesheet=['<link class="font-awesome-styles" rel="stylesheet" href="/modules/custom/hw_core/css/font-awesome-4.7.0.min.css" />','<link class="mastodon-custom-styles" rel="stylesheet" href="/themes/custom/hw_radix_standard/assets/css/hw_mastodon.style.css" />'];let headerLastLinkTag=$("> link","head").last();for(let i in stylesheet)headerLastLinkTag.after(stylesheet[i]);}})),obj.prepend('<div class="spinnerLoader"><div class="loaderimage"><div class="pulser"></div></div></div>'),type){case "api_v1_feed":{let pinnedToots,externalFeedUrl=channel_c
13ode.match(/(https?:\/\/[^\"]+)/gi),dataHeader={},include_pins=!0,items={},_item={},medias={},reblogged=!1,tmContent="";if(externalFeedUrl.length>0){let url=externalFeedUrl[0],useHead="true"===DrupalTwoClickSolution.getUrlParameter(url,"header"),options={offset:0,items_per_page:10,exclude_replies:"",exclude_reblogs:"",only_media:"",pinned:""};url.match(/([\?&]+)limit=/g)||(url+=(url.includes("?")?"&":"?")+"limit=40"),url.match(/([\?&]+)exclude_replies=/g)?options.exclude_replies=String(DrupalTwoClickSolution.getUrlParameter(url,"exclude_replies")):url+=(url.includes("?")?"&":"?")+"exclude_replies=true",url.match(/([\?&]+)only_media=/g)&&(options.only_media=String(DrupalTwoClickSolution.getUrlParameter(url,"only_media")));const pinnedMatch=url.match(/[?&]pinned=([^&]+)/gi);pinnedMatch&&("false"===String(DrupalTwoClickSolution.getUrlParameter(url,"pinned"))?include_pins=!1:url=url.replace(pinnedMatch[0],"")),$.ajax({url,dataType:"json",async:!1,cache:!1,namespace:"mastodon-json-feed",beforeSend:function(){include_pins&&DrupalTwoClickSolution.getMastodonPinnedTimelineToots((function(pToots){pinnedToots=pToots||null;}),url);},success:function(data){pinnedToots&&(data=pinnedToots.concat(data)),data.length&&(tmContent+='<div class="mt-timeline position-relative p-0">',tmContent+='<div class="mt-body h-100">',data[0].account&&(tmContent+='<div id="meta-'+data[0].account.id+'" class="meta">',useHead&&(dataHeader={id:data[0].account.id,headerImage:data[0].account.header,accountUrl:data[0].account.url,displayName:data[0].account.display_name,avatarImage:data[0].account.avatar,content:data[0].account.note,statusesCount:data[0].account.statuses_count,followingCount:data[0].account.following_count,followersCount:data[0].account.followers_count},tmContent+=DrupalTwoClickSolution.templateMastodonTimelineHeaderHtml(dataHeader,type)),tmContent+="</div>"),tmContent+="</div></div>",obj.append('<div class="renderedSMC">'+tmContent+"</div>"),items={},_item={},$.each(data,(function(i,item){"public"===item.visibility&&(item.reblog?(reblogged=!0,_item=item.reblog):(reblogged=!1,_item=item),items[i]={channel:item.account.url,sharedby:item.account.display_name,reblogged,account:_item.account,tootID:_item.id,guid:_item.account.url,link:_item.url,pubDate:_item.created_at||null,content:_item.content||null,spoilerText:item.spoiler_text||"",repliesCount:_item.replies_count||0,reblogsCount:_item.reblogs_count||0,favouritesCount:_item.favourites_count||0,poll:item.poll||null,sensitive:item.sensitive||!1,pinned:item.pinned||null,media:null},medias={},$.each(_item.media_attachments,(function(m,media){medias[m]={url:"image"===media.type?media.url:media.preview_url,type:media.type||null,description:media.description||null};})),Object.keys(medias).length>0&&(items[i].media=medias));})),DrupalTwoClickSolution.appendMastodonToots_JSON(obj,items,options,!0));},complete:function(){$(".renderedSMC",obj).css({visibility:"visible",height:DrupalTwoClickSolution.getCurrentResponsiveWindowHeight(600)+"px"}),$(".spinnerLoader",obj).remove(),obj.height("auto");},error:function(jqXHR,textStatus,errorThrown){return console.error("AJAX-MASTODON-ERROR (JSON): "+url+"!"),console.error(textStatus+" "+jqXHR.status),!1;}});}break;}case "toot":{obj.append('<div class="renderedSMC">'+channel_code+"</div>");let setIntervalFeq,setIntervalObj,iframe,renderedSMC=$(".renderedSMC",obj),oHeight=Math.ceil(obj.width()/DrupalTwoClickSolution.var.videoRatio);obj.height(oHeight),setIntervalFeq=0,setIntervalObj=window.setInterval((function(){iframe=$("iframe",obj),iframe.length>0&&(clearInterval(setIntervalObj),setIntervalObj=null,setIntervalFeq=0,setIntervalObj=window.setInterval((function(){let wHeight=DrupalTwoClickSolution.getCurrentResponsiveWindowHeight(600);"toot"===type&&iframe[0].hasAttribute("height")&&(clearInterval(setIntervalObj),setIntervalObj=null,renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto"),DrupalTwoClickSolution.setFocusToLayerActivatedElement(obj,iframe,6)),setIntervalFeq>20&&(clearInterval(setIntervalObj),setIntervalObj=null,iframe.attr("height",wHeight).attr("scrolling","yes").css({height:wHeight+"px",overflow:"scroll"}),renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto")),setIntervalFeq++;}),DrupalTwoClickSolution.var.timeOut)),setIntervalFeq>40&&(clearInterval(setIntervalObj),setIntervalObj=null,renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto"),console.error('Media-channel "MASTODON" not ready after 10 seconds - do it so!')),setIntervalFeq++;}),DrupalTwoClickSolution.var.timeOut);break;}default:obj.append('<div class="renderedSMC" style="visibility: visible !important;"><div class="mb-3 py-5" style="background-color: #fef5f1;"><h3>Media-channel "MASTODON": incorrect api code!</h3><p class="px-4 text-align-left" style="font-size: 1rem; word-break: break-word;">
13'+channel_code.replace("<","&lt;").replace(">","&gt;")+"</p></div></div>"),$(".spinnerLoader",obj).remove(),obj.height("auto");}},DrupalTwoClickSolution.getMastodonPinnedTimelineToots=function(callback,url){$.ajax({url:url+(url.includes("?")?"&":"?")+"pinned=true",dataType:"json",async:!1,cache:!1,namespace:"mastodon-json-feed",success:function(data){data.length?($.each(data,(function(i,toot){data[i].pinned=!0;})),callback(data)):callback(null);},error:function(jqXHR,textStatus,errorThrown){return console.error("AJAX-MASTODON-ERROR (JSON): "+url+"!"),console.error(textStatus+" "+jqXHR.status),!1;}});},DrupalTwoClickSolution.templateMastodonTimelineHeaderHtml=function(data,type){let ret='<div class="header d-flex"'+(data.headerImage?' style="background-image:url('+data.headerImage+')"':"")+'><div class="header-left"><a class="logo-link'+("api_v1_feed"===type?" pos-bottom":"")+'" href="'+data.accountUrl+'" rel="noopener noreferrer" title="'+data.displayName+'" target="_blank"><img class="avatar circular" src="'+data.avatarImage+'" alt="'+data.displayName+'" /><span class="sr-only">'+Drupal.t("Opens in a new window")+'</span></a></div><div class="description header-right text-align-left"><a class="header-title" rel="noopener noreferrer" target="_blank" href="'+data.accountUrl+'">'+data.displayName+'<span class="sr-only">'+Drupal.t("Opens in a new window")+"</span></a>"+DrupalTwoClickSolution.prepareMastodonAllHtmlLinks(data.content,"_blank")+"</div></div>";return data.statusesCount&&(ret+='<div class="header-sub border-bottom w-100 d-flex"><div class="details-counters ml-auto mr-auto"><div class="counter active"><a class="d-block" href="'+data.accountUrl+'" title="'+data.statusesCount+'" rel="noopener noreferrer" target="_blank"><span class="counter-number">'+DrupalTwoClickSolution.numFormatter(data.statusesCount)+'</span><span class="counter-label">'+Drupal.formatPlural(parseInt(data.statusesCount),"Post","Posts")+'</span><span class="sr-only">'+Drupal.t("Opens in a new window")+'</span></a></div><div class="counter"><a class="d-block" href="'+data.accountUrl.replace("/@","/users/")+'/following" title="'+data.followingCount+'" rel="noopener noreferrer" target="_blank"><span class="counter-number">'+DrupalTwoClickSolution.numFormatter(data.followingCount)+'</span><span class="counter-label">'+Drupal.t("Follows")+'</span><span class="sr-only">'+Drupal.t("Opens in a new window")+'</span></a></div><div class="counter"><a class="d-block" href="'+data.accountUrl.replace("/@","/users/")+'/followers" title="'+data.followersCount+'" rel="noopener noreferrer" target="_blank"><span class="counter-number">'+DrupalTwoClickSolution.numFormatter(data.followersCount)+'</span><span class="counter-label">'+Drupal.formatPlural(parseInt(data.followersCount),"Follower","Followers")+'</span><span class="sr-only">'+Drupal.t("Opens in a new window")+"</span></a></div></div></div>"),ret;},DrupalTwoClickSolution.appendMastodonToots_JSON=function(obj,items,options,init){const mt_body=$(".mt-body",obj),maxItems=Object.keys(items).length;let tootID,guidData,scrollID,counter=0;if($(".mt-loadOlder",mt_body).remove(),$.each(items,(function(k,item){if(k>=options.offset+options.items_per_page)return !1;if(k<options.offset)return;let toot="";tootID=item.tootID;const regex=new RegExp(/\/\/([\S]+)\/@([\S]+)/gi);if(guidData=regex.exec(item.guid),0===counter&&$("> .mt-toot",mt_body).length>0&&(scrollID=tootID),toot+='<div id="'+tootID+'" class="mt-toot border-bottom position-relative m-0 p-3" data-location="'+item.link+'">',toot+='<a class="mt-open-post-icon position-absolute" href="'+item.link+'" title="'+Drupal.t("Node link")+'" rel="noopener noreferrer" target="_blank"><i aria-label="'+Drupal.t("Node link")+'" class="fa fa-external-link"></i><span class="sr-only">'+Drupal.t("Opens in a new window")+"</span></a>",item.reblogged&&(toot+='<div class="item-title text-align-left mb-3"><span><a href="'+item.channel+'" target="_blank" rel="noopener noreferrer"><span class="toot-visibility-fa-icon"><i aria-hidden="true" class="fa fa-fw fa-retweet"></i></span>'+item.sharedby+'<span class="sr-only">'+Drupal.t("Opens in a new window")+"</span></a> "+Drupal.t("shared")+"</span></div>"),item.pinned&&(toot+='<div class="item-title text-align-left mb-3"><span><span class="toot-visibility-fa-icon"><i aria-hidden="true" class="fa fa-fw fa-thumb-tack"></i></span>'+Drupal.t("Pinned post")+"</span></div>"),toot+='<div class="author d-flex mb-3"><a href="'+item.account.url+'" class="mt-avatar" title="'+item.account.display_name+'" rel="noopener noreferrer" target="_blank"><img class="avatar" src="'+item.account.avatar+'" alt="'+item.account.display_name+' avatar" /><span class="sr-only">'+Drupal.t("Opens in a new window")+"</span></a>",toot+='<div class="mt-user d-flex mx-3 text-align-left"><a href="'+item.account.url+'" rel="noopener noreferrer" target="_blank">'+DrupalTwoClickSolution.replaceMastodonShortcutToEmojisImage(item,item.account.display_name)+'<span class="visually-hidden"> post</span><span class="sr-only">'+Drupal.t("Opens in a new window")+'</span></a><div class="author-fullname">@'+guidData[2]+"<wbr>@"+guidData[1]+"</div></div></div>",item.content&&(toot+='<div class="toot-text text-align-left">',item.spoilerText?toot+="<p>"+DrupalTwoClickSolution.prepareMastodonAllHtmlLinks(item.spoilerText,"_blank")+'<a id="spoilertext-'+tootID+'" href="#" class="mt-read-more ml-3" rel="noopener noreferrer">'+Drupal.t("Show more").toLowerCase()+'...</a></p><span class="more-spoilertext">'+DrupalTwoClickSolution.prepareMastodonAllHtmlLinks(item.content,"_blank")+"</span>":toot+=DrupalTwoClickSolution.prepareMastodonAllHtmlLinks(item.content,"_blank"),toot+="</div>"),item.media&&(toot+=DrupalTwoClickSolution.replaceMastodonTootMedias(item.media,item.sensitive)),item.poll){let pollOption="";for(let i in item.poll.options)pollOption+="<li>"+item.poll.options[i].title+"</li>";toot+='<div class="toot-poll"><ul>'+pollOption+"</ul></div>";}toot+='<div class="row">',toot+='<div class="toot-action-bar text-align-left col-5 col-md-6"><a class="action-bar-button icon-button mr-2" href="https://'+guidData[1]+"/interact/"+tootID+'?type=reply" title="'+Drupal.t("Reply to this post")+'" rel="noopener noreferrer" target="_blank"><i aria-hidden="true" class="fa fa-reply fa-fw"></i><span aria-hidden="true" class="icon-button-counter">
13'+DrupalTwoClickSolution.numFormatter(item.repliesCount)+'</span><span class="sr-only">'+Drupal.t("Opens in a new window")+'</span></a><a class="action-bar-button icon-button mr-2" href="https://'+guidData[1]+"/interact/"+tootID+'?type=reblog" title="'+Drupal.t("Share this post")+'" rel="noopener noreferrer" target="_blank"><i aria-hidden="true" class="fa fa-retweet fa-fw"></i><span aria-hidden="true" class="icon-button-counter d-none d-md-inline-flex">'+DrupalTwoClickSolution.numFormatter(item.reblogsCount)+'</span><span class="sr-only">'+Drupal.t("Opens in a new window")+'</span></a><a class="action-bar-button icon-button" href="https://'+guidData[1]+"/interact/"+tootID+'?type=favourite" title="'+Drupal.t("Favorite this post")+'" rel="noopener noreferrer" target="_blank"><i aria-hidden="true" class="fa fa-star fa-fw"></i><span aria-hidden="true" class="icon-button-counter d-none d-md-inline-flex">'+DrupalTwoClickSolution.numFormatter(item.favouritesCount)+'</span><span class="sr-only">'+Drupal.t("Opens in a new window")+"</span></a></div>";const pubDate=DrupalTwoClickSolution.getMastodonTootTimeSince(Date.parse(item.pubDate),6)||DrupalTwoClickSolution.formatMastodonTootDateTime(item.pubDate);toot+='<div class="toot-date text-align-right col-7 col-md-6"><a href="'+item.link+'" title="'+Drupal.t("Node link")+'" rel="noopener noreferrer" target="_blank"><span class="toot-visibility-fa-icon"><i title="'+Drupal.t("Published")+':" class="fa fa-globe"></i></span>'+pubDate+"</a></div>",toot+="</div>",toot+="</div>",mt_body.append(toot),$("a#spoilertext-"+tootID,mt_body).click((function(event){event.preventDefault(),event.stopPropagation();const spText=$(this).parent().siblings(".more-spoilertext");return spText.hasClass("show")?(spText.removeClass("show"),$(this).text(Drupal.t("Show more").toLowerCase()+"...")):(spText.addClass("show"),$(this).text(Drupal.t("Show less").toLowerCase()+"...")),!1;})),counter++;})),maxItems<=options.items_per_page||maxItems-options.offset<=options.items_per_page){$(".mt-loadOlder",mt_body).remove();let params="";params+="false"===options.exclude_replies?"/with_replies":"",params+="true"===options.only_media?"/media":"",params+=tootID?"?max_id="+tootID:"";const loadSeeMoreLink='<div class="mt-seeMore text-align-center mx-auto my-3 p-1"><a href="'+items[0].channel+params+'" target="_blank" rel="noopener noreferrer">'+Drupal.t("See more posts at Mastodon")+'<span class="sr-only">'+Drupal.t("Opens in a new window")+"</span></a></div>";mt_body.append(loadSeeMoreLink);}else{const loadOlderLink=$('<div class="mt-loadOlder text-align-center mx-auto my-3 p-1"><a href="#" rel="noopener noreferrer">'+Drupal.t("Load older")+"</a></div>").on("click.TwoClickSolution","a",(function(event){event.preventDefault(),event.stopPropagation(),options.offset+=options.items_per_page,DrupalTwoClickSolution.appendMastodonToots_JSON(obj,items,options,!1);}));mt_body.append(loadOlderLink);}if(window.setTimeout((function(){DrupalTwoClickSolution.scrollToMastodonToot(mt_body,scrollID);}),DrupalTwoClickSolution.var.timeOut),init){const toTopButton=$('<div class="mt-scrollToTop position-absolute"><a href="#'+$("> .meta",mt_body).get(0).id+'" title="'+Drupal.t("Gehe zum Beitragsanfang")+'" rel="noopener noreferrer"><i aria-label="'+Drupal.t("Gehe zum Beitragsanfang")+'" class="fa fa-chevron-up"></i></a></div>').on("click.TwoClickSolution","a",(function(event){event.preventDefault(),event.stopPropagation(),DrupalTwoClickSolution.scrollToMastodonToot(mt_body,$(this).attr("href"));}));mt_body.parent().append(toTopButton);var lastScrollTop=0;mt_body.on("scroll.TwoClickSolution",(function(){const y=$(this).scrollTop(),toTopBtn=$(".mt-scrollToTop",$(this).parent());y>lastScrollTop||y<300?toTopBtn.is(":visible")&&toTopBtn.fadeOut():toTopBtn.is(":visible")||toTopBtn.fadeIn(),lastScrollTop=y;}));}},DrupalTwoClickSolution.replaceMastodonTootMedias=function(media,spoiler){let ret='<div class="row mb-2">',count=Object.keys(media).length,padding="",_i=0;return $.each(media,(function(k,m){if("video/mp4"===m.type)return;let desc="";m.description&&(desc=m.description.replace(/\"/gi,"&quot;")),count<2?ret+='<div class="col-12 pb-1">':count%2==0?(padding=" pr-md-1",_i%2!=0&&(padding=" pl-md-1"),ret+='<div class="col-12 col-md-6'+pad
13ding+' pb-1">'):ret+='<div class="col-12 pb-1">',ret+='<div class="mediabox-wrapper"><div class="toot-media mediabox '+(spoiler?"toot-media-spoiler ":"")+'img-ratio14_7 lazyload"><img src="'+m.url+'" data-sizes="auto" typeof="foaf:Image" '+(desc?'alt="'+desc+'" title="'+desc+'" ':'alt="" ')+'style="object-position: 50% 50%;" /></div></div>',count<2?ret+="</div>":count%2==0?(ret+="</div>",_i++):(ret+="</div>",count-=1);})),ret+="</div>",ret;},DrupalTwoClickSolution.formatMastodonTootDateTime=function(tootDate){let date=new Date(tootDate);return date.getDate()+". "+Drupal.t(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][date.getMonth()])+" "+date.getFullYear()+", "+("0"+date.getHours()).slice(-2)+":"+("0"+date.getMinutes()).slice(-2);},DrupalTwoClickSolution.getMastodonTootTimeSince=function(timestamp,days_ago_max){days_ago_max=days_ago_max||6;const locales=drupalSettings.path.currentLanguage||"de",rtf=new Intl.RelativeTimeFormat(locales,{numeric:"auto"}),elapsed=(new Date()).getTime()-timestamp;if(elapsed<6e4)return rtf.format(-Math.round(elapsed/1e3),"second");if(elapsed<36e5)return rtf.format(-Math.round(elapsed/6e4),"minute");if(elapsed<864e5)return rtf.format(-Math.round(elapsed/36e5),"hour");if(elapsed<2592e6){const daysDifference=Math.round(elapsed/864e5);return daysDifference>days_ago_max?"":rtf.format(-daysDifference,"day");}return "";},DrupalTwoClickSolution.replaceMastodonShortcutToEmojisImage=function(item,string){return $.each(item.account.emojis,(function(i,emoji){if(!emoji.visible_in_picker)return;let shortcode=emoji.shortcode;const regex=new RegExp(`\\:${shortcode}\\:`,"gi");if(string.match(regex)){const _original=emoji.url,_static=emoji.static_url,_icon='<img rel="emoji" draggable="false" width="16" height="16" class="emojione custom-emoji" alt=":'+emoji.shortcode+':" title=":'+emoji.shortcode+':" data-original="'+_original+'" data-static="'+_static+'" src="'+_static+'">';string=string.replace(":"+emoji.shortcode+":",_icon);}})),string;},DrupalTwoClickSolution.prepareMastodonAllHtmlLinks=function(string,target){return target=target||"_blank",$("a",$(string)).each((function(k,v){const linkObj=$(v);string=string.replace(v.outerHTML,linkObj.html(linkObj.html()+'<span class="sr-only">'+Drupal.t("Opens in a new window")+"</span>").attr({target,rel:"tag noopener noreferrer"}).get(0).outerHTML);})),string;},DrupalTwoClickSolution.scrollToMastodonToot=function(container,id){if(id){"#"===id.charAt(0)&&(id=id.substring(1));const topPos=$("#"+id,container).get(0).offsetTop;container.animate({scrollTop:topPos},DrupalTwoClickSolution.var.timeOut);}},DrupalTwoClickSolution.fixMastodonTimeLine=function(){!function(obj,t,i){let s,a=obj.getElementsByTagName(t)[0],n=/^http:/.test(obj.location)?"http":"https";obj.getElementById(i)||(s=obj.createElement(t),s.id=i,s.src=n+"://mastodon.social/embed.js",s.async="async",a.parentNode.insertBefore(s,a));}(document,"script","mastodon-wjs");},DrupalTwoClickSolution.renderFacebookCode=function(obj){DrupalTwoClickSolution.fixFacebookTimeLineResponsive(obj),Modernizr.touchevents?$(window).on("orientationchange.TwoClickSolution",(function(e){window.setTimeout((function(){$(".renderedSMC",obj).remove(),DrupalTwoClickSolution.fixFacebookTimeLineResponsive(obj);}),DrupalTwoClickSolution.var.timeOut);})):$(window).smartresize((function(){$(".renderedSMC",obj).remove(),DrupalTwoClickSolution.fixFacebookTimeLineResponsive(obj);}));},DrupalTwoClickSolution.fixFacebookTimeLineResponsive=function(obj){if(!$(".smcFrameLayer",obj).hasClass("showlayer")){var channel_code=$("textarea",obj).val(),type="post";
13if((channel_code=DrupalTwoClickSolution.setNewFacebookFrameWidth(obj,channel_code)).match(/\/plugins\/page.php/g))type="timeline";else{if(channel_code.match(/\/plugins\/video.php/g)){type="video";channel_code=channel_code.replace(/src=\"(.*?)\"/i,'src="$1&allowfullscreen=false&autoplay=false"');}}DrupalTwoClickSolution.renderedSMCFacebook(obj,channel_code,type);}},DrupalTwoClickSolution.renderedSMCFacebook=function(obj,channel_code,type){obj.height(Math.ceil(obj.width()/DrupalTwoClickSolution.var.videoRatio)),obj.prepend('<div class="spinnerLoader"><div class="loaderimage"><div class="pulser"></div></div></div>'),obj.append('<div class="renderedSMC">'+channel_code+"</div>");var renderedSMC=$(".renderedSMC",obj).addClass("fb-"+type),setIntervalFeq=0,setIntervalObj=window.setInterval((function(){var iframe=$("iframe",obj);iframe.length>0&&(clearInterval(setIntervalObj),setIntervalObj=null,window.setTimeout((function(){renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto"),DrupalTwoClickSolution.setFocusToLayerActivatedElement(obj,iframe,4);}),2*DrupalTwoClickSolution.var.timeOut)),setIntervalFeq>40&&(clearInterval(setIntervalObj),setIntervalObj=null,renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto"),console.error('Media-channel "FACEBOOK" not ready after 10 seconds - do it so!')),setIntervalFeq++;}),DrupalTwoClickSolution.var.timeOut);},DrupalTwoClickSolution.setNewFacebookFrameWidth=function(obj,channel_code){var windowWidth=$(window).width(),w=obj.width(),h=0,frameW=0,frameH=0;if(channel_code.match(/\/plugins\/video.php/g)){if(w=w>750?750:w,h=Math.ceil(w/DrupalTwoClickSolution.var.videoRatio),DrupalTwoClickSolution.var.maxHeight&&h>DrupalTwoClickSolution.var.maxHeight&&(w=parseInt(w*(DrupalTwoClickSolution.var.maxHeight/h)),h=DrupalTwoClickSolution.var.maxHeight),frameW=$(channel_code).attr("width"),frameH=$(channel_code).attr("height"),!Modernizr.touchevents&&frameW<=frameH){var _h=w;w=h,h=_h;}
13channel_code=(channel_code=(channel_code=(channel_code=channel_code.replace(/&width=\d+/g,"&width="+w)).replace(/width="\d+"/g,'width="'+w+'"')).replace(/&height=\d+/g,"&height="+h)).replace(/height="\d+"/g,'height="'+h+'"');}else if(channel_code.match(/\/plugins\/post.php/g)){if((frameW=parseInt($(channel_code).attr("width")))&&w<frameW){frameH=parseInt($(channel_code).attr("height"));var factor=310;windowWidth>=DrupalTwoClickSolution.var.breakpointXS&&(factor=220),windowWidth>=DrupalTwoClickSolution.var.breakpointSM&&(factor=150),windowWidth>=DrupalTwoClickSolution.var.breakpointMD&&(factor=80),h=Math.ceil((1-frameW/frameH+1)*w)+factor,channel_code=(channel_code=(channel_code=(channel_code=channel_code.replace(/&width=\d+/g,"&width="+w)).replace(/width="\d+"/g,'width="'+w+'"')).replace(/&height=\d+/g,"&height="+h)).replace(/height="\d+"/g,'height="'+h+'"');}}else Modernizr.touchevents?(h=500,windowWidth<DrupalTwoClickSolution.var.breakpointLG&&(h=600),windowWidth<DrupalTwoClickSolution.var.breakpointMD&&(h=400),channel_code=(channel_c
13ode=channel_code.replace(/&height=\d+/g,"&height="+h)).replace(/height="\d+"/g,'height="'+h+'"')):(h=parseInt($(channel_code).attr("height"))||400,windowWidth>=DrupalTwoClickSolution.var.breakpointMD&&(h=500),windowWidth>=DrupalTwoClickSolution.var.breakpointXXXL&&(h=800),channel_code=(channel_code=channel_code.replace(/&height=\d+/g,"&height="+h)).replace(/height="\d+"/g,'height="'+h+'"')),channel_code=(channel_code=channel_code.replace(/&width=\d+/g,"&width="+(w>500?500:w))).replace(/width="\d+"/g,'width="'+(w>500?500:w)+'"');return channel_code;},DrupalTwoClickSolution.renderInstagramCode=function(obj,channel_code){channel_code.match(/max-width\:(\d+)px/g)&&(channel_code=channel_code.replace(/max-width\:(\d+)px/g,"max-width:750px")),DrupalTwoClickSolution.renderedSMCInstagram(obj,channel_code,"instagram-media-rendered"),channel_code.match(/\<script(.*?)\<\/script\>/g)||DrupalTwoClickSolution.fixInstagramTimeLine(obj);},DrupalTwoClickSolution.renderedSMCInstagram=function(obj,channel_code,classReady){obj.height(Math.ceil(obj.width()/DrupalTwoClickSolution.var.videoRatio)),obj.prepend('<div class="spinnerLoader"><div class="loaderimage"><div class="pulser"></div></div></div>'),obj.append('<div class="renderedSMC">'+channel_code+"</div>");var renderedSMC=$(".renderedSMC",obj),setIntervalFeq=0,setIntervalObj=window.setInterval((function(){var iframe=$("iframe",obj);iframe.length>0&&iframe.hasClass(classReady)&&(clearInterval(setIntervalObj),setIntervalObj=null,renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto"),DrupalTwoClickSolution.setFocusToLayerActivatedElement(obj,iframe,6)),setIntervalFeq>40&&(clearInterval(setIntervalObj),setIntervalObj=null,renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto"),console.error('Media-channel "INSTAGRAM" not ready after 10 seconds - do it so!')),setIntervalFeq++;}),DrupalTwoClickSolution.var.timeOut);},DrupalTwoClickSolution.fixInstagramTimeLine=function(obj){$(".instagram-media").length&&function(obj,t,i){var s,a=obj.getElementsByTagName(t)[0],n=/^http:/.test(obj.location)?"http":"https";obj.getElementById(i)||((s=obj.createElement(t)).id=i,s.src=n+"://platform.instagram.com/en_US/embeds.js",a.parentNode.insertBefore(s,a));}(document,"script","instagram-wjs");},DrupalTwoClickSolution.renderTwitterCode=function(obj,channel_code){DrupalTwoClickSolution.fixTwitterTimeLineResponsive(obj,channel_code,!1),Modernizr.touchevents?$(window).on("orientationchange.TwoClickSolution",(function(e){window.setTimeout((function(){DrupalTwoClickSolution.fixTwitterTimeLineResponsive(obj,channel_code,!0);}),DrupalTwoClickSolution.var.timeOut);})):$(window).smartresize((function(){DrupalTwoClickSolution.fixTwitterTimeLineResponsive(obj,channel_code,!0);}));},DrupalTwoClickSolution.fixTwitterTimeLineResponsive=function(obj,channel_code,resized){var windowWidth=$(window).width(),w=obj.width();windowWidth>=DrupalTwoClickSolution.var.breakpointMD&&(w=550),windowWidth>=DrupalTwoClickSolution.var.breakpointXXXL&&(w=750);var h=0;channel_code.match(/twitter-timeline/g)?(Modernizr.touchevents?(h=500,windowWidth<DrupalTwoClickSolution.var.breakpointLG&&(h=600),windowWidth<DrupalTwoClickSolution.var.breakpointMD&&(h=400)):(h=400,windowWidth>=DrupalTwoClickSolution.var.breakpointMD&&(h=500),windowWidth>=DrupalTwoClickSolution.var.breakpointXXXL&&(h=800)),channel_code.match(/data-height/g)?channel_code=channel_code.replace(/data-height="\d+"/g,'data-height="'+h+'"'):channel_c
13ode.match(/tweet-limit=/g)||(channel_code=channel_code.replace(/<a(.*?)>/i,'<a$1 data-height="'+h+'">')),channel_code=channel_code.match(/data-width/g)?channel_code.replace(/data-width="\d+"/g,'data-width="'+w+'"'):channel_code.replace(/<a(.*?)>/i,'<a$1 data-width="'+w+'">')):channel_code.match(/twitter-video/g)&&(channel_code=channel_code.replace(/twitter-video/g,"twitter-tweet")),channel_code.match(/twitter-timeline/g)?(resized&&$(".renderedSMC",obj).remove(),DrupalTwoClickSolution.checkAccessByChannel("twitter")&&DrupalTwoClickSolution.renderedSMCTwitter(obj,channel_code,"twitter-timeline-rendered")):!resized&&channel_code.match(/twitter-tweet/g)&&DrupalTwoClickSolution.renderedSMCTwitter(obj,channel_code,"twitter-tweet-rendered"),channel_code.match(/\<script(.*?)\<\/script\>/g)||DrupalTwoClickSolution.fixTwitterTimeLine(obj);},DrupalTwoClickSolution.renderedSMCTwitter=function(obj,channel_code,classReady){obj.height(Math.ceil(obj.width()/DrupalTwoClickSolution.var.videoRatio)),obj.prepend('<div class="spinnerLoader"><div class="loaderimage"><div class="pulser"></div></div></div>'),obj.append('<div class="renderedSMC">'+channel_code+"</div>");var renderedSMC=$(".renderedSMC",obj),setIntervalFeq=0,setIntervalObj=window.setInterval((function(){var iframe=$("iframe",obj);iframe.length>0&&(iframe.hasClass(classReady)||iframe.parent().hasClass(classReady))&&(clearInterval(setIntervalObj),setIntervalObj=null,iframe.parent("."+classReady).css({display:"inline-flex"}),renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto"),DrupalTwoClickSolution.setFocusToLayerActivatedElement(obj,iframe,6)),setIntervalFeq>40&&(clearInterval(setIntervalObj),setIntervalObj=null,renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto"),console.error('Media-channel "TWITTER" not ready after 10 seconds - do it so!')),setIntervalFeq++;}),DrupalTwoClickSolution.var.timeOut);},DrupalTwoClickSolution.fixTwitterTimeLine=function(obj){!function(obj,t,i){var s,a=obj.getElementsByTagName(t)[0],n=/^http:/.test(obj.location)?"http":"https";obj.getElementById(i)||((s=obj.createElement(t)).id=i,s.src=n+"://platform.twitter.com/widgets.js",a.parentNode.insertBefore(s,a));}(document,"script","twitter-wjs");},DrupalTwoClickSolution.renderYoutubeCode=function(obj,channel_code){var yt_params="version=3&autohide=1&autoplay=0&rel=0&showinfo=0&color=white&theme=light&html5=1&modestbranding=0&wmode=transparent&enablejsapi=1";channel_code=channel_code.match(/embed\?/g)?channel_code.replace(/src=\"(.*?)\"/i,'src="$1&'+yt_params+'&controls=1"'):channel_c
13ode.replace(/src=\"(.*?)\"/i,'src="$1?'+yt_params+'&controls=1"'),DrupalTwoClickSolution.renderedSMCYoutube(obj,channel_code),DrupalTwoClickSolution.resizeYoutubeFrame(obj),Modernizr.touchevents?$(window).on("orientationchange.TwoClickSolution",(function(e){window.setTimeout((function(){DrupalTwoClickSolution.resizeYoutubeFrame(obj);}),DrupalTwoClickSolution.var.timeOut);})):$(window).smartresize((function(){DrupalTwoClickSolution.resizeYoutubeFrame(obj);}));},DrupalTwoClickSolution.renderedSMCYoutube=function(obj,channel_code){obj.height(Math.ceil(obj.width()/DrupalTwoClickSolution.var.videoRatio)),obj.prepend('<div class="spinnerLoader"><div class="loaderimage"><div class="pulser"></div></div></div>'),obj.append('<div class="renderedSMC">'+channel_code+"</div>");var renderedSMC=$(".renderedSMC",obj),setIntervalFeq=0,setIntervalObj=window.setInterval((function(){var iframe=$("iframe",obj);iframe.length>0&&(clearInterval(setIntervalObj),setIntervalObj=null,window.setTimeout((function(){renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto"),DrupalTwoClickSolution.setFocusToLayerActivatedElement(obj,iframe,4);}),2*DrupalTwoClickSolution.var.timeOut)),setIntervalFeq>40&&(clearInterval(setIntervalObj),setIntervalObj=null,renderedSMC.css({visibility:"visible"}),$(".spinnerLoader",obj).remove(),obj.height("auto"),console.error('Media-channel "YOUTUBE" not ready after 10 seconds - do it so!')),setIntervalFeq++;}),DrupalTwoClickSolution.var.timeOut);},DrupalTwoClickSolution.resizeYoutubeFrame=function(obj){var w=obj.width();w=w>750?750:w;var h=Math.ceil(w/DrupalTwoClickSolution.var.videoRatio);DrupalTwoClickSolution.var.maxHeight&&h>DrupalTwoClickSolution.var.maxHeight&&(w=parseInt(w*(DrupalTwoClickSolution.var.maxHeight/h)),h=DrupalTwoClickSolution.var.maxHeight),$("iframe",obj).css({width:w,height:h});},DrupalTwoClickSolution.setFocusToLayerActivatedElement=function(obj,elem,faktor){faktor=faktor||0,window.setTimeout((function(){obj.hasClass("layer-activated")&&(obj.removeClass("layer-activated"),elem.focus());}),DrupalTwoClickSolution.var.timeOut*faktor);},DrupalTwoClickSolution.scrollTo=function(elem){var t=0;$(elem).eq(0).length>0&&(t=$(elem).eq(0).offset().top-(Modernizr.touchevents&&$(window).width()<DrupalTwoClickSolution.var.breakpointMD?80:100)),$("html,body").animate({scrollTop:t},100);},DrupalTwoClickSolution.getWindowHeight=function(){var h=$(window).height();return parseInt(h);},DrupalTwoClickSolution.getWindowWidth=function(){var h=$(window).width();return parseInt(h);},DrupalTwoClickSolution.modalResizer=function(myModal){Modernizr.touchevents||(DrupalTwoClickSolution.setModalDimension(myModal),$(window).smartresize((function(){DrupalTwoClickSolution.setModalDimension(myModal);})));},DrupalTwoClickSolution.setModalDimension=function(myModal){window.setTimeout((function(){const wrapper=$("#modalPopupContent",myModal);DrupalTwoClickSolution.resetModalDimension(myModal);const wH=wrapper.height(),mH=DrupalTwoClickSolution.getWindowHeight()-350;wH>mH&&wrapper.css({"overflow-x":"hidden","overflow-y":"auto","max-height":mH+"px","margin-bottom":"1rem","border-bottom":"1px solid #eee"});}),DrupalTwoClickSolution.var.timeOut);},DrupalTwoClickSolution.resetModalDimension=function(myModal){$("#modalPopupContent",myModal).attr("style","");},DrupalTwoClickSolution.getCurrentResponsiveWindowHeight=function(fixHeight){fixHeight=fixHeight||600;let wHeight=DrupalTwoClickSolution.getWindowHeight();return wHeight-=100,DrupalTwoClickSolution.getWindowWidth()<DrupalTwoClickSolution.var.breakpointLG&&(wHeight=fixHeight),wHeight;},DrupalTwoClickSolution.numFormatter=function(num){return num>999&&num<1e6?(num/1e3).toFixed(1)+"K":num>1e6?(num/1e6).toFixed(1)+"M":num<900?num:void 0;},DrupalTwoClickSolution.getUrlParameter=function(url,name){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var results=new RegExp("[\\?&]"+name+"=([^&#]*)").exec(url);return null===results?"":decodeURIComponent(results[1].replace(/\+/g," "));},Drupal.TwoClickSolutionPlugin=DrupalTwoClickSolution;}(jQuery,Drupal,drupalSettings,Modernizr,window.Cookies,once),function($,Drupal,drupalSettings,Modernizr,once){Drupal.theme.hw_views_exposed_form=function(context,settings){context=!context||context instanceof HTMLElement?document:context,settings=settings||Drupal.settings,Modernizr=Modernizr||window.Modernizr,$(once("hw_views_exposed_form","form[data-hw-bef-auto-ajax]",context)).each((function(){const $form=$(this);new function(){const that=this,$Drupal=Drupal;let $spinner='<div class="spinnerLoader page-loader border-0 position-fixed"><div class="loaderimage"><div class="pulser" role="alert">
13<span class="sr-only" aria-live="assertive" aria-busy="true">'+Drupal.t("Please wait...")+"</span></div></div></div>",$main=null,$pageContent=null,$messageBlock=null,$befFormWrapper=null,$introMediaroom=null,$exposedFilterForm=null,$datepicker_min=null,$datepicker_max=null,$formSelect=null,$resetMin=!1,$resetMax=!1,$selectedFields={},$defaultFields={},$initWithParams=!1,$language=drupalSettings.language,LMController=$.extend(Drupal.leafletMapController);$(document).ready((function(ev){that.variables(),that.initDom();})),this.variables=function(){$main=$("#main > main"),$pageContent=$("#page-content",context),$messageBlock=$("div[data-drupal-messages-fallback]",context),$befFormWrapper=$form.closest(".hw-views-exposed-form--wrapper"),$introMediaroom=$(".block-intro-mediaroom-filter",context),$exposedFilterForm=$("#hw-exposed-filter-wrapper",context),$datepicker_min=$(".datepicker-min",context),$datepicker_max=$(".datepicker-max",context),$formSelect=$("select.form-select",$form);},this.initDom=function(ev){$form.find('input[id^="edit-submit"]').hide(),window.location.search&&($initWithParams=!0),that.filterReset(),that.collapseFilterEvent(),that.pagination(),that.initDatePicker(),that.resizeDatepickerHandler(),that.getSelectedValues(),that.setSelectedValues(),that.geoRadiusNumberFieldLayer(!0),$("form[data-hw-bef-auto-ajax]",context).addBack("form[data-hw-bef-auto-ajax]").each((function(i,e){const form=$(e);$(once("hw-bef-auto-ajax",form)).on("change.hw_views_exposed_form",that.triggerAjaxSubmit).on("keyup.hw_views_exposed_form",'select,input[type="number"],input[type="checkbox"],input[type="radio"],input.hasDatepicker,input.form-autocomplete,:text.form-text-clear',that.triggerAjaxSubmit).on("keyup.hw_views_exposed_form",":text:not(.hasDatepicker):not(.form-autocomplete):not(.form-text-clear)",Drupal.debounce(that.triggerAjaxSubmit,1e3)).on("click.hw_views_exposed_form","button.search-form__submit",(function(ev){ev.preventDefault(),ev.target=$(this).parents(".search-api-fulltext-form").first().find("input").get(0),that.triggerAjaxSubmit(ev);}));})),window.onpopstate=function(ev){const location=ev.target.location.href;if(location.match(/#([^\\s]*)/g)){const url=location.replace(window.location.hash,"");return window.history.replaceState({},document.title,url),!1;}return null==ev.state?that.ajaxFilterCall(!1,"",null):that.ajaxFilterCall(!1,ev.state.params,null),!0;};},this.triggerAjaxSubmit=function(ev){const target=$(ev.target);if(target.closest("form").find('input[id^="edit-submit"]').click((function(ev){ev.preventDefault();})),target.is(":text:not(.hasDatepicker):not(.form-autocomplete)")&&(-1===$.inArray(ev.keyCode,[16,17,18,20,33,34,35,36,37,38,39,40,9,27,13])||target.hasClass("form-text-clear")))target.removeClass("form-text-clear"),"keyup"===ev.type&&that.ajaxFilterCall(!1,!1,target);else if(target.is(":text.form-autocomplete")&&(""!==target.val().trim()||target.hasClass("form-autocomplete-clear")))"click"===ev.type?that.ajaxFilterCall(!1,!1,target):(target.removeClass("form-autocomplete-clear").autocomplete({autoFocus:!1,minLength:1,multiple:!0,search:function(){$(this).addClass("ui-autocomplete-loading");if(that.extractLast(this.value).length<1)return !1;},focus:function(){return !1;},select:function(event,ui){if($(event.target).hasClass("search-api-fulltext")){let selection=ui.item.label.replace(/(<([^>]+)>)/gi,"");this.value=selection.trim();}else{const terms=that.split(this.value);terms.pop();const val=ui.item.value,match=val.match(/([\s]+)\(([\d]+)\)$/);match&&(ui.item.value=val.replace(match[0],",")),terms.push(ui.item.value),$.each(terms,(function(i,v){terms[i]=v.trim().replace(/([\s]+),/g,", ");})),this.value=terms.join(", ");}return that.ajaxFilterCall(!1,!1,target),!1;},open:function(event,ui){$(this).removeClass("ui-autocomplete-loading");},response:function(event,ui){const term=that.extractLast(this.value);for(let i=0;i<ui.content.length;i++){const label=ui.content[i].label,value=ui.content[i].value;ui.content[i]={label:that.__highlight(label,term),value};}},close:function(event,ui){}}),"keyup"===ev.type&&""===target.val().trim()&&that.ajaxFilterCall(!1,!1,target));else if("change"===ev.type)if($resetMin&&target.is(":text#edit-min")&&""===target.val())$resetMin=!1;else if($resetMax&&target.is(":text#edit-max")&&""===target.val())$resetMax=!1;else if("number"===target.get(0).type){var min=target.attr("min")||"0";""===target.val()?(target.val(min),that.ajaxFilterCall(!1,!1,target)):target.val()<min?(that.ajaxFilterCall(!1,!1,target),target.addClass("error").parent().addClass("has-error")):target.val()>=min&&(that.ajaxFilterCall(!1,!1,target),target.removeClass("error").parent().removeClass("has-error"));}else that.ajaxFilterCall(!1,!1,target),$datepicker_min.datepicker("hide"),$datepicker_max.datepicker("hide");else "keyup"===ev.type&&(13===ev.keyCode?target.is(":text#edit-min")?(that.ajaxFilterCall(!1,!1,target),$datepicker_min.datepicker("hide")):target.is(":text#edit-max")&&(that.ajaxFilterCall(!1,!1,target),$datepicker_max.datepicker("hide")):"number"===target.get(0).type&&(ev.keyCode>47&&ev.keyCode<58||ev.keyCode>95&&ev.keyCode<106)&&target.trigger("blur"));},this.ajaxFilterCall=function(reset,stateUrl,target){window.setTimeout((function(){const path=window.location.pathname;$.ajax({url:path,type:"GET",dataType:"html",data:!1!==stateUrl?stateUrl:reset?"":that.fulltextSearchKeyEncoder($form.serialize()),cache:!1,async:!0,namespace:"viewsExposedFilter",beforeSend:function(){$main.prepend($spinner);},success:function(resp){const resObj=$(resp),message=$(".messages__wrapper",resObj);if(message.length>0?($messageBlock.nextAll(".messages__wrapper").remove(),$messageBlock.after(message.get(0).outerHTML)):$messageBlock.nextAll(".messages__wrapper").remove(),$introMediaroom.length>0){const navCollectionBlock=$(".block-nav-collection-filter",resObj);navCollectionBlock.length>0&&$introMediaroom.replaceWith(navCollectionBlock.get(0).outerHTML);}if(!1!==stateUrl&&$exposedFilterForm.length>0){const exposedFilterForm=$("#hw-exposed-filter-wrapper",resObj);exposedFilterForm.length>0&&$exposedFilterForm.html(exposedFilterForm.html());}const pageContent=$("#page-content",resObj);pageContent.length>0&&$pageContent.html(pageContent.html());},complete:function(data){if(reset&&($form.get(0).reset(),that.resetPseudoSelectField(),that.resetDatepickerCalendars(),$(".collapse",$befFormWrapper).collapse("hide"),"function"==typeof LMController.getUrlGetParam&&setTimeout((function(){$("#displayFirst",context).length&&$("#displayFirst",context).val(LMController.getUrlGetParam("displayFirst"));}),100)),that.getSelectedValues(),that.setSelectedValues(),that.geoRadiusNumberFieldLayer(!1),that.reInitialization(),$(".spinnerLoader",$main).remove(),!1===stateUrl){let params=reset?"":that.fulltextSearchKeyEncoder($form.serialize());const url=params?"?"+params:path;window.history.pushState({params},document.title,url);}},error:function(request,status,error){return console.error("AJAX-ERROR: "+window.location.protocol+"//"+window.location.host+window.location.pathname),console.error(error),!1;}});}),100);},this.split=function(val){return val.split(/,/);},this.extractLast=function(term){return that.split(term).pop();},this.fulltextSearchKeyEncoder=function(params){const match=params.match(/keys=([^&]*)/g);if(match){const keys=match[0];return params.replace(keys,keys.replaceAll("%20","+"));}return params;},this.initDatePicker=function(){$datepicker_min.datepicker({showOn:"both",showAnim
13:"fadeIn",buttonImage:"/themes/custom/hw_radix_standard/assets/images/form/date-calendar.svg",buttonImageOnly:!0,showButtonPanel:!1,changeMonth:!1,changeYear:!1,altFormat:"en"===$language.defaultLanguage?"dd/mm/yy":"dd.mm.yy",dateFormat:"en"===$language.defaultLanguage?"dd/mm/yy":"dd.mm.yy",showWeek:!1,weekHeader:"KW",prevText:$Drupal.t("Earlier"),nextText:$Drupal.t("Later"),buttonText:$Drupal.t("Select"),beforeShow:function(){setTimeout((function(){$("#ui-datepicker-div").css("z-index",805);}),0);},onSelect:function(dateText,inst){(dateText=$datepicker_min.datepicker("getDate")?dateText:null)&&$datepicker_max.datepicker("getDate")?that.relationshipFromDateToDate(dateText):$datepicker_max.datepicker("option","minDate",dateText),$(this).trigger("focus").trigger("blur");},onClose:function(dateText,inst){inst.lastVal&&$datepicker_min.datepicker("getDate")?inst.lastVal&&$datepicker_min.datepicker("getDate")&&that.relationshipFromDateToDate(inst.lastVal):$datepicker_max.datepicker("option","minDate",null);}}).mask("en"===$language.defaultLanguage?"99/99/9999":"99.99.9999"),$datepicker_max.datepicker({showOn:"both",showAnim:"fadeIn",buttonImage:"/themes/custom/hw_radix_standard/assets/images/form/date-calendar.svg",buttonImageOnly:!0,showButtonPanel:!1,changeMonth:!1,changeYear:!1,altFormat:"en"===$language.defaultLanguage?"dd/mm/yy":"dd.mm.yy",dateFormat:"en"===$language.defaultLanguage?"dd/mm/yy":"dd.mm.yy",showWeek:!1,weekHeader:"KW",prevText:$Drupal.t("Earlier"),nextText:$Drupal.t("Later"),buttonText:$Drupal.t("Select"),beforeShow:function(){setTimeout((function(){$("#ui-datepicker-div").css("z-index",805);}),0);},onSelect:function(dateText,inst){$(this).trigger("focus").trigger("blur");}}).mask("en"===$language.defaultLanguage?"99/99/9999":"99.99.9999"),$datepicker_min.val()&&$datepicker_max.datepicker("option","minDate",$datepicker_min.val());},this.toTimestamp=function(strDate,iso){let datum,dateParts,year,month,day;return strDate&&iso?(dateParts=strDate.split("."),3===dateParts.length?(year=dateParts[2],month=dateParts[1],day=dateParts[0],datum=Date.parse(year+"-"+month+"-"+day)):datum=Date.parse(strDate)):datum=Date.parse(strDate),datum/1e3;},this.relationshipFromDateToDate=function(dateText){that.toTimestamp(dateText,!0)>that.toTimestamp($datepicker_max.datepicker("getDate"),!1)?($datepicker_max.datepicker("option","minDate",dateText),$datepicker_max.datepicker("setDate",null),$resetMax=!0):$datepicker_max.datepicker("option","minDate",dateText);},this.resetDatepickerCalendars=function(){$datepicker_min.length&&$datepicker_min.datepicker("option","minDate",null),$datepicker_max.length&&$datepicker_max.datepicker("option","minDate",null);},this.resizeDatepickerHandler=function(){Modernizr.touchevents?$(window).on("orientationchange.hw_views_exposed_form",(function(e){that.closeDatepickerUI();})):$(window).smartresize((function(){that.closeDatepickerUI();}));},this.closeDatepickerUI=function(){const elem=$("input.hasDatepicker",context);elem.length>0&&elem.datepicker("hide").blur();},this.filterReset=function(){$('input[type="submit"][id^="edit-reset"]',$form).on("click.hw_views_exposed_form",(function(ev){return ev.preventDefault(),$initWithParams?($initWithParams=!1,void (window.location.href=window.location.pathname)):($resetMin=!0,$resetMax=!0,that.ajaxFilterCall(!0,!1,null),!0);}));},this.resetPseudoSelectField=function(){$formSelect.each((function(){const styledSelect=$(this).next(".styledSelect"),styledOption=styledSelect.next(".options");styledSelect.text($(this).find("option:first").text()),styledOption.find("li").removeClass("selected").removeClass("iterate");styledOption.find("li").first().addClass("selected");}));},this.pagination=function(){const pagination=$(".pagination",context);pagination&&$("a.page-link",pagination).on("click.hw_views_exposed_form",(function(ev){ev.preventDefault();const _href=$(this).attr("href"),path=window.location.pathname+_href,params=_href.substring(1);return $main.parent().addClass("z-index-spinner"),$main.prepend($spinner),$("html,body").animate({scrollTop:0},300,(function(){})).promise().then((function(){$.ajax({url:path,type:"GET",dataType:"html",cache:!1,async:!0,namespace:"viewsExposedFilter",success:function(resp){const resObj=$(resp),pageContent=$("#page-content",resObj);pageContent.length>0&&$pageContent.html(pageContent.html());},complete:function(data){$main.parent().removeClass("z-index-spinner"),$(".spinnerLoader",$main).remove(),that.reInitialization(),window.history.pushState({params},document.title,_href);},error:function(request,status,error){return console.error("AJAX-ERROR: "+window.location.protocol+"//"+window.location.host+window.location.pathname),console.error(error),!1;}});})),!1;}));},this.reInitialization=function(){that.pagination(),Drupal.attachBehaviors(context,settings),that.reAttachHwGalleryModal(),Drupal.AblePlayerPlugin.loadAudioInstances();},this.reAttachHwGalleryModal=function(){$(".modal-dialog.hw-gallery-modal").parent().on("show.bs.modal",(function(e){$(e.relatedTarget.attributes["data-target"].value).appendTo("body");}));}
13,this.getSelectedValues=function(){let fields,defaults,postalCodeFlag=!1;const element=["input","select"];$(".card-body",$form).each((function(idx,col){for(let i=0;i<element.length;i++)fields=[],defaults=[],$.each($(this).find(element[i]),(function(){switch($(this).attr("type")){case "text":""!==$(this).val()?(fields.push({label:$(this).parents(".form-group").first().find("label").text(),value:$(this).val()}),defaults.push({label:$(this).parents(".form-group").first().find("label").text(),defaultValue:$(this).val()}),"edit-field-pf-address-postal-code"===$(this).attr("id")&&(postalCodeFlag=!0)):"edit-field-pf-address-postal-code"===$(this).attr("id")&&(postalCodeFlag=!1);break;case "number":if(""!==$(this).val()){if("edit-geo-radius"===$(this).attr("id")&&!postalCodeFlag)return;fields.push({label:$(this).parents(".form-group").first().find("label").text(),value:$(this).val()}),defaults.push({label:$(this).parents(".form-group").first().find("label").text(),defaultValue:$(this).val()});}break;case "checkbox":case "radio":$(this).val()&&"all"!==$(this).val().toLowerCase()&&$(this).is(":checked")&&fields.push({value:$(this).nextAll(".form-check-label").text()});break;default:if($(this).prop("tagName").toLowerCase()===element[i])$("option",$(this)).is(":selected")&&$("option",$(this)).filter(":selected").val()&&fields.push({label:$(this).prev("label").text(),value:$("option",$(this)).filter(":selected").text()});}$(this).hasClass("hasDatepicker")?$selectedFields[idx]={date:fields}:$(this).hasClass("form-autocomplete")?$selectedFields[idx]={autocomplete:fields}:$selectedFields[idx]={text:fields},"object"!=typeof $defaultFields[idx]&&($defaultFields[idx]=defaults);}));}));},this.setSelectedValues=function(){let setPrefixLabel,myHeader,myDefaults,mainHeader=$(".card-main-header"),filterCount=0,myFilter="",attrText="";$(".card-header",$form).each((function(i,h){myHeader=$(this),setPrefixLabel=$(this).closest(".prefix-label").length,$(".selection",myHeader).remove(),$(".origin",myHeader).removeClass("d-none"),$(".origin",myHeader).text(((_,t)=>t.replace(/:+$/,""))),$.each($selectedFields[i],(function(type,fields){switch(myDefaults=$defaultFields[i],type){case "date":fields.length>1?($("<span>",{class:"selection",text:fields[0].value.trim()+" - "+fields[1].value.trim()}).appendTo($("> a > .link-text",myHeader)),$(".origin",myHeader).text(((_,t)=>t.replace(/:+$/,"")+":")),attrText=$(".origin",myHeader).text().trim()+": "+(fields[0].label?fields[0].label.trim()+" ":"")+fields[0].value.trim()+(fields[1].label?" "+fields[1].label.trim()+" ":" - ")+fields[1].value.trim(),$("> a",myHeader).attr({title:attrText,"aria-label":attrText})):1===fields.length&&($("<span>",{class:"selection",text:(fields[0].label?fields[0].label.trim()+" ":"")+fields[0].value.trim()}).appendTo($("> a > .link-text",myHeader)),$(".origin",myHeader).text(((_,t)=>t.replace(/:+$/,"")+":")),attrText=$(".origin",myHeader).text().trim()+": "+(fields[0].label?fields[0].label.trim()+" ":"")+fields[0].value.trim(),$("> a",myHeader).attr({title:attrText,"aria-label":attrText}));break;case "autocomplete":if(fields.length>0){const countWords=fields[0].value.split(",").length-1;if(countWords<3){var searchwords=fields[0].value.trim();searchwords=","===searchwords.slice(-1)?searchwords.slice(0,-1):searchwords,$("<span>",{class:"selection",text:searchwords}).appendTo($("> a > .link-text",myHeader)),$(".origin",myHeader).text(((_,t)=>t.replace(/:+$/,"")+":")),attrText=$(".origin",myHeader).text().trim()+": "+searchwords,$("> a",myHeader).attr({title:attrText,"aria-label":attrText});}else $("<span>",{class:"selection ml-2",text:"("+$Drupal.t("@count selected",{"@count":countWords})+")"}).appendTo($("> a > .link-text",myHeader)),attrText=$(".origin",myHeader).text().trim()+": "+$Drupal.t("@count selected",{"@count":countWords}),$("> a",myHeader).attr({title:attrText,"aria-label":attrText});}break;case "text":fields.length>1?"edit-readius-search--wrapper-heading"===myHeader.attr("id")?($("<span>",{class:"selection",text:fields[0].value.trim()+(fields[0].label?" "+fields[0].label.trim():"")+", "+(fields[1].label?fields[1].label.trim()+" ":"")+fields[1].value.trim()}).appendTo($("> a > .link-text",myHeader)),$(".origin",myHeader).text(((_,t)=>
13t.replace(/:+$/,"")+":")),attrText=$(".origin",myHeader).text().trim()+": "+fields[0].value.trim()+(fields[0].label?" "+fields[0].label.trim():"")+", "+(fields[1].label?fields[1].label.trim()+" ":"")+fields[1].value.trim(),$("> a",myHeader).attr({title:attrText,"aria-label":attrText})):($("<span>",{class:"selection ml-sm-2",text:"("+$Drupal.t("@count selected",{"@count":fields.length})+")"}).appendTo($("> a > .link-text",myHeader)),attrText=$(".origin",myHeader).text().trim()+": "+$Drupal.t("@count selected",{"@count":fields.length}),$("> a",myHeader).attr({title:attrText,"aria-label":attrText})):1===fields.length?"edit-readius-search--wrapper-heading"===myHeader.attr("id")?($("<span>",{class:"selection ml-2",text:"("+fields[0].value.trim().replace(/\B(?=(\d{3})+(?!\d))/g,".")+(fields[0].label?" "+fields[0].label.trim():"")+")"}).appendTo($("> a > .link-text",myHeader)),attrText=$(".origin",myHeader).text().trim()+": "+fields[0].value.trim().replace(/\B(?=(\d{3})+(?!\d))/g,".")+(fields[0].label?" "+fields[0].label.trim():""),$("> a",myHeader).attr({title:attrText,"aria-label":attrText})):"edit-readius-search--wrapper-heading"===myHeader.attr("id")||setPrefixLabel?($("<span>",{class:"selection ml-2",text:"("+(fields[0].label?fields[0].label.trim()+" ":"")+fields[0].value.trim()+")"}).appendTo($("> a > .link-text",myHeader)),attrText=$(".origin",myHeader).text().trim()+": "+(fields[0].label?fields[0].label.trim()+" ":"")+fields[0].value.trim(),$("> a",myHeader).attr({title:attrText,"aria-label":attrText})):($("<span>",{class:"selection",text:(fields[0].label?fields[0].label.trim()+" ":"")+fields[0].value.trim()}).appendTo($("> a > .link-text",myHeader)),$(".origin",myHeader).text(((_,t)=>t.replace(/:+$/,"")+":")),attrText=$(".origin",myHeader).text().trim()+": "+(fields[0].label?fields[0].label.trim()+" ":"")+fields[0].value.trim(),$("> a",myHeader).attr({title:attrText,"aria-label":attrText})):1===myDefaults.length&&($("<span>",{class:"selection ml-2",text:"("+(myDefaults[0].label?myDefaults[0].label.trim()+" ":"")+(myDefaults[0].defaultValue?myDefaults[0].defaultValue.trim():"")+")"}).appendTo($("> a > .link-text",myHeader)),attrText=$(".origin",myHeader).text().trim()+": "+(myDefaults[0].label?myDefaults[0].label.trim()+" ":"")+(myDefaults[0].defaultValue?myDefaults[0].defaultValue.trim():""),$("> a",myHeader).attr({title:attrText,"aria-label":attrText}));}})),$(".selection",myHeader).length>0&&(myFilter+=(myFilter?", ":"")+$(".selection",myHeader).prev(".origin").text(),filterCount++);})),myFilter?($(".selection",mainHeader).remove(),filterCount>0&&(myFilter=$Drupal.t("@count selected",{"@count":filterCount})),$("<span>",{class:"selection ml-2",text:"("+myFilter+")"}).appendTo($("> a > .link-text",mainHeader))):$(".selection",mainHeader).remove(),attrText=$("> a .origin",mainHeader).text().trim()+(myFilter?" ("+myFilter+")":""),$("> a",mainHeader).attr({title:attrText,"aria-label":attrText});},this.collapseFilterEvent=function(){$('*[aria-controls="hw-exposed-filter-wrapper"]',context).on("click.hw_views_exposed_form",(function(e){$(".collapse.show","div#hw-exposed-filter-wrapper").collapse("hide");}));},this.__highlight=function(s,t){const matcher=new RegExp("("+$.ui.autocomplete.escapeRegex(t)+")","ig");return (s=s.replace(/(<([^>]+)>)/gi,"")).replace(matcher,"<strong>$1</strong>");},this.geoRadiusNumberFieldLayer=function(init){const wrapper=$(".form-item-geo-radius .number-input-field",$form),number=$("input#edit-geo-radius",wrapper);$("#edit-field-pf-address-postal-code",$form).val()?$(".number-field-layer",wrapper).length>0&&(number.attr("tabindex",null),$(".number-field-layer",wrapper).remove()):$(".number-field-layer",wrapper).length<1&&($(".form-item-geo-radius .number-input-field",$form).prepend('<div class="number-field-layer position-absolute"></div>'),number.attr("tabindex","-1"),init||number.addClass("reset"));};}();}));};}(jQuery,Drupal,drupalSettings,Modernizr,once),function($,Drupal){Drupal.behaviors.hw_lazyLoader={},Drupal.behaviors.hw_lazyLoader={attach:function(context,settings){Drupal.theme("hw_lazyLoader",context,settings);}},Drupal.behaviors.hw_sprungmarken={},Drupal.behaviors.hw_sprungmarken={attach:function(context,settings){Drupal.theme("hw_
13sprungmarken",context,settings);}},Drupal.behaviors.hw_breakpoints={},Drupal.behaviors.hw_breakpoints={attach:function(context,settings){Drupal.theme("hw_breakpoints",context,settings);}},Drupal.behaviors.hw_navbarMain={},Drupal.behaviors.hw_navbarMain={attach:function(context,settings){Drupal.theme("hw_navbarMain",context,settings);}},Drupal.behaviors.hw_navbarToggle={},Drupal.behaviors.hw_navbarToggle={attach:function(context,settings){Drupal.theme("hw_navbarToggle",context,settings);}},Drupal.behaviors.hw_navbarMeta={},Drupal.behaviors.hw_navbarMeta={attach:function(context,settings){Drupal.theme("hw_navbarMeta",context,settings);}},Drupal.behaviors.hw_views_exposed_form={},Drupal.behaviors.hw_views_exposed_form={attach:function(context,settings){Drupal.theme("hw_views_exposed_form",context,settings);}},Drupal.behaviors.hw_HighlightComponentBackgroundImage={},Drupal.behaviors.hw_HighlightComponentBackgroundImage={attach:function(context,settings){Drupal.theme("hw_HighlightComponentBackgroundImage",context,settings);}},Drupal.behaviors.hw_scrollTop={},Drupal.behaviors.hw_scrollTop={attach:function(context,settings){Drupal.theme("hw_scrollTop",context,settings);}},Drupal.behaviors.hw_navbarInpage={},Drupal.behaviors.hw_navbarInpage={attach:function(context,settings){Drupal.theme("hw_navbarInpage",context,settings);}},Drupal.behaviors.hw_navbarMedia={},Drupal.behaviors.hw_navbarMedia={attach:function(context,settings){Drupal.theme("hw_navbarMedia",context,settings);}},Drupal.behaviors.hw_carousel={},Drupal.behaviors.hw_carousel={attach:function(context,settings){Drupal.theme("hw_carousel",context,settings);}},Drupal.behaviors.hw_responsiveTable={},Drupal.behaviors.hw_responsiveTable={attach:function(context,settings){Drupal.theme("hw_responsiveTable",context,settings);}},Drupal.behaviors.hw_stickyHeaderTable={},Drupal.behaviors.hw_stickyHeaderTable={attach:function(context,settings){Drupal.theme("hw_stickyHeaderTable",context,settings);}},Drupal.behaviors.hw_selectField={},Drupal.behaviors.hw_selectField={attach:function(context,settings){Drupal.theme("hw_selectField",context,settings);}},Drupal.behaviors.hw_anwendungsintegration={},Drupal.behaviors.hw_anwendungsintegration={attach:function(context,settings){Drupal.theme("hw_anwendungsintegration",context,settings);}},Drupal.behaviors.hw_imageGallery={},Drupal.behaviors.hw_imageGallery={attach:function(context,settings){Drupal.theme("hw_imageGallery",context,settings);}},Drupal.behaviors.hw_scrollToAnchor={},Drupal.behaviors.hw_scrollToAnchor={attach:function(context,settings){Drupal.theme("hw_scrollToAnchor",context,settings);}};}(jQuery,Drupal),function(fn){fn.map||(fn.map=function(f){for(var r=[],i=0;i<this.length;i++)r.push(f(this[i]));return r;}),fn.filter||(fn.filter=function(f){for(var r=[],i=0;i<this.length;i++)f(this[i])&&r.push(this[i]);return r;});}(Array.prototype);;
14(function($,Drupal){"use strict";Drupal.behaviors.GalleryModalMove={attach:function(context,settings){$('.modal-dialog.hw-gallery-modal').parent().on('show.bs.modal',function(e){$(e.relatedTarget.attributes['data-target'].value).appendTo('body');});}};})(jQuery,Drupal);;
15!function($,Drupal,drupalSettings,Modernizr,once){"use strict";Drupal.behaviors.hw_webform={},Drupal.behaviors.hw_webform={attach:function(context,settings){Modernizr=Modernizr||window.Modernizr,$(once("hw_webform","form.hw-webform-form",context)).each((function(){const $form=$(this),$formSelector=$form.data("drupal-selector"),$language=drupalSettings.language,$progressTracker=$("ul.webform-progress-tracker",$form)||null,$errorMessage=$(".messages__wrapper > .alert",context);$(document).ready((function(){if($(this).on("ajaxStop.hw_webform",(function(e){const msg_objs=$('div[id^="ajax-wrapper--"] div.messages__wrapper > div.alert',context);$form.length>0&&msg_objs.length>0&&(e.preventDefault(),msg_objs.each((function(){const link_icon=$("i.icon--link-internal",$(this));link_icon.length&&($("svg",link_icon).length||link_icon.load("/themes/custom/hw_radix_standard/assets/icons/icon_link-internal.svg"));if(!$("button.close",$(this)).length){const closeIcon=$("span[aria-hidden]",$(this));closeIcon.length&&closeIcon.wrap('<button type="button" class="close" data-dismiss="alert" aria-label="'+Drupal.t("Close")+'">');}})));})),$progressTracker.length&&$("li.is-complete",$progressTracker).each((function(){$(this).on("click.hw_webform",".progress-marker, .progress-title",(function(){sessionStorage.setItem($formSelector,"1");})).on("keypress.hw_webform",".progress-marker, .progress-title",(function(e){13===e.which&&sessionStorage.setItem($formSelector,"1");}));})),$progressTracker.length&&"1"===sessionStorage.getItem($formSelector))if($errorMessage.length)sessionStorage.removeItem($formSelector);else{const formElement=$('input:not(.webform-wizard-pages-link):not(.form-webform-signature):not(.form-file),textarea,select + div[role="combobox"],div.webform-signature-pad,div.form-managed-file > label[role="button"]',$form).first();if(formElement.length){const detailsArea=formElement.parents("details.card").first();detailsArea.length&&(detailsArea.attr("open","open"),$("> summary",detailsArea).attr("aria-expanded","true")),setTimeout((function(){formElement.focus(),formElement.get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"center"});}),0);}sessionStorage.removeItem($formSelector);}else null!==sessionStorage.getItem("hw-webform-form-submitted")&&sessionStorage.removeItem($formSelector);setTimeout((function(){$errorMessage.length&&$errorMessage.attr({tabindex:"0"}).addClass("hw-outline").trigger("focus");}),0);const _datePicker=$("input.hasDatepicker",$form);_datePicker.length>0&&_datePicker.each((function(){const self=$(this);self.datepicker("option","showAnim","fadeIn"),self.datepicker("option","buttonImage","/modules/custom/hw_webform/images/date-calendar.svg"),self.datepicker("option","changeMonth",!1),self.datepicker("option","changeYear",!1),self.datepicker("option","showWeek",!1),self.datepicker("option","weekHeader","KW"),self.datepicker("option","prevText",Drupal.t("Earlier")),self.datepicker("option","nextText",Drupal.t("Later")),self.datepicker("option","buttonText",Drupal.t("Select")),self.datepicker("option","dateFormat","en"===$language.defaultLanguage?"dd/mm/yy":"dd.mm.yy"),self.mask("en"===$language.defaultLanguage?"99/99/9999":"99.99.9999"),self.datepicker("option","altFormat")||self.datepicker("option","altFormat",self.datepicker("option","dateFormat")),self.datepicker("refresh"),self.attr("placeholder")||self.attr("placeholder","en"===$language.defaultLanguage?"dd/mm/yyyy":"tt.mm.jjjj"),Modernizr.touchevents?$(window).on("orientationchange.hzd_filterMobile",(function(){self.is(":focus")&&self.datepicker("hide").blur();})):$(window).smartresize((function(){self.is(":focus")&&self.datepicker("hide").blur();}));}));const _timePicker=$("input.webform-time",$form);_timePicker.length>0&&_timePicker.each((function(){$(this).attr("placeholder")||$(this).attr("placeholder","hh:mm"),$(this).mask("99:99");})),$form.on("submit.hw_webform",(function(e){const btn=document.activeElement;$progressTracker.length&&"submit"===btn.type&&"edit-submit"!==btn.id&&sessionStorage.setItem($formSelector,"1");return $(".ajax-progress-throbber",$(this)).css({padding:0}).empty().append('<div class="spinnerLoader main-loader"><div class="loaderimage"><div class="pulser"></div></div></div>'),!0;}));const _slideoutLink=$('.form-type-webform-terms-of-service a[role="button"]',$form);window.setTimeout((function(){_slideoutLink.each((function(){const self=$(this);self.on("click.hw_webform",(function(e){"true"===self.attr("aria-expanded")?self.attr({"aria-describedby":$(this).attr("aria-controls")}):self.attr({"aria-describedby":null});}));}));}),0);$(".webform-details",$form).each((function(){const self=$(this),summary=$("summary",self),summaryPrefix=$(".details-summary-prefix",summary);self.get(0).hasAttribute("open")&&"false"===summary.attr("aria-expanded")?self.attr("open",null):self.get(0).hasAttribute("open")||"true"!==summary.attr("aria-expanded")||self.attr("open","open"),summaryPrefix.text(self.attr("open")?Drupal.t("Hide"):Drupal.t("Show")),summary.on("click.hw_webform",(function(){summaryPrefix.text(self.attr("open")?Drupal.t("Show"):Drupal.t("Hide")),window.setTimeout((function(){self.get(0).hasAttribute("open")&&self.attr("open","open");}));}));})),$(".js-form-type-webform-signature",context).each((function(){let inp_field,err_msg,pad,label,ariaDesc="";label=$("> label",$(this)),inp_field=$("input.form-webform-signature",$(this)),pad=$(".webform-signature-pad",$(this)),label.attr("for",inp_field.data("drupal-selector")),void 0!==inp_field.attr("aria-describedby")&&(ariaDesc+=inp_field.attr("aria-describedby")),$(this).hasClass("form-item--error")&&(err_msg=$("div.form-item--error-message",$(this)),ariaDesc+=" "+err_msg.attr("id")),ariaDesc.length>0&&pad.attr({tabindex:"0","aria-describedby":ariaDesc}).addClass("hw-outline");}));}));}));}},Drupal.behaviors.hw_webform_confirmation={},Drupal.behaviors.hw_webform_confirmation={attach(context){$(once("hw_webform_confirmation",".webform-confirmation",context)).each((function(){const $confirmation=$(this),$downloadLink=$("a.link--internal",$confirmation);$(document).ready((function(){$downloadLink.length&&$downloadLink.addClass("hw-outline"),$downloadLink.length?$downloadLink.trigger("focus"):$('.webform-confirmation__back > a[rel="prev"]',$confirmation).trigger("focus");}));}));}};}(jQuery,Drupal,drupalSettings,Modernizr,once);;
16((Drupal)=>{Drupal.behaviors.lazy={attach(context,settings){const utils={extend(obj,src){Object.keys(src).forEac
16h((key)=>{obj[key]=src[key];});return obj;},once(selector){return (context||document).querySelector(selector);},loadScript(url){if(document.querySelectorAll(`script[src="${url}"]`).length===0){const script=document.createElement('script');const scripts=document.getElementsByTagName('script')[0];script.src=url;script.async=true;scripts.parentNode.insertBefore(script,scripts);}}};if(utils.once('body',context)){const lazysizes=settings.lazy.lazysizes||{};if(!settings.lazy.preferNative){window.lazySizesConfig=window.lazySizesConfig||{};window.lazySizesConfig=utils.extend(window.lazySizesConfig,lazysizes);if(!Object.entries)Object.entries=(obj)=>{const ownProps=Object.keys(obj);let i=ownProps.length;const resArray=new Array(i);while(i--)resArray[i]=[ownProps[i],obj[ownProps[i]]];return resArray;};const min=settings.lazy.minified?'.min':'';Object.entries(lazysizes.plugins).forEach((path)=>{utils.loadScript(`${settings.lazy.libraryPath}/plugins/${path[1]}${min}.js`);});utils.loadScript(`${settings.lazy.libraryPath}/lazysizes${min}.js`);}}}};})(Drupal);;

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.