1jQuery(document).ready(function($){var hash=window.location.hash.replace("#","");var $tabs=$(".js-tabs"),$body=$("body");if($tabs.length){var $tab_list=$tabs.find(".js-tablist");$tab_list.each(function(){var $this_tab_list=$(this),options=$this_tab_list.data(),$tabs_prefix_classes=typeof options.tabsPrefixClass!=='undefined'?options.tabsPrefixClass+'-':'',$hx=typeof options.hx!=='undefined'?options.hx:'',$existing_hx=typeof options.existingHx!=='undefined'?options.existingHx:'',$this_tab_list_items=$this_tab_list.children(".js-tablist__item"),$this_tab_list_links=$this_tab_list.find(".js-tablist__link");$this_tab_list.attr("role","tablist");$this_tab_list_items.attr("role","presentation");$this_tab_list_links.attr("role","tab");$this_tab_list.addClass($tabs_prefix_classes+'tabs__list');$this_tab_list_items.addClass($tabs_prefix_classes+'tabs__item');$this_tab_list_links.addClass($tabs_prefix_classes+'tabs__link');$this_tab_list_links.each(function(){var $this=$(this),$hx_generated_class=typeof options.tabsGeneratedHxClass!=='undefined'?options.tabsGeneratedHxClass:'invisible',$href=$this.attr("href"),$controls=$($href),$text=$this.text();if($hx!==""){$controls.prepend('<'+$hx+' class="'+$hx_generated_class+'" tabindex="0">'+$text+'</'+$hx+'>')} 2if($existing_hx!==""){$controls.find($existing_hx+':first-child').attr('tabindex',0)} 3if(typeof $href!=="undefined"&&$href!==""&&$href!=="#"){$this.attr({"aria-controls":$href.replace("#",""),"tabindex":-1,"aria-selected":"false"})} 4$this.removeAttr("href")})});$(".js-tabcontent").attr({"role":"tabpanel","aria-hidden":"true"}).each(function(){var $this=$(this),$this_id=$this.attr("id"),$prefix_attribute=$("#label_"+$this_id).closest('.js-tablist').attr('data-tabs-prefix-class'),$tabs_prefix_classes=typeof $prefix_attribute!=='undefined'?$prefix_attribute+'-':'';$this.attr("aria-labelledby","label_"+$this_id);$this.addClass($tabs_prefix_classes+'tabs__content')});if(hash!==""&&$("#"+hash+".js-tabcontent").length!==0){if($("#label_"+hash+".js-tablist__link:not([aria-disabled='true'])").length){$("#"+hash+".js-tabcontent").removeAttr("aria-hidden");$("#label_"+hash+".js-tablist__link").attr({"aria-selected":"true","tabindex":0})}} 5if(hash!==""&&$("#"+hash).parents('.js-tabcontent').length){var $this_hash=$("#"+hash),$tab_content_parent=$this_hash.parents('.js-tabcontent'),$tab_content_parent_id=$tab_content_parent.attr('id');if($("#label_"+$tab_content_parent_id+".js-tablist__link:not([aria-disabled='true'])").length){$tab_content_parent.removeAttr("aria-hidden");$("#label_"+$tab_content_parent_id+".js-tablist__link").attr({"aria-selected":"true","tabindex":0})}} 6$tabs.each(function(){var $this=$(this),$tab_selected=$this.find('.js-tablist__link[aria-selected="true"]'),$tab_data_selected=$this.find('.js-tablist__link[data-selected="1"]:not([aria-disabled="true"]):first'),$tab_data_selected_content=$('#'+$tab_data_selected.attr('aria-controls'));if($tab_selected.length===0&&$tab_data_selected.length!==0){$tab_data_selected.attr({"aria-selected":"true","tabindex":0});$tab_data_selected_content.removeAttr("aria-hidden")}});$tabs.each(function(){var $this=$(this),$tab_selected=$this.find('.js-tablist__link[aria-selected="true"]'),$first_link=$this.find('.js-tablist__link:not([aria-disabled="true"]):first'),$first_content=$('#'+$first_link.attr('aria-controls'));if($tab_selected.length===0){$first_link.attr({"aria-selected":"true","tabindex":0});$first_content.removeAttr("aria-hidden")}});$body.on("click",".js-tablist__link[aria-disabled='true']",function(){return!1});$body.on("click",".js-tablist__link:not([aria-disabled='true'])",function(event){var $this=$(this),$hash_to_update=$this.attr("aria-controls"),$tab_content_linked=$("#"+$this.attr("aria-controls")),$parent=$this.closest(".js-tabs"),options=$parent.data(),tabs_disable_fragments=typeof options.tabsDisableFragment!=='undefined'?!0:!1,$all_tab_links=$parent.find(".js-tablist__link"),$all_tab_contents=$parent.find(".js-tabcontent");$all_tab_links.attr({"tabindex":-1,"aria-selected":"false"});$this.attr({"aria-selected":"true","tabindex":0});$all_tab_contents.attr("aria-hidden","true");$tab_content_linked.removeAttr("aria-hidden");if(tabs_disable_fragments===!1){setTimeout(function(){history.pushState(null,null,location.pathname+location.search+'#'+$hash_to_update)},1000)} 7event.preventDefault()}).on("keydown",".js-tablist",function(event){var $parent=$(this).closest('.js-tabs'),$activated=$parent.find('.js-tablist__link[aria-selected="true"]').parent(),$last_link=$parent.find('.js-tablist__item:last-child .js-tablist__link'),$first_link=$parent.find('.js-tablist__item:first-child .js-tablist__link'),$focus_on_tab_only=!1,$prev=$activated,$next=$activated;do{if($prev.is(".js-tablist__item:first-child")){$prev=$last_link.parent()}else{$prev=$prev.prev()}} 8while($prev.children('.js-tablist__link').attr('aria-disabled')==='true'&&$prev!==$activated);do{if($next.is(".js-tablist__item:last-child")){$next=$first_link.parent()}else{$next=$next.next()}} 9while($next.children('.js-tablist__link').attr('aria-disabled')==='true'&&$next!==$activated);if($(document.activeElement).is($parent.find('.js-tablist__link'))){$focus_on_tab_only=!0} 10if($focus_on_tab_only&&!event.ctrlKey){if(event.keyCode==37||event.keyCode==38){$prev.children(".js-tablist__link").click().focus();event.preventDefault()}else if(event.keyCode==40||event.keyCode==39){$next.children(".js-tablist__link").click().focus();event.preventDefault()}else if(event.keyCode==36){$first_link.click().focus();event.preventDefault()}else if(event.keyCode==35){$last_link.click().focus();event.preventDefault()}}}).on("keydown",".js-tabcontent",function(event){var $this=$(this),$selector_tab_to_focus=$this.attr('aria-labelledby'),$tab_to_focus=$("#"+$selector_tab_to_focus),$parent_item=$tab_to_focus.parent(),$parent_list=$parent_item.parent(),$first_item=$parent_list.find('.js-tablist__item:first-child'),$last_item=$parent_list.find('.js-tablist__item:last-child'),$prev_item=$parent_item,$next_item=$parent_item;if((event.keyCode==37||event.keyCode==38)&&event.ctrlKey){$tab_to_focus.focus();event.preventDefault()} 11if(event.keyCode==33&&event.ctrlKey){do{if($prev_item.is(".js-tablist__item:first-child")){$prev_item=$last_item}else{$prev_item=$prev_item.prev()}} 12while($prev_item.children('.js-tablist__link').attr('aria-disabled')==='true'&&$prev_item!==$parent_item);$prev_item.children(".js-tablist__link").click().focus();event.preventDefault()} 13if(event.keyCode==34&&event.ctrlKey){$tab_to_focus.focus();do{if($next_item.is(".js-tablist__item:last-child")){$next_item=$first_item}else{$next_item=$next_item.next()}} 14while($next_item.children('.js-tablist__link').attr('aria-disabled')==='true'&&$next_item!==$parent_item);$next_item.children(".js-tablist__link").click().focus();event.preventDefault()}}).on("click",".js-link-to-tab",function(){var $this=$(this),$tab_to_go=$($this.attr('href')),$button_to_click=$('#'+$tab_to_go.attr('aria-labelledby'));if($button_to_click.attr('aria-disabled')!=='true'){$button_to_click.click();setTimeout(function(){$button_to_click.focus()},10)}})}})
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.