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AAO,OAAAC,EAAQ,QAAAwM,EAAQ,EAAG,CACnF,IAAIC,EACJ,OAAOA,EAAK,cAAsB,WAAgB,CAC1C,aAAc,CACV,MAAM,GAAG,SAAS,EAClB,KAAK,GAAK,cAAcL,IAAW,EACvC,CACA,QAAS,CACL,MAAMK,GAAK,KAAK,MAAO,CAAE,KAAAN,GAAM,MAAAO,GAAO,MAAAC,GAAO,gBAAAC,CAAgB,EAAIH,GAAII,MAAQ,UAAOJ,GAAI,CAAC,OAAQ,QAAS,QAAS,iBAAiB,CAAC,EAC/HK,GAAW,EAAQH,GACnBI,GAAcb,EAAQC,EAAI,EAC1Ba,EAAY,MAAS,OAAO,WAAWD,EAAW,EAClDnO,EAAQgO,EAAkB,KAAO,CAAE,cAAe,GAAGI,CAAS,IAAK,EACnEC,EAAU,CAACX,GAASC,GAASxM,EAAOC,CAAM,EAAE,KAAK,GAAG,EAC1D,OAAQ,gBAAoB,MAAO,OAAO,OAAO,CAAE,MAAOpB,EAAO,KAAM8N,GAAO,OAAQK,GAAa,MAAOA,GAAa,QAASE,EAAS,kBAAmBH,GAAW,KAAK,GAAK,KAAM,cAAeA,GAAW,KAAO,GAAM,KAAM,KAAM,EAAGD,EAAK,EAC9OC,IAAY,gBAAoB,QAAS,CAAE,GAAI,KAAK,EAAG,EAAGH,EAAK,EAC/D,gBAAoB,OAAQ,CAAE,EAAGH,EAAQ,CAAC,CAAC,CACnD,CACJ,EACAC,EAAG,YAAcjQ,EACjBiQ,EAAG,aAAe,CACd,MAAO,eACP,KAAMR,EAAS,GACf,gBAAiB,EACrB,EACAQ,CACR,C","sources":["webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getBoundingClientRect.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScroll.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getHTMLElementScroll.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeScroll.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScrollBarX.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getComputedStyle.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/isScrollParent.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getCompositeRect.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getLayoutRect.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getParentNode.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getScrollParent.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/listScrollParents.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/isTableElement.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getOffsetParent.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/orderModifiers.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/debounce.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/mergeByName.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/index.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/eventListeners.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getBasePlacement.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getVariation.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getMainAxisFromPlacement.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/computeOffsets.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/popperOffsets.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/computeStyles.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/applyStyles.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/offset.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getOppositePlacement.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getOppositeVariationPlacement.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getViewportRect.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentRect.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/contains.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/rectToClientRect.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getClippingRect.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getFreshSideObject.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/mergePaddingObject.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/expandToHashMap.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/detectOverflow.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/computeAutoPlacement.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/flip.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getAltAxis.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/within.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/preventOverflow.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/arrow.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/hide.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/popper.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/react-popper/usePopper.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/FindRefWrapper.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/Popper.js","webpack://porta/./node_modules/@patternfly/react-core/dist/esm/helpers/useIsomorphicLayout.js","webpack://porta/./node_modules/@patternfly/react-core/node_modules/@patternfly/react-icons/dist/esm/createIcon.js"],"sourcesContent":["/**\n * @param element\n */\nexport default function getBoundingClientRect(element) {\n const rect = element.getBoundingClientRect();\n return {\n width: rect.width,\n height: rect.height,\n top: rect.top,\n right: rect.right,\n bottom: rect.bottom,\n left: rect.left,\n x: rect.left,\n y: rect.top\n };\n}\n//# sourceMappingURL=getBoundingClientRect.js.map","// @ts-nocheck\n/* :: import type { Window } from '../types'; */\n/* :: declare function getWindow(node: Node | Window): Window; */\n/**\n * @param node\n */\nexport default function getWindow(node) {\n if (node.toString() !== '[object Window]') {\n const ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView : window;\n }\n return node;\n}\n//# sourceMappingURL=getWindow.js.map","// @ts-nocheck\nimport getWindow from './getWindow';\n/**\n * @param node\n */\nexport default function getWindowScroll(node) {\n const win = getWindow(node);\n const scrollLeft = win.pageXOffset;\n const scrollTop = win.pageYOffset;\n return {\n scrollLeft,\n scrollTop\n };\n}\n//# sourceMappingURL=getWindowScroll.js.map","// @ts-nocheck\nimport getWindow from './getWindow';\n/* :: declare function isElement(node: mixed): boolean %checks(node instanceof\n Element); */\n/**\n * @param node\n */\nfunction isElement(node) {\n const OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n/* :: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof\n HTMLElement); */\n/**\n * @param node\n */\nfunction isHTMLElement(node) {\n const OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\nexport { isElement, isHTMLElement };\n//# sourceMappingURL=instanceOf.js.map","// @ts-nocheck\n/**\n * @param element\n */\nexport default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}\n//# sourceMappingURL=getHTMLElementScroll.js.map","// @ts-nocheck\nimport getWindowScroll from './getWindowScroll';\nimport getWindow from './getWindow';\nimport { isHTMLElement } from './instanceOf';\nimport getHTMLElementScroll from './getHTMLElementScroll';\n/**\n * @param node\n */\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n }\n else {\n return getHTMLElementScroll(node);\n }\n}\n//# sourceMappingURL=getNodeScroll.js.map","/**\n * @param element\n */\nexport default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}\n//# sourceMappingURL=getNodeName.js.map","// @ts-nocheck\nimport { isElement } from './instanceOf';\n/**\n * @param element\n */\nexport default function getDocumentElement(element) {\n // $FlowFixMe: assume body is always available\n return (isElement(element) ? element.ownerDocument : element.document).documentElement;\n}\n//# sourceMappingURL=getDocumentElement.js.map","// @ts-nocheck\nimport getBoundingClientRect from './getBoundingClientRect';\nimport getDocumentElement from './getDocumentElement';\nimport getWindowScroll from './getWindowScroll';\n/**\n * @param element\n */\nexport default function getWindowScrollBarX(element) {\n // If 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 \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 getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}\n//# sourceMappingURL=getWindowScrollBarX.js.map","// @ts-nocheck\nimport getWindow from './getWindow';\n/**\n * @param element\n */\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\n//# sourceMappingURL=getComputedStyle.js.map","// @ts-nocheck\nimport getComputedStyle from './getComputedStyle';\n/**\n * @param element\n */\nexport default function isScrollParent(element) {\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//# sourceMappingURL=isScrollParent.js.map","import 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';\n// Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n/**\n * @param elementOrVirtualElement\n * @param offsetParent\n * @param isFixed\n */\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed = false) {\n const documentElement = getDocumentElement(offsetParent);\n const rect = getBoundingClientRect(elementOrVirtualElement);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n let scroll = { scrollLeft: 0, scrollTop: 0 };\n let offsets = { x: 0, y: 0 };\n if (isOffsetParentAnElement || (!isOffsetParentAnElement && !isFixed)) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n }\n else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\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//# sourceMappingURL=getCompositeRect.js.map","// Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n/**\n * @param element\n */\nexport default function getLayoutRect(element) {\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: element.offsetWidth,\n height: element.offsetHeight\n };\n}\n//# sourceMappingURL=getLayoutRect.js.map","// @ts-nocheck\nimport getNodeName from './getNodeName';\nimport getDocumentElement from './getDocumentElement';\n/**\n * @param element\n */\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n return (\n // $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || // DOM Element detected\n // $FlowFixMe: need a better way to handle this...\n element.host || // ShadowRoot detected\n // $FlowFixMe: HTMLElement is a Node\n getDocumentElement(element) // fallback\n );\n}\n//# sourceMappingURL=getParentNode.js.map","// @ts-nocheck\nimport getParentNode from './getParentNode';\nimport isScrollParent from './isScrollParent';\nimport getNodeName from './getNodeName';\nimport { isHTMLElement } from './instanceOf';\n/**\n * @param node\n */\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe: assume body is always available\n return node.ownerDocument.body;\n }\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n return getScrollParent(getParentNode(node));\n}\n//# sourceMappingURL=getScrollParent.js.map","// @ts-nocheck\nimport getScrollParent from './getScrollParent';\nimport getParentNode from './getParentNode';\nimport getNodeName from './getNodeName';\nimport getWindow from './getWindow';\nimport isScrollParent from './isScrollParent';\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*/\n/**\n * @param element\n * @param list\n */\nexport default function listScrollParents(element, list = []) {\n const scrollParent = getScrollParent(element);\n const isBody = getNodeName(scrollParent) === 'body';\n const win = getWindow(scrollParent);\n const target = isBody\n ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : [])\n : scrollParent;\n const updatedList = list.concat(target);\n return isBody\n ? updatedList // $FlowFixMe: isBody tells us target will be an HTMLElement here\n : updatedList.concat(listScrollParents(getParentNode(target)));\n}\n//# sourceMappingURL=listScrollParents.js.map","// @ts-nocheck\nimport getNodeName from './getNodeName';\n/**\n * @param element\n */\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}\n//# sourceMappingURL=isTableElement.js.map","// @ts-nocheck\nimport getWindow from './getWindow';\nimport getNodeName from './getNodeName';\nimport getComputedStyle from './getComputedStyle';\nimport { isHTMLElement } from './instanceOf';\nimport isTableElement from './isTableElement';\nimport getParentNode from './getParentNode';\nimport getDocumentElement from './getDocumentElement';\n/**\n * @param element\n */\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n const offsetParent = element.offsetParent;\n if (offsetParent) {\n const html = getDocumentElement(offsetParent);\n if (getNodeName(offsetParent) === 'body' &&\n getComputedStyle(offsetParent).position === 'static' &&\n getComputedStyle(html).position !== 'static') {\n return html;\n }\n }\n return offsetParent;\n}\n// `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n/**\n * @param element\n */\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n const css = getComputedStyle(currentNode);\n // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n if (css.transform !== 'none' || css.perspective !== 'none' || (css.willChange && css.willChange !== 'auto')) {\n return currentNode;\n }\n else {\n currentNode = currentNode.parentNode;\n }\n }\n return null;\n}\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n/**\n * @param element\n */\nexport default function getOffsetParent(element) {\n const window = getWindow(element);\n let offsetParent = getTrueOffsetParent(element);\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static') {\n return window;\n }\n return offsetParent || getContainingBlock(element) || window;\n}\n//# sourceMappingURL=getOffsetParent.js.map","// @ts-nocheck\nexport const top = 'top';\nexport const bottom = 'bottom';\nexport const right = 'right';\nexport const left = 'left';\nexport const auto = 'auto';\nexport const basePlacements = [top, bottom, right, left];\nexport const start = 'start';\nexport const end = 'end';\nexport const clippingParents = 'clippingParents';\nexport const viewport = 'viewport';\nexport const popper = 'popper';\nexport const reference = 'reference';\nexport const variationPlacements = basePlacements.reduce((acc, placement) => acc.concat([`${placement}-${start}`, `${placement}-${end}`]), []);\nexport const placements = [...basePlacements, auto].reduce((acc, placement) => acc.concat([placement, `${placement}-${start}`, `${placement}-${end}`]), []);\n// modifiers that need to read the DOM\nexport const beforeRead = 'beforeRead';\nexport const read = 'read';\nexport const afterRead = 'afterRead';\n// pure-logic modifiers\nexport const beforeMain = 'beforeMain';\nexport const main = 'main';\nexport const afterMain = 'afterMain';\n// modifier with the purpose to write to the DOM (or write into a framework state)\nexport const beforeWrite = 'beforeWrite';\nexport const write = 'write';\nexport const afterWrite = 'afterWrite';\nexport const modifierPhases = [\n beforeRead,\n read,\n afterRead,\n beforeMain,\n main,\n afterMain,\n beforeWrite,\n write,\n afterWrite\n];\n//# sourceMappingURL=enums.js.map","import { modifierPhases } from '../enums';\n// source: https://stackoverflow.com/questions/49875255\n/**\n * @param modifiers\n */\nfunction order(modifiers) {\n const map = new Map();\n const visited = new Set();\n const result = [];\n modifiers.forEach(modifier => {\n map.set(modifier.name, modifier);\n });\n // On visiting object, check for its dependencies and visit them recursively\n /**\n * @param modifier\n */\n function sort(modifier) {\n visited.add(modifier.name);\n const requires = [...(modifier.requires || []), ...(modifier.requiresIfExists || [])];\n requires.forEach(dep => {\n if (!visited.has(dep)) {\n const depModifier = map.get(dep);\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n modifiers.forEach(modifier => {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n/**\n * @param modifiers\n */\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n const orderedModifiers = order(modifiers);\n // order based on phase\n return modifierPhases.reduce((acc, phase) => acc.concat(orderedModifiers.filter(modifier => modifier.phase === phase)), []);\n}\n//# sourceMappingURL=orderModifiers.js.map","// @ts-nocheck\n/**\n * @param fn\n */\nexport default function debounce(fn) {\n let pending;\n return () => {\n if (!pending) {\n pending = new Promise(resolve => {\n Promise.resolve().then(() => {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n return pending;\n };\n}\n//# sourceMappingURL=debounce.js.map","/**\n * @param modifiers\n */\nexport default function mergeByName(modifiers) {\n const merged = modifiers.reduce((merged, current) => {\n const existing = merged[current.name];\n merged[current.name] = existing\n ? Object.assign(Object.assign(Object.assign({}, existing), current), { options: Object.assign(Object.assign({}, existing.options), current.options), data: Object.assign(Object.assign({}, existing.data), current.data) }) : current;\n return merged;\n }, {});\n // IE11 does not support Object.values\n return Object.keys(merged).map(key => merged[key]);\n}\n//# sourceMappingURL=mergeByName.js.map","import 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';\nexport * from './types';\nexport * from './enums';\nconst INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\nconst INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\nconst DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n/**\n * @param args\n */\nfunction areValidElements(...args) {\n return !args.some(element => !(element && typeof element.getBoundingClientRect === 'function'));\n}\n/**\n * @param generatorOptions\n */\nexport function popperGenerator(generatorOptions = {}) {\n const { defaultModifiers = [], defaultOptions = DEFAULT_OPTIONS } = generatorOptions;\n return function createPopper(reference, popper, options = defaultOptions) {\n let state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),\n modifiersData: {},\n elements: {\n reference,\n popper\n },\n attributes: {},\n styles: {}\n };\n let effectCleanupFns = [];\n let isDestroyed = false;\n const instance = {\n state,\n setOptions(options) {\n cleanupModifierEffects();\n state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);\n state.scrollParents = {\n reference: isElement(reference)\n ? listScrollParents(reference)\n : reference.contextElement\n ? listScrollParents(reference.contextElement)\n : [],\n popper: listScrollParents(popper)\n };\n // Orders the modifiers based on their dependencies and `phase`\n // properties\n const orderedModifiers = orderModifiers(mergeByName([...defaultModifiers, ...state.options.modifiers]));\n // Strip out disabled modifiers\n state.orderedModifiers = orderedModifiers.filter(m => m.enabled);\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 (false /* __DEV__*/) {\n const modifiers = uniqueBy([...orderedModifiers, ...state.options.modifiers], ({ name }) => name);\n validateModifiers(modifiers);\n if (getBasePlacement(state.options.placement) === auto) {\n const flipModifier = state.orderedModifiers.find(({ name }) => name === 'flip');\n if (!flipModifier) {\n console.error(['Popper: \"auto\" placements require the \"flip\" modifier be', 'present and enabled to work.'].join(' '));\n }\n }\n const { marginTop, marginRight, marginBottom, marginLeft } = getComputedStyle(popper);\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 ([marginTop, marginRight, marginBottom, marginLeft].some(margin => parseFloat(margin))) {\n console.warn([\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 runModifierEffects();\n return instance.update();\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 const { reference, popper } = state.elements;\n // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n if (!areValidElements(reference, popper)) {\n if (false /* __DEV__*/) {\n console.error(INVALID_ELEMENT_ERROR);\n }\n return;\n }\n // Store the reference and popper rects to be read by modifiers\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\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 state.placement = state.options.placement;\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(modifier => (state.modifiersData[modifier.name] = Object.assign({}, modifier.data)));\n let __debug_loops__ = 0;\n for (let index = 0; index < state.orderedModifiers.length; index++) {\n if (false /* __DEV__*/) {\n __debug_loops__ += 1;\n if (__debug_loops__ > 100) {\n console.error(INFINITE_LOOP_ERROR);\n break;\n }\n }\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n const { fn, options = {}, name } = state.orderedModifiers[index];\n if (typeof fn === 'function') {\n state = fn({ state, options, name, instance }) || state;\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(() => new Promise(resolve => {\n instance.forceUpdate();\n resolve(state);\n })),\n destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n if (!areValidElements(reference, popper)) {\n if (false /* __DEV__*/) {\n console.error(INVALID_ELEMENT_ERROR);\n }\n return instance;\n }\n instance.setOptions(options).then(state => {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\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 /**\n *\n */\n function runModifierEffects() {\n state.orderedModifiers.forEach(({ name, options = {}, effect }) => {\n if (typeof effect === 'function') {\n const cleanupFn = effect({ state, name, instance, options });\n const noopFn = () => { };\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n /**\n *\n */\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(fn => fn());\n effectCleanupFns = [];\n }\n return instance;\n };\n}\nexport const createPopper = popperGenerator();\n// eslint-disable-next-line import/no-unused-modules\nexport { detectOverflow };\n//# sourceMappingURL=index.js.map","import getWindow from '../dom-utils/getWindow';\nconst passive = { passive: true };\n/**\n *\n */\nfunction effect({ state, instance, options }) {\n const { scroll = true, resize = true } = options;\n const window = getWindow(state.elements.popper);\n const scrollParents = [...state.scrollParents.reference, ...state.scrollParents.popper];\n if (scroll) {\n scrollParents.forEach(scrollParent => {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n return () => {\n if (scroll) {\n scrollParents.forEach(scrollParent => {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n}\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: () => { },\n effect,\n data: {}\n};\n//# sourceMappingURL=eventListeners.js.map","/**\n * @param placement\n */\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}\n//# sourceMappingURL=getBasePlacement.js.map","/**\n * @param placement\n */\nexport default function getVariation(placement) {\n return placement.split('-')[1];\n}\n//# sourceMappingURL=getVariation.js.map","/**\n * @param placement\n */\nexport default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}\n//# sourceMappingURL=getMainAxisFromPlacement.js.map","// @ts-nocheck\nimport getBasePlacement from './getBasePlacement';\nimport getVariation from './getVariation';\nimport getMainAxisFromPlacement from './getMainAxisFromPlacement';\nimport { top, right, bottom, left, start, end } from '../enums';\n/**\n *\n */\nexport default function computeOffsets({ reference, element, placement }) {\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 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 const mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n if (mainAxis != null) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n switch (variation) {\n case start:\n offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);\n break;\n case end:\n offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);\n break;\n default:\n }\n }\n return offsets;\n}\n//# sourceMappingURL=computeOffsets.js.map","import computeOffsets from '../utils/computeOffsets';\n/**\n *\n */\nfunction popperOffsets({ state, name }) {\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}\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};\n//# sourceMappingURL=popperOffsets.js.map","import { top, left, right, bottom } 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';\nconst unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\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.\n/**\n *\n */\nfunction roundOffsets({ x, y }) {\n const win = window;\n const dpr = win.devicePixelRatio || 1;\n return {\n x: Math.round(x * dpr) / dpr || 0,\n y: Math.round(y * dpr) / dpr || 0\n };\n}\n/**\n *\n */\nexport function mapToStyles({ popper, popperRect, placement, offsets, position, gpuAcceleration, adaptive }) {\n let { x, y } = roundOffsets(offsets);\n const hasX = offsets.hasOwnProperty('x');\n const hasY = offsets.hasOwnProperty('y');\n let sideX = left;\n let sideY = top;\n const win = window;\n if (adaptive) {\n let offsetParent = getOffsetParent(popper);\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n }\n // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n /* :: offsetParent = (offsetParent: Element); */\n if (placement === top) {\n sideY = bottom;\n y -= offsetParent.clientHeight - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n if (placement === left) {\n sideX = right;\n x -= offsetParent.clientWidth - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n const commonStyles = Object.assign({ position }, (adaptive && unsetSides));\n if (gpuAcceleration) {\n return Object.assign(Object.assign({}, commonStyles), { [sideY]: hasY ? '0' : '', [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: (win.devicePixelRatio || 1) < 2 ? `translate(${x}px, ${y}px)` : `translate3d(${x}px, ${y}px, 0)` });\n }\n return Object.assign(Object.assign({}, commonStyles), { [sideY]: hasY ? `${y}px` : '', [sideX]: hasX ? `${x}px` : '', transform: '' });\n}\n/**\n *\n */\nfunction computeStyles({ state, options }) {\n const { gpuAcceleration = true, adaptive = true } = options;\n if (false /* __DEV__*/) {\n const transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';\n if (adaptive &&\n ['transform', 'top', 'right', 'bottom', 'left'].some(property => transitionProperty.indexOf(property) >= 0)) {\n console.warn([\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 const commonStyles = {\n placement: getBasePlacement(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration\n };\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), { offsets: state.modifiersData.popperOffsets, position: state.options.strategy, adaptive })));\n }\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), { offsets: state.modifiersData.arrow, position: 'absolute', adaptive: false })));\n }\n state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), { 'data-popper-placement': state.placement });\n}\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};\n//# sourceMappingURL=computeStyles.js.map","import getNodeName from '../dom-utils/getNodeName';\nimport { isHTMLElement } from '../dom-utils/instanceOf';\n// This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n/**\n *\n */\nfunction applyStyles({ state }) {\n Object.keys(state.elements).forEach(name => {\n const style = state.styles[name] || {};\n const attributes = state.attributes[name] || {};\n const element = state.elements[name];\n // arrow is optional + virtual elements\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\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\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(name => {\n const value = attributes[name];\n if (value === false) {\n element.removeAttribute(name);\n }\n else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n/**\n *\n */\nfunction effect({ state }) {\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 Object.assign(state.elements.popper.style, initialStyles.popper);\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n return () => {\n Object.keys(state.elements).forEach(name => {\n const element = state.elements[name];\n const attributes = state.attributes[name] || {};\n const styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]);\n // Set all values to an empty string to unset them\n const style = styleProperties.reduce((style, property) => {\n style[property] = '';\n return style;\n }, {});\n // arrow is optional + virtual elements\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\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\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(attribute => {\n element.removeAttribute(attribute);\n });\n });\n };\n}\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect,\n requires: ['computeStyles']\n};\n//# sourceMappingURL=applyStyles.js.map","import getBasePlacement from '../utils/getBasePlacement';\nimport { top, left, right, placements } from '../enums';\n/**\n * @param placement\n * @param rects\n * @param offset\n */\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n const basePlacement = getBasePlacement(placement);\n const invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n let [skidding, distance] = typeof offset === 'function'\n ? offset(Object.assign(Object.assign({}, rects), { placement }))\n : offset;\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? { x: distance, y: skidding } : { x: skidding, y: distance };\n}\n/**\n *\n */\nfunction offset({ state, options, name }) {\n const { offset = [0, 0] } = options;\n const data = placements.reduce((acc, placement) => {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n const { x, y } = data[state.placement];\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n state.modifiersData[name] = data;\n}\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};\n//# sourceMappingURL=offset.js.map","const hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };\n/**\n * @param placement\n */\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, matched => hash[matched]);\n}\n//# sourceMappingURL=getOppositePlacement.js.map","const hash = { start: 'end', end: 'start' };\n/**\n * @param placement\n */\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, matched => hash[matched]);\n}\n//# sourceMappingURL=getOppositeVariationPlacement.js.map","// @ts-nocheck\nimport getWindow from './getWindow';\nimport getDocumentElement from './getDocumentElement';\nimport getWindowScrollBarX from './getWindowScrollBarX';\n/**\n * @param element\n */\nexport default function getViewportRect(element) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n // NB: This isn't supported on iOS <= 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 // 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 <= 0, usually < -1 when pinch-zoomed\n // Feature detection fails in mobile emulation mode in Chrome.\n // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <\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 return {\n width,\n height,\n x: x + getWindowScrollBarX(element),\n y\n };\n}\n//# sourceMappingURL=getViewportRect.js.map","import getDocumentElement from './getDocumentElement';\nimport getComputedStyle from './getComputedStyle';\nimport getWindowScrollBarX from './getWindowScrollBarX';\nimport getWindowScroll from './getWindowScroll';\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n/**\n * @param element\n */\nexport default function getDocumentRect(element) {\n const html = getDocumentElement(element);\n const winScroll = getWindowScroll(element);\n const body = element.ownerDocument.body;\n const width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n const height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n let x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n const y = -winScroll.scrollTop;\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n return { width, height, x, y };\n}\n//# sourceMappingURL=getDocumentRect.js.map","// @ts-nocheck\n/**\n * @param parent\n * @param child\n */\nexport default function contains(parent, child) {\n // $FlowFixMe: hasOwnProperty doesn't seem to work in tests\n const isShadow = Boolean(child.getRootNode && child.getRootNode().host);\n // First, attempt with faster native method\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (isShadow) {\n let next = child;\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n }\n // $FlowFixMe: need a better way to handle this...\n next = next.parentNode || next.host;\n } while (next);\n }\n // Give up, the result is false\n return false;\n}\n//# sourceMappingURL=contains.js.map","/**\n * @param rect\n */\nexport default function rectToClientRect(rect) {\n return Object.assign(Object.assign({}, rect), { left: rect.x, top: rect.y, right: rect.x + rect.width, bottom: rect.y + rect.height });\n}\n//# sourceMappingURL=rectToClientRect.js.map","import { 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';\n/**\n * @param element\n */\nfunction getInnerBoundingClientRect(element) {\n const rect = getBoundingClientRect(element);\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 return rect;\n}\n/**\n * @param element\n * @param clippingParent\n */\nfunction getClientRectFromMixedType(element, clippingParent) {\n return clippingParent === viewport\n ? rectToClientRect(getViewportRect(element))\n : isHTMLElement(clippingParent)\n ? getInnerBoundingClientRect(clippingParent)\n : rectToClientRect(getDocumentRect(getDocumentElement(element)));\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`\n/**\n * @param element\n */\nfunction getClippingParents(element) {\n const clippingParents = listScrollParents(getParentNode(element));\n const canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n if (!isElement(clipperElement)) {\n return [];\n }\n // $FlowFixMe: https://github.com/facebook/flow/issues/1414\n return clippingParents.filter(clippingParent => isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body');\n}\n// Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n/**\n * @param element\n * @param boundary\n * @param rootBoundary\n */\nexport default function getClippingRect(element, boundary, rootBoundary) {\n const mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n const clippingParents = [...mainClippingParents, rootBoundary];\n const firstClippingParent = clippingParents[0];\n const clippingRect = clippingParents.reduce((accRect, clippingParent) => {\n const rect = getClientRectFromMixedType(element, clippingParent);\n accRect.top = Math.max(rect.top, accRect.top);\n accRect.right = Math.min(rect.right, accRect.right);\n accRect.bottom = Math.min(rect.bottom, accRect.bottom);\n accRect.left = Math.max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent));\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 return clippingRect;\n}\n//# sourceMappingURL=getClippingRect.js.map","/**\n *\n */\nexport default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}\n//# sourceMappingURL=getFreshSideObject.js.map","import getFreshSideObject from './getFreshSideObject';\n/**\n * @param paddingObject\n */\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);\n}\n//# sourceMappingURL=mergePaddingObject.js.map","// @ts-nocheck\n/**\n * @param value\n * @param keys\n */\nexport default function expandToHashMap(value, keys) {\n return keys.reduce((hashMap, key) => {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}\n//# sourceMappingURL=expandToHashMap.js.map","import getBoundingClientRect from '../dom-utils/getBoundingClientRect';\nimport getClippingRect from '../dom-utils/getClippingRect';\nimport getDocumentElement from '../dom-utils/getDocumentElement';\nimport computeOffsets from './computeOffsets';\nimport rectToClientRect from './rectToClientRect';\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from '../enums';\nimport { isElement } from '../dom-utils/instanceOf';\nimport mergePaddingObject from './mergePaddingObject';\nimport expandToHashMap from './expandToHashMap';\n/**\n * @param state\n * @param options\n */\nexport default function detectOverflow(state, options = {}) {\n const { placement = state.placement, boundary = clippingParents, rootBoundary = viewport, elementContext = popper, altBoundary = false, padding = 0 } = options;\n const paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n const altContext = elementContext === popper ? reference : popper;\n const referenceElement = state.elements.reference;\n const popperRect = state.rects.popper;\n const element = state.elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);\n const referenceClientRect = getBoundingClientRect(referenceElement);\n const popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement\n });\n const popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));\n const elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect;\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: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n const offsetData = state.modifiersData.offset;\n // Offsets can be applied only to the popper element\n if (elementContext === popper && offsetData) {\n const offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(key => {\n const multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n const axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n return overflowOffsets;\n}\n//# sourceMappingURL=detectOverflow.js.map","import getVariation from './getVariation';\nimport { variationPlacements, basePlacements, placements as allPlacements } from '../enums';\nimport detectOverflow from './detectOverflow';\nimport getBasePlacement from './getBasePlacement';\n/* :: type OverflowsMap = { [ComputedPlacement]: number }; */\n/* ;; type OverflowsMap = { [key in ComputedPlacement]: number }; */\n/**\n * @param state\n * @param options\n */\nexport default function computeAutoPlacement(state, options = {}) {\n const { placement, boundary, rootBoundary, padding, flipVariations, allowedAutoPlacements = allPlacements } = options;\n const variation = getVariation(placement);\n const placements = variation\n ? flipVariations\n ? variationPlacements\n : variationPlacements.filter(placement => getVariation(placement) === variation)\n : basePlacements;\n // $FlowFixMe\n let allowedPlacements = placements.filter(placement => allowedAutoPlacements.indexOf(placement) >= 0);\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n if (false /* __DEV__*/) {\n console.error([\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 // $FlowFixMe: Flow seems to have problems with two array unions...\n const overflows = allowedPlacements.reduce((acc, placement) => {\n acc[placement] = detectOverflow(state, {\n placement,\n boundary,\n rootBoundary,\n padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort((a, b) => overflows[a] - overflows[b]);\n}\n//# sourceMappingURL=computeAutoPlacement.js.map","import 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 * @param placement\n */\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n const oppositePlacement = getOppositePlacement(placement);\n return [\n getOppositeVariationPlacement(placement),\n oppositePlacement,\n getOppositeVariationPlacement(oppositePlacement)\n ];\n}\n/**\n *\n */\nfunction flip({ state, options, name }) {\n if (state.modifiersData[name]._skip) {\n return;\n }\n const { mainAxis: checkMainAxis = true, altAxis: checkAltAxis = true, fallbackPlacements: specifiedFallbackPlacements, padding, boundary, rootBoundary, altBoundary, flipVariations = true, allowedAutoPlacements } = options;\n const preferredPlacement = state.options.placement;\n const basePlacement = getBasePlacement(preferredPlacement);\n const isBasePlacement = basePlacement === preferredPlacement;\n const fallbackPlacements = specifiedFallbackPlacements ||\n (isBasePlacement || !flipVariations\n ? [getOppositePlacement(preferredPlacement)]\n : getExpandedFallbackPlacements(preferredPlacement));\n const placements = [preferredPlacement, ...fallbackPlacements].reduce((acc, placement) => acc.concat(getBasePlacement(placement) === auto\n ? computeAutoPlacement(state, {\n placement,\n boundary,\n rootBoundary,\n padding,\n flipVariations,\n allowedAutoPlacements\n })\n : placement), []);\n const referenceRect = state.rects.reference;\n const popperRect = state.rects.popper;\n const checksMap = new Map();\n let makeFallbackChecks = true;\n let firstFittingPlacement = placements[0];\n for (let i = 0; i < 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) >= 0;\n const len = isVertical ? 'width' : 'height';\n const overflow = detectOverflow(state, {\n placement,\n boundary,\n rootBoundary,\n altBoundary,\n padding\n });\n let mainVariationSide = isVertical ? (isStartVariation ? right : left) : isStartVariation ? bottom : top;\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n const altVariationSide = getOppositePlacement(mainVariationSide);\n const checks = [];\n if (checkMainAxis) {\n checks.push(overflow[basePlacement] <= 0);\n }\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n if (checks.every(check => check)) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n checksMap.set(placement, checks);\n }\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n const numberOfChecks = flipVariations ? 3 : 1;\n for (let i = numberOfChecks; i > 0; i--) {\n const fittingPlacement = placements.find(placement => {\n const checks = checksMap.get(placement);\n if (checks) {\n return checks.slice(0, i).every(check => check);\n }\n });\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n break;\n }\n }\n }\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n}\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: { _skip: false }\n};\n//# sourceMappingURL=flip.js.map","// @ts-nocheck\n/**\n * @param axis\n */\nexport default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\n//# sourceMappingURL=getAltAxis.js.map","// @ts-nocheck\n/**\n * @param min\n * @param value\n * @param max\n */\nexport default function within(min, value, max) {\n return Math.max(min, Math.min(value, max));\n}\n//# sourceMappingURL=within.js.map","// @ts-nocheck\nimport { top, left, right, bottom, start } from '../enums';\nimport getBasePlacement from '../utils/getBasePlacement';\nimport getMainAxisFromPlacement from '../utils/getMainAxisFromPlacement';\nimport getAltAxis from '../utils/getAltAxis';\nimport within 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';\n/**\n *\n */\nfunction preventOverflow({ state, options, name }) {\n const { mainAxis: checkMainAxis = true, altAxis: checkAltAxis = false, boundary, rootBoundary, altBoundary, padding, tether = true, tetherOffset = 0 } = options;\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 = typeof tetherOffset === 'function'\n ? tetherOffset(Object.assign(Object.assign({}, state.rects), { placement: state.placement }))\n : tetherOffset;\n const data = { x: 0, y: 0 };\n if (!popperOffsets) {\n return;\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 const min = popperOffsets[mainAxis] + overflow[mainSide];\n const max = popperOffsets[mainAxis] - overflow[altSide];\n const additive = tether ? -popperRect[len] / 2 : 0;\n const minLen = variation === start ? referenceRect[len] : popperRect[len];\n const maxLen = variation === start ? -popperRect[len] : -referenceRect[len];\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 = tether && arrowElement ? getLayoutRect(arrowElement) : { 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 // 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 const minOffset = isBasePlacement\n ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue\n : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;\n const maxOffset = isBasePlacement\n ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue\n : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;\n const arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n const clientOffset = arrowOffsetParent\n ? mainAxis === 'y'\n ? arrowOffsetParent.clientTop || 0\n : arrowOffsetParent.clientLeft || 0\n : 0;\n const offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;\n const tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;\n const tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;\n const preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n if (checkAltAxis) {\n const mainSide = mainAxis === 'x' ? top : left;\n const altSide = mainAxis === 'x' ? bottom : right;\n const offset = popperOffsets[altAxis];\n const min = offset + overflow[mainSide];\n const max = offset - overflow[altSide];\n const preventedOffset = within(min, offset, max);\n popperOffsets[altAxis] = preventedOffset;\n data[altAxis] = preventedOffset - offset;\n }\n state.modifiersData[name] = data;\n}\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};\n//# sourceMappingURL=preventOverflow.js.map","import 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 *\n */\nfunction arrow({ state, name }) {\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) >= 0;\n const len = isVertical ? 'height' : 'width';\n if (!arrowElement || !popperOffsets) {\n return;\n }\n const paddingObject = state.modifiersData[`${name}#persistent`].padding;\n const arrowRect = getLayoutRect(arrowElement);\n const minProp = axis === 'y' ? top : left;\n const maxProp = axis === 'y' ? bottom : right;\n const endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n const startDiff = popperOffsets[axis] - state.rects.reference[axis];\n const arrowOffsetParent = getOffsetParent(arrowElement);\n const clientSize = arrowOffsetParent\n ? axis === 'y'\n ? arrowOffsetParent.clientHeight || 0\n : arrowOffsetParent.clientWidth || 0\n : 0;\n const centerToReference = endDiff / 2 - startDiff / 2;\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 // Prevents breaking syntax highlighting...\n const axisProp = axis;\n state.modifiersData[name] = {\n [axisProp]: offset,\n centerOffset: offset - center\n };\n}\n/**\n *\n */\nfunction effect({ state, options, name }) {\n let { element: arrowElement = '[data-popper-arrow]', padding = 0 } = options;\n if (arrowElement == null) {\n return;\n }\n // CSS selector\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n if (!arrowElement) {\n return;\n }\n }\n if (false /* __DEV__*/) {\n if (!isHTMLElement(arrowElement)) {\n console.error([\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 if (!contains(state.elements.popper, arrowElement)) {\n if (false /* __DEV__*/) {\n console.error(['Popper: \"arrow\" modifier\\'s `element` must be a child of the popper', 'element.'].join(' '));\n }\n return;\n }\n state.elements.arrow = arrowElement;\n state.modifiersData[`${name}#persistent`] = {\n padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))\n };\n}\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};\n//# sourceMappingURL=arrow.js.map","import { top, bottom, left, right } from '../enums';\nimport detectOverflow from '../utils/detectOverflow';\n/**\n * @param overflow\n * @param rect\n * @param preventedOffsets\n */\nfunction getSideOffsets(overflow, rect, preventedOffsets = { x: 0, y: 0 }) {\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/**\n * @param overflow\n */\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(side => overflow[side] >= 0);\n}\n/**\n *\n */\nfunction hide({ state, name }) {\n const referenceRect = state.rects.reference;\n const popperRect = state.rects.popper;\n const preventedOffsets = state.modifiersData.preventOverflow;\n const referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n const popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n const referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n const popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n const isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n const hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets,\n popperEscapeOffsets,\n isReferenceHidden,\n hasPopperEscaped\n };\n state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), { 'data-popper-reference-hidden': isReferenceHidden, 'data-popper-escaped': hasPopperEscaped });\n}\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};\n//# sourceMappingURL=hide.js.map","// @ts-nocheck\nimport { popperGenerator, detectOverflow } from '.';\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';\nexport * from './types';\nconst defaultModifiers = [\n eventListeners,\n popperOffsets,\n computeStyles,\n applyStyles,\n offset,\n flip,\n preventOverflow,\n arrow,\n hide\n];\nconst createPopper = popperGenerator({ defaultModifiers });\n// eslint-disable-next-line import/no-unused-modules\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow };\n//# sourceMappingURL=popper.js.map","/* eslint-disable @typescript-eslint/consistent-type-definitions */\nimport * as React from 'react';\nimport { createPopper as defaultCreatePopper } from '../popper-core/popper';\nimport { useIsomorphicLayoutEffect } from '../../../../helpers/useIsomorphicLayout';\nconst isEqual = (a, b) => JSON.stringify(a) === JSON.stringify(b);\n/**\n * Simple ponyfill for Object.fromEntries\n */\nconst fromEntries = (entries) => entries.reduce((acc, [key, value]) => {\n acc[key] = value;\n return acc;\n}, {});\nconst EMPTY_MODIFIERS = [];\nexport const usePopper = (referenceElement, popperElement, options = {}) => {\n const prevOptions = React.useRef(null);\n const optionsWithDefaults = {\n onFirstUpdate: options.onFirstUpdate,\n placement: options.placement || 'bottom',\n strategy: options.strategy || 'absolute',\n modifiers: options.modifiers || EMPTY_MODIFIERS\n };\n const [state, setState] = React.useState({\n styles: {\n popper: {\n position: optionsWithDefaults.strategy,\n left: '0',\n top: '0'\n }\n },\n attributes: {}\n });\n const updateStateModifier = React.useMemo(() => ({\n name: 'updateState',\n enabled: true,\n phase: 'write',\n // eslint-disable-next-line no-shadow\n fn: ({ state }) => {\n const elements = Object.keys(state.elements);\n setState({\n styles: fromEntries(elements.map(element => [element, state.styles[element] || {}])),\n attributes: fromEntries(elements.map(element => [element, state.attributes[element]]))\n });\n },\n requires: ['computeStyles']\n }), []);\n const popperOptions = React.useMemo(() => {\n const newOptions = {\n onFirstUpdate: optionsWithDefaults.onFirstUpdate,\n placement: optionsWithDefaults.placement,\n strategy: optionsWithDefaults.strategy,\n modifiers: [...optionsWithDefaults.modifiers, updateStateModifier, { name: 'applyStyles', enabled: false }]\n };\n if (isEqual(prevOptions.current, newOptions)) {\n return prevOptions.current || newOptions;\n }\n else {\n prevOptions.current = newOptions;\n return newOptions;\n }\n }, [\n optionsWithDefaults.onFirstUpdate,\n optionsWithDefaults.placement,\n optionsWithDefaults.strategy,\n optionsWithDefaults.modifiers,\n updateStateModifier\n ]);\n const popperInstanceRef = React.useRef();\n useIsomorphicLayoutEffect(() => {\n if (popperInstanceRef && popperInstanceRef.current) {\n popperInstanceRef.current.setOptions(popperOptions);\n }\n }, [popperOptions]);\n useIsomorphicLayoutEffect(() => {\n if (referenceElement == null || popperElement == null) {\n return;\n }\n const createPopper = options.createPopper || defaultCreatePopper;\n const popperInstance = createPopper(referenceElement, popperElement, popperOptions);\n popperInstanceRef.current = popperInstance;\n return () => {\n popperInstance.destroy();\n popperInstanceRef.current = null;\n };\n }, [referenceElement, popperElement, options.createPopper]);\n return {\n state: popperInstanceRef.current ? popperInstanceRef.current.state : null,\n styles: state.styles,\n attributes: state.attributes,\n update: popperInstanceRef.current ? popperInstanceRef.current.update : null,\n forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null\n };\n};\n//# sourceMappingURL=usePopper.js.map","import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\n/**\n * This component wraps any ReactNode and finds its ref\n * It has to be a class for findDOMNode to work\n * Ideally, all components used as triggers/toggles are either:\n * - class based components we can assign our own ref to\n * - functional components that have forwardRef implemented\n * However, there is no guarantee that is what will get passed in as trigger/toggle in the case of tooltips and popovers\n */\nexport class FindRefWrapper extends React.Component {\n componentDidMount() {\n // eslint-disable-next-line react/no-find-dom-node\n const root = ReactDOM.findDOMNode(this);\n this.props.onFoundRef(root);\n }\n render() {\n return this.props.children || null;\n }\n}\nFindRefWrapper.displayName = 'FindRefWrapper';\n//# sourceMappingURL=FindRefWrapper.js.map","import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { usePopper } from './thirdparty/react-popper/usePopper';\nimport { css } from '@patternfly/react-styles';\nimport { FindRefWrapper } from './FindRefWrapper';\nimport '@patternfly/react-styles/css/components/Popper/Popper.css';\nconst hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom',\n 'top-start': 'bottom-end',\n 'top-end': 'bottom-start',\n 'bottom-start': 'top-end',\n 'bottom-end': 'top-start',\n 'left-start': 'right-end',\n 'left-end': 'right-start',\n 'right-start': 'left-end',\n 'right-end': 'left-start'\n};\nconst getOppositePlacement = (placement) => placement.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g, (matched) => hash[matched]);\nexport const getOpacityTransition = (animationDuration) => `opacity ${animationDuration}ms cubic-bezier(.54, 1.5, .38, 1.11)`;\nexport const Popper = ({ trigger, popper, popperMatchesTriggerWidth = true, direction = 'down', position = 'left', placement, appendTo = () => document.body, zIndex = 9999, isVisible = true, positionModifiers, distance = 0, onMouseEnter, onMouseLeave, onFocus, onBlur, onDocumentClick, onTriggerClick, onTriggerEnter, onPopperClick, onPopperMouseEnter, onPopperMouseLeave, onDocumentKeyDown, enableFlip = true, flipBehavior = 'flip', reference, removeFindDomNode = false, popperRef }) => {\n const [triggerElement, setTriggerElement] = React.useState(null);\n const [refElement, setRefElement] = React.useState(null);\n const [popperElement, setPopperElement] = React.useState(null);\n const [ready, setReady] = React.useState(false);\n const refOrTrigger = refElement || triggerElement;\n const onDocumentClickCallback = React.useCallback((event) => onDocumentClick(event, refOrTrigger, popperElement), [isVisible, triggerElement, refElement, popperElement, onDocumentClick]);\n React.useEffect(() => {\n setReady(true);\n }, []);\n React.useEffect(() => {\n if (reference) {\n if (reference.current) {\n setRefElement(reference.current);\n }\n else if (typeof reference === 'function') {\n setRefElement(reference());\n }\n }\n }, [reference]);\n React.useEffect(() => {\n // When the popperRef is defined or the popper visiblity changes, ensure the popper element is up to date\n if (popperRef) {\n if (popperRef.current) {\n setPopperElement(popperRef.current);\n }\n else if (typeof popperRef === 'function') {\n setPopperElement(popperRef());\n }\n }\n }, [isVisible, popperRef]);\n const addEventListener = (listener, element, event, capture = false) => {\n if (listener && element) {\n element.addEventListener(event, listener, { capture });\n }\n };\n const removeEventListener = (listener, element, event, capture = false) => {\n if (listener && element) {\n element.removeEventListener(event, listener, { capture });\n }\n };\n React.useEffect(() => {\n addEventListener(onMouseEnter, refOrTrigger, 'mouseenter');\n addEventListener(onMouseLeave, refOrTrigger, 'mouseleave');\n addEventListener(onFocus, refOrTrigger, 'focus');\n addEventListener(onBlur, refOrTrigger, 'blur');\n addEventListener(onTriggerClick, refOrTrigger, 'click');\n addEventListener(onTriggerEnter, refOrTrigger, 'keydown');\n addEventListener(onPopperClick, popperElement, 'click');\n addEventListener(onPopperMouseEnter, popperElement, 'mouseenter');\n addEventListener(onPopperMouseLeave, popperElement, 'mouseleave');\n onDocumentClick && addEventListener(onDocumentClickCallback, document, 'click', true);\n addEventListener(onDocumentKeyDown, document, 'keydown', true);\n // Trigger a Popper update when content changes.\n const observer = new MutationObserver(() => {\n update && update();\n });\n popperElement && observer.observe(popperElement, { attributes: true, childList: true, subtree: true });\n return () => {\n removeEventListener(onMouseEnter, refOrTrigger, 'mouseenter');\n removeEventListener(onMouseLeave, refOrTrigger, 'mouseleave');\n removeEventListener(onFocus, refOrTrigger, 'focus');\n removeEventListener(onBlur, refOrTrigger, 'blur');\n removeEventListener(onTriggerClick, refOrTrigger, 'click');\n removeEventListener(onTriggerEnter, refOrTrigger, 'keydown');\n removeEventListener(onPopperClick, popperElement, 'click');\n removeEventListener(onPopperMouseEnter, popperElement, 'mouseenter');\n removeEventListener(onPopperMouseLeave, popperElement, 'mouseleave');\n onDocumentClick && removeEventListener(onDocumentClickCallback, document, 'click', true);\n removeEventListener(onDocumentKeyDown, document, 'keydown', true);\n observer.disconnect();\n };\n }, [\n triggerElement,\n popperElement,\n onMouseEnter,\n onMouseLeave,\n onFocus,\n onBlur,\n onTriggerClick,\n onTriggerEnter,\n onPopperClick,\n onPopperMouseEnter,\n onPopperMouseLeave,\n onDocumentClick,\n onDocumentKeyDown,\n refElement\n ]);\n const getPlacement = () => {\n if (placement) {\n return placement;\n }\n let convertedPlacement = direction === 'up' ? 'top' : 'bottom';\n if (position !== 'center') {\n convertedPlacement = `${convertedPlacement}-${position === 'right' ? 'end' : 'start'}`;\n }\n return convertedPlacement;\n };\n const getPlacementMemo = React.useMemo(getPlacement, [direction, position, placement]);\n const getOppositePlacementMemo = React.useMemo(() => getOppositePlacement(getPlacement()), [\n direction,\n position,\n placement\n ]);\n const sameWidthMod = React.useMemo(() => ({\n name: 'sameWidth',\n enabled: popperMatchesTriggerWidth,\n phase: 'beforeWrite',\n requires: ['computeStyles'],\n fn: ({ state }) => {\n state.styles.popper.width = `${state.rects.reference.width}px`;\n },\n effect: ({ state }) => {\n state.elements.popper.style.width = `${state.elements.reference.offsetWidth}px`;\n return () => { };\n }\n }), [popperMatchesTriggerWidth]);\n const { styles: popperStyles, attributes, update, forceUpdate } = usePopper(refOrTrigger, popperElement, {\n placement: getPlacementMemo,\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: [0, distance]\n }\n },\n {\n name: 'preventOverflow',\n enabled: false\n },\n {\n // adds attribute [data-popper-reference-hidden] to the popper element which can be used to hide it using CSS\n name: 'hide',\n enabled: true\n },\n {\n name: 'flip',\n enabled: getPlacementMemo.startsWith('auto') || enableFlip,\n options: {\n fallbackPlacements: flipBehavior === 'flip' ? [getOppositePlacementMemo] : flipBehavior\n }\n },\n sameWidthMod\n ]\n });\n React.useEffect(() => {\n forceUpdate && forceUpdate();\n }, [popper]);\n // Returns the CSS modifier class in order to place the Popper's arrow properly\n // Depends on the position of the Popper relative to the reference element\n const modifierFromPopperPosition = () => {\n if (attributes && attributes.popper && attributes.popper['data-popper-placement']) {\n const popperPlacement = attributes.popper['data-popper-placement'];\n return positionModifiers[popperPlacement];\n }\n return positionModifiers.top;\n };\n const options = Object.assign({ className: css(popper.props && popper.props.className, positionModifiers && modifierFromPopperPosition()), style: Object.assign(Object.assign(Object.assign({}, ((popper.props && popper.props.style) || {})), popperStyles.popper), { zIndex }) }, attributes.popper);\n const menuWithPopper = React.cloneElement(popper, options);\n const getTarget = () => {\n if (typeof appendTo === 'function') {\n return appendTo();\n }\n return appendTo;\n };\n /**\n * To enable strict mode, the popper must either have its reference defined via the popperRef property,\n * or the removeFindDomNode flag must be present. Even if the reference is passed in, unlike the trigger,\n * the popper property must still be passed.\n * The trigger must similarly have either its reference defined via the reference property, or the\n * removeFindDomNode flag must be present. The trigger property is not required when the reference is passed.\n *\n * Strict mode may be enabled by passing both reference properties to Popper, or by passing the\n * removeFindDomNode flag with either reference property, or by solely passing the removeFindDomNode\n * flag.\n */\n let popperPortal;\n if (removeFindDomNode) {\n // If removeFindDomNode is passed, use the removeFindDomNode method of wrapping divs\n popperPortal = (React.createElement(\"div\", { style: { display: 'contents' }, ref: node => setPopperElement(node === null || node === void 0 ? void 0 : node.firstElementChild) }, menuWithPopper));\n }\n else if (popperRef) {\n // If removeFindDomNode is not passed and popperRef is passed, use the popperRef method\n popperPortal = menuWithPopper;\n }\n else {\n // If neither removeFindDomNode and popperRef exist, use the old method of FindRefWrapper\n popperPortal = (React.createElement(FindRefWrapper, { onFoundRef: (foundRef) => setPopperElement(foundRef) }, menuWithPopper));\n }\n return (React.createElement(React.Fragment, null,\n !reference && trigger && React.isValidElement(trigger) && !removeFindDomNode && (React.createElement(FindRefWrapper, { onFoundRef: (foundRef) => setTriggerElement(foundRef) }, trigger)),\n !reference && trigger && React.isValidElement(trigger) && removeFindDomNode && (React.createElement(\"div\", { style: { display: 'contents' }, ref: node => setTriggerElement(node === null || node === void 0 ? void 0 : node.firstElementChild) }, trigger)),\n ready && isVisible && ReactDOM.createPortal(popperPortal, getTarget())));\n};\nPopper.displayName = 'Popper';\n//# sourceMappingURL=Popper.js.map","import * as React from 'react';\nimport { canUseDOM } from './util';\n/**\n * Small wrapper around `useLayoutEffect` to get rid of the warning on SSR envs\n */\nexport const useIsomorphicLayoutEffect = canUseDOM ? React.useLayoutEffect : React.useEffect;\n//# sourceMappingURL=useIsomorphicLayout.js.map","import { __rest } from \"tslib\";\nimport * as React from 'react';\nexport var IconSize;\n(function (IconSize) {\n IconSize[\"sm\"] = \"sm\";\n IconSize[\"md\"] = \"md\";\n IconSize[\"lg\"] = \"lg\";\n IconSize[\"xl\"] = \"xl\";\n})(IconSize || (IconSize = {}));\nexport const getSize = (size) => {\n switch (size) {\n case IconSize.sm:\n return '1em';\n case IconSize.md:\n return '1.5em';\n case IconSize.lg:\n return '2em';\n case IconSize.xl:\n return '3em';\n default:\n return '1em';\n }\n};\nlet currentId = 0;\n/**\n * Factory to create Icon class components for consumers\n */\nexport function createIcon({ name, xOffset = 0, yOffset = 0, width, height, svgPath }) {\n var _a;\n return _a = class SVGIcon extends React.Component {\n constructor() {\n super(...arguments);\n this.id = `icon-title-${currentId++}`;\n }\n render() {\n const _a = this.props, { size, color, title, noVerticalAlign } = _a, props = __rest(_a, [\"size\", \"color\", \"title\", \"noVerticalAlign\"]);\n const hasTitle = Boolean(title);\n const heightWidth = getSize(size);\n const baseAlign = -0.125 * Number.parseFloat(heightWidth);\n const style = noVerticalAlign ? null : { verticalAlign: `${baseAlign}em` };\n const viewBox = [xOffset, yOffset, width, height].join(' ');\n return (React.createElement(\"svg\", Object.assign({ style: style, fill: color, height: heightWidth, width: heightWidth, viewBox: viewBox, \"aria-labelledby\": hasTitle ? this.id : null, \"aria-hidden\": hasTitle ? null : true, role: \"img\" }, props),\n hasTitle && React.createElement(\"title\", { id: this.id }, title),\n React.createElement(\"path\", { d: svgPath })));\n }\n },\n _a.displayName = name,\n _a.defaultProps = {\n color: 'currentColor',\n size: IconSize.sm,\n noVerticalAlign: false\n },\n _a;\n}\n//# sourceMappingURL=createIcon.js.map"],"names":["getBoundingClientRect","element","rect","getWindow","node","ownerDocument","getWindowScroll","win","scrollLeft","scrollTop","isElement","OwnElement","isHTMLElement","getHTMLElementScroll","getNodeScroll","getNodeName","getDocumentElement","getWindowScrollBarX","getComputedStyle","isScrollParent","overflow","overflowX","overflowY","getCompositeRect","elementOrVirtualElement","offsetParent","isFixed","documentElement","isOffsetParentAnElement","scroll","offsets","getLayoutRect","getParentNode","getScrollParent","listScrollParents","list","scrollParent","isBody","target","updatedList","isTableElement","getTrueOffsetParent","html","getContainingBlock","currentNode","css","getOffsetParent","window","bottom","right","left","auto","basePlacements","start","end","clippingParents","viewport","popper","reference","variationPlacements","acc","placement","modifierPhases","order","modifiers","map","visited","result","modifier","sort","dep","depModifier","orderModifiers","orderedModifiers","phase","debounce","fn","pending","resolve","mergeByName","merged","current","existing","key","INVALID_ELEMENT_ERROR","INFINITE_LOOP_ERROR","DEFAULT_OPTIONS","areValidElements","args","popperGenerator","generatorOptions","defaultModifiers","defaultOptions","options","state","effectCleanupFns","isDestroyed","instance","cleanupModifierEffects","m","runModifierEffects","__debug_loops__","index","name","effect","cleanupFn","noopFn","createPopper","passive","resize","scrollParents","getBasePlacement","getVariation","getMainAxisFromPlacement","computeOffsets","basePlacement","variation","commonX","commonY","mainAxis","len","popperOffsets","unsetSides","roundOffsets","x","y","dpr","mapToStyles","popperRect","position","gpuAcceleration","adaptive","hasX","hasY","sideX","sideY","commonStyles","computeStyles","applyStyles","style","attributes","value","initialStyles","property","attribute","distanceAndSkiddingToXY","rects","offset","invertDistance","skidding","distance","data","hash","getOppositePlacement","matched","getOppositeVariationPlacement","getViewportRect","visualViewport","width","height","getDocumentRect","winScroll","body","contains","parent","child","isShadow","next","rectToClientRect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","clipperElement","getClippingRect","boundary","rootBoundary","firstClippingParent","clippingRect","accRect","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","keys","hashMap","detectOverflow","elementContext","altBoundary","padding","altContext","referenceElement","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","axis","computeAutoPlacement","flipVariations","allowedAutoPlacements","placements","allowedPlacements","overflows","a","b","getExpandedFallbackPlacements","oppositePlacement","flip","checkMainAxis","checkAltAxis","specifiedFallbackPlacements","preferredPlacement","isBasePlacement","fallbackPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","i","isStartVariation","isVertical","mainVariationSide","altVariationSide","checks","check","numberOfChecks","fittingPlacement","getAltAxis","within","min","max","preventOverflow","tether","tetherOffset","altAxis","tetherOffsetValue","mainSide","altSide","additive","minLen","maxLen","arrowElement","arrowRect","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","arrowOffsetParent","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","arrow","minProp","maxProp","endDiff","startDiff","clientSize","centerToReference","center","axisProp","getSideOffsets","preventedOffsets","isAnySideFullyClipped","side","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","eventListeners","isEqual","fromEntries","entries","EMPTY_MODIFIERS","usePopper","popperElement","prevOptions","optionsWithDefaults","setState","updateStateModifier","elements","popperOptions","newOptions","popperInstanceRef","useIsomorphicLayout","popperInstance","FindRefWrapper","root","getOpacityTransition","animationDuration","Popper","trigger","popperMatchesTriggerWidth","direction","appendTo","zIndex","isVisible","positionModifiers","onMouseEnter","onMouseLeave","onFocus","onBlur","onDocumentClick","onTriggerClick","onTriggerEnter","onPopperClick","onPopperMouseEnter","onPopperMouseLeave","onDocumentKeyDown","enableFlip","flipBehavior","removeFindDomNode","popperRef","triggerElement","setTriggerElement","refElement","setRefElement","setPopperElement","ready","setReady","refOrTrigger","onDocumentClickCallback","event","addEventListener","listener","capture","removeEventListener","observer","update","getPlacement","convertedPlacement","getPlacementMemo","getOppositePlacementMemo","sameWidthMod","popperStyles","forceUpdate","modifierFromPopperPosition","popperPlacement","menuWithPopper","getTarget","popperPortal","foundRef","useIsomorphicLayoutEffect","IconSize","getSize","size","currentId","createIcon","xOffset","yOffset","svgPath","_a","color","title","noVerticalAlign","props","hasTitle","heightWidth","baseAlign","viewBox"],"sourceRoot":""}