PageSourceSearch

https://cdn.apopro.dk/2026-09-17-12-49-50/_next/static/chunks/3531-5fcfb287b8c557f9.js

js apopro.dk collected 2026-09-25 02:37:30 UTC 26,846 bytes, 2 lines download raw bytes

vendor: 4,262 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3531],{4569:(e,t,n)=>{n.r(t),n.d(t,{focusable:()=>P,getTabIndex:()=>p,isFocusable:()=>C,isTabbable:()=>R,tabbable:()=>N});var o=["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] *)"],r=o.join(","),a="u"<typeof Element,i=a?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!a&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},s=function(e,t){void 0===t&&(t=!0);var n,o=null==e||null==(n=e.getAttribute)?void 0:n.call(e,"inert");return""===o||"true"===o||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):s(e.parentNode))},c=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},l=function(e,t,n){if(s(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&i.call(e,r)&&o.unshift(e),o=o.filter(n)},d=function(e,t,n){for(var o=[],a=Array.from(e);a.length;){var u=a.shift();if(!s(u,!1))if("SLOT"===u.tagName){var c=u.assignedElements(),l=d(c.length?c:u.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:u,candidates:l})}else{i.call(u,r)&&n.filter(u)&&(t||!e.includes(u))&&o.push(u);var f=u.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(u),p=!s(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(u));if(f&&p){var v=d(!0===f?u.children:f.children,!0,n);n.flatten?o.push.apply(o,v):o.push({scopeParent:u,candidates:v})}else a.unshift.apply(a,u.children)}}return o},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},p=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||c(e))&&!f(e)?0:e.tabIndex},v=function(e,t){var n=p(e);return n<0&&t&&!f(e)?0:n},b=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},y=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},m=function(e){if(!e.name)return!0;var t,n=e.form||u(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){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",e.message),!1}var r=y(t,e.form);return!r||r===e},g=function(e){return h(e)&&"radio"===e.type&&!m(e)},w=function(e){var t,n,o,r,a,i,s,c=e&&u(e),l=null==(t=c)?void 0:t.host,d=!1;if(c&&c!==e)for(d=!!(null!=(n=l)&&null!=(o=n.ownerDocument)&&o.contains(l)||null!=e&&null!=(r=e.ownerDocument)&&r.contains(e));!d&&l;)d=!!(null!=(i=l=null==(a=c=u(l))?void 0:a.host)&&null!=(s=i.ownerDocument)&&s.contains(l));return d},T=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},O=function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var r=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return T(e)}else{if("function"==typeof o){for(var a=e;e;){var s=e.parentElement,c=u(e);if(s&&!s.shadowRoot&&!0===o(s))return T(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=a}if(w(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}
1,E=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!i.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1},S=function(e,t){return!(t.disabled||h(t)&&"hidden"===t.type||O(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||E(t))},k=function(e,t){return!(g(t)||0>p(t))&&!!S(e,t)},F=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},D=function(e){var t=[],n=[];return e.forEach(function(e,o){var r=!!e.scopeParent,a=r?e.scopeParent:e,i=v(a,r),u=r?D(e.candidates):a;0===i?r?t.push.apply(t,u):t.push(a):n.push({documentOrder:o,tabIndex:i,item:e,isScope:r,content:u})}),n.sort(b).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},N=function(e,t){return D((t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:k.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:F}):l(e,t.includeContainer,k.bind(null,t)))},P=function(e,t){return(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:S.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):l(e,t.includeContainer,S.bind(null,t))},R=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==i.call(e,r)&&k(t,e)},I=o.concat("iframe:not([inert]):not([inert] *)").join(","),C=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==i.call(e,I)&&S(t,e)}},8878:(e,t,n)=>{n.r(t),n.d(t,{createFocusTrap:()=>y});var o=n(4569);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function a(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){var o,r;o=t,r=n[t],(o=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){if(e){if("string"==typeof e)return r(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}var c={getActiveTrap:function(e){return(null==e?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){t!==c.getActiveTrap(e)&&c.pauseTrap(e);var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),c.unpauseTrap(e)},pauseTrap:function(e){var t=c.getActiveTrap(e);null==t||t._setPausedState(!0)},unpauseTrap:function(e){var t=c.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},l=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},d=function(e){return l(e)&&!e.shiftKey},f=function(e){return l(e)&&e.shiftKey},p=function(e){return setTimeout(e,0)},v=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e?e.apply(void 0,n):e},b=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},h=[],y=function(e,t){var n,i=(null==t?void 0:t.document)||document,y=(null==t?void 0:t.trapStack)||h,m=u({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:d,isKeyBackward:f},t),g={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},w=function(e,t,n){return e&&void 0!==e[t]?e[t]:m[n||t]},T=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return g.containerGroups.findIndex(function(t){var o=t.container,r=t.tabbableNodes;return o.contains(e)||(null==n?void 0:n.includes(o))||r.find(function(t){return t===e})})},O=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.hasFallback,a=n.params,u=m[e];if("function"==typeof u&&(u=u.apply(void 0,function(e){if(Array.isArray(e))return r(e)}(t=void 0===a?[]:a)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||s(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===u&&(u=void 0),!u){if(void 0===u||!1===u)return u;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=u;if("string"==typeof u){try{c=i.querySelector(u)}
1catch(t){throw Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!(void 0!==o&&o))throw Error("`".concat(e,"` as selector refers to no known node"))}return c},E=function(){var e=O("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,o.isFocusable)(e,m.tabbableOptions))if(T(i.activeElement)>=0)e=i.activeElement;else{var t=g.tabbableGroups[0];e=t&&t.firstTabbableNode||O("fallbackFocus")}else null===e&&(e=O("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},S=function(){if(g.containerGroups=g.containers.map(function(e){var t=(0,o.tabbable)(e,m.tabbableOptions),n=(0,o.focusable)(e,m.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,i=n.find(function(e){return(0,o.isTabbable)(e)}),u=n.slice().reverse().find(function(e){return(0,o.isTabbable)(e)}),s=!!t.find(function(e){return(0,o.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:i,lastDomTabbableNode:u,nextTabbableNode:function(e){var r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=t.indexOf(e);return a<0?r?n.slice(n.indexOf(e)+1).find(function(e){return(0,o.isTabbable)(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return(0,o.isTabbable)(e)}):t[a+(r?1:-1)]}}}),g.tabbableGroups=g.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),g.tabbableGroups.length<=0&&!O("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(g.containerGroups.find(function(e){return e.posTabIndexesFound})&&g.containerGroups.length>1)throw 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.")},k=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?k(t.shadowRoot):t},F=function(e){if(!1!==e&&e!==k(document)){if(!e||!e.focus)return void F(E());e.focus({preventScroll:!!m.preventScroll}),g.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},D=function(e){var t=O("setReturnFocus",{params:[e]});return t||!1!==t&&e},N=function(e){var t=e.target,n=e.event,r=e.isBackward,a=void 0!==r&&r;t=t||b(n),S();var i=null;if(g.tabbableGroups.length>0){var u=T(t,n),s=u>=0?g.containerGroups[u]:void 0;if(u<0)i=a?g.tabbableGroups[g.tabbableGroups.length-1].lastTabbableNode:g.tabbableGroups[0].firstTabbableNode;else if(a){var c=g.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(c<0&&(s.container===t||(0,o.isFocusable)(t,m.tabbableOptions)&&!(0,o.isTabbable)(t,m.tabbableOptions)&&!s.nextTabbableNode(t,!1))&&(c=u),c>=0){var d=0===c?g.tabbableGroups.length-1:c-1,f=g.tabbableGroups[d];i=(0,o.getTabIndex)(t)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else l(n)||(i=s.nextTabbableNode(t,!1))}else{var p=g.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(p<0&&(s.container===t||(0,o.isFocusable)(t,m.tabbableOptions)&&!(0,o.isTabbable)(t,m.tabbableOptions)&&!s.nextTabbableNode(t))&&(p=u),p>=0){var v=p===g.tabbableGroups.length-1?0:p+1,h=g.tabbableGroups[v];i=(0,o.getTabIndex)(t)>=0?h.firstTabbableNode:h.firstDomTabbableNode}else l(n)||(i=s.nextTabbableNode(t))}}else i=O("fallbackFocus");return i},P=function(e){T(b(e),e)>=0||(v(m.clickOutsideDeactivates,e)?n.deactivate({returnFocus:m.returnFocusOnDeactivate}):v(m.allowOutsideClick,e)||e.preventDefault())},R=function(e){var t=b(e),n=T(t,e)>=0;if(n||t instanceof Document)n&&(g.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,a=!0;if(g.mostRecentlyFocusedNode)if((0,o.getTabIndex)(g.mostRecentlyFocusedNode)>0){var i=T(g.mostRecentlyFocusedNode),u=g.containerGroups[i].tabbableNodes;if(u.length>0){var s=u.findIndex(function(e){return e===g.mostRecentlyFocusedNode});s>=0&&(m.isKeyForward(g.recentNavEvent)?s+1<u.length&&(r=u[s+1],a=!1):s-1>=0&&(r=u[s-1],a=!1))}}else g.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,o.getTabIndex)(e)>0})})||(a=!1);else a=!1;a&&(r=N({target:g.mostRecentlyFocusedNode,isBackward:m.isKeyBackward(g.recentNavEvent)})),r?F(r):F(g.mostRecentlyFocusedNode||E())}
1g.recentNavEvent=void 0},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g.recentNavEvent=e;var n=N({event:e,isBackward:t});n&&(l(e)&&e.preventDefault(),F(n))},C=function(e){(m.isKeyForward(e)||m.isKeyBackward(e))&&I(e,m.isKeyBackward(e))},A=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==v(m.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},x=function(e){T(b(e),e)>=0||v(m.clickOutsideDeactivates,e)||v(m.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},j=function(){if(g.active)return c.activateTrap(y,n),g.delayInitialFocusTimer=m.delayInitialFocus?p(function(){F(E())}):F(E()),i.addEventListener("focusin",R,!0),i.addEventListener("mousedown",P,{capture:!0,passive:!1}),i.addEventListener("touchstart",P,{capture:!0,passive:!1}),i.addEventListener("click",x,{capture:!0,passive:!1}),i.addEventListener("keydown",C,{capture:!0,passive:!1}),i.addEventListener("keydown",A),n},_=function(e){g.active&&!g.paused&&n._setSubtreeIsolation(!1),g.adjacentElements.clear(),g.alreadySilent.clear();var t,o=new Set,r=new Set,i=a(e);try{for(i.s();!(t=i.n()).done;){var u=t.value;o.add(u);for(var s="u">typeof ShadowRoot&&u.getRootNode()instanceof ShadowRoot,c=u;c;){o.add(c);var l=c.parentElement,d=[];l?d=l.children:!l&&s&&(d=c.getRootNode().children,l=c.getRootNode().host,s="u">typeof ShadowRoot&&l.getRootNode()instanceof ShadowRoot);var f,p=a(d);try{for(p.s();!(f=p.n()).done;){var v=f.value;r.add(v)}}catch(e){p.e(e)}finally{p.f()}c=l}}}catch(e){i.e(e)}finally{i.f()}o.forEach(function(e){r.delete(e)}),g.adjacentElements=r},G=function(){if(g.active)return i.removeEventListener("focusin",R,!0),i.removeEventListener("mousedown",P,!0),i.removeEventListener("touchstart",P,!0),i.removeEventListener("click",x,!0),i.removeEventListener("keydown",C,!0),i.removeEventListener("keydown",A),n},L="u">typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===g.mostRecentlyFocusedNode})})&&F(E())}):void 0,B=function(){L&&(L.disconnect(),g.active&&!g.paused&&g.containers.map(function(e){L.observe(e,{subtree:!0,childList:!0})}))};return Object.defineProperties(n={get active(){return g.active},get paused(){return g.paused},activate:function(e){if(g.active)return this;var t,o,r=w(e,"onActivate"),a=w(e,"onPostActivate"),u=w(e,"checkCanFocusTrap"),s=c.getActiveTrap(y),l=!1;s&&!s.paused&&(null==(t=s._setSubtreeIsolation)||t.call(s,!1),l=!0);try{u||S(),g.active=!0,g.paused=!1,g.nodeFocusedBeforeActivation=k(i),null==r||r();var d=function(){u&&S(),j(),B(),m.isolateSubtrees&&n._setSubtreeIsolation(!0),null==a||a()};if(u)return u(g.containers.concat()).then(d,d),this;d()}catch(e){throw s===c.getActiveTrap(y)&&l&&(null==(o=s._setSubtreeIsolation)||o.call(s,!0)),e}return this},deactivate:function(e){if(!g.active)return this;var t=u({onDeactivate:m.onDeactivate,onPostDeactivate:m.onPostDeactivate,checkCanReturnFocus:m.checkCanReturnFocus},e);clearTimeout(g.delayInitialFocusTimer),g.delayInitialFocusTimer=void 0,g.paused||n._setSubtreeIsolation(!1),g.alreadySilent.clear(),G(),g.active=!1,g.paused=!1,B(),c.deactivateTrap(y,n);var o=w(t,"onDeactivate"),r=w(t,"onPostDeactivate"),a=w(t,"checkCanReturnFocus"),i=w(t,"returnFocus","returnFocusOnDeactivate");null==o||o();var s=function(){p(function(){i&&F(D(g.nodeFocusedBeforeActivation)),null==r||r()})};return i&&a?a(D(g.nodeFocusedBeforeActivation)).then(s,s):s(),this},pause:function(e){return g.active?(g.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return g.active?(g.manuallyPaused=!1,y[y.length-1]!==this)?this:this._setPausedState(!1,e):this},updateContainerElements:function(e){return g.containers=[].concat(e).filter(
1Boolean).map(function(e){return"string"==typeof e?i.querySelector(e):e}),m.isolateSubtrees&&_(g.containers),g.active&&(S(),m.isolateSubtrees&&!g.paused&&n._setSubtreeIsolation(!0)),B(),this}},{_isManuallyPaused:{value:function(){return g.manuallyPaused}},_setPausedState:{value:function(e,t){if(g.paused===e)return this;if(g.paused=e,e){var o=w(t,"onPause"),r=w(t,"onPostPause");null==o||o(),G(),B(),n._setSubtreeIsolation(!1),null==r||r()}else{var a=w(t,"onUnpause"),i=w(t,"onPostUnpause");null==a||a(),n._setSubtreeIsolation(!0),S(),j(),B(),null==i||i()}return this}},_setSubtreeIsolation:{value:function(e){m.isolateSubtrees&&g.adjacentElements.forEach(function(t){var n;e?"aria-hidden"===m.isolateSubtrees?(("true"===t.ariaHidden||(null==(n=t.getAttribute("aria-hidden"))?void 0:n.toLowerCase())==="true")&&g.alreadySilent.add(t),t.setAttribute("aria-hidden","true")):((t.inert||t.hasAttribute("inert"))&&g.alreadySilent.add(t),t.setAttribute("inert",!0)):g.alreadySilent.has(t)||("aria-hidden"===m.isolateSubtrees?t.removeAttribute("aria-hidden"):t.removeAttribute("inert"))})}}}),n.updateContainerElements(e),n}},33531:(e,t,n)=>{function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(r=function(){return!!e})()}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var s,c,l=n(12115),d=n(8878).createFocusTrap,f=n(4569).isFocusable,p=parseInt(null!=(s=null==(c=/^(\d+)\./.exec(l.version))?void 0:c[1])?s:0,10),v=function(e){var t;function n(e){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");t=n,i=[e],t=a(t),s=d=function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,r()?Reflect.construct(t,i||[],a(this).constructor):t.apply(this,i)),c="getNodeForOption",l=function(e){var t,n,o=null!=(t=this.internalOptions[e])?t:this.originalOptions[e];if("function"==typeof o){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];o=o.apply(void 0,a)}if(!0===o&&(o=void 0),!o){if(void 0===o||!1===o)return o;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=o;if("string"==typeof o&&!(u=null==(n=this.getDocument())?void 0:n.querySelector(o)))throw Error("`".concat(e,"` as selector refers to no known node"));return u},(c=u(c))in s?Object.defineProperty(s,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[c]=l,d.handleDeactivate=d.handleDeactivate.bind(d),d.handlePostDeactivate=d.handlePostDeactivate.bind(d),d.handleClickOutsideDeactivates=d.handleClickOutsideDeactivates.bind(d),d.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:d.handleDeactivate,onPostDeactivate:d.handlePostDeactivate,clickOutsideDeactivates:d.handleClickOutsideDeactivates},d.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var t,i,s,c,l,d,f=e.focusTrapOptions;for(var p in f)if(Object.prototype.hasOwnProperty.call(f,p)){if("returnFocusOnDeactivate"===p||"onDeactivate"===p||"onPostDeactivate"===p||"checkCanReturnFocus"===p||"clickOutsideDeactivates"===p){d.originalOptions[p]=f[p];continue}d.internalOptions[p]=f[p]}return d.outsideClick=null,d.focusTrapElements=e.containerElements||[],d.updatePreviousElement(),d}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&i(n,e),t=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("u">typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!!(e.originalOptions.returnFocusOnDeactivate&&null!=t&&t.focus&&(!e.outsideClick||e.outsideClick.allowDeactivation&&!f(e.outsideClick.target,e.internalOptions.tabbableOptions))),o=e.internalOptions.preventScroll;
1n&&t.focus({preventScroll:void 0!==o&&o}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,o=!e.paused&&this.props.paused,r=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();o&&this.focusTrap.pause(),r&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?l.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===l.Fragment)throw Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return l.cloneElement(t,{ref:function(n){var o=e.props.containerElements;t&&(p>=19?"function"==typeof t.props.ref?t.props.ref(n):t.props.ref&&(t.props.ref.current=n):"function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=o||[n]}})}return null}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(l.Component);v.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=v,e.exports.FocusTrap=v}}]);
2//# sourceMappingURL=3531-5fcfb287b8c557f9.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.