vendor: 4,286 bytes, lines 1-4
1import{t as ce,u as se}from"./index.CMAeChS2.js";import{r as V,a as le}from"./entry.Ckf0ULWG.js";/*! 2* tabbable 6.2.0 3* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 4*/var $=["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])"],A=$.join(","),H=typeof Element>"u",F=H?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,R=!H&&Element.prototype.getRootNode?function(i){var e;return i==null||(e=i.getRootNode)===null||e===void 0?void 0:e.call(i)}:function(i){return i==null?void 0:i.ownerDocument},O=function i(e,t){var a;t===void 0&&(t=!0);var u=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"inert"),c=u===""||u==="true",r=c||t&&e&&i(e.parentNode);return r},fe=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},_=function(e,t,a){if(O(e))return[];var u=Array.prototype.slice.apply(e.querySelectorAll(A));return t&&F.call(e,A)&&u.unshift(e),u=u.filter(a),u},ee=function i(e,t,a){for(var u=[],c=Array.from(e);c.length;){var r=c.shift();if(!O(r,!1))if(r.tagName==="SLOT"){var f=r.assignedElements(),l=f.length?f:r.children,b=i(l,!0,a);a.flatten?u.push.apply(u,b):u.push({scopeParent:r,candidates:b})}else{var y=F.call(r,A);y&&a.filter(r)&&(t||!e.includes(r))&&u.push(r);var h=r.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(r),N=!O(h,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(r));if(h&&N){var w=i(h===!0?r.children:h.children,!0,a);a.flatten?u.push.apply(u,w):u.push({scopeParent:r,candidates:w})}else c.unshift.apply(c,r.children)}}return u},te=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ae=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||fe(e))&&!te(e)?0:e.tabIndex},de=function(e,t){var a=ae(e);return a<0&&t&&!te(e)?0:a},ve=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},re=function(e){return e.tagName==="INPUT"},be=function(e){return re(e)&&e.type==="hidden"},he=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},pe=function(e,t){for(var a=0;a<e.length;a++)if(e[a].checked&&e[a].form===t)return e[a]},ge=function(e){if(!e.name)return!0;var t=e.form||R(e),a=function(f){return t.querySelectorAll('input[type="radio"][name="'+f+'"]')},u;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")u=a(window.CSS.escape(e.name));else try{u=a(e.name)}catch(r){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",r.message),!1}var c=pe(u,e.form);return!c||c===e},ye=function(e){return re(e)&&e.type==="radio"},me=function(e){return ye(e)&&!ge(e)},we=function(e){var t,a=e&&R(e),u=(t=a)===null||t===void 0?void 0:t.host,c=!1;if(a&&a!==e){var r,f,l;for(c=!!((r=u)!==null&&r!==void 0&&(f=r.ownerDocument)!==null&&f!==void 0&&f.contains(u)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!c&&u;){var b,y,h;a=R(u),u=(b=a)===null||b===void 0?void 0:b.host,c=!!((y=u)!==null&&y!==void 0&&(h=y.ownerDocument)!==null&&h!==void 0&&h.contains(u))}}return c},Y=function(e){var t=e.getBoundingClientRect(),a=t.width,u=t.height;return a===0&&u===0},Te=function(e,t){var a=t.displayCheck,u=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var c=F.call(e,"details>summary:first-of-type"),r=c?e.parentElement:e;if(F.call(r,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof u=="function"){for(var f=e;e;){var l=e.parentElement,b=R(e);if(l&&!l.shadowRoot&&u(l)===!0)return Y(e);e.assignedSlot?e=e.assignedSlot:!l&&b!==e.ownerDocument?e=b.host:e=l}e=f}if(we(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return Y(e);return!1}
vendor: 9,493 bytes, lines 4-7
4,Ne=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a<t.children.length;a++){var u=t.children.item(a);if(u.tagName==="LEGEND")return F.call(t,"fieldset[disabled] *")?!0:!u.contains(e)}return!0}t=t.parentElement}return!1},k=function(e,t){return!(t.disabled||O(t)||be(t)||Te(t,e)||he(t)||Ne(t))},K=function(e,t){return!(me(t)||ae(t)<0||!k(e,t))},Fe=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Se=function i(e){var t=[],a=[];return e.forEach(function(u,c){var r=!!u.scopeParent,f=r?u.scopeParent:u,l=de(f,r),b=r?i(u.candidates):f;l===0?r?t.push.apply(t,b):t.push(f):a.push({documentOrder:c,tabIndex:l,item:u,isScope:r,content:b})}),a.sort(ve).reduce(function(u,c){return c.isScope?u.push.apply(u,c.content):u.push(c.content),u},[]).concat(t)},Ee=function(e,t){t=t||{};var a;return t.getShadowRoot?a=ee([e],t.includeContainer,{filter:K.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Fe}):a=_(e,t.includeContainer,K.bind(null,t)),Se(a)},Ce=function(e,t){t=t||{};var a;return t.getShadowRoot?a=ee([e],t.includeContainer,{filter:k.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=_(e,t.includeContainer,k.bind(null,t)),a},I=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return F.call(e,A)===!1?!1:K(t,e)},De=$.concat("iframe").join(","),W=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return F.call(e,De)===!1?!1:k(t,e)};/*! 5* focus-trap 7.4.0 6* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 7*/function Z(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);e&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),t.push.apply(t,a)}return t}function z(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Z(Object(t),!0).forEach(function(a){Ie(i,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(t,a))})}return i}function Ie(i,e,t){return e=Ae(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Pe(i,e){if(typeof i!="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var a=t.call(i,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Ae(i){var e=Pe(i,"string");return typeof e=="symbol"?e:String(e)}var X={activateTrap:function(e,t){if(e.length>0){var a=e[e.length-1];a!==t&&a.pause()}var u=e.indexOf(t);u===-1||e.splice(u,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}},Re=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Oe=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},C=function(e){return e.key==="Tab"||e.keyCode===9},ke=function(e){return C(e)&&!e.shiftKey},xe=function(e){return C(e)&&e.shiftKey},J=function(e){return setTimeout(e,0)},Q=function(e,t){var a=-1;return e.every(function(u,c){return t(u)?(a=c,!1):!0}),a},E=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),u=1;u<t;u++)a[u-1]=arguments[u];return typeof e=="function"?e.apply(void 0,a):e},P=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Le=[],Ke=function(e,t){var a=(t==null?void 0:t.document)||document,u=(t==null?void 0:t.trapStack)||Le,c=z({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:ke,isKeyBackward:xe},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},f,l=function(n,o,s){return n&&n[o]!==void 0?n[o]:c[s||o]},b=function(n){return r.containerGroups.findIndex(function(o){var s=o.container,d=o.tabbableNodes;return s.contains(n)||d.find(function(v){return v===n})})},y=function(n){var o=c[n];if(typeof o=="function"){for(var s=arguments.length,d=new Array(s>1?s-1:0),v=1;v<s;v++)d[v-1]=arguments[v];o=o.apply(void 0,d)}if(o===!0&&(o=void 0),!o){if(o===void 0||o===!1)return o;throw new Error("`".concat(n,"` was specified but was not a node, or did not return a node"))}var g=o;if(typeof o=="string"&&(g=a.querySelector(o),!g))throw new Error("`".concat(n,"` as selector refers to no known node"));return g},h=function(){var n=y("initialFocus");if(n===!1)return!1;if(n===void 0)if(b(a.activeElement)>=0)n=a.activeElement;else{var o=r.tabbableGroups[0],s=o&&o.firstTabbableNode;n=s||y("fallbackFocus")}if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n},N=function(){if(r.containerGroups=r.containers.map(function(n){var o=Ee(n,c.tabbableOptions),s=Ce(n,c.tabbableOptions);return{container:n,tabbableNodes:o,focusableNodes:s,firstTabbableNode:o.length>0?o[0]:null,lastTabbableNode:o.length>0?o[o.length-1]:null,nextTabbableNode:function(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,m=s.findIndex(function(T){return T===v});if(!(m<0))return g?s.slice(m+1).find(function(T){return I(T,c.tabbableOptions)}):s.slice(0,m).reverse().find(function(T){return I(T,c.tabbableOptions)})}}}),r.tabbableGroups=r.containerGroups.filter(function(n){return n.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!y("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},w=function p(n){if(n!==!1&&n!==a.activeElement){if(!n||!n.focus){p(h());return}n.focus({preventScroll:!!c.preventScroll}),r.mostRecentlyFocusedNode=n,Re(n)&&n.select()}},B=function(n){var o=y("setReturnFocus",n);return o||(o===!1?!1:n)},D=function(n){var o=P(n);if(!(b(o)>=0)){if(E(c.clickOutsideDeactivates,n)){f.deactivate({returnFocus:c.returnFocusOnDeactivate});return}E(c.allowOutsideClick,n)||n.preventDefault()}},j=function(n){var o=P(n),s=b(o)>=0;s||o instanceof Document?s&&(r.mostRecentlyFocusedNode=o):(n.stopImmediatePropagation(),w(r.mostRecentlyFocusedNode||h()))},ne=function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=P(n);N();var d=null;if(r.tabbableGroups.length>0){var v=b(s),g=v>=0?r.containerGroups[v]:void 0;if(v<0)o?d=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:d=r.tabbableGroups[0].firstTabbableNode;else if(o){var m=Q(r.tabbableGroups,function(x){var L=x.firstTabbableNode;return s===L});if(m<0&&(g.container===s||W(s,c.tabbableOptions)&&!I(s,c.tabbableOptions)&&!g.nextTabbableNode(s,!1))&&(m=v),m>=0){var T=m===0?r.tabbableGroups.length-1:m-1,ie=r.tabbableGroups[T];d=ie.lastTabbableNode}else C(n)||(d=g.nextTabbableNode(s,!1))}else{var S=Q(r.tabbableGroups,function(x){var L=x.lastTabbableNode;return s===L});if(S<0&&(g.container===s||W(s,c.tabbableOptions)&&!I(s,c.tabbableOptions)&&!g.nextTabbableNode(s))&&(S=v),S>=0){var ue=S===r.tabbableGroups.length-1?0:S+1,oe=r.tabbableGroups[ue];d=oe.firstTabbableNode}else C(n)||(d=g.nextTabbableNode(s))}}else d=y("fallbackFocus");d&&(C(n)&&n.preventDefault(),w(d))},M=function(n){if(Oe(n)&&E(c.escapeDeactivates,n)!==!1){n.preventDefault(),f.deactivate();return}(c.isKeyForward(n)||c.isKeyBackward(n))&&ne(n,c.isKeyBackward(n))},U=function(n){var o=P(n);b(o)>=0||E(c.clickOutsideDeactivates,n)||E(c.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())},q=function(){if(r.active)return X.activateTrap(u,f),r.delayInitialFocusTimer=c.delayInitialFocus?J(function(){w(h())}):w(h()),a.addEventListener("focusin",j,!0),a.addEventListener("mousedown",D,{capture:!0,passive:!1}),a.addEventListener("touchstart",D,{capture:!0,passive:!1}),a.addEventListener("click",U,{capture:!0,passive:!1}),a.addEventListener("keydown",M,{capture:!0,passive:!1}),f},G=function(){if(r.active)return a.removeEventListener("focusin",j,!0),a.removeEventListener("mousedown",D,!0),a.removeEventListener("touchstart",D,!0),a.removeEventListener("click",U,!0),a.removeEventListener("keydown",M,!0),f};return f={get active(){return r.active},get paused(){return r.paused},activate:function(n){if(r.active)return this;var o=l(n,"onActivate"),s=l(n,"onPostActivate"),d=l(n,"checkCanFocusTrap");d||N(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=a.activeElement,o==null||o();var v=function(){d&&N(),q(),s==null||s()};return d?(d(r.containers.concat()).then(v,v),this):(v(),this)},deactivate:function(n){if(!r.active)return this;var o=z({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},n);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,G(),r.active=!1,r.paused=!1,X.deactivateTrap(u,f);var s=l(o,"onDeactivate"),d=l(o,"onPostDeactivate"),v=l(o,"checkCanReturnFocus"),g=l(o,"returnFocus","returnFocusOnDeactivate");s==null||s();var m=function(){J(function(){g&&w(B(r.nodeFocusedBeforeActivation)),d==null||d()})};return g&&v?(v(B(r.nodeFocusedBeforeActivation)).then(m,m),this):(m(),this)},pause:function(n){if(r.paused||!r.active)return this;var o=l(n,"onPause"),s=l(n,"onPostPause");return r.paused=!0,o==null||o(),G(),s==null||s(),this},unpause:function(n){if(!r.paused||!r.active)return this;var o=l(n,"onUnpause"),s=l(n,"onPostUnpause");return r.paused=!1,o==null||o(),N(),q(),s==null||s(),this}
7,updateContainerElements:function(n){var o=[].concat(n).filter(Boolean);return r.containers=o.map(function(s){return typeof s=="string"?a.querySelector(s):s}),r.active&&N(),this}},f.updateContainerElements(e),f};function Me(i,e={}){let t;const{immediate:a,...u}=e,c=V(!1),r=V(!1),f=h=>t&&t.activate(h),l=h=>t&&t.deactivate(h),b=()=>{t&&(t.pause(),r.value=!0)},y=()=>{t&&(t.unpause(),r.value=!1)};return le(()=>se(i),h=>{h&&(t=Ke(h,{...u,onActivate(){c.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){c.value=!1,e.onDeactivate&&e.onDeactivate()}}),a&&f())},{flush:"post"}),ce(()=>l()),{hasFocus:c,isPaused:r,activate:f,deactivate:l,pause:b,unpause:y}}export{Me as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.