vendor: 8,189 bytes, line 1
1!function(e){("object"!=typeof exports||"undefined"==typeof module)&&"function"==typeof define&&define.amd?define("inert",e):e()}(function(){"use strict";var o,r,t,i,s,n,e=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){d(this,u),this._inertManager=t,this._rootElement=e,this._managedNodes=new Set,this._rootElement.hasAttribute("aria-hidden")?this._savedAriaHidden=this._rootElement.getAttribute("aria-hidden"):this._savedAriaHidden=null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}function h(e,t){d(this,h),this._node=e,this._overrodeFocusMethod=!1,this._inertRoots=new Set([t]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}function l(e){if(d(this,l),!e)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=e,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),_(e.head||e.body||e.documentElement),"loading"===e.readyState?e.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}function c(e,t,n){if(e.nodeType==Node.ELEMENT_NODE){var i=e,o=(t&&t(i),i.shadowRoot);if(o)return void c(o,t,o);if("content"==i.localName){for(var o=i,r=o.getDistributedNodes?o.getDistributedNodes():[],s=0;s<r.length;s++)c(r[s],t,n);return}if("slot"==i.localName){for(var o=i,a=o.assignedNodes?o.assignedNodes({flatten:!0}):[],d=0;d<a.length;d++)c(a[d],t,n);return}}for(var u=e.firstChild;null!=u;)c(u,t,n),u=u.nextSibling}function _(e){var t;e.querySelector("style#inert-style, link#inert-style")||((t=document.createElement("style")).setAttribute("id","inert-style"),t.textContent="\n[inert] {\n pointer-events: none;\n cursor: default;\n}\n\n[inert], [inert] * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n",e.appendChild(t))}"undefined"!=typeof window&&"undefined"!=typeof Element&&(o=Array.prototype.slice,r=Element.prototype.matches||Element.prototype.msMatchesSelector,t=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","video","[contenteditable]"].join(","),e(u,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(null!==this._savedAriaHidden?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach(function(e){this._unmanageNode(e.node)},this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(e){var t=this,n=(c(e,function(e){return t._visitNode(e)}),document.activeElement);if(!document.body.contains(e)){for(var i=e,o=void 0;i;){if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){o=i;break}i=i.parentNode}o&&(n=o.activeElement)}e.contains(n)&&(n.blur(),n===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(e){e.nodeType===Node.ELEMENT_NODE&&((e=e)!==this._rootElement&&e.hasAttribute("inert")&&this._adoptInertRoot(e),(r.call(e,t)||e.hasAttribute("tabindex"))&&this._manageNode(e))}},{key:"_manageNode",value:function(e){e=this._inertManager.register(e,this);this._managedNodes.add(e)}},{key:"_unmanageNode",value:function(e){e=this._inertManager.deregister(e,this);e&&this._managedNodes.delete(e)}},{key:"_unmanageSubtree",value:function(e){var t=this;c(e,function(e){return t._unmanageNode(e)})}},{key:"_adoptInertRoot",value:function(e){var t=this._inertManager.getInertRoot(e);t||(this._inertManager.setInert(e,!0),t=this._inertManager.getInertRoot(e)),t.managedNodes.forEach(function(e){this._manageNode(e.node)},this)}},{key:"_onMutation",value:function(e,t){e.forEach(function(e){var t,n=e.target;"childList"===e.type?(o.call(e.addedNodes).forEach(function(e){this._makeSubtreeUnfocusable(e)},this),o.call(e.removedNodes).forEach(function(e){this._unmanageSubtree(e)},this)):"attributes"===e.type&&("tabindex"===e.attributeName?this._manageNode(n):n!==this._rootElement&&"inert"===e.attributeName&&n.hasAttribute("inert")&&(this._adoptInertRoot(n),t=this._inertManager.getInertRoot(n),this._managedNodes.forEach(function(e){n.contains(e.node)&&t._manageNode(e.node)})))},this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return null!==this._savedAriaHidden}},{key:"savedAriaHidden",set:function(e){this._savedAriaHidden=e},get:function(){return this._savedAriaHidden}}]),i=u,e(h,[{key:"destructor",value:function(){var e;this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE&&(e=this._node,null!==this._savedTabIndex?e.setAttribute("tabindex",this._savedTabIndex):e.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete e.focus),this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){var e;this.node.nodeType===Node.ELEMENT_NODE&&(e=this.node,r.call(e,t)?-1===e.tabIndex&&this.hasSavedTabIndex||(e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex),e.setAttribute("tabindex","-1"),e.nodeType===Node.ELEMENT_NODE&&(e.focus=function(){},this._overrodeFocusMethod=!0)):e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex,e.removeAttribute("tabindex")))}},{key:"addInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.add(e)}},{key:"removeInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.delete(e),0===this._inertRoots.size&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return null!==this._savedTabIndex}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(e){this._throwIfDestroyed(),this._savedTabIndex=e},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),s=h,e(l,[{key:"setInert",value:function(e,t){if(t){if(!this._inertRoots.has(e)){t=new i(e,this);if(e.setAttribute("inert",""),this._inertRoots.set(e,t),!this._document.body.contains(e))for(var n=e.parentNode;n;)11===n.nodeType&&_(n),n=n.parentNode}}else this._inertRoots.has(e)&&(this._inertRoots.get(e).destructor(),this._inertRoots.delete(e),e.removeAttribute("inert"))}},{key:"getInertRoot",value:function(e){return this._inertRoots.get(e)}},{key:"register",value:function(e,t){var n=this._managedNodes.get(e);return void 0!==n?n.addInertRoot(t):n=new s(e,t),this._managedNodes.set(e,n),n}},{key:"deregister",value:function(e,t){var n=this._managedNodes.get(e);return n?(n.removeInertRoot(t),n.destroyed&&this._managedNodes.delete(e),n):null}},{key:"_onDocumentLoaded",value:function(){o.call(this._document.querySelectorAll("[inert]")).forEach(function(e){this.setInert(e,!0)},this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(e,t){var i=this;e.forEach(function(e){switch(e.type){case"childList":o.call(e.addedNodes).forEach(function(e){var t;e.nodeType===Node.ELEMENT_NODE&&(t=o.call(e.querySelectorAll("[inert]")),r.call(e,"[inert]")&&t.unshift(e),t.forEach(function(e){this.setInert(e,!0)},i))},i);break;case"attributes":if("inert"!==e.attributeName)return;var t=e.target,n=t.hasAttribute("inert");i.setInert(t,n)}},this)}}]),e=l,HTMLElement.prototype.hasOwnProperty("inert")||(n=new e(document),Object.defineProperty(HTMLElement.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(e){n.setInert(this,e)}})))});
1jQuery(window).on('load',function(){if(jQuery('.sp-loader-with-logo').length>0){move();} 2jQuery('.sp-pre-loader').fadeOut(500,function(){jQuery(this).remove();});});function move(){var elem=document.getElementById('line-load');var width=1;var id=setInterval(frame,10);function frame(){if(width>=100){clearInterval(id);}else{width++;elem.style.width=width+'%';}}} 3jQuery(function($){var settings=Joomla.getOptions('data')||{};var handleStickiness=function(className,offsetTop){if($('body:not(.layout-edit-iframe)').hasClass(className)){var $header=$('#sp-header');var headerHeight=$header.outerHeight();var $stickyHeaderPlaceholder=$('.sticky-header-placeholder');let $stickyOffset='100';if(settings.header!==undefined&&settings.header.stickyOffset!==undefined){$stickyOffset=settings.header.stickyOffset||'100';} 4var stickyHeader=function(){var scrollTop=$(window).scrollTop();if(scrollTop>=offsetTop+Number($stickyOffset)){$header.addClass('header-sticky');$stickyHeaderPlaceholder.height(headerHeight);}else{if($header.hasClass('header-sticky')){$header.removeClass('header-sticky');$stickyHeaderPlaceholder.height('inherit');}}};stickyHeader();$(window).scroll(function(){stickyHeader();});if($('body').hasClass('layout-boxed')){var windowWidth=$header.parent().outerWidth();$header.css({'max-width':windowWidth,left:'auto'});}}else{var $header=$('#sp-header');if($header.hasClass('header-sticky')){$header.removeClass('header-sticky');} 5$(window).off('scroll');}};function getHeaderOffset(){let $header=$('#sp-header');let stickyHeaderTop=$header.offset().top;let $backHeader=$('body.back-panel').find('#sp-header');let backPanelStickyHeaderTop=null;if($backHeader.length>0){backPanelStickyHeaderTop=$backHeader.offset().top;} 6let headerOffset=stickyHeaderTop;if(backPanelStickyHeaderTop!==null){headerOffset=backPanelStickyHeaderTop-settings.topbarHeight;headerOffset=headerOffset<0?stickyHeaderTop:headerOffset;} 7return headerOffset;} 8const headerExist=$('#sp-header');if(headerExist.length>0){handleStickiness('sticky-header',getHeaderOffset());} 9$(window).scroll(function(){if($(this).scrollTop()>100){$('.sp-scroll-up').fadeIn();}else{$('.sp-scroll-up').fadeOut(400);}});$('.sp-scroll-up').click(function(){$('html, body').animate({scrollTop:-60,},600);return false;});$('.sp-megamenu-wrapper').parent().parent().css('position','static').parent().css('position','relative');$('.sp-menu-full').each(function(){$(this).parent().addClass('menu-justify');});$('#offcanvas-toggler, .offcanvas-toggler-secondary, .offcanvas-toggler-full').on('click',function(event){event.preventDefault();openOffcanvas();});$('.close-offcanvas, .offcanvas-overlay').on('click',function(event){event.preventDefault();closeOffcanvas();});function openOffcanvas(){$('.offcanvas-init').addClass('offcanvas-active full-offcanvas');$(document.body).css('overflow','hidden');$('.offcanvas-menu').removeAttr('inert').attr('tabindex','0');setTimeout(()=>{$('.close-offcanvas').focus();},100);$(document).on('keydown.offcanvas',handleOffcanvasKeyboard);} 10function closeOffcanvas(){$('.offcanvas-init').removeClass('offcanvas-active full-offcanvas');$(document.body).css('overflow','');$('.offcanvas-menu').attr('inert','').attr('tabindex','-1');$('#offcanvas-toggler').focus();$(document).off('keydown.offcanvas');} 11function handleOffcanvasKeyboard(e){if(!$('.offcanvas-init').hasClass('offcanvas-active'))return;const $offcanvas=$('.offcanvas-menu');const focusable='a[href], button, input, textarea, select, [tabindex="0"]';const $focusable=$offcanvas.find(focusable).filter(':visible');if(e.key==='Escape'){e.preventDefault();closeOffcanvas();return;} 12if(e.key==='Tab'){const $first=$focusable.first();const $last=$focusable.last();if(!$offcanvas[0].contains(document.activeElement)){e.preventDefault();$first.focus();return;} 13if(e.shiftKey&&document.activeElement===$first[0]){e.preventDefault();$last.focus();}else if(!e.shiftKey&&document.activeElement===$last[0]){e.preventDefault();$first.focus();}}} 14$(document).on('focusin',function(e){if($(e.target).closest('[inert]').length){e.preventDefault();$('#offcanvas-toggler').focus();}});
14if($('#modal-menu').length>0){let $modalToggler=$('#modal-menu-toggler');let $modalMenu=$('#modal-menu');let $body=$('body');$modalToggler.on('click',function(e){e.preventDefault();$modalMenu.toggleClass('active');$body.toggleClass('modal-menu-active');$(this).toggleClass('active');});$(document).keyup(function(e){if(e.key=='Escape'){$modalMenu.removeClass('active');$modalToggler.removeClass('active');$body.removeClass('modal-menu-active');}});} 15const tooltipTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"], .hasTooltip'));tooltipTriggerList.map(function(tooltipTriggerEl){return new bootstrap.Tooltip(tooltipTriggerEl,{html:true});});const popoverTriggerList=[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"], .hasPopover'));popoverTriggerList.map(function(popoverTriggerEl){return new bootstrap.Popover(popoverTriggerEl);});$('.article-ratings .rating-star').on('click',function(event){event.preventDefault();var $parent=$(this).closest('.article-ratings');var request={option:'com_ajax',template:template,action:'rating',rating:$(this).data('number'),article_id:$parent.data('id'),format:'json',};$.ajax({type:'POST',data:request,beforeSend:function(){$parent.find('.fa-spinner').show();},success:function(response){var data=$.parseJSON(response);$parent.find('.ratings-count').text(data.message);$parent.find('.fa-spinner').hide();if(data.status){$parent.find('.rating-symbol').html(data.ratings);} 16setTimeout(function(){$parent.find('.ratings-count').text('('+data.rating_count+')');},3000);},});});$('.sp-cookie-allow').on('click',function(event){event.preventDefault();var date=new Date();date.setTime(date.getTime()+30*24*60*60*1000);var expires='; expires='+date.toGMTString();document.cookie='spcookie_status=ok'+expires+'; path=/';$(this).closest('.sp-cookie-consent').fadeOut();});$('.btn-group label:not(.active)').click(function(){var label=$(this);var input=$('#'+label.attr('for'));if(!input.prop('checked')){label.closest('.btn-group').find('label').removeClass('active btn-success btn-danger btn-primary');if(input.val()===''){label.addClass('active btn-primary');}else if(input.val()==0){label.addClass('active btn-danger');}else{label.addClass('active btn-success');} 17input.prop('checked',true);input.trigger('change');} 18var parent=$(this).parents('#attrib-helix_ultimate_blog_options');if(parent){showCategoryItems(parent,input.val());}});$('.btn-group input[checked=checked]').each(function(){if($(this).val()==''){$('label[for='+$(this).attr('id')+']').addClass('active btn btn-primary');}else if($(this).val()==0){$('label[for='+$(this).attr('id')+']').addClass('active btn btn-danger');}else{$('label[for='+$(this).attr('id')+']').addClass('active btn btn-success');} 19var parent=$(this).parents('#attrib-helix_ultimate_blog_options');if(parent){parent.find('*[data-showon]').each(function(){$(this).hide();});}});function showCategoryItems(parent,value){var controlGroup=parent.find('*[data-showon]');controlGroup.each(function(){var data=$(this).attr('data-showon');data=typeof data!=='undefined'?JSON.parse(data):[];if(data.length>0){if(typeof data[0].values!=='undefined'&&data[0].values.includes(value)){$(this).slideDown();}else{$(this).hide();}}});} 20$(window).on('scroll',function(){var scrollBar=$('.sp-reading-progress-bar');if(scrollBar.length>0){var s=$(window).scrollTop(),d=$(document).height(),c=$(window).height();var scrollPercent=(s/(d-c))*100;const position=scrollBar.data('position');if(position==='top'){} 21scrollBar.css({width:`${scrollPercent}%`});}});var observer=new MutationObserver(function(mutations){$('#system-message-container .alert .close').attr('data-bs-dismiss','alert');});var target=document.querySelector('#system-message-container');observer.observe(target,{attributes:true});});jQuery(function($){const menuSelector='.menu-deeper.menu-parent';const togglerSelector='.menu-toggler';const childSelector='.menu-child';function toggleSubmenu($item,open=null){const $submenu=$item.children(childSelector);const isOpen=$item.hasClass('menu-parent-open');if(open===null)open=!isOpen;if(open){$item.addClass('menu-parent-open').attr('aria-expanded','true');$submenu.slideDown(150);}else{$item.removeClass('menu-parent-open').attr('aria-expanded','false');
21$submenu.slideUp(150);}} 22$(document).on('click',togglerSelector,function(event){event.preventDefault();event.stopPropagation();const $item=$(this).closest(menuSelector);const isOpen=$item.hasClass('menu-parent-open');toggleSubmenu($item,!isOpen);});$(document).on('click keydown',`${menuSelector} > a`,function(event){const isToggleKey=event.type==='click'||event.key==='Enter'||event.key===' ';const isKeyboard=event.key==='Enter'||event.key===' ';if(isToggleKey){const $item=$(this).closest(menuSelector);const $submenu=$item.children(childSelector);if($submenu.length){if(event.key===' '){event.preventDefault();toggleSubmenu($item);} 23else if(event.key==='Enter'){toggleSubmenu($item,true);}else if(event.type==='click'){toggleSubmenu($item,true);}}}});$(document).on('keydown',`${menuSelector} > a`,function(event){const $currentItem=$(this).closest('li');const $siblings=$currentItem.parent().children('li:visible');const index=$siblings.index($currentItem);if(event.key==='ArrowDown'){event.preventDefault();const $submenu=$currentItem.children(childSelector);if($submenu.length&&$currentItem.hasClass('menu-parent-open')){const $firstChildLink=$submenu.children('li:visible').find('a').first();if($firstChildLink.length){$firstChildLink.focus();return;}} 24$siblings.eq((index+1)%$siblings.length).find('a').first().focus();}else if(event.key==='ArrowUp'){event.preventDefault();$siblings.eq((index-1+$siblings.length)%$siblings.length).find('a').first().focus();}else if(event.key==='ArrowRight'){const $submenu=$currentItem.children(childSelector);if($submenu.length){event.preventDefault();toggleSubmenu($currentItem,true);const $firstChildLink=$submenu.children('li:visible').find('a').first();if($firstChildLink.length){$firstChildLink.focus();}}}else if(event.key==='ArrowLeft'||event.key==='Escape'){event.preventDefault();toggleSubmenu($currentItem,false);$currentItem.children('a').first().focus();}});$(document).on('keydown',`${childSelector} > li > a`,function(event){const $currentItem=$(this).closest('li');const $siblings=$currentItem.parent().children('li:visible');const index=$siblings.index($currentItem);if(event.key==='ArrowDown'){event.preventDefault();$siblings.eq((index+1)%$siblings.length).find('a').first().focus();}else if(event.key==='ArrowUp'){event.preventDefault();$siblings.eq((index-1+$siblings.length)%$siblings.length).find('a').first().focus();}else if(event.key==='ArrowRight'){const $submenu=$currentItem.children(childSelector);if($submenu.length){event.preventDefault();toggleSubmenu($currentItem,true);const $firstChildLink=$submenu.children('li:visible').find('a').first();if($firstChildLink.length){$firstChildLink.focus();}}}else if(event.key==='ArrowLeft'||event.key==='Escape'){event.preventDefault();const $parentMenu=$currentItem.parents(menuSelector).first();toggleSubmenu($parentMenu,false);$parentMenu.children('a').first().focus();}});$(document).on('click',function(event){if(!$(event.target).closest('.menu-deeper').length){$(menuSelector).removeClass('menu-parent-open').attr('aria-expanded','false');$(childSelector).slideUp(150);}});$(menuSelector).attr('aria-haspopup','true').attr('aria-expanded','false');});jQuery(function($){const menuSelectors='.sp-megamenu-parent > li, .sp-profile-wrapper';$(menuSelectors).each(function(){const $menuItem=$(this);const $trigger=$menuItem.children('a, button');const $dropdown=$menuItem.children('.sp-dropdown, .sp-profile-dropdown');if($dropdown.length){setupDropdownEvents($menuItem,$trigger,$dropdown);}});bindNestedDropdowns('body');function setupDropdownEvents($menuItem,$trigger,$dropdown){$trigger.on('focus mouseenter',function(){openMenu($menuItem,$dropdown);});$menuItem.on('mouseenter',function(){openMenu($menuItem,$dropdown);});$menuItem.on('mouseleave focusout',function(){setTimeout(function(){if(!$menuItem.find(':focus').length&&!$menuItem.is(':hover')){closeMenu($menuItem,$dropdown);}},100);});$trigger.on('keydown',function(event){switch(event.key){case' ':event.preventDefault();openMenu($menuItem,$dropdown);break;case'ArrowDown':event.preventDefault();openMenu($menuItem,$dropdown);focusFirstItem($dropdown);break;case'Escape':event.preventDefault();closeMenu($menuItem,$dropdown);$trigger.focus();break;}});$trigger.on('click',function(event){if($dropdown.length){openMenu($menuItem,$dropdown);}});} 25function bindNestedDropdowns(containerSelector){$(containerSelector).find(' .sp-has-child').each(function(){const $subItem=$(this);const $trigger=$subItem.children('a, button');const $subDropdown=$subItem.children('.sp-dropdown');if($subDropdown.length){setupDropdownEvents($subItem,$trigger,$subDropdown);bindNestedDropdowns($subDropdown);}});} 26function openMenu($item,$dropdown){$dropdown.show();if($dropdown.hasClass('sp-profile-dropdown')){$dropdown.attr('style','display: block !important');} 27bindKeyboardNavigation($dropdown);} 28function closeMenu($item,$dropdown){$dropdown.hide();if($dropdown.hasClass('sp-profile-dropdown')){$dropdown.removeAttr('style');}} 29function focusFirstItem($dropdown){const $focusable=$dropdown.find('a, button').filter(':visible');if($focusable.length){$focusable.first().focus();}} 30function bindKeyboardNavigation($dropdown){const $items=$dropdown.find('a, button').filter(':visible');$items.off('keydown').on('keydown',function(event){const currentIndex=$items.index(this);let newIndex=-1;if(event.key==='ArrowDown'){event.preventDefault();newIndex=(currentIndex+1)%$items.length;}else if(event.key==='ArrowUp'){event.preventDefault();newIndex=(currentIndex-1+$items.length)%$items.length;}else if(event.key==='Escape'){event.preventDefault();if($dropdown.hasClass('sp-profile-dropdown')){$dropdown.removeAttr('style');} 31const $currentDropdown=$(this).closest('.sp-dropdown');const $parentItem=$currentDropdown.parent(' .sp-has-child, .sp-megamenu-parent > li');const isRoot=$parentItem.parent().is('.sp-megamenu-parent, .sp-megamenu-parent > ul, nav');if(isRoot){$(menuSelectors).each(function(){const $item=$(this);closeMenu($item,$item.children('.sp-dropdown'));});}else{const $trigger=$parentItem.children('a, button');closeMenu($parentItem,$currentDropdown);if($trigger.length){$trigger.focus();}} 32return;} 33if(newIndex>
33-1){$items.eq(newIndex).focus();}});} 34$(document).on('click',function(event){if(!$(event.target).closest(menuSelectors).length){$(menuSelectors).each(function(){const $item=$(this);closeMenu($item,$item.children('.sp-dropdown'));});}});});function _createForOfIteratorHelperLoose(e,t){var r,n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return n&&(e=n),r=0,function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _regenerator(){var m,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",r=e.toStringTag||"@@toStringTag";function n(e,t,r,n){var o,a,i,s,c,l,u,f,d,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype);return _regeneratorDefine2(t,"_invoke",(o=e,a=r,u=n||[],f=!1,d={p:l=0,n:0,v:m,a:p,f:p.bind(m,4),d:function(e,t){return i=e,s=0,c=m,d.n=t,v}},function(e,t,r){if(1<l)throw TypeError("Generator is already running");for(f&&1===t&&p(t,r),s=t,c=r;(h=s<2?m:c)||!f;){i||(s?s<3?(1<s&&(d.n=-1),p(s,c)):d.n=c:d.v=c);try{if(l=2,i){if(h=i[e=s?e:"next"]){if(!(h=h.call(i,c)))throw TypeError("iterator result is not an object");if(!h.done)return h;c=h.value,s<2&&(s=0)}else 1===s&&(h=i.return)&&h.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+e+"' method"),s=1);i=m}else if((h=(f=d.n<0)?c:o.call(a,d))!==v)break}catch(e){i=m,s=1,c=e}finally{l=1}}return{value:h,done:f}}),!0),t;function p(e,t){for(s=e,c=t,h=0;!f&&l&&!r&&h<u.length;h++){var r,n=u[h],o=d.p,a=n[2];3<e?(r=a===t)&&(c=n[(s=n[4])?5:s=3],n[4]=n[5]=m):n[0]<=o&&((r=e<2&&o<n[1])?(s=0,d.v=t,d.n=n[1]):o<a&&(r=e<3||n[0]>t||a<t)&&(n[4]=e,n[5]=t,d.n=a,s=0))}if(r||1<e)return v;throw f=!0,t}}var v={};function y(){}function o(){}function a(){}var h=Object.getPrototypeOf,e=[][t]?h(h([][t]())):(_regeneratorDefine2(h={},t,function(){return this}),h),i=a.prototype=y.prototype=Object.create(e);function s(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,_regeneratorDefine2(e,r,"GeneratorFunction")),e.prototype=Object.create(i),e}return _regeneratorDefine2(i,"constructor",o.prototype=a),_regeneratorDefine2(a,"constructor",o),_regeneratorDefine2(a,r,o.displayName="GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,r,"Generator"),_regeneratorDefine2(i,t,function(){return this}),_regeneratorDefine2(i,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:n,m:s}})()}function _regeneratorDefine2(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,t,r,n){function o(t,r){_regeneratorDefine2(e,t,function(e){return this._invoke(t,r,e)})}t?a?a(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))})(e,t,r,n)}function asyncGeneratorStep(e,t,r,n,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function _asyncToGenerator(s){return function(){var e=this,i=arguments;return new Promise(function(t,r){var n=s.apply(e,i);function o(e){asyncGeneratorStep(n,t,r,o,a,"next",e)}function a(e){asyncGeneratorStep(n,t,r,o,a,"throw",e)}o(void 0)})}}function _createForOfIteratorHelperLoose(e,t){var r,n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return n&&(e=n),r=0,function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}((n,o)=>{var a=null,i={getOption:function(e,t){t=void 0===t?"":t;
34var r=this.getJoomlaOption("com_convertforms");return r&&void 0!==r[e]?r[e]:t},text:function(e,t){t=void 0===t?"":t;var r=this.getJoomlaOption("joomla.jtext");return void 0!==r[e]?r[e]:t},getJoomlaOption:function(e,t){if(!a){var r=o.querySelector(".joomla-script-options");if(!r)return;a=JSON.parse(r.text||r.textContent)}return void 0!==a[e]?a[e]:t},getCSRFToken:function(){return this.getJoomlaOption("csrf.token")},getBaseURL:function(e){var t=this.getOption("baseURL","/index.php?option=com_convertforms");return e&&void 0!==e&&(t=t+(-1<t.indexOf("?")?"&":"?")+e),this.emitEvent("ConvertFormsGetBaseURL",o,{url:t}).detail.url},getFormData:function(e){for(var t=new FormData(e),r=new FormData,n=_createForOfIteratorHelperLoose(t);!(o=n()).done;){var o=o.value,a=o[0],o=o[1],i=e.querySelector('.cf-input[name="'+a+'"]');i&&i.closest(".cf-control-group.cf-ignore")||r.append(a,o)}return r},serializeFormData:function(e){for(var t=[],r=_createForOfIteratorHelperLoose(e.entries());!(o=r()).done;){var n,o=o.value,a=o[0],o=o[1];-1<a.indexOf("cf[")&&(a=(n=a.match(/cf\[(.*?)\](.*)/))[1]+n[2]),t.push(encodeURIComponent(a)+"="+encodeURIComponent(o))}return t.join("&")},isInViewport:function(e){e=e.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(n.innerHeight||o.documentElement.clientHeight)&&e.right<=(n.innerWidth||o.documentElement.clientWidth)},emitEvent:function(e,t,r){e=new CustomEvent(e,{detail:r,cancelable:!0});return t.dispatchEvent(e),e},request:function(t){t=i.extend({url:"",method:"POST",headers:null,data:null,onSuccess:null,onError:null,onFail:null},t);try{var r=new XMLHttpRequest;if(r.open(t.method,t.url,!0),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("X-Ajax-Engine","Convert Forms!"),t.headers)for(var e in t.headers)t.headers.hasOwnProperty(e)&&r.setRequestHeader(e,t.headers[e]);if(r.onload=function(){4===r.readyState&&(200===r.status?t.onSuccess&&t.onSuccess.call(n,r.responseText,r):t.onError&&t.onError.call(n,r.responseText,r),t.onComplete)&&t.onComplete.call(n,r)},t.onBefore&&!1===t.onBefore.call(n,r))return r;r.send(t.data)}catch(e){return t.onFail&&t.onFail.call(n,e,r),console.error(e),!1}return r},extend:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},capitalize:function(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)},browserIsIE:function(){var e=n.navigator.userAgent,t=e.indexOf("MSIE "),e=e.indexOf("Trident/");return 0<t||0<e},loadScript:function(e,t){var r=o.head,n=o.createElement("script");n.type="text/javascript",n.src=e,n.onreadystatechange=t,n.onload=t,r.appendChild(n)},onReady:function(e){"loading"!=o.readyState?e(o.querySelectorAll("div.convertforms")):o.addEventListener("DOMContentLoaded",function(){e(o.querySelectorAll("div.convertforms"))})},toggleCheck:function(e,t){var r;e&&(r=!1,!e.checked&&t&&(r=e.checked=!0),r=e.checked&&!t?!(e.checked=!1):r)&&i.emitChange(e)},setValue:function(e,t){e.value!=t&&(e.value=t,e.value===t)&&i.emitChange(e)},emitChange:function(e){e.dispatchEvent(new Event("change",{bubbles:!0}))}};n.ConvertForms=n.ConvertForms||[],n.ConvertForms.Helper=i})(window,document),((f,d)=>{function n(n){var c={selector:n,extraData:{}},l=f.ConvertForms.Helper,u=n.querySelector("form");c.setSubmissionData=function(e,t){c.extraData[e]=t},c.getSubmissionData=function(e){if(e in c.extraData)return c.extraData[e]},c.getFormData=function(){var e=l.getFormData(u),t=Object.assign({},l.getOption("forward_context"),{source_url:f.location.href,referrer_url:d.referrer||null,page_title:d.title||null}),r=(e.set("forward_context",JSON.stringify(t)),Object.keys(c.extraData).length&&e.set("env",JSON.stringify(c.extraData)),[]);return n.querySelectorAll(".cf-control-group.cf-ignore").forEach(function(e){r.push(e.dataset.key)}),r.length&&(t={ignore:r},Object.keys(t).length)&&e.set("overrides",JSON.stringify(t)),e},c.submit=function(){var e;n.classList.contains("cf-working")||((e=c.emitEvent("beforeSubmit")).defaultPrevented?e.detail.hasOwnProperty("error")&&c.throwError(e.detail.error):l.request({url:l.getBaseURL("task=submit"),headers:{"X-CSRF-Token":l.getCSRFToken()},data:c.getFormData(),onBefore:function(){n.classList.add("cf-working"),n.classList.add("cf-disabled"),n.classList.remove("cf-error"),n.classList.remove("cf-success"),n.querySelector(".cf-response").removeAttribute("role")},onSuccess:function(t,e){try{t=JSON.parse(t)}catch(e){var r=t.match('{"convertforms"(.*?)}$');if(null==r)return void c.throwError(c.text("INVALID_RESPONSE")+": "+t);t=JSON.parse(r[0])}t.success?(c.emitEvent("success",{response:t,xhr:e}),r="formTask"+l.capitalize(t.task),c.hasOwnProperty(r)?(c[r].call(f,t),c.emitEvent("afterTask",{response:t,xhr:e,task:t.task})):c.throwError(c.text("INVALID_TASK")+": "+r)):(c.emitEvent("error",{response:t,xhr:e}),c.throwError(t.error),(r=n.querySelector(".cf-fields .cf-input"))&&r.focus())},onComplete:function(e){c.emitEvent("afterSubmit",{xhr:e}),n.classList.remove("cf-working","cf-disabled"),l.isInViewport(n)||n.scrollIntoView()},onError:function(e,t){c.throwError("Error: "+e)},onFail:function(e,t){c.throwError("Fail: "+e)}}))},c.emitEvent=function(e,t,r){if(e)return(t=t||{}).instance=c,(r=r||!0)&&(r="ConvertForms"+l.capitalize(e),l.emitEvent(r,d,t)),l.emitEvent(e,n,t)},c.formTaskMsg=function(e){n.classList.add("cf-success"),n.querySelector(".cf-response").innerHTML=e.value,"1"==e.resetform&&c.onResetForm()},c.onResetForm=function(){u.reset(),u.querySelectorAll(".tf-phone-control--flag--selector").forEach(function(e){e.phonecontrol.reset()}),u.querySelectorAll(".nrf-rating-wrapper").forEach(function(e){e.querySelectorAll("input").forEach(function(e){e.checked=!1,e.nextElementSibling.classList.remove("iconFilled")})})},c.formTaskUrl=function(e){var t=e.value;if("2"!==e.passdata&&("1"==e.passdata&&(r=l.getFormData(u),r=l.serializeFormData(r),t+=(-1<e.value.indexOf("?")?"&":"?")+r),r=c.emitEvent("beforeRedirectUser",{url:t,target:"_self"}),f.open(r.detail.url,r.detail.target)),"2"==e.passdata){var r=c.emitEvent("beforeRedirectUser",{url:t}),n=d.createElement("form");n.action=r.detail.url,n.method="POST",n.style="display:none; position:absolute; top:-100000px; left:-100000px";for(var o=_createForOfIteratorHelperLoose(l.getFormData(u).entries());!(i=o()).done;){var a,i=i.value,s=i[0],i=i[1];-1<s.indexOf("cf[")&&(a=-1<s.indexOf("[]"),s=s.match(/cf\[(.*?)\]/)[1],a&&(s+="[]"),(a=d.createElement("input")).type="hidden",a.name=s,a.value=i,n.appendChild(a))}d.body.appendChild(n),n.submit()}},c.throwError=function(e){n.classList.add("cf-error");var t=n.querySelector(".cf-response");t.innerHTML=e,t.setAttribute("role","alert")},c.text=function(e){return ConvertForms.Helper.text("COM_CONVERTFORMS_"+e)},(()=>{var e=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n.classList.contains("cf-init"))return e.a(2);e.n=1;break;case 1:f.IntersectionObserver&&new IntersectionObserver(function(e,t){e.forEach(function(e){e.isIntersecting&&(c.emitEvent("impression",{entry:e}),t.unobserve(e.target))})},{rootMargin:"0px 0px 0px 0px"}).observe(n),u.addEventListener("submit",function(e){e.preventDefault(),c.submit(e)}),n.classList.add("cf-init"),c.emitEvent("display");case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}})()(),n.ConvertForms=c}f.ConvertForms=f.ConvertForms||[];var o=f.ConvertForms.Helper;o.onReady(function(){for(var e=d.querySelectorAll(".convertforms.cf"),t=0;t<e.length;t++){var r=e[t];n(r)}o.emitEvent("ConvertFormsInit",d,e)})})(window,document),(a=>{a.addEventListener("ConvertFormsDisplay",function(e){var t,r,n,e=e.detail.instance,o=e.selector;void 0!==o.dataset.cfHp&&(t=(t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ").charAt(Math.floor(Math.random()*t.length))+Math.random().toString(36).substring(2,9),r=Math.floor(9*Math.random()+1)+" + "+Math.floor(9*Math.random()+1),a.querySelector('style[data-id="'+t+'"]')||((n=a.createElement("style")).setAttribute("data-id",t),n.innerHTML="label."+t+", input[type=text]."+t+" { display: none !important; }",a.head.appendChild(n)),(n=a.createElement("label")).setAttribute("for",t),n.className=t,n.textContent=r,o.querySelector("form").appendChild(n),(n=a.createElement("input")).type="text",n.name=t,n.id=t,n.placeholder=r,n.className="
34cf-input "+t,n.setAttribute("tabindex","-1"),o.querySelector("form").appendChild(n),e.setSubmissionData("hp",t))})})((window,document)),(e=>{e.addEventListener("DOMContentLoaded",function(){e.body.addEventListener("click",function(e){var t;e.target&&e.target.classList.contains("cf-password-toggle")&&("password"===(t=(e=e.target.closest(".cf-password")).querySelector("input")).type?(t.type="text",t.focus()):t.type="password",e.querySelector(".cf-password-visibility").classList.toggle("cf-hide"),e.querySelector(".cf-password-visibility-off").classList.toggle("cf-hide"))})})})((window,document)),window,document.addEventListener("ConvertFormsDisplay",function(e){var t,r=e.detail.instance,e=r.selector;void 0!==e.dataset.cfTts&&(t=getCurrentTimestamp(),r.setSubmissionData("tts",t),e.addEventListener("afterSubmit",function(){t=getCurrentTimestamp(),r.setSubmissionData("tts",t)}))}),getCurrentTimestamp=function(){return Math.floor(Date.now()/1e3)};
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.