summaryrefslogtreecommitdiffstats
path: root/web/_static/popperjs/popper.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'web/_static/popperjs/popper.js.map')
-rw-r--r--web/_static/popperjs/popper.js.map65
1 files changed, 65 insertions, 0 deletions
diff --git a/web/_static/popperjs/popper.js.map b/web/_static/popperjs/popper.js.map
new file mode 100644
index 0000000..824d0e2
--- /dev/null
+++ b/web/_static/popperjs/popper.js.map
@@ -0,0 +1,65 @@
+<!DOCTYPE html><html lang="en"><head><script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-140352188-1"></script><script>window.dataLayer = window.dataLayer || [];
+function gtag(){dataLayer.push(arguments);}
+gtag('js', new Date());
+gtag('config', 'UA-140352188-1');</script><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><meta name="description" content="The CDN for @popperjs/core"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1"/><meta name="timestamp" content="2022-06-21T18:50:35.910Z"/><link rel="shortcut icon" href="/favicon.ico"/><title>UNPKG - @popperjs/core</title><script>window.Promise || document.write('\x3Cscript src="/es6-promise@4.2.5/dist/es6-promise.min.js">\x3C/script>\x3Cscript>ES6Promise.polyfill()\x3C/script>')</script><script>window.fetch || document.write('\x3Cscript src="/whatwg-fetch@3.0.0/dist/fetch.umd.js">\x3C/script>')</script><script>window.__DATA__ = {"packageName":"@popperjs/core","packageVersion":"2.11.5","availableVersions":["2.0.0-alpha.1","2.0.0-alpha.2","2.0.0-alpha.3","2.0.0-alpha.4","2.0.0-next.5","2.0.0-next.6","2.0.0-next.7","2.0.0-next.8","2.0.0-next.9","2.0.0-next.10","2.0.0-next.11","2.0.0-next.12","2.0.0-next.13","2.0.0-next.14","2.0.0-next.15","2.0.0-next.16","2.0.0-next.17","2.0.0-rc.1","2.0.0-rc.2","2.0.0-rc.3","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.1.0","2.1.1","2.2.0-bundlephobia.1","2.2.0","2.2.1","2.2.2","2.2.3","2.3.0","2.3.1","2.3.2","2.3.3","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.5.0","2.5.1","2.5.2","2.5.3","2.5.4","2.6.0","2.7.0","2.7.1","2.7.2","2.8.0","2.8.1","2.8.2","2.8.3","2.8.4","2.8.5","2.8.6","2.9.0","2.9.1","2.9.2","2.9.3","2.10.0","2.10.1","2.10.2","2.11.0","2.11.1","2.11.2","2.11.3","2.11.4","2.11.5"],"filename":"/dist/umd/popper.js.map","target":{"path":"/dist/umd/popper.js.map","type":"file","details":{"contentType":"application/json","integrity":"sha384-Wqjfte0R0577d2JXpRf37Yei3HYo/gizO6aocqXeJ8qiXo/bIXtd9Jy3mz6BTzvp","language":"Source Map (JSON)","size":156255,"uri":null,"highlights":["{<span class=\"code-attr\">\"version\"</span>:<span class=\"code-number\">3</span>,<span class=\"code-attr\">\"file\"</span>:<span class=\"code-string\">\"popper.js\"</span>,<span class=\"code-attr\">\"sources\"</span>:[<span class=\"code-string\">\"../../src/dom-utils/getWindow.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/instanceOf.js\"</span>,<span class=\"code-string\">\"../../src/utils/math.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getBoundingClientRect.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getWindowScroll.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getHTMLElementScroll.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getNodeScroll.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getNodeName.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getDocumentElement.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getWindowScrollBarX.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getComputedStyle.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/isScrollParent.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getCompositeRect.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getLayoutRect.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getParentNode.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getScrollParent.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/listScrollParents.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/isTableElement.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getOffsetParent.js\"</span>,<span class=\"code-string\">\"../../src/enums.js\"</span>,<span class=\"code-string\">\"../../src/utils/orderModifiers.js\"</span>,<span class=\"code-string\">\"../../src/utils/debounce.js\"</span>,<span class=\"code-string\">\"../../src/utils/format.js\"</span>,<span class=\"code-string\">\"../../src/utils/validateModifiers.js\"</span>,<span class=\"code-string\">\"../../src/utils/uniqueBy.js\"</span>,<span class=\"code-string\">\"../../src/utils/getBasePlacement.js\"</span>,<span class=\"code-string\">\"../../src/utils/mergeByName.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getViewportRect.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getDocumentRect.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/contains.js\"</span>,<span class=\"code-string\">\"../../src/utils/rectToClientRect.js\"</span>,<span class=\"code-string\">\"../../src/dom-utils/getClippingRect.js\"</span>,<span class=\"code-string\">\"../../src/utils/getVariation.js\"</span>,<span class=\"code-string\">\"../../src/utils/getMainAxisFromPlacement.js\"</span>,<span class=\"code-string\">\"../../src/utils/computeOffsets.js\"</span>,<span class=\"code-string\">\"../../src/utils/getFreshSideObject.js\"</span>,<span class=\"code-string\">\"../../src/utils/mergePaddingObject.js\"</span>,<span class=\"code-string\">\"../../src/utils/expandToHashMap.js\"</span>,<span class=\"code-string\">\"../../src/utils/detectOverflow.js\"</span>,<span class=\"code-string\">\"../../src/createPopper.js\"</span>,<span class=\"code-string\">\"../../src/modifiers/eventListeners.js\"</span>,<span class=\"code-string\">\"../../src/modifiers/popperOffsets.js\"</span>,<span class=\"code-string\">\"../../src/modifiers/computeStyles.js\"</span>,<span class=\"code-string\">\"../../src/modifiers/applyStyles.js\"</span>,<span class=\"code-string\">\"../../src/modifiers/offset.js\"</span>,<span class=\"code-string\">\"../../src/utils/getOppositePlacement.js\"</span>,<span class=\"code-string\">\"../../src/utils/getOppositeVariationPlacement.js\"</span>,<span class=\"code-string\">\"../../src/utils/computeAutoPlacement.js\"</span>,<span class=\"code-string\">\"../../src/modifiers/flip.js\"</span>,<span class=\"code-string\">\"../../src/utils/getAltAxis.js\"</span>,<span class=\"code-string\">\"../../src/utils/within.js\"</span>,<span class=\"code-string\">\"../../src/modifiers/preventOverflow.js\"</span>,<span class=\"code-string\">\"../../src/modifiers/arrow.js\"</span>,<span class=\"code-string\">\"../../src/modifiers/hide.js\"</span>,<span class=\"code-string\">\"../../src/popper-lite.js\"</span>,<span class=\"code-string\">\"../../src/popper.js\"</span>],<span class=\"code-attr\">\"sourcesContent\"</span>:[<span class=\"code-string\">\"// @flow\\nimport type { Window } from '../types';\\ndeclare function getWindow(node: Node | Window): Window;\\n\\nexport default function getWindow(node) {\\n if (node == null) {\\n return window;\\n }\\n\\n if (node.toString() !== '[object Window]') {\\n const ownerDocument = node.ownerDocument;\\n return ownerDocument ? ownerDocument.defaultView || window : window;\\n }\\n\\n return node;\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getWindow from './getWindow';\\n\\ndeclare function isElement(node: mixed): boolean %checks(node instanceof\\n Element);\\nfunction isElement(node) {\\n const OwnElement = getWindow(node).Element;\\n return node instanceof OwnElement || node instanceof Element;\\n}\\n\\ndeclare function isHTMLElement(node: mixed): boolean %checks(node instanceof\\n HTMLElement);\\nfunction isHTMLElement(node) {\\n const OwnElement = getWindow(node).HTMLElement;\\n return node instanceof OwnElement || node instanceof HTMLElement;\\n}\\n\\ndeclare function isShadowRoot(node: mixed): boolean %checks(node instanceof\\n ShadowRoot);\\nfunction isShadowRoot(node) {\\n // IE 11 has no ShadowRoot\\n if (typeof ShadowRoot === 'undefined') {\\n return false;\\n }\\n const OwnElement = getWindow(node).ShadowRoot;\\n return node instanceof OwnElement || node instanceof ShadowRoot;\\n}\\n\\nexport { isElement, isHTMLElement, isShadowRoot };\\n\"</span>,<span class=\"code-string\">\"// @flow\\nexport const max = Math.max;\\nexport const min = Math.min;\\nexport const round = Math.round;\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { ClientRectObject, VirtualElement } from '../types';\\nimport { isHTMLElement } from './instanceOf';\\nimport { round } from '../utils/math';\\n\\nexport default function getBoundingClientRect(\\n element: Element | VirtualElement,\\n includeScale: boolean = false\\n): ClientRectObject {\\n const rect = element.getBoundingClientRect();\\n let scaleX = 1;\\n let scaleY = 1;\\n\\n if (isHTMLElement(element) &amp;&amp; includeScale) {\\n const offsetHeight = element.offsetHeight;\\n const offsetWidth = element.offsetWidth;\\n\\n // Do not attempt to divide by 0, otherwise we get `Infinity` as scale\\n // Fallback to 1 in case both values are `0`\\n if (offsetWidth &gt; 0) {\\n scaleX = round(rect.width) / offsetWidth || 1;\\n }\\n if (offsetHeight &gt; 0) {\\n scaleY = round(rect.height) / offsetHeight || 1;\\n }\\n }\\n\\n return {\\n width: rect.width / scaleX,\\n height: rect.height / scaleY,\\n top: rect.top / scaleY,\\n right: rect.right / scaleX,\\n bottom: rect.bottom / scaleY,\\n left: rect.left / scaleX,\\n x: rect.left / scaleX,\\n y: rect.top / scaleY,\\n };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getWindow from './getWindow';\\nimport type { Window } from '../types';\\n\\nexport default function getWindowScroll(node: Node | Window) {\\n const win = getWindow(node);\\n const scrollLeft = win.pageXOffset;\\n const scrollTop = win.pageYOffset;\\n\\n return {\\n scrollLeft,\\n scrollTop,\\n };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\n\\nexport default function getHTMLElementScroll(element: HTMLElement) {\\n return {\\n scrollLeft: element.scrollLeft,\\n scrollTop: element.scrollTop,\\n };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getWindowScroll from './getWindowScroll';\\nimport getWindow from './getWindow';\\nimport { isHTMLElement } from './instanceOf';\\nimport getHTMLElementScroll from './getHTMLElementScroll';\\nimport type { Window } from '../types';\\n\\nexport default function getNodeScroll(node: Node | Window) {\\n if (node === getWindow(node) || !isHTMLElement(node)) {\\n return getWindowScroll(node);\\n } else {\\n return getHTMLElementScroll(node);\\n }\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Window } from '../types';\\n\\nexport default function getNodeName(element: ?Node | Window): ?string {\\n return element ? (element.nodeName || '').toLowerCase() : null;\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport { isElement } from './instanceOf';\\nimport type { Window } from '../types';\\n\\nexport default function getDocumentElement(\\n element: Element | Window\\n): HTMLElement {\\n // $FlowFixMe[incompatible-return]: assume body is always available\\n return (\\n (isElement(element)\\n ? element.ownerDocument\\n : // $FlowFixMe[prop-missing]\\n element.document) || window.document\\n ).documentElement;\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getBoundingClientRect from './getBoundingClientRect';\\nimport getDocumentElement from './getDocumentElement';\\nimport getWindowScroll from './getWindowScroll';\\n\\nexport default function getWindowScrollBarX(element: Element): number {\\n // If &lt;html&gt; has a CSS width greater than the viewport, then this will be\\n // incorrect for RTL.\\n // Popper 1 is broken in this case and never had a bug report so let's assume\\n // it's not an issue. I don't think anyone ever specifies width on &lt;html&gt;\\n // anyway.\\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\\n // this (e.g. Edge 2019, IE11, Safari)\\n return (\\n getBoundingClientRect(getDocumentElement(element)).left +\\n getWindowScroll(element).scrollLeft\\n );\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getWindow from './getWindow';\\n\\nexport default function getComputedStyle(\\n element: Element\\n): CSSStyleDeclaration {\\n return getWindow(element).getComputedStyle(element);\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getComputedStyle from './getComputedStyle';\\n\\nexport default function isScrollParent(element: HTMLElement): boolean {\\n // Firefox wants us to check `-x` and `-y` variations as well\\n const { overflow, overflowX, overflowY } = getComputedStyle(element);\\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Rect, VirtualElement, Window } from '../types';\\nimport getBoundingClientRect from './getBoundingClientRect';\\nimport getNodeScroll from './getNodeScroll';\\nimport getNodeName from './getNodeName';\\nimport { isHTMLElement } from './instanceOf';\\nimport getWindowScrollBarX from './getWindowScrollBarX';\\nimport getDocumentElement from './getDocumentElement';\\nimport isScrollParent from './isScrollParent';\\nimport { round } from '../utils/math';\\n\\nfunction isElementScaled(element: HTMLElement) {\\n const rect = element.getBoundingClientRect();\\n const scaleX = round(rect.width) / element.offsetWidth || 1;\\n const scaleY = round(rect.height) / element.offsetHeight || 1;\\n\\n return scaleX !== 1 || scaleY !== 1;\\n}\\n\\n// Returns the composite rect of an element relative to its offsetParent.\\n// Composite means it takes into account transforms as well as layout.\\nexport default function getCompositeRect(\\n elementOrVirtualElement: Element | VirtualElement,\\n offsetParent: Element | Window,\\n isFixed: boolean = false\\n): Rect {\\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\\n const offsetParentIsScaled =\\n isHTMLElement(offsetParent) &amp;&amp; isElementScaled(offsetParent);\\n const documentElement = getDocumentElement(offsetParent);\\n const rect = getBoundingClientRect(\\n elementOrVirtualElement,\\n offsetParentIsScaled\\n );\\n\\n let scroll = { scrollLeft: 0, scrollTop: 0 };\\n let offsets = { x: 0, y: 0 };\\n\\n if (isOffsetParentAnElement || (!isOffsetParentAnElement &amp;&amp; !isFixed)) {\\n if (\\n getNodeName(offsetParent) !== 'body' ||\\n // https://github.com/popperjs/popper-core/issues/1078\\n isScrollParent(documentElement)\\n ) {\\n scroll = getNodeScroll(offsetParent);\\n }\\n\\n if (isHTMLElement(offsetParent)) {\\n offsets = getBoundingClientRect(offsetParent, true);\\n offsets.x += offsetParent.clientLeft;\\n offsets.y += offsetParent.clientTop;\\n } else if (documentElement) {\\n offsets.x = getWindowScrollBarX(documentElement);\\n }\\n }\\n\\n return {\\n x: rect.left + scroll.scrollLeft - offsets.x,\\n y: rect.top + scroll.scrollTop - offsets.y,\\n width: rect.width,\\n height: rect.height,\\n };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Rect } from '../types';\\nimport getBoundingClientRect from './getBoundingClientRect';\\n\\n// Returns the layout rect of an element relative to its offsetParent. Layout\\n// means it doesn't take into account transforms.\\nexport default function getLayoutRect(element: HTMLElement): Rect {\\n const clientRect = getBoundingClientRect(element);\\n\\n // Use the clientRect sizes if it's not been transformed.\\n // Fixes https://github.com/popperjs/popper-core/issues/1223\\n let width = element.offsetWidth;\\n let height = element.offsetHeight;\\n\\n if (Math.abs(clientRect.width - width) &lt;= 1) {\\n width = clientRect.width;\\n }\\n\\n if (Math.abs(clientRect.height - height) &lt;= 1) {\\n height = clientRect.height;\\n }\\n\\n return {\\n x: element.offsetLeft,\\n y: element.offsetTop,\\n width,\\n height,\\n };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getNodeName from './getNodeName';\\nimport getDocumentElement from './getDocumentElement';\\nimport { isShadowRoot } from './instanceOf';\\n\\nexport default function getParentNode(element: Node | ShadowRoot): Node {\\n if (getNodeName(element) === 'html') {\\n return element;\\n }\\n\\n return (\\n // this is a quicker (but less type safe) way to save quite some bytes from the bundle\\n // $FlowFixMe[incompatible-return]\\n // $FlowFixMe[prop-missing]\\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\\n element.parentNode || // DOM Element detected\\n (isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\\n getDocumentElement(element) // fallback\\n );\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getParentNode from './getParentNode';\\nimport isScrollParent from './isScrollParent';\\nimport getNodeName from './getNodeName';\\nimport { isHTMLElement } from './instanceOf';\\n\\nexport default function getScrollParent(node: Node): HTMLElement {\\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) &gt;= 0) {\\n // $FlowFixMe[incompatible-return]: assume body is always available\\n return node.ownerDocument.body;\\n }\\n\\n if (isHTMLElement(node) &amp;&amp; isScrollParent(node)) {\\n return node;\\n }\\n\\n return getScrollParent(getParentNode(node));\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getScrollParent from './getScrollParent';\\nimport getParentNode from './getParentNode';\\nimport getWindow from './getWindow';\\nimport type { Window, VisualViewport } from '../types';\\nimport isScrollParent from './isScrollParent';\\n\\n/*\\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\\nuntil we get to the top window object. This list is what we attach scroll listeners\\nto, because if any of these parent elements scroll, we'll need to re-calculate the\\nreference element's position.\\n*/\\nexport default function listScrollParents(\\n element: Node,\\n list: Array&lt;Element | Window&gt; = []\\n): Array&lt;Element | Window | VisualViewport&gt; {\\n const scrollParent = getScrollParent(element);\\n const isBody = scrollParent === element.ownerDocument?.body;\\n const win = getWindow(scrollParent);\\n const target = isBody\\n ? [win].concat(\\n win.visualViewport || [],\\n isScrollParent(scrollParent) ? scrollParent : []\\n )\\n : scrollParent;\\n const updatedList = list.concat(target);\\n\\n return isBody\\n ? updatedList\\n : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\\n updatedList.concat(listScrollParents(getParentNode(target)));\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getNodeName from './getNodeName';\\n\\nexport default function isTableElement(element: Element): boolean {\\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) &gt;= 0;\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getWindow from './getWindow';\\nimport getNodeName from './getNodeName';\\nimport getComputedStyle from './getComputedStyle';\\nimport { isHTMLElement, isShadowRoot } from './instanceOf';\\nimport isTableElement from './isTableElement';\\nimport getParentNode from './getParentNode';\\n\\nfunction getTrueOffsetParent(element: Element): ?Element {\\n if (\\n !isHTMLElement(element) ||\\n // https://github.com/popperjs/popper-core/issues/837\\n getComputedStyle(element).position === 'fixed'\\n ) {\\n return null;\\n }\\n\\n return element.offsetParent;\\n}\\n\\n// `.offsetParent` reports `null` for fixed elements, while absolute elements\\n// return the containing block\\nfunction getContainingBlock(element: Element) {\\n const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\\n const isIE = navigator.userAgent.indexOf('Trident') !== -1;\\n\\n if (isIE &amp;&amp; isHTMLElement(element)) {\\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\\n const elementCss = getComputedStyle(element);\\n if (elementCss.position === 'fixed') {\\n return null;\\n }\\n }\\n\\n let currentNode = getParentNode(element);\\n\\n if (isShadowRoot(currentNode)) {\\n currentNode = currentNode.host;\\n }\\n\\n while (\\n isHTMLElement(currentNode) &amp;&amp;\\n ['html', 'body'].indexOf(getNodeName(currentNode)) &lt; 0\\n ) {\\n const css = getComputedStyle(currentNode);\\n\\n // This is non-exhaustive but covers the most common CSS properties that\\n // create a containing block.\\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\\n if (\\n css.transform !== 'none' ||\\n css.perspective !== 'none' ||\\n css.contain === 'paint' ||\\n ['transform', 'perspective'].indexOf(css.willChange) !== -1 ||\\n (isFirefox &amp;&amp; css.willChange === 'filter') ||\\n (isFirefox &amp;&amp; css.filter &amp;&amp; css.filter !== 'none')\\n ) {\\n return currentNode;\\n } else {\\n currentNode = currentNode.parentNode;\\n }\\n }\\n\\n return null;\\n}\\n\\n// Gets the closest ancestor positioned element. Handles some edge cases,\\n// such as table ancestors and cross browser bugs.\\nexport default function getOffsetParent(element: Element) {\\n const window = getWindow(element);\\n\\n let offsetParent = getTrueOffsetParent(element);\\n\\n while (\\n offsetParent &amp;&amp;\\n isTableElement(offsetParent) &amp;&amp;\\n getComputedStyle(offsetParent).position === 'static'\\n ) {\\n offsetParent = getTrueOffsetParent(offsetParent);\\n }\\n\\n if (\\n offsetParent &amp;&amp;\\n (getNodeName(offsetParent) === 'html' ||\\n (getNodeName(offsetParent) === 'body' &amp;&amp;\\n getComputedStyle(offsetParent).position === 'static'))\\n ) {\\n return window;\\n }\\n\\n return offsetParent || getContainingBlock(element) || window;\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nexport const top: 'top' = 'top';\\nexport const bottom: 'bottom' = 'bottom';\\nexport const right: 'right' = 'right';\\nexport const left: 'left' = 'left';\\nexport const auto: 'auto' = 'auto';\\nexport type BasePlacement =\\n | typeof top\\n | typeof bottom\\n | typeof right\\n | typeof left;\\nexport const basePlacements: Array&lt;BasePlacement&gt; = [top, bottom, right, left];\\n\\nexport const start: 'start' = 'start';\\nexport const end: 'end' = 'end';\\nexport type Variation = typeof start | typeof end;\\n\\nexport const clippingParents: 'clippingParents' = 'clippingParents';\\nexport const viewport: 'viewport' = 'viewport';\\nexport type Boundary = Element | Array&lt;Element&gt; | typeof clippingParents;\\nexport type RootBoundary = typeof viewport | 'document';\\n\\nexport const popper: 'popper' = 'popper';\\nexport const reference: 'reference' = 'reference';\\nexport type Context = typeof popper | typeof reference;\\n\\nexport type VariationPlacement =\\n | 'top-start'\\n | 'top-end'\\n | 'bottom-start'\\n | 'bottom-end'\\n | 'right-start'\\n | 'right-end'\\n | 'left-start'\\n | 'left-end';\\nexport type AutoPlacement = 'auto' | 'auto-start' | 'auto-end';\\nexport type ComputedPlacement = VariationPlacement | BasePlacement;\\nexport type Placement = AutoPlacement | BasePlacement | VariationPlacement;\\n\\nexport const variationPlacements: Array&lt;VariationPlacement&gt; = basePlacements.reduce(\\n (acc: Array&lt;VariationPlacement&gt;, placement: BasePlacement) =&gt;\\n acc.concat([(`${placement}-${start}`: any), (`${placement}-${end}`: any)]),\\n []\\n);\\nexport const placements: Array&lt;Placement&gt; = [...basePlacements, auto].reduce(\\n (\\n acc: Array&lt;Placement&gt;,\\n placement: BasePlacement | typeof auto\\n ): Array&lt;Placement&gt; =&gt;\\n acc.concat([\\n placement,\\n (`${placement}-${start}`: any),\\n (`${placement}-${end}`: any),\\n ]),\\n []\\n);\\n\\n// modifiers that need to read the DOM\\nexport const beforeRead: 'beforeRead' = 'beforeRead';\\nexport const read: 'read' = 'read';\\nexport const afterRead: 'afterRead' = 'afterRead';\\n// pure-logic modifiers\\nexport const beforeMain: 'beforeMain' = 'beforeMain';\\nexport const main: 'main' = 'main';\\nexport const afterMain: 'afterMain' = 'afterMain';\\n// modifier with the purpose to write to the DOM (or write into a framework state)\\nexport const beforeWrite: 'beforeWrite' = 'beforeWrite';\\nexport const write: 'write' = 'write';\\nexport const afterWrite: 'afterWrite' = 'afterWrite';\\nexport const modifierPhases: Array&lt;ModifierPhases&gt; = [\\n beforeRead,\\n read,\\n afterRead,\\n beforeMain,\\n main,\\n afterMain,\\n beforeWrite,\\n write,\\n afterWrite,\\n];\\n\\nexport type ModifierPhases =\\n | typeof beforeRead\\n | typeof read\\n | typeof afterRead\\n | typeof beforeMain\\n | typeof main\\n | typeof afterMain\\n | typeof beforeWrite\\n | typeof write\\n | typeof afterWrite;\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Modifier } from '../types';\\nimport { modifierPhases } from '../enums';\\n\\n// source: https://stackoverflow.com/questions/49875255\\nfunction order(modifiers) {\\n const map = new Map();\\n const visited = new Set();\\n const result = [];\\n\\n modifiers.forEach(modifier =&gt; {\\n map.set(modifier.name, modifier);\\n });\\n\\n // On visiting object, check for its dependencies and visit them recursively\\n function sort(modifier: Modifier&lt;any, any&gt;) {\\n visited.add(modifier.name);\\n\\n const requires = [\\n ...(modifier.requires || []),\\n ...(modifier.requiresIfExists || []),\\n ];\\n\\n requires.forEach(dep =&gt; {\\n if (!visited.has(dep)) {\\n const depModifier = map.get(dep);\\n\\n if (depModifier) {\\n sort(depModifier);\\n }\\n }\\n });\\n\\n result.push(modifier);\\n }\\n\\n modifiers.forEach(modifier =&gt; {\\n if (!visited.has(modifier.name)) {\\n // check for visited object\\n sort(modifier);\\n }\\n });\\n\\n return result;\\n}\\n\\nexport default function orderModifiers(\\n modifiers: Array&lt;Modifier&lt;any, any&gt;&gt;\\n): Array&lt;Modifier&lt;any, any&gt;&gt; {\\n // order based on dependencies\\n const orderedModifiers = order(modifiers);\\n\\n // order based on phase\\n return modifierPhases.reduce((acc, phase) =&gt; {\\n return acc.concat(\\n orderedModifiers.filter(modifier =&gt; modifier.phase === phase)\\n );\\n }, []);\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\n\\nexport default function debounce&lt;T&gt;(fn: Function): () =&gt; Promise&lt;T&gt; {\\n let pending;\\n return () =&gt; {\\n if (!pending) {\\n pending = new Promise&lt;T&gt;(resolve =&gt; {\\n Promise.resolve().then(() =&gt; {\\n pending = undefined;\\n resolve(fn());\\n });\\n });\\n }\\n\\n return pending;\\n };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\n\\nexport default function format(str: string, ...args: Array&lt;string&gt;) {\\n return [...args].reduce((p, c) =&gt; p.replace(/%s/, c), str);\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport format from './format';\\nimport { modifierPhases } from '../enums';\\n\\nconst INVALID_MODIFIER_ERROR =\\n 'Popper: modifier \\\"%s\\\" provided an invalid %s property, expected %s but got %s';\\nconst MISSING_DEPENDENCY_ERROR =\\n 'Popper: modifier \\\"%s\\\" requires \\\"%s\\\", but \\\"%s\\\" modifier is not available';\\nconst VALID_PROPERTIES = [\\n 'name',\\n 'enabled',\\n 'phase',\\n 'fn',\\n 'effect',\\n 'requires',\\n 'options',\\n];\\n\\nexport default function validateModifiers(modifiers: Array&lt;any&gt;): void {\\n modifiers.forEach((modifier) =&gt; {\\n [...Object.keys(modifier), ...VALID_PROPERTIES]\\n // IE11-compatible replacement for `new Set(iterable)`\\n .filter((value, index, self) =&gt; self.indexOf(value) === index)\\n .forEach((key) =&gt; {\\n switch (key) {\\n case 'name':\\n if (typeof modifier.name !== 'string') {\\n console.error(\\n format(\\n INVALID_MODIFIER_ERROR,\\n String(modifier.name),\\n '\\\"name\\\"',\\n '\\\"string\\\"',\\n `\\\"${String(modifier.name)}\\\"`\\n )\\n );\\n }\\n break;\\n case 'enabled':\\n if (typeof modifier.enabled !== 'boolean') {\\n console.error(\\n format(\\n INVALID_MODIFIER_ERROR,\\n modifier.name,\\n '\\\"enabled\\\"',\\n '\\\"boolean\\\"',\\n `\\\"${String(modifier.enabled)}\\\"`\\n )\\n );\\n }\\n break;\\n case 'phase':\\n if (modifierPhases.indexOf(modifier.phase) &lt; 0) {\\n console.error(\\n format(\\n INVALID_MODIFIER_ERROR,\\n modifier.name,\\n '\\\"phase\\\"',\\n `either ${modifierPhases.join(', ')}`,\\n `\\\"${String(modifier.phase)}\\\"`\\n )\\n );\\n }\\n break;\\n case 'fn':\\n if (typeof modifier.fn !== 'function') {\\n console.error(\\n format(\\n INVALID_MODIFIER_ERROR,\\n modifier.name,\\n '\\\"fn\\\"',\\n '\\\"function\\\"',\\n `\\\"${String(modifier.fn)}\\\"`\\n )\\n );\\n }\\n break;\\n case 'effect':\\n if (\\n modifier.effect != null &amp;&amp;\\n typeof modifier.effect !== 'function'\\n ) {\\n console.error(\\n format(\\n INVALID_MODIFIER_ERROR,\\n modifier.name,\\n '\\\"effect\\\"',\\n '\\\"function\\\"',\\n `\\\"${String(modifier.fn)}\\\"`\\n )\\n );\\n }\\n break;\\n case 'requires':\\n if (\\n modifier.requires != null &amp;&amp;\\n !Array.isArray(modifier.requires)\\n ) {\\n console.error(\\n format(\\n INVALID_MODIFIER_ERROR,\\n modifier.name,\\n '\\\"requires\\\"',\\n '\\\"array\\\"',\\n `\\\"${String(modifier.requires)}\\\"`\\n )\\n );\\n }\\n break;\\n case 'requiresIfExists':\\n if (!Array.isArray(modifier.requiresIfExists)) {\\n console.error(\\n format(\\n INVALID_MODIFIER_ERROR,\\n modifier.name,\\n '\\\"requiresIfExists\\\"',\\n '\\\"array\\\"',\\n `\\\"${String(modifier.requiresIfExists)}\\\"`\\n )\\n );\\n }\\n break;\\n case 'options':\\n case 'data':\\n break;\\n default:\\n console.error(\\n `PopperJS: an invalid property has been provided to the \\\"${\\n modifier.name\\n }\\\" modifier, valid properties are ${VALID_PROPERTIES.map(\\n (s) =&gt; `\\\"${s}\\\"`\\n ).join(', ')}; but \\\"${key}\\\" was provided.`\\n );\\n }\\n\\n modifier.requires &amp;&amp;\\n modifier.requires.forEach((requirement) =&gt; {\\n if (modifiers.find((mod) =&gt; mod.name === requirement) == null) {\\n console.error(\\n format(\\n MISSING_DEPENDENCY_ERROR,\\n String(modifier.name),\\n requirement,\\n requirement\\n )\\n );\\n }\\n });\\n });\\n });\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\n\\nexport default function uniqueBy&lt;T&gt;(arr: Array&lt;T&gt;, fn: T =&gt; any): Array&lt;T&gt; {\\n const identifiers = new Set();\\n\\n return arr.filter(item =&gt; {\\n const identifier = fn(item);\\n\\n if (!identifiers.has(identifier)) {\\n identifiers.add(identifier);\\n return true;\\n }\\n });\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport { type BasePlacement, type Placement, auto } from '../enums';\\n\\nexport default function getBasePlacement(\\n placement: Placement | typeof auto\\n): BasePlacement {\\n return (placement.split('-')[0]: any);\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Modifier } from '../types';\\n\\nexport default function mergeByName(\\n modifiers: Array&lt;$Shape&lt;Modifier&lt;any, any&gt;&gt;&gt;\\n): Array&lt;$Shape&lt;Modifier&lt;any, any&gt;&gt;&gt; {\\n const merged = modifiers.reduce((merged, current) =&gt; {\\n const existing = merged[current.name];\\n merged[current.name] = existing\\n ? {\\n ...existing,\\n ...current,\\n options: { ...existing.options, ...current.options },\\n data: { ...existing.data, ...current.data },\\n }\\n : current;\\n return merged;\\n }, {});\\n\\n // IE11 does not support Object.values\\n return Object.keys(merged).map(key =&gt; merged[key]);\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getWindow from './getWindow';\\nimport getDocumentElement from './getDocumentElement';\\nimport getWindowScrollBarX from './getWindowScrollBarX';\\n\\nexport default function getViewportRect(element: Element) {\\n const win = getWindow(element);\\n const html = getDocumentElement(element);\\n const visualViewport = win.visualViewport;\\n\\n let width = html.clientWidth;\\n let height = html.clientHeight;\\n let x = 0;\\n let y = 0;\\n\\n // NB: This isn't supported on iOS &lt;= 12. If the keyboard is open, the popper\\n // can be obscured underneath it.\\n // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even\\n // if it isn't open, so if this isn't available, the popper will be detected\\n // to overflow the bottom of the screen too early.\\n if (visualViewport) {\\n width = visualViewport.width;\\n height = visualViewport.height;\\n\\n // Uses Layout Viewport (like Chrome; Safari does not currently)\\n // In Chrome, it returns a value very close to 0 (+/-) but contains rounding\\n // errors due to floating point numbers, so we need to check precision.\\n // Safari returns a number &lt;= 0, usually &lt; -1 when pinch-zoomed\\n\\n // Feature detection fails in mobile emulation mode in Chrome.\\n // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) &lt;\\n // 0.001\\n // Fallback here: \\\"Not Safari\\\" userAgent\\n if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\\n x = visualViewport.offsetLeft;\\n y = visualViewport.offsetTop;\\n }\\n }\\n\\n return {\\n width,\\n height,\\n x: x + getWindowScrollBarX(element),\\n y,\\n };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Rect } from '../types';\\nimport getDocumentElement from './getDocumentElement';\\nimport getComputedStyle from './getComputedStyle';\\nimport getWindowScrollBarX from './getWindowScrollBarX';\\nimport getWindowScroll from './getWindowScroll';\\nimport { max } from '../utils/math';\\n\\n// Gets the entire size of the scrollable document area, even extending outside\\n// of the `&lt;html&gt;` and `&lt;body&gt;` rect bounds if horizontally scrollable\\nexport default function getDocumentRect(element: HTMLElement): Rect {\\n const html = getDocumentElement(element);\\n const winScroll = getWindowScroll(element);\\n const body = element.ownerDocument?.body;\\n\\n const width = max(\\n html.scrollWidth,\\n html.clientWidth,\\n body ? body.scrollWidth : 0,\\n body ? body.clientWidth : 0\\n );\\n const height = max(\\n html.scrollHeight,\\n html.clientHeight,\\n body ? body.scrollHeight : 0,\\n body ? body.clientHeight : 0\\n );\\n\\n let x = -winScroll.scrollLeft + getWindowScrollBarX(element);\\n const y = -winScroll.scrollTop;\\n\\n if (getComputedStyle(body || html).direction === 'rtl') {\\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\\n }\\n\\n return { width, height, x, y };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport { isShadowRoot } from './instanceOf';\\n\\nexport default function contains(parent: Element, child: Element) {\\n const rootNode = child.getRootNode &amp;&amp; child.getRootNode();\\n\\n // First, attempt with faster native method\\n if (parent.contains(child)) {\\n return true;\\n }\\n // then fallback to custom implementation with Shadow DOM support\\n else if (rootNode &amp;&amp; isShadowRoot(rootNode)) {\\n let next = child;\\n do {\\n if (next &amp;&amp; parent.isSameNode(next)) {\\n return true;\\n }\\n // $FlowFixMe[prop-missing]: need a better way to handle this...\\n next = next.parentNode || next.host;\\n } while (next);\\n }\\n\\n // Give up, the result is false\\n return false;\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Rect, ClientRectObject } from '../types';\\n\\nexport default function rectToClientRect(rect: Rect): ClientRectObject {\\n return {\\n ...rect,\\n left: rect.x,\\n top: rect.y,\\n right: rect.x + rect.width,\\n bottom: rect.y + rect.height,\\n };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { ClientRectObject } from '../types';\\nimport type { Boundary, RootBoundary } from '../enums';\\nimport { viewport } from '../enums';\\nimport getViewportRect from './getViewportRect';\\nimport getDocumentRect from './getDocumentRect';\\nimport listScrollParents from './listScrollParents';\\nimport getOffsetParent from './getOffsetParent';\\nimport getDocumentElement from './getDocumentElement';\\nimport getComputedStyle from './getComputedStyle';\\nimport { isElement, isHTMLElement } from './instanceOf';\\nimport getBoundingClientRect from './getBoundingClientRect';\\nimport getParentNode from './getParentNode';\\nimport contains from './contains';\\nimport getNodeName from './getNodeName';\\nimport rectToClientRect from '../utils/rectToClientRect';\\nimport { max, min } from '../utils/math';\\n\\nfunction getInnerBoundingClientRect(element: Element) {\\n const rect = getBoundingClientRect(element);\\n\\n rect.top = rect.top + element.clientTop;\\n rect.left = rect.left + element.clientLeft;\\n rect.bottom = rect.top + element.clientHeight;\\n rect.right = rect.left + element.clientWidth;\\n rect.width = element.clientWidth;\\n rect.height = element.clientHeight;\\n rect.x = rect.left;\\n rect.y = rect.top;\\n\\n return rect;\\n}\\n\\nfunction getClientRectFromMixedType(\\n element: Element,\\n clippingParent: Element | RootBoundary\\n): ClientRectObject {\\n return clippingParent === viewport\\n ? rectToClientRect(getViewportRect(element))\\n : isElement(clippingParent)\\n ? getInnerBoundingClientRect(clippingParent)\\n : rectToClientRect(getDocumentRect(getDocumentElement(element)));\\n}\\n\\n// A \\\"clipping parent\\\" is an overflowable container with the characteristic of\\n// clipping (or hiding) overflowing elements with a position different from\\n// `initial`\\nfunction getClippingParents(element: Element): Array&lt;Element&gt; {\\n const clippingParents = listScrollParents(getParentNode(element));\\n const canEscapeClipping =\\n ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) &gt;= 0;\\n const clipperElement =\\n canEscapeClipping &amp;&amp; isHTMLElement(element)\\n ? getOffsetParent(element)\\n : element;\\n\\n if (!isElement(clipperElement)) {\\n return [];\\n }\\n\\n // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\\n return clippingParents.filter(\\n (clippingParent) =&gt;\\n isElement(clippingParent) &amp;&amp;\\n contains(clippingParent, clipperElement) &amp;&amp;\\n getNodeName(clippingParent) !== 'body'\\n );\\n}\\n\\n// Gets the maximum area that the element is visible in due to any number of\\n// clipping parents\\nexport default function getClippingRect(\\n element: Element,\\n boundary: Boundary,\\n rootBoundary: RootBoundary\\n): ClientRectObject {\\n const mainClippingParents =\\n boundary === 'clippingParents'\\n ? getClippingParents(element)\\n : [].concat(boundary);\\n const clippingParents = [...mainClippingParents, rootBoundary];\\n const firstClippingParent = clippingParents[0];\\n\\n const clippingRect = clippingParents.reduce((accRect, clippingParent) =&gt; {\\n const rect = getClientRectFromMixedType(element, clippingParent);\\n\\n accRect.top = max(rect.top, accRect.top);\\n accRect.right = min(rect.right, accRect.right);\\n accRect.bottom = min(rect.bottom, accRect.bottom);\\n accRect.left = max(rect.left, accRect.left);\\n\\n return accRect;\\n }, getClientRectFromMixedType(element, firstClippingParent));\\n\\n clippingRect.width = clippingRect.right - clippingRect.left;\\n clippingRect.height = clippingRect.bottom - clippingRect.top;\\n clippingRect.x = clippingRect.left;\\n clippingRect.y = clippingRect.top;\\n\\n return clippingRect;\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport { type Variation, type Placement } from '../enums';\\n\\nexport default function getVariation(placement: Placement): ?Variation {\\n return (placement.split('-')[1]: any);\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Placement } from '../enums';\\n\\nexport default function getMainAxisFromPlacement(\\n placement: Placement\\n): 'x' | 'y' {\\n return ['top', 'bottom'].indexOf(placement) &gt;= 0 ? 'x' : 'y';\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport getBasePlacement from './getBasePlacement';\\nimport getVariation from './getVariation';\\nimport getMainAxisFromPlacement from './getMainAxisFromPlacement';\\nimport type {\\n Rect,\\n PositioningStrategy,\\n Offsets,\\n ClientRectObject,\\n} from '../types';\\nimport { top, right, bottom, left, start, end, type Placement } from '../enums';\\n\\nexport default function computeOffsets({\\n reference,\\n element,\\n placement,\\n}: {\\n reference: Rect | ClientRectObject,\\n element: Rect | ClientRectObject,\\n strategy: PositioningStrategy,\\n placement?: Placement,\\n}): Offsets {\\n const basePlacement = placement ? getBasePlacement(placement) : null;\\n const variation = placement ? getVariation(placement) : null;\\n const commonX = reference.x + reference.width / 2 - element.width / 2;\\n const commonY = reference.y + reference.height / 2 - element.height / 2;\\n\\n let offsets;\\n switch (basePlacement) {\\n case top:\\n offsets = {\\n x: commonX,\\n y: reference.y - element.height,\\n };\\n break;\\n case bottom:\\n offsets = {\\n x: commonX,\\n y: reference.y + reference.height,\\n };\\n break;\\n case right:\\n offsets = {\\n x: reference.x + reference.width,\\n y: commonY,\\n };\\n break;\\n case left:\\n offsets = {\\n x: reference.x - element.width,\\n y: commonY,\\n };\\n break;\\n default:\\n offsets = {\\n x: reference.x,\\n y: reference.y,\\n };\\n }\\n\\n const mainAxis = basePlacement\\n ? getMainAxisFromPlacement(basePlacement)\\n : null;\\n\\n if (mainAxis != null) {\\n const len = mainAxis === 'y' ? 'height' : 'width';\\n\\n switch (variation) {\\n case start:\\n offsets[mainAxis] =\\n offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\\n break;\\n case end:\\n offsets[mainAxis] =\\n offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\\n break;\\n default:\\n }\\n }\\n\\n return offsets;\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { SideObject } from '../types';\\n\\nexport default function getFreshSideObject(): SideObject {\\n return {\\n top: 0,\\n right: 0,\\n bottom: 0,\\n left: 0,\\n };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { SideObject } from '../types';\\nimport getFreshSideObject from './getFreshSideObject';\\n\\nexport default function mergePaddingObject(\\n paddingObject: $Shape&lt;SideObject&gt;\\n): SideObject {\\n return {\\n ...getFreshSideObject(),\\n ...paddingObject,\\n };\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\n\\nexport default function expandToHashMap&lt;\\n T: number | string | boolean,\\n K: string\\n&gt;(value: T, keys: Array&lt;K&gt;): { [key: string]: T } {\\n return keys.reduce((hashMap, key) =&gt; {\\n hashMap[key] = value;\\n return hashMap;\\n }, {});\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { State, SideObject, Padding } from '../types';\\nimport type { Placement, Boundary, RootBoundary, Context } from '../enums';\\nimport getClippingRect from '../dom-utils/getClippingRect';\\nimport getDocumentElement from '../dom-utils/getDocumentElement';\\nimport getBoundingClientRect from '../dom-utils/getBoundingClientRect';\\nimport computeOffsets from './computeOffsets';\\nimport rectToClientRect from './rectToClientRect';\\nimport {\\n clippingParents,\\n reference,\\n popper,\\n bottom,\\n top,\\n right,\\n basePlacements,\\n viewport,\\n} from '../enums';\\nimport { isElement } from '../dom-utils/instanceOf';\\nimport mergePaddingObject from './mergePaddingObject';\\nimport expandToHashMap from './expandToHashMap';\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type Options = {\\n placement: Placement,\\n boundary: Boundary,\\n rootBoundary: RootBoundary,\\n elementContext: Context,\\n altBoundary: boolean,\\n padding: Padding,\\n};\\n\\nexport default function detectOverflow(\\n state: State,\\n options: $Shape&lt;Options&gt; = {}\\n): SideObject {\\n const {\\n placement = state.placement,\\n boundary = clippingParents,\\n rootBoundary = viewport,\\n elementContext = popper,\\n altBoundary = false,\\n padding = 0,\\n } = options;\\n\\n const paddingObject = mergePaddingObject(\\n typeof padding !== 'number'\\n ? padding\\n : expandToHashMap(padding, basePlacements)\\n );\\n\\n const altContext = elementContext === popper ? reference : popper;\\n\\n const popperRect = state.rects.popper;\\n const element = state.elements[altBoundary ? altContext : elementContext];\\n\\n const clippingClientRect = getClippingRect(\\n isElement(element)\\n ? element\\n : element.contextElement || getDocumentElement(state.elements.popper),\\n boundary,\\n rootBoundary\\n );\\n\\n const referenceClientRect = getBoundingClientRect(state.elements.reference);\\n\\n const popperOffsets = computeOffsets({\\n reference: referenceClientRect,\\n element: popperRect,\\n strategy: 'absolute',\\n placement,\\n });\\n\\n const popperClientRect = rectToClientRect({\\n ...popperRect,\\n ...popperOffsets,\\n });\\n\\n const elementClientRect =\\n elementContext === popper ? popperClientRect : referenceClientRect;\\n\\n // positive = overflowing the clipping rect\\n // 0 or negative = within the clipping rect\\n const overflowOffsets = {\\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\\n bottom:\\n elementClientRect.bottom -\\n clippingClientRect.bottom +\\n paddingObject.bottom,\\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\\n right:\\n elementClientRect.right - clippingClientRect.right + paddingObject.right,\\n };\\n\\n const offsetData = state.modifiersData.offset;\\n\\n // Offsets can be applied only to the popper element\\n if (elementContext === popper &amp;&amp; offsetData) {\\n const offset = offsetData[placement];\\n\\n Object.keys(overflowOffsets).forEach((key) =&gt; {\\n const multiply = [right, bottom].indexOf(key) &gt;= 0 ? 1 : -1;\\n const axis = [top, bottom].indexOf(key) &gt;= 0 ? 'y' : 'x';\\n overflowOffsets[key] += offset[axis] * multiply;\\n });\\n }\\n\\n return overflowOffsets;\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type {\\n State,\\n OptionsGeneric,\\n Modifier,\\n Instance,\\n VirtualElement,\\n} from './types';\\nimport getCompositeRect from './dom-utils/getCompositeRect';\\nimport getLayoutRect from './dom-utils/getLayoutRect';\\nimport listScrollParents from './dom-utils/listScrollParents';\\nimport getOffsetParent from './dom-utils/getOffsetParent';\\nimport getComputedStyle from './dom-utils/getComputedStyle';\\nimport orderModifiers from './utils/orderModifiers';\\nimport debounce from './utils/debounce';\\nimport validateModifiers from './utils/validateModifiers';\\nimport uniqueBy from './utils/uniqueBy';\\nimport getBasePlacement from './utils/getBasePlacement';\\nimport mergeByName from './utils/mergeByName';\\nimport detectOverflow from './utils/detectOverflow';\\nimport { isElement } from './dom-utils/instanceOf';\\nimport { auto } from './enums';\\n\\nconst INVALID_ELEMENT_ERROR =\\n 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\\nconst INFINITE_LOOP_ERROR =\\n 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\\n\\nconst DEFAULT_OPTIONS: OptionsGeneric&lt;any&gt; = {\\n placement: 'bottom',\\n modifiers: [],\\n strategy: 'absolute',\\n};\\n\\ntype PopperGeneratorArgs = {\\n defaultModifiers?: Array&lt;Modifier&lt;any, any&gt;&gt;,\\n defaultOptions?: $Shape&lt;OptionsGeneric&lt;any&gt;&gt;,\\n};\\n\\nfunction areValidElements(...args: Array&lt;any&gt;): boolean {\\n return !args.some(\\n (element) =&gt;\\n !(element &amp;&amp; typeof element.getBoundingClientRect === 'function')\\n );\\n}\\n\\nexport function popperGenerator(generatorOptions: PopperGeneratorArgs = {}) {\\n const {\\n defaultModifiers = [],\\n defaultOptions = DEFAULT_OPTIONS,\\n } = generatorOptions;\\n\\n return function createPopper&lt;TModifier: $Shape&lt;Modifier&lt;any, any&gt;&gt;&gt;(\\n reference: Element | VirtualElement,\\n popper: HTMLElement,\\n options: $Shape&lt;OptionsGeneric&lt;TModifier&gt;&gt; = defaultOptions\\n ): Instance {\\n let state: $Shape&lt;State&gt; = {\\n placement: 'bottom',\\n orderedModifiers: [],\\n options: { ...DEFAULT_OPTIONS, ...defaultOptions },\\n modifiersData: {},\\n elements: {\\n reference,\\n popper,\\n },\\n attributes: {},\\n styles: {},\\n };\\n\\n let effectCleanupFns: Array&lt;() =&gt; void&gt; = [];\\n let isDestroyed = false;\\n\\n const instance = {\\n state,\\n setOptions(setOptionsAction) {\\n const options =\\n typeof setOptionsAction === 'function'\\n ? setOptionsAction(state.options)\\n : setOptionsAction;\\n\\n cleanupModifierEffects();\\n\\n state.options = {\\n // $FlowFixMe[exponential-spread]\\n ...defaultOptions,\\n ...state.options,\\n ...options,\\n };\\n\\n state.scrollParents = {\\n reference: isElement(reference)\\n ? listScrollParents(reference)\\n : reference.contextElement\\n ? listScrollParents(reference.contextElement)\\n : [],\\n popper: listScrollParents(popper),\\n };\\n\\n // Orders the modifiers based on their dependencies and `phase`\\n // properties\\n const orderedModifiers = orderModifiers(\\n mergeByName([...defaultModifiers, ...state.options.modifiers])\\n );\\n\\n // Strip out disabled modifiers\\n state.orderedModifiers = orderedModifiers.filter((m) =&gt; m.enabled);\\n\\n // Validate the provided modifiers so that the consumer will get warned\\n // if one of the modifiers is invalid for any reason\\n if (__DEV__) {\\n const modifiers = uniqueBy(\\n [...orderedModifiers, ...state.options.modifiers],\\n ({ name }) =&gt; name\\n );\\n\\n validateModifiers(modifiers);\\n\\n if (getBasePlacement(state.options.placement) === auto) {\\n const flipModifier = state.orderedModifiers.find(\\n ({ name }) =&gt; name === 'flip'\\n );\\n\\n if (!flipModifier) {\\n console.error(\\n [\\n 'Popper: \\\"auto\\\" placements require the \\\"flip\\\" modifier be',\\n 'present and enabled to work.',\\n ].join(' ')\\n );\\n }\\n }\\n\\n const {\\n marginTop,\\n marginRight,\\n marginBottom,\\n marginLeft,\\n } = getComputedStyle(popper);\\n\\n // We no longer take into account `margins` on the popper, and it can\\n // cause bugs with positioning, so we'll warn the consumer\\n if (\\n [marginTop, marginRight, marginBottom, marginLeft].some((margin) =&gt;\\n parseFloat(margin)\\n )\\n ) {\\n console.warn(\\n [\\n 'Popper: CSS \\\"margin\\\" styles cannot be used to apply padding',\\n 'between the popper and its reference element or boundary.',\\n 'To replicate margin, use the `offset` modifier, as well as',\\n 'the `padding` option in the `preventOverflow` and `flip`',\\n 'modifiers.',\\n ].join(' ')\\n );\\n }\\n }\\n\\n runModifierEffects();\\n\\n return instance.update();\\n },\\n\\n // Sync update \u2013 it will always be executed, even if not necessary. This\\n // is useful for low frequency updates where sync behavior simplifies the\\n // logic.\\n // For high frequency updates (e.g. `resize` and `scroll` events), always\\n // prefer the async Popper#update method\\n forceUpdate() {\\n if (isDestroyed) {\\n return;\\n }\\n\\n const { reference, popper } = state.elements;\\n\\n // Don't proceed if `reference` or `popper` are not valid elements\\n // anymore\\n if (!areValidElements(reference, popper)) {\\n if (__DEV__) {\\n console.error(INVALID_ELEMENT_ERROR);\\n }\\n return;\\n }\\n\\n // Store the reference and popper rects to be read by modifiers\\n state.rects = {\\n reference: getCompositeRect(\\n reference,\\n getOffsetParent(popper),\\n state.options.strategy === 'fixed'\\n ),\\n popper: getLayoutRect(popper),\\n };\\n\\n // Modifiers have the ability to reset the current update cycle. The\\n // most common use case for this is the `flip` modifier changing the\\n // placement, which then needs to re-run all the modifiers, because the\\n // logic was previously ran for the previous placement and is therefore\\n // stale/incorrect\\n state.reset = false;\\n\\n state.placement = state.options.placement;\\n\\n // On each update cycle, the `modifiersData` property for each modifier\\n // is filled with the initial data specified by the modifier. This means\\n // it doesn't persist and is fresh on each update.\\n // To ensure persistent data, use `${name}#persistent`\\n state.orderedModifiers.forEach(\\n (modifier) =&gt;\\n (state.modifiersData[modifier.name] = {\\n ...modifier.data,\\n })\\n );\\n\\n let __debug_loops__ = 0;\\n for (let index = 0; index &lt; state.orderedModifiers.length; index++) {\\n if (__DEV__) {\\n __debug_loops__ += 1;\\n if (__debug_loops__ &gt; 100) {\\n console.error(INFINITE_LOOP_ERROR);\\n break;\\n }\\n }\\n\\n if (state.reset === true) {\\n state.reset = false;\\n index = -1;\\n continue;\\n }\\n\\n const { fn, options = {}, name } = state.orderedModifiers[index];\\n\\n if (typeof fn === 'function') {\\n state = fn({ state, options, name, instance }) || state;\\n }\\n }\\n },\\n\\n // Async and optimistically optimized update \u2013 it will not be executed if\\n // not necessary (debounced to run at most once-per-tick)\\n update: debounce&lt;$Shape&lt;State&gt;&gt;(\\n () =&gt;\\n new Promise&lt;$Shape&lt;State&gt;&gt;((resolve) =&gt; {\\n instance.forceUpdate();\\n resolve(state);\\n })\\n ),\\n\\n destroy() {\\n cleanupModifierEffects();\\n isDestroyed = true;\\n },\\n };\\n\\n if (!areValidElements(reference, popper)) {\\n if (__DEV__) {\\n console.error(INVALID_ELEMENT_ERROR);\\n }\\n return instance;\\n }\\n\\n instance.setOptions(options).then((state) =&gt; {\\n if (!isDestroyed &amp;&amp; options.onFirstUpdate) {\\n options.onFirstUpdate(state);\\n }\\n });\\n\\n // Modifiers have the ability to execute arbitrary code before the first\\n // update cycle runs. They will be executed in the same order as the update\\n // cycle. This is useful when a modifier adds some persistent data that\\n // other modifiers need to use, but the modifier is run after the dependent\\n // one.\\n function runModifierEffects() {\\n state.orderedModifiers.forEach(({ name, options = {}, effect }) =&gt; {\\n if (typeof effect === 'function') {\\n const cleanupFn = effect({ state, name, instance, options });\\n const noopFn = () =&gt; {};\\n effectCleanupFns.push(cleanupFn || noopFn);\\n }\\n });\\n }\\n\\n function cleanupModifierEffects() {\\n effectCleanupFns.forEach((fn) =&gt; fn());\\n effectCleanupFns = [];\\n }\\n\\n return instance;\\n };\\n}\\n\\nexport const createPopper = popperGenerator();\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport { detectOverflow };\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { ModifierArguments, Modifier } from '../types';\\nimport getWindow from '../dom-utils/getWindow';\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type Options = {\\n scroll: boolean,\\n resize: boolean,\\n};\\n\\nconst passive = { passive: true };\\n\\nfunction effect({ state, instance, options }: ModifierArguments&lt;Options&gt;) {\\n const { scroll = true, resize = true } = options;\\n\\n const window = getWindow(state.elements.popper);\\n const scrollParents = [\\n ...state.scrollParents.reference,\\n ...state.scrollParents.popper,\\n ];\\n\\n if (scroll) {\\n scrollParents.forEach(scrollParent =&gt; {\\n scrollParent.addEventListener('scroll', instance.update, passive);\\n });\\n }\\n\\n if (resize) {\\n window.addEventListener('resize', instance.update, passive);\\n }\\n\\n return () =&gt; {\\n if (scroll) {\\n scrollParents.forEach(scrollParent =&gt; {\\n scrollParent.removeEventListener('scroll', instance.update, passive);\\n });\\n }\\n\\n if (resize) {\\n window.removeEventListener('resize', instance.update, passive);\\n }\\n };\\n}\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type EventListenersModifier = Modifier&lt;'eventListeners', Options&gt;;\\nexport default ({\\n name: 'eventListeners',\\n enabled: true,\\n phase: 'write',\\n fn: () =&gt; {},\\n effect,\\n data: {},\\n}: EventListenersModifier);\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { ModifierArguments, Modifier } from '../types';\\nimport computeOffsets from '../utils/computeOffsets';\\n\\nfunction popperOffsets({ state, name }: ModifierArguments&lt;{||}&gt;) {\\n // Offsets are the actual position the popper needs to have to be\\n // properly positioned near its reference element\\n // This is the most basic placement, and will be adjusted by\\n // the modifiers in the next step\\n state.modifiersData[name] = computeOffsets({\\n reference: state.rects.reference,\\n element: state.rects.popper,\\n strategy: 'absolute',\\n placement: state.placement,\\n });\\n}\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type PopperOffsetsModifier = Modifier&lt;'popperOffsets', {||}&gt;;\\nexport default ({\\n name: 'popperOffsets',\\n enabled: true,\\n phase: 'read',\\n fn: popperOffsets,\\n data: {},\\n}: PopperOffsetsModifier);\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type {\\n PositioningStrategy,\\n Offsets,\\n Modifier,\\n ModifierArguments,\\n Rect,\\n Window,\\n} from '../types';\\nimport {\\n type BasePlacement,\\n type Variation,\\n top,\\n left,\\n right,\\n bottom,\\n end,\\n} from '../enums';\\nimport getOffsetParent from '../dom-utils/getOffsetParent';\\nimport getWindow from '../dom-utils/getWindow';\\nimport getDocumentElement from '../dom-utils/getDocumentElement';\\nimport getComputedStyle from '../dom-utils/getComputedStyle';\\nimport getBasePlacement from '../utils/getBasePlacement';\\nimport getVariation from '../utils/getVariation';\\nimport { round } from '../utils/math';\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type RoundOffsets = (\\n offsets: $Shape&lt;{ x: number, y: number, centerOffset: number }&gt;\\n) =&gt; Offsets;\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type Options = {\\n gpuAcceleration: boolean,\\n adaptive: boolean,\\n roundOffsets?: boolean | RoundOffsets,\\n};\\n\\nconst unsetSides = {\\n top: 'auto',\\n right: 'auto',\\n bottom: 'auto',\\n left: 'auto',\\n};\\n\\n// Round the offsets to the nearest suitable subpixel based on the DPR.\\n// Zooming can change the DPR, but it seems to report a value that will\\n// cleanly divide the values into the appropriate subpixels.\\nfunction roundOffsetsByDPR({ x, y }): Offsets {\\n const win: Window = window;\\n const dpr = win.devicePixelRatio || 1;\\n\\n return {\\n x: round(x * dpr) / dpr || 0,\\n y: round(y * dpr) / dpr || 0,\\n };\\n}\\n\\nexport function mapToStyles({\\n popper,\\n popperRect,\\n placement,\\n variation,\\n offsets,\\n position,\\n gpuAcceleration,\\n adaptive,\\n roundOffsets,\\n isFixed,\\n}: {\\n popper: HTMLElement,\\n popperRect: Rect,\\n placement: BasePlacement,\\n variation: ?Variation,\\n offsets: $Shape&lt;{ x: number, y: number, centerOffset: number }&gt;,\\n position: PositioningStrategy,\\n gpuAcceleration: boolean,\\n adaptive: boolean,\\n roundOffsets: boolean | RoundOffsets,\\n isFixed: boolean,\\n}) {\\n let { x = 0, y = 0 } = offsets;\\n\\n ({ x, y } =\\n typeof roundOffsets === 'function'\\n ? roundOffsets({ x, y })\\n : { x, y });\\n\\n const hasX = offsets.hasOwnProperty('x');\\n const hasY = offsets.hasOwnProperty('y');\\n\\n let sideX: string = left;\\n let sideY: string = top;\\n\\n const win: Window = window;\\n\\n if (adaptive) {\\n let offsetParent = getOffsetParent(popper);\\n let heightProp = 'clientHeight';\\n let widthProp = 'clientWidth';\\n\\n if (offsetParent === getWindow(popper)) {\\n offsetParent = getDocumentElement(popper);\\n\\n if (\\n getComputedStyle(offsetParent).position !== 'static' &amp;&amp;\\n position === 'absolute'\\n ) {\\n heightProp = 'scrollHeight';\\n widthProp = 'scrollWidth';\\n }\\n }\\n\\n // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\\n offsetParent = (offsetParent: Element);\\n\\n if (\\n placement === top ||\\n ((placement === left || placement === right) &amp;&amp; variation === end)\\n ) {\\n sideY = bottom;\\n const offsetY =\\n isFixed &amp;&amp; offsetParent === win &amp;&amp; win.visualViewport\\n ? win.visualViewport.height\\n : // $FlowFixMe[prop-missing]\\n offsetParent[heightProp];\\n y -= offsetY - popperRect.height;\\n y *= gpuAcceleration ? 1 : -1;\\n }\\n\\n if (\\n placement === left ||\\n ((placement === top || placement === bottom) &amp;&amp; variation === end)\\n ) {\\n sideX = right;\\n const offsetX =\\n isFixed &amp;&amp; offsetParent === win &amp;&amp; win.visualViewport\\n ? win.visualViewport.width\\n : // $FlowFixMe[prop-missing]\\n offsetParent[widthProp];\\n x -= offsetX - popperRect.width;\\n x *= gpuAcceleration ? 1 : -1;\\n }\\n }\\n\\n const commonStyles = {\\n position,\\n ...(adaptive &amp;&amp; unsetSides),\\n };\\n\\n ({ x, y } =\\n roundOffsets === true\\n ? roundOffsetsByDPR({ x, y })\\n : { x, y });\\n\\n if (gpuAcceleration) {\\n return {\\n ...commonStyles,\\n [sideY]: hasY ? '0' : '',\\n [sideX]: hasX ? '0' : '',\\n // Layer acceleration can disable subpixel rendering which causes slightly\\n // blurry text on low PPI displays, so we want to use 2D transforms\\n // instead\\n transform:\\n (win.devicePixelRatio || 1) &lt;= 1\\n ? `translate(${x}px, ${y}px)`\\n : `translate3d(${x}px, ${y}px, 0)`,\\n };\\n }\\n\\n return {\\n ...commonStyles,\\n [sideY]: hasY ? `${y}px` : '',\\n [sideX]: hasX ? `${x}px` : '',\\n transform: '',\\n };\\n}\\n\\nfunction computeStyles({ state, options }: ModifierArguments&lt;Options&gt;) {\\n const {\\n gpuAcceleration = true,\\n adaptive = true,\\n // defaults to use builtin `roundOffsetsByDPR`\\n roundOffsets = true,\\n } = options;\\n\\n if (__DEV__) {\\n const transitionProperty =\\n getComputedStyle(state.elements.popper).transitionProperty || '';\\n\\n if (\\n adaptive &amp;&amp;\\n ['transform', 'top', 'right', 'bottom', 'left'].some(\\n (property) =&gt; transitionProperty.indexOf(property) &gt;= 0\\n )\\n ) {\\n console.warn(\\n [\\n 'Popper: Detected CSS transitions on at least one of the following',\\n 'CSS properties: \\\"transform\\\", \\\"top\\\", \\\"right\\\", \\\"bottom\\\", \\\"left\\\".',\\n '\\\\n\\\\n',\\n 'Disable the \\\"computeStyles\\\" modifier\\\\'s `adaptive` option to allow',\\n 'for smooth transitions, or remove these properties from the CSS',\\n 'transition declaration on the popper element if only transitioning',\\n 'opacity or background-color for example.',\\n '\\\\n\\\\n',\\n 'We recommend using the popper element as a wrapper around an inner',\\n 'element that can have any CSS property transitioned for animations.',\\n ].join(' ')\\n );\\n }\\n }\\n\\n const commonStyles = {\\n placement: getBasePlacement(state.placement),\\n variation: getVariation(state.placement),\\n popper: state.elements.popper,\\n popperRect: state.rects.popper,\\n gpuAcceleration,\\n isFixed: state.options.strategy === 'fixed',\\n };\\n\\n if (state.modifiersData.popperOffsets != null) {\\n state.styles.popper = {\\n ...state.styles.popper,\\n ...mapToStyles({\\n ...commonStyles,\\n offsets: state.modifiersData.popperOffsets,\\n position: state.options.strategy,\\n adaptive,\\n roundOffsets,\\n }),\\n };\\n }\\n\\n if (state.modifiersData.arrow != null) {\\n state.styles.arrow = {\\n ...state.styles.arrow,\\n ...mapToStyles({\\n ...commonStyles,\\n offsets: state.modifiersData.arrow,\\n position: 'absolute',\\n adaptive: false,\\n roundOffsets,\\n }),\\n };\\n }\\n\\n state.attributes.popper = {\\n ...state.attributes.popper,\\n 'data-popper-placement': state.placement,\\n };\\n}\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type ComputeStylesModifier = Modifier&lt;'computeStyles', Options&gt;;\\nexport default ({\\n name: 'computeStyles',\\n enabled: true,\\n phase: 'beforeWrite',\\n fn: computeStyles,\\n data: {},\\n}: ComputeStylesModifier);\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Modifier, ModifierArguments } from '../types';\\nimport getNodeName from '../dom-utils/getNodeName';\\nimport { isHTMLElement } from '../dom-utils/instanceOf';\\n\\n// This modifier takes the styles prepared by the `computeStyles` modifier\\n// and applies them to the HTMLElements such as popper and arrow\\n\\nfunction applyStyles({ state }: ModifierArguments&lt;{||}&gt;) {\\n Object.keys(state.elements).forEach((name) =&gt; {\\n const style = state.styles[name] || {};\\n\\n const attributes = state.attributes[name] || {};\\n const element = state.elements[name];\\n\\n // arrow is optional + virtual elements\\n if (!isHTMLElement(element) || !getNodeName(element)) {\\n return;\\n }\\n\\n // Flow doesn't support to extend this property, but it's the most\\n // effective way to apply styles to an HTMLElement\\n // $FlowFixMe[cannot-write]\\n Object.assign(element.style, style);\\n\\n Object.keys(attributes).forEach((name) =&gt; {\\n const value = attributes[name];\\n if (value === false) {\\n element.removeAttribute(name);\\n } else {\\n element.setAttribute(name, value === true ? '' : value);\\n }\\n });\\n });\\n}\\n\\nfunction effect({ state }: ModifierArguments&lt;{||}&gt;) {\\n const initialStyles = {\\n popper: {\\n position: state.options.strategy,\\n left: '0',\\n top: '0',\\n margin: '0',\\n },\\n arrow: {\\n position: 'absolute',\\n },\\n reference: {},\\n };\\n\\n Object.assign(state.elements.popper.style, initialStyles.popper);\\n state.styles = initialStyles;\\n\\n if (state.elements.arrow) {\\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\\n }\\n\\n return () =&gt; {\\n Object.keys(state.elements).forEach((name) =&gt; {\\n const element = state.elements[name];\\n const attributes = state.attributes[name] || {};\\n\\n const styleProperties = Object.keys(\\n state.styles.hasOwnProperty(name)\\n ? state.styles[name]\\n : initialStyles[name]\\n );\\n\\n // Set all values to an empty string to unset them\\n const style = styleProperties.reduce((style, property) =&gt; {\\n style[property] = '';\\n return style;\\n }, {});\\n\\n // arrow is optional + virtual elements\\n if (!isHTMLElement(element) || !getNodeName(element)) {\\n return;\\n }\\n\\n Object.assign(element.style, style);\\n\\n Object.keys(attributes).forEach((attribute) =&gt; {\\n element.removeAttribute(attribute);\\n });\\n });\\n };\\n}\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type ApplyStylesModifier = Modifier&lt;'applyStyles', {||}&gt;;\\nexport default ({\\n name: 'applyStyles',\\n enabled: true,\\n phase: 'write',\\n fn: applyStyles,\\n effect,\\n requires: ['computeStyles'],\\n}: ApplyStylesModifier);\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Placement } from '../enums';\\nimport type { ModifierArguments, Modifier, Rect, Offsets } from '../types';\\nimport getBasePlacement from '../utils/getBasePlacement';\\nimport { top, left, right, placements } from '../enums';\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type OffsetsFunction = ({\\n popper: Rect,\\n reference: Rect,\\n placement: Placement,\\n}) =&gt; [?number, ?number];\\n\\ntype Offset = OffsetsFunction | [?number, ?number];\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type Options = {\\n offset: Offset,\\n};\\n\\nexport function distanceAndSkiddingToXY(\\n placement: Placement,\\n rects: { popper: Rect, reference: Rect },\\n offset: Offset\\n): Offsets {\\n const basePlacement = getBasePlacement(placement);\\n const invertDistance = [left, top].indexOf(basePlacement) &gt;= 0 ? -1 : 1;\\n\\n let [skidding, distance] =\\n typeof offset === 'function'\\n ? offset({\\n ...rects,\\n placement,\\n })\\n : offset;\\n\\n skidding = skidding || 0;\\n distance = (distance || 0) * invertDistance;\\n\\n return [left, right].indexOf(basePlacement) &gt;= 0\\n ? { x: distance, y: skidding }\\n : { x: skidding, y: distance };\\n}\\n\\nfunction offset({ state, options, name }: ModifierArguments&lt;Options&gt;) {\\n const { offset = [0, 0] } = options;\\n\\n const data = placements.reduce((acc, placement) =&gt; {\\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\\n return acc;\\n }, {});\\n\\n const { x, y } = data[state.placement];\\n\\n if (state.modifiersData.popperOffsets != null) {\\n state.modifiersData.popperOffsets.x += x;\\n state.modifiersData.popperOffsets.y += y;\\n }\\n\\n state.modifiersData[name] = data;\\n}\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type OffsetModifier = Modifier&lt;'offset', Options&gt;;\\nexport default ({\\n name: 'offset',\\n enabled: true,\\n phase: 'main',\\n requires: ['popperOffsets'],\\n fn: offset,\\n}: OffsetModifier);\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Placement } from '../enums';\\n\\nconst hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };\\n\\nexport default function getOppositePlacement(placement: Placement): Placement {\\n return (placement.replace(\\n /left|right|bottom|top/g,\\n matched =&gt; hash[matched]\\n ): any);\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Placement } from '../enums';\\n\\nconst hash = { start: 'end', end: 'start' };\\n\\nexport default function getOppositeVariationPlacement(\\n placement: Placement\\n): Placement {\\n return (placement.replace(/start|end/g, matched =&gt; hash[matched]): any);\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { State, Padding } from '../types';\\nimport type {\\n Placement,\\n ComputedPlacement,\\n Boundary,\\n RootBoundary,\\n} from '../enums';\\nimport getVariation from './getVariation';\\nimport {\\n variationPlacements,\\n basePlacements,\\n placements as allPlacements,\\n} from '../enums';\\nimport detectOverflow from './detectOverflow';\\nimport getBasePlacement from './getBasePlacement';\\n\\ntype Options = {\\n placement: Placement,\\n padding: Padding,\\n boundary: Boundary,\\n rootBoundary: RootBoundary,\\n flipVariations: boolean,\\n allowedAutoPlacements?: Array&lt;Placement&gt;,\\n};\\n\\ntype OverflowsMap = { [ComputedPlacement]: number };\\n\\nexport default function computeAutoPlacement(\\n state: $Shape&lt;State&gt;,\\n options: Options = {}\\n): Array&lt;ComputedPlacement&gt; {\\n const {\\n placement,\\n boundary,\\n rootBoundary,\\n padding,\\n flipVariations,\\n allowedAutoPlacements = allPlacements,\\n } = options;\\n\\n const variation = getVariation(placement);\\n\\n const placements = variation\\n ? flipVariations\\n ? variationPlacements\\n : variationPlacements.filter(\\n (placement) =&gt; getVariation(placement) === variation\\n )\\n : basePlacements;\\n\\n let allowedPlacements = placements.filter(\\n (placement) =&gt; allowedAutoPlacements.indexOf(placement) &gt;= 0\\n );\\n\\n if (allowedPlacements.length === 0) {\\n allowedPlacements = placements;\\n\\n if (__DEV__) {\\n console.error(\\n [\\n 'Popper: The `allowedAutoPlacements` option did not allow any',\\n 'placements. Ensure the `placement` option matches the variation',\\n 'of the allowed placements.',\\n 'For example, \\\"auto\\\" cannot be used to allow \\\"bottom-start\\\".',\\n 'Use \\\"auto-start\\\" instead.',\\n ].join(' ')\\n );\\n }\\n }\\n\\n // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\\n const overflows: OverflowsMap = allowedPlacements.reduce((acc, placement) =&gt; {\\n acc[placement] = detectOverflow(state, {\\n placement,\\n boundary,\\n rootBoundary,\\n padding,\\n })[getBasePlacement(placement)];\\n\\n return acc;\\n }, {});\\n\\n return Object.keys(overflows).sort((a, b) =&gt; overflows[a] - overflows[b]);\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Placement, Boundary, RootBoundary } from '../enums';\\nimport type { ModifierArguments, Modifier, Padding } from '../types';\\nimport getOppositePlacement from '../utils/getOppositePlacement';\\nimport getBasePlacement from '../utils/getBasePlacement';\\nimport getOppositeVariationPlacement from '../utils/getOppositeVariationPlacement';\\nimport detectOverflow from '../utils/detectOverflow';\\nimport computeAutoPlacement from '../utils/computeAutoPlacement';\\nimport { bottom, top, start, right, left, auto } from '../enums';\\nimport getVariation from '../utils/getVariation';\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type Options = {\\n mainAxis: boolean,\\n altAxis: boolean,\\n fallbackPlacements: Array&lt;Placement&gt;,\\n padding: Padding,\\n boundary: Boundary,\\n rootBoundary: RootBoundary,\\n altBoundary: boolean,\\n flipVariations: boolean,\\n allowedAutoPlacements: Array&lt;Placement&gt;,\\n};\\n\\nfunction getExpandedFallbackPlacements(placement: Placement): Array&lt;Placement&gt; {\\n if (getBasePlacement(placement) === auto) {\\n return [];\\n }\\n\\n const oppositePlacement = getOppositePlacement(placement);\\n\\n return [\\n getOppositeVariationPlacement(placement),\\n oppositePlacement,\\n getOppositeVariationPlacement(oppositePlacement),\\n ];\\n}\\n\\nfunction flip({ state, options, name }: ModifierArguments&lt;Options&gt;) {\\n if (state.modifiersData[name]._skip) {\\n return;\\n }\\n\\n const {\\n mainAxis: checkMainAxis = true,\\n altAxis: checkAltAxis = true,\\n fallbackPlacements: specifiedFallbackPlacements,\\n padding,\\n boundary,\\n rootBoundary,\\n altBoundary,\\n flipVariations = true,\\n allowedAutoPlacements,\\n } = options;\\n\\n const preferredPlacement = state.options.placement;\\n const basePlacement = getBasePlacement(preferredPlacement);\\n const isBasePlacement = basePlacement === preferredPlacement;\\n\\n const fallbackPlacements =\\n specifiedFallbackPlacements ||\\n (isBasePlacement || !flipVariations\\n ? [getOppositePlacement(preferredPlacement)]\\n : getExpandedFallbackPlacements(preferredPlacement));\\n\\n const placements = [preferredPlacement, ...fallbackPlacements].reduce(\\n (acc, placement) =&gt; {\\n return acc.concat(\\n getBasePlacement(placement) === auto\\n ? computeAutoPlacement(state, {\\n placement,\\n boundary,\\n rootBoundary,\\n padding,\\n flipVariations,\\n allowedAutoPlacements,\\n })\\n : placement\\n );\\n },\\n []\\n );\\n\\n const referenceRect = state.rects.reference;\\n const popperRect = state.rects.popper;\\n\\n const checksMap = new Map();\\n let makeFallbackChecks = true;\\n let firstFittingPlacement = placements[0];\\n\\n for (let i = 0; i &lt; placements.length; i++) {\\n const placement = placements[i];\\n const basePlacement = getBasePlacement(placement);\\n const isStartVariation = getVariation(placement) === start;\\n const isVertical = [top, bottom].indexOf(basePlacement) &gt;= 0;\\n const len = isVertical ? 'width' : 'height';\\n\\n const overflow = detectOverflow(state, {\\n placement,\\n boundary,\\n rootBoundary,\\n altBoundary,\\n padding,\\n });\\n\\n let mainVariationSide: any = isVertical\\n ? isStartVariation\\n ? right\\n : left\\n : isStartVariation\\n ? bottom\\n : top;\\n\\n if (referenceRect[len] &gt; popperRect[len]) {\\n mainVariationSide = getOppositePlacement(mainVariationSide);\\n }\\n\\n const altVariationSide: any = getOppositePlacement(mainVariationSide);\\n\\n const checks = [];\\n\\n if (checkMainAxis) {\\n checks.push(overflow[basePlacement] &lt;= 0);\\n }\\n\\n if (checkAltAxis) {\\n checks.push(\\n overflow[mainVariationSide] &lt;= 0,\\n overflow[altVariationSide] &lt;= 0\\n );\\n }\\n\\n if (checks.every((check) =&gt; check)) {\\n firstFittingPlacement = placement;\\n makeFallbackChecks = false;\\n break;\\n }\\n\\n checksMap.set(placement, checks);\\n }\\n\\n if (makeFallbackChecks) {\\n // `2` may be desired in some cases \u2013 research later\\n const numberOfChecks = flipVariations ? 3 : 1;\\n\\n for (let i = numberOfChecks; i &gt; 0; i--) {\\n const fittingPlacement = placements.find((placement) =&gt; {\\n const checks = checksMap.get(placement);\\n if (checks) {\\n return checks.slice(0, i).every((check) =&gt; check);\\n }\\n });\\n\\n if (fittingPlacement) {\\n firstFittingPlacement = fittingPlacement;\\n break;\\n }\\n }\\n }\\n\\n if (state.placement !== firstFittingPlacement) {\\n state.modifiersData[name]._skip = true;\\n state.placement = firstFittingPlacement;\\n state.reset = true;\\n }\\n}\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type FlipModifier = Modifier&lt;'flip', Options&gt;;\\nexport default ({\\n name: 'flip',\\n enabled: true,\\n phase: 'main',\\n fn: flip,\\n requiresIfExists: ['offset'],\\n data: { _skip: false },\\n}: FlipModifier);\\n\"</span>,<span class=\"code-string\">\"// @flow\\n\\nexport default function getAltAxis(axis: 'x' | 'y'): 'x' | 'y' {\\n return axis === 'x' ? 'y' : 'x';\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport { max as mathMax, min as mathMin } from './math';\\n\\nexport function within(min: number, value: number, max: number): number {\\n return mathMax(min, mathMin(value, max));\\n}\\n\\nexport function withinMaxClamp(min: number, value: number, max: number) {\\n const v = within(min, value, max);\\n return v &gt; max ? max : v;\\n}\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport { top, left, right, bottom, start } from '../enums';\\nimport type { Placement, Boundary, RootBoundary } from '../enums';\\nimport type { Rect, ModifierArguments, Modifier, Padding } from '../types';\\nimport getBasePlacement from '../utils/getBasePlacement';\\nimport getMainAxisFromPlacement from '../utils/getMainAxisFromPlacement';\\nimport getAltAxis from '../utils/getAltAxis';\\nimport { within, withinMaxClamp } from '../utils/within';\\nimport getLayoutRect from '../dom-utils/getLayoutRect';\\nimport getOffsetParent from '../dom-utils/getOffsetParent';\\nimport detectOverflow from '../utils/detectOverflow';\\nimport getVariation from '../utils/getVariation';\\nimport getFreshSideObject from '../utils/getFreshSideObject';\\nimport { min as mathMin, max as mathMax } from '../utils/math';\\n\\ntype TetherOffset =\\n | (({\\n popper: Rect,\\n reference: Rect,\\n placement: Placement,\\n }) =&gt; number | { mainAxis: number, altAxis: number })\\n | number\\n | { mainAxis: number, altAxis: number };\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type Options = {\\n /* Prevents boundaries overflow on the main axis */\\n mainAxis: boolean,\\n /* Prevents boundaries overflow on the alternate axis */\\n altAxis: boolean,\\n /* The area to check the popper is overflowing in */\\n boundary: Boundary,\\n /* If the popper is not overflowing the main area, fallback to this one */\\n rootBoundary: RootBoundary,\\n /* Use the reference's \\\"clippingParents\\\" boundary context */\\n altBoundary: boolean,\\n /**\\n * Allows the popper to overflow from its boundaries to keep it near its\\n * reference element\\n */\\n tether: boolean,\\n /* Offsets when the `tether` option should activate */\\n tetherOffset: TetherOffset,\\n /* Sets a padding to the provided boundary */\\n padding: Padding,\\n};\\n\\nfunction preventOverflow({ state, options, name }: ModifierArguments&lt;Options&gt;) {\\n const {\\n mainAxis: checkMainAxis = true,\\n altAxis: checkAltAxis = false,\\n boundary,\\n rootBoundary,\\n altBoundary,\\n padding,\\n tether = true,\\n tetherOffset = 0,\\n } = options;\\n\\n const overflow = detectOverflow(state, {\\n boundary,\\n rootBoundary,\\n padding,\\n altBoundary,\\n });\\n const basePlacement = getBasePlacement(state.placement);\\n const variation = getVariation(state.placement);\\n const isBasePlacement = !variation;\\n const mainAxis = getMainAxisFromPlacement(basePlacement);\\n const altAxis = getAltAxis(mainAxis);\\n const popperOffsets = state.modifiersData.popperOffsets;\\n const referenceRect = state.rects.reference;\\n const popperRect = state.rects.popper;\\n const tetherOffsetValue =\\n typeof tetherOffset === 'function'\\n ? tetherOffset({\\n ...state.rects,\\n placement: state.placement,\\n })\\n : tetherOffset;\\n const normalizedTetherOffsetValue =\\n typeof tetherOffsetValue === 'number'\\n ? { mainAxis: tetherOffsetValue, altAxis: tetherOffsetValue }\\n : { mainAxis: 0, altAxis: 0, ...tetherOffsetValue };\\n const offsetModifierState = state.modifiersData.offset\\n ? state.modifiersData.offset[state.placement]\\n : null;\\n\\n const data = { x: 0, y: 0 };\\n\\n if (!popperOffsets) {\\n return;\\n }\\n\\n if (checkMainAxis) {\\n const mainSide = mainAxis === 'y' ? top : left;\\n const altSide = mainAxis === 'y' ? bottom : right;\\n const len = mainAxis === 'y' ? 'height' : 'width';\\n const offset = popperOffsets[mainAxis];\\n\\n const min = offset + overflow[mainSide];\\n const max = offset - overflow[altSide];\\n\\n const additive = tether ? -popperRect[len] / 2 : 0;\\n\\n const minLen = variation === start ? referenceRect[len] : popperRect[len];\\n const maxLen = variation === start ? -popperRect[len] : -referenceRect[len];\\n\\n // We need to include the arrow in the calculation so the arrow doesn't go\\n // outside the reference bounds\\n const arrowElement = state.elements.arrow;\\n const arrowRect =\\n tether &amp;&amp; arrowElement\\n ? getLayoutRect(arrowElement)\\n : { width: 0, height: 0 };\\n const arrowPaddingObject = state.modifiersData['arrow#persistent']\\n ? state.modifiersData['arrow#persistent'].padding\\n : getFreshSideObject();\\n const arrowPaddingMin = arrowPaddingObject[mainSide];\\n const arrowPaddingMax = arrowPaddingObject[altSide];\\n\\n // If the reference length is smaller than the arrow length, we don't want\\n // to include its full size in the calculation. If the reference is small\\n // and near the edge of a boundary, the popper can overflow even if the\\n // reference is not overflowing as well (e.g. virtual elements with no\\n // width or height)\\n const arrowLen = within(0, referenceRect[len], arrowRect[len]);\\n\\n const minOffset = isBasePlacement\\n ? referenceRect[len] / 2 -\\n additive -\\n arrowLen -\\n arrowPaddingMin -\\n normalizedTetherOffsetValue.mainAxis\\n : minLen -\\n arrowLen -\\n arrowPaddingMin -\\n normalizedTetherOffsetValue.mainAxis;\\n const maxOffset = isBasePlacement\\n ? -referenceRect[len] / 2 +\\n additive +\\n arrowLen +\\n arrowPaddingMax +\\n normalizedTetherOffsetValue.mainAxis\\n : maxLen +\\n arrowLen +\\n arrowPaddingMax +\\n normalizedTetherOffsetValue.mainAxis;\\n\\n const arrowOffsetParent =\\n state.elements.arrow &amp;&amp; getOffsetParent(state.elements.arrow);\\n const clientOffset = arrowOffsetParent\\n ? mainAxis === 'y'\\n ? arrowOffsetParent.clientTop || 0\\n : arrowOffsetParent.clientLeft || 0\\n : 0;\\n\\n const offsetModifierValue = offsetModifierState?.[mainAxis] ?? 0;\\n const tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\\n const tetherMax = offset + maxOffset - offsetModifierValue;\\n\\n const preventedOffset = within(\\n tether ? mathMin(min, tetherMin) : min,\\n offset,\\n tether ? mathMax(max, tetherMax) : max\\n );\\n\\n popperOffsets[mainAxis] = preventedOffset;\\n data[mainAxis] = preventedOffset - offset;\\n }\\n\\n if (checkAltAxis) {\\n const mainSide = mainAxis === 'x' ? top : left;\\n const altSide = mainAxis === 'x' ? bottom : right;\\n const offset = popperOffsets[altAxis];\\n\\n const len = altAxis === 'y' ? 'height' : 'width';\\n\\n const min = offset + overflow[mainSide];\\n const max = offset - overflow[altSide];\\n\\n const isOriginSide = [top, left].indexOf(basePlacement) !== -1;\\n\\n const offsetModifierValue = offsetModifierState?.[altAxis] ?? 0;\\n const tetherMin = isOriginSide\\n ? min\\n : offset -\\n referenceRect[len] -\\n popperRect[len] -\\n offsetModifierValue +\\n normalizedTetherOffsetValue.altAxis;\\n const tetherMax = isOriginSide\\n ? offset +\\n referenceRect[len] +\\n popperRect[len] -\\n offsetModifierValue -\\n normalizedTetherOffsetValue.altAxis\\n : max;\\n\\n const preventedOffset =\\n tether &amp;&amp; isOriginSide\\n ? withinMaxClamp(tetherMin, offset, tetherMax)\\n : within(tether ? tetherMin : min, offset, tether ? tetherMax : max);\\n\\n popperOffsets[altAxis] = preventedOffset;\\n data[altAxis] = preventedOffset - offset;\\n }\\n\\n state.modifiersData[name] = data;\\n}\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type PreventOverflowModifier = Modifier&lt;'preventOverflow', Options&gt;;\\nexport default ({\\n name: 'preventOverflow',\\n enabled: true,\\n phase: 'main',\\n fn: preventOverflow,\\n requiresIfExists: ['offset'],\\n}: PreventOverflowModifier);\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type { Modifier, ModifierArguments, Padding, Rect } from '../types';\\nimport type { Placement } from '../enums';\\nimport getBasePlacement from '../utils/getBasePlacement';\\nimport getLayoutRect from '../dom-utils/getLayoutRect';\\nimport contains from '../dom-utils/contains';\\nimport getOffsetParent from '../dom-utils/getOffsetParent';\\nimport getMainAxisFromPlacement from '../utils/getMainAxisFromPlacement';\\nimport { within } from '../utils/within';\\nimport mergePaddingObject from '../utils/mergePaddingObject';\\nimport expandToHashMap from '../utils/expandToHashMap';\\nimport { left, right, basePlacements, top, bottom } from '../enums';\\nimport { isHTMLElement } from '../dom-utils/instanceOf';\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type Options = {\\n element: HTMLElement | string | null,\\n padding:\\n | Padding\\n | (({|\\n popper: Rect,\\n reference: Rect,\\n placement: Placement,\\n |}) =&gt; Padding),\\n};\\n\\nconst toPaddingObject = (padding, state) =&gt; {\\n padding =\\n typeof padding === 'function'\\n ? padding({ ...state.rects, placement: state.placement })\\n : padding;\\n\\n return mergePaddingObject(\\n typeof padding !== 'number'\\n ? padding\\n : expandToHashMap(padding, basePlacements)\\n );\\n};\\n\\nfunction arrow({ state, name, options }: ModifierArguments&lt;Options&gt;) {\\n const arrowElement = state.elements.arrow;\\n const popperOffsets = state.modifiersData.popperOffsets;\\n const basePlacement = getBasePlacement(state.placement);\\n const axis = getMainAxisFromPlacement(basePlacement);\\n const isVertical = [left, right].indexOf(basePlacement) &gt;= 0;\\n const len = isVertical ? 'height' : 'width';\\n\\n if (!arrowElement || !popperOffsets) {\\n return;\\n }\\n\\n const paddingObject = toPaddingObject(options.padding, state);\\n const arrowRect = getLayoutRect(arrowElement);\\n const minProp = axis === 'y' ? top : left;\\n const maxProp = axis === 'y' ? bottom : right;\\n\\n const endDiff =\\n state.rects.reference[len] +\\n state.rects.reference[axis] -\\n popperOffsets[axis] -\\n state.rects.popper[len];\\n const startDiff = popperOffsets[axis] - state.rects.reference[axis];\\n\\n const arrowOffsetParent = getOffsetParent(arrowElement);\\n const clientSize = arrowOffsetParent\\n ? axis === 'y'\\n ? arrowOffsetParent.clientHeight || 0\\n : arrowOffsetParent.clientWidth || 0\\n : 0;\\n\\n const centerToReference = endDiff / 2 - startDiff / 2;\\n\\n // Make sure the arrow doesn't overflow the popper if the center point is\\n // outside of the popper bounds\\n const min = paddingObject[minProp];\\n const max = clientSize - arrowRect[len] - paddingObject[maxProp];\\n const center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\\n const offset = within(min, center, max);\\n\\n // Prevents breaking syntax highlighting...\\n const axisProp: string = axis;\\n state.modifiersData[name] = {\\n [axisProp]: offset,\\n centerOffset: offset - center,\\n };\\n}\\n\\nfunction effect({ state, options }: ModifierArguments&lt;Options&gt;) {\\n let { element: arrowElement = '[data-popper-arrow]' } = options;\\n\\n if (arrowElement == null) {\\n return;\\n }\\n\\n // CSS selector\\n if (typeof arrowElement === 'string') {\\n arrowElement = state.elements.popper.querySelector(arrowElement);\\n\\n if (!arrowElement) {\\n return;\\n }\\n }\\n\\n if (__DEV__) {\\n if (!isHTMLElement(arrowElement)) {\\n console.error(\\n [\\n 'Popper: \\\"arrow\\\" element must be an HTMLElement (not an SVGElement).',\\n 'To use an SVG arrow, wrap it in an HTMLElement that will be used as',\\n 'the arrow.',\\n ].join(' ')\\n );\\n }\\n }\\n\\n if (!contains(state.elements.popper, arrowElement)) {\\n if (__DEV__) {\\n console.error(\\n [\\n 'Popper: \\\"arrow\\\" modifier\\\\'s `element` must be a child of the popper',\\n 'element.',\\n ].join(' ')\\n );\\n }\\n\\n return;\\n }\\n\\n state.elements.arrow = arrowElement;\\n}\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type ArrowModifier = Modifier&lt;'arrow', Options&gt;;\\nexport default ({\\n name: 'arrow',\\n enabled: true,\\n phase: 'main',\\n fn: arrow,\\n effect,\\n requires: ['popperOffsets'],\\n requiresIfExists: ['preventOverflow'],\\n}: ArrowModifier);\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport type {\\n ModifierArguments,\\n Modifier,\\n Rect,\\n SideObject,\\n Offsets,\\n} from '../types';\\nimport { top, bottom, left, right } from '../enums';\\nimport detectOverflow from '../utils/detectOverflow';\\n\\nfunction getSideOffsets(\\n overflow: SideObject,\\n rect: Rect,\\n preventedOffsets: Offsets = { x: 0, y: 0 }\\n): SideObject {\\n return {\\n top: overflow.top - rect.height - preventedOffsets.y,\\n right: overflow.right - rect.width + preventedOffsets.x,\\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\\n left: overflow.left - rect.width - preventedOffsets.x,\\n };\\n}\\n\\nfunction isAnySideFullyClipped(overflow: SideObject): boolean {\\n return [top, right, bottom, left].some((side) =&gt; overflow[side] &gt;= 0);\\n}\\n\\nfunction hide({ state, name }: ModifierArguments&lt;{||}&gt;) {\\n const referenceRect = state.rects.reference;\\n const popperRect = state.rects.popper;\\n const preventedOffsets = state.modifiersData.preventOverflow;\\n\\n const referenceOverflow = detectOverflow(state, {\\n elementContext: 'reference',\\n });\\n const popperAltOverflow = detectOverflow(state, {\\n altBoundary: true,\\n });\\n\\n const referenceClippingOffsets = getSideOffsets(\\n referenceOverflow,\\n referenceRect\\n );\\n const popperEscapeOffsets = getSideOffsets(\\n popperAltOverflow,\\n popperRect,\\n preventedOffsets\\n );\\n\\n const isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\\n const hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\\n\\n state.modifiersData[name] = {\\n referenceClippingOffsets,\\n popperEscapeOffsets,\\n isReferenceHidden,\\n hasPopperEscaped,\\n };\\n\\n state.attributes.popper = {\\n ...state.attributes.popper,\\n 'data-popper-reference-hidden': isReferenceHidden,\\n 'data-popper-escaped': hasPopperEscaped,\\n };\\n}\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport type HideModifier = Modifier&lt;'hide', {||}&gt;;\\nexport default ({\\n name: 'hide',\\n enabled: true,\\n phase: 'main',\\n requiresIfExists: ['preventOverflow'],\\n fn: hide,\\n}: HideModifier);\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport { popperGenerator, detectOverflow } from './createPopper';\\n\\nimport eventListeners from './modifiers/eventListeners';\\nimport popperOffsets from './modifiers/popperOffsets';\\nimport computeStyles from './modifiers/computeStyles';\\nimport applyStyles from './modifiers/applyStyles';\\n\\nexport type * from './types';\\n\\nconst defaultModifiers = [\\n eventListeners,\\n popperOffsets,\\n computeStyles,\\n applyStyles,\\n];\\n\\nconst createPopper = popperGenerator({ defaultModifiers });\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow };\\n\"</span>,<span class=\"code-string\">\"// @flow\\nimport { popperGenerator, detectOverflow } from './createPopper';\\n\\nimport eventListeners from './modifiers/eventListeners';\\nimport popperOffsets from './modifiers/popperOffsets';\\nimport computeStyles from './modifiers/computeStyles';\\nimport applyStyles from './modifiers/applyStyles';\\nimport offset from './modifiers/offset';\\nimport flip from './modifiers/flip';\\nimport preventOverflow from './modifiers/preventOverflow';\\nimport arrow from './modifiers/arrow';\\nimport hide from './modifiers/hide';\\n\\nexport type * from './types';\\n\\nconst defaultModifiers = [\\n eventListeners,\\n popperOffsets,\\n computeStyles,\\n applyStyles,\\n offset,\\n flip,\\n preventOverflow,\\n arrow,\\n hide,\\n];\\n\\nconst createPopper = popperGenerator({ defaultModifiers });\\n\\n// eslint-disable-next-line import/no-unused-modules\\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow };\\n// eslint-disable-next-line import/no-unused-modules\\nexport { createPopper as createPopperLite } from './popper-lite';\\n// eslint-disable-next-line import/no-unused-modules\\nexport * from './modifiers';\\n\"</span>],<span class=\"code-attr\">\"names\"</span>:[<span class=\"code-string\">\"getWindow\"</span>,<span class=\"code-string\">\"node\"</span>,<span class=\"code-string\">\"window\"</span>,<span class=\"code-string\">\"toString\"</span>,<span class=\"code-string\">\"ownerDocument\"</span>,<span class=\"code-string\">\"defaultView\"</span>,<span class=\"code-string\">\"isElement\"</span>,<span class=\"code-string\">\"OwnElement\"</span>,<span class=\"code-string\">\"Element\"</span>,<span class=\"code-string\">\"isHTMLElement\"</span>,<span class=\"code-string\">\"HTMLElement\"</span>,<span class=\"code-string\">\"isShadowRoot\"</span>,<span class=\"code-string\">\"ShadowRoot\"</span>,<span class=\"code-string\">\"max\"</span>,<span class=\"code-string\">\"Math\"</span>,<span class=\"code-string\">\"min\"</span>,<span class=\"code-string\">\"round\"</span>,<span class=\"code-string\">\"getBoundingClientRect\"</span>,<span class=\"code-string\">\"element\"</span>,<span class=\"code-string\">\"includeScale\"</span>,<span class=\"code-string\">\"rect\"</span>,<span class=\"code-string\">\"scaleX\"</span>,<span class=\"code-string\">\"scaleY\"</span>,<span class=\"code-string\">\"offsetHeight\"</span>,<span class=\"code-string\">\"offsetWidth\"</span>,<span class=\"code-string\">\"width\"</span>,<span class=\"code-string\">\"height\"</span>,<span class=\"code-string\">\"top\"</span>,<span class=\"code-string\">\"right\"</span>,<span class=\"code-string\">\"bottom\"</span>,<span class=\"code-string\">\"left\"</span>,<span class=\"code-string\">\"x\"</span>,<span class=\"code-string\">\"y\"</span>,<span class=\"code-string\">\"getWindowScroll\"</span>,<span class=\"code-string\">\"win\"</span>,<span class=\"code-string\">\"scrollLeft\"</span>,<span class=\"code-string\">\"pageXOffset\"</span>,<span class=\"code-string\">\"scrollTop\"</span>,<span class=\"code-string\">\"pageYOffset\"</span>,<span class=\"code-string\">\"getHTMLElementScroll\"</span>,<span class=\"code-string\">\"getNodeScroll\"</span>,<span class=\"code-string\">\"getNodeName\"</span>,<span class=\"code-string\">\"nodeName\"</span>,<span class=\"code-string\">\"toLowerCase\"</span>,<span class=\"code-string\">\"getDocumentElement\"</span>,<span class=\"code-string\">\"document\"</span>,<span class=\"code-string\">\"documentElement\"</span>,<span class=\"code-string\">\"getWindowScrollBarX\"</span>,<span class=\"code-string\">\"getComputedStyle\"</span>,<span class=\"code-string\">\"isScrollParent\"</span>,<span class=\"code-string\">\"overflow\"</span>,<span class=\"code-string\">\"overflowX\"</span>,<span class=\"code-string\">\"overflowY\"</span>,<span class=\"code-string\">\"test\"</span>,<span class=\"code-string\">\"isElementScaled\"</span>,<span class=\"code-string\">\"getCompositeRect\"</span>,<span class=\"code-string\">\"elementOrVirtualElement\"</span>,<span class=\"code-string\">\"offsetParent\"</span>,<span class=\"code-string\">\"isFixed\"</span>,<span class=\"code-string\">\"isOffsetParentAnElement\"</span>,<span class=\"code-string\">\"offsetParentIsScaled\"</span>,<span class=\"code-string\">\"scroll\"</span>,<span class=\"code-string\">\"offsets\"</span>,<span class=\"code-string\">\"clientLeft\"</span>,<span class=\"code-string\">\"clientTop\"</span>,<span class=\"code-string\">\"getLayoutRect\"</span>,<span class=\"code-string\">\"clientRect\"</span>,<span class=\"code-string\">\"abs\"</span>,<span class=\"code-string\">\"offsetLeft\"</span>,<span class=\"code-string\">\"offsetTop\"</span>,<span class=\"code-string\">\"getParentNode\"</span>,<span class=\"code-string\">\"assignedSlot\"</span>,<span class=\"code-string\">\"parentNode\"</span>,<span class=\"code-string\">\"host\"</span>,<span class=\"code-string\">\"getScrollParent\"</span>,<span class=\"code-string\">\"indexOf\"</span>,<span class=\"code-string\">\"body\"</span>,<span class=\"code-string\">\"listScrollParents\"</span>,<span class=\"code-string\">\"list\"</span>,<span class=\"code-string\">\"scrollParent\"</span>,<span class=\"code-string\">\"isBody\"</span>,<span class=\"code-string\">\"target\"</span>,<span class=\"code-string\">\"concat\"</span>,<span class=\"code-string\">\"visualViewport\"</span>,<span class=\"code-string\">\"updatedList\"</span>,<span class=\"code-string\">\"isTableElement\"</span>,<span class=\"code-string\">\"getTrueOffsetParent\"</span>,<span class=\"code-string\">\"position\"</span>,<span class=\"code-string\">\"getContainingBlock\"</span>,<span class=\"code-string\">\"isFirefox\"</span>,<span class=\"code-string\">\"navigator\"</span>,<span class=\"code-string\">\"userAgent\"</span>,<span class=\"code-string\">\"isIE\"</span>,<span class=\"code-string\">\"elementCss\"</span>,<span class=\"code-string\">\"currentNode\"</span>,<span class=\"code-string\">\"css\"</span>,<span class=\"code-string\">\"transform\"</span>,<span class=\"code-string\">\"perspective\"</span>,<span class=\"code-string\">\"contain\"</span>,<span class=\"code-string\">\"willChange\"</span>,<span class=\"code-string\">\"filter\"</span>,<span class=\"code-string\">\"getOffsetParent\"</span>,<span class=\"code-string\">\"auto\"</span>,<span class=\"code-string\">\"basePlacements\"</span>,<span class=\"code-string\">\"start\"</span>,<span class=\"code-string\">\"end\"</span>,<span class=\"code-string\">\"clippingParents\"</span>,<span class=\"code-string\">\"viewport\"</span>,<span class=\"code-string\">\"popper\"</span>,<span class=\"code-string\">\"reference\"</span>,<span class=\"code-string\">\"variationPlacements\"</span>,<span class=\"code-string\">\"reduce\"</span>,<span class=\"code-string\">\"acc\"</span>,<span class=\"code-string\">\"placement\"</span>,<span class=\"code-string\">\"placements\"</span>,<span class=\"code-string\">\"beforeRead\"</span>,<span class=\"code-string\">\"read\"</span>,<span class=\"code-string\">\"afterRead\"</span>,<span class=\"code-string\">\"beforeMain\"</span>,<span class=\"code-string\">\"main\"</span>,<span class=\"code-string\">\"afterMain\"</span>,<span class=\"code-string\">\"beforeWrite\"</span>,<span class=\"code-string\">\"write\"</span>,<span class=\"code-string\">\"afterWrite\"</span>,<span class=\"code-string\">\"modifierPhases\"</span>,<span class=\"code-string\">\"order\"</span>,<span class=\"code-string\">\"modifiers\"</span>,<span class=\"code-string\">\"map\"</span>,<span class=\"code-string\">\"Map\"</span>,<span class=\"code-string\">\"visited\"</span>,<span class=\"code-string\">\"Set\"</span>,<span class=\"code-string\">\"result\"</span>,<span class=\"code-string\">\"forEach\"</span>,<span class=\"code-string\">\"modifier\"</span>,<span class=\"code-string\">\"set\"</span>,<span class=\"code-string\">\"name\"</span>,<span class=\"code-string\">\"sort\"</span>,<span class=\"code-string\">\"add\"</span>,<span class=\"code-string\">\"requires\"</span>,<span class=\"code-string\">\"requiresIfExists\"</span>,<span class=\"code-string\">\"dep\"</span>,<span class=\"code-string\">\"has\"</span>,<span class=\"code-string\">\"depModifier\"</span>,<span class=\"code-string\">\"get\"</span>,<span class=\"code-string\">\"push\"</span>,<span class=\"code-string\">\"orderModifiers\"</span>,<span class=\"code-string\">\"orderedModifiers\"</span>,<span class=\"code-string\">\"phase\"</span>,<span class=\"code-string\">\"debounce\"</span>,<span class=\"code-string\">\"fn\"</span>,<span class=\"code-string\">\"pending\"</span>,<span class=\"code-string\">\"Promise\"</span>,<span class=\"code-string\">\"resolve\"</span>,<span class=\"code-string\">\"then\"</span>,<span class=\"code-string\">\"undefined\"</span>,<span class=\"code-string\">\"format\"</span>,<span class=\"code-string\">\"str\"</span>,<span class=\"code-string\">\"args\"</span>,<span class=\"code-string\">\"p\"</span>,<span class=\"code-string\">\"c\"</span>,<span class=\"code-string\">\"replace\"</span>,<span class=\"code-string\">\"INVALID_MODIFIER_ERROR\"</span>,<span class=\"code-string\">\"MISSING_DEPENDENCY_ERROR\"</span>,<span class=\"code-string\">\"VALID_PROPERTIES\"</span>,<span class=\"code-string\">\"validateModifiers\"</span>,<span class=\"code-string\">\"Object\"</span>,<span class=\"code-string\">\"keys\"</span>,<span class=\"code-string\">\"value\"</span>,<span class=\"code-string\">\"index\"</span>,<span class=\"code-string\">\"self\"</span>,<span class=\"code-string\">\"key\"</span>,<span class=\"code-string\">\"console\"</span>,<span class=\"code-string\">\"error\"</span>,<span class=\"code-string\">\"String\"</span>,<span class=\"code-string\">\"enabled\"</span>,<span class=\"code-string\">\"join\"</span>,<span class=\"code-string\">\"effect\"</span>,<span class=\"code-string\">\"Array\"</span>,<span class=\"code-string\">\"isArray\"</span>,<span class=\"code-string\">\"s\"</span>,<span class=\"code-string\">\"requirement\"</span>,<span class=\"code-string\">\"find\"</span>,<span class=\"code-string\">\"mod\"</span>,<span class=\"code-string\">\"uniqueBy\"</span>,<span class=\"code-string\">\"arr\"</span>,<span class=\"code-string\">\"identifiers\"</span>,<span class=\"code-string\">\"item\"</span>,<span class=\"code-string\">\"identifier\"</span>,<span class=\"code-string\">\"getBasePlacement\"</span>,<span class=\"code-string\">\"split\"</span>,<span class=\"code-string\">\"mergeByName\"</span>,<span class=\"code-string\">\"merged\"</span>,<span class=\"code-string\">\"current\"</span>,<span class=\"code-string\">\"existing\"</span>,<span class=\"code-string\">\"options\"</span>,<span class=\"code-string\">\"data\"</span>,<span class=\"code-string\">\"getViewportRect\"</span>,<span class=\"code-string\">\"html\"</span>,<span class=\"code-string\">\"clientWidth\"</span>,<span class=\"code-string\">\"clientHeight\"</span>,<span class=\"code-string\">\"getDocumentRect\"</span>,<span class=\"code-string\">\"winScroll\"</span>,<span class=\"code-string\">\"scrollWidth\"</span>,<span class=\"code-string\">\"scrollHeight\"</span>,<span class=\"code-string\">\"direction\"</span>,<span class=\"code-string\">\"contains\"</span>,<span class=\"code-string\">\"parent\"</span>,<span class=\"code-string\">\"child\"</span>,<span class=\"code-string\">\"rootNode\"</span>,<span class=\"code-string\">\"getRootNode\"</span>,<span class=\"code-string\">\"next\"</span>,<span class=\"code-string\">\"isSameNode\"</span>,<span class=\"code-string\">\"rectToClientRect\"</span>,<span class=\"code-string\">\"getInnerBoundingClientRect\"</span>,<span class=\"code-string\">\"getClientRectFromMixedType\"</span>,<span class=\"code-string\">\"clippingParent\"</span>,<span class=\"code-string\">\"getClippingParents\"</span>,<span class=\"code-string\">\"canEscapeClipping\"</span>,<span class=\"code-string\">\"clipperElement\"</span>,<span class=\"code-string\">\"getClippingRect\"</span>,<span class=\"code-string\">\"boundary\"</span>,<span class=\"code-string\">\"rootBoundary\"</span>,<span class=\"code-string\">\"mainClippingParents\"</span>,<span class=\"code-string\">\"firstClippingParent\"</span>,<span class=\"code-string\">\"clippingRect\"</span>,<span class=\"code-string\">\"accRect\"</span>,<span class=\"code-string\">\"getVariation\"</span>,<span class=\"code-string\">\"getMainAxisFromPlacement\"</span>,<span class=\"code-string\">\"computeOffsets\"</span>,<span class=\"code-string\">\"basePlacement\"</span>,<span class=\"code-string\">\"variation\"</span>,<span class=\"code-string\">\"commonX\"</span>,<span class=\"code-string\">\"commonY\"</span>,<span class=\"code-string\">\"mainAxis\"</span>,<span class=\"code-string\">\"len\"</span>,<span class=\"code-string\">\"getFreshSideObject\"</span>,<span class=\"code-string\">\"mergePaddingObject\"</span>,<span class=\"code-string\">\"paddingObject\"</span>,<span class=\"code-string\">\"expandToHashMap\"</span>,<span class=\"code-string\">\"hashMap\"</span>,<span class=\"code-string\">\"detectOverflow\"</span>,<span class=\"code-string\">\"state\"</span>,<span class=\"code-string\">\"elementContext\"</span>,<span class=\"code-string\">\"altBoundary\"</span>,<span class=\"code-string\">\"padding\"</span>,<span class=\"code-string\">\"altContext\"</span>,<span class=\"code-string\">\"popperRect\"</span>,<span class=\"code-string\">\"rects\"</span>,<span class=\"code-string\">\"elements\"</span>,<span class=\"code-string\">\"clippingClientRect\"</span>,<span class=\"code-string\">\"contextElement\"</span>,<span class=\"code-string\">\"referenceClientRect\"</span>,<span class=\"code-string\">\"popperOffsets\"</span>,<span class=\"code-string\">\"strategy\"</span>,<span class=\"code-string\">\"popperClientRect\"</span>,<span class=\"code-string\">\"elementClientRect\"</span>,<span class=\"code-string\">\"overflowOffsets\"</span>,<span class=\"code-string\">\"offsetData\"</span>,<span class=\"code-string\">\"modifiersData\"</span>,<span class=\"code-string\">\"offset\"</span>,<span class=\"code-string\">\"multiply\"</span>,<span class=\"code-string\">\"axis\"</span>,<span class=\"code-string\">\"INVALID_ELEMENT_ERROR\"</span>,<span class=\"code-string\">\"INFINITE_LOOP_ERROR\"</span>,<span class=\"code-string\">\"DEFAULT_OPTIONS\"</span>,<span class=\"code-string\">\"areValidElements\"</span>,<span class=\"code-string\">\"some\"</span>,<span class=\"code-string\">\"popperGenerator\"</span>,<span class=\"code-string\">\"generatorOptions\"</span>,<span class=\"code-string\">\"defaultModifiers\"</span>,<span class=\"code-string\">\"defaultOptions\"</span>,<span class=\"code-string\">\"createPopper\"</span>,<span class=\"code-string\">\"attributes\"</span>,<span class=\"code-string\">\"styles\"</span>,<span class=\"code-string\">\"effectCleanupFns\"</span>,<span class=\"code-string\">\"isDestroyed\"</span>,<span class=\"code-string\">\"instance\"</span>,<span class=\"code-string\">\"setOptions\"</span>,<span class=\"code-string\">\"setOptionsAction\"</span>,<span class=\"code-string\">\"cleanupModifierEffects\"</span>,<span class=\"code-string\">\"scrollParents\"</span>,<span class=\"code-string\">\"m\"</span>,<span class=\"code-string\">\"flipModifier\"</span>,<span class=\"code-string\">\"marginTop\"</span>,<span class=\"code-string\">\"marginRight\"</span>,<span class=\"code-string\">\"marginBottom\"</span>,<span class=\"code-string\">\"marginLeft\"</span>,<span class=\"code-string\">\"margin\"</span>,<span class=\"code-string\">\"parseFloat\"</span>,<span class=\"code-string\">\"warn\"</span>,<span class=\"code-string\">\"runModifierEffects\"</span>,<span class=\"code-string\">\"update\"</span>,<span class=\"code-string\">\"forceUpdate\"</span>,<span class=\"code-string\">\"reset\"</span>,<span class=\"code-string\">\"__debug_loops__\"</span>,<span class=\"code-string\">\"length\"</span>,<span class=\"code-string\">\"destroy\"</span>,<span class=\"code-string\">\"onFirstUpdate\"</span>,<span class=\"code-string\">\"cleanupFn\"</span>,<span class=\"code-string\">\"noopFn\"</span>,<span class=\"code-string\">\"passive\"</span>,<span class=\"code-string\">\"resize\"</span>,<span class=\"code-string\">\"addEventListener\"</span>,<span class=\"code-string\">\"removeEventListener\"</span>,<span class=\"code-string\">\"unsetSides\"</span>,<span class=\"code-string\">\"roundOffsetsByDPR\"</span>,<span class=\"code-string\">\"dpr\"</span>,<span class=\"code-string\">\"devicePixelRatio\"</span>,<span class=\"code-string\">\"mapToStyles\"</span>,<span class=\"code-string\">\"gpuAcceleration\"</span>,<span class=\"code-string\">\"adaptive\"</span>,<span class=\"code-string\">\"roundOffsets\"</span>,<span class=\"code-string\">\"hasX\"</span>,<span class=\"code-string\">\"hasOwnProperty\"</span>,<span class=\"code-string\">\"hasY\"</span>,<span class=\"code-string\">\"sideX\"</span>,<span class=\"code-string\">\"sideY\"</span>,<span class=\"code-string\">\"heightProp\"</span>,<span class=\"code-string\">\"widthProp\"</span>,<span class=\"code-string\">\"offsetY\"</span>,<span class=\"code-string\">\"offsetX\"</span>,<span class=\"code-string\">\"commonStyles\"</span>,<span class=\"code-string\">\"computeStyles\"</span>,<span class=\"code-string\">\"transitionProperty\"</span>,<span class=\"code-string\">\"property\"</span>,<span class=\"code-string\">\"arrow\"</span>,<span class=\"code-string\">\"applyStyles\"</span>,<span class=\"code-string\">\"style\"</span>,<span class=\"code-string\">\"assign\"</span>,<span class=\"code-string\">\"removeAttribute\"</span>,<span class=\"code-string\">\"setAttribute\"</span>,<span class=\"code-string\">\"initialStyles\"</span>,<span class=\"code-string\">\"styleProperties\"</span>,<span class=\"code-string\">\"attribute\"</span>,<span class=\"code-string\">\"distanceAndSkiddingToXY\"</span>,<span class=\"code-string\">\"invertDistance\"</span>,<span class=\"code-string\">\"skidding\"</span>,<span class=\"code-string\">\"distance\"</span>,<span class=\"code-string\">\"hash\"</span>,<span class=\"code-string\">\"getOppositePlacement\"</span>,<span class=\"code-string\">\"matched\"</span>,<span class=\"code-string\">\"getOppositeVariationPlacement\"</span>,<span class=\"code-string\">\"computeAutoPlacement\"</span>,<span class=\"code-string\">\"flipVariations\"</span>,<span class=\"code-string\">\"allowedAutoPlacements\"</span>,<span class=\"code-string\">\"allPlacements\"</span>,<span class=\"code-string\">\"allowedPlacements\"</span>,<span class=\"code-string\">\"overflows\"</span>,<span class=\"code-string\">\"a\"</span>,<span class=\"code-string\">\"b\"</span>,<span class=\"code-string\">\"getExpandedFallbackPlacements\"</span>,<span class=\"code-string\">\"oppositePlacement\"</span>,<span class=\"code-string\">\"flip\"</span>,<span class=\"code-string\">\"_skip\"</span>,<span class=\"code-string\">\"checkMainAxis\"</span>,<span class=\"code-string\">\"altAxis\"</span>,<span class=\"code-string\">\"checkAltAxis\"</span>,<span class=\"code-string\">\"specifiedFallbackPlacements\"</span>,<span class=\"code-string\">\"fallbackPlacements\"</span>,<span class=\"code-string\">\"preferredPlacement\"</span>,<span class=\"code-string\">\"isBasePlacement\"</span>,<span class=\"code-string\">\"referenceRect\"</span>,<span class=\"code-string\">\"checksMap\"</span>,<span class=\"code-string\">\"makeFallbackChecks\"</span>,<span class=\"code-string\">\"firstFittingPlacement\"</span>,<span class=\"code-string\">\"i\"</span>,<span class=\"code-string\">\"isStartVariation\"</span>,<span class=\"code-string\">\"isVertical\"</span>,<span class=\"code-string\">\"mainVariationSide\"</span>,<span class=\"code-string\">\"altVariationSide\"</span>,<span class=\"code-string\">\"checks\"</span>,<span class=\"code-string\">\"every\"</span>,<span class=\"code-string\">\"check\"</span>,<span class=\"code-string\">\"numberOfChecks\"</span>,<span class=\"code-string\">\"fittingPlacement\"</span>,<span class=\"code-string\">\"slice\"</span>,<span class=\"code-string\">\"getAltAxis\"</span>,<span class=\"code-string\">\"within\"</span>,<span class=\"code-string\">\"mathMax\"</span>,<span class=\"code-string\">\"mathMin\"</span>,<span class=\"code-string\">\"withinMaxClamp\"</span>,<span class=\"code-string\">\"v\"</span>,<span class=\"code-string\">\"preventOverflow\"</span>,<span class=\"code-string\">\"tether\"</span>,<span class=\"code-string\">\"tetherOffset\"</span>,<span class=\"code-string\">\"tetherOffsetValue\"</span>,<span class=\"code-string\">\"normalizedTetherOffsetValue\"</span>,<span class=\"code-string\">\"offsetModifierState\"</span>,<span class=\"code-string\">\"mainSide\"</span>,<span class=\"code-string\">\"altSide\"</span>,<span class=\"code-string\">\"additive\"</span>,<span class=\"code-string\">\"minLen\"</span>,<span class=\"code-string\">\"maxLen\"</span>,<span class=\"code-string\">\"arrowElement\"</span>,<span class=\"code-string\">\"arrowRect\"</span>,<span class=\"code-string\">\"arrowPaddingObject\"</span>,<span class=\"code-string\">\"arrowPaddingMin\"</span>,<span class=\"code-string\">\"arrowPaddingMax\"</span>,<span class=\"code-string\">\"arrowLen\"</span>,<span class=\"code-string\">\"minOffset\"</span>,<span class=\"code-string\">\"maxOffset\"</span>,<span class=\"code-string\">\"arrowOffsetParent\"</span>,<span class=\"code-string\">\"clientOffset\"</span>,<span class=\"code-string\">\"offsetModifierValue\"</span>,<span class=\"code-string\">\"tetherMin\"</span>,<span class=\"code-string\">\"tetherMax\"</span>,<span class=\"code-string\">\"preventedOffset\"</span>,<span class=\"code-string\">\"isOriginSide\"</span>,<span class=\"code-string\">\"toPaddingObject\"</span>,<span class=\"code-string\">\"minProp\"</span>,<span class=\"code-string\">\"maxProp\"</span>,<span class=\"code-string\">\"endDiff\"</span>,<span class=\"code-string\">\"startDiff\"</span>,<span class=\"code-string\">\"clientSize\"</span>,<span class=\"code-string\">\"centerToReference\"</span>,<span class=\"code-string\">\"center\"</span>,<span class=\"code-string\">\"axisProp\"</span>,<span class=\"code-string\">\"centerOffset\"</span>,<span class=\"code-string\">\"querySelector\"</span>,<span class=\"code-string\">\"getSideOffsets\"</span>,<span class=\"code-string\">\"preventedOffsets\"</span>,<span class=\"code-string\">\"isAnySideFullyClipped\"</span>,<span class=\"code-string\">\"side\"</span>,<span class=\"code-string\">\"hide\"</span>,<span class=\"code-string\">\"referenceOverflow\"</span>,<span class=\"code-string\">\"popperAltOverflow\"</span>,<span class=\"code-string\">\"referenceClippingOffsets\"</span>,<span class=\"code-string\">\"popperEscapeOffsets\"</span>,<span class=\"code-string\">\"isReferenceHidden\"</span>,<span class=\"code-string\">\"hasPopperEscaped\"</span>,<span class=\"code-string\">\"eventListeners\"</span>],<span class=\"code-attr\">\"mappings\"</span>:<span class=\"code-string\">\";;;;;;;;;;EAIe,SAASA,SAAT,CAAmBC,IAAnB,EAAyB;EACtC,MAAIA,IAAI,IAAI,IAAZ,EAAkB;EAChB,WAAOC,MAAP;EACD;;EAED,MAAID,IAAI,CAACE,QAAL,OAAoB,iBAAxB,EAA2C;EACzC,QAAMC,aAAa,GAA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,kBAAgB,GAAG,CACvBiK,cADuB,EAEvBlL,eAFuB,EAGvBsE,eAHuB,EAIvBI,aAJuB,CAAzB;MAOMvD,cAAY,gBAAGJ,eAAe,CAAC;EAAEE,EAAAA,gBAAgB,EAAhBA;EAAF,CAAD;;MCF9BA,gBAAgB,GAAG,CACvBiK,cADuB,EAEvBlL,eAFuB,EAGvBsE,eAHuB,EAIvBI,aAJuB,EAKvBnE,QALuB,EAMvB6F,MANuB,EAOvB8B,iBAPuB,EAQvBzD,OARuB,EASvBkG,MATuB;MAYnBxJ,YAAY,gBAAGJ,eAAe,CAAC;EAAEE,EAAAA,gBAAgB,EAAhBA;EAAF,CAAD;;;;;;;;;;;;;;;;;;;\"</span>}"]}}}</script></head><body><div id="root"><style data-emotion-css="gtfibm">html{box-sizing:border-box;}*,*:before,*:after{box-sizing:inherit;}html,body,#root{height:100%;margin:0;}body{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;font-size:16px;line-height:1.5;overflow-wrap:break-word;background:white;color:black;}code{font-family:Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;}th,td{padding:0;}select{font-size:inherit;}#root{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}</style><style data-emotion-css="1r6h1r6">.code-listing{background:#fbfdff;color:#383a42;}.code-comment,.code-quote{color:#a0a1a7;font-style:italic;}.code-doctag,.code-keyword,.code-link,.code-formula{color:#a626a4;}.code-section,.code-name,.code-selector-tag,.code-deletion,.code-subst{color:#e45649;}.code-literal{color:#0184bb;}.code-string,.code-regexp,.code-addition,.code-attribute,.code-meta-string{color:#50a14f;}.code-built_in,.code-class .code-title{color:#c18401;}.code-attr,.code-variable,.code-template-variable,.code-type,.code-selector-class,.code-selector-attr,.code-selector-pseudo,.code-number{color:#986801;}.code-symbol,.code-bullet,.code-meta,.code-selector-id,.code-title{color:#4078f2;}.code-emphasis{font-style:italic;}.code-strong{font-weight:bold;}</style><style data-emotion-css="1c3h18e">.css-1c3h18e{-webkit-flex:1 0 auto;-ms-flex:1 0 auto;flex:1 0 auto;}</style><div class="css-1c3h18e"><style data-emotion-css="1cfuj1t">.css-1cfuj1t{max-width:940px;padding:0 20px;margin:0 auto;}</style><div class="css-1cfuj1t"><style data-emotion-css="i51og3">.css-i51og3{margin-top:2rem;}</style><header class="css-i51og3"><style data-emotion-css="1y7u1xh">.css-1y7u1xh{text-align:center;font-size:3rem;-webkit-letter-spacing:0.05em;-moz-letter-spacing:0.05em;-ms-letter-spacing:0.05em;letter-spacing:0.05em;}</style><h1 class="css-1y7u1xh"><style data-emotion-css="1ydg16i">.css-1ydg16i{color:#000;-webkit-text-decoration:none;text-decoration:none;}</style><a href="/" class="css-1ydg16i">UNPKG</a></h1></header></div><div class="css-1cfuj1t"><style data-emotion-css="93o42g">.css-93o42g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}@media (max-width:700px){.css-93o42g{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}}</style><header class="css-93o42g"><style data-emotion-css="1dlpvgi">.css-1dlpvgi{font-size:1.5rem;font-weight:normal;-webkit-flex:1;-ms-flex:1;flex:1;word-break:break-all;}</style><h1 class="css-1dlpvgi"><nav><style data-emotion-css="xt128v">.css-xt128v{color:#0076ff;-webkit-text-decoration:none;text-decoration:none;}.css-xt128v:hover{-webkit-text-decoration:underline;text-decoration:underline;}</style><a href="/browse/@popperjs/core@2.11.5/" class="css-xt128v">@popperjs/core</a><style data-emotion-css="lllnmq">.css-lllnmq{padding-left:5px;padding-right:5px;}</style><span class="css-lllnmq">/</span><a href="/browse/@popperjs/core@2.11.5/dist/" class="css-xt128v">dist</a><span class="css-lllnmq">/</span><a href="/browse/@popperjs/core@2.11.5/dist/umd/" class="css-xt128v">umd</a><span class="css-lllnmq">/</span><strong>popper.js.map</strong></nav></h1><style data-emotion-css="1nr3dab">.css-1nr3dab{margin-left:20px;}@media (max-width:700px){.css-1nr3dab{margin-left:0;margin-bottom:0;}}</style><p class="css-1nr3dab"><label>Version:<!-- --> <style data-emotion-css="un3bt6">.css-un3bt6{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding:4px 24px 4px 8px;font-weight:600;font-size:0.9em;color:#24292e;border:1px solid rgba(27,31,35,.2);border-radius:3px;background-color:#eff3f6;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAKCAYAAAC9vt6cAAAAAXNSR0IArs4c6QAAARFJREFUKBVjZAACNS39RhBNKrh17WI9o4quoT3Dn78HSNUMUs/CzOTI/O7Vi4dCYpJ3/jP+92BkYGAlyiBGhm8MjIxJt65e3MQM0vDu9YvLYmISILYZELOBxHABRkaGr0yMzF23r12YDFIDNgDEePv65SEhEXENBkYGFSAXuyGMjF8Z/jOsvX3tYiFIDwgwQSgIaaijnvj/P8M5IO8HsjiY/f//D4b//88A1SQhywG9jQr09PS4v/1mPAeUUPzP8B8cJowMjL+Bqu6xMQmaXL164AuyDgwDQJLa2qYSP//9vARkCoMVMzK8YeVkNbh+9uxzMB+JwGoASF5Vx0jz/98/18BqmZi171w9D2EjaaYKEwAEK00XQLdJuwAAAABJRU5ErkJggg==);background-position:right 8px center;background-repeat:no-repeat;background-size:auto 25%;}.css-un3bt6:hover{background-color:#e6ebf1;border-color:rgba(27,31,35,.35);}.css-un3bt6:active{background-color:#e9ecef;border-color:rgba(27,31,35,.35);box-shadow:inset 0 0.15em 0.3em rgba(27,31,35,.15);}</style><select name="version" class="css-un3bt6"><option value="2.0.0-alpha.1">2.0.0-alpha.1</option><option value="2.0.0-alpha.2">2.0.0-alpha.2</option><option value="2.0.0-alpha.3">2.0.0-alpha.3</option><option value="2.0.0-alpha.4">2.0.0-alpha.4</option><option value="2.0.0-next.5">2.0.0-next.5</option><option value="2.0.0-next.6">2.0.0-next.6</option><option value="2.0.0-next.7">2.0.0-next.7</option><option value="2.0.0-next.8">2.0.0-next.8</option><option value="2.0.0-next.9">2.0.0-next.9</option><option value="2.0.0-next.10">2.0.0-next.10</option><option value="2.0.0-next.11">2.0.0-next.11</option><option value="2.0.0-next.12">2.0.0-next.12</option><option value="2.0.0-next.13">2.0.0-next.13</option><option value="2.0.0-next.14">2.0.0-next.14</option><option value="2.0.0-next.15">2.0.0-next.15</option><option value="2.0.0-next.16">2.0.0-next.16</option><option value="2.0.0-next.17">2.0.0-next.17</option><option value="2.0.0-rc.1">2.0.0-rc.1</option><option value="2.0.0-rc.2">2.0.0-rc.2</option><option value="2.0.0-rc.3">2.0.0-rc.3</option><option value="2.0.0">2.0.0</option><option value="2.0.1">2.0.1</option><option value="2.0.2">2.0.2</option><option value="2.0.3">2.0.3</option><option value="2.0.4">2.0.4</option><option value="2.0.5">2.0.5</option><option value="2.0.6">2.0.6</option><option value="2.1.0">2.1.0</option><option value="2.1.1">2.1.1</option><option value="2.2.0-bundlephobia.1">2.2.0-bundlephobia.1</option><option value="2.2.0">2.2.0</option><option value="2.2.1">2.2.1</option><option value="2.2.2">2.2.2</option><option value="2.2.3">2.2.3</option><option value="2.3.0">2.3.0</option><option value="2.3.1">2.3.1</option><option value="2.3.2">2.3.2</option><option value="2.3.3">2.3.3</option><option value="2.4.0">2.4.0</option><option value="2.4.1">2.4.1</option><option value="2.4.2">2.4.2</option><option value="2.4.3">2.4.3</option><option value="2.4.4">2.4.4</option><option value="2.5.0">2.5.0</option><option value="2.5.1">2.5.1</option><option value="2.5.2">2.5.2</option><option value="2.5.3">2.5.3</option><option value="2.5.4">2.5.4</option><option value="2.6.0">2.6.0</option><option value="2.7.0">2.7.0</option><option value="2.7.1">2.7.1</option><option value="2.7.2">2.7.2</option><option value="2.8.0">2.8.0</option><option value="2.8.1">2.8.1</option><option value="2.8.2">2.8.2</option><option value="2.8.3">2.8.3</option><option value="2.8.4">2.8.4</option><option value="2.8.5">2.8.5</option><option value="2.8.6">2.8.6</option><option value="2.9.0">2.9.0</option><option value="2.9.1">2.9.1</option><option value="2.9.2">2.9.2</option><option value="2.9.3">2.9.3</option><option value="2.10.0">2.10.0</option><option value="2.10.1">2.10.1</option><option value="2.10.2">2.10.2</option><option value="2.11.0">2.11.0</option><option value="2.11.1">2.11.1</option><option value="2.11.2">2.11.2</option><option value="2.11.3">2.11.3</option><option value="2.11.4">2.11.4</option><option selected="" value="2.11.5">2.11.5</option></select></label></p></header></div><style data-emotion-css="107j3ms">.css-107j3ms{max-width:940px;padding:0 20px;margin:0 auto;}@media (max-width:700px){.css-107j3ms{padding:0;margin:0;}}</style><div class="css-107j3ms"><style data-emotion-css="q3frg4">.css-q3frg4{border:1px solid #dfe2e5;border-radius:3px;}@media (max-width:700px){.css-q3frg4{border-right-width:0;border-left-width:0;}}</style><div class="css-q3frg4"><style data-emotion-css="10o5omr">.css-10o5omr{padding:10px;background:#f6f8fa;color:#424242;border:1px solid #d1d5da;border-top-left-radius:3px;border-top-right-radius:3px;margin:-1px -1px 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}@media (max-width:700px){.css-10o5omr{padding-right:20px;padding-left:20px;}}</style><div class="css-10o5omr"><span>156 kB</span><span>Source Map (JSON)</span><span><style data-emotion-css="18x593j">.css-18x593j{display:inline-block;margin-left:8px;padding:2px 8px;-webkit-text-decoration:none;text-decoration:none;font-weight:600;font-size:0.9rem;color:#24292e;background-color:#eff3f6;border:1px solid rgba(27,31,35,.2);border-radius:3px;}.css-18x593j:hover{background-color:#e6ebf1;border-color:rgba(27,31,35,.35);}.css-18x593j:active{background-color:#e9ecef;border-color:rgba(27,31,35,.35);box-shadow:inset 0 0.15em 0.3em rgba(27,31,35,.15);}</style><a href="/@popperjs/core@2.11.5/dist/umd/popper.js.map" class="css-18x593j">View Raw</a></span></div><style data-emotion-css="1i31ihw">.css-1i31ihw{overflow-x:auto;overflow-y:hidden;padding-top:5px;padding-bottom:5px;}</style><div class="code-listing css-1i31ihw"><style data-emotion-css="173nir8">.css-173nir8{border:none;border-collapse:collapse;border-spacing:0;}</style><table class="css-173nir8"><tbody><tr><style data-emotion-css="a4x74f">.css-a4x74f{padding-left:10px;padding-right:10px;color:rgba(27,31,35,.3);text-align:right;vertical-align:top;width:1%;min-width:50px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}</style><td id="L1" class="css-a4x74f"><span>1</span></td><style data-emotion-css="1dcdqdg">.css-1dcdqdg{padding-left:10px;padding-right:10px;color:#24292e;white-space:pre;}</style><td id="LC1" class="css-1dcdqdg"><code>{<span class="code-attr">"version"</span>:<span class="code-number">3</span>,<span class="code-attr">"file"</span>:<span class="code-string">"popper.js"</span>,<span class="code-attr">"sources"</span>:[<span class="code-string">"../../src/dom-utils/getWindow.js"</span>,<span class="code-string">"../../src/dom-utils/instanceOf.js"</span>,<span class="code-string">"../../src/utils/math.js"</span>,<span class="code-string">"../../src/dom-utils/getBoundingClientRect.js"</span>,<span class="code-string">"../../src/dom-utils/getWindowScroll.js"</span>,<span class="code-string">"../../src/dom-utils/getHTMLElementScroll.js"</span>,<span class="code-string">"../../src/dom-utils/getNodeScroll.js"</span>,<span class="code-string">"../../src/dom-utils/getNodeName.js"</span>,<span class="code-string">"../../src/dom-utils/getDocumentElement.js"</span>,<span class="code-string">"../../src/dom-utils/getWindowScrollBarX.js"</span>,<span class="code-string">"../../src/dom-utils/getComputedStyle.js"</span>,<span class="code-string">"../../src/dom-utils/isScrollParent.js"</span>,<span class="code-string">"../../src/dom-utils/getCompositeRect.js"</span>,<span class="code-string">"../../src/dom-utils/getLayoutRect.js"</span>,<span class="code-string">"../../src/dom-utils/getParentNode.js"</span>,<span class="code-string">"../../src/dom-utils/getScrollParent.js"</span>,<span class="code-string">"../../src/dom-utils/listScrollParents.js"</span>,<span class="code-string">"../../src/dom-utils/isTableElement.js"</span>,<span class="code-string">"../../src/dom-utils/getOffsetParent.js"</span>,<span class="code-string">"../../src/enums.js"</span>,<span class="code-string">"../../src/utils/orderModifiers.js"</span>,<span class="code-string">"../../src/utils/debounce.js"</span>,<span class="code-string">"../../src/utils/format.js"</span>,<span class="code-string">"../../src/utils/validateModifiers.js"</span>,<span class="code-string">"../../src/utils/uniqueBy.js"</span>,<span class="code-string">"../../src/utils/getBasePlacement.js"</span>,<span class="code-string">"../../src/utils/mergeByName.js"</span>,<span class="code-string">"../../src/dom-utils/getViewportRect.js"</span>,<span class="code-string">"../../src/dom-utils/getDocumentRect.js"</span>,<span class="code-string">"../../src/dom-utils/contains.js"</span>,<span class="code-string">"../../src/utils/rectToClientRect.js"</span>,<span class="code-string">"../../src/dom-utils/getClippingRect.js"</span>,<span class="code-string">"../../src/utils/getVariation.js"</span>,<span class="code-string">"../../src/utils/getMainAxisFromPlacement.js"</span>,<span class="code-string">"../../src/utils/computeOffsets.js"</span>,<span class="code-string">"../../src/utils/getFreshSideObject.js"</span>,<span class="code-string">"../../src/utils/mergePaddingObject.js"</span>,<span class="code-string">"../../src/utils/expandToHashMap.js"</span>,<span class="code-string">"../../src/utils/detectOverflow.js"</span>,<span class="code-string">"../../src/createPopper.js"</span>,<span class="code-string">"../../src/modifiers/eventListeners.js"</span>,<span class="code-string">"../../src/modifiers/popperOffsets.js"</span>,<span class="code-string">"../../src/modifiers/computeStyles.js"</span>,<span class="code-string">"../../src/modifiers/applyStyles.js"</span>,<span class="code-string">"../../src/modifiers/offset.js"</span>,<span class="code-string">"../../src/utils/getOppositePlacement.js"</span>,<span class="code-string">"../../src/utils/getOppositeVariationPlacement.js"</span>,<span class="code-string">"../../src/utils/computeAutoPlacement.js"</span>,<span class="code-string">"../../src/modifiers/flip.js"</span>,<span class="code-string">"../../src/utils/getAltAxis.js"</span>,<span class="code-string">"../../src/utils/within.js"</span>,<span class="code-string">"../../src/modifiers/preventOverflow.js"</span>,<span class="code-string">"../../src/modifiers/arrow.js"</span>,<span class="code-string">"../../src/modifiers/hide.js"</span>,<span class="code-string">"../../src/popper-lite.js"</span>,<span class="code-string">"../../src/popper.js"</span>],<span class="code-attr">"sourcesContent"</span>:[<span class="code-string">"// @flow\nimport type { Window } from '../types';\ndeclare function getWindow(node: Node | Window): Window;\n\nexport default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n const ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}\n"</span>,<span class="code-string">"// @flow\nimport getWindow from './getWindow';\n\ndeclare function isElement(node: mixed): boolean %checks(node instanceof\n Element);\nfunction isElement(node) {\n const OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\ndeclare function isHTMLElement(node: mixed): boolean %checks(node instanceof\n HTMLElement);\nfunction isHTMLElement(node) {\n const OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\ndeclare function isShadowRoot(node: mixed): boolean %checks(node instanceof\n ShadowRoot);\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n const OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };\n"</span>,<span class="code-string">"// @flow\nexport const max = Math.max;\nexport const min = Math.min;\nexport const round = Math.round;\n"</span>,<span class="code-string">"// @flow\nimport type { ClientRectObject, VirtualElement } from '../types';\nimport { isHTMLElement } from './instanceOf';\nimport { round } from '../utils/math';\n\nexport default function getBoundingClientRect(\n element: Element | VirtualElement,\n includeScale: boolean = false\n): ClientRectObject {\n const rect = element.getBoundingClientRect();\n let scaleX = 1;\n let scaleY = 1;\n\n if (isHTMLElement(element) &amp;&amp; includeScale) {\n const offsetHeight = element.offsetHeight;\n const offsetWidth = element.offsetWidth;\n\n // Do not attempt to divide by 0, otherwise we get `Infinity` as scale\n // Fallback to 1 in case both values are `0`\n if (offsetWidth &gt; 0) {\n scaleX = round(rect.width) / offsetWidth || 1;\n }\n if (offsetHeight &gt; 0) {\n scaleY = round(rect.height) / offsetHeight || 1;\n }\n }\n\n return {\n width: rect.width / scaleX,\n height: rect.height / scaleY,\n top: rect.top / scaleY,\n right: rect.right / scaleX,\n bottom: rect.bottom / scaleY,\n left: rect.left / scaleX,\n x: rect.left / scaleX,\n y: rect.top / scaleY,\n };\n}\n"</span>,<span class="code-string">"// @flow\nimport getWindow from './getWindow';\nimport type { Window } from '../types';\n\nexport default function getWindowScroll(node: Node | Window) {\n const win = getWindow(node);\n const scrollLeft = win.pageXOffset;\n const scrollTop = win.pageYOffset;\n\n return {\n scrollLeft,\n scrollTop,\n };\n}\n"</span>,<span class="code-string">"// @flow\n\nexport default function getHTMLElementScroll(element: HTMLElement) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop,\n };\n}\n"</span>,<span class="code-string">"// @flow\nimport getWindowScroll from './getWindowScroll';\nimport getWindow from './getWindow';\nimport { isHTMLElement } from './instanceOf';\nimport getHTMLElementScroll from './getHTMLElementScroll';\nimport type { Window } from '../types';\n\nexport default function getNodeScroll(node: Node | Window) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}\n"</span>,<span class="code-string">"// @flow\nimport type { Window } from '../types';\n\nexport default function getNodeName(element: ?Node | Window): ?string {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}\n"</span>,<span class="code-string">"// @flow\nimport { isElement } from './instanceOf';\nimport type { Window } from '../types';\n\nexport default function getDocumentElement(\n element: Element | Window\n): HTMLElement {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return (\n (isElement(element)\n ? element.ownerDocument\n : // $FlowFixMe[prop-missing]\n element.document) || window.document\n ).documentElement;\n}\n"</span>,<span class="code-string">"// @flow\nimport getBoundingClientRect from './getBoundingClientRect';\nimport getDocumentElement from './getDocumentElement';\nimport getWindowScroll from './getWindowScroll';\n\nexport default function getWindowScrollBarX(element: Element): number {\n // If &lt;html&gt; has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on &lt;html&gt;\n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return (\n getBoundingClientRect(getDocumentElement(element)).left +\n getWindowScroll(element).scrollLeft\n );\n}\n"</span>,<span class="code-string">"// @flow\nimport getWindow from './getWindow';\n\nexport default function getComputedStyle(\n element: Element\n): CSSStyleDeclaration {\n return getWindow(element).getComputedStyle(element);\n}\n"</span>,<span class="code-string">"// @flow\nimport getComputedStyle from './getComputedStyle';\n\nexport default function isScrollParent(element: HTMLElement): boolean {\n // Firefox wants us to check `-x` and `-y` variations as well\n const { overflow, overflowX, overflowY } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}\n"</span>,<span class="code-string">"// @flow\nimport type { Rect, VirtualElement, Window } from '../types';\nimport getBoundingClientRect from './getBoundingClientRect';\nimport getNodeScroll from './getNodeScroll';\nimport getNodeName from './getNodeName';\nimport { isHTMLElement } from './instanceOf';\nimport getWindowScrollBarX from './getWindowScrollBarX';\nimport getDocumentElement from './getDocumentElement';\nimport isScrollParent from './isScrollParent';\nimport { round } from '../utils/math';\n\nfunction isElementScaled(element: HTMLElement) {\n const rect = element.getBoundingClientRect();\n const scaleX = round(rect.width) / element.offsetWidth || 1;\n const scaleY = round(rect.height) / element.offsetHeight || 1;\n\n return scaleX !== 1 || scaleY !== 1;\n}\n\n// Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\nexport default function getCompositeRect(\n elementOrVirtualElement: Element | VirtualElement,\n offsetParent: Element | Window,\n isFixed: boolean = false\n): Rect {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const offsetParentIsScaled =\n isHTMLElement(offsetParent) &amp;&amp; isElementScaled(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const rect = getBoundingClientRect(\n elementOrVirtualElement,\n offsetParentIsScaled\n );\n\n let scroll = { scrollLeft: 0, scrollTop: 0 };\n let offsets = { x: 0, y: 0 };\n\n if (isOffsetParentAnElement || (!isOffsetParentAnElement &amp;&amp; !isFixed)) {\n if (\n getNodeName(offsetParent) !== 'body' ||\n // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)\n ) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height,\n };\n}\n"</span>,<span class="code-string">"// @flow\nimport type { Rect } from '../types';\nimport getBoundingClientRect from './getBoundingClientRect';\n\n// Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\nexport default function getLayoutRect(element: HTMLElement): Rect {\n const clientRect = getBoundingClientRect(element);\n\n // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n let width = element.offsetWidth;\n let height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) &lt;= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) &lt;= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width,\n height,\n };\n}\n"</span>,<span class="code-string">"// @flow\nimport getNodeName from './getNodeName';\nimport getDocumentElement from './getDocumentElement';\nimport { isShadowRoot } from './instanceOf';\n\nexport default function getParentNode(element: Node | ShadowRoot): Node {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (\n // this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || // DOM Element detected\n (isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n );\n}\n"</span>,<span class="code-string">"// @flow\nimport getParentNode from './getParentNode';\nimport isScrollParent from './isScrollParent';\nimport getNodeName from './getNodeName';\nimport { isHTMLElement } from './instanceOf';\n\nexport default function getScrollParent(node: Node): HTMLElement {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) &gt;= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) &amp;&amp; isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}\n"</span>,<span class="code-string">"// @flow\nimport getScrollParent from './getScrollParent';\nimport getParentNode from './getParentNode';\nimport getWindow from './getWindow';\nimport type { Window, VisualViewport } from '../types';\nimport isScrollParent from './isScrollParent';\n\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\nexport default function listScrollParents(\n element: Node,\n list: Array&lt;Element | Window&gt; = []\n): Array&lt;Element | Window | VisualViewport&gt; {\n const scrollParent = getScrollParent(element);\n const isBody = scrollParent === element.ownerDocument?.body;\n const win = getWindow(scrollParent);\n const target = isBody\n ? [win].concat(\n win.visualViewport || [],\n isScrollParent(scrollParent) ? scrollParent : []\n )\n : scrollParent;\n const updatedList = list.concat(target);\n\n return isBody\n ? updatedList\n : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}\n"</span>,<span class="code-string">"// @flow\nimport getNodeName from './getNodeName';\n\nexport default function isTableElement(element: Element): boolean {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) &gt;= 0;\n}\n"</span>,<span class="code-string">"// @flow\nimport getWindow from './getWindow';\nimport getNodeName from './getNodeName';\nimport getComputedStyle from './getComputedStyle';\nimport { isHTMLElement, isShadowRoot } from './instanceOf';\nimport isTableElement from './isTableElement';\nimport getParentNode from './getParentNode';\n\nfunction getTrueOffsetParent(element: Element): ?Element {\n if (\n !isHTMLElement(element) ||\n // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed'\n ) {\n return null;\n }\n\n return element.offsetParent;\n}\n\n// `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\nfunction getContainingBlock(element: Element) {\n const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n const isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE &amp;&amp; isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n const elementCss = getComputedStyle(element);\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n let currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (\n isHTMLElement(currentNode) &amp;&amp;\n ['html', 'body'].indexOf(getNodeName(currentNode)) &lt; 0\n ) {\n const css = getComputedStyle(currentNode);\n\n // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n if (\n css.transform !== 'none' ||\n css.perspective !== 'none' ||\n css.contain === 'paint' ||\n ['transform', 'perspective'].indexOf(css.willChange) !== -1 ||\n (isFirefox &amp;&amp; css.willChange === 'filter') ||\n (isFirefox &amp;&amp; css.filter &amp;&amp; css.filter !== 'none')\n ) {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nexport default function getOffsetParent(element: Element) {\n const window = getWindow(element);\n\n let offsetParent = getTrueOffsetParent(element);\n\n while (\n offsetParent &amp;&amp;\n isTableElement(offsetParent) &amp;&amp;\n getComputedStyle(offsetParent).position === 'static'\n ) {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (\n offsetParent &amp;&amp;\n (getNodeName(offsetParent) === 'html' ||\n (getNodeName(offsetParent) === 'body' &amp;&amp;\n getComputedStyle(offsetParent).position === 'static'))\n ) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}\n"</span>,<span class="code-string">"// @flow\nexport const top: 'top' = 'top';\nexport const bottom: 'bottom' = 'bottom';\nexport const right: 'right' = 'right';\nexport const left: 'left' = 'left';\nexport const auto: 'auto' = 'auto';\nexport type BasePlacement =\n | typeof top\n | typeof bottom\n | typeof right\n | typeof left;\nexport const basePlacements: Array&lt;BasePlacement&gt; = [top, bottom, right, left];\n\nexport const start: 'start' = 'start';\nexport const end: 'end' = 'end';\nexport type Variation = typeof start | typeof end;\n\nexport const clippingParents: 'clippingParents' = 'clippingParents';\nexport const viewport: 'viewport' = 'viewport';\nexport type Boundary = Element | Array&lt;Element&gt; | typeof clippingParents;\nexport type RootBoundary = typeof viewport | 'document';\n\nexport const popper: 'popper' = 'popper';\nexport const reference: 'reference' = 'reference';\nexport type Context = typeof popper | typeof reference;\n\nexport type VariationPlacement =\n | 'top-start'\n | 'top-end'\n | 'bottom-start'\n | 'bottom-end'\n | 'right-start'\n | 'right-end'\n | 'left-start'\n | 'left-end';\nexport type AutoPlacement = 'auto' | 'auto-start' | 'auto-end';\nexport type ComputedPlacement = VariationPlacement | BasePlacement;\nexport type Placement = AutoPlacement | BasePlacement | VariationPlacement;\n\nexport const variationPlacements: Array&lt;VariationPlacement&gt; = basePlacements.reduce(\n (acc: Array&lt;VariationPlacement&gt;, placement: BasePlacement) =&gt;\n acc.concat([(`${placement}-${start}`: any), (`${placement}-${end}`: any)]),\n []\n);\nexport const placements: Array&lt;Placement&gt; = [...basePlacements, auto].reduce(\n (\n acc: Array&lt;Placement&gt;,\n placement: BasePlacement | typeof auto\n ): Array&lt;Placement&gt; =&gt;\n acc.concat([\n placement,\n (`${placement}-${start}`: any),\n (`${placement}-${end}`: any),\n ]),\n []\n);\n\n// modifiers that need to read the DOM\nexport const beforeRead: 'beforeRead' = 'beforeRead';\nexport const read: 'read' = 'read';\nexport const afterRead: 'afterRead' = 'afterRead';\n// pure-logic modifiers\nexport const beforeMain: 'beforeMain' = 'beforeMain';\nexport const main: 'main' = 'main';\nexport const afterMain: 'afterMain' = 'afterMain';\n// modifier with the purpose to write to the DOM (or write into a framework state)\nexport const beforeWrite: 'beforeWrite' = 'beforeWrite';\nexport const write: 'write' = 'write';\nexport const afterWrite: 'afterWrite' = 'afterWrite';\nexport const modifierPhases: Array&lt;ModifierPhases&gt; = [\n beforeRead,\n read,\n afterRead,\n beforeMain,\n main,\n afterMain,\n beforeWrite,\n write,\n afterWrite,\n];\n\nexport type ModifierPhases =\n | typeof beforeRead\n | typeof read\n | typeof afterRead\n | typeof beforeMain\n | typeof main\n | typeof afterMain\n | typeof beforeWrite\n | typeof write\n | typeof afterWrite;\n"</span>,<span class="code-string">"// @flow\nimport type { Modifier } from '../types';\nimport { modifierPhases } from '../enums';\n\n// source: https://stackoverflow.com/questions/49875255\nfunction order(modifiers) {\n const map = new Map();\n const visited = new Set();\n const result = [];\n\n modifiers.forEach(modifier =&gt; {\n map.set(modifier.name, modifier);\n });\n\n // On visiting object, check for its dependencies and visit them recursively\n function sort(modifier: Modifier&lt;any, any&gt;) {\n visited.add(modifier.name);\n\n const requires = [\n ...(modifier.requires || []),\n ...(modifier.requiresIfExists || []),\n ];\n\n requires.forEach(dep =&gt; {\n if (!visited.has(dep)) {\n const depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n\n result.push(modifier);\n }\n\n modifiers.forEach(modifier =&gt; {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n\n return result;\n}\n\nexport default function orderModifiers(\n modifiers: Array&lt;Modifier&lt;any, any&gt;&gt;\n): Array&lt;Modifier&lt;any, any&gt;&gt; {\n // order based on dependencies\n const orderedModifiers = order(modifiers);\n\n // order based on phase\n return modifierPhases.reduce((acc, phase) =&gt; {\n return acc.concat(\n orderedModifiers.filter(modifier =&gt; modifier.phase === phase)\n );\n }, []);\n}\n"</span>,<span class="code-string">"// @flow\n\nexport default function debounce&lt;T&gt;(fn: Function): () =&gt; Promise&lt;T&gt; {\n let pending;\n return () =&gt; {\n if (!pending) {\n pending = new Promise&lt;T&gt;(resolve =&gt; {\n Promise.resolve().then(() =&gt; {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}\n"</span>,<span class="code-string">"// @flow\n\nexport default function format(str: string, ...args: Array&lt;string&gt;) {\n return [...args].reduce((p, c) =&gt; p.replace(/%s/, c), str);\n}\n"</span>,<span class="code-string">"// @flow\nimport format from './format';\nimport { modifierPhases } from '../enums';\n\nconst INVALID_MODIFIER_ERROR =\n 'Popper: modifier \"%s\" provided an invalid %s property, expected %s but got %s';\nconst MISSING_DEPENDENCY_ERROR =\n 'Popper: modifier \"%s\" requires \"%s\", but \"%s\" modifier is not available';\nconst VALID_PROPERTIES = [\n 'name',\n 'enabled',\n 'phase',\n 'fn',\n 'effect',\n 'requires',\n 'options',\n];\n\nexport default function validateModifiers(modifiers: Array&lt;any&gt;): void {\n modifiers.forEach((modifier) =&gt; {\n [...Object.keys(modifier), ...VALID_PROPERTIES]\n // IE11-compatible replacement for `new Set(iterable)`\n .filter((value, index, self) =&gt; self.indexOf(value) === index)\n .forEach((key) =&gt; {\n switch (key) {\n case 'name':\n if (typeof modifier.name !== 'string') {\n console.error(\n format(\n INVALID_MODIFIER_ERROR,\n String(modifier.name),\n '\"name\"',\n '\"string\"',\n `\"${String(modifier.name)}\"`\n )\n );\n }\n break;\n case 'enabled':\n if (typeof modifier.enabled !== 'boolean') {\n console.error(\n format(\n INVALID_MODIFIER_ERROR,\n modifier.name,\n '\"enabled\"',\n '\"boolean\"',\n `\"${String(modifier.enabled)}\"`\n )\n );\n }\n break;\n case 'phase':\n if (modifierPhases.indexOf(modifier.phase) &lt; 0) {\n console.error(\n format(\n INVALID_MODIFIER_ERROR,\n modifier.name,\n '\"phase\"',\n `either ${modifierPhases.join(', ')}`,\n `\"${String(modifier.phase)}\"`\n )\n );\n }\n break;\n case 'fn':\n if (typeof modifier.fn !== 'function') {\n console.error(\n format(\n INVALID_MODIFIER_ERROR,\n modifier.name,\n '\"fn\"',\n '\"function\"',\n `\"${String(modifier.fn)}\"`\n )\n );\n }\n break;\n case 'effect':\n if (\n modifier.effect != null &amp;&amp;\n typeof modifier.effect !== 'function'\n ) {\n console.error(\n format(\n INVALID_MODIFIER_ERROR,\n modifier.name,\n '\"effect\"',\n '\"function\"',\n `\"${String(modifier.fn)}\"`\n )\n );\n }\n break;\n case 'requires':\n if (\n modifier.requires != null &amp;&amp;\n !Array.isArray(modifier.requires)\n ) {\n console.error(\n format(\n INVALID_MODIFIER_ERROR,\n modifier.name,\n '\"requires\"',\n '\"array\"',\n `\"${String(modifier.requires)}\"`\n )\n );\n }\n break;\n case 'requiresIfExists':\n if (!Array.isArray(modifier.requiresIfExists)) {\n console.error(\n format(\n INVALID_MODIFIER_ERROR,\n modifier.name,\n '\"requiresIfExists\"',\n '\"array\"',\n `\"${String(modifier.requiresIfExists)}\"`\n )\n );\n }\n break;\n case 'options':\n case 'data':\n break;\n default:\n console.error(\n `PopperJS: an invalid property has been provided to the \"${\n modifier.name\n }\" modifier, valid properties are ${VALID_PROPERTIES.map(\n (s) =&gt; `\"${s}\"`\n ).join(', ')}; but \"${key}\" was provided.`\n );\n }\n\n modifier.requires &amp;&amp;\n modifier.requires.forEach((requirement) =&gt; {\n if (modifiers.find((mod) =&gt; mod.name === requirement) == null) {\n console.error(\n format(\n MISSING_DEPENDENCY_ERROR,\n String(modifier.name),\n requirement,\n requirement\n )\n );\n }\n });\n });\n });\n}\n"</span>,<span class="code-string">"// @flow\n\nexport default function uniqueBy&lt;T&gt;(arr: Array&lt;T&gt;, fn: T =&gt; any): Array&lt;T&gt; {\n const identifiers = new Set();\n\n return arr.filter(item =&gt; {\n const identifier = fn(item);\n\n if (!identifiers.has(identifier)) {\n identifiers.add(identifier);\n return true;\n }\n });\n}\n"</span>,<span class="code-string">"// @flow\nimport { type BasePlacement, type Placement, auto } from '../enums';\n\nexport default function getBasePlacement(\n placement: Placement | typeof auto\n): BasePlacement {\n return (placement.split('-')[0]: any);\n}\n"</span>,<span class="code-string">"// @flow\nimport type { Modifier } from '../types';\n\nexport default function mergeByName(\n modifiers: Array&lt;$Shape&lt;Modifier&lt;any, any&gt;&gt;&gt;\n): Array&lt;$Shape&lt;Modifier&lt;any, any&gt;&gt;&gt; {\n const merged = modifiers.reduce((merged, current) =&gt; {\n const existing = merged[current.name];\n merged[current.name] = existing\n ? {\n ...existing,\n ...current,\n options: { ...existing.options, ...current.options },\n data: { ...existing.data, ...current.data },\n }\n : current;\n return merged;\n }, {});\n\n // IE11 does not support Object.values\n return Object.keys(merged).map(key =&gt; merged[key]);\n}\n"</span>,<span class="code-string">"// @flow\nimport getWindow from './getWindow';\nimport getDocumentElement from './getDocumentElement';\nimport getWindowScrollBarX from './getWindowScrollBarX';\n\nexport default function getViewportRect(element: Element) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n\n // NB: This isn't supported on iOS &lt;= 12. If the keyboard is open, the popper\n // can be obscured underneath it.\n // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even\n // if it isn't open, so if this isn't available, the popper will be detected\n // to overflow the bottom of the screen too early.\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n\n // Uses Layout Viewport (like Chrome; Safari does not currently)\n // In Chrome, it returns a value very close to 0 (+/-) but contains rounding\n // errors due to floating point numbers, so we need to check precision.\n // Safari returns a number &lt;= 0, usually &lt; -1 when pinch-zoomed\n\n // Feature detection fails in mobile emulation mode in Chrome.\n // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) &lt;\n // 0.001\n // Fallback here: \"Not Safari\" userAgent\n if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width,\n height,\n x: x + getWindowScrollBarX(element),\n y,\n };\n}\n"</span>,<span class="code-string">"// @flow\nimport type { Rect } from '../types';\nimport getDocumentElement from './getDocumentElement';\nimport getComputedStyle from './getComputedStyle';\nimport getWindowScrollBarX from './getWindowScrollBarX';\nimport getWindowScroll from './getWindowScroll';\nimport { max } from '../utils/math';\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `&lt;html&gt;` and `&lt;body&gt;` rect bounds if horizontally scrollable\nexport default function getDocumentRect(element: HTMLElement): Rect {\n const html = getDocumentElement(element);\n const winScroll = getWindowScroll(element);\n const body = element.ownerDocument?.body;\n\n const width = max(\n html.scrollWidth,\n html.clientWidth,\n body ? body.scrollWidth : 0,\n body ? body.clientWidth : 0\n );\n const height = max(\n html.scrollHeight,\n html.clientHeight,\n body ? body.scrollHeight : 0,\n body ? body.clientHeight : 0\n );\n\n let x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n const y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return { width, height, x, y };\n}\n"</span>,<span class="code-string">"// @flow\nimport { isShadowRoot } from './instanceOf';\n\nexport default function contains(parent: Element, child: Element) {\n const rootNode = child.getRootNode &amp;&amp; child.getRootNode();\n\n // First, attempt with faster native method\n if (parent.contains(child)) {\n return true;\n }\n // then fallback to custom implementation with Shadow DOM support\n else if (rootNode &amp;&amp; isShadowRoot(rootNode)) {\n let next = child;\n do {\n if (next &amp;&amp; parent.isSameNode(next)) {\n return true;\n }\n // $FlowFixMe[prop-missing]: need a better way to handle this...\n next = next.parentNode || next.host;\n } while (next);\n }\n\n // Give up, the result is false\n return false;\n}\n"</span>,<span class="code-string">"// @flow\nimport type { Rect, ClientRectObject } from '../types';\n\nexport default function rectToClientRect(rect: Rect): ClientRectObject {\n return {\n ...rect,\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height,\n };\n}\n"</span>,<span class="code-string">"// @flow\nimport type { ClientRectObject } from '../types';\nimport type { Boundary, RootBoundary } from '../enums';\nimport { viewport } from '../enums';\nimport getViewportRect from './getViewportRect';\nimport getDocumentRect from './getDocumentRect';\nimport listScrollParents from './listScrollParents';\nimport getOffsetParent from './getOffsetParent';\nimport getDocumentElement from './getDocumentElement';\nimport getComputedStyle from './getComputedStyle';\nimport { isElement, isHTMLElement } from './instanceOf';\nimport getBoundingClientRect from './getBoundingClientRect';\nimport getParentNode from './getParentNode';\nimport contains from './contains';\nimport getNodeName from './getNodeName';\nimport rectToClientRect from '../utils/rectToClientRect';\nimport { max, min } from '../utils/math';\n\nfunction getInnerBoundingClientRect(element: Element) {\n const rect = getBoundingClientRect(element);\n\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n\n return rect;\n}\n\nfunction getClientRectFromMixedType(\n element: Element,\n clippingParent: Element | RootBoundary\n): ClientRectObject {\n return clippingParent === viewport\n ? rectToClientRect(getViewportRect(element))\n : isElement(clippingParent)\n ? getInnerBoundingClientRect(clippingParent)\n : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n}\n\n// A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\nfunction getClippingParents(element: Element): Array&lt;Element&gt; {\n const clippingParents = listScrollParents(getParentNode(element));\n const canEscapeClipping =\n ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) &gt;= 0;\n const clipperElement =\n canEscapeClipping &amp;&amp; isHTMLElement(element)\n ? getOffsetParent(element)\n : element;\n\n if (!isElement(clipperElement)) {\n return [];\n }\n\n // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n return clippingParents.filter(\n (clippingParent) =&gt;\n isElement(clippingParent) &amp;&amp;\n contains(clippingParent, clipperElement) &amp;&amp;\n getNodeName(clippingParent) !== 'body'\n );\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping parents\nexport default function getClippingRect(\n element: Element,\n boundary: Boundary,\n rootBoundary: RootBoundary\n): ClientRectObject {\n const mainClippingParents =\n boundary === 'clippingParents'\n ? getClippingParents(element)\n : [].concat(boundary);\n const clippingParents = [...mainClippingParents, rootBoundary];\n const firstClippingParent = clippingParents[0];\n\n const clippingRect = clippingParents.reduce((accRect, clippingParent) =&gt; {\n const rect = getClientRectFromMixedType(element, clippingParent);\n\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent));\n\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n\n return clippingRect;\n}\n"</span>,<span class="code-string">"// @flow\nimport { type Variation, type Placement } from '../enums';\n\nexport default function getVariation(placement: Placement): ?Variation {\n return (placement.split('-')[1]: any);\n}\n"</span>,<span class="code-string">"// @flow\nimport type { Placement } from '../enums';\n\nexport default function getMainAxisFromPlacement(\n placement: Placement\n): 'x' | 'y' {\n return ['top', 'bottom'].indexOf(placement) &gt;= 0 ? 'x' : 'y';\n}\n"</span>,<span class="code-string">"// @flow\nimport getBasePlacement from './getBasePlacement';\nimport getVariation from './getVariation';\nimport getMainAxisFromPlacement from './getMainAxisFromPlacement';\nimport type {\n Rect,\n PositioningStrategy,\n Offsets,\n ClientRectObject,\n} from '../types';\nimport { top, right, bottom, left, start, end, type Placement } from '../enums';\n\nexport default function computeOffsets({\n reference,\n element,\n placement,\n}: {\n reference: Rect | ClientRectObject,\n element: Rect | ClientRectObject,\n strategy: PositioningStrategy,\n placement?: Placement,\n}): Offsets {\n const basePlacement = placement ? getBasePlacement(placement) : null;\n const variation = placement ? getVariation(placement) : null;\n const commonX = reference.x + reference.width / 2 - element.width / 2;\n const commonY = reference.y + reference.height / 2 - element.height / 2;\n\n let offsets;\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height,\n };\n break;\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height,\n };\n break;\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY,\n };\n break;\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY,\n };\n break;\n default:\n offsets = {\n x: reference.x,\n y: reference.y,\n };\n }\n\n const mainAxis = basePlacement\n ? getMainAxisFromPlacement(basePlacement)\n : null;\n\n if (mainAxis != null) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] =\n offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n case end:\n offsets[mainAxis] =\n offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n default:\n }\n }\n\n return offsets;\n}\n"</span>,<span class="code-string">"// @flow\nimport type { SideObject } from '../types';\n\nexport default function getFreshSideObject(): SideObject {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n };\n}\n"</span>,<span class="code-string">"// @flow\nimport type { SideObject } from '../types';\nimport getFreshSideObject from './getFreshSideObject';\n\nexport default function mergePaddingObject(\n paddingObject: $Shape&lt;SideObject&gt;\n): SideObject {\n return {\n ...getFreshSideObject(),\n ...paddingObject,\n };\n}\n"</span>,<span class="code-string">"// @flow\n\nexport default function expandToHashMap&lt;\n T: number | string | boolean,\n K: string\n&gt;(value: T, keys: Array&lt;K&gt;): { [key: string]: T } {\n return keys.reduce((hashMap, key) =&gt; {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}\n"</span>,<span class="code-string">"// @flow\nimport type { State, SideObject, Padding } from '../types';\nimport type { Placement, Boundary, RootBoundary, Context } from '../enums';\nimport getClippingRect from '../dom-utils/getClippingRect';\nimport getDocumentElement from '../dom-utils/getDocumentElement';\nimport getBoundingClientRect from '../dom-utils/getBoundingClientRect';\nimport computeOffsets from './computeOffsets';\nimport rectToClientRect from './rectToClientRect';\nimport {\n clippingParents,\n reference,\n popper,\n bottom,\n top,\n right,\n basePlacements,\n viewport,\n} from '../enums';\nimport { isElement } from '../dom-utils/instanceOf';\nimport mergePaddingObject from './mergePaddingObject';\nimport expandToHashMap from './expandToHashMap';\n\n// eslint-disable-next-line import/no-unused-modules\nexport type Options = {\n placement: Placement,\n boundary: Boundary,\n rootBoundary: RootBoundary,\n elementContext: Context,\n altBoundary: boolean,\n padding: Padding,\n};\n\nexport default function detectOverflow(\n state: State,\n options: $Shape&lt;Options&gt; = {}\n): SideObject {\n const {\n placement = state.placement,\n boundary = clippingParents,\n rootBoundary = viewport,\n elementContext = popper,\n altBoundary = false,\n padding = 0,\n } = options;\n\n const paddingObject = mergePaddingObject(\n typeof padding !== 'number'\n ? padding\n : expandToHashMap(padding, basePlacements)\n );\n\n const altContext = elementContext === popper ? reference : popper;\n\n const popperRect = state.rects.popper;\n const element = state.elements[altBoundary ? altContext : elementContext];\n\n const clippingClientRect = getClippingRect(\n isElement(element)\n ? element\n : element.contextElement || getDocumentElement(state.elements.popper),\n boundary,\n rootBoundary\n );\n\n const referenceClientRect = getBoundingClientRect(state.elements.reference);\n\n const popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement,\n });\n\n const popperClientRect = rectToClientRect({\n ...popperRect,\n ...popperOffsets,\n });\n\n const elementClientRect =\n elementContext === popper ? popperClientRect : referenceClientRect;\n\n // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n const overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom:\n elementClientRect.bottom -\n clippingClientRect.bottom +\n paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right:\n elementClientRect.right - clippingClientRect.right + paddingObject.right,\n };\n\n const offsetData = state.modifiersData.offset;\n\n // Offsets can be applied only to the popper element\n if (elementContext === popper &amp;&amp; offsetData) {\n const offset = offsetData[placement];\n\n Object.keys(overflowOffsets).forEach((key) =&gt; {\n const multiply = [right, bottom].indexOf(key) &gt;= 0 ? 1 : -1;\n const axis = [top, bottom].indexOf(key) &gt;= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}\n"</span>,<span class="code-string">"// @flow\nimport type {\n State,\n OptionsGeneric,\n Modifier,\n Instance,\n VirtualElement,\n} from './types';\nimport getCompositeRect from './dom-utils/getCompositeRect';\nimport getLayoutRect from './dom-utils/getLayoutRect';\nimport listScrollParents from './dom-utils/listScrollParents';\nimport getOffsetParent from './dom-utils/getOffsetParent';\nimport getComputedStyle from './dom-utils/getComputedStyle';\nimport orderModifiers from './utils/orderModifiers';\nimport debounce from './utils/debounce';\nimport validateModifiers from './utils/validateModifiers';\nimport uniqueBy from './utils/uniqueBy';\nimport getBasePlacement from './utils/getBasePlacement';\nimport mergeByName from './utils/mergeByName';\nimport detectOverflow from './utils/detectOverflow';\nimport { isElement } from './dom-utils/instanceOf';\nimport { auto } from './enums';\n\nconst INVALID_ELEMENT_ERROR =\n 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\nconst INFINITE_LOOP_ERROR =\n 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\n\nconst DEFAULT_OPTIONS: OptionsGeneric&lt;any&gt; = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute',\n};\n\ntype PopperGeneratorArgs = {\n defaultModifiers?: Array&lt;Modifier&lt;any, any&gt;&gt;,\n defaultOptions?: $Shape&lt;OptionsGeneric&lt;any&gt;&gt;,\n};\n\nfunction areValidElements(...args: Array&lt;any&gt;): boolean {\n return !args.some(\n (element) =&gt;\n !(element &amp;&amp; typeof element.getBoundingClientRect === 'function')\n );\n}\n\nexport function popperGenerator(generatorOptions: PopperGeneratorArgs = {}) {\n const {\n defaultModifiers = [],\n defaultOptions = DEFAULT_OPTIONS,\n } = generatorOptions;\n\n return function createPopper&lt;TModifier: $Shape&lt;Modifier&lt;any, any&gt;&gt;&gt;(\n reference: Element | VirtualElement,\n popper: HTMLElement,\n options: $Shape&lt;OptionsGeneric&lt;TModifier&gt;&gt; = defaultOptions\n ): Instance {\n let state: $Shape&lt;State&gt; = {\n placement: 'bottom',\n orderedModifiers: [],\n options: { ...DEFAULT_OPTIONS, ...defaultOptions },\n modifiersData: {},\n elements: {\n reference,\n popper,\n },\n attributes: {},\n styles: {},\n };\n\n let effectCleanupFns: Array&lt;() =&gt; void&gt; = [];\n let isDestroyed = false;\n\n const instance = {\n state,\n setOptions(setOptionsAction) {\n const options =\n typeof setOptionsAction === 'function'\n ? setOptionsAction(state.options)\n : setOptionsAction;\n\n cleanupModifierEffects();\n\n state.options = {\n // $FlowFixMe[exponential-spread]\n ...defaultOptions,\n ...state.options,\n ...options,\n };\n\n state.scrollParents = {\n reference: isElement(reference)\n ? listScrollParents(reference)\n : reference.contextElement\n ? listScrollParents(reference.contextElement)\n : [],\n popper: listScrollParents(popper),\n };\n\n // Orders the modifiers based on their dependencies and `phase`\n // properties\n const orderedModifiers = orderModifiers(\n mergeByName([...defaultModifiers, ...state.options.modifiers])\n );\n\n // Strip out disabled modifiers\n state.orderedModifiers = orderedModifiers.filter((m) =&gt; m.enabled);\n\n // Validate the provided modifiers so that the consumer will get warned\n // if one of the modifiers is invalid for any reason\n if (__DEV__) {\n const modifiers = uniqueBy(\n [...orderedModifiers, ...state.options.modifiers],\n ({ name }) =&gt; name\n );\n\n validateModifiers(modifiers);\n\n if (getBasePlacement(state.options.placement) === auto) {\n const flipModifier = state.orderedModifiers.find(\n ({ name }) =&gt; name === 'flip'\n );\n\n if (!flipModifier) {\n console.error(\n [\n 'Popper: \"auto\" placements require the \"flip\" modifier be',\n 'present and enabled to work.',\n ].join(' ')\n );\n }\n }\n\n const {\n marginTop,\n marginRight,\n marginBottom,\n marginLeft,\n } = getComputedStyle(popper);\n\n // We no longer take into account `margins` on the popper, and it can\n // cause bugs with positioning, so we'll warn the consumer\n if (\n [marginTop, marginRight, marginBottom, marginLeft].some((margin) =&gt;\n parseFloat(margin)\n )\n ) {\n console.warn(\n [\n 'Popper: CSS \"margin\" styles cannot be used to apply padding',\n 'between the popper and its reference element or boundary.',\n 'To replicate margin, use the `offset` modifier, as well as',\n 'the `padding` option in the `preventOverflow` and `flip`',\n 'modifiers.',\n ].join(' ')\n );\n }\n }\n\n runModifierEffects();\n\n return instance.update();\n },\n\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n const { reference, popper } = state.elements;\n\n // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n if (!areValidElements(reference, popper)) {\n if (__DEV__) {\n console.error(INVALID_ELEMENT_ERROR);\n }\n return;\n }\n\n // Store the reference and popper rects to be read by modifiers\n state.rects = {\n reference: getCompositeRect(\n reference,\n getOffsetParent(popper),\n state.options.strategy === 'fixed'\n ),\n popper: getLayoutRect(popper),\n };\n\n // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n state.reset = false;\n\n state.placement = state.options.placement;\n\n // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n state.orderedModifiers.forEach(\n (modifier) =&gt;\n (state.modifiersData[modifier.name] = {\n ...modifier.data,\n })\n );\n\n let __debug_loops__ = 0;\n for (let index = 0; index &lt; state.orderedModifiers.length; index++) {\n if (__DEV__) {\n __debug_loops__ += 1;\n if (__debug_loops__ &gt; 100) {\n console.error(INFINITE_LOOP_ERROR);\n break;\n }\n }\n\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n const { fn, options = {}, name } = state.orderedModifiers[index];\n\n if (typeof fn === 'function') {\n state = fn({ state, options, name, instance }) || state;\n }\n }\n },\n\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce&lt;$Shape&lt;State&gt;&gt;(\n () =&gt;\n new Promise&lt;$Shape&lt;State&gt;&gt;((resolve) =&gt; {\n instance.forceUpdate();\n resolve(state);\n })\n ),\n\n destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n },\n };\n\n if (!areValidElements(reference, popper)) {\n if (__DEV__) {\n console.error(INVALID_ELEMENT_ERROR);\n }\n return instance;\n }\n\n instance.setOptions(options).then((state) =&gt; {\n if (!isDestroyed &amp;&amp; options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n });\n\n // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n function runModifierEffects() {\n state.orderedModifiers.forEach(({ name, options = {}, effect }) =&gt; {\n if (typeof effect === 'function') {\n const cleanupFn = effect({ state, name, instance, options });\n const noopFn = () =&gt; {};\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach((fn) =&gt; fn());\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\n\nexport const createPopper = popperGenerator();\n\n// eslint-disable-next-line import/no-unused-modules\nexport { detectOverflow };\n"</span>,<span class="code-string">"// @flow\nimport type { ModifierArguments, Modifier } from '../types';\nimport getWindow from '../dom-utils/getWindow';\n\n// eslint-disable-next-line import/no-unused-modules\nexport type Options = {\n scroll: boolean,\n resize: boolean,\n};\n\nconst passive = { passive: true };\n\nfunction effect({ state, instance, options }: ModifierArguments&lt;Options&gt;) {\n const { scroll = true, resize = true } = options;\n\n const window = getWindow(state.elements.popper);\n const scrollParents = [\n ...state.scrollParents.reference,\n ...state.scrollParents.popper,\n ];\n\n if (scroll) {\n scrollParents.forEach(scrollParent =&gt; {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return () =&gt; {\n if (scroll) {\n scrollParents.forEach(scrollParent =&gt; {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n}\n\n// eslint-disable-next-line import/no-unused-modules\nexport type EventListenersModifier = Modifier&lt;'eventListeners', Options&gt;;\nexport default ({\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: () =&gt; {},\n effect,\n data: {},\n}: EventListenersModifier);\n"</span>,<span class="code-string">"// @flow\nimport type { ModifierArguments, Modifier } from '../types';\nimport computeOffsets from '../utils/computeOffsets';\n\nfunction popperOffsets({ state, name }: ModifierArguments&lt;{||}&gt;) {\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement,\n });\n}\n\n// eslint-disable-next-line import/no-unused-modules\nexport type PopperOffsetsModifier = Modifier&lt;'popperOffsets', {||}&gt;;\nexport default ({\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {},\n}: PopperOffsetsModifier);\n"</span>,<span class="code-string">"// @flow\nimport type {\n PositioningStrategy,\n Offsets,\n Modifier,\n ModifierArguments,\n Rect,\n Window,\n} from '../types';\nimport {\n type BasePlacement,\n type Variation,\n top,\n left,\n right,\n bottom,\n end,\n} from '../enums';\nimport getOffsetParent from '../dom-utils/getOffsetParent';\nimport getWindow from '../dom-utils/getWindow';\nimport getDocumentElement from '../dom-utils/getDocumentElement';\nimport getComputedStyle from '../dom-utils/getComputedStyle';\nimport getBasePlacement from '../utils/getBasePlacement';\nimport getVariation from '../utils/getVariation';\nimport { round } from '../utils/math';\n\n// eslint-disable-next-line import/no-unused-modules\nexport type RoundOffsets = (\n offsets: $Shape&lt;{ x: number, y: number, centerOffset: number }&gt;\n) =&gt; Offsets;\n\n// eslint-disable-next-line import/no-unused-modules\nexport type Options = {\n gpuAcceleration: boolean,\n adaptive: boolean,\n roundOffsets?: boolean | RoundOffsets,\n};\n\nconst unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto',\n};\n\n// Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\nfunction roundOffsetsByDPR({ x, y }): Offsets {\n const win: Window = window;\n const dpr = win.devicePixelRatio || 1;\n\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0,\n };\n}\n\nexport function mapToStyles({\n popper,\n popperRect,\n placement,\n variation,\n offsets,\n position,\n gpuAcceleration,\n adaptive,\n roundOffsets,\n isFixed,\n}: {\n popper: HTMLElement,\n popperRect: Rect,\n placement: BasePlacement,\n variation: ?Variation,\n offsets: $Shape&lt;{ x: number, y: number, centerOffset: number }&gt;,\n position: PositioningStrategy,\n gpuAcceleration: boolean,\n adaptive: boolean,\n roundOffsets: boolean | RoundOffsets,\n isFixed: boolean,\n}) {\n let { x = 0, y = 0 } = offsets;\n\n ({ x, y } =\n typeof roundOffsets === 'function'\n ? roundOffsets({ x, y })\n : { x, y });\n\n const hasX = offsets.hasOwnProperty('x');\n const hasY = offsets.hasOwnProperty('y');\n\n let sideX: string = left;\n let sideY: string = top;\n\n const win: Window = window;\n\n if (adaptive) {\n let offsetParent = getOffsetParent(popper);\n let heightProp = 'clientHeight';\n let widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (\n getComputedStyle(offsetParent).position !== 'static' &amp;&amp;\n position === 'absolute'\n ) {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n }\n\n // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n offsetParent = (offsetParent: Element);\n\n if (\n placement === top ||\n ((placement === left || placement === right) &amp;&amp; variation === end)\n ) {\n sideY = bottom;\n const offsetY =\n isFixed &amp;&amp; offsetParent === win &amp;&amp; win.visualViewport\n ? win.visualViewport.height\n : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (\n placement === left ||\n ((placement === top || placement === bottom) &amp;&amp; variation === end)\n ) {\n sideX = right;\n const offsetX =\n isFixed &amp;&amp; offsetParent === win &amp;&amp; win.visualViewport\n ? win.visualViewport.width\n : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n const commonStyles = {\n position,\n ...(adaptive &amp;&amp; unsetSides),\n };\n\n ({ x, y } =\n roundOffsets === true\n ? roundOffsetsByDPR({ x, y })\n : { x, y });\n\n if (gpuAcceleration) {\n return {\n ...commonStyles,\n [sideY]: hasY ? '0' : '',\n [sideX]: hasX ? '0' : '',\n // Layer acceleration can disable subpixel rendering which causes slightly\n // blurry text on low PPI displays, so we want to use 2D transforms\n // instead\n transform:\n (win.devicePixelRatio || 1) &lt;= 1\n ? `translate(${x}px, ${y}px)`\n : `translate3d(${x}px, ${y}px, 0)`,\n };\n }\n\n return {\n ...commonStyles,\n [sideY]: hasY ? `${y}px` : '',\n [sideX]: hasX ? `${x}px` : '',\n transform: '',\n };\n}\n\nfunction computeStyles({ state, options }: ModifierArguments&lt;Options&gt;) {\n const {\n gpuAcceleration = true,\n adaptive = true,\n // defaults to use builtin `roundOffsetsByDPR`\n roundOffsets = true,\n } = options;\n\n if (__DEV__) {\n const transitionProperty =\n getComputedStyle(state.elements.popper).transitionProperty || '';\n\n if (\n adaptive &amp;&amp;\n ['transform', 'top', 'right', 'bottom', 'left'].some(\n (property) =&gt; transitionProperty.indexOf(property) &gt;= 0\n )\n ) {\n console.warn(\n [\n 'Popper: Detected CSS transitions on at least one of the following',\n 'CSS properties: \"transform\", \"top\", \"right\", \"bottom\", \"left\".',\n '\\n\\n',\n 'Disable the \"computeStyles\" modifier\\'s `adaptive` option to allow',\n 'for smooth transitions, or remove these properties from the CSS',\n 'transition declaration on the popper element if only transitioning',\n 'opacity or background-color for example.',\n '\\n\\n',\n 'We recommend using the popper element as a wrapper around an inner',\n 'element that can have any CSS property transitioned for animations.',\n ].join(' ')\n );\n }\n }\n\n const commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration,\n isFixed: state.options.strategy === 'fixed',\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = {\n ...state.styles.popper,\n ...mapToStyles({\n ...commonStyles,\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive,\n roundOffsets,\n }),\n };\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = {\n ...state.styles.arrow,\n ...mapToStyles({\n ...commonStyles,\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets,\n }),\n };\n }\n\n state.attributes.popper = {\n ...state.attributes.popper,\n 'data-popper-placement': state.placement,\n };\n}\n\n// eslint-disable-next-line import/no-unused-modules\nexport type ComputeStylesModifier = Modifier&lt;'computeStyles', Options&gt;;\nexport default ({\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {},\n}: ComputeStylesModifier);\n"</span>,<span class="code-string">"// @flow\nimport type { Modifier, ModifierArguments } from '../types';\nimport getNodeName from '../dom-utils/getNodeName';\nimport { isHTMLElement } from '../dom-utils/instanceOf';\n\n// This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles({ state }: ModifierArguments&lt;{||}&gt;) {\n Object.keys(state.elements).forEach((name) =&gt; {\n const style = state.styles[name] || {};\n\n const attributes = state.attributes[name] || {};\n const element = state.elements[name];\n\n // arrow is optional + virtual elements\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n Object.assign(element.style, style);\n\n Object.keys(attributes).forEach((name) =&gt; {\n const value = attributes[name];\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect({ state }: ModifierArguments&lt;{||}&gt;) {\n const initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0',\n },\n arrow: {\n position: 'absolute',\n },\n reference: {},\n };\n\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return () =&gt; {\n Object.keys(state.elements).forEach((name) =&gt; {\n const element = state.elements[name];\n const attributes = state.attributes[name] || {};\n\n const styleProperties = Object.keys(\n state.styles.hasOwnProperty(name)\n ? state.styles[name]\n : initialStyles[name]\n );\n\n // Set all values to an empty string to unset them\n const style = styleProperties.reduce((style, property) =&gt; {\n style[property] = '';\n return style;\n }, {});\n\n // arrow is optional + virtual elements\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n\n Object.keys(attributes).forEach((attribute) =&gt; {\n element.removeAttribute(attribute);\n });\n });\n };\n}\n\n// eslint-disable-next-line import/no-unused-modules\nexport type ApplyStylesModifier = Modifier&lt;'applyStyles', {||}&gt;;\nexport default ({\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect,\n requires: ['computeStyles'],\n}: ApplyStylesModifier);\n"</span>,<span class="code-string">"// @flow\nimport type { Placement } from '../enums';\nimport type { ModifierArguments, Modifier, Rect, Offsets } from '../types';\nimport getBasePlacement from '../utils/getBasePlacement';\nimport { top, left, right, placements } from '../enums';\n\n// eslint-disable-next-line import/no-unused-modules\nexport type OffsetsFunction = ({\n popper: Rect,\n reference: Rect,\n placement: Placement,\n}) =&gt; [?number, ?number];\n\ntype Offset = OffsetsFunction | [?number, ?number];\n\n// eslint-disable-next-line import/no-unused-modules\nexport type Options = {\n offset: Offset,\n};\n\nexport function distanceAndSkiddingToXY(\n placement: Placement,\n rects: { popper: Rect, reference: Rect },\n offset: Offset\n): Offsets {\n const basePlacement = getBasePlacement(placement);\n const invertDistance = [left, top].indexOf(basePlacement) &gt;= 0 ? -1 : 1;\n\n let [skidding, distance] =\n typeof offset === 'function'\n ? offset({\n ...rects,\n placement,\n })\n : offset;\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n\n return [left, right].indexOf(basePlacement) &gt;= 0\n ? { x: distance, y: skidding }\n : { x: skidding, y: distance };\n}\n\nfunction offset({ state, options, name }: ModifierArguments&lt;Options&gt;) {\n const { offset = [0, 0] } = options;\n\n const data = placements.reduce((acc, placement) =&gt; {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n\n const { x, y } = data[state.placement];\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n}\n\n// eslint-disable-next-line import/no-unused-modules\nexport type OffsetModifier = Modifier&lt;'offset', Options&gt;;\nexport default ({\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset,\n}: OffsetModifier);\n"</span>,<span class="code-string">"// @flow\nimport type { Placement } from '../enums';\n\nconst hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };\n\nexport default function getOppositePlacement(placement: Placement): Placement {\n return (placement.replace(\n /left|right|bottom|top/g,\n matched =&gt; hash[matched]\n ): any);\n}\n"</span>,<span class="code-string">"// @flow\nimport type { Placement } from '../enums';\n\nconst hash = { start: 'end', end: 'start' };\n\nexport default function getOppositeVariationPlacement(\n placement: Placement\n): Placement {\n return (placement.replace(/start|end/g, matched =&gt; hash[matched]): any);\n}\n"</span>,<span class="code-string">"// @flow\nimport type { State, Padding } from '../types';\nimport type {\n Placement,\n ComputedPlacement,\n Boundary,\n RootBoundary,\n} from '../enums';\nimport getVariation from './getVariation';\nimport {\n variationPlacements,\n basePlacements,\n placements as allPlacements,\n} from '../enums';\nimport detectOverflow from './detectOverflow';\nimport getBasePlacement from './getBasePlacement';\n\ntype Options = {\n placement: Placement,\n padding: Padding,\n boundary: Boundary,\n rootBoundary: RootBoundary,\n flipVariations: boolean,\n allowedAutoPlacements?: Array&lt;Placement&gt;,\n};\n\ntype OverflowsMap = { [ComputedPlacement]: number };\n\nexport default function computeAutoPlacement(\n state: $Shape&lt;State&gt;,\n options: Options = {}\n): Array&lt;ComputedPlacement&gt; {\n const {\n placement,\n boundary,\n rootBoundary,\n padding,\n flipVariations,\n allowedAutoPlacements = allPlacements,\n } = options;\n\n const variation = getVariation(placement);\n\n const placements = variation\n ? flipVariations\n ? variationPlacements\n : variationPlacements.filter(\n (placement) =&gt; getVariation(placement) === variation\n )\n : basePlacements;\n\n let allowedPlacements = placements.filter(\n (placement) =&gt; allowedAutoPlacements.indexOf(placement) &gt;= 0\n );\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n\n if (__DEV__) {\n console.error(\n [\n 'Popper: The `allowedAutoPlacements` option did not allow any',\n 'placements. Ensure the `placement` option matches the variation',\n 'of the allowed placements.',\n 'For example, \"auto\" cannot be used to allow \"bottom-start\".',\n 'Use \"auto-start\" instead.',\n ].join(' ')\n );\n }\n }\n\n // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n const overflows: OverflowsMap = allowedPlacements.reduce((acc, placement) =&gt; {\n acc[placement] = detectOverflow(state, {\n placement,\n boundary,\n rootBoundary,\n padding,\n })[getBasePlacement(placement)];\n\n return acc;\n }, {});\n\n return Object.keys(overflows).sort((a, b) =&gt; overflows[a] - overflows[b]);\n}\n"</span>,<span class="code-string">"// @flow\nimport type { Placement, Boundary, RootBoundary } from '../enums';\nimport type { ModifierArguments, Modifier, Padding } from '../types';\nimport getOppositePlacement from '../utils/getOppositePlacement';\nimport getBasePlacement from '../utils/getBasePlacement';\nimport getOppositeVariationPlacement from '../utils/getOppositeVariationPlacement';\nimport detectOverflow from '../utils/detectOverflow';\nimport computeAutoPlacement from '../utils/computeAutoPlacement';\nimport { bottom, top, start, right, left, auto } from '../enums';\nimport getVariation from '../utils/getVariation';\n\n// eslint-disable-next-line import/no-unused-modules\nexport type Options = {\n mainAxis: boolean,\n altAxis: boolean,\n fallbackPlacements: Array&lt;Placement&gt;,\n padding: Padding,\n boundary: Boundary,\n rootBoundary: RootBoundary,\n altBoundary: boolean,\n flipVariations: boolean,\n allowedAutoPlacements: Array&lt;Placement&gt;,\n};\n\nfunction getExpandedFallbackPlacements(placement: Placement): Array&lt;Placement&gt; {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n const oppositePlacement = getOppositePlacement(placement);\n\n return [\n getOppositeVariationPlacement(placement),\n oppositePlacement,\n getOppositeVariationPlacement(oppositePlacement),\n ];\n}\n\nfunction flip({ state, options, name }: ModifierArguments&lt;Options&gt;) {\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n const {\n mainAxis: checkMainAxis = true,\n altAxis: checkAltAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n padding,\n boundary,\n rootBoundary,\n altBoundary,\n flipVariations = true,\n allowedAutoPlacements,\n } = options;\n\n const preferredPlacement = state.options.placement;\n const basePlacement = getBasePlacement(preferredPlacement);\n const isBasePlacement = basePlacement === preferredPlacement;\n\n const fallbackPlacements =\n specifiedFallbackPlacements ||\n (isBasePlacement || !flipVariations\n ? [getOppositePlacement(preferredPlacement)]\n : getExpandedFallbackPlacements(preferredPlacement));\n\n const placements = [preferredPlacement, ...fallbackPlacements].reduce(\n (acc, placement) =&gt; {\n return acc.concat(\n getBasePlacement(placement) === auto\n ? computeAutoPlacement(state, {\n placement,\n boundary,\n rootBoundary,\n padding,\n flipVariations,\n allowedAutoPlacements,\n })\n : placement\n );\n },\n []\n );\n\n const referenceRect = state.rects.reference;\n const popperRect = state.rects.popper;\n\n const checksMap = new Map();\n let makeFallbackChecks = true;\n let firstFittingPlacement = placements[0];\n\n for (let i = 0; i &lt; placements.length; i++) {\n const placement = placements[i];\n const basePlacement = getBasePlacement(placement);\n const isStartVariation = getVariation(placement) === start;\n const isVertical = [top, bottom].indexOf(basePlacement) &gt;= 0;\n const len = isVertical ? 'width' : 'height';\n\n const overflow = detectOverflow(state, {\n placement,\n boundary,\n rootBoundary,\n altBoundary,\n padding,\n });\n\n let mainVariationSide: any = isVertical\n ? isStartVariation\n ? right\n : left\n : isStartVariation\n ? bottom\n : top;\n\n if (referenceRect[len] &gt; popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n const altVariationSide: any = getOppositePlacement(mainVariationSide);\n\n const checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[basePlacement] &lt;= 0);\n }\n\n if (checkAltAxis) {\n checks.push(\n overflow[mainVariationSide] &lt;= 0,\n overflow[altVariationSide] &lt;= 0\n );\n }\n\n if (checks.every((check) =&gt; check)) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n const numberOfChecks = flipVariations ? 3 : 1;\n\n for (let i = numberOfChecks; i &gt; 0; i--) {\n const fittingPlacement = placements.find((placement) =&gt; {\n const checks = checksMap.get(placement);\n if (checks) {\n return checks.slice(0, i).every((check) =&gt; check);\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n break;\n }\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n}\n\n// eslint-disable-next-line import/no-unused-modules\nexport type FlipModifier = Modifier&lt;'flip', Options&gt;;\nexport default ({\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: { _skip: false },\n}: FlipModifier);\n"</span>,<span class="code-string">"// @flow\n\nexport default function getAltAxis(axis: 'x' | 'y'): 'x' | 'y' {\n return axis === 'x' ? 'y' : 'x';\n}\n"</span>,<span class="code-string">"// @flow\nimport { max as mathMax, min as mathMin } from './math';\n\nexport function within(min: number, value: number, max: number): number {\n return mathMax(min, mathMin(value, max));\n}\n\nexport function withinMaxClamp(min: number, value: number, max: number) {\n const v = within(min, value, max);\n return v &gt; max ? max : v;\n}\n"</span>,<span class="code-string">"// @flow\nimport { top, left, right, bottom, start } from '../enums';\nimport type { Placement, Boundary, RootBoundary } from '../enums';\nimport type { Rect, ModifierArguments, Modifier, Padding } from '../types';\nimport getBasePlacement from '../utils/getBasePlacement';\nimport getMainAxisFromPlacement from '../utils/getMainAxisFromPlacement';\nimport getAltAxis from '../utils/getAltAxis';\nimport { within, withinMaxClamp } from '../utils/within';\nimport getLayoutRect from '../dom-utils/getLayoutRect';\nimport getOffsetParent from '../dom-utils/getOffsetParent';\nimport detectOverflow from '../utils/detectOverflow';\nimport getVariation from '../utils/getVariation';\nimport getFreshSideObject from '../utils/getFreshSideObject';\nimport { min as mathMin, max as mathMax } from '../utils/math';\n\ntype TetherOffset =\n | (({\n popper: Rect,\n reference: Rect,\n placement: Placement,\n }) =&gt; number | { mainAxis: number, altAxis: number })\n | number\n | { mainAxis: number, altAxis: number };\n\n// eslint-disable-next-line import/no-unused-modules\nexport type Options = {\n /* Prevents boundaries overflow on the main axis */\n mainAxis: boolean,\n /* Prevents boundaries overflow on the alternate axis */\n altAxis: boolean,\n /* The area to check the popper is overflowing in */\n boundary: Boundary,\n /* If the popper is not overflowing the main area, fallback to this one */\n rootBoundary: RootBoundary,\n /* Use the reference's \"clippingParents\" boundary context */\n altBoundary: boolean,\n /**\n * Allows the popper to overflow from its boundaries to keep it near its\n * reference element\n */\n tether: boolean,\n /* Offsets when the `tether` option should activate */\n tetherOffset: TetherOffset,\n /* Sets a padding to the provided boundary */\n padding: Padding,\n};\n\nfunction preventOverflow({ state, options, name }: ModifierArguments&lt;Options&gt;) {\n const {\n mainAxis: checkMainAxis = true,\n altAxis: checkAltAxis = false,\n boundary,\n rootBoundary,\n altBoundary,\n padding,\n tether = true,\n tetherOffset = 0,\n } = options;\n\n const overflow = detectOverflow(state, {\n boundary,\n rootBoundary,\n padding,\n altBoundary,\n });\n const basePlacement = getBasePlacement(state.placement);\n const variation = getVariation(state.placement);\n const isBasePlacement = !variation;\n const mainAxis = getMainAxisFromPlacement(basePlacement);\n const altAxis = getAltAxis(mainAxis);\n const popperOffsets = state.modifiersData.popperOffsets;\n const referenceRect = state.rects.reference;\n const popperRect = state.rects.popper;\n const tetherOffsetValue =\n typeof tetherOffset === 'function'\n ? tetherOffset({\n ...state.rects,\n placement: state.placement,\n })\n : tetherOffset;\n const normalizedTetherOffsetValue =\n typeof tetherOffsetValue === 'number'\n ? { mainAxis: tetherOffsetValue, altAxis: tetherOffsetValue }\n : { mainAxis: 0, altAxis: 0, ...tetherOffsetValue };\n const offsetModifierState = state.modifiersData.offset\n ? state.modifiersData.offset[state.placement]\n : null;\n\n const data = { x: 0, y: 0 };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n const mainSide = mainAxis === 'y' ? top : left;\n const altSide = mainAxis === 'y' ? bottom : right;\n const len = mainAxis === 'y' ? 'height' : 'width';\n const offset = popperOffsets[mainAxis];\n\n const min = offset + overflow[mainSide];\n const max = offset - overflow[altSide];\n\n const additive = tether ? -popperRect[len] / 2 : 0;\n\n const minLen = variation === start ? referenceRect[len] : popperRect[len];\n const maxLen = variation === start ? -popperRect[len] : -referenceRect[len];\n\n // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n const arrowElement = state.elements.arrow;\n const arrowRect =\n tether &amp;&amp; arrowElement\n ? getLayoutRect(arrowElement)\n : { width: 0, height: 0 };\n const arrowPaddingObject = state.modifiersData['arrow#persistent']\n ? state.modifiersData['arrow#persistent'].padding\n : getFreshSideObject();\n const arrowPaddingMin = arrowPaddingObject[mainSide];\n const arrowPaddingMax = arrowPaddingObject[altSide];\n\n // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n const arrowLen = within(0, referenceRect[len], arrowRect[len]);\n\n const minOffset = isBasePlacement\n ? referenceRect[len] / 2 -\n additive -\n arrowLen -\n arrowPaddingMin -\n normalizedTetherOffsetValue.mainAxis\n : minLen -\n arrowLen -\n arrowPaddingMin -\n normalizedTetherOffsetValue.mainAxis;\n const maxOffset = isBasePlacement\n ? -referenceRect[len] / 2 +\n additive +\n arrowLen +\n arrowPaddingMax +\n normalizedTetherOffsetValue.mainAxis\n : maxLen +\n arrowLen +\n arrowPaddingMax +\n normalizedTetherOffsetValue.mainAxis;\n\n const arrowOffsetParent =\n state.elements.arrow &amp;&amp; getOffsetParent(state.elements.arrow);\n const clientOffset = arrowOffsetParent\n ? mainAxis === 'y'\n ? arrowOffsetParent.clientTop || 0\n : arrowOffsetParent.clientLeft || 0\n : 0;\n\n const offsetModifierValue = offsetModifierState?.[mainAxis] ?? 0;\n const tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n const tetherMax = offset + maxOffset - offsetModifierValue;\n\n const preventedOffset = within(\n tether ? mathMin(min, tetherMin) : min,\n offset,\n tether ? mathMax(max, tetherMax) : max\n );\n\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n const mainSide = mainAxis === 'x' ? top : left;\n const altSide = mainAxis === 'x' ? bottom : right;\n const offset = popperOffsets[altAxis];\n\n const len = altAxis === 'y' ? 'height' : 'width';\n\n const min = offset + overflow[mainSide];\n const max = offset - overflow[altSide];\n\n const isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n const offsetModifierValue = offsetModifierState?.[altAxis] ?? 0;\n const tetherMin = isOriginSide\n ? min\n : offset -\n referenceRect[len] -\n popperRect[len] -\n offsetModifierValue +\n normalizedTetherOffsetValue.altAxis;\n const tetherMax = isOriginSide\n ? offset +\n referenceRect[len] +\n popperRect[len] -\n offsetModifierValue -\n normalizedTetherOffsetValue.altAxis\n : max;\n\n const preventedOffset =\n tether &amp;&amp; isOriginSide\n ? withinMaxClamp(tetherMin, offset, tetherMax)\n : within(tether ? tetherMin : min, offset, tether ? tetherMax : max);\n\n popperOffsets[altAxis] = preventedOffset;\n data[altAxis] = preventedOffset - offset;\n }\n\n state.modifiersData[name] = data;\n}\n\n// eslint-disable-next-line import/no-unused-modules\nexport type PreventOverflowModifier = Modifier&lt;'preventOverflow', Options&gt;;\nexport default ({\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset'],\n}: PreventOverflowModifier);\n"</span>,<span class="code-string">"// @flow\nimport type { Modifier, ModifierArguments, Padding, Rect } from '../types';\nimport type { Placement } from '../enums';\nimport getBasePlacement from '../utils/getBasePlacement';\nimport getLayoutRect from '../dom-utils/getLayoutRect';\nimport contains from '../dom-utils/contains';\nimport getOffsetParent from '../dom-utils/getOffsetParent';\nimport getMainAxisFromPlacement from '../utils/getMainAxisFromPlacement';\nimport { within } from '../utils/within';\nimport mergePaddingObject from '../utils/mergePaddingObject';\nimport expandToHashMap from '../utils/expandToHashMap';\nimport { left, right, basePlacements, top, bottom } from '../enums';\nimport { isHTMLElement } from '../dom-utils/instanceOf';\n\n// eslint-disable-next-line import/no-unused-modules\nexport type Options = {\n element: HTMLElement | string | null,\n padding:\n | Padding\n | (({|\n popper: Rect,\n reference: Rect,\n placement: Placement,\n |}) =&gt; Padding),\n};\n\nconst toPaddingObject = (padding, state) =&gt; {\n padding =\n typeof padding === 'function'\n ? padding({ ...state.rects, placement: state.placement })\n : padding;\n\n return mergePaddingObject(\n typeof padding !== 'number'\n ? padding\n : expandToHashMap(padding, basePlacements)\n );\n};\n\nfunction arrow({ state, name, options }: ModifierArguments&lt;Options&gt;) {\n const arrowElement = state.elements.arrow;\n const popperOffsets = state.modifiersData.popperOffsets;\n const basePlacement = getBasePlacement(state.placement);\n const axis = getMainAxisFromPlacement(basePlacement);\n const isVertical = [left, right].indexOf(basePlacement) &gt;= 0;\n const len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n const paddingObject = toPaddingObject(options.padding, state);\n const arrowRect = getLayoutRect(arrowElement);\n const minProp = axis === 'y' ? top : left;\n const maxProp = axis === 'y' ? bottom : right;\n\n const endDiff =\n state.rects.reference[len] +\n state.rects.reference[axis] -\n popperOffsets[axis] -\n state.rects.popper[len];\n const startDiff = popperOffsets[axis] - state.rects.reference[axis];\n\n const arrowOffsetParent = getOffsetParent(arrowElement);\n const clientSize = arrowOffsetParent\n ? axis === 'y'\n ? arrowOffsetParent.clientHeight || 0\n : arrowOffsetParent.clientWidth || 0\n : 0;\n\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n const min = paddingObject[minProp];\n const max = clientSize - arrowRect[len] - paddingObject[maxProp];\n const center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n const offset = within(min, center, max);\n\n // Prevents breaking syntax highlighting...\n const axisProp: string = axis;\n state.modifiersData[name] = {\n [axisProp]: offset,\n centerOffset: offset - center,\n };\n}\n\nfunction effect({ state, options }: ModifierArguments&lt;Options&gt;) {\n let { element: arrowElement = '[data-popper-arrow]' } = options;\n\n if (arrowElement == null) {\n return;\n }\n\n // CSS selector\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (__DEV__) {\n if (!isHTMLElement(arrowElement)) {\n console.error(\n [\n 'Popper: \"arrow\" element must be an HTMLElement (not an SVGElement).',\n 'To use an SVG arrow, wrap it in an HTMLElement that will be used as',\n 'the arrow.',\n ].join(' ')\n );\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n if (__DEV__) {\n console.error(\n [\n 'Popper: \"arrow\" modifier\\'s `element` must be a child of the popper',\n 'element.',\n ].join(' ')\n );\n }\n\n return;\n }\n\n state.elements.arrow = arrowElement;\n}\n\n// eslint-disable-next-line import/no-unused-modules\nexport type ArrowModifier = Modifier&lt;'arrow', Options&gt;;\nexport default ({\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow'],\n}: ArrowModifier);\n"</span>,<span class="code-string">"// @flow\nimport type {\n ModifierArguments,\n Modifier,\n Rect,\n SideObject,\n Offsets,\n} from '../types';\nimport { top, bottom, left, right } from '../enums';\nimport detectOverflow from '../utils/detectOverflow';\n\nfunction getSideOffsets(\n overflow: SideObject,\n rect: Rect,\n preventedOffsets: Offsets = { x: 0, y: 0 }\n): SideObject {\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x,\n };\n}\n\nfunction isAnySideFullyClipped(overflow: SideObject): boolean {\n return [top, right, bottom, left].some((side) =&gt; overflow[side] &gt;= 0);\n}\n\nfunction hide({ state, name }: ModifierArguments&lt;{||}&gt;) {\n const referenceRect = state.rects.reference;\n const popperRect = state.rects.popper;\n const preventedOffsets = state.modifiersData.preventOverflow;\n\n const referenceOverflow = detectOverflow(state, {\n elementContext: 'reference',\n });\n const popperAltOverflow = detectOverflow(state, {\n altBoundary: true,\n });\n\n const referenceClippingOffsets = getSideOffsets(\n referenceOverflow,\n referenceRect\n );\n const popperEscapeOffsets = getSideOffsets(\n popperAltOverflow,\n popperRect,\n preventedOffsets\n );\n\n const isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n const hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n\n state.modifiersData[name] = {\n referenceClippingOffsets,\n popperEscapeOffsets,\n isReferenceHidden,\n hasPopperEscaped,\n };\n\n state.attributes.popper = {\n ...state.attributes.popper,\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped,\n };\n}\n\n// eslint-disable-next-line import/no-unused-modules\nexport type HideModifier = Modifier&lt;'hide', {||}&gt;;\nexport default ({\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide,\n}: HideModifier);\n"</span>,<span class="code-string">"// @flow\nimport { popperGenerator, detectOverflow } from './createPopper';\n\nimport eventListeners from './modifiers/eventListeners';\nimport popperOffsets from './modifiers/popperOffsets';\nimport computeStyles from './modifiers/computeStyles';\nimport applyStyles from './modifiers/applyStyles';\n\nexport type * from './types';\n\nconst defaultModifiers = [\n eventListeners,\n popperOffsets,\n computeStyles,\n applyStyles,\n];\n\nconst createPopper = popperGenerator({ defaultModifiers });\n\n// eslint-disable-next-line import/no-unused-modules\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow };\n"</span>,<span class="code-string">"// @flow\nimport { popperGenerator, detectOverflow } from './createPopper';\n\nimport eventListeners from './modifiers/eventListeners';\nimport popperOffsets from './modifiers/popperOffsets';\nimport computeStyles from './modifiers/computeStyles';\nimport applyStyles from './modifiers/applyStyles';\nimport offset from './modifiers/offset';\nimport flip from './modifiers/flip';\nimport preventOverflow from './modifiers/preventOverflow';\nimport arrow from './modifiers/arrow';\nimport hide from './modifiers/hide';\n\nexport type * from './types';\n\nconst defaultModifiers = [\n eventListeners,\n popperOffsets,\n computeStyles,\n applyStyles,\n offset,\n flip,\n preventOverflow,\n arrow,\n hide,\n];\n\nconst createPopper = popperGenerator({ defaultModifiers });\n\n// eslint-disable-next-line import/no-unused-modules\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow };\n// eslint-disable-next-line import/no-unused-modules\nexport { createPopper as createPopperLite } from './popper-lite';\n// eslint-disable-next-line import/no-unused-modules\nexport * from './modifiers';\n"</span>],<span class="code-attr">"names"</span>:[<span class="code-string">"getWindow"</span>,<span class="code-string">"node"</span>,<span class="code-string">"window"</span>,<span class="code-string">"toString"</span>,<span class="code-string">"ownerDocument"</span>,<span class="code-string">"defaultView"</span>,<span class="code-string">"isElement"</span>,<span class="code-string">"OwnElement"</span>,<span class="code-string">"Element"</span>,<span class="code-string">"isHTMLElement"</span>,<span class="code-string">"HTMLElement"</span>,<span class="code-string">"isShadowRoot"</span>,<span class="code-string">"ShadowRoot"</span>,<span class="code-string">"max"</span>,<span class="code-string">"Math"</span>,<span class="code-string">"min"</span>,<span class="code-string">"round"</span>,<span class="code-string">"getBoundingClientRect"</span>,<span class="code-string">"element"</span>,<span class="code-string">"includeScale"</span>,<span class="code-string">"rect"</span>,<span class="code-string">"scaleX"</span>,<span class="code-string">"scaleY"</span>,<span class="code-string">"offsetHeight"</span>,<span class="code-string">"offsetWidth"</span>,<span class="code-string">"width"</span>,<span class="code-string">"height"</span>,<span class="code-string">"top"</span>,<span class="code-string">"right"</span>,<span class="code-string">"bottom"</span>,<span class="code-string">"left"</span>,<span class="code-string">"x"</span>,<span class="code-string">"y"</span>,<span class="code-string">"getWindowScroll"</span>,<span class="code-string">"win"</span>,<span class="code-string">"scrollLeft"</span>,<span class="code-string">"pageXOffset"</span>,<span class="code-string">"scrollTop"</span>,<span class="code-string">"pageYOffset"</span>,<span class="code-string">"getHTMLElementScroll"</span>,<span class="code-string">"getNodeScroll"</span>,<span class="code-string">"getNodeName"</span>,<span class="code-string">"nodeName"</span>,<span class="code-string">"toLowerCase"</span>,<span class="code-string">"getDocumentElement"</span>,<span class="code-string">"document"</span>,<span class="code-string">"documentElement"</span>,<span class="code-string">"getWindowScrollBarX"</span>,<span class="code-string">"getComputedStyle"</span>,<span class="code-string">"isScrollParent"</span>,<span class="code-string">"overflow"</span>,<span class="code-string">"overflowX"</span>,<span class="code-string">"overflowY"</span>,<span class="code-string">"test"</span>,<span class="code-string">"isElementScaled"</span>,<span class="code-string">"getCompositeRect"</span>,<span class="code-string">"elementOrVirtualElement"</span>,<span class="code-string">"offsetParent"</span>,<span class="code-string">"isFixed"</span>,<span class="code-string">"isOffsetParentAnElement"</span>,<span class="code-string">"offsetParentIsScaled"</span>,<span class="code-string">"scroll"</span>,<span class="code-string">"offsets"</span>,<span class="code-string">"clientLeft"</span>,<span class="code-string">"clientTop"</span>,<span class="code-string">"getLayoutRect"</span>,<span class="code-string">"clientRect"</span>,<span class="code-string">"abs"</span>,<span class="code-string">"offsetLeft"</span>,<span class="code-string">"offsetTop"</span>,<span class="code-string">"getParentNode"</span>,<span class="code-string">"assignedSlot"</span>,<span class="code-string">"parentNode"</span>,<span class="code-string">"host"</span>,<span class="code-string">"getScrollParent"</span>,<span class="code-string">"indexOf"</span>,<span class="code-string">"body"</span>,<span class="code-string">"listScrollParents"</span>,<span class="code-string">"list"</span>,<span class="code-string">"scrollParent"</span>,<span class="code-string">"isBody"</span>,<span class="code-string">"target"</span>,<span class="code-string">"concat"</span>,<span class="code-string">"visualViewport"</span>,<span class="code-string">"updatedList"</span>,<span class="code-string">"isTableElement"</span>,<span class="code-string">"getTrueOffsetParent"</span>,<span class="code-string">"position"</span>,<span class="code-string">"getContainingBlock"</span>,<span class="code-string">"isFirefox"</span>,<span class="code-string">"navigator"</span>,<span class="code-string">"userAgent"</span>,<span class="code-string">"isIE"</span>,<span class="code-string">"elementCss"</span>,<span class="code-string">"currentNode"</span>,<span class="code-string">"css"</span>,<span class="code-string">"transform"</span>,<span class="code-string">"perspective"</span>,<span class="code-string">"contain"</span>,<span class="code-string">"willChange"</span>,<span class="code-string">"filter"</span>,<span class="code-string">"getOffsetParent"</span>,<span class="code-string">"auto"</span>,<span class="code-string">"basePlacements"</span>,<span class="code-string">"start"</span>,<span class="code-string">"end"</span>,<span class="code-string">"clippingParents"</span>,<span class="code-string">"viewport"</span>,<span class="code-string">"popper"</span>,<span class="code-string">"reference"</span>,<span class="code-string">"variationPlacements"</span>,<span class="code-string">"reduce"</span>,<span class="code-string">"acc"</span>,<span class="code-string">"placement"</span>,<span class="code-string">"placements"</span>,<span class="code-string">"beforeRead"</span>,<span class="code-string">"read"</span>,<span class="code-string">"afterRead"</span>,<span class="code-string">"beforeMain"</span>,<span class="code-string">"main"</span>,<span class="code-string">"afterMain"</span>,<span class="code-string">"beforeWrite"</span>,<span class="code-string">"write"</span>,<span class="code-string">"afterWrite"</span>,<span class="code-string">"modifierPhases"</span>,<span class="code-string">"order"</span>,<span class="code-string">"modifiers"</span>,<span class="code-string">"map"</span>,<span class="code-string">"Map"</span>,<span class="code-string">"visited"</span>,<span class="code-string">"Set"</span>,<span class="code-string">"result"</span>,<span class="code-string">"forEach"</span>,<span class="code-string">"modifier"</span>,<span class="code-string">"set"</span>,<span class="code-string">"name"</span>,<span class="code-string">"sort"</span>,<span class="code-string">"add"</span>,<span class="code-string">"requires"</span>,<span class="code-string">"requiresIfExists"</span>,<span class="code-string">"dep"</span>,<span class="code-string">"has"</span>,<span class="code-string">"depModifier"</span>,<span class="code-string">"get"</span>,<span class="code-string">"push"</span>,<span class="code-string">"orderModifiers"</span>,<span class="code-string">"orderedModifiers"</span>,<span class="code-string">"phase"</span>,<span class="code-string">"debounce"</span>,<span class="code-string">"fn"</span>,<span class="code-string">"pending"</span>,<span class="code-string">"Promise"</span>,<span class="code-string">"resolve"</span>,<span class="code-string">"then"</span>,<span class="code-string">"undefined"</span>,<span class="code-string">"format"</span>,<span class="code-string">"str"</span>,<span class="code-string">"args"</span>,<span class="code-string">"p"</span>,<span class="code-string">"c"</span>,<span class="code-string">"replace"</span>,<span class="code-string">"INVALID_MODIFIER_ERROR"</span>,<span class="code-string">"MISSING_DEPENDENCY_ERROR"</span>,<span class="code-string">"VALID_PROPERTIES"</span>,<span class="code-string">"validateModifiers"</span>,<span class="code-string">"Object"</span>,<span class="code-string">"keys"</span>,<span class="code-string">"value"</span>,<span class="code-string">"index"</span>,<span class="code-string">"self"</span>,<span class="code-string">"key"</span>,<span class="code-string">"console"</span>,<span class="code-string">"error"</span>,<span class="code-string">"String"</span>,<span class="code-string">"enabled"</span>,<span class="code-string">"join"</span>,<span class="code-string">"effect"</span>,<span class="code-string">"Array"</span>,<span class="code-string">"isArray"</span>,<span class="code-string">"s"</span>,<span class="code-string">"requirement"</span>,<span class="code-string">"find"</span>,<span class="code-string">"mod"</span>,<span class="code-string">"uniqueBy"</span>,<span class="code-string">"arr"</span>,<span class="code-string">"identifiers"</span>,<span class="code-string">"item"</span>,<span class="code-string">"identifier"</span>,<span class="code-string">"getBasePlacement"</span>,<span class="code-string">"split"</span>,<span class="code-string">"mergeByName"</span>,<span class="code-string">"merged"</span>,<span class="code-string">"current"</span>,<span class="code-string">"existing"</span>,<span class="code-string">"options"</span>,<span class="code-string">"data"</span>,<span class="code-string">"getViewportRect"</span>,<span class="code-string">"html"</span>,<span class="code-string">"clientWidth"</span>,<span class="code-string">"clientHeight"</span>,<span class="code-string">"getDocumentRect"</span>,<span class="code-string">"winScroll"</span>,<span class="code-string">"scrollWidth"</span>,<span class="code-string">"scrollHeight"</span>,<span class="code-string">"direction"</span>,<span class="code-string">"contains"</span>,<span class="code-string">"parent"</span>,<span class="code-string">"child"</span>,<span class="code-string">"rootNode"</span>,<span class="code-string">"getRootNode"</span>,<span class="code-string">"next"</span>,<span class="code-string">"isSameNode"</span>,<span class="code-string">"rectToClientRect"</span>,<span class="code-string">"getInnerBoundingClientRect"</span>,<span class="code-string">"getClientRectFromMixedType"</span>,<span class="code-string">"clippingParent"</span>,<span class="code-string">"getClippingParents"</span>,<span class="code-string">"canEscapeClipping"</span>,<span class="code-string">"clipperElement"</span>,<span class="code-string">"getClippingRect"</span>,<span class="code-string">"boundary"</span>,<span class="code-string">"rootBoundary"</span>,<span class="code-string">"mainClippingParents"</span>,<span class="code-string">"firstClippingParent"</span>,<span class="code-string">"clippingRect"</span>,<span class="code-string">"accRect"</span>,<span class="code-string">"getVariation"</span>,<span class="code-string">"getMainAxisFromPlacement"</span>,<span class="code-string">"computeOffsets"</span>,<span class="code-string">"basePlacement"</span>,<span class="code-string">"variation"</span>,<span class="code-string">"commonX"</span>,<span class="code-string">"commonY"</span>,<span class="code-string">"mainAxis"</span>,<span class="code-string">"len"</span>,<span class="code-string">"getFreshSideObject"</span>,<span class="code-string">"mergePaddingObject"</span>,<span class="code-string">"paddingObject"</span>,<span class="code-string">"expandToHashMap"</span>,<span class="code-string">"hashMap"</span>,<span class="code-string">"detectOverflow"</span>,<span class="code-string">"state"</span>,<span class="code-string">"elementContext"</span>,<span class="code-string">"altBoundary"</span>,<span class="code-string">"padding"</span>,<span class="code-string">"altContext"</span>,<span class="code-string">"popperRect"</span>,<span class="code-string">"rects"</span>,<span class="code-string">"elements"</span>,<span class="code-string">"clippingClientRect"</span>,<span class="code-string">"contextElement"</span>,<span class="code-string">"referenceClientRect"</span>,<span class="code-string">"popperOffsets"</span>,<span class="code-string">"strategy"</span>,<span class="code-string">"popperClientRect"</span>,<span class="code-string">"elementClientRect"</span>,<span class="code-string">"overflowOffsets"</span>,<span class="code-string">"offsetData"</span>,<span class="code-string">"modifiersData"</span>,<span class="code-string">"offset"</span>,<span class="code-string">"multiply"</span>,<span class="code-string">"axis"</span>,<span class="code-string">"INVALID_ELEMENT_ERROR"</span>,<span class="code-string">"INFINITE_LOOP_ERROR"</span>,<span class="code-string">"DEFAULT_OPTIONS"</span>,<span class="code-string">"areValidElements"</span>,<span class="code-string">"some"</span>,<span class="code-string">"popperGenerator"</span>,<span class="code-string">"generatorOptions"</span>,<span class="code-string">"defaultModifiers"</span>,<span class="code-string">"defaultOptions"</span>,<span class="code-string">"createPopper"</span>,<span class="code-string">"attributes"</span>,<span class="code-string">"styles"</span>,<span class="code-string">"effectCleanupFns"</span>,<span class="code-string">"isDestroyed"</span>,<span class="code-string">"instance"</span>,<span class="code-string">"setOptions"</span>,<span class="code-string">"setOptionsAction"</span>,<span class="code-string">"cleanupModifierEffects"</span>,<span class="code-string">"scrollParents"</span>,<span class="code-string">"m"</span>,<span class="code-string">"flipModifier"</span>,<span class="code-string">"marginTop"</span>,<span class="code-string">"marginRight"</span>,<span class="code-string">"marginBottom"</span>,<span class="code-string">"marginLeft"</span>,<span class="code-string">"margin"</span>,<span class="code-string">"parseFloat"</span>,<span class="code-string">"warn"</span>,<span class="code-string">"runModifierEffects"</span>,<span class="code-string">"update"</span>,<span class="code-string">"forceUpdate"</span>,<span class="code-string">"reset"</span>,<span class="code-string">"__debug_loops__"</span>,<span class="code-string">"length"</span>,<span class="code-string">"destroy"</span>,<span class="code-string">"onFirstUpdate"</span>,<span class="code-string">"cleanupFn"</span>,<span class="code-string">"noopFn"</span>,<span class="code-string">"passive"</span>,<span class="code-string">"resize"</span>,<span class="code-string">"addEventListener"</span>,<span class="code-string">"removeEventListener"</span>,<span class="code-string">"unsetSides"</span>,<span class="code-string">"roundOffsetsByDPR"</span>,<span class="code-string">"dpr"</span>,<span class="code-string">"devicePixelRatio"</span>,<span class="code-string">"mapToStyles"</span>,<span class="code-string">"gpuAcceleration"</span>,<span class="code-string">"adaptive"</span>,<span class="code-string">"roundOffsets"</span>,<span class="code-string">"hasX"</span>,<span class="code-string">"hasOwnProperty"</span>,<span class="code-string">"hasY"</span>,<span class="code-string">"sideX"</span>,<span class="code-string">"sideY"</span>,<span class="code-string">"heightProp"</span>,<span class="code-string">"widthProp"</span>,<span class="code-string">"offsetY"</span>,<span class="code-string">"offsetX"</span>,<span class="code-string">"commonStyles"</span>,<span class="code-string">"computeStyles"</span>,<span class="code-string">"transitionProperty"</span>,<span class="code-string">"property"</span>,<span class="code-string">"arrow"</span>,<span class="code-string">"applyStyles"</span>,<span class="code-string">"style"</span>,<span class="code-string">"assign"</span>,<span class="code-string">"removeAttribute"</span>,<span class="code-string">"setAttribute"</span>,<span class="code-string">"initialStyles"</span>,<span class="code-string">"styleProperties"</span>,<span class="code-string">"attribute"</span>,<span class="code-string">"distanceAndSkiddingToXY"</span>,<span class="code-string">"invertDistance"</span>,<span class="code-string">"skidding"</span>,<span class="code-string">"distance"</span>,<span class="code-string">"hash"</span>,<span class="code-string">"getOppositePlacement"</span>,<span class="code-string">"matched"</span>,<span class="code-string">"getOppositeVariationPlacement"</span>,<span class="code-string">"computeAutoPlacement"</span>,<span class="code-string">"flipVariations"</span>,<span class="code-string">"allowedAutoPlacements"</span>,<span class="code-string">"allPlacements"</span>,<span class="code-string">"allowedPlacements"</span>,<span class="code-string">"overflows"</span>,<span class="code-string">"a"</span>,<span class="code-string">"b"</span>,<span class="code-string">"getExpandedFallbackPlacements"</span>,<span class="code-string">"oppositePlacement"</span>,<span class="code-string">"flip"</span>,<span class="code-string">"_skip"</span>,<span class="code-string">"checkMainAxis"</span>,<span class="code-string">"altAxis"</span>,<span class="code-string">"checkAltAxis"</span>,<span class="code-string">"specifiedFallbackPlacements"</span>,<span class="code-string">"fallbackPlacements"</span>,<span class="code-string">"preferredPlacement"</span>,<span class="code-string">"isBasePlacement"</span>,<span class="code-string">"referenceRect"</span>,<span class="code-string">"checksMap"</span>,<span class="code-string">"makeFallbackChecks"</span>,<span class="code-string">"firstFittingPlacement"</span>,<span class="code-string">"i"</span>,<span class="code-string">"isStartVariation"</span>,<span class="code-string">"isVertical"</span>,<span class="code-string">"mainVariationSide"</span>,<span class="code-string">"altVariationSide"</span>,<span class="code-string">"checks"</span>,<span class="code-string">"every"</span>,<span class="code-string">"check"</span>,<span class="code-string">"numberOfChecks"</span>,<span class="code-string">"fittingPlacement"</span>,<span class="code-string">"slice"</span>,<span class="code-string">"getAltAxis"</span>,<span class="code-string">"within"</span>,<span class="code-string">"mathMax"</span>,<span class="code-string">"mathMin"</span>,<span class="code-string">"withinMaxClamp"</span>,<span class="code-string">"v"</span>,<span class="code-string">"preventOverflow"</span>,<span class="code-string">"tether"</span>,<span class="code-string">"tetherOffset"</span>,<span class="code-string">"tetherOffsetValue"</span>,<span class="code-string">"normalizedTetherOffsetValue"</span>,<span class="code-string">"offsetModifierState"</span>,<span class="code-string">"mainSide"</span>,<span class="code-string">"altSide"</span>,<span class="code-string">"additive"</span>,<span class="code-string">"minLen"</span>,<span class="code-string">"maxLen"</span>,<span class="code-string">"arrowElement"</span>,<span class="code-string">"arrowRect"</span>,<span class="code-string">"arrowPaddingObject"</span>,<span class="code-string">"arrowPaddingMin"</span>,<span class="code-string">"arrowPaddingMax"</span>,<span class="code-string">"arrowLen"</span>,<span class="code-string">"minOffset"</span>,<span class="code-string">"maxOffset"</span>,<span class="code-string">"arrowOffsetParent"</span>,<span class="code-string">"clientOffset"</span>,<span class="code-string">"offsetModifierValue"</span>,<span class="code-string">"tetherMin"</span>,<span class="code-string">"tetherMax"</span>,<span class="code-string">"preventedOffset"</span>,<span class="code-string">"isOriginSide"</span>,<span class="code-string">"toPaddingObject"</span>,<span class="code-string">"minProp"</span>,<span class="code-string">"maxProp"</span>,<span class="code-string">"endDiff"</span>,<span class="code-string">"startDiff"</span>,<span class="code-string">"clientSize"</span>,<span class="code-string">"centerToReference"</span>,<span class="code-string">"center"</span>,<span class="code-string">"axisProp"</span>,<span class="code-string">"centerOffset"</span>,<span class="code-string">"querySelector"</span>,<span class="code-string">"getSideOffsets"</span>,<span class="code-string">"preventedOffsets"</span>,<span class="code-string">"isAnySideFullyClipped"</span>,<span class="code-string">"side"</span>,<span class="code-string">"hide"</span>,<span class="code-string">"referenceOverflow"</span>,<span class="code-string">"popperAltOverflow"</span>,<span class="code-string">"referenceClippingOffsets"</span>,<span class="code-string">"popperEscapeOffsets"</span>,<span class="code-string">"isReferenceHidden"</span>,<span class="code-string">"hasPopperEscaped"</span>,<span class="code-string">"eventListeners"</span>],<span class="code-attr">"mappings"</span>:<span class="code-string">";;;;;;;;;;EAIe,SAASA,SAAT,CAAmBC,IAAnB,EAAyB;EACtC,MAAIA,IAAI,IAAI,IAAZ,EAAkB;EAChB,WAAOC,MAAP;EACD;;EAED,MAAID,IAAI,CAACE,QAAL,OAAoB,iBAAxB,EAA2C;EACzC,QAAMC,aAAa,GAAGH,IAAI,CAACG,aAA3B;EACA,WAAOA,aAAa,GAAGA,aAAa,CAACC,WAAd,IAA6BH,MAAhC,GAAyCA,MAA7D;EACD;;EAED,SAAOD,IAAP;EACD;;ECVD,SAASK,SAAT,CAAmBL,IAAnB,EAAyB;EACvB,MAAMM,UAAU,GAAGP,SAAS,CAACC,IAAD,CAAT,CAAgBO,OAAnC;EACA,SAAOP,IAAI,YAAYM,UAAhB,IAA8BN,IAAI,YAAYO,OAArD;EACD;;EAID,SAASC,aAAT,CAAuBR,IAAvB,EAA6B;EAC3B,MAAMM,UAAU,GAAGP,SAAS,CAACC,IAAD,CAAT,CAAgBS,WAAnC;EACA,SAAOT,IAAI,YAAYM,UAAhB,IAA8BN,IAAI,YAAYS,WAArD;EACD;;EAID,SAASC,YAAT,CAAsBV,IAAtB,EAA4B;EAC1B;EACA,MAAI,OAAOW,UAAP,KAAsB,WAA1B,EAAuC;EACrC,WAAO,KAAP;EACD;;EACD,MAAML,UAAU,GAAGP,SAAS,CAACC,IAAD,CAAT,CAAg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AA,KAAK,CAACiB,aAAN,CAAoB3H,IAApB,IAA4B;EAC1BmS,IAAAA,wBAAwB,EAAxBA,wBAD0B;EAE1BC,IAAAA,mBAAmB,EAAnBA,mBAF0B;EAG1BC,IAAAA,iBAAiB,EAAjBA,iBAH0B;EAI1BC,IAAAA,gBAAgB,EAAhBA;EAJ0B,GAA5B;EAOA5L,EAAAA,KAAK,CAAC+B,UAAN,CAAiBpK,MAAjB,qBACKqI,KAAK,CAAC+B,UAAN,CAAiBpK,MADtB;EAEE,oCAAgCgU,iBAFlC;EAGE,2BAAuBC;EAHzB;EAKD;;;AAID,eAAgB;EACdtS,EAAAA,IAAI,EAAE,MADQ;EAEduC,EAAAA,OAAO,EAAE,IAFK;EAGd3B,EAAAA,KAAK,EAAE,MAHO;EAIdR,EAAAA,gBAAgB,EAAE,CAAC,iBAAD,CAJJ;EAKdU,EAAAA,EAAE,EAAEkR;EALU,CAAhB;;EC3DA,IAAM1J,kBAAgB,GAAG,CACvBiK,cADuB,EAEvBlL,eAFuB,EAGvBsE,eAHuB,EAIvBI,aAJuB,CAAzB;MAOMvD,cAAY,gBAAGJ,eAAe,CAAC;EAAEE,EAAAA,gBAAgB,EAAhBA;EAAF,CAAD;;MCF9BA,gBAAgB,GAAG,CACvBiK,cADuB,EAEvBlL,eAFuB,EAGvBsE,eAHuB,EAIvBI,aAJuB,EAKvBnE,QALuB,EAMvB6F,MANuB,EAOvB8B,iBAPuB,EAQvBzD,OARuB,EASvBkG,MATuB;MAYnBxJ,YAAY,gBAAGJ,eAAe,CAAC;EAAEE,EAAAA,gBAAgB,EAAhBA;EAAF,CAAD;;;;;;;;;;;;;;;;;;;"</span>}</code></td></tr><tr><td class="css-a4x74f">\</td><style data-emotion-css="jhhjkz">.css-jhhjkz{padding-left:10px;color:rgba(27,31,35,.3);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}</style><td class="css-jhhjkz">No newline at end of file</td></tr></tbody></table></div></div></div></div><style data-emotion-css="1teho9j">.css-1teho9j{margin-top:5rem;background:black;color:#aaa;}</style><footer class="css-1teho9j"><style data-emotion-css="1ui8put">.css-1ui8put{max-width:940px;padding:10px 20px;margin:0 auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}</style><div class="css-1ui8put"><p><span>Build: <!-- -->a7ebffa</span></p><p><span>© <!-- -->2022<!-- --> UNPKG</span></p><style data-emotion-css="la3nd4">.css-la3nd4{font-size:1.5rem;}</style><p class="css-la3nd4"><style data-emotion-css="bogekj">.css-bogekj{color:#aaa;display:inline-block;}.css-bogekj:hover{color:white;}</style><a href="https://twitter.com/unpkg" class="css-bogekj"><style data-emotion-css="i6dzq1">.css-i6dzq1{vertical-align:text-bottom;}</style><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 512 512" class="css-i6dzq1" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg></a><style data-emotion-css="3czw03">.css-3czw03{color:#aaa;display:inline-block;margin-left:1rem;}.css-3czw03:hover{color:white;}</style><a href="https://github.com/mjackson/unpkg" class="css-3czw03"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 496 512" class="css-i6dzq1" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg></a></p></div></footer></div><script src="/react@16.8.6/umd/react.production.min.js"></script><script src="/react-dom@16.8.6/umd/react-dom.production.min.js"></script><script src="/@emotion/core@10.0.6/dist/core.umd.min.js"></script><script>'use strict';(function(t,A,c){function w(){w=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var e=arguments[b],c;for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(a[c]=e[c])}return a};return w.apply(this,arguments)}function P(a,b){if(null==a)return{};var e={},c=Object.keys(a),d;for(d=0;d<c.length;d++){var h=c[d];0<=b.indexOf(h)||(e[h]=a[h])}return e}function Q(a,b){b||(b=a.slice(0));a.raw=b;return a}function R(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,
+"default")?a["default"]:a}function D(a,b){return b={exports:{}},a(b,b.exports),b.exports}function J(a,b,e,c,d){for(var g in a)if(ua(a,g)){try{if("function"!==typeof a[g]){var r=Error((c||"React class")+": "+e+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[g]+"`.");r.name="Invariant Violation";throw r;}var k=a[g](b,g,c,e,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(q){k=q}!k||k instanceof Error||K((c||"React class")+": type specification of "+
+e+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof k+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");if(k instanceof Error&&!(k.message in L)){L[k.message]=!0;var B=d?d():"";K("Failed "+e+" type: "+k.message+(null!=B?B:""))}}}function G(){return null}function S(a){var b,e=a.children;a=a.css;return c.jsx("div",{css:w((b={border:"1px solid #dfe2e5",
+borderRadius:3},b["@media (max-width: 700px)"]={borderRightWidth:0,borderLeftWidth:0},b),a)},e)}function T(a){var b,e=a.children;a=a.css;return c.jsx("div",{css:w((b={padding:10,background:"#f6f8fa",color:"#424242",border:"1px solid #d1d5da",borderTopLeftRadius:3,borderTopRightRadius:3,margin:"-1px -1px 0",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},b["@media (max-width: 700px)"]={paddingRight:20,paddingLeft:20},b),a)},e)}function U(a){return a&&a.map(function(a,
+c){return t.createElement(a.tag,z({key:c},a.attr),U(a.child))})}function E(a){return function(b){return t.createElement(va,z({attr:z({},a.attr)},b),U(a.child))}}function va(a){var b=function(b){var c=a.size||b.size||"1em";if(b.className)var e=b.className;a.className&&(e=(e?e+" ":"")+a.className);var h=a.attr,r=a.title,k=["attr","title"],B={},q;for(q in a)Object.prototype.hasOwnProperty.call(a,q)&&0>k.indexOf(q)&&(B[q]=a[q]);if(null!=a&&"function"===typeof Object.getOwnPropertySymbols){var p=0;for(q=
+Object.getOwnPropertySymbols(a);p<q.length;p++)0>k.indexOf(q[p])&&(B[q[p]]=a[q[p]])}return t.createElement("svg",z({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},b.attr,h,B,{className:e,style:z({color:a.color||b.color},b.style,a.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),r&&t.createElement("title",null,r),a.children)};return void 0!==V?t.createElement(V.Consumer,null,function(a){return b(a)}):b(W)}function F(a,b){var e=b.css;b=P(b,["css"]);return c.jsx(a,w({css:w({},
+e,{verticalAlign:"text-bottom"})},b))}function wa(a){return F(X,a)}function xa(a){return F(Y,a)}function ya(a){return F(Z,a)}function za(a){return F(aa,a)}function Aa(a){return F(ba,a)}function ca(a){var b=a.path,e=a.details,g=Object.keys(e).reduce(function(a,b){var c=a.subdirs,g=a.files;b=e[b];"directory"===b.type?c.push(b):"file"===b.type&&g.push(b);return a},{subdirs:[],files:[]});a=g.subdirs;g=g.files;a.sort(da("path"));g.sort(da("path"));var d=[];"/"!==b&&d.push(c.jsx("tr",{key:".."},c.jsx("td",
+{css:M}),c.jsx("td",{css:y},c.jsx("a",{title:"Parent directory",href:"../",css:N},"..")),c.jsx("td",{css:y}),c.jsx("td",{css:O})));a.forEach(function(a){a=a.path.substr(1<b.length?b.length+1:1);var e=a+"/";d.push(c.jsx("tr",{key:a},c.jsx("td",{css:M},c.jsx(ya,null)),c.jsx("td",{css:y},c.jsx("a",{title:a,href:e,css:N},a)),c.jsx("td",{css:y},"-"),c.jsx("td",{css:O},"-")))});g.forEach(function(a){var e=a.size,g=a.contentType;a=a.path.substr(1<b.length?b.length+1:1);d.push(c.jsx("tr",{key:a},c.jsx("td",
+{css:M},"text/plain"===g||"text/markdown"===g?c.jsx(wa,null):c.jsx(xa,null)),c.jsx("td",{css:y},c.jsx("a",{title:a,href:a,css:N},a)),c.jsx("td",{css:y},ea(e)),c.jsx("td",{css:O},g)))});var h=[];0<g.length&&h.push(g.length+" file"+(1===g.length?"":"s"));0<a.length&&h.push(a.length+" folder"+(1===a.length?"":"s"));return c.jsx(S,null,c.jsx(T,null,c.jsx("span",null,h.join(", "))),c.jsx("table",{css:{width:"100%",borderCollapse:"collapse",borderRadius:2,background:"#fff","@media (max-width: 700px)":{"& th + th + th + th, & td + td + td + td":{display:"none"}},
+"& tr:first-of-type td":{borderTop:0}}},c.jsx("thead",null,c.jsx("tr",null,c.jsx("th",null,c.jsx(H,null,"Icon")),c.jsx("th",null,c.jsx(H,null,"Name")),c.jsx("th",null,c.jsx(H,null,"Size")),c.jsx("th",null,c.jsx(H,null,"Content Type")))),c.jsx("tbody",null,d)))}function Ba(a){a=a.split("/");return a[a.length-1]}function Ca(a){var b=a.uri;return c.jsx("div",{css:{padding:20,textAlign:"center"}},c.jsx("img",{alt:Ba(a.path),src:b}))}function Da(a){a=a.highlights.slice(0);var b=a.length&&""===a[a.length-
+1];b&&a.pop();return c.jsx("div",{className:"code-listing",css:{overflowX:"auto",overflowY:"hidden",paddingTop:5,paddingBottom:5}},c.jsx("table",{css:{border:"none",borderCollapse:"collapse",borderSpacing:0}},c.jsx("tbody",null,a.map(function(a,b){var e=b+1;return c.jsx("tr",{key:b},c.jsx("td",{id:"L"+e,css:{paddingLeft:10,paddingRight:10,color:"rgba(27,31,35,.3)",textAlign:"right",verticalAlign:"top",width:"1%",minWidth:50,userSelect:"none"}},c.jsx("span",null,e)),c.jsx("td",{id:"LC"+e,css:{paddingLeft:10,
+paddingRight:10,color:"#24292e",whiteSpace:"pre"}},c.jsx("code",{dangerouslySetInnerHTML:{__html:a}})))}),!b&&c.jsx("tr",{key:"no-newline"},c.jsx("td",{css:{paddingLeft:10,paddingRight:10,color:"rgba(27,31,35,.3)",textAlign:"right",verticalAlign:"top",width:"1%",minWidth:50,userSelect:"none"}},"\\"),c.jsx("td",{css:{paddingLeft:10,color:"rgba(27,31,35,.3)",userSelect:"none"}},"No newline at end of file")))))}function Ea(){return c.jsx("div",{css:{padding:20}},c.jsx("p",{css:{textAlign:"center"}},
+"No preview available."))}function fa(a){var b=a.packageName,e=a.packageVersion,g=a.path;a=a.details;var d=a.highlights,h=a.uri,r=a.language;return c.jsx(S,null,c.jsx(T,null,c.jsx("span",null,ea(a.size)),c.jsx("span",null,r),c.jsx("span",null,c.jsx("a",{href:"/"+b+"@"+e+g,css:{display:"inline-block",marginLeft:8,padding:"2px 8px",textDecoration:"none",fontWeight:600,fontSize:"0.9rem",color:"#24292e",backgroundColor:"#eff3f6",border:"1px solid rgba(27,31,35,.2)",borderRadius:3,":hover":{backgroundColor:"#e6ebf1",
+borderColor:"rgba(27,31,35,.35)"},":active":{backgroundColor:"#e9ecef",borderColor:"rgba(27,31,35,.35)",boxShadow:"inset 0 0.15em 0.3em rgba(27,31,35,.15)"}}},"View Raw"))),d?c.jsx(Da,{highlights:d}):h?c.jsx(Ca,{path:g,uri:h}):c.jsx(Ea,null))}function ha(){var a=Q(["\n .code-listing {\n background: #fbfdff;\n color: #383a42;\n }\n .code-comment,\n .code-quote {\n color: #a0a1a7;\n font-style: italic;\n }\n .code-doctag,\n .code-keyword,\n .code-link,\n .code-formula {\n color: #a626a4;\n }\n .code-section,\n .code-name,\n .code-selector-tag,\n .code-deletion,\n .code-subst {\n color: #e45649;\n }\n .code-literal {\n color: #0184bb;\n }\n .code-string,\n .code-regexp,\n .code-addition,\n .code-attribute,\n .code-meta-string {\n color: #50a14f;\n }\n .code-built_in,\n .code-class .code-title {\n color: #c18401;\n }\n .code-attr,\n .code-variable,\n .code-template-variable,\n .code-type,\n .code-selector-class,\n .code-selector-attr,\n .code-selector-pseudo,\n .code-number {\n color: #986801;\n }\n .code-symbol,\n .code-bullet,\n .code-meta,\n .code-selector-id,\n .code-title {\n color: #4078f2;\n }\n .code-emphasis {\n font-style: italic;\n }\n .code-strong {\n font-weight: bold;\n }\n"]);
+ha=function(){return a};return a}function ia(){var a=Q(["\n html {\n box-sizing: border-box;\n }\n *,\n *:before,\n *:after {\n box-sizing: inherit;\n }\n\n html,\n body,\n #root {\n height: 100%;\n margin: 0;\n }\n\n body {\n ","\n font-size: 16px;\n line-height: 1.5;\n overflow-wrap: break-word;\n background: white;\n color: black;\n }\n\n code {\n ","\n }\n\n th,\n td {\n padding: 0;\n }\n\n select {\n font-size: inherit;\n }\n\n #root {\n display: flex;\n flex-direction: column;\n }\n"]);
+ia=function(){return a};return a}function ja(a){var b=a.css;a=P(a,["css"]);return c.jsx("a",w({},a,{css:w({color:"#0076ff",textDecoration:"none",":hover":{textDecoration:"underline"}},b)}))}function Fa(){return c.jsx("header",{css:{marginTop:"2rem"}},c.jsx("h1",{css:{textAlign:"center",fontSize:"3rem",letterSpacing:"0.05em"}},c.jsx("a",{href:"/",css:{color:"#000",textDecoration:"none"}},"UNPKG")))}function Ga(a){var b=a.packageName,e=a.packageVersion,g=a.availableVersions;a=a.filename;var d=[];if("/"===
+a)d.push(b);else{var h="/browse/"+b+"@"+e;d.push(c.jsx(ja,{href:h+"/"},b));b=a.replace(/^\/+/,"").replace(/\/+$/,"").split("/");a=b.pop();b.forEach(function(a){h+="/"+a;d.push(c.jsx(ja,{href:h+"/"},a))});d.push(a)}return c.jsx("header",{css:{display:"flex",flexDirection:"row",alignItems:"center","@media (max-width: 700px)":{flexDirection:"column-reverse",alignItems:"flex-start"}}},c.jsx("h1",{css:{fontSize:"1.5rem",fontWeight:"normal",flex:1,wordBreak:"break-all"}},c.jsx("nav",null,d.map(function(a,
+b,e){return c.jsx(t.Fragment,{key:b},0!==b&&c.jsx("span",{css:{paddingLeft:5,paddingRight:5}},"/"),b===e.length-1?c.jsx("strong",null,a):a)}))),c.jsx(Ha,{packageVersion:e,availableVersions:g,onChange:function(a){window.location.href=window.location.href.replace("@"+e,"@"+a)}}))}function Ha(a){var b=a.onChange;return c.jsx("p",{css:{marginLeft:20,"@media (max-width: 700px)":{marginLeft:0,marginBottom:0}}},c.jsx("label",null,"Version:"," ",c.jsx("select",{name:"version",defaultValue:a.packageVersion,
+onChange:function(a){b&&b(a.target.value)},css:{appearance:"none",cursor:"pointer",padding:"4px 24px 4px 8px",fontWeight:600,fontSize:"0.9em",color:"#24292e",border:"1px solid rgba(27,31,35,.2)",borderRadius:3,backgroundColor:"#eff3f6",backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAKCAYAAAC9vt6cAAAAAXNSR0IArs4c6QAAARFJREFUKBVjZAACNS39RhBNKrh17WI9o4quoT3Dn78HSNUMUs/CzOTI/O7Vi4dCYpJ3/jP+92BkYGAlyiBGhm8MjIxJt65e3MQM0vDu9YvLYmISILYZELOBxHABRkaGr0yMzF23r12YDFIDNgDEePv65SEhEXENBkYGFSAXuyGMjF8Z/jOsvX3tYiFIDwgwQSgIaaijnvj/P8M5IO8HsjiY/f//D4b//88A1SQhywG9jQr09PS4v/1mPAeUUPzP8B8cJowMjL+Bqu6xMQmaXL164AuyDgwDQJLa2qYSP//9vARkCoMVMzK8YeVkNbh+9uxzMB+JwGoASF5Vx0jz/98/18BqmZi171w9D2EjaaYKEwAEK00XQLdJuwAAAABJRU5ErkJggg==)",
+backgroundPosition:"right 8px center",backgroundRepeat:"no-repeat",backgroundSize:"auto 25%",":hover":{backgroundColor:"#e6ebf1",borderColor:"rgba(27,31,35,.35)"},":active":{backgroundColor:"#e9ecef",borderColor:"rgba(27,31,35,.35)",boxShadow:"inset 0 0.15em 0.3em rgba(27,31,35,.15)"}}},a.availableVersions.map(function(a){return c.jsx("option",{key:a,value:a},a)}))))}function Ia(a){var b=a.packageName,e=a.packageVersion;a=a.target;return"directory"===a.type?c.jsx(ca,{path:a.path,details:a.details}):
+"file"===a.type?c.jsx(fa,{packageName:b,packageVersion:e,path:a.path,details:a.details}):null}function ka(a){var b=a.packageName,e=a.packageVersion,g=a.availableVersions;g=void 0===g?[]:g;var d=a.filename;a=a.target;return c.jsx(t.Fragment,null,c.jsx(c.Global,{styles:Ja}),c.jsx(c.Global,{styles:Ka}),c.jsx("div",{css:{flex:"1 0 auto"}},c.jsx("div",{css:{maxWidth:940,padding:"0 20px",margin:"0 auto"}},c.jsx(Fa,null)),c.jsx("div",{css:{maxWidth:940,padding:"0 20px",margin:"0 auto"}},c.jsx(Ga,{packageName:b,
+packageVersion:e,availableVersions:g,filename:d})),c.jsx("div",{css:{maxWidth:940,padding:"0 20px",margin:"0 auto","@media (max-width: 700px)":{padding:0,margin:0}}},c.jsx(Ia,{packageName:b,packageVersion:e,target:a}))),c.jsx("footer",{css:{marginTop:"5rem",background:"black",color:"#aaa"}},c.jsx("div",{css:{maxWidth:940,padding:"10px 20px",margin:"0 auto",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"}},c.jsx("p",null,c.jsx("span",null,"Build: ","a7ebffa")),
+c.jsx("p",null,c.jsx("span",null,"\u00a9 ",(new Date).getFullYear()," UNPKG")),c.jsx("p",{css:{fontSize:"1.5rem"}},c.jsx("a",{href:"https://twitter.com/unpkg",css:{color:"#aaa",display:"inline-block",":hover":{color:"white"}}},c.jsx(za,null)),c.jsx("a",{href:"https://github.com/mjackson/unpkg",css:{color:"#aaa",display:"inline-block",":hover":{color:"white"},marginLeft:"1rem"}},c.jsx(Aa,null))))))}var la="default"in t?t["default"]:t;A=A&&A.hasOwnProperty("default")?A["default"]:A;var La="undefined"!==
+typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},m=D(function(a,b){function c(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case d:switch(a=a.type,a){case l:case f:case r:case m:case k:case v:return a;default:switch(a=a&&a.$$typeof,a){case p:case n:case q:return a;default:return b}}case x:case u:case h:return b}}}function g(a){return c(a)===f}Object.defineProperty(b,"__esModule",{value:!0});var d=
+(a="function"===typeof Symbol&&Symbol.for)?Symbol.for("react.element"):60103,h=a?Symbol.for("react.portal"):60106,r=a?Symbol.for("react.fragment"):60107,k=a?Symbol.for("react.strict_mode"):60108,m=a?Symbol.for("react.profiler"):60114,q=a?Symbol.for("react.provider"):60109,p=a?Symbol.for("react.context"):60110,l=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,n=a?Symbol.for("react.forward_ref"):60112,v=a?Symbol.for("react.suspense"):60113,u=a?Symbol.for("react.memo"):
+60115,x=a?Symbol.for("react.lazy"):60116;b.typeOf=c;b.AsyncMode=l;b.ConcurrentMode=f;b.ContextConsumer=p;b.ContextProvider=q;b.Element=d;b.ForwardRef=n;b.Fragment=r;b.Lazy=x;b.Memo=u;b.Portal=h;b.Profiler=m;b.StrictMode=k;b.Suspense=v;b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===r||a===f||a===m||a===k||a===v||"object"===typeof a&&null!==a&&(a.$$typeof===x||a.$$typeof===u||a.$$typeof===q||a.$$typeof===p||a.$$typeof===n)};b.isAsyncMode=function(a){return g(a)||
+c(a)===l};b.isConcurrentMode=g;b.isContextConsumer=function(a){return c(a)===p};b.isContextProvider=function(a){return c(a)===q};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===d};b.isForwardRef=function(a){return c(a)===n};b.isFragment=function(a){return c(a)===r};b.isLazy=function(a){return c(a)===x};b.isMemo=function(a){return c(a)===u};b.isPortal=function(a){return c(a)===h};b.isProfiler=function(a){return c(a)===m};b.isStrictMode=function(a){return c(a)===k};b.isSuspense=
+function(a){return c(a)===v}});R(m);var na=D(function(a,b){(function(){function a(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case h:switch(a=a.type,a){case f:case n:case k:case q:case m:case u:return a;default:switch(a=a&&a.$$typeof,a){case l:case v:case p:return a;default:return b}}case I:case x:case r:return b}}}function c(b){return a(b)===n}Object.defineProperty(b,"__esModule",{value:!0});var d="function"===typeof Symbol&&Symbol.for,h=d?Symbol.for("react.element"):60103,r=
+d?Symbol.for("react.portal"):60106,k=d?Symbol.for("react.fragment"):60107,m=d?Symbol.for("react.strict_mode"):60108,q=d?Symbol.for("react.profiler"):60114,p=d?Symbol.for("react.provider"):60109,l=d?Symbol.for("react.context"):60110,f=d?Symbol.for("react.async_mode"):60111,n=d?Symbol.for("react.concurrent_mode"):60111,v=d?Symbol.for("react.forward_ref"):60112,u=d?Symbol.for("react.suspense"):60113,x=d?Symbol.for("react.memo"):60115,I=d?Symbol.for("react.lazy"):60116;d=function(){};var Ma=function(a){for(var b=
+arguments.length,f=Array(1<b?b-1:0),c=1;c<b;c++)f[c-1]=arguments[c];var n=0;b="Warning: "+a.replace(/%s/g,function(){return f[n++]});"undefined"!==typeof console&&console.warn(b);try{throw Error(b);}catch(Xa){}},Na=d=function(a,b){if(void 0===b)throw Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!a){for(var f=arguments.length,c=Array(2<f?f-2:0),n=2;n<f;n++)c[n-2]=arguments[n];Ma.apply(void 0,[b].concat(c))}},ma=!1;b.typeOf=a;b.AsyncMode=f;b.ConcurrentMode=
+n;b.ContextConsumer=l;b.ContextProvider=p;b.Element=h;b.ForwardRef=v;b.Fragment=k;b.Lazy=I;b.Memo=x;b.Portal=r;b.Profiler=q;b.StrictMode=m;b.Suspense=u;b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===k||a===n||a===q||a===m||a===u||"object"===typeof a&&null!==a&&(a.$$typeof===I||a.$$typeof===x||a.$$typeof===p||a.$$typeof===l||a.$$typeof===v)};b.isAsyncMode=function(b){ma||(ma=!0,Na(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API."));
+return c(b)||a(b)===f};b.isConcurrentMode=c;b.isContextConsumer=function(b){return a(b)===l};b.isContextProvider=function(b){return a(b)===p};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===h};b.isForwardRef=function(b){return a(b)===v};b.isFragment=function(b){return a(b)===k};b.isLazy=function(b){return a(b)===I};b.isMemo=function(b){return a(b)===x};b.isPortal=function(b){return a(b)===r};b.isProfiler=function(b){return a(b)===q};b.isStrictMode=function(b){return a(b)===
+m};b.isSuspense=function(b){return a(b)===u}})()});R(na);var oa=D(function(a){a.exports=na}),pa=Object.getOwnPropertySymbols,Oa=Object.prototype.hasOwnProperty,Pa=Object.prototype.propertyIsEnumerable,Qa=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=
+a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(g){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var g,d=1;d<arguments.length;d++){var h=Object(arguments[d]);for(var r in h)Oa.call(h,r)&&(c[r]=h[r]);if(pa){g=pa(h);for(var k=0;k<g.length;k++)Pa.call(h,g[k])&&(c[g[k]]=h[g[k]])}}return c},K=function(){},L={},ua=Function.call.bind(Object.prototype.hasOwnProperty);
+K=function(a){a="Warning: "+a;"undefined"!==typeof console&&console.error(a);try{throw Error(a);}catch(b){}};J.resetWarningCache=function(){L={}};var Ra=Function.call.bind(Object.prototype.hasOwnProperty),C=function(){};C=function(a){a="Warning: "+a;"undefined"!==typeof console&&console.error(a);try{throw Error(a);}catch(b){}};var Sa=function(a,b){function c(a,b){return a===b?0!==a||1/a===1/b:a!==a&&b!==b}function g(a){this.message=a;this.stack=""}function d(a){function c(c,n,v,d,e,u,h){d=d||"<<anonymous>>";
+u=u||v;if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==h){if(b)throw c=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"),c.name="Invariant Violation",c;"undefined"!==typeof console&&(h=d+":"+v,!f[h]&&3>l&&(C("You are manually calling a React.PropTypes validation function for the `"+u+"` prop on `"+d+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),
+f[h]=!0,l++))}return null==n[v]?c?null===n[v]?new g("The "+e+" `"+u+"` is marked as required "+("in `"+d+"`, but its value is `null`.")):new g("The "+e+" `"+u+"` is marked as required in "+("`"+d+"`, but its value is `undefined`.")):null:a(n,v,d,e,u)}var f={},l=0,d=c.bind(null,!1);d.isRequired=c.bind(null,!0);return d}function h(a){return d(function(b,c,f,d,l,e){b=b[c];return k(b)!==a?(b=m(b),new g("Invalid "+d+" `"+l+"` of type "+("`"+b+"` supplied to `"+f+"`, expected ")+("`"+a+"`."))):null})}function r(b){switch(typeof b){case "number":case "string":case "undefined":return!0;
+case "boolean":return!b;case "object":if(Array.isArray(b))return b.every(r);if(null===b||a(b))return!0;var c=b&&(p&&b[p]||b["@@iterator"]);var f="function"===typeof c?c:void 0;if(f)if(c=f.call(b),f!==b.entries)for(;!(b=c.next()).done;){if(!r(b.value))return!1}else for(;!(b=c.next()).done;){if((b=b.value)&&!r(b[1]))return!1}else return!1;return!0;default:return!1}}function k(a){var b=typeof a;return Array.isArray(a)?"array":a instanceof RegExp?"object":"symbol"===b||a&&("Symbol"===a["@@toStringTag"]||
+"function"===typeof Symbol&&a instanceof Symbol)?"symbol":b}function m(a){if("undefined"===typeof a||null===a)return""+a;var b=k(a);if("object"===b){if(a instanceof Date)return"date";if(a instanceof RegExp)return"regexp"}return b}function q(a){a=m(a);switch(a){case "array":case "object":return"an "+a;case "boolean":case "date":case "regexp":return"a "+a;default:return a}}var p="function"===typeof Symbol&&Symbol.iterator,l={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),
+string:h("string"),symbol:h("symbol"),any:d(G),arrayOf:function(a){return d(function(b,c,f,d,l){if("function"!==typeof a)return new g("Property `"+l+"` of component `"+f+"` has invalid PropType notation inside arrayOf.");b=b[c];if(!Array.isArray(b))return b=k(b),new g("Invalid "+d+" `"+l+"` of type "+("`"+b+"` supplied to `"+f+"`, expected an array."));for(c=0;c<b.length;c++){var n=a(b,c,f,d,l+"["+c+"]","SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");if(n instanceof Error)return n}return null})},
+element:function(){return d(function(b,c,d,l,e){b=b[c];return a(b)?null:(b=k(b),new g("Invalid "+l+" `"+e+"` of type "+("`"+b+"` supplied to `"+d+"`, expected a single ReactElement.")))})}(),elementType:function(){return d(function(a,b,c,d,l){a=a[b];return oa.isValidElementType(a)?null:(a=k(a),new g("Invalid "+d+" `"+l+"` of type "+("`"+a+"` supplied to `"+c+"`, expected a single ReactElement type.")))})}(),instanceOf:function(a){return d(function(b,c,f,d,l){if(!(b[c]instanceof a)){var n=a.name||
+"<<anonymous>>";b=b[c];b=b.constructor&&b.constructor.name?b.constructor.name:"<<anonymous>>";return new g("Invalid "+d+" `"+l+"` of type "+("`"+b+"` supplied to `"+f+"`, expected ")+("instance of `"+n+"`."))}return null})},node:function(){return d(function(a,b,c,d,l){return r(a[b])?null:new g("Invalid "+d+" `"+l+"` supplied to "+("`"+c+"`, expected a ReactNode."))})}(),objectOf:function(a){return d(function(b,c,f,d,l){if("function"!==typeof a)return new g("Property `"+l+"` of component `"+f+"` has invalid PropType notation inside objectOf.");
+b=b[c];c=k(b);if("object"!==c)return new g("Invalid "+d+" `"+l+"` of type "+("`"+c+"` supplied to `"+f+"`, expected an object."));for(var n in b)if(Ra(b,n)&&(c=a(b,n,f,d,l+"."+n,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"),c instanceof Error))return c;return null})},oneOf:function(a){return Array.isArray(a)?d(function(b,f,d,l,e){b=b[f];for(f=0;f<a.length;f++)if(c(b,a[f]))return null;f=JSON.stringify(a,function(a,b){return"symbol"===m(b)?String(b):b});return new g("Invalid "+l+" `"+e+"` of value `"+
+String(b)+"` "+("supplied to `"+d+"`, expected one of "+f+"."))}):(1<arguments.length?C("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):C("Invalid argument supplied to oneOf, expected an array."),G)},oneOfType:function(a){if(!Array.isArray(a))return C("Invalid argument supplied to oneOfType, expected an instance of array."),G;for(var b=0;b<a.length;b++){var c=a[b];if("function"!==
+typeof c)return C("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(c)+" at index "+b+"."),G}return d(function(b,c,f,d,l){for(var e=0;e<a.length;e++)if(null==(0,a[e])(b,c,f,d,l,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"))return null;return new g("Invalid "+d+" `"+l+"` supplied to "+("`"+f+"`."))})},shape:function(a){return d(function(b,c,d,l,f){b=b[c];c=k(b);if("object"!==c)return new g("Invalid "+l+" `"+f+"` of type `"+c+"` "+("supplied to `"+d+"`, expected `object`."));
+for(var e in a)if(c=a[e])if(c=c(b,e,d,l,f+"."+e,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"))return c;return null})},exact:function(a){return d(function(b,c,d,l,f){var e=b[c],n=k(e);if("object"!==n)return new g("Invalid "+l+" `"+f+"` of type `"+n+"` "+("supplied to `"+d+"`, expected `object`."));n=Qa({},b[c],a);for(var h in n){n=a[h];if(!n)return new g("Invalid "+l+" `"+f+"` key `"+h+"` supplied to `"+d+"`.\nBad object: "+JSON.stringify(b[c],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(a),
+null," "));if(n=n(e,h,d,l,f+"."+h,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"))return n}return null})}};g.prototype=Error.prototype;l.checkPropTypes=J;l.resetWarningCache=J.resetWarningCache;return l.PropTypes=l};m=D(function(a){a.exports=Sa(oa.isElement,!0)});var Ta=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],g;for(g in c)Object.prototype.hasOwnProperty.call(c,g)&&(a[g]=c[g])}return a},Ua={border:0,clip:"rect(0 0 0 0)",height:"1px",width:"1px",margin:"-1px",
+padding:0,overflow:"hidden",position:"absolute"},H=function(a){return la.createElement("div",Ta({style:Ua},a))},qa=D(function(a){(function(b,c){a.exports=c()})(La,function(){function a(a){if(!a)return!0;if(!d(a)||0!==a.length)for(var b in a)if(q.call(a,b))return!1;return!0}function c(a){return"number"===typeof a||"[object Number]"===t.call(a)}function g(a){return"string"===typeof a||"[object String]"===t.call(a)}function d(a){return"object"===typeof a&&"number"===typeof a.length&&"[object Array]"===
+t.call(a)}function h(a){var b=parseInt(a);return b.toString()===a?b:a}function m(b,d,e,k){c(d)&&(d=[d]);if(a(d))return b;if(g(d))return m(b,d.split("."),e,k);var f=h(d[0]);if(1===d.length)return d=b[f],void 0!==d&&k||(b[f]=e),d;void 0===b[f]&&(c(f)?b[f]=[]:b[f]={});return m(b[f],d.slice(1),e,k)}function k(b,f){c(f)&&(f=[f]);if(!a(b)){if(a(f))return b;if(g(f))return k(b,f.split("."));var e=h(f[0]),l=b[e];if(1===f.length)void 0!==l&&(d(b)?b.splice(e,1):delete b[e]);else if(void 0!==b[e])return k(b[e],
+f.slice(1));return b}}var t=Object.prototype.toString,q=Object.prototype.hasOwnProperty,p={ensureExists:function(a,b,c){return m(a,b,c,!0)},set:function(a,b,c,d){return m(a,b,c,d)},insert:function(a,b,c,e){var f=p.get(a,b);e=~~e;d(f)||(f=[],p.set(a,b,f));f.splice(e,0,c)},empty:function(b,f){if(a(f))return b;if(!a(b)){var e,h;if(!(e=p.get(b,f)))return b;if(g(e))return p.set(b,f,"");if("boolean"===typeof e||"[object Boolean]"===t.call(e))return p.set(b,f,!1);if(c(e))return p.set(b,f,0);if(d(e))e.length=
+0;else if("object"===typeof e&&"[object Object]"===t.call(e))for(h in e)q.call(e,h)&&delete e[h];else return p.set(b,f,null)}},push:function(a,b){var c=p.get(a,b);d(c)||(c=[],p.set(a,b,c));c.push.apply(c,Array.prototype.slice.call(arguments,2))},coalesce:function(a,b,c){for(var d,e=0,f=b.length;e<f;e++)if(void 0!==(d=p.get(a,b[e])))return d;return c},get:function(b,d,e){c(d)&&(d=[d]);if(a(d))return b;if(a(b))return e;if(g(d))return p.get(b,d.split("."),e);var f=h(d[0]);return 1===d.length?void 0===
+b[f]?e:b[f]:p.get(b[f],d.slice(1),e)},del:function(a,b){return k(a,b)}};return p})});var ra=function(a){return function(b){return typeof b===a}};var Va=function(a,b){var c=1,g=b||function(a,b){return b};"-"===a[0]&&(c=-1,a=a.substr(1));return function(b,e){var d;b=g(a,qa.get(b,a));e=g(a,qa.get(e,a));b<e&&(d=-1);b>e&&(d=1);b===e&&(d=0);return d*c}};var da=function(){var a=Array.prototype.slice.call(arguments),b=a.filter(ra("string")),c=a.filter(ra("function"))[0];return function(a,d){for(var e=b.length,
+g=0,k=0;0===g&&k<e;)g=Va(b[k],c)(a,d),k++;return g}};let sa="B kB MB GB TB PB EB ZB YB".split(" "),ta=(a,b)=>{let c=a;"string"===typeof b?c=a.toLocaleString(b):!0===b&&(c=a.toLocaleString());return c};var ea=(a,b)=>{if(!Number.isFinite(a))throw new TypeError(`Expected a finite number, got ${typeof a}: ${a}`);b=Object.assign({},b);if(b.signed&&0===a)return" 0 B";var c=0>a;let g=c?"-":b.signed?"+":"";c&&(a=-a);if(1>a)return a=ta(a,b.locale),g+a+" B";c=Math.min(Math.floor(Math.log10(a)/3),sa.length-
+1);a=Number((a/Math.pow(1E3,c)).toPrecision(3));a=ta(a,b.locale);return g+a+" "+sa[c]},W={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},V=t.createContext&&t.createContext(W),z=function(){z=Object.assign||function(a){for(var b,c=1,g=arguments.length;c<g;c++){b=arguments[c];for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d])}return a};return z.apply(this,arguments)},Y=function(a){return E({tag:"svg",attr:{viewBox:"0 0 12 16"},child:[{tag:"path",attr:{fillRule:"evenodd",
+d:"M8.5 1H1c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V4.5L8.5 1zM11 14H1V2h7l3 3v9zM5 6.98L3.5 8.5 5 10l-.5 1L2 8.5 4.5 6l.5.98zM7.5 6L10 8.5 7.5 11l-.5-.98L8.5 8.5 7 7l.5-1z"}}]})(a)};Y.displayName="GoFileCode";var Z=function(a){return E({tag:"svg",attr:{viewBox:"0 0 14 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M13 4H7V3c0-.66-.31-1-1-1H1c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM6 4H1V3h5v1z"}}]})(a)};Z.displayName="GoFileDirectory";var X=function(a){return E({tag:"svg",
+attr:{viewBox:"0 0 12 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 5H2V4h4v1zM2 8h7V7H2v1zm0 2h7V9H2v1zm0 2h7v-1H2v1zm10-7.5V14c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V2c0-.55.45-1 1-1h7.5L12 4.5zM11 5L8 2H1v12h10V5z"}}]})(a)};X.displayName="GoFile";var ba=function(a){return E({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"}}]})(a)};
+ba.displayName="FaGithub";var aa=function(a){return E({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"}}]})(a)};
+aa.displayName="FaTwitter";var N={color:"#0076ff",textDecoration:"none",":hover":{textDecoration:"underline"}},y={paddingTop:6,paddingRight:3,paddingBottom:6,paddingLeft:3,borderTop:"1px solid #eaecef"},M=w({},y,{color:"#424242",width:17,paddingRight:2,paddingLeft:10,"@media (max-width: 700px)":{paddingLeft:20}}),O=w({},y,{textAlign:"right",paddingRight:10,"@media (max-width: 700px)":{paddingRight:20}});ca.propTypes={path:m.string.isRequired,details:m.objectOf(m.shape({path:m.string.isRequired,type:m.oneOf(["directory",
+"file"]).isRequired,contentType:m.string,integrity:m.string,size:m.number})).isRequired};fa.propTypes={path:m.string.isRequired,details:m.shape({contentType:m.string.isRequired,highlights:m.arrayOf(m.string),uri:m.string,integrity:m.string.isRequired,language:m.string.isRequired,size:m.number.isRequired}).isRequired};var Ja=c.css(ia(),'\nfont-family: -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n "Roboto",\n "Oxygen",\n "Ubuntu",\n "Cantarell",\n "Fira Sans",\n "Droid Sans",\n "Helvetica Neue",\n sans-serif;\n',
+"\nfont-family: Menlo,\n Monaco,\n Lucida Console,\n Liberation Mono,\n DejaVu Sans Mono,\n Bitstream Vera Sans Mono,\n Courier New,\n monospace;\n"),Ka=c.css(ha()),Wa=m.shape({path:m.string.isRequired,type:m.oneOf(["directory","file"]).isRequired,details:m.object.isRequired});ka.propTypes={packageName:m.string.isRequired,packageVersion:m.string.isRequired,availableVersions:m.arrayOf(m.string),filename:m.string.isRequired,target:Wa.isRequired};A.hydrate(la.createElement(ka,window.__DATA__||
+{}),document.getElementById("root"))})(React,ReactDOM,emotionCore);
+</script></body></html> \ No newline at end of file