PageSourceSearch

https://www.uf-massamamabraao.pt/assets/wm-smile/javascripts/frontoffice/focus-trap-c2571bb512.min.js

js uf-massamamabraao.pt collected 2026-09-25 04:07:20 UTC 20,836 bytes, 9 lines download raw bytes

vendor: 5,755 bytes, lines 1-4
1/*!
2* tabbable 6.4.0
3* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4*/(function(k,S){typeof exports=="object"&&typeof module<"u"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(k=typeof globalThis<"u"?globalThis:k||self,(function(){var C=k.tabbable,O=k.tabbable={};S(O),O.noConflict=function(){return k.tabbable=C,O}})())})(this,(function(k){"use strict";var S=["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] *)"],C=S.join(","),O=typeof Element>"u",B=O?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Y=!O&&Element.prototype.getRootNode?function(d){var e;return d==null||(e=d.getRootNode)===null||e===void 0?void 0:e.call(d)}:function(d){return d?.ownerDocument},H=function(e,n){var u;n===void 0&&(n=!0);var c=e==null||(u=e.getAttribute)===null||u===void 0?void 0:u.call(e,"inert"),m=c===""||c==="true",p=m||n&&e&&(typeof e.closest=="function"?e.closest("[inert]"):H(e.parentNode));return p},ae=function(e){var n,u=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return u===""||u==="true"},Z=function(e,n,u){if(H(e))return[];var c=Array.prototype.slice.apply(e.querySelectorAll(C));return n&&B.call(e,C)&&c.unshift(e),c=c.filter(u),c},G=function(e,n,u){for(var c=[],m=Array.from(e);m.length;){var p=m.shift();if(!H(p,!1))if(p.tagName==="SLOT"){var R=p.assignedElements(),D=R.length?R:p.children,A=G(D,!0,u);u.flatten?c.push.apply(c,A):c.push({scopeParent:p,candidates:A})}else{var K=B.call(p,C);K&&u.filter(p)&&(n||!e.includes(p))&&c.push(p);var j=p.shadowRoot||typeof u.getShadowRoot=="function"&&u.getShadowRoot(p),te=!H(j,!1)&&(!u.shadowRootFilter||u.shadowRootFilter(p));if(j&&te){var X=G(j===!0?p.children:j.children,!0,u);u.flatten?c.push.apply(c,X):c.push({scopeParent:p,candidates:X})}else m.unshift.apply(m,p.children)}}return c},J=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},z=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||ae(e))&&!J(e)?0:e.tabIndex},re=function(e,n){var u=z(e);return u<0&&n&&!J(e)?0:u},Q=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},x=function(e){return e.tagName==="INPUT"},ne=function(e){return x(e)&&e.type==="hidden"},ie=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(u){return u.tagName==="SUMMARY"});return n},q=function(e,n){for(var u=0;u<e.length;u++)if(e[u].checked&&e[u].form===n)return e[u]},oe=function(e){if(!e.name)return!0;var n=e.form||Y(e),u=function(R){return n.querySelectorAll('input[type="radio"][name="'+R+'"]')},c;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")c=u(window.CSS.escape(e.name));else try{c=u(e.name)}catch(p){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",p.message),!1}var m=q(c,e.form);return!m||m===e},ue=function(e){return x(e)&&e.type==="radio"},ee=function(e){return ue(e)&&!oe(e)},V=function(e){var n,u=e&&Y(e),c=(n=u)===null||n===void 0?void 0:n.host,m=!1;if(u&&u!==e){var p,R,D;for(m=!!((p=c)!==null&&p!==void 0&&(R=p.ownerDocument)!==null&&R!==void 0&&R.contains(c)||e!=null&&(D=e.ownerDocument)!==null&&D!==void 0&&D.contains(e));!m&&c;){var A,K,j;u=Y(c),c=(A=u)===null||A===void 0?void 0:A.host,m=!!((K=c)!==null&&K!==void 0&&(j=K.ownerDocument)!==null&&j!==void 0&&j.contains(c))}}return m},U=function(e){var n=e.getBoundingClientRect(),u=n.width,c=n.height;return u===0&&c===0},se=function(e,n){var u=n.displayCheck,c=n.getShadowRoot;if(u==="full-native"&&"checkVisibility"in e){var m=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!m}if(getComputedStyle(e).visibility==="hidden")return!0;var p=B.call(e,"details>summary:first-of-type"),R=p?e.parentElement:e;if(B.call(R,"details:not([open]) *"))return!0;if(!u||u==="full"||u==="full-native"||u==="legacy-full"){if(typeof c=="function"){for(var D=e;e;){var A=e.parentElement,K=Y(e);if(A&&!A.shadowRoot&&c(A)===!0)return U(e);e.assignedSlot?e=e.assignedSlot:!A&&K!==e.ownerDocument?e=K.host:e=A}e=D}if(V(e))return!e.getClientRects().length;if(u!=="legacy-full")return!0}else if(u==="non-zero-area")return U(e);return!1},le=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var u=0;u<n.children.length;u++){var c=n.children.item(u);if(c.tagName==="LEGEND")return B.call(n,"fieldset[disabled] *")?!0:!c.contains(e)}return!0}n=n.parentElement}return!1},o=function(e,n){return!(n.disabled||ne(n)||se(n,e)||ie(n)||le(n))},r=function(e,n){return!(ee(n)||z(n)<0||!o(e,n))},s=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},f=function(e){var n=[],u=[];return e.forEach(function(c,m){var p=!!c.scopeParent,R=p?c.scopeParent:c,D=re(R,p),A=p?f(c.candidates):R;D===0?p?n.push.apply(n,A):n.push(R):u.push({documentOrder:m,tabIndex:D,item:c,isScope:p,content:A})}),u.sort(Q).reduce(function(c,m){return m.isScope?c.push.apply(c,m.content):c.push(m.content),c},[]).concat(n)}
4,E=function(e,n){n=n||{};var u;return n.getShadowRoot?u=G([e],n.includeContainer,{filter:r.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:s}):u=Z(e,n.includeContainer,r.bind(null,n)),f(u)},b=function(e,n){n=n||{};var u;return n.getShadowRoot?u=G([e],n.includeContainer,{filter:o.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):u=Z(e,n.includeContainer,o.bind(null,n)),u},i=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return B.call(e,C)===!1?!1:r(n,e)},F=S.concat("iframe:not([inert]):not([inert] *)").join(","),I=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return B.call(e,F)===!1?!1:o(n,e)};k.focusable=b,k.getTabIndex=z,k.isFocusable=I,k.isTabbable=i,k.tabbable=E}));/*!
5* focus-trap 7.8.0
6* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7*/(function(k,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("tabbable")):typeof define=="function"&&define.amd?define(["exports","tabbable"],S):(k=typeof globalThis<"u"?globalThis:k||self,(function(){var C=k.focusTrap,O=k.focusTrap={};S(O,k.tabbable),O.noConflict=function(){return k.focusTrap=C,O}})())})(this,(function(k,S){"use strict";function C(o,r){(r==null||r>o.length)&&(r=o.length);for(var s=0,f=Array(r);s<r;s++)f[s]=o[s];return f}function O(o){if(Array.isArray(o))return C(o)}function B(o,r){var s=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!s){if(Array.isArray(o)||(s=Q(o))||r){s&&(o=s);var f=0,E=function(){};return{s:E,n:function(){return f>=o.length?{done:!0}:{done:!1,value:o[f++]}},e:function(I){throw I},f:E}
vendor: 4,220 bytes, lines 7-9
7}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
8In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b,i=!0,F=!1;return{s:function(){s=s.call(o)},n:function(){var I=s.next();return i=I.done,I},e:function(I){F=!0,b=I},f:function(){try{i||s.return==null||s.return()}finally{if(F)throw b}}}}function Y(o,r,s){return(r=re(r))in o?Object.defineProperty(o,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[r]=s,o}function H(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function ae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z(o,r){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);r&&(f=f.filter(function(E){return Object.getOwnPropertyDescriptor(o,E).enumerable})),s.push.apply(s,f)}return s}function G(o){for(var r=1;r<arguments.length;r++){var s=arguments[r]!=null?arguments[r]:{};r%2?Z(Object(s),!0).forEach(function(f){Y(o,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):Z(Object(s)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(s,f))})}return o}function J(o){return O(o)||H(o)||Q(o)||ae()}function z(o,r){if(typeof o!="object"||!o)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var f=s.call(o,r);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(o)}function re(o){var r=z(o,"string");return typeof r=="symbol"?r:r+""}function Q(o,r){if(o){if(typeof o=="string")return C(o,r);var s={}.toString.call(o).slice(8,-1);return s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set"?Array.from(o):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?C(o,r):void 0}}var x={getActiveTrap:function(r){return r?.length>0?r[r.length-1]:null},activateTrap:function(r,s){var f=x.getActiveTrap(r);s!==f&&x.pauseTrap(r);var E=r.indexOf(s);E===-1||r.splice(E,1),r.push(s)},deactivateTrap:function(r,s){var f=r.indexOf(s);f!==-1&&r.splice(f,1),x.unpauseTrap(r)},pauseTrap:function(r){var s=x.getActiveTrap(r);s?._setPausedState(!0)},unpauseTrap:function(r){var s=x.getActiveTrap(r);s&&!s._isManuallyPaused()&&s._setPausedState(!1)}},ne=function(r){return r.tagName&&r.tagName.toLowerCase()==="input"&&typeof r.select=="function"},ie=function(r){return r?.key==="Escape"||r?.key==="Esc"||r?.keyCode===27},q=function(r){return r?.key==="Tab"||r?.keyCode===9},oe=function(r){return q(r)&&!r.shiftKey},ue=function(r){return q(r)&&r.shiftKey},ee=function(r){return setTimeout(r,0)},V=function(r){for(var s=arguments.length,f=new Array(s>1?s-1:0),E=1;E<s;E++)f[E-1]=arguments[E];return typeof r=="function"?r.apply(void 0,f):r},U=function(r){return r.target.shadowRoot&&typeof r.composedPath=="function"?r.composedPath()[0]:r.target},se=[],le=function(r,s){var f=s?.document||document,E=s?.trapStack||se,b=G({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:oe,isKeyBackward:ue},s),i={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},F,I=function(t,a,l){return t&&t[a]!==void 0?t[a]:b[l||a]},d=function(t,a){var l=typeof a?.composedPath=="function"?a.composedPath():void 0;return i.containerGroups.findIndex(function(y){var h=y.container,g=y.tabbableNodes;return h.contains(t)||l?.includes(h)||g.find(function(v){return v===t})})},e=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=a.hasFallback,y=l===void 0?!1:l,h=a.params,g=h===void 0?[]:h,v=b[t];if(typeof v=="function"&&(v=v.apply(void 0,J(g))),v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var T=v;if(typeof v=="string"){try{T=f.querySelector(v)}catch(w){throw new Error("`".concat(t,'` appears to be an invali
9d selector; error="').concat(w.message,'"'))}if(!T&&!y)throw new Error("`".concat(t,"` as selector refers to no known node"))}return T},n=function(){var t=e("initialFocus",{hasFallback:!0});if(t===!1)return!1;if(t===void 0||t&&!S.isFocusable(t,b.tabbableOptions))if(d(f.activeElement)>=0)t=f.activeElement;else{var a=i.tabbableGroups[0],l=a&&a.firstTabbableNode;t=l||e("fallbackFocus")}else t===null&&(t=e("fallbackFocus"));if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},u=function(){if(i.containerGroups=i.containers.map(function(t){var a=S.tabbable(t,b.tabbableOptions),l=S.focusable(t,b.tabbableOptions),y=a.length>0?a[0]:void 0,h=a.length>0?a[a.length-1]:void 0,g=l.find(function(w){return S.isTabbable(w)}),v=l.slice().reverse().find(function(w){return S.isTabbable(w)}),T=!!a.find(function(w){return S.getTabIndex(w)>0});return{container:t,tabbableNodes:a,focusableNodes:l,posTabIndexesFound:T,firstTabbableNode:y,lastTabbableNode:h,firstDomTabbableNode:g,lastDomTabbableNode:v,nextTabbableNode:function(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,L=a.indexOf(P);return L<0?M?l.slice(l.indexOf(P)+1).find(function(W){return S.isTabbable(W)}):l.slice(0,l.indexOf(P)).reverse().find(function(W){return S.isTabbable(W)}):a[L+(M?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(t){return t.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!e("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(i.containerGroups.find(function(t){return t.posTabIndexesFound})&&i.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.")},c=function(t){var a=t.activeElement;if(a)return a.shadowRoot&&a.shadowRoot.activeElement!==null?c(a.shadowRoot):a},m=function(t){if(t!==!1&&t!==c(document)){if(!t||!t.focus){m(n());return}t.focus({preventScroll:!!b.preventScroll}),i.mostRecentlyFocusedNode=t,ne(t)&&t.select()}},p=function(t){var a=e("setReturnFocus",{params:[t]});return a||(a===!1?!1:t)},R=function(t){var a=t.target,l=t.event,y=t.isBackward,h=y===void 0?!1:y;a=a||U(l),u();var g=null;if(i.tabbableGroups.length>0){var v=d(a,l),T=v>=0?i.containerGroups[v]:void 0;if(v<0)h?g=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:g=i.tabbableGroups[0].firstTabbableNode;else if(h){var w=i.tabbableGroups.findIndex(function(fe){var de=fe.firstTabbableNode;return a===de});if(w<0&&(T.container===a||S.isFocusable(a,b.tabbableOptions)&&!S.isTabbable(a,b.tabbableOptions)&&!T.nextTabbableNode(a,!1))&&(w=v),w>=0){var P=w===0?i.tabbableGroups.length-1:w-1,M=i.tabbableGroups[P];g=S.getTabIndex(a)>=0?M.lastTabbableNode:M.lastDomTabbableNode}else q(l)||(g=T.nextTabbableNode(a,!1))}else{var L=i.tabbableGroups.findIndex(function(fe){var de=fe.lastTabbableNode;return a===de});if(L<0&&(T.container===a||S.isFocusable(a,b.tabbableOptions)&&!S.isTabbable(a,b.tabbableOptions)&&!T.nextTabbableNode(a))&&(L=v),L>=0){var W=L===i.tabbableGroups.length-1?0:L+1,_=i.tabbableGroups[W];g=S.getTabIndex(a)>=0?_.firstTabbableNode:_.firstDomTabbableNode}else q(l)||(g=T.nextTabbableNode(a))}}else g=e("fallbackFocus");return g},D=function(t){var a=U(t);if(!(d(a,t)>=0)){if(V(b.clickOutsideDeactivates,t)){F.deactivate({returnFocus:b.returnFocusOnDeactivate});return}V(b.allowOutsideClick,t)||t.preventDefault()}},A=function(t){var a=U(t),l=d(a,t)>=0;if(l||a instanceof Document)l&&(i.mostRecentlyFocusedNode=a);else{t.stopImmediatePropagation();var y,h=!0;if(i.mostRecentlyFocusedNode)if(S.getTabIndex(i.mostRecentlyFocusedNode)>0){var g=d(i.mostRecentlyFocusedNode),v=i.containerGroups[g].tabbableNodes;if(v.length>0){var T=v.findIndex(function(w){return w===i.mostRecentlyFocusedNode});T>=0&&(b.isKeyForward(i.recentNavEvent)?T+1<v.length&&(y=v[T+1],h=!1):T-1>=0&&(y=v[T-1],h=!1))}}else i.containerGroups.some(function(w){return w.tabbableNodes.some(function(P){return S.getTabIndex(P)>0})})||(h=!1);else h=!1;h&&(y=R({target:i.mostRecentlyFocusedNode,isBackward:b.isKeyBackward(i.recentNavEvent)})),m(y||i.mostRecentlyFocusedNode||n())}i.recentNavEvent=void 0},K=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=t;var l=R({event:t,isBackward:a});l&&(q(t)&&t.preventDefault(),m(l))},j=function(t){(b.isKeyForward(t)||b.isKeyBackward(t))&&K(t,b.isKeyBackward(t))},te=function(t){ie(t)&&V(b.escapeDeactivates,t)!==!1&&(t.preventDefault(),F.deactivate())},X=function(t){var a=U(t);d(a,t)>=0||V(b.clickOutsideDeactivates,t)||V(b.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},ve=function(){if(i.active)return x.activateTrap(E,F),i.delayInitialFocusTimer=b.delayInitialFocus?ee(function(){m(n())}):m(n()),f.addEventListener("focusin",A,!0),f.addEventListener("mousedown",D,{capture:!0,passive:!1}),f.addEventListener("touchstart",D,{capture:!0,passive:!1}),f.addEventListener("click",X,{capture:!0,passive:!1}),f.addEventListener("keydown",j,{capture:!0,passive:!1}),f.addEventListener("keydown",te),F},he=function(t){i.active&&!i.paused&&F._setSubtreeIsolation(!1),i.adjacentElements.clear(),i.alreadySilent.clear();var a=new Set,l=new Set,y=B(t),h;try{for(y.s();!(h=y.n()).done;){var g=h.value;a.add(g);for(var v=typeof ShadowRoot<"u"&&g.getRootNode()instanceof ShadowRoot,T=g;T;){a.add(T);var w=T.parentElement,P=[];w?P=w.children:!w&&v&&(P=T.getRootNode().children,w=T.getRootNode().host,v=typeof ShadowRoot<"u"&&w.getRootNode()instanceof ShadowRoot);var M=B(P),L;try{for(M.s();!(L=M.n()).done;){var W=L.value;l.add(W)}}catch(_){M.e(_)}finally{M.f()}T=w}}}catch(_){y.e(_)}finally{y.f()}
vendor: 3,490 bytes, line 9
9a.forEach(function(_){l.delete(_)}),i.adjacentElements=l},be=function(){if(i.active)return f.removeEventListener("focusin",A,!0),f.removeEventListener("mousedown",D,!0),f.removeEventListener("touchstart",D,!0),f.removeEventListener("click",X,!0),f.removeEventListener("keydown",j,!0),f.removeEventListener("keydown",te),F},pe=function(t){var a=t.some(function(l){var y=Array.from(l.removedNodes);return y.some(function(h){return h===i.mostRecentlyFocusedNode})});a&&m(n())},ce=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(pe):void 0,$=function(){ce&&(ce.disconnect(),i.active&&!i.paused&&i.containers.map(function(t){ce.observe(t,{subtree:!0,childList:!0})}))};return F={get active(){return i.active},get paused(){return i.paused},activate:function(t){if(i.active)return this;var a=I(t,"onActivate"),l=I(t,"onPostActivate"),y=I(t,"checkCanFocusTrap"),h=x.getActiveTrap(E),g=!1;if(h&&!h.paused){var v;(v=h._setSubtreeIsolation)===null||v===void 0||v.call(h,!1),g=!0}try{y||u(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=c(f),a?.();var T=function(){y&&u(),ve(),$(),b.isolateSubtrees&&F._setSubtreeIsolation(!0),l?.()};if(y)return y(i.containers.concat()).then(T,T),this;T()}catch(P){if(h===x.getActiveTrap(E)&&g){var w;(w=h._setSubtreeIsolation)===null||w===void 0||w.call(h,!0)}throw P}return this},deactivate:function(t){if(!i.active)return this;var a=G({onDeactivate:b.onDeactivate,onPostDeactivate:b.onPostDeactivate,checkCanReturnFocus:b.checkCanReturnFocus},t);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,i.paused||F._setSubtreeIsolation(!1),i.alreadySilent.clear(),be(),i.active=!1,i.paused=!1,$(),x.deactivateTrap(E,F);var l=I(a,"onDeactivate"),y=I(a,"onPostDeactivate"),h=I(a,"checkCanReturnFocus"),g=I(a,"returnFocus","returnFocusOnDeactivate");l?.();var v=function(){ee(function(){g&&m(p(i.nodeFocusedBeforeActivation)),y?.()})};return g&&h?(h(p(i.nodeFocusedBeforeActivation)).then(v,v),this):(v(),this)},pause:function(t){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,t)):this},unpause:function(t){return i.active?(i.manuallyPaused=!1,E[E.length-1]!==this?this:this._setPausedState(!1,t)):this},updateContainerElements:function(t){var a=[].concat(t).filter(Boolean);return i.containers=a.map(function(l){return typeof l=="string"?f.querySelector(l):l}),b.isolateSubtrees&&he(i.containers),i.active&&(u(),b.isolateSubtrees&&!i.paused&&F._setSubtreeIsolation(!0)),$(),this}},Object.defineProperties(F,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(t,a){if(i.paused===t)return this;if(i.paused=t,t){var l=I(a,"onPause"),y=I(a,"onPostPause");l?.(),be(),$(),F._setSubtreeIsolation(!1),y?.()}else{var h=I(a,"onUnpause"),g=I(a,"onPostUnpause");h?.(),F._setSubtreeIsolation(!0),u(),ve(),$(),g?.()}return this}},_setSubtreeIsolation:{value:function(t){b.isolateSubtrees&&i.adjacentElements.forEach(function(a){var l;if(t)switch(b.isolateSubtrees){case"aria-hidden":(a.ariaHidden==="true"||((l=a.getAttribute("aria-hidden"))===null||l===void 0?void 0:l.toLowerCase())==="true")&&i.alreadySilent.add(a),a.setAttribute("aria-hidden","true");break;default:(a.inert||a.hasAttribute("inert"))&&i.alreadySilent.add(a),a.setAttribute("inert",!0);break}else if(!i.alreadySilent.has(a))switch(b.isolateSubtrees){case"aria-hidden":a.removeAttribute("aria-hidden");break;default:a.removeAttribute("inert");break}})}}}),F.updateContainerElements(r),F};k.createFocusTrap=le}));

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.