!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?e(exports):"function"==typeofdefine&&define.amd?define(["exports"],e):(t="undefined"!=typeofglobalThis?globalThis:t||self,function(){varn=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){returnt.tabbable=n,o}}())}(this,(function(t){"use strict";vare=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],n=e.join(","),o="undefined"==typeofElement,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){vare;returnnull==t||null===(e=t.getRootNode)||void0===e?void0:e.call(t)}:function(t){returnnull==t?void0:t.ownerDocument},a=function(t,e){varn;void0===e&&(e=!0);varo=null==t||null===(n=t.getAttribute)||void0===n?void0:n.call(t,"inert");return""===o||"true"===o||e&&t&&("function"==typeoft.closest?t.closest("[inert]"):a(t.parentNode))},l=function(t,e,o){if(a(t))return[];vari=Array.prototype.slice.apply(t.querySelectorAll(n));returne&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(vari=[],l=Array.from(t);l.length;){varc=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){vard=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);varp=c.shadowRoot||"function"==typeofo.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){varv=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}elsel.unshift.apply(l,c.children)}}returni},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)thrownewError("No node provided");returnt.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){vare,n=null==t||null===(e=t.getAttribute)||void0===e?void0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){returnt.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){returnfunction(t){returns(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;vare,n=t.form||i(t),o=function(t){returnn.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeofwindow&&void0!==window.CSS&&"function"==typeofwindow.CSS.escape)e=o(window.CSS.escape(t.name));elsetry{e=o(t.name)}catch(t){returnconsole.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}varr=function(t,e){for(varn=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)returnt[n]}(e,t.form);return!r||r===t}(t)},h=function(t){vare=t.getBoundingClientRect(),n=e.width,o=e.height;return0===n&&0===o},v=function(t,e){varn=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"int)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;vara=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)returnh(t)}else{if("function"==typeofo){for(varl=t;t;){varu=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))returnh(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){vare,n,o,r,a=t&&i(t),l=null===(e=a)||void0===e?