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e,GAAGV,OAAOS,EAAoB,CAAC,oBAC9CE,EAAqBF,EACrBG,EADqBH,C,eCHzB,SAASI,EAAUhT,GACjB,OAAOA,EAAS,OAClB,C","sources":["webpack://@finviz/website/../node_modules/reakit/es/Box/Box.js","webpack://@finviz/website/../node_modules/reakit/es/Combobox/Combobox.js","webpack://@finviz/website/../node_modules/reakit/es/Combobox/ComboboxItem.js","webpack://@finviz/website/../node_modules/reakit/es/Combobox/ComboboxOption.js","webpack://@finviz/website/../node_modules/reakit/es/Combobox/ComboboxList.js","webpack://@finviz/website/../node_modules/reakit/es/Combobox/ComboboxPopover.js","webpack://@finviz/website/../node_modules/reakit/es/ComboboxBaseState-73fabcba.js","webpack://@finviz/website/../node_modules/reakit/es/Combobox/ComboboxState.js","webpack://@finviz/website/../node_modules/reakit/es/Combobox/ComboboxListState.js","webpack://@finviz/website/../node_modules/reakit/es/ComboboxPopoverState-fdc371b4.js","webpack://@finviz/website/../node_modules/reakit/es/Popover/PopoverArrow.js","webpack://@finviz/website/../node_modules/reakit/es/Tooltip/Tooltip.js","webpack://@finviz/website/../node_modules/reakit/es/Tooltip/TooltipArrow.js","webpack://@finviz/website/../node_modules/reakit/es/Tooltip/TooltipReference.js","webpack://@finviz/website/../node_modules/reakit/es/Tooltip/TooltipState.js","webpack://@finviz/website/../node_modules/reakit/es/__globalState-300469f0.js","webpack://@finviz/website/../node_modules/reakit/es/__keys-0f89298f.js","webpack://@finviz/website/../node_modules/reakit/es/__keys-d101cb3b.js","webpack://@finviz/website/../node_modules/reakit/es/getMenuId-34730bd3.js"],"sourcesContent":["import { _ as _objectWithoutPropertiesLoose } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { createComponent } from 'reakit-system/createComponent';\nimport { createHook } from 'reakit-system/createHook';\nimport { shallowEqual } from 'reakit-utils/shallowEqual';\n\n// Automatically generated\nvar BOX_KEYS = [\"unstable_system\"];\n\nvar useBox = createHook({\n name: \"Box\",\n keys: BOX_KEYS,\n propsAreEqual: function propsAreEqual(prev, next) {\n var prevSystem = prev.unstable_system,\n prevProps = _objectWithoutPropertiesLoose(prev, [\"unstable_system\"]);\n\n var nextSystem = next.unstable_system,\n nextProps = _objectWithoutPropertiesLoose(next, [\"unstable_system\"]);\n\n if (prevSystem !== nextSystem && !shallowEqual(prevSystem, nextSystem)) {\n return false;\n }\n\n return shallowEqual(prevProps, nextProps);\n }\n});\nvar Box = createComponent({\n as: \"div\",\n useHook: useBox\n});\n\nexport { Box, useBox };\n","import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { createComponent } from 'reakit-system/createComponent';\nimport { createHook } from 'reakit-system/createHook';\nimport 'reakit-utils/shallowEqual';\nimport { useRef, useReducer, useMemo, useEffect, useCallback } from 'react';\nimport { useForkRef } from 'reakit-utils/useForkRef';\nimport 'reakit-utils/isButton';\nimport { warning } from 'reakit-warning';\nimport { useLiveRef } from 'reakit-utils/useLiveRef';\nimport 'reakit-utils/isSelfTarget';\nimport 'reakit-utils/useIsomorphicEffect';\nimport 'reakit-utils/hasFocusWithin';\nimport 'reakit-utils/isPortalEvent';\nimport 'reakit-utils/dom';\nimport 'reakit-utils/tabbable';\nimport '../Role/Role.js';\nimport '../Tabbable/Tabbable.js';\nimport { useUpdateEffect } from 'reakit-utils/useUpdateEffect';\nimport 'reakit-system/useCreateElement';\nimport 'reakit-utils/getDocument';\nimport 'reakit-utils/fireBlurEvent';\nimport 'reakit-utils/fireKeyboardEvent';\nimport 'reakit-utils/canUseDOM';\nimport 'reakit-utils/getNextActiveElementOnBlur';\nimport '../reverse-30eaa122.js';\nimport '../getCurrentId-5aa9849e.js';\nimport '../findEnabledItemById-8ddca752.js';\nimport '../__keys-6742f591.js';\nimport '../userFocus-e16425e3.js';\nimport { useComposite } from '../Composite/Composite.js';\nimport { C as COMBOBOX_KEYS } from '../__keys-0f89298f.js';\nimport { g as getMenuId } from '../getMenuId-34730bd3.js';\n\nfunction getControls(baseId, ariaControls) {\n var menuId = getMenuId(baseId);\n\n if (ariaControls) {\n return ariaControls + \" \" + menuId;\n }\n\n return menuId;\n}\n\nfunction getAutocomplete(options) {\n if (options.list && options.inline) return \"both\";\n if (options.list) return \"list\";\n if (options.inline) return \"inline\";\n return \"none\";\n}\n\nfunction isFirstItemAutoSelected(items, autoSelect, currentId) {\n if (!autoSelect) return false;\n var firstItem = items.find(function (item) {\n return !item.disabled;\n });\n return currentId && (firstItem === null || firstItem === void 0 ? void 0 : firstItem.id) === currentId;\n}\n\nfunction hasCompletionString(inputValue, currentValue) {\n return !!currentValue && currentValue.length > inputValue.length && currentValue.toLowerCase().indexOf(inputValue.toLowerCase()) === 0;\n}\n\nfunction getCompletionString(inputValue, currentValue) {\n if (!currentValue) return \"\";\n var index = currentValue.toLowerCase().indexOf(inputValue.toLowerCase());\n return currentValue.slice(index + inputValue.length);\n}\n\nfunction useValue(options) {\n return useMemo(function () {\n if (!options.inline) {\n return options.inputValue;\n }\n\n var firstItemAutoSelected = isFirstItemAutoSelected(options.items, options.autoSelect, options.currentId);\n\n if (firstItemAutoSelected) {\n if (hasCompletionString(options.inputValue, options.currentValue)) {\n return options.inputValue + getCompletionString(options.inputValue, options.currentValue);\n }\n\n return options.inputValue;\n }\n\n return options.currentValue || options.inputValue;\n }, [options.inline, options.inputValue, options.autoSelect, options.items, options.currentId, options.currentValue]);\n}\n\nfunction getFirstEnabledItemId(items) {\n var _items$find;\n\n return (_items$find = items.find(function (item) {\n return !item.disabled;\n })) === null || _items$find === void 0 ? void 0 : _items$find.id;\n}\n\nvar unstable_useCombobox = createHook({\n name: \"Combobox\",\n compose: useComposite,\n keys: COMBOBOX_KEYS,\n useOptions: function useOptions(_ref) {\n var _ref$menuRole = _ref.menuRole,\n menuRole = _ref$menuRole === void 0 ? \"listbox\" : _ref$menuRole,\n _ref$hideOnEsc = _ref.hideOnEsc,\n hideOnEsc = _ref$hideOnEsc === void 0 ? true : _ref$hideOnEsc,\n options = _objectWithoutPropertiesLoose(_ref, [\"menuRole\", \"hideOnEsc\"]);\n\n return _objectSpread2({\n menuRole: menuRole,\n hideOnEsc: hideOnEsc\n }, options);\n },\n useProps: function useProps(options, _ref2) {\n var htmlRef = _ref2.ref,\n htmlOnKeyDown = _ref2.onKeyDown,\n htmlOnKeyPress = _ref2.onKeyPress,\n htmlOnChange = _ref2.onChange,\n htmlOnClick = _ref2.onClick,\n htmlOnBlur = _ref2.onBlur,\n ariaControls = _ref2[\"aria-controls\"],\n htmlProps = _objectWithoutPropertiesLoose(_ref2, [\"ref\", \"onKeyDown\", \"onKeyPress\", \"onChange\", \"onClick\", \"onBlur\", \"aria-controls\"]);\n\n var ref = useRef(null);\n\n var _React$useReducer = useReducer(function () {\n return {};\n }, {}),\n updated = _React$useReducer[0],\n update = _React$useReducer[1];\n\n var onKeyDownRef = useLiveRef(htmlOnKeyDown);\n var onKeyPressRef = useLiveRef(htmlOnKeyPress);\n var onChangeRef = useLiveRef(htmlOnChange);\n var onClickRef = useLiveRef(htmlOnClick);\n var onBlurRef = useLiveRef(htmlOnBlur);\n var value = useValue(options);\n var hasInsertedTextRef = useRef(false); // Completion string\n\n useEffect(function () {\n if (!options.inline) return;\n if (!options.autoSelect) return;\n if (!options.currentValue) return;\n if (options.currentId !== getFirstEnabledItemId(options.items)) return;\n\n if (!hasCompletionString(options.inputValue, options.currentValue)) {\n return;\n }\n\n var element = ref.current;\n process.env.NODE_ENV !== \"production\" ? warning(!element, \"Can't auto select combobox because `ref` wasn't passed to the component\", \"See https://reakit.io/docs/combobox\") : void 0;\n element === null || element === void 0 ? void 0 : element.setSelectionRange(options.inputValue.length, options.currentValue.length);\n }, [updated, options.inline, options.autoSelect, options.currentValue, options.inputValue, options.currentId, options.items]); // Auto select on type\n\n useUpdateEffect(function () {\n if (options.autoSelect && options.items.length && hasInsertedTextRef.current) {\n // If autoSelect is set to true and the last change was a text\n // insertion, we want to automatically focus on the first suggestion.\n // This effect will run both when inputValue changes and when items\n // change so we can also catch async items.\n options.setCurrentId(undefined);\n } else {\n // Without autoSelect, we'll always blur the combobox option and move\n // focus onto the combobox input.\n options.setCurrentId(null);\n }\n }, [options.items, options.inputValue, options.autoSelect, options.setCurrentId]);\n var onKeyDown = useCallback(function (event) {\n var _onKeyDownRef$current;\n\n (_onKeyDownRef$current = onKeyDownRef.current) === null || _onKeyDownRef$current === void 0 ? void 0 : _onKeyDownRef$current.call(onKeyDownRef, event); // Resets the reference on key down so we can figure it out later on\n // key press.\n\n hasInsertedTextRef.current = false;\n if (event.defaultPrevented) return;\n\n if (event.key === \"Escape\" && options.hideOnEsc) {\n var _options$hide;\n\n (_options$hide = options.hide) === null || _options$hide === void 0 ? void 0 : _options$hide.call(options);\n }\n }, [options.hideOnEsc, options.hide]);\n var onKeyPress = useCallback(function (event) {\n var _onKeyPressRef$curren;\n\n (_onKeyPressRef$curren = onKeyPressRef.current) === null || _onKeyPressRef$curren === void 0 ? void 0 : _onKeyPressRef$curren.call(onKeyPressRef, event); // onKeyPress will catch only printable character presses, so we skip\n // text removal and paste.\n\n hasInsertedTextRef.current = true;\n }, []);\n var onChange = useCallback(function (event) {\n var _onChangeRef$current, _options$show, _options$setInputValu;\n\n (_onChangeRef$current = onChangeRef.current) === null || _onChangeRef$current === void 0 ? void 0 : _onChangeRef$current.call(onChangeRef, event);\n if (event.defaultPrevented) return;\n (_options$show = options.show) === null || _options$show === void 0 ? void 0 : _options$show.call(options);\n (_options$setInputValu = options.setInputValue) === null || _options$setInputValu === void 0 ? void 0 : _options$setInputValu.call(options, event.target.value);\n update();\n\n if (!options.autoSelect || !hasInsertedTextRef.current) {\n var _options$setCurrentId;\n\n // If autoSelect is not set or it's not an insertion of text, focus\n // on the combobox input after changing the value.\n (_options$setCurrentId = options.setCurrentId) === null || _options$setCurrentId === void 0 ? void 0 : _options$setCurrentId.call(options, null);\n } else {\n var _options$setCurrentId2;\n\n // Selects first item\n (_options$setCurrentId2 = options.setCurrentId) === null || _options$setCurrentId2 === void 0 ? void 0 : _options$setCurrentId2.call(options, undefined);\n }\n }, [options.show, options.autoSelect, options.setCurrentId, options.setInputValue]);\n var onClick = useCallback(function (event) {\n var _onClickRef$current, _options$setCurrentId3;\n\n (_onClickRef$current = onClickRef.current) === null || _onClickRef$current === void 0 ? void 0 : _onClickRef$current.call(onClickRef, event);\n if (event.defaultPrevented) return; // https://github.com/reakit/reakit/issues/808\n\n if (!options.minValueLength || value.length >= options.minValueLength) {\n var _options$show2;\n\n (_options$show2 = options.show) === null || _options$show2 === void 0 ? void 0 : _options$show2.call(options);\n }\n\n (_options$setCurrentId3 = options.setCurrentId) === null || _options$setCurrentId3 === void 0 ? void 0 : _options$setCurrentId3.call(options, null);\n options.setInputValue(value);\n }, [options.show, options.setCurrentId, options.setInputValue, options.minValueLength, value]);\n var onBlur = useCallback(function (event) {\n var _onBlurRef$current;\n\n (_onBlurRef$current = onBlurRef.current) === null || _onBlurRef$current === void 0 ? void 0 : _onBlurRef$current.call(onBlurRef, event);\n if (event.defaultPrevented) return;\n options.setInputValue(value);\n }, [options.setInputValue, value]);\n return _objectSpread2({\n ref: useForkRef(ref, useForkRef(options.unstable_referenceRef, htmlRef)),\n role: \"combobox\",\n autoComplete: \"off\",\n \"aria-controls\": getControls(options.baseId, ariaControls),\n \"aria-haspopup\": options.menuRole,\n \"aria-expanded\": options.visible,\n \"aria-autocomplete\": getAutocomplete(options),\n value: value,\n onKeyDown: onKeyDown,\n onKeyPress: onKeyPress,\n onChange: onChange,\n onClick: onClick,\n onBlur: onBlur\n }, htmlProps);\n },\n useComposeProps: function useComposeProps(options, _ref3) {\n var onKeyUp = _ref3.onKeyUp,\n htmlOnKeyDownCapture = _ref3.onKeyDownCapture,\n htmlOnKeyDown = _ref3.onKeyDown,\n htmlProps = _objectWithoutPropertiesLoose(_ref3, [\"onKeyUp\", \"onKeyDownCapture\", \"onKeyDown\"]);\n\n var compositeHTMLProps = useComposite(options, htmlProps, true);\n var onKeyDownCaptureRef = useLiveRef(htmlOnKeyDownCapture);\n var onKeyDownRef = useLiveRef(htmlOnKeyDown);\n var onKeyDownCapture = useCallback(function (event) {\n var _onKeyDownCaptureRef$, _compositeHTMLProps$o;\n\n (_onKeyDownCaptureRef$ = onKeyDownCaptureRef.current) === null || _onKeyDownCaptureRef$ === void 0 ? void 0 : _onKeyDownCaptureRef$.call(onKeyDownCaptureRef, event);\n if (event.defaultPrevented) return;\n\n if (options.menuRole !== \"grid\") {\n // If menu is a one-dimensional list and there's an option with\n // focus, we don't want Home/End and printable characters to perform\n // actions on the option, only on the combobox input.\n if (event.key === \"Home\") return;\n if (event.key === \"End\") return;\n }\n\n if (event.key.length === 1) return; // Composite's onKeyDownCapture will proxy this event to the active\n // item.\n\n (_compositeHTMLProps$o = compositeHTMLProps.onKeyDownCapture) === null || _compositeHTMLProps$o === void 0 ? void 0 : _compositeHTMLProps$o.call(compositeHTMLProps, event);\n }, [options.menuRole, compositeHTMLProps.onKeyDownCapture]);\n var onKeyDown = useCallback(function (event) {\n var _onKeyDownRef$current2, _compositeHTMLProps$o2;\n\n (_onKeyDownRef$current2 = onKeyDownRef.current) === null || _onKeyDownRef$current2 === void 0 ? void 0 : _onKeyDownRef$current2.call(onKeyDownRef, event);\n if (event.defaultPrevented) return;\n var onlyInputHasFocus = options.currentId === null;\n if (!onlyInputHasFocus) return; // Do not perform list actions when pressing horizontal arrow keys when\n // focusing the combobox input while no option has focus.\n\n if (event.key === \"ArrowLeft\") return;\n if (event.key === \"ArrowRight\") return;\n if (event.key === \"Home\") return;\n if (event.key === \"End\") return;\n\n if (!event.ctrlKey && !event.altKey && !event.shiftKey && !event.metaKey && (event.key === \"ArrowUp\" || event.key === \"ArrowDown\" || event.key.length === 1)) {\n var _options$show3;\n\n // Up/Down arrow keys and printable characters should open the\n // combobox popover.\n (_options$show3 = options.show) === null || _options$show3 === void 0 ? void 0 : _options$show3.call(options);\n }\n\n (_compositeHTMLProps$o2 = compositeHTMLProps.onKeyDown) === null || _compositeHTMLProps$o2 === void 0 ? void 0 : _compositeHTMLProps$o2.call(compositeHTMLProps, event);\n }, [options.currentId, options.show, compositeHTMLProps.onKeyDown]);\n return _objectSpread2(_objectSpread2({}, compositeHTMLProps), {}, {\n onKeyDownCapture: onKeyDownCapture,\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp\n });\n }\n});\nvar unstable_Combobox = createComponent({\n as: \"input\",\n memo: true,\n useHook: unstable_useCombobox\n});\n\nexport { unstable_Combobox, unstable_useCombobox };\n","import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { createComponent } from 'reakit-system/createComponent';\nimport { createHook } from 'reakit-system/createHook';\nimport 'reakit-utils/shallowEqual';\nimport { useBox } from '../Box/Box.js';\nimport { useCallback } from 'react';\nimport 'reakit-utils/useForkRef';\nimport 'reakit-utils/isButton';\nimport 'reakit-warning';\nimport { useLiveRef } from 'reakit-utils/useLiveRef';\nimport 'reakit-utils/isSelfTarget';\nimport 'reakit-utils/useIsomorphicEffect';\nimport 'reakit-utils/hasFocusWithin';\nimport 'reakit-utils/isPortalEvent';\nimport 'reakit-utils/dom';\nimport 'reakit-utils/tabbable';\nimport '../Role/Role.js';\nimport '../Tabbable/Tabbable.js';\nimport '../Clickable/Clickable.js';\nimport 'reakit-utils/getDocument';\nimport '../getCurrentId-5aa9849e.js';\nimport '../__keys-6742f591.js';\nimport '../userFocus-e16425e3.js';\nimport { c as COMBOBOX_ITEM_KEYS } from '../__keys-0f89298f.js';\nimport 'reakit-utils/isTextField';\nimport 'reakit-utils/ensureFocus';\nimport '../Id/IdProvider.js';\nimport '../Id/Id.js';\nimport 'reakit-utils/fireEvent';\nimport '../setTextFieldValue-0a221f4e.js';\nimport { useCompositeItem } from '../Composite/CompositeItem.js';\n\nfunction kebabCase(string) {\n return string.toLowerCase().replace(/[^a-z0-9]/g, \"-\");\n}\n\nfunction getItemId(baseId, value, id) {\n return id || baseId + \"-\" + kebabCase(value);\n}\n\nvar unstable_useComboboxItem = createHook({\n name: \"ComboboxItem\",\n compose: useBox,\n keys: COMBOBOX_ITEM_KEYS,\n propsAreEqual: function propsAreEqual(prev, next) {\n if (prev.value !== next.value) return false;\n\n if (!prev.value || !next.value || !prev.baseId || !next.baseId) {\n return useCompositeItem.unstable_propsAreEqual(prev, next);\n }\n\n var prevCurrentValue = prev.currentValue,\n prevInputValue = prev.inputValue,\n prevMatches = prev.matches,\n prevProps = _objectWithoutPropertiesLoose(prev, [\"currentValue\", \"inputValue\", \"matches\"]);\n\n var nextCurrentValue = next.currentValue,\n nextInputValue = next.inputValue,\n nextMatches = next.matches,\n nextProps = _objectWithoutPropertiesLoose(next, [\"currentValue\", \"inputValue\", \"matches\"]);\n\n if (prevCurrentValue !== nextCurrentValue) {\n if (next.value === prevCurrentValue || next.value === nextCurrentValue) {\n return false;\n }\n }\n\n var prevId = getItemId(prev.baseId, prev.value, prev.id);\n var nextId = getItemId(next.baseId, next.value, prev.id);\n return useCompositeItem.unstable_propsAreEqual(_objectSpread2(_objectSpread2({}, prevProps), {}, {\n id: prevId\n }), _objectSpread2(_objectSpread2({}, nextProps), {}, {\n id: nextId\n }));\n },\n useOptions: function useOptions(options) {\n var trulyDisabled = options.disabled && !options.focusable;\n var value = trulyDisabled ? undefined : options.value;\n var registerItem = useCallback(function (item) {\n if (options.visible) {\n var _options$registerItem;\n\n (_options$registerItem = options.registerItem) === null || _options$registerItem === void 0 ? void 0 : _options$registerItem.call(options, _objectSpread2(_objectSpread2({}, item), {}, {\n value: value\n }));\n }\n }, [options.registerItem, options.visible, value]);\n\n if (options.id || !options.baseId || !options.value) {\n return _objectSpread2(_objectSpread2({}, options), {}, {\n registerItem: registerItem\n });\n }\n\n var id = getItemId(options.baseId, options.value, options.id);\n return _objectSpread2(_objectSpread2({}, options), {}, {\n registerItem: registerItem,\n id: id\n });\n },\n useProps: function useProps(options, _ref) {\n var htmlOnClick = _ref.onClick,\n htmlProps = _objectWithoutPropertiesLoose(_ref, [\"onClick\"]);\n\n var onClickRef = useLiveRef(htmlOnClick);\n var onClick = useCallback(function (event) {\n var _onClickRef$current, _options$hide, _options$setInputValu;\n\n (_onClickRef$current = onClickRef.current) === null || _onClickRef$current === void 0 ? void 0 : _onClickRef$current.call(onClickRef, event);\n if (event.defaultPrevented) return;\n if (!options.value) return;\n (_options$hide = options.hide) === null || _options$hide === void 0 ? void 0 : _options$hide.call(options);\n (_options$setInputValu = options.setInputValue) === null || _options$setInputValu === void 0 ? void 0 : _options$setInputValu.call(options, options.value);\n }, [options.hide, options.setInputValue, options.value]);\n return _objectSpread2({\n children: options.value,\n onClick: onClick,\n tabIndex: -1\n }, htmlProps);\n }\n});\nvar unstable_ComboboxItem = createComponent({\n as: \"span\",\n memo: true,\n useHook: unstable_useComboboxItem\n});\n\nexport { unstable_ComboboxItem, unstable_useComboboxItem };\n","import { a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { createComponent } from 'reakit-system/createComponent';\nimport { createHook } from 'reakit-system/createHook';\nimport 'reakit-utils/shallowEqual';\nimport '../Box/Box.js';\nimport 'react';\nimport 'reakit-utils/useForkRef';\nimport 'reakit-utils/isButton';\nimport 'reakit-warning';\nimport 'reakit-utils/useLiveRef';\nimport 'reakit-utils/isSelfTarget';\nimport 'reakit-utils/useIsomorphicEffect';\nimport 'reakit-utils/hasFocusWithin';\nimport 'reakit-utils/isPortalEvent';\nimport 'reakit-utils/dom';\nimport 'reakit-utils/tabbable';\nimport '../Role/Role.js';\nimport '../Tabbable/Tabbable.js';\nimport '../Clickable/Clickable.js';\nimport 'reakit-utils/getDocument';\nimport '../getCurrentId-5aa9849e.js';\nimport '../__keys-6742f591.js';\nimport '../userFocus-e16425e3.js';\nimport { e as COMBOBOX_OPTION_KEYS } from '../__keys-0f89298f.js';\nimport 'reakit-utils/isTextField';\nimport 'reakit-utils/ensureFocus';\nimport '../Id/IdProvider.js';\nimport '../Id/Id.js';\nimport 'reakit-utils/fireEvent';\nimport '../setTextFieldValue-0a221f4e.js';\nimport { useCompositeItem } from '../Composite/CompositeItem.js';\nimport { unstable_useComboboxItem } from './ComboboxItem.js';\n\nvar unstable_useComboboxOption = createHook({\n name: \"ComboboxOption\",\n compose: [unstable_useComboboxItem, useCompositeItem],\n keys: COMBOBOX_OPTION_KEYS,\n useProps: function useProps(_, htmlProps) {\n return _objectSpread2({\n role: \"option\"\n }, htmlProps);\n }\n});\nvar unstable_ComboboxOption = createComponent({\n as: \"div\",\n memo: true,\n useHook: unstable_useComboboxOption\n});\n\nexport { unstable_ComboboxOption, unstable_useComboboxOption };\n","import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { createComponent } from 'reakit-system/createComponent';\nimport { createHook } from 'reakit-system/createHook';\nimport 'reakit-utils/shallowEqual';\nimport { useBox } from '../Box/Box.js';\nimport { useWarning } from 'reakit-warning';\nimport { useCreateElement } from 'reakit-system/useCreateElement';\nimport { d as COMBOBOX_LIST_KEYS } from '../__keys-0f89298f.js';\nimport { g as getMenuId } from '../getMenuId-34730bd3.js';\n\nvar unstable_useComboboxList = createHook({\n name: \"ComboboxList\",\n compose: useBox,\n keys: COMBOBOX_LIST_KEYS,\n useOptions: function useOptions(_ref) {\n var _ref$menuRole = _ref.menuRole,\n menuRole = _ref$menuRole === void 0 ? \"listbox\" : _ref$menuRole,\n options = _objectWithoutPropertiesLoose(_ref, [\"menuRole\"]);\n\n return _objectSpread2({\n menuRole: menuRole\n }, options);\n },\n useProps: function useProps(options, htmlProps) {\n return _objectSpread2({\n role: options.menuRole,\n id: getMenuId(options.baseId)\n }, htmlProps);\n }\n});\nvar unstable_ComboboxList = createComponent({\n as: \"div\",\n useHook: unstable_useComboboxList,\n useCreateElement: function useCreateElement$1(type, props, children) {\n process.env.NODE_ENV !== \"production\" ? useWarning(!props[\"aria-label\"] && !props[\"aria-labelledby\"], \"You should provide either `aria-label` or `aria-labelledby` props.\", \"See https://reakit.io/docs/combobox\") : void 0;\n return useCreateElement(type, props, children);\n }\n});\n\nexport { unstable_ComboboxList, unstable_useComboboxList };\n","import { a as _objectSpread2, _ as _objectWithoutPropertiesLoose } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { createComponent } from 'reakit-system/createComponent';\nimport { createHook } from 'reakit-system/createHook';\nimport 'reakit-utils/shallowEqual';\nimport '../Box/Box.js';\nimport 'react';\nimport 'reakit-utils/useForkRef';\nimport 'reakit-utils/isButton';\nimport { useWarning } from 'reakit-warning';\nimport 'reakit-utils/useLiveRef';\nimport 'reakit-utils/isSelfTarget';\nimport 'reakit-utils/useIsomorphicEffect';\nimport 'reakit-utils/hasFocusWithin';\nimport 'reakit-utils/tabbable';\nimport '../Role/Role.js';\nimport 'reakit-utils/useUpdateEffect';\nimport { useCreateElement } from 'reakit-system/useCreateElement';\nimport 'reakit-utils/getDocument';\nimport 'reakit-utils/canUseDOM';\nimport 'reakit-utils/getNextActiveElementOnBlur';\nimport { f as COMBOBOX_POPOVER_KEYS } from '../__keys-0f89298f.js';\nimport '../getMenuId-34730bd3.js';\nimport 'reakit-utils/ensureFocus';\nimport { unstable_useComboboxList } from './ComboboxList.js';\nimport '../__keys-e6a5cfbe.js';\nimport '../Disclosure/DisclosureContent.js';\nimport 'react-dom';\nimport '../Portal/Portal.js';\nimport 'reakit-utils/removeItemFromArray';\nimport '../MenuContext-6af6cf92.js';\nimport '../Dialog/Dialog.js';\nimport 'body-scroll-lock';\nimport 'reakit-utils/closest';\nimport 'reakit-utils/getActiveElement';\nimport 'reakit-utils/contains';\nimport '../DialogBackdropContext-8775f78b.js';\nimport 'reakit-utils/isEmpty';\nimport '../__keys-ed7b48af.js';\nimport '../__keys-26bb1730.js';\nimport { usePopover } from '../Popover/Popover.js';\n\nvar unstable_useComboboxPopover = createHook({\n name: \"ComboboxPopover\",\n compose: [unstable_useComboboxList, usePopover],\n keys: COMBOBOX_POPOVER_KEYS,\n useOptions: function useOptions(options) {\n return _objectSpread2(_objectSpread2({}, options), {}, {\n unstable_disclosureRef: options.unstable_referenceRef,\n unstable_autoFocusOnShow: false,\n unstable_autoFocusOnHide: false\n });\n },\n useComposeProps: function useComposeProps(options, _ref) {\n var tabIndex = _ref.tabIndex,\n htmlProps = _objectWithoutPropertiesLoose(_ref, [\"tabIndex\"]);\n\n htmlProps = unstable_useComboboxList(options, htmlProps, true);\n htmlProps = usePopover(options, htmlProps, true);\n return _objectSpread2(_objectSpread2({}, htmlProps), {}, {\n tabIndex: tabIndex != null ? tabIndex : undefined\n });\n }\n});\nvar unstable_ComboboxPopover = createComponent({\n as: \"div\",\n useHook: unstable_useComboboxPopover,\n useCreateElement: function useCreateElement$1(type, props, children) {\n process.env.NODE_ENV !== \"production\" ? useWarning(!props[\"aria-label\"] && !props[\"aria-labelledby\"], \"You should provide either `aria-label` or `aria-labelledby` props.\", \"See https://reakit.io/docs/combobox\") : void 0;\n return useCreateElement(type, props, children);\n }\n});\n\nexport { unstable_ComboboxPopover, unstable_useComboboxPopover };\n","import { a as _objectSpread2, b as _createForOfIteratorHelperLoose } from './_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { useRef, useState, useMemo, useCallback } from 'react';\n\nfunction escapeRegExp(string) {\n return string.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n\nfunction getMatches(inputValue, values, limit, list, autoSelect, minValueLength) {\n if (limit === 0 || inputValue.length < minValueLength) {\n // We don't want to populate combobox.matches if inputValue doesn't have\n // enough characters.\n return [];\n }\n\n var length = limit === false ? undefined : limit;\n\n if (!list) {\n // If list is false, this means that values aren't expected to be filtered.\n return values.slice(0, length);\n }\n\n var regex = new RegExp(escapeRegExp(inputValue), \"i\");\n var matches = [];\n\n if (autoSelect) {\n var match = values.find(function (value) {\n return value.search(regex) === 0;\n });\n\n if (match) {\n matches.push(match);\n }\n }\n\n for (var _iterator = _createForOfIteratorHelperLoose(values), _step; !(_step = _iterator()).done;) {\n var value = _step.value;\n\n if (length && matches.length >= length) {\n break;\n } // Excludes first match, that can be auto selected\n\n\n if (value !== matches[0] && value.search(regex) !== -1) {\n matches.push(value);\n }\n }\n\n return matches;\n}\n\nfunction useComboboxBaseState(composite, _temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$inputValue = _ref.inputValue,\n initialInputValue = _ref$inputValue === void 0 ? \"\" : _ref$inputValue,\n _ref$minValueLength = _ref.minValueLength,\n initialMinValueLength = _ref$minValueLength === void 0 ? 0 : _ref$minValueLength,\n _ref$values = _ref.values,\n initialValues = _ref$values === void 0 ? [] : _ref$values,\n _ref$limit = _ref.limit,\n initialLimit = _ref$limit === void 0 ? 10 : _ref$limit,\n _ref$list = _ref.list,\n initialList = _ref$list === void 0 ? !!initialValues.length : _ref$list,\n _ref$inline = _ref.inline,\n initialInline = _ref$inline === void 0 ? false : _ref$inline,\n _ref$autoSelect = _ref.autoSelect,\n initialAutoSelect = _ref$autoSelect === void 0 ? false : _ref$autoSelect;\n\n var valuesById = useRef({});\n\n var _React$useState = useState(initialInputValue),\n inputValue = _React$useState[0],\n setInputValue = _React$useState[1];\n\n var _React$useState2 = useState(initialMinValueLength),\n minValueLength = _React$useState2[0],\n setMinValueLength = _React$useState2[1];\n\n var _React$useState3 = useState(initialValues),\n values = _React$useState3[0],\n setValues = _React$useState3[1];\n\n var _React$useState4 = useState(initialLimit),\n limit = _React$useState4[0],\n setLimit = _React$useState4[1];\n\n var _React$useState5 = useState(initialList),\n list = _React$useState5[0],\n setList = _React$useState5[1];\n\n var _React$useState6 = useState(initialInline),\n inline = _React$useState6[0],\n setInline = _React$useState6[1];\n\n var _React$useState7 = useState(initialAutoSelect),\n autoSelect = _React$useState7[0],\n setAutoSelect = _React$useState7[1];\n\n var matches = useMemo(function () {\n return getMatches(inputValue, values, limit, list, autoSelect, minValueLength);\n }, [inputValue, values, limit, list, autoSelect, minValueLength]);\n var currentValue = useMemo(function () {\n return composite.currentId ? valuesById.current[composite.currentId] : undefined;\n }, [valuesById, composite.currentId]);\n var items = useMemo(function () {\n composite.items.forEach(function (item) {\n if (item.id) {\n item.value = valuesById.current[item.id];\n }\n });\n return composite.items;\n }, [composite.items]);\n var registerItem = useCallback(function (item) {\n composite.registerItem(item);\n\n if (item.id) {\n valuesById.current[item.id] = item.value;\n }\n }, [composite.registerItem]);\n var unregisterItem = useCallback(function (id) {\n composite.unregisterItem(id);\n delete valuesById.current[id];\n }, [composite.unregisterItem]);\n return _objectSpread2(_objectSpread2({}, composite), {}, {\n menuRole: \"listbox\",\n items: items,\n registerItem: registerItem,\n unregisterItem: unregisterItem,\n visible: true,\n inputValue: inputValue,\n minValueLength: minValueLength,\n currentValue: currentValue,\n values: values,\n limit: limit,\n matches: matches,\n list: list,\n inline: inline,\n autoSelect: autoSelect,\n setInputValue: setInputValue,\n setMinValueLength: setMinValueLength,\n setValues: setValues,\n setLimit: setLimit,\n setList: setList,\n setInline: setInline,\n setAutoSelect: setAutoSelect\n });\n}\n\nexport { useComboboxBaseState as u };\n","import '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport 'reakit-utils/shallowEqual';\nimport 'react';\nimport 'reakit-warning';\nimport 'reakit-utils/useIsomorphicEffect';\nimport 'reakit-utils/dom';\nimport { useSealedState } from 'reakit-utils/useSealedState';\nimport 'reakit-utils/getDocument';\nimport '../reverse-30eaa122.js';\nimport '../getCurrentId-5aa9849e.js';\nimport '../findEnabledItemById-8ddca752.js';\nimport '../Id/IdProvider.js';\nimport 'reakit-utils/applyState';\nimport '../Id/IdState.js';\nimport '../Composite/CompositeState.js';\nimport '../ComboboxBaseState-73fabcba.js';\nimport '@popperjs/core';\nimport '../Disclosure/DisclosureState.js';\nimport '../Dialog/DialogState.js';\nimport '../Popover/PopoverState.js';\nimport { u as useComboboxPopoverState } from '../ComboboxPopoverState-fdc371b4.js';\nimport { unstable_useComboboxListState } from './ComboboxListState.js';\n\nfunction unstable_useComboboxState(initialState) {\n if (initialState === void 0) {\n initialState = {};\n }\n\n var sealed = useSealedState(initialState);\n var combobox = unstable_useComboboxListState(sealed);\n return useComboboxPopoverState(combobox, sealed);\n}\n\nexport { unstable_useComboboxState };\n","import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport 'react';\nimport 'reakit-utils/useIsomorphicEffect';\nimport { useSealedState } from 'reakit-utils/useSealedState';\nimport 'reakit-utils/getDocument';\nimport '../reverse-30eaa122.js';\nimport '../getCurrentId-5aa9849e.js';\nimport '../findEnabledItemById-8ddca752.js';\nimport '../Id/IdProvider.js';\nimport 'reakit-utils/applyState';\nimport '../Id/IdState.js';\nimport { useCompositeState } from '../Composite/CompositeState.js';\nimport { u as useComboboxBaseState } from '../ComboboxBaseState-73fabcba.js';\n\nfunction unstable_useComboboxListState(initialState) {\n if (initialState === void 0) {\n initialState = {};\n }\n\n var _useSealedState = useSealedState(initialState),\n _useSealedState$curre = _useSealedState.currentId,\n currentId = _useSealedState$curre === void 0 ? null : _useSealedState$curre,\n _useSealedState$orien = _useSealedState.orientation,\n orientation = _useSealedState$orien === void 0 ? \"vertical\" : _useSealedState$orien,\n _useSealedState$loop = _useSealedState.loop,\n loop = _useSealedState$loop === void 0 ? true : _useSealedState$loop,\n sealed = _objectWithoutPropertiesLoose(_useSealedState, [\"currentId\", \"orientation\", \"loop\"]);\n\n var composite = useCompositeState(_objectSpread2(_objectSpread2({\n currentId: currentId,\n orientation: orientation,\n loop: loop\n }, sealed), {}, {\n unstable_virtual: true,\n unstable_includesBaseElement: true\n }));\n return useComboboxBaseState(composite, sealed);\n}\n\nexport { unstable_useComboboxListState };\n","import { a as _objectSpread2, _ as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { useEffect } from 'react';\nimport { usePopoverState } from './Popover/PopoverState.js';\n\nfunction useComboboxPopoverState(combobox, _ref) {\n if (_ref === void 0) {\n _ref = {};\n }\n\n var _ref2 = _ref,\n _ref2$gutter = _ref2.gutter,\n gutter = _ref2$gutter === void 0 ? 0 : _ref2$gutter,\n _ref2$placement = _ref2.placement,\n placement = _ref2$placement === void 0 ? \"bottom-start\" : _ref2$placement,\n initialState = _objectWithoutPropertiesLoose(_ref2, [\"gutter\", \"placement\"]);\n\n var popover = usePopoverState(_objectSpread2({\n gutter: gutter,\n placement: placement\n }, initialState));\n var visible = popover.visible && combobox.inputValue.length >= combobox.minValueLength;\n useEffect(function () {\n if (!visible) {\n // We need to reset combobox.moves\n combobox.reset();\n }\n }, [visible, combobox.reset]);\n return _objectSpread2(_objectSpread2(_objectSpread2({}, combobox), popover), {}, {\n visible: visible\n });\n}\n\nexport { useComboboxPopoverState as u };\n","import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { createComponent } from 'reakit-system/createComponent';\nimport { createHook } from 'reakit-system/createHook';\nimport 'reakit-utils/shallowEqual';\nimport { useMemo, createElement } from 'react';\nimport { useForkRef } from 'reakit-utils/useForkRef';\nimport { useRole } from '../Role/Role.js';\nimport { a as POPOVER_ARROW_KEYS } from '../__keys-26bb1730.js';\n\nvar usePopoverArrow = createHook({\n name: \"PopoverArrow\",\n compose: useRole,\n keys: POPOVER_ARROW_KEYS,\n useOptions: function useOptions(_ref) {\n var _ref$size = _ref.size,\n size = _ref$size === void 0 ? 30 : _ref$size,\n options = _objectWithoutPropertiesLoose(_ref, [\"size\"]);\n\n return _objectSpread2({\n size: size\n }, options);\n },\n useProps: function useProps(options, _ref2) {\n var _objectSpread2$1;\n\n var htmlRef = _ref2.ref,\n htmlStyle = _ref2.style,\n htmlProps = _objectWithoutPropertiesLoose(_ref2, [\"ref\", \"style\"]);\n\n var _options$placement$sp = options.placement.split(\"-\"),\n placement = _options$placement$sp[0];\n\n var transformMap = {\n top: \"rotateZ(180deg)\",\n right: \"rotateZ(-90deg)\",\n bottom: \"rotateZ(360deg)\",\n left: \"rotateZ(90deg)\"\n };\n var arrowStyles = options.unstable_arrowStyles;\n var transform = transformMap[placement];\n var children = useMemo(function () {\n return /*#__PURE__*/createElement(\"svg\", {\n viewBox: \"0 0 30 30\",\n style: {\n transform: transform\n }\n }, /*#__PURE__*/createElement(\"path\", {\n className: \"stroke\",\n d: \"M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26 C26.7,29,24.6,28.1,23.7,27.1z\"\n }), /*#__PURE__*/createElement(\"path\", {\n className: \"fill\",\n d: \"M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z\"\n }));\n }, [transform]);\n return _objectSpread2({\n ref: useForkRef(options.unstable_arrowRef, htmlRef),\n style: _objectSpread2(_objectSpread2({}, arrowStyles), {}, (_objectSpread2$1 = {\n fontSize: options.size,\n width: \"1em\",\n height: \"1em\",\n pointerEvents: \"none\"\n }, _objectSpread2$1[placement] = \"100%\", _objectSpread2$1), htmlStyle),\n children: children\n }, htmlProps);\n }\n});\nvar PopoverArrow = createComponent({\n as: \"div\",\n memo: true,\n useHook: usePopoverArrow\n});\n\nexport { PopoverArrow, usePopoverArrow };\n","import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { createComponent } from 'reakit-system/createComponent';\nimport { createHook } from 'reakit-system/createHook';\nimport 'reakit-utils/shallowEqual';\nimport { useEffect, useCallback, createElement } from 'react';\nimport { useForkRef } from 'reakit-utils/useForkRef';\nimport 'reakit-utils/useLiveRef';\nimport 'reakit-utils/isSelfTarget';\nimport 'reakit-utils/useIsomorphicEffect';\nimport '../Role/Role.js';\nimport { getDocument } from 'reakit-utils/getDocument';\nimport 'reakit-utils/canUseDOM';\nimport '../__keys-e6a5cfbe.js';\nimport { useDisclosureContent } from '../Disclosure/DisclosureContent.js';\nimport 'react-dom';\nimport { Portal } from '../Portal/Portal.js';\nimport { T as TOOLTIP_KEYS } from '../__keys-d101cb3b.js';\nimport { g as globalState } from '../__globalState-300469f0.js';\n\nfunction globallyHideTooltipOnEscape(event) {\n if (event.defaultPrevented) return;\n\n if (event.key === \"Escape\") {\n globalState.show(null);\n }\n}\n\nvar useTooltip = createHook({\n name: \"Tooltip\",\n compose: useDisclosureContent,\n keys: TOOLTIP_KEYS,\n useOptions: function useOptions(_ref) {\n var _ref$unstable_portal = _ref.unstable_portal,\n unstable_portal = _ref$unstable_portal === void 0 ? true : _ref$unstable_portal,\n options = _objectWithoutPropertiesLoose(_ref, [\"unstable_portal\"]);\n\n return _objectSpread2({\n unstable_portal: unstable_portal\n }, options);\n },\n useProps: function useProps(options, _ref2) {\n var htmlRef = _ref2.ref,\n htmlStyle = _ref2.style,\n htmlWrapElement = _ref2.wrapElement,\n htmlProps = _objectWithoutPropertiesLoose(_ref2, [\"ref\", \"style\", \"wrapElement\"]);\n\n useEffect(function () {\n var _options$unstable_pop;\n\n var document = getDocument((_options$unstable_pop = options.unstable_popoverRef) === null || _options$unstable_pop === void 0 ? void 0 : _options$unstable_pop.current);\n document.addEventListener(\"keydown\", globallyHideTooltipOnEscape);\n }, []);\n var wrapElement = useCallback(function (element) {\n if (options.unstable_portal) {\n element = /*#__PURE__*/createElement(Portal, null, element);\n }\n\n if (htmlWrapElement) {\n return htmlWrapElement(element);\n }\n\n return element;\n }, [options.unstable_portal, htmlWrapElement]);\n return _objectSpread2({\n ref: useForkRef(options.unstable_popoverRef, htmlRef),\n role: \"tooltip\",\n style: _objectSpread2(_objectSpread2({}, options.unstable_popoverStyles), {}, {\n pointerEvents: \"none\"\n }, htmlStyle),\n wrapElement: wrapElement\n }, htmlProps);\n }\n});\nvar Tooltip = createComponent({\n as: \"div\",\n memo: true,\n useHook: useTooltip\n});\n\nexport { Tooltip, useTooltip };\n","import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { createComponent } from 'reakit-system/createComponent';\nimport { createHook } from 'reakit-system/createHook';\nimport 'reakit-utils/shallowEqual';\nimport 'react';\nimport 'reakit-utils/useForkRef';\nimport '../Role/Role.js';\nimport '../__keys-26bb1730.js';\nimport { usePopoverArrow } from '../Popover/PopoverArrow.js';\nimport { a as TOOLTIP_ARROW_KEYS } from '../__keys-d101cb3b.js';\n\nvar useTooltipArrow = createHook({\n name: \"TooltipArrow\",\n compose: usePopoverArrow,\n keys: TOOLTIP_ARROW_KEYS,\n useOptions: function useOptions(_ref) {\n var _ref$size = _ref.size,\n size = _ref$size === void 0 ? 16 : _ref$size,\n options = _objectWithoutPropertiesLoose(_ref, [\"size\"]);\n\n return _objectSpread2({\n size: size\n }, options);\n }\n});\nvar TooltipArrow = createComponent({\n as: \"div\",\n memo: true,\n useHook: useTooltipArrow\n});\n\nexport { TooltipArrow, useTooltipArrow };\n","import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport { createComponent } from 'reakit-system/createComponent';\nimport { createHook } from 'reakit-system/createHook';\nimport 'reakit-utils/shallowEqual';\nimport { useCallback } from 'react';\nimport { useForkRef } from 'reakit-utils/useForkRef';\nimport { useLiveRef } from 'reakit-utils/useLiveRef';\nimport { useRole } from '../Role/Role.js';\nimport { b as TOOLTIP_REFERENCE_KEYS } from '../__keys-d101cb3b.js';\n\nvar useTooltipReference = createHook({\n name: \"TooltipReference\",\n compose: useRole,\n keys: TOOLTIP_REFERENCE_KEYS,\n useProps: function useProps(options, _ref) {\n var htmlRef = _ref.ref,\n htmlOnFocus = _ref.onFocus,\n htmlOnBlur = _ref.onBlur,\n htmlOnMouseEnter = _ref.onMouseEnter,\n htmlOnMouseLeave = _ref.onMouseLeave,\n htmlProps = _objectWithoutPropertiesLoose(_ref, [\"ref\", \"onFocus\", \"onBlur\", \"onMouseEnter\", \"onMouseLeave\"]);\n\n var onFocusRef = useLiveRef(htmlOnFocus);\n var onBlurRef = useLiveRef(htmlOnBlur);\n var onMouseEnterRef = useLiveRef(htmlOnMouseEnter);\n var onMouseLeaveRef = useLiveRef(htmlOnMouseLeave);\n var onFocus = useCallback(function (event) {\n var _onFocusRef$current, _options$show;\n\n (_onFocusRef$current = onFocusRef.current) === null || _onFocusRef$current === void 0 ? void 0 : _onFocusRef$current.call(onFocusRef, event);\n if (event.defaultPrevented) return;\n (_options$show = options.show) === null || _options$show === void 0 ? void 0 : _options$show.call(options);\n }, [options.show]);\n var onBlur = useCallback(function (event) {\n var _onBlurRef$current, _options$hide;\n\n (_onBlurRef$current = onBlurRef.current) === null || _onBlurRef$current === void 0 ? void 0 : _onBlurRef$current.call(onBlurRef, event);\n if (event.defaultPrevented) return;\n (_options$hide = options.hide) === null || _options$hide === void 0 ? void 0 : _options$hide.call(options);\n }, [options.hide]);\n var onMouseEnter = useCallback(function (event) {\n var _onMouseEnterRef$curr, _options$show2;\n\n (_onMouseEnterRef$curr = onMouseEnterRef.current) === null || _onMouseEnterRef$curr === void 0 ? void 0 : _onMouseEnterRef$curr.call(onMouseEnterRef, event);\n if (event.defaultPrevented) return;\n (_options$show2 = options.show) === null || _options$show2 === void 0 ? void 0 : _options$show2.call(options);\n }, [options.show]);\n var onMouseLeave = useCallback(function (event) {\n var _onMouseLeaveRef$curr, _options$hide2;\n\n (_onMouseLeaveRef$curr = onMouseLeaveRef.current) === null || _onMouseLeaveRef$curr === void 0 ? void 0 : _onMouseLeaveRef$curr.call(onMouseLeaveRef, event);\n if (event.defaultPrevented) return;\n (_options$hide2 = options.hide) === null || _options$hide2 === void 0 ? void 0 : _options$hide2.call(options);\n }, [options.hide]);\n return _objectSpread2({\n ref: useForkRef(options.unstable_referenceRef, htmlRef),\n tabIndex: 0,\n onFocus: onFocus,\n onBlur: onBlur,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n \"aria-describedby\": options.baseId\n }, htmlProps);\n }\n});\nvar TooltipReference = createComponent({\n as: \"div\",\n useHook: useTooltipReference\n});\n\nexport { TooltipReference, useTooltipReference };\n","import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';\nimport 'reakit-utils/shallowEqual';\nimport { useState, useRef, useCallback, useEffect } from 'react';\nimport 'reakit-warning';\nimport 'reakit-utils/useIsomorphicEffect';\nimport 'reakit-utils/dom';\nimport { useSealedState } from 'reakit-utils/useSealedState';\nimport '../Id/IdProvider.js';\nimport '../Id/IdState.js';\nimport '@popperjs/core';\nimport '../Disclosure/DisclosureState.js';\nimport '../Dialog/DialogState.js';\nimport { usePopoverState } from '../Popover/PopoverState.js';\nimport { g as globalState } from '../__globalState-300469f0.js';\n\nfunction useTooltipState(initialState) {\n if (initialState === void 0) {\n initialState = {};\n }\n\n var _useSealedState = useSealedState(initialState),\n _useSealedState$place = _useSealedState.placement,\n placement = _useSealedState$place === void 0 ? \"top\" : _useSealedState$place,\n _useSealedState$unsta = _useSealedState.unstable_timeout,\n initialTimeout = _useSealedState$unsta === void 0 ? 0 : _useSealedState$unsta,\n sealed = _objectWithoutPropertiesLoose(_useSealedState, [\"placement\", \"unstable_timeout\"]);\n\n var _React$useState = useState(initialTimeout),\n timeout = _React$useState[0],\n setTimeout = _React$useState[1];\n\n var showTimeout = useRef(null);\n var hideTimeout = useRef(null);\n\n var _usePopoverState = usePopoverState(_objectSpread2(_objectSpread2({}, sealed), {}, {\n placement: placement\n })),\n modal = _usePopoverState.modal,\n setModal = _usePopoverState.setModal,\n popover = _objectWithoutPropertiesLoose(_usePopoverState, [\"modal\", \"setModal\"]);\n\n var clearTimeouts = useCallback(function () {\n if (showTimeout.current !== null) {\n window.clearTimeout(showTimeout.current);\n }\n\n if (hideTimeout.current !== null) {\n window.clearTimeout(hideTimeout.current);\n }\n }, []);\n var hide = useCallback(function () {\n clearTimeouts();\n popover.hide(); // Let's give some time so people can move from a reference to another\n // and still show tooltips immediately\n\n hideTimeout.current = window.setTimeout(function () {\n globalState.hide(popover.baseId);\n }, timeout);\n }, [clearTimeouts, popover.hide, timeout, popover.baseId]);\n var show = useCallback(function () {\n clearTimeouts();\n\n if (!timeout || globalState.currentTooltipId) {\n // If there's no timeout or a tooltip visible already, we can show this\n // immediately\n globalState.show(popover.baseId);\n popover.show();\n } else {\n // There may be a reference with focus whose tooltip is still not visible\n // In this case, we want to update it before it gets shown.\n globalState.show(null); // Otherwise, wait a little bit to show the tooltip\n\n showTimeout.current = window.setTimeout(function () {\n globalState.show(popover.baseId);\n popover.show();\n }, timeout);\n }\n }, [clearTimeouts, timeout, popover.show, popover.baseId]);\n useEffect(function () {\n return globalState.subscribe(function (id) {\n if (id !== popover.baseId) {\n clearTimeouts();\n\n if (popover.visible) {\n // Make sure there will be only one tooltip visible\n popover.hide();\n }\n }\n });\n }, [popover.baseId, clearTimeouts, popover.visible, popover.hide]);\n useEffect(function () {\n return function () {\n clearTimeouts();\n globalState.hide(popover.baseId);\n };\n }, [clearTimeouts, popover.baseId]);\n return _objectSpread2(_objectSpread2({}, popover), {}, {\n hide: hide,\n show: show,\n unstable_timeout: timeout,\n unstable_setTimeout: setTimeout\n });\n}\n\nexport { useTooltipState };\n","var globalState = {\n currentTooltipId: null,\n listeners: new Set(),\n subscribe: function subscribe(listener) {\n var _this = this;\n\n this.listeners.add(listener);\n return function () {\n _this.listeners.delete(listener);\n };\n },\n show: function show(id) {\n this.currentTooltipId = id;\n this.listeners.forEach(function (listener) {\n return listener(id);\n });\n },\n hide: function hide(id) {\n if (this.currentTooltipId === id) {\n this.currentTooltipId = null;\n this.listeners.forEach(function (listener) {\n return listener(null);\n });\n }\n }\n};\n\nexport { globalState as g };\n","// Automatically generated\nvar COMBOBOX_LIST_STATE_KEYS = [\"baseId\", \"unstable_idCountRef\", \"unstable_virtual\", \"rtl\", \"orientation\", \"groups\", \"currentId\", \"loop\", \"wrap\", \"shift\", \"unstable_moves\", \"unstable_hasActiveWidget\", \"unstable_includesBaseElement\", \"items\", \"menuRole\", \"inputValue\", \"minValueLength\", \"currentValue\", \"values\", \"limit\", \"matches\", \"list\", \"inline\", \"autoSelect\", \"visible\", \"setBaseId\", \"unregisterItem\", \"registerGroup\", \"unregisterGroup\", \"move\", \"next\", \"previous\", \"up\", \"down\", \"first\", \"last\", \"sort\", \"unstable_setVirtual\", \"setRTL\", \"setOrientation\", \"setCurrentId\", \"setLoop\", \"setWrap\", \"setShift\", \"reset\", \"unstable_setIncludesBaseElement\", \"unstable_setHasActiveWidget\", \"registerItem\", \"setInputValue\", \"setMinValueLength\", \"setValues\", \"setLimit\", \"setList\", \"setInline\", \"setAutoSelect\"];\nvar COMBOBOX_LIST_GRID_STATE_KEYS = [].concat(COMBOBOX_LIST_STATE_KEYS, [\"columns\", \"setColumns\"]);\nvar COMBOBOX_STATE_KEYS = [].concat(COMBOBOX_LIST_STATE_KEYS, [\"animated\", \"animating\", \"modal\", \"unstable_disclosureRef\", \"unstable_referenceRef\", \"unstable_popoverRef\", \"unstable_arrowRef\", \"unstable_popoverStyles\", \"unstable_arrowStyles\", \"unstable_originalPlacement\", \"unstable_update\", \"placement\", \"show\", \"hide\", \"toggle\", \"setVisible\", \"setAnimated\", \"stopAnimation\", \"setModal\", \"place\"]);\nvar COMBOBOX_GRID_STATE_KEYS = [].concat(COMBOBOX_LIST_GRID_STATE_KEYS, COMBOBOX_STATE_KEYS);\nvar COMBOBOX_KEYS = [].concat(COMBOBOX_GRID_STATE_KEYS, [\"hideOnEsc\"]);\nvar COMBOBOX_GRID_CELL_KEYS = COMBOBOX_GRID_STATE_KEYS;\nvar COMBOBOX_GRID_ROW_KEYS = COMBOBOX_GRID_CELL_KEYS;\nvar COMBOBOX_ITEM_KEYS = [].concat(COMBOBOX_GRID_ROW_KEYS, [\"value\"]);\nvar COMBOBOX_LIST_KEYS = COMBOBOX_GRID_ROW_KEYS;\nvar COMBOBOX_OPTION_KEYS = COMBOBOX_LIST_KEYS;\nvar COMBOBOX_POPOVER_KEYS = COMBOBOX_OPTION_KEYS;\n\nexport { COMBOBOX_KEYS as C, COMBOBOX_GRID_CELL_KEYS as a, COMBOBOX_GRID_ROW_KEYS as b, COMBOBOX_ITEM_KEYS as c, COMBOBOX_LIST_KEYS as d, COMBOBOX_OPTION_KEYS as e, COMBOBOX_POPOVER_KEYS as f };\n","// Automatically generated\nvar TOOLTIP_STATE_KEYS = [\"baseId\", \"unstable_idCountRef\", \"visible\", \"animated\", \"animating\", \"setBaseId\", \"show\", \"hide\", \"toggle\", \"setVisible\", \"setAnimated\", \"stopAnimation\", \"unstable_disclosureRef\", \"unstable_referenceRef\", \"unstable_popoverRef\", \"unstable_arrowRef\", \"unstable_popoverStyles\", \"unstable_arrowStyles\", \"unstable_originalPlacement\", \"unstable_update\", \"placement\", \"place\", \"unstable_timeout\", \"unstable_setTimeout\"];\nvar TOOLTIP_KEYS = [].concat(TOOLTIP_STATE_KEYS, [\"unstable_portal\"]);\nvar TOOLTIP_ARROW_KEYS = TOOLTIP_STATE_KEYS;\nvar TOOLTIP_REFERENCE_KEYS = TOOLTIP_ARROW_KEYS;\n\nexport { TOOLTIP_KEYS as T, TOOLTIP_ARROW_KEYS as a, TOOLTIP_REFERENCE_KEYS as b };\n","function getMenuId(baseId) {\n return baseId + \"-menu\";\n}\n\nexport { getMenuId as g };\n"],"names":["useBox","name","keys","propsAreEqual","prev","next","prevSystem","unstable_system","prevProps","_","nextSystem","nextProps","as","useHook","getControls","baseId","ariaControls","menuId","g","getAutocomplete","options","list","inline","hasCompletionString","inputValue","currentValue","length","toLowerCase","indexOf","unstable_useCombobox","compose","C","useOptions","_ref","_ref$menuRole","menuRole","_ref$hideOnEsc","hideOnEsc","useProps","_ref2","htmlRef","ref","htmlOnKeyDown","onKeyDown","htmlOnKeyPress","onKeyPress","htmlOnChange","onChange","htmlOnClick","onClick","htmlOnBlur","onBlur","htmlProps","useRef","_React$useReducer","useReducer","updated","update","onKeyDownRef","onKeyPressRef","onChangeRef","onClickRef","onBlurRef","value","useMemo","items","autoSelect","currentId","firstItem","find","item","disabled","id","isFirstItemAutoSelected","index","slice","getCompletionString","useValue","hasInsertedTextRef","useEffect","_items$find","element","current","setSelectionRange","setCurrentId","undefined","useCallback","event","_onKeyDownRef$current","_options$hide","call","defaultPrevented","key","hide","_onKeyPressRef$curren","_onChangeRef$current","_options$show","_options$setInputValu","_options$setCurrentId2","_options$setCurrentId","show","setInputValue","target","_onClickRef$current","_options$setCurrentId3","_options$show2","minValueLength","_onBlurRef$current","unstable_referenceRef","role","autoComplete","visible","useComposeProps","_ref3","onKeyUp","htmlOnKeyDownCapture","onKeyDownCapture","compositeHTMLProps","onKeyDownCaptureRef","_onKeyDownCaptureRef$","_compositeHTMLProps$o","_onKeyDownRef$current2","_compositeHTMLProps$o2","_options$show3","ctrlKey","altKey","shiftKey","metaKey","unstable_Combobox","memo","getItemId","replace","unstable_useComboboxItem","createHook","unstable_propsAreEqual","prevCurrentValue","matches","nextCurrentValue","prevId","nextId","focusable","registerItem","_options$registerItem","useLiveRef","children","tabIndex","unstable_useComboboxOption","createComponent","unstable_ComboboxOption","unstable_useComboboxList","useCreateElement","type","props","unstable_useComboboxPopover","unstable_disclosureRef","unstable_autoFocusOnShow","unstable_autoFocusOnHide","unstable_ComboboxPopover","useComboboxBaseState","composite","_temp","_ref$inputValue","initialInputValue","_ref$minValueLength","initialMinValueLength","_ref$values","values","initialValues","_ref$limit","limit","initialLimit","_ref$list","initialList","_ref$inline","initialInline","_ref$autoSelect","initialAutoSelect","valuesById","_React$useState","useState","_React$useState2","setMinValueLength","_React$useState3","setValues","_React$useState4","setLimit","_React$useState5","setList","_React$useState6","setInline","_React$useState7","setAutoSelect","regex","RegExp","match","search","push","_step","_iterator","done","getMatches","forEach","unregisterItem","unstable_useComboboxState","initialState","sealed","useSealedState","u","combobox","_useSealedState","_useSealedState$curre","_useSealedState$orien","orientation","_useSealedState$loop","loop","unstable_virtual","unstable_includesBaseElement","unstable_useComboboxListState","_ref2$gutter","gutter","_ref2$placement","placement","popover","reset","useComboboxPopoverState","usePopoverArrow","_ref$size","size","_objectSpread2$1","htmlStyle","style","split","arrowStyles","unstable_arrowStyles","transform","top","right","bottom","left","createElement","viewBox","className","d","unstable_arrowRef","fontSize","width","height","pointerEvents","PopoverArrow","globallyHideTooltipOnEscape","useTooltip","T","_ref$unstable_portal","unstable_portal","htmlWrapElement","wrapElement","_options$unstable_pop","unstable_popoverRef","addEventListener","unstable_popoverStyles","Tooltip","useTooltipArrow","TooltipArrow","useTooltipReference","htmlOnFocus","onFocus","htmlOnMouseEnter","onMouseEnter","htmlOnMouseLeave","onMouseLeave","onFocusRef","onMouseEnterRef","onMouseLeaveRef","_onFocusRef$current","_onMouseEnterRef$curr","_onMouseLeaveRef$curr","_options$hide2","TooltipReference","useTooltipState","_useSealedState$place","_useSealedState$unsta","unstable_timeout","initialTimeout","timeout","setTimeout","showTimeout","hideTimeout","_usePopoverState","modal","setModal","clearTimeouts","window","clearTimeout","currentTooltipId","subscribe","unstable_setTimeout","globalState","listeners","Set","listener","_this","this","add","delete","COMBOBOX_LIST_STATE_KEYS","COMBOBOX_LIST_GRID_STATE_KEYS","concat","COMBOBOX_STATE_KEYS","COMBOBOX_GRID_STATE_KEYS","COMBOBOX_KEYS","COMBOBOX_GRID_ROW_KEYS","COMBOBOX_ITEM_KEYS","COMBOBOX_LIST_KEYS","COMBOBOX_OPTION_KEYS","COMBOBOX_POPOVER_KEYS","TOOLTIP_STATE_KEYS","TOOLTIP_KEYS","TOOLTIP_ARROW_KEYS","TOOLTIP_REFERENCE_KEYS","getMenuId"],"sourceRoot":""}