PageSourceSearch

https://999.md/_next/static/chunks/0vrjjai2crfpi.js

js 999.md collected 2026-10-02 06:16:12 UTC 24,281 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="05394c61-2c26-7aae-6c07-d253bd1578e6")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,216104,e=>{"use strict";var t=["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])"],n=t.join(","),o="u"<typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!o&&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},i=function e(t,n){void 0===n&&(n=!0);var o,r=null==t||null==(o=t.getAttribute)?void 0:o.call(t,"inert");return""===r||"true"===r||n&&t&&e(t.parentNode)},u=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},s=function(e,t,o){if(i(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(n));return t&&r.call(e,n)&&a.unshift(e),a=a.filter(o)},c=function e(t,o,a){for(var u=[],s=Array.from(t);s.length;){var c=s.shift();if(!i(c,!1))if("SLOT"===c.tagName){var l=c.assignedElements(),d=e(l.length?l:c.children,!0,a);a.flatten?u.push.apply(u,d):u.push({scopeParent:c,candidates:d})}else{r.call(c,n)&&a.filter(c)&&(o||!t.includes(c))&&u.push(c);var f=c.shadowRoot||"function"==typeof a.getShadowRoot&&a.getShadowRoot(c),p=!i(f,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(c));if(f&&p){var v=e(!0===f?c.children:f.children,!0,a);a.flatten?u.push.apply(u,v):u.push({scopeParent:c,candidates:v})}else s.unshift.apply(s,c.children)}}return u},l=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},d=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||u(e))&&!l(e)?0:e.tabIndex},f=function(e,t){var n=d(e);return n<0&&t&&!l(e)?0:n},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},v=function(e){return"INPUT"===e.tagName},b=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},h=function(e){if(!e.name)return!0;var t,n=e.form||a(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=b(t,e.form);return!r||r===e},y=function(e){return v(e)&&"radio"===e.type&&!h(e)},m=function(e){var t,n,o,r,i,u,s,c=e&&a(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!=(u=l=null==(i=c=a(l))?void 0:i.host)&&null!=(s=u.ownerDocument)&&s.contains(l));return d},g=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("hidden"===getComputedStyle(e).visibility)return!0;var i=r.call(e,"details>summary:first-of-type")?e.parentElement:e;if(r.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"==typeof o){for(var u=e;e;){var s=e.parentElement,c=a(e);if(s&&!s.shadowRoot&&!0===o(s))return g(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=u}if(m(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}
2,w=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!!r.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1},T=function(e,t){return!(t.disabled||i(t)||v(t)&&"hidden"===t.type||O(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||w(t))},E=function(e,t){return!(y(t)||0>d(t))&&!!T(e,t)},F=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},D=function e(t){var n=[],o=[];return t.forEach(function(t,r){var a=!!t.scopeParent,i=a?t.scopeParent:t,u=f(i,a),s=a?e(t.candidates):i;0===u?a?n.push.apply(n,s):n.push(i):o.push({documentOrder:r,tabIndex:u,item:t,isScope:a,content:s})}),o.sort(p).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},k=t.concat("iframe").join(",");e.s(["focusable",0,function(e,t){return(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:T.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s(e,t.includeContainer,T.bind(null,t))},"getTabIndex",0,d,"isFocusable",0,function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==r.call(e,k)&&T(t,e)},"isTabbable",0,function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==r.call(e,n)&&E(t,e)},"tabbable",0,function(e,t){return D((t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:E.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:F}):s(e,t.includeContainer,E.bind(null,t)))}])},407257,e=>{"use strict";var t=e.i(216104);function n(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 o(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 r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(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)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var a=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var o=e.indexOf(t);-1===o||e.splice(o,1),e.push(t)},i=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},u=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},s=function(e){return u(e)&&!e.shiftKey},c=function(e){return u(e)&&e.shiftKey},l=function(e){return setTimeout(e,0)},d=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},f=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},p=[];e.s(["createFocusTrap",0,function(e,o){var v,b=(null==o?void 0:o.document)||document,h=(null==o?void 0:o.trapStack)||p,y=r({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:s,isKeyBackward:c},o),m={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},g=function(e,t,n){return e&&void 0!==e[t]?e[t]:y[n||t]},O=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return m.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})})},w=function(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.hasFallback,a=o.params,i=y[e];if("function"==typeof i&&(i=i.apply(void 0,function(e){if(Array.isArray(e))return n(e)}(t=void 0===a?[]:a)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return n(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,void 0):void 0}}(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===i&&(i=void 0),!i){if(void 0===i||!1===i)return i;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=i;if("string"==typeof i){try{u=b.querySelector(i)}
2catch(t){throw Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!u&&!(void 0!==r&&r))throw Error("`".concat(e,"` as selector refers to no known node"))}return u},T=function(){var e=w("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,t.isFocusable)(e,y.tabbableOptions))if(O(b.activeElement)>=0)e=b.activeElement;else{var n=m.tabbableGroups[0];e=n&&n.firstTabbableNode||w("fallbackFocus")}else null===e&&(e=w("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},E=function(){if(m.containerGroups=m.containers.map(function(e){var n=(0,t.tabbable)(e,y.tabbableOptions),o=(0,t.focusable)(e,y.tabbableOptions),r=n.length>0?n[0]:void 0,a=n.length>0?n[n.length-1]:void 0,i=o.find(function(e){return(0,t.isTabbable)(e)}),u=o.slice().reverse().find(function(e){return(0,t.isTabbable)(e)}),s=!!n.find(function(e){return(0,t.getTabIndex)(e)>0});return{container:e,tabbableNodes:n,focusableNodes:o,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=n.indexOf(e);return a<0?r?o.slice(o.indexOf(e)+1).find(function(e){return(0,t.isTabbable)(e)}):o.slice(0,o.indexOf(e)).reverse().find(function(e){return(0,t.isTabbable)(e)}):n[a+(r?1:-1)]}}}),m.tabbableGroups=m.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),m.tabbableGroups.length<=0&&!w("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(m.containerGroups.find(function(e){return e.posTabIndexesFound})&&m.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.")},F=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?F(t.shadowRoot):t},D=function(e){if(!1!==e&&e!==F(document)){if(!e||!e.focus)return void D(T());e.focus({preventScroll:!!y.preventScroll}),m.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},k=function(e){var t=w("setReturnFocus",{params:[e]});return t||!1!==t&&e},P=function(e){var n=e.target,o=e.event,r=e.isBackward,a=void 0!==r&&r;n=n||f(o),E();var i=null;if(m.tabbableGroups.length>0){var s=O(n,o),c=s>=0?m.containerGroups[s]:void 0;if(s<0)i=a?m.tabbableGroups[m.tabbableGroups.length-1].lastTabbableNode:m.tabbableGroups[0].firstTabbableNode;else if(a){var l=m.tabbableGroups.findIndex(function(e){var t=e.firstTabbableNode;return n===t});if(l<0&&(c.container===n||(0,t.isFocusable)(n,y.tabbableOptions)&&!(0,t.isTabbable)(n,y.tabbableOptions)&&!c.nextTabbableNode(n,!1))&&(l=s),l>=0){var d=0===l?m.tabbableGroups.length-1:l-1,p=m.tabbableGroups[d];i=(0,t.getTabIndex)(n)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else u(o)||(i=c.nextTabbableNode(n,!1))}else{var v=m.tabbableGroups.findIndex(function(e){var t=e.lastTabbableNode;return n===t});if(v<0&&(c.container===n||(0,t.isFocusable)(n,y.tabbableOptions)&&!(0,t.isTabbable)(n,y.tabbableOptions)&&!c.nextTabbableNode(n))&&(v=s),v>=0){var b=v===m.tabbableGroups.length-1?0:v+1,h=m.tabbableGroups[b];i=(0,t.getTabIndex)(n)>=0?h.firstTabbableNode:h.firstDomTabbableNode}else u(o)||(i=c.nextTabbableNode(n))}}else i=w("fallbackFocus");return i},N=function(e){O(f(e),e)>
2=0||(d(y.clickOutsideDeactivates,e)?v.deactivate({returnFocus:y.returnFocusOnDeactivate}):d(y.allowOutsideClick,e)||e.preventDefault())},S=function(e){var n=f(e),o=O(n,e)>=0;if(o||n instanceof Document)o&&(m.mostRecentlyFocusedNode=n);else{e.stopImmediatePropagation();var r,a=!0;if(m.mostRecentlyFocusedNode)if((0,t.getTabIndex)(m.mostRecentlyFocusedNode)>0){var i=O(m.mostRecentlyFocusedNode),u=m.containerGroups[i].tabbableNodes;if(u.length>0){var s=u.findIndex(function(e){return e===m.mostRecentlyFocusedNode});s>=0&&(y.isKeyForward(m.recentNavEvent)?s+1<u.length&&(r=u[s+1],a=!1):s-1>=0&&(r=u[s-1],a=!1))}}else m.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,t.getTabIndex)(e)>0})})||(a=!1);else a=!1;a&&(r=P({target:m.mostRecentlyFocusedNode,isBackward:y.isKeyBackward(m.recentNavEvent)})),r?D(r):D(m.mostRecentlyFocusedNode||T())}m.recentNavEvent=void 0},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m.recentNavEvent=e;var n=P({event:e,isBackward:t});n&&(u(e)&&e.preventDefault(),D(n))},C=function(e){(y.isKeyForward(e)||y.isKeyBackward(e))&&R(e,y.isKeyBackward(e))},I=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==d(y.escapeDeactivates,e)&&(e.preventDefault(),v.deactivate())},x=function(e){O(f(e),e)>=0||d(y.clickOutsideDeactivates,e)||d(y.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},j=function(){if(m.active)return a(h,v),m.delayInitialFocusTimer=y.delayInitialFocus?l(function(){D(T())}):D(T()),b.addEventListener("focusin",S,!0),b.addEventListener("mousedown",N,{capture:!0,passive:!1}),b.addEventListener("touchstart",N,{capture:!0,passive:!1}),b.addEventListener("click",x,{capture:!0,passive:!1}),b.addEventListener("keydown",C,{capture:!0,passive:!1}),b.addEventListener("keydown",I),v},A=function(){if(m.active)return b.removeEventListener("focusin",S,!0),b.removeEventListener("mousedown",N,!0),b.removeEventListener("touchstart",N,!0),b.removeEventListener("click",x,!0),b.removeEventListener("keydown",C,!0),b.removeEventListener("keydown",I),v},G="u">typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===m.mostRecentlyFocusedNode})})&&D(T())}):void 0,L=function(){G&&(G.disconnect(),m.active&&!m.paused&&m.containers.map(function(e){G.observe(e,{subtree:!0,childList:!0})}))};return Object.defineProperties(v={get active(){return m.active},get paused(){return m.paused},activate:function(e){if(m.active)return this;var t=g(e,"onActivate"),n=g(e,"onPostActivate"),o=g(e,"checkCanFocusTrap");o||E(),m.active=!0,m.paused=!1,m.nodeFocusedBeforeActivation=F(b),null==t||t();var r=function(){o&&E(),j(),L(),null==n||n()};return o?o(m.containers.concat()).then(r,r):r(),this},deactivate:function(e){if(!m.active)return this;var t=r({onDeactivate:y.onDeactivate,onPostDeactivate:y.onPostDeactivate,checkCanReturnFocus:y.checkCanReturnFocus},e);clearTimeout(m.delayInitialFocusTimer),m.delayInitialFocusTimer=void 0,A(),m.active=!1,m.paused=!1,L(),i(h,v);var n=g(t,"onDeactivate"),o=g(t,"onPostDeactivate"),a=g(t,"checkCanReturnFocus"),u=g(t,"returnFocus","returnFocusOnDeactivate");null==n||n();var s=function(){l(function(){u&&D(k(m.nodeFocusedBeforeActivation)),null==o||o()})};return u&&a?a(k(m.nodeFocusedBeforeActivation)).then(s,s):s(),this},pause:function(e){return m.active?(m.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return m.active?(m.manuallyPaused=!1,h[h.length-1]!==this)?this:this._setPausedState(!1,e):this},updateContainerElements:function(e){return m.containers=[].concat(e).filter(
2Boolean).map(function(e){return"string"==typeof e?b.querySelector(e):e}),m.active&&E(),L(),this}},{_isManuallyPaused:{value:function(){return m.manuallyPaused}},_setPausedState:{value:function(e,t){if(m.paused===e)return this;if(m.paused=e,e){var n=g(t,"onPause"),o=g(t,"onPostPause");null==n||n(),A(),L(),null==o||o()}else{var r=g(t,"onUnpause"),a=g(t,"onPostUnpause");null==r||r(),E(),j(),L(),null==a||a()}return this}}}),v.updateContainerElements(e),v}])},196059,(e,t,n)=>{"use strict";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=e.r(176458),d=e.r(407257).createFocusTrap,f=e.r(216104).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;
2n&&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},t.exports=v,t.exports.FocusTrap=v}]);
3
4//# debugId=05394c61-2c26-7aae-6c07-d253bd1578e6
5//# sourceMappingURL=07zfr~t.6hwrd.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.