*/var bt=["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=bt.join(","),yt=typeof Element>"u",ae=yt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Fe=!yt&&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 n;t===void 0&&(t=!0);var s=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),r=s===""||s==="true",i=r||t&&e&&a(e.parentNode);return i},on=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},wt=function(e,t,n){if(Oe(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Ne));return t&&ae.call(e,Ne)&&s.unshift(e),s=s.filter(n),s},xt=function a(e,t,n){for(var s=[],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,n);n.flatten?s.push.apply(s,c):s.push({scopeParent:i,candidates:c})}else{var h=ae.call(i,Ne);h&&n.filter(i)&&(t||!e.includes(i))&&s.push(i);var m=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),f=!Oe(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(m&&f){var b=a(m===!0?i.children:m.children,!0,n);n.flatten?s.push.apply(s,b):s.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return s},_t=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)||on(e))&&!_t(e)?0:e.tabIndex},ln=function(e,t){varn=re(e);returnn<0&&t&&!_t(e)?0:n},cn=function(e,t){returne.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},St=function(e){returne.tagName==="INPUT"},un=function(e){returnSt(e)&&e.type==="hidden"},dn=function(e){vart=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){returnn.tagName==="SUMMARY"});returnt},hn=function(e,t){for(varn=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)returne[n]},fn=function(e){if(!e.name)return!0;vart=e.form||Fe(e),n=function(o){returnt.querySelectorAll('input[type="radio"][name="'+o+'"]')},s;if(typeofwindow<"u"&&typeofwindow.CSS<"u"&&typeofwindow.CSS.escape=="function")s=n(window.CSS.escape(e.name));elsetry{s=n(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=hn(s,e.form);return!r||r===e},pn=function(e){returnSt(e)&&e.type==="radio"},vn=function(e){returnpn(e)&&!fn(e)},mn=function(e){vart,n=e&&Fe(e),s=(t=n)===null||t===void0?void0:t.host,r=!1;if(n&&n!==e){vari,o,l;for(r=!!((i=s)!==null&&i!==void0&&(o=i.ownerDocument)!==null&&o!==void0&&o.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void0&&l.contains(e));!r&&s;){varc,h,m;n=Fe(s),s=(c=n)===null||c===void0?void0:c.host,r=!!((h=s)!==null&&h!==void0&&(m=h.ownerDocument)!==null&&m!==void0&&m.contains(s))}}returnr},lt=function(e){vart=e.getBoundingClientRect(),n=t.width,s=t.height;returnn===0&&s===0},gn=function(e,t){varn=t.displayCheck,s=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(!n||n==="full"||n==="legacy-full"){if(typeofs=="function"){for(varo=e;e;){varl=e.parentElement,c=Fe(e);if(l&&!l.shadowRoot&&s(l)===!0)returnlt(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(mn(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}elseif(n==="non-zero-are