PageSourceSearch

https://www.duden.de/sites/default/files/js/js_t2CLgNwA_F-XzZKyVry…rmneJq2UjhWPKuZ047LDPE45dIHVtESo1uf6B6UtuBE

js duden.de collected 2026-09-24 07:54:12 UTC 45,409 bytes, 17 lines download raw bytes

1/* @license MIT https://raw.githubusercontent.com/kraaden/autocomplete/master/readme.md */
2(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global.autosuggest=factory());}(this,(function(){'use strict';function autosuggest(settings){var doc=document;var container=doc.createElement("div");var containerStyle=container.style;var userAgent=navigator.userAgent;var mobileFirefox=userAgent.indexOf("Firefox")!==-1&&userAgent.indexOf("Mobile")!==-1;var mobileMozilla=userAgent.indexOf("Mozilla")!==-1&&userAgent.indexOf("Mobile")!==-1;var debounceWaitMs=settings.debounceWaitMs||0;var keyUpEventName=(mobileFirefox||mobileMozilla)?"input":"keyup";var items=[];var inputValue="";var minLen=settings.minLength||2;var selected;var keypressCounter=0;var debounceTimer;if(!settings.input)throw new Error("input undefined");var input=settings.input;container.className="autocomplete "+(settings.className||"");containerStyle.position="fixed";function detach(){var parent=container.parentNode;if(parent)parent.removeChild(container);}function clearDebounceTimer(){if(debounceTimer)window.clearTimeout(debounceTimer);}function attach(){if(!container.parentNode)doc.body.appendChild(container);}if(settings.attach)attach=settings.attach;function containerDisplayed(){return !!container.parentNode;}function clear(){keypressCounter++;items=[];inputValue="";selected=undefined;detach();}function updatePosition(){if(!containerDisplayed())return;containerStyle.height="auto";containerStyle.width=input.offsetWidth+"px";var inputRect=input.getBoundingClientRect();var top=inputRect.top+input.offsetHeight;var maxHeight=window.innerHeight-top;if(maxHeight<0)maxHeight=0;containerStyle.top=top+"px";containerStyle.bottom="";containerStyle.left=inputRect.left+"px";containerStyle.maxHeight=maxHeight+"px";if(settings.customize)settings.customize(input,inputRect,container,maxHeight);}function update(){while(container.firstChild)container.removeChild(container.firstChild);var render=function(item,currentValue){var itemElement=doc.createElement("div");itemElement.textContent=item.label||"";return itemElement;};if(settings.render)render=settings.render;var renderGroup=function(groupName,currentValue){var groupDiv=doc.createElement("div");groupDiv.textContent=groupName;return groupDiv;};if(settings.renderGroup)renderGroup=settings.renderGroup;var fragment=doc.createDocumentFragment();var prevGroup={};items.forEach(function(item){if(item.group&&item.group!==prevGroup){prevGroup=item.group;var groupDiv=renderGroup(item.group,inputValue);if(groupDiv){groupDiv.className+=" group";fragment.appendChild(groupDiv);}}var div=render(item,inputValue);if(div){div.addEventListener("click",function(ev){settings.onSelect(item,input);clear();});if(item===selected)div.className+=" selected";fragment.appendChild(div);}});container.appendChild(fragment);if(items.length<1)if(settings.emptyMsg){var empty=doc.createElement("div");empty.className="empty";empty.textContent=settings.emptyMsg;container.appendChild(empty);}else{clear();return;}attach(container);updatePosition();updateScroll();}function updateIfDisplayed(){if(containerDisplayed())update();}function resizeEventHandler(){updateIfDisplayed();}function scrollEventHandler(e){if(e.target!==container)updateIfDisplayed();else e.preventDefault();}function keyup(ev){var keyCode=ev.which||ev.keyCode||0;var ignore=[38,13,27,39,37,16,17,18,20,91,9];for(var _i=0,ignore_1=ignore;_i<ignore_1.length;_i++){var key=ignore_1[_i];if(keyCode===key)return;}if(keyCode===40&&containerDisplayed())return;var savedKeypressCounter=++keypressCounter;var val=input.value.trim();if(val.length>=minLen){clearDebounceTimer();debounceTimer=window.setTimeout(function(){settings.fetch(val,function(elements){if(keypressCounter===savedKeypressCounter&&elements){items=elements;inputValue=val;selected=undefined;update();}});},debounceWaitMs);}else clear();}function updateScroll(){var elements=container.getElementsByClassName("selected");if(elements.length>0){var element=elements[0];var previous=element.previousElementSibling;if(previous&&previous.className.indexOf("group")!==-1&&!previous.previousElementSibling)element=previous;if(element.offsetTop<container.scrollTop)container.scrollTop=element.offsetTop;else{var selectBottom=element.offsetTop+element.offsetHeight;var containerBottom=container.scrollTop+container.offsetHeight;if(selectBottom>containerBottom)container.scrollTop+=selectBottom-containerBottom;}}}var afterNav=function(container){};if(settings.afterNav)afterNav=settings.afterNav;function selectPrev(){if(items.length<1)selected=undefined;else if(selected===items[0])selected=undefined;else{for(var i=items.length-1;i>0;i--)if(selected===items[i]||i===1){selected=items[i-1];break;}}}function selectNext(){if(items.length<1)selected=undefined;if(!selected||selected===items[items.length-1]){selected=items[0];return;}for(var i=0;i<(items.length-1);i++)if(selected===items[i]){selected=items[i+1];break;}}function keydown(ev){var keyCode=ev.which||ev.keyCode||0;if(keyCode===38||keyCode===40||keyCode===27){var containerIsDisplayed=containerDisplayed();if(keyCode===27)clear();else{if(!containerDisplayed||items.length<1)return;keyCode===38?selectPrev():selectNext();
2update();afterNav(container);}ev.preventDefault();if(containerIsDisplayed)ev.stopPropagation();return;}if(keyCode===13&&selected){settings.onSelect(selected,input);clear();ev.preventDefault();ev.stopPropagation();}}function blur(){setTimeout(function(){if(doc.activeElement!==input)clear();},200);}function destroy(){input.removeEventListener("keydown",keydown);input.removeEventListener(keyUpEventName,keyup);input.removeEventListener("blur",blur);window.removeEventListener("resize",resizeEventHandler);doc.removeEventListener("scroll",scrollEventHandler,true);clearDebounceTimer();clear();keypressCounter++;}input.addEventListener("keydown",keydown);input.addEventListener(keyUpEventName,keyup);input.addEventListener("blur",blur);window.addEventListener("resize",resizeEventHandler);doc.addEventListener("scroll",scrollEventHandler,true);return {destroy};}return autosuggest;})));;
3/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
4!function e(o,i,c){function u(n,t){if(!i[n]){if(!o[n]){var r="function"==typeof require&&require;if(!t&&r)return r(n,!0);if(f)return f(n,!0);throw(t=new Error("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",t}r=i[n]={exports:{}},o[n][0].call(r.exports,function(t){return u(o[n][1][t]||t)},r,r.exports,e,o,i,c)}return i[n].exports}for(var f="function"==typeof require&&require,t=0;t<c.length;t++)u(c[t]);return u}({1:[function(t,n,r){n.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],2:[function(t,n,r){var e=t("./_is-object");n.exports=function(t){if(e(t))return t;throw TypeError(t+" is not an object!")}},{"./_is-object":17}],3:[function(t,n,r){var e={}.toString;n.exports=function(t){return e.call(t).slice(8,-1)}},{}],4:[function(t,n,r){n=n.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},{}],5:[function(t,n,r){var i=t("./_a-function");n.exports=function(e,o,t){if(i(e),void 0===o)return e;switch(t){case 1:return function(t){return e.call(o,t)};case 2:return function(t,n){return e.call(o,t,n)};case 3:return function(t,n,r){return e.call(o,t,n,r)}}return function(){return e.apply(o,arguments)}}},{"./_a-function":1}],6:[function(t,n,r){n.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},{}],7:[function(t,n,r){n.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":11}],8:[function(t,n,r){var e=t("./_is-object"),o=t("./_global").document,i=e(o)&&e(o.createElement);n.exports=function(t){return i?o.createElement(t):{}}},{"./_global":13,"./_is-object":17}],9:[function(t,n,r){function l(t,n,r){var e,o,i,c=t&l.F,u=t&l.G,f=t&l.P,s=t&l.B,a=u?d:t&l.S?d[n]||(d[n]={}):(d[n]||{})[g],_=u?v:v[n]||(v[n]={}),p=_[g]||(_[g]={});for(e in r=u?n:r)o=((i=!c&&a&&void 0!==a[e])?a:r)[e],i=s&&i?y(o,d):f&&"function"==typeof o?y(Function.call,o):o,a&&h(a,e,o,t&l.U),_[e]!=o&&x(_,e,i),f&&p[e]!=o&&(p[e]=o)}var d=t("./_global"),v=t("./_core"),x=t("./_hide"),h=t("./_redefine"),y=t("./_ctx"),g="prototype";d.core=v,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,n.exports=l},{"./_core":4,"./_ctx":5,"./_global":13,"./_hide":15,"./_redefine":22}],10:[function(t,n,r){var e=t("./_wks")("match");n.exports=function(n){var r=/./;try{"/./"[n](r)}catch(t){try{return r[e]=!1,!"/./"[n](r)}catch(t){}}return!0}},{"./_wks":27}],11:[function(t,n,r){n.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],12:[function(t,n,r){n.exports=t("./_shared")("native-function-to-string",Function.toString)},{"./_shared":23}],13:[function(t,n,r){n=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],14:[function(t,n,r){var e={}.hasOwnProperty;n.exports=function(t,n){return e.call(t,n)}},{}],15:[function(t,n,r){var e=t("./_object-dp"),o=t("./_property-desc");n.exports=t("./_descriptors")?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},{"./_descriptors":7,"./_object-dp":20,"./_property-desc":21}],16:[function(t,n,r){n.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})}
4,{"./_descriptors":7,"./_dom-create":8,"./_fails":11}],17:[function(t,n,r){n.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],18:[function(t,n,r){var e=t("./_is-object"),o=t("./_cof"),i=t("./_wks")("match");n.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},{"./_cof":3,"./_is-object":17,"./_wks":27}],19:[function(t,n,r){n.exports=!1},{}],20:[function(t,n,r){var e=t("./_an-object"),o=t("./_ie8-dom-define"),i=t("./_to-primitive"),c=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},{"./_an-object":2,"./_descriptors":7,"./_ie8-dom-define":16,"./_to-primitive":25}],21:[function(t,n,r){n.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},{}],22:[function(t,n,r){var i=t("./_global"),c=t("./_hide"),u=t("./_has"),f=t("./_uid")("src"),e=t("./_function-to-string"),o="toString",s=(""+e).split(o);t("./_core").inspectSource=function(t){return e.call(t)},(n.exports=function(t,n,r,e){var o="function"==typeof r;o&&!u(r,"name")&&c(r,"name",n),t[n]!==r&&(o&&!u(r,f)&&c(r,f,t[n]?""+t[n]:s.join(String(n))),t===i?t[n]=r:e?t[n]?t[n]=r:c(t,n,r):(delete t[n],c(t,n,r)))})(Function.prototype,o,function(){return"function"==typeof this&&this[f]||e.call(this)})},{"./_core":4,"./_function-to-string":12,"./_global":13,"./_has":14,"./_hide":15,"./_uid":26}],23:[function(t,n,r){var e=t("./_core"),o=t("./_global"),i="__core-js_shared__",c=o[i]||(o[i]={});(n.exports=function(t,n){return c[t]||(c[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:t("./_library")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"./_core":4,"./_global":13,"./_library":19}],24:[function(t,n,r){var e=t("./_is-regexp"),o=t("./_defined");n.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},{"./_defined":6,"./_is-regexp":18}],25:[function(t,n,r){var o=t("./_is-object");n.exports=function(t,n){if(!o(t))return t;var r,e;if(n&&"function"==typeof(r=t.toString)&&!o(e=r.call(t)))return e;if("function"==typeof(r=t.valueOf)&&!o(e=r.call(t)))return e;if(n||"function"!=typeof(r=t.toString)||o(e=r.call(t)))throw TypeError("Can't convert object to primitive value");return e}},{"./_is-object":17}],26:[function(t,n,r){var e=0,o=Math.random();n.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+o).toString(36))}},{}],27:[function(t,n,r){var e=t("./_shared")("wks"),o=t("./_uid"),i=t("./_global").Symbol,c="function"==typeof i;(n.exports=function(t){return e[t]||(e[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=e},{"./_global":13,"./_shared":23,"./_uid":26}],28:[function(t,n,r){"use strict";var e=t("./_export"),o=t("./_string-context"),i="includes";e(e.P+e.F*t("./_fails-is-regexp")(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,1<arguments.length?arguments[1]:void 0)}})},{"./_export":9,"./_fails-is-regexp":10,"./_string-context":24}]},{},[28]);;
5function _defineProperty(obj,key,value){if(key in obj)Object.defineProperty(obj,key,{value,enumerable:true,configurable:true,writable:true});else obj[key]=value;return obj;}(function(Drupal){const autoSuggestRequest=function autoSuggestRequest(url,callback){const xhr=new XMLHttpRequest();xhr.open('GET',url,true);xhr.responseType='json';xhr.onload=function(){const {status}=xhr;if(status===200)callback(null,xhr.response);else callback(status,xhr.response);};xhr.send();};const decodeHTML=function decodeHTML(html){const div=document.createElement('div');div.innerHTML=html;return div.innerText.replace(/\s+/,' ').trim();};const getFirstLink=function getFirstLink(html){const div=document.createElement('div');div.innerHTML=html;return div.querySelector('a[href]').href;};const scrollIntoView=function scrollIntoView(element){const bounding=element.getBoundingClientRect();const screen=window.innerHeight||document.documentElement.clientHeight;if(bounding.top<0||bounding.bottom>screen)element.scrollIntoView();};function transformResponse(apiResponse,scope='lexemes'){if(apiResponse&&apiResponse.member){const pathMap={lexemes:'/suchen/dudenonline/',synonyms:'/suchen/synonyme/',grammar:'/suchen/flexion/'};const basePath=pathMap[scope]||'/suchen/dudenonline/';const transformed=[];const seenTitles=new Set();apiResponse.member.forEach(function(doc){const title=doc.name;const encodedTitle=encodeURIComponent(title);if(!seenTitles.has(encodedTitle)){seenTitles.add(encodedTitle);transformed.push({value:` ${basePath}${encodedTitle}`,build:`<a class="form-asap__guess-title" href="${basePath}${encodedTitle}">\n<span class="form-asap__guess-lemma">${title}</span>\n</a>\n`});}});return transformed;}return apiResponse;}Drupal.behaviors.autosuggest={attach:function attach(context){const autocompletes=context.querySelectorAll('.duden-autosuggest:not([data-autosuggest-processed])');let _iteratorNormalCompletion=true;let _didIteratorError=false;let _iteratorError;try{const _loop=function _loop(){let _autocomplete;const input=_step.value;input.setAttribute('data-autosuggest-processed',true);input.setAttribute('autocomplete','off');let path=input.getAttribute('data-autocomplete-path');const param='q';const querySeperator=path.includes('?')?'&':'?';autosuggest(((_autocomplete={input,fetch:function fetch(text,update){const splitPath=path.split('/');const indexName=splitPath[2].substring(0,splitPath[2].indexOf('?'));const searchTypeMap={dictionary:'dictionary_search',synonyms:'synonym_search',grammar:'grammar_search',lang_knowledge:'knowledge_search'};const formData=new FormData(input.form);let scope=formData.get('scope');const searchType=searchTypeMap[scope]||'dictionary_search';scope='dictionary'===scope?'lexemes':scope;const url='lang_knowledge'===scope?`${path+querySeperator+param}=${text}&scope=${scope}`:`${'/api/search/'+scope+'/autocomplete?'+param}=${text}`;path=path.replace(indexName,searchType);autoSuggestRequest(url,(status,response)=>{let transformedResponse=[];if(typeof response==='string')response=JSON.parse(response);transformedResponse=transformResponse(response,scope);update(transformedResponse);});},onSelect:function onSelect(item){input.value=item.label;},debounceWaitMs:500,render:function render(item,currentValue){const itemElement=document.createElement('div');if(item.build)itemElement.innerHTML=item.build||'';else itemElement.textContent=item.value||'';const regex=new RegExp(currentValue,'gi');const lemmaText=itemElement.getElementsByClassName('form-asap__guess-lemma');lemmaText[0].innerHTML=lemmaText[0].innerHTML.replace(regex,'<span>$&</span>');return itemElement;},attach:function attach(container){const wrapper=document.querySelector('.form-asap__guesses');wrapper.appendChild(container);wrapper.removeAttribute('hidden');}}),_defineProperty(_autocomplete,'onSelect',(selected,input)=>{const maxlengthAttribute=input.getAttribute('maxlength');const maxlength=maxlengthAttribute||128;input.value=decodeHTML(selected.build).substring(0,maxlength);window.location=getFirstLink(selected.build);}),_defineProperty(_autocomplete,'afterNav',(container)=>{scrollIntoView(container.querySelector('.selected'));}),_defineProperty(_autocomplete,'customize',(input,inputRect,container,maxHeight)=>{container.removeAttribute('style');const groups={items:[]};let _iteratorNormalCompletion2=true;let _didIteratorError2=false;let _iteratorError2;try{for(var _iterator2=container.childNodes[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){const child=_step2.value;groups.items.push(child);if(child.classList.contains('selected'))child.classList.add('form-asap__selected-guess');}}catch(err){_didIteratorError2=true;_iteratorError2=err;}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null)_iterator2.return();}finally{if(_didIteratorError2)throw _iteratorError2;}}if(groups!==undefined){const wrapper=document.createElement('div');wrapper.classList.add('form-asap__guess-group');for(const i in groups.items)wrapper.appendChild(groups.items[i]);container.appendChild(wrapper);}Drupal.attachBehaviors(container);}),_autocomplete));};for(var _iterator=autocompletes[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop();}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null)_iterator.return();}finally{if(_didIteratorError)throw _iteratorError;}}}};})(Drupal);;
6document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll("[data-connect]");[].forEach.call(t,function(t){t.addEventListener("click",function(){window.location.href=window.atob(t.getAttribute("data-connect"));});});});;
7Drupal.behaviors.dataLayerPush={attach:function(context,settings){process(context);}};function process(context){if(drupalSettings.dataLayerPush&&dataLayer)for(i=0;drupalSettings.dataLayerPush.length>i;i++){var data=drupalSettings.dataLayerPush[i];if('click'==data.type)data.element.addEventListener('click',function(e){addLayer(data.data);});else{if(!data.element||data.element.length<1)addLayer(data.data);}}}function addLayer(data){dataLayer.push(data);};
8(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}
8" 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);;
9/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
10loadjs=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}function 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;
10for(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}();;
11/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
12(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={};elementSettings.url=$(el.form).attr('action');elementSettings.setClick=true;elementSettings.event='click';elementSettings.progress={type:'throbber'};elementSettings.base=el.id;elementSettings.element=el;Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element&&this.element.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=$.parseJSON(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
12$(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
12d}`,$.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));
12$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){if(typeof response.data==='string'){Drupal.deprecationError({message:'Passing a string to the Drupal.ajax.add_css() method is deprecated in 10.1.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3154948.'});$('head').prepend(response.data);return;}const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;
12if(!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'&&settings.isInProgress&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
13"use strict";!function(s){Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){var e=this;this.progress.element=s('<span class="revolver revolver--disabled">'+Drupal.t("Loading…")+"</span>"),this.progress.message&&this.progress.element.html(this.progress.message),setTimeout(function(){e.progress.element.removeClass("revolver--disabled")},1),s(this.element).after(this.progress.element)}}(jQuery);;
14(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);;
15"use strict";Drupal.behaviors.announcements={attach:function(e){var c=e.querySelectorAll(".announcement__content-wrapper");e.querySelectorAll(".announcement__seen-label").forEach(function(e,n){function t(){var e=c[n];e&&(e.style.display="none")}e.removeEventListener("click",t),e.addEventListener("click",t)})}};;
16(function(Drupal){'use strict';Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages announcement__content-wrapper messages--${type}  announcement--${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=`<div class="announcement__message">${text}</div>`;return messageWrapper;};})(Drupal);;
17(function(Drupal,once){'use strict';Drupal.behaviors.dudenSplideSlider={attach:function(context){once('splide-keyboard-nav','.splide.is-initialized',context).forEach((splideContainer)=>{const splide=splideContainer.splide;if(!splide){console.warn('Splide not found');return;}const slides=splideContainer.querySelectorAll('.splide__slide');slides.forEach((slide)=>{slide.addEventListener('keydown',function(event){handleSlideKeydown(event,splide,slide);});});function handleSlideKeydown(event,splideInstance){const currentIndex=splideInstance.index;const totalSlides=splideInstance.length;switch(event.key){case 'Tab':if(currentIndex<totalSlides-1){splideInstance.Components.Controller.go(currentIndex+1);event.preventDefault();}break;case 'ArrowLeft':if(currentIndex>0)splideInstance.Components.Controller.go(currentIndex-1);event.preventDefault();break;case 'ArrowRight':if(currentIndex<totalSlides-1)splideInstance.Components.Controller.go(currentIndex+1);event.preventDefault();break;}}splide.on('moved',(newIndex)=>{const newSlide=splideContainer.querySelector(`.slide--${newIndex}.is-visible.is-active`);if(newSlide){const slideLink=newSlide.querySelector('a');if(slideLink)slideLink.focus();}});});}};})(Drupal,once);;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.