*/var vt=["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])"],Ie=vt.join(","),mt=typeof Element>"u",re=mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!mt&&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},ke=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"},gt=function(e,t,s){if(ke(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Ie));return t&&re.call(e,Ie)&&n.unshift(e),n=n.filter(s),n},bt=function a(e,t,s){for(var n=[],r=Array.from(e);r.length;){var i=r.shift();if(!ke(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),c=o.length?o:i.children,l=a(c,!0,s);s.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var h=re.call(i,Ie);h&&s.filter(i)&&(t||!e.includes(i))&&n.push(i);var f=i.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(i),v=!ke(f,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(i));if(f&&v){var b=a(f===!0?i.children:f.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},yt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||rs(e))&&!yt(e)?0:e.tabIndex},as=function(e,t){vars=ie(e);returns<0&&t&&!yt(e)?0:s},os=function(e,t){returne.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},wt=function(e){returne.tagName==="INPUT"},cs=function(e){returnwt(e)&&e.type==="hidden"},ls=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||Ne(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){returnwt(e)&&e.type==="radio"},fs=function(e){returnhs(e)&&!ds(e)},ps=function(e){vart,s=e&&Ne(e),n=(t=s)===null||t===void0?void0:t.host,r=!1;if(s&&s!==e){vari,o,c;for(r=!!((i=n)!==null&&i!==void0&&(o=i.ownerDocument)!==null&&o!==void0&&o.contains(n)||e!=null&&(c=e.ownerDocument)!==null&&c!==void0&&c.contains(e));!r&&n;){varl,h,f;s=Ne(n),n=(l=s)===null||l===void0?void0:l.host,r=!!((h=n)!==null&&h!==void0&&(f=h.ownerDocument)!==null&&f!==void0&&f.contains(n))}}returnr},rt=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=re.call(e,"details>summary:first-of-type"),i=r?e.parentElement:e;if(re.call(i,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeofn=="function"){for(varo=e;e;){varc=e.parentElement,l=Ne(e);if(c&&!c.shadowRoot&&n(c)===!0)returnrt(e);e.assignedSlot?e=e.assignedSlot:!c&&l!==e.ownerDocument?e=l.host:e=c}e=o}if(ps(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}elseif(s==="non-zero-are