"use strict";(self.webpackChunkbongacams=self.webpackChunkbongacams||[]).push([[37],{49054:function(t,e,n){n.d(e,{Kr:function(){return E}});var r=["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])"],o=r.join(","),i="undefined"==typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!i&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},l=function t(e,n){var r;void 0===n&&(n=!0);var o=null==e||null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"inert");return""===o||"true"===o||n&&e&&t(e.parentNode)},c=function(t,e,n){if(l(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(o));return e&&a.call(t,o)&&r.unshift(t),r=r.filter(n)},d=function t(e,n,r){for(var i=[],u=Array.from(e);u.length;){var c=u.shift();if(!l(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),s=t(d.length?d:c.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{a.call(c,o)&&r.filter(c)&&(n||!e.includes(c))&&i.push(c);var f=c.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=t(!0===f?c.children:f.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:c,candidates:h})}else u.unshift.apply(u,c.children)}}return i},s=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},f=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!s(t)?0:t.tabIndex},p=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},h=function(t){return"INPUT"===t.tagName},v=function(t){return function(t){return h(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||u(t),r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){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",t.message),!1}var o=function(t,e){for(var n=0;nsummary:first-of-type")?t.parentElement:t;if(a.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return m(t)}else{if("function"==typeof r){for(var i=t;t;){var l=t.parentElement,c=u(t);if(l&&!l.shadowRoot&&!0===r(l))return m(t);t=t.assignedSlot?t.assignedSlot:l||c===t.ownerDocument?l:c.host}t=i}if(function(t){var e,n,r,o,i=t&&u(t),a=null===(e=i)||void 0===e?void 0:e.host,l=!1;if(i&&i!==t)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=t&&null!==(o=t.ownerDocument)&&void 0!==o&&o.contains(t));!l&&a;){var c,d,s;l=!(null===(d=a=null===(c=i=u(a))||void 0===c?void 0:c.host)||void 0===d||null===(s=d.ownerDocument)||void 0===s||!s.contains(a))}return l}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},y=function(t,e){return!(e.disabled||l(e)||function(t){return h(t)&&"hidden"===t.type}(e)||g(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(t){return"SUMMARY"===t.tagName})}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n=0)},S=function t(e){var n=[],r=[];return e.forEach(function(e,o){var i=!!e.scopeParent,a=i?e.scopeParent:e,u=function(t,e){var n=f(t);return n<0&&e&&!s(t)?0:n}(a,i),l=i?t(e.candidates):a;0===u?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:u,item:e,isScope:i,content:l})}),r.sort(p).reduce(function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t},[]).concat(n)},E=function(t,e){var n;return n=(e=e||{}).getShadowRoot?d([t],e.includeContainer,{filter:b.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:w}):c(t,e.includeContainer,b.bind(null,e)),S(n)}}}]);