vendor: 5,000 bytes, lines 1-6
1const Se=a=>a;function ce(a){const e=a-1;return e*e*e+1}function ne(a){const e=typeof a=="string"&&a.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[a,"px"]}function Xe(a,{delay:e=0,duration:t=400,easing:n=Se}={}){const u=+getComputedStyle(a).opacity;return{delay:e,duration:t,easing:n,css:s=>`opacity: ${s*u}`}}function Je(a,{delay:e=0,duration:t=400,easing:n=ce,x:u=0,y:s=0,opacity:r=0}={}){const c=getComputedStyle(a),b=+c.opacity,p=c.transform==="none"?"":c.transform,w=b*(1-r),[S,E]=ne(u),[A,F]=ne(s);return{delay:e,duration:t,easing:n,css:(D,x)=>` 2 transform: ${p} translate(${(1-D)*S}${E}, ${(1-D)*A}${F}); 3 opacity: ${b-w*x}`}}function Qe(a,{delay:e=0,duration:t=400,easing:n=ce,axis:u="y"}={}){const s=getComputedStyle(a),r=+s.opacity,c=u==="y"?"height":"width",b=parseFloat(s[c]),p=u==="y"?["top","bottom"]:["left","right"],w=p.map(T=>`${T[0].toUpperCase()}${T.slice(1)}`),S=parseFloat(s[`padding${w[0]}`]),E=parseFloat(s[`padding${w[1]}`]),A=parseFloat(s[`margin${w[0]}`]),F=parseFloat(s[`margin${w[1]}`]),D=parseFloat(s[`border${w[0]}Width`]),x=parseFloat(s[`border${w[1]}Width`]);return{delay:e,duration:t,easing:n,css:T=>`overflow: hidden;opacity: ${Math.min(T*20,1)*r};${c}: ${T*b}px;padding-${p[0]}: ${T*S}px;padding-${p[1]}: ${T*E}px;margin-${p[0]}: ${T*A}px;margin-${p[1]}: ${T*F}px;border-${p[0]}-width: ${T*D}px;border-${p[1]}-width: ${T*x}px;min-${c}: 0`}}/*! 4* tabbable 6.4.0 5* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 6*/var de=["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] *)"],M=de.join(","),fe=typeof Element>"u",_=fe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,G=!fe&&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},V=function(e,t){var n;t===void 0&&(t=!0);var u=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),s=u===""||u==="true",r=s||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):V(e.parentNode));return r},Te=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},ve=function(e,t,n){if(V(e))return[];var u=Array.prototype.slice.apply(e.querySelectorAll(M));return t&&_.call(e,M)&&u.unshift(e),u=u.filter(n),u},q=function(e,t,n){for(var u=[],s=Array.from(e);s.length;){var r=s.shift();if(!V(r,!1))if(r.tagName==="SLOT"){var c=r.assignedElements(),b=c.length?c:r.children,p=q(b,!0,n);n.flatten?u.push.apply(u,p):u.push({scopeParent:r,candidates:p})}else{var w=_.call(r,M);w&&n.filter(r)&&(t||!e.includes(r))&&u.push(r);var S=r.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(r),E=!V(S,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(r));if(S&&E){var A=q(S===!0?r.children:S.children,!0,n);n.flatten?u.push.apply(u,A):u.push({scopeParent:r,candidates:A})}else s.unshift.apply(s,r.children)}}return u},be=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},P=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Te(e))&&!be(e)?0:e.tabIndex},Ne=function(e,t){var n=P(e);return n<0&&t&&!be(e)?0:n},Fe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},pe=function(e){return e.tagName==="INPUT"},Ee=function(e){return pe(e)&&e.type==="hidden"},ke=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Ae=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ie=function(e){if(!e.name)return!0;var t=e.form||G(e),n=function(c){return t.querySelectorAll('input[type="radio"][name="'+c+'"]')},u;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")u=n(window.CSS.escape(e.name));else try{u=n(e.name)}catch(r){return r.message,!1}var s=Ae(u,e.form);return!s||s===e},Re=function(e){return pe(e)&&e.type==="radio"},Ce=function(e){return Re(e)&&!Ie(e)},De=function(e){var t,n=e&&G(e),u=(t=n)===null||t===void 0?void 0:t.host,s=!1;if(n&&n!==e){var r,c,b;for(s=!!((r=u)!==null&&r!==void 0&&(c=r.ownerDocument)!==null&&c!==void 0&&c.contains(u)||e!=null&&(b=e.ownerDocument)!==null&&b!==void 0&&b.contains(e));!s&&u;){var p,w,S;n=G(u),u=(p=n)===null||p===void 0?void 0:p.host,s=!!((w=u)!==null&&w!==void 0&&(S=w.ownerDocument)!==null&&S!==void 0&&S.contains(u))}}return s}
vendor: 15,113 bytes, lines 6-11
6,ie=function(e){var t=e.getBoundingClientRect(),n=t.width,u=t.height;return n===0&&u===0},Oe=function(e,t){var n=t.displayCheck,u=t.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(e).visibility==="hidden")return!0;var r=_.call(e,"details>summary:first-of-type"),c=r?e.parentElement:e;if(_.call(c,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof u=="function"){for(var b=e;e;){var p=e.parentElement,w=G(e);if(p&&!p.shadowRoot&&u(p)===!0)return ie(e);e.assignedSlot?e=e.assignedSlot:!p&&w!==e.ownerDocument?e=w.host:e=p}e=b}if(De(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return ie(e);return!1},Pe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var u=t.children.item(n);if(u.tagName==="LEGEND")return _.call(t,"fieldset[disabled] *")?!0:!u.contains(e)}return!0}t=t.parentElement}return!1},W=function(e,t){return!(t.disabled||Ee(t)||Oe(t,e)||ke(t)||Pe(t))},Z=function(e,t){return!(Ce(t)||P(t)<0||!W(e,t))},_e=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},he=function(e){var t=[],n=[];return e.forEach(function(u,s){var r=!!u.scopeParent,c=r?u.scopeParent:u,b=Ne(c,r),p=r?he(u.candidates):c;b===0?r?t.push.apply(t,p):t.push(c):n.push({documentOrder:s,tabIndex:b,item:u,isScope:r,content:p})}),n.sort(Fe).reduce(function(u,s){return s.isScope?u.push.apply(u,s.content):u.push(s.content),u},[]).concat(t)},xe=function(e,t){t=t||{};var n;return t.getShadowRoot?n=q([e],t.includeContainer,{filter:Z.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:_e}):n=ve(e,t.includeContainer,Z.bind(null,t)),he(n)},$e=function(e,t){t=t||{};var n;return t.getShadowRoot?n=q([e],t.includeContainer,{filter:W.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=ve(e,t.includeContainer,W.bind(null,t)),n},$=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return _.call(e,M)===!1?!1:Z(t,e)},je=de.concat("iframe:not([inert]):not([inert] *)").join(","),H=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return _.call(e,je)===!1?!1:W(t,e)};/*! 7* focus-trap 7.8.0 8* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 9*/function X(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=Array(e);t<e;t++)n[t]=a[t];return n}function Le(a){if(Array.isArray(a))return X(a)}function oe(a,e){var t=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!t){if(Array.isArray(a)||(t=ye(a))||e){t&&(a=t);var n=0,u=function(){};return{s:u,n:function(){return n>=a.length?{done:!0}:{done:!1,value:a[n++]}},e:function(b){throw b},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 10In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,r=!0,c=!1;return{s:function(){t=t.call(a)},n:function(){var b=t.next();return r=b.done,b},e:function(b){c=!0,s=b},f:function(){try{r||t.return==null||t.return()}finally{if(c)throw s}}}}function Be(a,e,t){return(e=qe(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Ke(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Me(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),t.push.apply(t,n)}return t}function se(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ue(Object(t),!0).forEach(function(n){Be(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function Ge(a){return Le(a)||Ke(a)||ye(a)||Me()}function Ve(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function qe(a){var e=Ve(a,"string");return typeof e=="symbol"?e:e+""}function ye(a,e){if(a){if(typeof a=="string")return X(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?X(a,e):void 0}}var R={getActiveTrap:function(e){return(e==null?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){var n=R.getActiveTrap(e);t!==n&&R.pauseTrap(e);var u=e.indexOf(t);u===-1||e.splice(u,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),R.unpauseTrap(e)},pauseTrap:function(e){var t=R.getActiveTrap(e);t==null||t._setPausedState(!0)},unpauseTrap:function(e){var t=R.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},We=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ue=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},B=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},ze=function(e){return B(e)&&!e.shiftKey},Ye=function(e){return B(e)&&e.shiftKey},le=function(e){return setTimeout(e,0)},L=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),u=1;u<t;u++)n[u-1]=arguments[u];return typeof e=="function"?e.apply(void 0,n):e},K=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},He=[],Ze=function(e,t){var n=(t==null?void 0:t.document)||document,u=(t==null?void 0:t.trapStack)||He,s=se({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:ze,isKeyBackward:Ye},t),r={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c,b=function(i,o,l){return i&&i[o]!==void 0?i[o]:s[l||o]},p=function(i,o){var l=typeof(o==null?void 0:o.composedPath)=="function"?o.composedPath():void 0;return r.containerGroups.findIndex(function(v){var f=v.container,h=v.tabbableNodes;return f.contains(i)||(l==null?void 0:l.includes(f))||h.find(function(d){return d===i})})},w=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=o.hasFallback,v=l===void 0?!1:l,f=o.params,h=f===void 0?[]:f,d=s[i];if(typeof d=="function"&&(d=d.apply(void 0,Ge(h))),d===!0&&(d=void 0),!d){if(d===void 0||d===!1)return d;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var y=d;if(typeof d=="string"){try{y=n.querySelector(d)}catch(m){throw new Error("`".concat(i,'` appears to be an invalid selector; error="').concat(m.message,'"'))}if(!y&&!v)throw new Error("`".concat(i,"` as selector refers to no known node"))}return y},S=function(){var i=w("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!H(i,s.tabbableOptions))if(p(n.activeElement)>=0)i=n.activeElement;else{var o=r.tabbableGroups[0],l=o&&o.firstTabbableNode;i=l||w("fallbackFocus")}else i===null&&(i=w("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},E=function(){if(r.containerGroups=r.containers.map(function(i){var o=xe(i,s.tabbableOptions),l=$e(i,s.tabbableOptions),v=o.length>0?o[0]:void 0,f=o.length>0?o[o.length-1]:void 0,h=l.find(function(m){return $(m)}),d=l.slice().reverse().find(function(m){return $(m)}),y=!!o.find(function(m){return P(m)>0});return{container:i,tabbableNodes:o,focusableNodes:l,posTabIndexesFound:y,firstTabbableNode:v,lastTabbableNode:f,firstDomTabbableNode:h,lastDomTabbableNode:d,nextTabbableNode:function(N){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,k=o.indexOf(N);return k<0?I?l.slice(l.indexOf(N)+1).find(function(O){return $(O)}):l.slice(0,l.indexOf(N)).reverse().find(function(O){return $(O)}):o[k+(I?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!w("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(i){return i.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},A=function(i){var o=i.activeElement;if(o)return o.shadowRoot&&o.shadowRoot.activeElement!==null?A(o.shadowRoot):o},F=function(i){if(i!==!1&&i!==A(document)){if(!i||!i.focus){F(S());return}i.focus({preventScroll:!!s.preventScroll}),r.mostRecentlyFocusedNode=i,We(i)&&i.select()}},D=function(i){var o=w("setReturnFocus",{params:[i]});return o||(o===!1?!1:i)},x=function(i){var o=i.target,l=i.event,v=i.isBackward,f=v===void 0?!1:v;o=o||K(l),E();var h=null;if(r.tabbableGroups.length>0){var d=p(o,l),y=d>=0?r.containerGroups[d]:void 0;if(d<0)f?h=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:h=r.tabbableGroups[0].firstTabbableNode;else if(f){var m=r.tabbableGroups.findIndex(function(z){var Y=z.firstTabbableNode;return o===Y});if(m<0&&(y.container===o||H(o,s.tabbableOptions)&&!$(o,s.tabbableOptions)&&!y.nextTabbableNode(o,!1))&&(m=d),m>=0){var N=m===0?r.tabbableGroups.length-1:m-1,I=r.tabbableGroups[N];h=P(o)>=0?I.lastTabbableNode:I.lastDomTabbableNode}else B(l)||(h=y.nextTabbableNode(o,!1))}else{var k=r.tabbableGroups.findIndex(function(z){var Y=z.lastTabbableNode;return o===Y});if(k<0&&(y.container===o||H(o,s.tabbableOptions)&&!$(o,s.tabbableOptions)&&!y.nextTabbableNode(o))&&(k=d),k>=0){var O=k===r.tabbableGroups.length-1?0:k+1,C=r.tabbableGroups[O];h=P(o)>=0?C.firstTabbableNode:C.firstDomTabbableNode}else B(l)||(h=y.nextTabbableNode(o))}}else h=w("fallbackFocus");return h},T=function(i){var o=K(i);if(!(p(o,i)>=0)){if(L(s.clickOutsideDeactivates,i)){c.deactivate({returnFocus:s.returnFocusOnDeactivate});return}L(s.allowOutsideClick,i)||i.preventDefault()}},J=function(i){var o=K(i),l=p(o,i)>=0;if(l||o instanceof Document)l&&(r.mostRecentlyFocusedNode=o);else{i.stopImmediatePropagation();var v,f=!0;if(r.mostRecentlyFocusedNode)if(P(r.mostRecentlyFocusedNode)>0){var h=p(r.mostRecentlyFocusedNode),d=r.containerGroups[h].tabbableNodes;if(d.length>0){var y=d.findIndex(function(m){return m===r.mostRecentlyFocusedNode});y>=0&&(s.isKeyForward(r.recentNavEvent)?y+1<d.length&&(v=d[y+1],f=!1):y-1>=0&&(v=d[y-1],f=!1))}}else r.containerGroups.some(function(m){return m.tabbableNodes.some(function(N){return P(N)>0})})||(f=!1);else f=!1;f&&(v=x({target:r.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(r.recentNavEvent)})),F(v||r.mostRecentlyFocusedNode||S())}r.recentNavEvent=void 0},me=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=i;var l=x({event:i,isBackward:o});l&&(B(i)&&i.preventDefault(),F(l))},Q=function(i){(s.isKeyForward(i)||s.isKeyBackward(i))&&me(i,s.isKeyBackward(i))},ee=function(i){Ue(i)&&L(s.escapeDeactivates,i)!==!1&&(i.preventDefault(),c.deactivate())},te=function(i){var o=K(i);p(o,i)>=0||L(s.clickOutsideDeactivates,i)||L(s.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},ae=function(){if(r.active)return R.activateTrap(u,c),r.delayInitialFocusTimer=s.delayInitialFocus?le(function(){F(S())}):F(S()),n.addEventListener("focusin",J,!0),n.addEventListener("mousedown",T,{capture:!0,passive:!1}),n.addEventListener("touchstart",T,{capture:!0,passive:!1}),n.addEventListener("click",te,{capture:!0,passive:!1}),n.addEventListener("keydown",Q,{capture:!0,passive:!1}),n.addEventListener("keydown",ee),c},ge=function(i){r.active&&!r.paused&&c._setSubtreeIsolation(!1),r.adjacentElements.clear(),r.alreadySilent.clear();var o=new Set,l=new Set,v=oe(i),f;try{for(v.s();!(f=v.n()).done;){var h=f.value;o.add(h);for(var d=typeof ShadowRoot<"u"&&h.getRootNode()instanceof ShadowRoot,y=h;y;){o.add(y);var m=y.parentElement,N=[];m?N=m.children:!m&&d&&(N=y.getRootNode().children,m=y.getRootNode().host,d=typeof ShadowRoot<"u"&&m.getRootNode()instanceof ShadowRoot);var I=oe(N),k;try{for(I.s();!(k=I.n()).done;){var O=k.value;l.add(O)}}catch(C){I.e(C)}finally{I.f()}y=m}}}catch(C){v.e(C)}finally{v.f()}o.forEach(function(C){l.delete(C)}),r.adjacentElements=l},re=function(){if(r.active)return n.removeEventListener("focusin",J,!0),n.removeEventListener("mousedown",T,!0),n.removeEventListener("touchstart",T,!0),n.removeEventListener("click",te,!0),n.removeEventListener("keydown",Q,!0),n.removeEventListener("keydown",ee),c},we=function(i){var o=i.some(function(l){var v=Array.from(l.removedNodes);return v.some(function(f){return f===r.mostRecentlyFocusedNode})});o&&F(S())},U=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(we):void 0,j=function(){U&&(U.disconnect(),r.active&&!r.paused&&r.containers.map(function(i){U.observe(i,{subtree:!0,childList:!0})}))};return c={get active(){return r.active},get paused(){return r.paused},activate:function(i){if(r.active)return this;var o=b(i,"onActivate"),l=b(i,"onPostActivate"),v=b(i,"checkCanFocusTrap"),f=R.getActiveTrap(u),h=!1;if(f&&!f.paused){var d;(d=f._setSubtreeIsolation)===null||d===void 0||d.call(f,!1),h=!0}try{v||E(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=A(n),o==null||o();var y=function(){v&&E(),ae(),j(),s.isolateSubtrees&&c._setSubtreeIsolation(!0),l==null||l()};if(v)return v(r.containers.concat()).then(y,y),this;y()}catch(N){if(f===R.getActiveTrap(u)&&h){var m;(m=f._setSubtreeIsolation)===null||m===void 0||m.call(f,!0)}throw N}return this},deactivate:function(i){if(!r.active)return this;var o=se({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},i);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,r.paused||c._setSubtreeIsolation(!1),r.alreadySilent.clear(),re(),r.active=!1,r.paused=!1,j(),R.deactivateTrap(u,c);var l=b(o,"onDeactivate"),v=b(o,"onPostDeactivate"),f=b(o,"checkCanReturnFocus"),h=b(o,"returnFocus","returnFocusOnDeactivate");l==null||l();var d=function(){le(function(){h&&F(D(r.nodeFocusedBeforeActivation)),v==null||v()})};return h&&f?(f(D(r.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(i){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return r.active?(r.manuallyPaused=!1,u[u.length-1]!==this?this:this._setPausedState(!1,i)):this}
11,updateContainerElements:function(i){var o=[].concat(i).filter(Boolean);return r.containers=o.map(function(l){return typeof l=="string"?n.querySelector(l):l}),s.isolateSubtrees&&ge(r.containers),r.active&&(E(),s.isolateSubtrees&&!r.paused&&c._setSubtreeIsolation(!0)),j(),this}},Object.defineProperties(c,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(i,o){if(r.paused===i)return this;if(r.paused=i,i){var l=b(o,"onPause"),v=b(o,"onPostPause");l==null||l(),re(),j(),c._setSubtreeIsolation(!1),v==null||v()}else{var f=b(o,"onUnpause"),h=b(o,"onPostUnpause");f==null||f(),c._setSubtreeIsolation(!0),E(),ae(),j(),h==null||h()}return this}},_setSubtreeIsolation:{value:function(i){s.isolateSubtrees&&r.adjacentElements.forEach(function(o){var l;if(i)switch(s.isolateSubtrees){case"aria-hidden":(o.ariaHidden==="true"||((l=o.getAttribute("aria-hidden"))===null||l===void 0?void 0:l.toLowerCase())==="true")&&r.alreadySilent.add(o),o.setAttribute("aria-hidden","true");break;default:(o.inert||o.hasAttribute("inert"))&&r.alreadySilent.add(o),o.setAttribute("inert",!0);break}else if(!r.alreadySilent.has(o))switch(s.isolateSubtrees){case"aria-hidden":o.removeAttribute("aria-hidden");break;default:o.removeAttribute("inert");break}})}}}),c.updateContainerElements(e),c};const et=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:Ze},Symbol.toStringTag,{value:"Module"}));export{et as F,Je as a,$e as b,Ze as c,Xe as f,H as i,Qe as s,xe as t}; 12//# sourceMappingURL=Bre5lY_g.js.map
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.