text: /*! tabbyjs v12.0.1 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/tabby */
  Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),(function(e,t){"function"==typeof define&&define.amd?define([],(function(){return t(e)})):"object"==typeof exports?module.exports=t(e):e.Tabby=t(e)})("undefined"!=typeof global?global:"undefined"!=typeof window?window:this,(function(e){"use strict";var t={idPrefix:"tabby-toggle_",default:"[data-tabby-default]"},r=function(e){if(e&&"true"!=e.getAttribute("aria-selected")){var t=document.querySelector(e.hash);t&&(function(e){var t=e.closest('[role="tablist"]');if(t){var r=t.querySelector('[role="tab"][aria-selected="true"]');if(r){var i=document.querySelector(r.hash);r.setAttribute("aria-selected","false"),r.setAttribute("tabindex","-1"),i&&i.setAttribute("visibility","hidden")}}}(e),(function(e,t){e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0"),t.removeAttribute("visibility"),e.focus()})(e,t),(function(e,t){var r=new CustomEvent("tabby",{bubbles:!0,cancelable:!0,detail:{tab:e,content:t}});e.dispatchEvent(r)})(e,t))}},i=function(e,t){var i=(function(e){var t=e.closest('[role="tablist"]'),r=t?t.querySelectorAll('[role="tab"]'):null;if(r)return{tabs:r,index:Array.prototype.indexOf.call(r,e)}})(e);if(i){var o,n=i.tabs.length-1;["ArrowUp","ArrowLeft","Up","Left"].indexOf(t)>-1?o=i.index<1?n:i.index-1:["ArrowDown","ArrowRight","Down","Right"].indexOf(t)>-1?o=i.index===n?0:i.index+1:"Home"===t?o=0:"End"===t&&(o=n),r(i.tabs[o])}};return function(o,n){var a,l,u={};u.destroy=function(){var e=l.querySelectorAll("a[tabby-type=a]");Array.prototype.forEach.call(e,(function(e){var t=document.querySelector(e.hash);t&&(function(e,t,r){e.id.slice(0,r.idPrefix.length)===r.idPrefix&&(e.id=""),e.removeAttribute("role"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-selected"),e.removeAttribute("tabindex"),e.closest("li").removeAttribute("role"),t.removeAttribute("role"),t.removeAttribute("aria-labelledby"),t.removeAttribute("visibility")})(e,t,a)})),l.removeAttribute("role"),document.documentElement.removeEventListener("click",c,!0),l.removeEventListener("keydown",s,!0),a=null,l=null},u.setup=function(){if(l=document.querySelector(o)){var e=l.querySelectorAll("a[tabby-tab]");l.setAttribute("role","tablist"),Array.prototype.forEach.call(e,(function(e){var t=document.querySelector(e.hash);t&&(function(e,t,r){e.id||(e.id=r.idPrefix+t.id),e.setAttribute("role","tab"),e.setAttribute("aria-controls",t.id),e.closest("li").setAttribute("role","presentation"),t.setAttribute("role","tabpanel"),t.setAttribute("aria-labelledby",e.id),e.matches(r.default)?e.setAttribute("aria-selected","true"):(e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1"),t.setAttribute("visibility","hidden"))})(e,t,a)}))}},u.toggle=function(e){var t=e;"string"==typeof e&&(t=document.querySelector(o+' [role="tab"][href*="'+e+'"]')),r(t)};var c=function(e){var t=e.target.closest(o+' [role="tab"]');t&&(e.preventDefault(),r(t))},s=function(e){var t=document.activeElement;t.matches(o+' [role="tab"]')&&(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Up","Down","Left","Right","Home","End"].indexOf(e.key)<0||i(t,e.key))};return a=(function(){var e={};return Array.prototype.forEach.call(arguments,(function(t){for(var r in t){if(!t.hasOwnProperty(r))return;e[r]=t[r]}})),e})(t,n||{}),u.setup(),(function(t){if(!(e.location.hash.length<1)){var i=document.querySelector(t+' [role="tab"][href*="'+e.location.hash+'"]');r(i)}})(o),document.documentElement.addEventListener("click",c,!0),l.addEventListener("keydown",s,!0),u}}));