*/var gt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ne=gt.join(","),bt=typeof Element>"u",ae=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Fe=!bt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},Oe=function a(e,t){var s;t===void 0&&(t=!0);var n=e==null||(s=e.getAttribute)===null||s===void 0?void 0:s.call(e,"inert"),r=n===""||n==="true",i=r||t&&e&&a(e.parentNode);return i},rs=function(e){var t,s=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return s===""||s==="true"},yt=function(e,t,s){if(Oe(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Ne));return t&&ae.call(e,Ne)&&n.unshift(e),n=n.filter(s),n},wt=function a(e,t,s){for(var n=[],r=Array.from(e);r.length;){var i=r.shift();if(!Oe(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),l=o.length?o:i.children,c=a(l,!0,s);s.flatten?n.push.apply(n,c):n.push({scopeParent:i,candidates:c})}else{var h=ae.call(i,Ne);h&&s.filter(i)&&(t||!e.includes(i))&&n.push(i);var m=i.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(i),f=!Oe(m,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(i));if(m&&f){var b=a(m===!0?i.children:m.children,!0,s);s.flatten?n.push.apply(n,b):n.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return n},xt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},re=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||rs(e))&&!xt(e)?0:e.tabIndex},as=function(e,t){vars=re(e);returns<0&&t&&!xt(e)?0:s},os=function(e,t){returne.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},_t=function(e){returne.tagName==="INPUT"},ls=function(e){return_t(e)&&e.type==="hidden"},cs=function(e){vart=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){returns.tagName==="SUMMARY"});returnt},us=function(e,t){for(vars=0;s<e.length;s++)if(e[s].checked&&e[s].form===t)returne[s]},ds=function(e){if(!e.name)return!0;vart=e.form||Fe(e),s=function(o){returnt.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeofwindow<"u"&&typeofwindow.CSS<"u"&&typeofwindow.CSS.escape=="function")n=s(window.CSS.escape(e.name));elsetry{n=s(e.name)}catch(i){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",i.message),!1}varr=us(n,e.form);return!r||r===e},hs=function(e){return_t(e)&&e.type==="radio"},fs=function(e){returnhs(e)&&!ds(e)},ps=function(e){vart,s=e&&Fe(e),n=(t=s)===null||t===void0?void0:t.host,r=!1;if(s&&s!==e){vari,o,l;for(r=!!((i=n)!==null&&i!==void0&&(o=i.ownerDocument)!==null&&o!==void0&&o.contains(n)||e!=null&&(l=e.ownerDocument)!==null&&l!==void0&&l.contains(e));!r&&n;){varc,h,m;s=Fe(n),n=(c=s)===null||c===void0?void0:c.host,r=!!((h=n)!==null&&h!==void0&&(m=h.ownerDocument)!==null&&m!==void0&&m.contains(n))}}returnr},ot=function(e){vart=e.getBoundingClientRect(),s=t.width,n=t.height;returns===0&&n===0},vs=function(e,t){vars=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;varr=ae.call(e,"details>summary:first-of-type"),i=r?e.parentElement:e;if(ae.call(i,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeofn=="function"){for(varo=e;e;){varl=e.parentElement,c=Fe(e);if(l&&!l.shadowRoot&&n(l)===!0)returnot(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(ps(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}elseif(s==="non-zero-are