PageSourceSearch

https://smh.re/3178-42945a.bundle.js

js smh.re collected 2026-10-01 14:08:48 UTC 64,605 bytes, 2 lines download raw bytes

vendor: 4,423 bytes, lines 1-2
1/*! For license information please see 3178-42945a.bundle.js.LICENSE.txt */
2"use strict";(self.webpackChunksmarpshare_frontend=self.webpackChunksmarpshare_frontend||[]).push([[3178],{43178:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{s3:()=>FloatingFocusManager,zR:()=>FloatingOverlay,we:()=>floating_ui_react_useFloating});var react=__webpack_require__(96540),react_namespaceObject=__webpack_require__.t(react,2);function hasWindow(){return"undefined"!=typeof window}function getNodeName(node){return isNode(node)?(node.nodeName||"").toLowerCase():"#document"}function floating_ui_utils_dom_getWindow(node){var _node$ownerDocument;return(null==node||null==(_node$ownerDocument=node.ownerDocument)?void 0:_node$ownerDocument.defaultView)||window}function floating_ui_utils_dom_getDocumentElement(node){var _ref;return null==(_ref=(isNode(node)?node.ownerDocument:node.document)||window.document)?void 0:_ref.documentElement}function isNode(value){return!!hasWindow()&&(value instanceof Node||value instanceof floating_ui_utils_dom_getWindow(value).Node)}function floating_ui_utils_dom_isElement(value){return!!hasWindow()&&(value instanceof Element||value instanceof floating_ui_utils_dom_getWindow(value).Element)}function floating_ui_utils_dom_isHTMLElement(value){return!!hasWindow()&&(value instanceof HTMLElement||value instanceof floating_ui_utils_dom_getWindow(value).HTMLElement)}function isShadowRoot(value){return!(!hasWindow()||"undefined"==typeof ShadowRoot)&&(value instanceof ShadowRoot||value instanceof floating_ui_utils_dom_getWindow(value).ShadowRoot)}function isOverflowElement(element){const{overflow,overflowX,overflowY,display}=floating_ui_utils_dom_getComputedStyle(element);return/auto|scroll|overlay|hidden|clip/.test(overflow+overflowY+overflowX)&&"inline"!==display&&"contents"!==display}function isTableElement(element){return/^(table|td|th)$/.test(getNodeName(element))}function isTopLayer(element){try{if(element.matches(":popover-open"))return!0}catch(_e){}try{return element.matches(":modal")}catch(_e){return!1}}const willChangeRe=/transform|translate|scale|rotate|perspective|filter/,containRe=/paint|layout|strict|content/,isNotNone=value=>!!value&&"none"!==value;let isWebKitValue;function isContainingBlock(elementOrCss){const css=floating_ui_utils_dom_isElement(elementOrCss)?floating_ui_utils_dom_getComputedStyle(elementOrCss):elementOrCss;return isNotNone(css.transform)||isNotNone(css.translate)||isNotNone(css.scale)||isNotNone(css.rotate)||isNotNone(css.perspective)||!floating_ui_utils_dom_isWebKit()&&(isNotNone(css.backdropFilter)||isNotNone(css.filter))||willChangeRe.test(css.willChange||"")||containRe.test(css.contain||"")}function floating_ui_utils_dom_isWebKit(){return null==isWebKitValue&&(isWebKitValue="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),isWebKitValue}function floating_ui_utils_dom_isLastTraversableNode(node){return/^(html|body|#document)$/.test(getNodeName(node))}function floating_ui_utils_dom_getComputedStyle(element){return floating_ui_utils_dom_getWindow(element).getComputedStyle(element)}function getNodeScroll(element){return floating_ui_utils_dom_isElement(element)?{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}:{scrollLeft:element.scrollX,scrollTop:element.scrollY}}function floating_ui_utils_dom_getParentNode(node){if("html"===getNodeName(node))return node;const result=node.assignedSlot||node.parentNode||isShadowRoot(node)&&node.host||floating_ui_utils_dom_getDocumentElement(node);return isShadowRoot(result)?result.host:result}function getNearestOverflowAncestor(node){const parentNode=floating_ui_utils_dom_getParentNode(node);return floating_ui_utils_dom_isLastTraversableNode(parentNode)?(node.ownerDocument||node).body:floating_ui_utils_dom_isHTMLElement(parentNode)&&isOverflowElement(parentNode)?parentNode:getNearestOverflowAncestor(parentNode)}function floating_ui_utils_dom_getOverflowAncestors(node,list,traverseIframes){var _node$ownerDocument2;void 0===list&&(list=[]),void 0===traverseIframes&&(traverseIframes=!0);const scrollableAncestor=getNearestOverflowAncestor(node),isBody=scrollableAncestor===(null==(_node$ownerDocument2=node.ownerDocument)?void 0:_node$ownerDocument2.body),win=floating_ui_utils_dom_getWindow(scrollableAncestor);if(isBody){const frameElement=getFrameElement(win);
vendor: 9,345 bytes, line 2
2return list.concat(win,win.visualViewport||[],isOverflowElement(scrollableAncestor)?scrollableAncestor:[],frameElement&&traverseIframes?floating_ui_utils_dom_getOverflowAncestors(frameElement):[])}return list.concat(scrollableAncestor,floating_ui_utils_dom_getOverflowAncestors(scrollableAncestor,[],traverseIframes))}function getFrameElement(win){return win.parent&&Object.getPrototypeOf(win.parent)?win.frameElement:null}function floating_ui_react_utils_activeElement(doc){let activeElement=doc.activeElement;for(;null!=(null==(_activeElement=activeElement)||null==(_activeElement=_activeElement.shadowRoot)?void 0:_activeElement.activeElement);){var _activeElement;activeElement=activeElement.shadowRoot.activeElement}return activeElement}function floating_ui_react_utils_contains(parent,child){if(!parent||!child)return!1;const rootNode=null==child.getRootNode?void 0:child.getRootNode();if(parent.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){let next=child;for(;next;){if(parent===next)return!0;next=next.parentNode||next.host}}return!1}function getPlatform(){const uaData=navigator.userAgentData;return null!=uaData&&uaData.platform?uaData.platform:navigator.platform}function floating_ui_react_utils_getUserAgent(){const uaData=navigator.userAgentData;return uaData&&Array.isArray(uaData.brands)?uaData.brands.map((_ref=>{let{brand,version}=_ref;return brand+"/"+version})).join(" "):navigator.userAgent}function floating_ui_react_utils_isVirtualPointerEvent(event){return!floating_ui_react_utils_getUserAgent().includes("jsdom/")&&(!isAndroid()&&0===event.width&&0===event.height||isAndroid()&&1===event.width&&1===event.height&&0===event.pressure&&0===event.detail&&"mouse"===event.pointerType||event.width<1&&event.height<1&&0===event.pressure&&0===event.detail&&"touch"===event.pointerType)}function isAndroid(){const re=/android/i;return re.test(getPlatform())||re.test(floating_ui_react_utils_getUserAgent())}function floating_ui_react_utils_getDocument(node){return(null==node?void 0:node.ownerDocument)||document}function floating_ui_react_utils_getTarget(event){return"composedPath"in event?event.composedPath()[0]:event.target}const TYPEABLE_SELECTOR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function floating_ui_react_utils_stopEvent(event){event.preventDefault(),event.stopPropagation()}function floating_ui_react_utils_isTypeableCombobox(element){return!!element&&("combobox"===element.getAttribute("role")&&function(element){return floating_ui_utils_dom_isHTMLElement(element)&&element.matches(TYPEABLE_SELECTOR)}(element))}var candidateSelectors=["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])"],candidateSelector=candidateSelectors.join(","),NoElement="undefined"==typeof Element,matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,getRootNode=!NoElement&&Element.prototype.getRootNode?function(element){var _element$getRootNode;return null==element||null===(_element$getRootNode=element.getRootNode)||void 0===_element$getRootNode?void 0:_element$getRootNode.call(element)}:function(element){return null==element?void 0:element.ownerDocument},isInert=function isInert(node,lookUp){var _node$getAttribute;void 0===lookUp&&(lookUp=!0);var inertAtt=null==node||null===(_node$getAttribute=node.getAttribute)||void 0===_node$getAttribute?void 0:_node$getAttribute.call(node,"inert");return""===inertAtt||"true"===inertAtt||lookUp&&node&&isInert(node.parentNode)},getCandidates=function(el,includeContainer,filter){if(isInert(el))return[];var candidates=Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));return includeContainer&&matches.call(el,candidateSelector)&&candidates.unshift(el),candidates=candidates.filter(filter)},getCandidatesIteratively=function getCandidatesIteratively(elements,includeContainer,options){for(var candidates=[],elementsToCheck=Array.from(elements);elementsToCheck.length;){var element=elementsToCheck.shift();if(!isInert(element,!1))if("SLOT"===element.tagName){var assigned=element.assignedElements(),nestedCandidates=getCandidatesIteratively(assigned.length?assigned:element.children,!0,options);options.flatten?candidates.push.apply(candidates,nestedCandidates):candidates.push({scopeParent:element,candidates:nestedCandidates})}else{matches.call(element,candidateSelector)&&options.filter(element)&&(includeContainer||!elements.includes(element))&&candidates.push(element);var shadowRoot=element.shadowRoot||"function"==typeof options.getShadowRoot&&options.getShadowRoot(element),validShadowRoot=!isInert(shadowRoot,!1)&&(!options.shadowRootFilter||options.shadowRootFilter(element));if(shadowRoot&&validShadowRoot){var _nestedCandidates=getCandidatesIteratively(!0===shadowRoot?element.children:shadowRoot.children,!0,options);options.flatten?candidates.push.apply(candidates,_nestedCandidates):candidates.push({scopeParent:element,candidates:_nestedCandidates})}else elementsToCheck.unshift.apply(elementsToCheck,element.children)}}return candidates},hasTabIndex=function(node){return!isNaN(parseInt(node.getAttribute("tabindex"),10))},getTabIndex=function(node){if(!node)throw new Error("No node provided");return node.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName)||function(node){var _node$getAttribute2,attValue=null==node||null===(_node$getAttribute2=node.getAttribute)||void 0===_node$getAttribute2?void 0:_node$getAttribute2.call(node,"contenteditable");return""===attValue||"true"===attValue}(node))&&!hasTabIndex(node)?0:node.tabIndex},sortOrderedTabbables=function(a,b){return a.tabIndex===b.tabIndex?a.documentOrder-b.documentOrder:a.tabIndex-b.tabIndex},isInput=function(node){return"INPUT"===node.tagName},isNonTabbableRadio=function(node){return function(node){return isInput(node)&&"radio"===node.type}(node)&&!function(node){if(!node.name)return!0;var radioSet,radioScope=node.form||getRootNode(node),queryRadios=function(name){return radioScope.querySelectorAll('input[type="radio"][name="'+name+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)radioSet=queryRadios(window.CSS.escape(node.name));else try{radioSet=queryRadios(node.name)}catch(err){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",err.message),!1}var checked=function(nodes,form){for(var i=0;i<nodes.length;i++)if(nodes[i].checked&&nodes[i].form===form)return nodes[i]}(radioSet,node.form);return!checked||checked===node}(node)},isZeroArea=function(node){var _node$getBoundingClie=node.getBoundingClientRect(),width=_node$getBoundingClie.width,height=_node$getBoundingClie.height;return 0===width&&0===height},isHidden=function(node,_ref){var displayCheck=_ref.displayCheck,getShadowRoot=_ref.getShadowRoot;if("hidden"===getComputedStyle(node).visibility)return!0;var nodeUnderDetails=matches.call(node,"details>summary:first-of-type")?node.parentElement:node;if(matches.call(nodeUnderDetails,"details:not([open]) *"))return!0;if(displayCheck&&"full"!==displayCheck&&"legacy-full"!==displayCheck){if("non-zero-area"===displayCheck)return isZeroArea(node)}else{if("function"==typeof getShadowRoot){for(var originalNode=node;node;){var parentElement=node.parentElement,rootNode=getRootNode(node);if(parentElement&&!parentElement.shadowRoot&&!0===getShadowRoot(parentElement))return isZeroArea(node);node=node.assignedSlot?node.assignedSlot:parentElement||rootNode===node.ownerDocument?parentElement:rootNode.host}node=originalNode}if(function(node){var _nodeRoot,_nodeRootHost,_nodeRootHost$ownerDo,_node$ownerDocument,nodeRoot=node&&getRootNode(node),nodeRootHost=null===(_nodeRoot=nodeRoot)||void 0===_nodeRoot?void 0:_nodeRoot.host,attached=!1;if(nodeRoot&&nodeRoot!==node)for(attached=!!(null!==(_nodeRootHost=nodeRootHost)&&void 0!==_nodeRootHost&&null!==(_nodeRootHost$ownerDo=_nodeRootHost.ownerDocument)&&void 0!==_nodeRootHost$ownerDo&&_nodeRootHost$ownerDo.contains(nodeRootHost)||null!=node&&null!==(_node$ownerDocument=node.ownerDocument)&&void 0!==_node$ownerDocument&&_node$ownerDocument.contains(node));!attached&&nodeRootHost;){var _nodeRoot2,_nodeRootHost2,_nodeRootHost2$ownerD;attached=!(null===(_nodeRootHost2=nodeRootHost=null===(_nodeRoot2=nodeRoot=getRootNode(nodeRootHost))||void 0===_nodeRoot2?void 0:_nodeRoot2.host)||void 0===_nodeRootHost2||null===(_nodeRootHost2$ownerD=_nodeRootHost2.ownerDocument)||void 0===_nodeRootHost2$ownerD||!_nodeRootHost2$ownerD.contains(nodeRootHost))}return attached}(node))return!node.getClientRects().length;if("legacy-full"!==displayCheck)return!0}return!1},isNodeMatchingSelectorFocusable=function(options,node){return!(node.disabled||isInert(node)||function(node){return isInput(node)&&"hidden"===node.type}(node)||isHidden(node,options)||function(node){return"DETAILS"===node.tagName&&Array.prototype.slice.apply(node.children).some((function(child){return"SUMMARY"===child.tagName}))}
2(node)||function(node){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName))for(var parentNode=node.parentElement;parentNode;){if("FIELDSET"===parentNode.tagName&&parentNode.disabled){for(var i=0;i<parentNode.children.length;i++){var child=parentNode.children.item(i);if("LEGEND"===child.tagName)return!!matches.call(parentNode,"fieldset[disabled] *")||!child.contains(node)}return!0}parentNode=parentNode.parentElement}return!1}(node))},isNodeMatchingSelectorTabbable=function(options,node){return!(isNonTabbableRadio(node)||getTabIndex(node)<0||!isNodeMatchingSelectorFocusable(options,node))},isValidShadowRootTabbable=function(shadowHostNode){var tabIndex=parseInt(shadowHostNode.getAttribute("tabindex"),10);return!!(isNaN(tabIndex)||tabIndex>=0)},sortByOrder=function sortByOrder(candidates){var regularTabbables=[],orderedTabbables=[];return candidates.forEach((function(item,i){var isScope=!!item.scopeParent,element=isScope?item.scopeParent:item,candidateTabindex=function(node,isScope){var tabIndex=getTabIndex(node);return tabIndex<0&&isScope&&!hasTabIndex(node)?0:tabIndex}(element,isScope),elements=isScope?sortByOrder(item.candidates):element;0===candidateTabindex?isScope?regularTabbables.push.apply(regularTabbables,elements):regularTabbables.push(element):orderedTabbables.push({documentOrder:i,tabIndex:candidateTabindex,item,isScope,content:elements})})),orderedTabbables.sort(sortOrderedTabbables).reduce((function(acc,sortable){return sortable.isScope?acc.push.apply(acc,sortable.content):acc.push(sortable.content),acc}),[]).concat(regularTabbables)},index_esm_tabbable=function(container,options){var candidates;return candidates=(options=options||{}).getShadowRoot?getCandidatesIteratively([container],options.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,options),flatten:!1,getShadowRoot:options.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):getCandidates(container,options.includeContainer,isNodeMatchingSelectorTabbable.bind(null,options)),sortByOrder(candidates)},isTabbable=function(node,options){if(options=options||{},!node)throw new Error("No node provided");return!1!==matches.call(node,candidateSelector)&&isNodeMatchingSelectorTabbable(options,node)},react_dom=__webpack_require__(40961);const floating_ui_utils_min=Math.min,floating_ui_utils_max=Math.max,floating_ui_utils_round=Math.round,createCoords=(Math.floor,v=>({x:v,y:v}));function floating_ui_utils_getSide(placement){return placement.split("-")[0]}function floating_ui_utils_getAlignment(placement){return placement.split("-")[1]}function floating_ui_utils_getAxisLength(axis){return"y"===axis?"height":"width"}function floating_ui_utils_getSideAxis(placement){const firstChar=placement[0];return"t"===firstChar||"b"===firstChar?"y":"x"}function floating_ui_utils_getAlignmentAxis(placement){return"x"===floating_ui_utils_getSideAxis(placement)?"y":"x"}function floating_ui_utils_rectToClientRect(rect){const{x,y,width,height}=rect;return{width,height,top:y,left:x,right:x+width,bottom:y+height,x,y}}function computeCoordsFromPlacement(_ref,placement,rtl){let{reference,floating}=_ref;const sideAxis=floating_ui_utils_getSideAxis(placement),alignmentAxis=floating_ui_utils_getAlignmentAxis(placement),alignLength=floating_ui_utils_getAxisLength(alignmentAxis),side=floating_ui_utils_getSide(placement),isVertical="y"===sideAxis,commonX=reference.x+reference.width/2-floating.width/2,commonY=reference.y+reference.height/2-floating.height/2,commonAlign=reference[alignLength]/2-floating[alignLength]/2;let coords;switch(side){case"top":coords={x:commonX,y:reference.y-floating.height};break;case"bottom":coords={x:commonX,y:reference.y+reference.height};break;case"right":coords={x:reference.x+reference.width,y:commonY};break;case"left":coords={x:reference.x-floating.width,y:commonY};break;default:coords={x:reference.x,y:reference.y}}const alignment=floating_ui_utils_getAlignment(placement);return alignment&&(coords[alignmentAxis]+=commonAlign*("end"===alignment?1:-1)*(rtl&&isVertical?-1:1)),coords}async function floating_ui_core_detectOverflow(state,options){var _await$platform$isEle;void 0===options&&(options={});const{x,y,platform,rects,elements,strategy}=state,{boundary="clippingAncestors",rootBoundary="viewport",elementContext="floating",altBoundary=!1,padding=0}=(param=state,"function"==typeof(value=options)?value(param):value);var value,param;const paddingObject=function(padding){return"number"!=typeof padding?function(padding){var _padding$top,_padding$right,_padding$bottom,_padding$left;return{top:null!=(_padding$top=padding.top)?_padding$top:0,right:null!=(_padding$right=padding.right)?_padding$right:0,bottom:null!=(_padding$bottom=padding.bottom)?_padding$bottom:0,left:null!=(_padding$left=padding.left)?_padding$left:0}}(padding):{top:padding,right:padding,bottom:padding,left:padding}}(padding),element=elements[altBoundary?"floating"===elementContext?"reference":"floating":elementContext],clippingClientRect=floating_ui_utils_rectToClientRect(await platform.getClippingRect
vendor: 5,173 bytes, line 2
2({element:null==(_await$platform$isEle=await(null==platform.isElement?void 0:platform.isElement(element)))||_await$platform$isEle?element:element.contextElement||await(null==platform.getDocumentElement?void 0:platform.getDocumentElement(elements.floating)),boundary,rootBoundary,strategy})),rect="floating"===elementContext?{x,y,width:rects.floating.width,height:rects.floating.height}:rects.reference,offsetParent=await(null==platform.getOffsetParent?void 0:platform.getOffsetParent(elements.floating)),offsetScale=await(null==platform.isElement?void 0:platform.isElement(offsetParent))&&await(null==platform.getScale?void 0:platform.getScale(offsetParent))||{x:1,y:1},elementClientRect=floating_ui_utils_rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect?await platform.convertOffsetParentRelativeRectToViewportRelativeRect({elements,rect,offsetParent,strategy}):rect);return{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x}}function getCssDimensions(element){const css=floating_ui_utils_dom_getComputedStyle(element);let width=parseFloat(css.width)||0,height=parseFloat(css.height)||0;const hasOffset=floating_ui_utils_dom_isHTMLElement(element),offsetWidth=hasOffset?element.offsetWidth:width,offsetHeight=hasOffset?element.offsetHeight:height,shouldFallback=floating_ui_utils_round(width)!==offsetWidth||floating_ui_utils_round(height)!==offsetHeight;return shouldFallback&&(width=offsetWidth,height=offsetHeight),{width,height,$:shouldFallback}}function unwrapElement(element){return floating_ui_utils_dom_isElement(element)?element:element.contextElement}function getScale(element){const domElement=unwrapElement(element);if(!floating_ui_utils_dom_isHTMLElement(domElement))return createCoords(1);const rect=domElement.getBoundingClientRect(),{width,height,$}=getCssDimensions(domElement);let x=($?floating_ui_utils_round(rect.width):rect.width)/width,y=($?floating_ui_utils_round(rect.height):rect.height)/height;return x&&Number.isFinite(x)||(x=1),y&&Number.isFinite(y)||(y=1),{x,y}}const noOffsets=createCoords(0);function getVisualOffsets(element){const win=floating_ui_utils_dom_getWindow(element);return floating_ui_utils_dom_isWebKit()&&win.visualViewport?{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop}:noOffsets}function getBoundingClientRect(element,includeScale,isFixedStrategy,offsetParent){void 0===includeScale&&(includeScale=!1),void 0===isFixedStrategy&&(isFixedStrategy=!1);const clientRect=element.getBoundingClientRect(),domElement=unwrapElement(element);let scale=createCoords(1);includeScale&&(offsetParent?floating_ui_utils_dom_isElement(offsetParent)&&(scale=getScale(offsetParent)):scale=getScale(element));const visualOffsets=function(element,isFixed,floatingOffsetParent){return void 0===isFixed&&(isFixed=!1),!!floatingOffsetParent&&isFixed&&floatingOffsetParent===floating_ui_utils_dom_getWindow(element)}(domElement,isFixedStrategy,offsetParent)?getVisualOffsets(domElement):createCoords(0);let x=(clientRect.left+visualOffsets.x)/scale.x,y=(clientRect.top+visualOffsets.y)/scale.y,width=clientRect.width/scale.x,height=clientRect.height/scale.y;if(domElement&&offsetParent){const win=floating_ui_utils_dom_getWindow(domElement),offsetWin=floating_ui_utils_dom_isElement(offsetParent)?floating_ui_utils_dom_getWindow(offsetParent):offsetParent;let currentWin=win,currentIFrame=getFrameElement(currentWin);for(;currentIFrame&&offsetWin!==currentWin;){const iframeScale=getScale(currentIFrame),iframeRect=currentIFrame.getBoundingClientRect(),css=floating_ui_utils_dom_getComputedStyle(currentIFrame),left=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css.paddingLeft))*iframeScale.x,top=iframeRect.top+(currentIFrame.clientTop+parseFloat(css.paddingTop))*iframeScale.y;x*=iframeScale.x,y*=iframeScale.y,width*=iframeScale.x,height*=iframeScale.y,x+=left,y+=top,currentWin=floating_ui_utils_dom_getWindow(currentIFrame),currentIFrame=getFrameElement(currentWin)}}return floating_ui_utils_rectToClientRect({width,height,x,y})}function getWindowScrollBarX(element,rect){const leftScroll=getNodeScroll(element).scrollLeft;return rect?rect.left+leftScroll:getBoundingClientRect(floating_ui_utils_dom_getDocumentElement(element)).left+leftScroll}function getHTMLOffset(documentElement,scroll){const htmlRect=documentElement.getBoundingClientRect();return{x:htmlRect.left+scroll.scrollLeft-getWindowScrollBarX(documentElement,htmlRect),y:htmlRect.top+scroll.scrollTop}}function getClientRectFromClippingAncestor(element,clippingAncestor,strategy){let rect;if("viewport"===clippingAncestor||"layoutViewport"===clippingAncestor)rect=function(element,strategy,rootBoundary){void 0===rootBoundary&&(rootBoundary="viewport");const isLayoutViewport="layoutViewport"===rootBoundary,win=floating_ui_utils_dom_getWindow(element),html=floating_ui_utils_dom_getDocumentElement(element),visualVie
vendor: 9,571 bytes, line 2
2wport=win.visualViewport;let width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){const layoutRelativeClientCoords=!floating_ui_utils_dom_isWebKit()||"fixed"===strategy;isLayoutViewport?layoutRelativeClientCoords||(x=-visualViewport.offsetLeft,y=-visualViewport.offsetTop):(width=visualViewport.width,height=visualViewport.height,layoutRelativeClientCoords&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop))}if(getWindowScrollBarX(html)<=0){const doc=html.ownerDocument,body=doc.body,bodyStyles=getComputedStyle(body),bodyMarginInline="CSS1Compat"===doc.compatMode&&parseFloat(bodyStyles.marginLeft)+parseFloat(bodyStyles.marginRight)||0,reservedWidth=Math.abs(html.clientWidth-body.clientWidth-bodyMarginInline),gutter="stable both-edges"===getComputedStyle(html).scrollbarGutter?reservedWidth/2:reservedWidth;gutter<=25&&(width-=gutter)}return{width,height,x,y}}(element,strategy,clippingAncestor);else if("document"===clippingAncestor)rect=function(html){const scroll=getNodeScroll(html),body=html.ownerDocument.body,width=floating_ui_utils_max(html.scrollWidth,html.clientWidth,body.scrollWidth,body.clientWidth),height=floating_ui_utils_max(html.scrollHeight,html.clientHeight,body.scrollHeight,body.clientHeight);let x=-scroll.scrollLeft+getWindowScrollBarX(html);const y=-scroll.scrollTop;return"rtl"===floating_ui_utils_dom_getComputedStyle(body).direction&&(x+=floating_ui_utils_max(html.clientWidth,body.clientWidth)-width),{width,height,x,y}}(floating_ui_utils_dom_getDocumentElement(element));else if(floating_ui_utils_dom_isElement(clippingAncestor))rect=function(element,strategy){const clientRect=getBoundingClientRect(element,!0,"fixed"===strategy),top=clientRect.top+element.clientTop,left=clientRect.left+element.clientLeft,scale=getScale(element);return{width:element.clientWidth*scale.x,height:element.clientHeight*scale.y,x:left*scale.x,y:top*scale.y}}(clippingAncestor,strategy);else{const visualOffsets=getVisualOffsets(element);rect={x:clippingAncestor.x-visualOffsets.x,y:clippingAncestor.y-visualOffsets.y,width:clippingAncestor.width,height:clippingAncestor.height}}return floating_ui_utils_rectToClientRect(rect)}function getRectRelativeToOffsetParent(element,offsetParent,strategy){const isOffsetParentAnElement=floating_ui_utils_dom_isHTMLElement(offsetParent),documentElement=floating_ui_utils_dom_getDocumentElement(offsetParent),isFixed="fixed"===strategy,rect=getBoundingClientRect(element,!0,isFixed,offsetParent);let scroll={scrollLeft:0,scrollTop:0};const offsets=createCoords(0);if((isOffsetParentAnElement||!isFixed)&&(("body"!==getNodeName(offsetParent)||isOverflowElement(documentElement))&&(scroll=getNodeScroll(offsetParent)),isOffsetParentAnElement)){const offsetRect=getBoundingClientRect(offsetParent,!0,isFixed,offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft,offsets.y=offsetRect.y+offsetParent.clientTop}!isOffsetParentAnElement&&documentElement&&(offsets.x=getWindowScrollBarX(documentElement));const htmlOffset=!documentElement||isOffsetParentAnElement||isFixed?createCoords(0):getHTMLOffset(documentElement,scroll);return{x:rect.left+scroll.scrollLeft-offsets.x-htmlOffset.x,y:rect.top+scroll.scrollTop-offsets.y-htmlOffset.y,width:rect.width,height:rect.height}}function isStaticPositioned(element){return"static"===floating_ui_utils_dom_getComputedStyle(element).position}function getTrueOffsetParent(element,polyfill){if(!floating_ui_utils_dom_isHTMLElement(element)||"fixed"===floating_ui_utils_dom_getComputedStyle(element).position)return null;if(polyfill)return polyfill(element);let rawOffsetParent=element.offsetParent;return floating_ui_utils_dom_getDocumentElement(element)===rawOffsetParent&&(rawOffsetParent=rawOffsetParent.ownerDocument.body),rawOffsetParent}function getOffsetParent(element,polyfill){const win=floating_ui_utils_dom_getWindow(element);if(isTopLayer(element))return win;if(!floating_ui_utils_dom_isHTMLElement(element)){let svgOffsetParent=floating_ui_utils_dom_getParentNode(element);for(;svgOffsetParent&&!floating_ui_utils_dom_isLastTraversableNode(svgOffsetParent);){if(floating_ui_utils_dom_isElement(svgOffsetParent)&&!isStaticPositioned(svgOffsetParent))return svgOffsetParent;svgOffsetParent=floating_ui_utils_dom_getParentNode(svgOffsetParent)}return win}let offsetParent=getTrueOffsetParent(element,polyfill);for(;offsetParent&&isTableElement(offsetParent)&&isStaticPositioned(offsetParent);)offsetParent=getTrueOffsetParent(offsetParent,polyfill);return offsetParent&&floating_ui_utils_dom_isLastTraversableNode(offsetParent)&&isStaticPositioned(offsetParent)&&!isContainingBlock(offsetParent)?win:offsetParent||function(element){let currentNode=floating_ui_utils_dom_getParentNode(element);for(;floating_ui_utils_dom_isHTMLElement(currentNode)&&!floating_ui_utils_dom_isLastTraversableNode(currentNode);){if(isContainingBlock(currentNode))return currentNode;if(isTopLayer(currentNode))return null;currentNode=floating_ui_utils_dom_getParentNode(currentNode)}return null}(element)||win}const platform={convertOffsetParentRelativeRectToViewportRelativeRect:function(_ref){let{elements,rect,offsetParent,strategy}=_ref;const isFixed="fixed"===strategy,documentElement=floating_ui_utils_dom_getDocumentElement(offsetParent),topLayer=!!elements&&isTopLayer(elements.floating);if(offsetParent===documentElement||topLayer&&isFixed)return rect;let scroll={scrollLeft:0,scrollTop:0},scale=createCoords(1);const offsets=createCoords(0),isOffsetParentAnElement=floating_ui_utils_dom_isHTMLElement(offsetParent);if((isOffsetParentAnElement||!isFixed)&&(("body"!==getNodeName(offsetParent)||isOverflowElement(documentElement))&&(scroll=getNodeScroll(offsetParent)),isOffsetParentAnElement)){const offsetRect=getBoundingClientRect(offsetParent);scale=getScale(offsetParent),offsets.x=offsetRect.x+offsetParent.clientLeft,offsets.y=offsetRect.y+offsetParent.clientTop}const htmlOffset=!documentElement||isOffsetParentAnElement||isFixed?createCoords(0):getHTMLOffset(documentElement,scroll);return{width:rect.width*scale.x,height:rect.height*scale.y,x:rect.x*scale.x-scroll.scrollLeft*scale.x+offsets.x+htmlOffset.x,y:rect.y*scale.y-scroll.scrollTop*scale.y+offsets.y+htmlOffset.y}},getDocumentElement:floating_ui_utils_dom_getDocumentElement,getClippingRect:function(_ref){let{element,boundary,rootBoundary,strategy}=_ref;const clippingAncestors=[..."clippingAncestors"===boundary?isTopLayer(element)?[]:function(element,cache){const cachedResult=cache.get(element);if(cachedResult)return cachedResult;let result=floating_ui_utils_dom_getOverflowAncestors(element,[],!1).filter((el=>floating_ui_utils_dom_isElement(el)&&"body"!==getNodeName(el))),lastKeptComputedStyle=null;const elementIsFixed="fixed"===floating_ui_utils_dom_getComputedStyle(element).position;let currentNode=elementIsFixed?floating_ui_utils_dom_getParentNode(element):element;for(;floating_ui_utils_dom_isElement(currentNode)&&!floating_ui_utils_dom_isLastTraversableNode(currentNode);){const computedStyle=floating_ui_utils_dom_getComputedStyle(currentNode),currentNodeIsContaining=isContainingBlock(currentNode),lastPosition=lastKeptComputedStyle?lastKeptComputedStyle.position:elementIsFixed?"fixed":"";currentNodeIsContaining||"fixed"!==lastPosition&&("absolute"!==lastPosition||"static"!==computedStyle.position)?lastKeptComputedStyle=computedStyle:result=result.filter((ancestor=>ancestor!==currentNode)),currentNode=floating_ui_utils_dom_getParentNode(currentNode)}return cache.set(element,result),result}(element,this._c):[].concat(boundary),rootBoundary],firstRect=getClientRectFromClippingAncestor(element,clippingAncestors[0],strategy);let top=firstRect.top,right=firstRect.right,bottom=firstRect.bottom,left=firstRect.left;for(let i=1;i<clippingAncestors.length;i++){const rect=getClientRectFromClippingAncestor(element,clippingAncestors[i],strategy);top=floating_ui_utils_max(rect.top,top),right=floating_ui_utils_min(rect.right,right),bottom=floating_ui_utils_min(rect.bottom,bottom),left=floating_ui_utils_max(rect.left,left)}return{width:right-left,height:bottom-top,x:left,y:top}},getOffsetParent,getElementRects:async function(data){const getOffsetParentFn=this.getOffsetParent||getOffsetParent,getDimensionsFn=this.getDimensions,floatingDimensions=await getDimensionsFn(data.floating);return{reference:getRectRelativeToOffsetParent(data.reference,await getOffsetParentFn(data.floating),data.strategy),floating:{x:0,y:0,width:floatingDimensions.width,height:floatingDimensions.height}}},getClientRects:function(element){return element.getClientRects?Array.from(element.getClientRects()):[]},getDimensions:function(element){const{width,height}=getCssDimensions(element);return{width,height}},getScale,isElement:floating_ui_utils_dom_isElement,isRTL:function(element){return"rtl"===floating_ui_utils_dom_getComputedStyle(element).direction}};const floating_ui_dom_computePosition=(reference,floating,options)=>{const cache=new Map,mergedOptions=null!=options?options:{},platformWithCache={...platform,...mergedOptions.platform,_c:cache};return(async(reference,floating,config)=>{const{placement="bottom",strategy="absolute",middleware=[],platform}=config,platformWithDetectOverflow=platform.detectOverflow?platform:{...platform,detectOverflow:floating_ui_core_detectOverflow},rtl=await(null==platform.isRTL?void 0:platform.isRTL(floating));let rects=await platform.getElementRects({reference,floating,strategy}),{x,y}=computeCoordsFromPlacement(rects,placement,rtl),statefulPlacement=placement,resetCount=0;const middlewareData={};for(let i=0;i<middleware.length;
2i++){const currentMiddleware=middleware[i];if(!currentMiddleware)continue;const{name,fn}=currentMiddleware,{x:nextX,y:nextY,data,reset}=await fn({x,y,initialPlacement:placement,placement:statefulPlacement,strategy,middlewareData,rects,platform:platformWithDetectOverflow,elements:{reference,floating}});x=null!=nextX?nextX:x,y=null!=nextY?nextY:y,middlewareData[name]={...middlewareData[name],...data},reset&&resetCount<50&&(resetCount++,"object"==typeof reset&&(reset.placement&&(statefulPlacement=reset.placement),reset.rects&&(rects=!0===reset.rects?await platform.getElementRects({reference,floating,strategy}):reset.rects),({x,y}=computeCoordsFromPlacement(rects,statefulPlacement,rtl))),i=-1)}return{x,y,placement:statefulPlacement,strategy,middlewareData}})(reference,floating,{...mergedOptions,platform:platformWithCache})};var index="undefined"!=typeof document?react.useLayoutEffect:function(){};function deepEqual(a,b){if(a===b)return!0;if(typeof a!=typeof b)return!1;if("function"==typeof a&&a.toString()===b.toString())return!0;let length,i,keys;if(a&&b&&"object"==typeof a){if(Array.isArray(a)){if(length=a.length,length!==b.length)return!1;for(i=length;0!=i--;)if(!deepEqual(a[i],b[i]))return!1;return!0}if(keys=Object.keys(a),length=keys.length,length!==Object.keys(b).length)return!1;for(i=length;0!=i--;)if(!{}.hasOwnProperty.call(b,keys[i]))return!1;for(i=length;0!=i--;){const key=keys[i];if(("_owner"!==key||!a.$$typeof)&&!deepEqual(a[key],b[key]))return!1}return!0}return a!=a&&b!=b}function getDPR(element){if("undefined"==typeof window)return 1;return(element.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(element,value){const dpr=getDPR(element);return Math.round(value*dpr)/dpr}function useLatestRef(value){const ref=react.useRef(value);return index((()=>{ref.current=value})),ref}const SafeReact={...react_namespaceObject},useSafeInsertionEffect=SafeReact.useInsertionEffect||(fn=>fn());function useEffectEvent(callback){const ref=react.useRef((()=>{0}));return useSafeInsertionEffect((()=>{ref.current=callback})),react.useCallback((function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return null==ref.current?void 0:ref.current(...args)}),[])}var floating_ui_react_index="undefined"!=typeof document?react.useLayoutEffect:react.useEffect;const horizontalKeys=["ArrowLeft","ArrowRight"],verticalKeys=["ArrowUp","ArrowDown"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}let serverHandoffComplete=!1,count=0;const genId=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+count++;const useId=SafeReact.useId||function(){const[id,setId]=react.useState((()=>serverHandoffComplete?genId():void 0));return floating_ui_react_index((()=>{null==id&&setId(genId())}),[]),react.useEffect((()=>{serverHandoffComplete=!0}),[]),id};function createPubSub(){const map=new Map;return{emit(event,data){var _map$get;null==(_map$get=map.get(event))||_map$get.forEach((handler=>handler(data)))},on(event,listener){map.set(event,[...map.get(event)||[],listener])},off(event,listener){var _map$get2;map.set(event,(null==(_map$get2=map.get(event))?void 0:_map$get2.filter((l=>l!==listener)))||[])}}}const FloatingNodeContext=react.createContext(null),FloatingTreeContext=react.createContext(null),useFloatingParentNodeId=()=>{var _React$useContext;return(null==(_React$useContext=react.useContext(FloatingNodeContext))?void 0:_React$useContext.id)||null},useFloatingTree=()=>react.useContext(FloatingTreeContext);function createAttribute(name){return"data-floating-ui-"+name}function floating_ui_react_useLatestRef(value){const ref=(0,react.useRef)(value);return floating_ui_react_index((()=>{ref.current=value})),ref}let rafId=0;function enqueueFocus(el,options){void 0===options&&(options={});const{preventScroll=!1,cancelPrevious=!0,sync=!1}=options;cancelPrevious&&cancelAnimationFrame(rafId);const exec=()=>null==el?void 0:el.focus({preventScroll});sync?exec():rafId=requestAnimationFrame(exec)}function getChildren(nodes,id){let allChildren=nodes.filter((node=>{var _node$context;return node.parentId===id&&(null==(_node$context=node.context)?void 0:_node$context.open)})),currentChildren=allChildren;for(;currentChildren.length;)currentChildren=nodes.filter((node=>{var _currentChildren;return null==(_currentChildren=currentChildren)?void 0:_currentChildren.some((n=>{var _node$context2;return node.parentId===n.id&&(null==(_node$context2=node.context)?void 0:_node$context2.open)}))})),allChildren=allChildren.concat(currentChildren);return allChildren}let counterMap=new WeakMap,uncontrolledElementsSet=new WeakSet,markerMap={},lockCount$1=0;const supportsInert=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,unwrapHost=node=>node&&(node.host||unwrapHost(node.parentNode)),correctElements=(parent,targets)=>targets.map((target=>{if(parent.contains(target))return target;const correctedTarget=unwrapHost(target);return parent.contains(correctedTarget)?correctedTarget:null})).filter((x=>null!=x));function markOthers(avoidElements,ariaHidden,inert){void 0===ariaHidden&&(ariaHidden=!1),void 0===inert&&(inert=!1);const body=floating_ui_react_utils_getDocument(avoidElements[0]).body;return function(uncorrectedAvoidElements,body,ariaHidden,inert){const markerName="data-floating-ui-inert",controlAttribute=inert?"inert":ariaHidden?"aria-hidden":null,avoidElements=correctElements(body,uncorrectedAvoidElements),elementsToKeep=new Set,elementsToStop=new Set(avoidElements),hiddenElements=[];markerMap[markerName]||(markerMap[markerName]=new WeakMap);const markerCounter=markerMap[markerName];
2return avoidElements.forEach((function keep(el){el&&!elementsToKeep.has(el)&&(elementsToKeep.add(el),el.parentNode&&keep(el.parentNode))})),function deep(parent){parent&&!elementsToStop.has(parent)&&[].forEach.call(parent.children,(node=>{if("script"!==getNodeName(node))if(elementsToKeep.has(node))deep(node);else{const attr=controlAttribute?node.getAttribute(controlAttribute):null,alreadyHidden=null!==attr&&"false"!==attr,counterValue=(counterMap.get(node)||0)+1,markerValue=(markerCounter.get(node)||0)+1;counterMap.set(node,counterValue),markerCounter.set(node,markerValue),hiddenElements.push(node),1===counterValue&&alreadyHidden&&uncontrolledElementsSet.add(node),1===markerValue&&node.setAttribute(markerName,""),!alreadyHidden&&controlAttribute&&node.setAttribute(controlAttribute,"true")}}))}(body),elementsToKeep.clear(),lockCount$1++,()=>{hiddenElements.forEach((element=>{const counterValue=(counterMap.get(element)||0)-1,markerValue=(markerCounter.get(element)||0)-1;counterMap.set(element,counterValue),markerCounter.set(element,markerValue),counterValue||(!uncontrolledElementsSet.has(element)&&controlAttribute&&element.removeAttribute(controlAttribute),uncontrolledElementsSet.delete(element)),markerValue||element.removeAttribute(markerName)})),lockCount$1--,lockCount$1||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledElementsSet=new WeakSet,markerMap={})}}(avoidElements.concat(Array.from(body.querySelectorAll("[aria-live]"))),body,ariaHidden,inert)}const getTabbableOptions=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function getTabbableIn(container,direction){const allTabbable=index_esm_tabbable(container,getTabbableOptions());"prev"===direction&&allTabbable.reverse();const activeIndex=allTabbable.indexOf(floating_ui_react_utils_activeElement(floating_ui_react_utils_getDocument(container)));return allTabbable.slice(activeIndex+1)[0]}function getNextTabbable(){return getTabbableIn(document.body,"next")}function getPreviousTabbable(){return getTabbableIn(document.body,"prev")}function isOutsideEvent(event,container){const containerElement=container||event.currentTarget,relatedTarget=event.relatedTarget;return!relatedTarget||!floating_ui_react_utils_contains(containerElement,relatedTarget)}const HIDDEN_STYLES={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function setActiveElementOnTab(event){"Tab"===event.key&&(event.target,clearTimeout(undefined))}const FocusGuard=react.forwardRef((function(props,ref){const[role,setRole]=react.useState();floating_ui_react_index((()=>(/apple/i.test(navigator.vendor)&&setRole("button"),document.addEventListener("keydown",setActiveElementOnTab),()=>{document.removeEventListener("keydown",setActiveElementOnTab)})),[]);const restProps={ref,tabIndex:0,role,"aria-hidden":!role||void 0,[createAttribute("focus-guard")]:"",style:HIDDEN_STYLES};return react.createElement("span",_extends({},props,restProps))})),PortalContext=react.createContext(null);const usePortalContext=()=>react.useContext(PortalContext),FOCUSABLE_ATTRIBUTE="data-floating-ui-focusable";function getFloatingFocusElement(floatingElement){return floatingElement?floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE)?floatingElement:floatingElement.querySelector("["+FOCUSABLE_ATTRIBUTE+"]")||floatingElement:null}const LIST_LIMIT=20;let previouslyFocusedElements=[];function addPreviouslyFocusedElement(element){previouslyFocusedElements=previouslyFocusedElements.filter((el=>el.isConnected));let tabbableEl=element;if(tabbableEl&&"body"!==getNodeName(tabbableEl)){if(!isTabbable(tabbableEl,getTabbableOptions())){const tabbableChild=index_esm_tabbable(tabbableEl,getTabbableOptions())[0];tabbableChild&&(tabbableEl=tabbableChild)}previouslyFocusedElements.push(tabbableEl),previouslyFocusedElements.length>LIST_LIMIT&&(previouslyFocusedElements=previouslyFocusedElements.slice(-LIST_LIMIT))}}function getPreviouslyFocusedElement(){return previouslyFocusedElements.slice().reverse().find((el=>el.isConnected))}const VisuallyHiddenDismiss=react.forwardRef((function(props,ref){return react.createElement("button",_extends({},props,{type:"button",ref,tabIndex:-1,style:HIDDEN_STYLES}))}));function FloatingFocusManager(props){const{context,children,disabled=!1,order=["content"],guards:_guards=!0,initialFocus=0,returnFocus=!0,restoreFocus=!1,modal=!0,visuallyHiddenDismiss=!1,closeOnFocusOut=!0}=props,{open,refs,nodeId,onOpenChange,events,dataRef,floatingId,elements:{domReference,floating}}=context,ignoreInitialFocus="number"==typeof initialFocus&&initialFocus<0,isUntrappedTypeableCombobox=floating_ui_react_utils_isTypeableCombobox(domReference)&&ignoreInitialFocus,guards=!supportsInert()||_guards,orderRef=floating_ui_react_useLatestRef(order),initialFocusRef=floating_ui_react_useLatestRef(initialFocus),returnFocusRef=floating_ui_react_useLatestRef(returnFocus),tree=useFloatingTree(),portalContext=usePortalContext(),startDismissButtonRef=react.useRef(null),endDismissButtonRef=react.useRef(null),preventReturnFocusRef=react.useRef(!1),isPointerDownRef=react.useRef(!1),tabbableIndexRef=react.useRef(-1),isInsidePortal=null!=portalContext,floatingFocusElement=getFloatingFocusElement(floating),getTabbableContent=useEffectEvent((function(container){return void 0===container&&(container=floatingFocusElement),container?index_esm_tabbable(container,getTabbableOptions()):[]})),getTabbableElements=useEffectEvent((container=>{const content=getTabbableContent(container);return orderRef.current.map((type=>domReference&&"reference"===type?domReference:floatingFocusElement&&"floating"===type?floatingFocusElement:content)).filter(
2Boolean).flat()}));function renderDismissButton(location){return!disabled&&visuallyHiddenDismiss&&modal?react.createElement(VisuallyHiddenDismiss,{ref:"start"===location?startDismissButtonRef:endDismissButtonRef,onClick:event=>onOpenChange(!1,event.nativeEvent)},"string"==typeof visuallyHiddenDismiss?visuallyHiddenDismiss:"Dismiss"):null}react.useEffect((()=>{if(disabled)return;if(!modal)return;function onKeyDown(event){if("Tab"===event.key){floating_ui_react_utils_contains(floatingFocusElement,floating_ui_react_utils_activeElement(floating_ui_react_utils_getDocument(floatingFocusElement)))&&0===getTabbableContent().length&&!isUntrappedTypeableCombobox&&floating_ui_react_utils_stopEvent(event);const els=getTabbableElements(),target=floating_ui_react_utils_getTarget(event);"reference"===orderRef.current[0]&&target===domReference&&(floating_ui_react_utils_stopEvent(event),event.shiftKey?enqueueFocus(els[els.length-1]):enqueueFocus(els[1])),"floating"===orderRef.current[1]&&target===floatingFocusElement&&event.shiftKey&&(floating_ui_react_utils_stopEvent(event),enqueueFocus(els[0]))}}const doc=floating_ui_react_utils_getDocument(floatingFocusElement);return doc.addEventListener("keydown",onKeyDown),()=>{doc.removeEventListener("keydown",onKeyDown)}}),[disabled,domReference,floatingFocusElement,modal,orderRef,isUntrappedTypeableCombobox,getTabbableContent,getTabbableElements]),react.useEffect((()=>{if(!disabled&&floating)return floating.addEventListener("focusin",handleFocusIn),()=>{floating.removeEventListener("focusin",handleFocusIn)};function handleFocusIn(event){const target=floating_ui_react_utils_getTarget(event),tabbableIndex=getTabbableContent().indexOf(target);-1!==tabbableIndex&&(tabbableIndexRef.current=tabbableIndex)}}),[disabled,floating,getTabbableContent]),react.useEffect((()=>{if(!disabled&&closeOnFocusOut)return floating&&floating_ui_utils_dom_isHTMLElement(domReference)?(domReference.addEventListener("focusout",handleFocusOutside),domReference.addEventListener("pointerdown",handlePointerDown),floating.addEventListener("focusout",handleFocusOutside),()=>{domReference.removeEventListener("focusout",handleFocusOutside),domReference.removeEventListener("pointerdown",handlePointerDown),floating.removeEventListener("focusout",handleFocusOutside)}):void 0;function handlePointerDown(){isPointerDownRef.current=!0,setTimeout((()=>{isPointerDownRef.current=!1}))}function handleFocusOutside(event){const relatedTarget=event.relatedTarget;queueMicrotask((()=>{const movedToUnrelatedNode=!(floating_ui_react_utils_contains(domReference,relatedTarget)||floating_ui_react_utils_contains(floating,relatedTarget)||floating_ui_react_utils_contains(relatedTarget,floating)||floating_ui_react_utils_contains(null==portalContext?void 0:portalContext.portalNode,relatedTarget)||null!=relatedTarget&&relatedTarget.hasAttribute(createAttribute("focus-guard"))||tree&&(getChildren(tree.nodesRef.current,nodeId).find((node=>{var _node$context,_node$context2;return floating_ui_react_utils_contains(null==(_node$context=node.context)?void 0:_node$context.elements.floating,relatedTarget)||floating_ui_react_utils_contains(null==(_node$context2=node.context)?void 0:_node$context2.elements.domReference,relatedTarget)}))||function(nodes,id){var _nodes$find;let allAncestors=[],currentParentId=null==(_nodes$find=nodes.find((node=>node.id===id)))?void 0:_nodes$find.parentId;for(;currentParentId;){const currentNode=nodes.find((node=>node.id===currentParentId));currentParentId=null==currentNode?void 0:currentNode.parentId,currentNode&&(allAncestors=allAncestors.concat(currentNode))}return allAncestors}(tree.nodesRef.current,nodeId).find((node=>{var _node$context3,_node$context4;return(null==(_node$context3=node.context)?void 0:_node$context3.elements.floating)===relatedTarget||(null==(_node$context4=node.context)?void 0:_node$context4.elements.domReference)===relatedTarget}))));if(restoreFocus&&movedToUnrelatedNode&&floating_ui_react_utils_activeElement(floating_ui_react_utils_getDocument(floatingFocusElement))===floating_ui_react_utils_getDocument(floatingFocusElement).body){floating_ui_utils_dom_isHTMLElement(floatingFocusElement)&&floatingFocusElement.focus();const prevTabbableIndex=tabbableIndexRef.current,tabbableContent=getTabbableContent(),nodeToFocus=tabbableContent[prevTabbableIndex]||tabbableContent[tabbableContent.length-1]||floatingFocusElement;floating_ui_utils_dom_isHTMLElement(nodeToFocus)&&nodeToFocus.focus()}!isUntrappedTypeableCombobox&&modal||!relatedTarget||!movedToUnrelatedNode||isPointerDownRef.current||relatedTarget===getPreviouslyFocusedElement()||(preventReturnFocusRef.current=!0,onOpenChange(!1,event,"focus-out"))}))}}),[disabled,domReference,floating,floatingFocusElement,modal,nodeId,tree,portalContext,onOpenChange,closeOnFocusOut,restoreFocus,getTabbableContent,isUntrappedTypeableCombobox]),react.useEffect((()=>{var _portalContext$portal;if(disabled)return;const portalNodes=Array.from((null==portalContext||null==(_portalContext$portal=portalContext.portalNode)?void 0:_portalContext$portal.querySelectorAll("["+createAttribute("portal")+"]"))||[]);if(floating){const insideElements=[floating,...portalNodes,startDismissButtonRef.current,endDismissButtonRef.current,orderRef.current.includes("reference")||isUntrappedTypeableCombobox?domReference:null].filter((x=>null!=x)),cleanup=modal||isUntrappedTypeableCombobox?markOthers(insideElements,guards,!guards):markOthers(insideElements);return()=>{cleanup()}}}),[disabled,domReference,floating,modal,orderRef,portalContext,isUntrappedTypeableCombobox,guards]),floating_ui_react_index((()=>
2{if(disabled||!floating_ui_utils_dom_isHTMLElement(floatingFocusElement))return;const previouslyFocusedElement=floating_ui_react_utils_activeElement(floating_ui_react_utils_getDocument(floatingFocusElement));queueMicrotask((()=>{const focusableElements=getTabbableElements(floatingFocusElement),initialFocusValue=initialFocusRef.current,elToFocus=("number"==typeof initialFocusValue?focusableElements[initialFocusValue]:initialFocusValue.current)||floatingFocusElement,focusAlreadyInsideFloatingEl=floating_ui_react_utils_contains(floatingFocusElement,previouslyFocusedElement);ignoreInitialFocus||focusAlreadyInsideFloatingEl||!open||enqueueFocus(elToFocus,{preventScroll:elToFocus===floatingFocusElement})}))}),[disabled,open,floatingFocusElement,ignoreInitialFocus,getTabbableElements,initialFocusRef]),floating_ui_react_index((()=>{if(disabled||!floatingFocusElement)return;let preventReturnFocusScroll=!1;const doc=floating_ui_react_utils_getDocument(floatingFocusElement),previouslyFocusedElement=floating_ui_react_utils_activeElement(doc);let openEvent=dataRef.current.openEvent;function onOpenChange(_ref){let{open,reason,event,nested}=_ref;open&&(openEvent=event),"escape-key"===reason&&refs.domReference.current&&addPreviouslyFocusedElement(refs.domReference.current),"hover"===reason&&"mouseleave"===event.type&&(preventReturnFocusRef.current=!0),"outside-press"===reason&&(nested?(preventReturnFocusRef.current=!1,preventReturnFocusScroll=!0):preventReturnFocusRef.current=!(function(event){return!(0!==event.mozInputSource||!event.isTrusted)||(isAndroid()&&event.pointerType?"click"===event.type&&1===event.buttons:0===event.detail&&!event.pointerType)}(event)||floating_ui_react_utils_isVirtualPointerEvent(event)))}addPreviouslyFocusedElement(previouslyFocusedElement),events.on("openchange",onOpenChange);const fallbackEl=doc.createElement("span");return fallbackEl.setAttribute("tabindex","-1"),fallbackEl.setAttribute("aria-hidden","true"),Object.assign(fallbackEl.style,HIDDEN_STYLES),isInsidePortal&&domReference&&domReference.insertAdjacentElement("afterend",fallbackEl),()=>{events.off("openchange",onOpenChange);const activeEl=floating_ui_react_utils_activeElement(doc),isFocusInsideFloatingTree=floating_ui_react_utils_contains(floating,activeEl)||tree&&getChildren(tree.nodesRef.current,nodeId).some((node=>{var _node$context5;return floating_ui_react_utils_contains(null==(_node$context5=node.context)?void 0:_node$context5.elements.floating,activeEl)}));(isFocusInsideFloatingTree||openEvent&&["click","mousedown"].includes(openEvent.type))&&refs.domReference.current&&addPreviouslyFocusedElement(refs.domReference.current);const returnElement="boolean"==typeof returnFocusRef.current?getPreviouslyFocusedElement()||fallbackEl:returnFocusRef.current.current||fallbackEl;queueMicrotask((()=>{returnFocusRef.current&&!preventReturnFocusRef.current&&floating_ui_utils_dom_isHTMLElement(returnElement)&&(returnElement===activeEl||activeEl===doc.body||isFocusInsideFloatingTree)&&returnElement.focus({preventScroll:preventReturnFocusScroll}),fallbackEl.remove()}))}}),[disabled,floating,floatingFocusElement,returnFocusRef,dataRef,refs,events,tree,nodeId,isInsidePortal,domReference]),react.useEffect((()=>{queueMicrotask((()=>{preventReturnFocusRef.current=!1}))}),[disabled]),floating_ui_react_index((()=>{if(!disabled&&portalContext)return portalContext.setFocusManagerState({modal,closeOnFocusOut,open,onOpenChange,refs}),()=>{portalContext.setFocusManagerState(null)}}),[disabled,portalContext,modal,open,onOpenChange,refs,closeOnFocusOut]),floating_ui_react_index((()=>{if(disabled)return;if(!floatingFocusElement)return;if("function"!=typeof MutationObserver)return;if(ignoreInitialFocus)return;const handleMutation=()=>{const tabIndex=floatingFocusElement.getAttribute("tabindex"),tabbableContent=getTabbableContent(),activeEl=floating_ui_react_utils_activeElement(floating_ui_react_utils_getDocument(floating)),tabbableIndex=tabbableContent.indexOf(activeEl);-1!==tabbableIndex&&(tabbableIndexRef.current=tabbableIndex),orderRef.current.includes("floating")||activeEl!==refs.domReference.current&&0===tabbableContent.length?"0"!==tabIndex&&floatingFocusElement.setAttribute("tabindex","0"):"-1"!==tabIndex&&floatingFocusElement.setAttribute("tabindex","-1")};handleMutation();const observer=new MutationObserver(handleMutation);return observer.observe(floatingFocusElement,{childList:!0,subtree:!0,attributes:!0}),()=>{observer.disconnect()}}),[disabled,floating,floatingFocusElement,refs,orderRef,getTabbableContent,ignoreInitialFocus]);const shouldRenderGuards=!disabled&&guards&&(!modal||!isUntrappedTypeableCombobox)&&(isInsidePortal||modal);return react.createElement(react.Fragment,null,shouldRenderGuards&&react.createElement(FocusGuard,{"data-type":"inside",ref:null==portalContext?void 0:portalContext.beforeInsideRef,onFocus:event=>{if(modal){const els=getTabbableElements();enqueueFocus("reference"===order[0]?els[0]:els[els.length-1])}else if(null!=portalContext&&portalContext.preserveTabOrder&&portalContext.portalNode)if(preventReturnFocusRef.current=!1,isOutsideEvent(event,portalContext.portalNode)){const nextTabbable=getNextTabbable()||domReference;null==nextTabbable||nextTabbable.focus()}else{var _portalContext$before;null==(_portalContext$before=portalContext.beforeOutsideRef.current)||_portalContext$before.focus()}}}),!isUntrappedTypeableCombobox&&renderDismissButton("start"),children,renderDismissButton("end"),shouldRenderGuards&&react.createElement(FocusGuard,{"data-type":"inside",ref:null==portalContext?void 0:portalContext.afterInsideRef,onFocus:event=>{if(modal)enqueueFocus(getTabbableElements()[0]);else if(null!=portalContext&&portalContext.preserveTabOrder&&portalContext.portalNode)if(closeOnFocusOut&&(preventReturnFocusRef.current=!0),isOutsideEvent(event,portalContext.portalNode)){const prevTabbable=getPreviousTabbable()||domReference;null==prevTabbable||prevTabbable.focus()}else{var _portalContext$afterO;null==(_portalContext$afterO=portalContext.afterOutsideRef.current)||_portalContext$afterO.focus()}}}))}let lockCount=0;let cleanup=()=>{};const FloatingOverlay=react.forwardRef((function(props,ref){const{lockScroll=!1,...rest}=props;return floating_ui_react_index((()=>
2{if(lockScroll)return lockCount++,1===lockCount&&(cleanup=function(){const isIOS=/iP(hone|ad|od)|iOS/.test(getPlatform()),bodyStyle=document.body.style,paddingProp=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",scrollbarWidth=window.innerWidth-document.documentElement.clientWidth,scrollX=bodyStyle.left?parseFloat(bodyStyle.left):window.scrollX,scrollY=bodyStyle.top?parseFloat(bodyStyle.top):window.scrollY;if(bodyStyle.overflow="hidden",scrollbarWidth&&(bodyStyle[paddingProp]=scrollbarWidth+"px"),isIOS){var _window$visualViewpor,_window$visualViewpor2;const offsetLeft=(null==(_window$visualViewpor=window.visualViewport)?void 0:_window$visualViewpor.offsetLeft)||0,offsetTop=(null==(_window$visualViewpor2=window.visualViewport)?void 0:_window$visualViewpor2.offsetTop)||0;Object.assign(bodyStyle,{position:"fixed",top:-(scrollY-Math.floor(offsetTop))+"px",left:-(scrollX-Math.floor(offsetLeft))+"px",right:"0"})}return()=>{Object.assign(bodyStyle,{overflow:"",[paddingProp]:""}),isIOS&&(Object.assign(bodyStyle,{position:"",top:"",left:"",right:""}),window.scrollTo(scrollX,scrollY))}}()),()=>{lockCount--,0===lockCount&&cleanup()}}),[lockScroll]),react.createElement("div",_extends({ref},rest,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...rest.style}}))}));function floating_ui_react_useFloating(options){void 0===options&&(options={});const{nodeId}=options,internalRootContext=function(options){const{open=!1,onOpenChange:onOpenChangeProp,elements:elementsProp}=options,floatingId=useId(),dataRef=react.useRef({}),[events]=react.useState((()=>createPubSub())),nested=null!=useFloatingParentNodeId(),[positionReference,setPositionReference]=react.useState(elementsProp.reference),onOpenChange=useEffectEvent(((open,event,reason)=>{dataRef.current.openEvent=open?event:void 0,events.emit("openchange",{open,event,reason,nested}),null==onOpenChangeProp||onOpenChangeProp(open,event,reason)})),refs=react.useMemo((()=>({setPositionReference})),[]),elements=react.useMemo((()=>({reference:positionReference||elementsProp.reference||null,floating:elementsProp.floating||null,domReference:elementsProp.reference})),[positionReference,elementsProp.reference,elementsProp.floating]);return react.useMemo((()=>({dataRef,open,onOpenChange,elements,events,floatingId,refs})),[open,onOpenChange,elements,events,floatingId,refs])}({...options,elements:{reference:null,floating:null,...options.elements}}),rootContext=options.rootContext||internalRootContext,computedElements=rootContext.elements,[_domReference,setDomReference]=react.useState(null),[positionReference,_setPositionReference]=react.useState(null),domReference=(null==computedElements?void 0:computedElements.domReference)||_domReference,domReferenceRef=react.useRef(null),tree=useFloatingTree();floating_ui_react_index((()=>{domReference&&(domReferenceRef.current=domReference)}),[domReference]);const position=function(options){void 0===options&&(options={});const{placement="bottom",strategy="absolute",middleware=[],platform,elements:{reference:externalReference,floating:externalFloating}={},transform=!0,whileElementsMounted,open}=options,[data,setData]=react.useState({x:0,y:0,strategy,placement,middlewareData:{},isPositioned:!1}),[latestMiddleware,setLatestMiddleware]=react.useState(middleware);deepEqual(latestMiddleware,middleware)||setLatestMiddleware(middleware);const[_reference,_setReference]=react.useState(null),[_floating,_setFloating]=react.useState(null),setReference=react.useCallback((node=>{node!==referenceRef.current&&(referenceRef.current=node,_setReference(node))}),[]),setFloating=react.useCallback((node=>{node!==floatingRef.current&&(floatingRef.current=node,_setFloating(node))}),[]),referenceEl=externalReference||_reference,floatingEl=externalFloating||_floating,referenceRef=react.useRef(null),floatingRef=react.useRef(null),dataRef=react.useRef(data),hasWhileElementsMounted=null!=whileElementsMounted,whileElementsMountedRef=useLatestRef(whileElementsMounted),platformRef=useLatestRef(platform),openRef=useLatestRef(open),update=react.useCallback((()=>
vendor: 3,364 bytes, line 2
2{if(!referenceRef.current||!floatingRef.current)return;const config={placement,strategy,middleware:latestMiddleware};platformRef.current&&(config.platform=platformRef.current),floating_ui_dom_computePosition(referenceRef.current,floatingRef.current,config).then((data=>{const fullData={...data,isPositioned:!1!==openRef.current};isMountedRef.current&&!deepEqual(dataRef.current,fullData)&&(dataRef.current=fullData,react_dom.flushSync((()=>{setData(fullData)})))}))}),[latestMiddleware,placement,strategy,platformRef,openRef]);index((()=>{!1===open&&dataRef.current.isPositioned&&(dataRef.current.isPositioned=!1,setData((data=>({...data,isPositioned:!1}))))}),[open]);const isMountedRef=react.useRef(!1);index((()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1})),[]),index((()=>{if(referenceEl&&(referenceRef.current=referenceEl),floatingEl&&(floatingRef.current=floatingEl),referenceEl&&floatingEl){if(whileElementsMountedRef.current)return whileElementsMountedRef.current(referenceEl,floatingEl,update);update()}}),[referenceEl,floatingEl,update,whileElementsMountedRef,hasWhileElementsMounted]);const refs=react.useMemo((()=>({reference:referenceRef,floating:floatingRef,setReference,setFloating})),[setReference,setFloating]),elements=react.useMemo((()=>({reference:referenceEl,floating:floatingEl})),[referenceEl,floatingEl]),floatingStyles=react.useMemo((()=>{const initialStyles={position:strategy,left:0,top:0};if(!elements.floating)return initialStyles;const x=roundByDPR(elements.floating,data.x),y=roundByDPR(elements.floating,data.y);return transform?{...initialStyles,transform:"translate("+x+"px, "+y+"px)",...getDPR(elements.floating)>=1.5&&{willChange:"transform"}}:{position:strategy,left:x,top:y}}),[strategy,transform,elements.floating,data.x,data.y]);return react.useMemo((()=>({...data,update,refs,elements,floatingStyles})),[data,update,refs,elements,floatingStyles])}({...options,elements:{...computedElements,...positionReference&&{reference:positionReference}}}),setPositionReference=react.useCallback((node=>{const computedPositionReference=floating_ui_utils_dom_isElement(node)?{getBoundingClientRect:()=>node.getBoundingClientRect(),contextElement:node}:node;_setPositionReference(computedPositionReference),position.refs.setReference(computedPositionReference)}),[position.refs]),setReference=react.useCallback((node=>{(floating_ui_utils_dom_isElement(node)||null===node)&&(domReferenceRef.current=node,setDomReference(node)),(floating_ui_utils_dom_isElement(position.refs.reference.current)||null===position.refs.reference.current||null!==node&&!floating_ui_utils_dom_isElement(node))&&position.refs.setReference(node)}),[position.refs]),refs=react.useMemo((()=>({...position.refs,setReference,setPositionReference,domReference:domReferenceRef})),[position.refs,setReference,setPositionReference]),elements=react.useMemo((()=>({...position.elements,domReference})),[position.elements,domReference]),context=react.useMemo((()=>({...position,...rootContext,refs,elements,nodeId})),[position,refs,elements,nodeId,rootContext]);return floating_ui_react_index((()=>{rootContext.dataRef.current.floatingContext=context;const node=null==tree?void 0:tree.nodesRef.current.find((node=>node.id===nodeId));node&&(node.context=context)})),react.useMemo((()=>({...position,context,refs,elements})),[position,refs,elements,context])}}}]);

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.